sqllogictest
Artifact Content
Not logged in

Artifact 14d331a3472a4ed551527de22bd34d5211bb0ed1:


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)

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT ALL 95 * + COUNT( + 88 ) - 48 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL 95 * + COUNT ( + 88 ) - 48 AS col2
----
47

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2
SELECT ALL - 6 * + 4 * - SUM( ALL + + 28 ) * + 32 - - 60, 71 AS col1
----
21564
71

skipif mysql # not compatible
query II rowsort label-2
SELECT ALL - 6 * + 4 * - SUM ( ALL + + 28 ) * + 32 - - 60, 71 AS col1
----
21564
71

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4
SELECT ALL + 91 AS col2, + COUNT( * ) - + 42 + - 96 AS col0
----
91
-137

skipif mysql # not compatible
query II rowsort label-4
SELECT ALL + 91 AS col2, + COUNT ( * ) - + 42 + - 96 AS col0
----
91
-137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5
SELECT 20 DIV - - 96 + + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5
SELECT 20 / - - 96 + + + COUNT ( * ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6
SELECT + 30 AS col0, - 53 DIV - + 70 AS col1
----
30
0

skipif mysql # not compatible
query II rowsort label-6
SELECT + 30 AS col0, - 53 / - + 70 AS col1
----
30
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8
SELECT + COUNT( DISTINCT 3 ) AS col2, + 92 DIV + 83
----
1
1

skipif mysql # not compatible
query II rowsort label-8
SELECT + COUNT ( DISTINCT 3 ) AS col2, + 92 / + 83
----
1
1

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

query I rowsort
SELECT - 76 * + 18 AS col0
----
-1368

query II rowsort
SELECT ALL + 70, 47 AS col0
----
70
47

onlyif mysql # DIV for integer division: 
query I rowsort label-12
SELECT + + 1 - + + 54 + - + 80 DIV - 34
----
-51

skipif mysql # not compatible
query I rowsort label-12
SELECT + + 1 - + + 54 + - + 80 / - 34
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-13
SELECT - CAST( + 5 AS SIGNED ) * + 37 - + 91 + - 42 AS col2
----
-318

skipif mysql # not compatible
query I rowsort label-13
SELECT - CAST ( + 5 AS INTEGER ) * + 37 - + 91 + - 42 AS col2
----
-318

query I rowsort
SELECT DISTINCT + 47 col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-15
SELECT + NULLIF ( ( - SUM( + + 18 ) ), + COALESCE ( 68, 48 ) * - 56 + - 76 ) * + ( - 76 ) + CAST( 3 AS SIGNED ) + - 33 AS col0
----
1338

skipif mysql # not compatible
query I rowsort label-15
SELECT + NULLIF ( ( - SUM ( + + 18 ) ), + COALESCE ( 68, 48 ) * - 56 + - 76 ) * + ( - 76 ) + CAST ( 3 AS INTEGER ) + - 33 AS col0
----
1338

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-17
SELECT DISTINCT ( ( + 85 ) ) * + COUNT( * ) - - - 92 + + ( - 39 ), ( + - COUNT( * ) ) col2
----
-46
-1

skipif mysql # not compatible
query II rowsort label-17
SELECT DISTINCT ( ( + 85 ) ) * + COUNT ( * ) - - - 92 + + ( - 39 ), ( + - COUNT ( * ) ) col2
----
-46
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT ALL 99 * + 7 * + ( - + 75 ) + + + COUNT( * ) AS col2
----
-51974

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL 99 * + 7 * + ( - + 75 ) + + + COUNT ( * ) AS col2
----
-51974

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

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

query I rowsort
SELECT - 67 * - 97 AS col2
----
6499

query I rowsort
SELECT ALL ( 83 ) col0
----
83

query I rowsort
SELECT ALL - 10 + - + 20
----
-30

query I rowsort
SELECT - 31 * + COALESCE ( + + 19, 50 + + 33, + 16 )
----
-589

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT DISTINCT - 28 + 42 + - ( + 86 ) + + 62 * - COUNT( * ) AS col2
----
-134

skipif mysql # not compatible
query I rowsort label-25
SELECT DISTINCT - 28 + 42 + - ( + 86 ) + + 62 * - COUNT ( * ) AS col2
----
-134

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-26
SELECT DISTINCT ( + - CAST( NULL AS DECIMAL ) ), - 28 AS col2
----
NULL
-28

skipif mysql # not compatible
query II rowsort label-26
SELECT DISTINCT ( + - CAST ( NULL AS REAL ) ), - 28 AS col2
----
NULL
-28

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

query I rowsort
SELECT DISTINCT + 70 * + 91 AS col1
----
6370

query II rowsort
SELECT 3 + - 13 col1, 90 * 17 col0
----
-10
1530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-30
SELECT - 88 + COALESCE ( - 10, + NULLIF ( 70, + CAST( - 89 AS DECIMAL ) ) + + + COUNT( * ) * + + 84, ( + - 7 ) * - 21 + 0 * + + 64 + + - 52 ) + COUNT( CAST( - + 85 AS SIGNED ) )
----
-97

skipif mysql # not compatible
query I rowsort label-30
SELECT - 88 + COALESCE ( - 10, + NULLIF ( 70, + CAST ( - 89 AS REAL ) ) + + + COUNT ( * ) * + + 84, ( + - 7 ) * - 21 + 0 * + + 64 + + - 52 ) + COUNT ( CAST ( - + 85 AS INTEGER ) )
----
-97

query I rowsort
SELECT 93 * - - 41 + + - 56 * - 58 * 87 * + - 45 AS col2
----
-12712107

onlyif mysql # aggregate syntax: 
query II rowsort label-32
SELECT ALL + COUNT( * ) - 9, + 33 + + 96 AS col1
----
-8
129

skipif mysql # not compatible
query II rowsort label-32
SELECT ALL + COUNT ( * ) - 9, + 33 + + 96 AS col1
----
-8
129

query I rowsort
SELECT ALL - 85 col1
----
-85

query I rowsort
SELECT DISTINCT - - 89
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT ALL MIN( - + 61 ) * - 79
----
4819

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL MIN ( - + 61 ) * - 79
----
4819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-36
SELECT - MIN( - 37 ) / - 21 / CAST( NULL AS SIGNED ) - - - 77 + 17 + 57 + + + 22 * ( - - 79 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-36
SELECT - MIN ( - 37 ) / - 21 / CAST ( NULL AS INTEGER ) - - - 77 + 17 + 57 + + + 22 * ( - - 79 ) AS col1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT - - 15 * - - COUNT( * ) + - ( 31 ) + - ( + 86 )
----
-102

skipif mysql # not compatible
query I rowsort label-40
SELECT - - 15 * - - COUNT ( * ) + - ( 31 ) + - ( + 86 )
----
-102

query I rowsort
SELECT + + 29
----
29

query I rowsort
SELECT DISTINCT - COALESCE ( - 46, - 77 * COALESCE ( + + COALESCE ( 70, 85, - 10 ), + 65 * 45 * - 65 ) ) AS col1
----
46

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

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

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

query I rowsort
SELECT 64 AS col1
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-46
SELECT ALL COUNT( * ) + + + 70 DIV 81 * - - 38 * + + NULLIF ( - ( + 86 ), - 47 * 14 )
----
1

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL COUNT ( * ) + + + 70 / 81 * - - 38 * + + NULLIF ( - ( + 86 ), - 47 * 14 )
----
1

query I rowsort
SELECT DISTINCT 27 + + 77 AS col0
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-48
SELECT + 83 * CASE 0 WHEN + + 94 + + COALESCE ( + - COUNT( * ), + + 78, + + ( - + 91 ) * 66 ) + - CASE + 75 WHEN 51 THEN + COUNT( * ) END - + COUNT( DISTINCT - + 25 ) / - 71 THEN 46 - - MIN( + 44 ) END + - + 97, + 45 AS col0
----
NULL
45

skipif mysql # not compatible
query II rowsort label-48
SELECT + 83 * CASE 0 WHEN + + 94 + + COALESCE ( + - COUNT ( * ), + + 78, + + ( - + 91 ) * 66 ) + - CASE + 75 WHEN 51 THEN + COUNT ( * ) END - + COUNT ( DISTINCT - + 25 ) / - 71 THEN 46 - - MIN ( + 44 ) END + - + 97, + 45 AS col0
----
NULL
45

query I rowsort
SELECT ALL - 27 col1
----
-27

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

skipif mysql # not compatible
query I rowsort label-50
SELECT DISTINCT 20 / - 35
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-52
SELECT 78 + - 39 * 23 + + - CAST( NULL AS SIGNED ) + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-52
SELECT 78 + - 39 * 23 + + - CAST ( NULL AS INTEGER ) + 59 AS col1
----
NULL

query I rowsort
SELECT ( 88 ) + + + 2 AS col0
----
90

query I rowsort
SELECT 23 * 56
----
1288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-55
SELECT ALL NULLIF ( + 15, + - 87 ) + + 24 * + 73 + - - 79 + - MAX( DISTINCT + - ( - 45 ) ) + + CASE - CAST( - 18 AS SIGNED ) WHEN - 59 * - 36 THEN NULL WHEN + - 45 THEN + + ( - 84 ) ELSE NULL END * - - 52 / - CAST( + + 27 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL NULLIF ( + 15, + - 87 ) + + 24 * + 73 + - - 79 + - MAX ( DISTINCT + - ( - 45 ) ) + + CASE - CAST ( - 18 AS INTEGER ) WHEN - 59 * - 36 THEN NULL WHEN + - 45 THEN + + ( - 84 ) ELSE NULL END * - - 52 / - CAST ( + + 27 AS INTEGER )
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT 13 + - 64 AS col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-61
SELECT ALL 13 * + CAST( - - 27 AS SIGNED ) * - 89 * 49
----
-1530711

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL 13 * + CAST ( - - 27 AS INTEGER ) * - 89 * 49
----
-1530711

onlyif mysql # aggregate syntax: 
query II rowsort label-62
SELECT ALL 54 AS col0, + 88 * COUNT( * ) * - - MIN( - 30 )
----
54
-2640

skipif mysql # not compatible
query II rowsort label-62
SELECT ALL 54 AS col0, + 88 * COUNT ( * ) * - - MIN ( - 30 )
----
54
-2640

query I rowsort
SELECT 22 + - 19 - + + 56 AS col0
----
-53

query I rowsort
SELECT ALL 48 * 74 * + + 72
----
255744

query I rowsort
SELECT 32 + 29
----
61

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

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

query II rowsort
SELECT 41 + - 68 - - 73 AS col1, 29 AS col0
----
46
29

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

onlyif mysql # DIV for integer division: 
query I rowsort label-69
SELECT ALL - - 3 DIV - + 53
----
0

skipif mysql # not compatible
query I rowsort label-69
SELECT ALL - - 3 / - + 53
----
0

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

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

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

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

query I rowsort
SELECT ALL - + 28 * - 27 AS col0
----
756

query I rowsort
SELECT ALL + 25 * - 85
----
-2125

query I rowsort
SELECT DISTINCT + + 99 * + 34 AS col1
----
3366

onlyif mysql # DIV for integer division: 
query I rowsort label-76
SELECT + 44 DIV - 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-76
SELECT + 44 / - 80 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT ALL + - 49 + - + 70 + + + COUNT( * ) * 96 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL + - 49 + - + 70 + + + COUNT ( * ) * 96 AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-78
SELECT + NULLIF ( 62, - 95 / 47 / + CAST( 37 AS SIGNED ) * 32 - + + 8 * - 82 + + + COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-78
SELECT + NULLIF ( 62, - 95 / 47 / + CAST ( 37 AS INTEGER ) * 32 - + + 8 * - 82 + + + COUNT ( * ) )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-79
SELECT + 71 + + 59 * + + 89 * + 4, + 37 + CAST( NULL AS SIGNED ) + + 3 + + 30 + - COUNT( DISTINCT 93 ) AS col2
----
21075
NULL

skipif mysql # not compatible
query II rowsort label-79
SELECT + 71 + + 59 * + + 89 * + 4, + 37 + CAST ( NULL AS INTEGER ) + + 3 + + 30 + - COUNT ( DISTINCT 93 ) AS col2
----
21075
NULL

query I rowsort
SELECT DISTINCT - - 73 + + - 58
----
15

query I rowsort
SELECT ALL - - 57 + 26
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT ALL 63 + + 79 + - COALESCE ( - COUNT( DISTINCT - 93 ), - - 11 + 24 ) AS col0
----
143

skipif mysql # not compatible
query I rowsort label-82
SELECT ALL 63 + + 79 + - COALESCE ( - COUNT ( DISTINCT - 93 ), - - 11 + 24 ) AS col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT 91 * + + MAX( ALL - + ( 36 ) ) * - 57 AS col2
----
186732

skipif mysql # not compatible
query I rowsort label-83
SELECT 91 * + + MAX ( ALL - + ( 36 ) ) * - 57 AS col2
----
186732

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT 98 + - COALESCE ( + COUNT( * ), + COALESCE ( ( + 79 ), - 6 ) ) * - 9 AS col0
----
107

skipif mysql # not compatible
query I rowsort label-84
SELECT 98 + - COALESCE ( + COUNT ( * ), + COALESCE ( ( + 79 ), - 6 ) ) * - 9 AS col0
----
107

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

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

query I rowsort
SELECT DISTINCT 14 + + 89
----
103

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-88
SELECT DISTINCT 49 + + + CAST( NULL AS SIGNED ) + + 46 * + - SUM( + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-88
SELECT DISTINCT 49 + + + CAST ( NULL AS INTEGER ) + + 46 * + - SUM ( + 93 )
----
NULL

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

query I rowsort
SELECT DISTINCT - 28 - - - 97
----
-125

query I rowsort
SELECT DISTINCT - 10 - - + 25 + - + 76 AS col1
----
-61

query I rowsort
SELECT 96 * + + 40 AS col0
----
3840

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

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL COUNT ( ALL + + 32 ) / - + 1
----
-1

query I rowsort
SELECT 3 - - 80 * - + 45
----
-3597

query I rowsort
SELECT - NULLIF ( 32, - 61 * - - 49 ) col2
----
-32

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

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

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

query I rowsort
SELECT ALL 36 col1
----
36

query I rowsort
SELECT ALL + 21 * 24 - - - 89
----
415

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-100
SELECT - CASE - 44 WHEN - 7 / MAX( + 96 ) + 1 + SUM( + - 55 ) + + - COUNT( * ) * - - 30 * + - ( + + 75 ) THEN - 94 * + - 47 + 30 * - - 19 / - 85 * + - 51 WHEN + + CAST( + 23 AS DECIMAL ) + 80 THEN NULL ELSE + + ( - - CAST( NULL AS DECIMAL ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-100
SELECT - CASE - 44 WHEN - 7 / MAX ( + 96 ) + 1 + SUM ( + - 55 ) + + - COUNT ( * ) * - - 30 * + - ( + + 75 ) THEN - 94 * + - 47 + 30 * - - 19 / - 85 * + - 51 WHEN + + CAST ( + 23 AS REAL ) + 80 THEN NULL ELSE + + ( - - CAST ( NULL AS REAL ) ) END
----
NULL

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-106
SELECT - - 32 * + CAST ( NULL AS INTEGER ) * 4
----
NULL

query I rowsort
SELECT DISTINCT - 27 + - 91
----
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-108
SELECT ALL + COUNT( ALL - ( + 75 ) ) + + 96 AS col2, 97 + 63
----
97
160

skipif mysql # not compatible
query II rowsort label-108
SELECT ALL + COUNT ( ALL - ( + 75 ) ) + + 96 AS col2, 97 + 63
----
97
160

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT + + CASE + + ( 32 ) WHEN 12 THEN + - 7 * + COUNT( * ) WHEN + COUNT( * ) THEN - - 37 * 35 + - + 19 END + + 36 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-109
SELECT + + CASE + + ( 32 ) WHEN 12 THEN + - 7 * + COUNT ( * ) WHEN + COUNT ( * ) THEN - - 37 * 35 + - + 19 END + + 36 + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT + MAX( - - 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-110
SELECT + MAX ( - - 67 ) AS col1
----
67

query I rowsort
SELECT + - 88 + 65 col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT - - COUNT( ALL + 11 ) - - + 16
----
17

skipif mysql # not compatible
query I rowsort label-112
SELECT - - COUNT ( ALL + 11 ) - - + 16
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-113
SELECT + SUM( ALL 95 ) DIV + 50
----
1

skipif mysql # not compatible
query I rowsort label-113
SELECT + SUM ( ALL 95 ) / + 50
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-114
SELECT ALL + - ( + 93 ), + 24 + - COUNT( * ) AS col2
----
-93
23

skipif mysql # not compatible
query II rowsort label-114
SELECT ALL + - ( + 93 ), + 24 + - COUNT ( * ) AS col2
----
-93
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-115
SELECT ALL + 35 * + 60 + + CASE 98 WHEN - 66 * + + 42 * - COUNT( * ) THEN - CASE - 41 WHEN + CAST( - 73 AS DECIMAL ) + + 0 + CASE COUNT( * ) WHEN + - 36 - - - 50 THEN + ( 16 ) END * 43 THEN NULL ELSE + 52 END + + 20 ELSE 59 END * - 88 * - + 36 + + 85 AS col1
----
189097

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL + 35 * + 60 + + CASE 98 WHEN - 66 * + + 42 * - COUNT ( * ) THEN - CASE - 41 WHEN + CAST ( - 73 AS REAL ) + + 0 + CASE COUNT ( * ) WHEN + - 36 - - - 50 THEN + ( 16 ) END * 43 THEN NULL ELSE + 52 END + + 20 ELSE 59 END * - 88 * - + 36 + + 85 AS col1
----
189097

query I rowsort
SELECT ALL + 71 * + 23 + + 51 col2
----
1684

onlyif mysql # DIV for integer division: 
query I rowsort label-117
SELECT DISTINCT 96 DIV - + 75 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-117
SELECT DISTINCT 96 / - + 75 AS col0
----
-1

query I rowsort
SELECT - 35 + - 50 col2
----
-85

query II rowsort
SELECT + 65 AS col2, + 15
----
65
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-120
SELECT ALL 87 * + 40 * - 34 + - 59 * 9 * CAST( NULL AS SIGNED ) * - - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL 87 * + 40 * - 34 + - 59 * 9 * CAST ( NULL AS INTEGER ) * - - 63
----
NULL

query I rowsort
SELECT ALL 56 * 79 + - 61
----
4363

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

query I rowsort
SELECT NULLIF ( - 44, - 88 * - 84 ) AS col0
----
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-124
SELECT - 26 * 24 * - - 74 * + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-124
SELECT - 26 * 24 * - - 74 * + + CAST ( NULL AS REAL ) AS col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-126
SELECT COALESCE ( 94, - + 37 * + 80 * + - 81 DIV + 15 * 69, - - 86 ), NULLIF ( + 96, 76 + - 81 ) DIV - NULLIF ( - - 91, 76 * + 51 ) + + 78 AS col1
----
94
77

skipif mysql # not compatible
query II rowsort label-126
SELECT COALESCE ( 94, - + 37 * + 80 * + - 81 / + 15 * 69, - - 86 ), NULLIF ( + 96, 76 + - 81 ) / - NULLIF ( - - 91, 76 * + 51 ) + + 78 AS col1
----
94
77

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT NULLIF ( + COUNT( * ), - 40 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-127
SELECT NULLIF ( + COUNT ( * ), - 40 ) AS col1
----
1

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

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

query I rowsort
SELECT - 8 - - 77 + + - 30 + + 67
----
106

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-130
SELECT - 66 * - + 64 * + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-130
SELECT - 66 * - + 64 * + - CAST ( NULL AS REAL ) AS col1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-132
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + ( + 77 ) - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-132
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( + 77 ) - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT + MAX( DISTINCT 1 )
----
1

skipif mysql # not compatible
query I rowsort label-133
SELECT + MAX ( DISTINCT 1 )
----
1

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

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

query I rowsort
SELECT - 72 + + 7
----
-65

query I rowsort
SELECT - 30 * + + 70 AS col1
----
-2100

query I rowsort
SELECT - 48 + - 59
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT + 54 - + NULLIF ( COALESCE ( + + COUNT( * ), - 6, + 16, 86 ), - CASE COUNT( * ) WHEN - 13 THEN - CASE 80 WHEN + + COUNT( * ) * + - 7 THEN NULL WHEN 39 THEN - + 32 END + - MIN( DISTINCT + 57 ) ELSE NULL END ) + - 48 + + 9
----
14

skipif mysql # not compatible
query I rowsort label-138
SELECT + 54 - + NULLIF ( COALESCE ( + + COUNT ( * ), - 6, + 16, 86 ), - CASE COUNT ( * ) WHEN - 13 THEN - CASE 80 WHEN + + COUNT ( * ) * + - 7 THEN NULL WHEN 39 THEN - + 32 END + - MIN ( DISTINCT + 57 ) ELSE NULL END ) + - 48 + + 9
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-139
SELECT ALL CAST( NULL AS SIGNED ), - 41 AS col1
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-139
SELECT ALL CAST ( NULL AS INTEGER ), - 41 AS col1
----
NULL
-41

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT DISTINCT + + 20 * + MIN( ALL - 85 ) * + 53 AS col1
----
-90100

skipif mysql # not compatible
query I rowsort label-143
SELECT DISTINCT + + 20 * + MIN ( ALL - 85 ) * + 53 AS col1
----
-90100

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

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

query II rowsort
SELECT DISTINCT ( + CASE - 93 WHEN + 22 THEN NULL WHEN - 86 / + + 38 THEN - 25 * - - ( 35 ) + - AVG ( - 86 ) END ) AS col2, - 23
----
NULL
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT DISTINCT - COUNT( * ) + + 19 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT - COUNT ( * ) + + 19 AS col2
----
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT - + 9 * - - COUNT( * ) - 4
----
-13

skipif mysql # not compatible
query I rowsort label-148
SELECT - + 9 * - - COUNT ( * ) - 4
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT + - 3 + - 93 + + 57 * - 63 + - COALESCE ( NULLIF ( - ( - + COUNT( * ) ), - + 70 ), 61 ) * + 68 AS col1
----
-3755

skipif mysql # not compatible
query I rowsort label-149
SELECT + - 3 + - 93 + + 57 * - 63 + - COALESCE ( NULLIF ( - ( - + COUNT ( * ) ), - + 70 ), 61 ) * + 68 AS col1
----
-3755

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

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

skipif mysql # not compatible
query I rowsort label-151
SELECT MAX ( ALL 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT + + 28 + + 11 * + MAX( ALL 61 ) AS col1
----
699

skipif mysql # not compatible
query I rowsort label-152
SELECT + + 28 + + 11 * + MAX ( ALL 61 ) AS col1
----
699

query I rowsort
SELECT + 57 * + 0 * 18 * + 25 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT + COUNT( * ) + + 85 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-154
SELECT + COUNT ( * ) + + 85 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT + 70 * COUNT( 39 ) + 31 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-155
SELECT + 70 * COUNT ( 39 ) + 31 AS col2
----
101

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

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

query II rowsort
SELECT DISTINCT + 52, ( 39 ) * + - 70 AS col2
----
52
-2730

query I rowsort
SELECT DISTINCT + 15 + + 16
----
31

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

onlyif mysql # DIV for integer division: 
query I rowsort label-160
SELECT ALL 37 + - 94 DIV + ( - + 31 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL 37 + - 94 / + ( - + 31 ) AS col1
----
40

query I rowsort
SELECT + + 76 * + - 3
----
-228

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-163
SELECT DISTINCT NULLIF ( 48, - 70 * + + 17 * - 86 * 26 * - + SUM( ALL + 59 ) + + 34 + + 68 * ( + + COUNT( * ) ) + + + 26 + - COUNT( * ) ) DIV - - 97 * + 11 + + - 56 + 43 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-163
SELECT DISTINCT NULLIF ( 48, - 70 * + + 17 * - 86 * 26 * - + SUM ( ALL + 59 ) + + 34 + + 68 * ( + + COUNT ( * ) ) + + + 26 + - COUNT ( * ) ) / - - 97 * + 11 + + - 56 + 43 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT + CASE 76 WHEN - 22 + + + 81 THEN NULL WHEN - 9 THEN + + 54 WHEN + COUNT( ALL - 20 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-164
SELECT + CASE 76 WHEN - 22 + + + 81 THEN NULL WHEN - 9 THEN + + 54 WHEN + COUNT ( ALL - 20 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-165
SELECT ALL 89 DIV - + 49 DIV COUNT( * ) * + COUNT( * ) + - 95 + - + 98 - - + 30 AS col2
----
-164

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL 89 / - + 49 / COUNT ( * ) * + COUNT ( * ) + - 95 + - + 98 - - + 30 AS col2
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT + + COUNT( * ) - - MIN( 24 ) + - 84 * + + COUNT( * ) * - 21
----
1789

skipif mysql # not compatible
query I rowsort label-166
SELECT + + COUNT ( * ) - - MIN ( 24 ) + - 84 * + + COUNT ( * ) * - 21
----
1789

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-167
SELECT + NULLIF ( - + 17, + COUNT( * ) DIV + + 69 + - COUNT( * ) ) DIV + ( - 61 ) + + + 34 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-167
SELECT + NULLIF ( - + 17, + COUNT ( * ) / + + 69 + - COUNT ( * ) ) / + ( - 61 ) + + + 34 AS col1
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-168
SELECT CAST( 84 AS SIGNED ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-168
SELECT CAST ( 84 AS INTEGER ) AS col0
----
84

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-171
SELECT ALL + 82 DIV - COALESCE ( 22, - 3 * + 26 )
----
-3

skipif mysql # not compatible
query I rowsort label-171
SELECT ALL + 82 / - COALESCE ( 22, - 3 * + 26 )
----
-3

query II rowsort
SELECT ALL + 42 AS col2, - 88 + + 2 AS col1
----
42
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-173
SELECT 83 * - - 35 * + + COUNT( * ) + - NULLIF ( - ( + 38 ), - 32 - - - 52 * COUNT( DISTINCT + 48 ) ) * 88, - NULLIF ( + NULLIF ( - 27, 58 ), + 73 * - COUNT( * ) ) col2
----
6249
27

skipif mysql # not compatible
query II rowsort label-173
SELECT 83 * - - 35 * + + COUNT ( * ) + - NULLIF ( - ( + 38 ), - 32 - - - 52 * COUNT ( DISTINCT + 48 ) ) * 88, - NULLIF ( + NULLIF ( - 27, 58 ), + 73 * - COUNT ( * ) ) col2
----
6249
27

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT - 67 - COALESCE ( COUNT( * ), + 84 * 50, 26 )
----
-68

skipif mysql # not compatible
query I rowsort label-174
SELECT - 67 - COALESCE ( COUNT ( * ), + 84 * 50, 26 )
----
-68

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-176
SELECT 42 DIV 68 * + 5 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-176
SELECT 42 / 68 * + 5 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT - COALESCE ( + 93, + 93 ) * + 67 + + COALESCE ( - CASE + - 24 WHEN + 8 THEN 51 END, + 44, COUNT( * ) + + 10 ) + - 15 + - 93 * - MIN( - 5 ) * 3 + - MAX( - 17 ) + - 26 AS col0
----
-7606

skipif mysql # not compatible
query I rowsort label-177
SELECT - COALESCE ( + 93, + 93 ) * + 67 + + COALESCE ( - CASE + - 24 WHEN + 8 THEN 51 END, + 44, COUNT ( * ) + + 10 ) + - 15 + - 93 * - MIN ( - 5 ) * 3 + - MAX ( - 17 ) + - 26 AS col0
----
-7606

query II rowsort
SELECT 51 * + 54 AS col1, + 51 AS col1
----
2754
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-179
SELECT DISTINCT - 90 AS col0, 21 * 16 * - CASE - 99 WHEN - + ( + - 1 ) * - + 2 + - COUNT( * ) * + + CAST( NULL AS SIGNED ) + - + 92 THEN NULL WHEN + 28 THEN + ( + ( + 28 ) ) END + + + 71 AS col1
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-179
SELECT DISTINCT - 90 AS col0, 21 * 16 * - CASE - 99 WHEN - + ( + - 1 ) * - + 2 + - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + - + 92 THEN NULL WHEN + 28 THEN + ( + ( + 28 ) ) END + + + 71 AS col1
----
-90
NULL

query I rowsort
SELECT 41 * - - 14
----
574

query I rowsort
SELECT ALL 61 col1
----
61

query II rowsort
SELECT DISTINCT 65, + 19 * + + 50 AS col0
----
65
950

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT + COALESCE ( 32, - + NULLIF ( + - 34, - + ( + - 11 ) / - SUM( ALL - 41 ) + 12 + - - 19 ) ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-185
SELECT + COALESCE ( 32, - + NULLIF ( + - 34, - + ( + - 11 ) / - SUM ( ALL - 41 ) + 12 + - - 19 ) ) AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-186
SELECT ALL - 2 + + - CAST( + 93 AS SIGNED ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL - 2 + + - CAST ( + 93 AS INTEGER ) AS col2
----
-95

query I rowsort
SELECT - 88 * - 18 AS col1
----
1584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-188
SELECT 26 - CASE - 27 WHEN 86 THEN NULL WHEN + MAX( DISTINCT - 4 ) THEN NULL WHEN 43 THEN + 24 ELSE + 40 + 35 DIV 91 END
----
-14

skipif mysql # not compatible
query I rowsort label-188
SELECT 26 - CASE - 27 WHEN 86 THEN NULL WHEN + MAX ( DISTINCT - 4 ) THEN NULL WHEN 43 THEN + 24 ELSE + 40 + 35 / 91 END
----
-14

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

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

query I rowsort
SELECT DISTINCT + 10 * + + 72 + 35
----
755

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

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT - 54 * - 18 - - - MAX( + 40 )
----
932

skipif mysql # not compatible
query I rowsort label-192
SELECT - 54 * - 18 - - - MAX ( + 40 )
----
932

onlyif mysql # aggregate syntax: 
query II rowsort label-193
SELECT - ( 22 ) * + 58 + - 47 - + 78 * + MAX( + - 39 ) AS col0, + 65 AS col1
----
1719
65

skipif mysql # not compatible
query II rowsort label-193
SELECT - ( 22 ) * + 58 + - 47 - + 78 * + MAX ( + - 39 ) AS col0, + 65 AS col1
----
1719
65

query I rowsort
SELECT ALL + 86 + - + 20 + - 69 col2
----
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-196
SELECT ALL + + 50 * NULLIF ( + 68, - COUNT( * ) ) * + 93 + + 76 DIV + SUM( ALL 99 )
----
316200

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL + + 50 * NULLIF ( + 68, - COUNT ( * ) ) * + 93 + + 76 / + SUM ( ALL 99 )
----
316200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-197
SELECT + 90 - 49 + - + 63 + - CAST( + 99 AS SIGNED ) - - 8 * + 22
----
55

skipif mysql # not compatible
query I rowsort label-197
SELECT + 90 - 49 + - + 63 + - CAST ( + 99 AS INTEGER ) - - 8 * + 22
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT + ( - 15 ) * - - 63 * + + 77 - + SUM( ALL + 99 ) * 88 + 76 AS col0
----
-81401

skipif mysql # not compatible
query I rowsort label-198
SELECT + ( - 15 ) * - - 63 * + + 77 - + SUM ( ALL + 99 ) * 88 + 76 AS col0
----
-81401

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-199
SELECT ALL + - 37 - 53 - + - ( 73 ) + + SUM( 0 ) * 84 DIV 22
----
-17

skipif mysql # not compatible
query I rowsort label-199
SELECT ALL + - 37 - 53 - + - ( 73 ) + + SUM ( 0 ) * 84 / 22
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-200
SELECT + 90 AS col0, COUNT( * ) DIV - MIN( ALL 88 ) * + + 47 + + 90 AS col0
----
90
90

skipif mysql # not compatible
query II rowsort label-200
SELECT + 90 AS col0, COUNT ( * ) / - MIN ( ALL 88 ) * + + 47 + + 90 AS col0
----
90
90

query I rowsort
SELECT - + 18
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT 65 * - MIN( DISTINCT - 14 ) AS col2
----
910

skipif mysql # not compatible
query I rowsort label-202
SELECT 65 * - MIN ( DISTINCT - 14 ) AS col2
----
910

onlyif mysql # DIV for integer division: 
query I rowsort label-203
SELECT ALL 96 DIV 15 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL 96 / 15 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT - ( 82 ) + + - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-204
SELECT - ( 82 ) + + - COUNT ( * )
----
-83

query I rowsort
SELECT - 40 - 64
----
-104

query I rowsort
SELECT - ( - 11 ) AS col0
----
11

query I rowsort
SELECT 91 + + 60 col0
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT ALL - 96 - + - 45 + ( - COUNT( * ) )
----
-52

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL - 96 - + - 45 + ( - COUNT ( * ) )
----
-52

query I rowsort
SELECT DISTINCT - ( + + 97 ) AS col2
----
-97

query I rowsort
SELECT COALESCE ( 19, - 41 ) * ( - 46 ) AS col2
----
-874

onlyif mysql # DIV for integer division: 
query I rowsort label-211
SELECT 96 DIV + - 57 + + 82 + - 28 DIV - - 11
----
79

skipif mysql # not compatible
query I rowsort label-211
SELECT 96 / + - 57 + + 82 + - 28 / - - 11
----
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT DISTINCT - MAX( DISTINCT 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-213
SELECT DISTINCT - MAX ( DISTINCT 15 ) AS col0
----
-15

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

skipif mysql # not compatible
query I rowsort label-214
SELECT CAST ( NULL AS INTEGER ) * + AVG ( + 52 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT 57 * - 57 * COUNT( * ) * + ( - COUNT( * ) )
----
3249

skipif mysql # not compatible
query I rowsort label-217
SELECT 57 * - 57 * COUNT ( * ) * + ( - COUNT ( * ) )
----
3249

query I rowsort
SELECT ALL - 34 * + 67
----
-2278

query I rowsort
SELECT ALL - 77 col2
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-220
SELECT + MIN( ALL - 92 ) col2, ( 18 ) AS col0
----
-92
18

skipif mysql # not compatible
query II rowsort label-220
SELECT + MIN ( ALL - 92 ) col2, ( 18 ) AS col0
----
-92
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-221
SELECT ALL 33 * - 47 + CAST( NULL AS SIGNED ) AS col0, - CAST( + 22 AS SIGNED )
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-221
SELECT ALL 33 * - 47 + CAST ( NULL AS INTEGER ) AS col0, - CAST ( + 22 AS INTEGER )
----
NULL
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-222
SELECT - 72 DIV + 49 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-222
SELECT - 72 / + 49 AS col1
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT ALL + + CASE + 21 WHEN 60 THEN COUNT( * ) + 57 WHEN - 75 THEN - COUNT( * ) + 76 * + 71 / + + 83 ELSE NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL + + CASE + 21 WHEN 60 THEN COUNT ( * ) + 57 WHEN - 75 THEN - COUNT ( * ) + 76 * + 71 / + + 83 ELSE NULL END + + COUNT ( * )
----
NULL

query I rowsort
SELECT + 95 - - 77 * + + 13 AS col0
----
1096

query I rowsort
SELECT 0 * - 14
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-229
SELECT DISTINCT + - COUNT( * ) - 37 - - 93 * - ( 5 ) AS col2, 73 DIV - + 38
----
-503
-1

skipif mysql # not compatible
query II rowsort label-229
SELECT DISTINCT + - COUNT ( * ) - 37 - - 93 * - ( 5 ) AS col2, 73 / - + 38
----
-503
-1

query I rowsort
SELECT ALL + 13
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-231
SELECT - 28 * ( - - ( + 6 ) ) * + + 97 AS col0, + COALESCE ( + 13, + COUNT( * ) * + ( - 69 ) + - 38 * - 63 )
----
-16296
13

skipif mysql # not compatible
query II rowsort label-231
SELECT - 28 * ( - - ( + 6 ) ) * + + 97 AS col0, + COALESCE ( + 13, + COUNT ( * ) * + ( - 69 ) + - 38 * - 63 )
----
-16296
13

onlyif mysql # aggregate syntax: 
query II rowsort label-232
SELECT 2 + COUNT( * ) AS col0, 24 + 77 AS col1
----
3
101

skipif mysql # not compatible
query II rowsort label-232
SELECT 2 + COUNT ( * ) AS col0, 24 + 77 AS col1
----
3
101

query I rowsort
SELECT - 96 AS col0
----
-96

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-235
SELECT ALL - CAST( NULL AS SIGNED ) * - 16 * - COUNT( ALL - 73 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL - CAST ( NULL AS INTEGER ) * - 16 * - COUNT ( ALL - 73 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT MAX( ALL - 74 ) + + - 67 * - 83 AS col1
----
5487

skipif mysql # not compatible
query I rowsort label-236
SELECT MAX ( ALL - 74 ) + + - 67 * - 83 AS col1
----
5487

query I rowsort
SELECT - - ( - 23 )
----
-23

query I rowsort
SELECT 0 * - - 9
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-239
SELECT 7 DIV - 26 * 92 * - - 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-239
SELECT 7 / - 26 * 92 * - - 58 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT ALL MIN( ALL - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL MIN ( ALL - 97 )
----
-97

query I rowsort
SELECT DISTINCT - 83 * - ( + 44 )
----
3652

query II rowsort
SELECT ALL 72 col1, + ( - + 3 )
----
72
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-243
SELECT ALL 38 DIV - SUM( + 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL 38 / - SUM ( + 26 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-244
SELECT - 55 DIV - 54 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-244
SELECT - 55 / - 54 AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT + MAX( + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-246
SELECT + MAX ( + 21 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT - 31 - + 6 - + 97 * - COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-247
SELECT - 31 - + 6 - + 97 * - COUNT ( * ) AS col2
----
60

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

skipif mysql # not compatible
query I rowsort label-248
SELECT + MIN ( - + 3 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-249
SELECT ALL + CAST( - COUNT( + 43 ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL + CAST ( - COUNT ( + 43 ) AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT - 49 + + 79 * 71 + + 37 AS col2
----
5597

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-252
SELECT - 25 DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-252
SELECT - 25 / + 64
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-253
SELECT 56 DIV COUNT( * ) + - 96
----
-40

skipif mysql # not compatible
query I rowsort label-253
SELECT 56 / COUNT ( * ) + - 96
----
-40

query I rowsort
SELECT DISTINCT - 59 * + 6 + ( - - 30 ) AS col0
----
-324

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

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

skipif mysql # not compatible
query II rowsort label-256
SELECT + COUNT ( * ), + ( + 21 ) AS col0
----
1
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-257
SELECT ALL CAST( NULL AS SIGNED ) * - 7 + + 2 * 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL CAST ( NULL AS INTEGER ) * - 7 + + 2 * 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT DISTINCT - 82 * 28 + + + MIN( - 28 ) * + CASE WHEN NOT - COUNT( * ) > 36 THEN - 9 ELSE NULL END * - 17 AS col1
----
-6580

skipif mysql # not compatible
query I rowsort label-258
SELECT DISTINCT - 82 * 28 + + + MIN ( - 28 ) * + CASE WHEN NOT - COUNT ( * ) > 36 THEN - 9 ELSE NULL END * - 17 AS col1
----
-6580

onlyif mysql # aggregate syntax: 
query II rowsort label-259
SELECT ALL + 22 AS col0, + COUNT( * ) + - 94
----
22
-93

skipif mysql # not compatible
query II rowsort label-259
SELECT ALL + 22 AS col0, + COUNT ( * ) + - 94
----
22
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-260
SELECT + 71 + + CAST( - - 96 AS SIGNED ) * - 33 + 22 * + 91
----
-1095

skipif mysql # not compatible
query I rowsort label-260
SELECT + 71 + + CAST ( - - 96 AS INTEGER ) * - 33 + 22 * + 91
----
-1095

query I rowsort
SELECT DISTINCT 94 * 5
----
470

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT + MAX( DISTINCT 16 )
----
16

skipif mysql # not compatible
query I rowsort label-262
SELECT + MAX ( DISTINCT 16 )
----
16

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

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

query II rowsort
SELECT - 72 AS col2, 66 AS col1
----
-72
66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT + + NULLIF ( + - 67, COUNT( * ) * - + 0 )
----
-67

skipif mysql # not compatible
query I rowsort label-266
SELECT + + NULLIF ( + - 67, COUNT ( * ) * - + 0 )
----
-67

query I rowsort
SELECT + 45 * + NULLIF ( + COALESCE ( - 58, 82 ), + - 52 )
----
-2610

query I rowsort
SELECT + - 48 col2
----
-48

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

query II rowsort
SELECT + 79, ( 16 ) AS col2
----
79
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-271
SELECT + - 78 - + - 42 * - NULLIF ( + COUNT( * ), CAST( 50 AS SIGNED ) )
----
-120

skipif mysql # not compatible
query I rowsort label-271
SELECT + - 78 - + - 42 * - NULLIF ( + COUNT ( * ), CAST ( 50 AS INTEGER ) )
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-272
SELECT + + 3 - + COUNT( ( - CAST( NULL AS SIGNED ) ) ) * - CASE + 18 WHEN 16 * - 65 * 98 * + 56 THEN NULL WHEN + 74 THEN + NULLIF ( + COUNT( * ), 42 * + CAST( + 43 AS SIGNED ) * 53 - - 60 ) END + - SUM( - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-272
SELECT + + 3 - + COUNT ( ( - CAST ( NULL AS INTEGER ) ) ) * - CASE + 18 WHEN 16 * - 65 * 98 * + 56 THEN NULL WHEN + 74 THEN + NULLIF ( + COUNT ( * ), 42 * + CAST ( + 43 AS INTEGER ) * 53 - - 60 ) END + - SUM ( - 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT SUM( 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-273
SELECT SUM ( 1 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT - + 39 * + + MAX( - - 34 ) AS col1
----
-1326

skipif mysql # not compatible
query I rowsort label-274
SELECT - + 39 * + + MAX ( - - 34 ) AS col1
----
-1326

onlyif mysql # aggregate syntax: 
query II rowsort label-275
SELECT ALL + COUNT( * ) * - - ( + 88 ) AS col1, + 0
----
88
0

skipif mysql # not compatible
query II rowsort label-275
SELECT ALL + COUNT ( * ) * - - ( + 88 ) AS col1, + 0
----
88
0

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

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

query II rowsort
SELECT ALL 75, 56 AS col2
----
75
56

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT DISTINCT 31 * + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-278
SELECT DISTINCT 31 * + COUNT ( * )
----
31

query I rowsort
SELECT - 75 - - - 47 * + ( - 27 ) AS col1
----
1194

onlyif mysql # aggregate syntax: 
query II rowsort label-280
SELECT - 68 - + 95 - + 40 * - - 16 * + + 26 col1, 71 + - + ( 83 ) + - CASE + NULLIF ( - 79, - ( 42 ) ) WHEN - 2 / + + 24 + - - 47 THEN + 86 WHEN - + 51 THEN - 75 - - - 35 END * NULLIF ( 76, - 86 * NULLIF ( 85, 69 ) + - NULLIF ( - 59, + - COUNT( * ) - + + COUNT( * ) ) + 7 )
----
-16803
NULL

skipif mysql # not compatible
query II rowsort label-280
SELECT - 68 - + 95 - + 40 * - - 16 * + + 26 col1, 71 + - + ( 83 ) + - CASE + NULLIF ( - 79, - ( 42 ) ) WHEN - 2 / + + 24 + - - 47 THEN + 86 WHEN - + 51 THEN - 75 - - - 35 END * NULLIF ( 76, - 86 * NULLIF ( 85, 69 ) + - NULLIF ( - 59, + - COUNT ( * ) - + + COUNT ( * ) ) + 7 )
----
-16803
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-282
SELECT + 32 + 32 col2, + COUNT( * ) * + 5 AS col2
----
64
5

skipif mysql # not compatible
query II rowsort label-282
SELECT + 32 + 32 col2, + COUNT ( * ) * + 5 AS col2
----
64
5

query I rowsort
SELECT - 49 * - 71 * - + 32
----
-111328

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT - 8 + + 23 * - - COUNT( * ) + + 75 + - MIN( ALL + 25 ) + + - 58 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-284
SELECT - 8 + + 23 * - - COUNT ( * ) + + 75 + - MIN ( ALL + 25 ) + + - 58 AS col1
----
7

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-286
SELECT ALL + 71 DIV 27 + - + 30 * - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-286
SELECT ALL + 71 / 27 + - + 30 * - COUNT ( * )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-287
SELECT 70 DIV 54 + + - 1 * + COUNT( * ) DIV - + 57 + ( + 90 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-287
SELECT 70 / 54 + + - 1 * + COUNT ( * ) / - + 57 + ( + 90 ) AS col1
----
91

query I rowsort
SELECT - 30 + - 33
----
-63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT - 59 + - + MIN( - CASE - 2 WHEN - - 90 THEN - 28 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-290
SELECT - 59 + - + MIN ( - CASE - 2 WHEN - - 90 THEN - 28 END ) AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-292
SELECT + NULLIF ( + - 26, 81 * + + 17 ) DIV 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-292
SELECT + NULLIF ( + - 26, 81 * + + 17 ) / 82 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT DISTINCT COUNT( * ) * 44 + + 20 * 38 + + + 96 col1
----
900

skipif mysql # not compatible
query I rowsort label-293
SELECT DISTINCT COUNT ( * ) * 44 + + 20 * 38 + + + 96 col1
----
900

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

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

query I rowsort
SELECT + + 93 + - 52
----
41

query II rowsort
SELECT ALL - 86 * 59 * - + 95 + + 24 + - 11 + + 12 * + 89 * + 13 - + - 77 col1, + 7
----
496004
7

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

query I rowsort
SELECT - + 49 * + 8 * - 96 AS col2
----
37632

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-300
SELECT - 10 + 28 col0, 13 + 71 + CAST( NULL AS SIGNED ) * - - 86 col0
----
18
NULL

skipif mysql # not compatible
query II rowsort label-300
SELECT - 10 + 28 col0, 13 + 71 + CAST ( NULL AS INTEGER ) * - - 86 col0
----
18
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-301
SELECT NULLIF ( + 80, - - CAST( - 64 AS DECIMAL ) + + 67 ) * - SUM( DISTINCT 9 ) * - 97 + + 89 * 23 * 32 - - COUNT( * ) DIV - - 61 - + MAX( - COALESCE ( - 66, 76 ) )
----
135278

skipif mysql # not compatible
query I rowsort label-301
SELECT NULLIF ( + 80, - - CAST ( - 64 AS REAL ) + + 67 ) * - SUM ( DISTINCT 9 ) * - 97 + + 89 * 23 * 32 - - COUNT ( * ) / - - 61 - + MAX ( - COALESCE ( - 66, 76 ) )
----
135278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-302
SELECT + + SUM( + ( - + ( - + 77 ) ) ) * CAST( 46 AS SIGNED ) * CAST( NULL AS SIGNED ) - 42 + - + 65 + + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-302
SELECT + + SUM ( + ( - + ( - + 77 ) ) ) * CAST ( 46 AS INTEGER ) * CAST ( NULL AS INTEGER ) - 42 + - + 65 + + 7 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT 83 * + ( - 98 ) + + ( - COUNT( * ) ) * + 49 AS col1
----
-8183

skipif mysql # not compatible
query I rowsort label-303
SELECT 83 * + ( - 98 ) + + ( - COUNT ( * ) ) * + 49 AS col1
----
-8183

onlyif mysql # DIV for integer division: 
query II rowsort label-304
SELECT + - 66 DIV - 76 col0, 53
----
0
53

skipif mysql # not compatible
query II rowsort label-304
SELECT + - 66 / - 76 col0, 53
----
0
53

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

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

query I rowsort
SELECT ALL - 22 * + - 62 * - 33
----
-45012

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT + - COUNT( * ) + + + COUNT( * ) + + 92 * 57 AS col0
----
5244

skipif mysql # not compatible
query I rowsort label-307
SELECT + - COUNT ( * ) + + + COUNT ( * ) + + 92 * 57 AS col0
----
5244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-308
SELECT ALL + CASE - MAX( - 58 ) WHEN 28 + + CAST( 26 AS SIGNED ) THEN NULL WHEN - 67 * 85 THEN NULL ELSE - CAST( - 37 AS SIGNED ) + - - MIN( DISTINCT 66 ) END AS col1
----
103

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL + CASE - MAX ( - 58 ) WHEN 28 + + CAST ( 26 AS INTEGER ) THEN NULL WHEN - 67 * 85 THEN NULL ELSE - CAST ( - 37 AS INTEGER ) + - - MIN ( DISTINCT 66 ) END AS col1
----
103

query I rowsort
SELECT DISTINCT 67 + 1 + + 42 col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT ALL NULLIF ( - + 15, + 83 + - - COUNT( * ) - + - 44 ) + COUNT( * ) - 75 + - COUNT( * ) * - 93 * - MAX( - - 6 ) * + COUNT( * ) + - COALESCE ( + - 87, - 33 + - 27, - 10 ) AS col1
----
-560

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL NULLIF ( - + 15, + 83 + - - COUNT ( * ) - + - 44 ) + COUNT ( * ) - 75 + - COUNT ( * ) * - 93 * - MAX ( - - 6 ) * + COUNT ( * ) + - COALESCE ( + - 87, - 33 + - 27, - 10 ) AS col1
----
-560

query II rowsort
SELECT DISTINCT ( - + 11 ) + - 38, 40 AS col1
----
-49
40

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT ALL 20 * - COUNT( * ) * - - 71
----
-1420

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL 20 * - COUNT ( * ) * - - 71
----
-1420

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

query I rowsort
SELECT DISTINCT + 93 + 80
----
173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-315
SELECT ALL + 75 + - COUNT( * ) + - 13 * + 54 DIV - COUNT( * )
----
776

skipif mysql # not compatible
query I rowsort label-315
SELECT ALL + 75 + - COUNT ( * ) + - 13 * + 54 / - COUNT ( * )
----
776

query I rowsort
SELECT DISTINCT - 20 + + 65 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT 57 + - COUNT( * ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-317
SELECT 57 + - COUNT ( * ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT ALL + 75 + + - ( + 51 ) - + 18 - + 45 * + + COUNT( * ) + - 11 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL + 75 + + - ( + 51 ) - + 18 - + 45 * + + COUNT ( * ) + - 11 AS col0
----
-50

query I rowsort
SELECT 41 - + 84 AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-320
SELECT 86 * + CAST( + 34 AS SIGNED ) AS col0
----
2924

skipif mysql # not compatible
query I rowsort label-320
SELECT 86 * + CAST ( + 34 AS INTEGER ) AS col0
----
2924

query I rowsort
SELECT ALL + 3 * - 30
----
-90

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-324
SELECT DISTINCT - 91 - SUM( DISTINCT 5 ) + COALESCE ( + + 31, - 29, CASE 91 WHEN 38 DIV SUM( - + 7 ) THEN - 86 + + 96 * + 13 * + 7 - + + ( + + 10 ) + - ( + 40 ) * - - 89 * + - 76 * - 3 * COUNT( * ) + 3 - + COUNT( * ) DIV + ( + 6 ) WHEN + + ( COUNT( * ) ) THEN NULL WHEN COUNT( * ) THEN COALESCE ( - 84, - - 81, NULLIF ( + 93, - + 44 ) + - 8 ) ELSE - - 34 - + CAST( + + 98 AS SIGNED ) + - 20 DIV 62 END + 89 DIV - 43, 80 * + 56 ) * - 76 AS col2
----
-2452

skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT - 91 - SUM ( DISTINCT 5 ) + COALESCE ( + + 31, - 29, CASE 91 WHEN 38 / SUM ( - + 7 ) THEN - 86 + + 96 * + 13 * + 7 - + + ( + + 10 ) + - ( + 40 ) * - - 89 * + - 76 * - 3 * COUNT ( * ) + 3 - + COUNT ( * ) / + ( + 6 ) WHEN + + ( COUNT ( * ) ) THEN NULL WHEN COUNT ( * ) THEN COALESCE ( - 84, - - 81, NULLIF ( + 93, - + 44 ) + - 8 ) ELSE - - 34 - + CAST ( + + 98 AS INTEGER ) + - 20 / 62 END + 89 / - 43, 80 * + 56 ) * - 76 AS col2
----
-2452

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

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

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

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

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

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

query I rowsort
SELECT - 98 * 84 AS col1
----
-8232

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

query II rowsort
SELECT ALL - + 47 AS col0, 18 * + 41 * + 92
----
-47
67896

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

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

query I rowsort
SELECT 34 * 89 AS col1
----
3026

query I rowsort
SELECT ALL - - 13
----
13

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

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

query I rowsort
SELECT 57 * + 9 * - 43
----
-22059

query I rowsort
SELECT 44 - 68 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-338
SELECT ( + MAX( ALL + 57 ) ), - 42 * - ( + - ( - + 14 ) ) - + COUNT( - 82 ) AS col1
----
57
587

skipif mysql # not compatible
query II rowsort label-338
SELECT ( + MAX ( ALL + 57 ) ), - 42 * - ( + - ( - + 14 ) ) - + COUNT ( - 82 ) AS col1
----
57
587

query I rowsort
SELECT ALL 26 + + 74 AS col0
----
100

query I rowsort
SELECT 6 - 93
----
-87

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

skipif mysql # not compatible
query I rowsort label-341
SELECT COUNT ( * ) + 97 AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-342
SELECT DISTINCT + 61 * - - 36 / CASE COUNT( * ) WHEN - - COUNT( * ) + - 98 THEN - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-342
SELECT DISTINCT + 61 * - - 36 / CASE COUNT ( * ) WHEN - - COUNT ( * ) + - 98 THEN - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT ALL - COALESCE ( + 85, + 98 - + 35 + COUNT( * ) * - + ( - + 42 ) + + 51 ) + 56 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL - COALESCE ( + 85, + 98 - + 35 + COUNT ( * ) * - + ( - + 42 ) + + 51 ) + 56 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT DISTINCT + MAX( ALL - 32 ) * - 5 AS col1
----
160

skipif mysql # not compatible
query I rowsort label-344
SELECT DISTINCT + MAX ( ALL - 32 ) * - 5 AS col1
----
160

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

query I rowsort
SELECT 51 - + 44 col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-347
SELECT COUNT( * ) + + + NULLIF ( 95, - ( ( + COUNT( * ) ) ) ) AS col1, 90
----
96
90

skipif mysql # not compatible
query II rowsort label-347
SELECT COUNT ( * ) + + + NULLIF ( 95, - ( ( + COUNT ( * ) ) ) ) AS col1, 90
----
96
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-348
SELECT CAST( 73 AS SIGNED ) + 71 + 76 AS col2
----
220

skipif mysql # not compatible
query I rowsort label-348
SELECT CAST ( 73 AS INTEGER ) + 71 + 76 AS col2
----
220

query I rowsort
SELECT NULLIF ( - 54, + 72 + 88 ) * - - 26
----
-1404

onlyif mysql # aggregate syntax: 
query II rowsort label-350
SELECT - COUNT( * ) AS col0, NULLIF ( 33, + + AVG ( DISTINCT + 90 ) * + 52 )
----
-1
33

skipif mysql # not compatible
query II rowsort label-350
SELECT - COUNT ( * ) AS col0, NULLIF ( 33, + + AVG ( DISTINCT + 90 ) * + 52 )
----
-1
33

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT ( COUNT( * ) ) + - 85 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-351
SELECT ( COUNT ( * ) ) + - 85 AS col0
----
-84

query I rowsort
SELECT 86 - - 90
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT ALL 18 * + COALESCE ( + - 98, + MIN( - 73 ) ) AS col1
----
-1764

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL 18 * + COALESCE ( + - 98, + MIN ( - 73 ) ) AS col1
----
-1764

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

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT DISTINCT 36 * - - COUNT( 85 ) * + 57 - - COUNT( * ) + 60 * - - ( 98 )
----
7933

skipif mysql # not compatible
query I rowsort label-355
SELECT DISTINCT 36 * - - COUNT ( 85 ) * + 57 - - COUNT ( * ) + 60 * - - ( 98 )
----
7933

onlyif mysql # DIV for integer division: 
query I rowsort label-356
SELECT ALL - 44 DIV + + 89 * 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL - 44 / + + 89 * 58 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-357
SELECT 76 DIV - + 67
----
-1

skipif mysql # not compatible
query I rowsort label-357
SELECT 76 / - + 67
----
-1

query I rowsort
SELECT ALL - - CASE + - 23 WHEN + 22 THEN - - 71 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-359
SELECT 64 + + 47 DIV + ( - ( + 74 ) ) + NULLIF ( 31, COUNT( + 22 ) * - 69 - COUNT( * ) + 43 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-359
SELECT 64 + + 47 / + ( - ( + 74 ) ) + NULLIF ( 31, COUNT ( + 22 ) * - 69 - COUNT ( * ) + 43 ) AS col1
----
95

query II rowsort
SELECT + 36 AS col2, ( 59 ) AS col0
----
36
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-361
SELECT + 55 * - CAST( NULL AS SIGNED ) + - ( + + COALESCE ( 56, + + 54 + 40 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-361
SELECT + 55 * - CAST ( NULL AS INTEGER ) + - ( + + COALESCE ( 56, + + 54 + 40 ) ) AS col0
----
NULL

query II rowsort
SELECT + + 56, - 16 * - + 55 AS col1
----
56
880

query I rowsort
SELECT ALL 59 * - 82 * 36 + - 73 * 92 + + + 31 * - 51
----
-182465

query II rowsort
SELECT DISTINCT - + 79 col2, + 39 AS col1
----
-79
39

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL + + SUM( - + 56 ) + + + 2 col0
----
-54

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL + + SUM ( - + 56 ) + + + 2 col0
----
-54

query I rowsort
SELECT 33 - - 40 AS col1
----
73

query I rowsort
SELECT DISTINCT 97 * 32
----
3104

query I rowsort
SELECT - 80 * - 17 + + 4
----
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT + - 89 + + 67 * - COUNT( * ) + - 98 AS col2
----
-254

skipif mysql # not compatible
query I rowsort label-369
SELECT + - 89 + + 67 * - COUNT ( * ) + - 98 AS col2
----
-254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-370
SELECT - - 39 + - 26 + - CASE + 49 WHEN + 40 + 98 - 92 * COUNT( * ) THEN - - 64 ELSE NULL END * CAST( + 88 AS SIGNED ) * + MIN( ( - 17 ) ) AS col2, 73 * + CASE - - CASE - ( + CAST( NULL AS SIGNED ) ) WHEN - - COUNT( * ) / + ( - + 88 ) THEN NULL WHEN - 0 THEN - 32 - 49 + - - 23 ELSE NULL END WHEN 69 * - - 24 * + + MIN( DISTINCT - 44 ) THEN - COUNT( ( + + 35 ) ) + AVG ( DISTINCT - - 8 ) + - 25 * - 3 * + AVG ( + 48 ) ELSE NULL END * + - 2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-370
SELECT - - 39 + - 26 + - CASE + 49 WHEN + 40 + 98 - 92 * COUNT ( * ) THEN - - 64 ELSE NULL END * CAST ( + 88 AS INTEGER ) * + MIN ( ( - 17 ) ) AS col2, 73 * + CASE - - CASE - ( + CAST ( NULL AS INTEGER ) ) WHEN - - COUNT ( * ) / + ( - + 88 ) THEN NULL WHEN - 0 THEN - 32 - 49 + - - 23 ELSE NULL END WHEN 69 * - - 24 * + + MIN ( DISTINCT - 44 ) THEN - COUNT ( ( + + 35 ) ) + AVG ( DISTINCT - - 8 ) + - 25 * - 3 * + AVG ( + 48 ) ELSE NULL END * + - 2
----
NULL
NULL

query I rowsort
SELECT - 15 - 17 + 84
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT - 79 + - COUNT( DISTINCT - ( 28 ) ) + - 65
----
-145

skipif mysql # not compatible
query I rowsort label-372
SELECT - 79 + - COUNT ( DISTINCT - ( 28 ) ) + - 65
----
-145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-373
SELECT DISTINCT + CAST( NULL AS SIGNED ) * AVG ( ( - + ( 9 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * AVG ( ( - + ( 9 ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-374
SELECT ALL - MAX( DISTINCT + - 16 ) - 56 * - 30 * - 49 * 80 * + 77 AS col2, ( + ( - - 97 ) ), 1 + - - CAST( + - CASE + - ( + 27 ) WHEN - ( 7 ) THEN NULL WHEN + 85 + + - 33 + - + AVG ( - 59 ) * - 6 THEN - 31 END AS SIGNED ) / - ( - 3 ) col2
----
-507091184
97
NULL

skipif mysql # not compatible
query III rowsort label-374
SELECT ALL - MAX ( DISTINCT + - 16 ) - 56 * - 30 * - 49 * 80 * + 77 AS col2, ( + ( - - 97 ) ), 1 + - - CAST ( + - CASE + - ( + 27 ) WHEN - ( 7 ) THEN NULL WHEN + 85 + + - 33 + - + AVG ( - 59 ) * - 6 THEN - 31 END AS INTEGER ) / - ( - 3 ) col2
----
-507091184
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT + ( - 69 ) + 87 + - - COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-375
SELECT + ( - 69 ) + 87 + - - COUNT ( * ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-376
SELECT - COUNT( * ) * + 32 AS col0, 44 + 94
----
-32
138

skipif mysql # not compatible
query II rowsort label-376
SELECT - COUNT ( * ) * + 32 AS col0, 44 + 94
----
-32
138

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT ALL 31 * COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL 31 * COUNT ( * ) AS col1
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-378
SELECT ALL + CAST( NULL AS SIGNED ) * - 43 AS col1, 17 * 9
----
NULL
153

skipif mysql # not compatible
query II rowsort label-378
SELECT ALL + CAST ( NULL AS INTEGER ) * - 43 AS col1, 17 * 9
----
NULL
153

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

query I rowsort
SELECT 60 AS col2
----
60

query II rowsort
SELECT ALL ( - 55 ), + 97 AS col2
----
-55
97

query I rowsort
SELECT DISTINCT ( - 6 ) AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-383
SELECT - 53 * 2 AS col1, ( 5 ) * CASE + AVG ( ALL + 2 ) WHEN + 66 THEN - CAST( NULL AS SIGNED ) * - 21 * COALESCE ( 66, - - 72 ) ELSE NULL END
----
-106
NULL

skipif mysql # not compatible
query II rowsort label-383
SELECT - 53 * 2 AS col1, ( 5 ) * CASE + AVG ( ALL + 2 ) WHEN + 66 THEN - CAST ( NULL AS INTEGER ) * - 21 * COALESCE ( 66, - - 72 ) ELSE NULL END
----
-106
NULL

query I rowsort
SELECT + - 6 + + 61 AS col0
----
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT + + MIN( + ( - + 61 ) ) - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-386
SELECT + + MIN ( + ( - + 61 ) ) - COUNT ( * )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-387
SELECT + COALESCE ( + CAST( NULL AS SIGNED ), + 79 + + - 49 ) col2
----
30

skipif mysql # not compatible
query I rowsort label-387
SELECT + COALESCE ( + CAST ( NULL AS INTEGER ), + 79 + + - 49 ) col2
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-388
SELECT ALL - 50 * 90 AS col1, COUNT( * ) AS col2
----
-4500
1

skipif mysql # not compatible
query II rowsort label-388
SELECT ALL - 50 * 90 AS col1, COUNT ( * ) AS col2
----
-4500
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-389
SELECT 39 DIV - 45 + - + CAST( COUNT( * ) AS SIGNED ) * + NULLIF ( - COUNT( * ), + 7 ) DIV 92 * 48 DIV + 68 + 21
----
21

skipif mysql # not compatible
query I rowsort label-389
SELECT 39 / - 45 + - + CAST ( COUNT ( * ) AS INTEGER ) * + NULLIF ( - COUNT ( * ), + 7 ) / 92 * 48 / + 68 + 21
----
21

query I rowsort
SELECT + + 71
----
71

query I rowsort
SELECT ALL ( 8 ) * NULLIF ( + - 55, 48 ) + - 3
----
-443

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-392
SELECT DISTINCT - + MIN( + - 63 ) DIV + 68 + + - ( - COUNT( 90 ) ) + - ( - 20 ) * - 29 AS col1
----
-579

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT - + MIN ( + - 63 ) / + 68 + + - ( - COUNT ( 90 ) ) + - ( - 20 ) * - 29 AS col1
----
-579

query I rowsort
SELECT 46 * - - 97 - 71
----
4391

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT ALL + 86 * 45 + + + MIN( + 49 ) + + 73 AS col1
----
3992

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL + 86 * 45 + + + MIN ( + 49 ) + + 73 AS col1
----
3992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-395
SELECT + NULLIF ( + COUNT( * ), - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + - 29 ), + 61 + 18 AS col2
----
1
79

skipif mysql # not compatible
query II rowsort label-395
SELECT + NULLIF ( + COUNT ( * ), - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + - 29 ), + 61 + 18 AS col2
----
1
79

query I rowsort
SELECT + - 43 * - 5 * + 92
----
19780

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

query I rowsort
SELECT + COALESCE ( - 66, + 54 * - ( + CASE 21 WHEN 78 THEN 61 END ) + + + 89 * + + 65, + 37 ) * - NULLIF ( - 73, 14 ) + - 67 * + + 50
----
-8168

query I rowsort
SELECT ALL + 56 * 63 * + 94 + 3 AS col1
----
331635

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

query I rowsort
SELECT - 38 * - + 35 AS col1
----
1330

query I rowsort
SELECT ALL 44 * 17
----
748

query I rowsort
SELECT + 67 * + 3 AS col1
----
201

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

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

query I rowsort
SELECT + 43 - + 46
----
-3

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT - COUNT( + - ( 33 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-408
SELECT - COUNT ( + - ( 33 ) ) AS col2
----
-1

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

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL - 71 / - COUNT ( * )
----
71

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

query II rowsort
SELECT 7 AS col0, - 37
----
7
-37

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

skipif mysql # not compatible
query I rowsort label-412
SELECT - COUNT ( DISTINCT - + 67 ) AS col1
----
-1

query I rowsort
SELECT + 35 * + 34 AS col0
----
1190

query II rowsort
SELECT ALL 70, - 17 AS col2
----
70
-17

query II rowsort
SELECT - 82, 22 - - 37 - 56 + + 83 AS col2
----
-82
86

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

skipif mysql # not compatible
query I rowsort label-416
SELECT - + COUNT ( * ) + COALESCE ( - + 11, - 51 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT - COUNT( DISTINCT - - 27 ) * - NULLIF ( + + 71, - + COUNT( * ) ) col0
----
71

skipif mysql # not compatible
query I rowsort label-417
SELECT - COUNT ( DISTINCT - - 27 ) * - NULLIF ( + + 71, - + COUNT ( * ) ) col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-418
SELECT ALL + 33 DIV 82 + COUNT( * ) * + + 5
----
5

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL + 33 / 82 + COUNT ( * ) * + + 5
----
5

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

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

skipif mysql # not compatible
query I rowsort label-420
SELECT ALL + COUNT ( * ) / + + 20 col2
----
0

query I rowsort
SELECT DISTINCT - + 79 + + + 98 - + - 41 AS col2
----
60

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

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

query II rowsort
SELECT + 16 AS col0, + 55
----
16
55

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-426
SELECT ALL + - 37 DIV + 36
----
-1

skipif mysql # not compatible
query I rowsort label-426
SELECT ALL + - 37 / + 36
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT ALL - COUNT( * ) - 76 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL - COUNT ( * ) - 76 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT ALL MIN( + 44 ) * + MAX( + 70 ) * + SUM( 7 ) * + 87 * + - 92 col2
----
-172566240

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL MIN ( + 44 ) * + MAX ( + 70 ) * + SUM ( 7 ) * + 87 * + - 92 col2
----
-172566240

query I rowsort
SELECT DISTINCT ( 51 ) * + ( + 98 )
----
4998

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT NULLIF ( - - ( - 85 ), - 35 ) * + MAX( DISTINCT + ( - - ( 59 ) ) ) + + 20 + + - CASE - COUNT( * ) WHEN 47 THEN + + 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-431
SELECT NULLIF ( - - ( - 85 ), - 35 ) * + MAX ( DISTINCT + ( - - ( 59 ) ) ) + + 20 + + - CASE - COUNT ( * ) WHEN 47 THEN + + 54 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-432
SELECT ALL 50 / 85 * - - COUNT ( * )
----
0

query I rowsort
SELECT + 75 * - 95 + - 85 * + 34
----
-10015

onlyif mysql # aggregate syntax: 
query II rowsort label-434
SELECT 48 * + - 48 + - COUNT( DISTINCT - 47 ) col1, + 11 AS col2
----
-2305
11

skipif mysql # not compatible
query II rowsort label-434
SELECT 48 * + - 48 + - COUNT ( DISTINCT - 47 ) col1, + 11 AS col2
----
-2305
11

query I rowsort
SELECT 79 * - 71 * - 18 * - - 89 * - + 22
----
-197683596

query I rowsort
SELECT 57 * 59 AS col1
----
3363

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

query I rowsort
SELECT - 86 col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT MIN( - - ( - 59 ) ) * + 75 AS col2
----
-4425

skipif mysql # not compatible
query I rowsort label-439
SELECT MIN ( - - ( - 59 ) ) * + 75 AS col2
----
-4425

query I rowsort
SELECT ALL 54 * - + ( 56 ) AS col0
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT SUM( + 79 ) + 68 * 53 * - ( + MAX( - + 51 ) )
----
183883

skipif mysql # not compatible
query I rowsort label-441
SELECT SUM ( + 79 ) + 68 * 53 * - ( + MAX ( - + 51 ) )
----
183883

query I rowsort
SELECT DISTINCT 89 * - 72
----
-6408

query I rowsort
SELECT DISTINCT 6 * + - ( + - 50 )
----
300

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

skipif mysql # not compatible
query I rowsort label-444
SELECT 95 + - COUNT ( * ) + - COUNT ( * ) AS col0
----
93

query I rowsort
SELECT 85 AS col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-446
SELECT 16 + CAST( - + 44 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-446
SELECT 16 + CAST ( - + 44 AS INTEGER )
----
-28

query II rowsort
SELECT - 49 * + ( + ( 20 ) ) AS col0, - 2 AS col2
----
-980
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-448
SELECT ALL NULLIF ( - COUNT( * ), + 15 * - + 47 ) + + + COALESCE ( 21, 90, + SUM( ALL 81 ) * - 8 DIV + COALESCE ( + 13, - - 49, + - 6 ), + + 76 ) col1
----
20

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL NULLIF ( - COUNT ( * ), + 15 * - + 47 ) + + + COALESCE ( 21, 90, + SUM ( ALL 81 ) * - 8 / + COALESCE ( + 13, - - 49, + - 6 ), + + 76 ) col1
----
20

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

query I rowsort
SELECT ALL - 59 + - 96 * + 46 AS col0
----
-4475

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-452
SELECT ALL + 68 * - + CASE - + CASE + ( - + 14 ) WHEN CAST( COUNT( * ) AS SIGNED ) + + CAST( - 51 AS SIGNED ) THEN + 23 END WHEN - 25 * + 25 THEN COUNT( * ) END - 50 * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL + 68 * - + CASE - + CASE + ( - + 14 ) WHEN CAST ( COUNT ( * ) AS INTEGER ) + + CAST ( - 51 AS INTEGER ) THEN + 23 END WHEN - 25 * + 25 THEN COUNT ( * ) END - 50 * - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT DISTINCT + + COUNT( * ) * 75 * + 31 * 1
----
2325

skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT + + COUNT ( * ) * 75 * + 31 * 1
----
2325

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT + SUM( 37 ) * - ( 62 ) - - COUNT( * ) + + - ( - 60 ) * - CASE ( + 24 ) WHEN - SUM( ALL - - 12 ) + + - 54 - + 43 THEN - SUM( ALL + + 84 ) + + - 77 ELSE NULL END + - ( + COUNT( DISTINCT - 19 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-454
SELECT + SUM ( 37 ) * - ( 62 ) - - COUNT ( * ) + + - ( - 60 ) * - CASE ( + 24 ) WHEN - SUM ( ALL - - 12 ) + + - 54 - + 43 THEN - SUM ( ALL + + 84 ) + + - 77 ELSE NULL END + - ( + COUNT ( DISTINCT - 19 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-455
SELECT COALESCE ( + SUM( + 43 ), - - 82, + 0 DIV - 34 + - COUNT( - 65 ) * 52 ) AS col2, - 57 AS col1
----
43
-57

skipif mysql # not compatible
query II rowsort label-455
SELECT COALESCE ( + SUM ( + 43 ), - - 82, + 0 / - 34 + - COUNT ( - 65 ) * 52 ) AS col2, - 57 AS col1
----
43
-57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT DISTINCT - NULLIF ( + 34, + + 61 * 83 * + + 51 + - COUNT( DISTINCT + - 78 ) ) * - 78
----
2652

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT - NULLIF ( + 34, + + 61 * 83 * + + 51 + - COUNT ( DISTINCT + - 78 ) ) * - 78
----
2652

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-459
SELECT ALL - - COALESCE ( 37, 21 - 34 DIV - 62, + 72 * + 75 * 55 - + 56 - + CASE - 37 WHEN - 48 DIV 29 THEN NULL ELSE + 0 END + COALESCE ( - 40, 19, - 32 * + 38 * - + COUNT( * ) + 28 DIV 51 ), - - 81 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL - - COALESCE ( 37, 21 - 34 / - 62, + 72 * + 75 * 55 - + 56 - + CASE - 37 WHEN - 48 / 29 THEN NULL ELSE + 0 END + COALESCE ( - 40, 19, - 32 * + 38 * - + COUNT ( * ) + 28 / 51 ), - - 81 ) AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-460
SELECT + 1 * + - COALESCE ( + COUNT( * ), + - 7, - 72 + 83 ) * - 80 - - 95 - - CAST( NULL AS SIGNED ) * NULLIF ( COUNT( * ), 85 + - 50 + + AVG ( DISTINCT + 70 ) ) + - + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-460
SELECT + 1 * + - COALESCE ( + COUNT ( * ), + - 7, - 72 + 83 ) * - 80 - - 95 - - CAST ( NULL AS INTEGER ) * NULLIF ( COUNT ( * ), 85 + - 50 + + AVG ( DISTINCT + 70 ) ) + - + 31 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 75
----
75

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

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

query I rowsort
SELECT ALL - 23 col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-464
SELECT ALL - CASE 4 WHEN + + MIN( + 92 ) THEN NULL WHEN - - 26 THEN + 1 WHEN + 29 / - 94 THEN - + CAST( 63 AS SIGNED ) - + 19 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL - CASE 4 WHEN + + MIN ( + 92 ) THEN NULL WHEN - - 26 THEN + 1 WHEN + 29 / - 94 THEN - + CAST ( 63 AS INTEGER ) - + 19 END AS col2
----
NULL

query I rowsort
SELECT 25 * - 52 AS col2
----
-1300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-466
SELECT 44 * - 66 + 19 + - + 39 * MAX( ALL + + CAST( NULL AS SIGNED ) ) * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-466
SELECT 44 * - 66 + 19 + - + 39 * MAX ( ALL + + CAST ( NULL AS INTEGER ) ) * + 86
----
NULL

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

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

query II rowsort
SELECT ALL - 95 AS col0, 43
----
-95
43

query I rowsort
SELECT ALL + 53 * + 22 AS col0
----
1166

query I rowsort
SELECT DISTINCT 13 * - + 17
----
-221

query I rowsort
SELECT ALL 72 * + 48
----
3456

query I rowsort
SELECT DISTINCT 91
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-473
SELECT CASE - 2 WHEN + 16 THEN - 26 + + - 36 DIV 2 + 74 DIV + + 30 ELSE - 91 DIV - 47 END DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-473
SELECT CASE - 2 WHEN + 16 THEN - 26 + + - 36 / 2 + 74 / + + 30 ELSE - 91 / - 47 END / 53
----
0

query I rowsort
SELECT CASE - 89 WHEN - 77 + 32 THEN CASE + 91 WHEN + 21 THEN - 12 END END - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT COALESCE ( - 9, + 58 ) * + 63 * + COUNT( * ) col2
----
-567

skipif mysql # not compatible
query I rowsort label-475
SELECT COALESCE ( - 9, + 58 ) * + 63 * + COUNT ( * ) col2
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT ALL 0 + CASE - ( - 14 ) WHEN 74 + - - 67 THEN - 1 * + SUM( + 78 ) + + 92 ELSE + - 59 END AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL 0 + CASE - ( - 14 ) WHEN 74 + - - 67 THEN - 1 * + SUM ( + 78 ) + + 92 ELSE + - 59 END AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT + 38 * + - 76 + - 94 * + 15 * + COUNT( * ) AS col0
----
-4298

skipif mysql # not compatible
query I rowsort label-477
SELECT + 38 * + - 76 + - 94 * + 15 * + COUNT ( * ) AS col0
----
-4298

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

query I rowsort
SELECT + 47 + 33 * - - ( + ( - 21 ) )
----
-646

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

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT ALL + ( - 8 ) * - 56 * + COALESCE ( + 20, 63 * - - 21 * 90 + ( - 66 ) ) - - NULLIF ( + 25, - - 39 + 52 + - - 92 ) + + COUNT( * ) + NULLIF ( - - NULLIF ( - 77, + 76 ), + - COUNT( * ) + 32 ) AS col1
----
8909

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL + ( - 8 ) * - 56 * + COALESCE ( + 20, 63 * - - 21 * 90 + ( - 66 ) ) - - NULLIF ( + 25, - - 39 + 52 + - - 92 ) + + COUNT ( * ) + NULLIF ( - - NULLIF ( - 77, + 76 ), + - COUNT ( * ) + 32 ) AS col1
----
8909

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT + + 39 + + CASE + 12 WHEN 81 THEN ( + 79 ) + + 53 WHEN + ( + 43 ) + 7 THEN + - SUM( ALL - 9 ) * + 86 + + 63 - 67 / - - 47 + - 82 * 48 END + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-482
SELECT + + 39 + + CASE + 12 WHEN 81 THEN ( + 79 ) + + 53 WHEN + ( + 43 ) + 7 THEN + - SUM ( ALL - 9 ) * + 86 + + 63 - 67 / - - 47 + - 82 * 48 END + - 80
----
NULL

query I rowsort
SELECT ALL 53 + - 88 AS col2
----
-35

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

query I rowsort
SELECT ALL 62 * 83
----
5146

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

query I rowsort
SELECT - 19 * - + 0 * + 20
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-489
SELECT + ( - - COUNT( * ) ) + - 59 AS col1, COALESCE ( - COUNT( * ), 82, - 77 * - - 88 ) AS col1
----
-58
-1

skipif mysql # not compatible
query II rowsort label-489
SELECT + ( - - COUNT ( * ) ) + - 59 AS col1, COALESCE ( - COUNT ( * ), 82, - 77 * - - 88 ) AS col1
----
-58
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-490
SELECT ALL - ( + COUNT( - - 44 ) ), 21 AS col0
----
-1
21

skipif mysql # not compatible
query II rowsort label-490
SELECT ALL - ( + COUNT ( - - 44 ) ), 21 AS col0
----
-1
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT DISTINCT + + 51 * - + 33 - - 40 + - MIN( DISTINCT - 19 ) AS col2
----
-1624

skipif mysql # not compatible
query I rowsort label-492
SELECT DISTINCT + + 51 * - + 33 - - 40 + - MIN ( DISTINCT - 19 ) AS col2
----
-1624

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT ALL - - SUM( DISTINCT + 40 ) * - + COUNT( * ) * + - 84 * - - SUM( DISTINCT - 91 )
----
-305760

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL - - SUM ( DISTINCT + 40 ) * - + COUNT ( * ) * + - 84 * - - SUM ( DISTINCT - 91 )
----
-305760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-494
SELECT + MIN( ALL + 21 ) DIV - 84 * + - 26 * - - 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-494
SELECT + MIN ( ALL + 21 ) / - 84 * + - 26 * - - 65 AS col1
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT + - NULLIF ( NULLIF ( - 39, + 0 - - - 47 ), - 40 + + 27 + - 78 + - + NULLIF ( - MAX( - 66 ), + - 89 - - 91 ) / + 77 ) + 9 * - 89 + - 89
----
-851

skipif mysql # not compatible
query I rowsort label-497
SELECT + - NULLIF ( NULLIF ( - 39, + 0 - - - 47 ), - 40 + + 27 + - 78 + - + NULLIF ( - MAX ( - 66 ), + - 89 - - 91 ) / + 77 ) + 9 * - 89 + - 89
----
-851

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT - 3 * - - 5 * - 12 * COALESCE ( + COUNT( * ), + 28 + + - 96 )
----
180

skipif mysql # not compatible
query I rowsort label-498
SELECT - 3 * - - 5 * - 12 * COALESCE ( + COUNT ( * ), + 28 + + - 96 )
----
180

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

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

query I rowsort
SELECT ALL + 84 * - + 25 * - - 2 AS col2
----
-4200

query I rowsort
SELECT COALESCE ( - 49, + 62 ) AS col2
----
-49

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-503
SELECT CASE 14 WHEN - COALESCE ( - 78, - + 90 - - + COALESCE ( + 60, + - 18 ) ) + + 79 + + COUNT( * ) * + 72 THEN COUNT( * ) ELSE + - 85 * - NULLIF ( + 26, + 98 * + ( - - COUNT( * ) ) - - + 84 - + NULLIF ( - 94, 89 - - COUNT( * ) ) ) END * + - ( - CAST( NULL AS SIGNED ) ) * - ( + - 91 ) / 48 + + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-503
SELECT CASE 14 WHEN - COALESCE ( - 78, - + 90 - - + COALESCE ( + 60, + - 18 ) ) + + 79 + + COUNT ( * ) * + 72 THEN COUNT ( * ) ELSE + - 85 * - NULLIF ( + 26, + 98 * + ( - - COUNT ( * ) ) - - + 84 - + NULLIF ( - 94, 89 - - COUNT ( * ) ) ) END * + - ( - CAST ( NULL AS INTEGER ) ) * - ( + - 91 ) / 48 + + - 82
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-505
SELECT ALL + CAST( + 1 AS SIGNED ) * + 88 + + 65 AS col0
----
153

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL + CAST ( + 1 AS INTEGER ) * + 88 + + 65 AS col0
----
153

query I rowsort
SELECT DISTINCT + 99
----
99

query I rowsort
SELECT NULLIF ( - + 29, NULLIF ( - 78, 96 ) + - 89 + + 5 ) AS col0
----
-29

query I rowsort
SELECT - 66 + 72 AS col2
----
6

query II rowsort
SELECT ALL + 11 AS col1, + 90
----
11
90

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

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

skipif mysql # not compatible
query I rowsort label-511
SELECT - COUNT ( * ) * - 18 / - COUNT ( DISTINCT + + 73 )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-512
SELECT ALL 47 * - + 76 * + 63 + + 30 + 39 DIV ( + + 48 ) + 3 - - + 82 + + + COALESCE ( - 33, - + NULLIF ( - + 31, 79 ), + CAST( NULL AS SIGNED ) ) + + + 4 - COUNT( * ) * - 92 DIV - + 42 + + 75 DIV - 95, - 44 DIV + 87 * - 18 * - 31 AS col1
----
-224952
0

skipif mysql # not compatible
query II rowsort label-512
SELECT ALL 47 * - + 76 * + 63 + + 30 + 39 / ( + + 48 ) + 3 - - + 82 + + + COALESCE ( - 33, - + NULLIF ( - + 31, 79 ), + CAST ( NULL AS INTEGER ) ) + + + 4 - COUNT ( * ) * - 92 / - + 42 + + 75 / - 95, - 44 / + 87 * - 18 * - 31 AS col1
----
-224952
0

query I rowsort
SELECT + 95 + - 82 + - - 44
----
57

query I rowsort
SELECT - ( 40 ) + + - 62 col1
----
-102

query I rowsort
SELECT + 12 + + 55 * + 89
----
4907

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-516
SELECT DISTINCT 15 * + 28 * + + 15 + - + 93 * 28 * - COUNT( * ) * + CAST( - 54 AS SIGNED ) + - 74 col2
----
-134390

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT 15 * + 28 * + + 15 + - + 93 * 28 * - COUNT ( * ) * + CAST ( - 54 AS INTEGER ) + - 74 col2
----
-134390

onlyif mysql # aggregate syntax: 
query II rowsort label-517
SELECT - COUNT( + + 28 ) AS col2, 79 + 32
----
-1
111

skipif mysql # not compatible
query II rowsort label-517
SELECT - COUNT ( + + 28 ) AS col2, 79 + 32
----
-1
111

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT DISTINCT + 68 + - + COUNT( 33 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT + 68 + - + COUNT ( 33 ) AS col0
----
67

query I rowsort
SELECT ALL + 32 * - - 39 + 50 col1
----
1298

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

onlyif mysql # aggregate syntax: 
query II rowsort label-522
SELECT - 39 col0, COALESCE ( 1, 23, CASE COUNT( * ) WHEN NULLIF ( - 84, - + 26 ) THEN - CASE + MIN( DISTINCT + + 2 ) WHEN - 76 THEN + 51 ELSE NULL END END, - - ( + - 23 ) )
----
-39
1

skipif mysql # not compatible
query II rowsort label-522
SELECT - 39 col0, COALESCE ( 1, 23, CASE COUNT ( * ) WHEN NULLIF ( - 84, - + 26 ) THEN - CASE + MIN ( DISTINCT + + 2 ) WHEN - 76 THEN + 51 ELSE NULL END END, - - ( + - 23 ) )
----
-39
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-523
SELECT + 67 + + COALESCE ( - COUNT( * ), + 79 + + CAST( - 24 AS SIGNED ) ), + 2 AS col2
----
66
2

skipif mysql # not compatible
query II rowsort label-523
SELECT + 67 + + COALESCE ( - COUNT ( * ), + 79 + + CAST ( - 24 AS INTEGER ) ), + 2 AS col2
----
66
2

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT + + COALESCE ( 5, - CASE - 56 WHEN - - 29 + 0 + - COUNT( * ) THEN - - 1 + + + COUNT( * ) + - 6 + 51 WHEN 66 - COUNT( ALL - 2 ) THEN NULL WHEN 85 * + 97 + 43 THEN NULL ELSE NULL END ) * - 37 AS col2
----
-185

skipif mysql # not compatible
query I rowsort label-524
SELECT + + COALESCE ( 5, - CASE - 56 WHEN - - 29 + 0 + - COUNT ( * ) THEN - - 1 + + + COUNT ( * ) + - 6 + 51 WHEN 66 - COUNT ( ALL - 2 ) THEN NULL WHEN 85 * + 97 + 43 THEN NULL ELSE NULL END ) * - 37 AS col2
----
-185

query I rowsort
SELECT + 81 + + 21 AS col0
----
102

query I rowsort
SELECT ALL 50 - + 13 + + 43 AS col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-527
SELECT - COUNT( * ), - 29 DIV - 67 AS col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-527
SELECT - COUNT ( * ), - 29 / - 67 AS col2
----
-1
0

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

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

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

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

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

query I rowsort
SELECT ALL + 66 * 47 AS col2
----
3102

query I rowsort
SELECT 20 col1
----
20

query II rowsort
SELECT DISTINCT 86, + 89 AS col1
----
86
89

query II rowsort
SELECT - 8, ( 17 ) * + 21 + + 19 col0
----
-8
376

query I rowsort
SELECT - NULLIF ( + 97, 19 + 97 )
----
-97

query I rowsort
SELECT + - 69 + + 5 + - 78 AS col1
----
-142

query II rowsort
SELECT ALL 53, 2 + + 11 AS col2
----
53
13

query I rowsort
SELECT ALL 80 * - 48
----
-3840

query I rowsort
SELECT DISTINCT 44 * - - 37
----
1628

onlyif mysql # DIV for integer division: 
query I rowsort label-540
SELECT ALL - 76 DIV - - CASE + 85 WHEN 37 THEN NULL WHEN - AVG ( DISTINCT - + 72 ) + + + 8 THEN + - 47 DIV - ( + + 44 ) ELSE 45 + - - 14 END + + + ( 0 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-540
SELECT ALL - 76 / - - CASE + 85 WHEN 37 THEN NULL WHEN - AVG ( DISTINCT - + 72 ) + + + 8 THEN + - 47 / - ( + + 44 ) ELSE 45 + - - 14 END + + + ( 0 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-541
SELECT + 73 DIV - COUNT( * ) AS col0, + 12 + - - COUNT( * ) AS col2
----
-73
13

skipif mysql # not compatible
query II rowsort label-541
SELECT + 73 / - COUNT ( * ) AS col0, + 12 + - - COUNT ( * ) AS col2
----
-73
13

onlyif mysql # DIV for integer division: 
query I rowsort label-542
SELECT ALL + 26 DIV + 62 + 28 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL + 26 / + 62 + 28 AS col0
----
28

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-544
SELECT ALL COUNT( * ) DIV - 69 + + 23 * - 42 + - 6
----
-972

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL COUNT ( * ) / - 69 + + 23 * - 42 + - 6
----
-972

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

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT ALL 31 DIV + COALESCE ( - 85, - - 23 )
----
0

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL 31 / + COALESCE ( - 85, - - 23 )
----
0

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-548
SELECT - CAST( NULL AS DECIMAL ) * + 74, + 77 + - 13 AS col2
----
NULL
64

skipif mysql # not compatible
query II rowsort label-548
SELECT - CAST ( NULL AS REAL ) * + 74, + 77 + - 13 AS col2
----
NULL
64

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT ALL 74 / CASE + 2 WHEN + 14 * + 45 * 37 THEN NULL WHEN + 89 THEN - 5 + - MIN( + 99 ) WHEN + 61 THEN + - 38 * - 90 END * + + 22 + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL 74 / CASE + 2 WHEN + 14 * + 45 * 37 THEN NULL WHEN + 89 THEN - 5 + - MIN ( + 99 ) WHEN + 61 THEN + - 38 * - 90 END * + + 22 + 93 AS col1
----
NULL

query III rowsort
SELECT ( - - 76 ) AS col0, + 55, + 28 + - 85 col2
----
76
55
-57

query I rowsort
SELECT ( - - 79 ) col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-552
SELECT - CAST( + MAX( DISTINCT - 79 ) AS SIGNED ) * + + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-552
SELECT - CAST ( + MAX ( DISTINCT - 79 ) AS INTEGER ) * + + COUNT ( * )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT ALL NULLIF ( - SUM( + - 68 ), + + 60 ) * 68 + - + 41 AS col2
----
4583

skipif mysql # not compatible
query I rowsort label-553
SELECT ALL NULLIF ( - SUM ( + - 68 ), + + 60 ) * 68 + - + 41 AS col2
----
4583

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-555
SELECT DISTINCT - CAST( - ( - 93 ) AS SIGNED )
----
-93

skipif mysql # not compatible
query I rowsort label-555
SELECT DISTINCT - CAST ( - ( - 93 ) AS INTEGER )
----
-93

query I rowsort
SELECT DISTINCT + 36 + + 18 - - + 45 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT 10 * + + CASE + 82 WHEN - COUNT( * ) * - + 91 * + 32 + + COUNT( ALL 60 ) THEN + 69 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-557
SELECT 10 * + + CASE + 82 WHEN - COUNT ( * ) * - + 91 * + 32 + + COUNT ( ALL 60 ) THEN + 69 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 84 + 39 + - 42 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT MIN( 56 ) col1
----
56

skipif mysql # not compatible
query I rowsort label-559
SELECT MIN ( 56 ) col1
----
56

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-561
SELECT + COUNT( * ) + - 26, + 51 AS col1
----
-25
51

skipif mysql # not compatible
query II rowsort label-561
SELECT + COUNT ( * ) + - 26, + 51 AS col1
----
-25
51

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

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

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

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

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

query I rowsort
SELECT 63 * - 3
----
-189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-567
SELECT - 45 + - 8 / - + CAST( NULL AS SIGNED ) * - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-567
SELECT - 45 + - 8 / - + CAST ( NULL AS INTEGER ) * - 30 AS col0
----
NULL

query II rowsort
SELECT DISTINCT - - 28 * - 86, + 37 AS col2
----
-2408
37

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT ALL - MAX( DISTINCT - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL - MAX ( DISTINCT - 8 )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-570
SELECT - 67 + + 20 DIV MAX( ALL + + 68 ) AS col1
----
-67

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

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

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

query I rowsort
SELECT + 95 + 70 AS col0
----
165

query I rowsort
SELECT + 34 + - + 29
----
5

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

skipif mysql # not compatible
query I rowsort label-574
SELECT + COUNT ( * ) / 16
----
0

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

query I rowsort
SELECT 11 * - + 35 AS col0
----
-385

query I rowsort
SELECT ALL + 74 + 97 AS col1
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-578
SELECT ALL 85 + MAX( - 81 ) + - 41 DIV 88 * + 56 + + 42 + - - 45 - - 74 * 81 * - 21 AS col0
----
-125783

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL 85 + MAX ( - 81 ) + - 41 / 88 * + 56 + + 42 + - - 45 - - 74 * 81 * - 21 AS col0
----
-125783

query I rowsort
SELECT 76 * + + 16 AS col0
----
1216

query II rowsort
SELECT 48 AS col1, 19 * - ( - 5 ) AS col2
----
48
95

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

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL 25 + + + COUNT ( * ) AS col1
----
26

query I rowsort
SELECT 66 + + 84 col1
----
150

query I rowsort
SELECT DISTINCT 43 * ( 33 )
----
1419

query I rowsort
SELECT 11 - - 99
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-585
SELECT 14 * - - ( + SUM( ALL - CAST( NULL AS SIGNED ) ) )
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-586
SELECT DISTINCT - MAX ( - + 48 )
----
48

query II rowsort
SELECT DISTINCT 48 + 94 + - 43, - 96 + - 43 AS col2
----
99
-139

onlyif mysql # DIV for integer division: 
query I rowsort label-588
SELECT DISTINCT - 77 DIV - + 86
----
0

skipif mysql # not compatible
query I rowsort label-588
SELECT DISTINCT - 77 / - + 86
----
0

query I rowsort
SELECT ALL + COALESCE ( - 58, 24, 30 + + ( + 86 ) - + 99 + + 82 ) - + - NULLIF ( + ( - + 74 ), - 79 )
----
-132

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

query II rowsort
SELECT ALL - 39, 89 AS col0
----
-39
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-592
SELECT COALESCE ( - + MAX( + - 54 ), 81 DIV CAST( - 39 AS SIGNED ) ) + 61 DIV - 99 + - 74 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-592
SELECT COALESCE ( - + MAX ( + - 54 ), 81 / CAST ( - 39 AS INTEGER ) ) + 61 / - 99 + - 74 AS col0
----
-20

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

skipif mysql # not compatible
query I rowsort label-593
SELECT DISTINCT 76 / - + COUNT ( * ) AS col0
----
-76

query I rowsort
SELECT ALL 35 - - 43
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT 91 * ( - + 62 ) * + + ( - 78 ) * + 11 - + 68 + + 26 + - MAX( + - 53 ) * - 53 AS col0
----
4837985

skipif mysql # not compatible
query I rowsort label-595
SELECT 91 * ( - + 62 ) * + + ( - 78 ) * + 11 - + 68 + + 26 + - MAX ( + - 53 ) * - 53 AS col0
----
4837985

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-596
SELECT - 88 * - CAST( 30 AS SIGNED ) + NULLIF ( - MAX( + 45 ), 53 )
----
2595

skipif mysql # not compatible
query I rowsort label-596
SELECT - 88 * - CAST ( 30 AS INTEGER ) + NULLIF ( - MAX ( + 45 ), 53 )
----
2595

query I rowsort
SELECT ALL + 40 * + 62 col0
----
2480

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT 8 / - CASE - 41 WHEN + 82 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-598
SELECT 8 / - CASE - 41 WHEN + 82 THEN COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT + + 54
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-600
SELECT ALL - 49 * + 60 + - NULLIF ( - 11, - + 23 * - - CAST( NULL AS SIGNED ) - - ( ( - ( - + 62 ) ) ) ) * - - 77 AS col0
----
-2093

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL - 49 * + 60 + - NULLIF ( - 11, - + 23 * - - CAST ( NULL AS INTEGER ) - - ( ( - ( - + 62 ) ) ) ) * - - 77 AS col0
----
-2093

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

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT 47 * + NULLIF ( - 26, - 28 / 98 * - + 2 ) * COUNT( * )
----
-1222

skipif mysql # not compatible
query I rowsort label-602
SELECT 47 * + NULLIF ( - 26, - 28 / 98 * - + 2 ) * COUNT ( * )
----
-1222

query II rowsort
SELECT ALL + 34 AS col0, 16 * - 5 - 94 * + 39 col1
----
34
-3746

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

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

query I rowsort
SELECT DISTINCT - 95 col2
----
-95

query I rowsort
SELECT 26 * + 52 * + 69
----
93288

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

query I rowsort
SELECT - 74 * + 64 AS col1
----
-4736

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

query I rowsort
SELECT DISTINCT - ( - 42 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT - 27 + - 61 - + COUNT( * ) + - 38 AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-611
SELECT - 27 + - 61 - + COUNT ( * ) + - 38 AS col0
----
-127

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

onlyif mysql # DIV for integer division: 
query I rowsort label-613
SELECT + ( + - 88 ) DIV 33 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-613
SELECT + ( + - 88 ) / 33 AS col2
----
-2

query I rowsort
SELECT ALL - - 34 + - 56 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT DISTINCT - + NULLIF ( + 35, - + COUNT( * ) * - + 20 ) + + 53 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT - + NULLIF ( + 35, - + COUNT ( * ) * - + 20 ) + + 53 AS col2
----
18

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

skipif mysql # not compatible
query I rowsort label-616
SELECT DISTINCT + 45 / + COUNT ( * ) col1
----
45

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-619
SELECT DISTINCT - 71 + COALESCE ( + - 56, CAST( 1 AS SIGNED ) + - - ( + 48 ) )
----
-127

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT - 71 + COALESCE ( + - 56, CAST ( 1 AS INTEGER ) + - - ( + 48 ) )
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-620
SELECT DISTINCT + 8 * + 64 AS col1, COALESCE ( + 2, + NULLIF ( - 22, 98 * + + CAST( - SUM( + 69 ) AS SIGNED ) ), + 49 + + 27 * - COUNT( * ) * + NULLIF ( - - COUNT( * ), 14 ) DIV 82, + - 79, - MIN( 45 ) ) AS col0
----
512
2

skipif mysql # not compatible
query II rowsort label-620
SELECT DISTINCT + 8 * + 64 AS col1, COALESCE ( + 2, + NULLIF ( - 22, 98 * + + CAST ( - SUM ( + 69 ) AS INTEGER ) ), + 49 + + 27 * - COUNT ( * ) * + NULLIF ( - - COUNT ( * ), 14 ) / 82, + - 79, - MIN ( 45 ) ) AS col0
----
512
2

query I rowsort
SELECT ALL - 53 + + + 59 AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-622
SELECT ALL + 99 + + - 38 DIV 43 col0
----
99

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL + 99 + + - 38 / 43 col0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-623
SELECT 66 DIV 44 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-623
SELECT 66 / 44 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT NULLIF ( - 31, - COUNT( * ) * + COUNT( * ) * - CASE 65 WHEN - COUNT( * ) * - ( - + AVG ( DISTINCT + 99 ) ) / - 41 + - MIN( DISTINCT + - 49 ) THEN ( 16 ) END * - 80 + + 22 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-624
SELECT NULLIF ( - 31, - COUNT ( * ) * + COUNT ( * ) * - CASE 65 WHEN - COUNT ( * ) * - ( - + AVG ( DISTINCT + 99 ) ) / - 41 + - MIN ( DISTINCT + - 49 ) THEN ( 16 ) END * - 80 + + 22 ) AS col0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-625
SELECT 54 DIV + + 34 + + - 95 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-625
SELECT 54 / + + 34 + + - 95 AS col0
----
-94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT COALESCE ( + COUNT( * ), 14 )
----
1

skipif mysql # not compatible
query I rowsort label-627
SELECT COALESCE ( + COUNT ( * ), 14 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT ALL + CASE - 13 WHEN + 59 THEN - ( + + COALESCE ( + 53, COUNT( * ), - 97 * - - 52 ) ) * + + ( + 63 ) ELSE NULL END * - 32 * - 27 / 73 - 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL + CASE - 13 WHEN + 59 THEN - ( + + COALESCE ( + 53, COUNT ( * ), - 97 * - - 52 ) ) * + + ( + 63 ) ELSE NULL END * - 32 * - 27 / 73 - 67 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT ALL 71 * + - MIN( - CASE - ( - 38 ) WHEN 3 THEN NULL WHEN - + 25 * + 86 THEN - 5 ELSE - + 77 END )
----
-5467

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL 71 * + - MIN ( - CASE - ( - 38 ) WHEN 3 THEN NULL WHEN - + 25 * + 86 THEN - 5 ELSE - + 77 END )
----
-5467

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

query I rowsort
SELECT + 12 * - 56
----
-672

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-634
SELECT MAX( + 68 ) * ( - 8 ) + - + AVG ( - 40 ) + + 79 - - 42 + + CAST( NULL AS SIGNED ) - + + 77 + - 28 * + - 58 * 53 + + 13 * - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-634
SELECT MAX ( + 68 ) * ( - 8 ) + - + AVG ( - 40 ) + + 79 - - 42 + + CAST ( NULL AS INTEGER ) - + + 77 + - 28 * + - 58 * 53 + + 13 * - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT + 82 * 38 AS col1
----
3116

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

query I rowsort
SELECT DISTINCT + 43 col2
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-638
SELECT ALL + - 3 DIV + + 7 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL + - 3 / + + 7 AS col0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-640
SELECT + + CAST( - 13 AS SIGNED ) + + 96
----
83

skipif mysql # not compatible
query I rowsort label-640
SELECT + + CAST ( - 13 AS INTEGER ) + + 96
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT - SUM( + - 29 ) * - 5 * 24 * - 32 * - ( 77 ) col1
----
-8574720

skipif mysql # not compatible
query I rowsort label-641
SELECT - SUM ( + - 29 ) * - 5 * 24 * - 32 * - ( 77 ) col1
----
-8574720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-642
SELECT ALL CAST( NULL AS SIGNED ) / - 68 - - 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL CAST ( NULL AS INTEGER ) / - 68 - - 4 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT 87 * 17 + + 3 * + + ( + COUNT( * ) ) + + 4 + 3 * 64 * 22 + 7 AS col0
----
5717

skipif mysql # not compatible
query I rowsort label-644
SELECT 87 * 17 + + 3 * + + ( + COUNT ( * ) ) + + 4 + 3 * 64 * 22 + 7 AS col0
----
5717

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT - CASE 71 WHEN - SUM( + ( - 60 ) ) + 73 THEN + 88 * + 71 * 89 + 80 * + 14 + + COUNT( 45 ) + - MAX( ALL 4 ) * - - 61 WHEN + - 98 THEN COUNT( - + 67 ) WHEN + 64 - + + 21 * - + 52 THEN - 96 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-645
SELECT - CASE 71 WHEN - SUM ( + ( - 60 ) ) + 73 THEN + 88 * + 71 * 89 + 80 * + 14 + + COUNT ( 45 ) + - MAX ( ALL 4 ) * - - 61 WHEN + - 98 THEN COUNT ( - + 67 ) WHEN + 64 - + + 21 * - + 52 THEN - 96 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + + 36 + + 51 + + 99 + - 83 AS col1
----
103

query I rowsort
SELECT + - 38 + + ( - - 4 )
----
-34

query I rowsort
SELECT ALL + 32 + - 67
----
-35

query I rowsort
SELECT ALL - + 23 + - 53 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-650
SELECT ALL COUNT( * ) * - 97 AS col2, 35
----
-97
35

skipif mysql # not compatible
query II rowsort label-650
SELECT ALL COUNT ( * ) * - 97 AS col2, 35
----
-97
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-651
SELECT ALL + CAST( - 2 AS SIGNED ) + + 11 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-651
SELECT ALL + CAST ( - 2 AS INTEGER ) + + 11 AS col2
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-652
SELECT DISTINCT 31 + + - COUNT( * ) AS col0, + 58
----
30
58

skipif mysql # not compatible
query II rowsort label-652
SELECT DISTINCT 31 + + - COUNT ( * ) AS col0, + 58
----
30
58

query I rowsort
SELECT DISTINCT + 22 + - 85
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-654
SELECT ALL - 67 + - + 30 + CASE + - CAST( NULL AS SIGNED ) WHEN 95 THEN + 98 WHEN - CASE + ( - + 5 ) WHEN 77 * + ( + CAST( NULL AS SIGNED ) ) * + 20 * - + 52 * - 14 * - 30 THEN NULLIF ( - AVG ( - 99 ), + CAST( NULL AS SIGNED ) + 31 + + - 29 * COUNT( * ) ) END THEN NULL END * + 3 * 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-654
SELECT ALL - 67 + - + 30 + CASE + - CAST ( NULL AS INTEGER ) WHEN 95 THEN + 98 WHEN - CASE + ( - + 5 ) WHEN 77 * + ( + CAST ( NULL AS INTEGER ) ) * + 20 * - + 52 * - 14 * - 30 THEN NULLIF ( - AVG ( - 99 ), + CAST ( NULL AS INTEGER ) + 31 + + - 29 * COUNT ( * ) ) END THEN NULL END * + 3 * 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT DISTINCT CASE 90 WHEN 53 * + 58 - 47 / COUNT( * ) - + COUNT( * ) THEN NULL ELSE + + 96 * - 12 * + COUNT( * ) END AS col0
----
-1152

skipif mysql # not compatible
query I rowsort label-655
SELECT DISTINCT CASE 90 WHEN 53 * + 58 - 47 / COUNT ( * ) - + COUNT ( * ) THEN NULL ELSE + + 96 * - 12 * + COUNT ( * ) END AS col0
----
-1152

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

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

query I rowsort
SELECT DISTINCT NULLIF ( - 24, + - 72 )
----
-24

query I rowsort
SELECT - 66 + - 87 AS col0
----
-153

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-659
SELECT ALL + 95 DIV + CAST( + 61 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL + 95 / + CAST ( + 61 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT ALL - 4 - + + 39 * + COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL - 4 - + + 39 * + COUNT ( * ) AS col0
----
-43

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

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

skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT + 77 * - - COUNT ( * ) AS col2
----
77

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

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

query I rowsort
SELECT - 30 * - COALESCE ( + - 31, 34 ) AS col2
----
-930

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

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

query I rowsort
SELECT - 18 + + 83 * + 75 AS col2
----
6207

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-667
SELECT 23 DIV + 57 - 3 AS col2, - 64 * + COUNT( * ) * - - COUNT( * ) * + 90
----
-3
-5760

skipif mysql # not compatible
query II rowsort label-667
SELECT 23 / + 57 - 3 AS col2, - 64 * + COUNT ( * ) * - - COUNT ( * ) * + 90
----
-3
-5760

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT ALL + COUNT( * ) * - 99 * - 53 AS col2
----
5247

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL + COUNT ( * ) * - 99 * - 53 AS col2
----
5247

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

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT + MAX( ALL 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-671
SELECT + MAX ( ALL 86 ) AS col2
----
86

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

query I rowsort
SELECT DISTINCT + 76 * + 38 + 19 * - 49
----
1957

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

onlyif mysql # DIV for integer division: 
query I rowsort label-675
SELECT ALL - COALESCE ( + ( + 98 ), + 25 * 3 ) * - 54 + 93 DIV 68
----
5293

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL - COALESCE ( + ( + 98 ), + 25 * 3 ) * - 54 + 93 / 68
----
5293

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT COALESCE ( 1, + MIN( DISTINCT 15 ) * 36 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-676
SELECT COALESCE ( 1, + MIN ( DISTINCT 15 ) * 36 ) AS col2
----
1

query I rowsort
SELECT - 4 * + 87
----
-348

query I rowsort
SELECT ALL 16 * 27
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT + NULLIF ( COUNT( * ), - MIN( DISTINCT 48 ) / - AVG ( ALL - 21 ) )
----
1

skipif mysql # not compatible
query I rowsort label-679
SELECT + NULLIF ( COUNT ( * ), - MIN ( DISTINCT 48 ) / - AVG ( ALL - 21 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-680
SELECT ALL ( - NULLIF ( + 11, + ( + CAST( NULL AS SIGNED ) ) ) ) * 33 + - 12
----
-375

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL ( - NULLIF ( + 11, + ( + CAST ( NULL AS INTEGER ) ) ) ) * 33 + - 12
----
-375

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT ALL NULLIF ( + 39, MAX( 23 ) - + 57 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-683
SELECT ALL NULLIF ( + 39, MAX ( 23 ) - + 57 ) AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-684
SELECT DISTINCT MAX( ALL + 66 ) * COALESCE ( - ( - NULLIF ( + CAST( NULL AS SIGNED ), + 6 / - COUNT( * ) ) ), COUNT( * ) ) + 53 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-684
SELECT DISTINCT MAX ( ALL + 66 ) * COALESCE ( - ( - NULLIF ( + CAST ( NULL AS INTEGER ), + 6 / - COUNT ( * ) ) ), COUNT ( * ) ) + 53 AS col0
----
119

query I rowsort
SELECT + 38 * + 89 AS col1
----
3382

query I rowsort
SELECT + COALESCE ( 57, 13 ) * 42 AS col1
----
2394

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT ALL 46 * 21 - - COUNT( * ) AS col0
----
967

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL 46 * 21 - - COUNT ( * ) AS col0
----
967

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

query I rowsort
SELECT - 55 AS col2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-690
SELECT ALL MAX( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL MAX ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + 91 - - 8
----
99

query I rowsort
SELECT - 96 * + ( + 70 ) AS col0
----
-6720

query I rowsort
SELECT ALL 2 * + 56
----
112

query I rowsort
SELECT + 8 + + 83
----
91

query I rowsort
SELECT ALL 73 - 60
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-696
SELECT DISTINCT 31 DIV + 4
----
7

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT 31 / + 4
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-697
SELECT DISTINCT + CASE - CAST( + 12 AS SIGNED ) WHEN 97 THEN 69 WHEN 34 THEN + 97 ELSE NULL END * CASE 62 WHEN 44 + - 35 THEN 93 WHEN 27 + CAST( NULL AS SIGNED ) / 74 THEN - MIN( + 42 ) * CAST( NULL AS DECIMAL ) WHEN + NULLIF ( 21, - 4 + - 38 ) * 6 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-697
SELECT DISTINCT + CASE - CAST ( + 12 AS INTEGER ) WHEN 97 THEN 69 WHEN 34 THEN + 97 ELSE NULL END * CASE 62 WHEN 44 + - 35 THEN 93 WHEN 27 + CAST ( NULL AS INTEGER ) / 74 THEN - MIN ( + 42 ) * CAST ( NULL AS REAL ) WHEN + NULLIF ( 21, - 4 + - 38 ) * 6 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 25 * 17
----
425

query I rowsort
SELECT 4 * 46
----
184

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

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT DISTINCT COUNT( DISTINCT + 26 ) * + 73 col2
----
73

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT COUNT ( DISTINCT + 26 ) * + 73 col2
----
73

query I rowsort
SELECT - 31 AS col1
----
-31

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-704
SELECT CAST( 78 AS SIGNED ) * 67 AS col2
----
5226

skipif mysql # not compatible
query I rowsort label-704
SELECT CAST ( 78 AS INTEGER ) * 67 AS col2
----
5226

query I rowsort
SELECT 30 * 80
----
2400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-706
SELECT DISTINCT + COUNT( * ) DIV + SUM( - 28 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-706
SELECT DISTINCT + COUNT ( * ) / + SUM ( - 28 ) AS col0
----
0

query I rowsort
SELECT DISTINCT - 52
----
-52

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

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

query I rowsort
SELECT DISTINCT - 19 * + 45 AS col2
----
-855

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-710
SELECT DISTINCT - 47 + ( 84 + - MAX( 54 - - NULLIF ( 4, + ( - 52 ) * 79 + + 6 * ( 33 * - 71 ) ) ) DIV + 84 ) DIV 3
----
-19

skipif mysql # not compatible
query I rowsort label-710
SELECT DISTINCT - 47 + ( 84 + - MAX ( 54 - - NULLIF ( 4, + ( - 52 ) * 79 + + 6 * ( 33 * - 71 ) ) ) / + 84 ) / 3
----
-19

query I rowsort
SELECT DISTINCT - + 30 col0
----
-30

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

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

query I rowsort
SELECT + 5 * 32 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT COUNT( * ) * 55
----
55

skipif mysql # not compatible
query I rowsort label-714
SELECT COUNT ( * ) * 55
----
55

query I rowsort
SELECT - + 83 * 70 - 60
----
-5870

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-717
SELECT 22 DIV MAX( ALL + 37 + 48 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-717
SELECT 22 / MAX ( ALL + 37 + 48 ) AS col1
----
0

query I rowsort
SELECT ALL - 51 + 22
----
-29

query I rowsort
SELECT 52 * 19
----
988

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

query I rowsort
SELECT ALL + - 57 + - 58 AS col0
----
-115

onlyif mysql # DIV for integer division: 
query I rowsort label-722
SELECT DISTINCT - 18 + 44 DIV 51 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT - 18 + 44 / 51 AS col0
----
-18

query I rowsort
SELECT DISTINCT - - 63
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-724
SELECT ALL CAST( NULL AS SIGNED ) + NULLIF ( 87, COUNT( * ) * ( 99 * 87 ) ) * 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-724
SELECT ALL CAST ( NULL AS INTEGER ) + NULLIF ( 87, COUNT ( * ) * ( 99 * 87 ) ) * 61 AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 58 + COALESCE ( 19, 36 + + 91, 49 + ( 99 ) * - 30 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT ALL - SUM( 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL - SUM ( 87 ) AS col2
----
-87

query I rowsort
SELECT - 60 * + 34 - 63 AS col1
----
-2103

query I rowsort
SELECT ALL - 24 - + 29 AS col1
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-731
SELECT + CASE + 67 WHEN + 9 - - 73 THEN 87 WHEN 25 THEN ( CAST( CASE COUNT( * ) WHEN - COUNT( * ) THEN - ( + ( 44 ) ) WHEN 0 THEN NULL WHEN - 81 / - 32 THEN NULL END AS SIGNED ) ) END * ( 37 ) + 82 * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-731
SELECT + CASE + 67 WHEN + 9 - - 73 THEN 87 WHEN 25 THEN ( CAST ( CASE COUNT ( * ) WHEN - COUNT ( * ) THEN - ( + ( 44 ) ) WHEN 0 THEN NULL WHEN - 81 / - 32 THEN NULL END AS INTEGER ) ) END * ( 37 ) + 82 * 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT + MIN( DISTINCT 26 ) * + 79 AS col2
----
2054

skipif mysql # not compatible
query I rowsort label-732
SELECT + MIN ( DISTINCT 26 ) * + 79 AS col2
----
2054

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-733
SELECT CAST( NULL AS SIGNED ) * COALESCE ( 26, + 58 / 36 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-733
SELECT CAST ( NULL AS INTEGER ) * COALESCE ( 26, + 58 / 36 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT ALL COUNT( * ) * 42
----
42

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL COUNT ( * ) * 42
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-735
SELECT + 68 * NULLIF ( + CAST( 54 AS SIGNED ), - 48 - + MAX( + 54 ) ) + 28
----
3700

skipif mysql # not compatible
query I rowsort label-735
SELECT + 68 * NULLIF ( + CAST ( 54 AS INTEGER ), - 48 - + MAX ( + 54 ) ) + 28
----
3700

query I rowsort
SELECT ALL 61 * + + 96 AS col2
----
5856

query I rowsort
SELECT 79 + + COALESCE ( + 31, - NULLIF ( ( 57 ), - 57 ) * + 32, 55 )
----
110

query I rowsort
SELECT 85 * - + 80
----
-6800

onlyif mysql # DIV for integer division: 
query I rowsort label-739
SELECT ALL - 95 * 95 DIV + 31
----
-291

skipif mysql # not compatible
query I rowsort label-739
SELECT ALL - 95 * 95 / + 31
----
-291

query I rowsort
SELECT 63 col2
----
63

query I rowsort
SELECT ALL 66 col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-742
SELECT ALL 49 DIV 47 * 46
----
46

skipif mysql # not compatible
query I rowsort label-742
SELECT ALL 49 / 47 * 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT 11 * + COALESCE ( MIN( 52 ), + 82 * + 34 )
----
572

skipif mysql # not compatible
query I rowsort label-743
SELECT 11 * + COALESCE ( MIN ( 52 ), + 82 * + 34 )
----
572

query I rowsort
SELECT DISTINCT 22
----
22

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-746
SELECT 23 + + + 76 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-746
SELECT 23 + + + 76 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-747
SELECT 94 DIV ( 69 )
----
1

skipif mysql # not compatible
query I rowsort label-747
SELECT 94 / ( 69 )
----
1

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

skipif mysql # not compatible
query I rowsort label-748
SELECT COUNT ( * ) / + 47 * COUNT ( * ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-749
SELECT ALL 13 DIV + 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL 13 / + 65 AS col2
----
0

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 77 + - - 10
----
87

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

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

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

query I rowsort
SELECT ALL + 33 + + 45
----
78

query I rowsort
SELECT DISTINCT 70 * + - 83 col2
----
-5810

query I rowsort
SELECT ALL 71 * + + 19 + 43 AS col2
----
1392

query I rowsort
SELECT - 84 * + 11 * + ( 27 ) + + 31 * + 65
----
-22933

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-761
SELECT ALL - - CAST( NULL AS SIGNED ) * + 54 * 46 + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL - - CAST ( NULL AS INTEGER ) * + 54 * 46 + 81 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-762
SELECT ALL - AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL - AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * 20
----
NULL

query I rowsort
SELECT DISTINCT + - 11 * 2 + ( ( - 46 ) ) * 88
----
-4070

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

query I rowsort
SELECT ALL + + 46 * 1 * + 69 + 54
----
3228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-766
SELECT - + CAST( NULL AS SIGNED ) * - ( SUM( ALL + 23 ) ) + + 60 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-766
SELECT - + CAST ( NULL AS INTEGER ) * - ( SUM ( ALL + 23 ) ) + + 60 + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT - 25 - + 50 * + COUNT( * ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-767
SELECT - 25 - + 50 * + COUNT ( * ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT - 8 * 7 + COUNT( * ) + 37 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-768
SELECT - 8 * 7 + COUNT ( * ) + 37 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT ALL 92 * ( 10 ) + + SUM( ALL 23 ) AS col2
----
943

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL 92 * ( 10 ) + + SUM ( ALL 23 ) AS col2
----
943

query I rowsort
SELECT ALL - 26
----
-26

query I rowsort
SELECT 70 + 17
----
87

query I rowsort
SELECT ALL + - 26 * + + 12 + 43
----
-269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-773
SELECT DISTINCT - + 42 * - + ( 37 ) + ( 28 + - 95 ) * CASE 83 * + COUNT( * ) + CAST( NULL AS SIGNED ) WHEN - 11 THEN 87 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT - + 42 * - + ( 37 ) + ( 28 + - 95 ) * CASE 83 * + COUNT ( * ) + CAST ( NULL AS INTEGER ) WHEN - 11 THEN 87 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( - 98 ) AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-775
SELECT ALL - - 17 - 68 - - 30 * - CAST( COALESCE ( ( 23 ), SUM( DISTINCT - 10 ) ) AS SIGNED )
----
-741

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL - - 17 - 68 - - 30 * - CAST ( COALESCE ( ( 23 ), SUM ( DISTINCT - 10 ) ) AS INTEGER )
----
-741

query I rowsort
SELECT 46 + + 13
----
59

query I rowsort
SELECT ALL - ( 36 ) * + 16 AS col0
----
-576

query I rowsort
SELECT + - 21 * - 97 + 9 AS col2
----
2046

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT ALL + - COALESCE ( 11, - 76 + 48 * + 58, 62 * COUNT( * ) ) - - 25 * 83
----
2064

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL + - COALESCE ( 11, - 76 + 48 * + 58, 62 * COUNT ( * ) ) - - 25 * 83
----
2064

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

skipif mysql # not compatible
query I rowsort label-780
SELECT 84 * - 74 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-781
SELECT 26 DIV + 32 * - 9 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-781
SELECT 26 / + 32 * - 9 AS col0
----
0

query I rowsort
SELECT - 41 * - + 61
----
2501

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-786
SELECT ALL + 13 DIV + NULLIF ( + 75, 74 + 66 ) + 35 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL + 13 / + NULLIF ( + 75, 74 + 66 ) + 35 AS col1
----
35

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

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

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

query I rowsort
SELECT - 61 * 57 AS col1
----
-3477

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-791
SELECT ALL 61 AS col1, 13 DIV + + 34 AS col0
----
61
0

skipif mysql # not compatible
query II rowsort label-791
SELECT ALL 61 AS col1, 13 / + + 34 AS col0
----
61
0

query II rowsort
SELECT 41 AS col2, 40 * - 19
----
41
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT ALL MIN( - 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL MIN ( - 59 ) AS col2
----
-59

query II rowsort
SELECT - 16 AS col2, 50
----
-16
50

query I rowsort
SELECT ALL NULLIF ( COALESCE ( - + NULLIF ( 89, 85 ), 70 ), ( - 34 ) )
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-796
SELECT - 25 * - 56 * COUNT( DISTINCT 36 ) DIV COUNT( * ) AS col2
----
1400

skipif mysql # not compatible
query I rowsort label-796
SELECT - 25 * - 56 * COUNT ( DISTINCT 36 ) / COUNT ( * ) AS col2
----
1400

query I rowsort
SELECT + 31 * - 72 AS col1
----
-2232

query I rowsort
SELECT DISTINCT - 64 * 40 AS col2
----
-2560

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT - MAX( - 60 ) col2
----
60

skipif mysql # not compatible
query I rowsort label-799
SELECT - MAX ( - 60 ) col2
----
60

query I rowsort
SELECT ALL 72 + 63 AS col0
----
135

query I rowsort
SELECT - 77 - - 61 AS col1
----
-16

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-804
SELECT - MAX ( ALL 62 )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-805
SELECT ALL - 47 + CAST( 58 AS SIGNED ) col0
----
11

skipif mysql # not compatible
query I rowsort label-805
SELECT ALL - 47 + CAST ( 58 AS INTEGER ) col0
----
11

query I rowsort
SELECT ALL 59 + + 85 + + 95 + + 97 * - 29 * 85 AS col2
----
-238866

query I rowsort
SELECT ALL 18 + - 71 - + - 39
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-808
SELECT 35 AS col1, 38 * + - MAX( ALL + CAST( NULL AS SIGNED ) ) + - 87
----
35
NULL

skipif mysql # not compatible
query II rowsort label-808
SELECT 35 AS col1, 38 * + - MAX ( ALL + CAST ( NULL AS INTEGER ) ) + - 87
----
35
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT + 0 - - 50 + COUNT( * ) * 92 AS col0
----
142

skipif mysql # not compatible
query I rowsort label-809
SELECT + 0 - - 50 + COUNT ( * ) * 92 AS col0
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-810
SELECT DISTINCT 1 AS col1, + MAX( - 4 ) * + 45
----
1
-180

skipif mysql # not compatible
query II rowsort label-810
SELECT DISTINCT 1 AS col1, + MAX ( - 4 ) * + 45
----
1
-180

query I rowsort
SELECT - + 59
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT + + 98 + MAX( ALL - ( 99 ) ) + + 55
----
54

skipif mysql # not compatible
query I rowsort label-812
SELECT + + 98 + MAX ( ALL - ( 99 ) ) + + 55
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT ALL + 46 * 11 + SUM( DISTINCT - 56 ) * 65 AS col2
----
-3134

skipif mysql # not compatible
query I rowsort label-813
SELECT ALL + 46 * 11 + SUM ( DISTINCT - 56 ) * 65 AS col2
----
-3134

query I rowsort
SELECT + + COALESCE ( 42, + 1, - ( + COALESCE ( 27, - 47 ) ) )
----
42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT DISTINCT - 60 * - COUNT( * ) * + CASE + 70 WHEN MAX( ALL - 4 ) THEN 16 END + COUNT( * ) * 42 - COUNT( * ) * 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT - 60 * - COUNT ( * ) * + CASE + 70 WHEN MAX ( ALL - 4 ) THEN 16 END + COUNT ( * ) * 42 - COUNT ( * ) * 84 AS col0
----
NULL

query I rowsort
SELECT + 23 col2
----
23

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

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

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

query I rowsort
SELECT ALL + CASE WHEN NOT NULL BETWEEN NULL AND 28 THEN 77 ELSE NULL END * + 55
----
NULL

query I rowsort
SELECT + 42 * + 4
----
168

query I rowsort
SELECT + - 64
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-823
SELECT + + 45 * NULLIF ( + 63, 65 ) DIV 83 - 23 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-823
SELECT + + 45 * NULLIF ( + 63, 65 ) / 83 - 23 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT - - COUNT( * ) * + - 40 - - - 43 + 44 * - 1 * 87 AS col1
----
-3911

skipif mysql # not compatible
query I rowsort label-824
SELECT - - COUNT ( * ) * + - 40 - - - 43 + 44 * - 1 * 87 AS col1
----
-3911

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

query I rowsort
SELECT DISTINCT + + 48
----
48

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

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

skipif mysql # not compatible
query I rowsort label-828
SELECT + SUM ( - CAST ( + 32 AS INTEGER ) )
----
-32

query I rowsort
SELECT DISTINCT + ( 34 ) * + + 38
----
1292

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT - 14 - + - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-830
SELECT - 14 - + - COUNT ( * )
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-831
SELECT - 31 DIV - 60 * 53
----
0

skipif mysql # not compatible
query I rowsort label-831
SELECT - 31 / - 60 * 53
----
0

query I rowsort
SELECT DISTINCT - 9 * 60 + + 99 AS col2
----
-441

query I rowsort
SELECT ALL - CASE - - 99 WHEN 54 THEN - 25 END * CASE + CASE 40 WHEN 9 + 49 THEN + 54 ELSE 34 END * 7 WHEN + 29 THEN + 44 * 13 + - 65 * 70 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-834
SELECT - 66 DIV - + 97 * - 72 * + 93 * - COUNT( DISTINCT - 95 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-834
SELECT - 66 / - + 97 * - 72 * + 93 * - COUNT ( DISTINCT - 95 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-835
SELECT ALL + 76 * - + COUNT( * ) * 67 + + 86 + - NULLIF ( + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ), 97 ) AS col1
----
-5006

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL + 76 * - + COUNT ( * ) * 67 + + 86 + - NULLIF ( + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ), 97 ) AS col1
----
-5006

onlyif mysql # DIV for integer division: 
query I rowsort label-836
SELECT - 95 DIV + - 73 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-836
SELECT - 95 / + - 73 AS col0
----
1

query I rowsort
SELECT DISTINCT 95 * - 66 + 41 * + 93 AS col1
----
-2457

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

query I rowsort
SELECT DISTINCT + 87 + 96 * + 17 + + 56
----
1775

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT - 30 + - + MAX( + 98 ) col0
----
-128

skipif mysql # not compatible
query I rowsort label-840
SELECT - 30 + - + MAX ( + 98 ) col0
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-841
SELECT ALL + 15 + - - 23 DIV + 88 * - 91 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL + 15 + - - 23 / + 88 * - 91 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT DISTINCT COALESCE ( + 31, + ( COUNT( * ) ) * + 32 + + 51 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT COALESCE ( + 31, + ( COUNT ( * ) ) * + 32 + + 51 ) AS col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-843
SELECT ALL - 15 + - 39 * - CAST( NULL AS SIGNED ) * + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL - 15 + - 39 * - CAST ( NULL AS INTEGER ) * + 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT ALL ( - COALESCE ( + + SUM( + ( + 84 ) ), 23, - 77 + - 21 ) ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL ( - COALESCE ( + + SUM ( + ( + 84 ) ), 23, - 77 + - 21 ) ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT DISTINCT ( SUM( DISTINCT + + NULLIF ( 95, - 65 * + 98 ) ) ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-845
SELECT DISTINCT ( SUM ( DISTINCT + + NULLIF ( 95, - 65 * + 98 ) ) ) AS col0
----
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-846
SELECT DISTINCT CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-846
SELECT DISTINCT CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-847
SELECT ALL - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1, 80 AS col1
----
NULL
80

skipif mysql # not compatible
query II rowsort label-847
SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1, 80 AS col1
----
NULL
80

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT - 5 + + 95 * - 43 + - + COUNT( * ) col2
----
-4091

skipif mysql # not compatible
query I rowsort label-848
SELECT - 5 + + 95 * - 43 + - + COUNT ( * ) col2
----
-4091

query I rowsort
SELECT DISTINCT + - 0 * + 63 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT ALL - COALESCE ( 74, - COALESCE ( 37, - COUNT( * ) * + 42, - 24 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL - COALESCE ( 74, - COALESCE ( 37, - COUNT ( * ) * + 42, - 24 ) )
----
-74

query I rowsort
SELECT - + 58 + + - ( 61 ) AS col1
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT ALL - - 21 - - 5 * COUNT( * ) + - ( - ( - 78 ) ) * SUM( ( + 96 ) ) AS col0
----
-7462

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL - - 21 - - 5 * COUNT ( * ) + - ( - ( - 78 ) ) * SUM ( ( + 96 ) ) AS col0
----
-7462

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

query I rowsort
SELECT DISTINCT + + 8 * - 98
----
-784

query I rowsort
SELECT + 73 - - 96 AS col1
----
169

query I rowsort
SELECT DISTINCT - 87 - - 16 AS col0
----
-71

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

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

skipif mysql # not compatible
query I rowsort label-858
SELECT - COUNT ( * ) / + 59 + - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT + 14 * + 44 + - 35 AS col2
----
581

onlyif mysql # DIV for integer division: 
query I rowsort label-860
SELECT + COALESCE ( + ( - + 28 ), + 32 * 45, - 66 DIV - 4 + + 50 ) - 69
----
-97

skipif mysql # not compatible
query I rowsort label-860
SELECT + COALESCE ( + ( - + 28 ), + 32 * 45, - 66 / - 4 + + 50 ) - 69
----
-97

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-862
SELECT ALL - CASE + COUNT( * ) WHEN + + 53 THEN + + 88 + 42 * CAST( NULL AS SIGNED ) ELSE + 26 END
----
-26

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL - CASE + COUNT ( * ) WHEN + + 53 THEN + + 88 + 42 * CAST ( NULL AS INTEGER ) ELSE + 26 END
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-863
SELECT ALL + 13 * - COUNT( * ) AS col1, + MIN( + 44 ) * - 88
----
-13
-3872

skipif mysql # not compatible
query II rowsort label-863
SELECT ALL + 13 * - COUNT ( * ) AS col1, + MIN ( + 44 ) * - 88
----
-13
-3872

query I rowsort
SELECT + 80 * + 32 * ( - + 96 ) + - 28 * 36 col1
----
-246768

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

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT DISTINCT 59 * - - 33 + + COUNT( * ) col2
----
1948

skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT 59 * - - 33 + + COUNT ( * ) col2
----
1948

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

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT DISTINCT 61 + + - 75 * - COALESCE ( + COUNT( * ), - MAX( ALL + 23 ) )
----
136

skipif mysql # not compatible
query I rowsort label-868
SELECT DISTINCT 61 + + - 75 * - COALESCE ( + COUNT ( * ), - MAX ( ALL + 23 ) )
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT COUNT( - 56 ) * - ( 20 ) * + + 22 * 32 AS col1
----
-14080

skipif mysql # not compatible
query I rowsort label-869
SELECT COUNT ( - 56 ) * - ( 20 ) * + + 22 * 32 AS col1
----
-14080

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-870
SELECT - CAST( NULL AS DECIMAL ) * 86 + - 99 * + NULLIF ( + 28, + CAST( NULL AS SIGNED ) + 18 * 14 ) / + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-870
SELECT - CAST ( NULL AS REAL ) * 86 + - 99 * + NULLIF ( + 28, + CAST ( NULL AS INTEGER ) + 18 * 14 ) / + 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-871
SELECT 66 AS col0, - 9 * 37 + - MAX( ALL - + 49 )
----
66
-284

skipif mysql # not compatible
query II rowsort label-871
SELECT 66 AS col0, - 9 * 37 + - MAX ( ALL - + 49 )
----
66
-284

query I rowsort
SELECT 33 + + 13 AS col1
----
46

query I rowsort
SELECT ALL - 75 col1
----
-75

query I rowsort
SELECT 10 + + 41 + - + COALESCE ( + 45, - 37 + 19 ) * 21 AS col0
----
-894

onlyif mysql # DIV for integer division: 
query II rowsort label-875
SELECT DISTINCT 1 + + + 59 + 70 AS col0, - 40 DIV + ( 9 ) AS col0
----
130
-4

skipif mysql # not compatible
query II rowsort label-875
SELECT DISTINCT 1 + + + 59 + 70 AS col0, - 40 / + ( 9 ) AS col0
----
130
-4

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

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

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

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

query II rowsort
SELECT ALL 28 AS col1, + ( 95 )
----
28
95

query I rowsort
SELECT ALL + 83 + - 28 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT 39 * MIN( ALL + 62 )
----
2418

skipif mysql # not compatible
query I rowsort label-880
SELECT 39 * MIN ( ALL + 62 )
----
2418

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

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT DISTINCT ( - 9 ) + - 98 - - 3 * + - COUNT( * ) * 9 AS col1
----
-134

skipif mysql # not compatible
query I rowsort label-882
SELECT DISTINCT ( - 9 ) + - 98 - - 3 * + - COUNT ( * ) * 9 AS col1
----
-134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-883
SELECT 58 / - CASE - + 79 WHEN - - 32 THEN - - 67 WHEN + 17 * 65 + + ( - 55 ) THEN 70 + 70 WHEN ( + 42 ) THEN NULL ELSE CASE + 40 WHEN - 76 THEN 82 ELSE NULL END END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-883
SELECT 58 / - CASE - + 79 WHEN - - 32 THEN - - 67 WHEN + 17 * 65 + + ( - 55 ) THEN 70 + 70 WHEN ( + 42 ) THEN NULL ELSE CASE + 40 WHEN - 76 THEN 82 ELSE NULL END END * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-884
SELECT ALL + CAST( CASE 69 WHEN + 95 THEN CAST( 18 AS SIGNED ) * + COALESCE ( - 82 + + 4 * 96, - 76 + + 73 * COUNT( * ) ) END AS SIGNED ) - + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL + CAST ( CASE 69 WHEN + 95 THEN CAST ( 18 AS INTEGER ) * + COALESCE ( - 82 + + 4 * 96, - 76 + + 73 * COUNT ( * ) ) END AS INTEGER ) - + COUNT ( * ) col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-886
SELECT 64 * - - CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ), COUNT( ALL - CASE 52 WHEN - 24 + 86 THEN - ( + 24 ) WHEN 92 THEN + 96 ELSE + 94 + - 74 * - 21 END ) col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-886
SELECT 64 * - - CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ), COUNT ( ALL - CASE 52 WHEN - 24 + 86 THEN - ( + 24 ) WHEN 92 THEN + 96 ELSE + 94 + - 74 * - 21 END ) col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT COALESCE ( COUNT( * ), - + 11 * + + 64 * + 48 + MAX( - 97 + 8 ) ) - + 69 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-887
SELECT COALESCE ( COUNT ( * ), - + 11 * + + 64 * + 48 + MAX ( - 97 + 8 ) ) - + 69 AS col0
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-888
SELECT ALL 46 - - - 73 DIV - MAX( 30 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-888
SELECT ALL 46 - - - 73 / - MAX ( 30 ) AS col1
----
48

query I rowsort
SELECT 75 * 92 AS col2
----
6900

query I rowsort
SELECT ALL + ( + + 78 ) - + 94
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT MIN( - - 25 ) + 98 AS col1
----
123

skipif mysql # not compatible
query I rowsort label-891
SELECT MIN ( - - 25 ) + 98 AS col1
----
123

query I rowsort
SELECT - 85 AS col0
----
-85

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

query I rowsort
SELECT + 71 + + - 0 AS col0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-895
SELECT 14 - + 35 DIV - 34
----
15

skipif mysql # not compatible
query I rowsort label-895
SELECT 14 - + 35 / - 34
----
15

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT - MAX( 97 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-898
SELECT - MAX ( 97 ) AS col0
----
-97

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

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

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

query I rowsort
SELECT DISTINCT 64 col2
----
64

query I rowsort
SELECT ALL + + 30 * + + 76 AS col0
----
2280

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-903
SELECT 24 * - + 32 * CAST( + 38 AS SIGNED ) DIV - 16 AS col2
----
1824

skipif mysql # not compatible
query I rowsort label-903
SELECT 24 * - + 32 * CAST ( + 38 AS INTEGER ) / - 16 AS col2
----
1824

query I rowsort
SELECT ALL + 6 * 32 AS col2
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT DISTINCT - COUNT( 13 ) + + 21 - - - 67 * + + 64 * - 17
----
72916

skipif mysql # not compatible
query I rowsort label-905
SELECT DISTINCT - COUNT ( 13 ) + + 21 - - - 67 * + + 64 * - 17
----
72916

onlyif mysql # aggregate syntax: 
query II rowsort label-906
SELECT ALL + MAX( ALL + 34 ) + + - 78 AS col1, - ( + - SUM( ALL + 42 ) )
----
-44
42

skipif mysql # not compatible
query II rowsort label-906
SELECT ALL + MAX ( ALL + 34 ) + + - 78 AS col1, - ( + - SUM ( ALL + 42 ) )
----
-44
42

query I rowsort
SELECT + NULLIF ( 17, 80 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT DISTINCT + - 88 + + COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-908
SELECT DISTINCT + - 88 + + COUNT ( * ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT ALL - - COALESCE ( - + COUNT( * ), - 96 ) + 29
----
28

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL - - COALESCE ( - + COUNT ( * ), - 96 ) + 29
----
28

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-911
SELECT + 45 DIV + COUNT( * ) + COUNT( * ) AS col1, 67 AS col2
----
46
67

skipif mysql # not compatible
query II rowsort label-911
SELECT + 45 / + COUNT ( * ) + COUNT ( * ) AS col1, 67 AS col2
----
46
67

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-913
SELECT ALL 96 + - 32 - - 69 + + - CAST( NULL AS SIGNED ) * 57 / CAST( NULL AS SIGNED ) * 37 - + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL 96 + - 32 - - 69 + + - CAST ( NULL AS INTEGER ) * 57 / CAST ( NULL AS INTEGER ) * 37 - + 77 AS col1
----
NULL

query I rowsort
SELECT 78 * - 79 - - 20 AS col0
----
-6142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-915
SELECT - 0 DIV + MIN( - 15 ) - + 76 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-915
SELECT - 0 / + MIN ( - 15 ) - + 76 AS col0
----
-76

query II rowsort
SELECT + 59, 94 AS col1
----
59
94

query I rowsort
SELECT ALL 49 * + + 19
----
931

query I rowsort
SELECT 13 + + 49
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT ALL - COUNT( * ) + + 82
----
81

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL - COUNT ( * ) + + 82
----
81

query I rowsort
SELECT DISTINCT - ( + CASE 20 WHEN - 33 + + 84 THEN - 22 WHEN - 77 THEN 23 WHEN + 88 + 75 THEN 88 END )
----
NULL

query I rowsort
SELECT ALL ( + 85 ) + 49 AS col2
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-922
SELECT ALL - 65 AS col1, CASE 33 WHEN - + 16 * + + 88 + + 9 * - 98 THEN CASE 37 WHEN 53 / COUNT( * ) THEN 75 WHEN - ( COALESCE ( 30, - COUNT( * ) * + 94 - 38 ) ) THEN + 40 END WHEN 52 THEN - 46 WHEN - 56 THEN NULL WHEN + 50 THEN NULL ELSE NULL END + 88 col1
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-922
SELECT ALL - 65 AS col1, CASE 33 WHEN - + 16 * + + 88 + + 9 * - 98 THEN CASE 37 WHEN 53 / COUNT ( * ) THEN 75 WHEN - ( COALESCE ( 30, - COUNT ( * ) * + 94 - 38 ) ) THEN + 40 END WHEN 52 THEN - 46 WHEN - 56 THEN NULL WHEN + 50 THEN NULL ELSE NULL END + 88 col1
----
-65
NULL

query I rowsort
SELECT ALL 13 * - 28 * 7
----
-2548

query I rowsort
SELECT ALL ( 88 ) - - 94 AS col1
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-925
SELECT 51 AS col2, - MAX( ALL - + CAST( NULL AS SIGNED ) ) + + 15
----
51
NULL

skipif mysql # not compatible
query II rowsort label-925
SELECT 51 AS col2, - MAX ( ALL - + CAST ( NULL AS INTEGER ) ) + + 15
----
51
NULL

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

skipif mysql # not compatible
query I rowsort label-926
SELECT + MIN ( - - 11 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-927
SELECT 89, + CASE CASE 89 WHEN + 43 * MIN( ALL + 5 ) THEN NULL ELSE 32 END WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN 13 THEN 18 END AS col1
----
89
NULL

skipif mysql # not compatible
query II rowsort label-927
SELECT 89, + CASE CASE 89 WHEN + 43 * MIN ( ALL + 5 ) THEN NULL ELSE 32 END WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN 13 THEN 18 END AS col1
----
89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT ALL MIN( DISTINCT - 10 ) - - - COALESCE ( + 59, - SUM( DISTINCT 81 ) ) + - COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-928
SELECT ALL MIN ( DISTINCT - 10 ) - - - COALESCE ( + 59, - SUM ( DISTINCT 81 ) ) + - COUNT ( * )
----
-70

query I rowsort
SELECT 29 + - + 35
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT ALL COUNT( * ) - - 82 + - + 19
----
64

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL COUNT ( * ) - - 82 + - + 19
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-932
SELECT DISTINCT 97 AS col2, 46 DIV + 54
----
97
0

skipif mysql # not compatible
query II rowsort label-932
SELECT DISTINCT 97 AS col2, 46 / + 54
----
97
0

onlyif mysql # DIV for integer division: 
query I rowsort label-933
SELECT ALL - 53 - + COALESCE ( - + 25, + 51 DIV 54, + ( 83 ) + + 19 ) + 84 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-933
SELECT ALL - 53 - + COALESCE ( - + 25, + 51 / 54, + ( 83 ) + + 19 ) + 84 AS col0
----
56

query I rowsort
SELECT CASE - - 66 WHEN 94 THEN - + 42 END * + 9 / - 72 + 37 col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 17, - NULLIF ( + ( 62 ), - 47 + + 88 ) * 7 + - 93 / - 31 ) AS col0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT + 86 + - COALESCE ( + NULLIF ( - 51, 73 / + + ( + COALESCE ( + 33, 2, 32 + + 13 ) ) + CAST( - 64 AS SIGNED ) ), + 44 * 55 ) * - 32
----
-1546

skipif mysql # not compatible
query I rowsort label-936
SELECT + 86 + - COALESCE ( + NULLIF ( - 51, 73 / + + ( + COALESCE ( + 33, 2, 32 + + 13 ) ) + CAST ( - 64 AS INTEGER ) ), + 44 * 55 ) * - 32
----
-1546

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-938
SELECT + CAST( - + CASE 49 WHEN - 12 THEN 49 END AS SIGNED ) + ( NULLIF ( 99, - 6 ) ) + 65 * + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-938
SELECT + CAST ( - + CASE 49 WHEN - 12 THEN 49 END AS INTEGER ) + ( NULLIF ( 99, - 6 ) ) + 65 * + 78
----
NULL

query I rowsort
SELECT ALL - 12 * - 82 AS col1
----
984

query I rowsort
SELECT 70 * - 11 + - NULLIF ( + 50, - 33 ) - 10 * 61
----
-1430

query I rowsort
SELECT + 69 * + 32 - 41 col2
----
2167

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT ALL + MIN( - 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL + MIN ( - 59 ) AS col0
----
-59

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-944
SELECT ALL + 3 AS col1, CAST( NULL AS DECIMAL ) - - 11 - 68 + + COUNT( * ) / + 69 AS col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-944
SELECT ALL + 3 AS col1, CAST ( NULL AS REAL ) - - 11 - 68 + + COUNT ( * ) / + 69 AS col0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT + NULLIF ( + - 11, - 80 + + 51 + COUNT( * ) - - CASE 25 WHEN - 73 * - 92 THEN 85 * - AVG ( + 34 ) + - ( AVG ( DISTINCT 14 ) ) END * 57 ) + 54 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-945
SELECT + NULLIF ( + - 11, - 80 + + 51 + COUNT ( * ) - - CASE 25 WHEN - 73 * - 92 THEN 85 * - AVG ( + 34 ) + - ( AVG ( DISTINCT 14 ) ) END * 57 ) + 54 AS col1
----
43

query II rowsort
SELECT 41, - 7 AS col2
----
41
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT ALL - SUM( 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL - SUM ( 26 ) AS col2
----
-26

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

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

query I rowsort
SELECT ALL + 54 + - 90 * 69 col2
----
-6156

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT - - COUNT( * ) - + NULLIF ( + + 62, + COUNT( * ) ) - + 43 * + + 1 + 41 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-950
SELECT - - COUNT ( * ) - + NULLIF ( + + 62, + COUNT ( * ) ) - + 43 * + + 1 + 41 AS col2
----
-63

query II rowsort
SELECT - 48 col0, 71 AS col2
----
-48
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-952
SELECT ALL + 85 + - + 98 + + - 52 DIV 10 - + 25 * + 95 DIV - COUNT( * ) AS col2
----
2357

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL + 85 + - + 98 + + - 52 / 10 - + 25 * + 95 / - COUNT ( * ) AS col2
----
2357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-953
SELECT DISTINCT + - 36 + COUNT( * ) + - CAST( 10 AS SIGNED ) AS col0, CASE + 89 WHEN + 59 THEN NULL ELSE 33 END AS col0
----
-45
33

skipif mysql # not compatible
query II rowsort label-953
SELECT DISTINCT + - 36 + COUNT ( * ) + - CAST ( 10 AS INTEGER ) AS col0, CASE + 89 WHEN + 59 THEN NULL ELSE 33 END AS col0
----
-45
33

query I rowsort
SELECT - + COALESCE ( 58, + 82 * 9 ) AS col1
----
-58

query I rowsort
SELECT + - 5 * + 58 AS col0
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT ALL CASE - - 77 WHEN + + 93 * + + 4 + COUNT( ALL 82 ) / - 75 + CASE 55 WHEN ( + AVG ( + 2 ) ) + 61 THEN 82 END THEN - 54 - - 12 WHEN - COUNT( * ) - - 6 THEN NULL ELSE NULL END * SUM( 84 ) + - 94 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL CASE - - 77 WHEN + + 93 * + + 4 + COUNT ( ALL 82 ) / - 75 + CASE 55 WHEN ( + AVG ( + 2 ) ) + 61 THEN 82 END THEN - 54 - - 12 WHEN - COUNT ( * ) - - 6 THEN NULL ELSE NULL END * SUM ( 84 ) + - 94 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT + CASE - - COALESCE ( - 79, 95, - - MAX( + 41 ) * 14 ) WHEN + 3 * ( + MIN( DISTINCT 67 ) ) + COUNT( * ) THEN 55 + - 14 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-957
SELECT + CASE - - COALESCE ( - 79, 95, - - MAX ( + 41 ) * 14 ) WHEN + 3 * ( + MIN ( DISTINCT 67 ) ) + COUNT ( * ) THEN 55 + - 14 * COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 38 + - 23 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT 82 * 26 + 87 * + 60 * - + 28 * - - SUM( - + 88 )
----
12864212

skipif mysql # not compatible
query I rowsort label-959
SELECT 82 * 26 + 87 * + 60 * - + 28 * - - SUM ( - + 88 )
----
12864212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-960
SELECT ALL COUNT( * ) * + + ( 42 ) DIV - 62 * + - 50 + - - 53
----
53

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL COUNT ( * ) * + + ( 42 ) / - 62 * + - 50 + - - 53
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-961
SELECT - 33 DIV 40 + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-961
SELECT - 33 / 40 + + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT DISTINCT + SUM( DISTINCT 3 )
----
3

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT + SUM ( DISTINCT 3 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-963
SELECT ALL - CASE + 31 WHEN COUNT( * ) THEN - + 38 ELSE NULL END * COUNT( + 83 ) * + 46 + CAST( - 37 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL - CASE + 31 WHEN COUNT ( * ) THEN - + 38 ELSE NULL END * COUNT ( + 83 ) * + 46 + CAST ( - 37 AS INTEGER )
----
NULL

query I rowsort
SELECT - 49 * - 80 * + 85
----
333200

query I rowsort
SELECT COALESCE ( + 33, - + 16 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT DISTINCT + 34 * - SUM( 24 ) - SUM( ALL + ( - + 95 ) ) * 30 AS col2
----
2034

skipif mysql # not compatible
query I rowsort label-966
SELECT DISTINCT + 34 * - SUM ( 24 ) - SUM ( ALL + ( - + 95 ) ) * 30 AS col2
----
2034

onlyif mysql # DIV for integer division: 
query I rowsort label-967
SELECT 20 * + 86 + + 95 - + + 71 + + 2 DIV + + 39 - - ( 8 ) col1
----
1752

skipif mysql # not compatible
query I rowsort label-967
SELECT 20 * + 86 + + 95 - + + 71 + + 2 / + + 39 - - ( 8 ) col1
----
1752

query II rowsort
SELECT - 13 * 80 AS col0, - 13 + + - 90
----
-1040
-103

query II rowsort
SELECT + 53 * - - 56 AS col2, 11 * - - 12 - + 85
----
2968
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-970
SELECT ALL 59 DIV - ( + COUNT( * ) ) col0
----
-59

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL 59 / - ( + COUNT ( * ) ) col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT - 83 + - COUNT( * ) + + - 60
----
-144

skipif mysql # not compatible
query I rowsort label-971
SELECT - 83 + - COUNT ( * ) + + - 60
----
-144

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

skipif mysql # not compatible
query I rowsort label-972
SELECT + MIN ( - 16 )
----
-16

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

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT ALL 29 * MAX( - + 11 )
----
-319

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL 29 * MAX ( - + 11 )
----
-319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-975
SELECT + COUNT( * ) DIV + 96 col1, 8 * + ( 90 ) * 59 + + + CAST( ( CASE 71 WHEN + 4 * 39 THEN 98 WHEN 29 THEN NULL END ) AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-975
SELECT + COUNT ( * ) / + 96 col1, 8 * + ( 90 ) * 59 + + + CAST ( ( CASE 71 WHEN + 4 * 39 THEN 98 WHEN 29 THEN NULL END ) AS INTEGER )
----
0
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT - 70 * CASE - 78 WHEN - 96 * 87 THEN COUNT( * ) + 16 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-977
SELECT - 70 * CASE - 78 WHEN - 96 * 87 THEN COUNT ( * ) + 16 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT + 40 + - + CASE - 92 WHEN + 10 THEN NULL ELSE + 93 * - + MIN( DISTINCT - 99 ) * - 77 + - 13 + + 43 END AS col0
----
708949

skipif mysql # not compatible
query I rowsort label-978
SELECT + 40 + - + CASE - 92 WHEN + 10 THEN NULL ELSE + 93 * - + MIN ( DISTINCT - 99 ) * - 77 + - 13 + + 43 END AS col0
----
708949

onlyif mysql # aggregate syntax: 
query II rowsort label-979
SELECT - + MIN( 92 ) AS col0, + 23 + + + 36
----
-92
59

skipif mysql # not compatible
query II rowsort label-979
SELECT - + MIN ( 92 ) AS col0, + 23 + + + 36
----
-92
59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT + ( - COALESCE ( + + CASE - 91 WHEN 8 + - 72 / 64 THEN MIN( - 57 ) * - NULLIF ( 65 - 45, 65 ) END, 24 + - 53 ) ) + COALESCE ( 60, + 84 )
----
89

skipif mysql # not compatible
query I rowsort label-981
SELECT + ( - COALESCE ( + + CASE - 91 WHEN 8 + - 72 / 64 THEN MIN ( - 57 ) * - NULLIF ( 65 - 45, 65 ) END, 24 + - 53 ) ) + COALESCE ( 60, + 84 )
----
89

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

query I rowsort
SELECT + + 44 * + 95 * 80
----
334400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-984
SELECT DISTINCT - + COUNT( * ) * + - 7 * + CAST( - ( 3 ) AS SIGNED ) AS col1, + 23
----
-21
23

skipif mysql # not compatible
query II rowsort label-984
SELECT DISTINCT - + COUNT ( * ) * + - 7 * + CAST ( - ( 3 ) AS INTEGER ) AS col1, + 23
----
-21
23

onlyif mysql # aggregate syntax: 
query II rowsort label-985
SELECT ALL - COUNT( DISTINCT + 10 ), - ( + 16 ) AS col0
----
-1
-16

skipif mysql # not compatible
query II rowsort label-985
SELECT ALL - COUNT ( DISTINCT + 10 ), - ( + 16 ) AS col0
----
-1
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT DISTINCT 54 + - SUM( ALL - 10 ) + - COALESCE ( - - 61, + - 75 + 21 - ( 40 ) ) - + 56
----
-53

skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT 54 + - SUM ( ALL - 10 ) + - COALESCE ( - - 61, + - 75 + 21 - ( 40 ) ) - + 56
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT DISTINCT - MAX( - + 6 ) + 6
----
12

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT - MAX ( - + 6 ) + 6
----
12

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

query I rowsort
SELECT + + 95 * - - 11 * + 53 * - 23 col2
----
-1273855

query I rowsort
SELECT ALL + 89 + - + 20 + + 89 + + 7 AS col2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT ALL + 25 + + COALESCE ( + CASE + AVG ( DISTINCT + 59 ) WHEN - 50 THEN + - 32 * - 43 + COUNT( * ) END, COUNT( * ), 99 ) * 86 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL + 25 + + COALESCE ( + CASE + AVG ( DISTINCT + 59 ) WHEN - 50 THEN + - 32 * - 43 + COUNT ( * ) END, COUNT ( * ), 99 ) * 86 AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT DISTINCT 82 * - + CASE + 70 WHEN ( + + COUNT( + + 10 ) ) THEN + + 61 + 10 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-992
SELECT DISTINCT 82 * - + CASE + 70 WHEN ( + + COUNT ( + + 10 ) ) THEN + + 61 + 10 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 25 + 42 * 11
----
487

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT + 69 * CASE - MIN( DISTINCT - 47 ) WHEN - 99 * + + COUNT( DISTINCT - 5 ) THEN COUNT( * ) END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-994
SELECT + 69 * CASE - MIN ( DISTINCT - 47 ) WHEN - 99 * + + COUNT ( DISTINCT - 5 ) THEN COUNT ( * ) END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT DISTINCT - 6 * - MIN( 73 ) AS col0
----
438

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT - 6 * - MIN ( 73 ) AS col0
----
438

query I rowsort
SELECT + ( 48 ) * + - 8
----
-384

query I rowsort
SELECT - - 23 col0
----
23

query II rowsort
SELECT ALL 66 * + - 69 col1, 19 * + 9 AS col1
----
-4554
171

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT ALL - 62 + 8 + + MAX( DISTINCT + - 56 )
----
-110

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL - 62 + 8 + + MAX ( DISTINCT + - 56 )
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT CASE + 87 WHEN + ( MAX( - 22 ) ) THEN - + 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1000
SELECT CASE + 87 WHEN + ( MAX ( - 22 ) ) THEN - + 51 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT ALL + MAX( DISTINCT - 21 ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL + MAX ( DISTINCT - 21 ) col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-1002
SELECT - 49 DIV 23
----
-2

skipif mysql # not compatible
query I rowsort label-1002
SELECT - 49 / 23
----
-2

query I rowsort
SELECT - 25 * - + 91
----
2275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1004
SELECT - 4 * - CAST( NULL AS SIGNED ) * 64 * + COUNT( ALL + ( - 80 ) ) + 54 * + 25 + + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1004
SELECT - 4 * - CAST ( NULL AS INTEGER ) * 64 * + COUNT ( ALL + ( - 80 ) ) + 54 * + 25 + + 29 AS col1
----
NULL

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

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

query I rowsort
SELECT - 95 * + 29 AS col2
----
-2755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1007
SELECT ALL + COALESCE ( - + SUM( DISTINCT + 27 ), + 88 - CASE + + 10 WHEN CASE + 6 WHEN 1 THEN NULL WHEN - ( ( 41 ) ) * - NULLIF ( 62 * - COUNT( * ) + - COALESCE ( 27, - 58 + - 4, + 5 ), 66 ) + 54 THEN NULL WHEN - 98 THEN + 60 END THEN - 54 * + 43 + - 96 ELSE - COUNT( * ) END * CAST( NULL AS SIGNED ) ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-1007
SELECT ALL + COALESCE ( - + SUM ( DISTINCT + 27 ), + 88 - CASE + + 10 WHEN CASE + 6 WHEN 1 THEN NULL WHEN - ( ( 41 ) ) * - NULLIF ( 62 * - COUNT ( * ) + - COALESCE ( 27, - 58 + - 4, + 5 ), 66 ) + 54 THEN NULL WHEN - 98 THEN + 60 END THEN - 54 * + 43 + - 96 ELSE - COUNT ( * ) END * CAST ( NULL AS INTEGER ) ) AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT - COUNT( DISTINCT 61 ) + + + 33
----
32

skipif mysql # not compatible
query I rowsort label-1008
SELECT - COUNT ( DISTINCT 61 ) + + + 33
----
32

query II rowsort
SELECT DISTINCT + 77, 45 AS col1
----
77
45

query I rowsort
SELECT - 42 + + 73 + 64
----
95

query I rowsort
SELECT ALL - 52 * - 52
----
2704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1012
SELECT - 59 * + ( - NULLIF ( + 40, - 23 ) ) DIV COALESCE ( + COUNT( * ), + 16 ) * 45
----
106200

skipif mysql # not compatible
query I rowsort label-1012
SELECT - 59 * + ( - NULLIF ( + 40, - 23 ) ) / COALESCE ( + COUNT ( * ), + 16 ) * 45
----
106200

onlyif mysql # aggregate syntax: 
query II rowsort label-1013
SELECT DISTINCT + COUNT( * ) AS col0, + ( + 19 ) AS col2
----
1
19

skipif mysql # not compatible
query II rowsort label-1013
SELECT DISTINCT + COUNT ( * ) AS col0, + ( + 19 ) AS col2
----
1
19

query I rowsort
SELECT - 6 + 22 AS col1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-1015
SELECT - 23 * + 54 * - - 39 col1, MAX( 70 )
----
-48438
70

skipif mysql # not compatible
query II rowsort label-1015
SELECT - 23 * + 54 * - - 39 col1, MAX ( 70 )
----
-48438
70

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1017
SELECT - CAST( - 50 AS SIGNED ) - + NULLIF ( - 38, + 67 ) + - NULLIF ( + - COUNT( * ), + + 43 * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + 51 )
----
89

skipif mysql # not compatible
query I rowsort label-1017
SELECT - CAST ( - 50 AS INTEGER ) - + NULLIF ( - 38, + 67 ) + - NULLIF ( + - COUNT ( * ), + + 43 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 51 )
----
89

query I rowsort
SELECT NULLIF ( - 28, + 98 - - + 93 ) AS col2
----
-28

query II rowsort
SELECT - 37 AS col2, 60
----
-37
60

query I rowsort
SELECT ALL - 54 + 87 col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1021
SELECT ALL + - 99 DIV 32 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL + - 99 / 32 AS col1
----
-3

query I rowsort
SELECT + 90 * + + 61 AS col1
----
5490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1023
SELECT 99 + CAST( - - 9 AS SIGNED ) col0
----
108

skipif mysql # not compatible
query I rowsort label-1023
SELECT 99 + CAST ( - - 9 AS INTEGER ) col0
----
108

query II rowsort
SELECT ALL + 43 AS col2, 2 * - 90
----
43
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1025
SELECT NULLIF ( - 14, + CAST( NULL AS SIGNED ) ) * 83
----
-1162

skipif mysql # not compatible
query I rowsort label-1025
SELECT NULLIF ( - 14, + CAST ( NULL AS INTEGER ) ) * 83
----
-1162

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT + COUNT( * ) + + 65 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-1026
SELECT + COUNT ( * ) + + 65 AS col1
----
66

query I rowsort
SELECT ALL + 29 * + 93
----
2697

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL + 18 + - CASE + 89 WHEN - + 62 THEN NULL ELSE + + SUM( + 69 ) END - + 22 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL + 18 + - CASE + 89 WHEN - + 62 THEN NULL ELSE + + SUM ( + 69 ) END - + 22 AS col1
----
-73

query I rowsort
SELECT DISTINCT + ( + 38 ) * + - 95 * + 0 AS col1
----
0

query I rowsort
SELECT ALL 70 + 60 AS col0
----
130

query I rowsort
SELECT - NULLIF ( - 87, - 1 ) * - + 68 * - - 41
----
-242556

query I rowsort
SELECT DISTINCT - 27 + - 77 AS col1
----
-104

query I rowsort
SELECT ALL + 69 * - COALESCE ( 22, + 23 )
----
-1518

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1034
SELECT + 6 + 46 + - CAST( NULL AS DECIMAL ) + - - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1034
SELECT + 6 + 46 + - CAST ( NULL AS REAL ) + - - 68 AS col0
----
NULL

query I rowsort
SELECT - - 48
----
48

query I rowsort
SELECT DISTINCT 12 col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT ALL 73 - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL 73 - COUNT ( * )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1038
SELECT ALL 56, - 92 * 83 * - CAST( NULL AS SIGNED ) AS col2
----
56
NULL

skipif mysql # not compatible
query II rowsort label-1038
SELECT ALL 56, - 92 * 83 * - CAST ( NULL AS INTEGER ) AS col2
----
56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT + NULLIF ( + - 16, 38 ) + 74 * + 42 * + 42 + + - CASE + 45 WHEN 99 * 23 + ( + 85 ) * 34 THEN NULL WHEN - 46 THEN - 71 WHEN 52 * 20 THEN 63 / - 31 END - 30 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1039
SELECT + NULLIF ( + - 16, 38 ) + 74 * + 42 * + 42 + + - CASE + 45 WHEN 99 * 23 + ( + 85 ) * 34 THEN NULL WHEN - 46 THEN - 71 WHEN 52 * 20 THEN 63 / - 31 END - 30 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1040
SELECT COUNT( * ) * + 79 AS col1, 75 * 22 + 87
----
79
1737

skipif mysql # not compatible
query II rowsort label-1040
SELECT COUNT ( * ) * + 79 AS col1, 75 * 22 + 87
----
79
1737

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1041
SELECT NULLIF ( - 12, - 47 * + 56 * - - 6 + - + CAST( NULL AS SIGNED ) + + 47 * 44 ) + - 25 DIV + COALESCE ( 66 * - CASE - 39 WHEN COUNT( * ) * COUNT( * ) THEN NULL WHEN + 15 * 35 THEN - 64 END, SUM( ALL + 86 ) * + ( - 71 * + COUNT( * ) + + ( - 76 ) ) + 37 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-1041
SELECT NULLIF ( - 12, - 47 * + 56 * - - 6 + - + CAST ( NULL AS INTEGER ) + + 47 * 44 ) + - 25 / + COALESCE ( 66 * - CASE - 39 WHEN COUNT ( * ) * COUNT ( * ) THEN NULL WHEN + 15 * 35 THEN - 64 END, SUM ( ALL + 86 ) * + ( - 71 * + COUNT ( * ) + + ( - 76 ) ) + 37 ) AS col2
----
-12

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

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL COUNT ( * ) - - 67 * - 82 AS col1
----
-5493

onlyif mysql # DIV for integer division: 
query I rowsort label-1043
SELECT 56 DIV 90 DIV 56 * + 16 + - ( - 57 )
----
57

skipif mysql # not compatible
query I rowsort label-1043
SELECT 56 / 90 / 56 * + 16 + - ( - 57 )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1044
SELECT 83 DIV - 26 + - - NULLIF ( - 62, - + 33 * - - CASE + + 26 WHEN COUNT( * ) THEN + 90 END + 23 ) * - 69 AS col0
----
4275

skipif mysql # not compatible
query I rowsort label-1044
SELECT 83 / - 26 + - - NULLIF ( - 62, - + 33 * - - CASE + + 26 WHEN COUNT ( * ) THEN + 90 END + 23 ) * - 69 AS col0
----
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT COUNT( * ) * - ( + 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-1045
SELECT COUNT ( * ) * - ( + 54 ) AS col1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1046
SELECT COALESCE ( - 13, CAST( NULL AS SIGNED ) ) + + 43, 39 * 74 + 5 + - 68 col1
----
30
2823

skipif mysql # not compatible
query II rowsort label-1046
SELECT COALESCE ( - 13, CAST ( NULL AS INTEGER ) ) + + 43, 39 * 74 + 5 + - 68 col1
----
30
2823

onlyif mysql # DIV for integer division: 
query II rowsort label-1047
SELECT 64 DIV + - 7, ( + ( 46 ) ) + - 72 * 81 AS col1
----
-9
-5786

skipif mysql # not compatible
query II rowsort label-1047
SELECT 64 / + - 7, ( + ( 46 ) ) + - 72 * 81 AS col1
----
-9
-5786

query I rowsort
SELECT ALL - 3 col0
----
-3

query I rowsort
SELECT DISTINCT ( 42 ) * - 95 * - 3 AS col2
----
11970

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1051
SELECT ( + + 4 ) / + CASE COALESCE ( + - 87, + ( - 93 ), + 50 + - CAST( NULL AS DECIMAL ) ) WHEN + CAST( NULL AS SIGNED ) THEN + ( ( COUNT( * ) ) ) * + 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1051
SELECT ( + + 4 ) / + CASE COALESCE ( + - 87, + ( - 93 ), + 50 + - CAST ( NULL AS REAL ) ) WHEN + CAST ( NULL AS INTEGER ) THEN + ( ( COUNT ( * ) ) ) * + 41 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT ( - - 99 ) * - - COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-1053
SELECT ( - - 99 ) * - - COUNT ( * )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT 73 + - COALESCE ( + - COUNT( * ), NULLIF ( 5, 67 * + 21 + + + 46 ) + - COUNT( * ) + 62 * NULLIF ( - 30, + 20 - CASE - 57 WHEN 66 + + 61 * 3 THEN 15 + NULLIF ( + 49, 71 * CASE NULLIF ( + 34, - MIN( 13 ) * - 2 + 19 ) * 17 WHEN + 46 * NULLIF ( - ( - 67 ) * + 73, - 50 * MAX( ALL - 63 ) ) THEN - COUNT( * ) + + ( ( 10 ) ) * 66 WHEN + 27 + + 56 * - COALESCE ( - COALESCE ( + 59, 68 ) + + 1 * 9, 11 ) THEN NULL END ) END ) * 83 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-1054
SELECT 73 + - COALESCE ( + - COUNT ( * ), NULLIF ( 5, 67 * + 21 + + + 46 ) + - COUNT ( * ) + 62 * NULLIF ( - 30, + 20 - CASE - 57 WHEN 66 + + 61 * 3 THEN 15 + NULLIF ( + 49, 71 * CASE NULLIF ( + 34, - MIN ( 13 ) * - 2 + 19 ) * 17 WHEN + 46 * NULLIF ( - ( - 67 ) * + 73, - 50 * MAX ( ALL - 63 ) ) THEN - COUNT ( * ) + + ( ( 10 ) ) * 66 WHEN + 27 + + 56 * - COALESCE ( - COALESCE ( + 59, 68 ) + + 1 * 9, 11 ) THEN NULL END ) END ) * 83 ) AS col1
----
74

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1056
SELECT CAST( - + 82 AS SIGNED ) * - - 7 + 2 * 37 + + CAST( NULL AS SIGNED ) + - 43 * 48 * - ( - 73 ) * COUNT( * ) * + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1056
SELECT CAST ( - + 82 AS INTEGER ) * - - 7 + 2 * 37 + + CAST ( NULL AS INTEGER ) + - 43 * 48 * - ( - 73 ) * COUNT ( * ) * + 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT 89 * COALESCE ( COUNT( * ), + - 5, - 54 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-1057
SELECT 89 * COALESCE ( COUNT ( * ), + - 5, - 54 ) AS col0
----
89

query I rowsort
SELECT DISTINCT - 49 + + 54 + + 52 AS col2
----
57

query I rowsort
SELECT ALL + 94 + + 6 AS col1
----
100

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT DISTINCT 58 + + MAX( ALL + - 4 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-1061
SELECT DISTINCT 58 + + MAX ( ALL + - 4 ) AS col1
----
54

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1063
SELECT DISTINCT - - 59 + CAST( + MIN( DISTINCT + 16 ) AS SIGNED ) + + - 35
----
40

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT - - 59 + CAST ( + MIN ( DISTINCT + 16 ) AS INTEGER ) + + - 35
----
40

query I rowsort
SELECT DISTINCT - 31 + 97 + + 93 - - 55 * - 50 AS col0
----
-2591

query I rowsort
SELECT ALL COALESCE ( 97, - - 26 * 76 + 3 ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1066
SELECT + 9 * - 29 * + + 22 DIV - COUNT( * ) + - 23 + 84 * - CAST( + + 33 AS SIGNED )
----
2947

skipif mysql # not compatible
query I rowsort label-1066
SELECT + 9 * - 29 * + + 22 / - COUNT ( * ) + - 23 + 84 * - CAST ( + + 33 AS INTEGER )
----
2947

query I rowsort
SELECT ALL 78 col2
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1068
SELECT DISTINCT + + 29 * + COUNT( * ) AS col0, - 8
----
29
-8

skipif mysql # not compatible
query II rowsort label-1068
SELECT DISTINCT + + 29 * + COUNT ( * ) AS col0, - 8
----
29
-8

query I rowsort
SELECT 83 * 67 * - - 8 col0
----
44488

query I rowsort
SELECT + 82 * 13 + 29 + - - 64
----
1159

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT ALL - + 17 - - - 22 + + 62 + - COUNT( * ) * COUNT( * ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-1071
SELECT ALL - + 17 - - - 22 + + 62 + - COUNT ( * ) * COUNT ( * ) AS col0
----
22

query I rowsort
SELECT + ( - + NULLIF ( + 79, + 54 / - + 91 ) ) col0
----
-79

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

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

skipif mysql # not compatible
query I rowsort label-1074
SELECT AVG ( ALL - 81 ) - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1075
SELECT ALL + - 4 DIV 32
----
0

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL + - 4 / 32
----
0

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

query I rowsort
SELECT ALL 12 col0
----
12

query II rowsort
SELECT DISTINCT - 24 * + - 19 AS col2, - 1
----
456
-1

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

skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT + + 37 / - + ( - COUNT ( * ) )
----
37

query I rowsort
SELECT DISTINCT - NULLIF ( - 23, - 86 ) AS col1
----
23

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

query I rowsort
SELECT 42 * - 3 col2
----
-126

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

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

query II rowsort
SELECT - 53, 27 AS col0
----
-53
27

query II rowsort
SELECT - 10, + 47 AS col0
----
-10
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT CASE + + 64 WHEN + - 85 * + 63 + + 25 + - + MIN( + + 31 ) * 75 / + 97 THEN 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1086
SELECT CASE + + 64 WHEN + - 85 * + 63 + + 25 + - + MIN ( + + 31 ) * 75 / + 97 THEN 8 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT CASE 92 WHEN 49 * + 68 - + 24 + + - SUM( ALL + 30 ) THEN NULL WHEN + 22 THEN ( - COUNT( * ) ) END * 86 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1087
SELECT CASE 92 WHEN 49 * + 68 - + 24 + + - SUM ( ALL + 30 ) THEN NULL WHEN + 22 THEN ( - COUNT ( * ) ) END * 86 col0
----
NULL

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

query I rowsort
SELECT 38 + + 3 col0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1090
SELECT NULLIF ( - + COALESCE ( 0, - NULLIF ( - 71, 24 DIV + + 77 ) DIV - - 63, + + 22 + + 99 * 77 ), + 4 + - 15 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1090
SELECT NULLIF ( - + COALESCE ( 0, - NULLIF ( - 71, 24 / + + 77 ) / - - 63, + + 22 + + 99 * 77 ), + 4 + - 15 ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1091
SELECT + CAST( 41 AS SIGNED ) * + 67 AS col0
----
2747

skipif mysql # not compatible
query I rowsort label-1091
SELECT + CAST ( 41 AS INTEGER ) * + 67 AS col0
----
2747

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

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

query I rowsort
SELECT + COALESCE ( 8, - ( - ( + 36 ) ) * + - 70, - 28 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT NULLIF ( 56, - COUNT( * ) ) * + - 57 + - 88 * - 22 * - 40 + COUNT( * ) col0
----
-80631

skipif mysql # not compatible
query I rowsort label-1094
SELECT NULLIF ( 56, - COUNT ( * ) ) * + - 57 + - 88 * - 22 * - 40 + COUNT ( * ) col0
----
-80631

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT MIN( DISTINCT + ( - 50 ) ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-1095
SELECT MIN ( DISTINCT + ( - 50 ) ) AS col0
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-1096
SELECT ALL + 35 DIV - 83 * + 43, 53 AS col0
----
0
53

skipif mysql # not compatible
query II rowsort label-1096
SELECT ALL + 35 / - 83 * + 43, 53 AS col0
----
0
53

query I rowsort
SELECT + ( + 10 ) + - + 72 AS col2
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1098
SELECT COUNT( DISTINCT - CAST( 98 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-1098
SELECT COUNT ( DISTINCT - CAST ( 98 AS INTEGER ) )
----
1

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

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

query I rowsort
SELECT ALL - 94 * - + 8 * - 85 + 8 * + 27 AS col1
----
-63704

onlyif mysql # aggregate syntax: 
query II rowsort label-1101
SELECT + + ( + 14 ) * 33 AS col2, - 25 * + + COUNT( * ) * + 94 + + 57 AS col2
----
462
-2293

skipif mysql # not compatible
query II rowsort label-1101
SELECT + + ( + 14 ) * 33 AS col2, - 25 * + + COUNT ( * ) * + 94 + + 57 AS col2
----
462
-2293

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

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

query I rowsort
SELECT - + 57 + + - 51
----
-108

query I rowsort
SELECT + + 46 * - 4
----
-184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1105
SELECT + + COALESCE ( - ( + 91 ), ( + MAX( - 28 ) ) ) * + 48 + - 48 / + COUNT( * ) + - 73 + 83 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1105
SELECT + + COALESCE ( - ( + 91 ), ( + MAX ( - 28 ) ) ) * + 48 + - 48 / + COUNT ( * ) + - 73 + 83 * CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT + COUNT( DISTINCT + + ( NULLIF ( 45, - 78 * 28 + + + 52 + 8 / - 66 + - + 71 ) ) ) + + 39 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-1107
SELECT + COUNT ( DISTINCT + + ( NULLIF ( 45, - 78 * 28 + + + 52 + 8 / - 66 + - + 71 ) ) ) + + 39 AS col1
----
40

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

query I rowsort
SELECT - 16 * + 36
----
-576

query I rowsort
SELECT ALL - 36 - - 63 * 98 col2
----
6138

query I rowsort
SELECT - + 56 + 76
----
20

query I rowsort
SELECT - - 39 * - + 52 + + 65 + + + 91 AS col1
----
-1872

query II rowsort
SELECT ALL 25 AS col1, 60 AS col2
----
25
60

onlyif mysql # aggregate syntax: 
query II rowsort label-1114
SELECT 0 AS col1, COUNT( * ) + - - COUNT( * ) + - 44 * + 61 + + - 82 * + + ( - COUNT( * ) )
----
0
-2600

skipif mysql # not compatible
query II rowsort label-1114
SELECT 0 AS col1, COUNT ( * ) + - - COUNT ( * ) + - 44 * + 61 + + - 82 * + + ( - COUNT ( * ) )
----
0
-2600

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT - COUNT( * ) + + - MIN( 59 )
----
-60

skipif mysql # not compatible
query I rowsort label-1116
SELECT - COUNT ( * ) + + - MIN ( 59 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT ALL + MIN( ALL + 37 ) + + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL + MIN ( ALL + 37 ) + + COUNT ( * )
----
38

query I rowsort
SELECT DISTINCT COALESCE ( + 57, - 37 + 71 * 31, + 14 + + - 83 + + 71 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT - 19 / - ( CASE - 49 WHEN - 18 THEN - CASE 34 WHEN + 91 THEN 31 * ( 25 ) END * + 10 + ( 9 ) ELSE ( - MIN( + CASE 17 WHEN 44 THEN + 12 / + 69 WHEN 68 + + 36 THEN NULL WHEN 94 THEN NULL END ) ) - + COUNT( * ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1119
SELECT - 19 / - ( CASE - 49 WHEN - 18 THEN - CASE 34 WHEN + 91 THEN 31 * ( 25 ) END * + 10 + ( 9 ) ELSE ( - MIN ( + CASE 17 WHEN 44 THEN + 12 / + 69 WHEN 68 + + 36 THEN NULL WHEN 94 THEN NULL END ) ) - + COUNT ( * ) END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1120
SELECT ALL 30 + - + 2 + - 3 + + 49 DIV + - 16 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL 30 + - + 2 + - 3 + + 49 / + - 16 AS col1
----
22

query I rowsort
SELECT - 36 + - 79 * - 55 AS col0
----
4309

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1122
SELECT DISTINCT - COUNT( * ) DIV + - NULLIF ( 1, - + ( 86 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1122
SELECT DISTINCT - COUNT ( * ) / + - NULLIF ( 1, - + ( 86 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1123
SELECT - 83 DIV + SUM( - + 33 )
----
2

skipif mysql # not compatible
query I rowsort label-1123
SELECT - 83 / + SUM ( - + 33 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1124
SELECT CAST( NULL AS DECIMAL ) / 14 + - 33 / - 35, + 0 - 83 * - COALESCE ( MAX( + 76 ), - - 7 + + - 1 ) AS col0
----
NULL
6308

skipif mysql # not compatible
query II rowsort label-1124
SELECT CAST ( NULL AS REAL ) / 14 + - 33 / - 35, + 0 - 83 * - COALESCE ( MAX ( + 76 ), - - 7 + + - 1 ) AS col0
----
NULL
6308

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1126
SELECT + CAST( - + 90 AS SIGNED ) + - - CASE 5 WHEN + + ( - CAST( NULL AS SIGNED ) ) * - 8 THEN + - COUNT( * ) ELSE NULL END + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1126
SELECT + CAST ( - + 90 AS INTEGER ) + - - CASE 5 WHEN + + ( - CAST ( NULL AS INTEGER ) ) * - 8 THEN + - COUNT ( * ) ELSE NULL END + - 16
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1127
SELECT + CAST( NULL AS SIGNED ) * + ( 75 ) + 85 - 1 + - 18 * - 9 * + 84 * - ( - 58 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1127
SELECT + CAST ( NULL AS INTEGER ) * + ( 75 ) + 85 - 1 + - 18 * - 9 * + 84 * - ( - 58 ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 34 AS col1, - COALESCE ( - 99, - 10 + + - 63 ) AS col0
----
34
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1129
SELECT DISTINCT 78 DIV - - NULLIF ( + 64, NULLIF ( - + 73, - ( 49 ) + - COUNT( * ) ) ) + + ( 3 ) - + - CAST( 26 AS SIGNED ) DIV + ( COUNT( 37 ) )
----
30

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT 78 / - - NULLIF ( + 64, NULLIF ( - + 73, - ( 49 ) + - COUNT ( * ) ) ) + + ( 3 ) - + - CAST ( 26 AS INTEGER ) / + ( COUNT ( 37 ) )
----
30

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1131
SELECT ALL 53 DIV + 73 + 94 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL 53 / + 73 + 94 AS col1
----
94

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1133
SELECT DISTINCT + - 10, + 75 + - - CAST( NULL AS SIGNED ) AS col2
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-1133
SELECT DISTINCT + - 10, + 75 + - - CAST ( NULL AS INTEGER ) AS col2
----
-10
NULL

query I rowsort
SELECT + - 36 + + + 3 AS col2
----
-33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT ALL + MIN( ALL + - 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-1136
SELECT ALL + MIN ( ALL + - 45 ) AS col1
----
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-1137
SELECT DISTINCT 76 DIV 73 + + COALESCE ( - 74, - - 33 * - - 13 ) col1, 13 * + 76 AS col0
----
-73
988

skipif mysql # not compatible
query II rowsort label-1137
SELECT DISTINCT 76 / 73 + + COALESCE ( - 74, - - 33 * - - 13 ) col1, 13 * + 76 AS col0
----
-73
988

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT ALL + + 86 * COUNT( * ) - + - COUNT( * ) + - 85 * - 81 + + 51 * + 13 AS col1
----
7635

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL + + 86 * COUNT ( * ) - + - COUNT ( * ) + - 85 * - 81 + + 51 * + 13 AS col1
----
7635

query II rowsort
SELECT + 51, - ( + 89 ) col0
----
51
-89

query I rowsort
SELECT + + 51
----
51

query II rowsort
SELECT 2 AS col0, + 76 + + - 40 AS col1
----
2
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1142
SELECT + 64 DIV MIN( ALL 70 )
----
0

skipif mysql # not compatible
query I rowsort label-1142
SELECT + 64 / MIN ( ALL 70 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1143
SELECT + 33 * - 11 + - 88 * + 43, + NULLIF ( ( 59 ), + 91 * + 38 / 61 + - + NULLIF ( 46, ( 78 ) * + 4 ) + + SUM( 7 ) * + AVG ( ALL NULLIF ( 6, ( 68 ) * NULLIF ( 0 - 77, + 51 ) ) ) / 26 ) + - 19 AS col0
----
-4147
40

skipif mysql # not compatible
query II rowsort label-1143
SELECT + 33 * - 11 + - 88 * + 43, + NULLIF ( ( 59 ), + 91 * + 38 / 61 + - + NULLIF ( 46, ( 78 ) * + 4 ) + + SUM ( 7 ) * + AVG ( ALL NULLIF ( 6, ( 68 ) * NULLIF ( 0 - 77, + 51 ) ) ) / 26 ) + - 19 AS col0
----
-4147
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT ALL - 90 * COUNT( ALL 91 ) * 15 col2
----
-1350

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL - 90 * COUNT ( ALL 91 ) * 15 col2
----
-1350

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1146
SELECT DISTINCT - 79 DIV - + 66
----
1

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT - 79 / - + 66
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT + + ( SUM( DISTINCT - 27 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-1147
SELECT + + ( SUM ( DISTINCT - 27 ) )
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1148
SELECT + 2, MIN( ALL - + 42 ) DIV - + ( - - 88 ) * - - ( - 62 ) + + 33 + + + 54 AS col0
----
2
87

skipif mysql # not compatible
query II rowsort label-1148
SELECT + 2, MIN ( ALL - + 42 ) / - + ( - - 88 ) * - - ( - 62 ) + + 33 + + + 54 AS col0
----
2
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT ALL - NULLIF ( - - 88, CASE 23 WHEN 98 THEN - 86 * - - MIN( DISTINCT 73 ) WHEN - - 86 THEN NULL END * - 67 ) * - - 20
----
-1760

skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL - NULLIF ( - - 88, CASE 23 WHEN 98 THEN - 86 * - - MIN ( DISTINCT 73 ) WHEN - - 86 THEN NULL END * - 67 ) * - - 20
----
-1760

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

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

query I rowsort
SELECT + + 60 * 50
----
3000

query II rowsort
SELECT DISTINCT - 81 col1, 71
----
-81
71

query I rowsort
SELECT ( - 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT + ( + MAX( + 63 ) ) + - 75 + - - ( + - 1 ) * - - 51 + - 99
----
-162

skipif mysql # not compatible
query I rowsort label-1155
SELECT + ( + MAX ( + 63 ) ) + - 75 + - - ( + - 1 ) * - - 51 + - 99
----
-162

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

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

query I rowsort
SELECT - 49 * - + 53
----
2597

query II rowsort
SELECT - - 33 AS col1, ( + 17 )
----
33
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT + 49 - - ( - COUNT( * ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-1159
SELECT + 49 - - ( - COUNT ( * ) ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT ALL CASE 20 WHEN 1 THEN 38 * - COUNT( * ) * + 15 + + 95 WHEN - MIN( ALL + + 36 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL CASE 20 WHEN 1 THEN 38 * - COUNT ( * ) * + 15 + + 95 WHEN - MIN ( ALL + + 36 ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1161
SELECT MIN( + 44 ) AS col2, 4 AS col1
----
44
4

skipif mysql # not compatible
query II rowsort label-1161
SELECT MIN ( + 44 ) AS col2, 4 AS col1
----
44
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT ALL MAX( ALL - 36 ) + + + 13 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL MAX ( ALL - 36 ) + + + 13 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT + 43 * + MIN( DISTINCT - + 28 ) col1
----
-1204

skipif mysql # not compatible
query I rowsort label-1163
SELECT + 43 * + MIN ( DISTINCT - + 28 ) col1
----
-1204

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT ALL - 25 + CASE + + 88 WHEN 93 + 87 + 78 THEN 48 WHEN + + 47 + + 25 * COALESCE ( ( - SUM( 9 ) ), ( - NULLIF ( 48, COUNT( * ) * 25 ) ) / + ( + 56 ), + 87 ) + + 1 THEN NULL WHEN + COALESCE ( + 94, 67, + MIN( ALL ( - 92 ) ) ) THEN NULL ELSE 73 * 42 END * + 5
----
15305

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL - 25 + CASE + + 88 WHEN 93 + 87 + 78 THEN 48 WHEN + + 47 + + 25 * COALESCE ( ( - SUM ( 9 ) ), ( - NULLIF ( 48, COUNT ( * ) * 25 ) ) / + ( + 56 ), + 87 ) + + 1 THEN NULL WHEN + COALESCE ( + 94, 67, + MIN ( ALL ( - 92 ) ) ) THEN NULL ELSE 73 * 42 END * + 5
----
15305

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT ALL - COUNT( * ) + + - 4 - COUNT( * ) + 73
----
67

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL - COUNT ( * ) + + - 4 - COUNT ( * ) + 73
----
67

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

query I rowsort
SELECT - 13 * - + 87 * + - 35 * - 46 * - 81 AS col0
----
-147493710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1169
SELECT 77 - + - 84 + CAST( - 13 AS SIGNED ) AS col0
----
148

skipif mysql # not compatible
query I rowsort label-1169
SELECT 77 - + - 84 + CAST ( - 13 AS INTEGER ) AS col0
----
148

query I rowsort
SELECT 20 col2
----
20

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

query I rowsort
SELECT 99 * - - 71 * + 90 AS col2
----
632610

query I rowsort
SELECT ALL 59 + 93 * + + 19
----
1826

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

query I rowsort
SELECT ALL - 63 + + 94 + - 38 * + 10 AS col0
----
-349

query I rowsort
SELECT 89 * - 17
----
-1513

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1178
SELECT ALL + 99 - + 76 DIV - ( 60 ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL + 99 - + 76 / - ( 60 ) AS col0
----
100

query II rowsort
SELECT DISTINCT - COALESCE ( + - 65, + ( 7 ) ) * + 84, 10 AS col0
----
5460
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1180
SELECT 96 * + - 9 * - 74 + - CASE 74 WHEN + COUNT( * ) THEN - CAST( 90 AS SIGNED ) END * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-1180
SELECT 96 * + - 9 * - 74 + - CASE 74 WHEN + COUNT ( * ) THEN - CAST ( 90 AS INTEGER ) END * - 58
----
NULL

query I rowsort
SELECT 30 * + 6 + - NULLIF ( - - 82, 41 ) AS col2
----
98

query I rowsort
SELECT - 2 * - 24 + - COALESCE ( + 10, - + 47 ) * - 20
----
248

query I rowsort
SELECT 23 col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT ALL - - 85 - + NULLIF ( - ( - + COUNT( ALL + ( 20 ) ) ), ( + ( + COUNT( * ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL - - 85 - + NULLIF ( - ( - + COUNT ( ALL + ( 20 ) ) ), ( + ( + COUNT ( * ) ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1185
SELECT - 34 * CAST( + 79 AS SIGNED ) DIV + 49
----
-54

skipif mysql # not compatible
query I rowsort label-1185
SELECT - 34 * CAST ( + 79 AS INTEGER ) / + 49
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1186
SELECT - 9 * CAST( + - 16 AS SIGNED )
----
144

skipif mysql # not compatible
query I rowsort label-1186
SELECT - 9 * CAST ( + - 16 AS INTEGER )
----
144

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1189
SELECT 68 + 94 - + + MIN( ALL - + 66 ) * - COUNT( * ) DIV + + 84 AS col0
----
162

skipif mysql # not compatible
query I rowsort label-1189
SELECT 68 + 94 - + + MIN ( ALL - + 66 ) * - COUNT ( * ) / + + 84 AS col0
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1190
SELECT ALL - 50 * - + 2 + - CAST( - - 34 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL - 50 * - + 2 + - CAST ( - - 34 AS INTEGER )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1191
SELECT - ( + CAST( NULL AS SIGNED ) ) * - 26 / - 5 + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1191
SELECT - ( + CAST ( NULL AS INTEGER ) ) * - 26 / - 5 + 83 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1193
SELECT 78 * 17 - + CAST( NULL AS SIGNED ), + COUNT( * ) * + 2 * 72 AS col0
----
NULL
144

skipif mysql # not compatible
query II rowsort label-1193
SELECT 78 * 17 - + CAST ( NULL AS INTEGER ), + COUNT ( * ) * + 2 * 72 AS col0
----
NULL
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1194
SELECT 37 + + COUNT( * ) + NULLIF ( + + CAST( - - 25 AS SIGNED ), - 26 ) DIV NULLIF ( - 46, ( 4 ) )
----
38

skipif mysql # not compatible
query I rowsort label-1194
SELECT 37 + + COUNT ( * ) + NULLIF ( + + CAST ( - - 25 AS INTEGER ), - 26 ) / NULLIF ( - 46, ( 4 ) )
----
38

query II rowsort
SELECT ( + 34 ), + ( 68 ) - + + 34
----
34
34

query II rowsort
SELECT + 34 * 93, 8 AS col2
----
3162
8

query I rowsort
SELECT - - COALESCE ( - 78, + + 11 )
----
-78

query I rowsort
SELECT ALL - 38 * + - 59 AS col0
----
2242

query I rowsort
SELECT DISTINCT 55 + + 62
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT ALL 25 + + - 2 - + 29 * + SUM( ALL + 44 ) + - COUNT( * )
----
-1254

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL 25 + + - 2 - + 29 * + SUM ( ALL + 44 ) + - COUNT ( * )
----
-1254

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT COUNT( * ) + 4 col0
----
5

skipif mysql # not compatible
query I rowsort label-1201
SELECT COUNT ( * ) + 4 col0
----
5

query I rowsort
SELECT ALL 19 + 12 * - - 5 * - NULLIF ( 84, - 64 + + AVG ( DISTINCT 41 ) )
----
-5021

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

query I rowsort
SELECT 83 * + 91 AS col0
----
7553

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT CASE - 30 WHEN + MAX( ALL - + 52 ) + - 16 THEN - 83 ELSE NULL END + 67 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1205
SELECT CASE - 30 WHEN + MAX ( ALL - + 52 ) + - 16 THEN - 83 ELSE NULL END + 67 col0
----
NULL

query I rowsort
SELECT 73 + - 96 * - 22 AS col1
----
2185

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT ALL 59 - + 8 - 55 + COUNT( * ) * - ( - ( - - 37 ) )
----
33

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL 59 - + 8 - 55 + COUNT ( * ) * - ( - ( - - 37 ) )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1208
SELECT ( - 70 ) + 44 + 38 + - 27 * - + COALESCE ( + 53, + 29 + 91 ) * + - ( - + 77 ) + CAST( - MIN( DISTINCT - 29 ) AS SIGNED ) * 82 * 99 * 98 AS col1
----
23181555

skipif mysql # not compatible
query I rowsort label-1208
SELECT ( - 70 ) + 44 + 38 + - 27 * - + COALESCE ( + 53, + 29 + 91 ) * + - ( - + 77 ) + CAST ( - MIN ( DISTINCT - 29 ) AS INTEGER ) * 82 * 99 * 98 AS col1
----
23181555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1209
SELECT ALL + 31 - + + CAST( - + 80 AS SIGNED ) AS col0
----
111

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL + 31 - + + CAST ( - + 80 AS INTEGER ) AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT ALL - 76 * + CASE 88 WHEN - MIN( - - 43 ) THEN + 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL - 76 * + CASE 88 WHEN - MIN ( - - 43 ) THEN + 20 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT ALL 11 * COUNT( 82 )
----
11

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL 11 * COUNT ( 82 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT MAX( 25 ) + - 72 + 8 + 44 * 8
----
313

skipif mysql # not compatible
query I rowsort label-1212
SELECT MAX ( 25 ) + - 72 + 8 + 44 * 8
----
313

query II rowsort
SELECT - 92 AS col0, 10 * + - 29 AS col1
----
-92
-290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1214
SELECT 8 + 85 DIV COUNT( * ) col1
----
93

skipif mysql # not compatible
query I rowsort label-1214
SELECT 8 + 85 / COUNT ( * ) col1
----
93

query I rowsort
SELECT DISTINCT - - 58
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT ALL - SUM( DISTINCT - 62 ) col0
----
62

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL - SUM ( DISTINCT - 62 ) col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT ALL - - ( NULLIF ( - 9, 59 * 18 * - COUNT( DISTINCT - ( - 24 ) ) / - 39 ) ) col1
----
-9

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL - - ( NULLIF ( - 9, 59 * 18 * - COUNT ( DISTINCT - ( - 24 ) ) / - 39 ) ) col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT DISTINCT - ( - ( + COALESCE ( + - 14, + ( - + COUNT( * ) ) * COUNT( * ) ) ) ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-1218
SELECT DISTINCT - ( - ( + COALESCE ( + - 14, + ( - + COUNT ( * ) ) * COUNT ( * ) ) ) ) AS col2
----
-14

query II rowsort
SELECT 94, 62 * - - 75 AS col1
----
94
4650

query II rowsort
SELECT + 47, 37 - + 74 AS col0
----
47
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1221
SELECT ALL + + 78 DIV - 3 + - 40 * - ( - COUNT( 65 ) ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-1221
SELECT ALL + + 78 / - 3 + - 40 * - ( - COUNT ( 65 ) ) AS col1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-1222
SELECT + 21 DIV 7
----
3

skipif mysql # not compatible
query I rowsort label-1222
SELECT + 21 / 7
----
3

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

skipif mysql # not compatible
query II rowsort label-1223
SELECT + - 62, + COUNT ( 6 ) AS col1
----
-62
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT ALL - + MAX( DISTINCT 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL - + MAX ( DISTINCT 7 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1225
SELECT + - CASE + 61 WHEN - - COUNT( * ) * - 16 THEN CAST( + 53 AS SIGNED ) / - + 27 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1225
SELECT + - CASE + 61 WHEN - - COUNT ( * ) * - 16 THEN CAST ( + 53 AS INTEGER ) / - + 27 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1226
SELECT + COUNT( * ) * CASE - CAST( NULL AS SIGNED ) WHEN + - 49 THEN NULL WHEN - ( 26 ) THEN NULL ELSE + - 41 + 56 + + COUNT( * ) * 52 END * - 8 + + - 62 - ( + 90 ) + 19 AS col0
----
-669

skipif mysql # not compatible
query I rowsort label-1226
SELECT + COUNT ( * ) * CASE - CAST ( NULL AS INTEGER ) WHEN + - 49 THEN NULL WHEN - ( 26 ) THEN NULL ELSE + - 41 + 56 + + COUNT ( * ) * 52 END * - 8 + + - 62 - ( + 90 ) + 19 AS col0
----
-669

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT CASE 70 WHEN - + 21 / 41 + - 84 - + 23 / 9 * + NULLIF ( - - COUNT( * ), + + 90 ) THEN + 21 * 89 - - 32 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1227
SELECT CASE 70 WHEN - + 21 / 41 + - 84 - + 23 / 9 * + NULLIF ( - - COUNT ( * ), + + 90 ) THEN + 21 * 89 - - 32 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 46 + + 84
----
130

query I rowsort
SELECT 80 col2
----
80

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

query I rowsort
SELECT DISTINCT - 55 + 42 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT DISTINCT - NULLIF ( + + 81, + 6 - + 32 + - + 82 ) * 35 * - 66 + COUNT( * ) AS col1
----
187111

skipif mysql # not compatible
query I rowsort label-1232
SELECT DISTINCT - NULLIF ( + + 81, + 6 - + 32 + - + 82 ) * 35 * - 66 + COUNT ( * ) AS col1
----
187111

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1234
SELECT + 13 + + 12 DIV - 23
----
13

skipif mysql # not compatible
query I rowsort label-1234
SELECT + 13 + + 12 / - 23
----
13

query II rowsort
SELECT DISTINCT - 62 + 71 AS col0, + 88 * + 51 AS col1
----
9
4488

query I rowsort
SELECT DISTINCT 13 * - 23
----
-299

query I rowsort
SELECT - 16 col0
----
-16

query I rowsort
SELECT DISTINCT + 90 * - - 39 * ( + 69 )
----
242190

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1240
SELECT + CAST( NULL AS SIGNED ) * - - 9 AS col1, ( 44 ) AS col1
----
NULL
44

skipif mysql # not compatible
query II rowsort label-1240
SELECT + CAST ( NULL AS INTEGER ) * - - 9 AS col1, ( 44 ) AS col1
----
NULL
44

query I rowsort
SELECT ALL + 72 * + 70 * - - 28
----
141120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1242
SELECT DISTINCT - 17 * 72, COALESCE ( + + COUNT( * ), + - 3 DIV - 9 + - 84 ) * - 53 + - 55 AS col2
----
-1224
-108

skipif mysql # not compatible
query II rowsort label-1242
SELECT DISTINCT - 17 * 72, COALESCE ( + + COUNT ( * ), + - 3 / - 9 + - 84 ) * - 53 + - 55 AS col2
----
-1224
-108

query II rowsort
SELECT + 76 * + - 41 * - 48 * 46 * - 46, ( + 91 ) - - + ( + 75 ) AS col0
----
-316485888
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1244
SELECT + CAST( + 58 AS SIGNED ) - - ( 4 ) * + 71
----
342

skipif mysql # not compatible
query I rowsort label-1244
SELECT + CAST ( + 58 AS INTEGER ) - - ( 4 ) * + 71
----
342

onlyif mysql # aggregate syntax: 
query II rowsort label-1245
SELECT + COUNT( * ) * 78 col1, 30
----
78
30

skipif mysql # not compatible
query II rowsort label-1245
SELECT + COUNT ( * ) * 78 col1, 30
----
78
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT - NULLIF ( + 14, + COUNT( * ) + + 60 + - - 90 + - + NULLIF ( + 78, - + ( + + 87 ) ) + - ( + COUNT( * ) ) + + - 80 + - 33 / + 72 * - 8 + 1 * 27 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-1246
SELECT - NULLIF ( + 14, + COUNT ( * ) + + 60 + - - 90 + - + NULLIF ( + 78, - + ( + + 87 ) ) + - ( + COUNT ( * ) ) + + - 80 + - 33 / + 72 * - 8 + 1 * 27 ) AS col2
----
-14

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

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

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

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

query I rowsort
SELECT ALL + 5 * - 64 + 60
----
-260

query I rowsort
SELECT DISTINCT 31 * 14 + - 2 + + 84 col0
----
516

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1253
SELECT - 43 * + 32 + - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1253
SELECT - 43 * + 32 + - - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ( 25 ) AS col0
----
25

query I rowsort
SELECT ALL - 67 * 43 AS col1
----
-2881

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT - COUNT( * ) * + - ( + 97 ) + 38 AS col0
----
135

skipif mysql # not compatible
query I rowsort label-1256
SELECT - COUNT ( * ) * + - ( + 97 ) + 38 AS col0
----
135

query I rowsort
SELECT ALL + + 74 * + 52 + 91 AS col1
----
3939

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1258
SELECT - - 54 DIV - - 60 * - COUNT( * ) + 37 + + 32 + + 90 * - 12 * + SUM( + 3 ) * - + 67 + 99
----
217248

skipif mysql # not compatible
query I rowsort label-1258
SELECT - - 54 / - - 60 * - COUNT ( * ) + 37 + + 32 + + 90 * - 12 * + SUM ( + 3 ) * - + 67 + 99
----
217248

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

query I rowsort
SELECT + 60 + - 35
----
25

query I rowsort
SELECT ALL - 18 * + 43 * - - 46 + 26 + - 37
----
-35615

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1262
SELECT + MIN( DISTINCT + + 87 ) DIV 4 * + - 82
----
-1722

skipif mysql # not compatible
query I rowsort label-1262
SELECT + MIN ( DISTINCT + + 87 ) / 4 * + - 82
----
-1722

query I rowsort
SELECT - 72 + + - 70 AS col1
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT ALL - 75 * + - 81 * - MIN( DISTINCT + 79 )
----
-479925

skipif mysql # not compatible
query I rowsort label-1264
SELECT ALL - 75 * + - 81 * - MIN ( DISTINCT + 79 )
----
-479925

query I rowsort
SELECT + 84 * + 64
----
5376

query I rowsort
SELECT ALL + 3 * 3 col0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-1267
SELECT - SUM( - 46 ) + 84 + + 44 * 42, + 15 AS col0
----
1978
15

skipif mysql # not compatible
query II rowsort label-1267
SELECT - SUM ( - 46 ) + 84 + + 44 * 42, + 15 AS col0
----
1978
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1268
SELECT DISTINCT + 78 * - COUNT( * ) - + 94 AS col2, - 31 DIV - 89 AS col1
----
-172
0

skipif mysql # not compatible
query II rowsort label-1268
SELECT DISTINCT + 78 * - COUNT ( * ) - + 94 AS col2, - 31 / - 89 AS col1
----
-172
0

query I rowsort
SELECT ALL 42 * - + 41
----
-1722

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

query I rowsort
SELECT ALL + 3 * + - 85 col0
----
-255

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

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

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

query I rowsort
SELECT - 24 - + 92 * - 76 + + - 36 col1
----
6932

query II rowsort
SELECT DISTINCT - 31 - - 5 + - 58, 6 AS col2
----
-84
6

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

query II rowsort
SELECT - 59 + - 38 * - 75 col0, + 56 * 10 + + - 0 AS col0
----
2791
560

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

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

query I rowsort
SELECT - NULLIF ( - 11, - 13 )
----
11

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1285
SELECT - 28 + 35 * + - 96, 18 * + + NULLIF ( - - 54, - - ( 16 ) + SUM( - NULLIF ( + 45, + 63 ) ) ) col2
----
-3388
972

skipif mysql # not compatible
query II rowsort label-1285
SELECT - 28 + 35 * + - 96, 18 * + + NULLIF ( - - 54, - - ( 16 ) + SUM ( - NULLIF ( + 45, + 63 ) ) ) col2
----
-3388
972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1286
SELECT ALL - ( - ( - 65 ) ) + + - 78 + - + 82 DIV + - MAX( + 35 ) col1
----
-141

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL - ( - ( - 65 ) ) + + - 78 + - + 82 / + - MAX ( + 35 ) col1
----
-141

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT + - CASE + 34 WHEN SUM( DISTINCT + + 46 ) * + + CASE NULLIF ( + 12, 14 * 29 ) WHEN + 51 + + 19 THEN - 72 WHEN - 35 THEN 75 ELSE NULL END * - COUNT( * ) THEN - ( + 23 ) ELSE NULL END + + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1288
SELECT + - CASE + 34 WHEN SUM ( DISTINCT + + 46 ) * + + CASE NULLIF ( + 12, 14 * 29 ) WHEN + 51 + + 19 THEN - 72 WHEN - 35 THEN 75 ELSE NULL END * - COUNT ( * ) THEN - ( + 23 ) ELSE NULL END + + 29 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1289
SELECT - - 7 DIV 67 + 69 AS col2, CAST( NULL AS SIGNED ) * - 57
----
69
NULL

skipif mysql # not compatible
query II rowsort label-1289
SELECT - - 7 / 67 + 69 AS col2, CAST ( NULL AS INTEGER ) * - 57
----
69
NULL

query I rowsort
SELECT + + 2 + 52
----
54

query I rowsort
SELECT + 77 + + 35
----
112

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

query I rowsort
SELECT + 91 + 11
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1294
SELECT ALL - - 31 DIV COUNT( * ) DIV - 62 + + 99
----
99

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL - - 31 / COUNT ( * ) / - 62 + + 99
----
99

query I rowsort
SELECT + 30 * 2 col1
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1296
SELECT ALL + COUNT( * ) DIV + 2 + - 33 + + 66 + - + COALESCE ( + + 83, 10 - COUNT( * ) * - 27 * + - 90 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL + COUNT ( * ) / + 2 + - 33 + + 66 + - + COALESCE ( + + 83, 10 - COUNT ( * ) * - 27 * + - 90 ) AS col2
----
-50

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1300
SELECT ALL - 29 DIV 38 + COUNT( CAST( - 90 AS SIGNED ) ) + 78 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL - 29 / 38 + COUNT ( CAST ( - 90 AS INTEGER ) ) + 78 AS col1
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT ( - + COUNT( * ) ) * + 96 * - 80 AS col2
----
7680

skipif mysql # not compatible
query I rowsort label-1302
SELECT ( - + COUNT ( * ) ) * + 96 * - 80 AS col2
----
7680

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT ALL 50 * - + 93 + + - COUNT( * ) AS col1
----
-4651

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL 50 * - + 93 + + - COUNT ( * ) AS col1
----
-4651

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1304
SELECT + 89 AS col2, + ( + - 83 ) * - - CAST( + 9 AS SIGNED ) + - 26 + - ( + 99 ) AS col2
----
89
-872

skipif mysql # not compatible
query II rowsort label-1304
SELECT + 89 AS col2, + ( + - 83 ) * - - CAST ( + 9 AS INTEGER ) + - 26 + - ( + 99 ) AS col2
----
89
-872

query I rowsort
SELECT + - 94
----
-94

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

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

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

skipif mysql # not compatible
query I rowsort label-1308
SELECT 57 * - + 80 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 93 * - 60
----
-5580

query I rowsort
SELECT ALL - 31
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1311
SELECT DISTINCT 90 - - 62 - - 50 * - + 28 DIV COUNT( * ) col1
----
-1248

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT 90 - - 62 - - 50 * - + 28 / COUNT ( * ) col1
----
-1248

query I rowsort
SELECT DISTINCT 1 * - + 26 col2
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-1313
SELECT DISTINCT - 9 AS col2, COUNT( * )
----
-9
1

skipif mysql # not compatible
query II rowsort label-1313
SELECT DISTINCT - 9 AS col2, COUNT ( * )
----
-9
1

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

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

query I rowsort
SELECT 83 * + 40 col1
----
3320

onlyif mysql # DIV for integer division: 
query II rowsort label-1316
SELECT ALL - 18, 41 + - 30 + 93 + + 13 DIV 82 + 97 * ( - 90 ) AS col0
----
-18
-8626

skipif mysql # not compatible
query II rowsort label-1316
SELECT ALL - 18, 41 + - 30 + 93 + + 13 / 82 + 97 * ( - 90 ) AS col0
----
-18
-8626

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1318
SELECT 2 DIV + COUNT( * ) AS col0
----
2

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1320
SELECT MIN( ALL - 47 ) DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-1320
SELECT MIN ( ALL - 47 ) / + 64
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1321
SELECT 27 DIV - - 74
----
0

skipif mysql # not compatible
query I rowsort label-1321
SELECT 27 / - - 74
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1322
SELECT 98 * + + 0 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-1322
SELECT 98 * + + 0 / + 43
----
0

query I rowsort
SELECT 1 + - 63 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT ALL COUNT( * ) + + + 3 * - 31
----
-92

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL COUNT ( * ) + + + 3 * - 31
----
-92

query II rowsort
SELECT ALL 43 AS col1, 73
----
43
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT DISTINCT + COUNT( * ) + + + 74 * 75
----
5551

skipif mysql # not compatible
query I rowsort label-1326
SELECT DISTINCT + COUNT ( * ) + + + 74 * 75
----
5551

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT 22 * - 32 * MIN( 27 )
----
-19008

skipif mysql # not compatible
query I rowsort label-1327
SELECT 22 * - 32 * MIN ( 27 )
----
-19008

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1328
SELECT - 65 AS col1, CAST( NULL AS SIGNED ) + - + ( + 68 ) AS col1
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-1328
SELECT - 65 AS col1, CAST ( NULL AS INTEGER ) + - + ( + 68 ) AS col1
----
-65
NULL

query I rowsort
SELECT ALL - - 34 + - + 64
----
-30

query II rowsort
SELECT ALL + 25, - 52 + - 17 AS col1
----
25
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT MAX( DISTINCT - + 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-1331
SELECT MAX ( DISTINCT - + 18 ) AS col1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1332
SELECT ALL - - 59 + - CAST( 79 AS SIGNED ) + - 4 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL - - 59 + - CAST ( 79 AS INTEGER ) + - 4 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT + COUNT( * ) - - 40 col2
----
41

skipif mysql # not compatible
query I rowsort label-1333
SELECT + COUNT ( * ) - - 40 col2
----
41

query II rowsort
SELECT + 99 AS col1, 97 AS col0
----
99
97

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

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

query II rowsort
SELECT DISTINCT + 65 AS col0, 49 + + + 18 AS col1
----
65
67

query II rowsort
SELECT 6, + 28 col2
----
6
28

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

query I rowsort
SELECT DISTINCT - - 17 + - 20 col0
----
-3

query II rowsort
SELECT ALL - 58, - 20 AS col0
----
-58
-20

query I rowsort
SELECT 17 + + 13 * - 38 col1
----
-477

query I rowsort
SELECT ALL - 24 * + - 11
----
264

query I rowsort
SELECT 6 * + + COALESCE ( 61, - 49 ) + - + 50 AS col1
----
316

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1345
SELECT + 7, - COUNT( * ) * + COUNT( * ) - 70 AS col0
----
7
-71

skipif mysql # not compatible
query II rowsort label-1345
SELECT + 7, - COUNT ( * ) * + COUNT ( * ) - 70 AS col0
----
7
-71

query II rowsort
SELECT DISTINCT - 81 AS col0, - 7 * ( 14 ) * 22 AS col1
----
-81
-2156

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

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( 52, + ( + 4 ) ) col1
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-1350
SELECT ALL + 49 DIV + + 89
----
0

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL + 49 / + + 89
----
0

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

query I rowsort
SELECT ALL - 21 col0
----
-21

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

query I rowsort
SELECT 42 col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT - COUNT( * ) * + - COUNT( ALL + ( - + 45 ) ) + - - 38 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-1355
SELECT - COUNT ( * ) * + - COUNT ( ALL + ( - + 45 ) ) + - - 38 AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1356
SELECT DISTINCT 48 * + - COUNT( * ) * + 38 * COALESCE ( + 77, - ( 84 ) * ( - 21 ) * - 83 + + - COUNT( * ) - + CAST( NULL AS SIGNED ) * - 3 ) AS col2
----
-140448

skipif mysql # not compatible
query I rowsort label-1356
SELECT DISTINCT 48 * + - COUNT ( * ) * + 38 * COALESCE ( + 77, - ( 84 ) * ( - 21 ) * - 83 + + - COUNT ( * ) - + CAST ( NULL AS INTEGER ) * - 3 ) AS col2
----
-140448

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT 11 + - 49 * + COUNT( 57 )
----
-38

skipif mysql # not compatible
query I rowsort label-1357
SELECT 11 + - 49 * + COUNT ( 57 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT 82 * - MIN( ALL 39 ) * + 37
----
-118326

skipif mysql # not compatible
query I rowsort label-1358
SELECT 82 * - MIN ( ALL 39 ) * + 37
----
-118326

query I rowsort
SELECT 18 * + + 49
----
882

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT DISTINCT COUNT( + 77 ) + - 80 + + 45 + 5
----
-29

skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT COUNT ( + 77 ) + - 80 + + 45 + 5
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT ALL 47 + + + 33 + - - 75 - + MIN( DISTINCT + 3 )
----
152

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL 47 + + + 33 + - - 75 - + MIN ( DISTINCT + 3 )
----
152

query I rowsort
SELECT DISTINCT - ( + - 49 ) + + 87 * + 79 AS col1
----
6922

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

query I rowsort
SELECT NULLIF ( 89, - 97 ) - + + 31
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT COUNT( * ) + - NULLIF ( 79, - 43 * - 7 * + - 96 ) * - - 60 + - 70 + + COUNT( * ) AS col2
----
-4808

skipif mysql # not compatible
query I rowsort label-1366
SELECT COUNT ( * ) + - NULLIF ( 79, - 43 * - 7 * + - 96 ) * - - 60 + - 70 + + COUNT ( * ) AS col2
----
-4808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1367
SELECT ALL SUM( ALL - CAST( + + 95 AS SIGNED ) )
----
-95

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL SUM ( ALL - CAST ( + + 95 AS INTEGER ) )
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1368
SELECT DISTINCT CAST( + 87 AS SIGNED ) + 84 col2
----
171

skipif mysql # not compatible
query I rowsort label-1368
SELECT DISTINCT CAST ( + 87 AS INTEGER ) + 84 col2
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT DISTINCT - 88 * + 28 + NULLIF ( + COUNT( - 55 ), 93 )
----
-2463

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT - 88 * + 28 + NULLIF ( + COUNT ( - 55 ), 93 )
----
-2463

query I rowsort
SELECT DISTINCT - 24 col2
----
-24

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1372
SELECT DISTINCT - 28 * 57, - 13 - MAX( + - 60 ) AS col0
----
-1596
47

skipif mysql # not compatible
query II rowsort label-1372
SELECT DISTINCT - 28 * 57, - 13 - MAX ( + - 60 ) AS col0
----
-1596
47

query I rowsort
SELECT - - 85 AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1374
SELECT - 48 + - + 49 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1374
SELECT - 48 + - + 49 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 72 * ( - - 65 ) AS col0
----
-4680

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1376
SELECT - + 67 * 58, + COALESCE ( + 35, - 56, ( + CAST( 30 AS SIGNED ) ), - + 75 * + 67 ) AS col2, 52 AS col2
----
-3886
35
52

skipif mysql # not compatible
query III rowsort label-1376
SELECT - + 67 * 58, + COALESCE ( + 35, - 56, ( + CAST ( 30 AS INTEGER ) ), - + 75 * + 67 ) AS col2, 52 AS col2
----
-3886
35
52

query I rowsort
SELECT ALL + + 89
----
89

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

query I rowsort
SELECT ALL - - 39 * 51 + 90 AS col1
----
2079

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT - CASE - COUNT( * ) WHEN 21 THEN 69 * + + 30 + 26 ELSE + 31 END * - - 78 AS col2
----
-2418

skipif mysql # not compatible
query I rowsort label-1381
SELECT - CASE - COUNT ( * ) WHEN 21 THEN 69 * + + 30 + 26 ELSE + 31 END * - - 78 AS col2
----
-2418

onlyif mysql # aggregate syntax: 
query II rowsort label-1382
SELECT COALESCE ( + 64, + COUNT( * ), - 32 ) AS col0, + 16 * + - 75
----
64
-1200

skipif mysql # not compatible
query II rowsort label-1382
SELECT COALESCE ( + 64, + COUNT ( * ), - 32 ) AS col0, + 16 * + - 75
----
64
-1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1383
SELECT ALL + 44 * + ( + - CASE + CAST( + - 98 AS SIGNED ) WHEN - + COUNT( * ) + + 1 + + + 94 + + 0 THEN NULL ELSE + 62 - - COUNT( * ) + 67 END )
----
-5720

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL + 44 * + ( + - CASE + CAST ( + - 98 AS INTEGER ) WHEN - + COUNT ( * ) + + 1 + + + 94 + + 0 THEN NULL ELSE + 62 - - COUNT ( * ) + 67 END )
----
-5720

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

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

query I rowsort
SELECT NULLIF ( - 38, + - 58 ) AS col2
----
-38

query I rowsort
SELECT DISTINCT + 27 * + 53
----
1431

query I rowsort
SELECT + 65 col2
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-1388
SELECT + 77 DIV + NULLIF ( - 6, + 44 * - + 96 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-1388
SELECT + 77 / + NULLIF ( - 6, + 44 * - + 96 ) AS col0
----
-12

query I rowsort
SELECT NULLIF ( + 9, - 60 )
----
9

query I rowsort
SELECT ALL - 82 * + + 5 AS col1
----
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT DISTINCT 62 * + - CASE + - 89 WHEN 80 * + COUNT( * ) THEN + - ( 35 ) END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1391
SELECT DISTINCT 62 * + - CASE + - 89 WHEN 80 * + COUNT ( * ) THEN + - ( 35 ) END + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1392
SELECT ALL COALESCE ( - 67, + 75 ) DIV + COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL COALESCE ( - 67, + 75 ) / + COUNT ( * ) AS col1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1393
SELECT - 41 DIV - 58 * + - 22 AS col2, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-1393
SELECT - 41 / - 58 * + - 22 AS col2, + COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT ALL 37 * - 59 + - - COUNT( * ) + + - COUNT( * ) AS col0
----
-2183

skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL 37 * - 59 + - - COUNT ( * ) + + - COUNT ( * ) AS col0
----
-2183

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

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

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

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT + COUNT ( * ) / + SUM ( - + 46 )
----
0

query II rowsort
SELECT ALL - 16 * 12 + 46 * + 54 AS col0, - 69 * - 15 * + 48 * + 71
----
2292
3527280

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1399
SELECT COUNT( * ) AS col1, - 15 + - + 75 * - ( - SUM( + CAST( NULL AS SIGNED ) ) ) - ( - 6 ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1399
SELECT COUNT ( * ) AS col1, - 15 + - + 75 * - ( - SUM ( + CAST ( NULL AS INTEGER ) ) ) - ( - 6 ) AS col1
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1400
SELECT - 74 * - + CASE - - CAST( NULL AS SIGNED ) WHEN + - 35 THEN 58 END * + 55 * + - 76 * + 90 + - CASE COUNT( + 15 ) WHEN - 53 THEN NULL WHEN 93 * 39 - COUNT( * ) - + + 47 / + NULLIF ( - + 6, 5 ) * - 64 - 64 THEN - 18 ELSE + 0 END + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1400
SELECT - 74 * - + CASE - - CAST ( NULL AS INTEGER ) WHEN + - 35 THEN 58 END * + 55 * + - 76 * + 90 + - CASE COUNT ( + 15 ) WHEN - 53 THEN NULL WHEN 93 * 39 - COUNT ( * ) - + + 47 / + NULLIF ( - + 6, 5 ) * - 64 - 64 THEN - 18 ELSE + 0 END + + 3
----
NULL

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

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

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

query I rowsort
SELECT - - 82 AS col1
----
82

query II rowsort
SELECT 79, 95 AS col0
----
79
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT ALL + 39 * 23 * SUM( ALL 58 ) AS col0
----
52026

skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL + 39 * 23 * SUM ( ALL 58 ) AS col0
----
52026

query I rowsort
SELECT + 83 * 75 AS col1
----
6225

query I rowsort
SELECT ALL + + 75 - - 15 * - + 24 col1
----
-285

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1409
SELECT ALL 66 - - 72 + - + COALESCE ( - 84, - 97 DIV + 7 + - 0 * 75 ) * - + 53 AS col0
----
-4314

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL 66 - - 72 + - + COALESCE ( - 84, - 97 / + 7 + - 0 * 75 ) * - + 53 AS col0
----
-4314

onlyif mysql # aggregate syntax: 
query II rowsort label-1410
SELECT ALL 71 - - MIN( DISTINCT + 16 ) AS col1, - 6 * + - 16
----
87
96

skipif mysql # not compatible
query II rowsort label-1410
SELECT ALL 71 - - MIN ( DISTINCT + 16 ) AS col1, - 6 * + - 16
----
87
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1411
SELECT ALL + 68 DIV - + 19 + SUM( DISTINCT - - 34 ) - - 67 col1
----
98

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL + 68 / - + 19 + SUM ( DISTINCT - - 34 ) - - 67 col1
----
98

query II rowsort
SELECT + + 62 * + + ( - 84 ) AS col1, - 33 AS col0
----
-5208
-33

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1414
SELECT - - COALESCE ( CAST( - 4 AS SIGNED ), + + 17 + - COUNT( ALL + + ( - + 8 ) ) * + 66 * MAX( ALL ( 74 ) ) + - 58, - - CASE CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) WHEN + - 69 THEN ( + + 86 ) * + COUNT( 9 ) + + 67 DIV - 38 ELSE NULL END ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-1414
SELECT - - COALESCE ( CAST ( - 4 AS INTEGER ), + + 17 + - COUNT ( ALL + + ( - + 8 ) ) * + 66 * MAX ( ALL ( 74 ) ) + - 58, - - CASE CAST ( - CAST ( NULL AS REAL ) AS REAL ) WHEN + - 69 THEN ( + + 86 ) * + COUNT ( 9 ) + + 67 / - 38 ELSE NULL END ) AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1415
SELECT + 86 DIV 37 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1415
SELECT + 86 / 37 AS col1
----
2

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

skipif mysql # not compatible
query I rowsort label-1416
SELECT - - SUM ( + + 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT - 69 * - 16 + + - SUM( DISTINCT - 31 ) - 87
----
1048

skipif mysql # not compatible
query I rowsort label-1417
SELECT - 69 * - 16 + + - SUM ( DISTINCT - 31 ) - 87
----
1048

onlyif mysql # DIV for integer division: 
query I rowsort label-1418
SELECT ALL + 63 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL + 63 / 99
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1419
SELECT ALL 82 DIV 81 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL 82 / 81 AS col0
----
1

query I rowsort
SELECT ALL - 83 * - 23
----
1909

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT DISTINCT - COALESCE ( 32, - CASE - - 17 WHEN - COUNT( * ) THEN + 20 END ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT - COALESCE ( 32, - CASE - - 17 WHEN - COUNT ( * ) THEN + 20 END ) AS col0
----
-32

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

skipif mysql # not compatible
query I rowsort label-1422
SELECT DISTINCT - 55 * + + 11 + - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1423
SELECT ALL + 85 DIV - - 48 AS col2, CAST( NULL AS SIGNED ) + - + 28 DIV - 50 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1423
SELECT ALL + 85 / - - 48 AS col2, CAST ( NULL AS INTEGER ) + - + 28 / - 50 AS col2
----
1
NULL

query I rowsort
SELECT ALL 72 * - 65 AS col1
----
-4680

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT + MAX( DISTINCT - 5 ) + + 2
----
-3

skipif mysql # not compatible
query I rowsort label-1425
SELECT + MAX ( DISTINCT - 5 ) + + 2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1426
SELECT - CAST( 0 AS SIGNED ) DIV - + 27 - NULLIF ( + + COUNT( * ), - - 3 + 56 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1426
SELECT - CAST ( 0 AS INTEGER ) / - + 27 - NULLIF ( + + COUNT ( * ), - - 3 + 56 ) AS col0
----
-1

query I rowsort
SELECT - 60 - 4 col0
----
-64

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1429
SELECT ALL + 37 DIV + 76 * - 28 + - 52
----
-52

skipif mysql # not compatible
query I rowsort label-1429
SELECT ALL + 37 / + 76 * - 28 + - 52
----
-52

query I rowsort
SELECT - 0 + - 98 + 93 AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1431
SELECT ALL 33 DIV 83 * NULLIF ( 47, + + COALESCE ( 16, + COUNT( * ), + 94 + - 67 ) ) + - - COUNT( DISTINCT - + 70 )
----
1

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL 33 / 83 * NULLIF ( 47, + + COALESCE ( 16, + COUNT ( * ), + 94 + - 67 ) ) + - - COUNT ( DISTINCT - + 70 )
----
1

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

query II rowsort
SELECT ALL + 14 * + 40, 76 col0
----
560
76

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

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL + 88 * - - 19 * - - 21 + + COUNT ( ALL - 39 )
----
35113

query I rowsort
SELECT - 64 * + - ( + 37 )
----
2368

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT - 70 * + - NULLIF ( 96, 52 ) * 43 + - + ( - 32 ) + - MAX( - 6 ) * - 24 AS col1
----
288848

skipif mysql # not compatible
query I rowsort label-1436
SELECT - 70 * + - NULLIF ( 96, 52 ) * 43 + - + ( - 32 ) + - MAX ( - 6 ) * - 24 AS col1
----
288848

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

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

query II rowsort
SELECT + CASE - 79 WHEN 8 * + 56 * + 94 * - 21 * + 84 - + 48 - + + 37 * + 84 / - 29 THEN + 80 END AS col0, 17
----
NULL
17

query I rowsort
SELECT ALL + 11 * + ( - 29 ) + - 62 AS col2
----
-381

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT ALL + 27 * + 40 - - COUNT( * ) + - 60
----
1021

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL + 27 * + 40 - - COUNT ( * ) + - 60
----
1021

onlyif mysql # DIV for integer division: 
query I rowsort label-1442
SELECT DISTINCT 16 DIV - 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1442
SELECT DISTINCT 16 / - 72 AS col2
----
0

query I rowsort
SELECT ALL 39 * + 81 - 91 AS col1
----
3068

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1445
SELECT ALL - 2 DIV - COALESCE ( + 42, - - 33 * + 7 * + + 77, 85 * - 26 + 83, - 14 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL - 2 / - COALESCE ( + 42, - - 33 * + 7 * + + 77, 85 * - 26 + 83, - 14 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT + 3 - MIN( ALL - 28 ) * + 9 AS col1
----
255

skipif mysql # not compatible
query I rowsort label-1446
SELECT + 3 - MIN ( ALL - 28 ) * + 9 AS col1
----
255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1447
SELECT ALL + CASE + - 99 WHEN + 6 / - - CAST( NULL AS SIGNED ) THEN CASE - ( - - 63 ) WHEN 16 THEN NULL WHEN 37 THEN + + 0 + + - COUNT( * ) ELSE - COUNT( * ) - + - 30 + + CASE + SUM( DISTINCT - + 38 ) WHEN - - SUM( DISTINCT - 23 ) + 20 THEN COUNT( * ) + - 56 ELSE + 72 + + ( 56 ) END END WHEN + 93 / + 61 THEN 66 + MAX( 32 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL + CASE + - 99 WHEN + 6 / - - CAST ( NULL AS INTEGER ) THEN CASE - ( - - 63 ) WHEN 16 THEN NULL WHEN 37 THEN + + 0 + + - COUNT ( * ) ELSE - COUNT ( * ) - + - 30 + + CASE + SUM ( DISTINCT - + 38 ) WHEN - - SUM ( DISTINCT - 23 ) + 20 THEN COUNT ( * ) + - 56 ELSE + 72 + + ( 56 ) END END WHEN + 93 / + 61 THEN 66 + MAX ( 32 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1448
SELECT 66 + + CAST( + - 14 AS SIGNED ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-1448
SELECT 66 + + CAST ( + - 14 AS INTEGER ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT ALL + 11 - + 13 - COALESCE ( - 38, - 3 ) + + - SUM( + 32 )
----
4

skipif mysql # not compatible
query I rowsort label-1449
SELECT ALL + 11 - + 13 - COALESCE ( - 38, - 3 ) + + - SUM ( + 32 )
----
4

query I rowsort
SELECT ( - 15 )
----
-15

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1452
SELECT CAST( NULL AS DECIMAL ) * - 29 + - + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1452
SELECT CAST ( NULL AS REAL ) * - 29 + - + 98 AS col1
----
NULL

query I rowsort
SELECT 45 + + - 34 - + 67 * + - 59 + 54
----
4018

query I rowsort
SELECT - 30 col0
----
-30

query II rowsort
SELECT ALL + + 5 * + 62 col0, + 20 AS col1
----
310
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1456
SELECT - 11 + 12 + ( + 12 ) AS col2, + MIN( - 76 ) * - + CAST( NULL AS SIGNED ) + - + 87 + - - 22
----
13
NULL

skipif mysql # not compatible
query II rowsort label-1456
SELECT - 11 + 12 + ( + 12 ) AS col2, + MIN ( - 76 ) * - + CAST ( NULL AS INTEGER ) + - + 87 + - - 22
----
13
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1458
SELECT ALL + 26 + + 95 + + COUNT( * ) - COUNT( * ) DIV - 46 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL + 26 + + 95 + + COUNT ( * ) - COUNT ( * ) / - 46 AS col2
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1459
SELECT + 38 / - CAST( NULL AS SIGNED ), + 73 AS col1
----
NULL
73

skipif mysql # not compatible
query II rowsort label-1459
SELECT + 38 / - CAST ( NULL AS INTEGER ), + 73 AS col1
----
NULL
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1460
SELECT ALL MAX( ALL - 82 ) + 91 DIV 62 + + - ( - + 19 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-1460
SELECT ALL MAX ( ALL - 82 ) + 91 / 62 + + - ( - + 19 ) AS col2
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1461
SELECT CAST( NULL AS SIGNED ) + + ( CAST( NULL AS SIGNED ) ) + - - 36 - - - 10 + + 83 * MIN( - 56 ) + 93 + ( - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1461
SELECT CAST ( NULL AS INTEGER ) + + ( CAST ( NULL AS INTEGER ) ) + - - 36 - - - 10 + + 83 * MIN ( - 56 ) + 93 + ( - 21 )
----
NULL

query I rowsort
SELECT ALL 66 + - 57
----
9

query I rowsort
SELECT 64 col0
----
64

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

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

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

query II rowsort
SELECT ALL 60 * + + 59 * - + 77 AS col2, 96 col1
----
-272580
96

query I rowsort
SELECT DISTINCT 89 * 38 AS col1
----
3382

onlyif mysql # DIV for integer division: 
query I rowsort label-1468
SELECT 11 DIV 17
----
0

skipif mysql # not compatible
query I rowsort label-1468
SELECT 11 / 17
----
0

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

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

query II rowsort
SELECT 1 AS col1, ( + 27 ) AS col0
----
1
27

query I rowsort
SELECT 72 AS col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1472
SELECT 28 DIV + + COUNT( * ) - SUM( ALL 79 ) - 42, 88 AS col1
----
-93
88

skipif mysql # not compatible
query II rowsort label-1472
SELECT 28 / + + COUNT ( * ) - SUM ( ALL 79 ) - 42, 88 AS col1
----
-93
88

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1474
SELECT 43 + + 10 + + - NULLIF ( + 51, 31 ) DIV 54 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1474
SELECT 43 + + 10 + + - NULLIF ( + 51, 31 ) / 54 AS col2
----
53

query I rowsort
SELECT 46 * + 87
----
4002

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT DISTINCT CASE - - CASE - + 79 WHEN - - 16 * + 98 * - 41 + - + CASE 14 WHEN 8 THEN NULL ELSE - - COUNT( * ) * + 3 END THEN + + 92 WHEN + 42 + + 61 * - AVG ( DISTINCT - 41 ) THEN + 49 END WHEN - + 64 + + - 85 + 56 * 68 THEN 96 ELSE NULL END - + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT CASE - - CASE - + 79 WHEN - - 16 * + 98 * - 41 + - + CASE 14 WHEN 8 THEN NULL ELSE - - COUNT ( * ) * + 3 END THEN + + 92 WHEN + 42 + + 61 * - AVG ( DISTINCT - 41 ) THEN + 49 END WHEN - + 64 + + - 85 + 56 * 68 THEN 96 ELSE NULL END - + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT - 40 * + + NULLIF ( COALESCE ( 25, - 91 ), + 3 + - 77 ) * + 30 - - COUNT( * ) AS col0
----
-29999

skipif mysql # not compatible
query I rowsort label-1477
SELECT - 40 * + + NULLIF ( COALESCE ( 25, - 91 ), + 3 + - 77 ) * + 30 - - COUNT ( * ) AS col0
----
-29999

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

query I rowsort
SELECT ALL - + 9
----
-9

query I rowsort
SELECT 60 + + 38
----
98

query I rowsort
SELECT + 92 * - + 36 * 33
----
-109296

query I rowsort
SELECT 91 * 17
----
1547

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1485
SELECT - AVG ( - CAST( NULL AS SIGNED ) ) / + + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1485
SELECT - AVG ( - CAST ( NULL AS INTEGER ) ) / + + 0 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT - 28 * - - NULLIF ( - 32, + SUM( - 29 ) * + + COUNT( * ) * + + 2 )
----
896

skipif mysql # not compatible
query I rowsort label-1486
SELECT - 28 * - - NULLIF ( - 32, + SUM ( - 29 ) * + + COUNT ( * ) * + + 2 )
----
896

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

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

query I rowsort
SELECT - + COALESCE ( + 69, - 96 * + 12 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT DISTINCT - + COUNT( * ) * + 87 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT - + COUNT ( * ) * + 87 AS col0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-1490
SELECT DISTINCT - 57 DIV - - 27
----
-2

skipif mysql # not compatible
query I rowsort label-1490
SELECT DISTINCT - 57 / - - 27
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1491
SELECT ALL + CAST( - 1 AS SIGNED ) + + - 91
----
-92

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL + CAST ( - 1 AS INTEGER ) + + - 91
----
-92

query II rowsort
SELECT + 70 AS col2, - 23
----
70
-23

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

query I rowsort
SELECT ALL - 64 + 72 AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1495
SELECT - 75 * COUNT( * ) + + 0 DIV - 28 + + 73
----
-2

skipif mysql # not compatible
query I rowsort label-1495
SELECT - 75 * COUNT ( * ) + + 0 / - 28 + + 73
----
-2

query I rowsort
SELECT ( - + 85 ) * + 15
----
-1275

query II rowsort
SELECT - 96 col1, 21 + 18 AS col0
----
-96
39

query II rowsort
SELECT - 47 AS col0, 15 + + ( - 35 ) * - 94 + - 2
----
-47
3303

query I rowsort
SELECT ALL 42 + 0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT 92 - - - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-1500
SELECT 92 - - - COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT ALL MAX( DISTINCT 20 )
----
20

skipif mysql # not compatible
query I rowsort label-1501
SELECT ALL MAX ( DISTINCT 20 )
----
20

query I rowsort
SELECT ALL 19 + NULLIF ( + NULLIF ( + 47, 64 ), + - 17 / - 1 ) * - 84
----
-3929

query I rowsort
SELECT 1 + + - 65 AS col2
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-1504
SELECT ALL - 23 + 78 DIV + 76 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL - 23 + 78 / + 76 AS col0
----
-22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT DISTINCT - 14 * MAX( ALL 64 )
----
-896

skipif mysql # not compatible
query I rowsort label-1506
SELECT DISTINCT - 14 * MAX ( ALL 64 )
----
-896

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1508
SELECT - 14, ( + 59 ) DIV CASE WHEN ( 7 ) IS NOT NULL THEN 79 + + 31 + - 5 * + COALESCE ( + 14, - 77, - ( - COUNT( * ) ) + - - 1, 40 ) ELSE NULL END + - 84 AS col2
----
-14
-83

skipif mysql # not compatible
query II rowsort label-1508
SELECT - 14, ( + 59 ) / CASE WHEN ( 7 ) IS NOT NULL THEN 79 + + 31 + - 5 * + COALESCE ( + 14, - 77, - ( - COUNT ( * ) ) + - - 1, 40 ) ELSE NULL END + - 84 AS col2
----
-14
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT 91 + COUNT( * ) + 96 - + COUNT( ALL ( - 80 ) ) + COUNT( ALL 68 ) * - + 30 * - 91 * - CASE + 77 WHEN + CASE + ( + + 27 ) WHEN - - 75 THEN NULL WHEN + 25 THEN + 50 END * + 78 + + + ( + 2 ) * ( + 22 ) THEN + 32 WHEN COUNT( * ) + + COUNT( * ) * COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1509
SELECT 91 + COUNT ( * ) + 96 - + COUNT ( ALL ( - 80 ) ) + COUNT ( ALL 68 ) * - + 30 * - 91 * - CASE + 77 WHEN + CASE + ( + + 27 ) WHEN - - 75 THEN NULL WHEN + 25 THEN + 50 END * + 78 + + + ( + 2 ) * ( + 22 ) THEN + 32 WHEN COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT 27 * - - 72 * 28
----
54432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1511
SELECT - ( - CASE + 53 WHEN + COUNT( * ) THEN + 4 DIV 66 + + - 4 * 34 * 46 + - 42 WHEN + 77 THEN + 21 ELSE - 20 DIV + 31 + + 40 END ) * 23 + + - 25 + - + 61 + - - 42 * - - 28 AS col2
----
2010

skipif mysql # not compatible
query I rowsort label-1511
SELECT - ( - CASE + 53 WHEN + COUNT ( * ) THEN + 4 / 66 + + - 4 * 34 * 46 + - 42 WHEN + 77 THEN + 21 ELSE - 20 / + 31 + + 40 END ) * 23 + + - 25 + - + 61 + - - 42 * - - 28 AS col2
----
2010

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

query I rowsort
SELECT 52 * + ( ( 45 ) ) AS col2
----
2340

query II rowsort
SELECT ALL - 91, ( - 71 ) col1
----
-91
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT + MAX( DISTINCT + 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-1515
SELECT + MAX ( DISTINCT + 17 ) AS col0
----
17

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT ALL - COUNT( * ) * + 57 + + 53
----
-4

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL - COUNT ( * ) * + 57 + + 53
----
-4

query I rowsort
SELECT + + 3 col2
----
3

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

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

query I rowsort
SELECT + 29 * - 9 col2
----
-261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1525
SELECT - NULLIF ( - - 49, - + 4 + - CAST( 18 AS SIGNED ) ) + + - 49 + NULLIF ( NULLIF ( - NULLIF ( CASE 7 WHEN + + 83 THEN NULL WHEN - - 43 * - 56 + - - CASE - ( - 81 ) WHEN + + 91 * + COUNT( * ) * + - 33 THEN NULL ELSE + + 36 - 57 END THEN 10 - - COUNT( * ) END, 73 * + 62 + 60 * 19 ), + CAST( + 71 AS SIGNED ) ), + COUNT( * ) + - 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1525
SELECT - NULLIF ( - - 49, - + 4 + - CAST ( 18 AS INTEGER ) ) + + - 49 + NULLIF ( NULLIF ( - NULLIF ( CASE 7 WHEN + + 83 THEN NULL WHEN - - 43 * - 56 + - - CASE - ( - 81 ) WHEN + + 91 * + COUNT ( * ) * + - 33 THEN NULL ELSE + + 36 - 57 END THEN 10 - - COUNT ( * ) END, 73 * + 62 + 60 * 19 ), + CAST ( + 71 AS INTEGER ) ), + COUNT ( * ) + - 53 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1526
SELECT + MIN( + + 67 ), 63 DIV - CAST( - COUNT( * ) AS SIGNED ) AS col2
----
67
63

skipif mysql # not compatible
query II rowsort label-1526
SELECT + MIN ( + + 67 ), 63 / - CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
67
63

query I rowsort
SELECT ALL + + 82
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1528
SELECT + - COALESCE ( + 67, - 86, COUNT( * ) * 61 * - 45 + + ( + - COUNT( * ) ) ) + - 59 + - 43 * - + 89 * + + COALESCE ( 5, - COUNT( * ) + + - 64 ) + 66 + - CAST( + 0 AS SIGNED ) + - 60 + + 12 - 84 * 56 AS col1
----
14323

skipif mysql # not compatible
query I rowsort label-1528
SELECT + - COALESCE ( + 67, - 86, COUNT ( * ) * 61 * - 45 + + ( + - COUNT ( * ) ) ) + - 59 + - 43 * - + 89 * + + COALESCE ( 5, - COUNT ( * ) + + - 64 ) + 66 + - CAST ( + 0 AS INTEGER ) + - 60 + + 12 - 84 * 56 AS col1
----
14323

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

skipif mysql # not compatible
query I rowsort label-1529
SELECT + ( SUM ( + + 98 ) )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-1530
SELECT ALL + + 40 AS col0, - CASE COUNT( * ) WHEN + + 81 THEN - COALESCE ( + - 17, - - 49 * - 60 ) * + CASE - 42 WHEN 45 THEN - + COUNT( * ) * 66 ELSE NULL END END
----
40
NULL

skipif mysql # not compatible
query II rowsort label-1530
SELECT ALL + + 40 AS col0, - CASE COUNT ( * ) WHEN + + 81 THEN - COALESCE ( + - 17, - - 49 * - 60 ) * + CASE - 42 WHEN 45 THEN - + COUNT ( * ) * 66 ELSE NULL END END
----
40
NULL

query I rowsort
SELECT DISTINCT + 3
----
3

query I rowsort
SELECT ALL 49 + + + 24 + + - 78 AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1533
SELECT + 32 + COUNT( * ) + - 27 + + - 68 * 86 * + - ( - 10 ) * - CASE - 99 WHEN 47 THEN + 84 DIV - 42 WHEN COALESCE ( CASE + + 23 WHEN - 3 + CAST( 99 AS SIGNED ) THEN NULL WHEN + + 91 * - + 14 THEN NULL ELSE + COUNT( * ) * + ( 49 - - 43 ) END, + MIN( DISTINCT + 64 ) * CASE 47 DIV + 63 WHEN - 74 THEN NULL WHEN MIN( - ( - 27 ) ) + 84 THEN NULL WHEN 52 * - 4 + - 10 * 9 THEN CAST( NULL AS SIGNED ) ELSE NULL END, - 58 ) * + 33 THEN 6 * + COUNT( * ) ELSE 19 + + 67 END
----
5029286

skipif mysql # not compatible
query I rowsort label-1533
SELECT + 32 + COUNT ( * ) + - 27 + + - 68 * 86 * + - ( - 10 ) * - CASE - 99 WHEN 47 THEN + 84 / - 42 WHEN COALESCE ( CASE + + 23 WHEN - 3 + CAST ( 99 AS INTEGER ) THEN NULL WHEN + + 91 * - + 14 THEN NULL ELSE + COUNT ( * ) * + ( 49 - - 43 ) END, + MIN ( DISTINCT + 64 ) * CASE 47 / + 63 WHEN - 74 THEN NULL WHEN MIN ( - ( - 27 ) ) + 84 THEN NULL WHEN 52 * - 4 + - 10 * 9 THEN CAST ( NULL AS INTEGER ) ELSE NULL END, - 58 ) * + 33 THEN 6 * + COUNT ( * ) ELSE 19 + + 67 END
----
5029286

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT - - 24 + - MAX( DISTINCT - + 9 ) + ( - 37 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-1536
SELECT - - 24 + - MAX ( DISTINCT - + 9 ) + ( - 37 ) AS col0
----
-4

query I rowsort
SELECT - - 13 + + - ( - 86 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT ALL + 27 + - 14 * + 72 * MIN( DISTINCT + 63 ) AS col1
----
-63477

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL + 27 + - 14 * + 72 * MIN ( DISTINCT + 63 ) AS col1
----
-63477

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT ALL MAX( DISTINCT 51 )
----
51

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL MAX ( DISTINCT 51 )
----
51

query I rowsort
SELECT ALL 13 * - 46
----
-598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1541
SELECT - 25 + COALESCE ( - CAST( 58 AS SIGNED ), + 10, - - 98 * + + COUNT( * ) + 84 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-1541
SELECT - 25 + COALESCE ( - CAST ( 58 AS INTEGER ), + 10, - - 98 * + + COUNT ( * ) + 84 ) AS col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-1542
SELECT ALL + 54 DIV 16 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL + 54 / 16 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1543
SELECT DISTINCT MIN( ( + - 77 ) ) AS col0, - CAST( NULL AS SIGNED )
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-1543
SELECT DISTINCT MIN ( ( + - 77 ) ) AS col0, - CAST ( NULL AS INTEGER )
----
-77
NULL

query I rowsort
SELECT ALL - 27 + 95 + + 67 AS col0
----
135

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT - CASE - - ( + ( - ( - SUM( + - 66 ) ) ) ) WHEN + 68 + + - 75 THEN NULL WHEN 74 THEN - 89 * - - 17 / - 26 * - 67 + + 49 ELSE NULL END / + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1546
SELECT - CASE - - ( + ( - ( - SUM ( + - 66 ) ) ) ) WHEN + 68 + + - 75 THEN NULL WHEN 74 THEN - 89 * - - 17 / - 26 * - 67 + + 49 ELSE NULL END / + 37
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1547
SELECT - 95 + + NULLIF ( 97, - + COUNT( * ) ) * + 0 DIV - 41
----
-95

skipif mysql # not compatible
query I rowsort label-1547
SELECT - 95 + + NULLIF ( 97, - + COUNT ( * ) ) * + 0 / - 41
----
-95

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1549
SELECT - 71 + + 64 + + COUNT( * ) AS col1, + COUNT( * ) + + 92 + 28 + + 23 * + - ( - 48 ) + - 56 - - + 13 * 42 + 66 + + 28 + ( COUNT( * ) ) + + + 76 * - CAST( - ( - 87 ) AS SIGNED ) * 18 + 1 + + COUNT( * ) * + 61
----
-6
-117144

skipif mysql # not compatible
query II rowsort label-1549
SELECT - 71 + + 64 + + COUNT ( * ) AS col1, + COUNT ( * ) + + 92 + 28 + + 23 * + - ( - 48 ) + - 56 - - + 13 * 42 + 66 + + 28 + ( COUNT ( * ) ) + + + 76 * - CAST ( - ( - 87 ) AS INTEGER ) * 18 + 1 + + COUNT ( * ) * + 61
----
-6
-117144

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

skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT ( SUM ( DISTINCT - - 6 ) )
----
6

query I rowsort
SELECT DISTINCT ( + + 89 ) AS col2
----
89

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

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

query I rowsort
SELECT ALL - 65 * - + 8 * + 88
----
45760

query I rowsort
SELECT - 35 * + 38 AS col0
----
-1330

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1556
SELECT + MAX( + + 2 ) AS col1, + 54 * - - 11 col0
----
2
594

skipif mysql # not compatible
query II rowsort label-1556
SELECT + MAX ( + + 2 ) AS col1, + 54 * - - 11 col0
----
2
594

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1557
SELECT DISTINCT + ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1557
SELECT DISTINCT + ( - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT DISTINCT + 23
----
23

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1560
SELECT - 83 / - CASE - COUNT( * ) WHEN + + CAST( ( + - 29 ) AS SIGNED ) THEN + 31 END - - 19 + + 51 + - NULLIF ( + 8, - 1 + - 12 ) * + 51 + - + 90 * + 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1560
SELECT - 83 / - CASE - COUNT ( * ) WHEN + + CAST ( ( + - 29 ) AS INTEGER ) THEN + 31 END - - 19 + + 51 + - NULLIF ( + 8, - 1 + - 12 ) * + 51 + - + 90 * + 44 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT + + SUM( - 72 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-1561
SELECT + + SUM ( - 72 ) AS col1
----
-72

query I rowsort
SELECT + - 29 + + - 7 AS col1
----
-36

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT ALL ( - + COUNT( * ) ) * - 79 + 30 + + COUNT( * ) + + 78 AS col2
----
188

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL ( - + COUNT ( * ) ) * - 79 + 30 + + COUNT ( * ) + + 78 AS col2
----
188

query I rowsort
SELECT + + 85 - 10 + 16 * - 13 * - - 49 * + 97
----
-988549

query I rowsort
SELECT DISTINCT + 70 * + + 43 + - 92 AS col1
----
2918

onlyif mysql # DIV for integer division: 
query I rowsort label-1567
SELECT 10 * + ( + + 28 ) - + + 43 DIV - 16 + 81 AS col2
----
363

skipif mysql # not compatible
query I rowsort label-1567
SELECT 10 * + ( + + 28 ) - + + 43 / - 16 + 81 AS col2
----
363

query II rowsort
SELECT ALL 94 * + 24 AS col2, 63
----
2256
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1569
SELECT ALL - NULLIF ( - 74, - 11 ) * + 85 * + 12 + COUNT( * ) * 46 * ( + 4 ) * 26 + - COUNT( * ) + COALESCE ( - 51, ( - COUNT( * ) ) + - 99 ) + + COALESCE ( + CAST( NULL AS SIGNED ), - + 91 )
----
80121

skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL - NULLIF ( - 74, - 11 ) * + 85 * + 12 + COUNT ( * ) * 46 * ( + 4 ) * 26 + - COUNT ( * ) + COALESCE ( - 51, ( - COUNT ( * ) ) + - 99 ) + + COALESCE ( + CAST ( NULL AS INTEGER ), - + 91 )
----
80121

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT + 57 * + ( - 22 ) * - - COUNT( * ) + + 4 AS col1
----
-1250

skipif mysql # not compatible
query I rowsort label-1571
SELECT + 57 * + ( - 22 ) * - - COUNT ( * ) + + 4 AS col1
----
-1250

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT DISTINCT + MIN( 19 ) * 49 - + 20 AS col2
----
911

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT + MIN ( 19 ) * 49 - + 20 AS col2
----
911

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT ALL + COALESCE ( + 44, CASE + + COUNT( * ) WHEN 48 * + ( + ( + AVG ( DISTINCT + 94 ) ) ) - + ( - - 78 ) THEN NULL WHEN + 38 THEN 96 ELSE NULL END * - 64 - - - 53 ) * - - COUNT( * ) * + + 86
----
3784

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL + COALESCE ( + 44, CASE + + COUNT ( * ) WHEN 48 * + ( + ( + AVG ( DISTINCT + 94 ) ) ) - + ( - - 78 ) THEN NULL WHEN + 38 THEN 96 ELSE NULL END * - 64 - - - 53 ) * - - COUNT ( * ) * + + 86
----
3784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1574
SELECT + - ( - + ( + + 90 ) ) + 29 * - 67 * - - CAST( NULL AS SIGNED ) * + 12 AS col1, + COUNT( * ) * + - 34 AS col2
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-1574
SELECT + - ( - + ( + + 90 ) ) + 29 * - 67 * - - CAST ( NULL AS INTEGER ) * + 12 AS col1, + COUNT ( * ) * + - 34 AS col2
----
NULL
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT + 4 - - CASE - COUNT( * ) WHEN 48 * + + COALESCE ( + + COUNT( - 1 ), ( - COUNT( * ) ) / + 68 + 69 - - 87 * - COALESCE ( 68, 97 + - ( - + ( + + 49 ) ) - - - 85 - + - 20 / ( - + ( 13 ) ) ) + 86 * + 64 ) + - 88 * 12 THEN NULL WHEN + 12 * - 80 + + 56 THEN 5 * + 75 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1575
SELECT + 4 - - CASE - COUNT ( * ) WHEN 48 * + + COALESCE ( + + COUNT ( - 1 ), ( - COUNT ( * ) ) / + 68 + 69 - - 87 * - COALESCE ( 68, 97 + - ( - + ( + + 49 ) ) - - - 85 - + - 20 / ( - + ( 13 ) ) ) + 86 * + 64 ) + - 88 * 12 THEN NULL WHEN + 12 * - 80 + + 56 THEN 5 * + 75 ELSE NULL END AS col2
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1579
SELECT ALL + COUNT( * ) * + - 64 * + ( CAST( + 78 AS DECIMAL ) ) + 54 + 21 * 80 + - + NULLIF ( + ( - CAST( NULL AS SIGNED ) ), + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL + COUNT ( * ) * + - 64 * + ( CAST ( + 78 AS REAL ) ) + 54 + 21 * 80 + - + NULLIF ( + ( - CAST ( NULL AS INTEGER ) ), + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - NULLIF ( - - 6, - 69 )
----
-6

query I rowsort
SELECT DISTINCT - NULLIF ( 6, 83 ) AS col0
----
-6

query I rowsort
SELECT ALL CASE + - 23 WHEN 54 THEN - - 47 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1583
SELECT ALL - CAST( 10 AS SIGNED ) * - 89 * + 15
----
13350

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL - CAST ( 10 AS INTEGER ) * - 89 * + 15
----
13350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1584
SELECT + 89 + 73 * - 47 + COALESCE ( CASE + 6 WHEN + + ( - COUNT( * ) ) THEN 86 * - - 55 * - 98 WHEN + 26 THEN + + AVG ( ALL 88 ) DIV 22 + - ( + 7 ) ELSE NULL END, ( 58 ) * - 45 )
----
-5952

skipif mysql # not compatible
query I rowsort label-1584
SELECT + 89 + 73 * - 47 + COALESCE ( CASE + 6 WHEN + + ( - COUNT ( * ) ) THEN 86 * - - 55 * - 98 WHEN + 26 THEN + + AVG ( ALL 88 ) / 22 + - ( + 7 ) ELSE NULL END, ( 58 ) * - 45 )
----
-5952

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT - 54 * - MIN( - - 23 )
----
1242

skipif mysql # not compatible
query I rowsort label-1585
SELECT - 54 * - MIN ( - - 23 )
----
1242

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1586
SELECT ALL SUM( DISTINCT - 8 ) * 38 AS col0, 16 + 16 + - + 78 * CASE + 71 WHEN + 55 - 9 - + + 96 + + 55 + 32 THEN NULL WHEN - - 2 THEN + 96 DIV + 58 + - 94 - - 50 DIV 96 ELSE + + COUNT( DISTINCT 88 ) END
----
-304
-46

skipif mysql # not compatible
query II rowsort label-1586
SELECT ALL SUM ( DISTINCT - 8 ) * 38 AS col0, 16 + 16 + - + 78 * CASE + 71 WHEN + 55 - 9 - + + 96 + + 55 + 32 THEN NULL WHEN - - 2 THEN + 96 / + 58 + - 94 - - 50 / 96 ELSE + + COUNT ( DISTINCT 88 ) END
----
-304
-46

query I rowsort
SELECT + 65 + - 97 + + + 57 AS col1
----
25

query II rowsort
SELECT 17 AS col2, 48 * + - 70 AS col1
----
17
-3360

query I rowsort
SELECT + 83 * - 31 * ( - + 25 ) AS col1
----
64325

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

query II rowsort
SELECT 31, + 17 AS col2
----
31
17

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1593
SELECT - 35 - - - CAST( NULL AS SIGNED ) - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1593
SELECT - 35 - - - CAST ( NULL AS INTEGER ) - - CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1595
SELECT DISTINCT CASE 29 WHEN 77 + + 42 THEN CASE + + CASE - 66 WHEN + 23 THEN ( + 49 ) + 4 ELSE NULL END WHEN - COALESCE ( + 1, 22 ) * - COUNT( * ) THEN + - MIN( ALL + + CAST( - + 91 AS DECIMAL ) ) * ( - - COALESCE ( - 31, + 39 * + 34 ) ) ELSE NULL END WHEN + NULLIF ( - COALESCE ( CAST( - COUNT( * ) AS SIGNED ), + COUNT( 9 ) + + NULLIF ( + 90, 5 ) ), + 73 ) + - 3 THEN NULL END * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT CASE 29 WHEN 77 + + 42 THEN CASE + + CASE - 66 WHEN + 23 THEN ( + 49 ) + 4 ELSE NULL END WHEN - COALESCE ( + 1, 22 ) * - COUNT ( * ) THEN + - MIN ( ALL + + CAST ( - + 91 AS REAL ) ) * ( - - COALESCE ( - 31, + 39 * + 34 ) ) ELSE NULL END WHEN + NULLIF ( - COALESCE ( CAST ( - COUNT ( * ) AS INTEGER ), + COUNT ( 9 ) + + NULLIF ( + 90, 5 ) ), + 73 ) + - 3 THEN NULL END * COUNT ( * ) AS col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1597
SELECT 52 DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-1597
SELECT 52 / 53
----
0

query II rowsort
SELECT - 33 AS col1, 70 AS col2
----
-33
70

onlyif mysql # aggregate syntax: 
query II rowsort label-1599
SELECT COUNT( * ) + + + 19 + - 9 AS col2, 12 + 27 AS col0
----
11
39

skipif mysql # not compatible
query II rowsort label-1599
SELECT COUNT ( * ) + + + 19 + - 9 AS col2, 12 + 27 AS col0
----
11
39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1600
SELECT 61 - 96 DIV - 80 AS col0, + 10 + + CAST( - - 1 AS SIGNED ) AS col0
----
62
11

skipif mysql # not compatible
query II rowsort label-1600
SELECT 61 - 96 / - 80 AS col0, + 10 + + CAST ( - - 1 AS INTEGER ) AS col0
----
62
11

query I rowsort
SELECT ALL - 97 col2
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-1602
SELECT 32 * - CASE + 92 WHEN 60 + + + 69 * - 76 - 62 THEN + + 26 + + 77 + + 40 ELSE NULL END / + 18 * COUNT( * ) * + - 21, 62 col2
----
NULL
62

skipif mysql # not compatible
query II rowsort label-1602
SELECT 32 * - CASE + 92 WHEN 60 + + + 69 * - 76 - 62 THEN + + 26 + + 77 + + 40 ELSE NULL END / + 18 * COUNT ( * ) * + - 21, 62 col2
----
NULL
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT COALESCE ( + + COUNT( * ), + ( 79 ) * + COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1603
SELECT COALESCE ( + + COUNT ( * ), + ( 79 ) * + COUNT ( * ) ) col2
----
1

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

query I rowsort
SELECT DISTINCT + - 1 + 74
----
73

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1607
SELECT ALL - COALESCE ( - + CAST( + ( COUNT( * ) ) AS SIGNED ), + 58 + 77 + + 13 ) + ( 51 )
----
52

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL - COALESCE ( - + CAST ( + ( COUNT ( * ) ) AS INTEGER ), + 58 + 77 + + 13 ) + ( 51 )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1608
SELECT - 43 DIV 72 + 37 * COUNT( * ) DIV + COUNT( * ) + + COUNT( * ) * + - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-1608
SELECT - 43 / 72 + 37 * COUNT ( * ) / + COUNT ( * ) + + COUNT ( * ) * + - COUNT ( * )
----
36

query I rowsort
SELECT ALL - - 64
----
64

query I rowsort
SELECT DISTINCT + + 96 * 25
----
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT 37 * + 47 + + COUNT( * ) + + 70 * + 14
----
2720

skipif mysql # not compatible
query I rowsort label-1611
SELECT 37 * + 47 + + COUNT ( * ) + + 70 * + 14
----
2720

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT + 5 * + 53 + + 14 + + - COUNT( * ) AS col0
----
278

skipif mysql # not compatible
query I rowsort label-1612
SELECT + 5 * + 53 + + 14 + + - COUNT ( * ) AS col0
----
278

query II rowsort
SELECT + - 4 AS col0, NULLIF ( - 8, - + AVG ( 32 ) + - 13 )
----
-4
-8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1615
SELECT + - 1 DIV + 76 + 58 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-1615
SELECT + - 1 / + 76 + 58 AS col2
----
58

query I rowsort
SELECT 35 * + - 93 AS col0
----
-3255

query I rowsort
SELECT DISTINCT - + 62
----
-62

query I rowsort
SELECT 84 * 9 AS col2
----
756

query I rowsort
SELECT DISTINCT - 85 * 98 * - 5 AS col0
----
41650

onlyif mysql # DIV for integer division: 
query I rowsort label-1620
SELECT DISTINCT + 74 DIV + ( - - 8 ) + - + 99 * + + 57
----
-5634

skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT + 74 / + ( - - 8 ) + - + 99 * + + 57
----
-5634

query I rowsort
SELECT ALL - 41 * - 66 AS col1
----
2706

query I rowsort
SELECT - 47 col2
----
-47

query I rowsort
SELECT ALL 60 * + 17 AS col0
----
1020

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT 36 + + 73 * + - 37 * - SUM( + + 73 ) * 67 AS col2
----
13210627

skipif mysql # not compatible
query I rowsort label-1625
SELECT 36 + + 73 * + - 37 * - SUM ( + + 73 ) * 67 AS col2
----
13210627

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT NULLIF ( COUNT( * ), + + 44 + - 50 + - 51 * - - ( 36 ) ) + - 19
----
-18

skipif mysql # not compatible
query I rowsort label-1626
SELECT NULLIF ( COUNT ( * ), + + 44 + - 50 + - 51 * - - ( 36 ) ) + - 19
----
-18

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

query I rowsort
SELECT 26 + + CASE + + NULLIF ( + 87, + 84 * + NULLIF ( - + 29, + + 48 ) ) WHEN + 62 THEN NULL WHEN - 26 THEN - + 87 END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1630
SELECT NULLIF ( 8, + 35 * - - COUNT( ALL + + 92 ) ) + - 11 - CASE - 5 WHEN - 63 THEN - + 79 WHEN + + 33 THEN + MAX( DISTINCT + ( - 80 ) ) + + 60 + 44 + + CAST( + - ( COUNT( * ) ) AS DECIMAL ) * COUNT( * ) * + 53 * - 33 + COALESCE ( + 54, 27, 33 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1630
SELECT NULLIF ( 8, + 35 * - - COUNT ( ALL + + 92 ) ) + - 11 - CASE - 5 WHEN - 63 THEN - + 79 WHEN + + 33 THEN + MAX ( DISTINCT + ( - 80 ) ) + + 60 + 44 + + CAST ( + - ( COUNT ( * ) ) AS REAL ) * COUNT ( * ) * + 53 * - 33 + COALESCE ( + 54, 27, 33 ) END
----
NULL

query I rowsort
SELECT DISTINCT + 20 * 36 AS col0
----
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1632
SELECT CAST( 67 AS SIGNED ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-1632
SELECT CAST ( 67 AS INTEGER ) * 0
----
0

query I rowsort
SELECT DISTINCT 5 + + + 94 AS col2
----
99

query II rowsort
SELECT 80 + 16 AS col0, + 55
----
96
55

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

query I rowsort
SELECT ALL 70 + - - 93
----
163

query I rowsort
SELECT DISTINCT 83 * - 12 col2
----
-996

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT MAX( ALL + 41 ) * + 2
----
82

skipif mysql # not compatible
query I rowsort label-1638
SELECT MAX ( ALL + 41 ) * + 2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT DISTINCT - SUM( ALL - - 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-1639
SELECT DISTINCT - SUM ( ALL - - 71 ) AS col0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-1640
SELECT DISTINCT - COALESCE ( - - 13, + - AVG ( - 78 ) DIV - - 11, 23 DIV 0 ) + + + 22
----
9

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT - COALESCE ( - - 13, + - AVG ( - 78 ) / - - 11, 23 / 0 ) + + + 22
----
9

query I rowsort
SELECT ALL + ( + 12 ) + - - 67 AS col0
----
79

query I rowsort
SELECT - 85 * + - 4 * + 60
----
20400

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT ALL - 97 DIV 87 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL - 97 / 87 AS col0
----
-1

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

query I rowsort
SELECT DISTINCT - 80 + - 35 + + 17 col1
----
-98

query I rowsort
SELECT - + 83 * 22 + - CASE - 79 WHEN 23 THEN + 11 + - + ( - - 84 ) ELSE NULL END + + 5 AS col2
----
NULL

query II rowsort
SELECT ALL - 47 - - + 93 AS col2, - 85
----
46
-85

query I rowsort
SELECT DISTINCT + 89 * + - 55 * - 27 * + 34 * - 77
----
-346007970

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

query I rowsort
SELECT 99 - - 61 AS col1
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1651
SELECT ALL + + NULLIF ( + 98, 15 + - MAX( + + NULLIF ( + + 0, + 87 ) ) * + 52 ) * - CAST( NULL AS SIGNED ) * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL + + NULLIF ( + 98, 15 + - MAX ( + + NULLIF ( + + 0, + 87 ) ) * + 52 ) * - CAST ( NULL AS INTEGER ) * + 8
----
NULL

query I rowsort
SELECT DISTINCT - 1 col2
----
-1

query I rowsort
SELECT 92 * 35 - - 68 col2
----
3288

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

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

query II rowsort
SELECT ALL - - COALESCE ( - 2, + - 16, 52 ) AS col1, 99 + - 90 AS col0
----
-2
9

query II rowsort
SELECT ALL - ( + 57 ) AS col1, 8 + ( + ( + 46 ) ) * 98
----
-57
4516

query I rowsort
SELECT 22 * - ( - 39 ) AS col1
----
858

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT ALL + MAX( ALL - 99 ) * - 51 AS col0
----
5049

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL + MAX ( ALL - 99 ) * - 51 AS col0
----
5049

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT ALL - SUM( 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL - SUM ( 73 )
----
-73

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

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

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

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

query I rowsort
SELECT 46 * 53
----
2438

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT ALL COALESCE ( - ( - COUNT( * ) ), - + COUNT( - 21 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL COALESCE ( - ( - COUNT ( * ) ), - + COUNT ( - 21 ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1664
SELECT - 2, CASE 75 WHEN + 32 * + - 18 + + CAST( + 27 AS SIGNED ) THEN NULL ELSE - - CASE WHEN 55 IS NOT NULL THEN NULL ELSE + CAST( NULL AS SIGNED ) END / + 35 END AS col1
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-1664
SELECT - 2, CASE 75 WHEN + 32 * + - 18 + + CAST ( + 27 AS INTEGER ) THEN NULL ELSE - - CASE WHEN 55 IS NOT NULL THEN NULL ELSE + CAST ( NULL AS INTEGER ) END / + 35 END AS col1
----
-2
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1665
SELECT DISTINCT 71 DIV 57
----
1

skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT 71 / 57
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT - MIN( ALL - - CASE + 2 WHEN + 40 THEN NULL ELSE 82 * + 66 END )
----
-5412

skipif mysql # not compatible
query I rowsort label-1667
SELECT - MIN ( ALL - - CASE + 2 WHEN + 40 THEN NULL ELSE 82 * + 66 END )
----
-5412

query I rowsort
SELECT ALL 0 * - 16 AS col2
----
0

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

query I rowsort
SELECT - 76 + - - 53
----
-23

query I rowsort
SELECT + 82 * 50 AS col0
----
4100

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

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL 46 + COUNT ( * ) AS col1
----
47

query I rowsort
SELECT - 52 + + 53
----
1

query I rowsort
SELECT ALL 64 + - 54
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-1675
SELECT + 34 DIV + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1675
SELECT + 34 / + 94 AS col2
----
0

query I rowsort
SELECT ALL 40 + - 3 * - 79 * + 14
----
3358

query I rowsort
SELECT + 46 - 30
----
16

query I rowsort
SELECT ALL + 43 + + - 66 - 28
----
-51

query I rowsort
SELECT DISTINCT - ( - 88 ) + NULLIF ( 84, + ( + 48 ) * + 56 * 37 + + 23 + - - 64 * + 68 ) * + - 14
----
-1088

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1680
SELECT + - 98 + COUNT( * ) DIV 17 col0, - 73 DIV 57 * + 62
----
-98
-62

skipif mysql # not compatible
query II rowsort label-1680
SELECT + - 98 + COUNT ( * ) / 17 col0, - 73 / 57 * + 62
----
-98
-62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1681
SELECT ALL - CASE + - 29 WHEN + + CAST( + 17 AS DECIMAL ) THEN 52 + - ( + + ( - 43 ) ) END + 96 + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL - CASE + - 29 WHEN + + CAST ( + 17 AS REAL ) THEN 52 + - ( + + ( - 43 ) ) END + 96 + - 39
----
NULL

query I rowsort
SELECT ALL + + 71 + - 42
----
29

query I rowsort
SELECT - - 96
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT + 43 - - NULLIF ( - 86, + - COUNT( * ) * - 45 + + + CASE 76 WHEN - ( + 18 ) THEN + 95 + - 74 ELSE + 97 END )
----
-43

skipif mysql # not compatible
query I rowsort label-1684
SELECT + 43 - - NULLIF ( - 86, + - COUNT ( * ) * - 45 + + + CASE 76 WHEN - ( + 18 ) THEN + 95 + - 74 ELSE + 97 END )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT - CASE - 28 WHEN + COALESCE ( - - 98, - 2 ) + + + ( + - 56 ) THEN NULL ELSE 20 * + COALESCE ( 36, 47 + 17, + COUNT( * ) * 26 * + ( + 68 ) * + ( 18 ) ) + ( 13 ) END * - 41 + - COUNT( * )
----
30052

skipif mysql # not compatible
query I rowsort label-1685
SELECT - CASE - 28 WHEN + COALESCE ( - - 98, - 2 ) + + + ( + - 56 ) THEN NULL ELSE 20 * + COALESCE ( 36, 47 + 17, + COUNT ( * ) * 26 * + ( + 68 ) * + ( 18 ) ) + ( 13 ) END * - 41 + - COUNT ( * )
----
30052

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT ALL 26 * + 76 + - COUNT( 6 )
----
1975

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL 26 * + 76 + - COUNT ( 6 )
----
1975

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

query I rowsort
SELECT ALL - ( + 69 ) * ( 43 ) * 29 - - - 68 + + + 29 * + 80 + 17 + - + 9
----
-83783

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

query I rowsort
SELECT DISTINCT + 50 * ( + + COALESCE ( + 39, + - 66, + 67 ) ) - + + 36 * + + 21 + 73 AS col2
----
1267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1691
SELECT DISTINCT - + NULLIF ( + 57, CASE + 37 WHEN CAST( NULL AS SIGNED ) / - - 81 / 38 * - + COUNT( * ) THEN + 82 ELSE NULL END * + - 99 + ( + + 36 ) + - + 62 - + 80 ) * - 74 - + 52 AS col2
----
4166

skipif mysql # not compatible
query I rowsort label-1691
SELECT DISTINCT - + NULLIF ( + 57, CASE + 37 WHEN CAST ( NULL AS INTEGER ) / - - 81 / 38 * - + COUNT ( * ) THEN + 82 ELSE NULL END * + - 99 + ( + + 36 ) + - + 62 - + 80 ) * - 74 - + 52 AS col2
----
4166

query II rowsort
SELECT DISTINCT + + 11 AS col0, + 13 AS col2
----
11
13

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1694
SELECT ALL - COUNT( * ) DIV + SUM( ALL 30 ) col1, + 21 * 21 * - 20 col0
----
0
-8820

skipif mysql # not compatible
query II rowsort label-1694
SELECT ALL - COUNT ( * ) / + SUM ( ALL 30 ) col1, + 21 * 21 * - 20 col0
----
0
-8820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1695
SELECT - CASE 19 WHEN ( - + COUNT( * ) ) THEN - 6 WHEN - 35 + + - 47 - - 63 THEN NULL ELSE + COALESCE ( - 80, - 2 ) END * COALESCE ( + + 13, + COALESCE ( + 83, + 57 ) * 7 * COALESCE ( + ( - - 21 ), 72 + - 88, CAST( 6 AS SIGNED ) * + COUNT( * ) + 15, COALESCE ( 24, 57 + + 94 ) ) + 75 )
----
1040

skipif mysql # not compatible
query I rowsort label-1695
SELECT - CASE 19 WHEN ( - + COUNT ( * ) ) THEN - 6 WHEN - 35 + + - 47 - - 63 THEN NULL ELSE + COALESCE ( - 80, - 2 ) END * COALESCE ( + + 13, + COALESCE ( + 83, + 57 ) * 7 * COALESCE ( + ( - - 21 ), 72 + - 88, CAST ( 6 AS INTEGER ) * + COUNT ( * ) + 15, COALESCE ( 24, 57 + + 94 ) ) + 75 )
----
1040

query I rowsort
SELECT ( - 87 )
----
-87

query I rowsort
SELECT - 73 * - ( + 84 ) + + 20 AS col0
----
6152

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT + 12 + AVG ( - 90 ) * 25 * + 57 + - NULLIF ( + COUNT( + 29 ), 0 * + - COUNT( * ) ) * + - COUNT( - 90 ) + - CASE 59 WHEN + 99 THEN - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1698
SELECT + 12 + AVG ( - 90 ) * 25 * + 57 + - NULLIF ( + COUNT ( + 29 ), 0 * + - COUNT ( * ) ) * + - COUNT ( - 90 ) + - CASE 59 WHEN + 99 THEN - + COUNT ( * ) END
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1700
SELECT + 42 DIV + 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1700
SELECT + 42 / + 45 AS col0
----
0

query I rowsort
SELECT - 48 * + 13 col1
----
-624

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1702
SELECT - 60 + + 6 + COALESCE ( ( + 0 ), 92 / + 56 + + + 99 ) + + 54 * + 3 + + CAST( NULL AS SIGNED ) AS col2, - 66
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-1702
SELECT - 60 + + 6 + COALESCE ( ( + 0 ), 92 / + 56 + + + 99 ) + + 54 * + 3 + + CAST ( NULL AS INTEGER ) AS col2, - 66
----
NULL
-66

query I rowsort
SELECT - 19 * - 49 AS col2
----
931

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

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL + 37 * + - 39 / COUNT ( * )
----
-1443

query II rowsort
SELECT + 52, 39 AS col2
----
52
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1706
SELECT ALL + NULLIF ( + CAST( NULL AS SIGNED ), 32 * + 74 * + - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL + NULLIF ( + CAST ( NULL AS INTEGER ), 32 * + 74 * + - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT - 4 * - 98 + - COUNT( * )
----
391

skipif mysql # not compatible
query I rowsort label-1707
SELECT - 4 * - 98 + - COUNT ( * )
----
391

query I rowsort
SELECT ALL - 26 * - ( + 52 ) + - 14 * 26
----
988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1709
SELECT ALL + NULLIF ( + + COALESCE ( 50, + + 7, - - NULLIF ( 11, 79 + 86 + - 27 ) + - + 88 ), + 22 * + 23 + - 5 * - 77 * - COALESCE ( 50, - ( + MAX( ALL - 72 ) ), CAST( 37 AS SIGNED ) ) ) AS col0, 55 * - COUNT( * ) AS col2
----
50
-55

skipif mysql # not compatible
query II rowsort label-1709
SELECT ALL + NULLIF ( + + COALESCE ( 50, + + 7, - - NULLIF ( 11, 79 + 86 + - 27 ) + - + 88 ), + 22 * + 23 + - 5 * - 77 * - COALESCE ( 50, - ( + MAX ( ALL - 72 ) ), CAST ( 37 AS INTEGER ) ) ) AS col0, 55 * - COUNT ( * ) AS col2
----
50
-55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT ALL 35 * - + 43 * + MIN( DISTINCT - + 32 ) + - + 68 AS col0
----
48092

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL 35 * - + 43 * + MIN ( DISTINCT - + 32 ) + - + 68 AS col0
----
48092

query I rowsort
SELECT - 6 + + + 3 AS col1
----
-3

query I rowsort
SELECT DISTINCT - 29 * - 34 col2
----
986

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT ALL + 26 * - 55 + + - COUNT( * )
----
-1431

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL + 26 * - 55 + + - COUNT ( * )
----
-1431

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1715
SELECT - 23, 74 * CAST( NULL AS SIGNED ) * + - 43 AS col0
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-1715
SELECT - 23, 74 * CAST ( NULL AS INTEGER ) * + - 43 AS col0
----
-23
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1716
SELECT + 66 * + NULLIF ( - - 89, + + CASE - NULLIF ( + - 10, + 38 * + 66 ) WHEN + - 27 THEN NULL WHEN + 97 THEN + - 66 ELSE NULL END - - + 16 + + + 45 * - - 16 + 23 - - MIN( + 51 ) - + + CAST( NULL AS DECIMAL ) ) + - + 78 col0, 15 AS col1
----
5796
15

skipif mysql # not compatible
query II rowsort label-1716
SELECT + 66 * + NULLIF ( - - 89, + + CASE - NULLIF ( + - 10, + 38 * + 66 ) WHEN + - 27 THEN NULL WHEN + 97 THEN + - 66 ELSE NULL END - - + 16 + + + 45 * - - 16 + 23 - - MIN ( + 51 ) - + + CAST ( NULL AS REAL ) ) + - + 78 col0, 15 AS col1
----
5796
15

query II rowsort
SELECT 28 AS col0, 48 AS col1
----
28
48

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

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

query I rowsort
SELECT - 23 * 55
----
-1265

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

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

query I rowsort
SELECT ALL + 39 + 16 AS col0
----
55

query II rowsort
SELECT ALL 44 + - 76, + 3 AS col0
----
-32
3

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1724
SELECT ALL - 23 AS col2, 58 DIV - 81 col2
----
-23
0

skipif mysql # not compatible
query II rowsort label-1724
SELECT ALL - 23 AS col2, 58 / - 81 col2
----
-23
0

query I rowsort
SELECT + - 61 + - 65 AS col0
----
-126

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

query I rowsort
SELECT + + 86 + - 72 AS col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1728
SELECT ALL + 80 - + + 45 + + 8 * CAST( - - 50 AS SIGNED )
----
435

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL + 80 - + + 45 + + 8 * CAST ( - - 50 AS INTEGER )
----
435

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT - + MAX( + 73 ) * 57 + 94 AS col2
----
-4067

skipif mysql # not compatible
query I rowsort label-1729
SELECT - + MAX ( + 73 ) * 57 + 94 AS col2
----
-4067

query I rowsort
SELECT + - 11 + 9 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1731
SELECT + - CAST( NULL AS SIGNED ) * + CASE + 84 WHEN - 64 THEN NULL WHEN - COUNT( * ) THEN + 45 * + 21 / - ( + 68 ) END + - MAX( + 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1731
SELECT + - CAST ( NULL AS INTEGER ) * + CASE + 84 WHEN - 64 THEN NULL WHEN - COUNT ( * ) THEN + 45 * + 21 / - ( + 68 ) END + - MAX ( + 6 )
----
NULL

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

query II rowsort
SELECT ALL 90 AS col1, - 6 AS col1
----
90
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1734
SELECT + - 82, 10 DIV + + 16 * - 44 + 33 + 11 * - SUM( ALL + - 74 ) AS col1
----
-82
847

skipif mysql # not compatible
query II rowsort label-1734
SELECT + - 82, 10 / + + 16 * - 44 + 33 + 11 * - SUM ( ALL + - 74 ) AS col1
----
-82
847

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1735
SELECT ALL + + COUNT( * ), - 61 DIV - 39 * - COUNT( * ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-1735
SELECT ALL + + COUNT ( * ), - 61 / - 39 * - COUNT ( * ) AS col2
----
1
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT CASE - + 81 WHEN 19 THEN + + COUNT( 74 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1737
SELECT CASE - + 81 WHEN 19 THEN + + COUNT ( 74 ) END AS col0
----
NULL

query I rowsort
SELECT + + 68 + + 60 col1
----
128

query I rowsort
SELECT DISTINCT 36 * - 90 AS col1
----
-3240

query I rowsort
SELECT DISTINCT 45 * 50
----
2250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1741
SELECT CAST( + - 52 AS SIGNED ) AS col0, + 85 * - COUNT( * )
----
-52
-85

skipif mysql # not compatible
query II rowsort label-1741
SELECT CAST ( + - 52 AS INTEGER ) AS col0, + 85 * - COUNT ( * )
----
-52
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1742
SELECT ALL - 9 DIV + - MIN( - 6 ) + - 91 * + - 47
----
4276

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL - 9 / + - MIN ( - 6 ) + - 91 * + - 47
----
4276

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT COUNT( * ) * 23
----
23

skipif mysql # not compatible
query I rowsort label-1743
SELECT COUNT ( * ) * 23
----
23

query II rowsort
SELECT DISTINCT 42 * 14 AS col2, - 76 AS col2
----
588
-76

query I rowsort
SELECT DISTINCT - 33 + - 92 * 34
----
-3161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1746
SELECT COALESCE ( + + 39, - 21 + + 94 + + COUNT( * ) - + 71 * + 77 + + 78 ) DIV - 71 * - + 66 - COALESCE ( - + NULLIF ( 83, + COALESCE ( - + CAST( NULL AS SIGNED ), + - 0 * 19 DIV + 85, - COUNT( * ) DIV + - 20 + + ( + - 3 ) - + - 44 + - ( + + 19 ), - - 97 DIV + ( - 77 ) + - ( + 3 + + NULLIF ( 72 + 25, 29 ) ) ) * + COUNT( * ) ), + 73, + 59 ) + 97
----
180

skipif mysql # not compatible
query I rowsort label-1746
SELECT COALESCE ( + + 39, - 21 + + 94 + + COUNT ( * ) - + 71 * + 77 + + 78 ) / - 71 * - + 66 - COALESCE ( - + NULLIF ( 83, + COALESCE ( - + CAST ( NULL AS INTEGER ), + - 0 * 19 / + 85, - COUNT ( * ) / + - 20 + + ( + - 3 ) - + - 44 + - ( + + 19 ), - - 97 / + ( - 77 ) + - ( + 3 + + NULLIF ( 72 + 25, 29 ) ) ) * + COUNT ( * ) ), + 73, + 59 ) + 97
----
180

query I rowsort
SELECT ALL 71 + + 25 + + + NULLIF ( - 37, 72 ) AS col1
----
59

query I rowsort
SELECT DISTINCT COALESCE ( - 42, + 34 ) + - 0 AS col1
----
-42

query II rowsort
SELECT DISTINCT 88 + + 8, 61 AS col1
----
96
61

onlyif mysql # DIV for integer division: 
query II rowsort label-1750
SELECT 71 DIV - + 48 AS col1, - 33 AS col2
----
-1
-33

skipif mysql # not compatible
query II rowsort label-1750
SELECT 71 / - + 48 AS col1, - 33 AS col2
----
-1
-33

query I rowsort
SELECT ALL + 70 + + + NULLIF ( + - 91, + 29 * - - 14 ) + - 16 - + 9
----
-46

query I rowsort
SELECT 55 * 88 * 80
----
387200

query I rowsort
SELECT DISTINCT + 25 + 69 AS col1
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-1754
SELECT ALL - 71 + - 83, + MAX( ALL - 29 ) AS col0
----
-154
-29

skipif mysql # not compatible
query II rowsort label-1754
SELECT ALL - 71 + - 83, + MAX ( ALL - 29 ) AS col0
----
-154
-29

query I rowsort
SELECT DISTINCT - 98 * + - 21
----
2058

query I rowsort
SELECT - 87 col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT COUNT( * ) + - 43 * + COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-1757
SELECT COUNT ( * ) + - 43 * + COUNT ( * ) AS col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1758
SELECT CASE - ( + - COUNT( * ) ) WHEN AVG ( 92 ) + - 3 + ( - ( + + CAST( - - 75 AS SIGNED ) ) ) + 35 + 77 * - - 49 THEN - + 49 - ( CAST( NULL AS SIGNED ) ) END * - + 52 + + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1758
SELECT CASE - ( + - COUNT ( * ) ) WHEN AVG ( 92 ) + - 3 + ( - ( + + CAST ( - - 75 AS INTEGER ) ) ) + 35 + 77 * - - 49 THEN - + 49 - ( CAST ( NULL AS INTEGER ) ) END * - + 52 + + + 52
----
NULL

query I rowsort
SELECT ALL - - ( + ( + + 36 ) ) * + 47
----
1692

query I rowsort
SELECT 66 * + 93 - + 60 + + + 74
----
6152

query I rowsort
SELECT + 56 + 86 AS col1
----
142

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT COUNT( * ) + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1763
SELECT COUNT ( * ) + COUNT ( * ) AS col1
----
2

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

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

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

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

query I rowsort
SELECT - COALESCE ( - 96, 60 ) + - 39 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT ALL - 68 * SUM( - 56 )
----
3808

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL - 68 * SUM ( - 56 )
----
3808

query I rowsort
SELECT + 14 * - 79 * - + 20 - - 45
----
22165

onlyif mysql # DIV for integer division: 
query I rowsort label-1770
SELECT ALL + 57 DIV - - 19 col1
----
3

skipif mysql # not compatible
query I rowsort label-1770
SELECT ALL + 57 / - - 19 col1
----
3

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

query I rowsort
SELECT + 72 + - 14 AS col1
----
58

query I rowsort
SELECT 74 + 47 AS col1
----
121

query I rowsort
SELECT ALL + 8 * 66 col1
----
528

query I rowsort
SELECT + 55 + - 40 + + - 85
----
-70

query I rowsort
SELECT ALL + 33 * + 73 AS col2
----
2409

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

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

query II rowsort
SELECT ALL 33 + + 22 AS col1, 70 * + 89 * 65 AS col2
----
55
404950

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT ALL 47 + NULLIF ( - + ( + - COUNT( * ) ), + + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL 47 + NULLIF ( - + ( + - COUNT ( * ) ), + + COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 46 * + 51 * - + ( - 63 ) AS col1
----
-147798

query I rowsort
SELECT ( - 64 ) + + 41 AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1782
SELECT 66 AS col0, COALESCE ( ( + + COUNT( * ) ), + 84 + + 55 ), + - COUNT( 66 ) * - 57 * - CAST( NULL AS SIGNED ) + - 33 * - CAST( + 74 AS SIGNED ) AS col0
----
66
1
NULL

skipif mysql # not compatible
query III rowsort label-1782
SELECT 66 AS col0, COALESCE ( ( + + COUNT ( * ) ), + 84 + + 55 ), + - COUNT ( 66 ) * - 57 * - CAST ( NULL AS INTEGER ) + - 33 * - CAST ( + 74 AS INTEGER ) AS col0
----
66
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT ALL MAX( + 68 ) + 56
----
124

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL MAX ( + 68 ) + 56
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT - ( 88 ) * - + COUNT( * ) + + + 18
----
106

skipif mysql # not compatible
query I rowsort label-1784
SELECT - ( 88 ) * - + COUNT ( * ) + + + 18
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT DISTINCT CASE + 78 WHEN - 27 THEN + 50 WHEN - + 58 + 40 * 45 THEN NULL WHEN + NULLIF ( 69, + MIN( - 76 ) ) + - 61 + 62 THEN NULL WHEN 72 THEN - - CASE - 81 WHEN 20 THEN + + 11 END ELSE NULL END + + ( 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT CASE + 78 WHEN - 27 THEN + 50 WHEN - + 58 + 40 * 45 THEN NULL WHEN + NULLIF ( 69, + MIN ( - 76 ) ) + - 61 + 62 THEN NULL WHEN 72 THEN - - CASE - 81 WHEN 20 THEN + + 11 END ELSE NULL END + + ( 49 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1786
SELECT DISTINCT - 13 AS col1, + 45 DIV - 81 AS col1
----
-13
0

skipif mysql # not compatible
query II rowsort label-1786
SELECT DISTINCT - 13 AS col1, + 45 / - 81 AS col1
----
-13
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1787
SELECT CASE 7 WHEN 79 / - COUNT( * ) + - - COUNT( 91 ) + + + 95 + - 41 + - CASE - MIN( DISTINCT + 90 ) WHEN - 14 + + 81 * 50 THEN 87 WHEN + + 96 THEN + + 13 WHEN - - 34 THEN NULL ELSE - - SUM( DISTINCT 91 ) / ( - - 64 ) END * - + 7 THEN - 98 - - - CAST( NULL AS SIGNED ) ELSE NULL END + 67 AS col1, 21
----
NULL
21

skipif mysql # not compatible
query II rowsort label-1787
SELECT CASE 7 WHEN 79 / - COUNT ( * ) + - - COUNT ( 91 ) + + + 95 + - 41 + - CASE - MIN ( DISTINCT + 90 ) WHEN - 14 + + 81 * 50 THEN 87 WHEN + + 96 THEN + + 13 WHEN - - 34 THEN NULL ELSE - - SUM ( DISTINCT 91 ) / ( - - 64 ) END * - + 7 THEN - 98 - - - CAST ( NULL AS INTEGER ) ELSE NULL END + 67 AS col1, 21
----
NULL
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1788
SELECT DISTINCT ( 37 ) DIV + COUNT( * ) AS col1, 49 * - + 61 AS col1
----
37
-2989

skipif mysql # not compatible
query II rowsort label-1788
SELECT DISTINCT ( 37 ) / + COUNT ( * ) AS col1, 49 * - + 61 AS col1
----
37
-2989

query I rowsort
SELECT 75 * - 86 + - 10 * - 76 * - 4 AS col0
----
-9490

query I rowsort
SELECT ALL 88 * - - 11
----
968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1791
SELECT + 58 * - NULLIF ( + 55, + CASE - ( 31 ) WHEN 52 THEN NULL WHEN - 36 * + 6 THEN 59 END ) + + 78 - - 0 DIV + COUNT( * )
----
-3112

skipif mysql # not compatible
query I rowsort label-1791
SELECT + 58 * - NULLIF ( + 55, + CASE - ( 31 ) WHEN 52 THEN NULL WHEN - 36 * + 6 THEN 59 END ) + + 78 - - 0 / + COUNT ( * )
----
-3112

query I rowsort
SELECT ALL + 39 - 69 - + - 52
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1793
SELECT 80 + + + CAST( - - 1 AS SIGNED ) * 28 * 71 * 25 + 8 + - 87 + - 81 col1
----
49620

skipif mysql # not compatible
query I rowsort label-1793
SELECT 80 + + + CAST ( - - 1 AS INTEGER ) * 28 * 71 * 25 + 8 + - 87 + - 81 col1
----
49620

query II rowsort
SELECT 61, - 17 AS col2
----
61
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT 94 + - - COUNT( * ) + - COUNT( * ) / AVG ( + ( + 67 ) ) + - 65 + + 54 * - 25 * - 84 * + 96 + CASE + 26 WHEN + COALESCE ( + 9, 68 / + + 72 ) + + + 96 THEN COUNT( * ) / 44 / + AVG ( DISTINCT - - 13 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1795
SELECT 94 + - - COUNT ( * ) + - COUNT ( * ) / AVG ( + ( + 67 ) ) + - 65 + + 54 * - 25 * - 84 * + 96 + CASE + 26 WHEN + COALESCE ( + 9, 68 / + + 72 ) + + + 96 THEN COUNT ( * ) / 44 / + AVG ( DISTINCT - - 13 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1796
SELECT MIN( + - 50 ) * - + CAST( + COUNT( * ) AS SIGNED ) * + + 19 AS col1
----
950

skipif mysql # not compatible
query I rowsort label-1796
SELECT MIN ( + - 50 ) * - + CAST ( + COUNT ( * ) AS INTEGER ) * + + 19 AS col1
----
950

onlyif mysql # DIV for integer division: 
query I rowsort label-1797
SELECT ALL + 53 DIV + 18 + - + 95 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL + 53 / + 18 + - + 95 AS col2
----
-93

query I rowsort
SELECT ALL + 72 * + 84
----
6048

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1799
SELECT ALL + NULLIF ( - + COUNT( * ), CAST( + 12 AS DECIMAL ) + - + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL + NULLIF ( - + COUNT ( * ), CAST ( + 12 AS REAL ) + - + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT - MIN( DISTINCT - 19 )
----
19

skipif mysql # not compatible
query I rowsort label-1800
SELECT - MIN ( DISTINCT - 19 )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1801
SELECT + ( CAST( + 51 AS SIGNED ) ) * + - ( - 72 ) * - MAX( DISTINCT + 87 ) + - - COUNT( * ) AS col2
----
-319463

skipif mysql # not compatible
query I rowsort label-1801
SELECT + ( CAST ( + 51 AS INTEGER ) ) * + - ( - 72 ) * - MAX ( DISTINCT + 87 ) + - - COUNT ( * ) AS col2
----
-319463

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

query I rowsort
SELECT - 26 AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1804
SELECT DISTINCT + NULLIF ( - 97, + COUNT( * ) * - 42 + + ( 36 ) + - COALESCE ( + 36, + - 1 ) + - 65 + - 13 * + - 31 * + + CAST( NULL AS SIGNED ) ), CASE WHEN + 69 BETWEEN + + 58 * + NULLIF ( - + ( - - 71 ), - 40 ) * + + 81 * - 21 + + 89 - + 53 + + 2 AND NULL THEN - COUNT( * ) END * COUNT( * ) col0
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-1804
SELECT DISTINCT + NULLIF ( - 97, + COUNT ( * ) * - 42 + + ( 36 ) + - COALESCE ( + 36, + - 1 ) + - 65 + - 13 * + - 31 * + + CAST ( NULL AS INTEGER ) ), CASE WHEN + 69 BETWEEN + + 58 * + NULLIF ( - + ( - - 71 ), - 40 ) * + + 81 * - 21 + + 89 - + 53 + + 2 AND NULL THEN - COUNT ( * ) END * COUNT ( * ) col0
----
-97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1805
SELECT DISTINCT + + 68 + + CAST( NULL AS SIGNED ) * - 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT + + 68 + + CAST ( NULL AS INTEGER ) * - 70 AS col2
----
NULL

query I rowsort
SELECT ALL + 13 + - 34
----
-21

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1808
SELECT DISTINCT - + MIN( - ( - 39 ) ) * + ( 89 ) + - COUNT( * ) DIV 35 AS col0
----
-3471

skipif mysql # not compatible
query I rowsort label-1808
SELECT DISTINCT - + MIN ( - ( - 39 ) ) * + ( 89 ) + - COUNT ( * ) / 35 AS col0
----
-3471

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

query I rowsort
SELECT DISTINCT 42 * - 9 * 27
----
-10206

onlyif mysql # aggregate syntax: 
query II rowsort label-1811
SELECT ALL + ( + 3 ) * - COUNT( * ) + - 14 AS col1, 97 col0
----
-17
97

skipif mysql # not compatible
query II rowsort label-1811
SELECT ALL + ( + 3 ) * - COUNT ( * ) + - 14 AS col1, 97 col0
----
-17
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1812
SELECT COALESCE ( - + 17, COUNT( * ) + - 20 + 39 * - 41, ( + CASE - - 10 WHEN 83 THEN 99 DIV + 65 ELSE NULL END ) ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-1812
SELECT COALESCE ( - + 17, COUNT ( * ) + - 20 + 39 * - 41, ( + CASE - - 10 WHEN 83 THEN 99 / + 65 ELSE NULL END ) ) AS col1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1813
SELECT COALESCE ( + 8, - CAST( NULL AS SIGNED ) + + - 49 )
----
8

skipif mysql # not compatible
query I rowsort label-1813
SELECT COALESCE ( + 8, - CAST ( NULL AS INTEGER ) + + - 49 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1814
SELECT + 36 DIV 61 + - 20 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1814
SELECT + 36 / 61 + - 20 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT DISTINCT + COUNT( * ) * - + 14 + 5
----
-9

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT + COUNT ( * ) * - + 14 + 5
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ALL + NULLIF ( - - 12, 18 * + COUNT( - - 52 ) )
----
12

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL + NULLIF ( - - 12, 18 * + COUNT ( - - 52 ) )
----
12

query I rowsort
SELECT DISTINCT - 61 * + + ( + 25 )
----
-1525

onlyif mysql # DIV for integer division: 
query I rowsort label-1818
SELECT + 18 DIV - - 35 * - 79 * 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1818
SELECT + 18 / - - 35 * - 79 * 34 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1819
SELECT - 47 DIV + 43 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1819
SELECT - 47 / + 43 AS col1
----
-1

query II rowsort
SELECT ALL + 16 * + - 70 col0, - 39 + + 88
----
-1120
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1821
SELECT CASE - ( - 47 ) WHEN 10 THEN NULL WHEN + + 2 DIV ( - 96 ) THEN - 98 ELSE + 8 END * + 37 - + 21 * 94 - + 11 DIV - 57 AS col1
----
-1678

skipif mysql # not compatible
query I rowsort label-1821
SELECT CASE - ( - 47 ) WHEN 10 THEN NULL WHEN + + 2 / ( - 96 ) THEN - 98 ELSE + 8 END * + 37 - + 21 * 94 - + 11 / - 57 AS col1
----
-1678

query I rowsort
SELECT DISTINCT + 98 * + 97 AS col2
----
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT + ( - COUNT( * ) ) * 70 * - 19 AS col1
----
1330

skipif mysql # not compatible
query I rowsort label-1823
SELECT + ( - COUNT ( * ) ) * 70 * - 19 AS col1
----
1330

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

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

skipif mysql # not compatible
query I rowsort label-1825
SELECT + SUM ( - - 69 )
----
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT DISTINCT MAX( DISTINCT - - 62 ) * - + 64
----
-3968

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT MAX ( DISTINCT - - 62 ) * - + 64
----
-3968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1828
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) * 34 * - - 69 * + - 76 - + + 85 * + 74 + - 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1828
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 34 * - - 69 * + - 76 - + + 85 * + 74 + - 86 AS col2
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL + ( - + COUNT( DISTINCT - 49 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL + ( - + COUNT ( DISTINCT - 49 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT + - SUM( + 99 ) * - 76 AS col1
----
7524

skipif mysql # not compatible
query I rowsort label-1833
SELECT + - SUM ( + 99 ) * - 76 AS col1
----
7524

query I rowsort
SELECT + 27 + 36
----
63

query I rowsort
SELECT + CASE + 95 WHEN 3 THEN NULL ELSE + 46 + - 0 * - - 57 END - 30 col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT COUNT( ALL - 14 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1836
SELECT COUNT ( ALL - 14 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT + 40 + + COUNT( + 84 ) * 98 * COUNT( * ) * - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-1837
SELECT + 40 + + COUNT ( + 84 ) * 98 * COUNT ( * ) * - COUNT ( * )
----
-58

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1839
SELECT + 54 + + CAST( 5 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-1839
SELECT + 54 + + CAST ( 5 AS INTEGER )
----
59

query I rowsort
SELECT + 67 + + 71 + + 85 AS col2
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1841
SELECT ALL - 16 + + - 88 - - 4 * - ( CAST( - + 13 AS SIGNED ) ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL - 16 + + - 88 - - 4 * - ( CAST ( - + 13 AS INTEGER ) ) AS col2
----
-52

query II rowsort
SELECT + + ( - 1 ) + 10 * + 47 col1, ( - 84 )
----
469
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT ALL MAX( + 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL MAX ( + 92 ) AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1844
SELECT ALL + 47 + - 80 * + + 26 + 26 DIV + 6
----
-2029

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL + 47 + - 80 * + + 26 + 26 / + 6
----
-2029

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

skipif mysql # not compatible
query II rowsort label-1845
SELECT + - COUNT ( * ) + + COUNT ( * ) AS col1, 59
----
0
59

query I rowsort
SELECT ALL - 25 * - 3 AS col1
----
75

query I rowsort
SELECT - + 61 + 70 + 37
----
46

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

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

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

query I rowsort
SELECT - ( - - 71 )
----
-71

query I rowsort
SELECT + 36 * - + 16 AS col2
----
-576

onlyif mysql # DIV for integer division: 
query I rowsort label-1852
SELECT - ( - 34 ) + - 8 DIV NULLIF ( - + 2, + 84 ) * + 73 + - + 47 col2
----
279

skipif mysql # not compatible
query I rowsort label-1852
SELECT - ( - 34 ) + - 8 / NULLIF ( - + 2, + 84 ) * + 73 + - + 47 col2
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT ALL + 83 * + SUM( DISTINCT 84 )
----
6972

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL + 83 * + SUM ( DISTINCT 84 )
----
6972

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1855
SELECT ALL 56 DIV - 78 * + ( + 67 ) - + 76 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL 56 / - 78 * + ( + 67 ) - + 76 AS col2
----
-76

query I rowsort
SELECT - 6 * 78
----
-468

query I rowsort
SELECT ALL + COALESCE ( 11, - - NULLIF ( - 69, - 53 * 73 ) + ( - 53 ), + - 12 )
----
11

query I rowsort
SELECT DISTINCT - 30 * - ( - 28 ) AS col2
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT ALL MAX( + + 61 ) / + 65 + + 22 - 40 + 93 + - ( + COALESCE ( - 41, - 96 + - 69 * + - 31 * + AVG ( ALL 24 ), + - 45 ) ) * + COUNT( * ) * 83 * CASE ( - COUNT( * ) ) WHEN + 97 + 31 THEN - 83 * - MAX( ALL + - 86 ) - - - 4 END * - - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL MAX ( + + 61 ) / + 65 + + 22 - 40 + 93 + - ( + COALESCE ( - 41, - 96 + - 69 * + - 31 * + AVG ( ALL 24 ), + - 45 ) ) * + COUNT ( * ) * 83 * CASE ( - COUNT ( * ) ) WHEN + 97 + 31 THEN - 83 * - MAX ( ALL + - 86 ) - - - 4 END * - - 75
----
NULL

query I rowsort
SELECT - 76 * - - 38 AS col0
----
-2888

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT NULLIF ( 99, 42 ) * + - 70 + - + SUM( + + 30 )
----
-6960

skipif mysql # not compatible
query I rowsort label-1861
SELECT NULLIF ( 99, 42 ) * + - 70 + - + SUM ( + + 30 )
----
-6960

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1864
SELECT ALL + COALESCE ( + COALESCE ( + 24, + 26 * NULLIF ( + + 14, + COUNT( * ) ), ( - 50 ) + + 10 + 88 DIV - 69 * + CAST( NULL AS SIGNED ) ), + + CASE - COUNT( + 45 ) WHEN CASE - 4 WHEN + MAX( DISTINCT + 4 ) THEN - NULLIF ( + 43, + ( - 62 ) + + 52 ) ELSE NULL END THEN NULL WHEN SUM( 31 ) THEN - 50 END * - - 0 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL + COALESCE ( + COALESCE ( + 24, + 26 * NULLIF ( + + 14, + COUNT ( * ) ), ( - 50 ) + + 10 + 88 / - 69 * + CAST ( NULL AS INTEGER ) ), + + CASE - COUNT ( + 45 ) WHEN CASE - 4 WHEN + MAX ( DISTINCT + 4 ) THEN - NULLIF ( + 43, + ( - 62 ) + + 52 ) ELSE NULL END THEN NULL WHEN SUM ( 31 ) THEN - 50 END * - - 0 ) AS col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1865
SELECT + COUNT( * ) * + 5 DIV + 13 + - 59 * + 59 + 34 AS col1
----
-3447

skipif mysql # not compatible
query I rowsort label-1865
SELECT + COUNT ( * ) * + 5 / + 13 + - 59 * + 59 + 34 AS col1
----
-3447

onlyif mysql # DIV for integer division: 
query I rowsort label-1866
SELECT - 29 DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-1866
SELECT - 29 / - 40
----
0

query I rowsort
SELECT ALL - 21 * 8
----
-168

query I rowsort
SELECT - 40 * + + 68 col0
----
-2720

query I rowsort
SELECT + 46 * 17
----
782

query I rowsort
SELECT - ( + 24 ) * 79
----
-1896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1871
SELECT ALL + CAST( - MAX( ALL + 80 ) AS SIGNED ), 72 AS col0
----
-80
72

skipif mysql # not compatible
query II rowsort label-1871
SELECT ALL + CAST ( - MAX ( ALL + 80 ) AS INTEGER ), 72 AS col0
----
-80
72

query I rowsort
SELECT ALL - 22 * + 69 AS col0
----
-1518

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT ALL 1 * 99 + - 67 + - - CASE - 28 WHEN CASE - ( - + COUNT( * ) ) WHEN 86 THEN NULL WHEN + 84 THEN NULL ELSE + + 96 END THEN 15 WHEN + - ( + COALESCE ( - 97, - COALESCE ( 70, 41 * ( 92 ) - - 96 + + 26 + MIN( DISTINCT - + ( - 19 ) ) - + 61 * 51 + 27, - COUNT( * ) * - 47 ) ) ) THEN 36 WHEN - ( 29 ) THEN 54 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL 1 * 99 + - 67 + - - CASE - 28 WHEN CASE - ( - + COUNT ( * ) ) WHEN 86 THEN NULL WHEN + 84 THEN NULL ELSE + + 96 END THEN 15 WHEN + - ( + COALESCE ( - 97, - COALESCE ( 70, 41 * ( 92 ) - - 96 + + 26 + MIN ( DISTINCT - + ( - 19 ) ) - + 61 * 51 + 27, - COUNT ( * ) * - 47 ) ) ) THEN 36 WHEN - ( 29 ) THEN 54 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 32
----
32

query I rowsort
SELECT + + 90
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT - 24 * MAX( - + 81 )
----
1944

skipif mysql # not compatible
query I rowsort label-1876
SELECT - 24 * MAX ( - + 81 )
----
1944

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

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

query I rowsort
SELECT ALL + 46 + + + 29 + + 9
----
84

query I rowsort
SELECT + 60 * 79
----
4740

query I rowsort
SELECT ALL 0 * + 78
----
0

query I rowsort
SELECT DISTINCT - - 84 + ( + 95 )
----
179

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

skipif mysql # not compatible
query I rowsort label-1882
SELECT - MAX ( ALL - 36 )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1883
SELECT 51 DIV + + NULLIF ( ( 65 ), - 63 * SUM( ALL 10 ) + COUNT( * ) * - - 2 + - 33 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1883
SELECT 51 / + + NULLIF ( ( 65 ), - 63 * SUM ( ALL 10 ) + COUNT ( * ) * - - 2 + - 33 ) col0
----
0

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

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

query I rowsort
SELECT - ( - + 11 ) - + 53 AS col2
----
-42

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

skipif mysql # not compatible
query I rowsort label-1887
SELECT ( MIN ( + - 69 ) )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-1888
SELECT 30 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-1888
SELECT 30 / - 67
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1889
SELECT + COUNT( * ) DIV ( + SUM( ALL 48 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1889
SELECT + COUNT ( * ) / ( + SUM ( ALL 48 ) ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1890
SELECT DISTINCT 66 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT 66 / 77
----
0

query II rowsort
SELECT ALL 18 * - 37, + 11 AS col2
----
-666
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT MAX( ALL + ( + 55 ) ) + - COUNT( * ) * - 66
----
121

skipif mysql # not compatible
query I rowsort label-1892
SELECT MAX ( ALL + ( + 55 ) ) + - COUNT ( * ) * - 66
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1893
SELECT DISTINCT NULLIF ( - 0, - 77 * 36 + + COUNT( ALL + 33 ) ) / + - 30 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT NULLIF ( - 0, - 77 * 36 + + COUNT ( ALL + 33 ) ) / + - 30 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT ALL - MAX( - 96 ) * - - 85 AS col2
----
8160

skipif mysql # not compatible
query I rowsort label-1894
SELECT ALL - MAX ( - 96 ) * - - 85 AS col2
----
8160

query I rowsort
SELECT DISTINCT + 98 * + - 80
----
-7840

query II rowsort
SELECT + 56 AS col0, 80 AS col2
----
56
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1897
SELECT ALL - 9 AS col2, - SUM( ALL - 64 ) * + + 2 * + 8 + 18 - - COUNT( * ) * COUNT( * ) + + + 70 + + + 65 * COUNT( * ) + NULLIF ( - 34, 89 ) - + 4 / - - ( + 63 ) - - - CAST( NULL AS SIGNED ) * - - 29
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-1897
SELECT ALL - 9 AS col2, - SUM ( ALL - 64 ) * + + 2 * + 8 + 18 - - COUNT ( * ) * COUNT ( * ) + + + 70 + + + 65 * COUNT ( * ) + NULLIF ( - 34, 89 ) - + 4 / - - ( + 63 ) - - - CAST ( NULL AS INTEGER ) * - - 29
----
-9
NULL

query II rowsort
SELECT ALL 58 * + + NULLIF ( 45, + 14 ) AS col1, 17
----
2610
17

query II rowsort
SELECT 77, 50 AS col1
----
77
50

query I rowsort
SELECT 96 + - 48 * + + ( - + 70 ) * 8
----
26976

query I rowsort
SELECT 80 * COALESCE ( + 16, + 31 * - + 22 * 99 + + 90 ) AS col1
----
1280

query I rowsort
SELECT ALL 23 * - 42 * - 71 * - 91 AS col1
----
-6241326

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT ALL - CASE - 20 WHEN + 59 THEN 31 * - + 29 ELSE NULL END / 32 * - COUNT( * ) * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL - CASE - 20 WHEN + 59 THEN 31 * - + 29 ELSE NULL END / 32 * - COUNT ( * ) * 76
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL - 85 + COUNT ( ALL 82 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT ( + 97 ) - 23 + COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-1905
SELECT ( + 97 ) - 23 + COUNT ( * ) AS col0
----
75

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1907
SELECT ALL - 41 + COUNT( + 5 ) + + 82 * + 11 + - 69 AS col0, 51 + CASE - 45 WHEN 12 THEN - ( - COUNT( + 5 ) ) WHEN - - 46 / + 6 / COUNT( * ) + + + 16 + - 56 + 25 THEN + + 87 WHEN - - ( - SUM( ALL + - 45 ) ) * - + 75 THEN NULL END
----
793
NULL

skipif mysql # not compatible
query II rowsort label-1907
SELECT ALL - 41 + COUNT ( + 5 ) + + 82 * + 11 + - 69 AS col0, 51 + CASE - 45 WHEN 12 THEN - ( - COUNT ( + 5 ) ) WHEN - - 46 / + 6 / COUNT ( * ) + + + 16 + - 56 + 25 THEN + + 87 WHEN - - ( - SUM ( ALL + - 45 ) ) * - + 75 THEN NULL END
----
793
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1908
SELECT + 9 DIV 44 col0
----
0

skipif mysql # not compatible
query I rowsort label-1908
SELECT + 9 / 44 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT COUNT( * ) * - - 58 * + - 15 + + - 10 + - - 61 AS col1
----
-819

skipif mysql # not compatible
query I rowsort label-1909
SELECT COUNT ( * ) * - - 58 * + - 15 + + - 10 + - - 61 AS col1
----
-819

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

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

query II rowsort
SELECT 94 col1, - 45
----
94
-45

query I rowsort
SELECT - 31 - + ( + 38 )
----
-69

query I rowsort
SELECT ALL + 80 * - 89 * + 41 - - - 71 * + 51
----
-295541

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT - MAX( ALL ( + 33 ) ) * + + 12 - + + 7 AS col1
----
-403

skipif mysql # not compatible
query I rowsort label-1914
SELECT - MAX ( ALL ( + 33 ) ) * + + 12 - + + 7 AS col1
----
-403

query II rowsort
SELECT DISTINCT 89, 1 * + - 56 AS col0
----
89
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1916
SELECT ALL NULLIF ( + 28, + + 44 ) DIV + SUM( DISTINCT - + 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL NULLIF ( + 28, + + 44 ) / + SUM ( DISTINCT - + 24 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT ALL + 9 + - 84 DIV + 78
----
8

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL + 9 + - 84 / + 78
----
8

query II rowsort
SELECT DISTINCT - 94 col2, + CASE - + 38 WHEN + 0 THEN NULL WHEN - 96 THEN NULL ELSE + 77 END + + - 79 col2
----
-94
-2

query I rowsort
SELECT + 25 + - 26 * + 9
----
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT COUNT( + 35 ) - + 41
----
-40

skipif mysql # not compatible
query I rowsort label-1920
SELECT COUNT ( + 35 ) - + 41
----
-40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT + 8 - + COUNT( + + 80 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1922
SELECT + 8 - + COUNT ( + + 80 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT COUNT( * ) + + 33 * - 32
----
-1055

skipif mysql # not compatible
query I rowsort label-1923
SELECT COUNT ( * ) + + 33 * - 32
----
-1055

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT ALL 91 - - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-1924
SELECT ALL 91 - - COUNT ( * )
----
92

query I rowsort
SELECT 76 * + - 76 AS col0
----
-5776

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

query I rowsort
SELECT ALL 77 * 36
----
2772

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1928
SELECT 64 + + - MIN( DISTINCT 71 ) DIV + 21
----
61

skipif mysql # not compatible
query I rowsort label-1928
SELECT 64 + + - MIN ( DISTINCT 71 ) / + 21
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT DISTINCT 24 * - COUNT( * ) * 14 * 57
----
-19152

skipif mysql # not compatible
query I rowsort label-1929
SELECT DISTINCT 24 * - COUNT ( * ) * 14 * 57
----
-19152

query I rowsort
SELECT ALL 4
----
4

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT DISTINCT COUNT( * ) * + + 85
----
85

skipif mysql # not compatible
query I rowsort label-1935
SELECT DISTINCT COUNT ( * ) * + + 85
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1936
SELECT ALL - 4 * + CAST( - 85 AS SIGNED ) + + 89 * 86 AS col0, + COUNT( * ) AS col2
----
7994
1

skipif mysql # not compatible
query II rowsort label-1936
SELECT ALL - 4 * + CAST ( - 85 AS INTEGER ) + + 89 * 86 AS col0, + COUNT ( * ) AS col2
----
7994
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1937
SELECT 86 DIV - - 98 + - - 87 * - 84
----
-7308

skipif mysql # not compatible
query I rowsort label-1937
SELECT 86 / - - 98 + - - 87 * - 84
----
-7308

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT ALL 72 * 40 + - COUNT( - 72 )
----
2879

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL 72 * 40 + - COUNT ( - 72 )
----
2879

onlyif mysql # DIV for integer division: 
query I rowsort label-1939
SELECT ALL 75 DIV - ( 41 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL 75 / - ( 41 ) AS col1
----
-1

query I rowsort
SELECT + 33 col1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-1941
SELECT MAX( + 93 ) AS col0, + 49 * - COUNT( * ) AS col2
----
93
-49

skipif mysql # not compatible
query II rowsort label-1941
SELECT MAX ( + 93 ) AS col0, + 49 * - COUNT ( * ) AS col2
----
93
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-1942
SELECT ( 42 ) * 78 + + 52 - - - 56 DIV - 80
----
3328

skipif mysql # not compatible
query I rowsort label-1942
SELECT ( 42 ) * 78 + + 52 - - - 56 / - 80
----
3328

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

skipif mysql # not compatible
query I rowsort label-1943
SELECT - COUNT ( * ) - + 93 AS col0
----
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1944
SELECT - COUNT( * ) * - CAST( - CASE + 4 WHEN + ( - 74 ) THEN COUNT( * ) END AS DECIMAL ) * + 48 + + - 46 / - COUNT( * ) / - COUNT( * ) - 84 - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT - COUNT ( * ) * - CAST ( - CASE + 4 WHEN + ( - 74 ) THEN COUNT ( * ) END AS REAL ) * + 48 + + - 46 / - COUNT ( * ) / - COUNT ( * ) - 84 - 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1945
SELECT ALL + 41 * - COUNT( DISTINCT 25 ) + - - 97 + 20, CAST( - - 55 AS SIGNED ) AS col1
----
76
55

skipif mysql # not compatible
query II rowsort label-1945
SELECT ALL + 41 * - COUNT ( DISTINCT 25 ) + - - 97 + 20, CAST ( - - 55 AS INTEGER ) AS col1
----
76
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT DISTINCT + + CASE - 10 WHEN + 71 THEN NULL ELSE 44 END * - 0 * + MAX( DISTINCT + 39 ) + + - 56 + + + 85 * 83 AS col0
----
6999

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT + + CASE - 10 WHEN + 71 THEN NULL ELSE 44 END * - 0 * + MAX ( DISTINCT + 39 ) + + - 56 + + + 85 * 83 AS col0
----
6999

query I rowsort
SELECT + 33 * - 31
----
-1023

query II rowsort
SELECT ALL + - ( + 54 ) AS col1, - 72
----
-54
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT ALL + 18 - + SUM( DISTINCT + 51 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL + 18 - + SUM ( DISTINCT + 51 ) AS col0
----
-33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT CASE + 36 WHEN + + ( - 17 ) THEN 44 * - 30 WHEN + COALESCE ( - 18, + 92 ) / COUNT( * ) THEN - - 98 + ( + COUNT( * ) ) WHEN COUNT( * ) + 38 + + 53 + + 97 * 26 THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1952
SELECT CASE + 36 WHEN + + ( - 17 ) THEN 44 * - 30 WHEN + COALESCE ( - 18, + 92 ) / COUNT ( * ) THEN - - 98 + ( + COUNT ( * ) ) WHEN COUNT ( * ) + 38 + + 53 + + 97 * 26 THEN NULL ELSE NULL END col1
----
NULL

query I rowsort
SELECT ALL + + ( + COALESCE ( + 4, 73 + + 18, 44 ) )
----
4

query I rowsort
SELECT - 23 col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT DISTINCT + - 17 * - ( - MIN( ALL + 16 ) )
----
-272

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT + - 17 * - ( - MIN ( ALL + 16 ) )
----
-272

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

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

query I rowsort
SELECT - 36 * 99 * + 94 AS col2
----
-335016

onlyif mysql # DIV for integer division: 
query I rowsort label-1958
SELECT - 45 DIV + 49 * - 58 * - 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1958
SELECT - 45 / + 49 * - 58 * - 31 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1959
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - 67 AS col1, - ( - 46 ) - CAST( + 3 AS SIGNED ) + - - 17 AS col0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-1959
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - 67 AS col1, - ( - 46 ) - CAST ( + 3 AS INTEGER ) + - - 17 AS col0
----
NULL
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT ALL NULLIF ( - 25, COUNT( * ) )
----
-25

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL NULLIF ( - 25, COUNT ( * ) )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1961
SELECT DISTINCT NULLIF ( + CAST( 61 AS SIGNED ), + + ( - - MAX( + 50 ) ) + - - 96 )
----
61

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT NULLIF ( + CAST ( 61 AS INTEGER ), + + ( - - MAX ( + 50 ) ) + - - 96 )
----
61

query I rowsort
SELECT DISTINCT - 71 * - NULLIF ( - - 75, NULLIF ( - 42, - + 91 ) * - - 62 ) * 38 AS col1
----
202350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1963
SELECT - COUNT( - - 28 ) * + CAST( 5 AS SIGNED ) * + + 60 + + COALESCE ( + CAST( NULL AS DECIMAL ), + 89 ) + - 62 * - 18 * - CASE + - 1 WHEN - 99 * + - 55 THEN COUNT( * ) * - 74 + - 35 * + - CAST( MIN( DISTINCT 90 ) AS DECIMAL ) END + - + 44 / - CAST( NULL AS SIGNED ) * - - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1963
SELECT - COUNT ( - - 28 ) * + CAST ( 5 AS INTEGER ) * + + 60 + + COALESCE ( + CAST ( NULL AS REAL ), + 89 ) + - 62 * - 18 * - CASE + - 1 WHEN - 99 * + - 55 THEN COUNT ( * ) * - 74 + - 35 * + - CAST ( MIN ( DISTINCT 90 ) AS REAL ) END + - + 44 / - CAST ( NULL AS INTEGER ) * - - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT ALL NULLIF ( + ( 58 ), + 37 * + + COUNT( * ) * - SUM( + + ( - 39 ) ) + - + 55 )
----
58

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL NULLIF ( + ( 58 ), + 37 * + + COUNT ( * ) * - SUM ( + + ( - 39 ) ) + - + 55 )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1965
SELECT 45, - 92 * - 50 + COUNT( * ) + - + COUNT( * ) AS col1
----
45
4600

skipif mysql # not compatible
query II rowsort label-1965
SELECT 45, - 92 * - 50 + COUNT ( * ) + - + COUNT ( * ) AS col1
----
45
4600

query II rowsort
SELECT - 3 AS col0, - 28 AS col1
----
-3
-28

query I rowsort
SELECT DISTINCT NULLIF ( + 27, 63 * 67 ) col0
----
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT - COUNT( * ) * - - MAX( 21 ) * 99
----
-2079

skipif mysql # not compatible
query I rowsort label-1969
SELECT - COUNT ( * ) * - - MAX ( 21 ) * 99
----
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT DISTINCT + COUNT( * ) * 48 col1
----
48

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT + COUNT ( * ) * 48 col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1971
SELECT ALL 29 + + COUNT( * ) * CAST( + 63 AS SIGNED ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL 29 + + COUNT ( * ) * CAST ( + 63 AS INTEGER ) AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1972
SELECT DISTINCT - 81 + 95 + 8 + - 14 + - CASE + - 85 WHEN - + 35 THEN COUNT( * ) WHEN + + SUM( DISTINCT 64 ) * - 15 + - 57 - ( 40 ) / - + CASE - COUNT( * ) WHEN 88 THEN NULL WHEN 54 * ( CASE - - 44 WHEN + 31 THEN + - ( 37 ) * - + 55 ELSE NULL END ) * 96 THEN NULL ELSE - + COALESCE ( ( - ( - MIN( ALL - - 32 ) ) ), - 36, - 26 ) END + - 51 / + 46 THEN - 35 WHEN - ( + SUM( - 82 ) ) * COUNT( ( 72 ) ) THEN NULL END / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1972
SELECT DISTINCT - 81 + 95 + 8 + - 14 + - CASE + - 85 WHEN - + 35 THEN COUNT ( * ) WHEN + + SUM ( DISTINCT 64 ) * - 15 + - 57 - ( 40 ) / - + CASE - COUNT ( * ) WHEN 88 THEN NULL WHEN 54 * ( CASE - - 44 WHEN + 31 THEN + - ( 37 ) * - + 55 ELSE NULL END ) * 96 THEN NULL ELSE - + COALESCE ( ( - ( - MIN ( ALL - - 32 ) ) ), - 36, - 26 ) END + - 51 / + 46 THEN - 35 WHEN - ( + SUM ( - 82 ) ) * COUNT ( ( 72 ) ) THEN NULL END / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1973
SELECT ALL COUNT( * ) + + 6 DIV - ( + 92 ), + 32 AS col1
----
1
32

skipif mysql # not compatible
query II rowsort label-1973
SELECT ALL COUNT ( * ) + + 6 / - ( + 92 ), + 32 AS col1
----
1
32

query I rowsort
SELECT - ( - 31 ) * + 42 col1
----
1302

query II rowsort
SELECT - 70 - NULLIF ( + 74, - 44 ) * 94 * - 92 AS col1, 50 AS col2
----
639882
50

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

query I rowsort
SELECT DISTINCT + 8 * 91
----
728

onlyif mysql # DIV for integer division: 
query I rowsort label-1978
SELECT DISTINCT + 43 DIV 55 + 94
----
94

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT + 43 / 55 + 94
----
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT + CASE - MIN( DISTINCT COALESCE ( + 95, + - 17, + + 0 ) ) WHEN + COUNT( + 35 ) / + + 2 THEN 95 + + 81 + 87 + + 97 + - 11 + - 26 - 54 * 37 / + 97 * ( - 95 ) * 50 * + 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1980
SELECT + CASE - MIN ( DISTINCT COALESCE ( + 95, + - 17, + + 0 ) ) WHEN + COUNT ( + 35 ) / + + 2 THEN 95 + + 81 + 87 + + 97 + - 11 + - 26 - 54 * 37 / + 97 * ( - 95 ) * 50 * + 5 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1981
SELECT ALL + AVG ( DISTINCT - + 86 ) * + + 39 * + + CAST( + - 7 AS DECIMAL ) - + + 21 * 58 / - CAST( NULL AS SIGNED ) + + 75 AS col2, - CAST( - + 2 AS SIGNED ) AS col2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-1981
SELECT ALL + AVG ( DISTINCT - + 86 ) * + + 39 * + + CAST ( + - 7 AS REAL ) - + + 21 * 58 / - CAST ( NULL AS INTEGER ) + + 75 AS col2, - CAST ( - + 2 AS INTEGER ) AS col2
----
NULL
2

query I rowsort
SELECT - ( + 99 ) * + 48
----
-4752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1983
SELECT COUNT( * ) * - + 58 + - + 39 + + 95 DIV - 55 col2
----
-98

skipif mysql # not compatible
query I rowsort label-1983
SELECT COUNT ( * ) * - + 58 + - + 39 + + 95 / - 55 col2
----
-98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT + 57 + + 84 + COUNT( DISTINCT + - ( 70 ) ) col0
----
142

skipif mysql # not compatible
query I rowsort label-1985
SELECT + 57 + + 84 + COUNT ( DISTINCT + - ( 70 ) ) col0
----
142

query I rowsort
SELECT DISTINCT + ( - 18 ) * - 5 + - + 46 AS col2
----
44

query II rowsort
SELECT + 94 AS col0, - ( + - COALESCE ( 45, 53 ) )
----
94
45

query I rowsort
SELECT - 2 * 91 + + 13 * - + 8
----
-286

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

skipif mysql # not compatible
query I rowsort label-1989
SELECT DISTINCT + 91 / - COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT DISTINCT - - NULLIF ( - 12, - MAX( DISTINCT - - 14 ) / - 15 + 42 ) * + CASE WHEN NOT 9 NOT IN ( + NULLIF ( + 63, - + 7 ) ) THEN - 92 + + 51 ELSE - 32 END - + 57 * + 69
----
-3549

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT - - NULLIF ( - 12, - MAX ( DISTINCT - - 14 ) / - 15 + 42 ) * + CASE WHEN NOT 9 NOT IN ( + NULLIF ( + 63, - + 7 ) ) THEN - 92 + + 51 ELSE - 32 END - + 57 * + 69
----
-3549

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT DISTINCT + COUNT( + + 0 ) * 64 - + 31
----
33

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT + COUNT ( + + 0 ) * 64 - + 31
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1992
SELECT DISTINCT ( + ( 63 ) ) DIV + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1992
SELECT DISTINCT ( + ( 63 ) ) / + 70 AS col0
----
0

query I rowsort
SELECT ALL COALESCE ( + 88, - 47 ) * + NULLIF ( + + 41, + + 46 ) + - 85 - + 14 AS col0
----
3509

query I rowsort
SELECT + - 3 * 81 col1
----
-243

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

skipif mysql # not compatible
query II rowsort label-1995
SELECT + + 34 AS col0, COUNT ( * )
----
34
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1996
SELECT + MAX( + 57 ) * - 90 * SUM( DISTINCT + 16 ) * + 47, + 40 + - - 48 AS col1
----
-3857760
88

skipif mysql # not compatible
query II rowsort label-1996
SELECT + MAX ( + 57 ) * - 90 * SUM ( DISTINCT + 16 ) * + 47, + 40 + - - 48 AS col1
----
-3857760
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT ALL 14 * + - 9 - + - MIN( DISTINCT + + 3 ) * + COUNT( * )
----
-123

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL 14 * + - 9 - + - MIN ( DISTINCT + + 3 ) * + COUNT ( * )
----
-123

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1998
SELECT - 18 * + - ( 90 ) - + - 20 * COUNT( * ) DIV - COALESCE ( 29, - 81 + + 12 ) col0, COUNT( * ) AS col1
----
1620
1

skipif mysql # not compatible
query II rowsort label-1998
SELECT - 18 * + - ( 90 ) - + - 20 * COUNT ( * ) / - COALESCE ( 29, - 81 + + 12 ) col0, COUNT ( * ) AS col1
----
1620
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1999
SELECT ALL + 16 AS col1, - CASE - 83 WHEN - - 85 THEN NULL WHEN 13 THEN - 18 * CAST( NULL AS SIGNED ) + - COALESCE ( - ( - COALESCE ( + 86, - + 30 * 58 + 33 ) ), + 94, 32 ) + - - 44 * 49 - 73 END
----
16
NULL

skipif mysql # not compatible
query II rowsort label-1999
SELECT ALL + 16 AS col1, - CASE - 83 WHEN - - 85 THEN NULL WHEN 13 THEN - 18 * CAST ( NULL AS INTEGER ) + - COALESCE ( - ( - COALESCE ( + 86, - + 30 * 58 + 33 ) ), + 94, 32 ) + - - 44 * 49 - 73 END
----
16
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT + - 86 * - SUM( ALL 53 ) - 15 AS col2
----
4543

skipif mysql # not compatible
query I rowsort label-2000
SELECT + - 86 * - SUM ( ALL 53 ) - 15 AS col2
----
4543

query I rowsort
SELECT ALL - 46 * - 87 AS col2
----
4002

onlyif mysql # aggregate syntax: 
query II rowsort label-2002
SELECT ALL + 93 AS col1, - CASE + + 18 WHEN + - COUNT( * ) + 15 * + ( + 27 ) THEN NULL WHEN - + 11 THEN - - ( 30 ) END * 4 AS col1
----
93
NULL

skipif mysql # not compatible
query II rowsort label-2002
SELECT ALL + 93 AS col1, - CASE + + 18 WHEN + - COUNT ( * ) + 15 * + ( + 27 ) THEN NULL WHEN - + 11 THEN - - ( 30 ) END * 4 AS col1
----
93
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2003
SELECT - ( - 77 ) * CAST( NULL AS SIGNED ) * - 10 + - COUNT( * ) + + - ( ( - COALESCE ( 39, - ( + 14 ), 38 ) ) ) + + + MIN( DISTINCT + 96 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2003
SELECT - ( - 77 ) * CAST ( NULL AS INTEGER ) * - 10 + - COUNT ( * ) + + - ( ( - COALESCE ( 39, - ( + 14 ), 38 ) ) ) + + + MIN ( DISTINCT + 96 ) AS col1
----
NULL

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

query I rowsort
SELECT ALL 9 * - - 34 + - 81
----
225

query I rowsort
SELECT + ( - ( 79 ) ) + + + 52 * - - 83 AS col2
----
4237

query II rowsort
SELECT ALL - 94 * + 0 col0, 75 * - ( 8 ) AS col2
----
0
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT + COUNT( * ) + - 82 + - + 64
----
-145

skipif mysql # not compatible
query I rowsort label-2008
SELECT + COUNT ( * ) + - 82 + - + 64
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT - 94 + + 15 + - + COUNT( * ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-2009
SELECT - 94 + + 15 + - + COUNT ( * ) AS col1
----
-80

query I rowsort
SELECT ALL 0 * + + 30
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2011
SELECT - ( - + ( + COUNT( * ) ) ) + + - COUNT( * ), CASE 0 WHEN 11 / 1 * + 62 + ( - CAST( - 49 AS SIGNED ) ) THEN + COUNT( * ) - + 18 + NULLIF ( - - COALESCE ( - + 41, 70, - + 49 - 5, + 64 * - 40 - + 62 ), 20 ) WHEN + 83 * - + 8 THEN NULL END col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2011
SELECT - ( - + ( + COUNT ( * ) ) ) + + - COUNT ( * ), CASE 0 WHEN 11 / 1 * + 62 + ( - CAST ( - 49 AS INTEGER ) ) THEN + COUNT ( * ) - + 18 + NULLIF ( - - COALESCE ( - + 41, 70, - + 49 - 5, + 64 * - 40 - + 62 ), 20 ) WHEN + 83 * - + 8 THEN NULL END col1
----
0
NULL

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

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

query I rowsort
SELECT + 58 * 2
----
116

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT - MAX( 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-2015
SELECT - MAX ( 68 )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2016
SELECT - CAST( 17 AS SIGNED ) + CASE WHEN NOT ( COUNT( * ) ) IS NULL THEN - 45 * + COUNT( * ) END AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-2016
SELECT - CAST ( 17 AS INTEGER ) + CASE WHEN NOT ( COUNT ( * ) ) IS NULL THEN - 45 * + COUNT ( * ) END AS col1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2017
SELECT - 57 * CASE 94 WHEN + 89 + - 2 + - 91 THEN 70 * + + CAST( NULL AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT - 57 * CASE 94 WHEN + 89 + - 2 + - 91 THEN 70 * + + CAST ( NULL AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT - 45 * - - 57 + + CASE COUNT( * ) WHEN 36 / + 11 * + 96 * - - 22 + + + 8 - - 56 THEN - 75 ELSE + 48 END * - 29 AS col0
----
-3957

skipif mysql # not compatible
query I rowsort label-2018
SELECT - 45 * - - 57 + + CASE COUNT ( * ) WHEN 36 / + 11 * + 96 * - - 22 + + + 8 - - 56 THEN - 75 ELSE + 48 END * - 29 AS col0
----
-3957

onlyif mysql # DIV for integer division: 
query I rowsort label-2019
SELECT + 71 DIV - - 96 + + 62 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-2019
SELECT + 71 / - - 96 + + 62 AS col1
----
62

query I rowsort
SELECT 95 * - 57 col0
----
-5415

query I rowsort
SELECT ALL 55 * - 61 * 22
----
-73810

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT ALL - ( + 0 ) * CASE - - 97 WHEN - - 91 - + MIN( DISTINCT - 68 ) THEN - 94 WHEN + 30 THEN - + SUM( DISTINCT - ( - 59 ) ) - NULLIF ( - - 47, + 40 + - 0 * + + 33 * 56 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL - ( + 0 ) * CASE - - 97 WHEN - - 91 - + MIN ( DISTINCT - 68 ) THEN - 94 WHEN + 30 THEN - + SUM ( DISTINCT - ( - 59 ) ) - NULLIF ( - - 47, + 40 + - 0 * + + 33 * 56 ) END
----
NULL

query I rowsort
SELECT - ( - 23 ) * - 91 * + - 35 + 63 * + 99 + + ( + 54 )
----
79546

query I rowsort
SELECT - + 25 * 99 + + + 93 col1
----
-2382

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT 2 - + + COUNT( - - 93 )
----
1

skipif mysql # not compatible
query I rowsort label-2025
SELECT 2 - + + COUNT ( - - 93 )
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2027
SELECT + 91 + - 36 + - CASE + 24 WHEN 40 + - 13 + 56 THEN + NULLIF ( 4, + - 26 ) * 40 * + + ( + CASE - COUNT( * ) WHEN + 31 THEN 70 * - + 74 * + - AVG ( DISTINCT - 98 ) WHEN - + 27 THEN - ( - - 36 ) WHEN + CAST( NULL AS SIGNED ) * 16 THEN - 90 END ) + + 52 + ( + CAST( - + 64 AS SIGNED ) ) * COUNT( * ) END + - MAX( 45 ) + 2 / 21 / + MIN( NULLIF ( + 87, + 54 ) ) * + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2027
SELECT + 91 + - 36 + - CASE + 24 WHEN 40 + - 13 + 56 THEN + NULLIF ( 4, + - 26 ) * 40 * + + ( + CASE - COUNT ( * ) WHEN + 31 THEN 70 * - + 74 * + - AVG ( DISTINCT - 98 ) WHEN - + 27 THEN - ( - - 36 ) WHEN + CAST ( NULL AS INTEGER ) * 16 THEN - 90 END ) + + 52 + ( + CAST ( - + 64 AS INTEGER ) ) * COUNT ( * ) END + - MAX ( 45 ) + 2 / 21 / + MIN ( NULLIF ( + 87, + 54 ) ) * + 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2028
SELECT - 83 * - ( COUNT( NULLIF ( 51, 56 ) ) ) - - 77 + - ( 66 ) DIV + 71 * + 41 + + - 70 * + NULLIF ( 2, 23 * + - 34 ) + + + 34 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-2028
SELECT - 83 * - ( COUNT ( NULLIF ( 51, 56 ) ) ) - - 77 + - ( 66 ) / + 71 * + 41 + + - 70 * + NULLIF ( 2, 23 * + - 34 ) + + + 34 AS col0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT + + ( + 74 ) DIV 44 + + 37 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2029
SELECT + + ( + 74 ) / 44 + + 37 AS col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2030
SELECT + COALESCE ( - COUNT( * ), - + SUM( ALL - + ( + 88 ) ) * - - 74 - - + 82 ) DIV 83 + + MAX( ALL - 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-2030
SELECT + COALESCE ( - COUNT ( * ), - + SUM ( ALL - + ( + 88 ) ) * - - 74 - - + 82 ) / 83 + + MAX ( ALL - 72 ) AS col0
----
-72

query I rowsort
SELECT ALL - 71 col2
----
-71

query I rowsort
SELECT ALL - 61 col0
----
-61

query II rowsort
SELECT 20 + + 11 AS col1, 24
----
31
24

query I rowsort
SELECT NULLIF ( + + 81, 59 ) AS col2
----
81

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2036
SELECT ALL 60 * CAST( - 91 AS SIGNED )
----
-5460

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL 60 * CAST ( - 91 AS INTEGER )
----
-5460

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT MAX( DISTINCT - 87 ) + + + 49
----
-38

skipif mysql # not compatible
query I rowsort label-2037
SELECT MAX ( DISTINCT - 87 ) + + + 49
----
-38

query I rowsort
SELECT ( + 8 ) * + 52 * - 67 AS col1
----
-27872

query I rowsort
SELECT - 73 * + - 69 + 32
----
5069

query II rowsort
SELECT DISTINCT 65 + 60 * - 70, + 59 AS col2
----
-4135
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT ALL MAX( ALL - 80 ) + - + ( - 28 )
----
-52

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL MAX ( ALL - 80 ) + - + ( - 28 )
----
-52

query I rowsort
SELECT - 53 col0
----
-53

query I rowsort
SELECT DISTINCT 59 * 67
----
3953

query I rowsort
SELECT ALL 10 col1
----
10

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

query I rowsort
SELECT 89 - 22
----
67

query I rowsort
SELECT 24 * 8
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT DISTINCT - ( ( + - 97 ) ) * + 60 + + 41 * - COUNT( * )
----
5779

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT - ( ( + - 97 ) ) * + 60 + + 41 * - COUNT ( * )
----
5779

onlyif mysql # DIV for integer division: 
query I rowsort label-2049
SELECT ALL 93 DIV + + 7 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL 93 / + + 7 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT COUNT( * ) + 34 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-2050
SELECT COUNT ( * ) + 34 AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2051
SELECT 17 - + 60 + + - COALESCE ( - COUNT( * ), + MAX( ALL - NULLIF ( - 99, CAST( NULL AS DECIMAL ) + 58 + 53 ) ) + + 10 + - - 47 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-2051
SELECT 17 - + 60 + + - COALESCE ( - COUNT ( * ), + MAX ( ALL - NULLIF ( - 99, CAST ( NULL AS REAL ) + 58 + 53 ) ) + + 10 + - - 47 ) AS col0
----
-42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT - COUNT( * ) - 66 * 84
----
-5545

skipif mysql # not compatible
query I rowsort label-2053
SELECT - COUNT ( * ) - 66 * 84
----
-5545

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2054
SELECT ALL + CASE - 84 WHEN - + 57 * - - 79 * + ( - ( + + 55 ) ) + NULLIF ( - + AVG ( + + 30 ), - 8 ) THEN + CAST( NULL AS SIGNED ) * - - 66 + - ( 81 ) + COUNT( * ) * - 58 * - - 51 WHEN - 65 + - 97 + - 64 * + + MAX( DISTINCT + 86 ) THEN NULL ELSE NULL END * 84 / - AVG ( DISTINCT - 69 ) + + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL + CASE - 84 WHEN - + 57 * - - 79 * + ( - ( + + 55 ) ) + NULLIF ( - + AVG ( + + 30 ), - 8 ) THEN + CAST ( NULL AS INTEGER ) * - - 66 + - ( 81 ) + COUNT ( * ) * - 58 * - - 51 WHEN - 65 + - 97 + - 64 * + + MAX ( DISTINCT + 86 ) THEN NULL ELSE NULL END * 84 / - AVG ( DISTINCT - 69 ) + + 43 AS col0
----
NULL

query I rowsort
SELECT 97 * + - 79 * - + 37
----
283531

query I rowsort
SELECT 40 * 43 + + 55 * 35 AS col0
----
3645

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2057
SELECT + 31 DIV 41 + + 14 + + COUNT( + + 81 ), - ( + 65 ) + - 64 + - 76 DIV + 34 + - + 22 DIV 90 + - 22 AS col0
----
15
-153

skipif mysql # not compatible
query II rowsort label-2057
SELECT + 31 / 41 + + 14 + + COUNT ( + + 81 ), - ( + 65 ) + - 64 + - 76 / + 34 + - + 22 / 90 + - 22 AS col0
----
15
-153

query II rowsort
SELECT - 91 AS col2, 2 AS col1
----
-91
2

query I rowsort
SELECT + COALESCE ( + - 55, - + 10 + 41 ) AS col0
----
-55

query I rowsort
SELECT + 75 col1
----
75

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

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

query I rowsort
SELECT DISTINCT - + 97 * + 80
----
-7760

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

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

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

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

query I rowsort
SELECT + - 89
----
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2068
SELECT + + ( - NULLIF ( ( 96 ), - CASE + 48 WHEN - NULLIF ( - 68, + CAST( NULL AS DECIMAL ) ) * - 26 + 28 THEN - + 98 WHEN 80 * - NULLIF ( + 42, + ( 80 ) ) THEN NULL ELSE NULL END ) ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-2068
SELECT + + ( - NULLIF ( ( 96 ), - CASE + 48 WHEN - NULLIF ( - 68, + CAST ( NULL AS REAL ) ) * - 26 + 28 THEN - + 98 WHEN 80 * - NULLIF ( + 42, + ( 80 ) ) THEN NULL ELSE NULL END ) ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT SUM( DISTINCT - 86 ) * 78 * 56
----
-375648

skipif mysql # not compatible
query I rowsort label-2069
SELECT SUM ( DISTINCT - 86 ) * 78 * 56
----
-375648

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT ALL - 63 * - 95 + + - 4 + COALESCE ( - COUNT( 41 ), + 59 ) AS col0
----
5980

skipif mysql # not compatible
query I rowsort label-2070
SELECT ALL - 63 * - 95 + + - 4 + COALESCE ( - COUNT ( 41 ), + 59 ) AS col0
----
5980

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT + 82 * + - 97 + COUNT( * ) + + 59 AS col0
----
-7894

skipif mysql # not compatible
query I rowsort label-2071
SELECT + 82 * + - 97 + COUNT ( * ) + + 59 AS col0
----
-7894

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT 30 * + MIN( DISTINCT - 46 ) - + 96
----
-1476

skipif mysql # not compatible
query I rowsort label-2072
SELECT 30 * + MIN ( DISTINCT - 46 ) - + 96
----
-1476

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT COUNT( * ) * + - COUNT( ALL - 69 ) * + 18 * - + 41 * + 69 - - 45 + 54 * - 24 * - 48
----
113175

skipif mysql # not compatible
query I rowsort label-2074
SELECT COUNT ( * ) * + - COUNT ( ALL - 69 ) * + 18 * - + 41 * + 69 - - 45 + 54 * - 24 * - 48
----
113175

query I rowsort
SELECT ALL - 4 + - 39 AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2076
SELECT CASE + CAST( 71 AS SIGNED ) WHEN + - 66 THEN + 68 ELSE NULL END * 85 - - 8 / 32 + - 87 * - - 66 + - ( AVG ( DISTINCT + 25 ) ) + + ( - COUNT( * ) ) * - CAST( + - 19 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2076
SELECT CASE + CAST ( 71 AS INTEGER ) WHEN + - 66 THEN + 68 ELSE NULL END * 85 - - 8 / 32 + - 87 * - - 66 + - ( AVG ( DISTINCT + 25 ) ) + + ( - COUNT ( * ) ) * - CAST ( + - 19 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT ALL COUNT( * ) * + 35 col0
----
35

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL COUNT ( * ) * + 35 col0
----
35

query I rowsort
SELECT 47 col2
----
47

query I rowsort
SELECT + 11 + 49 * 50
----
2461

query I rowsort
SELECT + 17 - 12
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL ( - COUNT( * ) ) - - 62 * - 30 * 22 AS col1
----
-40921

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL ( - COUNT ( * ) ) - - 62 * - 30 * 22 AS col1
----
-40921

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2082
SELECT + 81 + + 12 + + CAST( - + 53 AS SIGNED ) * + 5
----
-172

skipif mysql # not compatible
query I rowsort label-2082
SELECT + 81 + + 12 + + CAST ( - + 53 AS INTEGER ) * + 5
----
-172

query II rowsort
SELECT - 85 AS col0, 13 * + 91
----
-85
1183

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

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

query I rowsort
SELECT - + 41 + - 91
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-2086
SELECT + 73 DIV + NULLIF ( + 74, - 69 ) * + 11 + + + 54 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-2086
SELECT + 73 / + NULLIF ( + 74, - 69 ) * + 11 + + + 54 AS col2
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2087
SELECT ALL - 88 * 5 + + 41 + NULLIF ( 35, + + CASE + COUNT( * ) WHEN 97 THEN 99 + 87 WHEN - SUM( ALL + 14 ) * + 86 - + 65 THEN NULL END * - - 83 ) + + 64 AS col0, - 93 * + 18 DIV - COUNT( * ) + + 44 AS col0
----
-300
1718

skipif mysql # not compatible
query II rowsort label-2087
SELECT ALL - 88 * 5 + + 41 + NULLIF ( 35, + + CASE + COUNT ( * ) WHEN 97 THEN 99 + 87 WHEN - SUM ( ALL + 14 ) * + 86 - + 65 THEN NULL END * - - 83 ) + + 64 AS col0, - 93 * + 18 / - COUNT ( * ) + + 44 AS col0
----
-300
1718

onlyif mysql # DIV for integer division: 
query II rowsort label-2088
SELECT ALL + 91, 11 DIV 94 AS col2
----
91
0

skipif mysql # not compatible
query II rowsort label-2088
SELECT ALL + 91, 11 / 94 AS col2
----
91
0

query II rowsort
SELECT + - 34 AS col2, 19
----
-34
19

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

query I rowsort
SELECT ( ( - 20 ) ) * + - 12 + - + 4 AS col1
----
236

query II rowsort
SELECT + 20 AS col1, 76 * - 66
----
20
-5016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2093
SELECT DISTINCT - - CAST( - 61 AS SIGNED ) * 95 + + - 21
----
-5816

skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT - - CAST ( - 61 AS INTEGER ) * 95 + + - 21
----
-5816

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2095
SELECT - COUNT( * ) + 61 AS col1, 46 * - - 92 AS col2
----
60
4232

skipif mysql # not compatible
query II rowsort label-2095
SELECT - COUNT ( * ) + 61 AS col1, 46 * - - 92 AS col2
----
60
4232

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

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

query I rowsort
SELECT + 89 * + 73 + 17 col1
----
6514

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT - ( NULLIF ( - + 53, 43 - AVG ( DISTINCT 1 ) ) ) + 93 + + MAX( ALL + 25 ) * - + 32 * - - COUNT( * ) AS col1
----
-654

skipif mysql # not compatible
query I rowsort label-2098
SELECT - ( NULLIF ( - + 53, 43 - AVG ( DISTINCT 1 ) ) ) + 93 + + MAX ( ALL + 25 ) * - + 32 * - - COUNT ( * ) AS col1
----
-654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2099
SELECT CAST( NULL AS SIGNED ) * - CAST( + - 11 AS SIGNED ) / + - 38 + 20 * - + COUNT( * ) + - + 15 + + - 20 * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT CAST ( NULL AS INTEGER ) * - CAST ( + - 11 AS INTEGER ) / + - 38 + 20 * - + COUNT ( * ) + - + 15 + + - 20 * + 66
----
NULL

query I rowsort
SELECT ALL - 63 * + + 12
----
-756

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

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

query I rowsort
SELECT - 65 * - - 25 * - 28 col2
----
45500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2103
SELECT ALL + MAX( 98 ) * - CAST( NULL AS SIGNED ) AS col2, - COUNT( + 55 )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-2103
SELECT ALL + MAX ( 98 ) * - CAST ( NULL AS INTEGER ) AS col2, - COUNT ( + 55 )
----
NULL
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2104
SELECT - 41 + 17 AS col0, COUNT( + - 78 )
----
-24
1

skipif mysql # not compatible
query II rowsort label-2104
SELECT - 41 + 17 AS col0, COUNT ( + - 78 )
----
-24
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2105
SELECT ALL + 45 * + 52 * - - COUNT( * ) * - COUNT( * ) * - 85 * + COALESCE ( COALESCE ( 42, - 13 ), 16 ) col1, 80
----
8353800
80

skipif mysql # not compatible
query II rowsort label-2105
SELECT ALL + 45 * + 52 * - - COUNT ( * ) * - COUNT ( * ) * - 85 * + COALESCE ( COALESCE ( 42, - 13 ), 16 ) col1, 80
----
8353800
80

query II rowsort
SELECT DISTINCT ( - 72 ), + 61 col0
----
-72
61

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

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

query I rowsort
SELECT + 34 * + 52 AS col2
----
1768

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT - MAX( DISTINCT + ( - + 84 ) ) col1
----
84

skipif mysql # not compatible
query I rowsort label-2110
SELECT - MAX ( DISTINCT + ( - + 84 ) ) col1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2111
SELECT ALL ( + - 22 ) DIV ( - 84 ) + + 1 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL ( + - 22 ) / ( - 84 ) + + 1 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT ALL ( - COUNT( DISTINCT ( 66 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL ( - COUNT ( DISTINCT ( 66 ) ) ) AS col2
----
-1

query I rowsort
SELECT - NULLIF ( + 3, - 76 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT + COUNT( * ) * 4 * - 74 AS col1
----
-296

skipif mysql # not compatible
query I rowsort label-2114
SELECT + COUNT ( * ) * 4 * - 74 AS col1
----
-296

onlyif mysql # DIV for integer division: 
query I rowsort label-2115
SELECT - 45 - 16 DIV + ( + 44 )
----
-45

skipif mysql # not compatible
query I rowsort label-2115
SELECT - 45 - 16 / + ( + 44 )
----
-45

query I rowsort
SELECT - NULLIF ( 64, - + 68 ) * - 21
----
1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2117
SELECT - CAST( NULL AS SIGNED ) - MIN( - 4 ) + + MIN( DISTINCT + 17 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT - CAST ( NULL AS INTEGER ) - MIN ( - 4 ) + + MIN ( DISTINCT + 17 ) * COUNT ( * )
----
NULL

query I rowsort
SELECT - 44 * ( - 33 ) * 7 + + 39 * 33
----
11451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2119
SELECT + - 28 + + - 32 + + 1 * - ( + CAST( NULL AS SIGNED ) ) / - 30 * - - 66 + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT + - 28 + + - 32 + + 1 * - ( + CAST ( NULL AS INTEGER ) ) / - 30 * - - 66 + + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2120
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 18 - + 99 + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 18 - + 99 + 80 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL + 79 * + 2 * - + 91
----
-14378

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT + + COUNT( * ) - + 19 + - + 34 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-2124
SELECT + + COUNT ( * ) - + 19 + - + 34 AS col1
----
-52

query I rowsort
SELECT + 10 col2
----
10

query I rowsort
SELECT ALL - 29 + - - 27 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT - 46 * - 43 * COALESCE ( NULLIF ( + 20, + COUNT( * ) ), - COUNT( ALL 38 ) ) AS col1
----
39560

skipif mysql # not compatible
query I rowsort label-2127
SELECT - 46 * - 43 * COALESCE ( NULLIF ( + 20, + COUNT ( * ) ), - COUNT ( ALL 38 ) ) AS col1
----
39560

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2129
SELECT 27 DIV + 52 + + - 24 + + 75 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-2129
SELECT 27 / + 52 + + - 24 + + 75 AS col2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2130
SELECT ALL - COUNT( * ) DIV SUM( DISTINCT + - 54 ) + + 29
----
29

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL - COUNT ( * ) / SUM ( DISTINCT + - 54 ) + + 29
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2131
SELECT ALL + COUNT( * ) DIV COUNT( ALL - 31 ), + 95 AS col2
----
1
95

skipif mysql # not compatible
query II rowsort label-2131
SELECT ALL + COUNT ( * ) / COUNT ( ALL - 31 ), + 95 AS col2
----
1
95

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2135
SELECT ALL 5 DIV - ( - - MAX( + 18 ) ) - + 42 * - + COALESCE ( + 51, + 9 + - NULLIF ( CAST( - - 90 AS SIGNED ), - AVG ( DISTINCT - + 10 ) ), 82 * MAX( ALL 36 ) ) * - 20 col2
----
-42840

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL 5 / - ( - - MAX ( + 18 ) ) - + 42 * - + COALESCE ( + 51, + 9 + - NULLIF ( CAST ( - - 90 AS INTEGER ), - AVG ( DISTINCT - + 10 ) ), 82 * MAX ( ALL 36 ) ) * - 20 col2
----
-42840

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT DISTINCT COUNT( * ) * - 84 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT COUNT ( * ) * - 84 AS col0
----
-84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2137
SELECT - 65 DIV - NULLIF ( + 49, CAST( NULL AS SIGNED ) ), - 46 * + 50 AS col2
----
1
-2300

skipif mysql # not compatible
query II rowsort label-2137
SELECT - 65 / - NULLIF ( + 49, CAST ( NULL AS INTEGER ) ), - 46 * + 50 AS col2
----
1
-2300

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT DISTINCT + SUM( + + 34 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT + SUM ( + + 34 ) AS col0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2139
SELECT MAX( - 51 ) + + 35 + + CAST( 71 AS SIGNED ) - - 64 * + 81
----
5239

skipif mysql # not compatible
query I rowsort label-2139
SELECT MAX ( - 51 ) + + 35 + + CAST ( 71 AS INTEGER ) - - 64 * + 81
----
5239

query I rowsort
SELECT 24 * + 83
----
1992

query II rowsort
SELECT ALL - 43 AS col0, - 41 AS col1
----
-43
-41

query II rowsort
SELECT 24 + + 8 * - 28 AS col1, 64 AS col2
----
-200
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2143
SELECT ALL + COALESCE ( + + 12, - + ( - 88 ) ) * + ( 10 ) col1, - COUNT( * ) AS col0
----
120
-1

skipif mysql # not compatible
query II rowsort label-2143
SELECT ALL + COALESCE ( + + 12, - + ( - 88 ) ) * + ( 10 ) col1, - COUNT ( * ) AS col0
----
120
-1

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT 42 * COUNT( * ) + + - COALESCE ( + - 48, + ( - 38 ) + + 89, - + 44 )
----
90

skipif mysql # not compatible
query I rowsort label-2147
SELECT 42 * COUNT ( * ) + + - COALESCE ( + - 48, + ( - 38 ) + + 89, - + 44 )
----
90

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

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

query I rowsort
SELECT 23 + + 40 AS col0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2150
SELECT + 40 * + ( + + 75 ) - + 71 DIV 10 AS col0
----
2993

skipif mysql # not compatible
query I rowsort label-2150
SELECT + 40 * + ( + + 75 ) - + 71 / 10 AS col0
----
2993

query I rowsort
SELECT + ( + 98 ) * + 4 + - 26
----
366

query I rowsort
SELECT - 2 - + + 88 + + 78 + - 14 * + 35 * + 16
----
-7852

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT ALL + + 74 + - + 63 + + 29 + + - 19 + - + ( - 9 ) + + + MIN( ALL - - 80 ) * + + 41
----
3310

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL + + 74 + - + 63 + + 29 + + - 19 + - + ( - 9 ) + + + MIN ( ALL - - 80 ) * + + 41
----
3310

query I rowsort
SELECT - - ( 87 ) col2
----
87

query I rowsort
SELECT DISTINCT + 91 + + - 5 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT - MAX( + 57 ) * - 80
----
4560

skipif mysql # not compatible
query I rowsort label-2157
SELECT - MAX ( + 57 ) * - 80
----
4560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2158
SELECT CAST( + NULLIF ( + - COUNT( * ), + 92 ) AS SIGNED ) + - 72 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-2158
SELECT CAST ( + NULLIF ( + - COUNT ( * ), + 92 ) AS INTEGER ) + - 72 AS col2
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-2159
SELECT 82 + + 77 + + + 58 DIV + 63
----
159

skipif mysql # not compatible
query I rowsort label-2159
SELECT 82 + + 77 + + + 58 / + 63
----
159

query II rowsort
SELECT - 55 AS col2, 49 AS col0
----
-55
49

query I rowsort
SELECT ALL 77 col1
----
77

query I rowsort
SELECT + 44 + + + 84 AS col2
----
128

query I rowsort
SELECT 71 * 75 AS col1
----
5325

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT 74 + + SUM( + ( - 75 ) ) * - 73 * - - 96 - 28
----
525646

skipif mysql # not compatible
query I rowsort label-2164
SELECT 74 + + SUM ( + ( - 75 ) ) * - 73 * - - 96 - 28
----
525646

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT - CASE 69 WHEN 24 THEN CASE 1 WHEN - 83 * - COUNT( * ) * + 91 THEN COUNT( * ) ELSE NULL END - - 90 * 48 + - 18 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2165
SELECT - CASE 69 WHEN 24 THEN CASE 1 WHEN - 83 * - COUNT ( * ) * + 91 THEN COUNT ( * ) ELSE NULL END - - 90 * 48 + - 18 END AS col1
----
NULL

query I rowsort
SELECT ALL + ( - 89 ) + + 80
----
-9

query I rowsort
SELECT ALL + 17 * - 46
----
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT - MAX( ALL + - 27 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-2168
SELECT - MAX ( ALL + - 27 ) AS col0
----
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT + + COUNT( 32 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2170
SELECT + + COUNT ( 32 ) AS col1
----
1

query I rowsort
SELECT ALL - - 56 - + - 0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2172
SELECT + 77 DIV - COUNT( * ) + + 75 * + 85 + + COALESCE ( 49, - CASE 38 WHEN 81 THEN + COUNT( - 88 ) + + 26 + + NULLIF ( + + 93, 6 ) END, + ( - + 57 ) DIV + 52 - - 95 ) * - 17
----
5465

skipif mysql # not compatible
query I rowsort label-2172
SELECT + 77 / - COUNT ( * ) + + 75 * + 85 + + COALESCE ( 49, - CASE 38 WHEN 81 THEN + COUNT ( - 88 ) + + 26 + + NULLIF ( + + 93, 6 ) END, + ( - + 57 ) / + 52 - - 95 ) * - 17
----
5465

query I rowsort
SELECT 9 + 22 + 26
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2174
SELECT CASE + ( - CAST( - 86 AS SIGNED ) ) WHEN + 36 THEN 13 * - - 16 * 51 * - 63 * + + 86 + 75 WHEN - + COUNT( * ) * - 57 / + CAST( NULL AS DECIMAL ) - COUNT( * ) + - 66 THEN NULL WHEN + 24 / + MAX( DISTINCT - + 78 ) THEN NULL ELSE NULL END * - COUNT( ALL - + CASE + 37 WHEN + - 65 * + + CAST( NULL AS SIGNED ) THEN NULL WHEN - 86 THEN NULL WHEN + 61 THEN + 1 + + + 46 ELSE NULL END ) + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-2174
SELECT CASE + ( - CAST ( - 86 AS INTEGER ) ) WHEN + 36 THEN 13 * - - 16 * 51 * - 63 * + + 86 + 75 WHEN - + COUNT ( * ) * - 57 / + CAST ( NULL AS REAL ) - COUNT ( * ) + - 66 THEN NULL WHEN + 24 / + MAX ( DISTINCT - + 78 ) THEN NULL ELSE NULL END * - COUNT ( ALL - + CASE + 37 WHEN + - 65 * + + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 86 THEN NULL WHEN + 61 THEN + 1 + + + 46 ELSE NULL END ) + - 86
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2175
SELECT CAST( NULL AS SIGNED ) * 74 * - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2175
SELECT CAST ( NULL AS INTEGER ) * 74 * - 80 AS col2
----
NULL

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

query I rowsort
SELECT 9 * - - 28 + 62 AS col1
----
314

query I rowsort
SELECT ALL 82 * 29 AS col1
----
2378

query I rowsort
SELECT 8 * + 19
----
152

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT DISTINCT 17 * COUNT( DISTINCT - 3 )
----
17

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT 17 * COUNT ( DISTINCT - 3 )
----
17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT 33 * - - COUNT( ALL 36 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-2183
SELECT 33 * - - COUNT ( ALL 36 ) AS col1
----
33

onlyif mysql # DIV for integer division: 
query II rowsort label-2184
SELECT 53 DIV - 90 col2, - 77
----
0
-77

skipif mysql # not compatible
query II rowsort label-2184
SELECT 53 / - 90 col2, - 77
----
0
-77

query I rowsort
SELECT 23 * 19 AS col2
----
437

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2186
SELECT 59 + - + CAST( NULL AS SIGNED ) + + COUNT( * ) / - 87 col0, ( 90 )
----
NULL
90

skipif mysql # not compatible
query II rowsort label-2186
SELECT 59 + - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) / - 87 col0, ( 90 )
----
NULL
90

query II rowsort
SELECT + 74 * - + 53 + + 48 - 8 AS col2, 30
----
-3882
30

onlyif mysql # aggregate syntax: 
query II rowsort label-2188
SELECT ALL - 53 + + COUNT( * ) AS col1, - 61 * 61 * + 78 * - 41
----
-52
11899758

skipif mysql # not compatible
query II rowsort label-2188
SELECT ALL - 53 + + COUNT ( * ) AS col1, - 61 * 61 * + 78 * - 41
----
-52
11899758

onlyif mysql # DIV for integer division: 
query I rowsort label-2189
SELECT DISTINCT 5 + - + 31 DIV + + 46
----
5

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT 5 + - + 31 / + + 46
----
5

query I rowsort
SELECT 86 * + + 33
----
2838

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT DISTINCT NULLIF ( - 56, - + CAST( NULL AS SIGNED ) ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT NULLIF ( - 56, - + CAST ( NULL AS INTEGER ) ) AS col2
----
-56

query I rowsort
SELECT DISTINCT + 40 + 26 * + 7
----
222

query I rowsort
SELECT ALL - NULLIF ( - 22, - + 53 )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2194
SELECT + 33 + - - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2194
SELECT + 33 + - - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 30
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2195
SELECT - MIN( 71 ) AS col0, + 67
----
-71
67

skipif mysql # not compatible
query II rowsort label-2195
SELECT - MIN ( 71 ) AS col0, + 67
----
-71
67

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

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

query I rowsort
SELECT 86 + + 81 + - 37 AS col0
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-2198
SELECT + 16 * + - 9 AS col0, 19 * + + COUNT( * ) * - - 78 + 99 AS col1
----
-144
1581

skipif mysql # not compatible
query II rowsort label-2198
SELECT + 16 * + - 9 AS col0, 19 * + + COUNT ( * ) * - - 78 + 99 AS col1
----
-144
1581

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT DISTINCT - + 4 - + - CASE + 88 WHEN - - 45 THEN + 51 / - 95 * + 42 * + 99 + - 16 * + COUNT( * ) END * + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2199
SELECT DISTINCT - + 4 - + - CASE + 88 WHEN - - 45 THEN + 51 / - 95 * + 42 * + 99 + - 16 * + COUNT ( * ) END * + - 46
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2200
SELECT DISTINCT + 44 - - CASE - CASE - + SUM( CAST( NULL AS SIGNED ) ) WHEN - 31 THEN + - 76 / + 46 WHEN - AVG ( DISTINCT + + 47 ) THEN 3 ELSE NULL END WHEN - - COUNT( * ) + - 26 * + 56 THEN - 49 WHEN - COALESCE ( - ( + 24 ), - - CASE + 99 WHEN - 18 / + CASE WHEN 32 NOT IN ( + 26 - ( - 2 ) + + 3 ) THEN 30 END * - 27 + + CASE 59 WHEN + 87 THEN NULL ELSE - CAST( + 68 AS DECIMAL ) * - 37 + - + ( - 16 ) END THEN - 67 + + 68 / - 52 ELSE - MIN( DISTINCT 33 ) + 65 END, + NULLIF ( - ( 77 ), 42 ) ) * + 88 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT + 44 - - CASE - CASE - + SUM ( CAST ( NULL AS INTEGER ) ) WHEN - 31 THEN + - 76 / + 46 WHEN - AVG ( DISTINCT + + 47 ) THEN 3 ELSE NULL END WHEN - - COUNT ( * ) + - 26 * + 56 THEN - 49 WHEN - COALESCE ( - ( + 24 ), - - CASE + 99 WHEN - 18 / + CASE WHEN 32 NOT IN ( + 26 - ( - 2 ) + + 3 ) THEN 30 END * - 27 + + CASE 59 WHEN + 87 THEN NULL ELSE - CAST ( + 68 AS REAL ) * - 37 + - + ( - 16 ) END THEN - 67 + + 68 / - 52 ELSE - MIN ( DISTINCT 33 ) + 65 END, + NULLIF ( - ( 77 ), 42 ) ) * + 88 THEN NULL END col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2203
SELECT - 24 DIV 61 col0
----
0

skipif mysql # not compatible
query I rowsort label-2203
SELECT - 24 / 61 col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2205
SELECT CASE + CAST( NULL AS DECIMAL ) WHEN CASE 2 WHEN - 40 + - 35 THEN CAST( NULL AS SIGNED ) WHEN - 73 THEN MIN( DISTINCT + 55 ) * 60 END THEN + - 57 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2205
SELECT CASE + CAST ( NULL AS REAL ) WHEN CASE 2 WHEN - 40 + - 35 THEN CAST ( NULL AS INTEGER ) WHEN - 73 THEN MIN ( DISTINCT + 55 ) * 60 END THEN + - 57 END AS col1
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2208
SELECT NULLIF ( - 36, - SUM( + - 59 ) * - - MIN( - 70 ) + - 0 - - 84 + MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) - 93 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-2208
SELECT NULLIF ( - 36, - SUM ( + - 59 ) * - - MIN ( - 70 ) + - 0 - - 84 + MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) - 93 ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT DISTINCT - COUNT( * ) * + 80 + + 14 + - 39 col1
----
-105

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT - COUNT ( * ) * + 80 + + 14 + - 39 col1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT - MIN( DISTINCT + + 99 ) * + + 57 + - 20 * - + COUNT( * )
----
-5623

skipif mysql # not compatible
query I rowsort label-2210
SELECT - MIN ( DISTINCT + + 99 ) * + + 57 + - 20 * - + COUNT ( * )
----
-5623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2211
SELECT SUM( CAST( - 67 AS SIGNED ) ) AS col2, 52
----
-67
52

skipif mysql # not compatible
query II rowsort label-2211
SELECT SUM ( CAST ( - 67 AS INTEGER ) ) AS col2, 52
----
-67
52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT 42 * - MIN( ALL + + 93 ) - - 49 * - 22
----
-4984

skipif mysql # not compatible
query I rowsort label-2213
SELECT 42 * - MIN ( ALL + + 93 ) - - 49 * - 22
----
-4984

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT + 4 * COUNT( * ) * 70 * - 36 * - COUNT( * )
----
10080

skipif mysql # not compatible
query I rowsort label-2215
SELECT + 4 * COUNT ( * ) * 70 * - 36 * - COUNT ( * )
----
10080

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2217
SELECT + COUNT( DISTINCT + 77 ) + - CAST( 0 AS SIGNED ) + + COUNT( * ) + - + 9
----
-7

skipif mysql # not compatible
query I rowsort label-2217
SELECT + COUNT ( DISTINCT + 77 ) + - CAST ( 0 AS INTEGER ) + + COUNT ( * ) + - + 9
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2218
SELECT ALL 99 * 62 + - NULLIF ( 41, 67 * - - 15 ) * - 38 + 25 AS col0, 70 - + ( + - 87 ) DIV + CAST( ( + 12 ) AS SIGNED ) + + ( + + MAX( DISTINCT + 17 ) ) DIV 40
----
7721
77

skipif mysql # not compatible
query II rowsort label-2218
SELECT ALL 99 * 62 + - NULLIF ( 41, 67 * - - 15 ) * - 38 + 25 AS col0, 70 - + ( + - 87 ) / + CAST ( ( + 12 ) AS INTEGER ) + + ( + + MAX ( DISTINCT + 17 ) ) / 40
----
7721
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2219
SELECT + 37 + + - 88 + + 52 / - + CAST( NULL AS SIGNED ) / + NULLIF ( + - 17, - 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2219
SELECT + 37 + + - 88 + + 52 / - + CAST ( NULL AS INTEGER ) / + NULLIF ( + - 17, - 94 )
----
NULL

query I rowsort
SELECT ALL + 91 + + 19 + 43 AS col2
----
153

query I rowsort
SELECT DISTINCT + 75 * - 83 * + 32 col1
----
-199200

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT ALL + COUNT( * ) + + - NULLIF ( + 71, - COUNT( * ) * + - 81 ) + + 22
----
-48

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL + COUNT ( * ) + + - NULLIF ( + 71, - COUNT ( * ) * + - 81 ) + + 22
----
-48

query I rowsort
SELECT + + ( 10 ) * + 22 * + 15 + + 83 + - + 4 - - + 91 AS col0
----
3470

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT + - 61 + - CASE - CASE - 21 WHEN - + ( - 12 ) THEN NULLIF ( - 15, 19 + - 65 ) * CASE + - COUNT( * ) WHEN + AVG ( DISTINCT - - 20 ) * - 21 THEN NULL ELSE - AVG ( - + 48 ) * - 34 END WHEN + 45 THEN + 77 * + + 91 * + 97 END WHEN + 30 THEN + 42 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2226
SELECT + - 61 + - CASE - CASE - 21 WHEN - + ( - 12 ) THEN NULLIF ( - 15, 19 + - 65 ) * CASE + - COUNT ( * ) WHEN + AVG ( DISTINCT - - 20 ) * - 21 THEN NULL ELSE - AVG ( - + 48 ) * - 34 END WHEN + 45 THEN + 77 * + + 91 * + 97 END WHEN + 30 THEN + 42 END col1
----
NULL

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

query I rowsort
SELECT + + 86 + 41 col2
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2229
SELECT + 40 * + + CAST( + 36 AS SIGNED ), 21 + - 29 AS col2
----
1440
-8

skipif mysql # not compatible
query II rowsort label-2229
SELECT + 40 * + + CAST ( + 36 AS INTEGER ), 21 + - 29 AS col2
----
1440
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT DISTINCT - 48 - - COUNT( * ) + - 59
----
-106

skipif mysql # not compatible
query I rowsort label-2230
SELECT DISTINCT - 48 - - COUNT ( * ) + - 59
----
-106

query I rowsort
SELECT - - ( - 42 )
----
-42

query I rowsort
SELECT + 67 + 19 col2
----
86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT + + 35 * COUNT( * ) * + - 53
----
-1855

skipif mysql # not compatible
query I rowsort label-2234
SELECT + + 35 * COUNT ( * ) * + - 53
----
-1855

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT + COUNT( * ) + 76 + + + 13 * + 44
----
649

skipif mysql # not compatible
query I rowsort label-2236
SELECT + COUNT ( * ) + 76 + + + 13 * + 44
----
649

query II rowsort
SELECT 91, + 85 + 67 AS col1
----
91
152

query I rowsort
SELECT ALL - 18 * - 7 * + 88 AS col2
----
11088

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT + COUNT( * ) + ( - 43 ) col0
----
-42

skipif mysql # not compatible
query I rowsort label-2239
SELECT + COUNT ( * ) + ( - 43 ) col0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-2240
SELECT ALL 87, CASE - 54 WHEN 1 + 7 + + 47 * + CASE + - 6 WHEN + - 52 THEN + COUNT( * ) WHEN - 12 THEN NULL END - 72 + - 73 THEN 36 WHEN + + 18 THEN NULL ELSE - 51 END AS col0
----
87
-51

skipif mysql # not compatible
query II rowsort label-2240
SELECT ALL 87, CASE - 54 WHEN 1 + 7 + + 47 * + CASE + - 6 WHEN + - 52 THEN + COUNT ( * ) WHEN - 12 THEN NULL END - 72 + - 73 THEN 36 WHEN + + 18 THEN NULL ELSE - 51 END AS col0
----
87
-51

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2242
SELECT ALL + 45 + - + 44 * - COUNT( * ) DIV 81 + + 45
----
90

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL + 45 + - + 44 * - COUNT ( * ) / 81 + + 45
----
90

query I rowsort
SELECT - 61 * + 88 + 5 + 6
----
-5357

query I rowsort
SELECT ALL 71 * 54 AS col2
----
3834

onlyif mysql # DIV for integer division: 
query I rowsort label-2245
SELECT 46 DIV - 95 + - 51 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-2245
SELECT 46 / - 95 + - 51 AS col0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2246
SELECT DISTINCT - 87 DIV + 44 + - 50 + 90 DIV 64 DIV 21 + + 1 * - + 53 col0
----
-104

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT - 87 / + 44 + - 50 + 90 / 64 / 21 + + 1 * - + 53 col0
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2247
SELECT ALL + COUNT( * ) DIV 93 + + 96 AS col2
----
96

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

query I rowsort
SELECT - 35 + 65
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2249
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) DIV 36 + 76 + - 44 + + - 47 + 25 + + 22
----
32

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) / 36 + 76 + - 44 + + - 47 + 25 + + 22
----
32

query I rowsort
SELECT - 46 * 13
----
-598

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

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

query I rowsort
SELECT 46 * 20 + + 85
----
1005

onlyif mysql # DIV for integer division: 
query I rowsort label-2253
SELECT ALL - 38 DIV + 67 + 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL - 38 / + 67 + 57 AS col0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-2254
SELECT - 99 DIV + 56 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2254
SELECT - 99 / + 56 AS col2
----
-1

query I rowsort
SELECT + 29 * - 52 + + + 76 AS col0
----
-1432

query I rowsort
SELECT DISTINCT + 94 * + 72 + + + 41 col2
----
6809

query II rowsort
SELECT + 21, + 49 + - 47 AS col2
----
21
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT ALL + CASE - 24 WHEN - CAST( 81 AS SIGNED ) + + ( + + ( - CAST( NULL AS SIGNED ) ) ) - AVG ( 58 ) THEN NULL ELSE 27 END AS col1
----
27

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL + CASE - 24 WHEN - CAST ( 81 AS INTEGER ) + + ( + + ( - CAST ( NULL AS INTEGER ) ) ) - AVG ( 58 ) THEN NULL ELSE 27 END AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2259
SELECT + MIN( DISTINCT - + CAST( NULLIF ( 89, 71 ) AS SIGNED ) )
----
-89

skipif mysql # not compatible
query I rowsort label-2259
SELECT + MIN ( DISTINCT - + CAST ( NULLIF ( 89, 71 ) AS INTEGER ) )
----
-89

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

query I rowsort
SELECT - 50 AS col1
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2262
SELECT ALL 55 * + + MAX( - 98 ) - 44 + + ( + MAX( DISTINCT + 45 ) ) + + 88 * + + 62 AS col0, - 59 * 89 / - CAST( NULL AS SIGNED ) AS col2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-2262
SELECT ALL 55 * + + MAX ( - 98 ) - 44 + + ( + MAX ( DISTINCT + 45 ) ) + + 88 * + + 62 AS col0, - 59 * 89 / - CAST ( NULL AS INTEGER ) AS col2
----
67
NULL

query I rowsort
SELECT - + NULLIF ( 87, - AVG ( 53 ) / - - 23 ) - 27
----
-114

query I rowsort
SELECT - NULLIF ( - 12, 81 * - 91 ) AS col1
----
12

query II rowsort
SELECT ALL + 59, - 82 * - 95 col1
----
59
7790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2266
SELECT + CAST( ( - - 43 ) AS SIGNED ) + - 18 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-2266
SELECT + CAST ( ( - - 43 ) AS INTEGER ) + - 18 AS col2
----
25

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2268
SELECT + 23 AS col2, 4 * - CASE - 64 WHEN - + COUNT( * ) + - COUNT( * ) THEN NULL WHEN - - ( + - MIN( 91 ) ) THEN 66 END + ( 93 ) * 69 AS col0
----
23
NULL

skipif mysql # not compatible
query II rowsort label-2268
SELECT + 23 AS col2, 4 * - CASE - 64 WHEN - + COUNT ( * ) + - COUNT ( * ) THEN NULL WHEN - - ( + - MIN ( 91 ) ) THEN 66 END + ( 93 ) * 69 AS col0
----
23
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2269
SELECT DISTINCT + CASE - ( 69 ) WHEN - SUM( DISTINCT 87 ) * - 71 + + 76 + + 72 THEN NULL WHEN + 57 * - - 97 THEN - - 43 + - COALESCE ( - - COUNT( DISTINCT - 5 ), - - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) - COUNT( * ), + + 15 ) WHEN + 26 * - + 6 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT + CASE - ( 69 ) WHEN - SUM ( DISTINCT 87 ) * - 71 + + 76 + + 72 THEN NULL WHEN + 57 * - - 97 THEN - - 43 + - COALESCE ( - - COUNT ( DISTINCT - 5 ), - - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) - COUNT ( * ), + + 15 ) WHEN + 26 * - + 6 THEN NULL ELSE NULL END AS col1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2271
SELECT + - 24 DIV + 30
----
0

skipif mysql # not compatible
query I rowsort label-2271
SELECT + - 24 / + 30
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2272
SELECT DISTINCT ( + - NULLIF ( - 65, CAST( NULL AS SIGNED ) ) ) * 44 AS col2
----
2860

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT ( + - NULLIF ( - 65, CAST ( NULL AS INTEGER ) ) ) * 44 AS col2
----
2860

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2273
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, 19 AS col1, 32 col0
----
NULL
19
32

skipif mysql # not compatible
query III rowsort label-2273
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 19 AS col1, 32 col0
----
NULL
19
32

query II rowsort
SELECT 70, 63 AS col2
----
70
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL - 69 * - COUNT( * ) col1
----
69

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL - 69 * - COUNT ( * ) col1
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2276
SELECT - - 64 DIV + 49
----
1

skipif mysql # not compatible
query I rowsort label-2276
SELECT - - 64 / + 49
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2277
SELECT + MIN( ALL - 49 ) DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-2277
SELECT + MIN ( ALL - 49 ) / 77
----
0

query I rowsort
SELECT 98 - + - 32
----
130

query I rowsort
SELECT ALL 77 * - 44 col2
----
-3388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2280
SELECT ALL CAST( - 66 AS SIGNED ) + + + CASE 8 WHEN + 49 + 26 + - 53 THEN - 4 * + 43 * - - 54 END * + 47 * + - 24 * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL CAST ( - 66 AS INTEGER ) + + + CASE 8 WHEN + 49 + 26 + - 53 THEN - 4 * + 43 * - - 54 END * + 47 * + - 24 * - 37
----
NULL

query I rowsort
SELECT ALL 88 col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT DISTINCT 30 + - MAX( ALL + 63 ) + - 88 - 67
----
-188

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT 30 + - MAX ( ALL + 63 ) + - 88 - 67
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT COUNT( * ) - - + ( MAX( ( - 51 ) ) ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-2283
SELECT COUNT ( * ) - - + ( MAX ( ( - 51 ) ) ) AS col1
----
-50

query I rowsort
SELECT COALESCE ( + - 26, + 87 ) * - - 50 AS col2
----
-1300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2285
SELECT ALL AVG ( - 58 ) + - + 6 * + SUM( ALL + - 72 ) * - - CASE 77 WHEN 57 THEN + - 91 * 7 WHEN + + 32 THEN - CAST( NULL AS SIGNED ) + NULLIF ( + 37, + + 35 ) WHEN - 64 / + + 23 * + - 12 - - 92 THEN NULL WHEN - + NULLIF ( - CASE CASE + - 99 WHEN + 58 THEN COUNT( * ) - 72 ELSE - - MAX( - 80 ) - - - 9 END WHEN + 18 * + 50 + 29 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE + - 12 END, + ( - 79 ) ) THEN NULL END + - COUNT( + + 30 ) + + 49 * - - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL AVG ( - 58 ) + - + 6 * + SUM ( ALL + - 72 ) * - - CASE 77 WHEN 57 THEN + - 91 * 7 WHEN + + 32 THEN - CAST ( NULL AS INTEGER ) + NULLIF ( + 37, + + 35 ) WHEN - 64 / + + 23 * + - 12 - - 92 THEN NULL WHEN - + NULLIF ( - CASE CASE + - 99 WHEN + 58 THEN COUNT ( * ) - 72 ELSE - - MAX ( - 80 ) - - - 9 END WHEN + 18 * + 50 + 29 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE + - 12 END, + ( - 79 ) ) THEN NULL END + - COUNT ( + + 30 ) + + 49 * - - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT - 0 * 11 + 88 + - - 94 - - - 43 AS col2
----
139

query I rowsort
SELECT 59 * + 31 * + 96 AS col0
----
175584

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

query I rowsort
SELECT DISTINCT + 69 * + ( - 0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2290
SELECT DISTINCT CASE + + 32 WHEN - + 96 * 30 THEN NULL WHEN COUNT( * ) - 26 THEN - + NULLIF ( 66, + + SUM( 12 ) * + 61 * NULLIF ( + 19, + CAST( 14 AS SIGNED ) ) ) / 9 * 88 ELSE NULL END + + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT CASE + + 32 WHEN - + 96 * 30 THEN NULL WHEN COUNT ( * ) - 26 THEN - + NULLIF ( 66, + + SUM ( 12 ) * + 61 * NULLIF ( + 19, + CAST ( 14 AS INTEGER ) ) ) / 9 * 88 ELSE NULL END + + 59 AS col2
----
NULL

query I rowsort
SELECT 98 AS col0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2292
SELECT ALL + 51 + 56 DIV 70 * 30
----
51

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL + 51 + 56 / 70 * 30
----
51

query I rowsort
SELECT 49 * - - 9 * 34 AS col1
----
14994

query I rowsort
SELECT ALL ( - - 62 ) * ( 5 )
----
310

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2296
SELECT ALL + 25 DIV + 2
----
12

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL + 25 / + 2
----
12

query I rowsort
SELECT ALL + 52 - + 51
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT - COUNT( * ) * + 31 - - NULLIF ( - + 73, 86 ) AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-2299
SELECT - COUNT ( * ) * + 31 - - NULLIF ( - + 73, 86 ) AS col2
----
-104

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

query I rowsort
SELECT - 86 + 56 - + 78 AS col0
----
-108

query I rowsort
SELECT ALL - + 69
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2303
SELECT DISTINCT + 81 - - COALESCE ( CAST( - NULLIF ( 17, + 31 ) AS SIGNED ), - - 44 ) + - 38
----
26

skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT + 81 - - COALESCE ( CAST ( - NULLIF ( 17, + 31 ) AS INTEGER ), - - 44 ) + - 38
----
26

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

query I rowsort
SELECT + 31 * + 49 + - - 94 + - 64
----
1549

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT ALL - + COALESCE ( - - COUNT( * ), + - 27 ) * + - 58 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL - + COALESCE ( - - COUNT ( * ), + - 27 ) * + - 58 AS col1
----
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT + 35 + 47 * - 75 + 58 * + - CASE COUNT( 49 ) WHEN + 84 THEN CASE + - 8 WHEN + SUM( DISTINCT + - 66 ) THEN + COUNT( * ) * + 70 * - - 88 END + NULLIF ( + + 34, - 44 - - + 91 + 14 * 64 ) ELSE - 56 * - 3 END AS col1
----
-13234

skipif mysql # not compatible
query I rowsort label-2308
SELECT + 35 + 47 * - 75 + 58 * + - CASE COUNT ( 49 ) WHEN + 84 THEN CASE + - 8 WHEN + SUM ( DISTINCT + - 66 ) THEN + COUNT ( * ) * + 70 * - - 88 END + NULLIF ( + + 34, - 44 - - + 91 + 14 * 64 ) ELSE - 56 * - 3 END AS col1
----
-13234

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT - 44 * - + ( COUNT( - 15 ) )
----
44

skipif mysql # not compatible
query I rowsort label-2309
SELECT - 44 * - + ( COUNT ( - 15 ) )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-2310
SELECT DISTINCT + + 10 * 18 AS col0, + COUNT( * )
----
180
1

skipif mysql # not compatible
query II rowsort label-2310
SELECT DISTINCT + + 10 * 18 AS col0, + COUNT ( * )
----
180
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2311
SELECT DISTINCT + + 85 * COUNT( + CAST( 80 AS SIGNED ) ) / CAST( NULL AS SIGNED ) * + + ( + COALESCE ( 0, + MIN( DISTINCT + - 24 ) + + 80, 33 ) ) * 32 + + - 31 + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT + + 85 * COUNT ( + CAST ( 80 AS INTEGER ) ) / CAST ( NULL AS INTEGER ) * + + ( + COALESCE ( 0, + MIN ( DISTINCT + - 24 ) + + 80, 33 ) ) * 32 + + - 31 + + 35
----
NULL

query I rowsort
SELECT - 2 + 21 AS col1
----
19

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2314
SELECT COUNT( * ) + + COALESCE ( - COUNT( * ), + 86 + - + COUNT( * ) + + 77, 63 ) AS col2, - 84
----
0
-84

skipif mysql # not compatible
query II rowsort label-2314
SELECT COUNT ( * ) + + COALESCE ( - COUNT ( * ), + 86 + - + COUNT ( * ) + + 77, 63 ) AS col2, - 84
----
0
-84

query I rowsort
SELECT DISTINCT - 15 col1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2316
SELECT DISTINCT - 16 + + - COALESCE ( 20, + 61 - 23 + - - ( COUNT( ALL + 65 ) ) + - - 1 + COUNT( * ) DIV + ( - CASE 44 WHEN 80 DIV - + 95 THEN - 91 WHEN + - COUNT( * ) THEN NULL END ) ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT - 16 + + - COALESCE ( 20, + 61 - 23 + - - ( COUNT ( ALL + 65 ) ) + - - 1 + COUNT ( * ) / + ( - CASE 44 WHEN 80 / - + 95 THEN - 91 WHEN + - COUNT ( * ) THEN NULL END ) ) AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2317
SELECT ALL - CAST( - 25 AS SIGNED ) + 71 * - COALESCE ( + 37, + 41 * 54 + 67, - MIN( ALL - ( - - 53 ) ) ) col1
----
-2602

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL - CAST ( - 25 AS INTEGER ) + 71 * - COALESCE ( + 37, + 41 * 54 + 67, - MIN ( ALL - ( - - 53 ) ) ) col1
----
-2602

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

query I rowsort
SELECT DISTINCT - NULLIF ( + ( + 40 ), - 84 ) + 85 + - + 56
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT DISTINCT ( + - COUNT( * ) ) * - COALESCE ( + COUNT( * ), + 88 / + COUNT( * ) + + 4 ) / 26 + + ( CASE - 1 WHEN - 97 * - 53 + 7 THEN + 77 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT ( + - COUNT ( * ) ) * - COALESCE ( + COUNT ( * ), + 88 / + COUNT ( * ) + + 4 ) / 26 + + ( CASE - 1 WHEN - 97 * - 53 + 7 THEN + 77 END ) AS col1
----
NULL

query I rowsort
SELECT 14 + - 98 * + 70 + + 84
----
-6762

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2322
SELECT NULLIF ( 72, CASE - 86 WHEN + 35 THEN + + 1 * - 30 * 52 END + + + 38 + + ( ( - 87 ) ) / - + CAST( NULL AS DECIMAL ) ) * 4 * + 70
----
20160

skipif mysql # not compatible
query I rowsort label-2322
SELECT NULLIF ( 72, CASE - 86 WHEN + 35 THEN + + 1 * - 30 * 52 END + + + 38 + + ( ( - 87 ) ) / - + CAST ( NULL AS REAL ) ) * 4 * + 70
----
20160

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT NULLIF ( - MAX( + 81 ), - - 22 ) + COALESCE ( - 22, 30, - 55 * + + COUNT( * ) * 58 ) - - 27 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-2323
SELECT NULLIF ( - MAX ( + 81 ), - - 22 ) + COALESCE ( - 22, 30, - 55 * + + COUNT ( * ) * 58 ) - - 27 AS col1
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-2324
SELECT 59 DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-2324
SELECT 59 / 45
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT CASE - 59 WHEN 77 * - 84 THEN ( + - 91 ) WHEN + ( COUNT( * ) ) THEN NULL ELSE + 9 END + + 88 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-2325
SELECT CASE - 59 WHEN 77 * - 84 THEN ( + - 91 ) WHEN + ( COUNT ( * ) ) THEN NULL ELSE + 9 END + + 88 AS col1
----
97

query II rowsort
SELECT 59 AS col1, - 17 + - 54
----
59
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2327
SELECT DISTINCT NULLIF ( + 33, - + SUM( 61 ) ) * 55 DIV + + 29 + - - COUNT( * ) * - 8 DIV + 81 DIV + 3
----
62

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT NULLIF ( + 33, - + SUM ( 61 ) ) * 55 / + + 29 + - - COUNT ( * ) * - 8 / + 81 / + 3
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT + MIN( ALL + - 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-2328
SELECT + MIN ( ALL + - 91 ) AS col1
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2329
SELECT ALL - 88 col2, 76 DIV - 78 * + COUNT( * ) AS col1
----
-88
0

skipif mysql # not compatible
query II rowsort label-2329
SELECT ALL - 88 col2, 76 / - 78 * + COUNT ( * ) AS col1
----
-88
0

query I rowsort
SELECT 68 + - 23
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT MAX( + 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-2331
SELECT MAX ( + 7 ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT NULLIF ( + ( + + 25 ), + COUNT( * ) / + 53 - 78 ) * - COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-2332
SELECT NULLIF ( + ( + + 25 ), + COUNT ( * ) / + 53 - 78 ) * - COUNT ( * )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT SUM( ALL 18 )
----
18

skipif mysql # not compatible
query I rowsort label-2333
SELECT SUM ( ALL 18 )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2334
SELECT 84 + - ( - 35 ) * + + NULLIF ( CAST( - 25 AS SIGNED ), - - 8 - + 30 / + 94 + + 52 * COALESCE ( 2, + 8 * - - 53 ) - MAX( DISTINCT 19 ) )
----
-791

skipif mysql # not compatible
query I rowsort label-2334
SELECT 84 + - ( - 35 ) * + + NULLIF ( CAST ( - 25 AS INTEGER ), - - 8 - + 30 / + 94 + + 52 * COALESCE ( 2, + 8 * - - 53 ) - MAX ( DISTINCT 19 ) )
----
-791

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT + COUNT( ALL + 71 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2335
SELECT + COUNT ( ALL + 71 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2336
SELECT - 83 * + NULLIF ( + + CASE 35 WHEN 27 + CASE - 10 WHEN - 9 + + - COUNT( * ) * - 11 THEN - + 11 END THEN NULL WHEN SUM( DISTINCT 18 ) * + CAST( - MAX( 47 ) AS SIGNED ) + - 73 THEN - - 90 END, - NULLIF ( - + 83, CASE - 47 WHEN - 94 / - + 60 THEN NULL WHEN - COUNT( * ) / CASE - 81 WHEN 3 THEN + + COUNT( + + ( - 4 ) ) - - + 9 * - + 83 * 27 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE + - 14 END THEN MAX( 69 ) END ) ) + - 87 + - CASE + 39 WHEN + ( - MAX( - 28 ) ) THEN NULL WHEN + 38 THEN + 28 WHEN + SUM( 24 ) THEN - 85 * - 77 ELSE NULL END * 62 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2336
SELECT - 83 * + NULLIF ( + + CASE 35 WHEN 27 + CASE - 10 WHEN - 9 + + - COUNT ( * ) * - 11 THEN - + 11 END THEN NULL WHEN SUM ( DISTINCT 18 ) * + CAST ( - MAX ( 47 ) AS INTEGER ) + - 73 THEN - - 90 END, - NULLIF ( - + 83, CASE - 47 WHEN - 94 / - + 60 THEN NULL WHEN - COUNT ( * ) / CASE - 81 WHEN 3 THEN + + COUNT ( + + ( - 4 ) ) - - + 9 * - + 83 * 27 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE + - 14 END THEN MAX ( 69 ) END ) ) + - 87 + - CASE + 39 WHEN + ( - MAX ( - 28 ) ) THEN NULL WHEN + 38 THEN + 28 WHEN + SUM ( 24 ) THEN - 85 * - 77 ELSE NULL END * 62 col0
----
NULL

query I rowsort
SELECT + 83 * - + 45
----
-3735

query I rowsort
SELECT ALL + - 87 * + 17
----
-1479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2339
SELECT ALL 62 * + - CAST( + + 97 AS SIGNED ) AS col1
----
-6014

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL 62 * + - CAST ( + + 97 AS INTEGER ) AS col1
----
-6014

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2341
SELECT ALL - 96, + COUNT( ALL - ( - - 44 ) ) AS col1
----
-96
1

skipif mysql # not compatible
query II rowsort label-2341
SELECT ALL - 96, + COUNT ( ALL - ( - - 44 ) ) AS col1
----
-96
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT DISTINCT - + CASE CAST( 11 AS SIGNED ) WHEN 92 THEN - 27 * NULLIF ( - COALESCE ( 88, - 1 ), - + 87 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT - + CASE CAST ( 11 AS INTEGER ) WHEN 92 THEN - 27 * NULLIF ( - COALESCE ( 88, - 1 ), - + 87 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2343
SELECT ALL - 99 AS col0, - CASE + 94 WHEN 70 + 89 THEN - + 29 WHEN + - COUNT( * ) THEN NULL END
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-2343
SELECT ALL - 99 AS col0, - CASE + 94 WHEN 70 + 89 THEN - + 29 WHEN + - COUNT ( * ) THEN NULL END
----
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT + - ( 57 ) - - + 9 + - AVG ( - 1 ) - - 24 * CASE + + 68 WHEN 79 + AVG ( ALL - 62 ) * + 99 THEN 9 * + - 50 + - 67 + + COUNT( * ) * 62 * - 53 WHEN 25 * - COALESCE ( 94, - ( + - 69 ), CASE - - 65 WHEN - COUNT( * ) * + - 3 THEN - - 19 WHEN - - 46 * + SUM( + 10 ) - - + COUNT( ALL + + 23 ) + 53 / - 97 + + 20 THEN NULL END ) * - 10 * - 69 - - 40 THEN NULL WHEN - ( - 16 ) + - MAX( + 64 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2344
SELECT + - ( 57 ) - - + 9 + - AVG ( - 1 ) - - 24 * CASE + + 68 WHEN 79 + AVG ( ALL - 62 ) * + 99 THEN 9 * + - 50 + - 67 + + COUNT ( * ) * 62 * - 53 WHEN 25 * - COALESCE ( 94, - ( + - 69 ), CASE - - 65 WHEN - COUNT ( * ) * + - 3 THEN - - 19 WHEN - - 46 * + SUM ( + 10 ) - - + COUNT ( ALL + + 23 ) + 53 / - 97 + + 20 THEN NULL END ) * - 10 * - 69 - - 40 THEN NULL WHEN - ( - 16 ) + - MAX ( + 64 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT ALL + CASE - 85 WHEN + - 91 THEN + - 50 - + - COUNT( * ) WHEN - - 24 THEN NULL ELSE + + NULLIF ( 17, + - 83 + + - 39 ) END AS col1
----
17

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL + CASE - 85 WHEN + - 91 THEN + - 50 - + - COUNT ( * ) WHEN - - 24 THEN NULL ELSE + + NULLIF ( 17, + - 83 + + - 39 ) END AS col1
----
17

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2348
SELECT + CASE NULLIF ( - - ( - 74 ), - NULLIF ( + 75, + + 29 ) * COALESCE ( - CAST( NULL AS DECIMAL ), + NULLIF ( - + 82, - - 76 * + + ( + - 7 ) ) ) ) WHEN - + CAST( + COUNT( * ) AS SIGNED ) + - 17 THEN + + 55 * - 44 + + 47 WHEN + + 13 THEN + ( - - 1 ) / + COUNT( * ) WHEN 11 / 44 THEN NULL ELSE + + 9 END
----
9

skipif mysql # not compatible
query I rowsort label-2348
SELECT + CASE NULLIF ( - - ( - 74 ), - NULLIF ( + 75, + + 29 ) * COALESCE ( - CAST ( NULL AS REAL ), + NULLIF ( - + 82, - - 76 * + + ( + - 7 ) ) ) ) WHEN - + CAST ( + COUNT ( * ) AS INTEGER ) + - 17 THEN + + 55 * - 44 + + 47 WHEN + + 13 THEN + ( - - 1 ) / + COUNT ( * ) WHEN 11 / 44 THEN NULL ELSE + + 9 END
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2349
SELECT - + 98 DIV + 73 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2349
SELECT - + 98 / + 73 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT ALL - 86 + 34 + COUNT( * ) * - COUNT( * ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL - 86 + 34 + COUNT ( * ) * - COUNT ( * ) AS col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2351
SELECT ALL + - 41 + ( - 66 ) + + + NULLIF ( - COUNT( * ), - + 67 + + + 6 - + NULLIF ( + 91, + 25 ) * COUNT( * ) + + 4 * + + 11 * 31 + - 33 + + - 55 ) * CAST( + 39 AS SIGNED ) * - 13 + - 89 * + - 14 * ( 33 )
----
41518

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL + - 41 + ( - 66 ) + + + NULLIF ( - COUNT ( * ), - + 67 + + + 6 - + NULLIF ( + 91, + 25 ) * COUNT ( * ) + + 4 * + + 11 * 31 + - 33 + + - 55 ) * CAST ( + 39 AS INTEGER ) * - 13 + - 89 * + - 14 * ( 33 )
----
41518

query I rowsort
SELECT - 36 - - 5 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT - COUNT( * ) * 46 * + 36 AS col0
----
-1656

skipif mysql # not compatible
query I rowsort label-2353
SELECT - COUNT ( * ) * 46 * + 36 AS col0
----
-1656

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT ALL + SUM( - - 36 ) * + 90 * - 37 AS col2
----
-119880

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL + SUM ( - - 36 ) * + 90 * - 37 AS col2
----
-119880

query I rowsort
SELECT - 6 + + 29 * 24
----
690

query I rowsort
SELECT ALL COALESCE ( + - ( - 64 ), 96 * + 21, 19 )
----
64

query I rowsort
SELECT - 82 + 77 AS col0
----
-5

query I rowsort
SELECT ALL + 51 - + 33
----
18

query I rowsort
SELECT DISTINCT COALESCE ( + 33, 5, 19 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2361
SELECT ALL - CAST( - 85 AS SIGNED ) DIV 92 + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL - CAST ( - 85 AS INTEGER ) / 92 + - COUNT ( * ) AS col0
----
-1

query II rowsort
SELECT ALL ( + + 95 ) AS col2, - 77
----
95
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT - SUM( 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-2363
SELECT - SUM ( 15 ) AS col2
----
-15

query II rowsort
SELECT - 16 * - + 68 AS col1, 47 AS col0
----
1088
47

query I rowsort
SELECT + 22 * + - 98 col1
----
-2156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2366
SELECT ALL 28 * - 72 * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL 28 * - 72 * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2368
SELECT + MIN( + CAST( - - 61 AS SIGNED ) ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-2368
SELECT + MIN ( + CAST ( - - 61 AS INTEGER ) ) AS col2
----
61

query II rowsort
SELECT ( 16 ) AS col0, 27
----
16
27

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

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

query I rowsort
SELECT 86 * - 23 - - 85 + - 47 * - 64
----
1115

query I rowsort
SELECT DISTINCT + 75
----
75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT - 48 * + - 65 * + ( - SUM( + 37 ) )
----
-115440

skipif mysql # not compatible
query I rowsort label-2377
SELECT - 48 * + - 65 * + ( - SUM ( + 37 ) )
----
-115440

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT + + 62 * - + MAX( DISTINCT + 93 ) AS col2
----
-5766

skipif mysql # not compatible
query I rowsort label-2378
SELECT + + 62 * - + MAX ( DISTINCT + 93 ) AS col2
----
-5766

query I rowsort
SELECT + + 1
----
1

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

query II rowsort
SELECT + 84 * + + 48 + + 44 * 10 + - - 16 AS col2, + 23 + - + 87
----
4488
-64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT ALL + 67 * - + 40 + 63 * 28 * - - 75 + - COUNT( * ) * - + 29 + ( COUNT( * ) ) + - 93 * + 47 + COUNT( * ) + - 5
----
125275

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL + 67 * - + 40 + 63 * 28 * - - 75 + - COUNT ( * ) * - + 29 + ( COUNT ( * ) ) + - 93 * + 47 + COUNT ( * ) + - 5
----
125275

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2385
SELECT + 33 + - 43 * + 28 + - 47 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2385
SELECT + 33 + - 43 * + 28 + - 47 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

query I rowsort
SELECT + 30 * - ( + 8 ) * - 12
----
2880

query I rowsort
SELECT - 36 * + 57 * + 15 * + 73
----
-2246940

query I rowsort
SELECT ALL - 94 * - + 63 + - 70 col0
----
5852

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT COUNT( + 87 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2390
SELECT COUNT ( + 87 ) AS col1
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2392
SELECT + 82 DIV 39 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2392
SELECT + 82 / 39 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT - 88 + + MIN( DISTINCT + 98 )
----
10

skipif mysql # not compatible
query I rowsort label-2393
SELECT - 88 + + MIN ( DISTINCT + 98 )
----
10

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

query I rowsort
SELECT ALL + 65 - + 88 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-2396
SELECT DISTINCT - 10 * - 80 * + COUNT( * ) AS col1, 28 * - 6 AS col1
----
800
-168

skipif mysql # not compatible
query II rowsort label-2396
SELECT DISTINCT - 10 * - 80 * + COUNT ( * ) AS col1, 28 * - 6 AS col1
----
800
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2397
SELECT DISTINCT COUNT( * ) DIV - 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT COUNT ( * ) / - 43 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2398
SELECT ALL CAST( + ( - 65 ) AS SIGNED ), + 84 AS col2
----
-65
84

skipif mysql # not compatible
query II rowsort label-2398
SELECT ALL CAST ( + ( - 65 ) AS INTEGER ), + 84 AS col2
----
-65
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT ALL - MIN( DISTINCT + 14 ) * + COUNT( * ) + 97 * - 16 + + - 4 AS col1
----
-1570

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL - MIN ( DISTINCT + 14 ) * + COUNT ( * ) + 97 * - 16 + + - 4 AS col1
----
-1570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2400
SELECT + 40 * - COALESCE ( 89, CAST( - 97 AS SIGNED ) + 52 )
----
-3560

skipif mysql # not compatible
query I rowsort label-2400
SELECT + 40 * - COALESCE ( 89, CAST ( - 97 AS INTEGER ) + 52 )
----
-3560

query I rowsort
SELECT + 58 + - - 3
----
61

query I rowsort
SELECT DISTINCT - 47 * + 24
----
-1128

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

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

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

skipif mysql # not compatible
query I rowsort label-2404
SELECT - COUNT ( * ) + + 76 AS col2
----
75

query I rowsort
SELECT - 98 * + ( + ( - 10 ) ) col0
----
980

query I rowsort
SELECT - 10 + - - 52
----
42

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2408
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN + COUNT( * ) / - COUNT( * ) * 31 * - COUNT( * ) THEN 71 + + 92 + - 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) / - COUNT ( * ) * 31 * - COUNT ( * ) THEN 71 + + 92 + - 57 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT - NULLIF ( + COUNT( * ), + + 46 ) + - + ( 9 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-2409
SELECT - NULLIF ( + COUNT ( * ), + + 46 ) + - + ( 9 ) AS col2
----
-10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT - - COUNT( * ) + + 85 + - - 44 * - + 74 * + 36
----
-117130

skipif mysql # not compatible
query I rowsort label-2411
SELECT - - COUNT ( * ) + + 85 + - - 44 * - + 74 * + 36
----
-117130

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2414
SELECT ALL - COUNT( * ) DIV + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL - COUNT ( * ) / + 98 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2415
SELECT + 32 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-2415
SELECT + 32 / - 69
----
0

query I rowsort
SELECT 39 + 87 AS col2
----
126

query II rowsort
SELECT DISTINCT - - NULLIF ( + + 14, ( ( + 99 ) ) + 52 ) * + 7 * + - 16 AS col1, ( - CASE + 17 WHEN 73 + + 83 - + - 23 THEN + + 97 ELSE NULL END )
----
-1568
NULL

query I rowsort
SELECT ALL + - 41 + - ( 27 ) - + 31
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2419
SELECT DISTINCT - SUM( DISTINCT + 79 ) + - + 92 DIV COUNT( * ) AS col1
----
-171

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT - SUM ( DISTINCT + 79 ) + - + 92 / COUNT ( * ) AS col1
----
-171

onlyif mysql # DIV for integer division: 
query I rowsort label-2420
SELECT 18 DIV - - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2420
SELECT 18 / - - 88 AS col2
----
0

query I rowsort
SELECT - - 77 * + 40 + + 4 + 97
----
3181

query I rowsort
SELECT ALL 7 + 33
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2423
SELECT DISTINCT + + 11 * + 17 + - CAST( NULL AS SIGNED ) / + COUNT( 92 ) * + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT + + 11 * + 17 + - CAST ( NULL AS INTEGER ) / + COUNT ( 92 ) * + 4
----
NULL

query II rowsort
SELECT ALL - 50 + ( + - 84 ) + + 89 * + 83 AS col1, 49
----
7253
49

query I rowsort
SELECT DISTINCT - + 99 + + - 30 AS col1
----
-129

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

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

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

query I rowsort
SELECT ALL + 84 + - 82 * + 21
----
-1638

query I rowsort
SELECT - 71 - 42
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT 67 * - - MAX( ALL + 95 ) AS col1
----
6365

skipif mysql # not compatible
query I rowsort label-2430
SELECT 67 * - - MAX ( ALL + 95 ) AS col1
----
6365

query I rowsort
SELECT - 54 * 69
----
-3726

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2433
SELECT DISTINCT - 66, - 20 + - - MIN( + 85 ) + - 31 - + 34 AS col0
----
-66
0

skipif mysql # not compatible
query II rowsort label-2433
SELECT DISTINCT - 66, - 20 + - - MIN ( + 85 ) + - 31 - + 34 AS col0
----
-66
0

query I rowsort
SELECT ALL 65 * - - 91 * + 85 col2
----
502775

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT DISTINCT COUNT( * ) * - - 57 * + COUNT( - 61 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-2436
SELECT DISTINCT COUNT ( * ) * - - 57 * + COUNT ( - 61 ) AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2437
SELECT ALL 95 col2, ( + - 3 ) * + + COUNT( * ) DIV + 34 + + - CAST( - - COALESCE ( + COALESCE ( 73, - + 41 ), - 63 * + 49 ) AS SIGNED ) col2
----
95
-73

skipif mysql # not compatible
query II rowsort label-2437
SELECT ALL 95 col2, ( + - 3 ) * + + COUNT ( * ) / + 34 + + - CAST ( - - COALESCE ( + COALESCE ( 73, - + 41 ), - 63 * + 49 ) AS INTEGER ) col2
----
95
-73

query II rowsort
SELECT - 48 AS col2, 58 AS col2
----
-48
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2439
SELECT ALL NULLIF ( + CAST( 12 AS SIGNED ), - 52 ) - - 53 DIV - 68 DIV 6 * + + CASE - NULLIF ( + 24, - 51 ) WHEN + 69 THEN NULL WHEN + 86 * + COUNT( * ) * - CASE - 22 WHEN 79 THEN - 25 + - - 55 WHEN CAST( NULL AS SIGNED ) THEN - 22 DIV + NULLIF ( + CAST( NULL AS SIGNED ), + 34 ) WHEN - - 86 + 12 + + MAX( DISTINCT + ( + + 45 ) ) * ( 18 ) + 70 + 6 * + 42 THEN 0 ELSE NULL END - + COUNT( * ) THEN NULL ELSE - 94 END + + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL NULLIF ( + CAST ( 12 AS INTEGER ), - 52 ) - - 53 / - 68 / 6 * + + CASE - NULLIF ( + 24, - 51 ) WHEN + 69 THEN NULL WHEN + 86 * + COUNT ( * ) * - CASE - 22 WHEN 79 THEN - 25 + - - 55 WHEN CAST ( NULL AS INTEGER ) THEN - 22 / + NULLIF ( + CAST ( NULL AS INTEGER ), + 34 ) WHEN - - 86 + 12 + + MAX ( DISTINCT + ( + + 45 ) ) * ( 18 ) + 70 + 6 * + 42 THEN 0 ELSE NULL END - + COUNT ( * ) THEN NULL ELSE - 94 END + + COUNT ( * )
----
13

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

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

query I rowsort
SELECT 13 col1
----
13

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

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

query I rowsort
SELECT - 16 col1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT DISTINCT 51 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT 51 / - 78
----
0

query II rowsort
SELECT 99 AS col1, 98 - 74 + ( 94 ) * - 39 AS col0
----
99
-3642

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT ALL + COUNT( DISTINCT 21 ) + - + 0 + + 86 col1
----
87

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL + COUNT ( DISTINCT 21 ) + - + 0 + + 86 col1
----
87

query I rowsort
SELECT 84 * - + 15 AS col2
----
-1260

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

skipif mysql # not compatible
query I rowsort label-2448
SELECT DISTINCT 86 / - + COUNT ( * )
----
-86

query I rowsort
SELECT - 72 * + - 67 AS col2
----
4824

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT - SUM( 12 ) col1
----
-12

skipif mysql # not compatible
query I rowsort label-2450
SELECT - SUM ( 12 ) col1
----
-12

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

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

query I rowsort
SELECT ALL - ( + 4 ) + - 36 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT - 39 + - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-2453
SELECT - 39 + - COUNT ( * )
----
-40

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

query I rowsort
SELECT ALL + ( 27 ) + - - 65
----
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT DISTINCT + 46 + - - SUM( - 61 ) * - 43
----
2669

skipif mysql # not compatible
query I rowsort label-2457
SELECT DISTINCT + 46 + - - SUM ( - 61 ) * - 43
----
2669

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT DISTINCT + + 50 + SUM( DISTINCT - 94 )
----
-44

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT + + 50 + SUM ( DISTINCT - 94 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT ALL - + CASE + - 84 WHEN + - COUNT( * ) THEN - ( + 71 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL - + CASE + - 84 WHEN + - COUNT ( * ) THEN - ( + 71 ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2460
SELECT 56 DIV - 34, 82 AS col0
----
-1
82

skipif mysql # not compatible
query II rowsort label-2460
SELECT 56 / - 34, 82 AS col0
----
-1
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2461
SELECT 43 * CAST( - 42 AS SIGNED ) * + 70 * 17 AS col1
----
-2149140

skipif mysql # not compatible
query I rowsort label-2461
SELECT 43 * CAST ( - 42 AS INTEGER ) * + 70 * 17 AS col1
----
-2149140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2462
SELECT - 11 * - ( 44 ) * + 81, 92 * - CAST( NULL AS SIGNED ) col1
----
39204
NULL

skipif mysql # not compatible
query II rowsort label-2462
SELECT - 11 * - ( 44 ) * + 81, 92 * - CAST ( NULL AS INTEGER ) col1
----
39204
NULL

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

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT + 97 / + COUNT ( * )
----
97

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT 35 + - 34 * - - 4 - + COUNT( * ) col1
----
-102

skipif mysql # not compatible
query I rowsort label-2466
SELECT 35 + - 34 * - - 4 - + COUNT ( * ) col1
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT ALL + 47 * SUM( ALL + 72 ) AS col1
----
3384

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL + 47 * SUM ( ALL + 72 ) AS col1
----
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT + MIN( 12 ) * 76 col0
----
912

skipif mysql # not compatible
query I rowsort label-2468
SELECT + MIN ( 12 ) * 76 col0
----
912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2469
SELECT DISTINCT - CAST( + 93 AS SIGNED ) AS col0, - COUNT( * ) + + CAST( NULL AS SIGNED ) * - COALESCE ( COALESCE ( - 64, - 71 ), + - 53 ) * - 26 - + + 47 + - - 11
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-2469
SELECT DISTINCT - CAST ( + 93 AS INTEGER ) AS col0, - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - COALESCE ( COALESCE ( - 64, - 71 ), + - 53 ) * - 26 - + + 47 + - - 11
----
-93
NULL

query I rowsort
SELECT DISTINCT 6 - + - 74 - + 97 * 38 AS col1
----
-3606

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2472
SELECT COUNT( * ) DIV - 33 AS col1, - 48 + + 10
----
0
-38

skipif mysql # not compatible
query II rowsort label-2472
SELECT COUNT ( * ) / - 33 AS col1, - 48 + + 10
----
0
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-2473
SELECT ( - 9 ) DIV + 18
----
0

skipif mysql # not compatible
query I rowsort label-2473
SELECT ( - 9 ) / + 18
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2474
SELECT ALL 52 DIV - 9
----
-5

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL 52 / - 9
----
-5

query I rowsort
SELECT ALL 81 * + 20 col2
----
1620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2476
SELECT COUNT( DISTINCT - 87 ) * COUNT( * ) DIV - - 97
----
0

skipif mysql # not compatible
query I rowsort label-2476
SELECT COUNT ( DISTINCT - 87 ) * COUNT ( * ) / - - 97
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2477
SELECT DISTINCT 10 * COUNT( * ) DIV + + 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2477
SELECT DISTINCT 10 * COUNT ( * ) / + + 30 AS col0
----
0

query I rowsort
SELECT ALL 75 + 46
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-2479
SELECT 84 + - + 50 DIV + - 80 * - - 63 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2479
SELECT 84 + - + 50 / + - 80 * - - 63 AS col0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-2480
SELECT DISTINCT 86 + - + 72 AS col0, + COUNT( * ) col0
----
14
1

skipif mysql # not compatible
query II rowsort label-2480
SELECT DISTINCT 86 + - + 72 AS col0, + COUNT ( * ) col0
----
14
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT DISTINCT 4 + 57 - + COUNT( * ) * + 92 * COUNT( * ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-2482
SELECT DISTINCT 4 + 57 - + COUNT ( * ) * + 92 * COUNT ( * ) col0
----
-31

query I rowsort
SELECT - 25 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-2484
SELECT ALL 39 + - + COUNT( * ) AS col2, 23 * - 90 AS col2
----
38
-2070

skipif mysql # not compatible
query II rowsort label-2484
SELECT ALL 39 + - + COUNT ( * ) AS col2, 23 * - 90 AS col2
----
38
-2070

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

query I rowsort
SELECT + - 64 + - + 50
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2487
SELECT DISTINCT - ( - COUNT( * ) ) + 59 DIV - 26 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT - ( - COUNT ( * ) ) + 59 / - 26 AS col2
----
-1

query I rowsort
SELECT + + 89 + - 96 + - 54 AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2489
SELECT - + 83 + COUNT( * ) + 3 + - CAST( NULL AS SIGNED ) * - 47 * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2489
SELECT - + 83 + COUNT ( * ) + 3 + - CAST ( NULL AS INTEGER ) * - 47 * + 30
----
NULL

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

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

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

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

query I rowsort
SELECT + 59 + + 48 * - 10
----
-421

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2494
SELECT + + 37 DIV - - MIN( - 70 )
----
0

skipif mysql # not compatible
query I rowsort label-2494
SELECT + + 37 / - - MIN ( - 70 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2495
SELECT ALL 69 * + + COUNT( - 50 ) AS col2, 91 * + 90 / CAST( + 23 AS DECIMAL ) + + - 13 * - + 91 * - CAST( NULL AS SIGNED ), + 8 - - COUNT( * ) * 7 AS col0
----
69
NULL
15

skipif mysql # not compatible
query III rowsort label-2495
SELECT ALL 69 * + + COUNT ( - 50 ) AS col2, 91 * + 90 / CAST ( + 23 AS REAL ) + + - 13 * - + 91 * - CAST ( NULL AS INTEGER ), + 8 - - COUNT ( * ) * 7 AS col0
----
69
NULL
15

query I rowsort
SELECT - - 57 * + + 34 + + 31
----
1969

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT + CASE - + 60 WHEN - - 64 + - - NULLIF ( 57, - COUNT( * ) + + + ( + + 62 ) ) THEN - - 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2498
SELECT + CASE - + 60 WHEN - - 64 + - - NULLIF ( 57, - COUNT ( * ) + + + ( + + 62 ) ) THEN - - 58 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT + - 39 * + 29 + - NULLIF ( + 67, CASE + - MIN( ALL + 2 ) WHEN 73 + - 31 * - + 94 * ( ( + AVG ( - + 7 ) ) ) + - - MIN( DISTINCT - 13 ) THEN NULL WHEN + - COUNT( * ) * - 80 / + - 3 + + + COUNT( * ) THEN 11 WHEN - COALESCE ( + - 33, - ( 45 ) + + + 6 ) + - 33 THEN + 35 - + - COUNT( * ) END * 20 - - COUNT( * ) ) + + 44
----
-1154

skipif mysql # not compatible
query I rowsort label-2500
SELECT + - 39 * + 29 + - NULLIF ( + 67, CASE + - MIN ( ALL + 2 ) WHEN 73 + - 31 * - + 94 * ( ( + AVG ( - + 7 ) ) ) + - - MIN ( DISTINCT - 13 ) THEN NULL WHEN + - COUNT ( * ) * - 80 / + - 3 + + + COUNT ( * ) THEN 11 WHEN - COALESCE ( + - 33, - ( 45 ) + + + 6 ) + - 33 THEN + 35 - + - COUNT ( * ) END * 20 - - COUNT ( * ) ) + + 44
----
-1154

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2503
SELECT ALL + ( - CASE + + CAST( + 39 AS SIGNED ) WHEN + + COUNT( * ) + - + 52 THEN + 97 + + 55 + + 94 + - AVG ( ALL + 56 ) * COUNT( * ) * 5 + + NULLIF ( CAST( NULL AS SIGNED ), 81 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL + ( - CASE + + CAST ( + 39 AS INTEGER ) WHEN + + COUNT ( * ) + - + 52 THEN + 97 + + 55 + + 94 + - AVG ( ALL + 56 ) * COUNT ( * ) * 5 + + NULLIF ( CAST ( NULL AS INTEGER ), 81 ) END )
----
NULL

query II rowsort
SELECT + 81 AS col0, + 56
----
81
56

query I rowsort
SELECT ALL + 97 * + 59 AS col2
----
5723

query II rowsort
SELECT DISTINCT + 4 AS col1, 12
----
4
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2507
SELECT COALESCE ( - NULLIF ( 45, - 23 ), + - 3 * + + CAST( - 46 AS SIGNED ) + + 31 - + 11 - + 49 * + 98, + 86 * + - 43 + + + ( + 6 ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-2507
SELECT COALESCE ( - NULLIF ( 45, - 23 ), + - 3 * + + CAST ( - 46 AS INTEGER ) + + 31 - + 11 - + 49 * + 98, + 86 * + - 43 + + + ( + 6 ) ) AS col0
----
-45

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

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

query I rowsort
SELECT ALL + 92 * + 96 + 94 AS col0
----
8926

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

skipif mysql # not compatible
query II rowsort label-2510
SELECT COUNT ( * ), 66 AS col2
----
1
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2511
SELECT ALL ( + 59 ) * + + 84 * - - 45 + COALESCE ( + 37, 43, + 30 * + 59 + - 10 * ( + 30 ) + + - CASE + 48 WHEN - MAX( - 42 ) THEN 29 - - + 79 WHEN + + 82 * - 61 THEN - - 29 + - 76 * CAST( NULL AS SIGNED ) DIV 43 + + - 26 END + - 5, + 60 ) AS col1
----
223057

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL ( + 59 ) * + + 84 * - - 45 + COALESCE ( + 37, 43, + 30 * + 59 + - 10 * ( + 30 ) + + - CASE + 48 WHEN - MAX ( - 42 ) THEN 29 - - + 79 WHEN + + 82 * - 61 THEN - - 29 + - 76 * CAST ( NULL AS INTEGER ) / 43 + + - 26 END + - 5, + 60 ) AS col1
----
223057

query II rowsort
SELECT ALL 0 * + 42 + 90 AS col2, + 27 + + - 47
----
90
-20

query I rowsort
SELECT ALL + 34 * 43 * + - 46
----
-67252

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT - CASE - 60 WHEN 75 THEN + + 62 * - - 37 + + MAX( 37 ) WHEN 69 * + COUNT( + 5 ) * - - 16 / - + 54 + - 59 - 43 / - + 73 * 12 + + 29 THEN NULL END + COUNT( * ) + - 67 * + CASE + + 6 WHEN 60 THEN NULL WHEN + - 17 THEN - 63 + 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT - CASE - 60 WHEN 75 THEN + + 62 * - - 37 + + MAX ( 37 ) WHEN 69 * + COUNT ( + 5 ) * - - 16 / - + 54 + - 59 - 43 / - + 73 * 12 + + 29 THEN NULL END + COUNT ( * ) + - 67 * + CASE + + 6 WHEN 60 THEN NULL WHEN + - 17 THEN - 63 + 90 END
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2516
SELECT + 57 DIV + 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2516
SELECT + 57 / + 76 AS col2
----
0

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

skipif mysql # not compatible
query II rowsort label-2517
SELECT COUNT ( * ) AS col2, 63
----
1
63

query I rowsort
SELECT - CASE - 80 WHEN + - 33 * 73 THEN - - 39 END AS col1
----
NULL

query I rowsort
SELECT - 4 + 38 + - + 22
----
12

query I rowsort
SELECT + 77 + ( - 57 ) + - - 35 AS col0
----
55

query II rowsort
SELECT ALL + 80 AS col0, - 89
----
80
-89

query I rowsort
SELECT - - 24
----
24

query I rowsort
SELECT + 90 + + 71 + + 10
----
171

onlyif mysql # aggregate syntax: 
query II rowsort label-2524
SELECT ALL - + CASE COUNT( * ) WHEN NULLIF ( - 94, - 19 ) + 94 / - 69 + - + 48 THEN - COUNT( * ) + + - 10 ELSE NULL END + 58 AS col2, + 79 AS col1
----
NULL
79

skipif mysql # not compatible
query II rowsort label-2524
SELECT ALL - + CASE COUNT ( * ) WHEN NULLIF ( - 94, - 19 ) + 94 / - 69 + - + 48 THEN - COUNT ( * ) + + - 10 ELSE NULL END + 58 AS col2, + 79 AS col1
----
NULL
79

query I rowsort
SELECT - + 70
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT ALL + SUM( 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL + SUM ( 79 ) AS col2
----
79

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

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

query I rowsort
SELECT + 48 * + 26 + 0 * + 0 AS col0
----
1248

query I rowsort
SELECT ALL + 63 * 11 * - + 29 AS col0
----
-20097

onlyif mysql # DIV for integer division: 
query I rowsort label-2530
SELECT DISTINCT 92 - + - 31 DIV - + 76 * - 67
----
92

skipif mysql # not compatible
query I rowsort label-2530
SELECT DISTINCT 92 - + - 31 / - + 76 * - 67
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT ALL MIN( - - 96 ) col1
----
96

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL MIN ( - - 96 ) col1
----
96

query II rowsort
SELECT 54, ( - 87 ) + 62 AS col0
----
54
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT - NULLIF ( - 52, 23 ) * + - 35 * + COUNT( * )
----
-1820

skipif mysql # not compatible
query I rowsort label-2533
SELECT - NULLIF ( - 52, 23 ) * + - 35 * + COUNT ( * )
----
-1820

query I rowsort
SELECT ALL 68 col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2535
SELECT + + 91 - 52 + - - 51 + NULLIF ( 3, COUNT( * ) ) * 52 * - NULLIF ( - 43, NULLIF ( - - 95, + 34 ) + - CAST( NULL AS DECIMAL ) * 76 ) * 91 + + - NULLIF ( - MIN( COALESCE ( - 35, + 18 ) ), + COALESCE ( - 4, - 34, - - 82 * - 17 * ( + - 45 ), + + 57 ) ) + - + 8
----
610475

skipif mysql # not compatible
query I rowsort label-2535
SELECT + + 91 - 52 + - - 51 + NULLIF ( 3, COUNT ( * ) ) * 52 * - NULLIF ( - 43, NULLIF ( - - 95, + 34 ) + - CAST ( NULL AS REAL ) * 76 ) * 91 + + - NULLIF ( - MIN ( COALESCE ( - 35, + 18 ) ), + COALESCE ( - 4, - 34, - - 82 * - 17 * ( + - 45 ), + + 57 ) ) + - + 8
----
610475

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

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

query II rowsort
SELECT DISTINCT 1, 74 AS col0
----
1
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT + - 16 + + 9 + - - 11 + + ( - 2 ) * COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2538
SELECT + - 16 + + 9 + - - 11 + + ( - 2 ) * COUNT ( * )
----
2

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( + 16, + 1 ) AS col0
----
16

query I rowsort
SELECT DISTINCT - + 91 * - - 65 AS col0
----
-5915

onlyif mysql # DIV for integer division: 
query I rowsort label-2543
SELECT ALL COALESCE ( + - 91, - 42, - 68 ) DIV + - 76 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL COALESCE ( + - 91, - 42, - 68 ) / + - 76 AS col0
----
1

query I rowsort
SELECT ALL - 64 * - 84 AS col1
----
5376

query I rowsort
SELECT ALL + 11 * - 45
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT + 53 * + - 69 * 92 + + 16 + - 55 * - + 73 + - + COUNT( * ) AS col0
----
-332414

skipif mysql # not compatible
query I rowsort label-2546
SELECT + 53 * + - 69 * 92 + + 16 + - 55 * - + 73 + - + COUNT ( * ) AS col0
----
-332414

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

query I rowsort
SELECT - COALESCE ( 24, - 34 * - - 95 - 23 * - 4, - 89, + 64 * - 95 ) * - 66 col2
----
1584

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2549
SELECT - 6 DIV COUNT( * ) col0, 63 AS col0
----
-6
63

skipif mysql # not compatible
query II rowsort label-2549
SELECT - 6 / COUNT ( * ) col0, 63 AS col0
----
-6
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2550
SELECT ALL 72 DIV + ( + + CASE 49 WHEN 27 THEN NULL ELSE - 99 END ) + + + ( - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL 72 / + ( + + CASE 49 WHEN 27 THEN NULL ELSE - 99 END ) + + + ( - 12 )
----
-12

query I rowsort
SELECT + 18 + 20 AS col2
----
38

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2553
SELECT + CASE WHEN - COUNT( * ) NOT IN ( + 67 + COUNT( + + 52 ) ) THEN NULL WHEN NOT - CASE CAST( NULL AS SIGNED ) WHEN COUNT( - - 51 ) THEN + - 74 * + SUM( ALL - - 21 ) ELSE + - 64 END / 78 NOT BETWEEN + 53 AND NULL THEN - 82 END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2553
SELECT + CASE WHEN - COUNT ( * ) NOT IN ( + 67 + COUNT ( + + 52 ) ) THEN NULL WHEN NOT - CASE CAST ( NULL AS INTEGER ) WHEN COUNT ( - - 51 ) THEN + - 74 * + SUM ( ALL - - 21 ) ELSE + - 64 END / 78 NOT BETWEEN + 53 AND NULL THEN - 82 END + + COUNT ( * )
----
NULL

query I rowsort
SELECT ( - 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT COALESCE ( + 2, - 56 ) * - - 34 + CASE + 66 WHEN - 93 + - 85 THEN + - COUNT( * ) + - + 3 END + - 13 + - 5 / - MIN( 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2555
SELECT COALESCE ( + 2, - 56 ) * - - 34 + CASE + 66 WHEN - 93 + - 85 THEN + - COUNT ( * ) + - + 3 END + - 13 + - 5 / - MIN ( 5 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT ALL + 48 * + + ( 93 ) * + - 21 * MIN( ALL - - 35 ) + 69
----
-3280971

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL + 48 * + + ( 93 ) * + - 21 * MIN ( ALL - - 35 ) + 69
----
-3280971

query I rowsort
SELECT DISTINCT 35 * 16 * 94
----
52640

query II rowsort
SELECT DISTINCT 21 * 91 + 97 + - 3 AS col2, 87 * ( 77 ) AS col0
----
2005
6699

query I rowsort
SELECT 87 + - 51 AS col2
----
36

query II rowsort
SELECT DISTINCT - 48 + + 44 AS col0, 61
----
-4
61

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

skipif mysql # not compatible
query I rowsort label-2561
SELECT 96 + - COUNT ( * ) AS col1
----
95

query II rowsort
SELECT ALL - 76 + 51 AS col1, 61 AS col0
----
-25
61

query I rowsort
SELECT DISTINCT - 58 * 28
----
-1624

query III rowsort
SELECT 86 * - - ( 68 ) * + - 15 AS col0, 91 AS col2, + 71
----
-87720
91
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2565
SELECT 76 * ( 63 ) * + + 86 + + 75 - + 73 + - + CAST( 25 AS SIGNED ) - - - ( + - 15 ) - - COUNT( * ) + COUNT( * ) + - CAST( CASE - + 20 WHEN 47 * SUM( DISTINCT CAST( 87 AS SIGNED ) ) + + + COUNT( * ) THEN - ( + - 42 ) END AS SIGNED ) * + - 33 / - COUNT( * ) * + - 85 * 83 + COUNT( * ) + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2565
SELECT 76 * ( 63 ) * + + 86 + + 75 - + 73 + - + CAST ( 25 AS INTEGER ) - - - ( + - 15 ) - - COUNT ( * ) + COUNT ( * ) + - CAST ( CASE - + 20 WHEN 47 * SUM ( DISTINCT CAST ( 87 AS INTEGER ) ) + + + COUNT ( * ) THEN - ( + - 42 ) END AS INTEGER ) * + - 33 / - COUNT ( * ) * + - 85 * 83 + COUNT ( * ) + + 90
----
NULL

query I rowsort
SELECT ALL - - 19 - + 87 + - 46 - - 5 * + 24
----
6

query I rowsort
SELECT - ( - 63 ) * - - 17
----
1071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2568
SELECT ALL - - 2 * ( 85 ) / - 76 + + - 56 + + - 94 + - 71 * + ( 60 ) * + MAX( - 16 ) * + 30 * 76 - 75 - + CAST( NULL AS SIGNED ) * - - 19 * 36 * + 75 - - + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL - - 2 * ( 85 ) / - 76 + + - 56 + + - 94 + - 71 * + ( 60 ) * + MAX ( - 16 ) * + 30 * 76 - 75 - + CAST ( NULL AS INTEGER ) * - - 19 * 36 * + 75 - - + 92
----
NULL

query I rowsort
SELECT DISTINCT + 34 * - 25 * + 22
----
-18700

query I rowsort
SELECT ALL - - 27 - - - 14
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT 41 + - COUNT( * ) + 73 + 67 - + 32 + + + 84 AS col2
----
232

skipif mysql # not compatible
query I rowsort label-2571
SELECT 41 + - COUNT ( * ) + 73 + 67 - + 32 + + + 84 AS col2
----
232

query I rowsort
SELECT - - 0 AS col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT ALL + SUM( ALL + 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL + SUM ( ALL + 14 ) AS col2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2575
SELECT DISTINCT CAST( ( - - 19 ) AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT CAST ( ( - - 19 ) AS INTEGER )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2576
SELECT ALL - 85 * 69 * + COALESCE ( - + 38, 4 ) DIV + COUNT( * )
----
222870

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL - 85 * 69 * + COALESCE ( - + 38, 4 ) / + COUNT ( * )
----
222870

query I rowsort
SELECT + 57 + + 54
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-2578
SELECT DISTINCT - - 72 * + - COALESCE ( + 50, + + 23, - 96 + + - 71 DIV + 28 )
----
-3600

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT - - 72 * + - COALESCE ( + 50, + + 23, - 96 + + - 71 / + 28 )
----
-3600

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2581
SELECT 77 AS col2, + CAST( NULL AS DECIMAL )
----
77
NULL

skipif mysql # not compatible
query II rowsort label-2581
SELECT 77 AS col2, + CAST ( NULL AS REAL )
----
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT ALL 88 + 27 - + - COUNT( * )
----
116

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL 88 + 27 - + - COUNT ( * )
----
116

query I rowsort
SELECT 52 * - - 17 AS col1
----
884

query II rowsort
SELECT + 36 AS col1, - 57
----
36
-57

query I rowsort
SELECT DISTINCT 23 + - + ( - 35 ) - 93 * + 85 * - + 66
----
521788

query I rowsort
SELECT 68 col2
----
68

query I rowsort
SELECT ALL 58 + - + 59
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT SUM( 22 ) * + + CASE 2 WHEN + + 55 THEN NULL WHEN - 44 * + 26 / - 51 * + + 26 THEN COALESCE ( + - 51, - ( + 73 ) + - 94 * + 99 - 30 * COUNT( * ) ) + 74 * NULLIF ( - - COUNT( * ), - - 19 ) END / + - COUNT( * ) * + 91 - - AVG ( - 61 ) * + 56 * + 83 + - + 26 * 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT SUM ( 22 ) * + + CASE 2 WHEN + + 55 THEN NULL WHEN - 44 * + 26 / - 51 * + + 26 THEN COALESCE ( + - 51, - ( + 73 ) + - 94 * + 99 - 30 * COUNT ( * ) ) + 74 * NULLIF ( - - COUNT ( * ), - - 19 ) END / + - COUNT ( * ) * + 91 - - AVG ( - 61 ) * + 56 * + 83 + - + 26 * 0 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2589
SELECT ALL - COUNT( + 64 ) * 57 DIV 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL - COUNT ( + 64 ) * 57 / 86 AS col0
----
0

query I rowsort
SELECT DISTINCT 64 + + 3
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT ALL 22 + - + COUNT( * ) * - + 86 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL 22 + - + COUNT ( * ) * - + 86 AS col2
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2592
SELECT 44 * + 65 * - + 20 - + - COUNT( * ) + + - 93 DIV + 20 AS col2
----
-57203

skipif mysql # not compatible
query I rowsort label-2592
SELECT 44 * + 65 * - + 20 - + - COUNT ( * ) + + - 93 / + 20 AS col2
----
-57203

query I rowsort
SELECT ALL 16 * - 8
----
-128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT + ( - COUNT( * ) ) * + + 65 - - 18
----
-47

skipif mysql # not compatible
query I rowsort label-2595
SELECT + ( - COUNT ( * ) ) * + + 65 - - 18
----
-47

query I rowsort
SELECT + 68 col1
----
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT ALL + MIN( 65 ) - + 81
----
-16

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL + MIN ( 65 ) - + 81
----
-16

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

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

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL - COUNT ( * ) * - ( - 27 )
----
-27

query I rowsort
SELECT 31 - - 77 AS col2
----
108

query I rowsort
SELECT ALL 87 AS col2
----
87

query I rowsort
SELECT 87 AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2604
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) / 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2604
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) / 60 AS col0
----
NULL

query I rowsort
SELECT 47 * - 23 col1
----
-1081

query I rowsort
SELECT ALL - 9 * 36 col2
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT 18 * COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-2607
SELECT 18 * COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT 53 + + MIN( DISTINCT - 0 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-2608
SELECT 53 + + MIN ( DISTINCT - 0 ) AS col1
----
53

query I rowsort
SELECT ALL + 83 * 63
----
5229

onlyif mysql # DIV for integer division: 
query I rowsort label-2610
SELECT 37 DIV - 2
----
-18

skipif mysql # not compatible
query I rowsort label-2610
SELECT 37 / - 2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT ALL - NULLIF ( - 86, COUNT( * ) ) * 47 AS col0
----
4042

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL - NULLIF ( - 86, COUNT ( * ) ) * 47 AS col0
----
4042

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT 62 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-2612
SELECT 62 / 76
----
0

query I rowsort
SELECT 33 - 8
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT 42 + COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-2614
SELECT 42 + COUNT ( * ) AS col0
----
43

query I rowsort
SELECT 54 col2
----
54

query I rowsort
SELECT ALL + 47 + + 68
----
115

query I rowsort
SELECT 52 + 35 AS col0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-2618
SELECT COALESCE ( 72, ( 91 ) ) DIV 81 + 65 col0
----
65

skipif mysql # not compatible
query I rowsort label-2618
SELECT COALESCE ( 72, ( 91 ) ) / 81 + 65 col0
----
65

query I rowsort
SELECT ALL ( + 32 ) * - 46 + + 87 AS col2
----
-1385

query I rowsort
SELECT COALESCE ( + 96, 32 * + 9 )
----
96

query I rowsort
SELECT ALL 69 * 43 + ( 69 + 56 * 49 )
----
5780

query I rowsort
SELECT DISTINCT + 48 AS col1
----
48

query I rowsort
SELECT ALL 35 * ( 3 ) AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT + COUNT( * ) - + NULLIF ( - MIN( ALL - 30 ), + 59 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-2624
SELECT + COUNT ( * ) - + NULLIF ( - MIN ( ALL - 30 ), + 59 ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT ALL COUNT( * ) * - COUNT( * ) + 53 * + 81
----
4292

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL COUNT ( * ) * - COUNT ( * ) + 53 * + 81
----
4292

query I rowsort
SELECT + 6 * 83 + - 32
----
466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2627
SELECT ALL 19 * CASE COUNT( * ) * ( - 2 * COUNT( * ) ) WHEN MIN( ALL + 31 ) THEN 25 * CAST( NULL AS SIGNED ) + 17 * + AVG ( DISTINCT + 94 ) WHEN 73 + + 86 THEN NULL END - - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL 19 * CASE COUNT ( * ) * ( - 2 * COUNT ( * ) ) WHEN MIN ( ALL + 31 ) THEN 25 * CAST ( NULL AS INTEGER ) + 17 * + AVG ( DISTINCT + 94 ) WHEN 73 + + 86 THEN NULL END - - 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT 76 * 37 + + MIN( DISTINCT 78 ) AS col2
----
2890

skipif mysql # not compatible
query I rowsort label-2628
SELECT 76 * 37 + + MIN ( DISTINCT 78 ) AS col2
----
2890

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT CASE ( 4 ) WHEN COUNT( * ) THEN + 46 + 75 / 96 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2629
SELECT CASE ( 4 ) WHEN COUNT ( * ) THEN + 46 + 75 / 96 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT - COUNT( * ) + 97
----
96

skipif mysql # not compatible
query I rowsort label-2630
SELECT - COUNT ( * ) + 97
----
96

query I rowsort
SELECT + 10 * + 21 AS col2
----
210

query I rowsort
SELECT - 81 + + 31 AS col1
----
-50

query I rowsort
SELECT + 87 - - 23
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2634
SELECT + NULLIF ( + 78, 82 ) * 51 + + CASE CASE - 77 WHEN 36 * AVG ( DISTINCT 65 ) - 22 * - 95 THEN 80 END WHEN 12 / + ( 38 ) + 80 * CAST( NULL AS SIGNED ) THEN 18 WHEN + 75 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2634
SELECT + NULLIF ( + 78, 82 ) * 51 + + CASE CASE - 77 WHEN 36 * AVG ( DISTINCT 65 ) - 22 * - 95 THEN 80 END WHEN 12 / + ( 38 ) + 80 * CAST ( NULL AS INTEGER ) THEN 18 WHEN + 75 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 29 * 27 - 38 * + 12
----
327

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT + 74 * + MAX( - 49 ) AS col0
----
-3626

skipif mysql # not compatible
query I rowsort label-2636
SELECT + 74 * + MAX ( - 49 ) AS col0
----
-3626

query I rowsort
SELECT ALL + ( 10 )
----
10

query I rowsort
SELECT 13 * + 56 + 69
----
797

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT + NULLIF ( 23, - 59 * 36 - CASE 91 WHEN - 78 THEN + 4 / + CASE + 59 WHEN 58 THEN NULL ELSE COUNT( DISTINCT 5 ) END + 21 ELSE 16 + 90 END )
----
23

skipif mysql # not compatible
query I rowsort label-2639
SELECT + NULLIF ( 23, - 59 * 36 - CASE 91 WHEN - 78 THEN + 4 / + CASE + 59 WHEN 58 THEN NULL ELSE COUNT ( DISTINCT 5 ) END + 21 ELSE 16 + 90 END )
----
23

query I rowsort
SELECT DISTINCT + 54 AS col1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2641
SELECT ALL 84 DIV - 36
----
-2

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL 84 / - 36
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2642
SELECT + CAST( NULL AS SIGNED ) * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-2642
SELECT + CAST ( NULL AS INTEGER ) * 84
----
NULL

query I rowsort
SELECT ALL + - 97
----
-97

query I rowsort
SELECT + 67 * - 8
----
-536

query I rowsort
SELECT + 37 * - 75 col2
----
-2775

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT COALESCE ( 27, ( ( 12 ) ) + - ( CASE + 43 WHEN 49 / COUNT( * ) THEN + ( + 49 ) WHEN COALESCE ( + 97, 3, 82 ) THEN NULL ELSE + 16 END ), + 49, 86 * 22 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-2646
SELECT COALESCE ( 27, ( ( 12 ) ) + - ( CASE + 43 WHEN 49 / COUNT ( * ) THEN + ( + 49 ) WHEN COALESCE ( + 97, 3, 82 ) THEN NULL ELSE + 16 END ), + 49, 86 * 22 ) AS col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2647
SELECT + ( + 42 ) DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-2647
SELECT + ( + 42 ) / 92
----
0

query I rowsort
SELECT ALL + 9 * 46 AS col2
----
414

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2649
SELECT - + 87 * - 64 + 3 DIV + COUNT( * )
----
5571

skipif mysql # not compatible
query I rowsort label-2649
SELECT - + 87 * - 64 + 3 / + COUNT ( * )
----
5571

query I rowsort
SELECT - - 98 * 81
----
7938

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT DISTINCT ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT ( + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT 42 col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT ALL + ( COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL + ( COUNT ( * ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2654
SELECT - - CAST( COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2654
SELECT - - CAST ( COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT ALL + 14 AS col0
----
14

query I rowsort
SELECT DISTINCT - 90 + COALESCE ( 88, + 34 ) * - NULLIF ( 78 + 93, - NULLIF ( 21, 2 + 49 ) )
----
-15138

query I rowsort
SELECT - NULLIF ( ( 73 ), - 94 )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2658
SELECT ALL + - COALESCE ( NULLIF ( COUNT( * ), 82 + + 43 * CAST( + 92 AS SIGNED ) ), - 93 DIV ( + 65 ) + - 89 ) + + 37
----
36

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL + - COALESCE ( NULLIF ( COUNT ( * ), 82 + + 43 * CAST ( + 92 AS INTEGER ) ), - 93 / ( + 65 ) + - 89 ) + + 37
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT + COUNT( * ) + + 88 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2659
SELECT + COUNT ( * ) + + 88 AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2660
SELECT ALL CAST( NULL AS SIGNED ) + + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL CAST ( NULL AS INTEGER ) + + 69 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2661
SELECT + + CAST( MAX( ALL 65 ) AS SIGNED ) + - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-2661
SELECT + + CAST ( MAX ( ALL 65 ) AS INTEGER ) + - COUNT ( * )
----
64

query I rowsort
SELECT DISTINCT - ( 43 ) AS col2
----
-43

query I rowsort
SELECT ALL + + 55 + ( 93 + - 80 )
----
68

query I rowsort
SELECT + - 2 + ( 95 )
----
93

query I rowsort
SELECT - + 86 AS col2
----
-86

query I rowsort
SELECT - + 22 + 47 col0
----
25

query I rowsort
SELECT ALL - + 42 + 37
----
-5

query I rowsort
SELECT ALL + 43 + 1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT - CASE - 63 WHEN + 59 + 96 THEN NULL ELSE - ( SUM( - 21 ) ) + ( 65 ) END * 40
----
-3440

skipif mysql # not compatible
query I rowsort label-2669
SELECT - CASE - 63 WHEN + 59 + 96 THEN NULL ELSE - ( SUM ( - 21 ) ) + ( 65 ) END * 40
----
-3440

query I rowsort
SELECT DISTINCT ( - - 95 ) AS col1
----
95

query I rowsort
SELECT DISTINCT 12 + + 4 * + 25 AS col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT - ( - 52 ) * COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-2672
SELECT - ( - 52 ) * COUNT ( * )
----
52

query I rowsort
SELECT ALL ( 93 )
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2674
SELECT - CAST( NULL AS SIGNED ) + + 28 + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-2674
SELECT - CAST ( NULL AS INTEGER ) + + 28 + - 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT ALL + 44 - - MIN( 54 ) + ( + 88 ) * + 72 col1
----
6434

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL + 44 - - MIN ( 54 ) + ( + 88 ) * + 72 col1
----
6434

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT ALL NULLIF ( - NULLIF ( 65, + 10 * 7 ), + MAX( DISTINCT 94 ) * 73 )
----
-65

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL NULLIF ( - NULLIF ( 65, + 10 * 7 ), + MAX ( DISTINCT 94 ) * 73 )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2677
SELECT CAST( - 58 AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-2677
SELECT CAST ( - 58 AS INTEGER )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT - COUNT( * ) + + 59 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-2678
SELECT - COUNT ( * ) + + 59 AS col0
----
58

query I rowsort
SELECT DISTINCT + ( 10 )
----
10

query I rowsort
SELECT - ( 10 ) * 9 AS col0
----
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2681
SELECT - CAST( NULL AS DECIMAL ) / - 12 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT - CAST ( NULL AS REAL ) / - 12 col1
----
NULL

query I rowsort
SELECT - 11 + + 19 * + 65
----
1224

query I rowsort
SELECT ALL + CASE - 98 WHEN 22 THEN - 95 * + 58 END
----
NULL

query I rowsort
SELECT + 52 AS col2
----
52

query I rowsort
SELECT ( + 24 )
----
24

query I rowsort
SELECT ALL + 67 AS col2
----
67

query I rowsort
SELECT ( - 14 )
----
-14

query I rowsort
SELECT DISTINCT + 73 AS col0
----
73

query I rowsort
SELECT DISTINCT + 44 col1
----
44

query I rowsort
SELECT ALL CASE 33 WHEN 59 - 85 * 30 THEN 30 WHEN - 22 THEN NULL ELSE - 10 END * + 4 col2
----
-40

query I rowsort
SELECT DISTINCT ( - 69 ) * - 83 AS col0
----
5727

query I rowsort
SELECT DISTINCT + NULLIF ( 78, + 16 ) * 90
----
7020

query I rowsort
SELECT ( 51 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT DISTINCT + - SUM( 1 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT + - SUM ( 1 ) col0
----
-1

query I rowsort
SELECT ALL + + 95 AS col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2696
SELECT CAST( 4 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-2696
SELECT CAST ( 4 AS INTEGER )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2697
SELECT DISTINCT + 54 * - - CASE 71 WHEN MAX( 82 ) THEN - 39 + - 32 WHEN + 5 + CAST( - CASE - ( 16 ) WHEN 87 + + ( + 18 + + ( 23 - + CASE + COUNT( * ) + 54 WHEN COUNT( * ) THEN - CASE 36 WHEN - 68 THEN 87 / CAST( - COUNT( * ) AS DECIMAL ) + 52 * - 59 WHEN 33 THEN NULL WHEN + 32 THEN NULL ELSE 11 END ELSE - 21 END ) ) / + 42 THEN + 4 * + 15 - + 43 * + 69 ELSE NULL END AS SIGNED ) THEN NULL ELSE NULL END + - 5 + - 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT + 54 * - - CASE 71 WHEN MAX ( 82 ) THEN - 39 + - 32 WHEN + 5 + CAST ( - CASE - ( 16 ) WHEN 87 + + ( + 18 + + ( 23 - + CASE + COUNT ( * ) + 54 WHEN COUNT ( * ) THEN - CASE 36 WHEN - 68 THEN 87 / CAST ( - COUNT ( * ) AS REAL ) + 52 * - 59 WHEN 33 THEN NULL WHEN + 32 THEN NULL ELSE 11 END ELSE - 21 END ) ) / + 42 THEN + 4 * + 15 - + 43 * + 69 ELSE NULL END AS INTEGER ) THEN NULL ELSE NULL END + - 5 + - 52 AS col1
----
NULL

query I rowsort
SELECT ALL + + COALESCE ( - - 36, 66 + + NULLIF ( 38, + 80 ), 81 + 37 * 25 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT ALL + + ( 3 ) * MAX( DISTINCT 69 * 58 ) + - CASE - 20 WHEN + 37 THEN 30 / + 45 + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL + + ( 3 ) * MAX ( DISTINCT 69 * 58 ) + - CASE - 20 WHEN + 37 THEN 30 / + 45 + 60 END
----
NULL

query I rowsort
SELECT COALESCE ( + 53, + 57 + - 49, 3 + - 74 )
----
53

query I rowsort
SELECT ALL + 96 * + 29 * - 1 + - 29
----
-2813

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT + - 92 * - COUNT( * ) * 22 col0
----
2024

skipif mysql # not compatible
query I rowsort label-2702
SELECT + - 92 * - COUNT ( * ) * 22 col0
----
2024

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT + 36 * SUM( DISTINCT + 27 ) - - COUNT( * ) AS col1
----
973

skipif mysql # not compatible
query I rowsort label-2703
SELECT + 36 * SUM ( DISTINCT + 27 ) - - COUNT ( * ) AS col1
----
973

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2704
SELECT DISTINCT CAST( NULL AS SIGNED ) / - CASE 80 WHEN - 74 THEN + 11 + - 47 * - AVG ( DISTINCT + 37 ) END + CAST( NULL AS SIGNED ) * - 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - CASE 80 WHEN - 74 THEN + 11 + - 47 * - AVG ( DISTINCT + 37 ) END + CAST ( NULL AS INTEGER ) * - 77 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT + + 73 + - - COUNT( * ) + CASE 42 WHEN 82 THEN SUM( DISTINCT - 11 ) END * 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT + + 73 + - - COUNT ( * ) + CASE 42 WHEN 82 THEN SUM ( DISTINCT - 11 ) END * 13 AS col0
----
NULL

query I rowsort
SELECT - - 42
----
42

query I rowsort
SELECT + 73 * - - 19
----
1387

query I rowsort
SELECT DISTINCT 43 + + - 77
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT ALL - NULLIF ( 86, + ( + COUNT( * ) ) )
----
-86

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL - NULLIF ( 86, + ( + COUNT ( * ) ) )
----
-86

query I rowsort
SELECT DISTINCT 12 - + 6 AS col2
----
6

query I rowsort
SELECT DISTINCT 71 * + 30 AS col1
----
2130

query I rowsort
SELECT - 85 AS col1
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-2713
SELECT 3 * 72 DIV + 1 AS col1
----
216

skipif mysql # not compatible
query I rowsort label-2713
SELECT 3 * 72 / + 1 AS col1
----
216

query I rowsort
SELECT DISTINCT 89
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2715
SELECT CAST( 31 AS SIGNED ) + + 17 + COALESCE ( - 64, COUNT( * ) ) * - 51 AS col0
----
3312

skipif mysql # not compatible
query I rowsort label-2715
SELECT CAST ( 31 AS INTEGER ) + + 17 + COALESCE ( - 64, COUNT ( * ) ) * - 51 AS col0
----
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT ALL + NULLIF ( - - COUNT( * ), - - 91 ) - 15
----
-14

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL + NULLIF ( - - COUNT ( * ), - - 91 ) - 15
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2717
SELECT + 4 DIV - 20 + + 84 + 59
----
143

skipif mysql # not compatible
query I rowsort label-2717
SELECT + 4 / - 20 + + 84 + 59
----
143

query I rowsort
SELECT ALL - 31 AS col0
----
-31

query I rowsort
SELECT DISTINCT - 95 * + 69 AS col0
----
-6555

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT 6 * - NULLIF ( - COUNT( * ), + COUNT( * ) * COUNT( - 51 ) )
----
6

skipif mysql # not compatible
query I rowsort label-2720
SELECT 6 * - NULLIF ( - COUNT ( * ), + COUNT ( * ) * COUNT ( - 51 ) )
----
6

query I rowsort
SELECT DISTINCT - 44 col2
----
-44

query I rowsort
SELECT ALL 57 * 82 AS col0
----
4674

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT ALL - CASE - - 99 WHEN + MAX( 59 ) - + ( + 98 ) THEN NULL WHEN 81 * - COUNT( * ) THEN 66 WHEN ( - 0 ) + 19 THEN - 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL - CASE - - 99 WHEN + MAX ( 59 ) - + ( + 98 ) THEN NULL WHEN 81 * - COUNT ( * ) THEN 66 WHEN ( - 0 ) + 19 THEN - 26 END
----
NULL

query I rowsort
SELECT 21 + + + 27
----
48

query II rowsort
SELECT 22 AS col2, 20
----
22
20

onlyif mysql # DIV for integer division: 
query I rowsort label-2726
SELECT 50 DIV - + 81 + + 55
----
55

skipif mysql # not compatible
query I rowsort label-2726
SELECT 50 / - + 81 + + 55
----
55

query I rowsort
SELECT ALL + ( + 66 ) + 58
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-2728
SELECT 11 + - 84 + - 49 DIV ( - 4 ) col1
----
-61

skipif mysql # not compatible
query I rowsort label-2728
SELECT 11 + - 84 + - 49 / ( - 4 ) col1
----
-61

query II rowsort
SELECT + + 28, - 60 AS col2
----
28
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT - 58 * - 75 + 90 * COUNT( * )
----
4440

skipif mysql # not compatible
query I rowsort label-2730
SELECT - 58 * - 75 + 90 * COUNT ( * )
----
4440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2731
SELECT 4 * - 78 DIV + ( - COUNT( * ) ) + + 70 + + 69
----
451

skipif mysql # not compatible
query I rowsort label-2731
SELECT 4 * - 78 / + ( - COUNT ( * ) ) + + 70 + + 69
----
451

onlyif mysql # aggregate syntax: 
query II rowsort label-2732
SELECT 34 AS col2, + COUNT( * ) - 3 AS col2
----
34
-2

skipif mysql # not compatible
query II rowsort label-2732
SELECT 34 AS col2, + COUNT ( * ) - 3 AS col2
----
34
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2733
SELECT ALL + - 89 + + 63 * 46 * + CASE WHEN CAST( NULL AS SIGNED ) IS NULL THEN NULL WHEN NOT ( NULL ) NOT BETWEEN 0 AND ( NULL ) THEN MAX( 45 ) + - 69 ELSE 69 - 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL + - 89 + + 63 * 46 * + CASE WHEN CAST ( NULL AS INTEGER ) IS NULL THEN NULL WHEN NOT ( NULL ) NOT BETWEEN 0 AND ( NULL ) THEN MAX ( 45 ) + - 69 ELSE 69 - 28 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2734
SELECT + + 8 AS col1, COUNT( * ) col1
----
8
1

skipif mysql # not compatible
query II rowsort label-2734
SELECT + + 8 AS col1, COUNT ( * ) col1
----
8
1

query I rowsort
SELECT ALL + 1 + - 1 AS col1
----
0

query I rowsort
SELECT ALL - 43 + - + 24 AS col2
----
-67

query I rowsort
SELECT ALL - + ( + 40 ) AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2738
SELECT + + CAST( - + COUNT( + 48 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-2738
SELECT + + CAST ( - + COUNT ( + 48 ) AS INTEGER )
----
-1

query I rowsort
SELECT 0 + - + 19 + 41 AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2740
SELECT DISTINCT - 59 AS col1, CAST( NULL AS SIGNED )
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-2740
SELECT DISTINCT - 59 AS col1, CAST ( NULL AS INTEGER )
----
-59
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2741
SELECT + CAST( + 20 AS SIGNED ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-2741
SELECT + CAST ( + 20 AS INTEGER ) AS col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2742
SELECT - CASE COUNT( * ) WHEN - + 26 / 97 + CAST( 30 AS DECIMAL ) * + 18 THEN NULL ELSE 38 END AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-2742
SELECT - CASE COUNT ( * ) WHEN - + 26 / 97 + CAST ( 30 AS REAL ) * + 18 THEN NULL ELSE 38 END AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT - + COUNT( 83 ) * - 6 + 29 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2743
SELECT - + COUNT ( 83 ) * - 6 + 29 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT SUM( + 39 ) * - 90 * 9 + - COUNT( * ) AS col2
----
-31591

skipif mysql # not compatible
query I rowsort label-2744
SELECT SUM ( + 39 ) * - 90 * 9 + - COUNT ( * ) AS col2
----
-31591

onlyif mysql # aggregate syntax: 
query II rowsort label-2745
SELECT - + 23, - 40 * - + MIN( ALL 28 ) - 66 AS col2
----
-23
1054

skipif mysql # not compatible
query II rowsort label-2745
SELECT - + 23, - 40 * - + MIN ( ALL 28 ) - 66 AS col2
----
-23
1054

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2746
SELECT - COUNT( DISTINCT 91 ) DIV + 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2746
SELECT - COUNT ( DISTINCT 91 ) / + 33 AS col2
----
0

query I rowsort
SELECT DISTINCT + 75 + + - 50
----
25

query II rowsort
SELECT + 17 AS col2, + 95
----
17
95

query I rowsort
SELECT ALL - 0 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2750
SELECT DISTINCT - 47 - + CAST( 76 AS SIGNED ) AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-2750
SELECT DISTINCT - 47 - + CAST ( 76 AS INTEGER ) AS col1
----
-123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2751
SELECT ALL + COALESCE ( 14, - COUNT( * ) ) DIV 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL + COALESCE ( 14, - COUNT ( * ) ) / 64 AS col2
----
0

query I rowsort
SELECT + 24 + + - 81
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2753
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - 26
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 3, + 32 * CASE WHEN NOT 56 IS NOT NULL THEN 83 END, - 28 + + 7 * 89 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT 97 + - SUM( - 81 )
----
178

skipif mysql # not compatible
query I rowsort label-2755
SELECT 97 + - SUM ( - 81 )
----
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2756
SELECT ALL 23 DIV + NULLIF ( + 52, - CAST( NULL AS SIGNED ) * COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL 23 / + NULLIF ( + 52, - CAST ( NULL AS INTEGER ) * COUNT ( * ) )
----
0

query I rowsort
SELECT 87 * + 47 AS col2
----
4089

onlyif mysql # aggregate syntax: 
query II rowsort label-2758
SELECT COUNT( * ) + 58, + COUNT( * ) AS col2
----
59
1

skipif mysql # not compatible
query II rowsort label-2758
SELECT COUNT ( * ) + 58, + COUNT ( * ) AS col2
----
59
1

query I rowsort
SELECT ALL 42 col1
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2760
SELECT ALL ( - - 76 ) * - + COUNT( 0 ) + + 74 DIV - 11 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL ( - - 76 ) * - + COUNT ( 0 ) + + 74 / - 11 AS col2
----
-82

query I rowsort
SELECT DISTINCT 45 AS col2
----
45

query I rowsort
SELECT DISTINCT 99 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT COUNT( * ) + + 80 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-2763
SELECT COUNT ( * ) + + 80 AS col0
----
81

query I rowsort
SELECT ALL 16 * - 69
----
-1104

query I rowsort
SELECT 21 + - 1 + + 93 AS col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL - 70 * + + COUNT( * ) + + + COUNT( * ) - - + ( NULLIF ( 92, - 75 ) )
----
23

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL - 70 * + + COUNT ( * ) + + + COUNT ( * ) - - + ( NULLIF ( 92, - 75 ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT SUM( 97 )
----
97

skipif mysql # not compatible
query I rowsort label-2767
SELECT SUM ( 97 )
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2768
SELECT ALL - COUNT( + 96 ), + 67 AS col0
----
-1
67

skipif mysql # not compatible
query II rowsort label-2768
SELECT ALL - COUNT ( + 96 ), + 67 AS col0
----
-1
67

query I rowsort
SELECT + + 30 AS col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2770
SELECT 46 * + 19 + COALESCE ( - + 77, - CAST( NULL AS SIGNED ) + 5 * + 90, 64 + COUNT( * ), - 8 * - 84 ) AS col1
----
797

skipif mysql # not compatible
query I rowsort label-2770
SELECT 46 * + 19 + COALESCE ( - + 77, - CAST ( NULL AS INTEGER ) + 5 * + 90, 64 + COUNT ( * ), - 8 * - 84 ) AS col1
----
797

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT ALL + 24 * - + 71 * + 0 + - COUNT( DISTINCT 67 ) + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL + 24 * - + 71 * + 0 + - COUNT ( DISTINCT 67 ) + COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2772
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) * - - 9 + - - 43 + 49 + + 77 AS col2
----
160

skipif mysql # not compatible
query I rowsort label-2772
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) * - - 9 + - - 43 + 49 + + 77 AS col2
----
160

query I rowsort
SELECT ALL - 66 AS col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2774
SELECT DISTINCT - COALESCE ( 61, 44 + - ( CAST( 88 AS SIGNED ) ) ) * + SUM( ALL 15 * 66 )
----
-60390

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT - COALESCE ( 61, 44 + - ( CAST ( 88 AS INTEGER ) ) ) * + SUM ( ALL 15 * 66 )
----
-60390

query I rowsort
SELECT 15 * 82 * 14
----
17220

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT - 65 * + - ( + COUNT( * ) ) - COALESCE ( 46, 53 * 27 )
----
19

skipif mysql # not compatible
query I rowsort label-2776
SELECT - 65 * + - ( + COUNT ( * ) ) - COALESCE ( 46, 53 * 27 )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2777
SELECT ALL + 20 DIV - 44, + CAST( NULL AS SIGNED ) * - CASE 65 WHEN - ( 38 ) THEN SUM( ( 90 ) ) + 62 * + COUNT( * ) WHEN - 74 THEN - 69 * 66 WHEN 77 THEN NULL END AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2777
SELECT ALL + 20 / - 44, + CAST ( NULL AS INTEGER ) * - CASE 65 WHEN - ( 38 ) THEN SUM ( ( 90 ) ) + 62 * + COUNT ( * ) WHEN - 74 THEN - 69 * 66 WHEN 77 THEN NULL END AS col2
----
0
NULL

query I rowsort
SELECT + + 79 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT 23 + + NULLIF ( + - 81, - COUNT( * ) * - 46 + 3 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-2779
SELECT 23 + + NULLIF ( + - 81, - COUNT ( * ) * - 46 + 3 ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT ALL - - NULLIF ( COUNT( * ), - 68 + - + 77 )
----
1

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL - - NULLIF ( COUNT ( * ), - 68 + - + 77 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2781
SELECT ALL 60 - + - 11 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL 60 - + - 11 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - 64
----
-64

query I rowsort
SELECT ALL + + 38 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT ALL - + MAX( + 26 ) * - MAX( 70 ) AS col1
----
1820

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL - + MAX ( + 26 ) * - MAX ( 70 ) AS col1
----
1820

query I rowsort
SELECT - + 90 * + 15 AS col1
----
-1350

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT ALL MAX( + - NULLIF ( + NULLIF ( - 73, + 29 ), 73 - - 51 ) ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL MAX ( + - NULLIF ( + NULLIF ( - 73, + 29 ), 73 - - 51 ) ) AS col1
----
73

query II rowsort
SELECT - 74 AS col1, 40 + - 63 * 98 + 26 + - 60
----
-74
-6168

query I rowsort
SELECT - 88 * - - 34
----
-2992

query I rowsort
SELECT - 94 * - + 64
----
6016

onlyif mysql # aggregate syntax: 
query II rowsort label-2790
SELECT 61 AS col2, COUNT( * ) AS col1
----
61
1

skipif mysql # not compatible
query II rowsort label-2790
SELECT 61 AS col2, COUNT ( * ) AS col1
----
61
1

query I rowsort
SELECT ALL ( 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT DISTINCT MAX( ( + + 61 ) )
----
61

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT MAX ( ( + + 61 ) )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT DISTINCT NULLIF ( - 85, - 18 - 56 + + ( + 78 ) - - 84 * 8 * NULLIF ( - COALESCE ( - NULLIF ( + 23, 15 ), + COUNT( * ) / + MIN( DISTINCT - 58 ) + - COALESCE ( + 27, - 60, + 89 ), + ( 48 ) * + 30 ), - 22 ) ) col2
----
-85

skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT NULLIF ( - 85, - 18 - 56 + + ( + 78 ) - - 84 * 8 * NULLIF ( - COALESCE ( - NULLIF ( + 23, 15 ), + COUNT ( * ) / + MIN ( DISTINCT - 58 ) + - COALESCE ( + 27, - 60, + 89 ), + ( 48 ) * + 30 ), - 22 ) ) col2
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2794
SELECT ALL CAST( NULL AS SIGNED ) + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL CAST ( NULL AS INTEGER ) + + 96
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2795
SELECT DISTINCT COUNT( * ) DIV + 13
----
0

skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT COUNT ( * ) / + 13
----
0

query I rowsort
SELECT DISTINCT 97 AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2797
SELECT DISTINCT + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( - 14, - 95 - + + 24 )
----
14

query I rowsort
SELECT - 92 + - 39
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT + COUNT( DISTINCT + ( + 38 ) ) * + 61
----
61

skipif mysql # not compatible
query I rowsort label-2800
SELECT + COUNT ( DISTINCT + ( + 38 ) ) * + 61
----
61

query I rowsort
SELECT - 68 + 72 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT ALL - COUNT( * ) + 92 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL - COUNT ( * ) + 92 AS col1
----
91

query II rowsort
SELECT ALL 69 AS col1, 44 col0
----
69
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT ALL 82 * 17 + + COUNT( * )
----
1395

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL 82 * 17 + + COUNT ( * )
----
1395

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT + 62 * + - 68 * + SUM( ALL + 30 )
----
-126480

skipif mysql # not compatible
query I rowsort label-2805
SELECT + 62 * + - 68 * + SUM ( ALL + 30 )
----
-126480

query I rowsort
SELECT ALL 13 * + 8 + - - 67 + + + 71
----
242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2807
SELECT + ( CAST( 24 AS SIGNED ) ) + - COUNT( * ) * + + ( COUNT( * ) ) + MIN( - 35 - 61 )
----
-73

skipif mysql # not compatible
query I rowsort label-2807
SELECT + ( CAST ( 24 AS INTEGER ) ) + - COUNT ( * ) * + + ( COUNT ( * ) ) + MIN ( - 35 - 61 )
----
-73

query I rowsort
SELECT DISTINCT + NULLIF ( NULLIF ( 33, 94 ), - - 5 + - 72 / - 61 ) * 51 + - 17
----
1666

query I rowsort
SELECT ALL 21 * + 43 - - + 96 + - 39
----
960

onlyif mysql # DIV for integer division: 
query I rowsort label-2810
SELECT + 13 DIV + 75 + - 33 * 76 + - + 28 + 53 AS col1
----
-2483

skipif mysql # not compatible
query I rowsort label-2810
SELECT + 13 / + 75 + - 33 * 76 + - + 28 + 53 AS col1
----
-2483

query II rowsort
SELECT + NULLIF ( - 83, 59 ) AS col2, 3 AS col1
----
-83
3

query I rowsort
SELECT + 47 + 95 + 99
----
241

query I rowsort
SELECT ALL + + 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT + MIN( ALL + + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-2814
SELECT + MIN ( ALL + + 89 )
----
89

query I rowsort
SELECT + NULLIF ( - + 27, - 70 ) * + + 30 + + 87 * 61 AS col2
----
4497

query I rowsort
SELECT ALL + 48 * + ( + 25 ) - - - 55
----
1145

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT DISTINCT COUNT( * ) * + 6
----
6

skipif mysql # not compatible
query I rowsort label-2817
SELECT DISTINCT COUNT ( * ) * + 6
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2818
SELECT + 79, - 60 + - COUNT( * ) AS col2
----
79
-61

skipif mysql # not compatible
query II rowsort label-2818
SELECT + 79, - 60 + - COUNT ( * ) AS col2
----
79
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2819
SELECT ALL + - CAST( - 23 AS SIGNED ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL + - CAST ( - 23 AS INTEGER ) AS col1
----
23

query I rowsort
SELECT ALL + 25 * - 28 + 82
----
-618

query I rowsort
SELECT + 97 + 85 + + - 83 * + 7 col1
----
-399

query I rowsort
SELECT DISTINCT + + 71 AS col1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2823
SELECT + MIN( + 35 ) DIV + - 71, 11 DIV + 74 AS col0
----
0
0

skipif mysql # not compatible
query II rowsort label-2823
SELECT + MIN ( + 35 ) / + - 71, 11 / + 74 AS col0
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2824
SELECT - 33 DIV - 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2824
SELECT - 33 / - 54 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT MAX( DISTINCT + - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-2825
SELECT MAX ( DISTINCT + - 5 )
----
-5

query I rowsort
SELECT - 71 * + 75 * - 95 AS col0
----
505875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2827
SELECT COUNT( * ) AS col2, COUNT( * ) DIV CAST( + + 94 AS SIGNED )
----
1
0

skipif mysql # not compatible
query II rowsort label-2827
SELECT COUNT ( * ) AS col2, COUNT ( * ) / CAST ( + + 94 AS INTEGER )
----
1
0

query I rowsort
SELECT ALL + 27 + + - 14 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT - 28 + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-2829
SELECT - 28 + COUNT ( * )
----
-27

query I rowsort
SELECT ALL + 54 + - 89 AS col2
----
-35

query I rowsort
SELECT - 5 + + + 3 AS col2
----
-2

query I rowsort
SELECT 38 AS col0
----
38

query I rowsort
SELECT DISTINCT + 82 * - - 90
----
7380

query I rowsort
SELECT - 98 + + 31 * + 78 AS col1
----
2320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2835
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT - 69 * + COUNT( * ) col2
----
-69

skipif mysql # not compatible
query I rowsort label-2836
SELECT - 69 * + COUNT ( * ) col2
----
-69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2837
SELECT ALL + COUNT( + CASE CAST( NULL AS DECIMAL ) WHEN + 42 + + + 15 + + 39 - - 49 / 40 * + 53 THEN NULL ELSE 16 END ) + 50 * + ( + MIN( DISTINCT + 72 ) - ( 53 ) * - 47 ) AS col1
----
128151

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL + COUNT ( + CASE CAST ( NULL AS REAL ) WHEN + 42 + + + 15 + + 39 - - 49 / 40 * + 53 THEN NULL ELSE 16 END ) + 50 * + ( + MIN ( DISTINCT + 72 ) - ( 53 ) * - 47 ) AS col1
----
128151

query I rowsort
SELECT DISTINCT COALESCE ( - - 5, + ( - 0 ) + 86 * - + 25 * + ( + 28 ) ) AS col1
----
5

query I rowsort
SELECT ALL - 91 + + 70 AS col1
----
-21

query I rowsort
SELECT DISTINCT 67
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2841
SELECT - MIN( 86 ), + COUNT( * ) * + + 58 * 93 AS col2
----
-86
5394

skipif mysql # not compatible
query II rowsort label-2841
SELECT - MIN ( 86 ), + COUNT ( * ) * + + 58 * 93 AS col2
----
-86
5394

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT - COUNT( * ) * - + 23
----
23

skipif mysql # not compatible
query I rowsort label-2842
SELECT - COUNT ( * ) * - + 23
----
23

query I rowsort
SELECT ALL 67 col2
----
67

query I rowsort
SELECT ALL - + 69 - - + 45 col1
----
-24

query II rowsort
SELECT - 11, 74 * 67 AS col2
----
-11
4958

onlyif mysql # DIV for integer division: 
query I rowsort label-2846
SELECT - + 64 DIV + + 1 + - + 56 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-2846
SELECT - + 64 / + + 1 + - + 56 AS col0
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2847
SELECT + + CAST( 92 AS SIGNED ) * + + 84 AS col1
----
7728

skipif mysql # not compatible
query I rowsort label-2847
SELECT + + CAST ( 92 AS INTEGER ) * + + 84 AS col1
----
7728

onlyif mysql # aggregate syntax: 
query II rowsort label-2848
SELECT + - 85, + COUNT( * ) col0
----
-85
1

skipif mysql # not compatible
query II rowsort label-2848
SELECT + - 85, + COUNT ( * ) col0
----
-85
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2849
SELECT + CASE 75 WHEN + CAST( NULL AS SIGNED ) THEN - + NULLIF ( + 3, + - 86 ) * 13 ELSE 41 END col1
----
41

skipif mysql # not compatible
query I rowsort label-2849
SELECT + CASE 75 WHEN + CAST ( NULL AS INTEGER ) THEN - + NULLIF ( + 3, + - 86 ) * 13 ELSE 41 END col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2850
SELECT ALL + + 90 DIV + + 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL + + 90 / + + 93 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2851
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col1, 64 col1
----
NULL
64

skipif mysql # not compatible
query II rowsort label-2851
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, 64 col1
----
NULL
64

query II rowsort
SELECT - 1 AS col0, 62 AS col0
----
-1
62

query I rowsort
SELECT - 68 * - 87 * - 48 + + 47
----
-283921

query I rowsort
SELECT ALL - 18 * - 46 col1
----
828

query II rowsort
SELECT + 85 AS col2, - 30
----
85
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2856
SELECT ALL - + 20, COUNT( * ) DIV + 27 AS col0
----
-20
0

skipif mysql # not compatible
query II rowsort label-2856
SELECT ALL - + 20, COUNT ( * ) / + 27 AS col0
----
-20
0

query I rowsort
SELECT DISTINCT - + 60
----
-60

query II rowsort
SELECT ALL - 44 AS col0, ( - 97 )
----
-44
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT + COALESCE ( + ( 35 ), 14 * + - 53 * 25 - + COUNT( ALL 98 ) * - 38 + 42, 18 * COUNT( * ) + ( - 98 + - 42 ) * + 69 ) * 55
----
1925

skipif mysql # not compatible
query I rowsort label-2859
SELECT + COALESCE ( + ( 35 ), 14 * + - 53 * 25 - + COUNT ( ALL 98 ) * - 38 + 42, 18 * COUNT ( * ) + ( - 98 + - 42 ) * + 69 ) * 55
----
1925

query I rowsort
SELECT 34 - 84 * 10
----
-806

query I rowsort
SELECT - 70 * + + 84
----
-5880

query I rowsort
SELECT 26 + 32 AS col1
----
58

query I rowsort
SELECT + 25 col0
----
25

query II rowsort
SELECT ALL 70 + - + 82 AS col2, - 92 col2
----
-12
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2865
SELECT ALL COALESCE ( + 16, - ( 84 ) ) * - CAST( NULL AS SIGNED ) + + + ( + 24 ) * - CAST( + 24 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL COALESCE ( + 16, - ( 84 ) ) * - CAST ( NULL AS INTEGER ) + + + ( + 24 ) * - CAST ( + 24 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 73 AS col2
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2867
SELECT DISTINCT 0 + SUM( - - 51 ) + + + 47 DIV + 83 col0
----
51

skipif mysql # not compatible
query I rowsort label-2867
SELECT DISTINCT 0 + SUM ( - - 51 ) + + + 47 / + 83 col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT COUNT( * ) - 37
----
-36

skipif mysql # not compatible
query I rowsort label-2868
SELECT COUNT ( * ) - 37
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2869
SELECT ALL - 95 + - 88 * - CASE WHEN NOT 40 IS NOT NULL THEN - + 16 WHEN NOT + 74 BETWEEN COUNT( DISTINCT ( - COALESCE ( - 3, - 90 ) ) ) AND COUNT( * ) / - CAST( NULL AS SIGNED ) + 48 THEN NULLIF ( - 47, + 33 ) - - 37 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2869
SELECT ALL - 95 + - 88 * - CASE WHEN NOT 40 IS NOT NULL THEN - + 16 WHEN NOT + 74 BETWEEN COUNT ( DISTINCT ( - COALESCE ( - 3, - 90 ) ) ) AND COUNT ( * ) / - CAST ( NULL AS INTEGER ) + 48 THEN NULLIF ( - 47, + 33 ) - - 37 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 34 + - - 25 + + + 83
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT ALL CASE - 38 WHEN 0 * + - 38 THEN NULL WHEN + ( + - 6 ) THEN 66 ELSE NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL CASE - 38 WHEN 0 * + - 38 THEN NULL WHEN + ( + - 6 ) THEN 66 ELSE NULL END * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2872
SELECT ( + CAST( + 1 AS SIGNED ) ) - 35
----
-34

skipif mysql # not compatible
query I rowsort label-2872
SELECT ( + CAST ( + 1 AS INTEGER ) ) - 35
----
-34

query I rowsort
SELECT DISTINCT 95 AS col0
----
95

query II rowsort
SELECT 50 * + 89 col0, + ( - - 81 )
----
4450
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT DISTINCT + 77 + + ( - 32 ) * - COUNT( * ) * + 88 AS col0
----
2893

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT + 77 + + ( - 32 ) * - COUNT ( * ) * + 88 AS col0
----
2893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2876
SELECT ALL - CAST( NULL AS SIGNED ) + + 13 * + - 20 / + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL - CAST ( NULL AS INTEGER ) + + 13 * + - 20 / + + 93
----
NULL

query I rowsort
SELECT ALL + 60 + 51
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-2878
SELECT 37 - - COUNT( * ) col0, - 55
----
38
-55

skipif mysql # not compatible
query II rowsort label-2878
SELECT 37 - - COUNT ( * ) col0, - 55
----
38
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT NULLIF ( - + COUNT( * ), + 95 ) + - 92
----
-93

skipif mysql # not compatible
query I rowsort label-2879
SELECT NULLIF ( - + COUNT ( * ), + 95 ) + - 92
----
-93

query I rowsort
SELECT ALL + 60 - - - 70 * 17 * - 86
----
102400

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ( + MAX( + 17 ) ) * - 65
----
-1105

skipif mysql # not compatible
query I rowsort label-2881
SELECT ( + MAX ( + 17 ) ) * - 65
----
-1105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2882
SELECT ( + - COALESCE ( + + 51, + 67 DIV + NULLIF ( + 88, - 65 ) * + 94, COUNT( * ) ) )
----
-51

skipif mysql # not compatible
query I rowsort label-2882
SELECT ( + - COALESCE ( + + 51, + 67 / + NULLIF ( + 88, - 65 ) * + 94, COUNT ( * ) ) )
----
-51

query I rowsort
SELECT - - ( 29 )
----
29

query I rowsort
SELECT + 2 + 79 AS col1
----
81

query I rowsort
SELECT + COALESCE ( - 98, 81 + 4 + COALESCE ( - 1, - 92 + 11, + 81, - ( 61 ) ) * 15 ) AS col1
----
-98

query I rowsort
SELECT ALL + 24 * + - 6 * 98
----
-14112

query I rowsort
SELECT - ( ( + 74 ) ) - 91 AS col0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT 0 + + - SUM( ( 89 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-2888
SELECT 0 + + - SUM ( ( 89 ) )
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2889
SELECT - ( + 13 ) DIV + COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-2889
SELECT - ( + 13 ) / + COUNT ( * ) AS col1
----
-13

query I rowsort
SELECT DISTINCT - + 91
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT DISTINCT - MAX( + - ( ( + 15 ) ) ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-2891
SELECT DISTINCT - MAX ( + - ( ( + 15 ) ) ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT ALL - NULLIF ( COUNT( * ), MAX( DISTINCT + 40 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL - NULLIF ( COUNT ( * ), MAX ( DISTINCT + 40 ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2893
SELECT - 9 * 40 + - 94, MAX( - 25 ) AS col1
----
-454
-25

skipif mysql # not compatible
query II rowsort label-2893
SELECT - 9 * 40 + - 94, MAX ( - 25 ) AS col1
----
-454
-25

query I rowsort
SELECT + 70 * + 45 * + + 18 + + 24 + 11
----
56735

query I rowsort
SELECT ALL - + 49 AS col2
----
-49

query II rowsort
SELECT + COALESCE ( - 4, 45 ) AS col0, 11 col1
----
-4
11

onlyif mysql # DIV for integer division: 
query II rowsort label-2897
SELECT 0 DIV + - 22 * - 60 AS col1, 28 AS col1
----
0
28

skipif mysql # not compatible
query II rowsort label-2897
SELECT 0 / + - 22 * - 60 AS col1, 28 AS col1
----
0
28

query I rowsort
SELECT ALL - 48 + - 49 + - 89 AS col0
----
-186

onlyif mysql # DIV for integer division: 
query I rowsort label-2899
SELECT 79 DIV - + 35 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2899
SELECT 79 / - + 35 AS col0
----
-2

query I rowsort
SELECT ALL + 45 + - 73 - + 33 AS col0
----
-61

query I rowsort
SELECT ALL 47 + + 88
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-2902
SELECT 12 DIV + + 15
----
0

skipif mysql # not compatible
query I rowsort label-2902
SELECT 12 / + + 15
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2903
SELECT DISTINCT - 54 + - COUNT( + + 79 ) + MIN( - + 16 ) - - - NULLIF ( + - 25, - 21 * ( - 69 * 1 ) ) + + 45 DIV - 88
----
-46

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT - 54 + - COUNT ( + + 79 ) + MIN ( - + 16 ) - - - NULLIF ( + - 25, - 21 * ( - 69 * 1 ) ) + + 45 / - 88
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT NULLIF ( + COUNT( * ), + 62 / 58 + - 87 + - COUNT( * ) + - SUM( ALL + 56 ) ) * NULLIF ( + 37 + 74, NULLIF ( 83, - CASE WHEN + 39 < - 30 + + ( + 74 ) THEN NULL ELSE 69 END ) * + 27 )
----
111

skipif mysql # not compatible
query I rowsort label-2904
SELECT NULLIF ( + COUNT ( * ), + 62 / 58 + - 87 + - COUNT ( * ) + - SUM ( ALL + 56 ) ) * NULLIF ( + 37 + 74, NULLIF ( 83, - CASE WHEN + 39 < - 30 + + ( + 74 ) THEN NULL ELSE 69 END ) * + 27 )
----
111

query I rowsort
SELECT 25 + - 47 * - 9 * 86 + - 79 AS col0
----
36324

query I rowsort
SELECT ALL 94 + - CASE + 48 WHEN - 35 THEN + - 89 ELSE - 3 * - 27 + - 91 + NULLIF ( - ( - 49 ), 18 ) END AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2907
SELECT + 34 AS col2, SUM( DISTINCT + 65 ) DIV + + ( + - 55 ) + + - COUNT( * ) * 44 * + + 71 - - MIN( ALL + 25 ) AS col2
----
34
-3100

skipif mysql # not compatible
query II rowsort label-2907
SELECT + 34 AS col2, SUM ( DISTINCT + 65 ) / + + ( + - 55 ) + + - COUNT ( * ) * 44 * + + 71 - - MIN ( ALL + 25 ) AS col2
----
34
-3100

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT + MIN( ALL + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-2908
SELECT + MIN ( ALL + 65 )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-2909
SELECT - COUNT( * ) AS col0, + 85
----
-1
85

skipif mysql # not compatible
query II rowsort label-2909
SELECT - COUNT ( * ) AS col0, + 85
----
-1
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT 21 + + 21 + + - CASE + 73 WHEN - + 33 THEN COUNT( * ) WHEN COUNT( * ) THEN - 87 / + COUNT( * ) WHEN + 99 * - 12 THEN 3 WHEN + SUM( DISTINCT 91 ) THEN 7 END * - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-2910
SELECT 21 + + 21 + + - CASE + 73 WHEN - + 33 THEN COUNT ( * ) WHEN COUNT ( * ) THEN - 87 / + COUNT ( * ) WHEN + 99 * - 12 THEN 3 WHEN + SUM ( DISTINCT 91 ) THEN 7 END * - 15
----
NULL

query II rowsort
SELECT ALL 1 AS col1, + 22
----
1
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT - MIN( 2 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2912
SELECT - MIN ( 2 ) AS col2
----
-2

query I rowsort
SELECT DISTINCT 86 * 15
----
1290

query I rowsort
SELECT 56 + + + ( + 64 ) AS col0
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2915
SELECT 27 DIV + NULLIF ( + + 71, + + COUNT( * ) + - - 15 + 67 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2915
SELECT 27 / + NULLIF ( + + 71, + + COUNT ( * ) + - - 15 + 67 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 39 * + 48
----
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT - MAX( 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-2917
SELECT - MAX ( 44 )
----
-44

query I rowsort
SELECT - + 23
----
-23

query I rowsort
SELECT 66 + + 80
----
146

query II rowsort
SELECT - 41 col1, - 16 AS col1
----
-41
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT ALL - CASE - COUNT( * ) WHEN - + ( - COUNT( * ) ) THEN SUM( - - 33 ) / 74 * + - MAX( ALL - 32 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL - CASE - COUNT ( * ) WHEN - + ( - COUNT ( * ) ) THEN SUM ( - - 33 ) / 74 * + - MAX ( ALL - 32 ) END
----
NULL

query I rowsort
SELECT + + 57 * + 19 AS col2
----
1083

onlyif mysql # aggregate syntax: 
query II rowsort label-2923
SELECT DISTINCT + 43 AS col0, + 88 + + + 94 - - - MIN( ALL - ( + - 50 ) ) + 10 AS col2
----
43
142

skipif mysql # not compatible
query II rowsort label-2923
SELECT DISTINCT + 43 AS col0, + 88 + + + 94 - - - MIN ( ALL - ( + - 50 ) ) + 10 AS col2
----
43
142

query I rowsort
SELECT ALL 24 col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT + COUNT( * ) * - 72 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-2925
SELECT + COUNT ( * ) * - 72 AS col0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-2926
SELECT DISTINCT 15 DIV + + 15 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT 15 / + + 15 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT + 89 * - 89 + + - 78 + - 38 + + COUNT( * ) * + 51
----
-7986

skipif mysql # not compatible
query I rowsort label-2927
SELECT + 89 * - 89 + + - 78 + - 38 + + COUNT ( * ) * + 51
----
-7986

query I rowsort
SELECT DISTINCT + 41 * 80 + + - 2 col2
----
3278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2929
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 50
----
NULL

query I rowsort
SELECT - 43 * + NULLIF ( 7, + 67 ) * ( 38 ) AS col0
----
-11438

query I rowsort
SELECT DISTINCT + 66 AS col1
----
66

query I rowsort
SELECT ALL + + 5 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2933
SELECT ALL - 83 * - + CASE CAST( NULL AS SIGNED ) WHEN + 34 / + 18 * - 19 + - 88 THEN + 89 * 11 END / COUNT( * ) + - 14 * 88 + + 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL - 83 * - + CASE CAST ( NULL AS INTEGER ) WHEN + 34 / + 18 * - 19 + - 88 THEN + 89 * 11 END / COUNT ( * ) + - 14 * 88 + + 65 col2
----
NULL

query I rowsort
SELECT ALL + 51
----
51

query I rowsort
SELECT + ( + 44 ) AS col1
----
44

query I rowsort
SELECT 95 * 97 + - 13 AS col0
----
9202

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT COALESCE ( 96, 65 * 30 + - + COUNT( 19 ) + - ( NULLIF ( + + COUNT( * ), 20 + - 75 * 30 ) ) )
----
96

skipif mysql # not compatible
query I rowsort label-2937
SELECT COALESCE ( 96, 65 * 30 + - + COUNT ( 19 ) + - ( NULLIF ( + + COUNT ( * ), 20 + - 75 * 30 ) ) )
----
96

query I rowsort
SELECT ALL + ( 97 ) col0
----
97

query I rowsort
SELECT 4 * + 58 + + 14 AS col0
----
246

query I rowsort
SELECT - 82 * - - 88
----
-7216

query I rowsort
SELECT NULLIF ( + 91, 77 )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2942
SELECT - 23 * 82 DIV + COUNT( * ) + COUNT( * ) AS col0
----
-1885

skipif mysql # not compatible
query I rowsort label-2942
SELECT - 23 * 82 / + COUNT ( * ) + COUNT ( * ) AS col0
----
-1885

onlyif mysql # DIV for integer division: 
query I rowsort label-2943
SELECT DISTINCT - 50 DIV ( - 63 )
----
0

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT - 50 / ( - 63 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2944
SELECT - 46 * + - 18 AS col1, - 12 + + - CASE COUNT( * ) WHEN COUNT( * ) * - 20 + + 20 * + 17 THEN 84 END + - 9
----
828
NULL

skipif mysql # not compatible
query II rowsort label-2944
SELECT - 46 * + - 18 AS col1, - 12 + + - CASE COUNT ( * ) WHEN COUNT ( * ) * - 20 + + 20 * + 17 THEN 84 END + - 9
----
828
NULL

query I rowsort
SELECT DISTINCT + ( 7 ) AS col2
----
7

query I rowsort
SELECT DISTINCT + 14 col0
----
14

query I rowsort
SELECT ALL ( 19 ) AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2948
SELECT - MIN( + ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2948
SELECT - MIN ( + ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2949
SELECT - 86 * + CAST( - + 92 AS SIGNED )
----
7912

skipif mysql # not compatible
query I rowsort label-2949
SELECT - 86 * + CAST ( - + 92 AS INTEGER )
----
7912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2950
SELECT - COALESCE ( + 53, - 73, NULLIF ( - + 91, + + COUNT( * ) * - 37 ) - - ( CAST( NULL AS SIGNED ) ) )
----
-53

skipif mysql # not compatible
query I rowsort label-2950
SELECT - COALESCE ( + 53, - 73, NULLIF ( - + 91, + + COUNT ( * ) * - 37 ) - - ( CAST ( NULL AS INTEGER ) ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT - 3 - + 2 * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2951
SELECT - 3 - + 2 * + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT SUM( DISTINCT + - 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-2952
SELECT SUM ( DISTINCT + - 84 ) AS col2
----
-84

query I rowsort
SELECT ALL ( + + 95 ) AS col1
----
95

query II rowsort
SELECT DISTINCT ( - 71 ) AS col1, + 36 AS col0
----
-71
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT - + CASE - 47 WHEN - MIN( ALL - - 5 ) THEN 32 / + - MAX( + ( + 45 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2955
SELECT - + CASE - 47 WHEN - MIN ( ALL - - 5 ) THEN 32 / + - MAX ( + ( + 45 ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2956
SELECT DISTINCT COUNT( * ) * - 30 AS col2, + COUNT( + 18 ) AS col1
----
-30
1

skipif mysql # not compatible
query II rowsort label-2956
SELECT DISTINCT COUNT ( * ) * - 30 AS col2, + COUNT ( + 18 ) AS col1
----
-30
1

query I rowsort
SELECT DISTINCT - COALESCE ( 12, + 2, 88 * + 32 + - + 31 )
----
-12

query I rowsort
SELECT + - 53 * 0 + - - 66
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2959
SELECT + COUNT( * ) - 71 AS col1, + CAST( NULL AS SIGNED ) / 70
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-2959
SELECT + COUNT ( * ) - 71 AS col1, + CAST ( NULL AS INTEGER ) / 70
----
-70
NULL

query I rowsort
SELECT ALL 4 * - 76
----
-304

query I rowsort
SELECT - ( 72 ) + + 67 + - ( - ( + - 9 ) ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT + COUNT( * ) + + + 50 * - 5 col0
----
-249

skipif mysql # not compatible
query I rowsort label-2962
SELECT + COUNT ( * ) + + + 50 * - 5 col0
----
-249

query I rowsort
SELECT - + CASE - 11 WHEN - 48 THEN - 47 * - 15 END
----
NULL

query I rowsort
SELECT - - 95 - + 13
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2965
SELECT ALL + MIN( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - + 63
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT + - MAX( ALL 38 ) + + 63 - 34 * + - 37
----
1283

skipif mysql # not compatible
query I rowsort label-2967
SELECT + - MAX ( ALL 38 ) + + 63 - 34 * + - 37
----
1283

onlyif mysql # DIV for integer division: 
query I rowsort label-2968
SELECT ALL 16 DIV - - 25 + - - 40
----
40

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL 16 / - - 25 + - - 40
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2969
SELECT DISTINCT 53 DIV - + COALESCE ( 56, ( - - 34 ) * - 38 - 87 + - 14 + - + CAST( ( + 32 ) AS SIGNED ) ) * MAX( ALL 77 ) + 95
----
95

skipif mysql # not compatible
query I rowsort label-2969
SELECT DISTINCT 53 / - + COALESCE ( 56, ( - - 34 ) * - 38 - 87 + - 14 + - + CAST ( ( + 32 ) AS INTEGER ) ) * MAX ( ALL 77 ) + 95
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2970
SELECT ALL - + 97 DIV + 49 + COUNT( 95 ) + + 41 * NULLIF ( + 4, 1 + + 3 DIV - COUNT( * ) ) + - COUNT( * ) * MAX( - 70 ) AS col2
----
234

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL - + 97 / + 49 + COUNT ( 95 ) + + 41 * NULLIF ( + 4, 1 + + 3 / - COUNT ( * ) ) + - COUNT ( * ) * MAX ( - 70 ) AS col2
----
234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2971
SELECT + 64 + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT + 64 + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2972
SELECT ALL 33 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL 33 / - 62
----
0

query I rowsort
SELECT DISTINCT + + 38 AS col0
----
38

query I rowsort
SELECT - ( + - 29 ) * - COALESCE ( + 24, + 60 ) * - 83 * 14 + + 13 + - + ( - 8 )
----
808773

query I rowsort
SELECT + ( + - ( - 23 ) )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT ALL + 22 DIV + 10 - - - 13 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL + 22 / + 10 - - - 13 AS col2
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2977
SELECT CAST( 48 AS SIGNED ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-2977
SELECT CAST ( 48 AS INTEGER ) AS col0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2978
SELECT + CAST( - 54 AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-2978
SELECT + CAST ( - 54 AS INTEGER )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT + 52 * 33 * + CASE COUNT( * ) WHEN 13 + + 83 THEN - 2 - + ( + 68 ) WHEN + 70 + 30 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2979
SELECT + 52 * 33 * + CASE COUNT ( * ) WHEN 13 + + 83 THEN - 2 - + ( + 68 ) WHEN + 70 + 30 THEN NULL ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT - 58 + + 49 * 8 AS col0, 25
----
334
25

onlyif mysql # aggregate syntax: 
query II rowsort label-2981
SELECT ALL - COALESCE ( + COUNT( + + 17 ), - - 63, - 85 ) * - 54, + 93 col1
----
54
93

skipif mysql # not compatible
query II rowsort label-2981
SELECT ALL - COALESCE ( + COUNT ( + + 17 ), - - 63, - 85 ) * - 54, + 93 col1
----
54
93

query I rowsort
SELECT ( - - 6 )
----
6

query I rowsort
SELECT ALL 76 * - - 54
----
4104

query I rowsort
SELECT DISTINCT + 98 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT ALL + ( MAX( + + 35 ) )
----
35

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL + ( MAX ( + + 35 ) )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT DISTINCT + COUNT( * ) * + 47 - + 2 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT + COUNT ( * ) * + 47 - + 2 AS col1
----
45

query I rowsort
SELECT 64 * 13 * + 0 + - 3
----
-3

query I rowsort
SELECT ( 33 ) AS col2
----
33

query I rowsort
SELECT ( 68 )
----
68

query I rowsort
SELECT ( 35 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT + 86 * - 17 * + MAX( ALL + 70 ) AS col1
----
-102340

skipif mysql # not compatible
query I rowsort label-2991
SELECT + 86 * - 17 * + MAX ( ALL + 70 ) AS col1
----
-102340

onlyif mysql # aggregate syntax: 
query II rowsort label-2992
SELECT ALL + COUNT( * ) AS col1, 86
----
1
86

skipif mysql # not compatible
query II rowsort label-2992
SELECT ALL + COUNT ( * ) AS col1, 86
----
1
86

query I rowsort
SELECT - 75 * - + 32 + - 28 col0
----
2372

query I rowsort
SELECT NULLIF ( 70, + 13 ) col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT COUNT( * ) * - ( COUNT( * ) ) + - 4 + - - 99
----
94

skipif mysql # not compatible
query I rowsort label-2995
SELECT COUNT ( * ) * - ( COUNT ( * ) ) + - 4 + - - 99
----
94

query II rowsort
SELECT 82 - - 67 * 78 AS col1, 62 * + 5 - + ( + 79 )
----
5308
231

query I rowsort
SELECT ALL + 74 * + + 23
----
1702

query I rowsort
SELECT 56 * - 87 AS col2
----
-4872

query I rowsort
SELECT 65 * + 88 col1
----
5720

query I rowsort
SELECT ALL - 45 + - + 84
----
-129

query I rowsort
SELECT 29 + 89 col2
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3002
SELECT ALL - CAST( NULL AS SIGNED ) * + 55 + 21 * - + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL - CAST ( NULL AS INTEGER ) * + 55 + 21 * - + 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT - CASE + ( - - 49 ) WHEN - MIN( + 72 ) THEN + 89 WHEN - + 7 THEN - 53 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3003
SELECT - CASE + ( - - 49 ) WHEN - MIN ( + 72 ) THEN + 89 WHEN - + 7 THEN - 53 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT - - SUM( - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-3004
SELECT - - SUM ( - 46 )
----
-46

query I rowsort
SELECT ALL + 10 + - 94 * - - 68 + 16
----
-6366

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT - - MIN( - - 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-3006
SELECT - - MIN ( - - 99 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ( COALESCE ( - + COUNT( * ), - - 97 + - SUM( - 97 ) ) ) * + 80 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-3007
SELECT ( COALESCE ( - + COUNT ( * ), - - 97 + - SUM ( - 97 ) ) ) * + 80 AS col0
----
-80

query I rowsort
SELECT DISTINCT + 29 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT ALL + COUNT( * ) + + CASE COUNT( * ) WHEN + COUNT( ALL - + 69 ) THEN - + 58 + - 51 ELSE NULL END
----
-108

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL + COUNT ( * ) + + CASE COUNT ( * ) WHEN + COUNT ( ALL - + 69 ) THEN - + 58 + - 51 ELSE NULL END
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3010
SELECT DISTINCT + COUNT( * ) AS col0, + COUNT( ALL + 80 ) * - 2 * + - CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3010
SELECT DISTINCT + COUNT ( * ) AS col0, + COUNT ( ALL + 80 ) * - 2 * + - CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3011
SELECT ALL - + NULLIF ( + - 79, ( - 68 ) * - 32 + CAST( NULL AS DECIMAL ) + + CASE AVG ( DISTINCT + 38 ) WHEN + - COALESCE ( 1, 34 * 30, + 53 ) / CAST( 92 * 80 - + MAX( ALL - 39 ) AS SIGNED ) + - 90 THEN 22 * - ( - ( 59 ) * - COUNT( * ) ) ELSE NULL END )
----
79

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL - + NULLIF ( + - 79, ( - 68 ) * - 32 + CAST ( NULL AS REAL ) + + CASE AVG ( DISTINCT + 38 ) WHEN + - COALESCE ( 1, 34 * 30, + 53 ) / CAST ( 92 * 80 - + MAX ( ALL - 39 ) AS INTEGER ) + - 90 THEN 22 * - ( - ( 59 ) * - COUNT ( * ) ) ELSE NULL END )
----
79

query I rowsort
SELECT - 80 * + 33 + + 42 - + ( + 26 ) AS col2
----
-2624

query II rowsort
SELECT + 74, - 82 * + 38 AS col2
----
74
-3116

query II rowsort
SELECT ALL - 60, + 45 AS col2
----
-60
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3015
SELECT ( + 42 ) DIV + + 99
----
0

skipif mysql # not compatible
query I rowsort label-3015
SELECT ( + 42 ) / + + 99
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3016
SELECT CAST( NULL AS SIGNED ) + - 34 + - - ( - 83 ) AS col0, 74
----
NULL
74

skipif mysql # not compatible
query II rowsort label-3016
SELECT CAST ( NULL AS INTEGER ) + - 34 + - - ( - 83 ) AS col0, 74
----
NULL
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3017
SELECT CASE - - 5 WHEN 15 + 83 THEN NULL WHEN + + CASE 23 WHEN + ( + - COUNT( * ) ) THEN NULL WHEN 6 / ( 25 ) + 1 / + 44 + 19 * - 0 THEN + COUNT( * ) END * + 54 + - 37 * - COUNT( * ) THEN NULL WHEN - 91 * + CAST( NULL AS SIGNED ) + - COALESCE ( - 15, - 3 ) THEN + COALESCE ( - 22, - 97 * 50 ) ELSE NULL END * + 63 - COUNT( * ) * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-3017
SELECT CASE - - 5 WHEN 15 + 83 THEN NULL WHEN + + CASE 23 WHEN + ( + - COUNT ( * ) ) THEN NULL WHEN 6 / ( 25 ) + 1 / + 44 + 19 * - 0 THEN + COUNT ( * ) END * + 54 + - 37 * - COUNT ( * ) THEN NULL WHEN - 91 * + CAST ( NULL AS INTEGER ) + - COALESCE ( - 15, - 3 ) THEN + COALESCE ( - 22, - 97 * 50 ) ELSE NULL END * + 63 - COUNT ( * ) * 12
----
NULL

query I rowsort
SELECT 21 * 74
----
1554

query II rowsort
SELECT + 43 AS col2, + 16
----
43
16

query II rowsort
SELECT 68 AS col1, - 44 AS col0
----
68
-44

query I rowsort
SELECT 75 * - 31
----
-2325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3022
SELECT COALESCE ( + NULLIF ( + - 30, + 12 + 66 ), + COUNT( * ) * 1 + - 65 * + 14 * ( - - 46 ) - - CASE + COUNT( * ) WHEN + 60 THEN NULL WHEN 71 THEN 82 * + CASE 67 WHEN 49 THEN 92 ELSE NULL END ELSE - 42 + CAST( 0 AS SIGNED ) END * CAST( NULL AS SIGNED ) ) * 29
----
-870

skipif mysql # not compatible
query I rowsort label-3022
SELECT COALESCE ( + NULLIF ( + - 30, + 12 + 66 ), + COUNT ( * ) * 1 + - 65 * + 14 * ( - - 46 ) - - CASE + COUNT ( * ) WHEN + 60 THEN NULL WHEN 71 THEN 82 * + CASE 67 WHEN 49 THEN 92 ELSE NULL END ELSE - 42 + CAST ( 0 AS INTEGER ) END * CAST ( NULL AS INTEGER ) ) * 29
----
-870

query I rowsort
SELECT 82 + - 31 - - - 4 AS col0
----
47

query II rowsort
SELECT ALL - 20 AS col0, ( + - 30 ) * - 80
----
-20
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT DISTINCT + 88 + + COUNT( - + 58 )
----
89

skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT + 88 + + COUNT ( - + 58 )
----
89

query I rowsort
SELECT ALL ( 97 ) * + 70
----
6790

query I rowsort
SELECT DISTINCT - 97 AS col2
----
-97

query I rowsort
SELECT ALL + 70 + + 41
----
111

query I rowsort
SELECT DISTINCT 56 * + - ( 44 ) * + CASE + + 18 WHEN + - 39 THEN NULL ELSE + - 90 END
----
221760

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT - CASE - 11 WHEN 18 THEN NULL WHEN - COALESCE ( - + 27, - 45 ) * 94 * + COUNT( * ) / + NULLIF ( 96, + 84 ) - + NULLIF ( + COALESCE ( 79, 45 ), + 82 ) + - 2 THEN NULL WHEN + 65 / + 67 + 10 THEN 91 + 94 * 26 WHEN SUM( 82 ) + - 4 THEN + 85 * 43 + - 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3030
SELECT - CASE - 11 WHEN 18 THEN NULL WHEN - COALESCE ( - + 27, - 45 ) * 94 * + COUNT ( * ) / + NULLIF ( 96, + 84 ) - + NULLIF ( + COALESCE ( 79, 45 ), + 82 ) + - 2 THEN NULL WHEN + 65 / + 67 + 10 THEN 91 + 94 * 26 WHEN SUM ( 82 ) + - 4 THEN + 85 * 43 + - 33 END
----
NULL

query I rowsort
SELECT + 37 * - 68 * + + CASE WHEN NULL = - 57 THEN + 46 / - - 43 END + + 93 * + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT DISTINCT - ( - - COUNT( - 16 ) ) + 62 * 92
----
5703

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT - ( - - COUNT ( - 16 ) ) + 62 * 92
----
5703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3033
SELECT ALL + CAST( NULL AS SIGNED ) + + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 0
----
NULL

query I rowsort
SELECT + 95 * + + 58 * + 78 - - 48 * - 89 AS col0
----
425508

query I rowsort
SELECT - ( COALESCE ( - - 77, - 37 ) ) - 78 col1
----
-155

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT 23 DIV + + 4 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3036
SELECT 23 / + + 4 AS col2
----
5

query I rowsort
SELECT DISTINCT + 44 col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT + COUNT( * ) - - - 8 col1
----
-7

skipif mysql # not compatible
query I rowsort label-3038
SELECT + COUNT ( * ) - - - 8 col1
----
-7

query I rowsort
SELECT 92 - - 82
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT - - NULLIF ( - 16, + - COUNT( * ) ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-3040
SELECT - - NULLIF ( - 16, + - COUNT ( * ) ) AS col0
----
-16

query I rowsort
SELECT + 85 + 20 AS col0
----
105

query I rowsort
SELECT - + 84 AS col1
----
-84

query I rowsort
SELECT - 68 * - + 30 col1
----
2040

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3044
SELECT 25 + - 99 AS col2, + COALESCE ( COUNT( * ), + 53 * + 39 ) DIV 24 - - 8 + + + 79 AS col1
----
-74
87

skipif mysql # not compatible
query II rowsort label-3044
SELECT 25 + - 99 AS col2, + COALESCE ( COUNT ( * ), + 53 * + 39 ) / 24 - - 8 + + + 79 AS col1
----
-74
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3045
SELECT ALL SUM( 24 ) AS col0, 4 * + COUNT( * ) AS col2
----
24
4

skipif mysql # not compatible
query II rowsort label-3045
SELECT ALL SUM ( 24 ) AS col0, 4 * + COUNT ( * ) AS col2
----
24
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3046
SELECT COUNT( * ) * COUNT( ALL + + 37 ) DIV - 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3046
SELECT COUNT ( * ) * COUNT ( ALL + + 37 ) / - 33 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3047
SELECT 9 DIV - CAST( - - 96 AS SIGNED ) + - 41
----
-41

skipif mysql # not compatible
query I rowsort label-3047
SELECT 9 / - CAST ( - - 96 AS INTEGER ) + - 41
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3048
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT CASE - + 67 WHEN - 46 THEN - - 56 * 46 * - 12 * + 74 + - - MIN( DISTINCT 50 ) - + COUNT( * ) WHEN - + 93 * + MAX( + 88 ) + - 32 THEN 16 * - 90 END + + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3049
SELECT CASE - + 67 WHEN - 46 THEN - - 56 * 46 * - 12 * + 74 + - - MIN ( DISTINCT 50 ) - + COUNT ( * ) WHEN - + 93 * + MAX ( + 88 ) + - 32 THEN 16 * - 90 END + + 44
----
NULL

query I rowsort
SELECT 21 * 20 AS col2
----
420

query I rowsort
SELECT DISTINCT + 1 * 60 AS col2
----
60

query I rowsort
SELECT DISTINCT + 8
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3053
SELECT DISTINCT + 47 * 78 + - COALESCE ( 59, + + 5 * MAX( DISTINCT - 48 ) * - NULLIF ( - CASE - ( 79 ) WHEN 9 * CAST( NULL AS SIGNED ) + + 71 * COALESCE ( NULLIF ( ( NULLIF ( 89, + 39 + + 11 ) ), 29 * CASE 16 WHEN - 0 * 93 THEN NULL WHEN 67 * - 79 THEN - ( - 89 ) ELSE NULL END + + CAST( NULL AS DECIMAL ) ), 60 ) THEN + 25 ELSE 55 + COALESCE ( - 15 + 22, 20 ) END, 33 * 92 ) + COUNT( * ), - 47 * - 14 ) + - CAST( NULL AS SIGNED ) * 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT + 47 * 78 + - COALESCE ( 59, + + 5 * MAX ( DISTINCT - 48 ) * - NULLIF ( - CASE - ( 79 ) WHEN 9 * CAST ( NULL AS INTEGER ) + + 71 * COALESCE ( NULLIF ( ( NULLIF ( 89, + 39 + + 11 ) ), 29 * CASE 16 WHEN - 0 * 93 THEN NULL WHEN 67 * - 79 THEN - ( - 89 ) ELSE NULL END + + CAST ( NULL AS REAL ) ), 60 ) THEN + 25 ELSE 55 + COALESCE ( - 15 + 22, 20 ) END, 33 * 92 ) + COUNT ( * ), - 47 * - 14 ) + - CAST ( NULL AS INTEGER ) * 59 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT ALL + CASE - - MAX( - ( - - 64 ) ) WHEN - + 2 THEN + 79 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL + CASE - - MAX ( - ( - - 64 ) ) WHEN - + 2 THEN + 79 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3055
SELECT MIN( DISTINCT + 31 ) AS col1, 38 AS col2
----
31
38

skipif mysql # not compatible
query II rowsort label-3055
SELECT MIN ( DISTINCT + 31 ) AS col1, 38 AS col2
----
31
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3056
SELECT DISTINCT 66 * - 43 * + - CAST( NULL AS SIGNED ) + + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT 66 * - 43 * + - CAST ( NULL AS INTEGER ) + + 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3057
SELECT ALL 41 * + SUM( - 81 ) * - 73 * + 15 + 78 + - 71, - 20 * 64 AS col1
----
3636502
-1280

skipif mysql # not compatible
query II rowsort label-3057
SELECT ALL 41 * + SUM ( - 81 ) * - 73 * + 15 + 78 + - 71, - 20 * 64 AS col1
----
3636502
-1280

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT + SUM( 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-3058
SELECT + SUM ( 14 ) AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3059
SELECT DISTINCT COUNT( * ) * 62 + 7 + CAST( + 75 AS SIGNED )
----
144

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT COUNT ( * ) * 62 + 7 + CAST ( + 75 AS INTEGER )
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT + 85 * + 87 * COUNT( * ) * + COALESCE ( - + 40, - 62 ) AS col1
----
-295800

skipif mysql # not compatible
query I rowsort label-3060
SELECT + 85 * + 87 * COUNT ( * ) * + COALESCE ( - + 40, - 62 ) AS col1
----
-295800

onlyif mysql # DIV for integer division: 
query I rowsort label-3061
SELECT + 3 DIV + - 12 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3061
SELECT + 3 / + - 12 AS col1
----
0

query I rowsort
SELECT ALL + 75 * - 3 + 51 + + 55 + + + 45 * 72 * 23 AS col0
----
74401

onlyif mysql # DIV for integer division: 
query I rowsort label-3063
SELECT ALL + 39 * + 24 + - - ( + 12 ) DIV - + 39 + 16 * + 85
----
2296

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL + 39 * + 24 + - - ( + 12 ) / - + 39 + 16 * + 85
----
2296

query I rowsort
SELECT + - 15
----
-15

query I rowsort
SELECT ALL + 48 col1
----
48

query I rowsort
SELECT ALL + - 41
----
-41

query II rowsort
SELECT DISTINCT + NULLIF ( + 81, - + 59 * - 56 / - 91 ) AS col1, 87
----
81
87

query I rowsort
SELECT + + ( 21 ) + - - ( 59 )
----
80

query I rowsort
SELECT DISTINCT + 91 * + ( - 95 ) AS col1
----
-8645

query II rowsort
SELECT + - 64 * + 78 - + 9 AS col1, 96 AS col2
----
-5001
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3071
SELECT ALL + ( 79 ) * 12 + + - 46 - - COUNT( * ) DIV + 88
----
902

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL + ( 79 ) * 12 + + - 46 - - COUNT ( * ) / + 88
----
902

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3072
SELECT - + 47 + - - CAST( NULL AS SIGNED ) + + - 10 + + + NULLIF ( 59, 49 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT - + 47 + - - CAST ( NULL AS INTEGER ) + + - 10 + + + NULLIF ( 59, 49 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3073
SELECT + 56 * 31 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3073
SELECT + 56 * 31 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 63 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT - - 72 + - COUNT( DISTINCT + 11 )
----
71

skipif mysql # not compatible
query I rowsort label-3075
SELECT - - 72 + - COUNT ( DISTINCT + 11 )
----
71

query I rowsort
SELECT ALL + 51 col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT + + 3 * 61 * COALESCE ( + 51, - 7 ) * 47 + COUNT( * )
----
438652

skipif mysql # not compatible
query I rowsort label-3077
SELECT + + 3 * 61 * COALESCE ( + 51, - 7 ) * 47 + COUNT ( * )
----
438652

query I rowsort
SELECT - + 40 AS col2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-3079
SELECT - 52 + - 94 DIV + ( 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-3079
SELECT - 52 + - 94 / + ( 53 )
----
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3080
SELECT ALL - 75 / + + CAST( NULL AS DECIMAL ) * 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL - 75 / + + CAST ( NULL AS REAL ) * 54 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT - - ( + COUNT( - - 60 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3081
SELECT - - ( + COUNT ( - - 60 ) )
----
1

query I rowsort
SELECT - 10 * + 3 col1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3083
SELECT ALL 53 DIV MAX( 82 ) AS col0, NULLIF ( - 43, - ( COUNT( * ) ) + - 44 ) AS col1
----
0
-43

skipif mysql # not compatible
query II rowsort label-3083
SELECT ALL 53 / MAX ( 82 ) AS col0, NULLIF ( - 43, - ( COUNT ( * ) ) + - 44 ) AS col1
----
0
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT ALL SUM( - 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL SUM ( - 4 ) AS col1
----
-4

query I rowsort
SELECT DISTINCT ( + + 0 ) AS col1
----
0

query I rowsort
SELECT ALL ( + 21 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3087
SELECT + 94 * + 71 * - - 37, - 11 * + COUNT( * ) AS col1
----
246938
-11

skipif mysql # not compatible
query II rowsort label-3087
SELECT + 94 * + 71 * - - 37, - 11 * + COUNT ( * ) AS col1
----
246938
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-3088
SELECT + 11 DIV + 73 * + 71 * 83
----
0

skipif mysql # not compatible
query I rowsort label-3088
SELECT + 11 / + 73 * + 71 * 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT - 17 + + + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-3089
SELECT - 17 + + + COUNT ( * )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3090
SELECT 36 AS col1, 5 + + COUNT( DISTINCT 57 ) - 41 - 29 DIV + 54
----
36
-35

skipif mysql # not compatible
query II rowsort label-3090
SELECT 36 AS col1, 5 + + COUNT ( DISTINCT 57 ) - 41 - 29 / + 54
----
36
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3091
SELECT ALL + CAST( NULL AS SIGNED ) * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL + CAST ( NULL AS INTEGER ) * - 79
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT 15 DIV COALESCE ( CASE + 38 WHEN 94 + - - ( + - 52 ) THEN + 35 END, 20 ) - 87
----
-87

skipif mysql # not compatible
query I rowsort label-3092
SELECT 15 / COALESCE ( CASE + 38 WHEN 94 + - - ( + - 52 ) THEN + 35 END, 20 ) - 87
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3093
SELECT CAST( + + 75 AS SIGNED ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-3093
SELECT CAST ( + + 75 AS INTEGER ) AS col1
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3094
SELECT ALL COUNT( * ) DIV - - 28 + + ( + - 93 ) * 83
----
-7719

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL COUNT ( * ) / - - 28 + + ( + - 93 ) * 83
----
-7719

query I rowsort
SELECT ( - 52 ) AS col2
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-3096
SELECT ALL 62 DIV - + 85 + - ( + + 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL 62 / - + 85 + - ( + + 78 ) AS col0
----
-78

query I rowsort
SELECT ( + + 85 )
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-3098
SELECT ALL + COUNT( * ), ( COUNT( * ) ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-3098
SELECT ALL + COUNT ( * ), ( COUNT ( * ) ) AS col0
----
1
1

query I rowsort
SELECT 16 * - + 37 - ( - - 2 ) AS col2
----
-594

query I rowsort
SELECT ALL 21 * - 60 AS col0
----
-1260

onlyif mysql # aggregate syntax: 
query II rowsort label-3101
SELECT - 27 + - 45 + + - 50 + + + COUNT( * ) AS col1, - 87 - 60 + 73 * - COUNT( * ) * - 70 + - COUNT( * ) * - - ( - + 20 )
----
-121
4983

skipif mysql # not compatible
query II rowsort label-3101
SELECT - 27 + - 45 + + - 50 + + + COUNT ( * ) AS col1, - 87 - 60 + 73 * - COUNT ( * ) * - 70 + - COUNT ( * ) * - - ( - + 20 )
----
-121
4983

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3102
SELECT DISTINCT 31 * + COALESCE ( + - CASE - 90 WHEN - + 30 - + - 73 / 91 THEN 79 * AVG ( DISTINCT + 86 ) + - - 34 + COUNT( * ) ELSE + 43 END, + MIN( - 90 ) ) + CAST( NULL AS SIGNED ) * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3102
SELECT DISTINCT 31 * + COALESCE ( + - CASE - 90 WHEN - + 30 - + - 73 / 91 THEN 79 * AVG ( DISTINCT + 86 ) + - - 34 + COUNT ( * ) ELSE + 43 END, + MIN ( - 90 ) ) + CAST ( NULL AS INTEGER ) * 9
----
NULL

query I rowsort
SELECT ( 63 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT + CASE - + 17 WHEN + 48 THEN + 69 * - 94 / - 41 WHEN - 43 * + AVG ( DISTINCT - 52 ) THEN - + SUM( + 40 ) * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3104
SELECT + CASE - + 17 WHEN + 48 THEN + 69 * - 94 / - 41 WHEN - 43 * + AVG ( DISTINCT - 52 ) THEN - + SUM ( + 40 ) * - COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 62 * + - 97
----
-6014

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL COUNT( * ) * - 16 * 13 + + + 12 col2
----
-196

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL COUNT ( * ) * - 16 * 13 + + + 12 col2
----
-196

query I rowsort
SELECT ( - 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT + NULLIF ( - - COUNT( * ), - + 15 + - + 48 )
----
1

skipif mysql # not compatible
query I rowsort label-3108
SELECT + NULLIF ( - - COUNT ( * ), - + 15 + - + 48 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3109
SELECT - + 92 DIV COALESCE ( COUNT( * ), - 62 + - - 54 ) * 77 * + 87 AS col1
----
-616308

skipif mysql # not compatible
query I rowsort label-3109
SELECT - + 92 / COALESCE ( COUNT ( * ), - 62 + - - 54 ) * 77 * + 87 AS col1
----
-616308

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT + - MIN( - - COALESCE ( 51, + 9 + + + ( - - ( + - 71 ) ) ) ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-3110
SELECT + - MIN ( - - COALESCE ( 51, + 9 + + + ( - - ( + - 71 ) ) ) ) AS col2
----
-51

query I rowsort
SELECT ALL 32 * + + ( + 23 ) + - 95 AS col1
----
641

query I rowsort
SELECT ALL 69 * - - 85 + + 95 AS col1
----
5960

query I rowsort
SELECT ALL + + 8 col0
----
8

query I rowsort
SELECT ALL + + ( 63 )
----
63

query I rowsort
SELECT DISTINCT + + 66
----
66

query I rowsort
SELECT + + COALESCE ( - + ( + 52 ), + + 49 * + - 31 ) * - 92 - + + 31 AS col1
----
4753

onlyif mysql # DIV for integer division: 
query I rowsort label-3117
SELECT + 58 DIV 97 - - 57 * + + 11 AS col2
----
627

skipif mysql # not compatible
query I rowsort label-3117
SELECT + 58 / 97 - - 57 * + + 11 AS col2
----
627

query I rowsort
SELECT + 28 * 26 / + - ( ( + CASE - 88 WHEN - ( ( 74 ) ) + + - 55 * + 77 THEN - + 2 ELSE NULL END ) )
----
NULL

query I rowsort
SELECT + + 16 + - + 12
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT - - CASE + - 19 WHEN - 23 - + + 52 THEN NULL WHEN - 50 + 9 THEN + COUNT( * ) WHEN - + 4 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3120
SELECT - - CASE + - 19 WHEN - 23 - + + 52 THEN NULL WHEN - 50 + 9 THEN + COUNT ( * ) WHEN - + 4 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 99 AS col1
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3122
SELECT DISTINCT COUNT( * ), + CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3122
SELECT DISTINCT COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

query I rowsort
SELECT + - 91 * - + 99
----
9009

query I rowsort
SELECT DISTINCT + 6 AS col0
----
6

query I rowsort
SELECT DISTINCT ( + 23 ) AS col2
----
23

query I rowsort
SELECT + 94 + + 74
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT + COUNT( * ) - - 75
----
76

skipif mysql # not compatible
query I rowsort label-3127
SELECT + COUNT ( * ) - - 75
----
76

query I rowsort
SELECT - ( 1 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT + 70 * - COUNT( + - 30 )
----
-70

skipif mysql # not compatible
query I rowsort label-3129
SELECT + 70 * - COUNT ( + - 30 )
----
-70

query I rowsort
SELECT - 76 * 30 AS col2
----
-2280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3131
SELECT + 88 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT + 88 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 28 AS col1
----
-28

query I rowsort
SELECT - 80 AS col0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3134
SELECT ( ( - 90 ) ) + + + CAST( NULL AS SIGNED ) + + 79 + - 34 * - ( 78 ) / 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3134
SELECT ( ( - 90 ) ) + + + CAST ( NULL AS INTEGER ) + + 79 + - 34 * - ( 78 ) / 45
----
NULL

query I rowsort
SELECT - 83 AS col1
----
-83

query II rowsort
SELECT ALL - 56 + 33 AS col1, + 78
----
-23
78

onlyif mysql # aggregate syntax: 
query II rowsort label-3137
SELECT COUNT( * ) + + - COALESCE ( - + 93, - 72, COUNT( * ) + + 35, 64 ) AS col1, 45 AS col0
----
94
45

skipif mysql # not compatible
query II rowsort label-3137
SELECT COUNT ( * ) + + - COALESCE ( - + 93, - 72, COUNT ( * ) + + 35, 64 ) AS col1, 45 AS col0
----
94
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT DISTINCT - COUNT( * ) * + 97
----
-97

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT - COUNT ( * ) * + 97
----
-97

query I rowsort
SELECT ALL 98 + + 81 * - 72
----
-5734

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT DISTINCT 57 + - MIN( ALL 16 )
----
41

skipif mysql # not compatible
query I rowsort label-3140
SELECT DISTINCT 57 + - MIN ( ALL 16 )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3141
SELECT 81 DIV + 48
----
1

skipif mysql # not compatible
query I rowsort label-3141
SELECT 81 / + 48
----
1

query I rowsort
SELECT DISTINCT + 38 + 43
----
81

query II rowsort
SELECT ALL - 84 + - - 14 AS col2, 26 * + ( - 15 ) * + 64 * ( 12 ) col0
----
-70
-299520

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT + COUNT( * ) * + 45 + + 78 AS col1
----
123

skipif mysql # not compatible
query I rowsort label-3144
SELECT + COUNT ( * ) * + 45 + + 78 AS col1
----
123

query I rowsort
SELECT 65 * + 61
----
3965

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT ALL - COALESCE ( COUNT( * ), + - SUM( ALL 33 ) + + 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL - COALESCE ( COUNT ( * ), + - SUM ( ALL 33 ) + + 61 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3147
SELECT + ( - 47 ) DIV - + 42 + - - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3147
SELECT + ( - 47 ) / - + 42 + - - COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT 74 * - - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-3148
SELECT 74 * - - COUNT ( * )
----
74

query I rowsort
SELECT 81 + - - 1
----
82

query I rowsort
SELECT DISTINCT - - 14
----
14

query I rowsort
SELECT ALL - + 34 - + - 29 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT - 62 * - + 40 * COUNT( * ) * + 73 * - COUNT( + 92 ) * COUNT( * ) * 14
----
-2534560

skipif mysql # not compatible
query I rowsort label-3152
SELECT - 62 * - + 40 * COUNT ( * ) * + 73 * - COUNT ( + 92 ) * COUNT ( * ) * 14
----
-2534560

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT DISTINCT - + MIN( ALL 18 ) - - + 8 - - - 28 * + + 32 * + + COUNT( * ) AS col0
----
-906

skipif mysql # not compatible
query I rowsort label-3153
SELECT DISTINCT - + MIN ( ALL 18 ) - - + 8 - - - 28 * + + 32 * + + COUNT ( * ) AS col0
----
-906

query I rowsort
SELECT - 79 AS col0
----
-79

query I rowsort
SELECT ALL - + 54
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3156
SELECT ALL - COUNT( * ) * ( ( - CASE - 81 WHEN + + 38 + 50 THEN + 17 + - 75 * - COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL - COUNT ( * ) * ( ( - CASE - 81 WHEN + + 38 + 50 THEN + 17 + - 75 * - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END ) )
----
NULL

query I rowsort
SELECT - 29 * 20 AS col2
----
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT 44 + MAX( + 70 )
----
114

skipif mysql # not compatible
query I rowsort label-3158
SELECT 44 + MAX ( + 70 )
----
114

query I rowsort
SELECT + 38 + + - 38 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT DISTINCT - - 92 * + MIN( DISTINCT - - 38 )
----
3496

skipif mysql # not compatible
query I rowsort label-3160
SELECT DISTINCT - - 92 * + MIN ( DISTINCT - - 38 )
----
3496

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT - + 73 * - - 28 * + 30 * MAX( + + 26 ) + + COUNT( * ) AS col1
----
-1594319

skipif mysql # not compatible
query I rowsort label-3161
SELECT - + 73 * - - 28 * + 30 * MAX ( + + 26 ) + + COUNT ( * ) AS col1
----
-1594319

query I rowsort
SELECT + 21 - 1 + + 86
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3163
SELECT 36 * 46 + + MIN( 9 ) DIV - 47 col2
----
1656

skipif mysql # not compatible
query I rowsort label-3163
SELECT 36 * 46 + + MIN ( 9 ) / - 47 col2
----
1656

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3164
SELECT + 65 + + CASE - + 73 WHEN - 82 * COUNT( ALL 45 ) - + ( CAST( NULL AS DECIMAL ) ) THEN NULL WHEN + 6 + + COALESCE ( 33, - + COUNT( * ), + 26 ) THEN - 56 + 42 / NULLIF ( 40 + 52 / - 77, + 54 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3164
SELECT + 65 + + CASE - + 73 WHEN - 82 * COUNT ( ALL 45 ) - + ( CAST ( NULL AS REAL ) ) THEN NULL WHEN + 6 + + COALESCE ( 33, - + COUNT ( * ), + 26 ) THEN - 56 + 42 / NULLIF ( 40 + 52 / - 77, + 54 ) END AS col0
----
NULL

query I rowsort
SELECT ALL - - 4 AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3166
SELECT DISTINCT + NULLIF ( + 37, - 79 * + 42 * 93 + + ( MAX( - + CAST( NULL AS SIGNED ) ) ) ) * 23, 46 * ( + ( ( - 51 ) ) ) AS col0
----
851
-2346

skipif mysql # not compatible
query II rowsort label-3166
SELECT DISTINCT + NULLIF ( + 37, - 79 * + 42 * 93 + + ( MAX ( - + CAST ( NULL AS INTEGER ) ) ) ) * 23, 46 * ( + ( ( - 51 ) ) ) AS col0
----
851
-2346

query I rowsort
SELECT - 87 + + 7
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-3168
SELECT 16 DIV - - 47
----
0

skipif mysql # not compatible
query I rowsort label-3168
SELECT 16 / - - 47
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3169
SELECT DISTINCT - CAST( + 70 AS SIGNED ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT - CAST ( + 70 AS INTEGER ) AS col0
----
-70

query I rowsort
SELECT NULLIF ( - 70, 71 )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3171
SELECT ALL SUM( DISTINCT - - 12 ) / + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL SUM ( DISTINCT - - 12 ) / + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT COUNT( * ) * - 31 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-3172
SELECT COUNT ( * ) * - 31 AS col2
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-3173
SELECT DISTINCT 99 DIV 10 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-3173
SELECT DISTINCT 99 / 10 AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3174
SELECT ALL 58 + + 74 + - 3 * - CAST( 0 AS SIGNED ) * - 68 + - 39 + 99 AS col1
----
192

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL 58 + + 74 + - 3 * - CAST ( 0 AS INTEGER ) * - 68 + - 39 + 99 AS col1
----
192

query I rowsort
SELECT DISTINCT 93 + + 87
----
180

query I rowsort
SELECT - 83 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-3177
SELECT DISTINCT 84 AS col1, + 30 * - COUNT( * )
----
84
-30

skipif mysql # not compatible
query II rowsort label-3177
SELECT DISTINCT 84 AS col1, + 30 * - COUNT ( * )
----
84
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT ALL COUNT( * ) + - 90 col2
----
-89

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL COUNT ( * ) + - 90 col2
----
-89

query I rowsort
SELECT DISTINCT 39
----
39

query I rowsort
SELECT ALL 92 + + 96 col1
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT 65 - 56 + + + 65 - - 0 + - 63 + - - 84 * + 80 + - 1 * + 55 + COUNT( * ) AS col2
----
6677

skipif mysql # not compatible
query I rowsort label-3181
SELECT 65 - 56 + + + 65 - - 0 + - 63 + - - 84 * + 80 + - 1 * + 55 + COUNT ( * ) AS col2
----
6677

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3182
SELECT + CASE - 64 WHEN 91 * 84 * 60 THEN COALESCE ( COUNT( * ), + 10, + + 44 ) + - NULLIF ( + 54, - CAST( NULL AS SIGNED ) - + - CASE - 79 WHEN - 40 * + 52 THEN NULL ELSE 32 * ( + 80 ) END ) DIV 18 ELSE 54 END DIV COUNT( + 19 * 91 ) - + 24 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3182
SELECT + CASE - 64 WHEN 91 * 84 * 60 THEN COALESCE ( COUNT ( * ), + 10, + + 44 ) + - NULLIF ( + 54, - CAST ( NULL AS INTEGER ) - + - CASE - 79 WHEN - 40 * + 52 THEN NULL ELSE 32 * ( + 80 ) END ) / 18 ELSE 54 END / COUNT ( + 19 * 91 ) - + 24 AS col1
----
30

query I rowsort
SELECT 84 - + 9 col1
----
75

query II rowsort
SELECT DISTINCT - 23 AS col0, 1
----
-23
1

query I rowsort
SELECT ALL + + 69 * 38
----
2622

query I rowsort
SELECT DISTINCT - 4 * + - ( - 32 )
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3187
SELECT ALL - - 30, 13 * - COUNT( * ) * + CASE - + CAST( NULL AS SIGNED ) WHEN - 7 THEN + 39 * 30 * - 18 WHEN ( + 87 ) * - 31 + - 97 + CASE 41 WHEN COUNT( * ) THEN - ( COUNT( * ) ) / 28 END + + 10 * - CAST( - 56 * CASE + 7 WHEN - 43 THEN + ( 24 ) WHEN + 97 + - 46 THEN 14 + 1 END AS DECIMAL ) THEN - 8 ELSE NULL END AS col0
----
30
NULL

skipif mysql # not compatible
query II rowsort label-3187
SELECT ALL - - 30, 13 * - COUNT ( * ) * + CASE - + CAST ( NULL AS INTEGER ) WHEN - 7 THEN + 39 * 30 * - 18 WHEN ( + 87 ) * - 31 + - 97 + CASE 41 WHEN COUNT ( * ) THEN - ( COUNT ( * ) ) / 28 END + + 10 * - CAST ( - 56 * CASE + 7 WHEN - 43 THEN + ( 24 ) WHEN + 97 + - 46 THEN 14 + 1 END AS REAL ) THEN - 8 ELSE NULL END AS col0
----
30
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT ALL + - COUNT( * ) * - + ( + - 82 ) col0
----
-82

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL + - COUNT ( * ) * - + ( + - 82 ) col0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3189
SELECT CAST( NULL AS SIGNED ) * - - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT CAST ( NULL AS INTEGER ) * - - 69 AS col0
----
NULL

query I rowsort
SELECT + 96 * + - ( + + 55 )
----
-5280

query I rowsort
SELECT ALL - COALESCE ( + 16, - - 97 )
----
-16

query I rowsort
SELECT ( - - 22 ) AS col0
----
22

query I rowsort
SELECT - - 83 * 33 * - 18 - - 17 + - 92 + - 87 * + 46 * + 1 + - 17
----
-53396

onlyif mysql # DIV for integer division: 
query I rowsort label-3194
SELECT + 10 DIV 22 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3194
SELECT + 10 / 22 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3195
SELECT DISTINCT - 52 * + 75 / + COUNT( * ) + + - CASE + 2 WHEN - + 64 * - 28 THEN - 42 END - CAST( - + COUNT( ( 7 ) ) AS SIGNED ) + - 82 * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3195
SELECT DISTINCT - 52 * + 75 / + COUNT ( * ) + + - CASE + 2 WHEN - + 64 * - 28 THEN - 42 END - CAST ( - + COUNT ( ( 7 ) ) AS INTEGER ) + - 82 * 51
----
NULL

query I rowsort
SELECT DISTINCT - 79 col2
----
-79

query I rowsort
SELECT - 63 * + 96
----
-6048

onlyif mysql # aggregate syntax: 
query II rowsort label-3198
SELECT 27, + 98 * CASE - COALESCE ( + 56, 44 ) WHEN - 17 THEN + + CASE - COUNT( ALL 97 ) WHEN - 34 * - 26 + + MIN( ALL + 74 ) THEN + - COUNT( * ) END ELSE + 47 * - CASE MIN( ALL + ( + ( 32 ) ) ) * + 2 WHEN COUNT( * ) THEN NULL WHEN 34 THEN 26 END END * 22 AS col2
----
27
NULL

skipif mysql # not compatible
query II rowsort label-3198
SELECT 27, + 98 * CASE - COALESCE ( + 56, 44 ) WHEN - 17 THEN + + CASE - COUNT ( ALL 97 ) WHEN - 34 * - 26 + + MIN ( ALL + 74 ) THEN + - COUNT ( * ) END ELSE + 47 * - CASE MIN ( ALL + ( + ( 32 ) ) ) * + 2 WHEN COUNT ( * ) THEN NULL WHEN 34 THEN 26 END END * 22 AS col2
----
27
NULL

query I rowsort
SELECT ALL - 38 + - 12
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3200
SELECT ALL - CASE 66 WHEN - 63 THEN - CAST( - + 75 AS SIGNED ) WHEN + COUNT( * ) THEN - - 42 / + SUM( DISTINCT 56 ) * - 4 + + 89 + - 12 * - - 0 + + + 26 WHEN + 54 THEN ( - 35 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL - CASE 66 WHEN - 63 THEN - CAST ( - + 75 AS INTEGER ) WHEN + COUNT ( * ) THEN - - 42 / + SUM ( DISTINCT 56 ) * - 4 + + 89 + - 12 * - - 0 + + + 26 WHEN + 54 THEN ( - 35 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - - ( + 21 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT 61 * + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-3202
SELECT 61 * + COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-3203
SELECT + NULLIF ( - ( + - MAX( 35 ) ), - - 13 ), + 32 AS col2
----
35
32

skipif mysql # not compatible
query II rowsort label-3203
SELECT + NULLIF ( - ( + - MAX ( 35 ) ), - - 13 ), + 32 AS col2
----
35
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT ( MAX( + - 47 ) )
----
-47

skipif mysql # not compatible
query I rowsort label-3204
SELECT ( MAX ( + - 47 ) )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT ALL - + ( - COUNT( * ) ) + + SUM( 9 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL - + ( - COUNT ( * ) ) + + SUM ( 9 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT ALL + 55 + + - COUNT( DISTINCT - + 67 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL + 55 + + - COUNT ( DISTINCT - + 67 ) AS col1
----
54

query I rowsort
SELECT - 64 + + 87
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3208
SELECT DISTINCT + CAST( + + 83 AS SIGNED ) + NULLIF ( - - COALESCE ( 67, - 16 * + COUNT( * ) + 52 + + + ( - 69 ) + - + 26 * 13 + - 81 ), 29 )
----
150

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT + CAST ( + + 83 AS INTEGER ) + NULLIF ( - - COALESCE ( 67, - 16 * + COUNT ( * ) + 52 + + + ( - 69 ) + - + 26 * 13 + - 81 ), 29 )
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3209
SELECT ALL 52 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL 52 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 56 + + NULLIF ( - - 20, - 95 ) AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3211
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 21 * - 37 + + 48 * - + COUNT( 3 ) AS col0, + 21 + - 37 AS col1
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-3211
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 21 * - 37 + + 48 * - + COUNT ( 3 ) AS col0, + 21 + - 37 AS col1
----
NULL
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ALL 5 + - ( - COUNT( * ) )
----
6

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL 5 + - ( - COUNT ( * ) )
----
6

query I rowsort
SELECT + 10 - - ( + ( - 13 ) )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3214
SELECT + CAST( - + 4 AS SIGNED ) + - 76 + 9 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-3214
SELECT + CAST ( - + 4 AS INTEGER ) + - 76 + 9 AS col1
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3215
SELECT + CAST( NULL AS SIGNED ) * + + 70 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3215
SELECT + CAST ( NULL AS INTEGER ) * + + 70 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3216
SELECT DISTINCT 10 DIV - NULLIF ( - + 14, - CASE + - 25 WHEN + + 74 THEN NULL WHEN - 57 THEN + CAST( - 11 AS SIGNED ) - + ( + 79 ) DIV - 2 ELSE - COUNT( * ) DIV - SUM( - 78 ) * + + 10 END * - 9 + - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT 10 / - NULLIF ( - + 14, - CASE + - 25 WHEN + + 74 THEN NULL WHEN - 57 THEN + CAST ( - 11 AS INTEGER ) - + ( + 79 ) / - 2 ELSE - COUNT ( * ) / - SUM ( - 78 ) * + + 10 END * - 9 + - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3217
SELECT - MAX( - 81 ) + - 55 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3217
SELECT - MAX ( - 81 ) + - 55 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - NULLIF ( + + 39, 89 * - 62 + + 84 * + 34 + + 40 ) AS col2
----
-39

query II rowsort
SELECT 76 AS col0, + 25 col0
----
76
25

query I rowsort
SELECT ALL 45 * + - 84
----
-3780

query I rowsort
SELECT - 51 + - 5 AS col0
----
-56

query II rowsort
SELECT + 56 - + + 19 AS col1, COALESCE ( + + 34, 20 + + 99 ) AS col0
----
37
34

query I rowsort
SELECT DISTINCT NULLIF ( + 72, + 55 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT ALL COUNT( * ) * 87
----
87

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL COUNT ( * ) * 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT + COALESCE ( - 90, + + 75 ) * - - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-3225
SELECT + COALESCE ( - 90, + + 75 ) * - - COUNT ( * )
----
-90

query I rowsort
SELECT ALL ( + + 76 )
----
76

query I rowsort
SELECT ALL ( + + 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT DISTINCT 68 - - COUNT( * ) * + 83
----
151

skipif mysql # not compatible
query I rowsort label-3228
SELECT DISTINCT 68 - - COUNT ( * ) * + 83
----
151

query I rowsort
SELECT ALL 15 AS col2
----
15

query II rowsort
SELECT ALL 66 col1, 22 * + 32
----
66
704

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT + + 80 + + - NULLIF ( 31, + - 71 + + 47 - + 91 ) * - 54 + + 90 + + + COALESCE ( + + 39, - + 70 + 42 ) + + - ( - 3 ) DIV 85
----
1883

skipif mysql # not compatible
query I rowsort label-3231
SELECT + + 80 + + - NULLIF ( 31, + - 71 + + 47 - + 91 ) * - 54 + + 90 + + + COALESCE ( + + 39, - + 70 + 42 ) + + - ( - 3 ) / 85
----
1883

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT ALL + 75 * - COUNT( 52 ) + - 90 + - 90
----
-255

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL + 75 * - COUNT ( 52 ) + - 90 + - 90
----
-255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3233
SELECT - + CAST( + COUNT( * ) AS SIGNED ) * + - 9 * + AVG ( 75 ) + CAST( NULL AS SIGNED ) * - - 42 * 91 / CAST( NULL AS SIGNED ) / + + COALESCE ( - 48, - + 2 + 81 ) - - 5 * + + 15 * - MIN( - 48 ) + - MAX( DISTINCT - 17 + + 71 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3233
SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) * + - 9 * + AVG ( 75 ) + CAST ( NULL AS INTEGER ) * - - 42 * 91 / CAST ( NULL AS INTEGER ) / + + COALESCE ( - 48, - + 2 + 81 ) - - 5 * + + 15 * - MIN ( - 48 ) + - MAX ( DISTINCT - 17 + + 71 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT + NULLIF ( - 1, CASE 80 WHEN + 90 * 71 * + - 67 * - + 71 THEN - 87 / + 60 END * 93 + - + 56 * + + 69 + - COUNT( + 50 ) + 29 * 5 + - 8 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3234
SELECT + NULLIF ( - 1, CASE 80 WHEN + 90 * 71 * + - 67 * - + 71 THEN - 87 / + 60 END * 93 + - + 56 * + + 69 + - COUNT ( + 50 ) + 29 * 5 + - 8 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3235
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3235
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - 42
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3236
SELECT + - COUNT( * ) col1, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-3236
SELECT + - COUNT ( * ) col1, COUNT ( * )
----
-1
1

query I rowsort
SELECT DISTINCT + + 59 AS col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3239
SELECT ALL + 0 * + ( + 21 ) * - CASE + 79 WHEN + 38 + + 23 + 98 + 11 * + + CAST( NULL AS SIGNED ) THEN NULL WHEN 3 + 73 THEN + ( + + 23 ) * 85 ELSE + + 11 END + 29 + + 85 * 14 + 39 AS col2
----
1258

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL + 0 * + ( + 21 ) * - CASE + 79 WHEN + 38 + + 23 + 98 + 11 * + + CAST ( NULL AS INTEGER ) THEN NULL WHEN 3 + 73 THEN + ( + + 23 ) * 85 ELSE + + 11 END + 29 + + 85 * 14 + 39 AS col2
----
1258

query I rowsort
SELECT ALL 77 * + - 90
----
-6930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3241
SELECT + 47 / + - 26 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3241
SELECT + 47 / + - 26 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT ALL - 92 * 7 + COUNT( * ) * - + 87
----
-731

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL - 92 * 7 + COUNT ( * ) * - + 87
----
-731

query I rowsort
SELECT ALL 62 * + 75 + + 85
----
4735

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3244
SELECT ( + 11 ) * - 15 + - COUNT( * ) + + MIN( ALL + 94 ) + NULLIF ( - COALESCE ( 37, - - 96 * - 87 * - 98 ), - SUM( + 53 ) ) DIV COUNT( * )
----
-109

skipif mysql # not compatible
query I rowsort label-3244
SELECT ( + 11 ) * - 15 + - COUNT ( * ) + + MIN ( ALL + 94 ) + NULLIF ( - COALESCE ( 37, - - 96 * - 87 * - 98 ), - SUM ( + 53 ) ) / COUNT ( * )
----
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3245
SELECT ALL - 98 * + 95 * SUM( - 48 ) DIV - - COUNT( * ) AS col1
----
446880

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL - 98 * + 95 * SUM ( - 48 ) / - - COUNT ( * ) AS col1
----
446880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3246
SELECT - CAST( + + COUNT( * ) AS SIGNED ) * - 55 * - 32 + - - ( + 4 ) + MIN( + 21 ) + - 9 + - 31 * - 50 * + + 20
----
29256

skipif mysql # not compatible
query I rowsort label-3246
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) * - 55 * - 32 + - - ( + 4 ) + MIN ( + 21 ) + - 9 + - 31 * - 50 * + + 20
----
29256

query I rowsort
SELECT - 96 + + 51 - 41
----
-86

query I rowsort
SELECT + 36 + + 95
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT + - COUNT( * ) * - + 29 * + 38
----
1102

skipif mysql # not compatible
query I rowsort label-3249
SELECT + - COUNT ( * ) * - + 29 * + 38
----
1102

query I rowsort
SELECT - 74 * ( 53 ) * - + 58 + 67 AS col2
----
227543

query II rowsort
SELECT DISTINCT + 97 AS col0, + 93 - + + 15 AS col0
----
97
78

query I rowsort
SELECT DISTINCT 88 * 34 col0
----
2992

query I rowsort
SELECT ALL - COALESCE ( + - COALESCE ( - 78, - - 4, + 51 ), + 91 ) * - - 44 + + 24 AS col2
----
-3408

query I rowsort
SELECT DISTINCT ( + NULLIF ( - 59, + + 34 ) ) AS col1
----
-59

query I rowsort
SELECT - 76 col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT ALL ( - + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL ( - + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3257
SELECT - ( + - 50 ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3257
SELECT - ( + - 50 ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3258
SELECT ALL 3 * - 27 * - 57 - - COUNT( * ) + + CASE - CASE - - 5 WHEN + 86 THEN NULL WHEN - 73 + 34 + + COUNT( * ) THEN CAST( NULL AS SIGNED ) ELSE - COUNT( * ) END WHEN COUNT( * ) THEN NULL ELSE - - 55 END / - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL 3 * - 27 * - 57 - - COUNT ( * ) + + CASE - CASE - - 5 WHEN + 86 THEN NULL WHEN - 73 + 34 + + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) ELSE - COUNT ( * ) END WHEN COUNT ( * ) THEN NULL ELSE - - 55 END / - 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT ALL NULLIF ( - 14, + + ( - 80 ) + COUNT( * ) * - + 69 )
----
-14

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL NULLIF ( - 14, + + ( - 80 ) + COUNT ( * ) * - + 69 )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3260
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) * + 66 + 46 - - 79 * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3260
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + 66 + 46 - - 79 * 82
----
NULL

query I rowsort
SELECT DISTINCT ( + 4 ) AS col0
----
4

query I rowsort
SELECT ALL + 25 * 14 AS col1
----
350

query I rowsort
SELECT - ( - 72 ) * - 8
----
-576

query I rowsort
SELECT - 81 * - + 49 AS col2
----
3969

query I rowsort
SELECT DISTINCT + 34 * + 74 * - 1 col2
----
-2516

query I rowsort
SELECT ALL - 25 * - 20 AS col1
----
500

onlyif mysql # aggregate syntax: 
query II rowsort label-3267
SELECT DISTINCT - 8 * + COUNT( * ) AS col1, + COALESCE ( 3, + - 42 * - 79 + 38, - COUNT( * ) ) AS col0
----
-8
3

skipif mysql # not compatible
query II rowsort label-3267
SELECT DISTINCT - 8 * + COUNT ( * ) AS col1, + COALESCE ( 3, + - 42 * - 79 + 38, - COUNT ( * ) ) AS col0
----
-8
3

query II rowsort
SELECT ALL ( + + 14 ), + 80 AS col1
----
14
80

query I rowsort
SELECT + 15 + - 58 + - - 3 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT - CASE 44 WHEN + 6 + - + 76 THEN 14 / - + 89 * + 95 + + + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3270
SELECT - CASE 44 WHEN + 6 + - + 76 THEN 14 / - + 89 * + 95 + + + COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - + 50 AS col0
----
-50

query I rowsort
SELECT + 56 * - + 4 AS col0
----
-224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3273
SELECT ALL - 54 DIV 52 + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL - 54 / 52 + - COUNT ( * )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3274
SELECT - 95 - + - CAST( NULL AS SIGNED ) + - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3274
SELECT - 95 - + - CAST ( NULL AS INTEGER ) + - 48 AS col2
----
NULL

query I rowsort
SELECT - + 32 * + 49 AS col2
----
-1568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3276
SELECT - - COUNT( 19 ) DIV + MIN( + - 15 ) - - - 52 - - + 78
----
26

skipif mysql # not compatible
query I rowsort label-3276
SELECT - - COUNT ( 19 ) / + MIN ( + - 15 ) - - - 52 - - + 78
----
26

query I rowsort
SELECT ALL + + 48 AS col1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3278
SELECT ALL + + 39 DIV + 13 + - 69 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL + + 39 / + 13 + - 69 AS col2
----
-66

query I rowsort
SELECT ALL + 2 * 58
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3280
SELECT ALL - 52 DIV + COALESCE ( + 92, - + 48 ) + + COUNT( - ( + 75 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL - 52 / + COALESCE ( + 92, - + 48 ) + + COUNT ( - ( + 75 ) ) AS col2
----
1

query I rowsort
SELECT + + 45 AS col0
----
45

query I rowsort
SELECT ALL ( + 85 ) + 61
----
146

query I rowsort
SELECT + 16 col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT + MIN( 20 ) * + + 76 + + + 38
----
1558

skipif mysql # not compatible
query I rowsort label-3284
SELECT + MIN ( 20 ) * + + 76 + + + 38
----
1558

query I rowsort
SELECT ALL - 75 + + + 76 AS col0
----
1

query I rowsort
SELECT ALL 21 + - - 65 + + + 51 * - 71 AS col1
----
-3535

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT DISTINCT 70 * - COUNT( * ) * - 66
----
4620

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT 70 * - COUNT ( * ) * - 66
----
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT 69 * + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-3288
SELECT 69 * + COUNT ( * )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3289
SELECT ALL 99 DIV 93 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL 99 / 93 AS col0
----
1

query I rowsort
SELECT ALL - 14 col1
----
-14

query I rowsort
SELECT ALL - 20 AS col2
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3292
SELECT ALL 69 * - + CASE - 52 WHEN - - 39 THEN + 17 WHEN + 25 THEN - + 37 * - 20 * + CAST( NULL AS DECIMAL ) END * - 21 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL 69 * - + CASE - 52 WHEN - - 39 THEN + 17 WHEN + 25 THEN - + 37 * - 20 * + CAST ( NULL AS REAL ) END * - 21 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT 65 + + 11 * COUNT( * ) * + 57 AS col0
----
692

skipif mysql # not compatible
query I rowsort label-3293
SELECT 65 + + 11 * COUNT ( * ) * + 57 AS col0
----
692

onlyif mysql # DIV for integer division: 
query I rowsort label-3294
SELECT 0 DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-3294
SELECT 0 / - 41
----
0

query I rowsort
SELECT DISTINCT 75 * - 33
----
-2475

query II rowsort
SELECT DISTINCT 92 * + 14 * - 29 AS col2, - 9 AS col1
----
-37352
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3297
SELECT 9 + COUNT( 1 ) DIV 57 * + COUNT( * ) col2
----
9

skipif mysql # not compatible
query I rowsort label-3297
SELECT 9 + COUNT ( 1 ) / 57 * + COUNT ( * ) col2
----
9

query I rowsort
SELECT 84 * + - 13 AS col2
----
-1092

query I rowsort
SELECT 19 + - 26
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT 25 * - CASE + 43 WHEN - 40 + + COUNT( * ) * + - 12 THEN + 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3300
SELECT 25 * - CASE + 43 WHEN - 40 + + COUNT ( * ) * + - 12 THEN + 67 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL + COUNT( * ) + + - COALESCE ( + COUNT( * ), - - 40 + COUNT( * ) + - CASE + 75 WHEN 67 THEN + 80 END, 22 * - MIN( + 35 ) ) * + + SUM( - 32 )
----
33

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL + COUNT ( * ) + + - COALESCE ( + COUNT ( * ), - - 40 + COUNT ( * ) + - CASE + 75 WHEN 67 THEN + 80 END, 22 * - MIN ( + 35 ) ) * + + SUM ( - 32 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT COUNT( - 90 ) + - 85 + - 30
----
-114

skipif mysql # not compatible
query I rowsort label-3302
SELECT COUNT ( - 90 ) + - 85 + - 30
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT DISTINCT - - ( - 40 ) + - 40 + - - 69 * MAX( DISTINCT - 20 ) * 20
----
-27680

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT - - ( - 40 ) + - 40 + - - 69 * MAX ( DISTINCT - 20 ) * 20
----
-27680

query I rowsort
SELECT DISTINCT + - 70 + + + 27
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-3305
SELECT ALL - - 7 + - 28 DIV 39 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL - - 7 + - 28 / 39 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT DISTINCT + 73 + - + ( - - ( + 60 ) ) + - - MAX( DISTINCT - 42 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT + 73 + - + ( - - ( + 60 ) ) + - - MAX ( DISTINCT - 42 ) AS col2
----
-29

query I rowsort
SELECT 36 + - 62 AS col2
----
-26

query I rowsort
SELECT ( - + 28 )
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3309
SELECT DISTINCT + - 78 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT + - 78 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 15 + ( - + 91 ) * + 33 * + - 76 + + - NULLIF ( + 15, - 76 )
----
228228

query I rowsort
SELECT ALL + + 28 + + + 29 * + 56 AS col1
----
1652

query I rowsort
SELECT ALL - + 48 AS col1
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3313
SELECT - 94 DIV + 48 + + 21, COUNT( * ) AS col1
----
20
1

skipif mysql # not compatible
query II rowsort label-3313
SELECT - 94 / + 48 + + 21, COUNT ( * ) AS col1
----
20
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3314
SELECT DISTINCT - CAST( + - COUNT( * ) AS SIGNED ) - 30 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER ) - 30 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT ALL - COUNT( * ) * 74
----
-74

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL - COUNT ( * ) * 74
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT + COUNT( * ) + - NULLIF ( + 35, + 66 )
----
-34

skipif mysql # not compatible
query I rowsort label-3316
SELECT + COUNT ( * ) + - NULLIF ( + 35, + 66 )
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-3317
SELECT ALL + - 98 DIV - - 68
----
-1

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL + - 98 / - - 68
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3318
SELECT DISTINCT CASE WHEN ( 80 ) < NULL THEN + - CAST( - COUNT( * ) AS SIGNED ) ELSE NULL END - CASE - 22 WHEN - COUNT( * ) + + COUNT( 65 ) THEN 84 ELSE NULL END * + - 15 * CAST( NULL AS SIGNED ) * - - 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT DISTINCT CASE WHEN ( 80 ) < NULL THEN + - CAST ( - COUNT ( * ) AS INTEGER ) ELSE NULL END - CASE - 22 WHEN - COUNT ( * ) + + COUNT ( 65 ) THEN 84 ELSE NULL END * + - 15 * CAST ( NULL AS INTEGER ) * - - 63 AS col0
----
NULL

query I rowsort
SELECT ALL 84 * - 11 AS col2
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT ALL - MIN( ALL - 95 ) - - 72 AS col2
----
167

skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL - MIN ( ALL - 95 ) - - 72 AS col2
----
167

query I rowsort
SELECT + - 85 AS col0
----
-85

query I rowsort
SELECT ALL - - 28 AS col0
----
28

query I rowsort
SELECT DISTINCT - 43 * + - 56 * 66 AS col0
----
158928

query I rowsort
SELECT DISTINCT - 17
----
-17

query I rowsort
SELECT ALL 93 * - ( - 19 )
----
1767

query I rowsort
SELECT 56 * + - 34
----
-1904

query I rowsort
SELECT ( - 52 ) + - - 57 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT ( - 35 ) + CASE + 63 WHEN COUNT( * ) THEN NULL WHEN - 57 THEN NULL WHEN - NULLIF ( - + NULLIF ( + ( - + SUM( DISTINCT + 93 ) ), + 42 ), + 82 + + 18 ) + - ( + 37 ) - + COALESCE ( 7, + COUNT( * ) ) THEN COUNT( * ) END + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT ( - 35 ) + CASE + 63 WHEN COUNT ( * ) THEN NULL WHEN - 57 THEN NULL WHEN - NULLIF ( - + NULLIF ( + ( - + SUM ( DISTINCT + 93 ) ), + 42 ), + 82 + + 18 ) + - ( + 37 ) - + COALESCE ( 7, + COUNT ( * ) ) THEN COUNT ( * ) END + 91
----
NULL

query I rowsort
SELECT DISTINCT - 36 AS col0
----
-36

query I rowsort
SELECT ALL - 25 * 9
----
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-3331
SELECT DISTINCT 45 DIV + + 66
----
0

skipif mysql # not compatible
query I rowsort label-3331
SELECT DISTINCT 45 / + + 66
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3332
SELECT COALESCE ( + 81, + 88 * + 1, + - 28 ) * 44 * + 43 - + - CAST( NULL AS SIGNED ) + - - 26 * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-3332
SELECT COALESCE ( + 81, + 88 * + 1, + - 28 ) * 44 * + 43 - + - CAST ( NULL AS INTEGER ) + - - 26 * 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT ALL SUM( DISTINCT + 81 ) + + COUNT( DISTINCT - 90 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL SUM ( DISTINCT + 81 ) + + COUNT ( DISTINCT - 90 ) AS col1
----
82

query I rowsort
SELECT 62 col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT - MAX( DISTINCT 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3335
SELECT - MAX ( DISTINCT 35 ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT DISTINCT COUNT( * ) * + 29 * - 74 AS col0
----
-2146

skipif mysql # not compatible
query I rowsort label-3336
SELECT DISTINCT COUNT ( * ) * + 29 * - 74 AS col0
----
-2146

query II rowsort
SELECT ALL 73 * - 33, - 78 * + 46 AS col1
----
-2409
-3588

query I rowsort
SELECT ALL NULLIF ( - 96, + 59 ) + - + 73 AS col0
----
-169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3339
SELECT ALL COUNT( * ) + + 53 * - CAST( NULL AS SIGNED ) + - 65, + COUNT( * ) + - ( - 36 ) AS col2, 44 * - 0 + - 74 AS col2
----
NULL
37
-74

skipif mysql # not compatible
query III rowsort label-3339
SELECT ALL COUNT ( * ) + + 53 * - CAST ( NULL AS INTEGER ) + - 65, + COUNT ( * ) + - ( - 36 ) AS col2, 44 * - 0 + - 74 AS col2
----
NULL
37
-74

query I rowsort
SELECT - + 67 AS col2
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-3341
SELECT ALL 60 + + 28 * - - ( + - COALESCE ( COALESCE ( COALESCE ( + + 25, - - 40 + - CASE - + COALESCE ( ( 57 ), 34 DIV 92 + + 96 + + ( + 93 ) ) WHEN + 5 + + + 28 THEN NULL WHEN - 3 * - 84 THEN - 98 END ), + 29 DIV - 40 ), - 11 ) ) + 50 AS col2
----
-590

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL 60 + + 28 * - - ( + - COALESCE ( COALESCE ( COALESCE ( + + 25, - - 40 + - CASE - + COALESCE ( ( 57 ), 34 / 92 + + 96 + + ( + 93 ) ) WHEN + 5 + + + 28 THEN NULL WHEN - 3 * - 84 THEN - 98 END ), + 29 / - 40 ), - 11 ) ) + 50 AS col2
----
-590

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT DISTINCT - NULLIF ( + - COUNT( * ), - 85 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT - NULLIF ( + - COUNT ( * ), - 85 ) AS col1
----
1

query I rowsort
SELECT ALL + 18 AS col2
----
18

query I rowsort
SELECT 61 + + 84 * - 36 AS col0
----
-2963

query I rowsort
SELECT - - 92 AS col1
----
92

query I rowsort
SELECT - - 75 + - 82 - - 90 + 43
----
126

query II rowsort
SELECT DISTINCT - 69 + + + 51 AS col2, 62 AS col2
----
-18
62

query I rowsort
SELECT ALL + + 76 + - + 62 AS col1
----
14

query I rowsort
SELECT CASE - - 54 WHEN 72 THEN + - 88 WHEN - + 83 - - - 28 THEN NULL WHEN - - 11 * + 74 THEN 78 * + 1 + - + 33 ELSE 73 END
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3350
SELECT - - 25 * + 25 * MAX( DISTINCT 44 ), ( 32 ) AS col1
----
27500
32

skipif mysql # not compatible
query II rowsort label-3350
SELECT - - 25 * + 25 * MAX ( DISTINCT 44 ), ( 32 ) AS col1
----
27500
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL - 19 * - MAX( + NULLIF ( + - 91, + + 29 ) ) + + 83 AS col1
----
-1646

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL - 19 * - MAX ( + NULLIF ( + - 91, + + 29 ) ) + + 83 AS col1
----
-1646

query I rowsort
SELECT ( + - 83 )
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3353
SELECT - - 81 + + - CAST( - 32 AS SIGNED )
----
113

skipif mysql # not compatible
query I rowsort label-3353
SELECT - - 81 + + - CAST ( - 32 AS INTEGER )
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT ALL + COUNT( - 84 ) * + + 7
----
7

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL + COUNT ( - 84 ) * + + 7
----
7

query I rowsort
SELECT - 29 * + 49 * - 63 AS col2
----
89523

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT ALL + + ( 13 ) * + - COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL + + ( 13 ) * + - COUNT ( * ) AS col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3357
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * 27 + 54 + + COUNT( * ) - + ( - 72 ) * 77 / - ( 24 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * 27 + 54 + + COUNT ( * ) - + ( - 72 ) * 77 / - ( 24 ) AS col1
----
NULL

query I rowsort
SELECT ALL + - 12 col1
----
-12

query I rowsort
SELECT DISTINCT + + 21 AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3360
SELECT - + CAST( NULL AS SIGNED ) * 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT - + CAST ( NULL AS INTEGER ) * 84 AS col0
----
NULL

query I rowsort
SELECT - + 98 * + 69 AS col0
----
-6762

query I rowsort
SELECT ALL + COALESCE ( + 44, - 46 ) AS col2
----
44

query II rowsort
SELECT NULLIF ( 62, - 60 / + + 81 + COALESCE ( 70, + 23 ) * 92 + + - 81 + - 91 + 20 + + 10 * 71 ), - 92 col0
----
62
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3364
SELECT - NULLIF ( 72, - 46 + - COUNT( * ) ) DIV + 24, + 81 - - 16 + - + 81 AS col2, + + 87 AS col1
----
-3
16
87

skipif mysql # not compatible
query III rowsort label-3364
SELECT - NULLIF ( 72, - 46 + - COUNT ( * ) ) / + 24, + 81 - - 16 + - + 81 AS col2, + + 87 AS col1
----
-3
16
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3365
SELECT + 40 DIV 20 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3365
SELECT + 40 / 20 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3366
SELECT ALL + 66 DIV + 46
----
1

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL + 66 / + 46
----
1

query I rowsort
SELECT ALL + COALESCE ( 29, ( - 95 ) ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT DISTINCT + COUNT( * ) * + - 19
----
-19

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT + COUNT ( * ) * + - 19
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-3369
SELECT DISTINCT + 75 DIV 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT + 75 / 93 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3370
SELECT - CAST( NULL AS SIGNED ) / 46
----
NULL

skipif mysql # not compatible
query I rowsort label-3370
SELECT - CAST ( NULL AS INTEGER ) / 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT MIN( + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-3371
SELECT MIN ( + 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT + 65 * + NULLIF ( + + 71, - COUNT( * ) * ( + - 82 ) / 51 * + 70 * - 58 ) + COUNT( * ) + 14 AS col0
----
4630

skipif mysql # not compatible
query I rowsort label-3372
SELECT + 65 * + NULLIF ( + + 71, - COUNT ( * ) * ( + - 82 ) / 51 * + 70 * - 58 ) + COUNT ( * ) + 14 AS col0
----
4630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3373
SELECT ALL + 54 * + 30 * + COALESCE ( + COUNT( * ), COUNT( * ) ) * 49 + - + CAST( - 66 AS SIGNED ) + 68 + - 5 + - ( + 42 ) DIV 79 * + MAX( DISTINCT - ( - ( - + 3 ) ) ) + - 3 + - - 52 * 42 + 68 col2
----
81758

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL + 54 * + 30 * + COALESCE ( + COUNT ( * ), COUNT ( * ) ) * 49 + - + CAST ( - 66 AS INTEGER ) + 68 + - 5 + - ( + 42 ) / 79 * + MAX ( DISTINCT - ( - ( - + 3 ) ) ) + - 3 + - - 52 * 42 + 68 col2
----
81758

query I rowsort
SELECT + 50 * 71
----
3550

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT - CASE + 49 WHEN - 47 THEN NULL WHEN + 11 THEN NULL WHEN + + 70 THEN 64 * + + ( + COUNT( * ) ) + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3375
SELECT - CASE + 49 WHEN - 47 THEN NULL WHEN + 11 THEN NULL WHEN + + 70 THEN 64 * + + ( + COUNT ( * ) ) + + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 55 AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3377
SELECT ALL 32 + + 62 + + CAST( - ( + + 1 ) AS SIGNED ) DIV 53 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL 32 + + 62 + + CAST ( - ( + + 1 ) AS INTEGER ) / 53 AS col2
----
94

query I rowsort
SELECT - 38 + - 86 + 3 + - 26 col1
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT ALL - 31 + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL - 31 + COUNT ( * )
----
-30

query I rowsort
SELECT DISTINCT + 77 * + COALESCE ( + + 0, - + 5 * - ( + 42 ) + + 12, - - 64 ) * + 16 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3381
SELECT ALL ( CAST( - + 99 AS SIGNED ) ) + - 56 col2
----
-155

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL ( CAST ( - + 99 AS INTEGER ) ) + - 56 col2
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT DISTINCT MAX( DISTINCT + 68 )
----
68

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT MAX ( DISTINCT + 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT ALL - - 36 + - COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL - - 36 + - COUNT ( * ) AS col0
----
35

query I rowsort
SELECT DISTINCT NULLIF ( - 74, - 50 ) col1
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-3385
SELECT - - 26 DIV - 16
----
-1

skipif mysql # not compatible
query I rowsort label-3385
SELECT - - 26 / - 16
----
-1

query I rowsort
SELECT + + 20 + 45 - - - 91 col0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-3387
SELECT ALL + 15 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL + 15 / - 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT - + COUNT( * ) * + COALESCE ( + - 2, + COALESCE ( - - COALESCE ( - 3, 19 ), + 24 * - 86, 93 ) * + 45 * - - 21 + 80 + - - 20 )
----
2

skipif mysql # not compatible
query I rowsort label-3388
SELECT - + COUNT ( * ) * + COALESCE ( + - 2, + COALESCE ( - - COALESCE ( - 3, 19 ), + 24 * - 86, 93 ) * + 45 * - - 21 + 80 + - - 20 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT - - CASE 14 WHEN COUNT( + - 40 ) * + ( 38 ) THEN NULL WHEN - - 1 * 24 THEN COUNT( * ) * 90 * - 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3389
SELECT - - CASE 14 WHEN COUNT ( + - 40 ) * + ( 38 ) THEN NULL WHEN - - 1 * 24 THEN COUNT ( * ) * 90 * - 97 END
----
NULL

query I rowsort
SELECT + - 45 + 31 - - 42
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-3391
SELECT ALL - ( - - COUNT( * ) ) - - 44 AS col2, 88 AS col2
----
43
88

skipif mysql # not compatible
query II rowsort label-3391
SELECT ALL - ( - - COUNT ( * ) ) - - 44 AS col2, 88 AS col2
----
43
88

query I rowsort
SELECT - - 7 AS col2
----
7

query I rowsort
SELECT + + 71 + + 88
----
159

onlyif mysql # aggregate syntax: 
query II rowsort label-3394
SELECT + SUM( 6 ) + + + 10 AS col1, 13 * + 74 * + 27 - 42
----
16
25932

skipif mysql # not compatible
query II rowsort label-3394
SELECT + SUM ( 6 ) + + + 10 AS col1, 13 * + 74 * + 27 - 42
----
16
25932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3395
SELECT + CAST( NULL AS SIGNED ) * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3395
SELECT + CAST ( NULL AS INTEGER ) * 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT ALL COUNT( * ) * + 34 * + SUM( + ( + NULLIF ( + - 73, - 72 ) ) )
----
-2482

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL COUNT ( * ) * + 34 * + SUM ( + ( + NULLIF ( + - 73, - 72 ) ) )
----
-2482

onlyif mysql # aggregate syntax: 
query II rowsort label-3397
SELECT COUNT( * ), 72 AS col1
----
1
72

skipif mysql # not compatible
query II rowsort label-3397
SELECT COUNT ( * ), 72 AS col1
----
1
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3398
SELECT DISTINCT - 38 * CAST( NULL AS SIGNED ) + - ( + - MIN( - + 53 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT - 38 * CAST ( NULL AS INTEGER ) + - ( + - MIN ( - + 53 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3399
SELECT DISTINCT - 32 - CAST( - 99 AS SIGNED ) + + 9
----
76

skipif mysql # not compatible
query I rowsort label-3399
SELECT DISTINCT - 32 - CAST ( - 99 AS INTEGER ) + + 9
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT + COUNT( * ) + - 9 + + 73 + + CASE + - 24 WHEN 78 THEN + ( + 66 ) * + COUNT( * ) + 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT + COUNT ( * ) + - 9 + + 73 + + CASE + - 24 WHEN 78 THEN + ( + 66 ) * + COUNT ( * ) + 71 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT ALL MAX( + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL MAX ( + 65 )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-3402
SELECT + - 93 * 84 * - + COUNT( * ) * - - 32 * 27, 40 AS col0
----
6749568
40

skipif mysql # not compatible
query II rowsort label-3402
SELECT + - 93 * 84 * - + COUNT ( * ) * - - 32 * 27, 40 AS col0
----
6749568
40

query I rowsort
SELECT ALL ( 41 ) AS col1
----
41

query I rowsort
SELECT ALL 88 * 12 AS col2
----
1056

query I rowsort
SELECT + + 8 + + + 37
----
45

query I rowsort
SELECT - - COALESCE ( 99, - ( - + 14 ) + - 84 ) AS col2
----
99

query I rowsort
SELECT - - 44 + - 84 * - 30
----
2564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3408
SELECT + COUNT( DISTINCT - 45 ) * - + 35 + 46 + + + 56 - + - COUNT( * ) * 7 + - - 22 * - 71 * + 97, - AVG ( + - 28 ) * - CAST( NULL AS SIGNED ) AS col0
----
-151440
NULL

skipif mysql # not compatible
query II rowsort label-3408
SELECT + COUNT ( DISTINCT - 45 ) * - + 35 + 46 + + + 56 - + - COUNT ( * ) * 7 + - - 22 * - 71 * + 97, - AVG ( + - 28 ) * - CAST ( NULL AS INTEGER ) AS col0
----
-151440
NULL

query I rowsort
SELECT ALL + ( - 62 )
----
-62

query I rowsort
SELECT + + 58 * + 19 + + + COALESCE ( - + 59, - - ( + 19 ), 0 ) + - 83 + + - 25 - 71 * - 49 + 97 + + 5 * - 92 / + CASE + 28 WHEN + 87 THEN + 74 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3411
SELECT - MIN( ALL - NULLIF ( - 39, 24 * + CAST( NULL AS SIGNED ) ) ) * - COALESCE ( + 79, - NULLIF ( COUNT( * ), + 3 ) * + 41 + + CASE - - 14 WHEN - 45 THEN NULL ELSE - COUNT( * ) END * - COUNT( * ) * + 54 + - 73 + + CAST( NULL AS SIGNED ) ) AS col0
----
3081

skipif mysql # not compatible
query I rowsort label-3411
SELECT - MIN ( ALL - NULLIF ( - 39, 24 * + CAST ( NULL AS INTEGER ) ) ) * - COALESCE ( + 79, - NULLIF ( COUNT ( * ), + 3 ) * + 41 + + CASE - - 14 WHEN - 45 THEN NULL ELSE - COUNT ( * ) END * - COUNT ( * ) * + 54 + - 73 + + CAST ( NULL AS INTEGER ) ) AS col0
----
3081

query I rowsort
SELECT ALL + - 33
----
-33

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3413
SELECT CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 10 AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3415
SELECT DISTINCT + 46 AS col2, COUNT( * ) - + NULLIF ( - 99, 38 ) + 77 * - 70 AS col2
----
46
-5290

skipif mysql # not compatible
query II rowsort label-3415
SELECT DISTINCT + 46 AS col2, COUNT ( * ) - + NULLIF ( - 99, 38 ) + 77 * - 70 AS col2
----
46
-5290

query I rowsort
SELECT ALL + 62 * - 73 * + 77
----
-348502

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT DISTINCT 52 * + SUM( DISTINCT + 31 )
----
1612

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT 52 * + SUM ( DISTINCT + 31 )
----
1612

query I rowsort
SELECT DISTINCT + ( - 56 )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3419
SELECT DISTINCT COALESCE ( + 2, - - 9 ) DIV - 96 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT COALESCE ( + 2, - - 9 ) / - 96 + - COUNT ( * )
----
-1

query I rowsort
SELECT + ( - + 42 ) * + 18 col0
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT ALL 11 * + + COUNT( * ) + + COUNT( * ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL 11 * + + COUNT ( * ) + + COUNT ( * ) AS col1
----
12

query I rowsort
SELECT ALL + 48 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT ( + MAX( ALL - 85 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-3423
SELECT ( + MAX ( ALL - 85 ) )
----
-85

query II rowsort
SELECT + 93 AS col2, 43 * + + 58 + - 41 AS col1
----
93
2453

query I rowsort
SELECT - 51 + ( ( - NULLIF ( 32, 26 - + + 2 ) ) ) + + 88
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT - 62 * - + COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3426
SELECT - 62 * - + COUNT ( * ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT - SUM( 56 ) + - 51 - 52 * - ( 44 ) AS col2
----
2181

skipif mysql # not compatible
query I rowsort label-3427
SELECT - SUM ( 56 ) + - 51 - 52 * - ( 44 ) AS col2
----
2181

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT + NULLIF ( 6, - COUNT( ALL + + 90 ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3428
SELECT + NULLIF ( 6, - COUNT ( ALL + + 90 ) ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT ALL + MAX( ALL - 75 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL + MAX ( ALL - 75 ) AS col1
----
-75

query I rowsort
SELECT - 39 * + 37 * 47 AS col1
----
-67821

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT DISTINCT + SUM( DISTINCT - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-3431
SELECT DISTINCT + SUM ( DISTINCT - 1 )
----
-1

query I rowsort
SELECT ALL - 94 * + ( - 14 ) + 78
----
1394

query I rowsort
SELECT DISTINCT 44 * - + 63 AS col0
----
-2772

query I rowsort
SELECT ( + 7 ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3435
SELECT - - 42 AS col1, + MIN( DISTINCT + + 38 ) + - 31
----
42
7

skipif mysql # not compatible
query II rowsort label-3435
SELECT - - 42 AS col1, + MIN ( DISTINCT + + 38 ) + - 31
----
42
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3436
SELECT ( + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT + 56 AS col0, 58
----
56
58

query I rowsort
SELECT 76 * - 75 + - 64 AS col1
----
-5764

query II rowsort
SELECT ALL 17 col0, 53 AS col0
----
17
53

onlyif mysql # aggregate syntax: 
query II rowsort label-3440
SELECT - 28, COUNT( + - 28 ) AS col1
----
-28
1

skipif mysql # not compatible
query II rowsort label-3440
SELECT - 28, COUNT ( + - 28 ) AS col1
----
-28
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3441
SELECT - SUM( ALL + 48 ) AS col2, SUM( DISTINCT - - 25 )
----
-48
25

skipif mysql # not compatible
query II rowsort label-3441
SELECT - SUM ( ALL + 48 ) AS col2, SUM ( DISTINCT - - 25 )
----
-48
25

onlyif mysql # aggregate syntax: 
query II rowsort label-3442
SELECT ALL + - 4 - - + 46 AS col1, + COUNT( * ) AS col1
----
42
1

skipif mysql # not compatible
query II rowsort label-3442
SELECT ALL + - 4 - - + 46 AS col1, + COUNT ( * ) AS col1
----
42
1

query I rowsort
SELECT ALL 1 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT + 84 * + 73 * + 82 * - 6 + - COUNT( + 66 ) AS col0
----
-3016945

skipif mysql # not compatible
query I rowsort label-3444
SELECT + 84 * + 73 * + 82 * - 6 + - COUNT ( + 66 ) AS col0
----
-3016945

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT ALL + 28 - COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL + 28 - COUNT ( * ) AS col0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3446
SELECT DISTINCT 33 DIV - + 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT 33 / - + 68 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3447
SELECT ALL - ( - 13 ), COUNT( * ) AS col2
----
13
1

skipif mysql # not compatible
query II rowsort label-3447
SELECT ALL - ( - 13 ), COUNT ( * ) AS col2
----
13
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT 91 - COUNT( * ) + + 81 AS col1
----
171

skipif mysql # not compatible
query I rowsort label-3448
SELECT 91 - COUNT ( * ) + + 81 AS col1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT - 51 * ( 11 ) * + + 44 * - + COUNT( * ) - + 93 AS col0
----
24591

skipif mysql # not compatible
query I rowsort label-3449
SELECT - 51 * ( 11 ) * + + 44 * - + COUNT ( * ) - + 93 AS col0
----
24591

query I rowsort
SELECT - + ( - NULLIF ( + 21, 7 ) )
----
21

query I rowsort
SELECT ALL - 81 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-3452
SELECT - 13 AS col1, 12 + + + COUNT( * ) + - 28
----
-13
-15

skipif mysql # not compatible
query II rowsort label-3452
SELECT - 13 AS col1, 12 + + + COUNT ( * ) + - 28
----
-13
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3453
SELECT 14 DIV - 32 * + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3453
SELECT 14 / - 32 * + 57 AS col0
----
0

query I rowsort
SELECT ALL + 76 * COALESCE ( - 85, + 42, + 16 ) + - - 24 + - + ( - - 92 ) * + 23 AS col2
----
-8552

query II rowsort
SELECT ALL 75 AS col1, - 39 AS col2
----
75
-39

query I rowsort
SELECT - 91 + 60 + + 79
----
48

query I rowsort
SELECT - + 47
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3458
SELECT 78 + CAST( - ( - 17 ) AS SIGNED ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-3458
SELECT 78 + CAST ( - ( - 17 ) AS INTEGER ) AS col2
----
95

query II rowsort
SELECT ALL 17 * + 46 col0, 87
----
782
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL 35 + - + 89 * - + SUM( 11 ) * + NULLIF ( + 31, - + 39 * - COUNT( * ) * 17 + ( 55 ) ) - 63 + + 6 + 43
----
30370

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL 35 + - + 89 * - + SUM ( 11 ) * + NULLIF ( + 31, - + 39 * - COUNT ( * ) * 17 + ( 55 ) ) - 63 + + 6 + 43
----
30370

onlyif mysql # aggregate syntax: 
query II rowsort label-3461
SELECT ALL - COUNT( DISTINCT + 55 ) AS col0, 88 AS col2
----
-1
88

skipif mysql # not compatible
query II rowsort label-3461
SELECT ALL - COUNT ( DISTINCT + 55 ) AS col0, 88 AS col2
----
-1
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3462
SELECT DISTINCT 58 DIV + COUNT( * ) AS col0, 10 AS col1
----
58
10

skipif mysql # not compatible
query II rowsort label-3462
SELECT DISTINCT 58 / + COUNT ( * ) AS col0, 10 AS col1
----
58
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3463
SELECT ALL COALESCE ( 90, 70, + 20 ) + - - 58 DIV + - 79 + - 0 * - SUM( - - 36 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL COALESCE ( 90, 70, + 20 ) + - - 58 / + - 79 + - 0 * - SUM ( - - 36 ) AS col1
----
90

query I rowsort
SELECT DISTINCT 28 + - 29
----
-1

query I rowsort
SELECT DISTINCT 4 + - 82
----
-78

query I rowsort
SELECT ALL - 48 AS col0
----
-48

query II rowsort
SELECT ALL 57 + - 87 AS col2, + 47 * + 18 col2
----
-30
846

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT DISTINCT ( - - 1 ) + + 30 * + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT ( - - 1 ) + + 30 * + COUNT ( * )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3469
SELECT CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3469
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 21 + 34 AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3471
SELECT ALL - CAST( NULL AS SIGNED ) * + + MAX( 1 ) AS col1, + CASE + 51 WHEN + 75 THEN NULL WHEN + COUNT( * ) * + 98 * 5 * - CAST( NULL AS SIGNED ) THEN + - 68 * + 35 - + 59 * + 89 + 4 * - + COUNT( * ) ELSE NULLIF ( + 39, - + 76 * - 11 * + 14 ) END AS col0
----
NULL
39

skipif mysql # not compatible
query II rowsort label-3471
SELECT ALL - CAST ( NULL AS INTEGER ) * + + MAX ( 1 ) AS col1, + CASE + 51 WHEN + 75 THEN NULL WHEN + COUNT ( * ) * + 98 * 5 * - CAST ( NULL AS INTEGER ) THEN + - 68 * + 35 - + 59 * + 89 + 4 * - + COUNT ( * ) ELSE NULLIF ( + 39, - + 76 * - 11 * + 14 ) END AS col0
----
NULL
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT ALL - 4 - SUM( - 42 ) + - 16
----
22

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL - 4 - SUM ( - 42 ) + - 16
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3473
SELECT 35 - 47 AS col2, + 70 DIV COUNT( * ) AS col1
----
-12
70

skipif mysql # not compatible
query II rowsort label-3473
SELECT 35 - 47 AS col2, + 70 / COUNT ( * ) AS col1
----
-12
70

query I rowsort
SELECT ALL 15 * 55
----
825

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3475
SELECT - 23 + + - CAST( + 40 AS SIGNED ) AS col2, 61 col2
----
-63
61

skipif mysql # not compatible
query II rowsort label-3475
SELECT - 23 + + - CAST ( + 40 AS INTEGER ) AS col2, 61 col2
----
-63
61

query I rowsort
SELECT + - 57 AS col0
----
-57

query I rowsort
SELECT DISTINCT - + 72 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT 36 + + - 75 + - COALESCE ( + - MIN( NULLIF ( - + 45, - 30 ) ), 90 )
----
-84

skipif mysql # not compatible
query I rowsort label-3478
SELECT 36 + + - 75 + - COALESCE ( + - MIN ( NULLIF ( - + 45, - 30 ) ), 90 )
----
-84

query II rowsort
SELECT 67 * - + 16, + 15 AS col1
----
-1072
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT + + ( + COALESCE ( - 7, + 93 * - 51 * - + 34 * - 79 * + 83 * 47, + 7 ) ) * - + ( + + COALESCE ( + - 88, ( - COUNT( * ) ) - - - 48 ) ) + - 63
----
-679

skipif mysql # not compatible
query I rowsort label-3480
SELECT + + ( + COALESCE ( - 7, + 93 * - 51 * - + 34 * - 79 * + 83 * 47, + 7 ) ) * - + ( + + COALESCE ( + - 88, ( - COUNT ( * ) ) - - - 48 ) ) + - 63
----
-679

query I rowsort
SELECT - 82 * + 98 AS col2
----
-8036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3482
SELECT COUNT( * ) + - CAST( CAST( 38 AS SIGNED ) AS SIGNED ) DIV 57
----
1

skipif mysql # not compatible
query I rowsort label-3482
SELECT COUNT ( * ) + - CAST ( CAST ( 38 AS INTEGER ) AS INTEGER ) / 57
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3483
SELECT ALL - - 81 * COUNT( * ) AS col0, 81 * 82 * 62 AS col0
----
81
411804

skipif mysql # not compatible
query II rowsort label-3483
SELECT ALL - - 81 * COUNT ( * ) AS col0, 81 * 82 * 62 AS col0
----
81
411804

onlyif mysql # DIV for integer division: 
query I rowsort label-3484
SELECT 59 + + 61 DIV + 3 + - 48 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-3484
SELECT 59 + + 61 / + 3 + - 48 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3485
SELECT ALL - - CASE - - COUNT( * ) WHEN + 64 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN - 76 + - 59 THEN + SUM( DISTINCT - 45 ) ELSE - + 71 END * 1 * 55
----
-3905

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL - - CASE - - COUNT ( * ) WHEN + 64 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 76 + - 59 THEN + SUM ( DISTINCT - 45 ) ELSE - + 71 END * 1 * 55
----
-3905

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT COUNT( * ) / + 33 + + CASE + + 99 WHEN 71 THEN + 57 + - + 80 WHEN - + CASE 53 WHEN - 23 * + 58 + - 32 THEN + 46 / 9 ELSE NULL END + 88 THEN + 63 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT COUNT ( * ) / + 33 + + CASE + + 99 WHEN 71 THEN + 57 + - + 80 WHEN - + CASE 53 WHEN - 23 * + 58 + - 32 THEN + 46 / 9 ELSE NULL END + 88 THEN + 63 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3487
SELECT 6 + + - COUNT( * ) AS col1, 29 + - 96
----
5
-67

skipif mysql # not compatible
query II rowsort label-3487
SELECT 6 + + - COUNT ( * ) AS col1, 29 + - 96
----
5
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT COUNT( * ) * 18 + + CASE - + 74 WHEN - 96 THEN NULL ELSE - 78 END AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3488
SELECT COUNT ( * ) * 18 + + CASE - + 74 WHEN - 96 THEN NULL ELSE - 78 END AS col2
----
-60

query I rowsort
SELECT DISTINCT + + ( + 91 ) * + + 90 + + 59 AS col1
----
8249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3490
SELECT - - COALESCE ( + + 23, COUNT( * ), 42 * COUNT( * ) * 84 DIV - + CAST( - CASE 9 WHEN + - MAX( DISTINCT 79 ) THEN + 22 END AS SIGNED ) * + - 82 * 13 DIV 99 + + + 69 * CAST( NULL AS SIGNED ) )
----
23

skipif mysql # not compatible
query I rowsort label-3490
SELECT - - COALESCE ( + + 23, COUNT ( * ), 42 * COUNT ( * ) * 84 / - + CAST ( - CASE 9 WHEN + - MAX ( DISTINCT 79 ) THEN + 22 END AS INTEGER ) * + - 82 * 13 / 99 + + + 69 * CAST ( NULL AS INTEGER ) )
----
23

query I rowsort
SELECT 98 + NULLIF ( - - ( + 20 ), 82 ) AS col2
----
118

query I rowsort
SELECT ALL - - 85 * + 40 AS col2
----
3400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3493
SELECT CAST( NULL AS SIGNED ) * + 65 + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT CAST ( NULL AS INTEGER ) * + 65 + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - 26 AS col2
----
-26

query I rowsort
SELECT ALL + 45 + - - ( + 61 ) + + 32
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT ALL - 80 + - COUNT( * ) - - + 28 + + 30 * - 19
----
-623

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL - 80 + - COUNT ( * ) - - + 28 + + 30 * - 19
----
-623

query I rowsort
SELECT - 15 AS col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3498
SELECT ALL 17 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL 17 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT ALL MAX( ALL - + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL MAX ( ALL - + 43 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT 13 + + COUNT( * ) * 88 + + 9 col1
----
110

skipif mysql # not compatible
query I rowsort label-3500
SELECT 13 + + COUNT ( * ) * 88 + + 9 col1
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3501
SELECT ALL - COUNT( * ) DIV NULLIF ( - 59, - - 76 + - 72 DIV 37 + - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL - COUNT ( * ) / NULLIF ( - 59, - - 76 + - 72 / 37 + - CAST ( NULL AS INTEGER ) )
----
0

query II rowsort
SELECT + 26 AS col1, 66 AS col0
----
26
66

query II rowsort
SELECT ALL + 21 * - 46 + - 29 AS col0, - 38 + + - 76 col2
----
-995
-114

query I rowsort
SELECT ALL - 64 col2
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3505
SELECT - 90 / + CAST( NULL AS SIGNED ) * - 37 + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3505
SELECT - 90 / + CAST ( NULL AS INTEGER ) * - 37 + + 94
----
NULL

query I rowsort
SELECT 3 * 21 AS col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3507
SELECT ALL - 45 DIV - - COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL - 45 / - - COUNT ( * )
----
-45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3508
SELECT DISTINCT - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + 11 * 47 - 68
----
449

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT COUNT( * ) * - - 23 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3510
SELECT COUNT ( * ) * - - 23 AS col2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3511
SELECT ALL COALESCE ( 7, 29 * + COUNT( * ) + + - 8 + - COUNT( * ), - 72 DIV + SUM( DISTINCT - 41 ) ) DIV - + 69
----
0

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL COALESCE ( 7, 29 * + COUNT ( * ) + + - 8 + - COUNT ( * ), - 72 / + SUM ( DISTINCT - 41 ) ) / - + 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT - 46 * - - MIN( + + 50 ) + - 3 AS col0
----
-2303

skipif mysql # not compatible
query I rowsort label-3512
SELECT - 46 * - - MIN ( + + 50 ) + - 3 AS col0
----
-2303

query I rowsort
SELECT ALL + 89 col2
----
89

query I rowsort
SELECT + 32 * + 69 AS col0
----
2208

query I rowsort
SELECT ALL + 15 AS col2
----
15

query I rowsort
SELECT + ( 38 ) AS col1
----
38

query I rowsort
SELECT - 0 + + 54 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT ALL - 3 * + CASE MAX( ALL 61 ) WHEN + 8 * - COUNT( * ) THEN NULL ELSE - - 61 * - 88 END AS col2
----
16104

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL - 3 * + CASE MAX ( ALL 61 ) WHEN + 8 * - COUNT ( * ) THEN NULL ELSE - - 61 * - 88 END AS col2
----
16104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3519
SELECT + 57 * - CAST( NULL AS SIGNED ) * + 88 * 10 * + ( + + 30 ) AS col2, - 40 + + - 66 + + 93 + 43 - - 23 * - 31 AS col0
----
NULL
-683

skipif mysql # not compatible
query II rowsort label-3519
SELECT + 57 * - CAST ( NULL AS INTEGER ) * + 88 * 10 * + ( + + 30 ) AS col2, - 40 + + - 66 + + 93 + 43 - - 23 * - 31 AS col0
----
NULL
-683

query I rowsort
SELECT DISTINCT + + 31
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-3521
SELECT + + 97 AS col0, + COUNT( * ) + 18 + + COUNT( * )
----
97
20

skipif mysql # not compatible
query II rowsort label-3521
SELECT + + 97 AS col0, + COUNT ( * ) + 18 + + COUNT ( * )
----
97
20

query I rowsort
SELECT DISTINCT - 59 * - 17 + - + 30 + - 1 AS col0
----
972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3523
SELECT - - COUNT( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3523
SELECT - - COUNT ( - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT COUNT( ALL - 76 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3524
SELECT COUNT ( ALL - 76 ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3525
SELECT - COUNT( * ) AS col2, + SUM( 0 ) AS col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-3525
SELECT - COUNT ( * ) AS col2, + SUM ( 0 ) AS col1
----
-1
0

query I rowsort
SELECT + - 45 - 7
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT + + MIN( ALL + - 77 ) * + - NULLIF ( 51, COUNT( * ) )
----
3927

skipif mysql # not compatible
query I rowsort label-3527
SELECT + + MIN ( ALL + - 77 ) * + - NULLIF ( 51, COUNT ( * ) )
----
3927

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3528
SELECT ALL - MAX( ALL + 48 ) DIV + 48 col1
----
-1

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL - MAX ( ALL + 48 ) / + 48 col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3529
SELECT - 69 DIV - 50 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3529
SELECT - 69 / - 50 AS col0
----
1

query I rowsort
SELECT DISTINCT 38 + + + 57
----
95

query I rowsort
SELECT ALL 71 AS col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3532
SELECT - CASE 78 WHEN + CASE + 46 WHEN - ( + 59 ) THEN - 82 * - - 53 ELSE NULL END * - - 28 - CASE + CAST( + 5 AS SIGNED ) WHEN + + MAX( 64 ) THEN NULL WHEN + - COUNT( * ) / + 23 - + COUNT( * ) THEN + - COUNT( * ) + 53 / + 6 * + CAST( 28 AS DECIMAL ) END THEN 41 / 52 WHEN 76 * + 19 THEN + 79 END / NULLIF ( 99, - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT - CASE 78 WHEN + CASE + 46 WHEN - ( + 59 ) THEN - 82 * - - 53 ELSE NULL END * - - 28 - CASE + CAST ( + 5 AS INTEGER ) WHEN + + MAX ( 64 ) THEN NULL WHEN + - COUNT ( * ) / + 23 - + COUNT ( * ) THEN + - COUNT ( * ) + 53 / + 6 * + CAST ( 28 AS REAL ) END THEN 41 / 52 WHEN 76 * + 19 THEN + 79 END / NULLIF ( 99, - 78 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3533
SELECT ALL 56 + - COALESCE ( - 11, - 36 + + 71 + - CAST( NULL AS SIGNED ) DIV - 40, + 92 - + 94 + MIN( ALL - 49 ) + - - 86 )
----
67

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL 56 + - COALESCE ( - 11, - 36 + + 71 + - CAST ( NULL AS INTEGER ) / - 40, + 92 - + 94 + MIN ( ALL - 49 ) + - - 86 )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3534
SELECT ALL + + COUNT( * ) + - CAST( NULL AS SIGNED ) / + 98 * + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) / + 98 * + + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT ALL - NULLIF ( - + 62, + MAX( - 22 ) / - 2 + 17 + + - COUNT( * ) / + 80 ) + + + COUNT( DISTINCT - + 67 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL - NULLIF ( - + 62, + MAX ( - 22 ) / - 2 + 17 + + - COUNT ( * ) / + 80 ) + + + COUNT ( DISTINCT - + 67 ) AS col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3536
SELECT - 82 - - - CAST( + + 0 AS SIGNED )
----
-82

skipif mysql # not compatible
query I rowsort label-3536
SELECT - 82 - - - CAST ( + + 0 AS INTEGER )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT - 99 + COUNT( DISTINCT + NULLIF ( + 78, + 71 - - 29 ) ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-3537
SELECT - 99 + COUNT ( DISTINCT + NULLIF ( + 78, + 71 - - 29 ) ) AS col2
----
-98

query I rowsort
SELECT 3 col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT ALL + 85 - - MAX( DISTINCT + 54 )
----
139

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL + 85 - - MAX ( DISTINCT + 54 )
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT ALL ( - - COUNT( + 10 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL ( - - COUNT ( + 10 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT ALL CASE + AVG ( DISTINCT 18 ) WHEN - 37 THEN - ( 56 ) ELSE - 23 + + - COUNT( * ) END AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL CASE + AVG ( DISTINCT 18 ) WHEN - 37 THEN - ( 56 ) ELSE - 23 + + - COUNT ( * ) END AS col2
----
-24

query I rowsort
SELECT DISTINCT + 86 col1
----
86

query I rowsort
SELECT ( - 60 ) AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3544
SELECT ALL + SUM( - 52 ) AS col0, - CAST( 14 AS SIGNED ) AS col2
----
-52
-14

skipif mysql # not compatible
query II rowsort label-3544
SELECT ALL + SUM ( - 52 ) AS col0, - CAST ( 14 AS INTEGER ) AS col2
----
-52
-14

query I rowsort
SELECT ( - - 57 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3546
SELECT + COALESCE ( + 30, 61 * COUNT( * ) - - + 49 DIV - 75, 43 DIV + SUM( - + 73 ) - + CASE - + CAST( 83 AS SIGNED ) WHEN + + 67 THEN NULL ELSE + - COUNT( * ) END )
----
30

skipif mysql # not compatible
query I rowsort label-3546
SELECT + COALESCE ( + 30, 61 * COUNT ( * ) - - + 49 / - 75, 43 / + SUM ( - + 73 ) - + CASE - + CAST ( 83 AS INTEGER ) WHEN + + 67 THEN NULL ELSE + - COUNT ( * ) END )
----
30

query I rowsort
SELECT ALL + 89 AS col1
----
89

query II rowsort
SELECT - 32 * + 48 AS col1, - 18
----
-1536
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT + COUNT( * ) * + 15
----
15

skipif mysql # not compatible
query I rowsort label-3549
SELECT + COUNT ( * ) * + 15
----
15

query I rowsort
SELECT - 50 - - + 97
----
47

query I rowsort
SELECT DISTINCT 61 * - + 19 * + + 91 AS col2
----
-105469

query I rowsort
SELECT ALL 58 * 74
----
4292

query I rowsort
SELECT ALL + - ( - + 34 ) AS col0
----
34

query I rowsort
SELECT + 41 * 90 * + 41
----
151290

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT DISTINCT - 63 * + COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT - 63 * + COUNT ( * ) AS col0
----
-63

query I rowsort
SELECT DISTINCT + 4 * - + 10 AS col0
----
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3557
SELECT + - AVG ( DISTINCT 69 ) * - ( - 43 ) + - 65 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3557
SELECT + - AVG ( DISTINCT 69 ) * - ( - 43 ) + - 65 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + - 30
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3559
SELECT + + 91 * + CAST( 61 AS SIGNED )
----
5551

skipif mysql # not compatible
query I rowsort label-3559
SELECT + + 91 * + CAST ( 61 AS INTEGER )
----
5551

query I rowsort
SELECT 75 * + 77 + + 69 - - 80 AS col2
----
5924

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT - NULLIF ( + + CASE 26 WHEN 24 + - + ( - 76 ) - + ( - 44 ) / 31 THEN NULL WHEN 78 * 77 + + CASE 47 WHEN + + 56 + + 81 - - 46 + + - 6 + - + SUM( 42 ) THEN NULL WHEN - 2 THEN + 55 * - 12 END THEN - COUNT( * ) ELSE NULL END, - 38 * 5 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT - NULLIF ( + + CASE 26 WHEN 24 + - + ( - 76 ) - + ( - 44 ) / 31 THEN NULL WHEN 78 * 77 + + CASE 47 WHEN + + 56 + + 81 - - 46 + + - 6 + - + SUM ( 42 ) THEN NULL WHEN - 2 THEN + 55 * - 12 END THEN - COUNT ( * ) ELSE NULL END, - 38 * 5 ) AS col0
----
NULL

query I rowsort
SELECT + 44 + 57
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT ALL 35 * + 95 * + COUNT( * ) * + 81 + COUNT( ALL - 70 ) + - + 48 AS col0
----
269278

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL 35 * + 95 * + COUNT ( * ) * + 81 + COUNT ( ALL - 70 ) + - + 48 AS col0
----
269278

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL 18 * - + 95 + + NULLIF ( MIN( + 92 ), + COUNT( * ) ) + - 46 + 77 * - SUM( - 60 ) AS col2
----
2956

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL 18 * - + 95 + + NULLIF ( MIN ( + 92 ), + COUNT ( * ) ) + - 46 + 77 * - SUM ( - 60 ) AS col2
----
2956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3565
SELECT ALL - 14 * + CAST( + + 86 AS SIGNED ) + - + ( - COUNT( * ) ) + - 64 + - + 51 + - 56 * + 22 * - COUNT( * ) * + + ( + 19 )
----
22090

skipif mysql # not compatible
query I rowsort label-3565
SELECT ALL - 14 * + CAST ( + + 86 AS INTEGER ) + - + ( - COUNT ( * ) ) + - 64 + - + 51 + - 56 * + 22 * - COUNT ( * ) * + + ( + 19 )
----
22090

query I rowsort
SELECT ALL 99 AS col0
----
99

query I rowsort
SELECT ALL + 64 + 43 AS col1
----
107

query I rowsort
SELECT ALL - 53 * - NULLIF ( - - 82, - 43 * + - 57 ) col1
----
4346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3569
SELECT - + 84 + 11 col0, + CAST( - MAX( + CAST( NULL AS SIGNED ) ) AS DECIMAL ) * + 94 - - 28 / 72
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-3569
SELECT - + 84 + 11 col0, + CAST ( - MAX ( + CAST ( NULL AS INTEGER ) ) AS REAL ) * + 94 - - 28 / 72
----
-73
NULL

query I rowsort
SELECT - ( ( 11 ) ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT - 34 + COALESCE ( + 4, - + MIN( ALL - + ( + 1 ) ) ) * + + CASE - SUM( - 52 ) WHEN COUNT( * ) THEN NULL WHEN + - ( + - 50 ) THEN + 17 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT - 34 + COALESCE ( + 4, - + MIN ( ALL - + ( + 1 ) ) ) * + + CASE - SUM ( - 52 ) WHEN COUNT ( * ) THEN NULL WHEN + - ( + - 50 ) THEN + 17 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL ( + 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT ALL COUNT( * ) - - - 36 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL COUNT ( * ) - - - 36 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT - 16 * CASE - - 15 WHEN - 2 THEN - - 83 * + + 5 + + COUNT( * ) WHEN + - COUNT( * ) / 10 THEN + - 77 ELSE NULL END / - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3574
SELECT - 16 * CASE - - 15 WHEN - 2 THEN - - 83 * + + 5 + + COUNT ( * ) WHEN + - COUNT ( * ) / 10 THEN + - 77 ELSE NULL END / - 47 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 72 * - 35
----
-2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3576
SELECT ALL - CAST( NULL AS SIGNED ) - + - 13 * + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL - CAST ( NULL AS INTEGER ) - + - 13 * + + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL 35 AS col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3578
SELECT 38 DIV - + 84
----
0

skipif mysql # not compatible
query I rowsort label-3578
SELECT 38 / - + 84
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3579
SELECT ALL + CASE + 33 WHEN 73 + + 61 THEN + 36 * + 90 * - 21 WHEN 63 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN NULL END / ( 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL + CASE + 33 WHEN 73 + + 61 THEN + 36 * + 90 * - 21 WHEN 63 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN NULL END / ( 80 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3580
SELECT CAST( NULL AS SIGNED ) * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3580
SELECT CAST ( NULL AS INTEGER ) * - 5
----
NULL

query I rowsort
SELECT 44 + 86
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3582
SELECT DISTINCT + CAST( 88 AS SIGNED ) * 44 AS col0
----
3872

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT + CAST ( 88 AS INTEGER ) * 44 AS col0
----
3872

query I rowsort
SELECT ALL - ( - - 11 ) * - - 8 * - 74 + + 99 AS col2
----
6611

query I rowsort
SELECT ALL - ( + 16 ) AS col2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 8 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3586
SELECT 10 DIV 29 + + - 23 col1
----
-23

skipif mysql # not compatible
query I rowsort label-3586
SELECT 10 / 29 + + - 23 col1
----
-23

query I rowsort
SELECT 37 - + 61 AS col2
----
-24

query I rowsort
SELECT 44 + - 51 AS col1
----
-7

query I rowsort
SELECT ALL + 10 * - - 67 col0
----
670

query I rowsort
SELECT ALL - ( + - 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT + 35 + + MAX( DISTINCT + 54 ) + 73 col2
----
162

skipif mysql # not compatible
query I rowsort label-3591
SELECT + 35 + + MAX ( DISTINCT + 54 ) + 73 col2
----
162

query I rowsort
SELECT DISTINCT - 63
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3593
SELECT ALL + 75 + MIN( + ( + + CAST( - 37 AS SIGNED ) ) ) AS col1, 45
----
38
45

skipif mysql # not compatible
query II rowsort label-3593
SELECT ALL + 75 + MIN ( + ( + + CAST ( - 37 AS INTEGER ) ) ) AS col1, 45
----
38
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3594
SELECT + - COUNT( * ) * - COUNT( * ) * + 80 DIV 90 + + 43 DIV 29 * 17 - + 2 * + + 33 * + 85 - - COUNT( * )
----
-5592

skipif mysql # not compatible
query I rowsort label-3594
SELECT + - COUNT ( * ) * - COUNT ( * ) * + 80 / 90 + + 43 / 29 * 17 - + 2 * + + 33 * + 85 - - COUNT ( * )
----
-5592

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT + COUNT( ALL - 61 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3595
SELECT + COUNT ( ALL - 61 ) AS col2
----
1

query I rowsort
SELECT ALL - NULLIF ( + 81, 17 )
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3597
SELECT ALL - + 58 + 57 * 37 * + COUNT( * ) * + 92 + + 55 + + 26 DIV COUNT( * )
----
194051

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL - + 58 + 57 * 37 * + COUNT ( * ) * + 92 + + 55 + + 26 / COUNT ( * )
----
194051

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT ( COUNT( DISTINCT + 63 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3598
SELECT ( COUNT ( DISTINCT + 63 ) ) AS col0
----
1

query I rowsort
SELECT - 75 + 77 + + + ( + 68 ) + - 89 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT + COUNT( DISTINCT + 92 )
----
1

skipif mysql # not compatible
query I rowsort label-3600
SELECT + COUNT ( DISTINCT + 92 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3601
SELECT DISTINCT + - COALESCE ( - - 13, + - CAST( ( - COUNT( * ) ) AS SIGNED ) + - 80 ) * + 77 AS col1
----
-1001

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT + - COALESCE ( - - 13, + - CAST ( ( - COUNT ( * ) ) AS INTEGER ) + - 80 ) * + 77 AS col1
----
-1001

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3602
SELECT + 10 AS col2, - 23 * CASE + NULLIF ( + + 1, - - 9 + - - 83 ) WHEN - - ( - - 55 ) THEN CASE + - 35 WHEN - - 92 THEN + COALESCE ( 96, + ( + + 41 ) * 24 + + ( COUNT( * ) ) + 22 + - - ( - 52 ) ) WHEN + ( 73 ) * 45 DIV 86 THEN 83 DIV - 42 END ELSE - 37 END * 82 col0
----
10
69782

skipif mysql # not compatible
query II rowsort label-3602
SELECT + 10 AS col2, - 23 * CASE + NULLIF ( + + 1, - - 9 + - - 83 ) WHEN - - ( - - 55 ) THEN CASE + - 35 WHEN - - 92 THEN + COALESCE ( 96, + ( + + 41 ) * 24 + + ( COUNT ( * ) ) + 22 + - - ( - 52 ) ) WHEN + ( 73 ) * 45 / 86 THEN 83 / - 42 END ELSE - 37 END * 82 col0
----
10
69782

query I rowsort
SELECT ALL - + 68
----
-68

query I rowsort
SELECT ALL + + 78 + - - 82 + + + 27 * + - 89 col1
----
-2243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3605
SELECT DISTINCT - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3605
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT + 10 AS col2, 4
----
10
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3607
SELECT ALL - ( - - 74 ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL - ( - - 74 ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3608
SELECT + 8 DIV + + 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3608
SELECT + 8 / + + 48 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3609
SELECT - 17 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3609
SELECT - 17 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT - 91 * + 46 - COUNT( * ) AS col2
----
-4187

skipif mysql # not compatible
query I rowsort label-3610
SELECT - 91 * + 46 - COUNT ( * ) AS col2
----
-4187

query I rowsort
SELECT ALL 61 - - COALESCE ( - 75, + 56 ) col1
----
-14

query I rowsort
SELECT ALL 13 AS col1
----
13

query II rowsort
SELECT ALL 68 AS col1, - 51 + 46 + + - 5
----
68
-10

query II rowsort
SELECT DISTINCT 73 AS col0, COALESCE ( 26, - + 52 )
----
73
26

query II rowsort
SELECT 74 AS col1, + 79
----
74
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3616
SELECT ALL CAST( - - 96 AS SIGNED ) - - - ( 19 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL CAST ( - - 96 AS INTEGER ) - - - ( 19 ) AS col1
----
77

query I rowsort
SELECT 2 + - 5
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT COUNT( * ) - - - 12 * - COALESCE ( + 42, + COUNT( * ) * COUNT( * ) + + - 70, 88 ) col0
----
505

skipif mysql # not compatible
query I rowsort label-3618
SELECT COUNT ( * ) - - - 12 * - COALESCE ( + 42, + COUNT ( * ) * COUNT ( * ) + + - 70, 88 ) col0
----
505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3619
SELECT COUNT( * ) + - COALESCE ( COUNT( * ), - + CAST( CASE + 18 WHEN - 41 THEN + + 48 END AS SIGNED ), + 11 * + - 78 * - - 33 DIV + 80 ) - + 85 DIV - 34 * - COUNT( * ) + 22 * - COUNT( DISTINCT + 18 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-3619
SELECT COUNT ( * ) + - COALESCE ( COUNT ( * ), - + CAST ( CASE + 18 WHEN - 41 THEN + + 48 END AS INTEGER ), + 11 * + - 78 * - - 33 / + 80 ) - + 85 / - 34 * - COUNT ( * ) + 22 * - COUNT ( DISTINCT + 18 ) AS col2
----
-24

query II rowsort
SELECT DISTINCT 36 AS col1, - 19
----
36
-19

query I rowsort
SELECT 54 * - 59 AS col0
----
-3186

onlyif mysql # aggregate syntax: 
query II rowsort label-3622
SELECT ALL 42 AS col0, + 34 + + 81 + - - 28 + - COUNT( + 44 ) * + 70 * + + ( - 18 ) AS col2
----
42
1403

skipif mysql # not compatible
query II rowsort label-3622
SELECT ALL 42 AS col0, + 34 + + 81 + - - 28 + - COUNT ( + 44 ) * + 70 * + + ( - 18 ) AS col2
----
42
1403

query I rowsort
SELECT DISTINCT 94 col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3624
SELECT CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT 44 * + 39
----
1716

onlyif mysql # DIV for integer division: 
query I rowsort label-3626
SELECT DISTINCT - 42 DIV - 2 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3626
SELECT DISTINCT - 42 / - 2 AS col0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3627
SELECT DISTINCT - 86 AS col0, 97 * COUNT( * )
----
-86
97

skipif mysql # not compatible
query II rowsort label-3627
SELECT DISTINCT - 86 AS col0, 97 * COUNT ( * )
----
-86
97

query I rowsort
SELECT ALL - 24 * - 82 AS col0
----
1968

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT - COUNT( * ) * - - 40 col1
----
-40

skipif mysql # not compatible
query I rowsort label-3629
SELECT - COUNT ( * ) * - - 40 col1
----
-40

query I rowsort
SELECT - 76 * - 68 AS col1
----
5168

query I rowsort
SELECT 80 * 5 AS col1
----
400

onlyif mysql # DIV for integer division: 
query I rowsort label-3632
SELECT - 60 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-3632
SELECT - 60 / + 69
----
0

query I rowsort
SELECT + 99 - 25 + + 12 * - - 57 * + - 57
----
-38914

query I rowsort
SELECT ALL + - 43 + - 48
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3635
SELECT ALL + 52 + - CASE + SUM( + CAST( NULL AS SIGNED ) ) WHEN + 47 THEN NULL ELSE + 67 END AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL + 52 + - CASE + SUM ( + CAST ( NULL AS INTEGER ) ) WHEN + 47 THEN NULL ELSE + 67 END AS col2
----
-15

query I rowsort
SELECT ALL - + 56 AS col0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3637
SELECT ALL + - CAST( NULL AS SIGNED ) + 23 AS col1, + 97 - - 55 AS col0
----
NULL
152

skipif mysql # not compatible
query II rowsort label-3637
SELECT ALL + - CAST ( NULL AS INTEGER ) + 23 AS col1, + 97 - - 55 AS col0
----
NULL
152

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT + - COUNT( * ) * + 15 - - - 83 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-3638
SELECT + - COUNT ( * ) * + 15 - - - 83 AS col2
----
-98

query I rowsort
SELECT DISTINCT - 70 AS col1
----
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3640
SELECT CAST( NULL AS DECIMAL ) * - - 33 + - COALESCE ( + 99, + 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT CAST ( NULL AS REAL ) * - - 33 + - COALESCE ( + 99, + 88 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3641
SELECT 29 - + CAST( - - COUNT( * ) AS SIGNED ) col1
----
28

skipif mysql # not compatible
query I rowsort label-3641
SELECT 29 - + CAST ( - - COUNT ( * ) AS INTEGER ) col1
----
28

query I rowsort
SELECT - 76 - - 29 + 70 * - 39 + NULLIF ( - - 96, + ( + - 42 ) ) col2
----
-2681

query I rowsort
SELECT ALL - 37 - - + 98 * + 62
----
6039

query II rowsort
SELECT - 39 AS col2, - 60 - - 1 AS col0
----
-39
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT + MAX( DISTINCT - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-3645
SELECT + MAX ( DISTINCT - 42 )
----
-42

query I rowsort
SELECT NULLIF ( - 90, + 79 ) + + 78 + - NULLIF ( + - 34, + 94 ) + 84
----
106

query I rowsort
SELECT ALL - 87 * + + 31 AS col0
----
-2697

query I rowsort
SELECT ALL 63 AS col1
----
63

query I rowsort
SELECT ALL 66 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT ALL + COUNT( * ) * + 12 * - 58
----
-696

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL + COUNT ( * ) * + 12 * - 58
----
-696

query I rowsort
SELECT - 81 * - + ( + 86 ) AS col0
----
6966

query I rowsort
SELECT - 39 * - 77 AS col0
----
3003

query I rowsort
SELECT + 45 + + 64
----
109

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3654
SELECT - 57 DIV + CAST( 88 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3654
SELECT - 57 / + CAST ( 88 AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3655
SELECT + 63 DIV + - COUNT( * ) AS col0, 16 AS col2
----
-63
16

skipif mysql # not compatible
query II rowsort label-3655
SELECT + 63 / + - COUNT ( * ) AS col0, 16 AS col2
----
-63
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3656
SELECT + NULLIF ( CAST( NULL AS SIGNED ), + + MIN( DISTINCT + 6 ) + + - COALESCE ( + - 38, + 46, 72 * CAST( NULL AS DECIMAL ) ) ) + CAST( ( + 37 ) AS SIGNED ) * - 9 + - SUM( DISTINCT 75 ) * + 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3656
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), + + MIN ( DISTINCT + 6 ) + + - COALESCE ( + - 38, + 46, 72 * CAST ( NULL AS REAL ) ) ) + CAST ( ( + 37 ) AS INTEGER ) * - 9 + - SUM ( DISTINCT 75 ) * + 5 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 37 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT - MIN( DISTINCT + 43 ) + COUNT( ALL - + 73 )
----
-42

skipif mysql # not compatible
query I rowsort label-3658
SELECT - MIN ( DISTINCT + 43 ) + COUNT ( ALL - + 73 )
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-3659
SELECT DISTINCT + COUNT( * ) + - + 36 AS col0, + 4
----
-35
4

skipif mysql # not compatible
query II rowsort label-3659
SELECT DISTINCT + COUNT ( * ) + - + 36 AS col0, + 4
----
-35
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT DISTINCT 80 + 93 * + COUNT( * ) AS col1
----
173

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT 80 + 93 * + COUNT ( * ) AS col1
----
173

query I rowsort
SELECT ALL 97 * + + 87
----
8439

onlyif mysql # aggregate syntax: 
query II rowsort label-3662
SELECT - MIN( 32 ) AS col1, 57 + - 28 * - - 13
----
-32
-307

skipif mysql # not compatible
query II rowsort label-3662
SELECT - MIN ( 32 ) AS col1, 57 + - 28 * - - 13
----
-32
-307

query I rowsort
SELECT ALL 9 + + + 98 AS col1
----
107

query I rowsort
SELECT ALL 73 + 72 AS col1
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT - 91 + NULLIF ( - 81, 23 * + CASE ( - + COUNT( * ) ) WHEN - COUNT( * ) THEN AVG ( + 57 ) END + - 49 ) * COALESCE ( + + 52, - 43 * - 99 ) + + + 1 col2
----
-4302

skipif mysql # not compatible
query I rowsort label-3665
SELECT - 91 + NULLIF ( - 81, 23 * + CASE ( - + COUNT ( * ) ) WHEN - COUNT ( * ) THEN AVG ( + 57 ) END + - 49 ) * COALESCE ( + + 52, - 43 * - 99 ) + + + 1 col2
----
-4302

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT + MIN( ALL - 33 ) + 96 col2
----
63

skipif mysql # not compatible
query I rowsort label-3666
SELECT + MIN ( ALL - 33 ) + 96 col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3667
SELECT DISTINCT 2 + - 80 AS col1, - 99 * - COALESCE ( - 94, - + 98 - + CAST( + CAST( - 50 AS SIGNED ) AS SIGNED ) * - 2, + COUNT( * ) )
----
-78
-9306

skipif mysql # not compatible
query II rowsort label-3667
SELECT DISTINCT 2 + - 80 AS col1, - 99 * - COALESCE ( - 94, - + 98 - + CAST ( + CAST ( - 50 AS INTEGER ) AS INTEGER ) * - 2, + COUNT ( * ) )
----
-78
-9306

query I rowsort
SELECT DISTINCT 9 * - 25 * + 74 + + 44 AS col1
----
-16606

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT + + CASE - 86 WHEN - - 51 THEN - - 15 * - 79 * 37 + - 24 WHEN + 52 THEN NULL WHEN 3 THEN + 20 ELSE NULL END * + COUNT( * ) + - + 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT + + CASE - 86 WHEN - - 51 THEN - - 15 * - 79 * 37 + - 24 WHEN + 52 THEN NULL WHEN 3 THEN + 20 ELSE NULL END * + COUNT ( * ) + - + 75 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3670
SELECT 87 DIV + 31 + - - 79 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-3670
SELECT 87 / + 31 + - - 79 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT ALL + ( COUNT( * ) ) * - + ( - - 85 ) + - COALESCE ( + 1, + - 71 )
----
-86

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL + ( COUNT ( * ) ) * - + ( - - 85 ) + - COALESCE ( + 1, + - 71 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT + NULLIF ( - + 81, + + 58 ) + + - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-3672
SELECT + NULLIF ( - + 81, + + 58 ) + + - COUNT ( * )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3673
SELECT ALL - COUNT( * ) DIV + 22 * 96
----
0

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL - COUNT ( * ) / + 22 * 96
----
0

query I rowsort
SELECT ALL + 64 AS col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3675
SELECT + COUNT( * ) + + + MIN( + 49 ) + - + 69 - + MIN( + 50 ) * + CAST( NULL AS SIGNED ) * - - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3675
SELECT + COUNT ( * ) + + + MIN ( + 49 ) + - + 69 - + MIN ( + 50 ) * + CAST ( NULL AS INTEGER ) * - - 82 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 78 * + 98 * + 89
----
680316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3677
SELECT ALL 98 * 13 DIV - - COUNT( DISTINCT - + 96 ) - + 21 * 9 + - 64 * + + 70
----
-3395

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL 98 * 13 / - - COUNT ( DISTINCT - + 96 ) - + 21 * 9 + - 64 * + + 70
----
-3395

query I rowsort
SELECT - + 71 + + 62 col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3679
SELECT + CASE - 50 WHEN + CAST( NULL AS SIGNED ) THEN 41 * + + NULLIF ( 94, - 83 ) / + + 78 * CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3679
SELECT + CASE - 50 WHEN + CAST ( NULL AS INTEGER ) THEN 41 * + + NULLIF ( 94, - 83 ) / + + 78 * CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3680
SELECT - - ( ( - 66 ) ) + + 77 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3680
SELECT - - ( ( - 66 ) ) + + 77 * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT - 82 * - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-3681
SELECT - 82 * - COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT DISTINCT - 47 * + + 41 * + COUNT( * ) / + 73 * CASE 12 WHEN + 3 THEN + + 1 + - - 92 ELSE NULL END + 25 + - ( + 68 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT - 47 * + + 41 * + COUNT ( * ) / + 73 * CASE 12 WHEN + 3 THEN + + 1 + - - 92 ELSE NULL END + 25 + - ( + 68 ) AS col1
----
NULL

query I rowsort
SELECT - 17 * 33
----
-561

query I rowsort
SELECT DISTINCT 23 * 23 AS col0
----
529

query I rowsort
SELECT + 63 + - NULLIF ( - 20, 86 * + - 35 * - 5 ) AS col0
----
83

query I rowsort
SELECT ALL COALESCE ( - 52, + NULLIF ( + 83, 64 ), 59 )
----
-52

query I rowsort
SELECT + 81 * + 54 AS col2
----
4374

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT SUM( + 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-3688
SELECT SUM ( + 63 ) AS col0
----
63

query I rowsort
SELECT DISTINCT ( + 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT - 33 - + COUNT( * ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-3690
SELECT - 33 - + COUNT ( * ) AS col0
----
-34

query II rowsort
SELECT ALL + 96 + + - ( 36 ) AS col2, - 1 - 96
----
60
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT ALL CASE + 9 WHEN COUNT( * ) THEN + COUNT( * ) ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL CASE + 9 WHEN COUNT ( * ) THEN + COUNT ( * ) ELSE COUNT ( * ) END
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3693
SELECT - 86 * - 26 * + 38 * CAST( + 26 AS SIGNED ) AS col1
----
2209168

skipif mysql # not compatible
query I rowsort label-3693
SELECT - 86 * - 26 * + 38 * CAST ( + 26 AS INTEGER ) AS col1
----
2209168

query I rowsort
SELECT ALL - 23 * + 78
----
-1794

query II rowsort
SELECT ALL + ( + + 78 ) + + + 90 AS col2, 11 AS col2
----
168
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT - MIN( DISTINCT - ( + - 90 ) ) * - + 45 AS col2
----
4050

skipif mysql # not compatible
query I rowsort label-3696
SELECT - MIN ( DISTINCT - ( + - 90 ) ) * - + 45 AS col2
----
4050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3697
SELECT - 50 + CAST( 22 AS SIGNED ) - - - 75 * + 92 AS col0
----
-6928

skipif mysql # not compatible
query I rowsort label-3697
SELECT - 50 + CAST ( 22 AS INTEGER ) - - - 75 * + 92 AS col0
----
-6928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3698
SELECT + SUM( ALL + - 94 ) - ( + 15 ) + + 76 DIV + + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-3698
SELECT + SUM ( ALL + - 94 ) - ( + 15 ) + + 76 / + + COUNT ( * )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3699
SELECT ALL CAST( - 11 AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL CAST ( - 11 AS INTEGER )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-3700
SELECT + CASE + - 74 WHEN - COUNT( * ) THEN - 57 * 50 * 94 / 68 * - 43 ELSE NULL END / - ( + + 85 ) * - 73, 47 * - 27 * + 81 + + + 94 AS col2
----
NULL
-102695

skipif mysql # not compatible
query II rowsort label-3700
SELECT + CASE + - 74 WHEN - COUNT ( * ) THEN - 57 * 50 * 94 / 68 * - 43 ELSE NULL END / - ( + + 85 ) * - 73, 47 * - 27 * + 81 + + + 94 AS col2
----
NULL
-102695

query I rowsort
SELECT + 32 - + 69 * + - 53 * + - 17
----
-62137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3702
SELECT DISTINCT CAST( + + 80 AS SIGNED ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT CAST ( + + 80 AS INTEGER ) AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3703
SELECT - - COALESCE ( 56, - SUM( 72 ) * CASE + CAST( NULL AS SIGNED ) WHEN + AVG ( DISTINCT 79 ) THEN NULL ELSE - 41 END + - 87, + - 10, - NULLIF ( + 94, - + COUNT( * ) / - 75 ) + - 88 ) * 66 AS col0
----
3696

skipif mysql # not compatible
query I rowsort label-3703
SELECT - - COALESCE ( 56, - SUM ( 72 ) * CASE + CAST ( NULL AS INTEGER ) WHEN + AVG ( DISTINCT 79 ) THEN NULL ELSE - 41 END + - 87, + - 10, - NULLIF ( + 94, - + COUNT ( * ) / - 75 ) + - 88 ) * 66 AS col0
----
3696

query II rowsort
SELECT ALL 66 AS col1, + 92 AS col0
----
66
92

query I rowsort
SELECT - 78 AS col1
----
-78

query II rowsort
SELECT DISTINCT - 71 AS col2, 52
----
-71
52

query I rowsort
SELECT DISTINCT + 30 - + 21
----
9

query I rowsort
SELECT DISTINCT + 14 * + 48 AS col0
----
672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3709
SELECT + 22 * + - AVG ( CAST( NULL AS SIGNED ) ), + 83 * + + COALESCE ( + COUNT( * ), + - ( - 68 ) * 37 + 68 DIV + CAST( 4 AS SIGNED ) * - CASE + ( 35 ) WHEN 59 THEN ( 18 ) * + 20 ELSE NULL END, 87 DIV + 26 ) AS col1
----
NULL
83

skipif mysql # not compatible
query II rowsort label-3709
SELECT + 22 * + - AVG ( CAST ( NULL AS INTEGER ) ), + 83 * + + COALESCE ( + COUNT ( * ), + - ( - 68 ) * 37 + 68 / + CAST ( 4 AS INTEGER ) * - CASE + ( 35 ) WHEN 59 THEN ( 18 ) * + 20 ELSE NULL END, 87 / + 26 ) AS col1
----
NULL
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3710
SELECT CASE + ( - - 35 ) WHEN 80 THEN - + CAST( NULL AS SIGNED ) / AVG ( - - 86 ) + COUNT( * ) + 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT CASE + ( - - 35 ) WHEN 80 THEN - + CAST ( NULL AS INTEGER ) / AVG ( - - 86 ) + COUNT ( * ) + 16 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3711
SELECT ALL 59 DIV + ( - 61 ) - + 38 * + 30 AS col2
----
-1140

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL 59 / + ( - 61 ) - + 38 * + 30 AS col2
----
-1140

query I rowsort
SELECT + + 12
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT + + COUNT( * ) * - - 34
----
34

skipif mysql # not compatible
query I rowsort label-3713
SELECT + + COUNT ( * ) * - - 34
----
34

query I rowsort
SELECT ALL 27 * 41 + + - 96
----
1011

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3715
SELECT ALL SUM( 26 ) * - + 15 * CAST( NULL AS SIGNED ) * + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL SUM ( 26 ) * - + 15 * CAST ( NULL AS INTEGER ) * + 10 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( 27 ) AS col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3717
SELECT ALL - 54 DIV + - NULLIF ( + - 66, + + 94 )
----
0

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL - 54 / + - NULLIF ( + - 66, + + 94 )
----
0

query I rowsort
SELECT NULLIF ( + 36, - 46 )
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-3719
SELECT DISTINCT - - 12, - 39 * + 62 * + + COUNT( 68 ) AS col1
----
12
-2418

skipif mysql # not compatible
query II rowsort label-3719
SELECT DISTINCT - - 12, - 39 * + 62 * + + COUNT ( 68 ) AS col1
----
12
-2418

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT 63 * + + 70 + - COUNT( * )
----
4409

skipif mysql # not compatible
query I rowsort label-3720
SELECT 63 * + + 70 + - COUNT ( * )
----
4409

query I rowsort
SELECT 48 + + + 70
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-3722
SELECT 57 DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-3722
SELECT 57 / - 60
----
0

query I rowsort
SELECT ALL ( - 30 ) + + 35 + - - 23 col2
----
28

query I rowsort
SELECT ( 24 ) + 3
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3725
SELECT ALL - 64 + + COUNT( * ) + - - CAST( + + 98 AS SIGNED ) + + + 45
----
80

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL - 64 + + COUNT ( * ) + - - CAST ( + + 98 AS INTEGER ) + + + 45
----
80

query I rowsort
SELECT 37 + 76 - + 97 AS col1
----
16

query I rowsort
SELECT ALL + 92 + - 41 * COALESCE ( + + 68, + 75 ) * 29 + 77
----
-80683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3728
SELECT 57 + CASE - 44 WHEN - 20 THEN + + COUNT( * ) WHEN + + 40 / CAST( NULL AS SIGNED ) + - COUNT( - 19 ) - - 53 * + 27 THEN NULL END - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3728
SELECT 57 + CASE - 44 WHEN - 20 THEN + + COUNT ( * ) WHEN + + 40 / CAST ( NULL AS INTEGER ) + - COUNT ( - 19 ) - - 53 * + 27 THEN NULL END - 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT COUNT( * ) + - + SUM( DISTINCT - 23 )
----
24

skipif mysql # not compatible
query I rowsort label-3729
SELECT COUNT ( * ) + - + SUM ( DISTINCT - 23 )
----
24

query I rowsort
SELECT 72 + + + 67 + 78
----
217

query I rowsort
SELECT 25 col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT 82 + - - COUNT( + - 43 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-3732
SELECT 82 + - - COUNT ( + - 43 ) AS col2
----
83

query II rowsort
SELECT 91 + + - 41 col2, 90
----
50
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT ALL + + 36 * ( + 79 ) * 49 + 1 + + NULLIF ( 38, - COUNT( ALL + 96 ) * + COUNT( * ) ) AS col0
----
139395

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL + + 36 * ( + 79 ) * 49 + 1 + + NULLIF ( 38, - COUNT ( ALL + 96 ) * + COUNT ( * ) ) AS col0
----
139395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3735
SELECT + 79 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3735
SELECT + 79 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 57 AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT DISTINCT + - 69 * + 24 * 2 - + COALESCE ( - 40, + 30, + COUNT( * ) * + ( + - MAX( DISTINCT + 93 ) ) ) AS col0
----
-3272

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT + - 69 * + 24 * 2 - + COALESCE ( - 40, + 30, + COUNT ( * ) * + ( + - MAX ( DISTINCT + 93 ) ) ) AS col0
----
-3272

onlyif mysql # aggregate syntax: 
query II rowsort label-3738
SELECT ( - 54 ) * - SUM( - + 49 ) AS col0, 27 AS col2
----
-2646
27

skipif mysql # not compatible
query II rowsort label-3738
SELECT ( - 54 ) * - SUM ( - + 49 ) AS col0, 27 AS col2
----
-2646
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT + COALESCE ( - 13, + 62, - SUM( DISTINCT - + 16 ) - ( + - COUNT( * ) ) )
----
-13

skipif mysql # not compatible
query I rowsort label-3739
SELECT + COALESCE ( - 13, + 62, - SUM ( DISTINCT - + 16 ) - ( + - COUNT ( * ) ) )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT + 19 * COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-3740
SELECT + 19 * COUNT ( * )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3741
SELECT ALL - CAST( NULL AS SIGNED ) * + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL - CAST ( NULL AS INTEGER ) * + 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3742
SELECT 83 DIV + - COUNT( * ) col2
----
-83

skipif mysql # not compatible
query I rowsort label-3742
SELECT 83 / + - COUNT ( * ) col2
----
-83

query I rowsort
SELECT - 42 * + 48
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT + COUNT( * ) * - - 98 + + COUNT( - - 61 ) + 42 + + COUNT( * ) * + MAX( DISTINCT + 65 ) + + - 61 * 61 AS col0
----
-3515

skipif mysql # not compatible
query I rowsort label-3744
SELECT + COUNT ( * ) * - - 98 + + COUNT ( - - 61 ) + 42 + + COUNT ( * ) * + MAX ( DISTINCT + 65 ) + + - 61 * 61 AS col0
----
-3515

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3745
SELECT ALL - + CASE + 30 WHEN - 38 / + 66 / CAST( NULL AS SIGNED ) + - + 40 THEN NULL ELSE 15 * 42 * - + MIN( 59 ) + + - 9 * COUNT( * ) END * - - CASE WHEN ( NULL ) IS NULL THEN 9 END AS col1
----
334611

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL - + CASE + 30 WHEN - 38 / + 66 / CAST ( NULL AS INTEGER ) + - + 40 THEN NULL ELSE 15 * 42 * - + MIN ( 59 ) + + - 9 * COUNT ( * ) END * - - CASE WHEN ( NULL ) IS NULL THEN 9 END AS col1
----
334611

query I rowsort
SELECT DISTINCT - + 34 AS col2
----
-34

query I rowsort
SELECT ALL - + 78 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT ( 87 ) * + - 23 * - 94 * + - COUNT( * ) - 58 AS col1
----
-188152

skipif mysql # not compatible
query I rowsort label-3748
SELECT ( 87 ) * + - 23 * - 94 * + - COUNT ( * ) - 58 AS col1
----
-188152

query I rowsort
SELECT ALL - 8 + - + ( - 79 ) + - - ( 76 ) - - - 75 + - 31
----
41

query I rowsort
SELECT DISTINCT - - 1 AS col2
----
1

query I rowsort
SELECT ( - - 40 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT - 60 * + 84 + NULLIF ( COUNT( * ), + 23 + - COUNT( * ) ) + 79
----
-4960

skipif mysql # not compatible
query I rowsort label-3752
SELECT - 60 * + 84 + NULLIF ( COUNT ( * ), + 23 + - COUNT ( * ) ) + 79
----
-4960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3753
SELECT 12 * + CAST( 35 AS SIGNED )
----
420

skipif mysql # not compatible
query I rowsort label-3753
SELECT 12 * + CAST ( 35 AS INTEGER )
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT NULLIF ( + - 51, - + 81 + + 32 + + ( + + 71 ) * + 2 ) + + + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-3754
SELECT NULLIF ( + - 51, - + 81 + + 32 + + ( + + 71 ) * + 2 ) + + + COUNT ( * )
----
-50

query I rowsort
SELECT ALL 28 + + + 35 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT DISTINCT ( + 74 ) + - COUNT( * ) * COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT ( + 74 ) + - COUNT ( * ) * COUNT ( * ) AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3757
SELECT ALL + ( + 16 ) * + CAST( NULL AS SIGNED ) * 21 * 28 * + - 71 + 44 * - ( - MAX( - 10 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL + ( + 16 ) * + CAST ( NULL AS INTEGER ) * 21 * 28 * + - 71 + 44 * - ( - MAX ( - 10 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT DISTINCT ( - 70 ) + - + 38 - + NULLIF ( - - COALESCE ( - - 93, - 53, + - ( + - COALESCE ( + 17, + 79 ) ) ), COUNT( * ) * - 43 ) AS col2
----
-201

skipif mysql # not compatible
query I rowsort label-3758
SELECT DISTINCT ( - 70 ) + - + 38 - + NULLIF ( - - COALESCE ( - - 93, - 53, + - ( + - COALESCE ( + 17, + 79 ) ) ), COUNT ( * ) * - 43 ) AS col2
----
-201

query I rowsort
SELECT ALL 92 + - 56 * + 33 * + 4 * + 84
----
-620836

onlyif mysql # DIV for integer division: 
query I rowsort label-3760
SELECT DISTINCT 57 DIV 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT 57 / 76 AS col1
----
0

query I rowsort
SELECT DISTINCT - 24
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3762
SELECT ALL 74 + - 90 - - 67 DIV 68 * ( - 26 )
----
-16

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL 74 + - 90 - - 67 / 68 * ( - 26 )
----
-16

query II rowsort
SELECT + 86, 34 AS col0
----
86
34

query I rowsort
SELECT 37 + - - 38
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3765
SELECT DISTINCT 21 DIV 84 * - - 18, 95 + - COUNT( ALL 8 ) + + 93 * - + 78 AS col1
----
0
-7160

skipif mysql # not compatible
query II rowsort label-3765
SELECT DISTINCT 21 / 84 * - - 18, 95 + - COUNT ( ALL 8 ) + + 93 * - + 78 AS col1
----
0
-7160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3766
SELECT 62 AS col2, - CAST( - 78 AS SIGNED ) col1
----
62
78

skipif mysql # not compatible
query II rowsort label-3766
SELECT 62 AS col2, - CAST ( - 78 AS INTEGER ) col1
----
62
78

query I rowsort
SELECT 88 * - + 43
----
-3784

query I rowsort
SELECT ALL 14 - 87 + + 49
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT MAX( ALL - + 98 ) - 41
----
-139

skipif mysql # not compatible
query I rowsort label-3769
SELECT MAX ( ALL - + 98 ) - 41
----
-139

query I rowsort
SELECT ALL 50 AS col1
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3771
SELECT DISTINCT 85 DIV COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT 85 / COUNT ( * )
----
85

query I rowsort
SELECT ( + 39 ) * + - 63 * + + 11 - + 64 - + 78
----
-27169

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT DISTINCT + COUNT( * ) * 49 * - 96 AS col1
----
-4704

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT + COUNT ( * ) * 49 * - 96 AS col1
----
-4704

query I rowsort
SELECT ALL + 36 * 31 * - + 81 AS col2
----
-90396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3775
SELECT + 77 * + COALESCE ( + + COALESCE ( + - 50, - 65 * 57, + - ( 91 ) * - ( + + ( - CASE 69 WHEN + - 94 * + + CASE - + 68 WHEN + COUNT( + 90 ) THEN 2 END + + ( - 25 ) + - - 41 + 96 * 65 THEN - 86 ELSE NULL END ) ) ), + ( - ( + 81 ) ) * + + 18 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3775
SELECT + 77 * + COALESCE ( + + COALESCE ( + - 50, - 65 * 57, + - ( 91 ) * - ( + + ( - CASE 69 WHEN + - 94 * + + CASE - + 68 WHEN + COUNT ( + 90 ) THEN 2 END + + ( - 25 ) + - - 41 + 96 * 65 THEN - 86 ELSE NULL END ) ) ), + ( - ( + 81 ) ) * + + 18 ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 18 - 67 - 88 - + - 13
----
-124

query I rowsort
SELECT 49 * - 80 AS col1
----
-3920

query I rowsort
SELECT - 17 - + - 1 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT - MIN( DISTINCT 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-3779
SELECT - MIN ( DISTINCT 58 ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT - COUNT( - 50 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3780
SELECT - COUNT ( - 50 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT - ( - - MAX( - + 18 ) )
----
18

skipif mysql # not compatible
query I rowsort label-3781
SELECT - ( - - MAX ( - + 18 ) )
----
18

query I rowsort
SELECT ALL NULLIF ( + ( 97 ), + 63 * ( + 42 ) + 11 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3783
SELECT COUNT( * ) * + COALESCE ( + COALESCE ( COUNT( ALL 97 ), 47 ), + - 52 + 1 ), COUNT( * ) - 7 AS col0
----
1
-6

skipif mysql # not compatible
query II rowsort label-3783
SELECT COUNT ( * ) * + COALESCE ( + COALESCE ( COUNT ( ALL 97 ), 47 ), + - 52 + 1 ), COUNT ( * ) - 7 AS col0
----
1
-6

query I rowsort
SELECT - 84 + + 85
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3785
SELECT ALL - 18 + COALESCE ( - + 64, ( - - COUNT( * ) ) ), 78 AS col0
----
-82
78

skipif mysql # not compatible
query II rowsort label-3785
SELECT ALL - 18 + COALESCE ( - + 64, ( - - COUNT ( * ) ) ), 78 AS col0
----
-82
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3786
SELECT ALL + 60 DIV + 91 * - 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL + 60 / + 91 * - 12 AS col0
----
0

query I rowsort
SELECT ALL + 59 * + 9 + 96 + 3 AS col1
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT - COUNT( * ) * 41
----
-41

skipif mysql # not compatible
query I rowsort label-3788
SELECT - COUNT ( * ) * 41
----
-41

query I rowsort
SELECT DISTINCT + + 99 * + 62
----
6138

query I rowsort
SELECT ALL + - 89 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT MAX( ALL - - 88 ) * + 6 + + 42
----
570

skipif mysql # not compatible
query I rowsort label-3791
SELECT MAX ( ALL - - 88 ) * + 6 + + 42
----
570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3792
SELECT - COUNT( * ) DIV - + 89 * - + 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3792
SELECT - COUNT ( * ) / - + 89 * - + 82 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3793
SELECT 71 DIV 14 DIV - 12 + + COUNT( * ) + COUNT( * ) * - 62 + 41 + + 77 - 5
----
52

skipif mysql # not compatible
query I rowsort label-3793
SELECT 71 / 14 / - 12 + + COUNT ( * ) + COUNT ( * ) * - 62 + 41 + + 77 - 5
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT COALESCE ( 28, - COUNT( * ) + + - 83 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-3794
SELECT COALESCE ( 28, - COUNT ( * ) + + - 83 ) AS col0
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3795
SELECT + COUNT( * ) * - COUNT( * ) * + CAST( - 79 AS SIGNED ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-3795
SELECT + COUNT ( * ) * - COUNT ( * ) * + CAST ( - 79 AS INTEGER ) AS col2
----
79

query I rowsort
SELECT - 34 + + 70 - - + 34 AS col2
----
70

query I rowsort
SELECT - 93 * - - 13 AS col0
----
-1209

onlyif mysql # aggregate syntax: 
query II rowsort label-3798
SELECT ALL + 67 AS col2, - COUNT( * )
----
67
-1

skipif mysql # not compatible
query II rowsort label-3798
SELECT ALL + 67 AS col2, - COUNT ( * )
----
67
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3799
SELECT DISTINCT + 99 * + - 67 + - 73 DIV + - 64
----
-6632

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT + 99 * + - 67 + - 73 / + - 64
----
-6632

query I rowsort
SELECT ALL + 12 AS col1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3801
SELECT COUNT( * ), - 74 AS col1
----
1
-74

skipif mysql # not compatible
query II rowsort label-3801
SELECT COUNT ( * ), - 74 AS col1
----
1
-74

query I rowsort
SELECT ALL + 98 AS col1
----
98

query I rowsort
SELECT - 19 * - - 80 + 33 * 6 AS col1
----
-1322

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3804
SELECT + ( + 83 ) - - 64 DIV 13 DIV + + ( + - 98 ) * + 80 AS col1, + COUNT( * ) - 66 AS col1
----
83
-65

skipif mysql # not compatible
query II rowsort label-3804
SELECT + ( + 83 ) - - 64 / 13 / + + ( + - 98 ) * + 80 AS col1, + COUNT ( * ) - 66 AS col1
----
83
-65

query I rowsort
SELECT + 39 AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-3806
SELECT MIN( DISTINCT - + 58 ), 7 AS col0
----
-58
7

skipif mysql # not compatible
query II rowsort label-3806
SELECT MIN ( DISTINCT - + 58 ), 7 AS col0
----
-58
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT + 44 * + COUNT( * ) * + + 76 + 52 AS col1
----
3396

skipif mysql # not compatible
query I rowsort label-3807
SELECT + 44 * + COUNT ( * ) * + + 76 + 52 AS col1
----
3396

query I rowsort
SELECT - ( + 51 ) + 65 AS col0
----
14

query I rowsort
SELECT DISTINCT + 20 * 27
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT MIN( ALL - ( - ( 80 ) ) ) col1
----
80

skipif mysql # not compatible
query I rowsort label-3810
SELECT MIN ( ALL - ( - ( 80 ) ) ) col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT ( + + COUNT( 28 ) ) * + 3 + + 44 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-3811
SELECT ( + + COUNT ( 28 ) ) * + 3 + + 44 AS col2
----
47

query I rowsort
SELECT DISTINCT ( 76 )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3813
SELECT DISTINCT 2 DIV - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT 2 / - COUNT ( * )
----
-2

query I rowsort
SELECT - + 41 col1
----
-41

query II rowsort
SELECT ALL - 84, 4 AS col0
----
-84
4

query I rowsort
SELECT + + 88 * + 0 + + 14 col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3817
SELECT DISTINCT + MIN( - 78 ) DIV - 22
----
3

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT + MIN ( - 78 ) / - 22
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3818
SELECT ALL 8 AS col2, - 31 * COUNT( * )
----
8
-31

skipif mysql # not compatible
query II rowsort label-3818
SELECT ALL 8 AS col2, - 31 * COUNT ( * )
----
8
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3819
SELECT + - 13 * + 86 * + + ( 18 ) + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3819
SELECT + - 13 * + 86 * + + ( 18 ) + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT DISTINCT COUNT( + + 88 ) * CASE WHEN NOT 20 IS NOT NULL THEN + - 67 * - 72 END * + ( + + SUM( 62 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT COUNT ( + + 88 ) * CASE WHEN NOT 20 IS NOT NULL THEN + - 67 * - 72 END * + ( + + SUM ( 62 ) )
----
NULL

query I rowsort
SELECT + 63 + 25 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT DISTINCT 33 + - + COALESCE ( - COUNT( * ), + 74, 99 ) + - ( - ( + - 14 ) ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT 33 + - + COALESCE ( - COUNT ( * ), + 74, 99 ) + - ( - ( + - 14 ) ) AS col1
----
20

query I rowsort
SELECT DISTINCT + - 64 + + - 81
----
-145

query I rowsort
SELECT DISTINCT + 30 * + 61 * + NULLIF ( + - 7, - 55 ) AS col2
----
-12810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3825
SELECT ALL - 67 + 41 + - + COUNT( * ) * + 44 DIV - 73 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL - 67 + 41 + - + COUNT ( * ) * + 44 / - 73 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT + COUNT( * ) - + NULLIF ( - COUNT( * ), - - 13 ) + - 69
----
-67

skipif mysql # not compatible
query I rowsort label-3826
SELECT + COUNT ( * ) - + NULLIF ( - COUNT ( * ), - - 13 ) + - 69
----
-67

query I rowsort
SELECT - + 86 + - - 59 * 42 AS col2
----
2392

onlyif mysql # aggregate syntax: 
query II rowsort label-3828
SELECT - COUNT( * ) AS col0, - 11 + + 40 + + 59 AS col0
----
-1
88

skipif mysql # not compatible
query II rowsort label-3828
SELECT - COUNT ( * ) AS col0, - 11 + + 40 + + 59 AS col0
----
-1
88

query I rowsort
SELECT - - 12 + 78
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3830
SELECT ALL - COALESCE ( - 78, - 7, 36 DIV COUNT( * ) * + - COUNT( * ) ) + - 37 AS col1, - 14 AS col0
----
41
-14

skipif mysql # not compatible
query II rowsort label-3830
SELECT ALL - COALESCE ( - 78, - 7, 36 / COUNT ( * ) * + - COUNT ( * ) ) + - 37 AS col1, - 14 AS col0
----
41
-14

query I rowsort
SELECT + + 0 + + NULLIF ( + 93, + ( 69 ) ) AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3832
SELECT + 5 * CAST( NULL AS SIGNED ) + + + COUNT( * ) + - 90 AS col1, - 92 - - - 12 * - 44
----
NULL
436

skipif mysql # not compatible
query II rowsort label-3832
SELECT + 5 * CAST ( NULL AS INTEGER ) + + + COUNT ( * ) + - 90 AS col1, - 92 - - - 12 * - 44
----
NULL
436

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3833
SELECT COUNT( * ) DIV - 72 + - 48 col2
----
-48

skipif mysql # not compatible
query I rowsort label-3833
SELECT COUNT ( * ) / - 72 + - 48 col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT MAX( DISTINCT + ( 44 ) )
----
44

skipif mysql # not compatible
query I rowsort label-3834
SELECT MAX ( DISTINCT + ( 44 ) )
----
44

query I rowsort
SELECT DISTINCT + 70 AS col1
----
70

query I rowsort
SELECT - 4 * - - ( 30 ) AS col1
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3837
SELECT + CAST( + 69 AS SIGNED ) AS col0, CASE COUNT( * ) WHEN + 49 + - - 70 * + - 14 THEN - 22 ELSE - + 35 + - + 2 + - 59 END
----
69
-96

skipif mysql # not compatible
query II rowsort label-3837
SELECT + CAST ( + 69 AS INTEGER ) AS col0, CASE COUNT ( * ) WHEN + 49 + - - 70 * + - 14 THEN - 22 ELSE - + 35 + - + 2 + - 59 END
----
69
-96

query I rowsort
SELECT ALL - 5 * 58 AS col2
----
-290

query I rowsort
SELECT ( ( + 71 ) )
----
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3840
SELECT - ( - CAST( NULL AS DECIMAL ) ) + - 95 * 51 * - 12 + + + ( + - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3840
SELECT - ( - CAST ( NULL AS REAL ) ) + - 95 * 51 * - 12 + + + ( + - COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT - COALESCE ( - 20, - - 64 + - COUNT( * ) ) * 53 + - 1
----
1059

skipif mysql # not compatible
query I rowsort label-3841
SELECT - COALESCE ( - 20, - - 64 + - COUNT ( * ) ) * 53 + - 1
----
1059

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT - COUNT( * ) * + 49 * + - 97 * 45
----
213885

skipif mysql # not compatible
query I rowsort label-3842
SELECT - COUNT ( * ) * + 49 * + - 97 * 45
----
213885

query I rowsort
SELECT + 37 AS col2
----
37

query I rowsort
SELECT ( COALESCE ( - NULLIF ( - + 43, - 54 + + 89 + - + NULLIF ( + - 25, - + 50 ) ), 82 + 48 * 93 ) ) AS col2
----
43

query I rowsort
SELECT ALL + NULLIF ( - 19, + 29 ) AS col2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3846
SELECT - CAST( NULL AS SIGNED ) * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3846
SELECT - CAST ( NULL AS INTEGER ) * - 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT MAX( 69 ) * + 20 + - ( + 20 ) * COUNT( * ) col2
----
1360

skipif mysql # not compatible
query I rowsort label-3847
SELECT MAX ( 69 ) * + 20 + - ( + 20 ) * COUNT ( * ) col2
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT - COUNT( * ) + - ( - - 6 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-3848
SELECT - COUNT ( * ) + - ( - - 6 ) AS col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3849
SELECT - COUNT( CAST( - COALESCE ( + 9, - 41 / + 31 - + + 27 ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3849
SELECT - COUNT ( CAST ( - COALESCE ( + 9, - 41 / + 31 - + + 27 ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT + 95 * 78 * - ( - + 34 ) * + COUNT( * ) AS col1
----
251940

skipif mysql # not compatible
query I rowsort label-3850
SELECT + 95 * 78 * - ( - + 34 ) * + COUNT ( * ) AS col1
----
251940

query I rowsort
SELECT - - 73 - - 90 AS col2
----
163

query I rowsort
SELECT 81 - + 96 * 18 AS col0
----
-1647

query II rowsort
SELECT ALL - - 58 * - - 53, 24 - 17 * - + 66 AS col2
----
3074
1146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3854
SELECT - 61 DIV - COUNT( * ) + + 59 * + NULLIF ( - - COUNT( * ), + 72 ) + + 63 + - - 77 DIV - 60
----
182

skipif mysql # not compatible
query I rowsort label-3854
SELECT - 61 / - COUNT ( * ) + + 59 * + NULLIF ( - - COUNT ( * ), + 72 ) + + 63 + - - 77 / - 60
----
182

query I rowsort
SELECT ALL + - 45 + - 60 AS col2
----
-105

query I rowsort
SELECT - + 4 AS col1
----
-4

query I rowsort
SELECT - + 91
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3858
SELECT + 97 DIV 45 + - 92
----
-90

skipif mysql # not compatible
query I rowsort label-3858
SELECT + 97 / 45 + - 92
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT DISTINCT CASE - - CASE - + 3 WHEN - 68 THEN - - ( + - 70 ) WHEN + + 39 + 61 + + 24 / + + 75 + + + 86 * + - 33 THEN NULL END WHEN + + 12 * + 20 THEN 46 * + - 50 WHEN + COUNT( * ) + - 91 THEN + 65 * - 75 * COUNT( * ) ELSE NULL END + + 20 + CASE WHEN 40 IN ( + + 22 + + 36 + - 91 / - 11 / - + COUNT( * ) * + COUNT( DISTINCT + + 30 ) + + 93 ) THEN - 48 ELSE - 82 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT CASE - - CASE - + 3 WHEN - 68 THEN - - ( + - 70 ) WHEN + + 39 + 61 + + 24 / + + 75 + + + 86 * + - 33 THEN NULL END WHEN + + 12 * + 20 THEN 46 * + - 50 WHEN + COUNT ( * ) + - 91 THEN + 65 * - 75 * COUNT ( * ) ELSE NULL END + + 20 + CASE WHEN 40 IN ( + + 22 + + 36 + - 91 / - 11 / - + COUNT ( * ) * + COUNT ( DISTINCT + + 30 ) + + 93 ) THEN - 48 ELSE - 82 END AS col2
----
NULL

query I rowsort
SELECT 81 AS col1
----
81

query II rowsort
SELECT + 55 * + 8 AS col0, - 17 * + 57 AS col0
----
440
-969

query II rowsort
SELECT DISTINCT + - 3 + + 99 col1, - 50 col0
----
96
-50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3863
SELECT - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ALL 8 * + 63 * + COUNT( DISTINCT 24 )
----
504

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL 8 * + 63 * + COUNT ( DISTINCT 24 )
----
504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3865
SELECT DISTINCT - 27 + + - ( - NULLIF ( CAST( NULL AS SIGNED ), - 49 + + COUNT( * ) + 26 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT - 27 + + - ( - NULLIF ( CAST ( NULL AS INTEGER ), - 49 + + COUNT ( * ) + 26 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT ALL 99 - COUNT( + 20 ) + - CASE + + 70 WHEN - COUNT( * ) * - 86 + + COUNT( * ) + - 87 + + 98 THEN - 54 + 1 END * + SUM( ALL + + 92 ) * + MAX( ALL 36 ) + + 81 - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL 99 - COUNT ( + 20 ) + - CASE + + 70 WHEN - COUNT ( * ) * - 86 + + COUNT ( * ) + - 87 + + 98 THEN - 54 + 1 END * + SUM ( ALL + + 92 ) * + MAX ( ALL 36 ) + + 81 - 7
----
NULL

query I rowsort
SELECT DISTINCT 61 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT 63 * + COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-3868
SELECT 63 * + COUNT ( * ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-3869
SELECT + 66 AS col1, COUNT( * ) col0
----
66
1

skipif mysql # not compatible
query II rowsort label-3869
SELECT + 66 AS col1, COUNT ( * ) col0
----
66
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3870
SELECT - 74 DIV + 47 + - 77 col1, 57
----
-78
57

skipif mysql # not compatible
query II rowsort label-3870
SELECT - 74 / + 47 + - 77 col1, 57
----
-78
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3871
SELECT ALL 63 - - - 66 * + CAST( - - CASE MAX( DISTINCT - 86 ) WHEN + 42 THEN NULL ELSE - 61 END AS SIGNED )
----
4089

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL 63 - - - 66 * + CAST ( - - CASE MAX ( DISTINCT - 86 ) WHEN + 42 THEN NULL ELSE - 61 END AS INTEGER )
----
4089

query I rowsort
SELECT 47 + - 85 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-3873
SELECT 78 AS col0, COUNT( ALL + 89 )
----
78
1

skipif mysql # not compatible
query II rowsort label-3873
SELECT 78 AS col0, COUNT ( ALL + 89 )
----
78
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3874
SELECT ( - COUNT( * ) ) + - 15 * - 79 * ( - - 11 ) + - ( 98 ) * - NULLIF ( 73, 31 + + + 84 ) * + CAST( - 85 AS SIGNED ) + - + ( + 80 ) AS col0
----
-595136

skipif mysql # not compatible
query I rowsort label-3874
SELECT ( - COUNT ( * ) ) + - 15 * - 79 * ( - - 11 ) + - ( 98 ) * - NULLIF ( 73, 31 + + + 84 ) * + CAST ( - 85 AS INTEGER ) + - + ( + 80 ) AS col0
----
-595136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3875
SELECT ( 27 ) * + CAST( + ( + 23 ) AS SIGNED ) + CAST( + 19 AS SIGNED ) + - - 86 - + + 97 + 74
----
703

skipif mysql # not compatible
query I rowsort label-3875
SELECT ( 27 ) * + CAST ( + ( + 23 ) AS INTEGER ) + CAST ( + 19 AS INTEGER ) + - - 86 - + + 97 + 74
----
703

query I rowsort
SELECT ALL - ( + + 35 ) AS col0
----
-35

query I rowsort
SELECT + 92 col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-3878
SELECT DISTINCT - COUNT( * ) AS col2, + ( 75 ) + - COUNT( * ) * - 16 AS col1
----
-1
91

skipif mysql # not compatible
query II rowsort label-3878
SELECT DISTINCT - COUNT ( * ) AS col2, + ( 75 ) + - COUNT ( * ) * - 16 AS col1
----
-1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT ALL 56 * + MIN( + 89 ) AS col0
----
4984

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL 56 * + MIN ( + 89 ) AS col0
----
4984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3880
SELECT SUM( CAST( NULL AS SIGNED ) ) + + 20 - + - CASE - + 0 WHEN - - 32 THEN NULL WHEN - AVG ( + 50 ) THEN 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3880
SELECT SUM ( CAST ( NULL AS INTEGER ) ) + + 20 - + - CASE - + 0 WHEN - - 32 THEN NULL WHEN - AVG ( + 50 ) THEN 2 ELSE NULL END
----
NULL

query I rowsort
SELECT 97 - - 46 + 11 - 76
----
78

query I rowsort
SELECT 7 + + 92 AS col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT ALL - 3 * + - COALESCE ( - 43, + COALESCE ( 14, 43 - + - 60 ) + + 57, + CAST( 15 AS SIGNED ) ) * - - 62 AS col1
----
-7998

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL - 3 * + - COALESCE ( - 43, + COALESCE ( 14, 43 - + - 60 ) + + 57, + CAST ( 15 AS INTEGER ) ) * - - 62 AS col1
----
-7998

query I rowsort
SELECT DISTINCT - + 44
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT DISTINCT + SUM( DISTINCT 42 ) + + - 2 * + 6 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT + SUM ( DISTINCT 42 ) + + - 2 * + 6 AS col0
----
30

query I rowsort
SELECT 34 * + 7 - 74 * + 72
----
-5090

query I rowsort
SELECT - 36 + - 90
----
-126

query I rowsort
SELECT ALL + 22 + 75 col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3889
SELECT ALL - CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT - - 27 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT - CASE 57 WHEN + MIN( ALL + 88 ) + + - 58 THEN + ( - COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3891
SELECT - CASE 57 WHEN + MIN ( ALL + 88 ) + + - 58 THEN + ( - COUNT ( * ) ) END
----
NULL

query I rowsort
SELECT - COALESCE ( - ( 96 ), 73 ) + + 99
----
195

query II rowsort
SELECT - - 3 AS col0, 76 * - 48 * 25 + + 88 AS col0
----
3
-91112

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3894
SELECT DISTINCT + 39 + - + COUNT( * ) + - COUNT( * ) DIV + ( - 89 ) + 96 AS col1, + ( 1 ) col0
----
134
1

skipif mysql # not compatible
query II rowsort label-3894
SELECT DISTINCT + 39 + - + COUNT ( * ) + - COUNT ( * ) / + ( - 89 ) + 96 AS col1, + ( 1 ) col0
----
134
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT ALL - MAX( - + 14 ) * 93 * + 75 AS col1
----
97650

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL - MAX ( - + 14 ) * 93 * + 75 AS col1
----
97650

onlyif mysql # aggregate syntax: 
query II rowsort label-3896
SELECT ( 76 ) + 27 col0, 58 + - COUNT( * )
----
103
57

skipif mysql # not compatible
query II rowsort label-3896
SELECT ( 76 ) + 27 col0, 58 + - COUNT ( * )
----
103
57

query II rowsort
SELECT - 88 AS col1, - 8
----
-88
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-3898
SELECT ALL 11, - 72 + COUNT( * ) + - 87 * ( - 37 ) + - + COUNT( * ) AS col0
----
11
3147

skipif mysql # not compatible
query II rowsort label-3898
SELECT ALL 11, - 72 + COUNT ( * ) + - 87 * ( - 37 ) + - + COUNT ( * ) AS col0
----
11
3147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3899
SELECT DISTINCT + 78 - - CAST( - COUNT( * ) AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT + 78 - - CAST ( - COUNT ( * ) AS INTEGER )
----
77

query I rowsort
SELECT ALL - - 38 * 78
----
2964

query I rowsort
SELECT + 62 + + 83
----
145

query II rowsort
SELECT - - 44 AS col1, 35
----
44
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL + COUNT( * ) - - NULLIF ( + + 89, + 22 + + 23 ) col2
----
90

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL + COUNT ( * ) - - NULLIF ( + + 89, + 22 + + 23 ) col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3904
SELECT DISTINCT + 87 * + + 0 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT + 87 * + + 0 / 52
----
0

query I rowsort
SELECT COALESCE ( - 74, 84 ) * - - 89 AS col2
----
-6586

query I rowsort
SELECT 73 + - - 56 * + ( + 12 ) AS col0
----
745

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT CASE + 58 WHEN - - COUNT( ALL 26 ) * - 79 THEN 35 WHEN + 72 THEN NULL WHEN + COUNT( 41 ) THEN NULL END / - 75 - + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3907
SELECT CASE + 58 WHEN - - COUNT ( ALL 26 ) * - 79 THEN 35 WHEN + 72 THEN NULL WHEN + COUNT ( 41 ) THEN NULL END / - 75 - + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3908
SELECT 47 * + COUNT( * ) AS col1, ( + CAST( + + 16 AS SIGNED ) ) * + CAST( NULL AS SIGNED ) AS col1
----
47
NULL

skipif mysql # not compatible
query II rowsort label-3908
SELECT 47 * + COUNT ( * ) AS col1, ( + CAST ( + + 16 AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) AS col1
----
47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT DISTINCT + ( + CASE - - 79 WHEN + COUNT( * ) THEN NULL WHEN + 41 / - 63 THEN + - MIN( DISTINCT - 65 ) * 27 WHEN - ( ( + + 16 ) ) THEN + 34 - - 62 ELSE NULL END ) / - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3909
SELECT DISTINCT + ( + CASE - - 79 WHEN + COUNT ( * ) THEN NULL WHEN + 41 / - 63 THEN + - MIN ( DISTINCT - 65 ) * 27 WHEN - ( ( + + 16 ) ) THEN + 34 - - 62 ELSE NULL END ) / - 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3910
SELECT COUNT( - - 49 ) DIV - 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3910
SELECT COUNT ( - - 49 ) / - 31 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3911
SELECT ALL + 79 DIV + 76
----
1

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL + 79 / + 76
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT ALL COUNT( * ) * 84
----
84

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL COUNT ( * ) * 84
----
84

query I rowsort
SELECT DISTINCT 21 * - 67 AS col2
----
-1407

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT MAX( DISTINCT 17 )
----
17

skipif mysql # not compatible
query I rowsort label-3914
SELECT MAX ( DISTINCT 17 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT + COUNT( DISTINCT + 25 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3915
SELECT + COUNT ( DISTINCT + 25 ) AS col0
----
1

query I rowsort
SELECT ALL 82 * - 29 * 8 + + - 9 + - + 25 AS col1
----
-19058

query I rowsort
SELECT + 89 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT + COUNT( DISTINCT + ( + 95 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3918
SELECT + COUNT ( DISTINCT + ( + 95 ) )
----
1

query II rowsort
SELECT 72 * + 87, 62 AS col1
----
6264
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT MIN( DISTINCT + - 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-3920
SELECT MIN ( DISTINCT + - 51 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT + COUNT( 73 )
----
1

skipif mysql # not compatible
query I rowsort label-3921
SELECT + COUNT ( 73 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT COUNT( - - ( 75 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3922
SELECT COUNT ( - - ( 75 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT DISTINCT - ( 89 ) * + 79 * SUM( + 3 ) + - 34 AS col1
----
-21127

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT - ( 89 ) * + 79 * SUM ( + 3 ) + - 34 AS col1
----
-21127

query I rowsort
SELECT ALL + + 77
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT COUNT( + - ( + 85 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3925
SELECT COUNT ( + - ( + 85 ) )
----
1

query I rowsort
SELECT DISTINCT + - 95 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-3927
SELECT DISTINCT + - MAX( ALL - + 77 ), - 43 + + ( + 70 ) AS col1
----
77
27

skipif mysql # not compatible
query II rowsort label-3927
SELECT DISTINCT + - MAX ( ALL - + 77 ), - 43 + + ( + 70 ) AS col1
----
77
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3928
SELECT ALL + 1 + 76, + COALESCE ( + 13, - - 25 - + COUNT( * ) ) DIV - NULLIF ( - 93, - - NULLIF ( + 96, + COUNT( * ) + 37 ) * + 16 * - 59 + - + NULLIF ( - COUNT( * ), + - 0 + - + 59 * + + 80 ) * 65 * - 99 - + 25 - - 39 + - 81 * + 33 * - - 20 ) col1
----
77
0

skipif mysql # not compatible
query II rowsort label-3928
SELECT ALL + 1 + 76, + COALESCE ( + 13, - - 25 - + COUNT ( * ) ) / - NULLIF ( - 93, - - NULLIF ( + 96, + COUNT ( * ) + 37 ) * + 16 * - 59 + - + NULLIF ( - COUNT ( * ), + - 0 + - + 59 * + + 80 ) * 65 * - 99 - + 25 - - 39 + - 81 * + 33 * - - 20 ) col1
----
77
0

query I rowsort
SELECT + - 41 col1
----
-41

query I rowsort
SELECT + - 28 col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT + + 21 + - SUM( + 10 )
----
11

skipif mysql # not compatible
query I rowsort label-3931
SELECT + + 21 + - SUM ( + 10 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3932
SELECT - ( - 78 ) * - - MAX( ALL - 21 ) * 97 / - ( 31 ) / CAST( NULL AS SIGNED ) + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-3932
SELECT - ( - 78 ) * - - MAX ( ALL - 21 ) * 97 / - ( 31 ) / CAST ( NULL AS INTEGER ) + - 54
----
NULL

query I rowsort
SELECT ALL 40 * + 86 * - - 52 - + - 23 AS col0
----
178903

query I rowsort
SELECT - 84 * 79
----
-6636

onlyif mysql # DIV for integer division: 
query I rowsort label-3935
SELECT DISTINCT + 8 - - 12 * + 54 + - + 35 + + 83 DIV + 10
----
629

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT + 8 - - 12 * + 54 + - + 35 + + 83 / + 10
----
629

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3936
SELECT ALL - 49 * + + 77 - + COUNT( * ) DIV - 15, 28 AS col1, + 92 - - - 40 AS col0
----
-3773
28
52

skipif mysql # not compatible
query III rowsort label-3936
SELECT ALL - 49 * + + 77 - + COUNT ( * ) / - 15, 28 AS col1, + 92 - - - 40 AS col0
----
-3773
28
52

query I rowsort
SELECT - - 80 + 46 AS col0
----
126

query I rowsort
SELECT ALL - COALESCE ( - 55, - - 89 )
----
55

query I rowsort
SELECT + 29 col0
----
29

query I rowsort
SELECT - - 77
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT + + 19 + + - MAX( + 46 ) + - 58 + 51 + - 63 + 16 + + 3 + - 66 + 34 AS col1
----
-110

skipif mysql # not compatible
query I rowsort label-3941
SELECT + + 19 + + - MAX ( + 46 ) + - 58 + 51 + - 63 + 16 + + 3 + - 66 + 34 AS col1
----
-110

query I rowsort
SELECT - 16 - 6
----
-22

query I rowsort
SELECT ALL NULLIF ( - 25, + 9 )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3944
SELECT DISTINCT + 92 * + - 11 * + + AVG ( DISTINCT + CASE - 71 WHEN - - COALESCE ( 12, - + 92, + 61, + - 72 ) - + 10 THEN NULL ELSE - CAST( NULL AS SIGNED ) * 21 + + 26 * + 16 + + + 1 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT + 92 * + - 11 * + + AVG ( DISTINCT + CASE - 71 WHEN - - COALESCE ( 12, - + 92, + 61, + - 72 ) - + 10 THEN NULL ELSE - CAST ( NULL AS INTEGER ) * 21 + + 26 * + 16 + + + 1 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT - 46 - - COUNT( * ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-3945
SELECT - 46 - - COUNT ( * ) AS col2
----
-45

query I rowsort
SELECT ALL + 74 * - - 58
----
4292

query I rowsort
SELECT ALL + 1 * - - 60
----
60

query I rowsort
SELECT DISTINCT NULLIF ( - 40, + 39 * 24 - - ( - 15 ) / - 6 + - 0 )
----
-40

query I rowsort
SELECT ALL + 75 + + 77
----
152

query I rowsort
SELECT - ( + ( + + 67 ) ) - 30 col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3951
SELECT MAX( CAST( - - 22 AS SIGNED ) ) * 98 * + + 53 + - 24 * - + 93
----
116500

skipif mysql # not compatible
query I rowsort label-3951
SELECT MAX ( CAST ( - - 22 AS INTEGER ) ) * 98 * + + 53 + - 24 * - + 93
----
116500

query I rowsort
SELECT ( 85 ) AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3953
SELECT + 27 / - 70 + - - 87 + + CAST( NULL AS SIGNED ) * + 61 * - COUNT( * ) * SUM( 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3953
SELECT + 27 / - 70 + - - 87 + + CAST ( NULL AS INTEGER ) * + 61 * - COUNT ( * ) * SUM ( 13 )
----
NULL

query I rowsort
SELECT + 44 * - 89 AS col2
----
-3916

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT - COUNT( * ) + 61 + - 28 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-3955
SELECT - COUNT ( * ) + 61 + - 28 AS col0
----
32

query II rowsort
SELECT + NULLIF ( + 55, + + 39 ) col2, - 29 * + - 54
----
55
1566

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT - COUNT( * ) + 44 - 81 - + COALESCE ( + + 96, + 70 * 85 ) AS col1
----
-134

skipif mysql # not compatible
query I rowsort label-3957
SELECT - COUNT ( * ) + 44 - 81 - + COALESCE ( + + 96, + 70 * 85 ) AS col1
----
-134

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3958
SELECT + NULLIF ( - 28, - + 57 + + ( - 43 ) + + - CAST( CAST( + 26 AS SIGNED ) AS DECIMAL ) ) col0
----
-28

skipif mysql # not compatible
query I rowsort label-3958
SELECT + NULLIF ( - 28, - + 57 + + ( - 43 ) + + - CAST ( CAST ( + 26 AS INTEGER ) AS REAL ) ) col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3959
SELECT ALL - 82 * - + COUNT( + CAST( + 57 AS SIGNED ) ) * - - 89 + 38 * + ( 21 ) * + 71 + + + 93 + 38 AS col2
----
64087

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL - 82 * - + COUNT ( + CAST ( + 57 AS INTEGER ) ) * - - 89 + 38 * + ( 21 ) * + 71 + + + 93 + 38 AS col2
----
64087

query I rowsort
SELECT DISTINCT 27 * - 79 + + 60 * + + 26 * 79 col2
----
121107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3961
SELECT ALL COALESCE ( 50, - - 26 + - + 92 * - ( - 87 ), 10 + + COUNT( + + ( - - 87 ) ) + - 49 - 12 * - 45 * + 67 * + 29 + 45 + 84 DIV + COUNT( * ) ) * + 83
----
4150

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL COALESCE ( 50, - - 26 + - + 92 * - ( - 87 ), 10 + + COUNT ( + + ( - - 87 ) ) + - 49 - 12 * - 45 * + 67 * + 29 + 45 + 84 / + COUNT ( * ) ) * + 83
----
4150

onlyif mysql # aggregate syntax: 
query II rowsort label-3962
SELECT ALL + - 71 * + 14 + - 73, COUNT( * ) * - 50 AS col2
----
-1067
-50

skipif mysql # not compatible
query II rowsort label-3962
SELECT ALL + - 71 * + 14 + - 73, COUNT ( * ) * - 50 AS col2
----
-1067
-50

query I rowsort
SELECT + 28 * - + 51 AS col0
----
-1428

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT + - 36 + - 93 * COUNT( * ) AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-3964
SELECT + - 36 + - 93 * COUNT ( * ) AS col0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT + 41 + + COUNT( 86 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3965
SELECT + 41 + + COUNT ( 86 ) AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3966
SELECT ALL NULLIF ( - 77, - ( - 75 ) ) * CAST( + 15 AS SIGNED )
----
-1155

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL NULLIF ( - 77, - ( - 75 ) ) * CAST ( + 15 AS INTEGER )
----
-1155

onlyif mysql # aggregate syntax: 
query II rowsort label-3967
SELECT 57, COUNT( * ) col1
----
57
1

skipif mysql # not compatible
query II rowsort label-3967
SELECT 57, COUNT ( * ) col1
----
57
1

query I rowsort
SELECT + 55 + + + 89
----
144

query II rowsort
SELECT DISTINCT + 15, - 82 AS col0
----
15
-82

query I rowsort
SELECT 32 col2
----
32

query I rowsort
SELECT + - 59 * + 10 * NULLIF ( + - 70, + - 99 / + 4 )
----
41300

query I rowsort
SELECT ALL + 53 * 19 AS col0
----
1007

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT ALL + + COUNT( ALL + 5 )
----
1

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL + + COUNT ( ALL + 5 )
----
1

query II rowsort
SELECT DISTINCT + - 0 AS col2, 9 AS col0
----
0
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT ALL 74 * + COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL 74 * + COUNT ( * ) AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3976
SELECT + 44 * + - AVG ( DISTINCT 77 ) * 4 * - + COALESCE ( - 59, 66 + - + ( - 4 ) ) * + CASE 82 WHEN + 32 THEN 92 WHEN - + 9 * + 76 THEN - - 92 / - - COALESCE ( + + COUNT( * ), - COUNT( * ) * + - 80 + 82 * + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * COUNT( ALL + 87 ) * COUNT( * ) ) ELSE NULL END * + ( - NULLIF ( 70, + 66 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT + 44 * + - AVG ( DISTINCT 77 ) * 4 * - + COALESCE ( - 59, 66 + - + ( - 4 ) ) * + CASE 82 WHEN + 32 THEN 92 WHEN - + 9 * + 76 THEN - - 92 / - - COALESCE ( + + COUNT ( * ), - COUNT ( * ) * + - 80 + 82 * + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * COUNT ( ALL + 87 ) * COUNT ( * ) ) ELSE NULL END * + ( - NULLIF ( 70, + 66 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3977
SELECT - CAST( - ( + - 78 ) AS SIGNED ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-3977
SELECT - CAST ( - ( + - 78 ) AS INTEGER ) AS col1
----
-78

query I rowsort
SELECT - + 58 AS col2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3979
SELECT + - COALESCE ( 35, - - COUNT( * ) ) + - 11 + + - 90 AS col2, + 40 * - COALESCE ( - COUNT( - 83 ), - 9, 5 DIV - 4 + - 38 + - CAST( NULL AS SIGNED ) * 10 * - 58 * + - 96 + - ( + CAST( - 56 AS SIGNED ) ) ) AS col0
----
-136
40

skipif mysql # not compatible
query II rowsort label-3979
SELECT + - COALESCE ( 35, - - COUNT ( * ) ) + - 11 + + - 90 AS col2, + 40 * - COALESCE ( - COUNT ( - 83 ), - 9, 5 / - 4 + - 38 + - CAST ( NULL AS INTEGER ) * 10 * - 58 * + - 96 + - ( + CAST ( - 56 AS INTEGER ) ) ) AS col0
----
-136
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3980
SELECT + 71 + + 80 * 94 DIV - + 49
----
-82

skipif mysql # not compatible
query I rowsort label-3980
SELECT + 71 + + 80 * 94 / - + 49
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT - + COUNT( * ) * + + 57 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-3981
SELECT - + COUNT ( * ) * + + 57 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-3982
SELECT - COUNT( * ) AS col2, MIN( ALL + 84 )
----
-1
84

skipif mysql # not compatible
query II rowsort label-3982
SELECT - COUNT ( * ) AS col2, MIN ( ALL + 84 )
----
-1
84

query I rowsort
SELECT ALL 10 * + + 72 AS col0
----
720

query I rowsort
SELECT + 22 + - + 31
----
-9

query I rowsort
SELECT DISTINCT 45 * + 20 AS col1
----
900

query I rowsort
SELECT ALL 4 + - 15 AS col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3987
SELECT ALL - COUNT( * ) DIV - ( + 33 )
----
0

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL - COUNT ( * ) / - ( + 33 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3988
SELECT - 75 DIV - + COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-3988
SELECT - 75 / - + COUNT ( * ) AS col0
----
75

query I rowsort
SELECT ALL 80 + - 67
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3990
SELECT DISTINCT 39 + 32 DIV + 16 + - 67 DIV MIN( DISTINCT NULLIF ( + ( + 13 ), + 76 ) ) * 19 + - 57 + ( + 66 ) * + CASE + - 22 WHEN + COUNT( * ) * + 4 * + - 43 THEN + + 16 WHEN + 26 * - 61 THEN NULL ELSE - 21 END * - - 69 * - COALESCE ( - MIN( DISTINCT 58 ), 49 + ( - + COUNT( + 52 ) ) ) + - - 61 AS col0
----
-5546822

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT 39 + 32 / + 16 + - 67 / MIN ( DISTINCT NULLIF ( + ( + 13 ), + 76 ) ) * 19 + - 57 + ( + 66 ) * + CASE + - 22 WHEN + COUNT ( * ) * + 4 * + - 43 THEN + + 16 WHEN + 26 * - 61 THEN NULL ELSE - 21 END * - - 69 * - COALESCE ( - MIN ( DISTINCT 58 ), 49 + ( - + COUNT ( + 52 ) ) ) + - - 61 AS col0
----
-5546822

query I rowsort
SELECT + CASE + 10 WHEN - - 88 THEN - 86 WHEN - 97 THEN - ( 63 ) + - + 60 * + 57 * - 60 END * + + 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3992
SELECT DISTINCT + 70 + 17 * - - 10 + CASE + - 76 WHEN - CAST( - AVG ( ALL + + 61 ) AS SIGNED ) * 48 + 86 + - + 58 + 84 + 82 - - 93 * + + CAST( NULL AS SIGNED ) THEN COUNT( * ) WHEN + ( 9 ) * - - 7 + 1 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT + 70 + 17 * - - 10 + CASE + - 76 WHEN - CAST ( - AVG ( ALL + + 61 ) AS INTEGER ) * 48 + 86 + - + 58 + 84 + 82 - - 93 * + + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) WHEN + ( 9 ) * - - 7 + 1 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL ( - 73 ) AS col0
----
-73

query II rowsort
SELECT 94, - 33 AS col0
----
94
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-3995
SELECT ALL + 44 + + 27 DIV - 80 + + + 35 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL + 44 + + 27 / - 80 + + + 35 AS col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3996
SELECT - CAST( NULL AS SIGNED ) * + 61 * + MAX( 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3996
SELECT - CAST ( NULL AS INTEGER ) * + 61 * + MAX ( 42 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT DISTINCT + COUNT( * ) + - 37 * + + 64 col2
----
-2367

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT + COUNT ( * ) + - 37 * + + 64 col2
----
-2367

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT ALL + COUNT( * ) + + - 6
----
-5

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL + COUNT ( * ) + + - 6
----
-5

query II rowsort
SELECT DISTINCT - 84, 3 + 64 AS col0
----
-84
67

query I rowsort
SELECT 79 * 89 AS col0
----
7031

onlyif mysql # aggregate syntax: 
query II rowsort label-4001
SELECT ALL - COUNT( * ) AS col2, + 69 + + 6
----
-1
75

skipif mysql # not compatible
query II rowsort label-4001
SELECT ALL - COUNT ( * ) AS col2, + 69 + + 6
----
-1
75

query II rowsort
SELECT ALL - - 0 AS col2, + 68 + 70
----
0
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4003
SELECT 53 col2, CAST( NULL AS SIGNED ) / - 56 - - COUNT( * ) - COALESCE ( 51, - 35 ) + 29 / + - 74 AS col1
----
53
NULL

skipif mysql # not compatible
query II rowsort label-4003
SELECT 53 col2, CAST ( NULL AS INTEGER ) / - 56 - - COUNT ( * ) - COALESCE ( 51, - 35 ) + 29 / + - 74 AS col1
----
53
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT + CAST( NULL AS SIGNED ) * + 34 - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT + CAST ( NULL AS INTEGER ) * + 34 - 52 AS col2
----
NULL

query I rowsort
SELECT ALL - + 66
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4006
SELECT DISTINCT - COALESCE ( - + 44, 7 ) DIV - 24
----
-1

skipif mysql # not compatible
query I rowsort label-4006
SELECT DISTINCT - COALESCE ( - + 44, 7 ) / - 24
----
-1

query I rowsort
SELECT DISTINCT - 78 col2
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4008
SELECT MAX( + 39 ) DIV + 13 - + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4008
SELECT MAX ( + 39 ) / + 13 - + + COUNT ( * )
----
2

query II rowsort
SELECT - 7 AS col1, + ( 2 )
----
-7
2

query I rowsort
SELECT DISTINCT - 0 * + 56 + - ( + - 22 ) * + - 56 AS col0
----
-1232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4011
SELECT COUNT( * ) + 52 DIV + 83
----
1

skipif mysql # not compatible
query I rowsort label-4011
SELECT COUNT ( * ) + 52 / + 83
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT + CASE - 46 WHEN + 35 + - COUNT( * ) THEN NULL WHEN 55 * 90 * 84 / - COUNT( * ) THEN + - 99 + - + 76 * - 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT + CASE - 46 WHEN + 35 + - COUNT ( * ) THEN NULL WHEN 55 * 90 * 84 / - COUNT ( * ) THEN + - 99 + - + 76 * - 15 END
----
NULL

query I rowsort
SELECT + - 60 AS col2
----
-60

query I rowsort
SELECT + 64 + - 31 - - 5
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4015
SELECT ( - CAST( - + 78 AS SIGNED ) ) * 46 AS col2
----
3588

skipif mysql # not compatible
query I rowsort label-4015
SELECT ( - CAST ( - + 78 AS INTEGER ) ) * 46 AS col2
----
3588

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4016
SELECT ALL 86 AS col0, COALESCE ( 53, - 7 DIV - 32 + - + SUM( DISTINCT - - 98 ) - - 96 * - 4, - 53 )
----
86
53

skipif mysql # not compatible
query II rowsort label-4016
SELECT ALL 86 AS col0, COALESCE ( 53, - 7 / - 32 + - + SUM ( DISTINCT - - 98 ) - - 96 * - 4, - 53 )
----
86
53

query I rowsort
SELECT ALL 25 AS col1
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4018
SELECT DISTINCT - 48 + - + 21 DIV - 93
----
-48

skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT - 48 + - + 21 / - 93
----
-48

query I rowsort
SELECT NULLIF ( - - 74, 17 * - + 29 + + - 58 ) * + + ( - + 64 ) + + 83 AS col0
----
-4653

query I rowsort
SELECT 72 * - 74
----
-5328

query I rowsort
SELECT ALL 63 + 33 AS col0
----
96

query I rowsort
SELECT 77 col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT 56 + + 57 - + COUNT( * ) AS col1
----
112

skipif mysql # not compatible
query I rowsort label-4023
SELECT 56 + + 57 - + COUNT ( * ) AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT 62 * - - MAX( + 60 ) AS col2
----
3720

skipif mysql # not compatible
query I rowsort label-4024
SELECT 62 * - - MAX ( + 60 ) AS col2
----
3720

query I rowsort
SELECT DISTINCT 92 + - 26
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4026
SELECT 10 + + + 27 col1, + CAST( NULL AS SIGNED )
----
37
NULL

skipif mysql # not compatible
query II rowsort label-4026
SELECT 10 + + + 27 col1, + CAST ( NULL AS INTEGER )
----
37
NULL

query I rowsort
SELECT 88 - 85 AS col0
----
3

query I rowsort
SELECT DISTINCT 38 * - 52
----
-1976

query I rowsort
SELECT DISTINCT 56 + - + 16
----
40

query I rowsort
SELECT ALL 40 col0
----
40

query II rowsort
SELECT ALL 91 + + ( + 48 ) AS col0, - 86
----
139
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-4032
SELECT DISTINCT - 67 DIV ( - 52 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT - 67 / ( - 52 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4033
SELECT ALL + ( + - COUNT( * ) ) - + - CASE 29 WHEN + - 86 + 85 * - 25 + - - 58 * - 53 * + 81 THEN + CAST( NULL AS SIGNED ) END / + 45 + 28 * + 44 * + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL + ( + - COUNT ( * ) ) - + - CASE 29 WHEN + - 86 + 85 * - 25 + - - 58 * - 53 * + 81 THEN + CAST ( NULL AS INTEGER ) END / + 45 + 28 * + 44 * + 70
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4034
SELECT 23 - ( + - 85 ) + - + 93 DIV + 98 * 25 * + 53 * + NULLIF ( 74, - + 23 ) * + 37 * 65 DIV 68 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-4034
SELECT 23 - ( + - 85 ) + - + 93 / + 98 * 25 * + 53 * + NULLIF ( 74, - + 23 ) * + 37 * 65 / 68 AS col1
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4035
SELECT ALL COUNT( * ) DIV + NULLIF ( + + 73, - NULLIF ( - 95, 48 ) ) * - 28 AS col1, + 43 * - COALESCE ( + 29, COUNT( 48 ) ) AS col0
----
0
-1247

skipif mysql # not compatible
query II rowsort label-4035
SELECT ALL COUNT ( * ) / + NULLIF ( + + 73, - NULLIF ( - 95, 48 ) ) * - 28 AS col1, + 43 * - COALESCE ( + 29, COUNT ( 48 ) ) AS col0
----
0
-1247

onlyif mysql # aggregate syntax: 
query II rowsort label-4036
SELECT 32 - + + 42 AS col0, + NULLIF ( - ( + - 88 ), + COUNT( * ) ) AS col1
----
-10
88

skipif mysql # not compatible
query II rowsort label-4036
SELECT 32 - + + 42 AS col0, + NULLIF ( - ( + - 88 ), + COUNT ( * ) ) AS col1
----
-10
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4037
SELECT + COALESCE ( MIN( + - 71 ), - + 80 * CAST( NULL AS SIGNED ) + + NULLIF ( - COALESCE ( - CAST( NULL AS SIGNED ), + - 54 * + 41, - + CASE - - 93 WHEN + 71 THEN + COUNT( * ) ELSE NULL END ), - NULLIF ( MAX( + 73 ), - - 67 * - 71 ) ) ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4037
SELECT + COALESCE ( MIN ( + - 71 ), - + 80 * CAST ( NULL AS INTEGER ) + + NULLIF ( - COALESCE ( - CAST ( NULL AS INTEGER ), + - 54 * + 41, - + CASE - - 93 WHEN + 71 THEN + COUNT ( * ) ELSE NULL END ), - NULLIF ( MAX ( + 73 ), - - 67 * - 71 ) ) ) AS col0
----
-71

query I rowsort
SELECT 87 col1
----
87

query I rowsort
SELECT ALL - - 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT 27 + + - ( + 24 ) + + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-4040
SELECT 27 + + - ( + 24 ) + + COUNT ( * )
----
4

query I rowsort
SELECT ALL - - 46
----
46

query I rowsort
SELECT DISTINCT - + 55 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT DISTINCT - COUNT( * ) * - 30
----
30

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT - COUNT ( * ) * - 30
----
30

query I rowsort
SELECT ALL - - 73 col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT 65 + COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-4045
SELECT 65 + COUNT ( * ) AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4046
SELECT + - CAST( - + COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4046
SELECT + - CAST ( - + COUNT ( * ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT + ( 13 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-4048
SELECT + 39 + - COALESCE ( + 31, 94 ) + - + 71 AS col2, 98 * COALESCE ( + 96, - SUM( DISTINCT - 91 ) ) AS col1
----
-63
9408

skipif mysql # not compatible
query II rowsort label-4048
SELECT + 39 + - COALESCE ( + 31, 94 ) + - + 71 AS col2, 98 * COALESCE ( + 96, - SUM ( DISTINCT - 91 ) ) AS col1
----
-63
9408

query I rowsort
SELECT DISTINCT - + 13
----
-13

query I rowsort
SELECT ( + ( + + 15 ) ) * - - 80 AS col1
----
1200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4051
SELECT + 12 * - NULLIF ( + - 27, - CAST( + - 16 AS SIGNED ) * - + 31 ) + - ( 49 ) + - 83
----
192

skipif mysql # not compatible
query I rowsort label-4051
SELECT + 12 * - NULLIF ( + - 27, - CAST ( + - 16 AS INTEGER ) * - + 31 ) + - ( 49 ) + - 83
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-4052
SELECT - 62 DIV - 10 - + 46
----
-40

skipif mysql # not compatible
query I rowsort label-4052
SELECT - 62 / - 10 - + 46
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT + COUNT( * ) * 88 + - + 2 + + SUM( + 40 )
----
126

skipif mysql # not compatible
query I rowsort label-4053
SELECT + COUNT ( * ) * 88 + - + 2 + + SUM ( + 40 )
----
126

query I rowsort
SELECT ALL + + 16 + - 63 * + 20
----
-1244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4055
SELECT DISTINCT + CAST( NULL AS SIGNED ) + COUNT( * ) * - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + COUNT ( * ) * - 9 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4056
SELECT DISTINCT + 34 DIV - NULLIF ( COUNT( * ), - 95 ) AS col1, ( + 29 ) * + 89 - 92 * - 58 * - 45 AS col1
----
-34
-237539

skipif mysql # not compatible
query II rowsort label-4056
SELECT DISTINCT + 34 / - NULLIF ( COUNT ( * ), - 95 ) AS col1, ( + 29 ) * + 89 - 92 * - 58 * - 45 AS col1
----
-34
-237539

query I rowsort
SELECT 56 * - 10 AS col0
----
-560

onlyif mysql # aggregate syntax: 
query II rowsort label-4058
SELECT - 62 AS col2, - COUNT( - 9 )
----
-62
-1

skipif mysql # not compatible
query II rowsort label-4058
SELECT - 62 AS col2, - COUNT ( - 9 )
----
-62
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4059
SELECT ALL + 16 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL + 16 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 62 + + - 84 * - 26
----
2246

onlyif mysql # DIV for integer division: 
query I rowsort label-4061
SELECT 65 * 54 DIV 88
----
39

skipif mysql # not compatible
query I rowsort label-4061
SELECT 65 * 54 / 88
----
39

onlyif mysql # DIV for integer division: 
query II rowsort label-4062
SELECT DISTINCT 69, + 6 + - 77 + 31 DIV 86 AS col0
----
69
-71

skipif mysql # not compatible
query II rowsort label-4062
SELECT DISTINCT 69, + 6 + - 77 + 31 / 86 AS col0
----
69
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-4063
SELECT DISTINCT 51 + + ( + 12 ) AS col0, 49 DIV + 85 + 88 AS col1
----
63
88

skipif mysql # not compatible
query II rowsort label-4063
SELECT DISTINCT 51 + + ( + 12 ) AS col0, 49 / + 85 + 88 AS col1
----
63
88

query II rowsort
SELECT - 73 AS col0, - 46 * - ( + 43 )
----
-73
1978

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT ALL 86 + + NULLIF ( + + 92, COUNT( * ) + + 10 + - 1 + + - ( 51 ) + - 68 * - COUNT( * ) / 85 + - 75 + 96 + - 46 + - - 48 ) + + 1 col0
----
179

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL 86 + + NULLIF ( + + 92, COUNT ( * ) + + 10 + - 1 + + - ( 51 ) + - 68 * - COUNT ( * ) / 85 + - 75 + 96 + - 46 + - - 48 ) + + 1 col0
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT ALL - 53 * COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL - 53 * COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT ALL 50 - COUNT( + ( - 32 ) ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL 50 - COUNT ( + ( - 32 ) ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT - CASE 17 WHEN - 5 THEN NULL WHEN + - 97 THEN NULL ELSE - COUNT( * ) - + 23 * + - 27 END
----
-620

skipif mysql # not compatible
query I rowsort label-4068
SELECT - CASE 17 WHEN - 5 THEN NULL WHEN + - 97 THEN NULL ELSE - COUNT ( * ) - + 23 * + - 27 END
----
-620

query I rowsort
SELECT + 14 * ( - - 27 ) AS col1
----
378

onlyif mysql # aggregate syntax: 
query II rowsort label-4070
SELECT DISTINCT 0 AS col1, + 26 * MIN( - 27 ) AS col0
----
0
-702

skipif mysql # not compatible
query II rowsort label-4070
SELECT DISTINCT 0 AS col1, + 26 * MIN ( - 27 ) AS col0
----
0
-702

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT ALL COUNT( * ) * - 52
----
-52

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL COUNT ( * ) * - 52
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-4072
SELECT + 43 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-4072
SELECT + 43 / 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4073
SELECT - COUNT( ALL + CAST( + 86 AS SIGNED ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4073
SELECT - COUNT ( ALL + CAST ( + 86 AS INTEGER ) ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4074
SELECT + 65 DIV + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-4074
SELECT + 65 / + COUNT ( * )
----
65

query II rowsort
SELECT DISTINCT 13 AS col0, 10 * - + 68 AS col1
----
13
-680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4076
SELECT ALL - MIN( - 84 ) * + - ( - + 18 ) + - - 37 DIV + ( + 96 ) col2
----
1512

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL - MIN ( - 84 ) * + - ( - + 18 ) + - - 37 / + ( + 96 ) col2
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT SUM( DISTINCT + 16 ) col1
----
16

skipif mysql # not compatible
query I rowsort label-4077
SELECT SUM ( DISTINCT + 16 ) col1
----
16

query I rowsort
SELECT ALL + 91 * - - ( - 10 ) - + 89
----
-999

query I rowsort
SELECT + - 22 * + 66 AS col2
----
-1452

query I rowsort
SELECT - + 47 * + 38 * 21
----
-37506

query I rowsort
SELECT ALL + + 84
----
84

query II rowsort
SELECT 1 AS col1, - 51
----
1
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4083
SELECT + 63 * - 77 + + 83 AS col1, COUNT( * )
----
-4768
1

skipif mysql # not compatible
query II rowsort label-4083
SELECT + 63 * - 77 + + 83 AS col1, COUNT ( * )
----
-4768
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4084
SELECT 44 AS col1, - COUNT( * ) * 15
----
44
-15

skipif mysql # not compatible
query II rowsort label-4084
SELECT 44 AS col1, - COUNT ( * ) * 15
----
44
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4085
SELECT - 50 * + - ( - + COALESCE ( - + 26, + + 98 ) ) + 15, + COUNT( + 48 ) AS col0
----
1315
1

skipif mysql # not compatible
query II rowsort label-4085
SELECT - 50 * + - ( - + COALESCE ( - + 26, + + 98 ) ) + 15, + COUNT ( + 48 ) AS col0
----
1315
1

query II rowsort
SELECT ALL - 59 * + 50 * - 57, 24 AS col1
----
168150
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4087
SELECT ALL + ( - 56 ) * - - 80 + 35 + 92 * + COUNT( * ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL + ( - 56 ) * - - 80 + 35 + 92 * + COUNT ( * ) + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 20 * + 57 * - + 88 + + + 56
----
-100264

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT ALL 85 * COALESCE ( + 40, - - COUNT( * ) ) + - 10 AS col1
----
3390

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL 85 * COALESCE ( + 40, - - COUNT ( * ) ) + - 10 AS col1
----
3390

query II rowsort
SELECT DISTINCT + 41 AS col2, - 46 * 26
----
41
-1196

query I rowsort
SELECT NULLIF ( - + 93, 12 * - 10 + CASE + ( + + 22 ) WHEN - 0 / + 60 THEN NULL ELSE 9 * + 4 END + ( + - 20 ) ) AS col2
----
-93

query I rowsort
SELECT + ( - 29 ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT - 45 + - - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-4093
SELECT - 45 + - - COUNT ( * )
----
-44

query I rowsort
SELECT DISTINCT + 12 - + - 97 + + 40 col0
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT DISTINCT + MIN( ALL - 79 ) * - 18 AS col1
----
1422

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT + MIN ( ALL - 79 ) * - 18 AS col1
----
1422

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT DISTINCT 97 - - COUNT( * ) - + ( 55 ) + + + 61 col1
----
104

skipif mysql # not compatible
query I rowsort label-4096
SELECT DISTINCT 97 - - COUNT ( * ) - + ( 55 ) + + + 61 col1
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4097
SELECT - CAST( + COUNT( * ) AS SIGNED ) + - 8
----
-9

skipif mysql # not compatible
query I rowsort label-4097
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + - 8
----
-9

query I rowsort
SELECT ALL ( + - 58 ) AS col1
----
-58

query I rowsort
SELECT - 39 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT DISTINCT - COUNT( * ) - 48
----
-49

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT - COUNT ( * ) - 48
----
-49

query II rowsort
SELECT - 26 * - 95 AS col2, + 44 * + 63
----
2470
2772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4102
SELECT ALL - CAST( - 0 AS SIGNED ) * + - CASE - + 28 WHEN 70 * - - ( - 47 ) THEN + 50 END - + 82 AS col0, COUNT( * ) * + NULLIF ( 18, + + 38 * + 8 DIV + 76 ) * - + 80 + - 58 + + - NULLIF ( - NULLIF ( + 40, + 76 * 86 * + + 86 ), - - 72 * 9 + - + 64 ) - + CASE - 97 WHEN - + CAST( NULL AS SIGNED ) THEN + 21 ELSE - 14 * + + COUNT( * ) + - + 75 DIV - COUNT( * ) END AS col0
----
NULL
-1519

skipif mysql # not compatible
query II rowsort label-4102
SELECT ALL - CAST ( - 0 AS INTEGER ) * + - CASE - + 28 WHEN 70 * - - ( - 47 ) THEN + 50 END - + 82 AS col0, COUNT ( * ) * + NULLIF ( 18, + + 38 * + 8 / + 76 ) * - + 80 + - 58 + + - NULLIF ( - NULLIF ( + 40, + 76 * 86 * + + 86 ), - - 72 * 9 + - + 64 ) - + CASE - 97 WHEN - + CAST ( NULL AS INTEGER ) THEN + 21 ELSE - 14 * + + COUNT ( * ) + - + 75 / - COUNT ( * ) END AS col0
----
NULL
-1519

query I rowsort
SELECT - 2 * - 99 AS col1
----
198

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4104
SELECT DISTINCT ( CASE - 15 WHEN + + 90 * - 83 * - CAST( NULL AS DECIMAL ) + - + 70 + + 24 * + NULLIF ( - + 52, - + ( + + 27 ) ) THEN + COALESCE ( - 63, - - 56 / - + 27 + 9, - 83 * 63 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT ( CASE - 15 WHEN + + 90 * - 83 * - CAST ( NULL AS REAL ) + - + 70 + + 24 * + NULLIF ( - + 52, - + ( + + 27 ) ) THEN + COALESCE ( - 63, - - 56 / - + 27 + 9, - 83 * 63 ) END )
----
NULL

query I rowsort
SELECT DISTINCT 53 AS col0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4106
SELECT CAST( 96 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-4106
SELECT CAST ( 96 AS INTEGER )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT + - COUNT( * ) * - MAX( DISTINCT + 83 ) col2
----
83

skipif mysql # not compatible
query I rowsort label-4107
SELECT + - COUNT ( * ) * - MAX ( DISTINCT + 83 ) col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT - ( + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4108
SELECT - ( + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT ALL - - 25 + - + 7
----
18

query I rowsort
SELECT + 94 - + - 37 AS col2
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4111
SELECT + 99 DIV - - COUNT( * ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-4111
SELECT + 99 / - - COUNT ( * ) AS col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4112
SELECT ALL + 85 DIV + 7 + - + 19 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL + 85 / + 7 + - + 19 AS col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4113
SELECT ALL - 70 / + + 55 + + ( - 60 ) * + 35 - CASE 87 WHEN - 0 / - - 10 THEN - + SUM( DISTINCT + + 14 ) * - 56 + + COUNT( * ) + + 3 * CAST( NULL AS SIGNED ) END * + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL - 70 / + + 55 + + ( - 60 ) * + 35 - CASE 87 WHEN - 0 / - - 10 THEN - + SUM ( DISTINCT + + 14 ) * - 56 + + COUNT ( * ) + + 3 * CAST ( NULL AS INTEGER ) END * + - 70
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4114
SELECT ALL 33 DIV + - 34 + 19 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL 33 / + - 34 + 19 AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4115
SELECT DISTINCT + SUM( - 61 ) * ( 58 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT + SUM ( - 61 ) * ( 58 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4116
SELECT + - 6 * + SUM( - + 34 ) + CAST( NULL AS SIGNED ) - - + 12 * 49 + + CAST( 77 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4116
SELECT + - 6 * + SUM ( - + 34 ) + CAST ( NULL AS INTEGER ) - - + 12 * 49 + + CAST ( 77 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 25 AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4118
SELECT ALL ( 49 ) DIV + ( + + COUNT( * ) ) - 97 + - MAX( ALL + 61 ) + - 27 + + COUNT( * ) * CAST( - + COUNT( * ) AS SIGNED ) AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL ( 49 ) / + ( + + COUNT ( * ) ) - 97 + - MAX ( ALL + 61 ) + - 27 + + COUNT ( * ) * CAST ( - + COUNT ( * ) AS INTEGER ) AS col2
----
-137

query I rowsort
SELECT - 55 AS col1
----
-55

query I rowsort
SELECT + + 28
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT + 68 / + + 10 + + - CASE + ( COUNT( * ) ) WHEN - AVG ( DISTINCT - 61 ) * - 27 + + + 32 THEN 55 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT + 68 / + + 10 + + - CASE + ( COUNT ( * ) ) WHEN - AVG ( DISTINCT - 61 ) * - 27 + + + 32 THEN 55 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT - 28 + COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-4122
SELECT - 28 + COUNT ( * ) AS col2
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-4123
SELECT ALL 34 DIV + 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL 34 / + 46 AS col1
----
0

query I rowsort
SELECT ( + 25 ) col1
----
25

query I rowsort
SELECT - 45 * - 36 + 47 * + 93 AS col1
----
5991

query I rowsort
SELECT ALL 10 - + 37
----
-27

query I rowsort
SELECT DISTINCT - 49 AS col2
----
-49

query II rowsort
SELECT DISTINCT 39 - - 17 + - 17 AS col1, - 37 + - 93 + + 29 + 42
----
39
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT ( - 29 ) * COUNT( * ) + + - ( - 7 ) + + 51
----
29

skipif mysql # not compatible
query I rowsort label-4129
SELECT ( - 29 ) * COUNT ( * ) + + - ( - 7 ) + + 51
----
29

query I rowsort
SELECT ALL - 36 AS col0
----
-36

query I rowsort
SELECT DISTINCT - 39
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4132
SELECT DISTINCT + CAST( 71 AS SIGNED ) * + MAX( DISTINCT - - 25 ) AS col0
----
1775

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT + CAST ( 71 AS INTEGER ) * + MAX ( DISTINCT - - 25 ) AS col0
----
1775

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT DISTINCT COUNT( * ) * 51 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT COUNT ( * ) * 51 AS col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT CAST( + + ( + - 89 ) AS SIGNED ) + + 11
----
-78

skipif mysql # not compatible
query I rowsort label-4134
SELECT CAST ( + + ( + - 89 ) AS INTEGER ) + + 11
----
-78

query I rowsort
SELECT - 69 * + - 44 + + - 84
----
2952

query II rowsort
SELECT DISTINCT 85 col2, 30 AS col0
----
85
30

query I rowsort
SELECT ALL 91 col1
----
91

query I rowsort
SELECT 16 * 68 AS col1
----
1088

query I rowsort
SELECT DISTINCT 44 AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4140
SELECT DISTINCT 96 AS col0, + CAST( 90 AS SIGNED )
----
96
90

skipif mysql # not compatible
query II rowsort label-4140
SELECT DISTINCT 96 AS col0, + CAST ( 90 AS INTEGER )
----
96
90

query I rowsort
SELECT ALL 48 col0
----
48

query I rowsort
SELECT 32 + - - 34 * - 86 + + 49
----
-2843

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4143
SELECT - 56 + - - SUM( ALL + 37 ) + - 47 + + - COALESCE ( + 41, - 68 + - 1 DIV - 96 ) * + + ( + - 43 )
----
1697

skipif mysql # not compatible
query I rowsort label-4143
SELECT - 56 + - - SUM ( ALL + 37 ) + - 47 + + - COALESCE ( + 41, - 68 + - 1 / - 96 ) * + + ( + - 43 )
----
1697

query I rowsort
SELECT ALL + 74 + - 57
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-4145
SELECT + 22 DIV + - 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4145
SELECT + 22 / + - 87 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4146
SELECT + ( ( - COUNT( * ) ) ) + CAST( - 31 AS SIGNED ) - - + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-4146
SELECT + ( ( - COUNT ( * ) ) ) + CAST ( - 31 AS INTEGER ) - - + COUNT ( * )
----
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-4147
SELECT 99 AS col0, 38 DIV - - 26
----
99
1

skipif mysql # not compatible
query II rowsort label-4147
SELECT 99 AS col0, 38 / - - 26
----
99
1

query I rowsort
SELECT - + 96
----
-96

query I rowsort
SELECT ALL - 39 + 43 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT DISTINCT + 81 + - NULLIF ( + COUNT( * ), + 77 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT + 81 + - NULLIF ( + COUNT ( * ), + 77 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ALL + - 93 + COUNT( ALL + 53 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL + - 93 + COUNT ( ALL + 53 ) AS col1
----
-92

query I rowsort
SELECT DISTINCT - 48 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ALL 25 + - - COUNT( * ) * + + 3
----
28

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL 25 + - - COUNT ( * ) * + + 3
----
28

query I rowsort
SELECT ALL - 9 AS col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4155
SELECT + - 30 DIV + 38 - 84 * + 68 col1
----
-5712

skipif mysql # not compatible
query I rowsort label-4155
SELECT + - 30 / + 38 - 84 * + 68 col1
----
-5712

onlyif mysql # DIV for integer division: 
query I rowsort label-4156
SELECT + 8 * - 16 + + 2 DIV - 46 AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-4156
SELECT + 8 * - 16 + + 2 / - 46 AS col2
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4157
SELECT ALL - + CAST( + + 9 AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL - + CAST ( + + 9 AS INTEGER )
----
-9

query I rowsort
SELECT DISTINCT 96 * - 72 AS col1
----
-6912

query I rowsort
SELECT 81 * 96 * - + ( - - 11 ) * - 88
----
7527168

query I rowsort
SELECT 17 * 87
----
1479

query I rowsort
SELECT DISTINCT 28 * - - 30
----
840

query I rowsort
SELECT ALL - 56 AS col2
----
-56

query I rowsort
SELECT ALL - 65 col1
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-4164
SELECT 30 DIV 4 - + - 27
----
34

skipif mysql # not compatible
query I rowsort label-4164
SELECT 30 / 4 - + - 27
----
34

query I rowsort
SELECT ALL 75 - - - 28 + + - 12 col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT ALL - MIN( ALL - 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL - MIN ( ALL - 69 ) AS col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4167
SELECT COUNT( * ) * 46 + 34 * + 34 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT COUNT ( * ) * 46 + 34 * + 34 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT 26 DIV 14 DIV - 10
----
0

skipif mysql # not compatible
query I rowsort label-4168
SELECT 26 / 14 / - 10
----
0

query II rowsort
SELECT NULLIF ( - 94, - 60 ) + - ( ( 32 ) ) AS col2, - 55 AS col0
----
-126
-55

query I rowsort
SELECT - 65 * 87 - - + 46
----
-5609

query II rowsort
SELECT ALL - 71, 5 AS col0
----
-71
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT + MIN( - 67 ) col1
----
-67

skipif mysql # not compatible
query I rowsort label-4172
SELECT + MIN ( - 67 ) col1
----
-67

query II rowsort
SELECT 2, 57 - + + 6 AS col2
----
2
51

query I rowsort
SELECT DISTINCT 86 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT - MAX( ALL - - 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-4175
SELECT - MAX ( ALL - - 55 ) AS col1
----
-55

query II rowsort
SELECT ALL 91 col0, 43
----
91
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4177
SELECT CAST( NULL AS SIGNED ) * 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4177
SELECT CAST ( NULL AS INTEGER ) * 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT ALL MAX( ALL - + ( + 84 ) ) + + - 91 * - 56
----
5012

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL MAX ( ALL - + ( + 84 ) ) + + - 91 * - 56
----
5012

query I rowsort
SELECT ALL - 32 * + 48
----
-1536

query II rowsort
SELECT 2, + 2 + - 13 AS col2
----
2
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4181
SELECT ALL + 4 + - + COALESCE ( - + CASE + 68 WHEN - CAST( NULL AS DECIMAL ) THEN NULL WHEN + ( - ( - + 47 ) ) * + COUNT( * ) - SUM( - 25 ) THEN + - 42 END, + 72 * 48 + - 16 ) col2
----
-3436

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL + 4 + - + COALESCE ( - + CASE + 68 WHEN - CAST ( NULL AS REAL ) THEN NULL WHEN + ( - ( - + 47 ) ) * + COUNT ( * ) - SUM ( - 25 ) THEN + - 42 END, + 72 * 48 + - 16 ) col2
----
-3436

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT 27 + + NULLIF ( 78, - - 16 + 44 ) / - + 61 * - CAST( NULL AS SIGNED ) * + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT 27 + + NULLIF ( 78, - - 16 + 44 ) / - + 61 * - CAST ( NULL AS INTEGER ) * + + 36
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4183
SELECT + CAST( NULL AS SIGNED ) AS col1, - 79 - + 63 DIV - 89 + + 67 AS col1
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-4183
SELECT + CAST ( NULL AS INTEGER ) AS col1, - 79 - + 63 / - 89 + + 67 AS col1
----
NULL
-12

query I rowsort
SELECT ALL + + 33 + + 93 + + 80 + - 84
----
122

query II rowsort
SELECT ALL 98 AS col2, 9
----
98
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT - 29 - + MAX( - 68 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4186
SELECT - 29 - + MAX ( - 68 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT + SUM( + + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-4187
SELECT + SUM ( + + 81 )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4188
SELECT - 56 + - 16 * CAST( NULL AS SIGNED ) * - 76 + - CASE + + 25 WHEN MAX( 94 ) THEN + 86 + - 1 + + COUNT( * ) - + 26 WHEN + ( COUNT( * ) ) THEN NULL ELSE NULL END, + 30 AS col2
----
NULL
30

skipif mysql # not compatible
query II rowsort label-4188
SELECT - 56 + - 16 * CAST ( NULL AS INTEGER ) * - 76 + - CASE + + 25 WHEN MAX ( 94 ) THEN + 86 + - 1 + + COUNT ( * ) - + 26 WHEN + ( COUNT ( * ) ) THEN NULL ELSE NULL END, + 30 AS col2
----
NULL
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4189
SELECT ALL - - ( 85 ) * CAST( NULL AS SIGNED ) / + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL - - ( 85 ) * CAST ( NULL AS INTEGER ) / + + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT - + SUM( + - 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4190
SELECT - + SUM ( + - 21 ) AS col0
----
21

query I rowsort
SELECT ALL + 2 + 11 - 59 AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4192
SELECT - + 19 AS col0, COUNT( DISTINCT + CAST( - 84 AS SIGNED ) ) DIV - 12 AS col2
----
-19
0

skipif mysql # not compatible
query II rowsort label-4192
SELECT - + 19 AS col0, COUNT ( DISTINCT + CAST ( - 84 AS INTEGER ) ) / - 12 AS col2
----
-19
0

query II rowsort
SELECT - 44, + 96 AS col2
----
-44
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4194
SELECT ALL - + 78 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL - + 78 / 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4195
SELECT + 23 + - 66 AS col0, - 31 + - + COUNT( + 54 ) AS col2
----
-43
-32

skipif mysql # not compatible
query II rowsort label-4195
SELECT + 23 + - 66 AS col0, - 31 + - + COUNT ( + 54 ) AS col2
----
-43
-32

query I rowsort
SELECT ( - + 15 ) - + 91
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ALL - - 53 * + - 97 * ( + COUNT( * ) )
----
-5141

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL - - 53 * + - 97 * ( + COUNT ( * ) )
----
-5141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4198
SELECT - 74 * 36 - - 90 + + - 88 + + 45 * + 12 * + 18 * + - 1 * - + CAST( 63 AS SIGNED ) * - 5 col1, + 46 DIV + + ( + MAX( DISTINCT + 39 ) )
----
-3064462
1

skipif mysql # not compatible
query II rowsort label-4198
SELECT - 74 * 36 - - 90 + + - 88 + + 45 * + 12 * + 18 * + - 1 * - + CAST ( 63 AS INTEGER ) * - 5 col1, + 46 / + + ( + MAX ( DISTINCT + 39 ) )
----
-3064462
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4199
SELECT + 50 AS col1, 7 DIV + - ( + 94 ) * + + 30 AS col0
----
50
0

skipif mysql # not compatible
query II rowsort label-4199
SELECT + 50 AS col1, 7 / + - ( + 94 ) * + + 30 AS col0
----
50
0

query I rowsort
SELECT ALL + - 3 AS col2
----
-3

query II rowsort
SELECT ALL - 25 * - 76 AS col2, + 50
----
1900
50

query I rowsort
SELECT - ( + + 52 ) * + - 84 + - 65 + + ( - + 95 )
----
4208

query I rowsort
SELECT ALL + 71 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT COALESCE ( + - 28, + ( + 55 ), 60 * - - COUNT( * ) ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-4204
SELECT COALESCE ( + - 28, + ( + 55 ), 60 * - - COUNT ( * ) ) AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT DISTINCT + COALESCE ( + - 52, - + 62 * - - CAST( NULL AS SIGNED ) )
----
-52

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT + COALESCE ( + - 52, - + 62 * - - CAST ( NULL AS INTEGER ) )
----
-52

query I rowsort
SELECT ALL + 46 col1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4207
SELECT - 63 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4207
SELECT - 63 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( - + 97 ) + + 5 AS col2
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-4209
SELECT + 15 + + 7 DIV - 72 + 87 * + 78 AS col1
----
6801

skipif mysql # not compatible
query I rowsort label-4209
SELECT + 15 + + 7 / - 72 + 87 * + 78 AS col1
----
6801

onlyif mysql # DIV for integer division: 
query I rowsort label-4210
SELECT ALL - 63 DIV - 7
----
9

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL - 63 / - 7
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT DISTINCT - 30 * - 16 * + COUNT( * ) + + 52 AS col2
----
532

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT - 30 * - 16 * + COUNT ( * ) + + 52 AS col2
----
532

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4212
SELECT ALL - CASE + + AVG ( ALL + 62 ) WHEN + SUM( 82 ) + ( - CASE CAST( - - ( - 41 ) AS DECIMAL ) WHEN + + ( - COUNT( * ) ) THEN + - 12 WHEN + - 91 - 96 THEN NULL WHEN + 25 + - 1 THEN NULL END ) * + COUNT( * ) * + + MAX( DISTINCT - 61 ) * COUNT( * ) * - 5 + + 6 THEN 15 * + COUNT( * ) * - - 96 ELSE NULL END * - 81 + 75 / + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL - CASE + + AVG ( ALL + 62 ) WHEN + SUM ( 82 ) + ( - CASE CAST ( - - ( - 41 ) AS REAL ) WHEN + + ( - COUNT ( * ) ) THEN + - 12 WHEN + - 91 - 96 THEN NULL WHEN + 25 + - 1 THEN NULL END ) * + COUNT ( * ) * + + MAX ( DISTINCT - 61 ) * COUNT ( * ) * - 5 + + 6 THEN 15 * + COUNT ( * ) * - - 96 ELSE NULL END * - 81 + 75 / + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4213
SELECT ALL + 97 * COALESCE ( 42, - 75, - NULLIF ( - - COUNT( * ), - 53 ) + + + 48 / - - NULLIF ( - NULLIF ( - + 53, - - 89 ), - 84 - - 88 ) ) + - COUNT( - 95 ) + - 0 * - COUNT( * ) - + - ( + COUNT( * ) ) + + + 78 / + - 15 + - 44 * + - COALESCE ( + SUM( + 48 ), COALESCE ( - 23, + + COUNT( * ) * - 71 * - 0 ), + 46 + + 17 ) * + + 4 + - CASE - MIN( 38 ) WHEN + MIN( + 27 ) + 7 THEN + ( + MAX( ALL 31 ) ) * COUNT( * ) + CAST( - MIN( ALL 24 ) AS SIGNED ) * 44 WHEN - 3 * 89 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL + 97 * COALESCE ( 42, - 75, - NULLIF ( - - COUNT ( * ), - 53 ) + + + 48 / - - NULLIF ( - NULLIF ( - + 53, - - 89 ), - 84 - - 88 ) ) + - COUNT ( - 95 ) + - 0 * - COUNT ( * ) - + - ( + COUNT ( * ) ) + + + 78 / + - 15 + - 44 * + - COALESCE ( + SUM ( + 48 ), COALESCE ( - 23, + + COUNT ( * ) * - 71 * - 0 ), + 46 + + 17 ) * + + 4 + - CASE - MIN ( 38 ) WHEN + MIN ( + 27 ) + 7 THEN + ( + MAX ( ALL 31 ) ) * COUNT ( * ) + CAST ( - MIN ( ALL 24 ) AS INTEGER ) * 44 WHEN - 3 * 89 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4214
SELECT MAX( 34 ) AS col2, 41 * 77
----
34
3157

skipif mysql # not compatible
query II rowsort label-4214
SELECT MAX ( 34 ) AS col2, 41 * 77
----
34
3157

onlyif mysql # aggregate syntax: 
query III rowsort label-4215
SELECT + MAX( ALL - 64 ) AS col2, 24 + - 99 * - - 60, + 60 col1
----
-64
-5916
60

skipif mysql # not compatible
query III rowsort label-4215
SELECT + MAX ( ALL - 64 ) AS col2, 24 + - 99 * - - 60, + 60 col1
----
-64
-5916
60

query I rowsort
SELECT ALL + 6 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT ALL COUNT( * ) + - 19
----
-18

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL COUNT ( * ) + - 19
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4218
SELECT 91 * + ( + - 56 ) + + - 13 + + + 12 AS col2, - CAST( NULL AS SIGNED ) AS col0
----
-5097
NULL

skipif mysql # not compatible
query II rowsort label-4218
SELECT 91 * + ( + - 56 ) + + - 13 + + + 12 AS col2, - CAST ( NULL AS INTEGER ) AS col0
----
-5097
NULL

query I rowsort
SELECT - 91 * - + ( + 14 ) col1
----
1274

onlyif mysql # DIV for integer division: 
query II rowsort label-4220
SELECT ALL 35 DIV - 60 - + 34 + 80 + 18 + - COALESCE ( + 90, + 25 + - 31, + 89 ) - - - 78 + + 38 * - 31, 46 + - 92 * + 1 AS col1
----
-1282
-46

skipif mysql # not compatible
query II rowsort label-4220
SELECT ALL 35 / - 60 - + 34 + 80 + 18 + - COALESCE ( + 90, + 25 + - 31, + 89 ) - - - 78 + + 38 * - 31, 46 + - 92 * + 1 AS col1
----
-1282
-46

query I rowsort
SELECT ALL ( 10 ) + - 83 col1
----
-73

query I rowsort
SELECT + - 86 + ( - ( + 62 ) ) - + 6
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT DISTINCT + 81 + - COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT + 81 + - COUNT ( * ) AS col1
----
80

query I rowsort
SELECT DISTINCT 72 col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4225
SELECT + - 11 + CAST( - 39 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-4225
SELECT + - 11 + CAST ( - 39 AS INTEGER )
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4226
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - COALESCE ( - 12, + 36 * 67 ) AS col1, + NULLIF ( 72, 11 ) + - - 41
----
NULL
113

skipif mysql # not compatible
query II rowsort label-4226
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - COALESCE ( - 12, + 36 * 67 ) AS col1, + NULLIF ( 72, 11 ) + - - 41
----
NULL
113

onlyif mysql # aggregate syntax: 
query II rowsort label-4227
SELECT DISTINCT + 73 - + 78, COUNT( * ) + - 67 - 30 * - 20 * + 10 * - 9 AS col1
----
-5
-54066

skipif mysql # not compatible
query II rowsort label-4227
SELECT DISTINCT + 73 - + 78, COUNT ( * ) + - 67 - 30 * - 20 * + 10 * - 9 AS col1
----
-5
-54066

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4228
SELECT DISTINCT - 98 - + CAST( NULL AS SIGNED ) + - + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT - 98 - + CAST ( NULL AS INTEGER ) + - + 59
----
NULL

query I rowsort
SELECT DISTINCT + 77
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4230
SELECT - ( - NULLIF ( + COUNT( * ), - - 92 ) ) + - + 8 + ( ( + CAST( - 48 AS SIGNED ) ) ) * + 11 * + 40
----
-21127

skipif mysql # not compatible
query I rowsort label-4230
SELECT - ( - NULLIF ( + COUNT ( * ), - - 92 ) ) + - + 8 + ( ( + CAST ( - 48 AS INTEGER ) ) ) * + 11 * + 40
----
-21127

query I rowsort
SELECT DISTINCT + 54 AS col0
----
54

query I rowsort
SELECT ALL 45 col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT DISTINCT MIN( - 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT MIN ( - 44 ) AS col0
----
-44

query I rowsort
SELECT - - 59 AS col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4235
SELECT CASE - 5 WHEN + 90 THEN - CASE + 75 WHEN + ( 73 ) THEN NULL WHEN + 63 THEN + + 49 * - - 38 * + 4 ELSE - CAST( NULL AS SIGNED ) END ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT CASE - 5 WHEN + 90 THEN - CASE + 75 WHEN + ( 73 ) THEN NULL WHEN + 63 THEN + + 49 * - - 38 * + 4 ELSE - CAST ( NULL AS INTEGER ) END ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 71 col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT ALL + COUNT( * ) * + + 48 * 38 * + - 52 AS col2
----
-94848

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL + COUNT ( * ) * + + 48 * 38 * + - 52 AS col2
----
-94848

onlyif mysql # DIV for integer division: 
query II rowsort label-4238
SELECT ALL + 46 col0, + 66 + 37 + 82 DIV + 54
----
46
104

skipif mysql # not compatible
query II rowsort label-4238
SELECT ALL + 46 col0, + 66 + 37 + 82 / + 54
----
46
104

onlyif mysql # DIV for integer division: 
query I rowsort label-4239
SELECT - 63 DIV - + 78 * 35
----
0

skipif mysql # not compatible
query I rowsort label-4239
SELECT - 63 / - + 78 * 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT ALL + 40 * - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL + 40 * - COUNT ( * )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4241
SELECT + 10 * ( + 42 ), - CAST( NULL AS SIGNED ) - + 43 * + - 37 - 34 col1
----
420
NULL

skipif mysql # not compatible
query II rowsort label-4241
SELECT + 10 * ( + 42 ), - CAST ( NULL AS INTEGER ) - + 43 * + - 37 - 34 col1
----
420
NULL

query I rowsort
SELECT - 15 * - - CASE - - 90 WHEN 96 THEN NULL ELSE 64 END AS col0
----
-960

query I rowsort
SELECT - 86 * + 62 * 13 AS col1
----
-69316

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT ( - CASE - 90 WHEN + - 32 THEN NULL WHEN + COUNT( * ) + ( + 82 ) THEN 38 WHEN 47 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT ( - CASE - 90 WHEN + - 32 THEN NULL WHEN + COUNT ( * ) + ( + 82 ) THEN 38 WHEN 47 THEN NULL END ) AS col1
----
NULL

query I rowsort
SELECT ( - 13 ) AS col2
----
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4246
SELECT ALL + 53 * - 57 * - 30 * CAST( NULL AS DECIMAL ) + + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL + 53 * - 57 * - 30 * CAST ( NULL AS REAL ) + + 5 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT - CASE + 81 WHEN + 75 * - 37 + + COUNT( * ) THEN NULL WHEN - 18 + 87 THEN - 85 ELSE NULL END * + 91 - + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT - CASE + 81 WHEN + 75 * - 37 + + COUNT ( * ) THEN NULL WHEN - 18 + 87 THEN - 85 ELSE NULL END * + 91 - + 75 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT ALL + COUNT( - + 10 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL + COUNT ( - + 10 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4249
SELECT DISTINCT - 9 * 18 + CAST( + ( - COUNT( * ) ) AS SIGNED ) + + MAX( - - ( + - 25 ) ) AS col1, - 73 AS col0
----
-188
-73

skipif mysql # not compatible
query II rowsort label-4249
SELECT DISTINCT - 9 * 18 + CAST ( + ( - COUNT ( * ) ) AS INTEGER ) + + MAX ( - - ( + - 25 ) ) AS col1, - 73 AS col0
----
-188
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-4250
SELECT ALL + COUNT( * ) AS col1, + COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-4250
SELECT ALL + COUNT ( * ) AS col1, + COUNT ( * ) AS col0
----
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4251
SELECT + COUNT( * ), 74 AS col0
----
1
74

skipif mysql # not compatible
query II rowsort label-4251
SELECT + COUNT ( * ), 74 AS col0
----
1
74

query I rowsort
SELECT ALL + 59 * + - 91 + 74 AS col0
----
-5295

query I rowsort
SELECT ALL - 76 * + + 78 + + - 5 * - - 49
----
-6173

query I rowsort
SELECT DISTINCT + 83 AS col2
----
83

query I rowsort
SELECT 5 * 75 * + 0 + 16 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT + COALESCE ( COUNT( * ), + 26 )
----
1

skipif mysql # not compatible
query I rowsort label-4256
SELECT + COALESCE ( COUNT ( * ), + 26 )
----
1

query II rowsort
SELECT + 45, - 36 * 95 AS col2
----
45
-3420

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT ALL 66 * + 51 + + COALESCE ( + + 49, COUNT( * ) * + 84 ) + - 25 * - 65 * - - MIN( + 60 )
----
100915

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL 66 * + 51 + + COALESCE ( + + 49, COUNT ( * ) * + 84 ) + - 25 * - 65 * - - MIN ( + 60 )
----
100915

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4259
SELECT ALL - 33 * ( + 4 ) + - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL - 33 * ( + 4 ) + - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - + 32 * + - 52 * + 22 - + 32 AS col0
----
36576

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT ALL + COALESCE ( - ( - COUNT( * ) ), - 17 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL + COALESCE ( - ( - COUNT ( * ) ), - 17 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4262
SELECT - - 15 DIV - 8 + + 66 AS col0, 43 * 61 DIV - + 73
----
65
-35

skipif mysql # not compatible
query II rowsort label-4262
SELECT - - 15 / - 8 + + 66 AS col0, 43 * 61 / - + 73
----
65
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT 57 * 46 - - 3 + + - 23 DIV + 20 + + 11 * + 44 + - - 60 col0
----
3168

skipif mysql # not compatible
query I rowsort label-4263
SELECT 57 * 46 - - 3 + + - 23 / + 20 + + 11 * + 44 + - - 60 col0
----
3168

query II rowsort
SELECT ALL + 92 col0, 90
----
92
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4265
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - 40 - 75 * - 54 + 38 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - 40 - 75 * - 54 + 38 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4266
SELECT ALL + CAST( - ( - - 26 ) AS SIGNED ) AS col1, + MIN( + 55 ) / 34 - CAST( NULL AS SIGNED ) / - 89
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-4266
SELECT ALL + CAST ( - ( - - 26 ) AS INTEGER ) AS col1, + MIN ( + 55 ) / 34 - CAST ( NULL AS INTEGER ) / - 89
----
-26
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT ALL + 60 * - ( - CASE + COUNT( * ) WHEN 93 THEN + + 21 * - ( + - 82 ) + + - 46 * + 41 WHEN - + 59 THEN 70 ELSE ( - - 60 ) END ) * NULLIF ( - - NULLIF ( + CASE - CASE - - 46 WHEN + + COUNT( * ) THEN NULL ELSE 58 END WHEN + 47 THEN + 34 WHEN ( 1 ) THEN + 15 ELSE NULL END, - COUNT( DISTINCT + 20 ) + + 94 ), - 97 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL + 60 * - ( - CASE + COUNT ( * ) WHEN 93 THEN + + 21 * - ( + - 82 ) + + - 46 * + 41 WHEN - + 59 THEN 70 ELSE ( - - 60 ) END ) * NULLIF ( - - NULLIF ( + CASE - CASE - - 46 WHEN + + COUNT ( * ) THEN NULL ELSE 58 END WHEN + 47 THEN + 34 WHEN ( 1 ) THEN + 15 ELSE NULL END, - COUNT ( DISTINCT + 20 ) + + 94 ), - 97 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 96 * + - 34 * ( - 61 ) - + - AVG ( CASE - + 60 WHEN - 67 + + + 54 THEN - + NULLIF ( - - 23, - + 71 ) * + 83 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4269
SELECT - 56 AS col0, COALESCE ( - COUNT( * ), 5, 84 ) * + 69 * + 76 + - COUNT( * ) + - 35 AS col1
----
-56
-5280

skipif mysql # not compatible
query II rowsort label-4269
SELECT - 56 AS col0, COALESCE ( - COUNT ( * ), 5, 84 ) * + 69 * + 76 + - COUNT ( * ) + - 35 AS col1
----
-56
-5280

query II rowsort
SELECT + 90, + 21 col2
----
90
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4271
SELECT DISTINCT - 46, COUNT( * ) col0
----
-46
1

skipif mysql # not compatible
query II rowsort label-4271
SELECT DISTINCT - 46, COUNT ( * ) col0
----
-46
1

query I rowsort
SELECT - 5 + - 19
----
-24

query I rowsort
SELECT 64 + 32 + 10 col2
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT - MIN( - 12 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4274
SELECT - MIN ( - 12 ) AS col2
----
12

query II rowsort
SELECT - 90 AS col0, + 4
----
-90
4

query I rowsort
SELECT ALL ( - 72 ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT + 27 - - - COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-4277
SELECT + 27 - - - COUNT ( * ) AS col1
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4278
SELECT 97 DIV COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-4278
SELECT 97 / COUNT ( * )
----
97

query I rowsort
SELECT + 41 + - 39
----
2

query I rowsort
SELECT 74 + - 37 * + 74 AS col2
----
-2664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4281
SELECT - ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4281
SELECT - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT DISTINCT + COUNT( * ) * + 21
----
21

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT + COUNT ( * ) * + 21
----
21

query I rowsort
SELECT DISTINCT 2 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4284
SELECT MAX( + 37 ) + - 1 + + CAST( NULL AS SIGNED ) + + + 69 - + 28 * 99 * - 88 * - 77 * - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT MAX ( + 37 ) + - 1 + + CAST ( NULL AS INTEGER ) + + + 69 - + 28 * 99 * - 88 * - 77 * - 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL COUNT( * ) * + - 77 * - 14 AS col1
----
1078

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL COUNT ( * ) * + - 77 * - 14 AS col1
----
1078

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4286
SELECT 0 + + 29 - - 44 + + CAST( NULL AS DECIMAL ) / - - MAX( 65 ) * + 68 * 8 * - 42, - 76 AS col2
----
NULL
-76

skipif mysql # not compatible
query II rowsort label-4286
SELECT 0 + + 29 - - 44 + + CAST ( NULL AS REAL ) / - - MAX ( 65 ) * + 68 * 8 * - 42, - 76 AS col2
----
NULL
-76

query I rowsort
SELECT 36 - + 90 + + 94
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4288
SELECT - ( + CAST( NULL AS SIGNED ) ) / COALESCE ( 54, + 58 ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4288
SELECT - ( + CAST ( NULL AS INTEGER ) ) / COALESCE ( 54, + 58 ) + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 68 + - + 39
----
29

query I rowsort
SELECT 26 + - ( + - 42 )
----
68

query I rowsort
SELECT ALL - 96 AS col1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4292
SELECT ALL + 9 + + 58 - - 27 * - CAST( - 86 AS SIGNED ) + + COUNT( * ) AS col2
----
2390

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL + 9 + + 58 - - 27 * - CAST ( - 86 AS INTEGER ) + + COUNT ( * ) AS col2
----
2390

onlyif mysql # DIV for integer division: 
query I rowsort label-4293
SELECT 9 DIV - 59 + - 70 col0
----
-70

skipif mysql # not compatible
query I rowsort label-4293
SELECT 9 / - 59 + - 70 col0
----
-70

query I rowsort
SELECT ALL 38 + + 36 + - + 74 * + + 47
----
-3404

onlyif mysql # DIV for integer division: 
query I rowsort label-4295
SELECT DISTINCT ( - + 17 ) DIV 6 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT ( - + 17 ) / 6 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4296
SELECT CAST( NULL AS SIGNED ) * - 4 AS col2, 7 + - - 88 * - 43 AS col2, - 54 * + 75 AS col0
----
NULL
-3777
-4050

skipif mysql # not compatible
query III rowsort label-4296
SELECT CAST ( NULL AS INTEGER ) * - 4 AS col2, 7 + - - 88 * - 43 AS col2, - 54 * + 75 AS col0
----
NULL
-3777
-4050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4297
SELECT ALL + COUNT( * ) * - - CASE - + COUNT( * ) WHEN - - 11 THEN NULL ELSE - ( 19 ) DIV - - 5 + - 96 END AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL + COUNT ( * ) * - - CASE - + COUNT ( * ) WHEN - - 11 THEN NULL ELSE - ( 19 ) / - - 5 + - 96 END AS col1
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4298
SELECT CAST( NULL AS SIGNED ) + + CAST( - CASE - MAX( - CAST( + 66 AS SIGNED ) ) WHEN + 7 THEN NULL WHEN 14 THEN NULL WHEN + + 30 THEN - 35 - 70 * + 20 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT CAST ( NULL AS INTEGER ) + + CAST ( - CASE - MAX ( - CAST ( + 66 AS INTEGER ) ) WHEN + 7 THEN NULL WHEN 14 THEN NULL WHEN + + 30 THEN - 35 - 70 * + 20 ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT 70 + - 20
----
50

query I rowsort
SELECT 50 * - 65 * - + 93 col2
----
302250

query I rowsort
SELECT + 0 * + 93 col2
----
0

query I rowsort
SELECT DISTINCT - + 74
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4303
SELECT DISTINCT + CAST( 2 AS SIGNED ) * + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT + CAST ( 2 AS INTEGER ) * + COUNT ( * )
----
2

query I rowsort
SELECT ALL - 6 - + 90 * - 3 AS col0
----
264

query I rowsort
SELECT 94 + - 55 + + 3 * + + 24 + 10 + + 9 col0
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-4306
SELECT - 66 * - 61 * COALESCE ( - 85, + 21, + 98 DIV + AVG ( 74 ) ) + + 91
----
-342119

skipif mysql # not compatible
query I rowsort label-4306
SELECT - 66 * - 61 * COALESCE ( - 85, + 21, + 98 / + AVG ( 74 ) ) + + 91
----
-342119

query I rowsort
SELECT 40 * - 66
----
-2640

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT MIN( - 83 ) + - + 15 col1
----
-98

skipif mysql # not compatible
query I rowsort label-4308
SELECT MIN ( - 83 ) + - + 15 col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT - COUNT( ALL - + 46 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4309
SELECT - COUNT ( ALL - + 46 ) AS col1
----
-1

query I rowsort
SELECT ALL 7 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT 19 * - 61 + - - 4 - - SUM( DISTINCT + 22 ) + + 51
----
-1082

skipif mysql # not compatible
query I rowsort label-4311
SELECT 19 * - 61 + - - 4 - - SUM ( DISTINCT + 22 ) + + 51
----
-1082

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT SUM( DISTINCT + - ( + COALESCE ( + 2, - 80 ) ) ) + - 8 col1
----
-10

skipif mysql # not compatible
query I rowsort label-4312
SELECT SUM ( DISTINCT + - ( + COALESCE ( + 2, - 80 ) ) ) + - 8 col1
----
-10

query I rowsort
SELECT ALL + - 58 * - + 2 AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT 50 + - - MIN( ALL + 86 ) AS col1
----
136

skipif mysql # not compatible
query I rowsort label-4314
SELECT 50 + - - MIN ( ALL + 86 ) AS col1
----
136

query I rowsort
SELECT - + ( - - 47 )
----
-47

query I rowsort
SELECT DISTINCT NULLIF ( + - 92, + - 97 + - - 66 )
----
-92

query I rowsort
SELECT ALL ( + + 59 ) * + 34
----
2006

query I rowsort
SELECT ALL + + 67 * - + 28 AS col2
----
-1876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT DISTINCT 63 + + CAST( + 7 AS SIGNED ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT 63 + + CAST ( + 7 AS INTEGER ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT ALL COUNT( * ) + - 67 + - 82 * - 97 * - 47 AS col1
----
-373904

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL COUNT ( * ) + - 67 + - 82 * - 97 * - 47 AS col1
----
-373904

query II rowsort
SELECT 41 AS col0, - 29 AS col2
----
41
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-4322
SELECT 10 DIV + - 68
----
0

skipif mysql # not compatible
query I rowsort label-4322
SELECT 10 / + - 68
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4323
SELECT 45 + - - 19 - 46 - + 71 DIV 43 * - + 55 + 33
----
106

skipif mysql # not compatible
query I rowsort label-4323
SELECT 45 + - - 19 - 46 - + 71 / 43 * - + 55 + 33
----
106

query I rowsort
SELECT ALL 98 + - 69 AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4325
SELECT ALL 66 AS col1, CAST( NULL AS SIGNED ) + ( SUM( + 86 ) )
----
66
NULL

skipif mysql # not compatible
query II rowsort label-4325
SELECT ALL 66 AS col1, CAST ( NULL AS INTEGER ) + ( SUM ( + 86 ) )
----
66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT DISTINCT + 59 + - COUNT( * ) + 46 + + 98 * - - 47 AS col2
----
4710

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT + 59 + - COUNT ( * ) + 46 + + 98 * - - 47 AS col2
----
4710

query I rowsort
SELECT DISTINCT 9 + 29
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4328
SELECT MAX( - + ( + + 36 ) ), - 77 * 30 AS col2
----
-36
-2310

skipif mysql # not compatible
query II rowsort label-4328
SELECT MAX ( - + ( + + 36 ) ), - 77 * 30 AS col2
----
-36
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT SUM( - 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-4329
SELECT SUM ( - 69 )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4330
SELECT - 49 DIV + - 96 - - ( - 74 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-4330
SELECT - 49 / + - 96 - - ( - 74 ) AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT SUM( DISTINCT 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4331
SELECT SUM ( DISTINCT 42 ) AS col2
----
42

query I rowsort
SELECT ALL ( - - 75 ) * 95 AS col0
----
7125

query I rowsort
SELECT 25 - + + 81 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT COALESCE ( - 4, + + 65 - 49 * - - SUM( DISTINCT 2 ) + + - MAX( DISTINCT - 59 ) ) + - 85 * + 67 + 56 col1
----
-5643

skipif mysql # not compatible
query I rowsort label-4334
SELECT COALESCE ( - 4, + + 65 - 49 * - - SUM ( DISTINCT 2 ) + + - MAX ( DISTINCT - 59 ) ) + - 85 * + 67 + 56 col1
----
-5643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4335
SELECT CAST( - 62 AS SIGNED ) * + 78
----
-4836

skipif mysql # not compatible
query I rowsort label-4335
SELECT CAST ( - 62 AS INTEGER ) * + 78
----
-4836

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT ALL 86 * COUNT( * ) - - ( - 82 ) + - + 33 * 41 AS col2
----
-1349

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL 86 * COUNT ( * ) - - ( - 82 ) + - + 33 * 41 AS col2
----
-1349

query I rowsort
SELECT ( + 28 ) * - 43 * + - 17 AS col1
----
20468

onlyif mysql # aggregate syntax: 
query II rowsort label-4338
SELECT + 10 * - 40 - + COUNT( * ) AS col2, + 79
----
-401
79

skipif mysql # not compatible
query II rowsort label-4338
SELECT + 10 * - 40 - + COUNT ( * ) AS col2, + 79
----
-401
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT + SUM( ALL 78 ) col0
----
78

skipif mysql # not compatible
query I rowsort label-4339
SELECT + SUM ( ALL 78 ) col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4340
SELECT DISTINCT - - SUM( DISTINCT CAST( NULL AS SIGNED ) ) / - ( - + 99 ) * MAX( ALL + 91 ) AS col0, 42 * - 98 AS col0
----
NULL
-4116

skipif mysql # not compatible
query II rowsort label-4340
SELECT DISTINCT - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) / - ( - + 99 ) * MAX ( ALL + 91 ) AS col0, 42 * - 98 AS col0
----
NULL
-4116

query I rowsort
SELECT DISTINCT - + 72 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT COUNT( * ) * 9
----
9

skipif mysql # not compatible
query I rowsort label-4342
SELECT COUNT ( * ) * 9
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4343
SELECT CAST( + - 57 AS SIGNED ) * - 95 * COUNT( * ) col0
----
5415

skipif mysql # not compatible
query I rowsort label-4343
SELECT CAST ( + - 57 AS INTEGER ) * - 95 * COUNT ( * ) col0
----
5415

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT + 64 + + - COUNT( * ) * + - COUNT( * ) - - + 67 col1
----
132

skipif mysql # not compatible
query I rowsort label-4344
SELECT + 64 + + - COUNT ( * ) * + - COUNT ( * ) - - + 67 col1
----
132

query I rowsort
SELECT - - 74 * - 2 * - 27 AS col0
----
3996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4346
SELECT + ( + CASE - COUNT( * ) WHEN + COALESCE ( + + 87, - COUNT( * ) / - CAST( NULL AS SIGNED ), + ( - COALESCE ( + 81, 27, 60 ) ) ) THEN NULL WHEN + 11 THEN + 84 + 3 ELSE - COUNT( * ) END ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4346
SELECT + ( + CASE - COUNT ( * ) WHEN + COALESCE ( + + 87, - COUNT ( * ) / - CAST ( NULL AS INTEGER ), + ( - COALESCE ( + 81, 27, 60 ) ) ) THEN NULL WHEN + 11 THEN + 84 + 3 ELSE - COUNT ( * ) END ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + - 13 AS col2
----
-13

query I rowsort
SELECT ALL - - 44 * 24 col2
----
1056

query I rowsort
SELECT ALL + 19 * + - 70 AS col0
----
-1330

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT ALL + - 31 * - ( - ( COUNT( * ) ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL + - 31 * - ( - ( COUNT ( * ) ) ) AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4351
SELECT DISTINCT CASE NULLIF ( - - 82, + 10 + - 81 / + COUNT( * ) * 13 ) WHEN + CASE + 79 WHEN - - 22 * - 17 * + 25 + - + 38 THEN NULL ELSE + SUM( DISTINCT - 93 ) END * + - CASE - COUNT( * ) WHEN COUNT( ALL - 9 ) * - + COUNT( * ) * SUM( - - 64 ) THEN NULL WHEN + - 13 THEN + + 15 / + + 91 + + + NULLIF ( + - 83, - COUNT( * ) + + - 52 ) ELSE + - AVG ( + CAST( NULL AS DECIMAL ) ) - - 39 * - CASE + 12 WHEN AVG ( ALL - 63 ) * + 73 * - + 61 THEN CAST( NULL AS SIGNED ) WHEN - 24 / 41 THEN - 3 - - CASE - 73 WHEN 73 THEN COUNT( * ) * - 37 WHEN 3 * 84 THEN NULL ELSE NULL END * - 67 WHEN - 11 THEN + 49 - 41 * 17 END END THEN - 27 WHEN + 43 + 14 * 19 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT CASE NULLIF ( - - 82, + 10 + - 81 / + COUNT ( * ) * 13 ) WHEN + CASE + 79 WHEN - - 22 * - 17 * + 25 + - + 38 THEN NULL ELSE + SUM ( DISTINCT - 93 ) END * + - CASE - COUNT ( * ) WHEN COUNT ( ALL - 9 ) * - + COUNT ( * ) * SUM ( - - 64 ) THEN NULL WHEN + - 13 THEN + + 15 / + + 91 + + + NULLIF ( + - 83, - COUNT ( * ) + + - 52 ) ELSE + - AVG ( + CAST ( NULL AS REAL ) ) - - 39 * - CASE + 12 WHEN AVG ( ALL - 63 ) * + 73 * - + 61 THEN CAST ( NULL AS INTEGER ) WHEN - 24 / 41 THEN - 3 - - CASE - 73 WHEN 73 THEN COUNT ( * ) * - 37 WHEN 3 * 84 THEN NULL ELSE NULL END * - 67 WHEN - 11 THEN + 49 - 41 * 17 END END THEN - 27 WHEN + 43 + 14 * 19 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 67 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT DISTINCT + SUM( - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT + SUM ( - 44 )
----
-44

query I rowsort
SELECT DISTINCT - ( - 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT + + COUNT( * ) + + 26 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4355
SELECT + + COUNT ( * ) + + 26 AS col0
----
27

query I rowsort
SELECT DISTINCT + 31
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT - + COALESCE ( 46, + COUNT( * ) )
----
-46

skipif mysql # not compatible
query I rowsort label-4357
SELECT - + COALESCE ( 46, + COUNT ( * ) )
----
-46

query I rowsort
SELECT - + 87 + 10
----
-77

query I rowsort
SELECT - 72 * - 67
----
4824

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT ALL + 76 + + COUNT( * ) + - 79 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL + 76 + + COUNT ( * ) + - 79 AS col1
----
-2

query I rowsort
SELECT ALL COALESCE ( + NULLIF ( + + 48, - + 63 * - 10 + 48 / - 42 + - 55 + 68 ), - 50 )
----
48

query II rowsort
SELECT 13 AS col1, ( + 70 ) AS col1
----
13
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT - MIN( ALL + + 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-4363
SELECT - MIN ( ALL + + 78 )
----
-78

query I rowsort
SELECT DISTINCT CASE - - 26 WHEN - 19 THEN NULL WHEN - + 72 THEN - AVG ( + + 61 ) * - 88 WHEN - - 77 THEN - 47 ELSE 71 + + 66 + - 42 + - 72 * ( 46 ) * - + 67 * 77 END col0
----
17086703

query I rowsort
SELECT ALL - ( 83 ) + ( - COALESCE ( + 1, ( - 17 ) + + 60, 82 ) ) + + - 27 AS col1
----
-111

query I rowsort
SELECT - 80 + 69
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT - 57 + - SUM( DISTINCT ( - 96 ) )
----
39

skipif mysql # not compatible
query I rowsort label-4367
SELECT - 57 + - SUM ( DISTINCT ( - 96 ) )
----
39

query I rowsort
SELECT ALL 68 + - ( - 15 ) - + ( - 9 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT - 50 * + 32 * - COUNT( * ) * 49
----
78400

skipif mysql # not compatible
query I rowsort label-4369
SELECT - 50 * + 32 * - COUNT ( * ) * 49
----
78400

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT DISTINCT - NULLIF ( + 36, SUM( 59 ) + + 18 ) * - 6 * 0
----
0

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT - NULLIF ( + 36, SUM ( 59 ) + + 18 ) * - 6 * 0
----
0

query II rowsort
SELECT ALL ( - 83 ) AS col0, - 59 + + 15 * 16 + 87
----
-83
268

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4372
SELECT + COALESCE ( - + NULLIF ( + + 49, - - 75 ), + SUM( ALL + - 59 ) + + + 86 DIV - - NULLIF ( - 55, 50 + 84 + - - 41 + + COUNT( * ) + CASE - + COUNT( * ) WHEN - + 80 THEN NULL ELSE + - 65 * + - 85 + - - 13 * + COUNT( * ) END - - 39 * - + CAST( 95 AS DECIMAL ) + COALESCE ( 24, - 33, + ( + 75 ) ) * - 74 ) * 78, + + 14 * + 82 DIV + - 34 * NULLIF ( + 65, - MIN( + 62 ) ) * - CASE WHEN NULL IS NULL THEN 14 END * - 9 - + 34 + - 92 ) - 61 AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-4372
SELECT + COALESCE ( - + NULLIF ( + + 49, - - 75 ), + SUM ( ALL + - 59 ) + + + 86 / - - NULLIF ( - 55, 50 + 84 + - - 41 + + COUNT ( * ) + CASE - + COUNT ( * ) WHEN - + 80 THEN NULL ELSE + - 65 * + - 85 + - - 13 * + COUNT ( * ) END - - 39 * - + CAST ( 95 AS REAL ) + COALESCE ( 24, - 33, + ( + 75 ) ) * - 74 ) * 78, + + 14 * + 82 / + - 34 * NULLIF ( + 65, - MIN ( + 62 ) ) * - CASE WHEN NULL IS NULL THEN 14 END * - 9 - + 34 + - 92 ) - 61 AS col0
----
-110

query I rowsort
SELECT - 97 + 9 * - 60 AS col2
----
-637

query I rowsort
SELECT + 3 + + + 70
----
73

query I rowsort
SELECT - 14 * + 5 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT ALL + ( + COUNT( * ) ) * - 52
----
-52

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL + ( + COUNT ( * ) ) * - 52
----
-52

query I rowsort
SELECT - CASE - ( + 91 ) WHEN - 32 * + 70 THEN NULL ELSE + 22 END + - 21 AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4378
SELECT ALL 61 DIV + NULLIF ( + + 99, - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL 61 / + NULLIF ( + + 99, - 0 ) AS col2
----
0

query I rowsort
SELECT + 67 + + - 40 AS col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4380
SELECT ALL - ( - 73 ) DIV - 15 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL - ( - 73 ) / - 15 AS col1
----
-4

query I rowsort
SELECT + 44 * + 95 + - 97 AS col2
----
4083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4382
SELECT + CAST( + + 44 AS SIGNED ) * + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-4382
SELECT + CAST ( + + 44 AS INTEGER ) * + COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4383
SELECT - 13, COUNT( ALL - - 16 ) col0
----
-13
1

skipif mysql # not compatible
query II rowsort label-4383
SELECT - 13, COUNT ( ALL - - 16 ) col0
----
-13
1

query I rowsort
SELECT + ( + 72 )
----
72

query I rowsort
SELECT ALL + 21 col1
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4386
SELECT - COUNT( * ) + + COUNT( * ) + - 39 * 35 AS col1, + 87
----
-1365
87

skipif mysql # not compatible
query II rowsort label-4386
SELECT - COUNT ( * ) + + COUNT ( * ) + - 39 * 35 AS col1, + 87
----
-1365
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT + COUNT( + 81 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4387
SELECT + COUNT ( + 81 ) AS col0
----
1

query I rowsort
SELECT + + 4 + 54
----
58

query I rowsort
SELECT + 27 * + 12 AS col1
----
324

query I rowsort
SELECT DISTINCT 97 * + 95 - 10
----
9205

onlyif mysql # DIV for integer division: 
query I rowsort label-4391
SELECT DISTINCT + 65 * 50 DIV - 62
----
-52

skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT + 65 * 50 / - 62
----
-52

query I rowsort
SELECT ALL - - 25 * - - 49 AS col2
----
1225

query II rowsort
SELECT + 97, 24 col2
----
97
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT COUNT( * ) * - 34 + + 24 + 16 + + 11
----
17

skipif mysql # not compatible
query I rowsort label-4394
SELECT COUNT ( * ) * - 34 + + 24 + 16 + + 11
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT ALL + SUM( ALL + - 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL + SUM ( ALL + - 18 ) AS col1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT + + 52 + + 23 + + + 40 + + + AVG ( DISTINCT - ( - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4396
SELECT + + 52 + + 23 + + + 40 + + + AVG ( DISTINCT - ( - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 38 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT ALL + 40 * - - 6 + - + 71 + COUNT( * ) * 65
----
234

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL + 40 * - - 6 + - + 71 + COUNT ( * ) * 65
----
234

query I rowsort
SELECT + 60 * + - 61 + - 40
----
-3700

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT - MAX( ALL + + 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-4400
SELECT - MAX ( ALL + + 41 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-4401
SELECT + 82 AS col0, + 25 * - ( COUNT( * ) )
----
82
-25

skipif mysql # not compatible
query II rowsort label-4401
SELECT + 82 AS col0, + 25 * - ( COUNT ( * ) )
----
82
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-4402
SELECT - 4 col0, COUNT( * )
----
-4
1

skipif mysql # not compatible
query II rowsort label-4402
SELECT - 4 col0, COUNT ( * )
----
-4
1

query I rowsort
SELECT - - 51
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT DISTINCT ( COUNT( * ) ) * + 85 + 34
----
119

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT ( COUNT ( * ) ) * + 85 + 34
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-4405
SELECT + 81 + - 28 col1, 0 + - COUNT( * ) * + 87 + - + ( - 18 ) AS col0
----
53
-69

skipif mysql # not compatible
query II rowsort label-4405
SELECT + 81 + - 28 col1, 0 + - COUNT ( * ) * + 87 + - + ( - 18 ) AS col0
----
53
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4406
SELECT ALL 45 * + 79 / + 30 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL 45 * + 79 / + 30 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 59 + + 57 col2
----
116

query I rowsort
SELECT ALL - 4 - - - 78 * + 94 - + + 42 + + NULLIF ( - 3, - + 30 ) * 55 - - 50 * + 65
----
-4293

query I rowsort
SELECT ALL ( + + 40 ) AS col1
----
40

query I rowsort
SELECT ALL CASE - 82 WHEN + 26 THEN NULL WHEN - 20 + + 59 THEN - 83 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4411
SELECT - CAST( ( + CASE - NULLIF ( + + CAST( 62 AS SIGNED ), - 65 ) WHEN + 25 * + + 86 THEN NULL ELSE + 45 * 95 + AVG ( 85 ) END ) AS SIGNED ) AS col0
----
-4360

skipif mysql # not compatible
query I rowsort label-4411
SELECT - CAST ( ( + CASE - NULLIF ( + + CAST ( 62 AS INTEGER ), - 65 ) WHEN + 25 * + + 86 THEN NULL ELSE + 45 * 95 + AVG ( 85 ) END ) AS INTEGER ) AS col0
----
-4360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4412
SELECT - AVG ( - - CAST( NULL AS SIGNED ) ) + + COUNT( * ) + - + 33 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4412
SELECT - AVG ( - - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) + - + 33 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4413
SELECT ALL COALESCE ( COUNT( * ), COALESCE ( + + ( + 17 ), + 6 - + - 47, 99 * - + CASE + 10 WHEN + + COUNT( * ) + 38 THEN + + 58 * - ( + 41 ) * 9 - + - 83 END ) * - CAST( NULL AS SIGNED ), + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL COALESCE ( COUNT ( * ), COALESCE ( + + ( + 17 ), + 6 - + - 47, 99 * - + CASE + 10 WHEN + + COUNT ( * ) + 38 THEN + + 58 * - ( + 41 ) * 9 - + - 83 END ) * - CAST ( NULL AS INTEGER ), + COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT ALL + 41 - + 94
----
-53

query I rowsort
SELECT 4 AS col0
----
4

query I rowsort
SELECT - 83 col1
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4417
SELECT ALL + ( - COALESCE ( 93, 43 ) ) - NULLIF ( - 22, - - CAST( NULL AS SIGNED ) )
----
-71

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL + ( - COALESCE ( 93, 43 ) ) - NULLIF ( - 22, - - CAST ( NULL AS INTEGER ) )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4418
SELECT DISTINCT - MIN( DISTINCT - + 22 ) DIV + - 6
----
-3

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT - MIN ( DISTINCT - + 22 ) / + - 6
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT DISTINCT - 69 * 0 * CASE + + SUM( + 5 ) WHEN 38 + + MIN( - 59 ) THEN + 99 * COUNT( * ) * 22 - + 28 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT - 69 * 0 * CASE + + SUM ( + 5 ) WHEN 38 + + MIN ( - 59 ) THEN + 99 * COUNT ( * ) * 22 - + 28 END col1
----
NULL

query I rowsort
SELECT ALL + ( - - 90 ) AS col1
----
90

query II rowsort
SELECT ALL - 52 * - - 50 * - 54 AS col1, + 1
----
140400
1

query I rowsort
SELECT 48 + - + NULLIF ( + 53, - + 38 ) AS col1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4423
SELECT 79 DIV 33
----
2

skipif mysql # not compatible
query I rowsort label-4423
SELECT 79 / 33
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4424
SELECT ALL - - CAST( + - 28 AS SIGNED ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL - - CAST ( + - 28 AS INTEGER ) AS col0
----
-28

query I rowsort
SELECT 69 * 68
----
4692

onlyif mysql # aggregate syntax: 
query II rowsort label-4426
SELECT DISTINCT - 36 + - 40 + NULLIF ( 17, - 19 * MAX( - + 83 ) ), 27 AS col0
----
-59
27

skipif mysql # not compatible
query II rowsort label-4426
SELECT DISTINCT - 36 + - 40 + NULLIF ( 17, - 19 * MAX ( - + 83 ) ), 27 AS col0
----
-59
27

query I rowsort
SELECT DISTINCT - - NULLIF ( + 90, 46 + + 77 * + + 61 ) AS col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4428
SELECT ALL + 61 + + 4 + + + 74 - 53 + 96 * 85 * + + ( - - CASE 88 WHEN - + 19 * + CASE - ( - + 48 ) WHEN - CAST( NULL AS SIGNED ) * 48 THEN + + 38 + + 33 ELSE - + 85 * 22 - 98 END THEN NULL WHEN 11 + - 18 THEN 76 + - + 2 ELSE NULL END ) * + 98 * - 73 * ( ( 66 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL + 61 + + 4 + + + 74 - 53 + 96 * 85 * + + ( - - CASE 88 WHEN - + 19 * + CASE - ( - + 48 ) WHEN - CAST ( NULL AS INTEGER ) * 48 THEN + + 38 + + 33 ELSE - + 85 * 22 - 98 END THEN NULL WHEN 11 + - 18 THEN 76 + - + 2 ELSE NULL END ) * + 98 * - 73 * ( ( 66 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT + MAX( ALL + 57 ) + 98 * + 38 AS col2
----
3781

skipif mysql # not compatible
query I rowsort label-4429
SELECT + MAX ( ALL + 57 ) + 98 * + 38 AS col2
----
3781

query I rowsort
SELECT DISTINCT - + 70 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL - COUNT( * ) + + - COUNT( * ) + - + COUNT( * ) * - 65
----
63

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) + - + COUNT ( * ) * - 65
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4432
SELECT 28 * - 2 DIV - 2 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4432
SELECT 28 * - 2 / - 2 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT ALL - - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL - - COUNT ( * ) col0
----
1

query I rowsort
SELECT + 10 AS col2
----
10

query I rowsort
SELECT - 45 - 5 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ALL COUNT( * ) * + + COALESCE ( 27, - + 18, - 43 )
----
27

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL COUNT ( * ) * + + COALESCE ( 27, - + 18, - 43 )
----
27

query I rowsort
SELECT ( - + ( 46 ) )
----
-46

query I rowsort
SELECT DISTINCT - ( + 66 ) * + 57
----
-3762

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4439
SELECT - 13 * + 28 + ( - 17 ) + COUNT( * ) DIV + 63
----
-381

skipif mysql # not compatible
query I rowsort label-4439
SELECT - 13 * + 28 + ( - 17 ) + COUNT ( * ) / + 63
----
-381

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4440
SELECT DISTINCT 99 AS col1, - 41 + + 51 - + COUNT( * ) DIV + 71 * + + 10 * - + 28 * - - 55
----
99
10

skipif mysql # not compatible
query II rowsort label-4440
SELECT DISTINCT 99 AS col1, - 41 + + 51 - + COUNT ( * ) / + 71 * + + 10 * - + 28 * - - 55
----
99
10

query I rowsort
SELECT ALL 69 - 95 AS col1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4442
SELECT 16 + COUNT( * ) + + 44 DIV - - 46 * 89 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4442
SELECT 16 + COUNT ( * ) + + 44 / - - 46 * 89 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT COUNT( * ) + + 66 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-4443
SELECT COUNT ( * ) + + 66 AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4444
SELECT ALL ( - CAST( NULL AS SIGNED ) ) - - 58 + - - COUNT( * ) + 37 * - 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) - - 58 + - - COUNT ( * ) + 37 * - 59 AS col1
----
NULL

query I rowsort
SELECT ALL 68 * - 96
----
-6528

query I rowsort
SELECT ALL 85 * - 98 AS col0
----
-8330

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT ( 96 ) + + 50 * 84 + - COUNT( * ) col1
----
4295

skipif mysql # not compatible
query I rowsort label-4447
SELECT ( 96 ) + + 50 * 84 + - COUNT ( * ) col1
----
4295

query I rowsort
SELECT ALL - 83 * + - 48
----
3984

query I rowsort
SELECT DISTINCT 91 * + NULLIF ( - + 69, + 38 )
----
-6279

query I rowsort
SELECT 79 + 77 AS col0
----
156

query I rowsort
SELECT ALL 26 * - 44
----
-1144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4452
SELECT MAX( - 78 ) + + 39 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT MAX ( - 78 ) + + 39 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4453
SELECT CAST( 13 AS SIGNED ) + 17 col0
----
30

skipif mysql # not compatible
query I rowsort label-4453
SELECT CAST ( 13 AS INTEGER ) + 17 col0
----
30

query I rowsort
SELECT 95 + + 74 + - 79
----
90

query II rowsort
SELECT ALL 46, + 68 * - - 67 AS col2
----
46
4556

onlyif mysql # DIV for integer division: 
query I rowsort label-4456
SELECT 5 + + 49 DIV 86 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4456
SELECT 5 + + 49 / 86 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4457
SELECT ALL - + 37 + + + SUM( + CAST( NULL AS SIGNED ) ) col2, SUM( ALL + 18 )
----
NULL
18

skipif mysql # not compatible
query II rowsort label-4457
SELECT ALL - + 37 + + + SUM ( + CAST ( NULL AS INTEGER ) ) col2, SUM ( ALL + 18 )
----
NULL
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT ALL + COUNT( * ) + + + NULLIF ( 91, 23 ) col2
----
92

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL + COUNT ( * ) + + + NULLIF ( 91, 23 ) col2
----
92

query I rowsort
SELECT + + 68 * - 20 + - + 60 + 65 AS col0
----
-1355

query I rowsort
SELECT ALL + + 24 * - 13 AS col1
----
-312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4461
SELECT - COALESCE ( + - 23, - COUNT( * ) ) * COUNT( * ) DIV 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4461
SELECT - COALESCE ( + - 23, - COUNT ( * ) ) * COUNT ( * ) / 99 AS col1
----
0

query I rowsort
SELECT 88 * - + 24 AS col0
----
-2112

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4463
SELECT 81 DIV + ( - 73 ), ( + + COUNT( * ) ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-4463
SELECT 81 / + ( - 73 ), ( + + COUNT ( * ) ) AS col1
----
-1
1

query I rowsort
SELECT ALL 35 * + 25 AS col0
----
875

onlyif mysql # DIV for integer division: 
query I rowsort label-4465
SELECT ALL + + 40 DIV - 35 + + 67 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL + + 40 / - 35 + + 67 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT ALL 49 * + COALESCE ( ( - + 48 ), - 99, COUNT( * ) ) AS col0
----
-2352

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL 49 * + COALESCE ( ( - + 48 ), - 99, COUNT ( * ) ) AS col0
----
-2352

query I rowsort
SELECT DISTINCT - 83 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT 19 - - COUNT( + + 7 )
----
20

skipif mysql # not compatible
query I rowsort label-4468
SELECT 19 - - COUNT ( + + 7 )
----
20

query I rowsort
SELECT 77 * + + 93 + + 15 col0
----
7176

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4470
SELECT ALL ( - 44 ) * MAX( - 52 ) + + COALESCE ( + 8, + COUNT( * ) ) + - + 60 DIV - - 93 AS col2, 7 * + + ( - 13 )
----
2296
-91

skipif mysql # not compatible
query II rowsort label-4470
SELECT ALL ( - 44 ) * MAX ( - 52 ) + + COALESCE ( + 8, + COUNT ( * ) ) + - + 60 / - - 93 AS col2, 7 * + + ( - 13 )
----
2296
-91

query I rowsort
SELECT DISTINCT 27 * - 75 AS col2
----
-2025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4472
SELECT MIN( - CAST( - - 19 AS SIGNED ) ) * + + 76 * - ( - - ( - 30 ) )
----
-43320

skipif mysql # not compatible
query I rowsort label-4472
SELECT MIN ( - CAST ( - - 19 AS INTEGER ) ) * + + 76 * - ( - - ( - 30 ) )
----
-43320

query II rowsort
SELECT DISTINCT + 69 * - 23 AS col0, - 19 * + - 74 * - 50 + + - 10
----
-1587
-70310

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4474
SELECT COUNT( * ) DIV + 48 AS col0, - 8
----
0
-8

skipif mysql # not compatible
query II rowsort label-4474
SELECT COUNT ( * ) / + 48 AS col0, - 8
----
0
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ( - + CASE + + 5 WHEN + - 72 THEN NULL ELSE - + 44 + ( - + COUNT( * ) ) + + 57 END ) * + + 40 + + 4 AS col0
----
-476

skipif mysql # not compatible
query I rowsort label-4475
SELECT ( - + CASE + + 5 WHEN + - 72 THEN NULL ELSE - + 44 + ( - + COUNT ( * ) ) + + 57 END ) * + + 40 + + 4 AS col0
----
-476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4476
SELECT - COALESCE ( + 15, - 28 + + COUNT( * ) ) AS col0, CAST( NULLIF ( - 85, CASE 93 WHEN + 43 THEN - - CAST( NULL AS SIGNED ) * - + ( + 25 ) * + 71 WHEN - - 36 THEN NULL WHEN 30 THEN NULL END + AVG ( - - 71 ) ) AS SIGNED ) DIV 2 + - 30 AS col1
----
-15
-72

skipif mysql # not compatible
query II rowsort label-4476
SELECT - COALESCE ( + 15, - 28 + + COUNT ( * ) ) AS col0, CAST ( NULLIF ( - 85, CASE 93 WHEN + 43 THEN - - CAST ( NULL AS INTEGER ) * - + ( + 25 ) * + 71 WHEN - - 36 THEN NULL WHEN 30 THEN NULL END + AVG ( - - 71 ) ) AS INTEGER ) / 2 + - 30 AS col1
----
-15
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4477
SELECT ALL MAX( DISTINCT 73 ) DIV - 36 + + - NULLIF ( + CASE + ( - AVG ( ALL + + 10 ) ) WHEN COALESCE ( - 83, + 67 ) + - 27 * - 55 THEN NULL WHEN - 26 THEN NULL ELSE 30 END, + SUM( - 82 ) ) + + 19 * 49
----
899

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL MAX ( DISTINCT 73 ) / - 36 + + - NULLIF ( + CASE + ( - AVG ( ALL + + 10 ) ) WHEN COALESCE ( - 83, + 67 ) + - 27 * - 55 THEN NULL WHEN - 26 THEN NULL ELSE 30 END, + SUM ( - 82 ) ) + + 19 * 49
----
899

query I rowsort
SELECT + 90 * + - 34 AS col0
----
-3060

query I rowsort
SELECT ALL 72 + + - 48 AS col0
----
24

query I rowsort
SELECT DISTINCT + ( - 88 ) * + 5
----
-440

query I rowsort
SELECT + 51 * - + 79 AS col1
----
-4029

query I rowsort
SELECT ALL 54 col0
----
54

query I rowsort
SELECT + 64 * - 16 AS col1
----
-1024

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT ALL COUNT( * ) + COUNT( * ) + + - NULLIF ( + + 79, + ( - + 46 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL COUNT ( * ) + COUNT ( * ) + + - NULLIF ( + + 79, + ( - + 46 ) )
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4485
SELECT COUNT( - 77 ) AS col0, - 33 - + ( - 57 ) AS col1
----
1
24

skipif mysql # not compatible
query II rowsort label-4485
SELECT COUNT ( - 77 ) AS col0, - 33 - + ( - 57 ) AS col1
----
1
24

query I rowsort
SELECT ALL + + 57 col1
----
57

query I rowsort
SELECT ALL + 67 AS col1
----
67

query I rowsort
SELECT DISTINCT + 98 col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT ALL + + 49 * - - 42 - + - COUNT( * ) AS col2
----
2059

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL + + 49 * - - 42 - + - COUNT ( * ) AS col2
----
2059

query II rowsort
SELECT + 67 * - - 89 + + - 54 + + 55 col1, + 98
----
5964
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT DISTINCT + + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT + + COUNT ( * ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT - ( - - 68 ) / COALESCE ( + - ( - 96 ), - 4, 97 + + SUM( DISTINCT - - 68 ) ) + + 60 + - 64 + + CASE WHEN NOT - ( - 87 ) <> + 51 THEN - 21 * + 61 * 99 * COUNT( * ) * COUNT( * ) + + + ( - - 67 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4492
SELECT - ( - - 68 ) / COALESCE ( + - ( - 96 ), - 4, 97 + + SUM ( DISTINCT - - 68 ) ) + + 60 + - 64 + + CASE WHEN NOT - ( - 87 ) <> + 51 THEN - 21 * + 61 * 99 * COUNT ( * ) * COUNT ( * ) + + + ( - - 67 ) END
----
NULL

query I rowsort
SELECT + + 80 AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT - 94 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4494
SELECT - 94 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT + COUNT( * ) * - 38
----
-38

skipif mysql # not compatible
query I rowsort label-4495
SELECT + COUNT ( * ) * - 38
----
-38

query I rowsort
SELECT - 42 * - - 22 + + ( - 51 )
----
-975

query I rowsort
SELECT + ( + 95 ) col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4498
SELECT CASE - 86 WHEN + 21 THEN 69 / ( + - 80 ) + + - 59 - + 33 * AVG ( - - 51 ) / 56 * + - 17 ELSE NULL END * - + COUNT( * ) * + 97 - - 11 + + 8 * + 27 - - 77 * - CAST( - 49 AS DECIMAL ) + + 28 * - - CAST( NULL AS SIGNED ) / - 60 + - + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT CASE - 86 WHEN + 21 THEN 69 / ( + - 80 ) + + - 59 - + 33 * AVG ( - - 51 ) / 56 * + - 17 ELSE NULL END * - + COUNT ( * ) * + 97 - - 11 + + 8 * + 27 - - 77 * - CAST ( - 49 AS REAL ) + + 28 * - - CAST ( NULL AS INTEGER ) / - 60 + - + 40
----
NULL

query I rowsort
SELECT - 98 * 88
----
-8624

query I rowsort
SELECT - 4 * - 84 AS col1
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT - MAX( ALL 84 ) - + COALESCE ( + 29, 12 )
----
-113

skipif mysql # not compatible
query I rowsort label-4501
SELECT - MAX ( ALL 84 ) - + COALESCE ( + 29, 12 )
----
-113

query I rowsort
SELECT ALL + COALESCE ( - 77, + 79, - - 69 )
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4503
SELECT + 11 AS col0, 55 + 74 + COUNT( ALL - 99 ) + 17 AS col2
----
11
147

skipif mysql # not compatible
query II rowsort label-4503
SELECT + 11 AS col0, 55 + 74 + COUNT ( ALL - 99 ) + 17 AS col2
----
11
147

onlyif mysql # DIV for integer division: 
query II rowsort label-4504
SELECT + 16 * + 5 + 2 AS col2, - 59 + - 57 + - 18 DIV + 81 + 44
----
82
-72

skipif mysql # not compatible
query II rowsort label-4504
SELECT + 16 * + 5 + 2 AS col2, - 59 + - 57 + - 18 / + 81 + 44
----
82
-72

query I rowsort
SELECT DISTINCT 9 * - 57 + + - CASE - 14 WHEN + 7 THEN - 22 * + 68 ELSE + - 50 END
----
-463

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4506
SELECT DISTINCT - 28 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT - 28 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4507
SELECT - 20 DIV + + 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4507
SELECT - 20 / + + 63 AS col1
----
0

query I rowsort
SELECT DISTINCT ( + 62 ) AS col0
----
62

query I rowsort
SELECT ALL + 56 + - 43 * + 44 * + - CASE + 5 WHEN - - 1 THEN + 16 WHEN - 11 / - ( + - 86 ) + - 46 THEN 86 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4510
SELECT - 84 + + + 44 * 15 DIV 46 DIV ( - - 20 )
----
-84

skipif mysql # not compatible
query I rowsort label-4510
SELECT - 84 + + + 44 * 15 / 46 / ( - - 20 )
----
-84

query I rowsort
SELECT ALL 96 + + 67
----
163

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4512
SELECT DISTINCT NULLIF ( - COUNT( * ), - 80 ), - 26 - + + 40 - - 22 + + - 25 DIV - 86 * + + 53 + - + 68 * - COUNT( * ) * COUNT( * ) AS col1
----
-1
24

skipif mysql # not compatible
query II rowsort label-4512
SELECT DISTINCT NULLIF ( - COUNT ( * ), - 80 ), - 26 - + + 40 - - 22 + + - 25 / - 86 * + + 53 + - + 68 * - COUNT ( * ) * COUNT ( * ) AS col1
----
-1
24

query I rowsort
SELECT ALL CASE 61 WHEN + 15 THEN NULL WHEN + NULLIF ( - ( - 32 ), COALESCE ( - 85, + 47, 14 ) / 7 ) / + - 56 THEN - 86 ELSE ( + 57 ) * + - 81 END + - 14 AS col1
----
-4631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4514
SELECT - CAST( - COUNT( + 66 ) AS SIGNED ) + - - 61 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-4514
SELECT - CAST ( - COUNT ( + 66 ) AS INTEGER ) + - - 61 AS col1
----
62

query I rowsort
SELECT DISTINCT 93 AS col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4516
SELECT DISTINCT + 39 + - 55 * 3 * + - CAST( NULL AS SIGNED ) / + 22 * + + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT + 39 + - 55 * 3 * + - CAST ( NULL AS INTEGER ) / + 22 * + + 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT + 30 + COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4517
SELECT + 30 + COUNT ( * ) AS col2
----
31

query I rowsort
SELECT ALL - 21 + 66 AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4519
SELECT DISTINCT CAST( 3 AS SIGNED ) col2
----
3

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT CAST ( 3 AS INTEGER ) col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4520
SELECT + 7 + - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT + 7 + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 12 * 80
----
960

onlyif mysql # DIV for integer division: 
query I rowsort label-4522
SELECT DISTINCT 24 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT 24 / + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT - CASE + 39 WHEN 97 + 45 THEN - 3 WHEN + 65 * COUNT( * ) THEN + 75 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT - CASE + 39 WHEN 97 + 45 THEN - 3 WHEN + 65 * COUNT ( * ) THEN + 75 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL + ( - MIN( + ( 23 ) ) ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL + ( - MIN ( + ( 23 ) ) ) AS col2
----
-23

query I rowsort
SELECT ALL 59 * - 81 col2
----
-4779

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4526
SELECT + 64 DIV MIN( DISTINCT 18 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4526
SELECT + 64 / MIN ( DISTINCT 18 ) AS col2
----
3

query I rowsort
SELECT ALL 76 * 59 AS col0
----
4484

query I rowsort
SELECT DISTINCT 88 * + 30 AS col0
----
2640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4529
SELECT CAST( - ( + 85 ) AS SIGNED ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-4529
SELECT CAST ( - ( + 85 ) AS INTEGER ) AS col0
----
-85

query I rowsort
SELECT ALL 23 * + 48
----
1104

onlyif mysql # DIV for integer division: 
query I rowsort label-4531
SELECT + 28 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-4531
SELECT + 28 / 51
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4532
SELECT + 34 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-4532
SELECT + 34 / + 87
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4533
SELECT CAST( + 2 AS SIGNED ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4533
SELECT CAST ( + 2 AS INTEGER ) AS col2
----
2

query I rowsort
SELECT + NULLIF ( - 77, - 62 ) * + 2
----
-154

query I rowsort
SELECT + 22 + - 77
----
-55

query I rowsort
SELECT + ( 73 )
----
73

query I rowsort
SELECT - 87 + 67
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT DISTINCT + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT + COUNT ( * ) col1
----
1

query I rowsort
SELECT + ( 64 ) * 95 + 64 AS col1
----
6144

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL + COALESCE ( - 31, - CASE + 3 WHEN + 75 THEN - 58 * 26 - + ( - NULLIF ( - 64, - 31 * 87 + + COALESCE ( 35, - 4 ) ) ) WHEN COALESCE ( 34, + 8 - - 19 ) THEN - COUNT( * ) ELSE NULL END, - 18 + 29, + 29 )
----
-31

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL + COALESCE ( - 31, - CASE + 3 WHEN + 75 THEN - 58 * 26 - + ( - NULLIF ( - 64, - 31 * 87 + + COALESCE ( 35, - 4 ) ) ) WHEN COALESCE ( 34, + 8 - - 19 ) THEN - COUNT ( * ) ELSE NULL END, - 18 + 29, + 29 )
----
-31

query I rowsort
SELECT + 75 * 20 AS col0
----
1500

query I rowsort
SELECT ( 81 )
----
81

query I rowsort
SELECT DISTINCT - 64 * 44 + - 15
----
-2831

query I rowsort
SELECT ALL - 24 * - 21
----
504

onlyif mysql # DIV for integer division: 
query I rowsort label-4545
SELECT - 44 + 28 DIV - 34
----
-44

skipif mysql # not compatible
query I rowsort label-4545
SELECT - 44 + 28 / - 34
----
-44

query I rowsort
SELECT ALL 5 * 4 + - 56 AS col2
----
-36

query I rowsort
SELECT DISTINCT 68 * 18 col2
----
1224

query I rowsort
SELECT 86 + 26
----
112

query I rowsort
SELECT + 21 col2
----
21

query I rowsort
SELECT ALL - 24 * 0 AS col2
----
0

query I rowsort
SELECT 60 * 43
----
2580

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT 51 * COUNT( * ) + 29
----
80

skipif mysql # not compatible
query I rowsort label-4552
SELECT 51 * COUNT ( * ) + 29
----
80

query I rowsort
SELECT 30 col2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-4554
SELECT DISTINCT - 6 + 7 DIV - 28 col1
----
-6

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT - 6 + 7 / - 28 col1
----
-6

query I rowsort
SELECT ALL 67 * 59 AS col0
----
3953

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT 85 * + NULLIF ( - COUNT( * ), 97 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-4556
SELECT 85 * + NULLIF ( - COUNT ( * ), 97 ) AS col1
----
-85

query I rowsort
SELECT ALL + 52 + 14
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4558
SELECT ALL - 61 DIV + ( 94 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL - 61 / + ( 94 ) AS col2
----
0

query I rowsort
SELECT 75 - 72
----
3

query I rowsort
SELECT 69 * 27
----
1863

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4561
SELECT DISTINCT - 17 DIV ( + COALESCE ( 47, + CAST( NULL AS SIGNED ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT - 17 / ( + COALESCE ( 47, + CAST ( NULL AS INTEGER ) ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4562
SELECT - MIN( - CAST( 58 AS SIGNED ) ) * CAST( NULLIF ( CAST( + 96 AS SIGNED ), NULLIF ( - COUNT( * ), 45 ) * 28 + + COUNT( * ) ) - + 49 AS SIGNED )
----
2726

skipif mysql # not compatible
query I rowsort label-4562
SELECT - MIN ( - CAST ( 58 AS INTEGER ) ) * CAST ( NULLIF ( CAST ( + 96 AS INTEGER ), NULLIF ( - COUNT ( * ), 45 ) * 28 + + COUNT ( * ) ) - + 49 AS INTEGER )
----
2726

query I rowsort
SELECT - 55 * 2 AS col1
----
-110

query I rowsort
SELECT DISTINCT 6 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT DISTINCT MAX( 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT MAX ( 9 ) AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4566
SELECT ALL - + NULLIF ( + 94, + COALESCE ( 94, + 53 - - COALESCE ( COUNT( * ), + ( + 35 ) * 48 - COUNT( * ), + ( + ( - ( + 31 ) ) ) * 16 ), - 17 * - 43 + - COUNT( * ) ) + + ( 8 ) ) - + 99 DIV - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL - + NULLIF ( + 94, + COALESCE ( 94, + 53 - - COALESCE ( COUNT ( * ), + ( + 35 ) * 48 - COUNT ( * ), + ( + ( - ( + 31 ) ) ) * 16 ), - 17 * - 43 + - COUNT ( * ) ) + + ( 8 ) ) - + 99 / - COUNT ( * )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4567
SELECT + CAST( NULL AS SIGNED ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT + CAST ( NULL AS INTEGER ) * + 88
----
NULL

query I rowsort
SELECT ALL - ( + ( 97 ) ) AS col1
----
-97

query I rowsort
SELECT + 35 - + 40 col0
----
-5

query I rowsort
SELECT ALL - COALESCE ( - 35, 70 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT ALL MIN( ALL - 61 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL MIN ( ALL - 61 ) AS col2
----
-61

query I rowsort
SELECT 17 * - 52
----
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT - 2 + + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4573
SELECT - 2 + + COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT 97 * 75
----
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT - 29 + COALESCE ( COUNT( * ) + NULLIF ( - 82, 4 ), 59 ) AS col2
----
-110

skipif mysql # not compatible
query I rowsort label-4575
SELECT - 29 + COALESCE ( COUNT ( * ) + NULLIF ( - 82, 4 ), 59 ) AS col2
----
-110

query I rowsort
SELECT + - 56 col2
----
-56

query I rowsort
SELECT CASE - NULLIF ( 27, 6 ) WHEN + 38 - 58 THEN 68 * 62 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT + - COUNT( * ) * 54 + 12 * 82
----
930

skipif mysql # not compatible
query I rowsort label-4578
SELECT + - COUNT ( * ) * 54 + 12 * 82
----
930

query I rowsort
SELECT DISTINCT - 74 + 54
----
-20

query I rowsort
SELECT ALL 82 * 45
----
3690

query I rowsort
SELECT ( + 98 )
----
98

query I rowsort
SELECT ALL - + 21
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT DISTINCT + COUNT( * ) + - 18
----
-17

skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT + COUNT ( * ) + - 18
----
-17

query I rowsort
SELECT + 64 * - + 85 * 57 + 65 col0
----
-310015

query I rowsort
SELECT ALL 63 * + - 43 AS col0
----
-2709

query I rowsort
SELECT DISTINCT 21 + 39
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4587
SELECT MAX( DISTINCT 18 ) + - ( COUNT( * ) ) DIV + ( + ( + 98 ) )
----
18

skipif mysql # not compatible
query I rowsort label-4587
SELECT MAX ( DISTINCT 18 ) + - ( COUNT ( * ) ) / + ( + ( + 98 ) )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4588
SELECT ALL NULLIF ( + - MIN( ALL 45 ), + CAST( 1 AS SIGNED ) ) * - ( 29 DIV - 95 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL NULLIF ( + - MIN ( ALL 45 ), + CAST ( 1 AS INTEGER ) ) * - ( 29 / - 95 ) col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4589
SELECT MIN( ALL - - 58 ) DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-4589
SELECT MIN ( ALL - - 58 ) / + 68
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4590
SELECT + ( - + 25 ) * 37 + + CAST( - 85 AS SIGNED ) * - 29
----
1540

skipif mysql # not compatible
query I rowsort label-4590
SELECT + ( - + 25 ) * 37 + + CAST ( - 85 AS INTEGER ) * - 29
----
1540

query I rowsort
SELECT + 65 AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4592
SELECT DISTINCT 62 + + ( CAST( NULL AS DECIMAL ) ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4592
SELECT DISTINCT 62 + + ( CAST ( NULL AS REAL ) ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4593
SELECT DISTINCT 20 + + - 60 * + CAST( + MAX( + 69 ) AS SIGNED )
----
-4120

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT 20 + + - 60 * + CAST ( + MAX ( + 69 ) AS INTEGER )
----
-4120

query I rowsort
SELECT 5 * + ( 48 )
----
240

query I rowsort
SELECT ALL - 14 col0
----
-14

query I rowsort
SELECT DISTINCT 26 + 85 col1
----
111

query I rowsort
SELECT 88 * + 88
----
7744

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT ALL - COUNT( ALL - 37 ) * + 97 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL - COUNT ( ALL - 37 ) * + 97 AS col2
----
-97

query I rowsort
SELECT DISTINCT + 39 - - 35 * 99 AS col1
----
3504

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT DISTINCT - ( + COUNT( * ) ) * - NULLIF ( 83, + 74 * 89 )
----
83

skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT - ( + COUNT ( * ) ) * - NULLIF ( 83, + 74 * 89 )
----
83

query I rowsort
SELECT ( + + 25 ) + 12 * 60 AS col1
----
745

query I rowsort
SELECT ALL 13 * - + 36 col0
----
-468

query I rowsort
SELECT 20 - - + 9 + 67
----
96

query I rowsort
SELECT ALL - + 86 - 22
----
-108

query I rowsort
SELECT 32 + + 33 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT MIN( ALL 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-4606
SELECT MIN ( ALL 96 ) AS col0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4607
SELECT ALL + 72 DIV + ( + 31 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL + 72 / + ( + 31 ) AS col0
----
2

query I rowsort
SELECT + 33 + 81
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4609
SELECT - ( + COUNT( * ) ) DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-4609
SELECT - ( + COUNT ( * ) ) / - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT 1 + + COALESCE ( 31, + 99 ) * + COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-4610
SELECT 1 + + COALESCE ( 31, + 99 ) * + COUNT ( * ) AS col2
----
32

query I rowsort
SELECT 32 * + + 49
----
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT - ( 82 ) + SUM( 34 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4612
SELECT - ( 82 ) + SUM ( 34 ) AS col0
----
-48

query I rowsort
SELECT - - 81
----
81

query I rowsort
SELECT + 83 + 10
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT COUNT( * ) * - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4615
SELECT COUNT ( * ) * - COUNT ( * ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4616
SELECT - + CAST( + 97 AS SIGNED ) col0
----
-97

skipif mysql # not compatible
query I rowsort label-4616
SELECT - + CAST ( + 97 AS INTEGER ) col0
----
-97

query I rowsort
SELECT ALL 6 * - 13 + 99 + + 89 AS col1
----
110

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4618
SELECT DISTINCT + 77 * - 37 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4618
SELECT DISTINCT + 77 * - 37 + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4619
SELECT - 58 * + CAST( + CAST( 10 AS SIGNED ) AS SIGNED )
----
-580

skipif mysql # not compatible
query I rowsort label-4619
SELECT - 58 * + CAST ( + CAST ( 10 AS INTEGER ) AS INTEGER )
----
-580

query II rowsort
SELECT + 96 AS col2, + 25 + - 99 AS col1
----
96
-74

query I rowsort
SELECT ALL - 9 * - 39 + + 59
----
410

query I rowsort
SELECT DISTINCT - 42 * - + 65
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT - COUNT( * ) * - + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4623
SELECT - COUNT ( * ) * - + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT COALESCE ( - 75, 54 * 23 + + 60 )
----
-75

query I rowsort
SELECT ALL + NULLIF ( - + 6, - ( + 32 ) + + 27 * + 57 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT - COUNT( * ) + ( - 41 ) * 96
----
-3937

skipif mysql # not compatible
query I rowsort label-4626
SELECT - COUNT ( * ) + ( - 41 ) * 96
----
-3937

query I rowsort
SELECT NULLIF ( 20, 39 ) AS col2
----
20

query I rowsort
SELECT - 9 + + 22
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4629
SELECT 88 / + CAST( NULL AS SIGNED ) + + COALESCE ( + 46, 18 * + 85 + - 87, - 56 + MIN( ALL - 3 ) * 91 ) * + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4629
SELECT 88 / + CAST ( NULL AS INTEGER ) + + COALESCE ( + 46, 18 * + 85 + - 87, - 56 + MIN ( ALL - 3 ) * 91 ) * + 64 AS col1
----
NULL

query II rowsort
SELECT ALL + 34 col2, - 67
----
34
-67

query I rowsort
SELECT + 19 col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT DISTINCT + ( ( - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT + ( ( - COUNT ( * ) ) )
----
-1

query I rowsort
SELECT DISTINCT NULLIF ( + + 92, + 94 * + 16 ) * 1 - 0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4634
SELECT + CAST( - - COUNT( * ) AS SIGNED ) + + ( ( - 53 ) ) + - CAST( NULL AS SIGNED ) * 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) + + ( ( - 53 ) ) + - CAST ( NULL AS INTEGER ) * 67 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 61 * + ( ( 94 ) ) - - 95
----
5829

query I rowsort
SELECT - 43 * + + 35 * + 59
----
-88795

onlyif mysql # DIV for integer division: 
query I rowsort label-4637
SELECT - ( + 69 ) * 69 - 92 DIV 4
----
-4784

skipif mysql # not compatible
query I rowsort label-4637
SELECT - ( + 69 ) * 69 - 92 / 4
----
-4784

query I rowsort
SELECT + 8 * - + 96 col0
----
-768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4639
SELECT ALL COALESCE ( - 34, - CASE 47 WHEN 29 * CAST( - 2 * SUM( ALL + ( - ( 1 ) ) ) AS SIGNED ) THEN 97 WHEN 77 + - 6 * - 37 THEN - COALESCE ( - NULLIF ( - ( SUM( 1 ) ), 2 ), 21, 65 ) - - 26 END * MIN( DISTINCT - 58 ), COUNT( * ) ) * - 98 AS col1
----
3332

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL COALESCE ( - 34, - CASE 47 WHEN 29 * CAST ( - 2 * SUM ( ALL + ( - ( 1 ) ) ) AS INTEGER ) THEN 97 WHEN 77 + - 6 * - 37 THEN - COALESCE ( - NULLIF ( - ( SUM ( 1 ) ), 2 ), 21, 65 ) - - 26 END * MIN ( DISTINCT - 58 ), COUNT ( * ) ) * - 98 AS col1
----
3332

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT + 84 * ( - - NULLIF ( 78, MAX( ALL - 52 ) ) )
----
6552

skipif mysql # not compatible
query I rowsort label-4640
SELECT + 84 * ( - - NULLIF ( 78, MAX ( ALL - 52 ) ) )
----
6552

query I rowsort
SELECT ALL 44 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT - + COALESCE ( 35, - COUNT( * ) ) col2
----
-35

skipif mysql # not compatible
query I rowsort label-4642
SELECT - + COALESCE ( 35, - COUNT ( * ) ) col2
----
-35

query I rowsort
SELECT ALL + ( - 6 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4644
SELECT ALL + 34, - CASE - 55 WHEN 81 * + CAST( NULL AS SIGNED ) THEN - 79 WHEN - 34 THEN NULL END AS col2
----
34
NULL

skipif mysql # not compatible
query II rowsort label-4644
SELECT ALL + 34, - CASE - 55 WHEN 81 * + CAST ( NULL AS INTEGER ) THEN - 79 WHEN - 34 THEN NULL END AS col2
----
34
NULL

query I rowsort
SELECT ALL + 21 AS col0
----
21

query II rowsort
SELECT 26 AS col2, 42 - - + 21
----
26
63

query I rowsort
SELECT ALL + 11 col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT DISTINCT - COUNT( ALL + 66 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT - COUNT ( ALL + 66 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT + + COUNT( * ) - + 53
----
-52

skipif mysql # not compatible
query I rowsort label-4649
SELECT + + COUNT ( * ) - + 53
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT COUNT( + 46 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4650
SELECT COUNT ( + 46 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4651
SELECT ALL - 41 + - - 94 DIV + 82 - 75
----
-115

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL - 41 + - - 94 / + 82 - 75
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT DISTINCT 19 * - - COUNT( * ) * 50 * 14 + - SUM( 73 + + 29 * + NULLIF ( - 13, 12 ) )
----
13604

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT 19 * - - COUNT ( * ) * 50 * 14 + - SUM ( 73 + + 29 * + NULLIF ( - 13, 12 ) )
----
13604

query I rowsort
SELECT - + ( 20 ) * + 85 AS col0
----
-1700

query I rowsort
SELECT ALL + 49 * - - 28 + + + 37 + + ( + 17 + + 25 ) AS col2
----
1451

onlyif mysql # aggregate syntax: 
query II rowsort label-4655
SELECT 13 AS col2, - COUNT( * ) AS col0
----
13
-1

skipif mysql # not compatible
query II rowsort label-4655
SELECT 13 AS col2, - COUNT ( * ) AS col0
----
13
-1

query I rowsort
SELECT ALL + - 4 + - + 28
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-4657
SELECT - 34 - + 14 + - 91 DIV 11 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-4657
SELECT - 34 - + 14 + - 91 / 11 AS col0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4658
SELECT - ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4658
SELECT - ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 97 + 0 AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4660
SELECT + COALESCE ( - 39, 64 ) + CAST( - 93 AS SIGNED ) + 90 DIV + MAX( DISTINCT + 48 )
----
-131

skipif mysql # not compatible
query I rowsort label-4660
SELECT + COALESCE ( - 39, 64 ) + CAST ( - 93 AS INTEGER ) + 90 / + MAX ( DISTINCT + 48 )
----
-131

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4661
SELECT + 62 DIV + + 13 + + 57 - - - CAST( 73 AS SIGNED ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4661
SELECT + 62 / + + 13 + + 57 - - - CAST ( 73 AS INTEGER ) AS col1
----
-12

query I rowsort
SELECT + 52 col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4663
SELECT CAST( NULL AS SIGNED ) / + + MAX( - + 36 ) - + - CASE AVG ( - 68 ) WHEN + COUNT( * ) THEN NULL WHEN 2 + 34 THEN NULL ELSE - MAX( - 76 ) * 20 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT CAST ( NULL AS INTEGER ) / + + MAX ( - + 36 ) - + - CASE AVG ( - 68 ) WHEN + COUNT ( * ) THEN NULL WHEN 2 + 34 THEN NULL ELSE - MAX ( - 76 ) * 20 END AS col1
----
NULL

query I rowsort
SELECT ALL + 34 col1
----
34

query I rowsort
SELECT DISTINCT + 11 * + + 27
----
297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4666
SELECT ALL 87 DIV - + 23 - COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL 87 / - + 23 - COUNT ( * ) AS col2
----
-4

query I rowsort
SELECT ( 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT ALL + MAX( 86 ) * - - 22 * 80 - + SUM( ALL 92 ) * - ( + 38 + 68 ) col2
----
161112

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL + MAX ( 86 ) * - - 22 * 80 - + SUM ( ALL 92 ) * - ( + 38 + 68 ) col2
----
161112

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT COUNT( * ) * 98 + + 1
----
99

skipif mysql # not compatible
query I rowsort label-4669
SELECT COUNT ( * ) * 98 + + 1
----
99

query I rowsort
SELECT DISTINCT + ( - 33 ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT - ( - COUNT( * ) ) + + - 55
----
-54

skipif mysql # not compatible
query I rowsort label-4671
SELECT - ( - COUNT ( * ) ) + + - 55
----
-54

query I rowsort
SELECT ALL + 93 * + + 37
----
3441

query I rowsort
SELECT - ( 99 ) - - - 93
----
-192

query I rowsort
SELECT ( + 87 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT 94 * - COUNT( * ) + + + 52 + + - 8 + ( - 67 ) * SUM( + 67 ) * - NULLIF ( + 47, + 78 / 2 )
----
210933

skipif mysql # not compatible
query I rowsort label-4675
SELECT 94 * - COUNT ( * ) + + + 52 + + - 8 + ( - 67 ) * SUM ( + 67 ) * - NULLIF ( + 47, + 78 / 2 )
----
210933

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT DISTINCT + MAX( - - 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT + MAX ( - - 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT NULLIF ( + - 20, 60 * COUNT( * ) / + 66 )
----
-20

skipif mysql # not compatible
query I rowsort label-4677
SELECT NULLIF ( + - 20, 60 * COUNT ( * ) / + 66 )
----
-20

query II rowsort
SELECT DISTINCT + ( 46 ) AS col1, 26 AS col0
----
46
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4679
SELECT - 79 DIV + COUNT( * ) + - + 37 * - COUNT( * ) + MAX( 79 ) * - 34 AS col2
----
-2728

skipif mysql # not compatible
query I rowsort label-4679
SELECT - 79 / + COUNT ( * ) + - + 37 * - COUNT ( * ) + MAX ( 79 ) * - 34 AS col2
----
-2728

query I rowsort
SELECT ALL 18 * 54 * + 60
----
58320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4681
SELECT - 88 - + CAST( + 9 AS SIGNED ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-4681
SELECT - 88 - + CAST ( + 9 AS INTEGER ) AS col0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4682
SELECT ALL + CASE - 15 WHEN 0 * - + 53 / 65 - + 16 + - 47 THEN + 50 + 93 * 28 WHEN 50 * CAST( + 42 * 97 AS SIGNED ) THEN 66 / + 9 END / 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL + CASE - 15 WHEN 0 * - + 53 / 65 - + 16 + - 47 THEN + 50 + 93 * 28 WHEN 50 * CAST ( + 42 * 97 AS INTEGER ) THEN 66 / + 9 END / 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT ALL + COUNT( * ) * - 81 * + - ( + 45 ) AS col0
----
3645

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL + COUNT ( * ) * - 81 * + - ( + 45 ) AS col0
----
3645

query I rowsort
SELECT + - 50 * + 73 * - ( - - 57 ) * 71
----
14771550

query II rowsort
SELECT - - 39 + 27 AS col1, + 40
----
66
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT + + 75 * + 80 + + COUNT( * ) col2
----
6001

skipif mysql # not compatible
query I rowsort label-4686
SELECT + + 75 * + 80 + + COUNT ( * ) col2
----
6001

query I rowsort
SELECT + 38 - - 95 AS col0
----
133

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4688
SELECT ALL ( COUNT( * ) ) * + - 66 * + CASE + 47 WHEN - 83 THEN NULL WHEN SUM( CAST( NULL AS DECIMAL ) ) THEN 82 ELSE MAX( + 45 ) END
----
-2970

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL ( COUNT ( * ) ) * + - 66 * + CASE + 47 WHEN - 83 THEN NULL WHEN SUM ( CAST ( NULL AS REAL ) ) THEN 82 ELSE MAX ( + 45 ) END
----
-2970

query I rowsort
SELECT - - 89 + + 18 + - ( 37 ) * - 47 * + 69
----
120098

query I rowsort
SELECT + 51 - - - 1 + - 18 * - - 97 - 39
----
-1735

query I rowsort
SELECT ALL - ( - 50 )
----
50

query I rowsort
SELECT + CASE - 93 WHEN 9 * + 93 THEN 18 WHEN 54 THEN - ( 14 ) END + 32 * 61
----
NULL

query I rowsort
SELECT ALL + - 60 + - + 8
----
-68

query I rowsort
SELECT ALL NULLIF ( + 87, + 45 + + 54 ) + + 81 * + 68
----
5595

query I rowsort
SELECT + 18 + - 13 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT ALL + COUNT( + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL + COUNT ( + 12 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4697
SELECT - NULLIF ( MIN( DISTINCT - + 1 ), + CAST( COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-4697
SELECT - NULLIF ( MIN ( DISTINCT - + 1 ), + CAST ( COUNT ( * ) AS INTEGER ) )
----
1

query I rowsort
SELECT DISTINCT - 61
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT 79 + 61 * COALESCE ( - COUNT( 53 ), + 31 + 32 ) * 3 + 74 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-4699
SELECT 79 + 61 * COALESCE ( - COUNT ( 53 ), + 31 + 32 ) * 3 + 74 AS col2
----
-30

query I rowsort
SELECT ( + + 63 ) * - - 51 AS col0
----
3213

query I rowsort
SELECT ALL 4 * - - ( - + 79 ) AS col0
----
-316

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT 99 + + ( - 49 ) * - CAST( - 29 AS SIGNED ) col2
----
-1322

skipif mysql # not compatible
query I rowsort label-4702
SELECT 99 + + ( - 49 ) * - CAST ( - 29 AS INTEGER ) col2
----
-1322

query I rowsort
SELECT - 52 col1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4704
SELECT ALL 50 * CAST( 94 AS SIGNED )
----
4700

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL 50 * CAST ( 94 AS INTEGER )
----
4700

query I rowsort
SELECT DISTINCT - 56 AS col0
----
-56

query I rowsort
SELECT DISTINCT - 27
----
-27

query II rowsort
SELECT + 15 AS col1, + 16 * 10 * + 52
----
15
8320

query I rowsort
SELECT 4 * + ( - 85 )
----
-340

query I rowsort
SELECT ( 91 ) * + 12 + - 40
----
1052

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT ( 93 ) + + COUNT( - + 8 )
----
94

skipif mysql # not compatible
query I rowsort label-4710
SELECT ( 93 ) + + COUNT ( - + 8 )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4711
SELECT ( 45 ) * + 60 - - - 5 + + COUNT( * ) DIV - 75 AS col1
----
2695

skipif mysql # not compatible
query I rowsort label-4711
SELECT ( 45 ) * + 60 - - - 5 + + COUNT ( * ) / - 75 AS col1
----
2695

onlyif mysql # DIV for integer division: 
query I rowsort label-4712
SELECT 23 DIV + 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4712
SELECT 23 / + 26 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4713
SELECT ALL - NULLIF ( + CAST( NULL AS DECIMAL ), + + 26 * + COUNT( * ) * COALESCE ( 95, - 43, + 60 + - 9 / + 81 ) * 27 ) / ( - 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL - NULLIF ( + CAST ( NULL AS REAL ), + + 26 * + COUNT ( * ) * COALESCE ( 95, - 43, + 60 + - 9 / + 81 ) * 27 ) / ( - 31 )
----
NULL

query I rowsort
SELECT 94 * + - 45 * 33
----
-139590

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT 4 * - NULLIF ( - 51, - COUNT( * ) * + 78 + + 19 * 58 ) AS col2
----
204

skipif mysql # not compatible
query I rowsort label-4715
SELECT 4 * - NULLIF ( - 51, - COUNT ( * ) * + 78 + + 19 * 58 ) AS col2
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT ALL + ( + 21 ) * + + MAX( DISTINCT + 45 ) AS col0
----
945

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL + ( + 21 ) * + + MAX ( DISTINCT + 45 ) AS col0
----
945

query I rowsort
SELECT 23 - 36 AS col2
----
-13

query I rowsort
SELECT ALL + 72 * + + 3 AS col2
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4719
SELECT DISTINCT - COALESCE ( - 73, 56 * - CAST( 94 AS SIGNED ) - 3 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT - COALESCE ( - 73, 56 * - CAST ( 94 AS INTEGER ) - 3 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4720
SELECT + COALESCE ( - 66, 39 * - MAX( + + 19 ) DIV ( - 84 ) ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-4720
SELECT + COALESCE ( - 66, 39 * - MAX ( + + 19 ) / ( - 84 ) ) AS col2
----
-66

query I rowsort
SELECT ALL + + COALESCE ( - - 38, + + 23 ) + + 53 * - - 10 * 58
----
30778

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT DISTINCT - + 37 + 57 * - 70 + - 76 + - + 90 * - COUNT( * ) col1
----
-4013

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT - + 37 + 57 * - 70 + - 76 + - + 90 * - COUNT ( * ) col1
----
-4013

query I rowsort
SELECT DISTINCT - 28 col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT ALL - - MAX( + 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL - - MAX ( + 25 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT COUNT( * ) + - 84
----
-83

skipif mysql # not compatible
query I rowsort label-4725
SELECT COUNT ( * ) + - 84
----
-83

query II rowsort
SELECT - + 33 AS col0, 52 AS col1
----
-33
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4727
SELECT ALL - - 12 + CAST( + 46 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL - - 12 + CAST ( + 46 AS INTEGER )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT + MAX( 29 ) * + MAX( + + 92 ) * + + 39 * + 91 AS col2
----
9468732

skipif mysql # not compatible
query I rowsort label-4728
SELECT + MAX ( 29 ) * + MAX ( + + 92 ) * + + 39 * + 91 AS col2
----
9468732

query I rowsort
SELECT DISTINCT - ( - 69 ) AS col0
----
69

query I rowsort
SELECT DISTINCT 37 + + - ( - 70 )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT DISTINCT - MIN( - ( + 53 ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT - MIN ( - ( + 53 ) ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-4732
SELECT DISTINCT + 84 AS col0, 70 * + COUNT( * ) + 90
----
84
160

skipif mysql # not compatible
query II rowsort label-4732
SELECT DISTINCT + 84 AS col0, 70 * + COUNT ( * ) + 90
----
84
160

query II rowsort
SELECT 86 * 46 * + 13, - 6 + - + ( + 85 ) * NULLIF ( + 46 + - 93 * 90, NULLIF ( + 76, - 83 ) / + 73 ) AS col0
----
51428
707534

query I rowsort
SELECT - ( 64 )
----
-64

query I rowsort
SELECT 89 - - 45 * - + 54 AS col0
----
-2341

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4736
SELECT - - ( + NULLIF ( - - 10, + - CAST( NULL AS DECIMAL ) ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4736
SELECT - - ( + NULLIF ( - - 10, + - CAST ( NULL AS REAL ) ) ) AS col0
----
10

query I rowsort
SELECT 35 - 92
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4738
SELECT 79 DIV - - 11
----
7

skipif mysql # not compatible
query I rowsort label-4738
SELECT 79 / - - 11
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4739
SELECT CAST( - + 93 AS SIGNED ) * 7
----
-651

skipif mysql # not compatible
query I rowsort label-4739
SELECT CAST ( - + 93 AS INTEGER ) * 7
----
-651

onlyif mysql # aggregate syntax: 
query II rowsort label-4740
SELECT 46 col1, MIN( - + 26 ) AS col1
----
46
-26

skipif mysql # not compatible
query II rowsort label-4740
SELECT 46 col1, MIN ( - + 26 ) AS col1
----
46
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4741
SELECT ALL 57 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL 57 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 89 - + COALESCE ( 44, + 16 * COALESCE ( - 32, 80 * ( 18 ) + 46 ) * 71 )
----
45

query II rowsort
SELECT DISTINCT 9, - 90 AS col1
----
9
-90

query I rowsort
SELECT 76 AS col1
----
76

query II rowsort
SELECT ALL 14, 7 AS col2
----
14
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT 78 + + COUNT( * ) - - 54 * - 49 + COUNT( * ) AS col0
----
-2566

skipif mysql # not compatible
query I rowsort label-4746
SELECT 78 + + COUNT ( * ) - - 54 * - 49 + COUNT ( * ) AS col0
----
-2566

query I rowsort
SELECT 14 * - 48 col2
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT 85 * COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-4748
SELECT 85 * COUNT ( * )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT SUM( ALL + 87 ) + 24 + 6 * + - 22 * + ( 20 ) * + 63 + 31 AS col0
----
-166178

skipif mysql # not compatible
query I rowsort label-4749
SELECT SUM ( ALL + 87 ) + 24 + 6 * + - 22 * + ( 20 ) * + 63 + 31 AS col0
----
-166178

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT + MAX( ALL - - ( + 82 ) )
----
82

skipif mysql # not compatible
query I rowsort label-4750
SELECT + MAX ( ALL - - ( + 82 ) )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT - 65 * - COUNT( * ) + - 87 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-4751
SELECT - 65 * - COUNT ( * ) + - 87 AS col0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4752
SELECT ALL + 53 * + 72 + - + 46 * COALESCE ( - + ( - - CAST( NULL AS SIGNED ) ), - 94 )
----
8140

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL + 53 * + 72 + - + 46 * COALESCE ( - + ( - - CAST ( NULL AS INTEGER ) ), - 94 )
----
8140

query I rowsort
SELECT ALL - 49 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-4754
SELECT COUNT( + + 53 ) AS col0, + 15
----
1
15

skipif mysql # not compatible
query II rowsort label-4754
SELECT COUNT ( + + 53 ) AS col0, + 15
----
1
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4755
SELECT 76 * - + 28 - - 94 - + CAST( 84 AS SIGNED ) AS col2
----
-2118

skipif mysql # not compatible
query I rowsort label-4755
SELECT 76 * - + 28 - - 94 - + CAST ( 84 AS INTEGER ) AS col2
----
-2118

query I rowsort
SELECT 63 + + + COALESCE ( 76, 40 ) + + 57 AS col1
----
196

onlyif mysql # aggregate syntax: 
query II rowsort label-4757
SELECT COUNT( * ) AS col1, 49 AS col1
----
1
49

skipif mysql # not compatible
query II rowsort label-4757
SELECT COUNT ( * ) AS col1, 49 AS col1
----
1
49

query I rowsort
SELECT ( - + 12 ) * + 75 AS col0
----
-900

query II rowsort
SELECT ALL - 12 AS col0, - 8
----
-12
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT + NULLIF ( + 33, COUNT( + NULLIF ( + 18, - - 72 ) ) ) * + 87
----
2871

skipif mysql # not compatible
query I rowsort label-4760
SELECT + NULLIF ( + 33, COUNT ( + NULLIF ( + 18, - - 72 ) ) ) * + 87
----
2871

query I rowsort
SELECT DISTINCT - - 29
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT 32 - 2 + 94 * 90 - - - 61 + - + 88 + - CASE + 37 WHEN - 1 * MIN( DISTINCT - 44 ) THEN 15 ELSE NULL END / - 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4762
SELECT 32 - 2 + 94 * 90 - - - 61 + - + 88 + - CASE + 37 WHEN - 1 * MIN ( DISTINCT - 44 ) THEN 15 ELSE NULL END / - 38 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4763
SELECT DISTINCT - - 42 AS col1, - 64 * - CAST( NULL AS SIGNED ) * - CAST( COALESCE ( AVG ( - 44 ), 46, - 77 * 28, AVG ( 66 ) ) AS SIGNED ) * + 53
----
42
NULL

skipif mysql # not compatible
query II rowsort label-4763
SELECT DISTINCT - - 42 AS col1, - 64 * - CAST ( NULL AS INTEGER ) * - CAST ( COALESCE ( AVG ( - 44 ), 46, - 77 * 28, AVG ( 66 ) ) AS INTEGER ) * + 53
----
42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT DISTINCT - MIN( ALL - 77 ) * - + 6
----
-462

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT - MIN ( ALL - 77 ) * - + 6
----
-462

query I rowsort
SELECT ALL + COALESCE ( - + 17, 36 ) - 0 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-4766
SELECT - 72 AS col0, - COUNT( ALL + + 43 )
----
-72
-1

skipif mysql # not compatible
query II rowsort label-4766
SELECT - 72 AS col0, - COUNT ( ALL + + 43 )
----
-72
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT - 66 + 86 * - COUNT( + 65 ) + - - 52 AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-4767
SELECT - 66 + 86 * - COUNT ( + 65 ) + - - 52 AS col1
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT - - CASE - - 13 WHEN + 64 - - CASE + + 74 WHEN COUNT( * ) * 10 THEN NULL ELSE NULLIF ( CAST( NULL AS SIGNED ), + 38 * 59 + 90 ) + 97 END THEN ( 46 ) END - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4768
SELECT - - CASE - - 13 WHEN + 64 - - CASE + + 74 WHEN COUNT ( * ) * 10 THEN NULL ELSE NULLIF ( CAST ( NULL AS INTEGER ), + 38 * 59 + 90 ) + 97 END THEN ( 46 ) END - 77
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4769
SELECT - - CAST( + + 22 AS SIGNED ) * + COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-4769
SELECT - - CAST ( + + 22 AS INTEGER ) * + COUNT ( * ) AS col2
----
22

onlyif mysql # DIV for integer division: 
query II rowsort label-4770
SELECT DISTINCT + 24 AS col0, - 34 DIV + 93 AS col2
----
24
0

skipif mysql # not compatible
query II rowsort label-4770
SELECT DISTINCT + 24 AS col0, - 34 / + 93 AS col2
----
24
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT ALL - CASE 14 WHEN 87 THEN + + COUNT( * ) + - MAX( ( - 62 ) ) + 67 * - 29 * 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL - CASE 14 WHEN 87 THEN + + COUNT ( * ) + - MAX ( ( - 62 ) ) + 67 * - 29 * 93 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4772
SELECT - CAST( + 43 AS SIGNED ) + - - CAST( NULL AS SIGNED ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT - CAST ( + 43 AS INTEGER ) + - - CAST ( NULL AS INTEGER ) * + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT - NULLIF ( - 22, + 69 * - 64 + + 26 + - ( - 32 ) / COUNT( * ) ) + 21 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4773
SELECT - NULLIF ( - 22, + 69 * - 64 + + 26 + - ( - 32 ) / COUNT ( * ) ) + 21 AS col1
----
43

query II rowsort
SELECT ALL NULLIF ( - 16, + 71 ), - 35 + - - 73 + - 72 AS col0
----
-16
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT DISTINCT NULLIF ( COALESCE ( - + 30, - 55 ), + 90 * SUM( DISTINCT + ( + 46 ) ) * COUNT( * ) + 42 )
----
-30

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT NULLIF ( COALESCE ( - + 30, - 55 ), + 90 * SUM ( DISTINCT + ( + 46 ) ) * COUNT ( * ) + 42 )
----
-30

query I rowsort
SELECT ALL + 34 * + 88 AS col1
----
2992

query I rowsort
SELECT + 85 + + 50
----
135

query I rowsort
SELECT - 97 * - 82
----
7954

query I rowsort
SELECT - ( + 20 ) * - 21
----
420

query I rowsort
SELECT + 61 + + 45 - + 80
----
26

query I rowsort
SELECT DISTINCT - 89 * - 23 AS col1
----
2047

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT ALL + COUNT( * ) * + - 4 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL + COUNT ( * ) * + - 4 AS col0
----
-4

query I rowsort
SELECT DISTINCT 76 AS col1
----
76

query I rowsort
SELECT + 43 + - 87 + + 85 + - 55
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT ALL - 48 * - + ( - MIN( - 21 ) ) + 45
----
1053

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL - 48 * - + ( - MIN ( - 21 ) ) + 45
----
1053

query I rowsort
SELECT + NULLIF ( - 46, + + 10 ) AS col0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4787
SELECT 99 DIV + 94 + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4787
SELECT 99 / + 94 + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT - 89 - - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-4788
SELECT - 89 - - COUNT ( * )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4789
SELECT - - 52 + + 97, - 14 + - ( 31 ) * + MIN( ALL + 79 ) * + CAST( NULL AS DECIMAL ) AS col1
----
149
NULL

skipif mysql # not compatible
query II rowsort label-4789
SELECT - - 52 + + 97, - 14 + - ( 31 ) * + MIN ( ALL + 79 ) * + CAST ( NULL AS REAL ) AS col1
----
149
NULL

query I rowsort
SELECT ( + 37 ) AS col1
----
37

query I rowsort
SELECT ALL NULLIF ( + 25, - ( - 80 ) ) * - 89 + + + 55 AS col2
----
-2170

onlyif mysql # DIV for integer division: 
query I rowsort label-4792
SELECT DISTINCT + 55 DIV 38 + 66
----
67

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT + 55 / 38 + 66
----
67

query I rowsort
SELECT ALL + + 18 AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4794
SELECT - NULLIF ( 17, 5 ) * - + CAST( NULL AS SIGNED ) + MAX( - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4794
SELECT - NULLIF ( 17, 5 ) * - + CAST ( NULL AS INTEGER ) + MAX ( - 78 )
----
NULL

query I rowsort
SELECT + + 27 * - 98 AS col2
----
-2646

query I rowsort
SELECT DISTINCT + + 36 AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4797
SELECT + CAST( - 27 AS SIGNED ) + - - 96
----
69

skipif mysql # not compatible
query I rowsort label-4797
SELECT + CAST ( - 27 AS INTEGER ) + - - 96
----
69

query I rowsort
SELECT ALL + - 58 AS col2
----
-58

query I rowsort
SELECT + + 44 + 14 + - - 34
----
92

query I rowsort
SELECT DISTINCT + + 76
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4801
SELECT ALL + COALESCE ( + NULLIF ( + CAST( NULL AS SIGNED ), + - 99 + - COUNT( * ) ), + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL + COALESCE ( + NULLIF ( + CAST ( NULL AS INTEGER ), + - 99 + - COUNT ( * ) ), + COUNT ( * ) )
----
1

query I rowsort
SELECT 70 * + 77 * - 71 * + - 49 + - 80
----
18751730

onlyif mysql # DIV for integer division: 
query I rowsort label-4803
SELECT - - 11 DIV + 12 + + - 17 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4803
SELECT - - 11 / + 12 + + - 17 AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4804
SELECT - + 95 + - CAST( - COUNT( * ) AS SIGNED ) + + 67
----
-27

skipif mysql # not compatible
query I rowsort label-4804
SELECT - + 95 + - CAST ( - COUNT ( * ) AS INTEGER ) + + 67
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT ALL + - 53 * - COUNT( 10 ) * - 44 + + - 17 + - + 54
----
-2403

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL + - 53 * - COUNT ( 10 ) * - 44 + + - 17 + - + 54
----
-2403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4806
SELECT DISTINCT + 56 * - CAST( 54 AS SIGNED )
----
-3024

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT + 56 * - CAST ( 54 AS INTEGER )
----
-3024

query I rowsort
SELECT + + 51 / + 39 / - CASE + 91 WHEN 35 THEN + 38 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 47 * - 43
----
2021

query I rowsort
SELECT ALL 21 * - 47 * + 24 AS col1
----
-23688

query I rowsort
SELECT - ( + 47 ) col1
----
-47

query I rowsort
SELECT - 33 * 92
----
-3036

query I rowsort
SELECT ALL NULLIF ( + 7, + - 21 + 79 + ( - 50 ) * - + ( AVG ( 75 ) ) + 35 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT ALL + COUNT( * ) + ( + 75 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL + COUNT ( * ) + ( + 75 ) AS col1
----
76

query I rowsort
SELECT - ( + + 95 ) * 89 * - 9 * - 65
----
-4946175

query II rowsort
SELECT 4, 62 AS col2
----
4
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4816
SELECT ALL ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT ALL COUNT( * ) + - 62 * + 31
----
-1921

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL COUNT ( * ) + - 62 * + 31
----
-1921

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT DISTINCT + COUNT( * ) + + CASE + COUNT( * ) WHEN 78 THEN NULL ELSE - 9 END
----
-8

skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT + COUNT ( * ) + + CASE + COUNT ( * ) WHEN 78 THEN NULL ELSE - 9 END
----
-8

query I rowsort
SELECT - 2 - + 31 + 48
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT ALL + 13 + - MIN( - 22 )
----
35

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL + 13 + - MIN ( - 22 )
----
35

query I rowsort
SELECT DISTINCT ( - 15 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT - 90 + - - COUNT( * ) - + 53 * - + ( - COUNT( * ) ) AS col1
----
-142

skipif mysql # not compatible
query I rowsort label-4822
SELECT - 90 + - - COUNT ( * ) - + 53 * - + ( - COUNT ( * ) ) AS col1
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4823
SELECT DISTINCT + NULLIF ( - 11, 89 / 62 * + COUNT( * ) * + + 31 ) / - - 39 + + 70 + + ( CAST( NULL AS SIGNED ) ) * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT + NULLIF ( - 11, 89 / 62 * + COUNT ( * ) * + + 31 ) / - - 39 + + 70 + + ( CAST ( NULL AS INTEGER ) ) * 8
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4824
SELECT + 81 / - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) - - - 27 + - 7 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT + 81 / - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) - - - 27 + - 7 col1
----
NULL

query I rowsort
SELECT + - 36 AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4826
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + 49 + - COUNT( * ) + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 49 + - COUNT ( * ) + - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 95 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT ALL - 26 * + 1 * MIN( 2 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL - 26 * + 1 * MIN ( 2 ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT ALL - COUNT( - - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL - COUNT ( - - 1 )
----
-1

query II rowsort
SELECT + 34 AS col0, - 64 AS col0
----
34
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL - - 38 - COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL - - 38 - COUNT ( * ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT - CASE + 27 WHEN 36 + 63 + - - COUNT( * ) THEN NULL ELSE - + 26 END AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4832
SELECT - CASE + 27 WHEN 36 + 63 + - - COUNT ( * ) THEN NULL ELSE - + 26 END AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4833
SELECT 95 + 89 + + 61, + CAST( NULL AS SIGNED ) * + COUNT( ALL - 56 ) * + CAST( NULL AS SIGNED ) AS col1
----
245
NULL

skipif mysql # not compatible
query II rowsort label-4833
SELECT 95 + 89 + + 61, + CAST ( NULL AS INTEGER ) * + COUNT ( ALL - 56 ) * + CAST ( NULL AS INTEGER ) AS col1
----
245
NULL

query I rowsort
SELECT + 26 * 21
----
546

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4835
SELECT 54 * - 18 * 48, CAST( 58 AS SIGNED ) AS col0
----
-46656
58

skipif mysql # not compatible
query II rowsort label-4835
SELECT 54 * - 18 * 48, CAST ( 58 AS INTEGER ) AS col0
----
-46656
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT + 17 * + COUNT( * ) + + ( - + COUNT( * ) ) + - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-4836
SELECT + 17 * + COUNT ( * ) + + ( - + COUNT ( * ) ) + - COUNT ( * )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT + + ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4837
SELECT + + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT 33 * + - 37 * + ( - - SUM( ALL + 37 ) ) AS col2
----
-45177

skipif mysql # not compatible
query I rowsort label-4838
SELECT 33 * + - 37 * + ( - - SUM ( ALL + 37 ) ) AS col2
----
-45177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4839
SELECT DISTINCT - CAST( - - COUNT( 52 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4839
SELECT DISTINCT - CAST ( - - COUNT ( 52 ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL - - 15 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT 10 + COUNT( * ) - - + CASE - 10 WHEN 34 + CASE + + 11 WHEN 96 THEN NULL WHEN 31 * 42 THEN + 21 + + 4 ELSE NULL END - - 19 * 72 THEN NULL WHEN MIN( ALL 79 ) + 15 THEN NULL WHEN 66 THEN 79 * - 93 END * + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT 10 + COUNT ( * ) - - + CASE - 10 WHEN 34 + CASE + + 11 WHEN 96 THEN NULL WHEN 31 * 42 THEN + 21 + + 4 ELSE NULL END - - 19 * 72 THEN NULL WHEN MIN ( ALL 79 ) + 15 THEN NULL WHEN 66 THEN 79 * - 93 END * + 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL - MIN( ALL + 40 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL - MIN ( ALL + 40 ) AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4843
SELECT CASE - 43 WHEN - + COUNT( * ) THEN NULL WHEN COUNT( * ) THEN 26 ELSE NULL END + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - CASE - 65 WHEN 69 + - 16 * 29 THEN + 80 WHEN - 40 THEN + 97 WHEN 42 THEN 21 + - 15 WHEN + ( ( + MIN( DISTINCT - 14 ) ) ) + 44 THEN NULL ELSE NULL END + 40 * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4843
SELECT CASE - 43 WHEN - + COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN 26 ELSE NULL END + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - CASE - 65 WHEN 69 + - 16 * 29 THEN + 80 WHEN - 40 THEN + 97 WHEN 42 THEN 21 + - 15 WHEN + ( ( + MIN ( DISTINCT - 14 ) ) ) + 44 THEN NULL ELSE NULL END + 40 * 39
----
NULL

query I rowsort
SELECT 79 + + 9 + + 99 AS col1
----
187

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4845
SELECT ALL 74 + + 51 - - - CAST( NULL AS SIGNED ) * - 9, - ( - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4845
SELECT ALL 74 + + 51 - - - CAST ( NULL AS INTEGER ) * - 9, - ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4846
SELECT 88 + COUNT( DISTINCT 59 ) * - 1, - COUNT( * ) * - 94 * - 74 AS col0
----
87
-6956

skipif mysql # not compatible
query II rowsort label-4846
SELECT 88 + COUNT ( DISTINCT 59 ) * - 1, - COUNT ( * ) * - 94 * - 74 AS col0
----
87
-6956

query I rowsort
SELECT 24 - - 45 * - 1
----
-21

query I rowsort
SELECT - 4 col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT ALL MIN( - + 98 ) + - 39 * 44 AS col1
----
-1814

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL MIN ( - + 98 ) + - 39 * 44 AS col1
----
-1814

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT DISTINCT 26 * + + COUNT( * ) col0
----
26

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT 26 * + + COUNT ( * ) col0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4851
SELECT 7 DIV + ( - 25 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4851
SELECT 7 / + ( - 25 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4852
SELECT DISTINCT SUM( ALL - + ( + 59 ) ) + 69, - 12 - - 72 AS col2
----
10
60

skipif mysql # not compatible
query II rowsort label-4852
SELECT DISTINCT SUM ( ALL - + ( + 59 ) ) + 69, - 12 - - 72 AS col2
----
10
60

onlyif mysql # aggregate syntax: 
query II rowsort label-4853
SELECT ALL + 17 + + 55 * COUNT( * ) * - + 32 AS col1, 41 AS col2
----
-1743
41

skipif mysql # not compatible
query II rowsort label-4853
SELECT ALL + 17 + + 55 * COUNT ( * ) * - + 32 AS col1, 41 AS col2
----
-1743
41

query I rowsort
SELECT 33 + - 25 col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT ( + + 97 ) * + 87 * COUNT( * )
----
8439

skipif mysql # not compatible
query I rowsort label-4855
SELECT ( + + 97 ) * + 87 * COUNT ( * )
----
8439

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4856
SELECT ( ( + 97 ) ) + - - COUNT( * ) * - 21, - 77 * + + COUNT( * ) * 52 * - CAST( + 90 AS SIGNED ) AS col1
----
76
360360

skipif mysql # not compatible
query II rowsort label-4856
SELECT ( ( + 97 ) ) + - - COUNT ( * ) * - 21, - 77 * + + COUNT ( * ) * 52 * - CAST ( + 90 AS INTEGER ) AS col1
----
76
360360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4857
SELECT ALL + 82 - - 76 + - 88 * + CAST( NULL AS SIGNED ) * - ( 72 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL + 82 - - 76 + - 88 * + CAST ( NULL AS INTEGER ) * - ( 72 ) AS col1
----
NULL

query II rowsort
SELECT 38 * - + NULLIF ( + + 50, + + 82 ), + 94 * 99 AS col2
----
-1900
9306

query I rowsort
SELECT ALL 83 col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4860
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - - ( COALESCE ( 17, - COUNT( * ) * + 13 + - - 80 * + 54 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - - ( COALESCE ( 17, - COUNT ( * ) * + 13 + - - 80 * + 54 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT + COUNT( * ) + ( + - COUNT( * ) ) * + 22 * - + COUNT( * ) * + 37
----
815

skipif mysql # not compatible
query I rowsort label-4861
SELECT + COUNT ( * ) + ( + - COUNT ( * ) ) * + 22 * - + COUNT ( * ) * + 37
----
815

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4862
SELECT DISTINCT - NULLIF ( + 28, - AVG ( ALL + CAST( + - 32 AS SIGNED ) ) ) AS col2, 65 * 58
----
-28
3770

skipif mysql # not compatible
query II rowsort label-4862
SELECT DISTINCT - NULLIF ( + 28, - AVG ( ALL + CAST ( + - 32 AS INTEGER ) ) ) AS col2, 65 * 58
----
-28
3770

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4863
SELECT CAST( NULL AS DECIMAL ) + - MIN( + 66 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT CAST ( NULL AS REAL ) + - MIN ( + 66 ) AS col1
----
NULL

query I rowsort
SELECT + + 45 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ( + COUNT( * ) ) - - 95 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4865
SELECT ( + COUNT ( * ) ) - - 95 AS col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4866
SELECT - 80 DIV - 37 - + 18 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-4866
SELECT - 80 / - 37 - + 18 AS col1
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4867
SELECT 9 * COALESCE ( - 51, COUNT( * ) + - CASE + + 39 WHEN - - 89 THEN - 3 END + 1, + 82 DIV - 37 ) DIV COUNT( * )
----
-459

skipif mysql # not compatible
query I rowsort label-4867
SELECT 9 * COALESCE ( - 51, COUNT ( * ) + - CASE + + 39 WHEN - - 89 THEN - 3 END + 1, + 82 / - 37 ) / COUNT ( * )
----
-459

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4868
SELECT COALESCE ( + - 48, + 76, - - MAX( 92 ) ) DIV 5 - - 27 + + - 3
----
15

skipif mysql # not compatible
query I rowsort label-4868
SELECT COALESCE ( + - 48, + 76, - - MAX ( 92 ) ) / 5 - - 27 + + - 3
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4869
SELECT DISTINCT - ( - - ( + 88 ) ) * ( 84 ) DIV + 97 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-4869
SELECT DISTINCT - ( - - ( + 88 ) ) * ( 84 ) / + 97 AS col0
----
-76

query I rowsort
SELECT ALL - 58 AS col0
----
-58

query I rowsort
SELECT DISTINCT + 20 * + 51 col0
----
1020

query I rowsort
SELECT ALL - ( - 22 )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4873
SELECT CAST( + - 77 AS SIGNED ) + - - ( + 93 ) + + - 67
----
-51

skipif mysql # not compatible
query I rowsort label-4873
SELECT CAST ( + - 77 AS INTEGER ) + - - ( + 93 ) + + - 67
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT DISTINCT + 70 + - - COUNT( DISTINCT 13 ) * - - MIN( 19 )
----
89

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT + 70 + - - COUNT ( DISTINCT 13 ) * - - MIN ( 19 )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4875
SELECT DISTINCT - SUM( DISTINCT 36 ) AS col1, + SUM( + ( ( 55 ) ) ) - 54 * + 74
----
-36
-3941

skipif mysql # not compatible
query II rowsort label-4875
SELECT DISTINCT - SUM ( DISTINCT 36 ) AS col1, + SUM ( + ( ( 55 ) ) ) - 54 * + 74
----
-36
-3941

query II rowsort
SELECT ALL + 37 + - NULLIF ( 38, 84 + + 50 ) col0, 99 * - ( + 11 )
----
-1
-1089

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT - 5 + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-4877
SELECT - 5 + COUNT ( * )
----
-4

query II rowsort
SELECT 34, 15 AS col1
----
34
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4879
SELECT MIN( ALL CAST( + 4 AS SIGNED ) ) * + COUNT( * ) DIV - 9
----
0

skipif mysql # not compatible
query I rowsort label-4879
SELECT MIN ( ALL CAST ( + 4 AS INTEGER ) ) * + COUNT ( * ) / - 9
----
0

query I rowsort
SELECT ALL - 48 + - + 18
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4881
SELECT DISTINCT - NULLIF ( 79, + 83 * - CAST( NULL AS SIGNED ) * + + 71 - + - 77 ) + - - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT DISTINCT - NULLIF ( 79, + 83 * - CAST ( NULL AS INTEGER ) * + + 71 - + - 77 ) + - - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT ALL MIN( DISTINCT - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL MIN ( DISTINCT - 73 )
----
-73

query I rowsort
SELECT ALL 20 + - 62 * + 47
----
-2894

query I rowsort
SELECT 23 * 29 * 94
----
62698

query I rowsort
SELECT ALL - 12 + - 22 * - 9
----
186

query I rowsort
SELECT DISTINCT 63 col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT COUNT( * ) - 67 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-4887
SELECT COUNT ( * ) - 67 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT ALL 84 + - 31 + + + MIN( ALL 14 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL 84 + - 31 + + + MIN ( ALL 14 ) AS col0
----
67

query I rowsort
SELECT 13 - + + 55 * 83
----
-4552

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT 49 * - + COUNT( * ) * + - 53 * - 85
----
-220745

skipif mysql # not compatible
query I rowsort label-4890
SELECT 49 * - + COUNT ( * ) * + - 53 * - 85
----
-220745

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT 38 * - - MAX( ( + 97 ) )
----
3686

skipif mysql # not compatible
query I rowsort label-4891
SELECT 38 * - - MAX ( ( + 97 ) )
----
3686

query I rowsort
SELECT DISTINCT 72 * - 16 AS col2
----
-1152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4893
SELECT DISTINCT SUM( NULLIF ( 1, + CAST( NULL AS SIGNED ) ) ) - - + 21 + - 1
----
21

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT SUM ( NULLIF ( 1, + CAST ( NULL AS INTEGER ) ) ) - - + 21 + - 1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT ALL - 45 * + COUNT( * ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL - 45 * + COUNT ( * ) AS col2
----
-45

query I rowsort
SELECT + - 40 - + + 57 AS col2
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4896
SELECT DISTINCT + 27, + 40 * - - COUNT( * ) col1
----
27
40

skipif mysql # not compatible
query II rowsort label-4896
SELECT DISTINCT + 27, + 40 * - - COUNT ( * ) col1
----
27
40

query I rowsort
SELECT + 81 * + - 91
----
-7371

query I rowsort
SELECT ALL 20 * + 46
----
920

query I rowsort
SELECT - + 91 AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4900
SELECT - CAST( 40 AS SIGNED ) DIV + + COUNT( * ) - 94 col2
----
-134

skipif mysql # not compatible
query I rowsort label-4900
SELECT - CAST ( 40 AS INTEGER ) / + + COUNT ( * ) - 94 col2
----
-134

query I rowsort
SELECT ALL + - 47 AS col1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4902
SELECT ALL - ( - ( - 34 ) ) * + 49 * - - COUNT( * ) / - COUNT( * ) * 66 * - CAST( NULL AS SIGNED ) AS col2, 74 col1
----
NULL
74

skipif mysql # not compatible
query II rowsort label-4902
SELECT ALL - ( - ( - 34 ) ) * + 49 * - - COUNT ( * ) / - COUNT ( * ) * 66 * - CAST ( NULL AS INTEGER ) AS col2, 74 col1
----
NULL
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT - SUM( - 74 )
----
74

skipif mysql # not compatible
query I rowsort label-4903
SELECT - SUM ( - 74 )
----
74

query I rowsort
SELECT ALL + 1 * + 79 * - + 7 + + 85 + + 26
----
-442

query I rowsort
SELECT + ( + 90 )
----
90

query I rowsort
SELECT ALL + + 14
----
14

query I rowsort
SELECT ALL + + 27 AS col0
----
27

query I rowsort
SELECT DISTINCT 16 * 3 + + - 7 * - 81
----
615

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT ALL 54 * + COALESCE ( COUNT( * ), - - SUM( ALL - + 31 ) * - CASE - ( 85 ) WHEN - 63 THEN NULL WHEN COUNT( * ) THEN 46 + + COUNT( * ) END ) + 35 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL 54 * + COALESCE ( COUNT ( * ), - - SUM ( ALL - + 31 ) * - CASE - ( 85 ) WHEN - 63 THEN NULL WHEN COUNT ( * ) THEN 46 + + COUNT ( * ) END ) + 35 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT + 6 + - SUM( DISTINCT 98 ) + + CASE - MIN( DISTINCT + 36 ) WHEN - 96 THEN + 93 + 33 - - MIN( ALL + 96 ) - + COUNT( * ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT + 6 + - SUM ( DISTINCT 98 ) + + CASE - MIN ( DISTINCT + 36 ) WHEN - 96 THEN + 93 + 33 - - MIN ( ALL + 96 ) - + COUNT ( * ) ELSE NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4911
SELECT - 80 DIV + 14
----
-5

skipif mysql # not compatible
query I rowsort label-4911
SELECT - 80 / + 14
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-4912
SELECT + 19 + + COUNT( * ) * 78 AS col0, COUNT( * ) AS col0
----
97
1

skipif mysql # not compatible
query II rowsort label-4912
SELECT + 19 + + COUNT ( * ) * 78 AS col0, COUNT ( * ) AS col0
----
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT - + ( ( + COUNT( * ) ) ) * 36 * 21 AS col0
----
-756

skipif mysql # not compatible
query I rowsort label-4913
SELECT - + ( ( + COUNT ( * ) ) ) * 36 * 21 AS col0
----
-756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4914
SELECT + + 86 col0, 66 + NULLIF ( + + 18, + CASE 37 WHEN + COUNT( * ) + 20 + - CAST( + + COUNT( * ) AS SIGNED ) THEN 31 * + CAST( 32 AS SIGNED ) ELSE - 42 + CASE + 41 WHEN 32 + + COUNT( * ) * - 96 THEN NULL WHEN 88 + - ( - COUNT( * ) ) THEN 65 + ( + COALESCE ( + 93, 5 ) ) WHEN + 29 THEN - 85 END / 60 END * - 68 ) AS col0
----
86
84

skipif mysql # not compatible
query II rowsort label-4914
SELECT + + 86 col0, 66 + NULLIF ( + + 18, + CASE 37 WHEN + COUNT ( * ) + 20 + - CAST ( + + COUNT ( * ) AS INTEGER ) THEN 31 * + CAST ( 32 AS INTEGER ) ELSE - 42 + CASE + 41 WHEN 32 + + COUNT ( * ) * - 96 THEN NULL WHEN 88 + - ( - COUNT ( * ) ) THEN 65 + ( + COALESCE ( + 93, 5 ) ) WHEN + 29 THEN - 85 END / 60 END * - 68 ) AS col0
----
86
84

query I rowsort
SELECT ( - - 48 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT ALL - MIN( DISTINCT - ( - + CAST( 47 AS SIGNED ) ) ) * - 58 AS col1
----
2726

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL - MIN ( DISTINCT - ( - + CAST ( 47 AS INTEGER ) ) ) * - 58 AS col1
----
2726

query I rowsort
SELECT ALL 71 * + + 47 + - - 46 AS col2
----
3383

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT DISTINCT + COUNT( ALL + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT + COUNT ( ALL + 71 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4919
SELECT ALL - 49 * + + 6 * + - 86 + + CAST( + AVG ( ALL 36 ) AS SIGNED ) * - COUNT( * ) + + + 79 + - + 38 + ( 44 ) * CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL - 49 * + + 6 * + - 86 + + CAST ( + AVG ( ALL 36 ) AS INTEGER ) * - COUNT ( * ) + + + 79 + - + 38 + ( 44 ) * CAST ( NULL AS REAL ) * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - 50 + + 68
----
18

query I rowsort
SELECT ALL - 44 * + 65 AS col2
----
-2860

query I rowsort
SELECT - 26 + 17 + 9
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4923
SELECT ALL NULLIF ( + ( - 14 ), 54 ) DIV CAST( 27 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL NULLIF ( + ( - 14 ), 54 ) / CAST ( 27 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT DISTINCT + CASE 8 WHEN + 46 THEN NULL ELSE ( + COUNT( * ) ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT + CASE 8 WHEN + 46 THEN NULL ELSE ( + COUNT ( * ) ) END AS col2
----
1

query I rowsort
SELECT - 79 + - 25 AS col2
----
-104

query I rowsort
SELECT - 91 + - 26 AS col1
----
-117

onlyif mysql # aggregate syntax: 
query III rowsort label-4927
SELECT - 67 + + 79 AS col0, + CASE - - 83 WHEN - COUNT( * ) THEN NULL ELSE - ( - MIN( ALL + ( 4 ) ) ) END, - COALESCE ( - ( COUNT( * ) ), 29 ) / + CASE - COUNT( * ) WHEN - 57 THEN + 18 / - 27 WHEN - 97 THEN 41 * - 1 ELSE - ( + CASE 93 WHEN - 32 / + 20 THEN - 84 * 11 ELSE NULL END ) END col0
----
12
4
NULL

skipif mysql # not compatible
query III rowsort label-4927
SELECT - 67 + + 79 AS col0, + CASE - - 83 WHEN - COUNT ( * ) THEN NULL ELSE - ( - MIN ( ALL + ( 4 ) ) ) END, - COALESCE ( - ( COUNT ( * ) ), 29 ) / + CASE - COUNT ( * ) WHEN - 57 THEN + 18 / - 27 WHEN - 97 THEN 41 * - 1 ELSE - ( + CASE 93 WHEN - 32 / + 20 THEN - 84 * 11 ELSE NULL END ) END col0
----
12
4
NULL

query I rowsort
SELECT + 73 - - 79
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL CASE - NULLIF ( - - ( + 13 ), - + 96 ) WHEN + 40 THEN - CASE + - 30 WHEN + 23 THEN + + 91 END ELSE + CASE 79 WHEN COUNT( * ) THEN - 75 WHEN COALESCE ( COALESCE ( 52, COUNT( * ) / 94, + COUNT( * ) - COUNT( * ) ), + COUNT( * ) / - 78, - 98 ) - 27 THEN NULL ELSE NULL END END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL CASE - NULLIF ( - - ( + 13 ), - + 96 ) WHEN + 40 THEN - CASE + - 30 WHEN + 23 THEN + + 91 END ELSE + CASE 79 WHEN COUNT ( * ) THEN - 75 WHEN COALESCE ( COALESCE ( 52, COUNT ( * ) / 94, + COUNT ( * ) - COUNT ( * ) ), + COUNT ( * ) / - 78, - 98 ) - 27 THEN NULL ELSE NULL END END col0
----
NULL

query I rowsort
SELECT ALL 31 * + 96 AS col1
----
2976

onlyif mysql # aggregate syntax: 
query II rowsort label-4931
SELECT DISTINCT ( - 37 ), COUNT( DISTINCT + 26 ) AS col1
----
-37
1

skipif mysql # not compatible
query II rowsort label-4931
SELECT DISTINCT ( - 37 ), COUNT ( DISTINCT + 26 ) AS col1
----
-37
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4932
SELECT DISTINCT CAST( - 13 AS SIGNED ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT CAST ( - 13 AS INTEGER ) AS col0
----
-13

query II rowsort
SELECT + + 78 * + 37 + - 76 * 96 AS col2, + 69 * 96
----
-4410
6624

onlyif mysql # aggregate syntax: 
query II rowsort label-4934
SELECT + 2 AS col0, - SUM( ALL - 77 ) AS col1
----
2
77

skipif mysql # not compatible
query II rowsort label-4934
SELECT + 2 AS col0, - SUM ( ALL - 77 ) AS col1
----
2
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT - - COUNT( ALL + + 3 ) + + - 12
----
-11

skipif mysql # not compatible
query I rowsort label-4935
SELECT - - COUNT ( ALL + + 3 ) + + - 12
----
-11

query I rowsort
SELECT + - ( + ( + - 3 ) ) * 17 - + + 66
----
-15

query II rowsort
SELECT + + 28 + + ( + + ( - 29 ) ), 36 AS col0
----
-1
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4938
SELECT ALL + 22 DIV - 2 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL + 22 / - 2 AS col1
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-4939
SELECT + + 17 DIV + 31 col1
----
0

skipif mysql # not compatible
query I rowsort label-4939
SELECT + + 17 / + 31 col1
----
0

query I rowsort
SELECT ALL ( + 72 ) AS col2
----
72

query I rowsort
SELECT DISTINCT - 67 col1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4942
SELECT ALL 54 + - COALESCE ( - - 10, + + 30, NULLIF ( + - 84, + 74 * - NULLIF ( + 47, - 53 + - 40 + 76 * - 47 * + MAX( - 86 ) ) ) DIV 29 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL 54 + - COALESCE ( - - 10, + + 30, NULLIF ( + - 84, + 74 * - NULLIF ( + 47, - 53 + - 40 + 76 * - 47 * + MAX ( - 86 ) ) ) / 29 ) AS col0
----
44

query I rowsort
SELECT ALL + 73 + + 20 AS col2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4944
SELECT ALL 98 DIV - - 33 + + 77 * + 16
----
1234

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL 98 / - - 33 + + 77 * + 16
----
1234

query II rowsort
SELECT + + 31, 8 AS col0
----
31
8

query I rowsort
SELECT ALL - 81 * - 30 col0
----
2430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4947
SELECT + COUNT( * ) * - + SUM( CASE - 27 WHEN - + 65 * - 26 * + + 73 * - - CAST( 38 AS SIGNED ) + - 16 * 31 * - 22 THEN - 62 END ) + - 82 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4947
SELECT + COUNT ( * ) * - + SUM ( CASE - 27 WHEN - + 65 * - 26 * + + 73 * - - CAST ( 38 AS INTEGER ) + - 16 * 31 * - 22 THEN - 62 END ) + - 82 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4948
SELECT ALL 14 DIV + 79 * - COUNT( * ) + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL 14 / + 79 * - COUNT ( * ) + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + - 8 AS col2
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4950
SELECT + COUNT( * ) AS col0, + 48 DIV + 82 * 47 * - 75 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-4950
SELECT + COUNT ( * ) AS col0, + 48 / + 82 * 47 * - 75 AS col0
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT 32 * - COUNT( * ) * 9 - 19 AS col1
----
-307

skipif mysql # not compatible
query I rowsort label-4951
SELECT 32 * - COUNT ( * ) * 9 - 19 AS col1
----
-307

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT SUM( DISTINCT 45 )
----
45

skipif mysql # not compatible
query I rowsort label-4952
SELECT SUM ( DISTINCT 45 )
----
45

query I rowsort
SELECT DISTINCT + 59 col1
----
59

query I rowsort
SELECT DISTINCT + 40 AS col2
----
40

query I rowsort
SELECT ALL - 5 / - ( 81 ) + - CASE 79 WHEN - 27 THEN NULL WHEN + 10 THEN + 99 END + + 53
----
NULL

query I rowsort
SELECT DISTINCT + 55 AS col1
----
55

query I rowsort
SELECT ALL + 68
----
68

onlyif mysql # DIV for integer division: 
query II rowsort label-4958
SELECT + 15 * - 24 col0, 47 * 61 DIV - - 47 AS col0
----
-360
61

skipif mysql # not compatible
query II rowsort label-4958
SELECT + 15 * - 24 col0, 47 * 61 / - - 47 AS col0
----
-360
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT DISTINCT - 95 * + + 91 * + - MAX( ALL + 3 ) - 28 + + 94 * + 34
----
29103

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT - 95 * + + 91 * + - MAX ( ALL + 3 ) - 28 + + 94 * + 34
----
29103

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4960
SELECT DISTINCT + 40 * SUM( ALL - + 22 ), - COUNT( * ) DIV - MIN( 58 ) - COUNT( * ) AS col0
----
-880
-1

skipif mysql # not compatible
query II rowsort label-4960
SELECT DISTINCT + 40 * SUM ( ALL - + 22 ), - COUNT ( * ) / - MIN ( 58 ) - COUNT ( * ) AS col0
----
-880
-1

query II rowsort
SELECT 42 * + 51, + 42 AS col1
----
2142
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4962
SELECT DISTINCT - 68 - - CAST( - ( ( - COUNT( + 79 ) ) ) AS SIGNED ) DIV ( - 7 ) + + COALESCE ( + - 6, - 89 - - + 24 )
----
-74

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT - 68 - - CAST ( - ( ( - COUNT ( + 79 ) ) ) AS INTEGER ) / ( - 7 ) + + COALESCE ( + - 6, - 89 - - + 24 )
----
-74

query I rowsort
SELECT ALL - 95 * - 13
----
1235

query I rowsort
SELECT DISTINCT 79 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT 64 * COUNT( 44 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4965
SELECT 64 * COUNT ( 44 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT COUNT( ALL 16 ) * 69 * - 68 col2
----
-4692

skipif mysql # not compatible
query I rowsort label-4966
SELECT COUNT ( ALL 16 ) * 69 * - 68 col2
----
-4692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4967
SELECT 38 - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4967
SELECT 38 - + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT 77 * + 21 AS col2
----
1617

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT SUM( - 42 ) + + + COALESCE ( + + 58, ( + 7 ) - - 79 ) * - 8 + + 26
----
-480

skipif mysql # not compatible
query I rowsort label-4969
SELECT SUM ( - 42 ) + + + COALESCE ( + + 58, ( + 7 ) - - 79 ) * - 8 + + 26
----
-480

query I rowsort
SELECT - + NULLIF ( - 35, - 1 - 14 * - 68 * + - 22 )
----
35

query I rowsort
SELECT 15 * - - 12 * - - 47 AS col1
----
8460

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4972
SELECT + COUNT( + + 11 ) + COALESCE ( - 12, + 15, + 60 ) + + - 74 DIV COUNT( * ) AS col2, COUNT( + - 47 )
----
-85
1

skipif mysql # not compatible
query II rowsort label-4972
SELECT + COUNT ( + + 11 ) + COALESCE ( - 12, + 15, + 60 ) + + - 74 / COUNT ( * ) AS col2, COUNT ( + - 47 )
----
-85
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4973
SELECT ALL + - NULLIF ( - + 36, + 19 * + + 82 ) + + CAST( 26 AS SIGNED ) DIV 86 * + 61 * COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL + - NULLIF ( - + 36, + 19 * + + 82 ) + + CAST ( 26 AS INTEGER ) / 86 * + 61 * COUNT ( * )
----
36

query I rowsort
SELECT DISTINCT - COALESCE ( - 50, - - 15 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT ALL + SUM( DISTINCT + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL + SUM ( DISTINCT + 78 )
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-4976
SELECT ALL 43 + + - SUM( + - 80 ), - COUNT( * ) AS col0
----
123
-1

skipif mysql # not compatible
query II rowsort label-4976
SELECT ALL 43 + + - SUM ( + - 80 ), - COUNT ( * ) AS col0
----
123
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4977
SELECT 54 - + 83 AS col0, - CASE - 32 WHEN 57 / 52 * 42 + 17 * + + 86 THEN NULL WHEN 54 + COUNT( * ) THEN 54 WHEN - 32 THEN + CASE - 75 WHEN MIN( 31 ) THEN NULL WHEN 17 * + 88 THEN NULL ELSE - COUNT( * ) * 84 END * 42 ELSE NULLIF ( ( 24 ), + NULLIF ( + CAST( + AVG ( ALL 19 ) AS SIGNED ), CASE - 90 WHEN 40 + NULLIF ( 19, 78 ) THEN + 12 + + COUNT( * ) * 76 ELSE - ( + 14 ) END + + 6 * + CAST( + 52 AS SIGNED ) ) ) END + - 58 AS col2
----
-29
3470

skipif mysql # not compatible
query II rowsort label-4977
SELECT 54 - + 83 AS col0, - CASE - 32 WHEN 57 / 52 * 42 + 17 * + + 86 THEN NULL WHEN 54 + COUNT ( * ) THEN 54 WHEN - 32 THEN + CASE - 75 WHEN MIN ( 31 ) THEN NULL WHEN 17 * + 88 THEN NULL ELSE - COUNT ( * ) * 84 END * 42 ELSE NULLIF ( ( 24 ), + NULLIF ( + CAST ( + AVG ( ALL 19 ) AS INTEGER ), CASE - 90 WHEN 40 + NULLIF ( 19, 78 ) THEN + 12 + + COUNT ( * ) * 76 ELSE - ( + 14 ) END + + 6 * + CAST ( + 52 AS INTEGER ) ) ) END + - 58 AS col2
----
-29
3470

query I rowsort
SELECT DISTINCT - - ( 78 ) + + 51 AS col0
----
129

query I rowsort
SELECT ALL + 0 + + - 56 * + 44 * 13
----
-32032

query I rowsort
SELECT ALL - 41 + + 81 AS col0
----
40

query I rowsort
SELECT DISTINCT + - 49 * + - 17 + 67 AS col0
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT + 92 + + MIN( DISTINCT 7 )
----
99

skipif mysql # not compatible
query I rowsort label-4982
SELECT + 92 + + MIN ( DISTINCT 7 )
----
99

query I rowsort
SELECT 23 * + + 58
----
1334

query I rowsort
SELECT - + 10
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4985
SELECT 54 DIV - + 13 AS col2, - 58 + COALESCE ( - - 97, - ( + 12 ) * + + COUNT( * ) ) * - COALESCE ( - COUNT( * ), - 50 ) + - 87
----
-4
-48

skipif mysql # not compatible
query II rowsort label-4985
SELECT 54 / - + 13 AS col2, - 58 + COALESCE ( - - 97, - ( + 12 ) * + + COUNT ( * ) ) * - COALESCE ( - COUNT ( * ), - 50 ) + - 87
----
-4
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-4986
SELECT + ( 40 ) DIV - 4 - + 9
----
-19

skipif mysql # not compatible
query I rowsort label-4986
SELECT + ( 40 ) / - 4 - + 9
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-4987
SELECT DISTINCT + 17 DIV - 15 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT + 17 / - 15 AS col0
----
-1

query I rowsort
SELECT DISTINCT - 30 AS col1
----
-30

query I rowsort
SELECT ALL - - 98 AS col0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4990
SELECT COUNT( * ) DIV + 18 - + 81 * - 58 * + - 18 * - 58 AS col2
----
4904712

skipif mysql # not compatible
query I rowsort label-4990
SELECT COUNT ( * ) / + 18 - + 81 * - 58 * + - 18 * - 58 AS col2
----
4904712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4991
SELECT DISTINCT + 67 * + 47 * + SUM( + 74 ) * + 79 * + - 18 + + 63 + + 80 + - - 59 + - - 48 + - - 1 * + ( + CASE 54 WHEN COALESCE ( 68, - NULLIF ( + 78, + 82 * 94 ) * 58, + 64 + + CAST( NULL AS SIGNED ) ) / - COUNT( * ) THEN NULL WHEN + COUNT( + 76 ) THEN 29 END ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT + 67 * + 47 * + SUM ( + 74 ) * + 79 * + - 18 + + 63 + + 80 + - - 59 + - - 48 + - - 1 * + ( + CASE 54 WHEN COALESCE ( 68, - NULLIF ( + 78, + 82 * 94 ) * 58, + 64 + + CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) THEN NULL WHEN + COUNT ( + 76 ) THEN 29 END ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 33 - 31
----
2

query I rowsort
SELECT 7 * + - 4
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT COALESCE ( - COUNT( * ), - 46 * + 0 ) * 63
----
-63

skipif mysql # not compatible
query I rowsort label-4994
SELECT COALESCE ( - COUNT ( * ), - 46 * + 0 ) * 63
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-4995
SELECT DISTINCT - 71, 59 * COALESCE ( + + 87, - - ( - COUNT( * ) ), + COALESCE ( 17, - - SUM( DISTINCT + 14 ) ) ) AS col2
----
-71
5133

skipif mysql # not compatible
query II rowsort label-4995
SELECT DISTINCT - 71, 59 * COALESCE ( + + 87, - - ( - COUNT ( * ) ), + COALESCE ( 17, - - SUM ( DISTINCT + 14 ) ) ) AS col2
----
-71
5133

query I rowsort
SELECT 48 + - - 91
----
139

query I rowsort
SELECT ( - + 7 ) * 94 + - 55 * - - 38
----
-2748

query I rowsort
SELECT 38 + + 8 AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4999
SELECT 77 + - 48 + ( + 23 ) * 74 * ( - CASE 29 WHEN ( + 54 ) * - CAST( + 68 AS SIGNED ) * + - 36 / + CASE + 58 WHEN 31 THEN NULL ELSE - 55 END + 19 + 62 THEN 70 WHEN CAST( + COALESCE ( COALESCE ( COALESCE ( 97, 31 / CAST( - 15 AS SIGNED ), - 74 ), MIN( 6 ) - 30 ), + 10 + - 72 * + CAST( - 63 AS SIGNED ) ) AS SIGNED ) THEN NULLIF ( 31, MAX( 49 ) - NULLIF ( SUM( 16 ), 95 + - CASE 82 WHEN + MIN( ALL - 19 ) * 13 THEN COUNT( * ) + - 9 WHEN 10 THEN 86 WHEN COUNT( * ) THEN NULL END ) ) END ) + 44 * 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4999
SELECT 77 + - 48 + ( + 23 ) * 74 * ( - CASE 29 WHEN ( + 54 ) * - CAST ( + 68 AS INTEGER ) * + - 36 / + CASE + 58 WHEN 31 THEN NULL ELSE - 55 END + 19 + 62 THEN 70 WHEN CAST ( + COALESCE ( COALESCE ( COALESCE ( 97, 31 / CAST ( - 15 AS INTEGER ), - 74 ), MIN ( 6 ) - 30 ), + 10 + - 72 * + CAST ( - 63 AS INTEGER ) ) AS INTEGER ) THEN NULLIF ( 31, MAX ( 49 ) - NULLIF ( SUM ( 16 ), 95 + - CASE 82 WHEN + MIN ( ALL - 19 ) * 13 THEN COUNT ( * ) + - 9 WHEN 10 THEN 86 WHEN COUNT ( * ) THEN NULL END ) ) END ) + 44 * 91 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT ALL - 64 + + COUNT( * ) * + - 64 * - + ( - 74 ) * - COUNT( * ) * - - 96 * MIN( DISTINCT - - 92 )
----
41828288

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL - 64 + + COUNT ( * ) * + - 64 * - + ( - 74 ) * - COUNT ( * ) * - - 96 * MIN ( DISTINCT - - 92 )
----
41828288

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT - 30 + + 22 * - 55 + + - MAX( + - 19 ) AS col1
----
-1221

skipif mysql # not compatible
query I rowsort label-5001
SELECT - 30 + + 22 * - 55 + + - MAX ( + - 19 ) AS col1
----
-1221

onlyif mysql # DIV for integer division: 
query I rowsort label-5002
SELECT DISTINCT + 28 DIV - + 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT + 28 / - + 88 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5003
SELECT - 74 DIV + 49
----
-1

skipif mysql # not compatible
query I rowsort label-5003
SELECT - 74 / + 49
----
-1

query I rowsort
SELECT ALL + 6 + + 82
----
88

query II rowsort
SELECT - 37 AS col1, - 82 AS col1
----
-37
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT DISTINCT - ( + COUNT( * ) ) * + 19 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-5006
SELECT DISTINCT - ( + COUNT ( * ) ) * + 19 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5007
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) col0
----
NULL

query II rowsort
SELECT - 71 AS col1, 24 AS col2
----
-71
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT + 24 + - SUM( - 58 ) * 42 col0
----
2460

skipif mysql # not compatible
query I rowsort label-5009
SELECT + 24 + - SUM ( - 58 ) * 42 col0
----
2460

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT + MIN( DISTINCT - + 55 ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-5010
SELECT + MIN ( DISTINCT - + 55 ) col2
----
-55

query I rowsort
SELECT ( + - 98 )
----
-98

query II rowsort
SELECT ALL + 35, 83 AS col1
----
35
83

query I rowsort
SELECT - 90 * 51 col2
----
-4590

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT 38 + - + SUM( ALL ( - 66 ) ) + - 47
----
57

skipif mysql # not compatible
query I rowsort label-5014
SELECT 38 + - + SUM ( ALL ( - 66 ) ) + - 47
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT DISTINCT ( ( - MIN( - 94 ) ) )
----
94

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT ( ( - MIN ( - 94 ) ) )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL + - COUNT( * ) * + 21 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL + - COUNT ( * ) * + 21 AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5017
SELECT - CASE 88 WHEN + CAST( + - 48 AS SIGNED ) THEN 24 + + CAST( - 24 AS SIGNED ) + + + 65 * - ( - - 28 ) * SUM( DISTINCT 63 ) + - ( - 54 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5017
SELECT - CASE 88 WHEN + CAST ( + - 48 AS INTEGER ) THEN 24 + + CAST ( - 24 AS INTEGER ) + + + 65 * - ( - - 28 ) * SUM ( DISTINCT 63 ) + - ( - 54 ) END AS col2
----
NULL

query I rowsort
SELECT + 22 + - - 33
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5019
SELECT 17 * 73 + + - CAST( + + COUNT( * ) AS SIGNED )
----
1240

skipif mysql # not compatible
query I rowsort label-5019
SELECT 17 * 73 + + - CAST ( + + COUNT ( * ) AS INTEGER )
----
1240

query I rowsort
SELECT ALL + 38 * - 61 col2
----
-2318

onlyif mysql # aggregate syntax: 
query II rowsort label-5021
SELECT ( 71 ) + + 77 + 8, - COUNT( DISTINCT 76 ) AS col1
----
156
-1

skipif mysql # not compatible
query II rowsort label-5021
SELECT ( 71 ) + + 77 + 8, - COUNT ( DISTINCT 76 ) AS col1
----
156
-1

query I rowsort
SELECT ALL + + 55 * - 56 AS col2
----
-3080

query I rowsort
SELECT + + 50 col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5024
SELECT COALESCE ( + 80, ( - - 81 ) DIV + 23 DIV 24 )
----
80

skipif mysql # not compatible
query I rowsort label-5024
SELECT COALESCE ( + 80, ( - - 81 ) / + 23 / 24 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5025
SELECT - CAST( NULL AS SIGNED ) * + 38 * - + 81 + + - 7 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT - CAST ( NULL AS INTEGER ) * + 38 * - + 81 + + - 7 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT MIN( DISTINCT 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-5026
SELECT MIN ( DISTINCT 97 ) AS col1
----
97

query I rowsort
SELECT DISTINCT - 90
----
-90

query I rowsort
SELECT ALL - 68 * 58
----
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT DISTINCT + COUNT( + - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT + COUNT ( + - 29 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5030
SELECT ALL 55 DIV ( - + 41 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL 55 / ( - + 41 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + 74 AS col1
----
74

query I rowsort
SELECT DISTINCT + 80 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT - 84 * - NULLIF ( - 52, + + SUM( DISTINCT + 59 ) )
----
-4368

skipif mysql # not compatible
query I rowsort label-5033
SELECT - 84 * - NULLIF ( - 52, + + SUM ( DISTINCT + 59 ) )
----
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT SUM( DISTINCT - - ( - 15 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-5034
SELECT SUM ( DISTINCT - - ( - 15 ) )
----
-15

query I rowsort
SELECT DISTINCT 54 * 89 AS col2
----
4806

query I rowsort
SELECT DISTINCT 13 * - COALESCE ( - + 61, + 82, 86 ) * + - 88 * - + 85 AS col2
----
5931640

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT ALL ( + COUNT( * ) ) * - COUNT( * ) + - 54
----
-55

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL ( + COUNT ( * ) ) * - COUNT ( * ) + - 54
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT COUNT( ALL 79 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5038
SELECT COUNT ( ALL 79 ) AS col2
----
1

query I rowsort
SELECT ALL 19 * - + 45 + - - ( - ( + 33 ) ) AS col1
----
-888

query I rowsort
SELECT ALL + 35 + 63
----
98

query II rowsort
SELECT ALL - 66 + + 66, - 15 AS col1
----
0
-15

query I rowsort
SELECT ALL 65 AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5043
SELECT - CAST( - 86 AS SIGNED ) AS col1, - 3
----
86
-3

skipif mysql # not compatible
query II rowsort label-5043
SELECT - CAST ( - 86 AS INTEGER ) AS col1, - 3
----
86
-3

query I rowsort
SELECT ALL 64 + - 98
----
-34

query I rowsort
SELECT DISTINCT - 96 AS col2
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5046
SELECT + - 5 DIV MAX( DISTINCT - 57 )
----
0

skipif mysql # not compatible
query I rowsort label-5046
SELECT + - 5 / MAX ( DISTINCT - 57 )
----
0

query I rowsort
SELECT + COALESCE ( - 59, 43 * + 33 ) + 69
----
10

query I rowsort
SELECT - 17 * - 51 * - - 43
----
37281

query I rowsort
SELECT ALL - 73 AS col0
----
-73

query I rowsort
SELECT + 61 + + 48
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5051
SELECT DISTINCT 5 * + CAST( - 34 AS SIGNED )
----
-170

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT 5 * + CAST ( - 34 AS INTEGER )
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT + MIN( - 22 ) + + + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-5052
SELECT + MIN ( - 22 ) + + + COUNT ( * )
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5053
SELECT - 44 DIV 75 + + 27 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-5053
SELECT - 44 / 75 + + 27 AS col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5054
SELECT + - CAST( NULL AS SIGNED ) * - + 9 * - + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5054
SELECT + - CAST ( NULL AS INTEGER ) * - + 9 * - + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ALL + 59 - - - 53 + + COUNT( * ) + MIN( ALL - 4 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL + 59 - - - 53 + + COUNT ( * ) + MIN ( ALL - 4 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT - CASE ( 2 ) WHEN - 81 THEN NULL WHEN - 13 THEN - - 65 + COALESCE ( SUM( DISTINCT + 10 ), - SUM( ALL + - 31 ) + + 12 / + 8 / 49, + 64 ) + - 35 * 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT - CASE ( 2 ) WHEN - 81 THEN NULL WHEN - 13 THEN - - 65 + COALESCE ( SUM ( DISTINCT + 10 ), - SUM ( ALL + - 31 ) + + 12 / + 8 / 49, + 64 ) + - 35 * 2 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5057
SELECT DISTINCT + ( CAST( + 41 AS SIGNED ) ) * - + 45 AS col1
----
-1845

skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT + ( CAST ( + 41 AS INTEGER ) ) * - + 45 AS col1
----
-1845

query I rowsort
SELECT DISTINCT 76 - - 9
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT DISTINCT + MIN( - + ( - 58 ) ) col0
----
58

skipif mysql # not compatible
query I rowsort label-5059
SELECT DISTINCT + MIN ( - + ( - 58 ) ) col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT - + 4 + + + 23 + - 12 * + 57 - COUNT( * )
----
-666

skipif mysql # not compatible
query I rowsort label-5060
SELECT - + 4 + + + 23 + - 12 * + 57 - COUNT ( * )
----
-666

query I rowsort
SELECT DISTINCT - CASE 67 WHEN - + 93 THEN - + 21 * + 74 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT + 77 DIV 71
----
1

skipif mysql # not compatible
query I rowsort label-5062
SELECT + 77 / 71
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5063
SELECT ALL COALESCE ( + COUNT( * ), 7 ) AS col1, 57 AS col0
----
1
57

skipif mysql # not compatible
query II rowsort label-5063
SELECT ALL COALESCE ( + COUNT ( * ), 7 ) AS col1, 57 AS col0
----
1
57

query I rowsort
SELECT - ( + 38 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5065
SELECT - CASE - - 93 WHEN 18 * - 9 THEN NULL WHEN - - CASE - 51 WHEN + 0 + - + AVG ( + 27 ) * + 67 * - CASE + - 63 WHEN - - 40 + - 26 - 24 THEN 83 * NULLIF ( - 61, 99 ) WHEN 17 * CAST( NULL AS SIGNED ) + - 62 THEN NULL END + - COUNT( * ) THEN NULL WHEN - 38 - - 40 THEN COALESCE ( SUM( ALL 94 ), - 38 * - 83 ) ELSE 80 * - 64 END THEN 7 ELSE NULL END * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-5065
SELECT - CASE - - 93 WHEN 18 * - 9 THEN NULL WHEN - - CASE - 51 WHEN + 0 + - + AVG ( + 27 ) * + 67 * - CASE + - 63 WHEN - - 40 + - 26 - 24 THEN 83 * NULLIF ( - 61, 99 ) WHEN 17 * CAST ( NULL AS INTEGER ) + - 62 THEN NULL END + - COUNT ( * ) THEN NULL WHEN - 38 - - 40 THEN COALESCE ( SUM ( ALL 94 ), - 38 * - 83 ) ELSE 80 * - 64 END THEN 7 ELSE NULL END * 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT DISTINCT COALESCE ( 48, 53 + - 78 - - - 88 + + COUNT( * ) * - + 50 + + + 13 - 6 * + - 18 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT COALESCE ( 48, 53 + - 78 - - - 88 + + COUNT ( * ) * - + 50 + + + 13 - 6 * + - 18 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT ALL + MAX( DISTINCT 32 )
----
32

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL + MAX ( DISTINCT 32 )
----
32

query I rowsort
SELECT - 20 * + 75 col0
----
-1500

query I rowsort
SELECT ALL + ( + 63 )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5070
SELECT ALL - CAST( NULL AS SIGNED ) * - + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 68 AS col2
----
NULL

query I rowsort
SELECT ( - 99 )
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5072
SELECT - 90 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5072
SELECT - 90 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT - 2 + 21 * + - 15 * MIN( ALL - 21 ) + 77 * ( - + ( - - COUNT( * ) ) ) AS col0
----
6536

skipif mysql # not compatible
query I rowsort label-5073
SELECT - 2 + 21 * + - 15 * MIN ( ALL - 21 ) + 77 * ( - + ( - - COUNT ( * ) ) ) AS col0
----
6536

query I rowsort
SELECT DISTINCT - 19 * + 49
----
-931

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5075
SELECT ALL NULLIF ( + CAST( - - 15 AS SIGNED ), - 22 + - 19 - - 82 + + 22 + - 9 ) * ( - - 31 ) + - 58 AS col1
----
407

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL NULLIF ( + CAST ( - - 15 AS INTEGER ), - 22 + - 19 - - 82 + + 22 + - 9 ) * ( - - 31 ) + - 58 AS col1
----
407

query I rowsort
SELECT - 53 * 75 + + 5 * + + 2
----
-3965

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5077
SELECT + ( - SUM( ALL 54 ) ) - + - 11 + - + 43 * - + 77 * - - COALESCE ( 12, + - 41 * 79 DIV + 6 + + 1 + + ( - - COUNT( * ) ), - - 49 ) AS col1
----
39689

skipif mysql # not compatible
query I rowsort label-5077
SELECT + ( - SUM ( ALL 54 ) ) - + - 11 + - + 43 * - + 77 * - - COALESCE ( 12, + - 41 * 79 / + 6 + + 1 + + ( - - COUNT ( * ) ), - - 49 ) AS col1
----
39689

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT + COALESCE ( + 36, + 81, 70 * - COUNT( ALL - 15 ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-5078
SELECT + COALESCE ( + 36, + 81, 70 * - COUNT ( ALL - 15 ) ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT MIN( ALL 30 ) * - + COUNT( * ) + 67
----
37

skipif mysql # not compatible
query I rowsort label-5079
SELECT MIN ( ALL 30 ) * - + COUNT ( * ) + 67
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5080
SELECT ALL ( - - NULLIF ( + + COALESCE ( + - CASE + COUNT( * ) WHEN 33 + - 78 + 94 * - 35 DIV - 34 THEN - COUNT( * ) * - 51 + + 5 DIV + COUNT( * ) ELSE NULL END, 10 + + 75, 14 ), 1 DIV 19 ) ) * + 45 + 91 * + ( - 58 * 85 )
----
-444805

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL ( - - NULLIF ( + + COALESCE ( + - CASE + COUNT ( * ) WHEN 33 + - 78 + 94 * - 35 / - 34 THEN - COUNT ( * ) * - 51 + + 5 / + COUNT ( * ) ELSE NULL END, 10 + + 75, 14 ), 1 / 19 ) ) * + 45 + 91 * + ( - 58 * 85 )
----
-444805

query I rowsort
SELECT - NULLIF ( - 89, 26 ) + + 2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT - ( + 18 ) + + + SUM( ALL 61 ) + - 47 * + - ( - + 66 )
----
-3059

skipif mysql # not compatible
query I rowsort label-5082
SELECT - ( + 18 ) + + + SUM ( ALL 61 ) + - 47 * + - ( - + 66 )
----
-3059

query I rowsort
SELECT ALL + - 35 col0
----
-35

query I rowsort
SELECT + 89 * - 48 + + + 60
----
-4212

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT ALL 80 * - - 77 + - 84 + + 6 * + ( - + 94 ) * + CASE + + 39 WHEN + 29 * + + 60 + 64 + - + 26 THEN NULL WHEN 51 THEN ( - + 78 ) * - COALESCE ( - COUNT( * ) * SUM( 25 * + 64 ), 33, 67 / 97 ) - ( NULLIF ( - SUM( 81 ), + 3 ) + 53 / 64 ) ELSE NULL END * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL 80 * - - 77 + - 84 + + 6 * + ( - + 94 ) * + CASE + + 39 WHEN + 29 * + + 60 + 64 + - + 26 THEN NULL WHEN 51 THEN ( - + 78 ) * - COALESCE ( - COUNT ( * ) * SUM ( 25 * + 64 ), 33, 67 / 97 ) - ( NULLIF ( - SUM ( 81 ), + 3 ) + 53 / 64 ) ELSE NULL END * - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT + COUNT( + 66 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5086
SELECT + COUNT ( + 66 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT + MAX( DISTINCT + + 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-5087
SELECT + MAX ( DISTINCT + + 69 ) AS col2
----
69

query I rowsort
SELECT DISTINCT + ( - COALESCE ( + - 84, 42 ) )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5089
SELECT - 32 DIV - SUM( - - 34 )
----
0

skipif mysql # not compatible
query I rowsort label-5089
SELECT - 32 / - SUM ( - - 34 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT + - 18 * + COALESCE ( + - 60, - COUNT( * ) ) AS col2
----
1080

skipif mysql # not compatible
query I rowsort label-5090
SELECT + - 18 * + COALESCE ( + - 60, - COUNT ( * ) ) AS col2
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT ALL - 12 * + + MIN( ALL + 77 ) AS col2
----
-924

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL - 12 * + + MIN ( ALL + 77 ) AS col2
----
-924

query I rowsort
SELECT ALL 75 * - + 28 AS col0
----
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT - + COUNT( * ) * - 57 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-5093
SELECT - + COUNT ( * ) * - 57 AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5094
SELECT + NULLIF ( - 67, + ( COUNT( * ) ) + - + 71 + + 71 * + - CAST( - 0 AS SIGNED ) - - 30 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-5094
SELECT + NULLIF ( - 67, + ( COUNT ( * ) ) + - + 71 + + 71 * + - CAST ( - 0 AS INTEGER ) - - 30 ) AS col2
----
-67

query I rowsort
SELECT DISTINCT 94 * + 24
----
2256

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT DISTINCT - + 38 * + COUNT( * ) * - 33 * + 42 AS col0
----
52668

skipif mysql # not compatible
query I rowsort label-5096
SELECT DISTINCT - + 38 * + COUNT ( * ) * - 33 * + 42 AS col0
----
52668

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT DISTINCT MAX( + - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-5097
SELECT DISTINCT MAX ( + - 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT ALL - - COUNT( * ) * + 34
----
34

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL - - COUNT ( * ) * + 34
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT ALL - MIN( 76 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL - MIN ( 76 ) AS col2
----
-76

query I rowsort
SELECT + 8 + 66 AS col0
----
74

onlyif mysql # DIV for integer division: 
query II rowsort label-5101
SELECT ALL + 44 AS col1, 75 + + + 65 DIV + 95 AS col1
----
44
75

skipif mysql # not compatible
query II rowsort label-5101
SELECT ALL + 44 AS col1, 75 + + + 65 / + 95 AS col1
----
44
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT + 48 * CASE - 19 WHEN - + 41 * + + COUNT( * ) * 91 THEN NULL WHEN - + 72 THEN + + 69 * 78 ELSE + 10 * + 58 + - 44 - + 46 + + - 43 * - + 34 END AS col0
----
93696

skipif mysql # not compatible
query I rowsort label-5102
SELECT + 48 * CASE - 19 WHEN - + 41 * + + COUNT ( * ) * 91 THEN NULL WHEN - + 72 THEN + + 69 * 78 ELSE + 10 * + 58 + - 44 - + 46 + + - 43 * - + 34 END AS col0
----
93696

query I rowsort
SELECT + - 16 * - + 40 * - - 59
----
37760

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT ALL SUM( ALL + - 25 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL SUM ( ALL + - 25 ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT COALESCE ( - 64, ( + MAX( + 99 ) ) ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-5105
SELECT COALESCE ( - 64, ( + MAX ( + 99 ) ) ) AS col0
----
-64

query I rowsort
SELECT - - 80 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT + 68 * + COUNT( DISTINCT 24 ) * - 26 * - 94 * - 39
----
-6481488

skipif mysql # not compatible
query I rowsort label-5107
SELECT + 68 * + COUNT ( DISTINCT 24 ) * - 26 * - 94 * - 39
----
-6481488

query I rowsort
SELECT 58 * + + 14
----
812

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT DISTINCT MAX( - 30 ) * - ( + COUNT( 73 ) ) + + - 6 + - 34 col0
----
-10

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT MAX ( - 30 ) * - ( + COUNT ( 73 ) ) + + - 6 + - 34 col0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5110
SELECT DISTINCT 92 DIV + 95 * + ( + 39 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT 92 / + 95 * + ( + 39 ) AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5111
SELECT DISTINCT - 13 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT DISTINCT - 13 * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT NULLIF ( - 93, + + 48 ) + + 39 + - 78 - + COUNT( DISTINCT + + 47 ) * + 83 * - 39 AS col1
----
3105

skipif mysql # not compatible
query I rowsort label-5112
SELECT NULLIF ( - 93, + + 48 ) + + 39 + - 78 - + COUNT ( DISTINCT + + 47 ) * + 83 * - 39 AS col1
----
3105

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT DISTINCT NULLIF ( + + 65, 66 ) * + 64 - + 60 * + ( - COUNT( * ) )
----
4220

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT NULLIF ( + + 65, 66 ) * + 64 - + 60 * + ( - COUNT ( * ) )
----
4220

query I rowsort
SELECT ALL 3 * - 25 AS col1
----
-75

query I rowsort
SELECT 58 + 52 + - 5 AS col0
----
105

query II rowsort
SELECT + 58, + 50 + + + 24 + - 60 + + NULLIF ( + + 61, 71 * + 97 * + 6 ) * - + 46 AS col1
----
58
-2792

query I rowsort
SELECT ALL 96 + 23 * + 70
----
1706

query I rowsort
SELECT NULLIF ( - 95, + ( - 22 ) ) * - 60 * 49 AS col2
----
279300

query II rowsort
SELECT 85, 57 * - 46 * 10 AS col0
----
85
-26220

onlyif mysql # aggregate syntax: 
query II rowsort label-5120
SELECT + 13 AS col1, 62 + - COALESCE ( - - 82, + COUNT( + + 41 ), + COUNT( * ) * - - 96 + - - NULLIF ( + + MIN( 51 ), + 41 ) ) + - COUNT( * )
----
13
-21

skipif mysql # not compatible
query II rowsort label-5120
SELECT + 13 AS col1, 62 + - COALESCE ( - - 82, + COUNT ( + + 41 ), + COUNT ( * ) * - - 96 + - - NULLIF ( + + MIN ( 51 ), + 41 ) ) + - COUNT ( * )
----
13
-21

query I rowsort
SELECT 48 * + - ( - + 26 ) AS col2
----
1248

query I rowsort
SELECT ALL + 60 + + 55 col1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT DISTINCT - SUM( ALL - 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT - SUM ( ALL - 21 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT DISTINCT - COALESCE ( + 51, - + COUNT( - 9 ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-5124
SELECT DISTINCT - COALESCE ( + 51, - + COUNT ( - 9 ) ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT DISTINCT 95 + + 14 * - COUNT( * ) + - 30
----
51

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT 95 + + 14 * - COUNT ( * ) + - 30
----
51

query I rowsort
SELECT ALL - ( + 4 )
----
-4

query I rowsort
SELECT ALL + 60 + - - 60 col0
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5128
SELECT ALL - 6 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL - 6 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 2 * + 98 AS col2
----
196

query I rowsort
SELECT + + 20 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT ALL - MIN( DISTINCT + + 64 ) col1
----
-64

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL - MIN ( DISTINCT + + 64 ) col1
----
-64

query I rowsort
SELECT + - 67 col1
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5133
SELECT ALL - 83 * - 24 + - COALESCE ( - - 27, 40, - + 35 + - 91 + - ( + + 4 ) * + CAST( + 23 AS SIGNED ) ) AS col0, ( + 6 )
----
1965
6

skipif mysql # not compatible
query II rowsort label-5133
SELECT ALL - 83 * - 24 + - COALESCE ( - - 27, 40, - + 35 + - 91 + - ( + + 4 ) * + CAST ( + 23 AS INTEGER ) ) AS col0, ( + 6 )
----
1965
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5134
SELECT DISTINCT + 25 - + - COUNT( * ), 51 AS col1
----
26
51

skipif mysql # not compatible
query II rowsort label-5134
SELECT DISTINCT + 25 - + - COUNT ( * ), 51 AS col1
----
26
51

query II rowsort
SELECT ALL - - 69 AS col0, + 96 AS col2
----
69
96

query I rowsort
SELECT - ( - 1 ) col1
----
1

query II rowsort
SELECT + 12, + 56 col2
----
12
56

query I rowsort
SELECT DISTINCT - - 91 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT - CASE + 31 WHEN - CASE + ( - - 50 ) WHEN - - 77 THEN + 97 END * + 49 THEN NULL WHEN 75 + + 12 THEN - 91 * + 68 / SUM( ALL 79 ) WHEN + - ( - 61 ) * - 30 THEN NULL END - - 8 * 62
----
NULL

skipif mysql # not compatible
query I rowsort label-5139
SELECT - CASE + 31 WHEN - CASE + ( - - 50 ) WHEN - - 77 THEN + 97 END * + 49 THEN NULL WHEN 75 + + 12 THEN - 91 * + 68 / SUM ( ALL 79 ) WHEN + - ( - 61 ) * - 30 THEN NULL END - - 8 * 62
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5140
SELECT ALL COALESCE ( - 62, - + ( 85 ) * - MAX( ALL - 34 ), - - COALESCE ( 75, + + 12 DIV 7 + + 46, + - 3 DIV - 59 + - + 10 * - + NULLIF ( 69, NULLIF ( + MIN( DISTINCT + 16 ), + 73 * 83 + 24 ) ) ) * - COUNT( * ) ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL COALESCE ( - 62, - + ( 85 ) * - MAX ( ALL - 34 ), - - COALESCE ( 75, + + 12 / 7 + + 46, + - 3 / - 59 + - + 10 * - + NULLIF ( 69, NULLIF ( + MIN ( DISTINCT + 16 ), + 73 * 83 + 24 ) ) ) * - COUNT ( * ) ) AS col2
----
-62

query I rowsort
SELECT ( - + 4 ) AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5142
SELECT + COALESCE ( - + COUNT( * ), COUNT( * ) + - 51 ) DIV - + ( 95 ) AS col0, + 77 * 93 + 56 - + + ( + ( + + 64 ) ) + - - 67 * - 87 + + 30 + - - 0
----
0
1354

skipif mysql # not compatible
query II rowsort label-5142
SELECT + COALESCE ( - + COUNT ( * ), COUNT ( * ) + - 51 ) / - + ( 95 ) AS col0, + 77 * 93 + 56 - + + ( + ( + + 64 ) ) + - - 67 * - 87 + + 30 + - - 0
----
0
1354

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5143
SELECT + 2 DIV 49 * - 77 DIV + COUNT( * ) + - 2 + - COUNT( * ) * - 93
----
91

skipif mysql # not compatible
query I rowsort label-5143
SELECT + 2 / 49 * - 77 / + COUNT ( * ) + - 2 + - COUNT ( * ) * - 93
----
91

query I rowsort
SELECT ALL + 59 col2
----
59

query II rowsort
SELECT 2 + - + NULLIF ( + ( - - 32 ), - + 65 ) * + 44 AS col2, 68 AS col0
----
-1406
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT + 15 * + 42 + - COUNT( * )
----
629

skipif mysql # not compatible
query I rowsort label-5146
SELECT + 15 * + 42 + - COUNT ( * )
----
629

query I rowsort
SELECT ALL + 7 * + 48 * - 22
----
-7392

query III rowsort
SELECT ALL + 35 col0, 68 - + 78 + + 31 col2, + - 15 + - 97 - - + 82 + - COALESCE ( + + 77, - 58 )
----
35
21
-107

query I rowsort
SELECT - + 79 col1
----
-79

query I rowsort
SELECT DISTINCT + 79 + + 38 * 41 * + 52 * 50 AS col1
----
4050879

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5151
SELECT COALESCE ( - - ( + - 21 ), + 12 * - 20 DIV + - 51 DIV - COUNT( ALL - + 49 ) + 65 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-5151
SELECT COALESCE ( - - ( + - 21 ), + 12 * - 20 / + - 51 / - COUNT ( ALL - + 49 ) + 65 ) AS col2
----
-21

query I rowsort
SELECT ALL - + 69 + - 95 * 73
----
-7004

query I rowsort
SELECT DISTINCT 56 + - 50
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5154
SELECT DISTINCT - CASE + 10 WHEN + 42 THEN + - CAST( NULL AS SIGNED ) * + 96 + + 36 WHEN - 46 * + 52 + + 64 + - + 59 - + + 45 THEN NULL END * - 82 / - - COUNT( * ) * + + 91 * + 17 + - COUNT( * ) - - 18 * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT - CASE + 10 WHEN + 42 THEN + - CAST ( NULL AS INTEGER ) * + 96 + + 36 WHEN - 46 * + 52 + + 64 + - + 59 - + + 45 THEN NULL END * - 82 / - - COUNT ( * ) * + + 91 * + 17 + - COUNT ( * ) - - 18 * - 6
----
NULL

query I rowsort
SELECT ALL 33 + - 88 * + 9
----
-759

query I rowsort
SELECT ALL 91 + + + 8 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT ALL COUNT( * ) * + 54 * - 62
----
-3348

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL COUNT ( * ) * + 54 * - 62
----
-3348

query I rowsort
SELECT ALL 97 + NULLIF ( - - 81, + ( 27 ) ) + ( - 62 ) * - 60 * + 81 col0
----
301498

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT 38 - NULLIF ( + MAX( ALL - 9 ), - ( + + 41 ) * COUNT( * ) ) + - 91
----
-44

skipif mysql # not compatible
query I rowsort label-5159
SELECT 38 - NULLIF ( + MAX ( ALL - 9 ), - ( + + 41 ) * COUNT ( * ) ) + - 91
----
-44

query I rowsort
SELECT 89 col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT COUNT( * ) * + + 81 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5161
SELECT COUNT ( * ) * + + 81 AS col1
----
81

query I rowsort
SELECT DISTINCT 90 + 15 AS col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT ALL 61 + - COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL 61 + - COUNT ( * ) AS col0
----
60

query I rowsort
SELECT ALL 25 * - 21 AS col1
----
-525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5165
SELECT ALL 37 DIV - MAX( DISTINCT + 64 ) * + - 66 + - 1
----
-1

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL 37 / - MAX ( DISTINCT + 64 ) * + - 66 + - 1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT ( - - COUNT( * ) ) - + ( NULLIF ( - MAX( - 92 ), + 71 - - 62 * 84 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-5166
SELECT ( - - COUNT ( * ) ) - + ( NULLIF ( - MAX ( - 92 ), + 71 - - 62 * 84 ) )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5167
SELECT DISTINCT 54 * + + COUNT( * ) AS col1, ( - 56 )
----
54
-56

skipif mysql # not compatible
query II rowsort label-5167
SELECT DISTINCT 54 * + + COUNT ( * ) AS col1, ( - 56 )
----
54
-56

query I rowsort
SELECT ALL 76 * + 21 - + 82 AS col1
----
1514

onlyif mysql # DIV for integer division: 
query II rowsort label-5169
SELECT ALL 89 * - 63, ( + - 70 ) DIV 74 col1
----
-5607
0

skipif mysql # not compatible
query II rowsort label-5169
SELECT ALL 89 * - 63, ( + - 70 ) / 74 col1
----
-5607
0

query II rowsort
SELECT DISTINCT 48 * 40 AS col2, - 45
----
1920
-45

query I rowsort
SELECT CASE - 78 WHEN - 15 THEN - 52 END + - 54 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT MAX( DISTINCT - 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-5172
SELECT MAX ( DISTINCT - 57 ) AS col2
----
-57

query I rowsort
SELECT 20 * + + 56 + - + 66
----
1054

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT + 74 * + COUNT( ALL + 98 )
----
74

skipif mysql # not compatible
query I rowsort label-5174
SELECT + 74 * + COUNT ( ALL + 98 )
----
74

query I rowsort
SELECT - ( 73 ) - - - 5 AS col0
----
-78

query I rowsort
SELECT ALL - - 58
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5177
SELECT 32 DIV + 22 + + ( - 31 ) - - - 75 + + ( - - MIN( 76 ) ) AS col2, + 32 AS col2
----
-29
32

skipif mysql # not compatible
query II rowsort label-5177
SELECT 32 / + 22 + + ( - 31 ) - - - 75 + + ( - - MIN ( 76 ) ) AS col2, + 32 AS col2
----
-29
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT MAX( + 66 ) * + 97 + - 97
----
6305

skipif mysql # not compatible
query I rowsort label-5178
SELECT MAX ( + 66 ) * + 97 + - 97
----
6305

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5179
SELECT DISTINCT - + CAST( - - 91 AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT - + CAST ( - - 91 AS INTEGER )
----
-91

query I rowsort
SELECT DISTINCT - + 15 col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT 61 * + - COUNT( * ) + - ( + - 18 )
----
-43

skipif mysql # not compatible
query I rowsort label-5181
SELECT 61 * + - COUNT ( * ) + - ( + - 18 )
----
-43

query I rowsort
SELECT ALL - + 33 AS col0
----
-33

query I rowsort
SELECT ALL + + 13 * - 27
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT DISTINCT + 44 * + + COUNT( * ) * - - 34 AS col0
----
1496

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT + 44 * + + COUNT ( * ) * - - 34 AS col0
----
1496

query I rowsort
SELECT + ( - - 26 ) AS col1
----
26

query I rowsort
SELECT + 52 col0
----
52

query I rowsort
SELECT DISTINCT - - 56 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT DISTINCT - + MIN( DISTINCT 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT - + MIN ( DISTINCT 58 )
----
-58

query I rowsort
SELECT - - 17
----
17

query I rowsort
SELECT - ( - 45 ) * - 40 + 94 AS col1
----
-1706

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5191
SELECT ALL + 50 + + + 7 + - 99 + + ( + - NULLIF ( 22, - + CASE - + 50 WHEN 0 THEN NULL WHEN - AVG ( DISTINCT + 48 ) THEN + NULLIF ( 75, + CAST( + - ( + 62 ) AS DECIMAL ) * + COUNT( * ) + - 28 ) END * ( + 96 ) ) ) * - ( - 69 ) * 1 col0
----
-1560

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL + 50 + + + 7 + - 99 + + ( + - NULLIF ( 22, - + CASE - + 50 WHEN 0 THEN NULL WHEN - AVG ( DISTINCT + 48 ) THEN + NULLIF ( 75, + CAST ( + - ( + 62 ) AS REAL ) * + COUNT ( * ) + - 28 ) END * ( + 96 ) ) ) * - ( - 69 ) * 1 col0
----
-1560

query II rowsort
SELECT DISTINCT + 28 + - + 86, 98 AS col2
----
-58
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5193
SELECT - CASE + + CAST( NULL AS SIGNED ) WHEN + 75 THEN NULL ELSE + COUNT( * ) END * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT - CASE + + CAST ( NULL AS INTEGER ) WHEN + 75 THEN NULL ELSE + COUNT ( * ) END * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT ALL COUNT( + + 25 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL COUNT ( + + 25 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT ALL 9 * + COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL 9 * + COUNT ( * ) AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5196
SELECT - NULLIF ( - 83, COUNT( * ) ) DIV 70 * - 35 + - - 15 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5196
SELECT - NULLIF ( - 83, COUNT ( * ) ) / 70 * - 35 + - - 15 AS col1
----
-20

query I rowsort
SELECT ALL - 32 + 14 - - ( - - 37 ) - - 4 * + 29 + - - 0
----
135

query I rowsort
SELECT ALL + 77 + + 43
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT - MIN( ALL + - 34 ) - - 59 + - - 4
----
97

skipif mysql # not compatible
query I rowsort label-5199
SELECT - MIN ( ALL + - 34 ) - - 59 + - - 4
----
97

query I rowsort
SELECT - 79 + + 64 AS col0
----
-15

query I rowsort
SELECT - 38 * - + 78 * + NULLIF ( 63, ( + - 29 ) )
----
186732

query I rowsort
SELECT ALL 49 * 48 AS col0
----
2352

query II rowsort
SELECT ALL - 78 + + 67 + 16 AS col2, 11
----
5
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5204
SELECT - 11 AS col1, 63 + ( + 46 ) + NULLIF ( + 95, - 77 + 22 ) + + + COUNT( * ) + 93 * - 8 * - 22 * - 13 + 18 + - 13 DIV - 89 - + 78
----
-11
-212639

skipif mysql # not compatible
query II rowsort label-5204
SELECT - 11 AS col1, 63 + ( + 46 ) + NULLIF ( + 95, - 77 + 22 ) + + + COUNT ( * ) + 93 * - 8 * - 22 * - 13 + 18 + - 13 / - 89 - + 78
----
-11
-212639

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT DISTINCT + 15 - 29 - - MIN( 92 ) * 12
----
1090

skipif mysql # not compatible
query I rowsort label-5205
SELECT DISTINCT + 15 - 29 - - MIN ( 92 ) * 12
----
1090

onlyif mysql # aggregate syntax: 
query II rowsort label-5206
SELECT ALL 2 - 49 + - 56 * 22 AS col0, COUNT( * ) * 81
----
-1279
81

skipif mysql # not compatible
query II rowsort label-5206
SELECT ALL 2 - 49 + - 56 * 22 AS col0, COUNT ( * ) * 81
----
-1279
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5207
SELECT + NULLIF ( - ( + 41 ), - 1 ) * + COUNT( * ) * - 76 * + ( - 15 ), - 4 AS col0
----
-46740
-4

skipif mysql # not compatible
query II rowsort label-5207
SELECT + NULLIF ( - ( + 41 ), - 1 ) * + COUNT ( * ) * - 76 * + ( - 15 ), - 4 AS col0
----
-46740
-4

query I rowsort
SELECT ALL + 6 * - 71 * 49
----
-20874

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5209
SELECT + ( + 51 ) + - - CAST( NULL AS SIGNED ) AS col0, 81 * + - 59
----
NULL
-4779

skipif mysql # not compatible
query II rowsort label-5209
SELECT + ( + 51 ) + - - CAST ( NULL AS INTEGER ) AS col0, 81 * + - 59
----
NULL
-4779

query I rowsort
SELECT ALL ( - 75 )
----
-75

query I rowsort
SELECT DISTINCT ( 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT - CASE - CASE - 82 WHEN 53 + + + 19 + + 4 * + + ( 95 ) THEN + COUNT( DISTINCT + - 93 ) ELSE NULL END WHEN + 15 THEN NULL WHEN COUNT( * ) THEN - - 77 - 38 ELSE 16 END * 72 - - 82
----
-1070

skipif mysql # not compatible
query I rowsort label-5212
SELECT - CASE - CASE - 82 WHEN 53 + + + 19 + + 4 * + + ( 95 ) THEN + COUNT ( DISTINCT + - 93 ) ELSE NULL END WHEN + 15 THEN NULL WHEN COUNT ( * ) THEN - - 77 - 38 ELSE 16 END * 72 - - 82
----
-1070

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT + SUM( ALL - - 6 )
----
6

skipif mysql # not compatible
query I rowsort label-5213
SELECT + SUM ( ALL - - 6 )
----
6

query I rowsort
SELECT ( - 17 ) AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5215
SELECT + NULLIF ( - 31, CAST( 71 AS SIGNED ) ), - 37 AS col0
----
-31
-37

skipif mysql # not compatible
query II rowsort label-5215
SELECT + NULLIF ( - 31, CAST ( 71 AS INTEGER ) ), - 37 AS col0
----
-31
-37

query I rowsort
SELECT ( - 8 ) AS col0
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-5217
SELECT 34 DIV + ( + - 3 ) + 58 + 57
----
104

skipif mysql # not compatible
query I rowsort label-5217
SELECT 34 / + ( + - 3 ) + 58 + 57
----
104

query I rowsort
SELECT DISTINCT + 53 col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5219
SELECT ALL CAST( NULL AS DECIMAL ) * - + 73 + + 97 + + COUNT( * ) + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL CAST ( NULL AS REAL ) * - + 73 + + 97 + + COUNT ( * ) + + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT + COUNT( * ) * + 7
----
7

skipif mysql # not compatible
query I rowsort label-5220
SELECT + COUNT ( * ) * + 7
----
7

query I rowsort
SELECT ALL + + 81 col2
----
81

query I rowsort
SELECT DISTINCT + 96 AS col1
----
96

query I rowsort
SELECT + 40 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT DISTINCT + + COALESCE ( - - 96, - - SUM( + + NULLIF ( + - 2, 84 ) ), 4, 82 - - 34 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT + + COALESCE ( - - 96, - - SUM ( + + NULLIF ( + - 2, 84 ) ), 4, 82 - - 34 ) AS col0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5225
SELECT ALL - 6 * + 26 + 36 DIV - - 29
----
-155

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL - 6 * + 26 + 36 / - - 29
----
-155

query I rowsort
SELECT + ( 59 ) AS col2
----
59

query I rowsort
SELECT ALL + - 87 AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5228
SELECT + - CASE + + 81 WHEN CAST( COUNT( + - 5 ) AS DECIMAL ) THEN + - 51 * 89 + + 83 + + 77 WHEN + 64 * + - 76 THEN NULL END AS col2, 8 - - - 70 + + 32
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-5228
SELECT + - CASE + + 81 WHEN CAST ( COUNT ( + - 5 ) AS REAL ) THEN + - 51 * 89 + + 83 + + 77 WHEN + 64 * + - 76 THEN NULL END AS col2, 8 - - - 70 + + 32
----
NULL
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5229
SELECT + - 51 DIV ( + - 29 ) + + 73 * + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-5229
SELECT + - 51 / ( + - 29 ) + + 73 * + COUNT ( * )
----
74

query I rowsort
SELECT ALL + 73 * - 87 * - 69 + + 89 + + 51 AS col1
----
438359

onlyif mysql # aggregate syntax: 
query II rowsort label-5231
SELECT COUNT( * ) col0, 24
----
1
24

skipif mysql # not compatible
query II rowsort label-5231
SELECT COUNT ( * ) col0, 24
----
1
24

query I rowsort
SELECT + + 29 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT ALL + 79 * 45 + + SUM( + 19 ) AS col0
----
3574

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL + 79 * 45 + + SUM ( + 19 ) AS col0
----
3574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5234
SELECT - ( NULLIF ( + COALESCE ( - 8, 34 * - - 29 * + 83 + - 58, 54 ), + - 90 ) ) * 60 + 70 - - CAST( ( COUNT( ALL + 6 ) ) AS SIGNED ) + - 46 AS col1
----
505

skipif mysql # not compatible
query I rowsort label-5234
SELECT - ( NULLIF ( + COALESCE ( - 8, 34 * - - 29 * + 83 + - 58, 54 ), + - 90 ) ) * 60 + 70 - - CAST ( ( COUNT ( ALL + 6 ) ) AS INTEGER ) + - 46 AS col1
----
505

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT ALL + MAX( ALL + - 58 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL + MAX ( ALL + - 58 ) AS col2
----
-58

query I rowsort
SELECT ALL + 29 * 54 * - 54 + - 35
----
-84599

onlyif mysql # aggregate syntax: 
query II rowsort label-5237
SELECT + 22 * - 13 - + 95 + 46 * SUM( DISTINCT 66 ) * 80 * 49 AS col2, 65 AS col0
----
11900739
65

skipif mysql # not compatible
query II rowsort label-5237
SELECT + 22 * - 13 - + 95 + 46 * SUM ( DISTINCT 66 ) * 80 * 49 AS col2, 65 AS col0
----
11900739
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5238
SELECT DISTINCT - 27 * 12 DIV - ( NULLIF ( + - 82, - 0 ) ) + 93 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-5238
SELECT DISTINCT - 27 * 12 / - ( NULLIF ( + - 82, - 0 ) ) + 93 AS col0
----
90

query I rowsort
SELECT ALL + 43 * 12 + 34 - - 51 * + + 63 * - + 54 * + 93 + - + 33 AS col1
----
-16135169

query I rowsort
SELECT - ( + - 93 )
----
93

query I rowsort
SELECT ALL - 46 + + - 59 AS col1
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5242
SELECT + 62 + + 66 AS col0, - COUNT( * ) * 34 * 65, + CASE COALESCE ( CAST( NULL AS SIGNED ), - 38 * 35 / CAST( + - 14 AS SIGNED ) + ( + 87 ) ) WHEN - - ( 26 ) / + + 61 * + ( + 30 ) THEN NULL WHEN + 55 THEN + 82 END + - 90 AS col0
----
128
-2210
NULL

skipif mysql # not compatible
query III rowsort label-5242
SELECT + 62 + + 66 AS col0, - COUNT ( * ) * 34 * 65, + CASE COALESCE ( CAST ( NULL AS INTEGER ), - 38 * 35 / CAST ( + - 14 AS INTEGER ) + ( + 87 ) ) WHEN - - ( 26 ) / + + 61 * + ( + 30 ) THEN NULL WHEN + 55 THEN + 82 END + - 90 AS col0
----
128
-2210
NULL

query I rowsort
SELECT - NULLIF ( 97, - - 51 * - 66 * + + 75 ) + + 56
----
-41

query I rowsort
SELECT ALL ( + + 64 ) AS col0
----
64

query I rowsort
SELECT DISTINCT ( + ( 66 ) ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT - COUNT( * ) + + 71
----
70

skipif mysql # not compatible
query I rowsort label-5246
SELECT - COUNT ( * ) + + 71
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5247
SELECT ALL NULLIF ( + 97, 91 ) - - ( - - 45 ) + + 61 DIV + COUNT( - + 39 )
----
203

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL NULLIF ( + 97, 91 ) - - ( - - 45 ) + + 61 / + COUNT ( - + 39 )
----
203

query I rowsort
SELECT DISTINCT 79 * - + 42
----
-3318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5249
SELECT ALL CAST( CASE 9 WHEN - + 63 * + + COUNT( ALL + ( - 29 ) ) THEN - CAST( ( COUNT( * ) ) AS SIGNED ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL CAST ( CASE 9 WHEN - + 63 * + + COUNT ( ALL + ( - 29 ) ) THEN - CAST ( ( COUNT ( * ) ) AS INTEGER ) END AS INTEGER )
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 60, - + CASE - + 79 WHEN 52 + 95 + - 79 * + 28 * + 62 THEN NULL WHEN + 11 THEN - 17 * - 37 + + + 54 END )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT DISTINCT CASE + - SUM( ALL 81 ) WHEN - 25 + - 96 THEN NULL WHEN - 91 * + - 6 THEN 81 ELSE + + 29 * 43 - - COUNT( * ) END
----
1248

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT CASE + - SUM ( ALL 81 ) WHEN - 25 + - 96 THEN NULL WHEN - 91 * + - 6 THEN 81 ELSE + + 29 * 43 - - COUNT ( * ) END
----
1248

query I rowsort
SELECT DISTINCT ( - - 1 )
----
1

query I rowsort
SELECT ALL ( - 80 ) col0
----
-80

query I rowsort
SELECT - 78 * - 59 AS col0
----
4602

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT - ( + 64 ) * - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-5255
SELECT - ( + 64 ) * - COUNT ( * )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5256
SELECT + 30 DIV ( 11 )
----
2

skipif mysql # not compatible
query I rowsort label-5256
SELECT + 30 / ( 11 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5257
SELECT ALL - 11 * - 15 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL - 11 * - 15 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5258
SELECT - COUNT( * ) * + 38 DIV + 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5258
SELECT - COUNT ( * ) * + 38 / + 78 AS col0
----
0

query I rowsort
SELECT DISTINCT + ( + - 9 ) AS col2
----
-9

query I rowsort
SELECT DISTINCT + 80 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT - 18 - COUNT( * ) + + + 14 * - + 17 + - - 43 - 9
----
-223

skipif mysql # not compatible
query I rowsort label-5261
SELECT - 18 - COUNT ( * ) + + + 14 * - + 17 + - - 43 - 9
----
-223

query I rowsort
SELECT DISTINCT + 70 AS col2
----
70

query I rowsort
SELECT DISTINCT + - 71
----
-71

query I rowsort
SELECT - 76 * + 25 + + 75
----
-1825

query I rowsort
SELECT + 45 * + 10 + - 90
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT ALL + 26 / + 39 * - 90 + - 39 * + + 58 + 13 + SUM( 47 ) + + 48 * - - CASE - 87 WHEN 60 THEN NULL WHEN + + 63 THEN + 44 END - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL + 26 / + 39 * - 90 + - 39 * + + 58 + 13 + SUM ( 47 ) + + 48 * - - CASE - 87 WHEN 60 THEN NULL WHEN + + 63 THEN + 44 END - 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT - MAX( - 22 ) + 5 * - COALESCE ( 38, + + 86 * NULLIF ( + - 8, - MIN( ALL + 56 ) ) + + 60 ) + - - 56
----
-112

skipif mysql # not compatible
query I rowsort label-5267
SELECT - MAX ( - 22 ) + 5 * - COALESCE ( 38, + + 86 * NULLIF ( + - 8, - MIN ( ALL + 56 ) ) + + 60 ) + - - 56
----
-112

query I rowsort
SELECT + - 77 col1
----
-77

query I rowsort
SELECT - - 63 + + 98 + - - 97 * 66 + - 88 AS col1
----
6475

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT + - MIN( + 38 ) - + - 72 - - 88 * + 63 AS col0
----
5578

skipif mysql # not compatible
query I rowsort label-5270
SELECT + - MIN ( + 38 ) - + - 72 - - 88 * + 63 AS col0
----
5578

query I rowsort
SELECT DISTINCT - + 38 AS col1
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5272
SELECT ALL 42 + - COUNT( * ) DIV - + 49
----
42

skipif mysql # not compatible
query I rowsort label-5272
SELECT ALL 42 + - COUNT ( * ) / - + 49
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT 0 + - 14 + - - 6 * + COUNT( * ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-5273
SELECT 0 + - 14 + - - 6 * + COUNT ( * ) AS col1
----
-8

query I rowsort
SELECT ALL - ( + 26 ) + 55
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT - - COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT ALL + 28 + - NULLIF ( - 57, - COUNT( * ) )
----
85

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL + 28 + - NULLIF ( - 57, - COUNT ( * ) )
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-5277
SELECT 77 + + - ( + MIN( DISTINCT - 97 ) ) col2, 80 - + 69 AS col0
----
174
11

skipif mysql # not compatible
query II rowsort label-5277
SELECT 77 + + - ( + MIN ( DISTINCT - 97 ) ) col2, 80 - + 69 AS col0
----
174
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5278
SELECT ALL 18 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL 18 / - 80
----
0

query I rowsort
SELECT DISTINCT 87 * - 98 AS col0
----
-8526

query I rowsort
SELECT DISTINCT - 0 + - 19
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-5281
SELECT DISTINCT - CASE - 2 WHEN 81 + + 83 - + + 57 * - - 15 + - 38 + - 40 / - + 9 THEN - - 89 + - COUNT( * ) ELSE + + 97 END, 51 AS col2
----
-97
51

skipif mysql # not compatible
query II rowsort label-5281
SELECT DISTINCT - CASE - 2 WHEN 81 + + 83 - + + 57 * - - 15 + - 38 + - 40 / - + 9 THEN - - 89 + - COUNT ( * ) ELSE + + 97 END, 51 AS col2
----
-97
51

query I rowsort
SELECT 0 * + 46 + + 20 * - 76
----
-1520

query I rowsort
SELECT - 88 + 40
----
-48

query I rowsort
SELECT DISTINCT 15 - + - 62
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5285
SELECT MAX( 28 ) DIV + 5 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5285
SELECT MAX ( 28 ) / + 5 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5286
SELECT 87 + - + 25 * COALESCE ( NULLIF ( - CAST( NULL AS SIGNED ), 87 DIV + 17 + 97 + 91 + - + 3 ), + - 79 ) DIV - COUNT( * ) AS col2
----
-1888

skipif mysql # not compatible
query I rowsort label-5286
SELECT 87 + - + 25 * COALESCE ( NULLIF ( - CAST ( NULL AS INTEGER ), 87 / + 17 + 97 + 91 + - + 3 ), + - 79 ) / - COUNT ( * ) AS col2
----
-1888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5287
SELECT DISTINCT 67 DIV MAX( + 46 ) * 39 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT 67 / MAX ( + 46 ) * 39 AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5288
SELECT ALL COUNT( * ) - - + 47 DIV ( 3 ) * - - 39 + - 64 AS col2
----
522

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL COUNT ( * ) - - + 47 / ( 3 ) * - - 39 + - 64 AS col2
----
522

query II rowsort
SELECT DISTINCT 5, 7 AS col2
----
5
7

query I rowsort
SELECT 57 * - + 66
----
-3762

query I rowsort
SELECT DISTINCT 25 * - - 78 AS col1
----
1950

query I rowsort
SELECT 11 * + 55
----
605

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT ALL - COUNT( * ) * - - 87
----
-87

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL - COUNT ( * ) * - - 87
----
-87

query I rowsort
SELECT 82 + + 88 col2
----
170

query II rowsort
SELECT 29 AS col0, 18
----
29
18

query I rowsort
SELECT DISTINCT 26 AS col1
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5297
SELECT DISTINCT 80, + MIN( - 9 ) DIV 95 * + ( + + 97 ) col0
----
80
0

skipif mysql # not compatible
query II rowsort label-5297
SELECT DISTINCT 80, + MIN ( - 9 ) / 95 * + ( + + 97 ) col0
----
80
0

query I rowsort
SELECT DISTINCT ( 19 ) AS col1
----
19

query I rowsort
SELECT ALL + 59 + 77 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT ALL + COUNT( * ) + + SUM( - 38 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL + COUNT ( * ) + + SUM ( - 38 ) AS col0
----
-37

query I rowsort
SELECT - 60 / - + CASE 79 WHEN + ( - - 82 ) THEN - 31 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5302
SELECT ALL - + CAST( NULL AS DECIMAL ) + AVG ( + - 40 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL - + CAST ( NULL AS REAL ) + AVG ( + - 40 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT + 69 * - COUNT( * ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-5303
SELECT + 69 * - COUNT ( * ) AS col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5304
SELECT DISTINCT - 56 DIV - COUNT( * ) + + 65 * + 53 AS col0
----
3501

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT - 56 / - COUNT ( * ) + + 65 * + 53 AS col0
----
3501

query I rowsort
SELECT ALL + + 39 + + 18 * - 11
----
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-5306
SELECT 23 DIV - - 73
----
0

skipif mysql # not compatible
query I rowsort label-5306
SELECT 23 / - - 73
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5307
SELECT + + 43 DIV - + ( COUNT( * ) ) + - 91 DIV - ( - 42 )
----
-45

skipif mysql # not compatible
query I rowsort label-5307
SELECT + + 43 / - + ( COUNT ( * ) ) + - 91 / - ( - 42 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT ALL - + 27 + - - 22 - COALESCE ( + + COALESCE ( - 13, + + COUNT( * ) - + COUNT( * ) + - 37 ), + 49 ) * + 66 * - COUNT( * ) * + 19 col1
----
-16307

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL - + 27 + - - 22 - COALESCE ( + + COALESCE ( - 13, + + COUNT ( * ) - + COUNT ( * ) + - 37 ), + 49 ) * + 66 * - COUNT ( * ) * + 19 col1
----
-16307

query I rowsort
SELECT ALL - + ( + + 50 )
----
-50

query I rowsort
SELECT ALL - - 93 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT COALESCE ( - 61, - 72 + + + 16 + + COUNT( * ), - 12 + - 13 + 91 + - + 35 )
----
-61

skipif mysql # not compatible
query I rowsort label-5311
SELECT COALESCE ( - 61, - 72 + + + 16 + + COUNT ( * ), - 12 + - 13 + 91 + - + 35 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT ALL - - COUNT( DISTINCT 59 )
----
1

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL - - COUNT ( DISTINCT 59 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT MIN( ALL 38 ) * 66
----
2508

skipif mysql # not compatible
query I rowsort label-5313
SELECT MIN ( ALL 38 ) * 66
----
2508

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ALL - 71 + + ( - SUM( ALL - 16 ) ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL - 71 + + ( - SUM ( ALL - 16 ) ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-5315
SELECT 67, - 46 * + COUNT( * ) AS col0
----
67
-46

skipif mysql # not compatible
query II rowsort label-5315
SELECT 67, - 46 * + COUNT ( * ) AS col0
----
67
-46

query II rowsort
SELECT + - 94 AS col1, + 82
----
-94
82

query I rowsort
SELECT ALL + + 47 - + NULLIF ( 90, - - 12 )
----
-43

query I rowsort
SELECT + ( + 21 )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5319
SELECT 16 * + 93 / + + 33 * + CAST( NULL AS SIGNED ) + 87 * + COUNT( - ( - - 16 ) ) * + COALESCE ( + - 79, + 32 / - + 65 ) + + ( + NULLIF ( - 18, - + 99 ) ) - - COALESCE ( + 74, COUNT( DISTINCT 77 ), 7 + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5319
SELECT 16 * + 93 / + + 33 * + CAST ( NULL AS INTEGER ) + 87 * + COUNT ( - ( - - 16 ) ) * + COALESCE ( + - 79, + 32 / - + 65 ) + + ( + NULLIF ( - 18, - + 99 ) ) - - COALESCE ( + 74, COUNT ( DISTINCT 77 ), 7 + COUNT ( * ) )
----
NULL

query I rowsort
SELECT 15 * - + 95
----
-1425

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT ALL - MIN( 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL - MIN ( 64 )
----
-64

query I rowsort
SELECT + 26 - - + 65
----
91

query II rowsort
SELECT + 86 AS col2, 83 col0
----
86
83

query II rowsort
SELECT DISTINCT - 28 AS col0, + 50 - + 74 AS col1
----
-28
-24

query I rowsort
SELECT 67 * + 87 * - 27 AS col2
----
-157383

onlyif mysql # aggregate syntax: 
query II rowsort label-5326
SELECT + 35 * 1 * + 66 * - - 66 - + 26 * + 92 * 0 col2, COUNT( DISTINCT 56 )
----
152460
1

skipif mysql # not compatible
query II rowsort label-5326
SELECT + 35 * 1 * + 66 * - - 66 - + 26 * + 92 * 0 col2, COUNT ( DISTINCT 56 )
----
152460
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT ALL 79 * COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL 79 * COUNT ( * )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT COUNT( ALL - ( 57 ) ) - - 71 * + + 50 AS col2
----
3551

skipif mysql # not compatible
query I rowsort label-5328
SELECT COUNT ( ALL - ( 57 ) ) - - 71 * + + 50 AS col2
----
3551

query I rowsort
SELECT ALL 91 * + 77 AS col1
----
7007

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT 57 * - + NULLIF ( + - 62, CASE + SUM( DISTINCT - 36 ) WHEN + + COALESCE ( ( + - 46 ), - + 43 * + 82 + - 78 ) THEN + + 85 END )
----
3534

skipif mysql # not compatible
query I rowsort label-5330
SELECT 57 * - + NULLIF ( + - 62, CASE + SUM ( DISTINCT - 36 ) WHEN + + COALESCE ( ( + - 46 ), - + 43 * + 82 + - 78 ) THEN + + 85 END )
----
3534

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5331
SELECT ALL 67 * + - CAST( - - 28 AS SIGNED )
----
-1876

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL 67 * + - CAST ( - - 28 AS INTEGER )
----
-1876

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT 66 * - MIN( + 24 )
----
-1584

skipif mysql # not compatible
query I rowsort label-5332
SELECT 66 * - MIN ( + 24 )
----
-1584

onlyif mysql # aggregate syntax: 
query II rowsort label-5333
SELECT ALL 10, CASE 85 WHEN - 12 THEN ( SUM( 9 ) ) * - ( - 75 ) - - ( COUNT( * ) ) * + - COUNT( * ) * + 88 + - ( 67 ) / - 32 + COUNT( * ) ELSE NULL END col2
----
10
NULL

skipif mysql # not compatible
query II rowsort label-5333
SELECT ALL 10, CASE 85 WHEN - 12 THEN ( SUM ( 9 ) ) * - ( - 75 ) - - ( COUNT ( * ) ) * + - COUNT ( * ) * + 88 + - ( 67 ) / - 32 + COUNT ( * ) ELSE NULL END col2
----
10
NULL

query II rowsort
SELECT DISTINCT 69, 99 AS col2
----
69
99

query I rowsort
SELECT DISTINCT 54 + - 45
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5336
SELECT ALL COALESCE ( - COUNT( * ), 96, - 4 + - + CAST( NULL AS SIGNED ) ) DIV + ( 9 ) + + + 37 DIV + COUNT( 91 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL COALESCE ( - COUNT ( * ), 96, - 4 + - + CAST ( NULL AS INTEGER ) ) / + ( 9 ) + + + 37 / + COUNT ( 91 ) AS col0
----
37

query I rowsort
SELECT DISTINCT 83 + + 47
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5338
SELECT - COUNT( * ), - 33 DIV - - 4 AS col1
----
-1
-8

skipif mysql # not compatible
query II rowsort label-5338
SELECT - COUNT ( * ), - 33 / - - 4 AS col1
----
-1
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT COUNT( * ) * + 25 * - ( 42 ) AS col2
----
-1050

skipif mysql # not compatible
query I rowsort label-5339
SELECT COUNT ( * ) * + 25 * - ( 42 ) AS col2
----
-1050

query II rowsort
SELECT DISTINCT 18 + 55 AS col1, + 92
----
73
92

query I rowsort
SELECT ALL 84 col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT ALL + ( COUNT( * ) ) + 13 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL + ( COUNT ( * ) ) + 13 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT COUNT( ALL + + 35 )
----
1

skipif mysql # not compatible
query I rowsort label-5343
SELECT COUNT ( ALL + + 35 )
----
1

query I rowsort
SELECT ALL - 27 + - 13 AS col2
----
-40

query I rowsort
SELECT + 67 + - - 70 col2
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5346
SELECT - CAST( NULL AS SIGNED ) AS col0, + CASE - + COALESCE ( + 30, 67 - - NULLIF ( + COALESCE ( 4, + COUNT( + + 78 ) * 32 + - 74, + - 10 ), - COUNT( * ) + + 27 ) + + ( 41 ) / + - 56 ) WHEN + - COUNT( * ) / - CASE - - 71 WHEN 35 * ( + 51 ) THEN - 68 * COALESCE ( 17, 97, - 43 + - COUNT( * ) * 26 ) END + 23 * CAST( NULL AS DECIMAL ) THEN COUNT( * ) ELSE 46 * 14 + + 48 / + ( - SUM( - 54 ) * - 15 ) END + NULLIF ( - ( NULLIF ( 17, ( AVG ( + 34 ) ) + COUNT( * ) ) ) - + ( + CAST( NULL AS SIGNED ) ), + 57 / - 20 ) / + NULLIF ( + MAX( ALL - 9 ) + + 46, 21 * 8 ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5346
SELECT - CAST ( NULL AS INTEGER ) AS col0, + CASE - + COALESCE ( + 30, 67 - - NULLIF ( + COALESCE ( 4, + COUNT ( + + 78 ) * 32 + - 74, + - 10 ), - COUNT ( * ) + + 27 ) + + ( 41 ) / + - 56 ) WHEN + - COUNT ( * ) / - CASE - - 71 WHEN 35 * ( + 51 ) THEN - 68 * COALESCE ( 17, 97, - 43 + - COUNT ( * ) * 26 ) END + 23 * CAST ( NULL AS REAL ) THEN COUNT ( * ) ELSE 46 * 14 + + 48 / + ( - SUM ( - 54 ) * - 15 ) END + NULLIF ( - ( NULLIF ( 17, ( AVG ( + 34 ) ) + COUNT ( * ) ) ) - + ( + CAST ( NULL AS INTEGER ) ), + 57 / - 20 ) / + NULLIF ( + MAX ( ALL - 9 ) + + 46, 21 * 8 ) AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5347
SELECT DISTINCT + + 74 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5347
SELECT DISTINCT + + 74 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5348
SELECT DISTINCT + 66 AS col0, - ( + CAST( NULL AS SIGNED ) ) * + ( CAST( NULL AS SIGNED ) ) AS col0
----
66
NULL

skipif mysql # not compatible
query II rowsort label-5348
SELECT DISTINCT + 66 AS col0, - ( + CAST ( NULL AS INTEGER ) ) * + ( CAST ( NULL AS INTEGER ) ) AS col0
----
66
NULL

query I rowsort
SELECT ALL + 61 + + + ( - 70 ) + - 21 col1
----
-30

query I rowsort
SELECT - 21 * + 51 col0
----
-1071

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT + - 53 * - COUNT( * ) + + + 69 + - 38
----
84

skipif mysql # not compatible
query I rowsort label-5351
SELECT + - 53 * - COUNT ( * ) + + + 69 + - 38
----
84

query I rowsort
SELECT ALL - 95 * + 23 - 6 AS col2
----
-2191

query I rowsort
SELECT ( 70 )
----
70

query I rowsort
SELECT + - 37 AS col2
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5355
SELECT + CAST( - - ( + 5 ) AS SIGNED ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-5355
SELECT + CAST ( - - ( + 5 ) AS INTEGER ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT - ( 50 ) - - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-5356
SELECT - ( 50 ) - - COUNT ( * )
----
-49

query II rowsort
SELECT + 0 col1, - 61 * - + 40 * - 30
----
0
-73200

query I rowsort
SELECT ALL + - 40 AS col2
----
-40

query I rowsort
SELECT 70 * 90 + - 0
----
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT ALL + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL + - COUNT ( * ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5361
SELECT ALL + 14 * 80 * 94 DIV - 45 AS col1
----
-2339

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL + 14 * 80 * 94 / - 45 AS col1
----
-2339

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5362
SELECT - ( + CAST( NULL AS SIGNED ) ) / + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-5362
SELECT - ( + CAST ( NULL AS INTEGER ) ) / + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT NULLIF ( - + 36, COUNT( * ) )
----
-36

skipif mysql # not compatible
query I rowsort label-5363
SELECT NULLIF ( - + 36, COUNT ( * ) )
----
-36

query I rowsort
SELECT ALL + ( - + 94 )
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5365
SELECT - MAX( ALL 37 ) * ( 71 ) DIV - - 63 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-5365
SELECT - MAX ( ALL 37 ) * ( 71 ) / - - 63 AS col2
----
-41

query I rowsort
SELECT DISTINCT + 34
----
34

query I rowsort
SELECT ALL + COALESCE ( - 48, 38 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT - 67 + + - ( - ( MIN( + ( - + 82 ) ) ) ) AS col0
----
-149

skipif mysql # not compatible
query I rowsort label-5368
SELECT - 67 + + - ( - ( MIN ( + ( - + 82 ) ) ) ) AS col0
----
-149

query I rowsort
SELECT DISTINCT 11 col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT ALL + 43 + - COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL + 43 + - COUNT ( * ) AS col2
----
42

query I rowsort
SELECT ALL 17 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT ALL 31 + - 80 * - ( MIN( ALL + + 85 ) ) AS col1
----
6831

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL 31 + - 80 * - ( MIN ( ALL + + 85 ) ) AS col1
----
6831

query I rowsort
SELECT DISTINCT - 71 + - 87 + 9
----
-149

query I rowsort
SELECT ALL ( + 40 ) + + 68 AS col0
----
108

query II rowsort
SELECT + 13 + - 64 * - 23, + 78 * + 79 AS col1
----
1485
6162

query I rowsort
SELECT - NULLIF ( + 51, 9 ) AS col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5377
SELECT ALL CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT - 28 AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5379
SELECT + 48 * + CAST( - + CASE + COUNT( 51 ) WHEN + + 95 THEN NULL WHEN - AVG ( + - 29 ) * - CAST( NULL AS SIGNED ) THEN - 77 / - 89 ELSE + - 49 END AS SIGNED )
----
2352

skipif mysql # not compatible
query I rowsort label-5379
SELECT + 48 * + CAST ( - + CASE + COUNT ( 51 ) WHEN + + 95 THEN NULL WHEN - AVG ( + - 29 ) * - CAST ( NULL AS INTEGER ) THEN - 77 / - 89 ELSE + - 49 END AS INTEGER )
----
2352

query I rowsort
SELECT DISTINCT 12 * - 8 * 15 col2
----
-1440

query I rowsort
SELECT - 51 + - 3 + - 28
----
-82

query I rowsort
SELECT NULLIF ( - 10, - 12 ) AS col0
----
-10

query I rowsort
SELECT + - 70 + - ( 38 ) + - 13 AS col1
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-5384
SELECT DISTINCT - - 18 * + - COUNT( * ), 17 * - SUM( + - 51 ) AS col2
----
-18
867

skipif mysql # not compatible
query II rowsort label-5384
SELECT DISTINCT - - 18 * + - COUNT ( * ), 17 * - SUM ( + - 51 ) AS col2
----
-18
867

onlyif mysql # aggregate syntax: 
query II rowsort label-5385
SELECT ALL ( - - COUNT( * ) ) AS col1, 11 col0
----
1
11

skipif mysql # not compatible
query II rowsort label-5385
SELECT ALL ( - - COUNT ( * ) ) AS col1, 11 col0
----
1
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5386
SELECT DISTINCT 70 - - COUNT( ALL + - 50 ) + - 79 + 78 * + + ( + 84 ) * 74 * + COUNT( - 89 ) * - NULLIF ( - NULLIF ( - CAST( + 42 AS SIGNED ), - + COUNT( * ) * + - 27 ), - - 47 + - 11 / - 3 + + COUNT( * ) + CAST( 63 AS DECIMAL ) / - 55 ) AS col2
----
-20363624

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT 70 - - COUNT ( ALL + - 50 ) + - 79 + 78 * + + ( + 84 ) * 74 * + COUNT ( - 89 ) * - NULLIF ( - NULLIF ( - CAST ( + 42 AS INTEGER ), - + COUNT ( * ) * + - 27 ), - - 47 + - 11 / - 3 + + COUNT ( * ) + CAST ( 63 AS REAL ) / - 55 ) AS col2
----
-20363624

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5387
SELECT ALL - CAST( 44 AS SIGNED ) AS col0, - 85 + - + CAST( CAST( COALESCE ( - 86, + 3 ) AS SIGNED ) AS SIGNED ) AS col1
----
-44
1

skipif mysql # not compatible
query II rowsort label-5387
SELECT ALL - CAST ( 44 AS INTEGER ) AS col0, - 85 + - + CAST ( CAST ( COALESCE ( - 86, + 3 ) AS INTEGER ) AS INTEGER ) AS col1
----
-44
1

query I rowsort
SELECT ALL + 88 col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT - + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5389
SELECT - + COUNT ( * ) col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5390
SELECT COUNT( DISTINCT - 89 ), COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-5390
SELECT COUNT ( DISTINCT - 89 ), COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT NULLIF ( - ( - 44 ), + 81 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT 69 * - - 74 + 35 * COUNT( * )
----
5141

skipif mysql # not compatible
query I rowsort label-5392
SELECT 69 * - - 74 + 35 * COUNT ( * )
----
5141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5393
SELECT ALL MIN( DISTINCT 51 ) DIV + 79 - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL MIN ( DISTINCT 51 ) / + 79 - + COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT ALL + - 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT + MAX( + 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-5395
SELECT + MAX ( + 68 ) AS col1
----
68

query I rowsort
SELECT ALL + 34 AS col1
----
34

query I rowsort
SELECT ALL 15 * 42
----
630

query II rowsort
SELECT ALL + 51 AS col1, - 52 AS col0
----
51
-52

query I rowsort
SELECT ( + + 89 )
----
89

query I rowsort
SELECT ( + 99 ) AS col1
----
99

query I rowsort
SELECT ( + 14 )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5402
SELECT DISTINCT + COUNT( * ) DIV + 22 * + 44 * + 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT + COUNT ( * ) / + 22 * + 44 * + 28 AS col2
----
0

query I rowsort
SELECT ALL 20 * + 94 + 94
----
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT + COUNT( * ) - - 95 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-5404
SELECT + COUNT ( * ) - - 95 AS col0
----
96

query I rowsort
SELECT - 26 + 55
----
29

query I rowsort
SELECT ALL - 84 * + 15
----
-1260

query I rowsort
SELECT ( + - 49 )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5408
SELECT DISTINCT 89 * - + MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) + + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT 89 * - + MIN ( DISTINCT - CAST ( NULL AS REAL ) ) + + + 45
----
NULL

query I rowsort
SELECT ALL 57 * - ( - 56 ) + - - 28 + 35 + 7 * + + 5
----
3290

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5410
SELECT DISTINCT + 69 AS col0, + 13 + 96 + ( - ( + 28 ) ) + - 78 DIV ( + COUNT( + 91 ) ) DIV - + NULLIF ( 87, 92 ) + + + 95 * - COALESCE ( - - COUNT( + ( - 70 ) ), CASE 85 WHEN + 22 * - 50 + 8 * - NULLIF ( COUNT( * ) * 49, COALESCE ( 76, - 15 + - NULLIF ( 84, - 19 + 98 ) ) ) THEN NULL WHEN 25 THEN NULL WHEN - 15 THEN 20 * 75 ELSE NULL END + + 71, 34 DIV + 0 ) AS col1
----
69
-14

skipif mysql # not compatible
query II rowsort label-5410
SELECT DISTINCT + 69 AS col0, + 13 + 96 + ( - ( + 28 ) ) + - 78 / ( + COUNT ( + 91 ) ) / - + NULLIF ( 87, 92 ) + + + 95 * - COALESCE ( - - COUNT ( + ( - 70 ) ), CASE 85 WHEN + 22 * - 50 + 8 * - NULLIF ( COUNT ( * ) * 49, COALESCE ( 76, - 15 + - NULLIF ( 84, - 19 + 98 ) ) ) THEN NULL WHEN 25 THEN NULL WHEN - 15 THEN 20 * 75 ELSE NULL END + + 71, 34 / + 0 ) AS col1
----
69
-14

query I rowsort
SELECT DISTINCT - 42 * - 81 * 69 * + - 50 + + 10 col1
----
-11736890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5412
SELECT + ( + 84 ) + - CAST( NULL AS SIGNED ) / + ( - - ( + AVG ( - - 89 ) ) ) * + 1 + 14 + 60 + - 8 * - 1 + + COALESCE ( + 51, - 21 * + + 73 * + CASE COUNT( * ) WHEN - + 56 * + ( 90 ) / - COUNT( * ) + - 43 THEN 46 * COUNT( * ) - 67 ELSE NULL END, 28, - 89 ) + + 47 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT + ( + 84 ) + - CAST ( NULL AS INTEGER ) / + ( - - ( + AVG ( - - 89 ) ) ) * + 1 + 14 + 60 + - 8 * - 1 + + COALESCE ( + 51, - 21 * + + 73 * + CASE COUNT ( * ) WHEN - + 56 * + ( 90 ) / - COUNT ( * ) + - 43 THEN 46 * COUNT ( * ) - 67 ELSE NULL END, 28, - 89 ) + + 47 col2
----
NULL

query I rowsort
SELECT - 72 - + 8 * 9
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5414
SELECT COALESCE ( + 77, - + CAST( NULL AS SIGNED ) + 62, - - ( + 85 ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-5414
SELECT COALESCE ( + 77, - + CAST ( NULL AS INTEGER ) + 62, - - ( + 85 ) ) AS col2
----
77

query II rowsort
SELECT DISTINCT + 65 * + - 6 + 5, 52 AS col1
----
-385
52

query I rowsort
SELECT ALL + 94 + + 65 col1
----
159

query I rowsort
SELECT 11 + + 26 + + 69
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT - - NULLIF ( COUNT( * ), + 93 + + 9 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5418
SELECT - - NULLIF ( COUNT ( * ), + 93 + + 9 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT - MIN( + 64 ) + - 77 - - 15 AS col2
----
-126

skipif mysql # not compatible
query I rowsort label-5419
SELECT - MIN ( + 64 ) + - 77 - - 15 AS col2
----
-126

query II rowsort
SELECT 75, + 96 AS col2
----
75
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT ALL NULLIF ( - 12, + 34 + + 78 * COUNT( * ) )
----
-12

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL NULLIF ( - 12, + 34 + + 78 * COUNT ( * ) )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT ALL + - 53 - - SUM( ALL - + 49 )
----
-102

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL + - 53 - - SUM ( ALL - + 49 )
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT ( + COUNT( ALL + 97 ) ) * + - MIN( ALL - 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-5423
SELECT ( + COUNT ( ALL + 97 ) ) * + - MIN ( ALL - 82 ) AS col0
----
82

query I rowsort
SELECT ALL 15 * - 67
----
-1005

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5425
SELECT 18, NULLIF ( 61, + ( + - 51 ) * - ( + 40 ) + - CAST( NULL AS SIGNED ) * + 1 ) DIV + + 57 AS col2
----
18
1

skipif mysql # not compatible
query II rowsort label-5425
SELECT 18, NULLIF ( 61, + ( + - 51 ) * - ( + 40 ) + - CAST ( NULL AS INTEGER ) * + 1 ) / + + 57 AS col2
----
18
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5426
SELECT DISTINCT + NULLIF ( - 24, - 80 ) - + + CASE COUNT( * ) WHEN - + 35 THEN 26 + - 72 WHEN - 31 THEN NULL END, + MIN( - 61 ) AS col2
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-5426
SELECT DISTINCT + NULLIF ( - 24, - 80 ) - + + CASE COUNT ( * ) WHEN - + 35 THEN 26 + - 72 WHEN - 31 THEN NULL END, + MIN ( - 61 ) AS col2
----
NULL
-61

query I rowsort
SELECT ALL - 11 AS col1
----
-11

query I rowsort
SELECT - - 98 AS col1
----
98

query I rowsort
SELECT + 3 + - 64 + 73
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5430
SELECT 0 * 32 + - COUNT( * ) DIV + + NULLIF ( + + 46, - 3 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-5430
SELECT 0 * 32 + - COUNT ( * ) / + + NULLIF ( + + 46, - 3 ) col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5431
SELECT 31 + CAST( NULL AS SIGNED ) * CAST( + 45 AS DECIMAL ) + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5431
SELECT 31 + CAST ( NULL AS INTEGER ) * CAST ( + 45 AS REAL ) + + 13
----
NULL

query II rowsort
SELECT + 96, 93 * - 53 - - 49 AS col0
----
96
-4880

onlyif mysql # DIV for integer division: 
query I rowsort label-5433
SELECT - 39 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-5433
SELECT - 39 / 83
----
0

query I rowsort
SELECT + 78 + - 7 col2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-5435
SELECT ALL - NULLIF ( ( + 27 ), - - COUNT( * ) ) AS col1, 33
----
-27
33

skipif mysql # not compatible
query II rowsort label-5435
SELECT ALL - NULLIF ( ( + 27 ), - - COUNT ( * ) ) AS col1, 33
----
-27
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT ALL MAX( - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL MAX ( - 36 )
----
-36

query I rowsort
SELECT - 85 col1
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5438
SELECT ALL + - COUNT( * ) * + 74 DIV - 44 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL + - COUNT ( * ) * + 74 / - 44 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5439
SELECT + 5 DIV + 17
----
0

skipif mysql # not compatible
query I rowsort label-5439
SELECT + 5 / + 17
----
0

query I rowsort
SELECT ALL - + 89 AS col2
----
-89

query I rowsort
SELECT DISTINCT 9 + + 94
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5442
SELECT ALL 68 + 2 * + + 54 * - 72 + + - 96 - - CAST( NULL AS SIGNED ) * + + MAX( ALL 77 ) * - 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL 68 + 2 * + + 54 * - 72 + + - 96 - - CAST ( NULL AS INTEGER ) * + + MAX ( ALL 77 ) * - 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT 67 + + COUNT( ALL 78 ) * - CASE - 93 WHEN - + 47 THEN + - 61 END - - - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT 67 + + COUNT ( ALL 78 ) * - CASE - 93 WHEN - + 47 THEN + - 61 END - - - 54 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5444
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5445
SELECT DISTINCT 73 + - COALESCE ( - 76, - - 95 * + 98 DIV + 6, + + ( - 25 ) ) AS col0
----
149

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT 73 + - COALESCE ( - 76, - - 95 * + 98 / + 6, + + ( - 25 ) ) AS col0
----
149

query I rowsort
SELECT ALL 38 + 34 * + - 20
----
-642

query I rowsort
SELECT ALL 96 * + - 26 * 75 AS col0
----
-187200

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT ALL 8 + - - COALESCE ( - 41, 33 ) + ( + + NULLIF ( - COUNT( * ), - 53 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL 8 + - - COALESCE ( - 41, 33 ) + ( + + NULLIF ( - COUNT ( * ), - 53 ) )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-5449
SELECT DISTINCT 67 + - + SUM( + - 96 ) * + 92, - 82 * - + 57 AS col1
----
8899
4674

skipif mysql # not compatible
query II rowsort label-5449
SELECT DISTINCT 67 + - + SUM ( + - 96 ) * + 92, - 82 * - + 57 AS col1
----
8899
4674

query I rowsort
SELECT DISTINCT - 50 col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT 25 * + 91 + - + COUNT( * )
----
2274

skipif mysql # not compatible
query I rowsort label-5451
SELECT 25 * + 91 + - + COUNT ( * )
----
2274

query I rowsort
SELECT DISTINCT - 62 col0
----
-62

query I rowsort
SELECT ALL - 62 + - 23 * + - ( 84 ) AS col2
----
1870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5454
SELECT ALL - COUNT( + + 35 ) DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL - COUNT ( + + 35 ) / + 85
----
0

query I rowsort
SELECT 17 + - + 17 AS col0
----
0

query I rowsort
SELECT ALL 81 AS col2
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5457
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * COALESCE ( - - 75, + 8, + 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT - CAST ( NULL AS REAL ) * COALESCE ( - - 75, + 8, + 40 )
----
NULL

query I rowsort
SELECT DISTINCT - 18
----
-18

query I rowsort
SELECT ALL + + 18 * 41 - + 93 * - 82 * 28
----
214266

query I rowsort
SELECT 36 * - + 69 * - 13 AS col0
----
32292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5461
SELECT ALL + + 1 * + COUNT( * ) DIV 31 * 93 AS col1
----
0

skip