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

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL + + 1 * + COUNT ( * ) / 31 * 93 AS col1
----
0

query I rowsort
SELECT - + 69
----
-69

query I rowsort
SELECT + 96 + - 7 AS col1
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-5464
SELECT ALL - + COUNT( * ) * + 19 col2, - 69
----
-19
-69

skipif mysql # not compatible
query II rowsort label-5464
SELECT ALL - + COUNT ( * ) * + 19 col2, - 69
----
-19
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5465
SELECT 15 * CAST( + - 18 AS SIGNED ) AS col1
----
-270

skipif mysql # not compatible
query I rowsort label-5465
SELECT 15 * CAST ( + - 18 AS INTEGER ) AS col1
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT + SUM( 38 ) - - 20
----
58

skipif mysql # not compatible
query I rowsort label-5466
SELECT + SUM ( 38 ) - - 20
----
58

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

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

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

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

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

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

query I rowsort
SELECT - 43 * + 66
----
-2838

query I rowsort
SELECT - - 64 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT - - SUM( - 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-5473
SELECT - - SUM ( - 64 )
----
-64

onlyif mysql # DIV for integer division: 
query II rowsort label-5474
SELECT 5 DIV 31 * - 94 AS col1, 61 AS col0
----
0
61

skipif mysql # not compatible
query II rowsort label-5474
SELECT 5 / 31 * - 94 AS col1, 61 AS col0
----
0
61

query I rowsort
SELECT 76 * + - 66 AS col0
----
-5016

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5477
SELECT DISTINCT 37 * 70 + - 54 + - - CAST( - ( - - COUNT( * ) ) AS SIGNED ) * 90 * + 40
----
-1064

skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT 37 * 70 + - 54 + - - CAST ( - ( - - COUNT ( * ) ) AS INTEGER ) * 90 * + 40
----
-1064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5478
SELECT ALL 6 * - - COUNT( * ) + + - 69 / - + 3 * + - 54 + CAST( NULL AS SIGNED ) * + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL 6 * - - COUNT ( * ) + + - 69 / - + 3 * + - 54 + CAST ( NULL AS INTEGER ) * + - 73
----
NULL

query I rowsort
SELECT ALL - 60 col2
----
-60

query I rowsort
SELECT 2 * 45 AS col0
----
90

query I rowsort
SELECT ALL - NULLIF ( - 24, + 19 / - - 33 + + - 35 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT ALL + SUM( ALL - + 92 ) * - 63 * + 65 * - 9 + + 59 * - - 53 col2
----
-3387533

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL + SUM ( ALL - + 92 ) * - 63 * + 65 * - 9 + + 59 * - - 53 col2
----
-3387533

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

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

query I rowsort
SELECT + 37 * + 12 + + + 62 + - 67 AS col1
----
439

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT MIN( + 24 ) col0
----
24

skipif mysql # not compatible
query I rowsort label-5485
SELECT MIN ( + 24 ) col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5486
SELECT ALL + ( - 33 ) * - + ( + - COUNT( * ) ) + + 25 - - + CAST( - 87 AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL + ( - 33 ) * - + ( + - COUNT ( * ) ) + + 25 - - + CAST ( - 87 AS INTEGER )
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-5487
SELECT + CASE + 36 WHEN COUNT( DISTINCT 39 ) THEN - - 40 END AS col0, 8 AS col1
----
NULL
8

skipif mysql # not compatible
query II rowsort label-5487
SELECT + CASE + 36 WHEN COUNT ( DISTINCT 39 ) THEN - - 40 END AS col0, 8 AS col1
----
NULL
8

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

query I rowsort
SELECT + 30 * - 32 AS col0
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT + MAX( DISTINCT + 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5490
SELECT + MAX ( DISTINCT + 72 ) AS col1
----
72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5492
SELECT + CASE - CAST( + 83 AS SIGNED ) WHEN + COUNT( * ) * - 48 + + MIN( - 90 ) + - + 15 * 91 THEN - 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5492
SELECT + CASE - CAST ( + 83 AS INTEGER ) WHEN + COUNT ( * ) * - 48 + + MIN ( - 90 ) + - + 15 * 91 THEN - 93 ELSE NULL END
----
NULL

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

query I rowsort
SELECT 39 * - - 30 * - - 45 - - 73
----
52723

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5497
SELECT + 33 * + - NULLIF ( - + 6, + COUNT( * ) DIV - 80 + + - 78 + COALESCE ( - - 38, + 88, - 50 DIV + SUM( - + 52 ) + + 33 ) ) DIV + COUNT( * ) AS col0
----
198

skipif mysql # not compatible
query I rowsort label-5497
SELECT + 33 * + - NULLIF ( - + 6, + COUNT ( * ) / - 80 + + - 78 + COALESCE ( - - 38, + 88, - 50 / + SUM ( - + 52 ) + + 33 ) ) / + COUNT ( * ) AS col0
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5498
SELECT + - 3 + - 61 * COUNT( * ) * - 83 * - + COALESCE ( - 48, - + 78, + CAST( + 7 AS SIGNED ) + 19, COALESCE ( 87, + 6 DIV - 6 ) ) + + 35 - - + 55 * - 86 + - COALESCE ( 11, + ( + 80 ), + + 26 + - 75 ) + + CASE + 94 WHEN - COUNT( * ) THEN NULL ELSE - MIN( 23 ) END + - 74 * 63 AS col1
----
233630

skipif mysql # not compatible
query I rowsort label-5498
SELECT + - 3 + - 61 * COUNT ( * ) * - 83 * - + COALESCE ( - 48, - + 78, + CAST ( + 7 AS INTEGER ) + 19, COALESCE ( 87, + 6 / - 6 ) ) + + 35 - - + 55 * - 86 + - COALESCE ( 11, + ( + 80 ), + + 26 + - 75 ) + + CASE + 94 WHEN - COUNT ( * ) THEN NULL ELSE - MIN ( 23 ) END + - 74 * 63 AS col1
----
233630

query II rowsort
SELECT ALL 35, 97 AS col1
----
35
97

query I rowsort
SELECT DISTINCT + - 11 * 91
----
-1001

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT ALL - 43 * - - COUNT( DISTINCT + 73 )
----
-43

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL - 43 * - - COUNT ( DISTINCT + 73 )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-5503
SELECT - + 53 AS col2, NULLIF ( + - COUNT( ALL - 10 ), - + ( + COUNT( * ) ) ) / COALESCE ( + CASE + - COUNT( * ) WHEN + 93 THEN - 2 WHEN + 51 + 50 THEN NULL ELSE NULL END, - 14 ) * COUNT( * )
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-5503
SELECT - + 53 AS col2, NULLIF ( + - COUNT ( ALL - 10 ), - + ( + COUNT ( * ) ) ) / COALESCE ( + CASE + - COUNT ( * ) WHEN + 93 THEN - 2 WHEN + 51 + 50 THEN NULL ELSE NULL END, - 14 ) * COUNT ( * )
----
-53
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT - - COUNT( ALL + 20 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5505
SELECT - - COUNT ( ALL + 20 ) AS col2
----
1

query I rowsort
SELECT + - 51 + + + 56 * - 79 * + 46 AS col0
----
-203555

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5508
SELECT ALL + COALESCE ( - CAST( + - 51 AS SIGNED ), ( COUNT( * ) ) * + 78 ) + - 47
----
4

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL + COALESCE ( - CAST ( + - 51 AS INTEGER ), ( COUNT ( * ) ) * + 78 ) + - 47
----
4

query I rowsort
SELECT + ( - 78 ) col0
----
-78

query I rowsort
SELECT - + 71 * + - 5 * - - 7
----
2485

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

skipif mysql # not compatible
query I rowsort label-5511
SELECT + 49 + COUNT ( * ) * 86 AS col1
----
135

query II rowsort
SELECT DISTINCT - 50 AS col2, 80 * - 40 AS col1
----
-50
-3200

onlyif mysql # DIV for integer division: 
query I rowsort label-5513
SELECT - 63 + 54 DIV 13 * - 88
----
-415

skipif mysql # not compatible
query I rowsort label-5513
SELECT - 63 + 54 / 13 * - 88
----
-415

query I rowsort
SELECT COALESCE ( - 11, 13 + - - 39 )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5515
SELECT ALL 32 + COUNT( * ) + + CAST( + SUM( ALL + + 59 ) AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL 32 + COUNT ( * ) + + CAST ( + SUM ( ALL + + 59 ) AS INTEGER )
----
92

query I rowsort
SELECT DISTINCT 91 + - 8 AS col2
----
83

query I rowsort
SELECT ALL + 25 + 93 + + NULLIF ( + 66, - ( - + 40 ) ) * + 72 * 17 AS col2
----
80902

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT - 20 - - + 36 - - 56 + - - 99 - + 86 + - 55 * - - CASE - 96 WHEN 0 * - COUNT( * ) + - 77 * + 7 THEN + 62 * 75 / 53 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5518
SELECT - 20 - - + 36 - - 56 + - - 99 - + 86 + - 55 * - - CASE - 96 WHEN 0 * - COUNT ( * ) + - 77 * + 7 THEN + 62 * 75 / 53 ELSE NULL END col1
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( 86, 18 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5520
SELECT ( + CAST( NULL AS SIGNED ) ) AS col0, - COUNT( * ) DIV + COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5520
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col0, - COUNT ( * ) / + COUNT ( * ) AS col1
----
NULL
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5521
SELECT 62 DIV + + NULLIF ( - + 28, - 47 ) + - - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5521
SELECT 62 / + + NULLIF ( - + 28, - 47 ) + - - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT ALL + 0 / + 7 - - CASE WHEN 80 > - + 30 * - - COALESCE ( 68, 15 + - + 4 + 73 * MAX( - 27 ) - - ( - 70 ) * - 43 * 74, 24 * 79 / + - COUNT( * ) - - + COUNT( + - NULLIF ( 64, - 1 ) ) + 57 - - 12 * 9 * COALESCE ( MIN( ALL 73 ) * 18 + 95, MAX( DISTINCT 25 ) ) ) + ( 51 - 68 ) * + COALESCE ( - 50, + 9, + ( 58 ) * + COUNT( * ), + 30 + - ( 74 ) ) THEN NULL WHEN NULL <= COUNT( * ) THEN 93 / 73 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL + 0 / + 7 - - CASE WHEN 80 > - + 30 * - - COALESCE ( 68, 15 + - + 4 + 73 * MAX ( - 27 ) - - ( - 70 ) * - 43 * 74, 24 * 79 / + - COUNT ( * ) - - + COUNT ( + - NULLIF ( 64, - 1 ) ) + 57 - - 12 * 9 * COALESCE ( MIN ( ALL 73 ) * 18 + 95, MAX ( DISTINCT 25 ) ) ) + ( 51 - 68 ) * + COALESCE ( - 50, + 9, + ( 58 ) * + COUNT ( * ), + 30 + - ( 74 ) ) THEN NULL WHEN NULL <= COUNT ( * ) THEN 93 / 73 ELSE NULL END
----
NULL

query I rowsort
SELECT + 3 col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5524
SELECT - 49 + + 41 DIV + + SUM( + 39 ) + COUNT( * ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-5524
SELECT - 49 + + 41 / + + SUM ( + 39 ) + COUNT ( * ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT - 60 + + MAX( - 33 ) - - 14 * + 82 * - 75 + - COUNT( * )
----
-86194

skipif mysql # not compatible
query I rowsort label-5525
SELECT - 60 + + MAX ( - 33 ) - - 14 * + 82 * - 75 + - COUNT ( * )
----
-86194

query I rowsort
SELECT 62 * 5 + + 61
----
371

query I rowsort
SELECT + 42 - - 22 AS col0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5528
SELECT - 20 DIV + - ( + - ( 85 ) ) + + 75
----
75

skipif mysql # not compatible
query I rowsort label-5528
SELECT - 20 / + - ( + - ( 85 ) ) + + 75
----
75

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

query II rowsort
SELECT ALL + 1, 28 AS col0
----
1
28

query I rowsort
SELECT - 6 * 24
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5532
SELECT ALL + 71, - 41 + + - NULLIF ( - 63, + AVG ( + 16 ) ) * + CAST( NULL AS DECIMAL ) * CASE + CAST( NULL AS DECIMAL ) WHEN - 21 / - AVG ( - 79 ) * + + 55 + MAX( DISTINCT + 85 ) THEN + 39 * + 73 * 1 + 24 + + CAST( - MIN( + 52 ) AS SIGNED ) WHEN 46 THEN + ( + 54 ) + NULLIF ( + 49, 35 ) END * 34 - - 89 / 14 AS col1
----
71
NULL

skipif mysql # not compatible
query II rowsort label-5532
SELECT ALL + 71, - 41 + + - NULLIF ( - 63, + AVG ( + 16 ) ) * + CAST ( NULL AS REAL ) * CASE + CAST ( NULL AS REAL ) WHEN - 21 / - AVG ( - 79 ) * + + 55 + MAX ( DISTINCT + 85 ) THEN + 39 * + 73 * 1 + 24 + + CAST ( - MIN ( + 52 ) AS INTEGER ) WHEN 46 THEN + ( + 54 ) + NULLIF ( + 49, 35 ) END * 34 - - 89 / 14 AS col1
----
71
NULL

query I rowsort
SELECT ALL + ( - + 54 ) col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5534
SELECT + SUM( DISTINCT 39 ) + - ( 44 ) * - + CASE - + CAST( NULL AS SIGNED ) WHEN + 71 * - 73 * - 91 THEN NULL WHEN - 60 THEN NULL ELSE - COUNT( * ) END * NULLIF ( - 17, + 45 * + - COUNT( * ) ) + + - 39 + CAST( COUNT( * ) AS SIGNED )
----
749

skipif mysql # not compatible
query I rowsort label-5534
SELECT + SUM ( DISTINCT 39 ) + - ( 44 ) * - + CASE - + CAST ( NULL AS INTEGER ) WHEN + 71 * - 73 * - 91 THEN NULL WHEN - 60 THEN NULL ELSE - COUNT ( * ) END * NULLIF ( - 17, + 45 * + - COUNT ( * ) ) + + - 39 + CAST ( COUNT ( * ) AS INTEGER )
----
749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5535
SELECT NULLIF ( + - 39, + + CAST( NULL AS SIGNED ) ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-5535
SELECT NULLIF ( + - 39, + + CAST ( NULL AS INTEGER ) ) AS col1
----
-39

query I rowsort
SELECT 93 * ( + + 26 ) + - - 42
----
2460

query II rowsort
SELECT ALL + - 48 AS col2, 78
----
-48
78

query II rowsort
SELECT - 80, 57 * + 69 AS col0
----
-80
3933

query I rowsort
SELECT + - 16 + + 71 AS col2
----
55

query II rowsort
SELECT ALL 30 AS col1, 29 col2
----
30
29

query I rowsort
SELECT DISTINCT + 94 * - - 52 AS col2
----
4888

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT ALL - CASE WHEN NOT + 88 NOT IN ( COUNT( * ), COUNT( * ) ) THEN - + 57 + - 0 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL - CASE WHEN NOT + 88 NOT IN ( COUNT ( * ), COUNT ( * ) ) THEN - + 57 + - 0 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5543
SELECT + COUNT( * ), ( + + 84 ) + ( - 47 ) AS col0
----
1
37

skipif mysql # not compatible
query II rowsort label-5543
SELECT + COUNT ( * ), ( + + 84 ) + ( - 47 ) AS col0
----
1
37

query I rowsort
SELECT + 53 col1
----
53

query I rowsort
SELECT - - ( - 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT ALL SUM( 66 ) + - NULLIF ( 59, + 28 ) + - + 96 + + 2 - + MAX( - 57 ) + ( 41 ) col2
----
11

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL SUM ( 66 ) + - NULLIF ( 59, + 28 ) + - + 96 + + 2 - + MAX ( - 57 ) + ( 41 ) col2
----
11

query II rowsort
SELECT ALL - 57 AS col1, 70 * - 1
----
-57
-70

query I rowsort
SELECT + 94 + 68 + 34
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT DISTINCT + COALESCE ( SUM( DISTINCT 36 ), + 5 ) col2
----
36

skipif mysql # not compatible
query I rowsort label-5549
SELECT DISTINCT + COALESCE ( SUM ( DISTINCT 36 ), + 5 ) col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT ALL + 29 + 38 + 59 + - 68 / + COUNT( * ) - CASE + 39 WHEN 60 THEN + 17 + + 42 + + 93 * + - 63 * + 39 * - CASE + + 33 WHEN 63 THEN + + 19 END END * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5550
SELECT ALL + 29 + 38 + 59 + - 68 / + COUNT ( * ) - CASE + 39 WHEN 60 THEN + 17 + + 42 + + 93 * + - 63 * + 39 * - CASE + + 33 WHEN 63 THEN + + 19 END END * - 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5551
SELECT DISTINCT 50 DIV + CAST( + - MAX( DISTINCT - 95 ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT 50 / + CAST ( + - MAX ( DISTINCT - 95 ) AS INTEGER ) AS col0
----
0

query I rowsort
SELECT ALL - 93 + - + 95 col0
----
-188

query I rowsort
SELECT + 79 * + 34 AS col0
----
2686

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5554
SELECT ALL SUM( DISTINCT 83 ) DIV - - 84 DIV - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL SUM ( DISTINCT 83 ) / - - 84 / - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT COUNT( ALL ( - + 42 ) ) - 59 + + 12
----
-46

skipif mysql # not compatible
query I rowsort label-5555
SELECT COUNT ( ALL ( - + 42 ) ) - 59 + + 12
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5556
SELECT DISTINCT - CASE 26 WHEN + 61 * - CAST( NULL AS SIGNED ) / CASE 9 WHEN + 91 + - 59 THEN AVG ( DISTINCT 87 ) ELSE - 89 END / + 1 THEN - 58 + - 90 + + 4 + + COUNT( * ) + + + 48 * + MIN( - 95 ) * ( - + 51 ) ELSE + - NULLIF ( + NULLIF ( - - 57, 32 ), 34 + - - 19 + - 18 * - 76 ) END col1
----
57

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT - CASE 26 WHEN + 61 * - CAST ( NULL AS INTEGER ) / CASE 9 WHEN + 91 + - 59 THEN AVG ( DISTINCT 87 ) ELSE - 89 END / + 1 THEN - 58 + - 90 + + 4 + + COUNT ( * ) + + + 48 * + MIN ( - 95 ) * ( - + 51 ) ELSE + - NULLIF ( + NULLIF ( - - 57, 32 ), 34 + - - 19 + - 18 * - 76 ) END col1
----
57

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

query I rowsort
SELECT DISTINCT + 22 * + 14
----
308

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

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

query I rowsort
SELECT ALL + ( - 37 ) * + COALESCE ( - - 19, 33 )
----
-703

query I rowsort
SELECT ALL - + 32
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-5562
SELECT ALL + 67 + - 77 AS col1, 33 * 2 + + COUNT( * ) AS col1
----
-10
67

skipif mysql # not compatible
query II rowsort label-5562
SELECT ALL + 67 + - 77 AS col1, 33 * 2 + + COUNT ( * ) AS col1
----
-10
67

query I rowsort
SELECT - 6 + - - 34 AS col0
----
28

query I rowsort
SELECT ALL + 56 * 39 col2
----
2184

onlyif mysql # DIV for integer division: 
query I rowsort label-5565
SELECT + ( - 85 ) DIV 83 * 34 * + 38
----
-1292

skipif mysql # not compatible
query I rowsort label-5565
SELECT + ( - 85 ) / 83 * 34 * + 38
----
-1292

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT COUNT( * ) + - 2 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5566
SELECT COUNT ( * ) + - 2 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL - COUNT( * ) + 51 - - 72 col1
----
122

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL - COUNT ( * ) + 51 - - 72 col1
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5568
SELECT + - CASE 36 WHEN + CASE + COUNT( * ) WHEN 97 THEN NULL WHEN - CASE + 64 WHEN + 19 - + - 49 * - - ( - 13 ) - - ( - - 52 ) THEN - 43 * 34 ELSE NULL END THEN COUNT( * ) + - ( 57 ) END * 8 THEN NULL WHEN + 73 THEN + NULLIF ( + - CASE 38 WHEN + ( + 14 ) + + - 44 THEN NULL WHEN - COALESCE ( 83, - 22 ) THEN CASE - 42 WHEN 35 * 35 THEN + 93 - 63 * NULLIF ( - CASE - 80 WHEN - 79 - + 61 THEN + 48 + 71 END * - 83, COUNT( DISTINCT CASE 10 WHEN 64 * - CAST( NULL AS SIGNED ) THEN - 67 END ) * + 82 + + 63 ) WHEN + 46 THEN + ( + 38 ) / + COUNT( DISTINCT 82 ) ELSE - 54 END * 43 + - COALESCE ( ( 26 ), - 79 ) * - 35 WHEN - 91 + + 84 THEN NULL ELSE MAX( DISTINCT + 40 ) + + 67 END, COALESCE ( + CASE + 54 WHEN + 77 THEN NULL WHEN - 10 THEN + 24 * 8 ELSE NULL END, 23, - 90 ) * - 92 ) * + 89 + - 10 * COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5568
SELECT + - CASE 36 WHEN + CASE + COUNT ( * ) WHEN 97 THEN NULL WHEN - CASE + 64 WHEN + 19 - + - 49 * - - ( - 13 ) - - ( - - 52 ) THEN - 43 * 34 ELSE NULL END THEN COUNT ( * ) + - ( 57 ) END * 8 THEN NULL WHEN + 73 THEN + NULLIF ( + - CASE 38 WHEN + ( + 14 ) + + - 44 THEN NULL WHEN - COALESCE ( 83, - 22 ) THEN CASE - 42 WHEN 35 * 35 THEN + 93 - 63 * NULLIF ( - CASE - 80 WHEN - 79 - + 61 THEN + 48 + 71 END * - 83, COUNT ( DISTINCT CASE 10 WHEN 64 * - CAST ( NULL AS INTEGER ) THEN - 67 END ) * + 82 + + 63 ) WHEN + 46 THEN + ( + 38 ) / + COUNT ( DISTINCT 82 ) ELSE - 54 END * 43 + - COALESCE ( ( 26 ), - 79 ) * - 35 WHEN - 91 + + 84 THEN NULL ELSE MAX ( DISTINCT + 40 ) + + 67 END, COALESCE ( + CASE + 54 WHEN + 77 THEN NULL WHEN - 10 THEN + 24 * 8 ELSE NULL END, 23, - 90 ) * - 92 ) * + 89 + - 10 * COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT ALL ( + 75 ) + + 25
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-5570
SELECT 82 + - 31 AS col1, - COUNT( * ) + + 66
----
51
65

skipif mysql # not compatible
query II rowsort label-5570
SELECT 82 + - 31 AS col1, - COUNT ( * ) + + 66
----
51
65

query I rowsort
SELECT - - 69
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT ALL CASE - SUM( ALL 68 ) WHEN + 63 THEN + + 22 WHEN + 11 + 71 + - 67 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL CASE - SUM ( ALL 68 ) WHEN + 63 THEN + + 22 WHEN + 11 + 71 + - 67 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5573
SELECT + COUNT( * ) * 84 AS col0, NULLIF ( - + 91, + - NULLIF ( - MAX( ALL + + ( + 2 ) ), - 26 + 81 ) )
----
84
-91

skipif mysql # not compatible
query II rowsort label-5573
SELECT + COUNT ( * ) * 84 AS col0, NULLIF ( - + 91, + - NULLIF ( - MAX ( ALL + + ( + 2 ) ), - 26 + 81 ) )
----
84
-91

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5576
SELECT SUM( 45 ) + - - 8 col1, + 16 * - + COUNT( * ) * - - MAX( - - 54 ) - + 32 * + - 39
----
53
384

skipif mysql # not compatible
query II rowsort label-5576
SELECT SUM ( 45 ) + - - 8 col1, + 16 * - + COUNT ( * ) * - - MAX ( - - 54 ) - + 32 * + - 39
----
53
384

query I rowsort
SELECT DISTINCT 92 col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-5578
SELECT COUNT( * ) + + + 26 + + 27, 26 + + 40 AS col0
----
54
66

skipif mysql # not compatible
query II rowsort label-5578
SELECT COUNT ( * ) + + + 26 + + 27, 26 + + 40 AS col0
----
54
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT NULLIF ( - - 52, - - 23 * + + 93 ) * + COUNT( + 65 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-5579
SELECT NULLIF ( - - 52, - - 23 * + + 93 ) * + COUNT ( + 65 ) AS col0
----
52

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

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

query I rowsort
SELECT 36 + + 77 + - 80 * - 66
----
5393

query I rowsort
SELECT ALL + 35 * - 99 col1
----
-3465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5583
SELECT - CAST( NULL AS SIGNED ) * - COALESCE ( - + SUM( DISTINCT + 0 ), + + NULLIF ( - 36, + + 23 ) * + 23 ) + - + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT - CAST ( NULL AS INTEGER ) * - COALESCE ( - + SUM ( DISTINCT + 0 ), + + NULLIF ( - 36, + + 23 ) * + 23 ) + - + 10
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5584
SELECT ALL - 81 AS col0, COUNT( + 1 ) + + + 70 * - COALESCE ( - CASE + - 78 WHEN 45 THEN + 67 * 25 - - 14 ELSE NULL END, + 49, + 95 * 4 - 1 DIV 92 * 3 )
----
-81
-3429

skipif mysql # not compatible
query II rowsort label-5584
SELECT ALL - 81 AS col0, COUNT ( + 1 ) + + + 70 * - COALESCE ( - CASE + - 78 WHEN 45 THEN + 67 * 25 - - 14 ELSE NULL END, + 49, + 95 * 4 - 1 / 92 * 3 )
----
-81
-3429

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT COALESCE ( + COALESCE ( - 23, - 90 + - 52 + 42, + 19 * + COALESCE ( - - COUNT( * ), - 71 ) + ( + - 47 ) - + SUM( ALL 65 ) + + - SUM( DISTINCT - 84 ) * + 42 + + 72 ), + 30, + + COUNT( * ) ) * 95
----
-2185

skipif mysql # not compatible
query I rowsort label-5585
SELECT COALESCE ( + COALESCE ( - 23, - 90 + - 52 + 42, + 19 * + COALESCE ( - - COUNT ( * ), - 71 ) + ( + - 47 ) - + SUM ( ALL 65 ) + + - SUM ( DISTINCT - 84 ) * + 42 + + 72 ), + 30, + + COUNT ( * ) ) * 95
----
-2185

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT MAX( - - 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-5587
SELECT MAX ( - - 86 ) AS col0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-5588
SELECT 62 DIV - 39 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5588
SELECT 62 / - 39 AS col0
----
-1

query I rowsort
SELECT DISTINCT - 97 col0
----
-97

query I rowsort
SELECT 9 * - ( + 26 ) + + 6
----
-228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5591
SELECT ALL - 73 + + 43 + + - CAST( 83 AS SIGNED ) * + - 66 * COUNT( * ) * + 95 * + - 84 / + - 8 * - + CASE + COUNT( * ) WHEN - 57 - 75 THEN + CASE + 39 WHEN - 76 * - 53 + 79 * - NULLIF ( - - 85, + 37 ) THEN - + 82 WHEN + - COUNT( * ) * + 27 THEN NULL WHEN - 29 / + + 52 + 52 THEN NULL ELSE MIN( - 63 ) END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL - 73 + + 43 + + - CAST ( 83 AS INTEGER ) * + - 66 * COUNT ( * ) * + 95 * + - 84 / + - 8 * - + CASE + COUNT ( * ) WHEN - 57 - 75 THEN + CASE + 39 WHEN - 76 * - 53 + 79 * - NULLIF ( - - 85, + 37 ) THEN - + 82 WHEN + - COUNT ( * ) * + 27 THEN NULL WHEN - 29 / + + 52 + 52 THEN NULL ELSE MIN ( - 63 ) END END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5592
SELECT - CAST( - + 16 AS SIGNED ) * + + 54 * + 73 + - 43 * + 55 * - 26 * - CAST( - 89 AS SIGNED ) * - 30 + + - CASE SUM( DISTINCT - + 67 ) WHEN + - ( + 39 ) * - + 8 * - 31 THEN - 36 / + 56 + 62 / + CAST( - 36 AS DECIMAL ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5592
SELECT - CAST ( - + 16 AS INTEGER ) * + + 54 * + 73 + - 43 * + 55 * - 26 * - CAST ( - 89 AS INTEGER ) * - 30 + + - CASE SUM ( DISTINCT - + 67 ) WHEN + - ( + 39 ) * - + 8 * - 31 THEN - 36 / + 56 + 62 / + CAST ( - 36 AS REAL ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5593
SELECT DISTINCT 65 * ( 0 ) DIV NULLIF ( - + MAX( ALL 12 ), 18 + ( - 12 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5593
SELECT DISTINCT 65 * ( 0 ) / NULLIF ( - + MAX ( ALL 12 ), 18 + ( - 12 ) )
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5595
SELECT DISTINCT - CASE + 81 WHEN CASE 8 WHEN CAST( NULL AS DECIMAL ) + - + 20 THEN MAX( - - 93 ) * 57 WHEN - 2 THEN NULL END - 29 + + 57 * - 78 * + 87 THEN + 95 + - NULLIF ( COUNT( * ), 77 / + 59 + - + CAST( NULL AS SIGNED ) ) * 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5595
SELECT DISTINCT - CASE + 81 WHEN CASE 8 WHEN CAST ( NULL AS REAL ) + - + 20 THEN MAX ( - - 93 ) * 57 WHEN - 2 THEN NULL END - 29 + + 57 * - 78 * + 87 THEN + 95 + - NULLIF ( COUNT ( * ), 77 / + 59 + - + CAST ( NULL AS INTEGER ) ) * 35 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5597
SELECT ALL + + SUM( 49 ) + + 70, - 48 - + 29 AS col2
----
119
-77

skipif mysql # not compatible
query II rowsort label-5597
SELECT ALL + + SUM ( 49 ) + + 70, - 48 - + 29 AS col2
----
119
-77

query I rowsort
SELECT + 83 * 42 + - - 60 - + 39
----
3507

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT + + SUM( DISTINCT - + 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-5600
SELECT + + SUM ( DISTINCT - + 87 )
----
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5601
SELECT CAST( NULL AS DECIMAL ) * - + 71 + - ( + 16 ) + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5601
SELECT CAST ( NULL AS REAL ) * - + 71 + - ( + 16 ) + - 6
----
NULL

query I rowsort
SELECT 15 + - 57 + + 93 + 3 + - 68
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5603
SELECT + NULLIF ( - CASE + - NULLIF ( - 3, 16 ) WHEN + NULLIF ( + CAST( + 52 AS SIGNED ), - - 77 + - + 96 ) THEN NULL ELSE - 35 END, + 97 / - 49 + 98 - 65 - + MAX( 58 ) )
----
35

skipif mysql # not compatible
query I rowsort label-5603
SELECT + NULLIF ( - CASE + - NULLIF ( - 3, 16 ) WHEN + NULLIF ( + CAST ( + 52 AS INTEGER ), - - 77 + - + 96 ) THEN NULL ELSE - 35 END, + 97 / - 49 + 98 - 65 - + MAX ( 58 ) )
----
35

query I rowsort
SELECT DISTINCT - + COALESCE ( 96, 49 * + 48, - 59 + 84 ) * + 45 AS col0
----
-4320

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

query I rowsort
SELECT 7 * + 62 AS col2
----
434

query I rowsort
SELECT ALL + + 20 * + 8 * - 16 + + 15 + - + COALESCE ( 5, - 94 ) AS col2
----
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT 84 + - 47 + 5 * MAX( ALL 35 ) + 65
----
277

skipif mysql # not compatible
query I rowsort label-5608
SELECT 84 + - 47 + 5 * MAX ( ALL 35 ) + 65
----
277

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

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

query I rowsort
SELECT - 73 + + 55 * + 52 AS col1
----
2787

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT ALL CASE + + SUM( - + 50 ) WHEN - 74 THEN + 2 * + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL CASE + + SUM ( - + 50 ) WHEN - 74 THEN + 2 * + 99 END
----
NULL

query I rowsort
SELECT ALL 51 col2
----
51

query I rowsort
SELECT DISTINCT 43 * + ( - - 51 )
----
2193

query I rowsort
SELECT + 66 * - 88 * - 62
----
360096

query I rowsort
SELECT - 71 - + ( + 5 ) AS col2
----
-76

query II rowsort
SELECT + 36 * 96 col1, + 36 * ( + 80 ) col0
----
3456
2880

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT DISTINCT - 81 * + + 3 + COUNT( * )
----
-242

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT - 81 * + + 3 + COUNT ( * )
----
-242

query I rowsort
SELECT DISTINCT + 53
----
53

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

query II rowsort
SELECT ALL - 74 * 3 AS col0, + 3 * - 81 + - - 50
----
-222
-193

query I rowsort
SELECT + + 4 * + - 86 * 69 * - 47 AS col1
----
1115592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5625
SELECT ALL 60 * - 81 - - + 7 + + + 1 DIV - COUNT( * ) - + 96 * + 28 - + 58 AS col0
----
-7600

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL 60 * - 81 - - + 7 + + + 1 / - COUNT ( * ) - + 96 * + 28 - + 58 AS col0
----
-7600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5626
SELECT + + 32 * NULLIF ( 25, - 12 ) + + 6 AS col0, ( - CAST( NULL AS SIGNED ) ) * + COUNT( * ) col0
----
806
NULL

skipif mysql # not compatible
query II rowsort label-5626
SELECT + + 32 * NULLIF ( 25, - 12 ) + + 6 AS col0, ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) col0
----
806
NULL

query I rowsort
SELECT + ( - - ( + - NULLIF ( - 40, - - 87 ) ) ) AS col1
----
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT DISTINCT MAX( + 12 ) * - 11 AS col0
----
-132

skipif mysql # not compatible
query I rowsort label-5629
SELECT DISTINCT MAX ( + 12 ) * - 11 AS col0
----
-132

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5631
SELECT DISTINCT - 17 * - - 20 - - ( - 74 ), 70 AS col2, + CAST( - CASE + 86 WHEN - 11 * - + 24 * + 57 + ( - 69 ) THEN - 70 + + 8 END AS SIGNED ) AS col0
----
-414
70
NULL

skipif mysql # not compatible
query III rowsort label-5631
SELECT DISTINCT - 17 * - - 20 - - ( - 74 ), 70 AS col2, + CAST ( - CASE + 86 WHEN - 11 * - + 24 * + 57 + ( - 69 ) THEN - 70 + + 8 END AS INTEGER ) AS col0
----
-414
70
NULL

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

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

query I rowsort
SELECT - 50 * + + COALESCE ( + 6, 48 ) AS col1
----
-300

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

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

query I rowsort
SELECT - 86 * 89 * - 20 + + + 52
----
153132

query I rowsort
SELECT - 14 * - - 49 AS col0
----
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT ALL 20 * COUNT( * ) col0
----
20

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL 20 * COUNT ( * ) col0
----
20

query I rowsort
SELECT ALL + 35 + + 28 * - 65
----
-1785

onlyif mysql # aggregate syntax: 
query II rowsort label-5640
SELECT - 43 + - COUNT( * ) * + - 30 AS col1, 70 AS col1
----
-13
70

skipif mysql # not compatible
query II rowsort label-5640
SELECT - 43 + - COUNT ( * ) * + - 30 AS col1, 70 AS col1
----
-13
70

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

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

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

query I rowsort
SELECT - 72 + + + 75
----
3

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

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

query I rowsort
SELECT ALL + 72 + + 88 AS col0
----
160

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT - COALESCE ( COUNT( * ), + 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-5647
SELECT - COALESCE ( COUNT ( * ), + 21 )
----
-1

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

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

query I rowsort
SELECT ALL 88 + + 15 - 16 + + + 88 * - 28 * - - 93 * 39
----
-8936841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5651
SELECT + - CASE 16 WHEN 83 - 13 THEN - - 23 * - CAST( NULL AS SIGNED ) + - - 39 ELSE + 55 + - 85 * + COUNT( * ) - + 21 + - 73 END
----
124

skipif mysql # not compatible
query I rowsort label-5651
SELECT + - CASE 16 WHEN 83 - 13 THEN - - 23 * - CAST ( NULL AS INTEGER ) + - - 39 ELSE + 55 + - 85 * + COUNT ( * ) - + 21 + - 73 END
----
124

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT - MAX( DISTINCT 18 ) * + 29 * - 30 * - ( + ( 89 ) ) + 79
----
-1393661

skipif mysql # not compatible
query I rowsort label-5653
SELECT - MAX ( DISTINCT 18 ) * + 29 * - 30 * - ( + ( 89 ) ) + 79
----
-1393661

query II rowsort
SELECT + 31 * - NULLIF ( - + 40, - 5 ) * - 66, 12 col0
----
-81840
12

query I rowsort
SELECT + + 59 + - + 99
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT DISTINCT + + MIN( ALL 4 )
----
4

skipif mysql # not compatible
query I rowsort label-5656
SELECT DISTINCT + + MIN ( ALL 4 )
----
4

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

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

query I rowsort
SELECT ALL + 12 * - 43 col2
----
-516

onlyif mysql # DIV for integer division: 
query I rowsort label-5660
SELECT + + 7 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-5660
SELECT + + 7 / - 72
----
0

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

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

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

query I rowsort
SELECT + - 37
----
-37

query II rowsort
SELECT + - 24 AS col1, + 86
----
-24
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT + COUNT( DISTINCT + + 23 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5665
SELECT + COUNT ( DISTINCT + + 23 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5666
SELECT - 91 DIV + 20 col2
----
-4

skipif mysql # not compatible
query I rowsort label-5666
SELECT - 91 / + 20 col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5667
SELECT ALL COUNT( * ) * + MIN( ALL + 50 ) AS col1, CAST( NULL AS DECIMAL ) AS col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-5667
SELECT ALL COUNT ( * ) * + MIN ( ALL + 50 ) AS col1, CAST ( NULL AS REAL ) AS col0
----
50
NULL

query I rowsort
SELECT DISTINCT - + NULLIF ( + - 8, + 32 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT DISTINCT 44 * + + SUM( DISTINCT 57 ) * + + 35 - - COALESCE ( + + 14, - MIN( ALL - 14 ) + + 70 ) AS col0
----
87794

skipif mysql # not compatible
query I rowsort label-5669
SELECT DISTINCT 44 * + + SUM ( DISTINCT 57 ) * + + 35 - - COALESCE ( + + 14, - MIN ( ALL - 14 ) + + 70 ) AS col0
----
87794

query II rowsort
SELECT DISTINCT - 88 AS col1, 49
----
-88
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5671
SELECT ALL 79 * CASE 7 WHEN 33 THEN NULL ELSE - CAST( - 83 AS SIGNED ) END AS col0
----
6557

skipif mysql # not compatible
query I rowsort label-5671
SELECT ALL 79 * CASE 7 WHEN 33 THEN NULL ELSE - CAST ( - 83 AS INTEGER ) END AS col0
----
6557

query II rowsort
SELECT - 39, + 41 AS col0
----
-39
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5673
SELECT ALL - 3 + - 59 - + 4 * + + 66 * + - NULLIF ( + COUNT( * ), - 75 * - MIN( 39 ) / - MAX( ALL + - 3 ) + + ( - CASE 92 WHEN - 89 THEN NULL WHEN - COUNT( * ) - - CAST( + + 68 AS SIGNED ) THEN NULL ELSE - 99 END ) * - + 53 ) AS col0
----
202

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL - 3 + - 59 - + 4 * + + 66 * + - NULLIF ( + COUNT ( * ), - 75 * - MIN ( 39 ) / - MAX ( ALL + - 3 ) + + ( - CASE 92 WHEN - 89 THEN NULL WHEN - COUNT ( * ) - - CAST ( + + 68 AS INTEGER ) THEN NULL ELSE - 99 END ) * - + 53 ) AS col0
----
202

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5674
SELECT ALL + 49 + - CAST( - + 77 AS SIGNED )
----
126

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL + 49 + - CAST ( - + 77 AS INTEGER )
----
126

query II rowsort
SELECT 97 AS col0, + 0 * + 56 col1
----
97
0

query I rowsort
SELECT ALL 94 col2
----
94

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 86 + + + 23 col1
----
109

query I rowsort
SELECT DISTINCT 72 + 57 * - - 7 AS col1
----
471

query I rowsort
SELECT ALL NULLIF ( - 16, + 19 * + + 70 ) + 42 + - 13 AS col1
----
13

query II rowsort
SELECT - 16 AS col1, 80
----
-16
80

query I rowsort
SELECT ALL 6 + - 7
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5685
SELECT DISTINCT ( 15 ) + - MAX( 79 ) * + - 86 * + COUNT( * ) + + 30 * MIN( ALL + + 89 ) AS col0, 75 * + + 44 + + COUNT( * ) AS col2
----
9479
3301

skipif mysql # not compatible
query II rowsort label-5685
SELECT DISTINCT ( 15 ) + - MAX ( 79 ) * + - 86 * + COUNT ( * ) + + 30 * MIN ( ALL + + 89 ) AS col0, 75 * + + 44 + + COUNT ( * ) AS col2
----
9479
3301

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT ALL + COUNT( * ) + MIN( 76 ) * - ( + - 98 ) * + - 87 * 1 - + 70
----
-648045

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL + COUNT ( * ) + MIN ( 76 ) * - ( + - 98 ) * + - 87 * 1 - + 70
----
-648045

query I rowsort
SELECT ALL + 69 * 35
----
2415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5688
SELECT 80 * - SUM( ALL + CAST( NULL AS SIGNED ) )
----
NULL

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

query II rowsort
SELECT - 83 AS col2, - 42 + - 45 AS col1
----
-83
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-5690
SELECT 44 - - + COUNT( DISTINCT ( + 57 ) ), 76 * + 14 AS col0
----
45
1064

skipif mysql # not compatible
query II rowsort label-5690
SELECT 44 - - + COUNT ( DISTINCT ( + 57 ) ), 76 * + 14 AS col0
----
45
1064

query I rowsort
SELECT - 16 * - ( - 63 ) + - + ( - 52 )
----
-956

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

query II rowsort
SELECT ALL - 80, 39 AS col1
----
-80
39

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT + - COUNT( 82 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5695
SELECT + - COUNT ( 82 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT DISTINCT - - COUNT( * ) - + + 45 + + 25
----
-19

skipif mysql # not compatible
query I rowsort label-5696
SELECT DISTINCT - - COUNT ( * ) - + + 45 + + 25
----
-19

query II rowsort
SELECT ALL - 3 AS col2, 46 * - + 71 AS col0
----
-3
-3266

query I rowsort
SELECT 92 * + - 69
----
-6348

query II rowsort
SELECT - 32 * 31 + + 40 + - + 23 col1, + 60 + 11 AS col2
----
-975
71

query I rowsort
SELECT DISTINCT + 39 * + + 97
----
3783

query I rowsort
SELECT ALL - - COALESCE ( + 15, - 86 * - + ( + 57 ), - + 3 )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5702
SELECT - + 94 DIV + 97 + - + 87 * - COUNT( * ) + 45
----
132

skipif mysql # not compatible
query I rowsort label-5702
SELECT - + 94 / + 97 + - + 87 * - COUNT ( * ) + 45
----
132

query I rowsort
SELECT + 98 * + + 83 * + 36
----
292824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5704
SELECT DISTINCT ( COUNT( * ) ) + + - COALESCE ( - + COALESCE ( - 10, 11 * 1 + + 38 ), - 33 * - MIN( - + 81 ) + + 2 + + 54 DIV + 40 + - 47 ) + - 11 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5704
SELECT DISTINCT ( COUNT ( * ) ) + + - COALESCE ( - + COALESCE ( - 10, 11 * 1 + + 38 ), - 33 * - MIN ( - + 81 ) + + 2 + + 54 / + 40 + - 47 ) + - 11 AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5705
SELECT ALL + COALESCE ( 53, - 81 / + COUNT( * ) ) + - COUNT( * ) + - 44 + - 51 + + 90 * - + 3 * 41 * CAST( NULL AS SIGNED ) * - 72 * + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL + COALESCE ( 53, - 81 / + COUNT ( * ) ) + - COUNT ( * ) + - 44 + - 51 + + 90 * - + 3 * 41 * CAST ( NULL AS INTEGER ) * - 72 * + 32 AS col2
----
NULL

query I rowsort
SELECT ALL + ( 41 ) + + - 94 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT ALL 61 + - + COUNT( * ) + 86 + - 70 + + NULLIF ( - - 76, + 4 ) - - 27 AS col0
----
179

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL 61 + - + COUNT ( * ) + 86 + - 70 + + NULLIF ( - - 76, + 4 ) - - 27 AS col0
----
179

query I rowsort
SELECT DISTINCT 20 * + - 65
----
-1300

query II rowsort
SELECT 10 * - 73, 32 + - 31 + + 21 * - 63 col1
----
-730
-1322

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT ALL NULLIF ( 19, 72 * - 28 * + 61 - + COUNT( * ) - 77 ) + + 28
----
47

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL NULLIF ( 19, 72 * - 28 * + 61 - + COUNT ( * ) - 77 ) + + 28
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5711
SELECT 74 * - 65, - 12 DIV + ( + MIN( ALL + + NULLIF ( - 83, - 25 + CAST( NULL AS SIGNED ) * COALESCE ( + 44, - + 77 ) ) ) ) * 17 * - - 20 DIV - 3 AS col0
----
-4810
0

skipif mysql # not compatible
query II rowsort label-5711
SELECT 74 * - 65, - 12 / + ( + MIN ( ALL + + NULLIF ( - 83, - 25 + CAST ( NULL AS INTEGER ) * COALESCE ( + 44, - + 77 ) ) ) ) * 17 * - - 20 / - 3 AS col0
----
-4810
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT DISTINCT ( 70 ) * 10 * - - COUNT( * ) AS col0
----
700

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT ( 70 ) * 10 * - - COUNT ( * ) AS col0
----
700

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT ( COUNT( * ) ) * + - 58 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-5714
SELECT ( COUNT ( * ) ) * + - 58 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT COALESCE ( - 59, - COUNT( * ) + 93 ) + - 90 * + 73 AS col0
----
-6629

skipif mysql # not compatible
query I rowsort label-5715
SELECT COALESCE ( - 59, - COUNT ( * ) + 93 ) + - 90 * + 73 AS col0
----
-6629

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

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

query I rowsort
SELECT 61 + + ( 12 ) * - 99
----
-1127

query I rowsort
SELECT 28 * + 26
----
728

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT - SUM( - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-5719
SELECT - SUM ( - 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT 59 + 7 - + + 35 + 75 * - + 85 * + + 32 * - - COUNT( * ) AS col2
----
-203969

skipif mysql # not compatible
query I rowsort label-5720
SELECT 59 + 7 - + + 35 + 75 * - + 85 * + + 32 * - - COUNT ( * ) AS col2
----
-203969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5721
SELECT + 13 - + CAST( + 96 AS SIGNED ) + + 8 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-5721
SELECT + 13 - + CAST ( + 96 AS INTEGER ) + + 8 AS col0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5722
SELECT DISTINCT + 67 DIV + + 2
----
33

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT + 67 / + + 2
----
33

query I rowsort
SELECT + 71 + + + 19 + 76
----
166

query I rowsort
SELECT DISTINCT + 10
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5725
SELECT DISTINCT 50 * 3 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5725
SELECT DISTINCT 50 * 3 * - CAST ( NULL AS INTEGER )
----
NULL

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

query I rowsort
SELECT ALL 68 * + 22 + - 37
----
1459

query I rowsort
SELECT + 37 * + - 62 * + 76 AS col2
----
-174344

query I rowsort
SELECT 90 * + 35 + 27 AS col2
----
3177

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5731
SELECT - COUNT( * ) + - 45 + + + 28 DIV + 61 * COUNT( * ) * 7 + 66
----
20

skipif mysql # not compatible
query I rowsort label-5731
SELECT - COUNT ( * ) + - 45 + + + 28 / + 61 * COUNT ( * ) * 7 + 66
----
20

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5733
SELECT ALL - - 48 DIV 12 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL - - 48 / 12 AS col0
----
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT ALL + NULLIF ( + COUNT( * ), CASE + - 65 WHEN + 21 * + MAX( ALL 30 ) THEN - - 9 / + 89 / + - NULLIF ( + 31, 0 ) WHEN + - 60 THEN NULL WHEN - 86 THEN NULL END ) * + - ( 29 ) + NULLIF ( 53, - - ( - COUNT( * ) ) ) + 46 + + - COUNT( DISTINCT 42 )
----
69

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL + NULLIF ( + COUNT ( * ), CASE + - 65 WHEN + 21 * + MAX ( ALL 30 ) THEN - - 9 / + 89 / + - NULLIF ( + 31, 0 ) WHEN + - 60 THEN NULL WHEN - 86 THEN NULL END ) * + - ( 29 ) + NULLIF ( 53, - - ( - COUNT ( * ) ) ) + 46 + + - COUNT ( DISTINCT 42 )
----
69

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

query I rowsort
SELECT COALESCE ( ( 17 ), 31 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT DISTINCT + 98 * - 31 + + - NULLIF ( - COUNT( * ), + 90 + - 25 ) AS col0
----
-3037

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT + 98 * - 31 + + - NULLIF ( - COUNT ( * ), + 90 + - 25 ) AS col0
----
-3037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5740
SELECT + COUNT( * ) AS col2, COUNT( * ) * CASE CASE MIN( ALL 69 ) WHEN - ( - 22 ) THEN NULL WHEN 62 * - 46 + + - AVG ( + 49 ) * - 64 * - + 95 THEN - 96 END WHEN 36 * + + MAX( + NULLIF ( - - 19, 39 * + CAST( NULL AS SIGNED ) ) ) THEN NULL WHEN - 12 THEN - + CAST( NULL AS SIGNED ) WHEN + 20 THEN NULL END + + + 75 * + 94 * 84
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5740
SELECT + COUNT ( * ) AS col2, COUNT ( * ) * CASE CASE MIN ( ALL 69 ) WHEN - ( - 22 ) THEN NULL WHEN 62 * - 46 + + - AVG ( + 49 ) * - 64 * - + 95 THEN - 96 END WHEN 36 * + + MAX ( + NULLIF ( - - 19, 39 * + CAST ( NULL AS INTEGER ) ) ) THEN NULL WHEN - 12 THEN - + CAST ( NULL AS INTEGER ) WHEN + 20 THEN NULL END + + + 75 * + 94 * 84
----
1
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-5742
SELECT + SUM ( - 87 )
----
-87

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5744
SELECT ALL + CAST( + + 89 AS SIGNED ) * + 58 + - ( + CASE - 21 WHEN + 24 * + CAST( NULL AS SIGNED ) THEN NULL WHEN - 78 THEN - 67 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5744
SELECT ALL + CAST ( + + 89 AS INTEGER ) * + 58 + - ( + CASE - 21 WHEN + 24 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 78 THEN - 67 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT DISTINCT + MIN( + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT + MIN ( + 85 )
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5746
SELECT ALL 35 * - 45 * + 6 - + COUNT( * ) DIV COUNT( * ) * - 58 AS col1
----
-9392

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL 35 * - 45 * + 6 - + COUNT ( * ) / COUNT ( * ) * - 58 AS col1
----
-9392

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

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

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

query I rowsort
SELECT + 54 * - 25 AS col0
----
-1350

onlyif mysql # DIV for integer division: 
query I rowsort label-5750
SELECT ALL 77 DIV + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL 77 / + 95 AS col0
----
0

query II rowsort
SELECT - 69 AS col1, + 72 AS col2
----
-69
72

query I rowsort
SELECT + ( - ( + ( + - COALESCE ( + 64, 25 * + 82, - - 31 ) ) ) ) + + 3 + 24 col1
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT - 18 / + CASE + - 8 WHEN + COUNT( * ) THEN + 34 WHEN + 34 THEN + 98 * - 23 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5754
SELECT - 18 / + CASE + - 8 WHEN + COUNT ( * ) THEN + 34 WHEN + 34 THEN + 98 * - 23 ELSE NULL END
----
NULL

query I rowsort
SELECT + 41 + + 26 AS col1
----
67

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

query I rowsort
SELECT ALL - 96 * 37 * + + 27 * - 38 col1
----
3644352

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

query I rowsort
SELECT + 69 * 37 col2
----
2553

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5760
SELECT 20 AS col1, + SUM( DISTINCT - 13 ) DIV NULLIF ( + 57, + COUNT( * ) - 75 + - + ( + - NULLIF ( - 32, + - ( - 41 ) ) ) )
----
20
0

skipif mysql # not compatible
query II rowsort label-5760
SELECT 20 AS col1, + SUM ( DISTINCT - 13 ) / NULLIF ( + 57, + COUNT ( * ) - 75 + - + ( + - NULLIF ( - 32, + - ( - 41 ) ) ) )
----
20
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5761
SELECT - + MAX( ( - + 45 ) ), 56 - 55 AS col1
----
45
1

skipif mysql # not compatible
query II rowsort label-5761
SELECT - + MAX ( ( - + 45 ) ), 56 - 55 AS col1
----
45
1

query II rowsort
SELECT ALL + 86 AS col1, 50
----
86
50

query I rowsort
SELECT + - 50 * + 78
----
-3900

onlyif mysql # DIV for integer division: 
query II rowsort label-5764
SELECT + + 44 * 10 DIV + + 73 AS col2, + 98 AS col1
----
6
98

skipif mysql # not compatible
query II rowsort label-5764
SELECT + + 44 * 10 / + + 73 AS col2, + 98 AS col1
----
6
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT DISTINCT ( - CASE + COUNT( * ) WHEN 27 THEN NULL WHEN + + 68 THEN - - 89 END ) / - 98 + + ( + MAX( ALL - - 41 ) ) + - 2 * ( + 37 ) * 66 + - - COUNT( ALL - 62 ) - - + ( 2 ) - + 59 * 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT ( - CASE + COUNT ( * ) WHEN 27 THEN NULL WHEN + + 68 THEN - - 89 END ) / - 98 + + ( + MAX ( ALL - - 41 ) ) + - 2 * ( + 37 ) * 66 + - - COUNT ( ALL - 62 ) - - + ( 2 ) - + 59 * 10 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5766
SELECT ALL + COUNT( * ) DIV + 31 * - 68 - + - 54 * + + 71 + 79 AS col1
----
3913

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL + COUNT ( * ) / + 31 * - 68 - + - 54 * + + 71 + 79 AS col1
----
3913

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT ALL - 21 / - - 38 * CASE + + 75 WHEN - 58 THEN - 78 + + 39 END + NULLIF ( + NULLIF ( COUNT( * ), + 6 ), - AVG ( + - ( 9 ) ) ) + - ( ( + 70 ) ) + - 67 / 5 / - 93 * - + 25 + + 97 * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL - 21 / - - 38 * CASE + + 75 WHEN - 58 THEN - 78 + + 39 END + NULLIF ( + NULLIF ( COUNT ( * ), + 6 ), - AVG ( + - ( 9 ) ) ) + - ( ( + 70 ) ) + - 67 / 5 / - 93 * - + 25 + + 97 * - 42
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5768
SELECT DISTINCT - + 27 DIV - 62 + + - 56 + + 47
----
-9

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT - + 27 / - 62 + + - 56 + + 47
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5769
SELECT ALL + MIN( DISTINCT - - ( - - 59 ) ) DIV 99 + + + 51 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL + MIN ( DISTINCT - - ( - - 59 ) ) / 99 + + + 51 AS col2
----
51

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5771
SELECT ALL + - 62 DIV - COALESCE ( CAST( 40 AS SIGNED ), 46 ) + - 44 - - 39 * 68 - - + 98 * - - ( + ( ( - 79 ) ) ) + 22 + + 15 * + SUM( + - ( 63 ) )
----
-6056

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL + - 62 / - COALESCE ( CAST ( 40 AS INTEGER ), 46 ) + - 44 - - 39 * 68 - - + 98 * - - ( + ( ( - 79 ) ) ) + 22 + + 15 * + SUM ( + - ( 63 ) )
----
-6056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5772
SELECT DISTINCT - + ( - NULLIF ( 45, 92 ) ) / 76 * + 92 + 2 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT - + ( - NULLIF ( 45, 92 ) ) / 76 * + 92 + 2 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT - COUNT( * ) * COUNT( * ) + 28 * - 40
----
-1121

skipif mysql # not compatible
query I rowsort label-5773
SELECT - COUNT ( * ) * COUNT ( * ) + 28 * - 40
----
-1121

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

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

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

skipif mysql # not compatible
query I rowsort label-5776
SELECT - 20 / + + 52
----
0

query I rowsort
SELECT + 32 * - 8 * - 35 AS col2
----
8960

query I rowsort
SELECT - 38 * - 54
----
2052

onlyif mysql # aggregate syntax: 
query II rowsort label-5779
SELECT + COUNT( * ) + + + 82 * + ( - 92 ) AS col1, 8
----
-7543
8

skipif mysql # not compatible
query II rowsort label-5779
SELECT + COUNT ( * ) + + + 82 * + ( - 92 ) AS col1, 8
----
-7543
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5780
SELECT DISTINCT - 27 DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-5780
SELECT DISTINCT - 27 / - 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT ALL + 44 * 5 * + 92 - COUNT( - 10 )
----
20239

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL + 44 * 5 * + 92 - COUNT ( - 10 )
----
20239

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5782
SELECT DISTINCT + CASE + 77 WHEN + + 73 / - + 23 * + 74 THEN + - COALESCE ( - 49, - NULLIF ( - 84, + 35 ) ) * 84 / + 55 ELSE - CAST( - 56 AS SIGNED ) END AS col0, + 6 * - 99
----
56
-594

skipif mysql # not compatible
query II rowsort label-5782
SELECT DISTINCT + CASE + 77 WHEN + + 73 / - + 23 * + 74 THEN + - COALESCE ( - 49, - NULLIF ( - 84, + 35 ) ) * 84 / + 55 ELSE - CAST ( - 56 AS INTEGER ) END AS col0, + 6 * - 99
----
56
-594

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT DISTINCT 93 * - CASE + 22 WHEN 39 THEN - 1 + - 40 WHEN 18 THEN NULL END - + COUNT( * ) * 56 * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT 93 * - CASE + 22 WHEN 39 THEN - 1 + - 40 WHEN 18 THEN NULL END - + COUNT ( * ) * 56 * 19
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5785
SELECT ALL - 55 * - + 58 * - NULLIF ( 7, + - 0 ) col0, COUNT( * )
----
-22330
1

skipif mysql # not compatible
query II rowsort label-5785
SELECT ALL - 55 * - + 58 * - NULLIF ( 7, + - 0 ) col0, COUNT ( * )
----
-22330
1

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

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

query I rowsort
SELECT NULLIF ( + 60, 83 )
----
60

query I rowsort
SELECT DISTINCT - 37 * 80
----
-2960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5789
SELECT ALL CAST( - - 91 AS SIGNED ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL CAST ( - - 91 AS INTEGER ) AS col2
----
91

query I rowsort
SELECT - NULLIF ( + - 77, 95 ) + + - 92 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT NULLIF ( + NULLIF ( + - 79, ( - 88 ) ), 17 * - SUM( + 35 ) ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-5791
SELECT NULLIF ( + NULLIF ( + - 79, ( - 88 ) ), 17 * - SUM ( + 35 ) ) AS col2
----
-79

query I rowsort
SELECT ALL - 56 * + 89 AS col2
----
-4984

query II rowsort
SELECT - 12 * - + 49 AS col0, ( - 40 )
----
588
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-5794
SELECT ALL ( + 74 ) DIV + 27
----
2

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL ( + 74 ) / + 27
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5795
SELECT - 53 DIV + NULLIF ( 13, - + 13 + 36 + 87 ) + - COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5795
SELECT - 53 / + NULLIF ( 13, - + 13 + 36 + 87 ) + - COUNT ( * ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT ALL - CASE - + 69 WHEN + 97 THEN 41 + - COUNT( * ) * ( - 25 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL - CASE - + 69 WHEN + 97 THEN 41 + - COUNT ( * ) * ( - 25 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5797
SELECT DISTINCT + 76 + - 3 AS col2, + NULLIF ( - SUM( ALL - 56 ), - + 64 )
----
73
56

skipif mysql # not compatible
query II rowsort label-5797
SELECT DISTINCT + 76 + - 3 AS col2, + NULLIF ( - SUM ( ALL - 56 ), - + 64 )
----
73
56

query I rowsort
SELECT DISTINCT - 8
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5799
SELECT + 75 + + CASE CAST( + 6 AS SIGNED ) WHEN - 3 + - 74 * + AVG ( DISTINCT - ( - 66 ) ) / + + 65 * 95 THEN + - 85 ELSE NULL END * - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-5799
SELECT + 75 + + CASE CAST ( + 6 AS INTEGER ) WHEN - 3 + - 74 * + AVG ( DISTINCT - ( - 66 ) ) / + + 65 * 95 THEN + - 85 ELSE NULL END * - 92
----
NULL

query I rowsort
SELECT ALL + + 69 + 45
----
114

query I rowsort
SELECT 44 + - 56
----
-12

query I rowsort
SELECT - - 88 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT ALL COUNT( DISTINCT - 98 ) + + + ( - COUNT( * ) ) * - 66 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL COUNT ( DISTINCT - 98 ) + + + ( - COUNT ( * ) ) * - 66 AS col0
----
67

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

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

query I rowsort
SELECT ALL + 24 * NULLIF ( - - 47, - ( AVG ( + 35 ) ) * - 0 ) * + + COALESCE ( + 54, 88, + 27 ) * 30 AS col2
----
1827360

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5806
SELECT 37 + - + 80, 23 DIV - 73 + - - COUNT( * ) AS col1
----
-43
1

skipif mysql # not compatible
query II rowsort label-5806
SELECT 37 + - + 80, 23 / - 73 + - - COUNT ( * ) AS col1
----
-43
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT ALL + 2 + - - COALESCE ( + 6, 80 * - COUNT( * ) + - 19 ) - - 78
----
86

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL + 2 + - - COALESCE ( + 6, 80 * - COUNT ( * ) + - 19 ) - - 78
----
86

query I rowsort
SELECT - 65 col2
----
-65

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5810
SELECT ALL - ( + CAST( + ( 34 ) AS SIGNED ) ), - MIN( + - 72 ) AS col2
----
-34
72

skipif mysql # not compatible
query II rowsort label-5810
SELECT ALL - ( + CAST ( + ( 34 ) AS INTEGER ) ), - MIN ( + - 72 ) AS col2
----
-34
72

query I rowsort
SELECT - - 47
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5812
SELECT 72 DIV + 46 + - 41 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-5812
SELECT 72 / + 46 + - 41 AS col2
----
-40

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT ALL 2 * - COUNT( * ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL 2 * - COUNT ( * ) col1
----
-2

query I rowsort
SELECT 39 * 69 * + 46
----
123786

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT SUM( DISTINCT + 39 ) * + 44 AS col1
----
1716

skipif mysql # not compatible
query I rowsort label-5818
SELECT SUM ( DISTINCT + 39 ) * + 44 AS col1
----
1716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5819
SELECT DISTINCT 1 * + MAX( ALL - CAST( + 87 AS SIGNED ) ) DIV + 19
----
-4

skipif mysql # not compatible
query I rowsort label-5819
SELECT DISTINCT 1 * + MAX ( ALL - CAST ( + 87 AS INTEGER ) ) / + 19
----
-4

query II rowsort
SELECT ALL - 9 col1, 33
----
-9
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5821
SELECT CASE + 32 WHEN + + 79 THEN NULL WHEN - SUM( DISTINCT - ( 60 ) ) THEN NULL WHEN - - CASE + 9 WHEN - CASE + 24 WHEN - AVG ( - - 44 ) THEN NULL WHEN - 27 THEN NULL ELSE + 48 END THEN NULL WHEN + + 59 / + - COUNT( * ) THEN + CAST( + 4 AS SIGNED ) END - + 14 THEN 37 ELSE + CASE 79 WHEN ( CAST( NULL AS SIGNED ) ) * - - ( - - 10 ) * 98 THEN NULL WHEN + COALESCE ( - ( + ( + - COALESCE ( - 7, + - 94 + + SUM( - 4 ) ) ) ), COUNT( * ) ) + 83 * - MIN( ALL 41 * - 91 ) THEN - 29 * CASE - 67 * + 77 WHEN 85 + 15 THEN COUNT( * ) END + COALESCE ( + 4, 26 ) END + 86 END / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5821
SELECT CASE + 32 WHEN + + 79 THEN NULL WHEN - SUM ( DISTINCT - ( 60 ) ) THEN NULL WHEN - - CASE + 9 WHEN - CASE + 24 WHEN - AVG ( - - 44 ) THEN NULL WHEN - 27 THEN NULL ELSE + 48 END THEN NULL WHEN + + 59 / + - COUNT ( * ) THEN + CAST ( + 4 AS INTEGER ) END - + 14 THEN 37 ELSE + CASE 79 WHEN ( CAST ( NULL AS INTEGER ) ) * - - ( - - 10 ) * 98 THEN NULL WHEN + COALESCE ( - ( + ( + - COALESCE ( - 7, + - 94 + + SUM ( - 4 ) ) ) ), COUNT ( * ) ) + 83 * - MIN ( ALL 41 * - 91 ) THEN - 29 * CASE - 67 * + 77 WHEN 85 + 15 THEN COUNT ( * ) END + COALESCE ( + 4, 26 ) END + 86 END / + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 90 * 29 AS col2
----
2610

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5824
SELECT 70 + + 20 + + 94 * + 72 + COUNT( * ) * 22 - + 94 DIV 49
----
6879

skipif mysql # not compatible
query I rowsort label-5824
SELECT 70 + + 20 + + 94 * + 72 + COUNT ( * ) * 22 - + 94 / 49
----
6879

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5826
SELECT DISTINCT + 79 DIV + - 84
----
0

skipif mysql # not compatible
query I rowsort label-5826
SELECT DISTINCT + 79 / + - 84
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5828
SELECT 89 * + MAX( - ( ( - 55 ) ) ) AS col0, COUNT( DISTINCT + + 45 ) * - 58 AS col1
----
4895
-58

skipif mysql # not compatible
query II rowsort label-5828
SELECT 89 * + MAX ( - ( ( - 55 ) ) ) AS col0, COUNT ( DISTINCT + + 45 ) * - 58 AS col1
----
4895
-58

query I rowsort
SELECT ALL 94 + - - 54 * + + 10 AS col2
----
634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5830
SELECT ALL + + COALESCE ( 43, 97 - + 25, + + ( 71 ) DIV - MAX( + 29 ), + MIN( 47 ) ) + + + 41
----
84

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL + + COALESCE ( 43, 97 - + 25, + + ( 71 ) / - MAX ( + 29 ), + MIN ( 47 ) ) + + + 41
----
84

query II rowsort
SELECT - 25 * 28 + - 48 AS col2, - 33 AS col2
----
-748
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-5832
SELECT - 90 * - - 65 * - COUNT( * ) AS col2, 30 + 79
----
5850
109

skipif mysql # not compatible
query II rowsort label-5832
SELECT - 90 * - - 65 * - COUNT ( * ) AS col2, 30 + 79
----
5850
109

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5833
SELECT - 60 + COALESCE ( - - 11, + NULLIF ( + + 51, - + 19 ) DIV - 32 - - CAST( - + ( - 70 ) AS SIGNED ), + - 5 DIV + 95 + - + 27 DIV - + 88 )
----
-49

skipif mysql # not compatible
query I rowsort label-5833
SELECT - 60 + COALESCE ( - - 11, + NULLIF ( + + 51, - + 19 ) / - 32 - - CAST ( - + ( - 70 ) AS INTEGER ), + - 5 / + 95 + - + 27 / - + 88 )
----
-49

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5835
SELECT DISTINCT - + 4 + + 71 + + - COUNT( * ) DIV + 91 col1
----
67

skipif mysql # not compatible
query I rowsort label-5835
SELECT DISTINCT - + 4 + + 71 + + - COUNT ( * ) / + 91 col1
----
67

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

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL - 22 + COUNT ( * ) AS col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5837
SELECT + 26 * + 33 + + 39, - 6 * + CAST( NULL AS SIGNED ) * - 44 col0
----
897
NULL

skipif mysql # not compatible
query II rowsort label-5837
SELECT + 26 * + 33 + + 39, - 6 * + CAST ( NULL AS INTEGER ) * - 44 col0
----
897
NULL

query I rowsort
SELECT ALL - 11 + + 6
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5839
SELECT DISTINCT - - 12 * MIN( + 64 ) + COALESCE ( MAX( - - CAST( NULL AS SIGNED ) ), 96 + - 11 - + COALESCE ( 65, - 25 + - 68 * - 59 ) * - NULLIF ( - COALESCE ( - 23, - - 92 ), - + 44 ) + - 21 + + NULLIF ( - + 80, - - ( - - 13 ) ), + + COUNT( * ) )
----
2247

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT - - 12 * MIN ( + 64 ) + COALESCE ( MAX ( - - CAST ( NULL AS INTEGER ) ), 96 + - 11 - + COALESCE ( 65, - 25 + - 68 * - 59 ) * - NULLIF ( - COALESCE ( - 23, - - 92 ), - + 44 ) + - 21 + + NULLIF ( - + 80, - - ( - - 13 ) ), + + COUNT ( * ) )
----
2247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5840
SELECT ALL - CAST( NULL AS SIGNED ) + - 64 + 38 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL - CAST ( NULL AS INTEGER ) + - 64 + 38 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

query I rowsort
SELECT ALL + 62 + - 19 AS col1
----
43

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

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

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

query I rowsort
SELECT ALL - 81 + - 82 AS col0
----
-163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5846
SELECT ALL COALESCE ( + - 87, + - 59 + - 27 + - 32 ) AS col1, NULLIF ( + COUNT( * ), 42 + - CAST( NULL AS SIGNED ) + + + 29 ) + + 56 AS col2
----
-87
57

skipif mysql # not compatible
query II rowsort label-5846
SELECT ALL COALESCE ( + - 87, + - 59 + - 27 + - 32 ) AS col1, NULLIF ( + COUNT ( * ), 42 + - CAST ( NULL AS INTEGER ) + + + 29 ) + + 56 AS col2
----
-87
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT MAX( DISTINCT - + 10 ) * + ( - 25 )
----
250

skipif mysql # not compatible
query I rowsort label-5847
SELECT MAX ( DISTINCT - + 10 ) * + ( - 25 )
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT DISTINCT + MAX( - 65 ) * 4 AS col2
----
-260

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT + MAX ( - 65 ) * 4 AS col2
----
-260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5849
SELECT ALL - COALESCE ( + - 7, - 61 * - 61, - COUNT( * ) * + - COUNT( * ) + 79 DIV - COUNT( * ) ) - + + 57 col1
----
-50

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL - COALESCE ( + - 7, - 61 * - 61, - COUNT ( * ) * + - COUNT ( * ) + 79 / - COUNT ( * ) ) - + + 57 col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT - 42 - + + ( - COUNT( * ) ) + - 53 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-5850
SELECT - 42 - + + ( - COUNT ( * ) ) + - 53 AS col0
----
-94

query II rowsort
SELECT - 56 AS col1, 94
----
-56
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5852
SELECT - COALESCE ( - + 26, + - COUNT( * ) + + CASE 55 WHEN + 96 * + SUM( ( + - 26 ) ) THEN + - CAST( NULL AS SIGNED ) * - 52 WHEN 16 THEN NULL ELSE - 18 END ) * - 5 + + 8 - - COUNT( * ) * 1 AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-5852
SELECT - COALESCE ( - + 26, + - COUNT ( * ) + + CASE 55 WHEN + 96 * + SUM ( ( + - 26 ) ) THEN + - CAST ( NULL AS INTEGER ) * - 52 WHEN 16 THEN NULL ELSE - 18 END ) * - 5 + + 8 - - COUNT ( * ) * 1 AS col2
----
-121

query I rowsort
SELECT ALL 86 * - 69 * 87 AS col0
----
-516258

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT COUNT( * ) - - NULLIF ( - - 24, - 92 ) + + - COALESCE ( + 23, - COUNT( ( 32 ) ) )
----
2

skipif mysql # not compatible
query I rowsort label-5854
SELECT COUNT ( * ) - - NULLIF ( - - 24, - 92 ) + + - COALESCE ( + 23, - COUNT ( ( 32 ) ) )
----
2

query I rowsort
SELECT ALL + 54 - - 85 col1
----
139

query I rowsort
SELECT DISTINCT - 82 * - 83
----
6806

query I rowsort
SELECT ALL + ( + - 46 ) * 53
----
-2438

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT DISTINCT - COUNT( * ) * - 25 - - - 6 + - - 4 - ( - + 5 ) + 49 * - 36 * COUNT( * ) AS col2
----
-1736

skipif mysql # not compatible
query I rowsort label-5858
SELECT DISTINCT - COUNT ( * ) * - 25 - - - 6 + - - 4 - ( - + 5 ) + 49 * - 36 * COUNT ( * ) AS col2
----
-1736

query II rowsort
SELECT ALL - 10 AS col2, 64
----
-10
64

query I rowsort
SELECT 45 * - + 96 AS col1
----
-4320

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

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

query II rowsort
SELECT ALL - 25 AS col2, - 82 col2
----
-25
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT MAX( DISTINCT + 47 ) * + + MAX( DISTINCT 68 ) AS col0
----
3196

skipif mysql # not compatible
query I rowsort label-5863
SELECT MAX ( DISTINCT + 47 ) * + + MAX ( DISTINCT 68 ) AS col0
----
3196

query II rowsort
SELECT 74 + 7, + 98 + 16 AS col1
----
81
114

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5865
SELECT DISTINCT - ( NULLIF ( 58, - 11 / - COUNT( * ) - + + AVG ( CAST( NULL AS DECIMAL ) ) + + - 58 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-5865
SELECT DISTINCT - ( NULLIF ( 58, - 11 / - COUNT ( * ) - + + AVG ( CAST ( NULL AS REAL ) ) + + - 58 ) )
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5866
SELECT ALL 97 * - + 3 / + 86 * + 16 * 35 + + CAST( NULL AS SIGNED ) + - CASE 30 WHEN CASE + + NULLIF ( 41, + 4 ) WHEN 59 * 97 + + 2 THEN - COALESCE ( - COALESCE ( - AVG ( - - CASE + 87 WHEN 36 + - - 22 THEN + 3 * 35 + + + 67 - + - 44 ELSE NULL END ), - NULLIF ( + + ( + AVG ( + 3 ) ), + + 55 + 26 ) * + + 39 + - 37 + + - 23 * + 51 + 41, CAST( NULL AS SIGNED ) ), - COUNT( * ), - COUNT( * ) ) / - CASE + 37 * ( 29 * 54 ) WHEN 73 THEN 28 ELSE + NULLIF ( + 24, + CAST( - 21 AS SIGNED ) ) + ( + 8 ) END + + 68 WHEN + 27 THEN 12 - 88 ELSE NULL END - - 65 THEN 34 * 31 ELSE NULL END * 25 / 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL 97 * - + 3 / + 86 * + 16 * 35 + + CAST ( NULL AS INTEGER ) + - CASE 30 WHEN CASE + + NULLIF ( 41, + 4 ) WHEN 59 * 97 + + 2 THEN - COALESCE ( - COALESCE ( - AVG ( - - CASE + 87 WHEN 36 + - - 22 THEN + 3 * 35 + + + 67 - + - 44 ELSE NULL END ), - NULLIF ( + + ( + AVG ( + 3 ) ), + + 55 + 26 ) * + + 39 + - 37 + + - 23 * + 51 + 41, CAST ( NULL AS INTEGER ) ), - COUNT ( * ), - COUNT ( * ) ) / - CASE + 37 * ( 29 * 54 ) WHEN 73 THEN 28 ELSE + NULLIF ( + 24, + CAST ( - 21 AS INTEGER ) ) + ( + 8 ) END + + 68 WHEN + 27 THEN 12 - 88 ELSE NULL END - - 65 THEN 34 * 31 ELSE NULL END * 25 / 89 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5868
SELECT + ( 33 ) DIV + + 73 * + MIN( ALL - 47 )
----
0

skipif mysql # not compatible
query I rowsort label-5868
SELECT + ( 33 ) / + + 73 * + MIN ( ALL - 47 )
----
0

query I rowsort
SELECT DISTINCT 12 * + 83
----
996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5870
SELECT MAX( CAST( - - 26 AS SIGNED ) ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-5870
SELECT MAX ( CAST ( - - 26 AS INTEGER ) ) AS col2
----
26

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

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT 88 + COUNT ( * ) AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5872
SELECT ALL COUNT( * ) * COALESCE ( 14, - SUM( 45 ) + - + 42 * - 52 ) DIV 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5872
SELECT ALL COUNT ( * ) * COALESCE ( 14, - SUM ( 45 ) + - + 42 * - 52 ) / 87 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5873
SELECT + 74 DIV 71 * - 93 * - 67
----
6231

skipif mysql # not compatible
query I rowsort label-5873
SELECT + 74 / 71 * - 93 * - 67
----
6231

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT + NULLIF ( + - NULLIF ( 29, 64 * - COUNT( * ) ), - 63 * + COUNT( * ) ) + + - 56 * ( 2 )
----
-141

skipif mysql # not compatible
query I rowsort label-5874
SELECT + NULLIF ( + - NULLIF ( 29, 64 * - COUNT ( * ) ), - 63 * + COUNT ( * ) ) + + - 56 * ( 2 )
----
-141

query II rowsort
SELECT DISTINCT + + 23 AS col0, + 28
----
23
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT ALL - 26 + 41 - + + MAX( DISTINCT - 70 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL - 26 + 41 - + + MAX ( DISTINCT - 70 ) AS col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5877
SELECT + - CAST( NULL AS SIGNED ) + + 37 + ( - 77 ) + 84 / - NULLIF ( - 36, - + 36 / - 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5877
SELECT + - CAST ( NULL AS INTEGER ) + + 37 + ( - 77 ) + 84 / - NULLIF ( - 36, - + 36 / - 68 )
----
NULL

query I rowsort
SELECT + + 46 + 68 AS col0
----
114

query I rowsort
SELECT NULLIF ( + 19, - NULLIF ( - 46, + 76 ) )
----
19

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

query I rowsort
SELECT 71 * + 90 * + 46 + + 50 AS col1
----
293990

query I rowsort
SELECT ALL + 66 + + 47
----
113

query I rowsort
SELECT ALL + + 39 * + 48
----
1872

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT DISTINCT - 33 + - - COUNT( DISTINCT - 41 )
----
-32

skipif mysql # not compatible
query I rowsort label-5886
SELECT DISTINCT - 33 + - - COUNT ( DISTINCT - 41 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT ALL COUNT( * ) - + + 36 + - + 76 + 34 * - 60
----
-2151

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL COUNT ( * ) - + + 36 + - + 76 + 34 * - 60
----
-2151

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5889
SELECT 32 AS col1, COUNT( * ) AS col1, - 91 DIV + + 95 + - 3
----
32
1
-3

skipif mysql # not compatible
query III rowsort label-5889
SELECT 32 AS col1, COUNT ( * ) AS col1, - 91 / + + 95 + - 3
----
32
1
-3

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

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

query I rowsort
SELECT + - 44 + - + 13 AS col2
----
-57

query II rowsort
SELECT ALL 73, 21 + - 47 AS col0
----
73
-26

query II rowsort
SELECT DISTINCT 95 AS col0, 65 * - 90
----
95
-5850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5894
SELECT ALL + CAST( 75 AS SIGNED ) * + NULLIF ( - 11, + - COUNT( * ) * + + AVG ( DISTINCT 71 ) + 26 * + 88 ) + - CAST( 1 AS SIGNED ) DIV - 99
----
-825

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL + CAST ( 75 AS INTEGER ) * + NULLIF ( - 11, + - COUNT ( * ) * + + AVG ( DISTINCT 71 ) + 26 * + 88 ) + - CAST ( 1 AS INTEGER ) / - 99
----
-825

query I rowsort
SELECT - COALESCE ( 12, 53 ) * + 97 AS col0
----
-1164

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT - ( - 46 ) + + 89 * - - COUNT( * ) AS col2
----
135

skipif mysql # not compatible
query I rowsort label-5897
SELECT - ( - 46 ) + + 89 * - - COUNT ( * ) AS col2
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5898
SELECT ALL CASE 71 WHEN - AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) * CASE + + ( 83 ) WHEN - + 60 + + 1 THEN NULL WHEN + 25 + + + 51 THEN + + COUNT( * ) * + 22 * - COUNT( * ) WHEN - 3 * - 85 * + + 49 THEN NULL END * CAST( NULL AS SIGNED ) + COUNT( ALL - ( + 38 ) ) + - 68 THEN - ( SUM( + ( + 35 ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL CASE 71 WHEN - AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) * CASE + + ( 83 ) WHEN - + 60 + + 1 THEN NULL WHEN + 25 + + + 51 THEN + + COUNT ( * ) * + 22 * - COUNT ( * ) WHEN - 3 * - 85 * + + 49 THEN NULL END * CAST ( NULL AS INTEGER ) + COUNT ( ALL - ( + 38 ) ) + - 68 THEN - ( SUM ( + ( + 35 ) ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT - COUNT( DISTINCT - 11 ) * 43
----
-43

skipif mysql # not compatible
query I rowsort label-5899
SELECT - COUNT ( DISTINCT - 11 ) * 43
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-5900
SELECT DISTINCT + 14 DIV + - 31
----
0

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT + 14 / + - 31
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5901
SELECT DISTINCT - 78 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5901
SELECT DISTINCT - 78 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5902
SELECT ALL 7 * + 21 col0, 38 * 60 + + - SUM( DISTINCT 83 ) AS col2
----
147
2197

skipif mysql # not compatible
query II rowsort label-5902
SELECT ALL 7 * + 21 col0, 38 * 60 + + - SUM ( DISTINCT 83 ) AS col2
----
147
2197

query I rowsort
SELECT DISTINCT 68 * + 44 + + - 5 AS col2
----
2987

query I rowsort
SELECT ALL + 24 * - 21 AS col2
----
-504

query I rowsort
SELECT 33 * - 46 - - - 66 * - + NULLIF ( + 87, + 50 )
----
4224

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

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

query I rowsort
SELECT COALESCE ( - 42, 2 * - 61 )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5909
SELECT ALL - COUNT( * ) * + MAX( - + CAST( NULL AS SIGNED ) ) * + 87 + + 10, - 9 + + 35 + + NULLIF ( - + 44, - 81 + + 84 * + + 89 + 76 ) AS col1
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-5909
SELECT ALL - COUNT ( * ) * + MAX ( - + CAST ( NULL AS INTEGER ) ) * + 87 + + 10, - 9 + + 35 + + NULLIF ( - + 44, - 81 + + 84 * + + 89 + 76 ) AS col1
----
NULL
-18

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5911
SELECT + NULLIF ( + 47, + ( ( MAX( + + 81 ) ) ) * CAST( + ( + 6 ) AS SIGNED ) * - CAST( NULL AS SIGNED ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-5911
SELECT + NULLIF ( + 47, + ( ( MAX ( + + 81 ) ) ) * CAST ( + ( + 6 ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) ) AS col1
----
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT - 4 * 1 * - COALESCE ( + - 81, COUNT( * ) ) + + + 99 - - - 2 AS col0
----
-227

skipif mysql # not compatible
query I rowsort label-5913
SELECT - 4 * 1 * - COALESCE ( + - 81, COUNT ( * ) ) + + + 99 - - - 2 AS col0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT ALL - + 51 * 81 + COUNT( * ) + + - COALESCE ( + 61, + + 22 + - - 31 + - 16 + + 57 * + 5 - - 71 - + COALESCE ( 13, + + 5 + - 74 ) - + 47 * COUNT( * ) ) * + 20 AS col1
----
-5350

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL - + 51 * 81 + COUNT ( * ) + + - COALESCE ( + 61, + + 22 + - - 31 + - 16 + + 57 * + 5 - - 71 - + COALESCE ( 13, + + 5 + - 74 ) - + 47 * COUNT ( * ) ) * + 20 AS col1
----
-5350

query I rowsort
SELECT ALL + - 84 * 17 - + 88 AS col0
----
-1516

query I rowsort
SELECT + + 89
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT ALL + - CASE - - 56 WHEN 11 THEN + 80 + + - COUNT( * ) - - + 49 - CASE - COUNT( DISTINCT + 10 ) WHEN + - 42 THEN NULLIF ( - NULLIF ( + 60, AVG ( + - 3 ) / - 40 ), ( - - 36 ) ) END * + 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL + - CASE - - 56 WHEN 11 THEN + 80 + + - COUNT ( * ) - - + 49 - CASE - COUNT ( DISTINCT + 10 ) WHEN + - 42 THEN NULLIF ( - NULLIF ( + 60, AVG ( + - 3 ) / - 40 ), ( - - 36 ) ) END * + 2 ELSE NULL END
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5919
SELECT ALL 5 * + ( + 95 ) - + NULLIF ( 74, - CAST( - - 81 AS SIGNED ) + + + 55 - + 38 - - + 61 ) + + 50 AS col2
----
451

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL 5 * + ( + 95 ) - + NULLIF ( 74, - CAST ( - - 81 AS INTEGER ) + + + 55 - + 38 - - + 61 ) + + 50 AS col2
----
451

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT + - COUNT( * ) + 49 * - SUM( + 93 )
----
-4558

skipif mysql # not compatible
query I rowsort label-5920
SELECT + - COUNT ( * ) + 49 * - SUM ( + 93 )
----
-4558

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT - SUM( DISTINCT - - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-5921
SELECT - SUM ( DISTINCT - - 73 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT + + 59 + 62 + - 98 * + - COUNT( * )
----
219

skipif mysql # not compatible
query I rowsort label-5922
SELECT + + 59 + 62 + - 98 * + - COUNT ( * )
----
219

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

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL + CAST ( MIN ( + 3 ) AS INTEGER ) AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5924
SELECT + - AVG ( ALL - 58 ) * + - CASE - + COUNT( ALL + ( 87 ) ) WHEN + 53 * 65 / 19 THEN + CAST( + - COUNT( * ) AS SIGNED ) + + COALESCE ( + 29, - + 68 ) * - COUNT( * ) - + 26 + - 73 WHEN - 31 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5924
SELECT + - AVG ( ALL - 58 ) * + - CASE - + COUNT ( ALL + ( 87 ) ) WHEN + 53 * 65 / 19 THEN + CAST ( + - COUNT ( * ) AS INTEGER ) + + COALESCE ( + 29, - + 68 ) * - COUNT ( * ) - + 26 + - 73 WHEN - 31 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 29 col2
----
29

query I rowsort
SELECT + 38 * 11 AS col1
----
418

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

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

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL 44 / - 83
----
0

query I rowsort
SELECT + 49 + - + 96 AS col1
----
-47

query II rowsort
SELECT 6, - 57 + - - 29 AS col1
----
6
-28

query II rowsort
SELECT ALL 37 * - ( + 28 ), + 13 * + 68 AS col0
----
-1036
884

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5932
SELECT - CAST( - + NULLIF ( + 24, + 13 ) AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-5932
SELECT - CAST ( - + NULLIF ( + 24, + 13 ) AS INTEGER )
----
24

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

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

query II rowsort
SELECT - 39 AS col2, - 72
----
-39
-72

query I rowsort
SELECT ALL - 64 + + - 48 AS col0
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT + 19 - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-5936
SELECT + 19 - COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT ALL ( MAX( ALL + 51 ) ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL ( MAX ( ALL + 51 ) ) AS col0
----
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5938
SELECT DISTINCT 43 + CASE CAST( - 8 AS DECIMAL ) WHEN + COUNT( * ) THEN NULL WHEN 58 THEN - 31 END + + COUNT( * ) * + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-5938
SELECT DISTINCT 43 + CASE CAST ( - 8 AS REAL ) WHEN + COUNT ( * ) THEN NULL WHEN 58 THEN - 31 END + + COUNT ( * ) * + - 64
----
NULL

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

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

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

query I rowsort
SELECT ALL 77 + 36
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-5942
SELECT DISTINCT 36 * COUNT( * ) * - - COUNT( * ), NULLIF ( + 61, - 48 * + 30 - - MIN( DISTINCT - 83 ) ) + - - 10 AS col2
----
36
71

skipif mysql # not compatible
query II rowsort label-5942
SELECT DISTINCT 36 * COUNT ( * ) * - - COUNT ( * ), NULLIF ( + 61, - 48 * + 30 - - MIN ( DISTINCT - 83 ) ) + - - 10 AS col2
----
36
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5943
SELECT ALL - MAX( DISTINCT + CAST( + 89 AS SIGNED ) ) + 32 - 53 * COUNT( * ) DIV + MAX( CASE + 31 WHEN + - CAST( NULL AS SIGNED ) THEN - - 4 DIV 89 ELSE + 91 END ) + + 40 DIV + 15
----
-55

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL - MAX ( DISTINCT + CAST ( + 89 AS INTEGER ) ) + 32 - 53 * COUNT ( * ) / + MAX ( CASE + 31 WHEN + - CAST ( NULL AS INTEGER ) THEN - - 4 / 89 ELSE + 91 END ) + + 40 / + 15
----
-55

query I rowsort
SELECT ALL - 34 col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT ALL + 38 + + MAX( ALL - 54 ) + 92 * - - ( 51 )
----
4676

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL + 38 + + MAX ( ALL - 54 ) + 92 * - - ( 51 )
----
4676

query I rowsort
SELECT 9 - - 66
----
75

query II rowsort
SELECT 0 AS col2, 31
----
0
31

query II rowsort
SELECT + 65, 57 col1
----
65
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT ALL - 66 + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL - 66 + COUNT ( * )
----
-65

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5952
SELECT ALL + 2 + + 77 * + + 69 col2, 82 + + 63 DIV - 63
----
5315
81

skipif mysql # not compatible
query II rowsort label-5952
SELECT ALL + 2 + + 77 * + + 69 col2, 82 + + 63 / - 63
----
5315
81

query I rowsort
SELECT ALL - - 9
----
9

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

query II rowsort
SELECT ALL - 35 * - 1 + 88 - - 41 + + 74 * + 79 col0, 56
----
6010
56

query I rowsort
SELECT ALL - + 30 * + 6
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5957
SELECT DISTINCT - ( - + 91 ) * CASE - 89 WHEN + 93 * COUNT( * ) * + - ( - 11 ) + - AVG ( ALL + - 29 ) + + MAX( + 35 ) + ( 97 ) THEN - 58 + - CAST( NULL AS SIGNED ) ELSE NULL END * - 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5957
SELECT DISTINCT - ( - + 91 ) * CASE - 89 WHEN + 93 * COUNT ( * ) * + - ( - 11 ) + - AVG ( ALL + - 29 ) + + MAX ( + 35 ) + ( 97 ) THEN - 58 + - CAST ( NULL AS INTEGER ) ELSE NULL END * - 52 AS col1
----
NULL

query II rowsort
SELECT ALL 50 - - 42 * + 84 AS col1, 30 + + + 69 * - + 15 AS col0
----
3578
-1005

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5959
SELECT + 20 * + CASE + + 8 WHEN - 34 THEN NULL WHEN 9 THEN NULL ELSE - COUNT( * ) - ( COUNT( * ) ) * + 24 * - CAST( NULL AS SIGNED ) END - 22 + MAX( ALL 26 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5959
SELECT + 20 * + CASE + + 8 WHEN - 34 THEN NULL WHEN 9 THEN NULL ELSE - COUNT ( * ) - ( COUNT ( * ) ) * + 24 * - CAST ( NULL AS INTEGER ) END - 22 + MAX ( ALL 26 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5960
SELECT + COUNT( * ) * + - 85 + + - 3 AS col0, - 78 col0
----
-88
-78

skipif mysql # not compatible
query II rowsort label-5960
SELECT + COUNT ( * ) * + - 85 + + - 3 AS col0, - 78 col0
----
-88
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT - 76 * + NULLIF ( 54, + ( + NULLIF ( 28, + - 6 + + + 28 ) ) ) * - - ( - + 64 ) + 12 - + + ( NULLIF ( + + COUNT( * ), COALESCE ( 57, + 72, - 19 ) ) ) + + - 74 * + - 49 AS col1
----
266293

skipif mysql # not compatible
query I rowsort label-5961
SELECT - 76 * + NULLIF ( 54, + ( + NULLIF ( 28, + - 6 + + + 28 ) ) ) * - - ( - + 64 ) + 12 - + + ( NULLIF ( + + COUNT ( * ), COALESCE ( 57, + 72, - 19 ) ) ) + + - 74 * + - 49 AS col1
----
266293

query I rowsort
SELECT ALL - NULLIF ( 32, 2 + 14 + + 19 + + 20 + - - 63 + + - 99 - - AVG ( - 48 ) * - 55 + + 89 )
----
-32

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

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

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

query I rowsort
SELECT - 95 + - + NULLIF ( + 21, - 44 ) + - 87 + + 12
----
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT DISTINCT - SUM( ALL - + 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-5966
SELECT DISTINCT - SUM ( ALL - + 70 ) AS col1
----
70

query I rowsort
SELECT 6 + + + 42 AS col1
----
48

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5970
SELECT DISTINCT CAST( + - 72 AS SIGNED ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-5970
SELECT DISTINCT CAST ( + - 72 AS INTEGER ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT ALL + SUM( ALL 92 ) * - COUNT( + 28 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL + SUM ( ALL 92 ) * - COUNT ( + 28 ) AS col1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5972
SELECT + CAST( NULL AS SIGNED ) - - + MAX( ALL NULLIF ( 28, + 56 ) ) + - + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5972
SELECT + CAST ( NULL AS INTEGER ) - - + MAX ( ALL NULLIF ( 28, + 56 ) ) + - + 77 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 56 * - - 59 + 57 * + - 10 AS col2
----
-3874

query I rowsort
SELECT 48 * 42
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT ALL 38 + ( - SUM( DISTINCT - 94 ) )
----
132

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL 38 + ( - SUM ( DISTINCT - 94 ) )
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5976
SELECT ALL 90 + CAST( - - 55 AS SIGNED ) AS col0
----
145

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL 90 + CAST ( - - 55 AS INTEGER ) AS col0
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5977
SELECT 74 + + COUNT( * ) col0, - CAST( NULL AS SIGNED ) AS col2
----
75
NULL

skipif mysql # not compatible
query II rowsort label-5977
SELECT 74 + + COUNT ( * ) col0, - CAST ( NULL AS INTEGER ) AS col2
----
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT ALL 2 + - 87 + 23 * + 67 * + 43 * - + MAX( DISTINCT - + 93 )
----
6162374

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL 2 + - 87 + 23 * + 67 * + 43 * - + MAX ( DISTINCT - + 93 )
----
6162374

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5979
SELECT CAST( + - 5 AS SIGNED ) + - + 30 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-5979
SELECT CAST ( + - 5 AS INTEGER ) + - + 30 AS col0
----
-35

query I rowsort
SELECT ALL 78 + - - 2 AS col1
----
80

query I rowsort
SELECT - 97 col2
----
-97

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5983
SELECT 73 * 89 DIV + COUNT( * ) AS col1
----
6497

skipif mysql # not compatible
query I rowsort label-5983
SELECT 73 * 89 / + COUNT ( * ) AS col1
----
6497

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT 9 + - + SUM( + ( - 70 ) )
----
79

skipif mysql # not compatible
query I rowsort label-5984
SELECT 9 + - + SUM ( + ( - 70 ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT DISTINCT 65 + COUNT( * ) + - 62 * + 37
----
-2228

skipif mysql # not compatible
query I rowsort label-5985
SELECT DISTINCT 65 + COUNT ( * ) + - 62 * + 37
----
-2228

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT ALL COUNT( * ) + - 5
----
-4

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL COUNT ( * ) + - 5
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT SUM( ALL 52 )
----
52

skipif mysql # not compatible
query I rowsort label-5987
SELECT SUM ( ALL 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT 28 + - COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-5988
SELECT 28 + - COUNT ( * ) AS col2
----
27

query I rowsort
SELECT 99 * + 38 col1
----
3762

query I rowsort
SELECT DISTINCT 29 * + - ( + 47 ) AS col0
----
-1363

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT ALL MAX( - - 79 ) - 60 * + 82
----
-4841

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL MAX ( - - 79 ) - 60 * + 82
----
-4841

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT - 65 * 1 * COUNT( * ) * + COUNT( * ) + 29
----
-36

skipif mysql # not compatible
query I rowsort label-5992
SELECT - 65 * 1 * COUNT ( * ) * + COUNT ( * ) + 29
----
-36

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT ALL - MAX( ALL 70 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL - MAX ( ALL 70 ) AS col0
----
-70

query II rowsort
SELECT + 90 * - + 54, - 29 AS col0
----
-4860
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5996
SELECT ALL + 14 - 36, 15 DIV COUNT( * ) + + 11 + - 76 AS col0
----
-22
-50

skipif mysql # not compatible
query II rowsort label-5996
SELECT ALL + 14 - 36, 15 / COUNT ( * ) + + 11 + - 76 AS col0
----
-22
-50

query I rowsort
SELECT DISTINCT - 44
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-5998
SELECT 3 + + COUNT( * ) AS col1, 66 + 12 AS col0
----
4
78

skipif mysql # not compatible
query II rowsort label-5998
SELECT 3 + + COUNT ( * ) AS col1, 66 + 12 AS col0
----
4
78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT - 57 * SUM( + + 48 ) * + + 2 AS col2
----
-5472

skipif mysql # not compatible
query I rowsort label-6000
SELECT - 57 * SUM ( + + 48 ) * + + 2 AS col2
----
-5472

query II rowsort
SELECT ALL + 54 - 72 col1, 37 - + 79
----
-18
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-6002
SELECT DISTINCT - 96 DIV - + 99
----
0

skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT - 96 / - + 99
----
0

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

query I rowsort
SELECT ALL + 62 * COALESCE ( + + 63, + - COALESCE ( - + 67, - + 85 * - - 96 ) ) + 56
----
3962

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6005
SELECT + 93 * - + COALESCE ( + CAST( NULL AS SIGNED ), - - 89, - 7 + + - 15 )
----
-8277

skipif mysql # not compatible
query I rowsort label-6005
SELECT + 93 * - + COALESCE ( + CAST ( NULL AS INTEGER ), - - 89, - 7 + + - 15 )
----
-8277

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT ALL - - COUNT( 3 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL - - COUNT ( 3 ) col2
----
1

query I rowsort
SELECT + + CASE - ( + 58 ) WHEN 81 THEN + 88 * - 12 END
----
NULL

query I rowsort
SELECT DISTINCT - - 85 col0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6009
SELECT + - 45 * + 93 + + 3 + - + 67, + ( NULLIF ( - ( ( - NULLIF ( 17, 87 * - 64 ) ) ), COUNT( * ) ) ) AS col1
----
-4249
17

skipif mysql # not compatible
query II rowsort label-6009
SELECT + - 45 * + 93 + + 3 + - + 67, + ( NULLIF ( - ( ( - NULLIF ( 17, 87 * - 64 ) ) ), COUNT ( * ) ) ) AS col1
----
-4249
17

query I rowsort
SELECT ALL - - 48 * + - 86
----
-4128

onlyif mysql # DIV for integer division: 
query I rowsort label-6011
SELECT 54 * - NULLIF ( + + 92, - - AVG ( DISTINCT - 32 ) + - 74 ) + - - 69 - + 51 DIV 43 + + NULLIF ( - 57, 43 + - 60 - 39 ) AS col2
----
-4957

skipif mysql # not compatible
query I rowsort label-6011
SELECT 54 * - NULLIF ( + + 92, - - AVG ( DISTINCT - 32 ) + - 74 ) + - - 69 - + 51 / 43 + + NULLIF ( - 57, 43 + - 60 - 39 ) AS col2
----
-4957

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT ALL + + 35 + + MIN( - 21 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL + + 35 + + MIN ( - 21 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT ALL NULLIF ( COUNT( * ), - ( 59 ) + 5 + - 6 * COUNT( * ) * + - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL NULLIF ( COUNT ( * ), - ( 59 ) + 5 + - 6 * COUNT ( * ) * + - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT DISTINCT CASE + 25 WHEN - COUNT( * ) * + COUNT( * ) + 54 THEN - - 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6014
SELECT DISTINCT CASE + 25 WHEN - COUNT ( * ) * + COUNT ( * ) + 54 THEN - - 11 END
----
NULL

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

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

query I rowsort
SELECT 39 col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6017
SELECT ALL + 64 + - + 90 + - + CAST( - 0 AS SIGNED ) * + - 49
----
-26

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL + 64 + - + 90 + - + CAST ( - 0 AS INTEGER ) * + - 49
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6018
SELECT ALL 84 + + SUM( ALL - - 77 ) + - 20 * + + MIN( - 34 ) * - CAST( NULL AS SIGNED ) * + 4 + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL 84 + + SUM ( ALL - - 77 ) + - 20 * + + MIN ( - 34 ) * - CAST ( NULL AS INTEGER ) * + 4 + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 6, 59 * 42 / 14 * - + 35 ) AS col0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-6020
SELECT ALL + 38 + 92 DIV + ( + 84 )
----
39

skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL + 38 + 92 / + ( + 84 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6021
SELECT - COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6021
SELECT - COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-6022
SELECT + 42 * COUNT ( * ) / - 80
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6023
SELECT ALL 48 + - - CASE + - CAST( COUNT( * ) AS SIGNED ) WHEN + 96 + + CAST( - 76 AS SIGNED ) * + 93 THEN 98 ELSE - 26 DIV - 42 + - 69 END
----
-21

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL 48 + - - CASE + - CAST ( COUNT ( * ) AS INTEGER ) WHEN + 96 + + CAST ( - 76 AS INTEGER ) * + 93 THEN 98 ELSE - 26 / - 42 + - 69 END
----
-21

query I rowsort
SELECT - 13 + + + 50
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6025
SELECT DISTINCT MIN( ALL + 22 ) * + CAST( NULL AS DECIMAL ) + CAST( - 27 AS SIGNED ) + - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT MIN ( ALL + 22 ) * + CAST ( NULL AS REAL ) + CAST ( - 27 AS INTEGER ) + - 85 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6026
SELECT - CASE + + 39 WHEN - 15 / COUNT( * ) * 12 * + CAST( 56 AS SIGNED ) / - 97 * + 29 + - NULLIF ( + 87, + + 68 * - 96 ) THEN 39 + - - 53 - - 68 * - - 66 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6026
SELECT - CASE + + 39 WHEN - 15 / COUNT ( * ) * 12 * + CAST ( 56 AS INTEGER ) / - 97 * + 29 + - NULLIF ( + 87, + + 68 * - 96 ) THEN 39 + - - 53 - - 68 * - - 66 END AS col2
----
NULL

query I rowsort
SELECT + ( + 70 ) - 82 * - + 40 AS col2
----
3350

query I rowsort
SELECT ALL 14 col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT ALL - COUNT( * ) - - 57 - 74 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL - COUNT ( * ) - - 57 - 74 AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6030
SELECT + 59 + - + 19 + - + 34 * - COUNT( * ) / + + 30 * - 15 * - 25 * + CAST( NULL AS DECIMAL ) * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-6030
SELECT + 59 + - + 19 + - + 34 * - COUNT ( * ) / + + 30 * - 15 * - 25 * + CAST ( NULL AS REAL ) * + 46
----
NULL

query I rowsort
SELECT ALL + 6 * - 79 - - 90 - - 62 col2
----
-322

query I rowsort
SELECT + 76 * + + 39 AS col2
----
2964

query I rowsort
SELECT ALL + + 49
----
49

query I rowsort
SELECT + 88 * 26 - 94
----
2194

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6035
SELECT DISTINCT + ( 74 ) DIV + 91 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6035
SELECT DISTINCT + ( 74 ) / + 91 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT - 5 * COUNT( DISTINCT - + 52 ) * - - 38 + - + 21 AS col0
----
-211

skipif mysql # not compatible
query I rowsort label-6036
SELECT - 5 * COUNT ( DISTINCT - + 52 ) * - - 38 + - + 21 AS col0
----
-211

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT - 15 + - - COUNT( * ) - 8 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-6039
SELECT - 15 + - - COUNT ( * ) - 8 AS col1
----
-22

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

query I rowsort
SELECT - - 72 * + 74 AS col0
----
5328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6042
SELECT ALL - 66 * - - NULLIF ( - COUNT( * ), + + CAST( - 80 AS SIGNED ) ) + + - 25 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL - 66 * - - NULLIF ( - COUNT ( * ), + + CAST ( - 80 AS INTEGER ) ) + + - 25 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT - + 49 / CASE - - NULLIF ( - 5, - 53 ) WHEN COUNT( * ) + - 3 * 68 THEN - COUNT( * ) END * + 76 + + COUNT( * ) * - - MIN( - 39 ) * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-6043
SELECT - + 49 / CASE - - NULLIF ( - 5, - 53 ) WHEN COUNT ( * ) + - 3 * 68 THEN - COUNT ( * ) END * + 76 + + COUNT ( * ) * - - MIN ( - 39 ) * - 48
----
NULL

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

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

query II rowsort
SELECT + 74 col2, 57 + - 60
----
74
-3

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

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT + + COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6047
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col2, 22
----
NULL
22

skipif mysql # not compatible
query II rowsort label-6047
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col2, 22
----
NULL
22

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

query I rowsort
SELECT DISTINCT 75 * + + 10 + + + 12 * - COALESCE ( + 29, 69 - + 20 * - + 25, - 81 ) + 78
----
480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6050
SELECT ALL + NULLIF ( + 98, + COALESCE ( + - 29, - ( 37 ), + 14 + + + 35 + - 59 ) * - CAST( + 79 AS SIGNED ) * - CASE + 20 WHEN - 87 THEN NULL WHEN + 14 THEN + - 0 * 53 * - + ( - COUNT( * ) ) END + + 50 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL + NULLIF ( + 98, + COALESCE ( + - 29, - ( 37 ), + 14 + + + 35 + - 59 ) * - CAST ( + 79 AS INTEGER ) * - CASE + 20 WHEN - 87 THEN NULL WHEN + 14 THEN + - 0 * 53 * - + ( - COUNT ( * ) ) END + + 50 ) AS col1
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6051
SELECT + 75 AS col0, + 32 DIV + COUNT( + 38 ) - + 14
----
75
18

skipif mysql # not compatible
query II rowsort label-6051
SELECT + 75 AS col0, + 32 / + COUNT ( + 38 ) - + 14
----
75
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT ALL 8 * - 73 * + COUNT( * ) + 40 AS col0
----
-544

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL 8 * - 73 * + COUNT ( * ) + 40 AS col0
----
-544

query II rowsort
SELECT + 24 col1, 54 * + - 93 AS col2
----
24
-5022

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6054
SELECT CAST( + 41 AS SIGNED ) * - + 50 * + ( + - 64 ) + 57 AS col2
----
131257

skipif mysql # not compatible
query I rowsort label-6054
SELECT CAST ( + 41 AS INTEGER ) * - + 50 * + ( + - 64 ) + 57 AS col2
----
131257

query I rowsort
SELECT ALL 96 * - 99 + + 54
----
-9450

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6057
SELECT ALL + NULLIF ( - 3, + 23 + NULLIF ( 47, - 54 ) ) + 88 DIV + + 32
----
-1

skipif mysql # not compatible
query I rowsort label-6057
SELECT ALL + NULLIF ( - 3, + 23 + NULLIF ( 47, - 54 ) ) + 88 / + + 32
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6058
SELECT - CAST( + 21 AS SIGNED ) * 53 + + CAST( NULL AS DECIMAL ) AS col1, 61 AS col0
----
NULL
61

skipif mysql # not compatible
query II rowsort label-6058
SELECT - CAST ( + 21 AS INTEGER ) * 53 + + CAST ( NULL AS REAL ) AS col1, 61 AS col0
----
NULL
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT DISTINCT + 51 + + + COUNT( * ) * + COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT + 51 + + + COUNT ( * ) * + COUNT ( * ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT ALL + 33 - + COUNT( + - 63 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL + 33 - + COUNT ( + - 63 ) AS col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6061
SELECT - CAST( - - 28 AS SIGNED ) * + ( 45 ) + + COALESCE ( + + 28, - + COUNT( * ) )
----
-1232

skipif mysql # not compatible
query I rowsort label-6061
SELECT - CAST ( - - 28 AS INTEGER ) * + ( 45 ) + + COALESCE ( + + 28, - + COUNT ( * ) )
----
-1232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6062
SELECT - NULLIF ( ( 30 ), + COUNT( * ) + - + 88 + + - CAST( - + 79 AS DECIMAL ) - CASE CAST( - + 96 AS SIGNED ) WHEN + + SUM( DISTINCT + 45 ) / 65 * - 16 * + 22 - 12 THEN - + 92 / 42 / - 55 ELSE NULL END + - + 49 * + 43 + - 66 * 32 / - - 79 ) + - SUM( CAST( NULL AS SIGNED ) ) / - - 81 AS col0, + 29 AS col2
----
NULL
29

skipif mysql # not compatible
query II rowsort label-6062
SELECT - NULLIF ( ( 30 ), + COUNT ( * ) + - + 88 + + - CAST ( - + 79 AS REAL ) - CASE CAST ( - + 96 AS INTEGER ) WHEN + + SUM ( DISTINCT + 45 ) / 65 * - 16 * + 22 - 12 THEN - + 92 / 42 / - 55 ELSE NULL END + - + 49 * + 43 + - 66 * 32 / - - 79 ) + - SUM ( CAST ( NULL AS INTEGER ) ) / - - 81 AS col0, + 29 AS col2
----
NULL
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT - MAX( - NULLIF ( 70, 76 ) ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-6063
SELECT - MAX ( - NULLIF ( 70, 76 ) ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT - 7 + + COALESCE ( + 30, ( SUM( DISTINCT + + 26 ) ) ) * + NULLIF ( + 34, 99 - 1 + + + 28 )
----
1013

skipif mysql # not compatible
query I rowsort label-6064
SELECT - 7 + + COALESCE ( + 30, ( SUM ( DISTINCT + + 26 ) ) ) * + NULLIF ( + 34, 99 - 1 + + + 28 )
----
1013

query II rowsort
SELECT ALL NULLIF ( - + 6, + 79 * + 94 ) AS col1, 82
----
-6
82

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

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

query I rowsort
SELECT - 83 + + + 46 AS col2
----
-37

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

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL + COUNT ( - + 39 ) - + - COUNT ( * ) AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6069
SELECT DISTINCT ( 79 ) col0, CAST( NULL AS SIGNED ) AS col1
----
79
NULL

skipif mysql # not compatible
query II rowsort label-6069
SELECT DISTINCT ( 79 ) col0, CAST ( NULL AS INTEGER ) AS col1
----
79
NULL

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

query I rowsort
SELECT ALL 15 col0
----
15

query I rowsort
SELECT ALL ( - 72 ) AS col1
----
-72

query II rowsort
SELECT DISTINCT 18 col1, + 44 col1
----
18
44

query I rowsort
SELECT - 64 * + 4 AS col0
----
-256

query I rowsort
SELECT DISTINCT + + 11 * NULLIF ( 8, - 67 * - CASE 86 WHEN - 11 * + 2 * - 38 * 57 - - 74 THEN - 34 * 53 END )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT ALL COUNT( DISTINCT - 80 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL COUNT ( DISTINCT - 80 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6077
SELECT DISTINCT + 29 * - 73 + - MAX( DISTINCT 57 ) DIV - CAST( + ( + 82 ) AS SIGNED ) * 96 AS col2
----
-2117

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT + 29 * - 73 + - MAX ( DISTINCT 57 ) / - CAST ( + ( + 82 ) AS INTEGER ) * 96 AS col2
----
-2117

query I rowsort
SELECT - 30 * + 72 + - 27 AS col1
----
-2187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6079
SELECT + 99 + + COALESCE ( + 97, - COUNT( * ) + 25 - + + CAST( NULL AS SIGNED ) + + - 77 * - 60 * + 53 ) + + - COUNT( * ) * - 67 - - 92 AS col1
----
355

skipif mysql # not compatible
query I rowsort label-6079
SELECT + 99 + + COALESCE ( + 97, - COUNT ( * ) + 25 - + + CAST ( NULL AS INTEGER ) + + - 77 * - 60 * + 53 ) + + - COUNT ( * ) * - 67 - - 92 AS col1
----
355

onlyif mysql # DIV for integer division: 
query I rowsort label-6080
SELECT + + 1 DIV - 58 * + 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6080
SELECT + + 1 / - 58 * + 37 AS col1
----
0

query I rowsort
SELECT ALL + ( + 43 ) * + 64 AS col2
----
2752

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

query I rowsort
SELECT + 61 + 4 AS col2
----
65

query I rowsort
SELECT ALL + - 69 * + 77 AS col2
----
-5313

query I rowsort
SELECT ALL + - NULLIF ( - 87, + 90 )
----
87

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6087
SELECT ALL + 59 DIV + 42 + ( + 52 ) + - COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL + 59 / + 42 + ( + 52 ) + - COUNT ( * ) AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6088
SELECT ALL + 14, COUNT( * ) * - COUNT( * ) + 88 - 20 DIV + 35 AS col0
----
14
87

skipif mysql # not compatible
query II rowsort label-6088
SELECT ALL + 14, COUNT ( * ) * - COUNT ( * ) + 88 - 20 / + 35 AS col0
----
14
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6089
SELECT DISTINCT - 13 DIV - 70 * - 6 * + 75 * + + 77 DIV 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6089
SELECT DISTINCT - 13 / - 70 * - 6 * + 75 * + + 77 / 57 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6090
SELECT - - SUM( DISTINCT - 97 ) DIV + 72
----
-1

skipif mysql # not compatible
query I rowsort label-6090
SELECT - - SUM ( DISTINCT - 97 ) / + 72
----
-1

query I rowsort
SELECT + - 74 + - 68
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT + CASE + 37 WHEN - - 7 THEN - 97 / 33 + + + SUM( + 52 ) WHEN COUNT( * ) THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6092
SELECT + CASE + 37 WHEN - - 7 THEN - 97 / 33 + + + SUM ( + 52 ) WHEN COUNT ( * ) THEN NULL END col1
----
NULL

query I rowsort
SELECT + - ( + 93 ) * - + 35 + 63
----
3318

query II rowsort
SELECT - 4 AS col2, - 1 col2
----
-4
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6095
SELECT ALL - 58 DIV - 38 + NULLIF ( - COUNT( * ), + CASE + 81 WHEN 63 THEN + - 41 ELSE NULL END ) DIV + - NULLIF ( ( + 25 ), + COALESCE ( - - COUNT( * ), 50 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL - 58 / - 38 + NULLIF ( - COUNT ( * ), + CASE + 81 WHEN 63 THEN + - 41 ELSE NULL END ) / + - NULLIF ( ( + 25 ), + COALESCE ( - - COUNT ( * ), 50 ) )
----
1

query I rowsort
SELECT 60 * - + 86 - + 15
----
-5175

query I rowsort
SELECT DISTINCT 20 * + 48
----
960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6098
SELECT CAST( - 57 AS SIGNED ) * - 74 - - 68 + - COUNT( * ) * - - 12 + + - 93 DIV 16 col2
----
4269

skipif mysql # not compatible
query I rowsort label-6098
SELECT CAST ( - 57 AS INTEGER ) * - 74 - - 68 + - COUNT ( * ) * - - 12 + + - 93 / 16 col2
----
4269

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT ALL 49 - + MAX( + ( + 25 ) )
----
24

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL 49 - + MAX ( + ( + 25 ) )
----
24

query I rowsort
SELECT - 90 AS col1
----
-90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT DISTINCT + 29 / + NULLIF ( AVG ( DISTINCT - 1 ), - + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6102
SELECT DISTINCT + 29 / + NULLIF ( AVG ( DISTINCT - 1 ), - + COUNT ( * ) ) AS col1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6104
SELECT DISTINCT 6 DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT 6 / 64
----
0

query I rowsort
SELECT 24 * - + ( 6 ) col2
----
-144

query I rowsort
SELECT 27 * 48
----
1296

query I rowsort
SELECT ALL + 39 * - 20 AS col0
----
-780

query I rowsort
SELECT 14 * 55 AS col2
----
770

query I rowsort
SELECT 17 + + 29 * 54 AS col2
----
1583

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT ALL + MAX( DISTINCT + + 76 ) + 55
----
131

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL + MAX ( DISTINCT + + 76 ) + 55
----
131

query I rowsort
SELECT - 37 + 42 + + - 31 + + 9
----
-17

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

query II rowsort
SELECT 49 + + + 20 * 24 AS col0, - 91 * - 62 * + 89
----
529
502138

query I rowsort
SELECT 96 + - ( - ( + 93 ) ) AS col2
----
189

query I rowsort
SELECT ALL + - 42 + + 17 * - 82
----
-1436

query I rowsort
SELECT ALL - 84 + 35
----
-49

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

query I rowsort
SELECT ALL - + 41 * - 14 + + 7 * - + 26 AS col1
----
392

query I rowsort
SELECT DISTINCT - 77 col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6120
SELECT ALL - CAST( NULL AS SIGNED ) + - CASE + 11 WHEN - 24 * + 81 THEN NULL ELSE - COUNT( * ) + + - CAST( NULL AS SIGNED ) END + + 24 / 25 * - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL - CAST ( NULL AS INTEGER ) + - CASE + 11 WHEN - 24 * + 81 THEN NULL ELSE - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) END + + 24 / 25 * - 7 AS col1
----
NULL

query I rowsort
SELECT ALL - 79 * 9 AS col0
----
-711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6122
SELECT DISTINCT - MIN( + + 61 ), CAST( NULL AS SIGNED ) col0, - COUNT( * ) AS col1
----
-61
NULL
-1

skipif mysql # not compatible
query III rowsort label-6122
SELECT DISTINCT - MIN ( + + 61 ), CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) AS col1
----
-61
NULL
-1

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

query I rowsort
SELECT + 94 col1
----
94

query II rowsort
SELECT ALL - 29 - + 35 AS col2, 93 + - 7 * + 95 + + + 2
----
-64
-570

query I rowsort
SELECT 93 * 24 AS col0
----
2232

onlyif mysql # DIV for integer division: 
query I rowsort label-6127
SELECT ALL 61 DIV 59 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL 61 / 59 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6128
SELECT 99 DIV + 48 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6128
SELECT 99 / + 48 AS col1
----
2

query II rowsort
SELECT ALL - 38, + 11 * + 20 AS col1
----
-38
220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6130
SELECT MAX( - + 39 ) + + 6 DIV 91
----
-39

skipif mysql # not compatible
query I rowsort label-6130
SELECT MAX ( - + 39 ) + + 6 / 91
----
-39

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6132
SELECT ALL 8 DIV + 15 * + - ( + - CASE + + 10 WHEN - 74 THEN + + 48 + - - 67 ELSE + - 37 END )
----
0

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL 8 / + 15 * + - ( + - CASE + + 10 WHEN - 74 THEN + + 48 + - - 67 ELSE + - 37 END )
----
0

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

skipif mysql # not compatible
query I rowsort label-6133
SELECT 83 * + ( - ( + COUNT ( * ) ) ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT ALL 25 * COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-6134
SELECT ALL 25 * COUNT ( * )
----
25

query I rowsort
SELECT 89 + 9 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT ( + MIN( + 65 ) ) + + SUM( ALL - + 68 ) + + - 30
----
-33

skipif mysql # not compatible
query I rowsort label-6136
SELECT ( + MIN ( + 65 ) ) + + SUM ( ALL - + 68 ) + + - 30
----
-33

query I rowsort
SELECT DISTINCT ( 21 ) * + 68
----
1428

query II rowsort
SELECT 43 * - 34 + - 37 AS col0, - 8 - - + 14 * - 52 + + + 86 * 21 * 88 AS col1
----
-1499
158192

query I rowsort
SELECT ALL 48 col1
----
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT - MAX( 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-6141
SELECT - MAX ( 23 ) AS col2
----
-23

query I rowsort
SELECT DISTINCT 0 * - 93
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6143
SELECT ALL 58 AS col2, - 47 + + COUNT( * ) + + 88 AS col0
----
58
42

skipif mysql # not compatible
query II rowsort label-6143
SELECT ALL 58 AS col2, - 47 + + COUNT ( * ) + + 88 AS col0
----
58
42

query I rowsort
SELECT 8 * + 50 * - + 69 AS col2
----
-27600

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT 43 + + ( + COUNT( * ) ) + - 68
----
-24

skipif mysql # not compatible
query I rowsort label-6145
SELECT 43 + + ( + COUNT ( * ) ) + - 68
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT DISTINCT 53 + 24 * - 19 * 90 * + - COUNT( * ) - + 85 + + 6
----
41014

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT 53 + 24 * - 19 * 90 * + - COUNT ( * ) - + 85 + + 6
----
41014

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT ALL ( COUNT( * ) ) + - NULLIF ( 76, + 19 + - - 71 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL ( COUNT ( * ) ) + - NULLIF ( 76, + 19 + - - 71 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-6148
SELECT - 69 AS col1, - MIN( ALL - - 78 ) col0
----
-69
-78

skipif mysql # not compatible
query II rowsort label-6148
SELECT - 69 AS col1, - MIN ( ALL - - 78 ) col0
----
-69
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT 62 + 87 - - - COUNT( * )
----
148

skipif mysql # not compatible
query I rowsort label-6149
SELECT 62 + 87 - - - COUNT ( * )
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT ALL - - CASE ( - 91 ) WHEN 76 * - - NULLIF ( - + COUNT( * ), + 37 + MAX( DISTINCT - - 25 ) / - 34 * + + 82 ) * + 2 + 45 - + ( 46 ) THEN + + 11 END + + + COUNT( * ) + - + 62 - - 3 * + - 36 * + ( - 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL - - CASE ( - 91 ) WHEN 76 * - - NULLIF ( - + COUNT ( * ), + 37 + MAX ( DISTINCT - - 25 ) / - 34 * + + 82 ) * + 2 + 45 - + ( 46 ) THEN + + 11 END + + + COUNT ( * ) + - + 62 - - 3 * + - 36 * + ( - 95 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT 72 + + 76 + + SUM( + 89 ) - + 60 - ( + 33 ) + 64 * 15 * 62 AS col1
----
59664

skipif mysql # not compatible
query I rowsort label-6151
SELECT 72 + + 76 + + SUM ( + 89 ) - + 60 - ( + 33 ) + 64 * 15 * 62 AS col1
----
59664

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT ALL - SUM( DISTINCT + 1 ) * - COUNT( * ) * - 92
----
-92

skipif mysql # not compatible
query I rowsort label-6152
SELECT ALL - SUM ( DISTINCT + 1 ) * - COUNT ( * ) * - 92
----
-92

query I rowsort
SELECT DISTINCT + 68 + 20
----
88

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6155
SELECT 64 / - 61 * NULLIF ( + - ( - CAST( NULL AS SIGNED ) ), + 55 * + 32 * - - 40 + 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6155
SELECT 64 / - 61 * NULLIF ( + - ( - CAST ( NULL AS INTEGER ) ), + 55 * + 32 * - - 40 + 73 )
----
NULL

query I rowsort
SELECT ALL - 35 + - 46
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6157
SELECT 44 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-6157
SELECT 44 / 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT + SUM( - 25 ) + - COUNT( * ) * - 5 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-6158
SELECT + SUM ( - 25 ) + - COUNT ( * ) * - 5 AS col1
----
-20

query I rowsort
SELECT ALL 26 * 99 - - 16 AS col0
----
2590

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6161
SELECT DISTINCT + - 52, - COUNT( * ) + + COUNT( * ) AS col0
----
-52
0

skipif mysql # not compatible
query II rowsort label-6161
SELECT DISTINCT + - 52, - COUNT ( * ) + + COUNT ( * ) AS col0
----
-52
0

query II rowsort
SELECT + 23 AS col0, - 13 * - 89 AS col1
----
23
1157

query I rowsort
SELECT - + 73 * - 57
----
4161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6164
SELECT ALL - 47 * + 49 col1, 21 - + 96 - + 35 + - 66 * + COUNT( * ) * - ( - - 17 ) * - - ( + 82 ) - - 6 + + CAST( NULL AS SIGNED ) AS col2
----
-2303
NULL

skipif mysql # not compatible
query II rowsort label-6164
SELECT ALL - 47 * + 49 col1, 21 - + 96 - + 35 + - 66 * + COUNT ( * ) * - ( - - 17 ) * - - ( + 82 ) - - 6 + + CAST ( NULL AS INTEGER ) AS col2
----
-2303
NULL

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

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

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

query II rowsort
SELECT ALL + ( + 27 ), - 30 AS col0
----
27
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-6168
SELECT ALL - NULLIF ( + 54, COUNT( * ) ) * + 94 AS col1, 97
----
-5076
97

skipif mysql # not compatible
query II rowsort label-6168
SELECT ALL - NULLIF ( + 54, COUNT ( * ) ) * + 94 AS col1, 97
----
-5076
97

query I rowsort
SELECT + 96 * 74 col1
----
7104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6170
SELECT - 27 * CAST( NULL AS SIGNED ) - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6170
SELECT - 27 * CAST ( NULL AS INTEGER ) - - 68
----
NULL

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

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

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

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

query I rowsort
SELECT - 60 * 54 AS col0
----
-3240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6175
SELECT ALL SUM( ALL + 14 ) DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL SUM ( ALL + 14 ) / 42
----
0

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

query II rowsort
SELECT + 30 * - 9 AS col0, ( - 33 )
----
-270
-33

query I rowsort
SELECT - 0 * - - 26
----
0

query I rowsort
SELECT + 6 * 25
----
150

query I rowsort
SELECT 76 * - 16 - + 21
----
-1237

query I rowsort
SELECT ALL 64 + 31 + + + 6 * - + 73
----
-343

query I rowsort
SELECT + 70 * 5 AS col2
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT ALL - 39 + ( SUM( + + 7 ) ) * + 12
----
45

skipif mysql # not compatible
query I rowsort label-6183
SELECT ALL - 39 + ( SUM ( + + 7 ) ) * + 12
----
45

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

query I rowsort
SELECT ALL + 58 + + - 76
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT + 85 + - - 6 * + + COUNT( * ) + + 78 AS col1
----
169

skipif mysql # not compatible
query I rowsort label-6186
SELECT + 85 + - - 6 * + + COUNT ( * ) + + 78 AS col1
----
169

query I rowsort
SELECT + 55 * + - 20
----
-1100

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT ALL COUNT( * ) * + 80 * + + 73 + 43 * ( + + COUNT( * ) ) * - 64 * - 85 * + COUNT( * ) col2
----
239760

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL COUNT ( * ) * + 80 * + + 73 + 43 * ( + + COUNT ( * ) ) * - 64 * - 85 * + COUNT ( * ) col2
----
239760

query I rowsort
SELECT 37 col2
----
37

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

query I rowsort
SELECT - 33 col1
----
-33

query II rowsort
SELECT ALL 51 - + + 70 AS col2, 30 * - 29 AS col2
----
-19
-870

query I rowsort
SELECT + + 18 * - - 62 * - 60
----
-66960

query I rowsort
SELECT + - 43 + - - 49 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT - - CASE - COUNT( * ) WHEN 37 + - - 49 THEN - + 96 WHEN 3 + - 79 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6195
SELECT - - CASE - COUNT ( * ) WHEN 37 + - - 49 THEN - + 96 WHEN 3 + - 79 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT + + COUNT( DISTINCT 67 ) + - 5
----
-4

skipif mysql # not compatible
query I rowsort label-6196
SELECT + + COUNT ( DISTINCT 67 ) + - 5
----
-4

query I rowsort
SELECT ALL + 62 - 44 + + - 6
----
12

query I rowsort
SELECT + - 93 + - 46
----
-139

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

query I rowsort
SELECT + - 45
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-6201
SELECT - 90 DIV - 39 - + 75 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-6201
SELECT - 90 / - 39 - + 75 AS col0
----
-73

query I rowsort
SELECT + 24 * + + 38 * - + 86 * + 90
----
-7058880

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6204
SELECT - 96 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-6204
SELECT - 96 / 97
----
0

query I rowsort
SELECT DISTINCT 55 * - 36 AS col2
----
-1980

query I rowsort
SELECT ( + + 81 ) col0
----
81

query I rowsort
SELECT ALL + 86 * - + 73 * - 75 + - 57 + 65 * 61 + + 14
----
474772

query I rowsort
SELECT ALL - 25 * + 11 + - 96 * + + 83 + + ( - 26 ) AS col1
----
-8269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6209
SELECT CASE - + 27 WHEN 43 THEN - CAST( NULL AS SIGNED ) - - + MAX( DISTINCT - 24 ) / 13 WHEN + 60 * COUNT( - COALESCE ( NULLIF ( + - 10, 30 ), - 41, 7 ) ) THEN NULL WHEN + 12 + 15 THEN NULL WHEN + + COUNT( * ) THEN + CAST( NULL AS DECIMAL ) END * MIN( DISTINCT 70 ) + + 48 + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6209
SELECT CASE - + 27 WHEN 43 THEN - CAST ( NULL AS INTEGER ) - - + MAX ( DISTINCT - 24 ) / 13 WHEN + 60 * COUNT ( - COALESCE ( NULLIF ( + - 10, 30 ), - 41, 7 ) ) THEN NULL WHEN + 12 + 15 THEN NULL WHEN + + COUNT ( * ) THEN + CAST ( NULL AS REAL ) END * MIN ( DISTINCT 70 ) + + 48 + + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT - 54 - MAX( - 42 ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-6210
SELECT - 54 - MAX ( - 42 ) col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT + MAX( + 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-6211
SELECT + MAX ( + 41 ) AS col2
----
41

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

query I rowsort
SELECT - 24 + + - 46
----
-70

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

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

query I rowsort
SELECT ALL - 9 * + + ( + 60 ) + + - 42
----
-582

query I rowsort
SELECT COALESCE ( - 21, - + 38 ) AS col2
----
-21

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6218
SELECT ALL - CASE - + 79 WHEN + 71 + + 18 + + COALESCE ( - - 11, + ( - 79 ) * + + 40 * + SUM( DISTINCT + 16 ), + - 72 * - 77 / - NULLIF ( - MAX( 1 ), - CAST( NULL AS SIGNED ) ) * + - 17 * - 54 ) THEN + - CASE - + 32 WHEN 0 THEN NULL WHEN 18 + + 91 + - 82 + 37 * + 1 THEN - COUNT( * ) * + - 56 + COUNT( * ) ELSE NULL END END * + + 54 + 93 * + 18 * + + 88 * + 18 * CASE + COUNT( * ) WHEN - SUM( ALL + 47 ) * + 93 THEN + + 66 + - 72 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL - CASE - + 79 WHEN + 71 + + 18 + + COALESCE ( - - 11, + ( - 79 ) * + + 40 * + SUM ( DISTINCT + 16 ), + - 72 * - 77 / - NULLIF ( - MAX ( 1 ), - CAST ( NULL AS INTEGER ) ) * + - 17 * - 54 ) THEN + - CASE - + 32 WHEN 0 THEN NULL WHEN 18 + + 91 + - 82 + 37 * + 1 THEN - COUNT ( * ) * + - 56 + COUNT ( * ) ELSE NULL END END * + + 54 + 93 * + 18 * + + 88 * + 18 * CASE + COUNT ( * ) WHEN - SUM ( ALL + 47 ) * + 93 THEN + + 66 + - 72 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6219
SELECT + 7, 95 + + 70 + - COUNT( * ) AS col0
----
7
164

skipif mysql # not compatible
query II rowsort label-6219
SELECT + 7, 95 + + 70 + - COUNT ( * ) AS col0
----
7
164

query I rowsort
SELECT - 90 * + 46 + + 52
----
-4088

query I rowsort
SELECT ALL + 82 * + 14 + - 8
----
1140

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT - 46 + ( + ( - - 40 ) ) * - COUNT( * ) * - - 82 * - 11 col2
----
36034

skipif mysql # not compatible
query I rowsort label-6223
SELECT - 46 + ( + ( - - 40 ) ) * - COUNT ( * ) * - - 82 * - 11 col2
----
36034

onlyif mysql # DIV for integer division: 
query I rowsort label-6224
SELECT DISTINCT + 29 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT + 29 / - 95
----
0

query I rowsort
SELECT + 39 + + - 35 AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6226
SELECT 33, COUNT( ALL 51 ) DIV + 64 AS col0
----
33
0

skipif mysql # not compatible
query II rowsort label-6226
SELECT 33, COUNT ( ALL 51 ) / + 64 AS col0
----
33
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT + 53 + + + COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-6227
SELECT + 53 + + + COUNT ( * ) AS col0
----
54

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

query I rowsort
SELECT ALL - 52 - - - 80 col0
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6230
SELECT + 5 / + 89 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6230
SELECT + 5 / + 89 / + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6232
SELECT DISTINCT 45 * NULLIF ( + COUNT( * ), + + 59 * - 83 * + - 17 * 58 * - COUNT( * ) ), CAST( 95 AS SIGNED ) AS col2
----
45
95

skipif mysql # not compatible
query II rowsort label-6232
SELECT DISTINCT 45 * NULLIF ( + COUNT ( * ), + + 59 * - 83 * + - 17 * 58 * - COUNT ( * ) ), CAST ( 95 AS INTEGER ) AS col2
----
45
95

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

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

query I rowsort
SELECT - 55 * 14
----
-770

query I rowsort
SELECT ALL 25 * 39
----
975

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

query I rowsort
SELECT + 21 * 83
----
1743

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT COUNT( 15 ) * - + 72 * + + 27 + - COUNT( DISTINCT 85 )
----
-1945

skipif mysql # not compatible
query I rowsort label-6238
SELECT COUNT ( 15 ) * - + 72 * + + 27 + - COUNT ( DISTINCT 85 )
----
-1945

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6240
SELECT ALL + COALESCE ( 43, - 94 * COUNT( * ), 5 DIV 73 + + - COUNT( * ) )
----
43

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL + COALESCE ( 43, - 94 * COUNT ( * ), 5 / 73 + + - COUNT ( * ) )
----
43

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6242
SELECT 99 + NULLIF ( + 5, CAST( - + MIN( + - 1 ) AS DECIMAL ) * - - 96 + - 76 )
----
104

skipif mysql # not compatible
query I rowsort label-6242
SELECT 99 + NULLIF ( + 5, CAST ( - + MIN ( + - 1 ) AS REAL ) * - - 96 + - 76 )
----
104

query II rowsort
SELECT + 74, - 3 + + - 38 AS col0
----
74
-41

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

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

query II rowsort
SELECT + 28, 1 AS col1
----
28
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6246
SELECT ALL COALESCE ( + - 98, COUNT( * ) ) + - 96 AS col1, 39 * + - 78 * - 61
----
-194
185562

skipif mysql # not compatible
query II rowsort label-6246
SELECT ALL COALESCE ( + - 98, COUNT ( * ) ) + - 96 AS col1, 39 * + - 78 * - 61
----
-194
185562

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6249
SELECT ALL CAST( + 73 AS SIGNED ) * - 54 AS col0
----
-3942

skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL CAST ( + 73 AS INTEGER ) * - 54 AS col0
----
-3942

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT + 81 * - 89 * + 52 + - + 86 + + 26 + 7 + - COUNT( * ) * + MIN( DISTINCT - 49 ) * - - 16 * 64 AS col0
----
-324745

skipif mysql # not compatible
query I rowsort label-6250
SELECT + 81 * - 89 * + 52 + - + 86 + + 26 + 7 + - COUNT ( * ) * + MIN ( DISTINCT - 49 ) * - - 16 * 64 AS col0
----
-324745

query II rowsort
SELECT 89 AS col1, + 87 - 58 AS col0
----
89
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT ALL - COUNT( DISTINCT + - 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL - COUNT ( DISTINCT + - 22 )
----
-1

query I rowsort
SELECT COALESCE ( + - 74, 68 ) * + 58
----
-4292

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6256
SELECT DISTINCT - 85 AS col2, + 13 DIV - - 14 * - + 99 * - 11
----
-85
0

skipif mysql # not compatible
query II rowsort label-6256
SELECT DISTINCT - 85 AS col2, + 13 / - - 14 * - + 99 * - 11
----
-85
0

query I rowsort
SELECT ALL + 49 + 93 - 23 * + 55 * - + 70 AS col2
----
88692

query I rowsort
SELECT 59 * - 19
----
-1121

query I rowsort
SELECT DISTINCT + 68 - + + 88
----
-20

query I rowsort
SELECT ALL + 56 - 20 * 70 AS col0
----
-1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6261
SELECT SUM( DISTINCT - 65 ) * + CAST( NULL AS SIGNED ) * - 56 + - - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6261
SELECT SUM ( DISTINCT - 65 ) * + CAST ( NULL AS INTEGER ) * - 56 + - - 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT - + COUNT( ALL 41 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6262
SELECT - + COUNT ( ALL 41 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT - ( - - ( 90 ) ) * - 56 - + + 60 - COUNT( * ) * - 89 * 3 * - + 28 AS col2
----
-2496

skipif mysql # not compatible
query I rowsort label-6263
SELECT - ( - - ( 90 ) ) * - 56 - + + 60 - COUNT ( * ) * - 89 * 3 * - + 28 AS col2
----
-2496

query I rowsort
SELECT ALL + 7 * 96 AS col2
----
672

query I rowsort
SELECT ALL + 95 - - + 48 * 2 col1
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT ALL MIN( ALL 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-6266
SELECT ALL MIN ( ALL 56 ) AS col2
----
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT 98 + - 20 + - + 23 * + + 67 * 73 * + 68 - + COUNT( - 78 )
----
-7649447

skipif mysql # not compatible
query I rowsort label-6268
SELECT 98 + - 20 + - + 23 * + + 67 * 73 * + 68 - + COUNT ( - 78 )
----
-7649447

onlyif mysql # DIV for integer division: 
query II rowsort label-6269
SELECT + 97 + + + 42 col2, - 66 * + + 68 DIV - 17 + - - 2
----
139
266

skipif mysql # not compatible
query II rowsort label-6269
SELECT + 97 + + + 42 col2, - 66 * + + 68 / - 17 + - - 2
----
139
266

query I rowsort
SELECT 72 col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT 18 / + + COALESCE ( + + ( - - 35 ), 75 - - - COUNT( * ) + + 5 / COUNT( * ) + - 11 + ( - 89 ) / - 41 ) * - COUNT( * ) * + CASE + - 50 WHEN - - 78 * + 13 + - COUNT( * ) THEN ( - COUNT( * ) ) * - CASE + 13 WHEN + COUNT( * ) THEN 16 END + - ( + 62 ) WHEN + COALESCE ( 28, + COUNT( * ), 37 ) * + - 52 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6271
SELECT 18 / + + COALESCE ( + + ( - - 35 ), 75 - - - COUNT ( * ) + + 5 / COUNT ( * ) + - 11 + ( - 89 ) / - 41 ) * - COUNT ( * ) * + CASE + - 50 WHEN - - 78 * + 13 + - COUNT ( * ) THEN ( - COUNT ( * ) ) * - CASE + 13 WHEN + COUNT ( * ) THEN 16 END + - ( + 62 ) WHEN + COALESCE ( 28, + COUNT ( * ), 37 ) * + - 52 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 19 + + 45
----
26

query II rowsort
SELECT ALL 63, - 94 * + 62 * + - ( - 31 ) AS col0
----
63
-180668

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT ALL + 30 + + - COUNT( + ( + - 39 ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL + 30 + + - COUNT ( + ( + - 39 ) ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT 67 + - 26 + + 28 * - COALESCE ( + COUNT( * ), - 65 ) * + 44 + + 92
----
-1099

skipif mysql # not compatible
query I rowsort label-6275
SELECT 67 + - 26 + + 28 * - COALESCE ( + COUNT ( * ), - 65 ) * + 44 + + 92
----
-1099

onlyif mysql # DIV for integer division: 
query I rowsort label-6276
SELECT ALL - 19 DIV - 82 * + 93 * - 96 * 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL - 19 / - 82 * + 93 * - 96 * 52 AS col1
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT ALL 31 + - 29 + + + MAX( + 37 ) + - - 2 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL 31 + - 29 + + + MAX ( + 37 ) + - - 2 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT DISTINCT - MIN( + - 19 ) * SUM( ALL + 7 ) + - + ( 25 )
----
108

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT - MIN ( + - 19 ) * SUM ( ALL + 7 ) + - + ( 25 )
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT COUNT( * ) * - 22 * + - 83 col0
----
1826

skipif mysql # not compatible
query I rowsort label-6281
SELECT COUNT ( * ) * - 22 * + - 83 col0
----
1826

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT ( + COUNT( * ) ) * + 35 + + + 27 * - 39 * + - 33 * - 89 + + 13 col1
----
-3092613

skipif mysql # not compatible
query I rowsort label-6282
SELECT ( + COUNT ( * ) ) * + 35 + + + 27 * - 39 * + - 33 * - 89 + + 13 col1
----
-3092613

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT COUNT( * ) + + 26 * + 5 AS col0
----
131

skipif mysql # not compatible
query I rowsort label-6283
SELECT COUNT ( * ) + + 26 * + 5 AS col0
----
131

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

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

query I rowsort
SELECT - 39 * + ( 79 ) + - 43
----
-3124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6287
SELECT DISTINCT - COUNT( * ) * - - 80 + - + 19 DIV - 41 * - + 47 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6287
SELECT DISTINCT - COUNT ( * ) * - - 80 + - + 19 / - 41 * - + 47 AS col0
----
-80

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

skipif mysql # not compatible
query I rowsort label-6288
SELECT MIN ( - + 42 )
----
-42

query I rowsort
SELECT ALL 41 * + 27
----
1107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6290
SELECT ALL 53 DIV + ( - MAX( - ( - 69 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL 53 / + ( - MAX ( - ( - 69 ) ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6291
SELECT + SUM( + - 6 ) AS col0, - COUNT( ALL - 37 )
----
-6
-1

skipif mysql # not compatible
query II rowsort label-6291
SELECT + SUM ( + - 6 ) AS col0, - COUNT ( ALL - 37 )
----
-6
-1

query I rowsort
SELECT + 95 * - 59 - + 26 AS col0
----
-5631

onlyif mysql # aggregate syntax: 
query II rowsort label-6293
SELECT ALL 47 - - COALESCE ( - 26, + 51 ) + 44, 87 + 21 * 65 * - + COUNT( + 76 ) AS col1
----
65
-1278

skipif mysql # not compatible
query II rowsort label-6293
SELECT ALL 47 - - COALESCE ( - 26, + 51 ) + 44, 87 + 21 * 65 * - + COUNT ( + 76 ) AS col1
----
65
-1278

query I rowsort
SELECT 42 + + 74
----
116

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6296
SELECT + 78 DIV 64 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6296
SELECT + 78 / 64 AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT - 59 * - COUNT( * ) + - - 17
----
76

skipif mysql # not compatible
query I rowsort label-6298
SELECT - 59 * - COUNT ( * ) + - - 17
----
76

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6300
SELECT ALL 62 * + - COALESCE ( + NULLIF ( ( + - CAST( + 79 AS SIGNED ) ), + 56 ), - 94 ) AS col2
----
4898

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL 62 * + - COALESCE ( + NULLIF ( ( + - CAST ( + 79 AS INTEGER ) ), + 56 ), - 94 ) AS col2
----
4898

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT + COUNT( * ) + - - 45 * + 59 * + + 66 AS col0
----
175231

skipif mysql # not compatible
query I rowsort label-6301
SELECT + COUNT ( * ) + - - 45 * + 59 * + + 66 AS col0
----
175231

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT ALL - CASE + - 51 WHEN - - 92 THEN NULL WHEN - + COUNT( * ) THEN - + 67 WHEN + 70 + + + 52 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6302
SELECT ALL - CASE + - 51 WHEN - - 92 THEN NULL WHEN - + COUNT ( * ) THEN - + 67 WHEN + 70 + + + 52 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT - + 39 * + NULLIF ( + - COUNT( * ), - 84 / - - 44 * 46 + + + 20 * - 91 + - 13 ) + - + 11 * - 93 - 40 - - 25 + + 94 * - + 24
----
-1209

skipif mysql # not compatible
query I rowsort label-6303
SELECT - + 39 * + NULLIF ( + - COUNT ( * ), - 84 / - - 44 * 46 + + + 20 * - 91 + - 13 ) + - + 11 * - 93 - 40 - - 25 + + 94 * - + 24
----
-1209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6304
SELECT DISTINCT - CAST( ( + ( + - 86 ) ) AS SIGNED ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT - CAST ( ( + ( + - 86 ) ) AS INTEGER ) AS col1
----
86

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

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

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

query II rowsort
SELECT - + 89 + + 86 + 74 * ( + 0 ) AS col0, - 8 * 69 AS col1
----
-3
-552

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT - - COUNT( * ) + - 11 * + 76 AS col1
----
-835

skipif mysql # not compatible
query I rowsort label-6309
SELECT - - COUNT ( * ) + - 11 * + 76 AS col1
----
-835

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT - 64 + + - MIN( 51 ) * + 39 * - ( + + 64 ) AS col2
----
127232

skipif mysql # not compatible
query I rowsort label-6310
SELECT - 64 + + - MIN ( 51 ) * + 39 * - ( + + 64 ) AS col2
----
127232

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6312
SELECT ALL + COUNT( 14 ), 56 AS col0
----
1
56

skipif mysql # not compatible
query II rowsort label-6312
SELECT ALL + COUNT ( 14 ), 56 AS col0
----
1
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT ALL - COUNT( + 94 ) + - COUNT( * ) - - 3 + - + 18
----
-17

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL - COUNT ( + 94 ) + - COUNT ( * ) - - 3 + - + 18
----
-17

query I rowsort
SELECT ALL + 30 + - 15 * 94
----
-1380

query II rowsort
SELECT 33 AS col1, 51 - 41 + - ( - 77 ) * + - 46 AS col1
----
33
-3532

query I rowsort
SELECT - 13 * + 20
----
-260

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6319
SELECT ALL COALESCE ( + CAST( - AVG ( - + ( + 13 ) ) AS SIGNED ), - 89 DIV - 58 )
----
13

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL COALESCE ( + CAST ( - AVG ( - + ( + 13 ) ) AS INTEGER ), - 89 / - 58 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT ALL ( - NULLIF ( - ( + + 40 ), + 86 / - COUNT( * ) ) )
----
40

skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL ( - NULLIF ( - ( + + 40 ), + 86 / - COUNT ( * ) ) )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6321
SELECT DISTINCT + 12 + + 58 + 91 * + CASE - COUNT( * ) WHEN - + 47 THEN 82 ELSE 18 * + 9 END * - 55 + + + 53 - - COUNT( * ) * - + 29 + + 66 DIV + 59 AS col2
----
-810715

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT + 12 + + 58 + 91 * + CASE - COUNT ( * ) WHEN - + 47 THEN 82 ELSE 18 * + 9 END * - 55 + + + 53 - - COUNT ( * ) * - + 29 + + 66 / + 59 AS col2
----
-810715

onlyif mysql # aggregate syntax: 
query II rowsort label-6322
SELECT - MAX( - 84 ) * + 19 AS col2, COUNT( * ) AS col2
----
1596
1

skipif mysql # not compatible
query II rowsort label-6322
SELECT - MAX ( - 84 ) * + 19 AS col2, COUNT ( * ) AS col2
----
1596
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6323
SELECT DISTINCT - 40 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-6323
SELECT DISTINCT - 40 / + 83
----
0

query II rowsort
SELECT ALL + 17, 7 AS col2
----
17
7

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

skipif mysql # not compatible
query I rowsort label-6325
SELECT + MIN ( - 55 )
----
-55

query I rowsort
SELECT DISTINCT - 67 * - 58 AS col0
----
3886

query I rowsort
SELECT + NULLIF ( 75, + + 17 ) + + 16 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT - 88 * - NULLIF ( + CASE + 54 WHEN 18 / - 16 THEN 52 + ( + 12 ) ELSE - 90 * - 34 END, + 18 * - - 95 + + 68 + NULLIF ( COUNT( * ), - 75 * + COUNT( * ) + - 86 * - 44 ) ) AS col1
----
269280

skipif mysql # not compatible
query I rowsort label-6328
SELECT - 88 * - NULLIF ( + CASE + 54 WHEN 18 / - 16 THEN 52 + ( + 12 ) ELSE - 90 * - 34 END, + 18 * - - 95 + + 68 + NULLIF ( COUNT ( * ), - 75 * + COUNT ( * ) + - 86 * - 44 ) ) AS col1
----
269280

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT + ( + + COALESCE ( - + 66, - + 25 * - - COUNT( * ) * SUM( - 50 ) * + + 6 + - 13 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-6329
SELECT + ( + + COALESCE ( - + 66, - + 25 * - - COUNT ( * ) * SUM ( - 50 ) * + + 6 + - 13 ) )
----
-66

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT DISTINCT - COUNT( * ) * 76 + 74 - + + 93 + 16 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-6332
SELECT DISTINCT - COUNT ( * ) * 76 + 74 - + + 93 + 16 AS col1
----
-79

query II rowsort
SELECT ALL + + 2 AS col1, 78 + - 43
----
2
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6334
SELECT + 46, CAST( - + 5 AS SIGNED ) AS col2
----
46
-5

skipif mysql # not compatible
query II rowsort label-6334
SELECT + 46, CAST ( - + 5 AS INTEGER ) AS col2
----
46
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT ALL - 73 * 30 * + 1 * - COALESCE ( - CASE 1 WHEN + MAX( ALL + - 43 ) THEN - 31 * - + 29 * + 86 ELSE NULL END, - 71 ) AS col0
----
-155490

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL - 73 * 30 * + 1 * - COALESCE ( - CASE 1 WHEN + MAX ( ALL + - 43 ) THEN - 31 * - + 29 * + 86 ELSE NULL END, - 71 ) AS col0
----
-155490

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT DISTINCT COUNT( * ) * + + 62 - - 48 * ( + 54 ) + - + 22 * - - 34 + + - 22 + - 70
----
1814

skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT COUNT ( * ) * + + 62 - - 48 * ( + 54 ) + - + 22 * - - 34 + + - 22 + - 70
----
1814

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6338
SELECT + 52 * COALESCE ( + 28, - + 39 + CAST( NULL AS SIGNED ) ) AS col0
----
1456

skipif mysql # not compatible
query I rowsort label-6338
SELECT + 52 * COALESCE ( + 28, - + 39 + CAST ( NULL AS INTEGER ) ) AS col0
----
1456

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT - NULLIF ( - - COUNT( * ), 26 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6340
SELECT - NULLIF ( - - COUNT ( * ), 26 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6341
SELECT + 79 DIV + - 45 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6341
SELECT + 79 / + - 45 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6342
SELECT - 48 DIV + + MIN( ALL + 71 )
----
0

skipif mysql # not compatible
query I rowsort label-6342
SELECT - 48 / + + MIN ( ALL + 71 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT ALL + COUNT( * ) * + 31 + + 59 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-6343
SELECT ALL + COUNT ( * ) * + 31 + + 59 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT + - 83 - + + 8 + + SUM( DISTINCT + 0 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-6344
SELECT + - 83 - + + 8 + + SUM ( DISTINCT + 0 ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT DISTINCT SUM( 59 ) + + + 23 + - 13
----
69

skipif mysql # not compatible
query I rowsort label-6345
SELECT DISTINCT SUM ( 59 ) + + + 23 + - 13
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6346
SELECT DISTINCT + CASE - - CASE + + COUNT( - 29 ) WHEN - + COALESCE ( - 55, + + 73 ) / - 70 + 40 + NULLIF ( + ( + + 26 ), 93 / + COUNT( * ) ) * + 29 + + ( + 76 ) - - COUNT( ALL + + ( - 97 ) ) THEN - 25 + + 32 * + 42 + ( - CAST( + MAX( DISTINCT + 81 ) AS SIGNED ) ) + - COUNT( * ) / - 0 - + 20 WHEN 41 THEN NULL ELSE NULL END WHEN + 66 * + 20 THEN 99 END + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-6346
SELECT DISTINCT + CASE - - CASE + + COUNT ( - 29 ) WHEN - + COALESCE ( - 55, + + 73 ) / - 70 + 40 + NULLIF ( + ( + + 26 ), 93 / + COUNT ( * ) ) * + 29 + + ( + 76 ) - - COUNT ( ALL + + ( - 97 ) ) THEN - 25 + + 32 * + 42 + ( - CAST ( + MAX ( DISTINCT + 81 ) AS INTEGER ) ) + - COUNT ( * ) / - 0 - + 20 WHEN 41 THEN NULL ELSE NULL END WHEN + 66 * + 20 THEN 99 END + + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT + 68 + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-6347
SELECT + 68 + COUNT ( * )
----
69

query I rowsort
SELECT + 8 + - 5 + - 61 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT - 14 - + + MAX( ALL 22 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-6349
SELECT - 14 - + + MAX ( ALL 22 ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT ALL SUM( + 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL SUM ( + 83 ) AS col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6351
SELECT + 84 + CASE - - COUNT( * ) WHEN - - CAST( NULL AS SIGNED ) THEN + - 27 - - 13 + - 0 WHEN + COUNT( * ) * ( + - 93 ) * + - 50 * - 13 THEN NULL ELSE NULL END - + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6351
SELECT + 84 + CASE - - COUNT ( * ) WHEN - - CAST ( NULL AS INTEGER ) THEN + - 27 - - 13 + - 0 WHEN + COUNT ( * ) * ( + - 93 ) * + - 50 * - 13 THEN NULL ELSE NULL END - + 11
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6352
SELECT - 90 * - - 54 * - 70 DIV COUNT( * ) * - - 66 AS col1
----
22453200

skipif mysql # not compatible
query I rowsort label-6352
SELECT - 90 * - - 54 * - 70 / COUNT ( * ) * - - 66 AS col1
----
22453200

query I rowsort
SELECT ALL - 53 * + 38 col0
----
-2014

query I rowsort
SELECT ALL + ( + ( 32 ) ) - - + 85 + 24 * - 58
----
-1275

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

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

query I rowsort
SELECT ALL - 35 * + + 56 AS col0
----
-1960

query I rowsort
SELECT - 54 + 25 * - 94
----
-2404

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6358
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1, + 13 AS col1
----
NULL
13

skipif mysql # not compatible
query II rowsort label-6358
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS col1, + 13 AS col1
----
NULL
13

query I rowsort
SELECT ALL - 36 * + - 62
----
2232

onlyif mysql # aggregate syntax: 
query II rowsort label-6360
SELECT - COUNT( * ) * - - 9 AS col2, + 62 AS col1
----
-9
62

skipif mysql # not compatible
query II rowsort label-6360
SELECT - COUNT ( * ) * - - 9 AS col2, + 62 AS col1
----
-9
62

onlyif mysql # aggregate syntax: 
query II rowsort label-6361
SELECT + SUM( + 23 ) col0, - 22 AS col1
----
23
-22

skipif mysql # not compatible
query II rowsort label-6361
SELECT + SUM ( + 23 ) col0, - 22 AS col1
----
23
-22

query I rowsort
SELECT - 0 + + 11 + + 4 * 95 AS col0
----
391

query I rowsort
SELECT 81 + 62 AS col2
----
143

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

skipif mysql # not compatible
query I rowsort label-6364
SELECT 52 / + + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT + 86 * - - 11 - - CASE - - COUNT( * ) WHEN + 30 * + 91 THEN NULL WHEN 16 / 29 THEN - - 70 ELSE - 73 * + 32 END - + + 6 * 76 * 19 * - COUNT( * ) * - 48 AS col1
----
-417262

skipif mysql # not compatible
query I rowsort label-6365
SELECT + 86 * - - 11 - - CASE - - COUNT ( * ) WHEN + 30 * + 91 THEN NULL WHEN 16 / 29 THEN - - 70 ELSE - 73 * + 32 END - + + 6 * 76 * 19 * - COUNT ( * ) * - 48 AS col1
----
-417262

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT COALESCE ( + 17, - 49 * - COUNT( * ) ) * - COUNT( * ) * - COUNT( * ) - + + 66
----
-49

skipif mysql # not compatible
query I rowsort label-6366
SELECT COALESCE ( + 17, - 49 * - COUNT ( * ) ) * - COUNT ( * ) * - COUNT ( * ) - + + 66
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-6367
SELECT ALL + + 84 DIV + 80 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL + + 84 / + 80 AS col1
----
1

query I rowsort
SELECT - 83 * - 72
----
5976

query I rowsort
SELECT 28 * - - 47 + - + 83
----
1233

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT - 49 * - COUNT( * ) + - + 8 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-6370
SELECT - 49 * - COUNT ( * ) + - + 8 AS col0
----
41

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

skipif mysql # not compatible
query I rowsort label-6371
SELECT + - SUM ( + - 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT ALL + 92 + + COUNT( * ) + + + 85
----
178

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL + 92 + + COUNT ( * ) + + + 85
----
178

query I rowsort
SELECT + 72 + + 50
----
122

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT ALL - COUNT( * ) * 57
----
-57

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL - COUNT ( * ) * 57
----
-57

query I rowsort
SELECT ALL - - NULLIF ( 78, - - 91 * + - 64 )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6377
SELECT ALL - CAST( + 23 AS SIGNED ) AS col2, + 67
----
-23
67

skipif mysql # not compatible
query II rowsort label-6377
SELECT ALL - CAST ( + 23 AS INTEGER ) AS col2, + 67
----
-23
67

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

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

query I rowsort
SELECT DISTINCT - 68 * 40
----
-2720

query I rowsort
SELECT 52 * + 2 AS col1
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6381
SELECT ALL - COUNT( * ) DIV - MIN( DISTINCT - 12 ) + + ( - - 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL - COUNT ( * ) / - MIN ( DISTINCT - 12 ) + + ( - - 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT 42 + MAX( - 81 ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-6382
SELECT 42 + MAX ( - 81 ) col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT - MAX( DISTINCT 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-6383
SELECT - MAX ( DISTINCT 45 )
----
-45

query I rowsort
SELECT ( - - 47 ) + 92 col0
----
139

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

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

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

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

query I rowsort
SELECT 27 * - 73
----
-1971

onlyif mysql # aggregate syntax: 
query III rowsort label-6388
SELECT ALL 26 col2, + 56 * 71, 42 + NULLIF ( - CASE - 52 WHEN - 20 * + 32 + - COUNT( * ) THEN + + 27 * + 36 ELSE - - 53 + + 97 END, - 5 ) col2
----
26
3976
-108

skipif mysql # not compatible
query III rowsort label-6388
SELECT ALL 26 col2, + 56 * 71, 42 + NULLIF ( - CASE - 52 WHEN - 20 * + 32 + - COUNT ( * ) THEN + + 27 * + 36 ELSE - - 53 + + 97 END, - 5 ) col2
----
26
3976
-108

query I rowsort
SELECT DISTINCT 7 - - 9
----
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT ALL COUNT( * ) * - + 24 * ( - COALESCE ( - 27, - 80 * + + COALESCE ( + 73, + - 64 ), 63 ) ) AS col2
----
-648

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL COUNT ( * ) * - + 24 * ( - COALESCE ( - 27, - 80 * + + COALESCE ( + 73, + - 64 ), 63 ) ) AS col2
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT MIN( ALL - 92 ) * - COUNT( * ) * 97 AS col1
----
8924

skipif mysql # not compatible
query I rowsort label-6392
SELECT MIN ( ALL - 92 ) * - COUNT ( * ) * 97 AS col1
----
8924

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT COUNT( * ) * MAX( ALL + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-6393
SELECT COUNT ( * ) * MAX ( ALL + 45 )
----
45

query I rowsort
SELECT - 4 col2
----
-4

query I rowsort
SELECT ALL + 5 * - 85
----
-425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6396
SELECT CASE - - ( 61 ) WHEN - 66 - - + CAST( 40 AS SIGNED ) THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE 81 + - 40 - MAX( ALL + - 70 ) DIV - 92 END - - ( 1 )
----
42

skipif mysql # not compatible
query I rowsort label-6396
SELECT CASE - - ( 61 ) WHEN - 66 - - + CAST ( 40 AS INTEGER ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE 81 + - 40 - MAX ( ALL + - 70 ) / - 92 END - - ( 1 )
----
42

query I rowsort
SELECT ( + 49 ) + - + 85 AS col2
----
-36

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

query I rowsort
SELECT + 14 col0
----
14

query I rowsort
SELECT ALL 23 * + 55
----
1265

onlyif mysql # DIV for integer division: 
query I rowsort label-6401
SELECT 87 DIV 58
----
1

skipif mysql # not compatible
query I rowsort label-6401
SELECT 87 / 58
----
1

query I rowsort
SELECT ( 48 ) * 36
----
1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6403
SELECT 5 * COUNT( * ) + 11 DIV + 2 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6403
SELECT 5 * COUNT ( * ) + 11 / + 2 AS col0
----
10

query I rowsort
SELECT 3 + - 77 col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT - 44 * - 90 - 68 * + COUNT( * )
----
3892

skipif mysql # not compatible
query I rowsort label-6405
SELECT - 44 * - 90 - 68 * + COUNT ( * )
----
3892

query I rowsort
SELECT DISTINCT - 15 + + 55
----
40

query I rowsort
SELECT ALL + 60 + ( NULLIF ( 71, + 28 ) )
----
131

query I rowsort
SELECT 83 * 15
----
1245

query I rowsort
SELECT DISTINCT + 42 + - ( + 37 ) * - 43
----
1633

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

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

query I rowsort
SELECT DISTINCT - 15 + - 26
----
-41

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

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

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

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

query I rowsort
SELECT DISTINCT + 43 + 14
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT DISTINCT CASE + 99 WHEN SUM( DISTINCT 57 ) * + 49 THEN - SUM( 33 ) ELSE + 10 * + CASE 96 / 57 WHEN 5 THEN - COUNT( * ) WHEN 71 * - 96 + 94 THEN + 81 ELSE NULL END + 50 END * + ( - 48 * 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT CASE + 99 WHEN SUM ( DISTINCT 57 ) * + 49 THEN - SUM ( 33 ) ELSE + 10 * + CASE 96 / 57 WHEN 5 THEN - COUNT ( * ) WHEN 71 * - 96 + 94 THEN + 81 ELSE NULL END + 50 END * + ( - 48 * 5 ) AS col2
----
NULL

query I rowsort
SELECT 92 - - 81 AS col2
----
173

query I rowsort
SELECT ALL + 71 * 80
----
5680

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT 2 + + COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6418
SELECT 2 + + COUNT ( * ) AS col2
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT DISTINCT + MAX( - 51 ) * 11 col1
----
-561

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT + MAX ( - 51 ) * 11 col1
----
-561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6421
SELECT ALL - CAST( + 28 AS SIGNED ) - 51 col2
----
-79

skipif mysql # not compatible
query I rowsort label-6421
SELECT ALL - CAST ( + 28 AS INTEGER ) - 51 col2
----
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT DISTINCT + 53 * + COUNT( * ) col2
----
53

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT + 53 * + COUNT ( * ) col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6424
SELECT CASE - 4 WHEN + COUNT( * ) + - 99 THEN + 72 ELSE 9 * + CAST( NULL AS SIGNED ) + + 13 END * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6424
SELECT CASE - 4 WHEN + COUNT ( * ) + - 99 THEN + 72 ELSE 9 * + CAST ( NULL AS INTEGER ) + + 13 END * + 11
----
NULL

query I rowsort
SELECT 27 + + 4
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6426
SELECT ALL 89 DIV 18
----
4

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL 89 / 18
----
4

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

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

query I rowsort
SELECT + ( 24 ) - - 12 col0
----
36

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

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

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

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

query I rowsort
SELECT DISTINCT 24 * - 28
----
-672

query I rowsort
SELECT - 46 AS col0
----
-46

query I rowsort
SELECT + 65 + + 25 AS col0
----
90

query I rowsort
SELECT DISTINCT CASE + 27 WHEN 15 * - 88 THEN NULL WHEN - 52 THEN + AVG ( + 36 ) + - 98 ELSE 32 END
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT DISTINCT 88 + - ( + ( + CASE + 23 WHEN 16 * + 64 THEN + 13 WHEN ( + CASE 12 WHEN + 91 / + NULLIF ( 43, NULLIF ( - CASE 63 WHEN - 75 * + COUNT( * ) THEN 3 END, - 49 ) + + 81 / - AVG ( DISTINCT 19 + - 14 ) ) + 60 THEN NULL WHEN 80 * - 49 THEN NULL WHEN 39 THEN 65 + - MIN( - 37 ) END ) * - 64 + 96 THEN - COUNT( * ) END ) ) * 48 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6435
SELECT DISTINCT 88 + - ( + ( + CASE + 23 WHEN 16 * + 64 THEN + 13 WHEN ( + CASE 12 WHEN + 91 / + NULLIF ( 43, NULLIF ( - CASE 63 WHEN - 75 * + COUNT ( * ) THEN 3 END, - 49 ) + + 81 / - AVG ( DISTINCT 19 + - 14 ) ) + 60 THEN NULL WHEN 80 * - 49 THEN NULL WHEN 39 THEN 65 + - MIN ( - 37 ) END ) * - 64 + 96 THEN - COUNT ( * ) END ) ) * 48 col2
----
NULL

query I rowsort
SELECT + + 11 + - 58 AS col0
----
-47

query I rowsort
SELECT + - 47 + 7 * + 82 col0
----
527

query I rowsort
SELECT ALL + 66 * - 54 + + 48
----
-3516

query I rowsort
SELECT ALL + + 10 * COALESCE ( 85 - 3, 83 * 36, + 42 * ( + CASE 97 WHEN - 65 + - 47 * + 52 THEN NULL ELSE 36 END ) ) + - 42 AS col0
----
778

query I rowsort
SELECT + - 33
----
-33

query I rowsort
SELECT + - 1 * - ( 98 + + 15 ) + + 19 * 38
----
835

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT ALL - 36 * + COUNT( * ) + - COALESCE ( + 55, - COALESCE ( - 8, - 84 ) + - 23 ) * + 92 AS col2
----
-5096

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL - 36 * + COUNT ( * ) + - COALESCE ( + 55, - COALESCE ( - 8, - 84 ) + - 23 ) * + 92 AS col2
----
-5096

query I rowsort
SELECT DISTINCT + - 2
----
-2

query I rowsort
SELECT ALL + 72 * 0 - - 47 * - 30 AS col1
----
-1410

query I rowsort
SELECT DISTINCT 46 * - 94 AS col0
----
-4324

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT + 41 * - CASE - 76 WHEN - 3 THEN NULL ELSE - 4 END + SUM( + 94 + 75 ) * + ( - 96 ) AS col2
----
-16060

skipif mysql # not compatible
query I rowsort label-6447
SELECT + 41 * - CASE - 76 WHEN - 3 THEN NULL ELSE - 4 END + SUM ( + 94 + 75 ) * + ( - 96 ) AS col2
----
-16060

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT - - COUNT( * ) - 54 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-6448
SELECT - - COUNT ( * ) - 54 AS col1
----
-53

query I rowsort
SELECT - - COALESCE ( - 51, + 94, 72 ) * 52 AS col1
----
-2652

query I rowsort
SELECT + 45 * 4 + 6 AS col2
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT - 57 * - MIN( ALL 29 - - 78 ) + - 27 AS col1
----
6072

skipif mysql # not compatible
query I rowsort label-6451
SELECT - 57 * - MIN ( ALL 29 - - 78 ) + - 27 AS col1
----
6072

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT + 57 + - SUM( + NULLIF ( + 72, - 10 + + 25 * + 7 ) ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-6452
SELECT + 57 + - SUM ( + NULLIF ( + 72, - 10 + + 25 * + 7 ) ) AS col1
----
-15

query I rowsort
SELECT - 61 * + 74
----
-4514

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6454
SELECT - CASE COUNT( * ) WHEN COUNT( * ) * 99 THEN NULL ELSE 80 END + - 16 DIV + 44 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6454
SELECT - CASE COUNT ( * ) WHEN COUNT ( * ) * 99 THEN NULL ELSE 80 END + - 16 / + 44 AS col0
----
-80

query I rowsort
SELECT - 44 * - 31 * 20 + - 80 col0
----
27200

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

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

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

query I rowsort
SELECT ALL - 67 * - 65
----
4355

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT DISTINCT - CASE + - 79 WHEN 42 THEN COUNT( * ) + - 99 WHEN 56 * + SUM( 66 ) THEN - COUNT( * ) + - 1 ELSE 70 * 83 END * + 45
----
-261450

skipif mysql # not compatible
query I rowsort label-6459
SELECT DISTINCT - CASE + - 79 WHEN 42 THEN COUNT ( * ) + - 99 WHEN 56 * + SUM ( 66 ) THEN - COUNT ( * ) + - 1 ELSE 70 * 83 END * + 45
----
-261450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6460
SELECT - CAST( + COUNT( 39 ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6460
SELECT - CAST ( + COUNT ( 39 ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT - COALESCE ( + 63, - 99 ) + + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-6461
SELECT - COALESCE ( + 63, - 99 ) + + COUNT ( * )
----
-62

query I rowsort
SELECT ALL NULLIF ( + 35, 45 * + COALESCE ( - 82, + 55, - 88 * AVG ( ALL 37 ) ) + + 80 ) AS col2
----
35

query I rowsort
SELECT DISTINCT + 22 * 60
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT - SUM( DISTINCT 25 ) * - 86 AS col0
----
2150

skipif mysql # not compatible
query I rowsort label-6464
SELECT - SUM ( DISTINCT 25 ) * - 86 AS col0
----
2150

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

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

query I rowsort
SELECT DISTINCT 70 + 32 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT ALL COUNT( * ) + - + 64
----
-63

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL COUNT ( * ) + - + 64
----
-63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT - 5 - + MAX( DISTINCT 10 ) * + ( NULLIF ( - 11, 98 / 87 ) ) AS col0
----
105

skipif mysql # not compatible
query I rowsort label-6470
SELECT - 5 - + MAX ( DISTINCT 10 ) * + ( NULLIF ( - 11, 98 / 87 ) ) AS col0
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-6471
SELECT DISTINCT + 15 + - 78 + COALESCE ( 42 + - 66 DIV 29, - 20 - + 4 ) * 67 AS col1
----
2617

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT + 15 + - 78 + COALESCE ( 42 + - 66 / 29, - 20 - + 4 ) * 67 AS col1
----
2617

query I rowsort
SELECT + 72 + - - 92 * 70
----
6512

query I rowsort
SELECT ALL 46 + - - 97
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6474
SELECT - 16 * - - 54 DIV COUNT( * ) AS col1
----
-864

skipif mysql # not compatible
query I rowsort label-6474
SELECT - 16 * - - 54 / COUNT ( * ) AS col1
----
-864

query I rowsort
SELECT DISTINCT + + 35 + + 82
----
117

query I rowsort
SELECT + NULLIF ( + 14, - ( 69 ) ) - 42 AS col1
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-6477
SELECT ALL 85 DIV + 31 + 72 * 62 - - 85 AS col2
----
4551

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL 85 / + 31 + 72 * 62 - - 85 AS col2
----
4551

query I rowsort
SELECT ALL - - 22 * - 51
----
-1122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6479
SELECT ALL + - 70 DIV 52 - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL + - 70 / 52 - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT SUM( 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-6480
SELECT SUM ( 51 ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT + 88 + NULLIF ( ( COUNT( * ) ), + 99 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-6481
SELECT + 88 + NULLIF ( ( COUNT ( * ) ), + 99 ) AS col2
----
89

query I rowsort
SELECT DISTINCT + 68 col0
----
68

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

query I rowsort
SELECT + 59 * - 4 + + 22 * 77 AS col1
----
1458

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT ALL + COUNT( * ) * + ( 29 ) + - 82 * - 99 AS col1
----
8147

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL + COUNT ( * ) * + ( 29 ) + - 82 * - 99 AS col1
----
8147

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6487
SELECT DISTINCT + 88 AS col2, NULLIF ( 60, 66 + ( COALESCE ( 51, - 86 + COUNT( * ), + 27 / 93 + - 84 * + 40 ) ) / + 71 ) AS col1
----
88
60

skipif mysql # not compatible
query II rowsort label-6487
SELECT DISTINCT + 88 AS col2, NULLIF ( 60, 66 + ( COALESCE ( 51, - 86 + COUNT ( * ), + 27 / 93 + - 84 * + 40 ) ) / + 71 ) AS col1
----
88
60

query I rowsort
SELECT ALL 13 * - 34
----
-442

query I rowsort
SELECT + 19 + - 74 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT ( - 25 ) + + 52 - + COUNT( DISTINCT - 69 )
----
26

skipif mysql # not compatible
query I rowsort label-6490
SELECT ( - 25 ) + + 52 - + COUNT ( DISTINCT - 69 )
----
26

query II rowsort
SELECT 82 AS col0, 8 AS col0
----
82
8

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

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

query I rowsort
SELECT 81 * - 14 AS col1
----
-1134

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT DISTINCT COUNT( * ) + + 48 + 70 * ( - 6 ) AS col0
----
-371

skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT COUNT ( * ) + + 48 + 70 * ( - 6 ) AS col0
----
-371

query I rowsort
SELECT ALL - 46 + 85 AS col0
----
39

query I rowsort
SELECT 71 + - ( - 64 ) - 91 / CASE + 33 WHEN 49 - AVG ( - 72 ) / 51 THEN 94 WHEN CASE + 53 WHEN - 71 * 5 + + 50 THEN + ( + 73 ) * - 36 WHEN 82 THEN - 99 * - 15 ELSE 80 / - 16 END THEN - 91 END AS col1
----
NULL

query I rowsort
SELECT 81 + + + 38
----
119

query I rowsort
SELECT ALL + 73 + + 28 col1
----
101

query I rowsort
SELECT ALL + 46 + + - 25 * 89 AS col0
----
-2179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6500
SELECT CASE + 54 WHEN + 94 - + 34 THEN ( + ( + 49 ) ) + + ( 30 + 10 ) WHEN + 26 * + 73 THEN 35 / CAST( NULL AS SIGNED ) END + ( + 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6500
SELECT CASE + 54 WHEN + 94 - + 34 THEN ( + ( + 49 ) ) + + ( 30 + 10 ) WHEN + 26 * + 73 THEN 35 / CAST ( NULL AS INTEGER ) END + ( + 65 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT 97 - - SUM( DISTINCT + 4 ) - - ( 61 + + COUNT( * ) ) * - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-6501
SELECT 97 - - SUM ( DISTINCT + 4 ) - - ( 61 + + COUNT ( * ) ) * - COUNT ( * )
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6502
SELECT 98 AS col0, + 41 * + CASE - ( + CAST( 89 AS DECIMAL ) ) WHEN + 92 * 64 + CAST( 8 AS DECIMAL ) THEN 46 + - 86 WHEN 45 * 58 THEN NULL ELSE NULL END AS col2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-6502
SELECT 98 AS col0, + 41 * + CASE - ( + CAST ( 89 AS REAL ) ) WHEN + 92 * 64 + CAST ( 8 AS REAL ) THEN 46 + - 86 WHEN 45 * 58 THEN NULL ELSE NULL END AS col2
----
98
NULL

query I rowsort
SELECT 6 - + 18
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT ALL - MAX( - + 43 ) * - 84 AS col1
----
-3612

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL - MAX ( - + 43 ) * - 84 AS col1
----
-3612

query I rowsort
SELECT 16 + - 12 + - - 93 * - 79
----
-7343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6506
SELECT - 65 col1, - COUNT( * ) * 41 / 23 + CAST( NULL AS SIGNED )
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-6506
SELECT - 65 col1, - COUNT ( * ) * 41 / 23 + CAST ( NULL AS INTEGER )
----
-65
NULL

query I rowsort
SELECT DISTINCT - 56 * + 81 * 47
----
-213192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6508
SELECT DISTINCT CASE 4 WHEN ( MAX( ALL 47 ) ) * 65 THEN NULL ELSE 39 DIV 41 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT CASE 4 WHEN ( MAX ( ALL 47 ) ) * 65 THEN NULL ELSE 39 / 41 END AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT 63 + + 1 + + - MAX( DISTINCT - 29 )
----
93

skipif mysql # not compatible
query I rowsort label-6509
SELECT 63 + + 1 + + - MAX ( DISTINCT - 29 )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-6510
SELECT ALL + 65 - - 35 + + + 0 DIV + 87
----
100

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL + 65 - - 35 + + + 0 / + 87
----
100

query II rowsort
SELECT 6, 99 AS col1
----
6
99

query I rowsort
SELECT ALL ( - 15 ) * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT 27 + - SUM( - - 64 ) + + 92 * - COUNT( * ) * CASE WHEN NOT 19 * 73 <= ( NULL ) THEN - ( 76 ) WHEN COUNT( * ) / 75 IS NULL THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6513
SELECT 27 + - SUM ( - - 64 ) + + 92 * - COUNT ( * ) * CASE WHEN NOT 19 * 73 <= ( NULL ) THEN - ( 76 ) WHEN COUNT ( * ) / 75 IS NULL THEN NULL ELSE NULL END
----
NULL

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

query I rowsort
SELECT 73 + - 69 AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6516
SELECT + 67, CAST( - 60 AS SIGNED ) - COUNT( * ) AS col0
----
67
-61

skipif mysql # not compatible
query II rowsort label-6516
SELECT + 67, CAST ( - 60 AS INTEGER ) - COUNT ( * ) AS col0
----
67
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT DISTINCT - + COALESCE ( - COUNT( ALL 28 ), - 30, 60 * - CASE 48 WHEN NULLIF ( 16, 43 ) + + 9 THEN NULL ELSE 30 END - - 20 )
----
1

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT - + COALESCE ( - COUNT ( ALL 28 ), - 30, 60 * - CASE 48 WHEN NULLIF ( 16, 43 ) + + 9 THEN NULL ELSE 30 END - - 20 )
----
1

query I rowsort
SELECT ALL - + 95 * - 89
----
8455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6519
SELECT 63 * - CASE - - 65 WHEN 2 THEN NULL WHEN - NULLIF ( - 42, NULLIF ( - ( + 74 ), 33 + + CAST( 72 AS SIGNED ) ) ) + 38 THEN COUNT( * ) WHEN + 11 + ( + 5 ) THEN 4 * - 24 END * - 39 - - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6519
SELECT 63 * - CASE - - 65 WHEN 2 THEN NULL WHEN - NULLIF ( - 42, NULLIF ( - ( + 74 ), 33 + + CAST ( 72 AS INTEGER ) ) ) + 38 THEN COUNT ( * ) WHEN + 11 + ( + 5 ) THEN 4 * - 24 END * - 39 - - 35 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT ALL + COUNT( * ) * - 26 + - 38
----
-64

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL + COUNT ( * ) * - 26 + - 38
----
-64

query I rowsort
SELECT + 74 * + - 83 + - 23 - ( + 49 + 6 )
----
-6220

query I rowsort
SELECT ALL - - 8
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6524
SELECT - 86 DIV + 95 + - - 3
----
3

skipif mysql # not compatible
query I rowsort label-6524
SELECT - 86 / + 95 + - - 3
----
3

query I rowsort
SELECT ALL - - 15 * + - 81 AS col0
----
-1215

query I rowsort
SELECT DISTINCT + - 53 * - 35
----
1855

onlyif mysql # DIV for integer division: 
query I rowsort label-6527
SELECT 34 DIV - + ( - 95 )
----
0

skipif mysql # not compatible
query I rowsort label-6527
SELECT 34 / - + ( - 95 )
----
0

query I rowsort
SELECT - 94 * 16 + - + 3 + - 24
----
-1531

query II rowsort
SELECT 36 * + 47 AS col2, - 0
----
1692
0

query I rowsort
SELECT 40 * - - 30 + + 99 + + ( 47 ) * 20 AS col2
----
2239

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

query I rowsort
SELECT ALL 60 + + 43 * - 37 * + 62
----
-98582

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT COUNT( * ) * - 77 + - + ( - 63 )
----
-14

skipif mysql # not compatible
query I rowsort label-6533
SELECT COUNT ( * ) * - 77 + - + ( - 63 )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6534
SELECT + COUNT( + 75 ) * - COUNT( * ) + - COUNT( * ) DIV + 17 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6534
SELECT + COUNT ( + 75 ) * - COUNT ( * ) + - COUNT ( * ) / + 17 AS col0
----
-1

query I rowsort
SELECT DISTINCT 6 * + 66 AS col1
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT - COUNT( DISTINCT - 87 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6536
SELECT - COUNT ( DISTINCT - 87 ) AS col1
----
-1

query I rowsort
SELECT ALL 0 + + 72 + + + 41
----
113

query I rowsort
SELECT - 97 AS col1
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6539
SELECT 6 + - 2 DIV + - 18 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6539
SELECT 6 + - 2 / + - 18 AS col0
----
6

query I rowsort
SELECT ALL 94 + - + 63
----
31

query I rowsort
SELECT 16 + - 93
----
-77

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6543
SELECT ALL + 15 DIV + - 25 * - + 27
----
0

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL + 15 / + - 25 * - + 27
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6544
SELECT ( + - COUNT( * ) ) DIV + - 73 * - - 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6544
SELECT ( + - COUNT ( * ) ) / + - 73 * - - 23 AS col2
----
0

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6547
SELECT - 64 - - + 10 - - - 36 + - COUNT( 57 ) DIV + 93 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-6547
SELECT - 64 - - + 10 - - - 36 + - COUNT ( 57 ) / + 93 AS col2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-6548
SELECT 8 DIV + 42
----
0

skipif mysql # not compatible
query I rowsort label-6548
SELECT 8 / + 42
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6549
SELECT + ( + - 86 ) * - 83 + + 5 + MAX( 91 ) / - ( + 71 * 35 + CAST( NULL AS SIGNED ) ) / COALESCE ( + 76, - 3 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6549
SELECT + ( + - 86 ) * - 83 + + 5 + MAX ( 91 ) / - ( + 71 * 35 + CAST ( NULL AS INTEGER ) ) / COALESCE ( + 76, - 3 ) col1
----
NULL

query I rowsort
SELECT 11 - + ( + - 48 ) col0
----
59

query I rowsort
SELECT - NULLIF ( - 92, - 31 ) * + 43 AS col0
----
3956

query I rowsort
SELECT + 56 + + COALESCE ( - 84, 61 )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6553
SELECT - - CASE + 74 WHEN MAX( - - 94 ) THEN - MAX( 74 ) + + 48 WHEN - COUNT( DISTINCT CAST( - 82 AS SIGNED ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6553
SELECT - - CASE + 74 WHEN MAX ( - - 94 ) THEN - MAX ( 74 ) + + 48 WHEN - COUNT ( DISTINCT CAST ( - 82 AS INTEGER ) ) THEN NULL END
----
NULL

query I rowsort
SELECT ( 94 ) + - + 55 * + 48 AS col1
----
-2546

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

query I rowsort
SELECT ( 51 )
----
51

query I rowsort
SELECT DISTINCT 93 * - + 74 + + + 34 AS col2
----
-6848

query I rowsort
SELECT DISTINCT - - 1 * - 87
----
-87

query I rowsort
SELECT ALL - - 80
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT 57 * - + 12 + + - ( - 85 ) + + NULLIF ( - 99, - SUM( - 50 ) ) AS col0
----
-698

skipif mysql # not compatible
query I rowsort label-6560
SELECT 57 * - + 12 + + - ( - 85 ) + + NULLIF ( - 99, - SUM ( - 50 ) ) AS col0
----
-698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6561
SELECT ALL - 37 * + + 93 * 86 + + - 92 + + 4 DIV COUNT( * )
----
-296014

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL - 37 * + + 93 * 86 + + - 92 + + 4 / COUNT ( * )
----
-296014

query I rowsort
SELECT 26 col1
----
26

query I rowsort
SELECT DISTINCT + 94 * - 24 - + + 14 + - 40 * - 27 + + 54 AS col1
----
-1136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6564
SELECT ALL + 15 * COUNT( * ) + + 10 + 64 DIV 43 + 76
----
102

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL + 15 * COUNT ( * ) + + 10 + 64 / 43 + 76
----
102

query I rowsort
SELECT DISTINCT ( 11 ) * - 85 + 94
----
-841

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT ALL SUM( ALL - 42 ) * - 28 * 46 + + - 32 * + 37 AS col1
----
52912

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL SUM ( ALL - 42 ) * - 28 * 46 + + - 32 * + 37 AS col1
----
52912

query I rowsort
SELECT DISTINCT - 0 * + ( - COALESCE ( + 89, - 40 ) ) * - 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT ALL 44 * 68 + - 55 * - MAX( + 86 ) AS col1
----
7722

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL 44 * 68 + - 55 * - MAX ( + 86 ) AS col1
----
7722

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

skipif mysql # not compatible
query I rowsort label-6569
SELECT + CAST ( NULL AS REAL ) * - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT MAX( DISTINCT - - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-6570
SELECT MAX ( DISTINCT - - 78 )
----
78

query I rowsort
SELECT - 6 + + 97
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT + COUNT( * ) * ( - + CASE + 26 WHEN - + 86 / 20 THEN 11 ELSE 39 END )
----
-39

skipif mysql # not compatible
query I rowsort label-6572
SELECT + COUNT ( * ) * ( - + CASE + 26 WHEN - + 86 / 20 THEN 11 ELSE 39 END )
----
-39

query II rowsort
SELECT ALL + 32, + CASE - - 1 WHEN 72 + 7 THEN 79 ELSE NULL END AS col2
----
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT + ( - 17 ) * + + 33 + - COUNT( * ) + + 42 * 51 AS col1
----
1580

skipif mysql # not compatible
query I rowsort label-6574
SELECT + ( - 17 ) * + + 33 + - COUNT ( * ) + + 42 * 51 AS col1
----
1580

onlyif mysql # DIV for integer division: 
query I rowsort label-6575
SELECT + 88 DIV + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6575
SELECT + 88 / + 90 AS col1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6577
SELECT + CASE - COUNT( * ) WHEN - 84 + CAST( NULL AS SIGNED ) * - + 20 * - 79 - + 14 THEN NULL WHEN 70 THEN NULL WHEN + 43 THEN - ( NULLIF ( - 8, - 72 * - 83 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6577
SELECT + CASE - COUNT ( * ) WHEN - 84 + CAST ( NULL AS INTEGER ) * - + 20 * - 79 - + 14 THEN NULL WHEN 70 THEN NULL WHEN + 43 THEN - ( NULLIF ( - 8, - 72 * - 83 ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6578
SELECT DISTINCT - 28 - CAST( - + ( 95 ) AS SIGNED ) col2
----
67

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT - 28 - CAST ( - + ( 95 ) AS INTEGER ) col2
----
67

query I rowsort
SELECT + 52 - + - 36
----
88

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

query I rowsort
SELECT DISTINCT 11
----
11

query I rowsort
SELECT + 46 * + + 4
----
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6583
SELECT - + 43 + + ( + - SUM( ALL - CAST( NULL AS SIGNED ) ) ) + - SUM( DISTINCT 24 ) / + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6583
SELECT - + 43 + + ( + - SUM ( ALL - CAST ( NULL AS INTEGER ) ) ) + - SUM ( DISTINCT 24 ) / + 55 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6584
SELECT ALL + 57 * - 11 + + - ( + COUNT( * ) ) DIV + 33 col1
----
-627

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL + 57 * - 11 + + - ( + COUNT ( * ) ) / + 33 col1
----
-627

onlyif mysql # aggregate syntax: 
query II rowsort label-6585
SELECT + + 51 * - - SUM( DISTINCT - 92 ) AS col1, + 11 AS col2
----
-4692
11

skipif mysql # not compatible
query II rowsort label-6585
SELECT + + 51 * - - SUM ( DISTINCT - 92 ) AS col1, + 11 AS col2
----
-4692
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT + NULLIF ( 78, 83 + COUNT( * ) + + - 6 ) * 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6586
SELECT + NULLIF ( 78, 83 + COUNT ( * ) + + - 6 ) * 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT + + MAX( + 91 ) - + + ( - 23 ) + - 94 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-6587
SELECT + + MAX ( + 91 ) - + + ( - 23 ) + - 94 AS col1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6588
SELECT ALL - 43, - CAST( NULL AS SIGNED ) * 3 * 91 * + + 56 AS col0
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-6588
SELECT ALL - 43, - CAST ( NULL AS INTEGER ) * 3 * 91 * + + 56 AS col0
----
-43
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6590
SELECT ALL COUNT( + - 0 ) * 87 * + CAST( NULL AS SIGNED ) + + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL COUNT ( + - 0 ) * 87 * + CAST ( NULL AS INTEGER ) + + - 78
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6591
SELECT ALL + 5 + 73 DIV - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL + 5 + 73 / - COUNT ( * )
----
-68

query I rowsort
SELECT ALL + + 27 * - - 7
----
189

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

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

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

skipif mysql # not compatible
query I rowsort label-6594
SELECT - SUM ( + 80 )
----
-80

query I rowsort
SELECT + + ( - 52 ) * - + 9
----
468

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

query I rowsort
SELECT ALL - 80 * - NULLIF ( - 98, 91 ) * + 26 AS col2
----
-203840

query I rowsort
SELECT + - 75 + - + 4 + - NULLIF ( - ( - - 91 ), ( - 85 ) )
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-6599
SELECT - 70 DIV - 68 + - 96
----
-95

skipif mysql # not compatible
query I rowsort label-6599
SELECT - 70 / - 68 + - 96
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6600
SELECT - + COALESCE ( - 84, + 19 + + 38 * + SUM( 72 ) * COALESCE ( 0, 32, 93 + + 54 ), 24 - 99 * - COUNT( * ) ) + 0 DIV 21
----
84

skipif mysql # not compatible
query I rowsort label-6600
SELECT - + COALESCE ( - 84, + 19 + + 38 * + SUM ( 72 ) * COALESCE ( 0, 32, 93 + + 54 ), 24 - 99 * - COUNT ( * ) ) + 0 / 21
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT DISTINCT + NULLIF ( 84, + 97 + - 1 * - NULLIF ( - 22, COUNT( * ) + 69 ) * + ( - 31 ) ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT + NULLIF ( 84, + 97 + - 1 * - NULLIF ( - 22, COUNT ( * ) + 69 ) * + ( - 31 ) ) AS col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6602
SELECT ALL COALESCE ( + + 71, - 31, + - 75 * - 23 DIV + 36 - COALESCE ( 32 + - 24, + 98 + - 41 * 59 ) * 88 ) DIV - 72 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL COALESCE ( + + 71, - 31, + - 75 * - 23 / + 36 - COALESCE ( 32 + - 24, + 98 + - 41 * 59 ) * 88 ) / - 72 + COUNT ( * )
----
1

query I rowsort
SELECT + - 32 * - + 25 * 2 + - 28 * - + 3 + ( + ( 82 ) ) AS col2
----
1766

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

query II rowsort
SELECT ALL + 91 AS col1, 32 AS col0
----
91
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT MIN( ALL + 41 ) * ( 16 ) + - COUNT( * ) + 5 AS col2
----
660

skipif mysql # not compatible
query I rowsort label-6606
SELECT MIN ( ALL + 41 ) * ( 16 ) + - COUNT ( * ) + 5 AS col2
----
660

query I rowsort
SELECT ALL 31 * - - 83 AS col0
----
2573

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6609
SELECT ALL + 45, 60 DIV - - 94 + - 69 AS col1
----
45
-69

skipif mysql # not compatible
query II rowsort label-6609
SELECT ALL + 45, 60 / - - 94 + - 69 AS col1
----
45
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6610
SELECT - 19 + - NULLIF ( - CAST( 44 AS SIGNED ), + MAX( DISTINCT 46 ) / COUNT( * ) + 14 ) + + COUNT( ALL + 14 )
----
26

skipif mysql # not compatible
query I rowsort label-6610
SELECT - 19 + - NULLIF ( - CAST ( 44 AS INTEGER ), + MAX ( DISTINCT 46 ) / COUNT ( * ) + 14 ) + + COUNT ( ALL + 14 )
----
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT - 36 + - COUNT( ALL - 45 ) * - 6 * COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-6612
SELECT - 36 + - COUNT ( ALL - 45 ) * - 6 * COUNT ( * )
----
-30

query I rowsort
SELECT + 82 col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT + 2 * 4 + + 44 + + 43 * 13 + + CASE COUNT( * ) WHEN 13 + - 2 THEN 10 ELSE NULL END + - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6614
SELECT + 2 * 4 + + 44 + + 43 * 13 + + CASE COUNT ( * ) WHEN 13 + - 2 THEN 10 ELSE NULL END + - 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6615
SELECT ALL + ( 1 ), MAX( DISTINCT 85 ) DIV 2 AS col0
----
1
42

skipif mysql # not compatible
query II rowsort label-6615
SELECT ALL + ( 1 ), MAX ( DISTINCT 85 ) / 2 AS col0
----
1
42

query II rowsort
SELECT ALL + 35 col2, - 79
----
35
-79

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

query I rowsort
SELECT 14 * - 89 + + 21 + + - ( 23 )
----
-1248

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

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

query I rowsort
SELECT + 65 + 74
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-6622
SELECT ALL + 42 DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL + 42 / + 64
----
0

query I rowsort
SELECT + 45 * - 60 + + - 65 AS col1
----
-2765

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

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

query I rowsort
SELECT ALL - 15 * + - 49 * + 41
----
30135

onlyif mysql # DIV for integer division: 
query I rowsort label-6626
SELECT - 46 * 95 DIV + 51 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-6626
SELECT - 46 * 95 / + 51 AS col0
----
-85

query I rowsort
SELECT COALESCE ( 65, + 77 )
----
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6628
SELECT ALL + 52 * - - 9 * - 14 * - CAST( + CASE 40 WHEN + ( 78 ) THEN + 87 / 85 END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL + 52 * - - 9 * - 14 * - CAST ( + CASE 40 WHEN + ( 78 ) THEN + 87 / 85 END AS REAL )
----
NULL

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

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

query I rowsort
SELECT + 16 + + 90 * + COALESCE ( ( + 82 ), - 40 ) AS col2
----
7396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6631
SELECT - 55 DIV + + COUNT( * ) + + + COUNT( * ) + - NULLIF ( + 0, - COUNT( * ) * + 37 + - 38 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-6631
SELECT - 55 / + + COUNT ( * ) + + + COUNT ( * ) + - NULLIF ( + 0, - COUNT ( * ) * + 37 + - 38 ) AS col0
----
-54

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

query I rowsort
SELECT + 30 + + - 94 AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6634
SELECT - 69 * 23 + + CASE + COUNT( + 34 ) WHEN + MIN( + 25 ) * ( 50 * CAST( NULL AS SIGNED ) ) THEN COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6634
SELECT - 69 * 23 + + CASE + COUNT ( + 34 ) WHEN + MIN ( + 25 ) * ( 50 * CAST ( NULL AS INTEGER ) ) THEN COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6635
SELECT DISTINCT + CASE + 39 WHEN + 23 THEN + - 63 WHEN - + 61 THEN - - 81 / COUNT( * ) ELSE + 24 + + 45 END * - AVG ( DISTINCT 97 - + 72 ) + CASE + 20 WHEN - 8 + AVG ( ALL - 47 ) THEN NULL ELSE + 25 * - MAX( CASE - 7 WHEN + CAST( + 6 AS SIGNED ) THEN + 50 * NULLIF ( + 25, - 36 ) + + 85 * 17 ELSE NULL END * - 68 ) END * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT + CASE + 39 WHEN + 23 THEN + - 63 WHEN - + 61 THEN - - 81 / COUNT ( * ) ELSE + 24 + + 45 END * - AVG ( DISTINCT 97 - + 72 ) + CASE + 20 WHEN - 8 + AVG ( ALL - 47 ) THEN NULL ELSE + 25 * - MAX ( CASE - 7 WHEN + CAST ( + 6 AS INTEGER ) THEN + 50 * NULLIF ( + 25, - 36 ) + + 85 * 17 ELSE NULL END * - 68 ) END * - 31
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6636
SELECT ALL + 45 * + + COUNT( * ), + 63 DIV - + NULLIF ( - 91, CAST( 23 AS SIGNED ) ) AS col2
----
45
0

skipif mysql # not compatible
query II rowsort label-6636
SELECT ALL + 45 * + + COUNT ( * ), + 63 / - + NULLIF ( - 91, CAST ( 23 AS INTEGER ) ) AS col2
----
45
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6637
SELECT + - 40 + + CAST( - + 2 AS SIGNED ) * + NULLIF ( + - COUNT( * ), + 82 ) + - 16
----
-54

skipif mysql # not compatible
query I rowsort label-6637
SELECT + - 40 + + CAST ( - + 2 AS INTEGER ) * + NULLIF ( + - COUNT ( * ), + 82 ) + - 16
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT DISTINCT + ( COUNT( * ) ) + + + NULLIF ( - - MAX( + - 87 ), 66 + 59 )
----
-86

skipif mysql # not compatible
query I rowsort label-6638
SELECT DISTINCT + ( COUNT ( * ) ) + + + NULLIF ( - - MAX ( + - 87 ), 66 + 59 )
----
-86

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

query I rowsort
SELECT ALL + NULLIF ( + 56, + 67 ) + + + 89 - + 3 AS col1
----
142

query I rowsort
SELECT + 76 - + 63 AS col1
----
13

query I rowsort
SELECT + CASE 52 WHEN - + 76 THEN NULL WHEN + 70 / + 74 - - 7 THEN + 6 END col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT COUNT( * ) + + 82 * + 53 * - COALESCE ( - 18, + COUNT( ALL - 75 ) * COUNT( * ) ) AS col1
----
78229

skipif mysql # not compatible
query I rowsort label-6644
SELECT COUNT ( * ) + + 82 * + 53 * - COALESCE ( - 18, + COUNT ( ALL - 75 ) * COUNT ( * ) ) AS col1
----
78229

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6645
SELECT - 59 * 94 * - CASE - 89 WHEN - 16 * COUNT( 35 ) THEN + 22 DIV - 55 + 78 WHEN 76 THEN - 84 ELSE + 34 END
----
188564

skipif mysql # not compatible
query I rowsort label-6645
SELECT - 59 * 94 * - CASE - 89 WHEN - 16 * COUNT ( 35 ) THEN + 22 / - 55 + 78 WHEN 76 THEN - 84 ELSE + 34 END
----
188564

query II rowsort
SELECT - 68 + - ( ( + 30 ) ) AS col1, - 20 + + 74 AS col2
----
-98
54

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

query I rowsort
SELECT - 82 AS col0
----
-82

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

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL - COALESCE ( - + COUNT ( * ), 69 ) col1
----
1

query I rowsort
SELECT 65 - 30
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-6651
SELECT ALL 37 DIV ( - + 2 ) * - 69 col0
----
1242

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL 37 / ( - + 2 ) * - 69 col0
----
1242

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT ALL 7 - COUNT( * ) * 53 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL 7 - COUNT ( * ) * 53 AS col1
----
-46

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

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

query I rowsort
SELECT 90 * + 88
----
7920

query I rowsort
SELECT DISTINCT 36 * + 13
----
468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6656
SELECT CAST( - 3 AS SIGNED ) * - 20 + + + 87 * 67, - COUNT( - 64 ) AS col0
----
5889
-1

skipif mysql # not compatible
query II rowsort label-6656
SELECT CAST ( - 3 AS INTEGER ) * - 20 + + + 87 * 67, - COUNT ( - 64 ) AS col0
----
5889
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6657
SELECT MIN( ALL CASE 63 WHEN + + 90 THEN - 36 * - 94 + 68 + 76 * 53 END ) * - CAST( CAST( - 26 AS SIGNED ) * 69 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT MIN ( ALL CASE 63 WHEN + + 90 THEN - 36 * - 94 + 68 + 76 * 53 END ) * - CAST ( CAST ( - 26 AS INTEGER ) * 69 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 28 - + 12 + 0 + + 49 + - COALESCE ( + - 71, + 9 ) AS col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT ALL - ( + CASE - + AVG ( DISTINCT + 76 ) WHEN 46 THEN NULL ELSE - COUNT( * ) * MAX( DISTINCT 48 ) END )
----
48

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL - ( + CASE - + AVG ( DISTINCT + 76 ) WHEN 46 THEN NULL ELSE - COUNT ( * ) * MAX ( DISTINCT 48 ) END )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT DISTINCT 94 * COUNT( * ) * + NULLIF ( + 70, - 20 ) col1
----
6580

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT 94 * COUNT ( * ) * + NULLIF ( + 70, - 20 ) col1
----
6580

query I rowsort
SELECT 15 * 97 * + 35 AS col1
----
50925

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT 86 + 69 - + + 44 + COUNT( * )
----
112

skipif mysql # not compatible
query I rowsort label-6662
SELECT 86 + 69 - + + 44 + COUNT ( * )
----
112

query I rowsort
SELECT CASE 69 WHEN + 78 THEN 17 END + + - 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT + 53 * - CASE 25 WHEN + 95 - CASE - 9 WHEN NULLIF ( 16, + 20 ) + COUNT( * ) THEN 26 + - 88 WHEN ( - NULLIF ( - 51, - ( 52 ) * 75 ) ) * + 28 THEN NULL END * 19 THEN NULL WHEN - MIN( 59 ) THEN + ( 92 ) * 3 END * COUNT( * ) + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-6664
SELECT + 53 * - CASE 25 WHEN + 95 - CASE - 9 WHEN NULLIF ( 16, + 20 ) + COUNT ( * ) THEN 26 + - 88 WHEN ( - NULLIF ( - 51, - ( 52 ) * 75 ) ) * + 28 THEN NULL END * 19 THEN NULL WHEN - MIN ( 59 ) THEN + ( 92 ) * 3 END * COUNT ( * ) + 72
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT - COUNT( * ) * + COALESCE ( + + 67, - 87, ( - 23 ) * 58 + 51 ) + + MIN( DISTINCT 59 ) - - COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-6666
SELECT - COUNT ( * ) * + COALESCE ( + + 67, - 87, ( - 23 ) * 58 + 51 ) + + MIN ( DISTINCT 59 ) - - COUNT ( * ) AS col2
----
-7

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

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

query I rowsort
SELECT ALL - + 36 * + - 69
----
2484

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT DISTINCT - + COUNT( * ) + + - 46 * - + COUNT( * ) col2
----
45

skipif mysql # not compatible
query I rowsort label-6670
SELECT DISTINCT - + COUNT ( * ) + + - 46 * - + COUNT ( * ) col2
----
45

query I rowsort
SELECT + 7 + + 45 col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6672
SELECT 65 + + + 84 + 39 + 22 - + 4 + + CAST( - COUNT( * ) AS SIGNED ) - - COUNT( * ) * + COUNT( * ) * 27 AS col2
----
232

skipif mysql # not compatible
query I rowsort label-6672
SELECT 65 + + + 84 + 39 + 22 - + 4 + + CAST ( - COUNT ( * ) AS INTEGER ) - - COUNT ( * ) * + COUNT ( * ) * 27 AS col2
----
232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6673
SELECT MIN( + - 81 ) DIV + 22
----
-3

skipif mysql # not compatible
query I rowsort label-6673
SELECT MIN ( + - 81 ) / + 22
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT - 60 + + + ( + 58 ) * + NULLIF ( - COUNT( * ), - + 90 * 39 )
----
-118

skipif mysql # not compatible
query I rowsort label-6674
SELECT - 60 + + + ( + 58 ) * + NULLIF ( - COUNT ( * ), - + 90 * 39 )
----
-118

query I rowsort
SELECT DISTINCT + - 31 + 73
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6676
SELECT + CAST( + CASE - + SUM( ( + CAST( NULL AS DECIMAL ) ) ) WHEN - 21 THEN + - 37 + + ( - COALESCE ( 64, 15 ) + - COUNT( * ) ) ELSE 83 + 94 END AS SIGNED ) * 49 col1
----
8673

skipif mysql # not compatible
query I rowsort label-6676
SELECT + CAST ( + CASE - + SUM ( ( + CAST ( NULL AS REAL ) ) ) WHEN - 21 THEN + - 37 + + ( - COALESCE ( 64, 15 ) + - COUNT ( * ) ) ELSE 83 + 94 END AS INTEGER ) * 49 col1
----
8673

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6677
SELECT ALL - 89 + - 35 * - CAST( NULL AS DECIMAL ) / - 86 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL - 89 + - 35 * - CAST ( NULL AS REAL ) / - 86 col2
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT ALL - + 89 - - MIN( + + 45 )
----
-44

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL - + 89 - - MIN ( + + 45 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT 52 + + COUNT( * ) + + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-6681
SELECT 52 + + COUNT ( * ) + + COUNT ( * )
----
54

query I rowsort
SELECT 34 col1
----
34

query I rowsort
SELECT 0 * + + 23 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT ALL 95 * COUNT( - 80 )
----
95

skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL 95 * COUNT ( - 80 )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-6685
SELECT + 80 AS col1, - CASE ( - + COUNT( * ) ) WHEN + MAX( + 26 ) + 50 THEN NULL WHEN COUNT( * ) + + 56 * + 6 THEN + COUNT( * ) * 41 END + - 12 * - 63
----
80
NULL

skipif mysql # not compatible
query II rowsort label-6685
SELECT + 80 AS col1, - CASE ( - + COUNT ( * ) ) WHEN + MAX ( + 26 ) + 50 THEN NULL WHEN COUNT ( * ) + + 56 * + 6 THEN + COUNT ( * ) * 41 END + - 12 * - 63
----
80
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6686
SELECT ALL - CAST( NULL AS DECIMAL ) AS col2, + 46 AS col2
----
NULL
46

skipif mysql # not compatible
query II rowsort label-6686
SELECT ALL - CAST ( NULL AS REAL ) AS col2, + 46 AS col2
----
NULL
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6687
SELECT + 94 * - 20 * - 49 * 81 + COUNT( * ) DIV + 54
----
7461720

skipif mysql # not compatible
query I rowsort label-6687
SELECT + 94 * - 20 * - 49 * 81 + COUNT ( * ) / + 54
----
7461720

query I rowsort
SELECT 90 * 58 AS col1
----
5220

query I rowsort
SELECT ALL - 24 * - 40 AS col2
----
960

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT ALL - MAX( 80 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL - MAX ( 80 ) AS col1
----
-80

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

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

query I rowsort
SELECT DISTINCT - 44 col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6694
SELECT NULLIF ( + COALESCE ( + 44, - COUNT( * ), + - COUNT( * ) DIV CAST( NULL AS SIGNED ) ), - COALESCE ( - + 18, - MIN( 97 ) ) * - 56 + NULLIF ( + ( + ( 71 ) ), MAX( 39 ) ) * COALESCE ( + 26 DIV 48, + 27, 58 * 76 ) ) + + 76 col0
----
120

skipif mysql # not compatible
query I rowsort label-6694
SELECT NULLIF ( + COALESCE ( + 44, - COUNT ( * ), + - COUNT ( * ) / CAST ( NULL AS INTEGER ) ), - COALESCE ( - + 18, - MIN ( 97 ) ) * - 56 + NULLIF ( + ( + ( 71 ) ), MAX ( 39 ) ) * COALESCE ( + 26 / 48, + 27, 58 * 76 ) ) + + 76 col0
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6695
SELECT DISTINCT COUNT( * ) DIV + - 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT COUNT ( * ) / + - 91 AS col1
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6697
SELECT DISTINCT COUNT( * ) + - 3 + - 10 + 74 + 73 + CAST( + 18 AS SIGNED ) * + - 0 * 7 * 67 / - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT COUNT ( * ) + - 3 + - 10 + 74 + 73 + CAST ( + 18 AS INTEGER ) * + - 0 * 7 * 67 / - ( CAST ( NULL AS INTEGER ) )
----
NULL

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

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

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

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

query I rowsort
SELECT 15 * 35
----
525

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

query I rowsort
SELECT ALL - 45 + + 39 AS col2
----
-6

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

query I rowsort
SELECT ALL 48 + - + 41 - 54 * + 72 AS col1
----
-3881

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT DISTINCT - CASE - + 88 WHEN 22 THEN - 23 WHEN - ( - - SUM( + 14 ) ) / + 9 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6705
SELECT DISTINCT - CASE - + 88 WHEN 22 THEN - 23 WHEN - ( - - SUM ( + 14 ) ) / + 9 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - 13, + 55 - - + 4 ) * - + 72 AS col0
----
936

query II rowsort
SELECT - 21 AS col0, 18 AS col1
----
-21
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6708
SELECT + COALESCE ( 60, - NULLIF ( - ( + 98 ), - + 91 ) * - 84 + CAST( 79 AS SIGNED ) ) * - 57 AS col2
----
-3420

skipif mysql # not compatible
query I rowsort label-6708
SELECT + COALESCE ( 60, - NULLIF ( - ( + 98 ), - + 91 ) * - 84 + CAST ( 79 AS INTEGER ) ) * - 57 AS col2
----
-3420

query I rowsort
SELECT - + 73 + - 80
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6710
SELECT - CAST( NULL AS SIGNED ) AS col1, 67 + - + COUNT( * ) + + 74 * + 80 AS col1
----
NULL
5986

skipif mysql # not compatible
query II rowsort label-6710
SELECT - CAST ( NULL AS INTEGER ) AS col1, 67 + - + COUNT ( * ) + + 74 * + 80 AS col1
----
NULL
5986

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

query II rowsort
SELECT ALL - NULLIF ( + + 31, NULLIF ( 54, + - 58 ) + 84 ), + 22 AS col2
----
-31
22

query I rowsort
SELECT - + 13 * NULLIF ( - 93, - - 12 )
----
1209

query I rowsort
SELECT ALL - 2 * + 73
----
-146

query I rowsort
SELECT - 90 + - + 77
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT DISTINCT COUNT( ALL + 2 ) - 66 * - NULLIF ( - 30, 47 + + ( 57 ) + 15 * ( AVG ( 92 ) - + 26 * 69 ) / 30 ) * 77 AS col2
----
-152459

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT COUNT ( ALL + 2 ) - 66 * - NULLIF ( - 30, 47 + + ( 57 ) + 15 * ( AVG ( 92 ) - + 26 * 69 ) / 30 ) * 77 AS col2
----
-152459

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

query I rowsort
SELECT - ( - + 2 ) + + 26 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT DISTINCT - COUNT( * ) - + 98
----
-99

skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT - COUNT ( * ) - + 98
----
-99

query II rowsort
SELECT DISTINCT + 54 col0, 70
----
54
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6721
SELECT ALL + ( + 58 ) * - 41 + 95 + + - CAST( 59 AS SIGNED ) AS col0
----
-2342

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL + ( + 58 ) * - 41 + 95 + + - CAST ( 59 AS INTEGER ) AS col0
----
-2342

query I rowsort
SELECT ALL - 55 * + - 8
----
440

query I rowsort
SELECT DISTINCT CASE 47 WHEN - - 47 + NULLIF ( - 31, - 58 ) THEN 71 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6724
SELECT - 72 DIV + 1 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-6724
SELECT - 72 / + 1 AS col2
----
-72

query I rowsort
SELECT - CASE - 9 WHEN - 98 THEN - 29 WHEN + - 84 THEN - + ( + 22 ) WHEN 73 THEN - 4 * + 58 ELSE NULL END * + 85
----
NULL

query I rowsort
SELECT + 89 + - + 46 + + 84 + + + 99
----
226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6727
SELECT ALL CASE - + ( + 81 ) WHEN + + 30 THEN ( 89 ) + - - 18 WHEN + ( - - 12 ) + - CAST( NULL AS SIGNED ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL CASE - + ( + 81 ) WHEN + + 30 THEN ( 89 ) + - - 18 WHEN + ( - - 12 ) + - CAST ( NULL AS INTEGER ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT ALL NULLIF ( + 80, - 67 * COUNT( * ) + - NULLIF ( + - 6, COALESCE ( + 25, - 51 / COUNT( * ) + + 69 ) * 10 ) ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL NULLIF ( + 80, - 67 * COUNT ( * ) + - NULLIF ( + - 6, COALESCE ( + 25, - 51 / COUNT ( * ) + + 69 ) * 10 ) ) AS col2
----
80

query I rowsort
SELECT - 60 * + - 15
----
900

onlyif mysql # DIV for integer division: 
query II rowsort label-6730
SELECT ALL - 55 * - - 15 AS col2, + 3 DIV ( + 88 ) AS col0
----
-825
0

skipif mysql # not compatible
query II rowsort label-6730
SELECT ALL - 55 * - - 15 AS col2, + 3 / ( + 88 ) AS col0
----
-825
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT ALL CASE SUM( ALL - - 73 ) WHEN + CASE + 89 WHEN + 59 * - - 27 THEN - - 15 ELSE NULL END THEN NULL ELSE - ( - NULLIF ( + ( NULLIF ( 38, - 4 ) ), 53 + COUNT( * ) * + ( 65 ) ) ) END AS col0
----
38

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL CASE SUM ( ALL - - 73 ) WHEN + CASE + 89 WHEN + 59 * - - 27 THEN - - 15 ELSE NULL END THEN NULL ELSE - ( - NULLIF ( + ( NULLIF ( 38, - 4 ) ), 53 + COUNT ( * ) * + ( 65 ) ) ) END AS col0
----
38

query I rowsort
SELECT ALL NULLIF ( + 49, + 64 * 11 + + 71 )
----
49

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6734
SELECT ALL - SUM( + + ( + 2 ) ) * 33 + - - CASE + - COUNT( * ) WHEN - 15 + - 37 THEN - 78 + COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN NULL END + + 69 * + MIN( ALL 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL - SUM ( + + ( + 2 ) ) * 33 + - - CASE + - COUNT ( * ) WHEN - 15 + - 37 THEN - 78 + COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL END + + 69 * + MIN ( ALL 7 )
----
NULL

query I rowsort
SELECT ( - COALESCE ( + 20, 30 ) )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT + MAX( - - 78 ) col2
----
78

skipif mysql # not compatible
query I rowsort label-6736
SELECT + MAX ( - - 78 ) col2
----
78

query I rowsort
SELECT ( - NULLIF ( 75, 83 * 67 ) ) AS col0
----
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT ALL + 31 * + COUNT( * ) + + - 33 * + NULLIF ( + + 9, 57 * 35 * + + 95 - + - 7 + - 21 ) AS col0
----
-266

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL + 31 * + COUNT ( * ) + + - 33 * + NULLIF ( + + 9, 57 * 35 * + + 95 - + - 7 + - 21 ) AS col0
----
-266

query I rowsort
SELECT ( + + 32 ) col2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6741
SELECT ALL - 31 * + 82 + CASE + COALESCE ( 40, - 68 + 86 + COUNT( 79 ) ) WHEN NULLIF ( + CAST( 65 AS SIGNED ), - 41 ) THEN NULL WHEN - 18 / + 37 THEN NULL ELSE ( CAST( NULL AS DECIMAL ) ) END + + NULLIF ( 87 + 62, 38 * ( + 82 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL - 31 * + 82 + CASE + COALESCE ( 40, - 68 + 86 + COUNT ( 79 ) ) WHEN NULLIF ( + CAST ( 65 AS INTEGER ), - 41 ) THEN NULL WHEN - 18 / + 37 THEN NULL ELSE ( CAST ( NULL AS REAL ) ) END + + NULLIF ( 87 + 62, 38 * ( + 82 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6742
SELECT ALL - 45 * - NULLIF ( - 78, - CAST( NULL AS SIGNED ) ) + - 15 + + + 7 * - - CAST( + - 7 AS SIGNED )
----
-3574

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL - 45 * - NULLIF ( - 78, - CAST ( NULL AS INTEGER ) ) + - 15 + + + 7 * - - CAST ( + - 7 AS INTEGER )
----
-3574

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6744
SELECT + ( 30 ) DIV - 63 + 52 * 31 - + 21 + + 63 + 36 DIV 34
----
1655

skipif mysql # not compatible
query I rowsort label-6744
SELECT + ( 30 ) / - 63 + 52 * 31 - + 21 + + 63 + 36 / 34
----
1655

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT MAX( - 58 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-6745
SELECT MAX ( - 58 ) AS col2
----
-58

query I rowsort
SELECT + - 15 col2
----
-15

query I rowsort
SELECT - + 83 + + + 53 * 31 AS col2
----
1560

onlyif mysql # DIV for integer division: 
query I rowsort label-6748
SELECT ALL - 14 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL - 14 / 99
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6749
SELECT + - 8 + - 89 + COUNT( * ) DIV 28 * 87 * - 77 col0
----
-97

skipif mysql # not compatible
query I rowsort label-6749
SELECT + - 8 + - 89 + COUNT ( * ) / 28 * 87 * - 77 col0
----
-97

query I rowsort
SELECT ALL - 97 * + - 40 - + - 70 - + ( + - 50 ) - + 5 AS col0
----
3995

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT + COUNT( * ) * + 48 * - + ( COUNT( * ) ) - - 46 * - 95
----
-4418

skipif mysql # not compatible
query I rowsort label-6751
SELECT + COUNT ( * ) * + 48 * - + ( COUNT ( * ) ) - - 46 * - 95
----
-4418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6752
SELECT + 6 * - COUNT( * ) * + + 57 + + ( - 1 ) + - 22 * + COUNT( * ) DIV - SUM( DISTINCT - + 51 )
----
-343

skipif mysql # not compatible
query I rowsort label-6752
SELECT + 6 * - COUNT ( * ) * + + 57 + + ( - 1 ) + - 22 * + COUNT ( * ) / - SUM ( DISTINCT - + 51 )
----
-343

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6755
SELECT ALL - 53 DIV + 48
----
-1

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL - 53 / + 48
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT DISTINCT + CASE - 31 WHEN + + 50 * - 27 + - 97 - 31 THEN + + ( + - 44 ) * + 21 * - 80 WHEN 53 + + 30 THEN NULL ELSE - 13 * 71 END * - ( + NULLIF ( + 26, + NULLIF ( ( - COUNT( * ) ), SUM( 51 ) * - 27 ) * 84 ) ) - - ( 91 ) AS col2
----
24089

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT + CASE - 31 WHEN + + 50 * - 27 + - 97 - 31 THEN + + ( + - 44 ) * + 21 * - 80 WHEN 53 + + 30 THEN NULL ELSE - 13 * 71 END * - ( + NULLIF ( + 26, + NULLIF ( ( - COUNT ( * ) ), SUM ( 51 ) * - 27 ) * 84 ) ) - - ( 91 ) AS col2
----
24089

query I rowsort
SELECT + 78 + + 71
----
149

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6760
SELECT + + 32 + - CAST ( + 79 AS INTEGER ) AS col2
----
-47

query I rowsort
SELECT - + 26 + + - 24 + - + 40
----
-90

query II rowsort
SELECT ALL NULLIF ( - + NULLIF ( + 76, - + 43 ), - + 75 ), 48 * - 99 AS col2
----
-76
-4752

query II rowsort
SELECT - 14, 50 AS col2
----
-14
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT - 49 + + COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-6764
SELECT - 49 + + COUNT ( * ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT DISTINCT MAX( ALL - 70 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-6765
SELECT DISTINCT MAX ( ALL - 70 ) AS col1
----
-70

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

query II rowsort
SELECT DISTINCT + 69 * 21 * + - 23 AS col0, 77 * - 58
----
-33327
-4466

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6769
SELECT DISTINCT NULLIF ( - CAST( + + COUNT( * ) AS SIGNED ), - + 66 * - 33 ) AS col0, + 14
----
-1
14

skipif mysql # not compatible
query II rowsort label-6769
SELECT DISTINCT NULLIF ( - CAST ( + + COUNT ( * ) AS INTEGER ), - + 66 * - 33 ) AS col0, + 14
----
-1
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6770
SELECT DISTINCT CAST( + 52 AS SIGNED ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6770
SELECT DISTINCT CAST ( + 52 AS INTEGER ) AS col0
----
52

query I rowsort
SELECT DISTINCT + 79 * + 74 * - 47
----
-274762

query II rowsort
SELECT ALL - 24 + - + 11 * 1 AS col2, 68
----
-35
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6773
SELECT + COUNT( * ) + + 64 DIV - 70 AS col2, 24 + 13 * 86
----
1
1142

skipif mysql # not compatible
query II rowsort label-6773
SELECT + COUNT ( * ) + + 64 / - 70 AS col2, 24 + 13 * 86
----
1
1142

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

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

query I rowsort
SELECT ALL + 52 + - 23 col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6776
SELECT - 70 + + + ( + COALESCE ( COUNT( * ), CAST( MIN( DISTINCT - - 84 ) AS SIGNED ) + + + MAX( DISTINCT 87 ) ) ) + 47
----
-22

skipif mysql # not compatible
query I rowsort label-6776
SELECT - 70 + + + ( + COALESCE ( COUNT ( * ), CAST ( MIN ( DISTINCT - - 84 ) AS INTEGER ) + + + MAX ( DISTINCT 87 ) ) ) + 47
----
-22

query I rowsort
SELECT - 76 * 77
----
-5852

query I rowsort
SELECT - 88 + + + ( - 35 ) col0
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6779
SELECT DISTINCT - 43 / + CAST( NULL AS SIGNED ) + - 24 + - ( - 3 ) - - - ( 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT - 43 / + CAST ( NULL AS INTEGER ) + - 24 + - ( - 3 ) - - - ( 15 ) AS col0
----
NULL

query II rowsort
SELECT ALL + 57 AS col1, + 86 * + 58 + + 98 AS col0
----
57
5086

onlyif mysql # aggregate syntax: 
query II rowsort label-6781
SELECT ALL + 87 + + SUM( - 53 ), + 10 * + 80 AS col0
----
34
800

skipif mysql # not compatible
query II rowsort label-6781
SELECT ALL + 87 + + SUM ( - 53 ), + 10 * + 80 AS col0
----
34
800

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT + - COALESCE ( + - COUNT( * ), - 27 + + 83, 10 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6782
SELECT + - COALESCE ( + - COUNT ( * ), - 27 + + 83, 10 ) AS col2
----
1

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

query I rowsort
SELECT - 69 + - + 42 AS col2
----
-111

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT + 45 * - + COUNT( * ) - - - ( 57 ) + + 72 + + + 13
----
-17

skipif mysql # not compatible
query I rowsort label-6786
SELECT + 45 * - + COUNT ( * ) - - - ( 57 ) + + 72 + + + 13
----
-17

query I rowsort
SELECT ALL - - 52
----
52

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

query I rowsort
SELECT NULLIF ( - 98, 32 + + 20 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT - NULLIF ( CASE 27 WHEN - COUNT( * ) THEN 85 ELSE 70 END, - 89 * 45 + ( - + 56 ) ) * - 9
----
630

skipif mysql # not compatible
query I rowsort label-6790
SELECT - NULLIF ( CASE 27 WHEN - COUNT ( * ) THEN 85 ELSE 70 END, - 89 * 45 + ( - + 56 ) ) * - 9
----
630

query I rowsort
SELECT DISTINCT + 24 * 59
----
1416

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT ALL + - SUM( ALL 45 ) - 56 - + + 97 * - 85
----
8144

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL + - SUM ( ALL 45 ) - 56 - + + 97 * - 85
----
8144

query I rowsort
SELECT + 72 * - 62 + - + 17
----
-4481

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

query I rowsort
SELECT ALL - COALESCE ( + 18, - - 42 ) AS col1
----
-18

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6798
SELECT 9 DIV - + 27 * - + 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6798
SELECT 9 / - + 27 * - + 15 AS col1
----
0

query I rowsort
SELECT - 38 * 84 * + + 76 AS col0
----
-242592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6800
SELECT DISTINCT - ( - + COALESCE ( + NULLIF ( - 14, - - COUNT( * ) + + - 89 ), - - 53 ) ) DIV - + 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6800
SELECT DISTINCT - ( - + COALESCE ( + NULLIF ( - 14, - - COUNT ( * ) + + - 89 ), - - 53 ) ) / - + 25 AS col2
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6802
SELECT - + 42 AS col0, 10 / 82 + - CASE + SUM( ALL + 67 ) WHEN 78 + - 45 THEN NULL WHEN - 68 + 5 THEN + 7 - - 22 WHEN + 99 THEN NULL ELSE NULL END
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-6802
SELECT - + 42 AS col0, 10 / 82 + - CASE + SUM ( ALL + 67 ) WHEN 78 + - 45 THEN NULL WHEN - 68 + 5 THEN + 7 - - 22 WHEN + 99 THEN NULL ELSE NULL END
----
-42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT - + MAX( - 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-6803
SELECT - + MAX ( - 47 ) AS col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6804
SELECT DISTINCT 84 DIV + 67
----
1

skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT 84 / + 67
----
1

query I rowsort
SELECT DISTINCT 71 col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6806
SELECT DISTINCT 77 * - CAST( 91 AS SIGNED ) AS col1
----
-7007

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT 77 * - CAST ( 91 AS INTEGER ) AS col1
----
-7007

onlyif mysql # aggregate syntax: 
query II rowsort label-6807
SELECT ALL 36 + + - 10 - COUNT( ( + + ( + 85 ) ) ) AS col0, 67 AS col0
----
25
67

skipif mysql # not compatible
query II rowsort label-6807
SELECT ALL 36 + + - 10 - COUNT ( ( + + ( + 85 ) ) ) AS col0, 67 AS col0
----
25
67

query II rowsort
SELECT 58 AS col1, 7
----
58
7

onlyif mysql # aggregate syntax: 
query II rowsort label-6809
SELECT 93 AS col0, SUM( DISTINCT - 59 )
----
93
-59

skipif mysql # not compatible
query II rowsort label-6809
SELECT 93 AS col0, SUM ( DISTINCT - 59 )
----
93
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-6810
SELECT - 34 col0, + 18 - + 75 - + CASE - 51 WHEN - 65 + - 1 THEN NULL WHEN COALESCE ( - 69, + CASE - 76 WHEN + 42 THEN NULL WHEN 32 THEN ( + 64 ) WHEN 14 + 71 * - 10 THEN 42 * 27 END, 46 ) + 19 THEN + COUNT( * ) ELSE 45 - + 63 END + 80 * + 30 AS col0
----
-34
2361

skipif mysql # not compatible
query II rowsort label-6810
SELECT - 34 col0, + 18 - + 75 - + CASE - 51 WHEN - 65 + - 1 THEN NULL WHEN COALESCE ( - 69, + CASE - 76 WHEN + 42 THEN NULL WHEN 32 THEN ( + 64 ) WHEN 14 + 71 * - 10 THEN 42 * 27 END, 46 ) + 19 THEN + COUNT ( * ) ELSE 45 - + 63 END + 80 * + 30 AS col0
----
-34
2361

query I rowsort
SELECT 31 + - 17
----
14

query I rowsort
SELECT DISTINCT 6 + + + 86
----
92

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6814
SELECT DISTINCT + 48 DIV + + 88
----
0

skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT + 48 / + + 88
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6815
SELECT 31 DIV 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6815
SELECT 31 / 94 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6816
SELECT DISTINCT 64 DIV - 94 * - 54 * - 46
----
0

skipif mysql # not compatible
query I rowsort label-6816
SELECT DISTINCT 64 / - 94 * - 54 * - 46
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6818
SELECT + 9 col2, COUNT( * ) * - - MAX( + 10 )
----
9
10

skipif mysql # not compatible
query II rowsort label-6818
SELECT + 9 col2, COUNT ( * ) * - - MAX ( + 10 )
----
9
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6819
SELECT ALL - CAST( NULL AS SIGNED ) * - SUM( ALL - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL - CAST ( NULL AS INTEGER ) * - SUM ( ALL - 49 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT - MIN( 25 ) / + - CASE 22 WHEN - 6 THEN 69 + - + 61 / 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6820
SELECT - MIN ( 25 ) / + - CASE 22 WHEN - 6 THEN 69 + - + 61 / 32 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6821
SELECT - CAST( + CAST( - 90 AS SIGNED ) AS SIGNED ) DIV - + 81 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6821
SELECT - CAST ( + CAST ( - 90 AS INTEGER ) AS INTEGER ) / - + 81 AS col2
----
-1

query I rowsort
SELECT DISTINCT - 30 * + + 26
----
-780

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6825
SELECT ALL - 88, - MIN( + 55 ) AS col0
----
-88
-55

skipif mysql # not compatible
query II rowsort label-6825
SELECT ALL - 88, - MIN ( + 55 ) AS col0
----
-88
-55

query I rowsort
SELECT - 11 * - 61
----
671

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6827
SELECT 75 * CAST( NULL AS SIGNED ) - 0 - - + 86 * COUNT( ALL 37 ) + + MIN( - 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6827
SELECT 75 * CAST ( NULL AS INTEGER ) - 0 - - + 86 * COUNT ( ALL 37 ) + + MIN ( - 36 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6828
SELECT DISTINCT - COUNT( ALL + 11 ) DIV - - 17 + + 60 * 0
----
0

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT - COUNT ( ALL + 11 ) / - - 17 + + 60 * 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6829
SELECT ALL - SUM( + + 90 ) col1, 61 * - 2
----
-90
-122

skipif mysql # not compatible
query II rowsort label-6829
SELECT ALL - SUM ( + + 90 ) col1, 61 * - 2
----
-90
-122

query I rowsort
SELECT + 33 - - + COALESCE ( + - 85, 86 * + 3 - 90, - 65 )
----
-52

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

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

query II rowsort
SELECT DISTINCT - 14, + 15 * - 83 AS col1
----
-14
-1245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6833
SELECT - - 43 * 94 + + - CAST( - SUM( ALL + 10 ) AS SIGNED )
----
4052

skipif mysql # not compatible
query I rowsort label-6833
SELECT - - 43 * 94 + + - CAST ( - SUM ( ALL + 10 ) AS INTEGER )
----
4052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6834
SELECT 34 + CAST( - 57 AS SIGNED ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-6834
SELECT 34 + CAST ( - 57 AS INTEGER ) AS col2
----
-23

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

query II rowsort
SELECT - 68 AS col0, - 22 AS col2
----
-68
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6837
SELECT 55 * - 85 DIV + COUNT( * ) col0
----
-4675

skipif mysql # not compatible
query I rowsort label-6837
SELECT 55 * - 85 / + COUNT ( * ) col0
----
-4675

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6839
SELECT ALL - COALESCE ( - 62, - + 48 DIV 32, - 84 * 63 - + NULLIF ( + 23, - - 97 ) ) + - 68 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL - COALESCE ( - 62, - + 48 / 32, - 84 * 63 - + NULLIF ( + 23, - - 97 ) ) + - 68 AS col2
----
-6

query I rowsort
SELECT 3 + 80 + 71
----
154

query II rowsort
SELECT DISTINCT + 42 + - 31 + + + 80 + + 30 * + 35 AS col2, 38 AS col2
----
1141
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT COUNT( * ) + + + 98 + 29 - - 96 * + 19
----
1952

skipif mysql # not compatible
query I rowsort label-6842
SELECT COUNT ( * ) + + + 98 + 29 - - 96 * + 19
----
1952

onlyif mysql # aggregate syntax: 
query II rowsort label-6843
SELECT ALL + 24 + COUNT( * ), + COUNT( * ) + - - 8 AS col2
----
25
9

skipif mysql # not compatible
query II rowsort label-6843
SELECT ALL + 24 + COUNT ( * ), + COUNT ( * ) + - - 8 AS col2
----
25
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6844
SELECT ALL - CASE + - 20 WHEN + - SUM( ALL - CAST( + + 33 AS SIGNED ) ) + 17 THEN + 80 * - ( + 98 ) WHEN 55 * 69 * 59 THEN NULL ELSE NULL END + + CASE 14 WHEN COALESCE ( + 45, + 88, 75, COUNT( * ) ) THEN NULL ELSE - 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL - CASE + - 20 WHEN + - SUM ( ALL - CAST ( + + 33 AS INTEGER ) ) + 17 THEN + 80 * - ( + 98 ) WHEN 55 * 69 * 59 THEN NULL ELSE NULL END + + CASE 14 WHEN COALESCE ( + 45, + 88, 75, COUNT ( * ) ) THEN NULL ELSE - 35 END
----
NULL

query I rowsort
SELECT 86 + 24 AS col2
----
110

query I rowsort
SELECT 35 col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6847
SELECT - MAX( ALL - CAST( NULL AS SIGNED ) ), 29 AS col2
----
NULL
29

skipif mysql # not compatible
query II rowsort label-6847
SELECT - MAX ( ALL - CAST ( NULL AS INTEGER ) ), 29 AS col2
----
NULL
29

onlyif mysql # DIV for integer division: 
query I rowsort label-6848
SELECT ALL 65 DIV - 87 * - 82
----
0

skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL 65 / - 87 * - 82
----
0

query I rowsort
SELECT ALL 83 + + 89
----
172

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6851
SELECT COALESCE ( 33, + - CAST( - + 79 AS SIGNED ) ) - + 21 DIV + - CAST( + 68 AS SIGNED ) + + 88
----
121

skipif mysql # not compatible
query I rowsort label-6851
SELECT COALESCE ( 33, + - CAST ( - + 79 AS INTEGER ) ) - + 21 / + - CAST ( + 68 AS INTEGER ) + + 88
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6852
SELECT DISTINCT CAST( - ( - 49 ) AS SIGNED ) * - ( + 2 ) * - 6 * MAX( ALL + 72 )
----
42336

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT CAST ( - ( - 49 ) AS INTEGER ) * - ( + 2 ) * - 6 * MAX ( ALL + 72 )
----
42336

query I rowsort
SELECT DISTINCT 93 col1
----
93

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6855
SELECT ALL CAST( NULL AS SIGNED ) * - MAX( - 59 ) * + 7 * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL CAST ( NULL AS INTEGER ) * - MAX ( - 59 ) * + 7 * 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT - CASE + 91 WHEN - CASE - 31 WHEN 6 + + + 56 THEN + - MAX( ALL + CASE ( + - 54 ) WHEN + 49 THEN NULL ELSE - - 26 END ) END + 14 THEN 25 * + 37 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6856
SELECT - CASE + 91 WHEN - CASE - 31 WHEN 6 + + + 56 THEN + - MAX ( ALL + CASE ( + - 54 ) WHEN + 49 THEN NULL ELSE - - 26 END ) END + 14 THEN 25 * + 37 ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6858
SELECT + COUNT( * ) - + COALESCE ( 8, - 56 * - CAST( - 96 AS SIGNED ) + - - NULLIF ( - ( + 79 ), - 0 - 21 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-6858
SELECT + COUNT ( * ) - + COALESCE ( 8, - 56 * - CAST ( - 96 AS INTEGER ) + - - NULLIF ( - ( + 79 ), - 0 - 21 ) )
----
-7

query I rowsort
SELECT + 69 * - - 79 AS col2
----
5451

onlyif mysql # DIV for integer division: 
query II rowsort label-6860
SELECT + 81 + + NULLIF ( + - 37, - 19 ) * + 14, + 54 DIV + 84 * + 26 * - 10 * 95 + - 71 * + 58 AS col1
----
-437
-4118

skipif mysql # not compatible
query II rowsort label-6860
SELECT + 81 + + NULLIF ( + - 37, - 19 ) * + 14, + 54 / + 84 * + 26 * - 10 * 95 + - 71 * + 58 AS col1
----
-437
-4118

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

query I rowsort
SELECT ALL + + NULLIF ( 52, + - 7 )
----
52

query II rowsort
SELECT + + 4 + + 37, + 53 AS col2
----
41
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT ALL - 35 * + 87 * - - SUM( - 73 )
----
222285

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL - 35 * + 87 * - - SUM ( - 73 )
----
222285

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6865
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) * - - CAST( NULL AS DECIMAL ) * + 70 * - 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) * - - CAST ( NULL AS REAL ) * + 70 * - 19 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6866
SELECT ALL - 85 * 75 + + 20, 57 + - 59 * - - 51 + 87 * - 41 + - CAST( NULL AS SIGNED ) AS col0
----
-6355
NULL

skipif mysql # not compatible
query II rowsort label-6866
SELECT ALL - 85 * 75 + + 20, 57 + - 59 * - - 51 + 87 * - 41 + - CAST ( NULL AS INTEGER ) AS col0
----
-6355
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6867
SELECT - 45 + + 30 + - 4 + - 20 DIV + ( + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6867
SELECT - 45 + + 30 + - 4 + - 20 / + ( + - COUNT ( * ) )
----
1

query I rowsort
SELECT ALL 14 * + - 70
----
-980

query I rowsort
SELECT DISTINCT + NULLIF ( - - 62, + 98 - + + 28 * - 14 )
----
62

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6871
SELECT DISTINCT CAST( NULL AS SIGNED ) * 55 + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 55 + - 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT ALL - 25 * + 26 * + + MAX( DISTINCT + 31 )
----
-20150

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL - 25 * + 26 * + + MAX ( DISTINCT + 31 )
----
-20150

query I rowsort
SELECT + - 19 * - 60 col1
----
1140

query I rowsort
SELECT + 98 * - 80 + + 15
----
-7825

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT - - COUNT( * ) + + COALESCE ( + COUNT( * ), 30 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6877
SELECT - - COUNT ( * ) + + COALESCE ( + COUNT ( * ), 30 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT ALL + 52 * - 93 + + 52 * + NULLIF ( - + COALESCE ( + 70, - COUNT( * ), COUNT( ALL - 47 ) * - 7 - + 17 - + 73 ), - 90 ) + - COUNT( * ) * 29 + 21 * NULLIF ( - 95 + 13, 50 ) AS col2
----
-10227

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL + 52 * - 93 + + 52 * + NULLIF ( - + COALESCE ( + 70, - COUNT ( * ), COUNT ( ALL - 47 ) * - 7 - + 17 - + 73 ), - 90 ) + - COUNT ( * ) * 29 + 21 * NULLIF ( - 95 + 13, 50 ) AS col2
----
-10227

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6880
SELECT ALL 3 * 60 AS col0, - 25 * CAST( + + 11 AS SIGNED )
----
180
-275

skipif mysql # not compatible
query II rowsort label-6880
SELECT ALL 3 * 60 AS col0, - 25 * CAST ( + + 11 AS INTEGER )
----
180
-275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6881
SELECT ALL - + 17 * - COUNT( * ) DIV - + 83 + - 62
----
-62

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL - + 17 * - COUNT ( * ) / - + 83 + - 62
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6882
SELECT ALL + + SUM( DISTINCT + 22 ) DIV + 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL + + SUM ( DISTINCT + 22 ) / + 38 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT DISTINCT 73 * + + 95 + + + SUM( DISTINCT 86 ) AS col1
----
7021

skipif mysql # not compatible
query I rowsort label-6883
SELECT DISTINCT 73 * + + 95 + + + SUM ( DISTINCT 86 ) AS col1
----
7021

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6885
SELECT + NULLIF ( - 27, 69 + + 8 ) - - - 10 + ( - 92 ) + 64 DIV + - 98 AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-6885
SELECT + NULLIF ( - 27, 69 + + 8 ) - - - 10 + ( - 92 ) + 64 / + - 98 AS col0
----
-129

query I rowsort
SELECT ( - 0 ) * 73 - 15
----
-15

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

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

skipif mysql # not compatible
query I rowsort label-6888
SELECT - MAX ( ALL - 17 )
----
17

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6891
SELECT - 47 * - COUNT ( * )
----
47

query I rowsort
SELECT ALL - 66 * 81 AS col1
----
-5346

query II rowsort
SELECT - 24 - + 77 * - 82 AS col2, ( 7 )
----
6290
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT DISTINCT - COALESCE ( + - COUNT( DISTINCT + ( + - ( - - 15 ) ) ), + 42 * 98 * + - MIN( DISTINCT 91 ) ) * + 38 + + 59
----
97

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT - COALESCE ( + - COUNT ( DISTINCT + ( + - ( - - 15 ) ) ), + 42 * 98 * + - MIN ( DISTINCT 91 ) ) * + 38 + + 59
----
97

query I rowsort
SELECT ALL + ( 21 ) - + 77
----
-56

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

query II rowsort
SELECT 26 AS col0, - 19 AS col2
----
26
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-6898
SELECT + MIN( ALL 39 ) * - + 35 col0, + 52 * + 60
----
-1365
3120

skipif mysql # not compatible
query II rowsort label-6898
SELECT + MIN ( ALL 39 ) * - + 35 col0, + 52 * + 60
----
-1365
3120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6899
SELECT ALL CAST( + - CASE - COALESCE ( ( - COUNT( + NULLIF ( + 60, 43 ) ) ), + 83, - 49 ) WHEN + 25 THEN - 41 + 56 WHEN - 92 THEN - CAST( COUNT( * ) AS SIGNED ) * 69 WHEN - COUNT( * ) + + 55 THEN NULL WHEN 65 * 24 THEN - 98 + 34 END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL CAST ( + - CASE - COALESCE ( ( - COUNT ( + NULLIF ( + 60, 43 ) ) ), + 83, - 49 ) WHEN + 25 THEN - 41 + 56 WHEN - 92 THEN - CAST ( COUNT ( * ) AS INTEGER ) * 69 WHEN - COUNT ( * ) + + 55 THEN NULL WHEN 65 * 24 THEN - 98 + 34 END AS REAL )
----
NULL

query I rowsort
SELECT - 81 * + 66
----
-5346

query I rowsort
SELECT DISTINCT 10 * - + 80 AS col0
----
-800

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6903
SELECT ALL - 80 - + + CAST( - 76 AS SIGNED ) * - + 66
----
-5096

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL - 80 - + + CAST ( - 76 AS INTEGER ) * - + 66
----
-5096

onlyif mysql # DIV for integer division: 
query I rowsort label-6904
SELECT + - 75 DIV - + 74
----
1

skipif mysql # not compatible
query I rowsort label-6904
SELECT + - 75 / - + 74
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6905
SELECT ALL + + CASE WHEN NOT ( NULL ) > AVG ( + 55 ) THEN + 16 * - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + - ( - - 19 ) ELSE + - COUNT( * ) END DIV + 44 + 94 * + 30
----
2820

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL + + CASE WHEN NOT ( NULL ) > AVG ( + 55 ) THEN + 16 * - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + - ( - - 19 ) ELSE + - COUNT ( * ) END / + 44 + 94 * + 30
----
2820

query I rowsort
SELECT DISTINCT + 6 * + 36 AS col1
----
216

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6908
SELECT ALL 1, COUNT( - + 6 ) + NULLIF ( + + CASE + 95 WHEN + SUM( 75 ) - 90 THEN 84 END, - + 45 / + 4 ) - + + 69 + 54 * + 72 * 68 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6908
SELECT ALL 1, COUNT ( - + 6 ) + NULLIF ( + + CASE + 95 WHEN + SUM ( 75 ) - 90 THEN 84 END, - + 45 / + 4 ) - + + 69 + 54 * + 72 * 68 AS col2
----
1
NULL

query I rowsort
SELECT ALL 46 * + 25
----
1150

query II rowsort
SELECT - 24 AS col1, - 7 AS col0
----
-24
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-6911
SELECT ALL 35, COUNT( + - 77 ) AS col2
----
35
1

skipif mysql # not compatible
query II rowsort label-6911
SELECT ALL 35, COUNT ( + - 77 ) AS col2
----
35
1

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

query I rowsort
SELECT - + 98 - - + 18 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT + - ( - 18 ) - 50 - + + 22 * COUNT( * ) * - 28 col1
----
584

skipif mysql # not compatible
query I rowsort label-6914
SELECT + - ( - 18 ) - 50 - + + 22 * COUNT ( * ) * - 28 col1
----
584

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6916
SELECT + - CAST( NULL AS SIGNED ) AS col0, + 55 AS col2
----
NULL
55

skipif mysql # not compatible
query II rowsort label-6916
SELECT + - CAST ( NULL AS INTEGER ) AS col0, + 55 AS col2
----
NULL
55

query I rowsort
SELECT + - 73 * - - 13
----
-949

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6918
SELECT ALL - MAX( ALL - 34 ) DIV - + 38 + + ( 55 ) * + - 13 + + 12 * + + 3
----
-679

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL - MAX ( ALL - 34 ) / - + 38 + + ( 55 ) * + - 13 + + 12 * + + 3
----
-679

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6920
SELECT ALL + CAST( NULL AS SIGNED ) / + + 80 + - 36 + + + 43 - 25 * COUNT( ALL - 97 ) * - 71 + + - 17 * - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL + CAST ( NULL AS INTEGER ) / + + 80 + - 36 + + + 43 - 25 * COUNT ( ALL - 97 ) * - 71 + + - 17 * - 12 AS col0
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6923
SELECT ALL - - CAST( NULL AS SIGNED ) / + 88 + + 58 + 72 + - 61 + - 48 * + 90 + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-6923
SELECT ALL - - CAST ( NULL AS INTEGER ) / + 88 + + 58 + 72 + - 61 + - 48 * + 90 + + 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6924
SELECT ALL 71 DIV - 18 + - COALESCE ( + + COUNT( * ), CAST( NULL AS SIGNED ) + + - 51 ) * - + 80
----
77

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL 71 / - 18 + - COALESCE ( + + COUNT ( * ), CAST ( NULL AS INTEGER ) + + - 51 ) * - + 80
----
77

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6926
SELECT ALL - 62 * - 71 + - 15 + + 57 + - - 7 + - - 64 * + CAST( NULL AS SIGNED ) * + 20 / - COUNT( * ) * CAST( + - 81 AS SIGNED ) * - + 14 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6926
SELECT ALL - 62 * - 71 + - 15 + + 57 + - - 7 + - - 64 * + CAST ( NULL AS INTEGER ) * + 20 / - COUNT ( * ) * CAST ( + - 81 AS INTEGER ) * - + 14 + - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL + + 37, + 53 * 87 + + - 22 AS col2
----
37
4589

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT + CASE - - ( 91 ) WHEN ( - 18 ) THEN + 16 END + COUNT( * ) / - + COUNT( * ) * + - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6928
SELECT + CASE - - ( 91 ) WHEN ( - 18 ) THEN + 16 END + COUNT ( * ) / - + COUNT ( * ) * + - 20 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6929
SELECT - ( - 28 ) * + - 47 + + 73 - - 14 DIV - 88
----
-1243

skipif mysql # not compatible
query I rowsort label-6929
SELECT - ( - 28 ) * + - 47 + + 73 - - 14 / - 88
----
-1243

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

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

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

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

query I rowsort
SELECT ALL - 27 * - 32 * 41 * - - 31 * + 16 - - 41
----
17570345

query I rowsort
SELECT + 48 * - + 5 * + + 41
----
-9840

query II rowsort
SELECT ALL 12 * - 61 col2, 3 AS col2
----
-732
3

query I rowsort
SELECT - 24 + - + 79
----
-103

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6939
SELECT 40 * - 49, - NULLIF ( + + 30, - 14 + - - ( - CAST( NULL AS DECIMAL ) ) ) * - COUNT( * ) * + 34 - + CASE + 44 WHEN - 43 THEN + MAX( + - 84 ) WHEN 11 THEN - 56 ELSE + 20 END - ( COUNT( * ) ) * - 70 AS col1
----
-1960
1070

skipif mysql # not compatible
query II rowsort label-6939
SELECT 40 * - 49, - NULLIF ( + + 30, - 14 + - - ( - CAST ( NULL AS REAL ) ) ) * - COUNT ( * ) * + 34 - + CASE + 44 WHEN - 43 THEN + MAX ( + - 84 ) WHEN 11 THEN - 56 ELSE + 20 END - ( COUNT ( * ) ) * - 70 AS col1
----
-1960
1070

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

skipif mysql # not compatible
query I rowsort label-6940
SELECT COUNT ( * ) * - 61
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-6941
SELECT 50 * + 75 * - 20 * - 44 AS col2, + COUNT( * ) AS col1
----
3300000
1

skipif mysql # not compatible
query II rowsort label-6941
SELECT 50 * + 75 * - 20 * - 44 AS col2, + COUNT ( * ) AS col1
----
3300000
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT COUNT( * ) + - 35
----
-34

skipif mysql # not compatible
query I rowsort label-6942
SELECT COUNT ( * ) + - 35
----
-34

query I rowsort
SELECT 69 + - 45
----
24

query I rowsort
SELECT 40 * + - 49
----
-1960

query I rowsort
SELECT 75 * - + 16
----
-1200

query I rowsort
SELECT ALL + 99 * + 66
----
6534

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT DISTINCT + ( + 27 ) * COUNT( * ) + + COUNT( * ) + + 99
----
127

skipif mysql # not compatible
query I rowsort label-6947
SELECT DISTINCT + ( + 27 ) * COUNT ( * ) + + COUNT ( * ) + + 99
----
127

query I rowsort
SELECT DISTINCT + 90 * - + 19 * 67
----
-114570

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT CASE 43 WHEN CASE AVG ( + + ( + 88 ) ) WHEN 12 * - 11 THEN NULL WHEN 74 / 53 THEN NULL ELSE - + 62 - + 40 + 87 * 54 END THEN NULL WHEN COUNT( * ) + + CASE WHEN NOT - 95 NOT BETWEEN + 59 + - 83 AND NULL THEN NULL ELSE + 28 END THEN - 65 END + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6949
SELECT CASE 43 WHEN CASE AVG ( + + ( + 88 ) ) WHEN 12 * - 11 THEN NULL WHEN 74 / 53 THEN NULL ELSE - + 62 - + 40 + 87 * 54 END THEN NULL WHEN COUNT ( * ) + + CASE WHEN NOT - 95 NOT BETWEEN + 59 + - 83 AND NULL THEN NULL ELSE + 28 END THEN - 65 END + 82 AS col1
----
NULL

query II rowsort
SELECT ALL + - 99 * - ( + ( + - 27 ) ) AS col0, 80
----
-2673
80

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

query I rowsort
SELECT - NULLIF ( + 28, 74 * - 23 ) AS col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6953
SELECT CASE - COUNT( * ) WHEN MIN( - + 34 ) - 58 THEN NULL WHEN 66 * - - 8 * + - 9 THEN 50 + - 4 END + 3 + + - CAST( + + 1 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6953
SELECT CASE - COUNT ( * ) WHEN MIN ( - + 34 ) - 58 THEN NULL WHEN 66 * - - 8 * + - 9 THEN 50 + - 4 END + 3 + + - CAST ( + + 1 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT 40 + - + COUNT( * ) * + + 9
----
31

skipif mysql # not compatible
query I rowsort label-6954
SELECT 40 + - + COUNT ( * ) * + + 9
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT 84 - COUNT( ALL + 60 )
----
83

skipif mysql # not compatible
query I rowsort label-6955
SELECT 84 - COUNT ( ALL + 60 )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6956
SELECT - CASE - 16 WHEN - 20 * 36 THEN - CAST( 9 AS SIGNED ) END + - ( - 22 ) + - 29 * - AVG ( 55 ) * - CASE + MIN( DISTINCT - 25 ) WHEN 12 THEN - 65 END + + 50 * 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6956
SELECT - CASE - 16 WHEN - 20 * 36 THEN - CAST ( 9 AS INTEGER ) END + - ( - 22 ) + - 29 * - AVG ( 55 ) * - CASE + MIN ( DISTINCT - 25 ) WHEN 12 THEN - 65 END + + 50 * 74 AS col1
----
NULL

query I rowsort
SELECT 30 + + + 26 * 73 AS col0
----
1928

query I rowsort
SELECT ALL 32 + - ( + + 32 )
----
0

query I rowsort
SELECT + - 87 * - - 30 + + 23 AS col2
----
-2587

query I rowsort
SELECT DISTINCT + 75 * + 68 AS col1
----
5100

onlyif mysql # aggregate syntax: 
query II rowsort label-6961
SELECT DISTINCT - NULLIF ( - 85, - 28 ) * + 31, COUNT( * ) + + ( - 2 ) + + 9 + + + 39 AS col0
----
2635
47

skipif mysql # not compatible
query II rowsort label-6961
SELECT DISTINCT - NULLIF ( - 85, - 28 ) * + 31, COUNT ( * ) + + ( - 2 ) + + 9 + + + 39 AS col0
----
2635
47

query I rowsort
SELECT DISTINCT - - 3 col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6963
SELECT DISTINCT 21 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT 21 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT ALL - MAX( DISTINCT - - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL - MAX ( DISTINCT - - 36 )
----
-36

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

query II rowsort
SELECT DISTINCT - 67, + 41 AS col0
----
-67
41

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6968
SELECT + 64, ( COUNT( * ) ) + + 34 AS col2
----
64
35

skipif mysql # not compatible
query II rowsort label-6968
SELECT + 64, ( COUNT ( * ) ) + + 34 AS col2
----
64
35

query I rowsort
SELECT ALL 42 - - 49
----
91

query I rowsort
SELECT DISTINCT - 57 col1
----
-57

query II rowsort
SELECT ALL ( - - 0 ) * + - 2 * 22 - 29 AS col1, 66 * + 56 AS col1
----
-29
3696

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT DISTINCT 53 * - COUNT( * ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-6973
SELECT DISTINCT 53 * - COUNT ( * ) AS col0
----
-53

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6975
SELECT CAST( + - ( - 79 ) AS SIGNED ) * + + 92
----
7268

skipif mysql # not compatible
query I rowsort label-6975
SELECT CAST ( + - ( - 79 ) AS INTEGER ) * + + 92
----
7268

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT NULLIF ( - COUNT( * ), 21 * - 54 + + COUNT( * ) ) * - - 6 + + - COALESCE ( COALESCE ( 33, + 16 ), + MIN( DISTINCT 27 ) + - COALESCE ( - + ( 16 ), - 64 * 71 ) * 94 )
----
-39

skipif mysql # not compatible
query I rowsort label-6977
SELECT NULLIF ( - COUNT ( * ), 21 * - 54 + + COUNT ( * ) ) * - - 6 + + - COALESCE ( COALESCE ( 33, + 16 ), + MIN ( DISTINCT 27 ) + - COALESCE ( - + ( 16 ), - 64 * 71 ) * 94 )
----
-39

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

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

query II rowsort
SELECT DISTINCT 0, ( 38 ) AS col2
----
0
38

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6981
SELECT DISTINCT CASE - AVG ( ALL 93 ) WHEN - SUM( - - 0 ) * + 73 THEN NULL WHEN 45 * + 13 * - 42 THEN + NULLIF ( - + CAST( - 57 AS DECIMAL ), + + 21 ) END * - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT CASE - AVG ( ALL 93 ) WHEN - SUM ( - - 0 ) * + 73 THEN NULL WHEN 45 * + 13 * - 42 THEN + NULLIF ( - + CAST ( - 57 AS REAL ), + + 21 ) END * - - COUNT ( * ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6982
SELECT 65 * - COUNT ( * )
----
-65

query I rowsort
SELECT ALL 34 + 38 + + - 97 AS col2
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-6984
SELECT DISTINCT - 31 DIV - 17
----
1

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT - 31 / - 17
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6985
SELECT CAST( - MIN( DISTINCT 6 ) AS SIGNED ) * + 44
----
-264

skipif mysql # not compatible
query I rowsort label-6985
SELECT CAST ( - MIN ( DISTINCT 6 ) AS INTEGER ) * + 44
----
-264

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

skipif mysql # not compatible
query I rowsort label-6986
SELECT DISTINCT COALESCE ( - 87, COUNT ( 0 ) + - + 67 - - ( CAST ( NULL AS INTEGER ) ) )
----
-87

query I rowsort
SELECT DISTINCT + + 21 + + 75 + + 75 + + 19 AS col1
----
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6988
SELECT + 55 + - 20 - CASE + NULLIF ( - 87, - + 28 + 53 * + 94 ) WHEN + - 49 - - + CAST( - - 66 AS SIGNED ) THEN + 5 * 79 ELSE - 97 END + + - COUNT( * ) + + 96 * 38 DIV - 7 AS col2
----
-390

skipif mysql # not compatible
query I rowsort label-6988
SELECT + 55 + - 20 - CASE + NULLIF ( - 87, - + 28 + 53 * + 94 ) WHEN + - 49 - - + CAST ( - - 66 AS INTEGER ) THEN + 5 * 79 ELSE - 97 END + + - COUNT ( * ) + + 96 * 38 / - 7 AS col2
----
-390

query I rowsort
SELECT 55 * - + 89
----
-4895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6990
SELECT ALL + 95 + 51 + ( - - 31 ) / - 52 + - 66 / - 31 * - COUNT( * ) * - CAST( NULL AS SIGNED ) + 44 + + 21 / + COUNT( * ) - - AVG ( ALL - 93 ) * - 77 / COUNT( * ) + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL + 95 + 51 + ( - - 31 ) / - 52 + - 66 / - 31 * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + 44 + + 21 / + COUNT ( * ) - - AVG ( ALL - 93 ) * - 77 / COUNT ( * ) + 47
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6993
SELECT - 9, + ( - MIN( DISTINCT 45 ) ) * - 20 col1
----
-9
900

skipif mysql # not compatible
query II rowsort label-6993
SELECT - 9, + ( - MIN ( DISTINCT 45 ) ) * - 20 col1
----
-9
900

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT ALL + - 79 + - 89 * - 67 - + COUNT( * ) AS col2
----
5883

skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL + - 79 + - 89 * - 67 - + COUNT ( * ) AS col2
----
5883

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

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

query I rowsort
SELECT ALL - 54 + - 90
----
-144

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

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

query I rowsort
SELECT - 36 * + + 30
----
-1080

query I rowsort
SELECT ALL - - 10
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT 5 * + COUNT( * ) + - + 70 + + 68 * - COALESCE ( + 14, + 78 )
----
-1017

skipif mysql # not compatible
query I rowsort label-7000
SELECT 5 * + COUNT ( * ) + - + 70 + + 68 * - COALESCE ( + 14, + 78 )
----
-1017

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT ALL + 67 * 24 - + + 94 * + 79 - - NULLIF ( - 15, + COUNT( * ) )
----
-5833

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL + 67 * 24 - + + 94 * + 79 - - NULLIF ( - 15, + COUNT ( * ) )
----
-5833

query I rowsort
SELECT + 2 * 31
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-7004
SELECT - 74 DIV - 52 - 41 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-7004
SELECT - 74 / - 52 - 41 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT - 25 - + 50 * - COUNT( * ) * - COALESCE ( + MAX( ALL + ( + 84 ) ), + 87 * - 36, + ( + - 96 ) ) * 56 + 61
----
-235164

skipif mysql # not compatible
query I rowsort label-7005
SELECT - 25 - + 50 * - COUNT ( * ) * - COALESCE ( + MAX ( ALL + ( + 84 ) ), + 87 * - 36, + ( + - 96 ) ) * 56 + 61
----
-235164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7006
SELECT ALL ( + + 59 ) * - SUM( + + 30 ) * + COALESCE ( + MAX( ALL + - 61 ), + 60, 26 + + COUNT( * ) ) + + COALESCE ( + NULLIF ( 40, - 44 ), + 92 * + 34, + NULLIF ( - 77, 38 * - MAX( DISTINCT 48 ) ) ) DIV - 91 + - 52 * - CASE + ( MAX( 23 ) ) WHEN 32 * - ( 63 * - ( - 15 * 23 ) ) THEN NULL WHEN - 72 + 96 THEN NULL ELSE CAST( + 25 AS SIGNED ) END
----
109270

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL ( + + 59 ) * - SUM ( + + 30 ) * + COALESCE ( + MAX ( ALL + - 61 ), + 60, 26 + + COUNT ( * ) ) + + COALESCE ( + NULLIF ( 40, - 44 ), + 92 * + 34, + NULLIF ( - 77, 38 * - MAX ( DISTINCT 48 ) ) ) / - 91 + - 52 * - CASE + ( MAX ( 23 ) ) WHEN 32 * - ( 63 * - ( - 15 * 23 ) ) THEN NULL WHEN - 72 + 96 THEN NULL ELSE CAST ( + 25 AS INTEGER ) END
----
109270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7007
SELECT - 86 * - CASE - SUM( - 55 ) WHEN - - 74 THEN - - CASE + 23 WHEN 13 THEN 84 DIV ( - COALESCE ( - - 82, ( 42 ) + - ( - 76 ) ) ) * COUNT( * ) WHEN + 32 THEN CASE COALESCE ( 14, 14 * + 1, AVG ( ( 29 ) ) * - 91 ) WHEN + 76 THEN - 9 ELSE NULL END ELSE - 39 END DIV - 15 ELSE - COUNT( * ) DIV - 72 - 84 * 63 END + 75
----
-455037

skipif mysql # not compatible
query I rowsort label-7007
SELECT - 86 * - CASE - SUM ( - 55 ) WHEN - - 74 THEN - - CASE + 23 WHEN 13 THEN 84 / ( - COALESCE ( - - 82, ( 42 ) + - ( - 76 ) ) ) * COUNT ( * ) WHEN + 32 THEN CASE COALESCE ( 14, 14 * + 1, AVG ( ( 29 ) ) * - 91 ) WHEN + 76 THEN - 9 ELSE NULL END ELSE - 39 END / - 15 ELSE - COUNT ( * ) / - 72 - 84 * 63 END + 75
----
-455037

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

query I rowsort
SELECT ALL 12 * - 92
----
-1104

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

query I rowsort
SELECT - 89 + - 19 + - - ( + 30 ) AS col0
----
-78

query I rowsort
SELECT - 65 + + 63 col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7013
SELECT + COUNT( * ) * - + 13 - 48 + - - 9 * COUNT( * ) * 76 * - 1 + + 32 - + 84, 73 AS col1
----
-797
73

skipif mysql # not compatible
query II rowsort label-7013
SELECT + COUNT ( * ) * - + 13 - 48 + - - 9 * COUNT ( * ) * 76 * - 1 + + 32 - + 84, 73 AS col1
----
-797
73

query I rowsort
SELECT - 82 * + ( 84 )
----
-6888

query I rowsort
SELECT 17 * + 96 + 4 + - 28 + NULLIF ( - 39, + + 22 )
----
1569

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7016
SELECT + 47 - - + 27 + - ( - NULLIF ( - 66, 14 * + - 56 ) ) DIV COUNT( * ) * CASE - - 49 WHEN MAX( + 92 ) THEN - 38 ELSE + + 61 * - + 18 END
----
72542

skipif mysql # not compatible
query I rowsort label-7016
SELECT + 47 - - + 27 + - ( - NULLIF ( - 66, 14 * + - 56 ) ) / COUNT ( * ) * CASE - - 49 WHEN MAX ( + 92 ) THEN - 38 ELSE + + 61 * - + 18 END
----
72542

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7018
SELECT ALL + 17 + + 10 - + 21 * CASE + 2 WHEN + 75 THEN NULL WHEN 66 + - MAX( DISTINCT 81 ) THEN 98 ELSE SUM( - + 88 ) - - 57 END DIV - CAST( 99 AS SIGNED ) - - COUNT( * ) * + 13
----
34

skipif mysql # not compatible
query I rowsort label-7018
SELECT ALL + 17 + + 10 - + 21 * CASE + 2 WHEN + 75 THEN NULL WHEN 66 + - MAX ( DISTINCT 81 ) THEN 98 ELSE SUM ( - + 88 ) - - 57 END / - CAST ( 99 AS INTEGER ) - - COUNT ( * ) * + 13
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7019
SELECT + MIN( - + CAST( - 57 AS SIGNED ) ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-7019
SELECT + MIN ( - + CAST ( - 57 AS INTEGER ) ) AS col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7020
SELECT ALL 46 + + 21 DIV - COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL 46 + + 21 / - COUNT ( * ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT ALL 5 + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL 5 + COUNT ( * )
----
6

query II rowsort
SELECT ALL + 95, + 19 col1
----
95
19

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

skipif mysql # not compatible
query I rowsort label-7023
SELECT MIN ( ALL - 36 )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7024
SELECT ALL 93 + + CAST( NULL AS SIGNED ) / - 68 + + 72 * + COUNT( ALL 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL 93 + + CAST ( NULL AS INTEGER ) / - 68 + + 72 * + COUNT ( ALL 8 )
----
NULL

query I rowsort
SELECT ALL 99 * 58 AS col1
----
5742

query I rowsort
SELECT - - 90 AS col2
----
90

query II rowsort
SELECT ALL - 34 AS col0, + 42
----
-34
42

onlyif mysql # aggregate syntax: 
query II rowsort label-7028
SELECT + - 65 * 84 + 45 + - NULLIF ( + 91, - 25 ) AS col0, COUNT( * ) AS col1
----
-5506
1

skipif mysql # not compatible
query II rowsort label-7028
SELECT + - 65 * 84 + 45 + - NULLIF ( + 91, - 25 ) AS col0, COUNT ( * ) AS col1
----
-5506
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT + COUNT( * ) * + + MIN( + + 5 ) * COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-7029
SELECT + COUNT ( * ) * + + MIN ( + + 5 ) * COUNT ( * )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7030
SELECT - + 30 DIV - 54, + COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-7030
SELECT - + 30 / - 54, + COUNT ( * ) AS col2
----
0
1

query I rowsort
SELECT DISTINCT + 25 + + 35 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT ALL NULLIF ( - - MIN( DISTINCT + 23 ), + 58 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL NULLIF ( - - MIN ( DISTINCT + 23 ), + 58 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-7033
SELECT DISTINCT - 41 AS col2, COUNT( * ) + + + 94
----
-41
95

skipif mysql # not compatible
query II rowsort label-7033
SELECT DISTINCT - 41 AS col2, COUNT ( * ) + + + 94
----
-41
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT + + 86 * - CASE - 87 WHEN - + 17 * - - 21 THEN ( - 41 ) + - 1 + COUNT( * ) / - - 77 WHEN - 44 * - - 0 THEN + 10 WHEN - 66 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7034
SELECT + + 86 * - CASE - 87 WHEN - + 17 * - - 21 THEN ( - 41 ) + - 1 + COUNT ( * ) / - - 77 WHEN - 44 * - - 0 THEN + 10 WHEN - 66 THEN NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT ALL + + COUNT( * ) - 40 * 86 * + COUNT( * ) + NULLIF ( + COUNT( * ), 59 ) * - 35 AS col1
----
-3474

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL + + COUNT ( * ) - 40 * 86 * + COUNT ( * ) + NULLIF ( + COUNT ( * ), 59 ) * - 35 AS col1
----
-3474

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

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

query I rowsort
SELECT COALESCE ( + 17, + 13 + - 84 * 36, - 89 + + 66 + - 56 )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7039
SELECT ALL 81 DIV 63 + - - 7 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL 81 / 63 + - - 7 AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7040
SELECT + 51 + + MAX( ALL + CASE 98 WHEN - 69 THEN - 77 * + + CAST( NULL AS SIGNED ) WHEN 54 THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7040
SELECT + 51 + + MAX ( ALL + CASE 98 WHEN - 69 THEN - 77 * + + CAST ( NULL AS INTEGER ) WHEN 54 THEN NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7041
SELECT - - 3 - + + ( - 72 ) * - 77 DIV + COUNT( * ) AS col2
----
-5541

skipif mysql # not compatible
query I rowsort label-7041
SELECT - - 3 - + + ( - 72 ) * - 77 / + COUNT ( * ) AS col2
----
-5541

query II rowsort
SELECT - + 85, 31 + 25 - - 11 - + 64 AS col2
----
-85
3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7044
SELECT - + 28 - - + SUM( DISTINCT + 67 ) * - 53, 56 AS col0
----
-3579
56

skipif mysql # not compatible
query II rowsort label-7044
SELECT - + 28 - - + SUM ( DISTINCT + 67 ) * - 53, 56 AS col0
----
-3579
56

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

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

query II rowsort
SELECT + 22, 53 AS col0
----
22
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT - - SUM( DISTINCT 0 ) + + + 90 + + 59 - + COUNT( * ) AS col1
----
148

skipif mysql # not compatible
query I rowsort label-7047
SELECT - - SUM ( DISTINCT 0 ) + + + 90 + + 59 - + COUNT ( * ) AS col1
----
148

query I rowsort
SELECT ALL - 48 - + 58 AS col1
----
-106

query II rowsort
SELECT 95 AS col1, - 59
----
95
-59

query I rowsort
SELECT DISTINCT + - 65
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT DISTINCT - MIN( + - 71 ) * + - 63 * - + 8 AS col2
----
35784

skipif mysql # not compatible
query I rowsort label-7051
SELECT DISTINCT - MIN ( + - 71 ) * + - 63 * - + 8 AS col2
----
35784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7052
SELECT ALL + CASE + 73 WHEN 52 / - 1 THEN - CASE 71 WHEN COUNT( * ) + 29 THEN - COALESCE ( - 61, + + 74, - - CAST( COUNT( + + CAST( NULL AS SIGNED ) ) AS SIGNED ) ) + + - 52 WHEN + 3 * 84 * - CASE - COUNT( 68 ) WHEN + NULLIF ( + 4, + 54 ) THEN NULL WHEN + 33 / 49 THEN NULLIF ( NULLIF ( NULLIF ( 86, 34 * 37 ), AVG ( 68 ) ), + 72 ) END + + 73 THEN 53 * + 9 END * 55 WHEN 98 * 44 THEN + 70 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL + CASE + 73 WHEN 52 / - 1 THEN - CASE 71 WHEN COUNT ( * ) + 29 THEN - COALESCE ( - 61, + + 74, - - CAST ( COUNT ( + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) + + - 52 WHEN + 3 * 84 * - CASE - COUNT ( 68 ) WHEN + NULLIF ( + 4, + 54 ) THEN NULL WHEN + 33 / 49 THEN NULLIF ( NULLIF ( NULLIF ( 86, 34 * 37 ), AVG ( 68 ) ), + 72 ) END + + 73 THEN 53 * + 9 END * 55 WHEN 98 * 44 THEN + 70 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7053
SELECT - 7 DIV - - 25 * + 57 + - + 82 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-7053
SELECT - 7 / - - 25 * + 57 + - + 82 AS col1
----
-82

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7056
SELECT DISTINCT + SUM( DISTINCT + 72 ), - 80 AS col0
----
72
-80

skipif mysql # not compatible
query II rowsort label-7056
SELECT DISTINCT + SUM ( DISTINCT + 72 ), - 80 AS col0
----
72
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7057
SELECT + CAST( + - 4 AS SIGNED ) col2, + COUNT( * ) AS col2
----
-4
1

skipif mysql # not compatible
query II rowsort label-7057
SELECT + CAST ( + - 4 AS INTEGER ) col2, + COUNT ( * ) AS col2
----
-4
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT - COUNT( 63 ) + MIN( - + COALESCE ( - 2, + NULLIF ( + 48, + - 85 ) ) ) + + - 17 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-7058
SELECT - COUNT ( 63 ) + MIN ( - + COALESCE ( - 2, + NULLIF ( + 48, + - 85 ) ) ) + + - 17 AS col1
----
-16

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

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

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

query I rowsort
SELECT - 53 * 41 * + 33
----
-71709

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7063
SELECT - 83 DIV 98 col2
----
0

skipif mysql # not compatible
query I rowsort label-7063
SELECT - 83 / 98 col2
----
0

query I rowsort
SELECT + 69 * + 19 + - 65 AS col2
----
1246

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7066
SELECT - 17 DIV 32 col1, - 59 + + 48 + + + 71
----
0
60

skipif mysql # not compatible
query II rowsort label-7066
SELECT - 17 / 32 col1, - 59 + + 48 + + + 71
----
0
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7067
SELECT ALL - ( CAST( 54 AS SIGNED ) ) * + 64 + + MIN( + - 8 ) AS col2
----
-3464

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL - ( CAST ( 54 AS INTEGER ) ) * + 64 + + MIN ( + - 8 ) AS col2
----
-3464

onlyif mysql # aggregate syntax: 
query II rowsort label-7068
SELECT ALL 25 * + - 70 + - 22 * + 72 * + 85, + 15 + + 37 + + COUNT( * ) + - 27 AS col0
----
-136390
26

skipif mysql # not compatible
query II rowsort label-7068
SELECT ALL 25 * + - 70 + - 22 * + 72 * + 85, + 15 + + 37 + + COUNT ( * ) + - 27 AS col0
----
-136390
26

query I rowsort
SELECT ALL 93 * - 25 + 51 - 25 * + 59 AS col0
----
-3749

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT - COUNT( + 80 ) * + ( - + 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-7070
SELECT - COUNT ( + 80 ) * + ( - + 36 ) AS col2
----
36

query I rowsort
SELECT - 93 * 49
----
-4557

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

skipif mysql # not compatible
query II rowsort label-7072
SELECT + ( - - CAST ( NULL AS INTEGER ) ) AS col2, - 56
----
NULL
-56

query I rowsort
SELECT - + 92
----
-92

query II rowsort
SELECT + - 1 * 96, + 33 AS col2
----
-96
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7075
SELECT ALL COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7076
SELECT DISTINCT - 3 * - + SUM( - 39 ) + - 15 + + - NULLIF ( + - 3, + 1 ) * 18 * - + CASE - 67 WHEN - - ( + NULLIF ( - CAST( - 91 AS SIGNED ), - + 49 * 18 ) ) * - 92 THEN 83 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT - 3 * - + SUM ( - 39 ) + - 15 + + - NULLIF ( + - 3, + 1 ) * 18 * - + CASE - 67 WHEN - - ( + NULLIF ( - CAST ( - 91 AS INTEGER ), - + 49 * 18 ) ) * - 92 THEN 83 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT DISTINCT 87 * - 93 + - - 56 + + COUNT( * )
----
-8034

skipif mysql # not compatible
query I rowsort label-7077
SELECT DISTINCT 87 * - 93 + - - 56 + + COUNT ( * )
----
-8034

onlyif mysql # DIV for integer division: 
query II rowsort label-7078
SELECT + 73 - + + 74 AS col0, - 56 * 8 + + 64 DIV + + 15 col1
----
-1
-444

skipif mysql # not compatible
query II rowsort label-7078
SELECT + 73 - + + 74 AS col0, - 56 * 8 + + 64 / + + 15 col1
----
-1
-444

query I rowsort
SELECT DISTINCT - 13 - + - 99 AS col1
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-7080
SELECT DISTINCT MAX( ALL 60 ) AS col0, + 7
----
60
7

skipif mysql # not compatible
query II rowsort label-7080
SELECT DISTINCT MAX ( ALL 60 ) AS col0, + 7
----
60
7

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

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

query I rowsort
SELECT + - 74 * - 58 * - + 79
----
-339068

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

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

query II rowsort
SELECT + - 58 + + + 82 AS col0, + 65 * - 76
----
24
-4940

query I rowsort
SELECT DISTINCT 88 - + + 86 col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT ALL MIN( DISTINCT 76 ) col2
----
76

skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL MIN ( DISTINCT 76 ) col2
----
76

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

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

query I rowsort
SELECT + + 83 + + + 69 AS col1
----
152

query I rowsort
SELECT + - 14 * + - 74 AS col1
----
1036

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT DISTINCT + MIN( DISTINCT - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT + MIN ( DISTINCT - 46 )
----
-46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7092
SELECT ALL + 43 DIV + + 64
----
0

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL + 43 / + + 64
----
0

query I rowsort
SELECT 8 * + + 50
----
400

onlyif mysql # DIV for integer division: 
query I rowsort label-7094
SELECT 53 DIV + + NULLIF ( + 71, - + 55 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7094
SELECT 53 / + + NULLIF ( + 71, - + 55 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7095
SELECT - 78 * - + ( - - COUNT( + ( + - 55 ) ) ) + 31 AS col2, + 81 + - + 41 + - 12 * 5 - ( COALESCE ( + 4, 71 * 89 + - + 38 ) )
----
109
-24

skipif mysql # not compatible
query II rowsort label-7095
SELECT - 78 * - + ( - - COUNT ( + ( + - 55 ) ) ) + 31 AS col2, + 81 + - + 41 + - 12 * 5 - ( COALESCE ( + 4, 71 * 89 + - + 38 ) )
----
109
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7096
SELECT 10 AS col2, - 22 + CAST( 50 AS SIGNED ) AS col2
----
10
28

skipif mysql # not compatible
query II rowsort label-7096
SELECT 10 AS col2, - 22 + CAST ( 50 AS INTEGER ) AS col2
----
10
28

query II rowsort
SELECT 91 AS col2, + 14
----
91
14

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7099
SELECT + COUNT( * ) / - AVG ( DISTINCT + + COALESCE ( 91, - CAST( NULL AS DECIMAL ) ) ) - + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT + COUNT ( * ) / - AVG ( DISTINCT + + COALESCE ( 91, - CAST ( NULL AS REAL ) ) ) - + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 59 - + 38
----
21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7101
SELECT DISTINCT - SUM( - NULLIF ( + ( - 17 ), + - 51 / CAST( NULL AS DECIMAL ) ) ) AS col0, COUNT( * )
----
-17
1

skipif mysql # not compatible
query II rowsort label-7101
SELECT DISTINCT - SUM ( - NULLIF ( + ( - 17 ), + - 51 / CAST ( NULL AS REAL ) ) ) AS col0, COUNT ( * )
----
-17
1

query I rowsort
SELECT DISTINCT 35 + 30 * + 55 col1
----
1685

onlyif mysql # aggregate syntax: 
query II rowsort label-7103
SELECT 18 AS col1, - ( + COUNT( * ) ) + 44 col0
----
18
43

skipif mysql # not compatible
query II rowsort label-7103
SELECT 18 AS col1, - ( + COUNT ( * ) ) + 44 col0
----
18
43

query I rowsort
SELECT ALL - NULLIF ( 5, + 65 )
----
-5

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

query I rowsort
SELECT 59 + - 53 AS col0
----
6

query I rowsort
SELECT + 82 * + 39 + - 80
----
3118

query I rowsort
SELECT 4 - - + ( - 53 ) AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7109
SELECT - 30 * - CASE 68 WHEN - 30 + - - 80 THEN - - 3 + + 84 + + NULLIF ( + 69, - CASE - + 84 WHEN + + 50 THEN 81 WHEN + + CAST( ( - 37 ) AS SIGNED ) THEN NULL ELSE NULL END ) ELSE NULL END + - + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7109
SELECT - 30 * - CASE 68 WHEN - 30 + - - 80 THEN - - 3 + + 84 + + NULLIF ( + 69, - CASE - + 84 WHEN + + 50 THEN 81 WHEN + + CAST ( ( - 37 ) AS INTEGER ) THEN NULL ELSE NULL END ) ELSE NULL END + - + 69
----
NULL

query I rowsort
SELECT - 57 + 49 AS col1
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7111
SELECT 69 AS col1, 29 + 82 * 66 * - 4 DIV + COUNT( * ) * + COUNT( * ) AS col1
----
69
-21619

skipif mysql # not compatible
query II rowsort label-7111
SELECT 69 AS col1, 29 + 82 * 66 * - 4 / + COUNT ( * ) * + COUNT ( * ) AS col1
----
69
-21619

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7113
SELECT COALESCE ( + + NULLIF ( - - ( + 6 ), + 18 * - - 69 ), AVG ( + COALESCE ( + 23, 89, 42 DIV - CAST( - 51 AS SIGNED ) + 22 ) ) ) DIV + 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7113
SELECT COALESCE ( + + NULLIF ( - - ( + 6 ), + 18 * - - 69 ), AVG ( + COALESCE ( + 23, 89, 42 / - CAST ( - 51 AS INTEGER ) + 22 ) ) ) / + 76 AS col1
----
0

query I rowsort
SELECT DISTINCT + 96 col0
----
96

query I rowsort
SELECT ALL - 23 * 49
----
-1127

query I rowsort
SELECT - 46 + - 27
----
-73

query I rowsort
SELECT 32 + - 90 - + - 85 * + 43 col1
----
3597

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT COUNT( ALL - - 90 ) + NULLIF ( - ( + 57 ), - 33 )
----
-56

skipif mysql # not compatible
query I rowsort label-7118
SELECT COUNT ( ALL - - 90 ) + NULLIF ( - ( + 57 ), - 33 )
----
-56

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

query I rowsort
SELECT + 96 + + 72 - + 20 * 94
----
-1712

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

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

query I rowsort
SELECT + 40 * 19
----
760

query I rowsort
SELECT ALL + 96 + + + ( - - 3 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT 15 + - 69 * + CASE + COUNT( * ) WHEN 92 THEN + - 69 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7124
SELECT 15 + - 69 * + CASE + COUNT ( * ) WHEN 92 THEN + - 69 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT DISTINCT COALESCE ( + - 53, - - 5 + COUNT( * ), 99 + - + 71 + + + COUNT( * ) + 36 ) * - + 73
----
3869

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT COALESCE ( + - 53, - - 5 + COUNT ( * ), 99 + - + 71 + + + COUNT ( * ) + 36 ) * - + 73
----
3869

query I rowsort
SELECT 24 + - ( 44 ) * - 4
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT 60 + - 4 * + 16 * MIN( 66 ) * + 81
----
-342084

skipif mysql # not compatible
query I rowsort label-7127
SELECT 60 + - 4 * + 16 * MIN ( 66 ) * + 81
----
-342084

query I rowsort
SELECT ALL ( - 88 ) * + 68
----
-5984

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT DISTINCT - 31 + + 99 + + CASE - - 82 WHEN + + NULLIF ( NULLIF ( + COUNT( DISTINCT - + 96 ), - 75 + + 17 + + - ( + 43 ) ), - + 4 ) - + 40 THEN NULL WHEN + 87 + + 3 THEN - + 28 + + 93 ELSE NULL END * 49 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7129
SELECT DISTINCT - 31 + + 99 + + CASE - - 82 WHEN + + NULLIF ( NULLIF ( + COUNT ( DISTINCT - + 96 ), - 75 + + 17 + + - ( + 43 ) ), - + 4 ) - + 40 THEN NULL WHEN + 87 + + 3 THEN - + 28 + + 93 ELSE NULL END * 49 / - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 71 + 18
----
89

query I rowsort
SELECT 49 * + 43 + + 61 * + - 75
----
-2468

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7133
SELECT + 60 DIV 28 + 27 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-7133
SELECT + 60 / 28 + 27 AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7134
SELECT DISTINCT 10 * - 33 + CASE - - CAST( NULL AS DECIMAL ) WHEN COUNT( * ) THEN NULL ELSE - 41 END AS col1
----
-371

skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT 10 * - 33 + CASE - - CAST ( NULL AS REAL ) WHEN COUNT ( * ) THEN NULL ELSE - 41 END AS col1
----
-371

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7135
SELECT ALL 94 + + CAST( 5 AS SIGNED ) DIV + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL 94 + + CAST ( 5 AS INTEGER ) / + COUNT ( * )
----
99

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7137
SELECT COUNT( DISTINCT - 38 ) AS col0, 13 * 37 - 80 + - 15 * + 9 * - 33
----
1
4856

skipif mysql # not compatible
query II rowsort label-7137
SELECT COUNT ( DISTINCT - 38 ) AS col0, 13 * 37 - 80 + - 15 * + 9 * - 33
----
1
4856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7138
SELECT COALESCE ( - 75, + COUNT( * ) * - 38 * + - CASE - COUNT( * ) WHEN + - 63 THEN NULL WHEN - + MIN( DISTINCT ( - 40 ) ) THEN 45 ELSE - - 87 END ) DIV - 53
----
1

skipif mysql # not compatible
query I rowsort label-7138
SELECT COALESCE ( - 75, + COUNT ( * ) * - 38 * + - CASE - COUNT ( * ) WHEN + - 63 THEN NULL WHEN - + MIN ( DISTINCT ( - 40 ) ) THEN 45 ELSE - - 87 END ) / - 53
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7139
SELECT ALL 87 DIV 5
----
17

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL 87 / 5
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT MIN( + - 86 ) * - COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7140
SELECT MIN ( + - 86 ) * - COUNT ( * ) AS col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7141
SELECT CASE + COUNT( * ) WHEN - 21 * - - ( - 78 ) + + + 81 * - + ( - - 30 ) THEN 73 / - COUNT( * ) ELSE NULL END * - 20 * 95 + - 2 / - + ( + - CAST( - COALESCE ( - - 57, - MAX( + ( CAST( NULL AS SIGNED ) ) ) * 57 ) AS SIGNED ) ) * + COUNT( DISTINCT + 48 ) + + ( 90 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7141
SELECT CASE + COUNT ( * ) WHEN - 21 * - - ( - 78 ) + + + 81 * - + ( - - 30 ) THEN 73 / - COUNT ( * ) ELSE NULL END * - 20 * 95 + - 2 / - + ( + - CAST ( - COALESCE ( - - 57, - MAX ( + ( CAST ( NULL AS INTEGER ) ) ) * 57 ) AS INTEGER ) ) * + COUNT ( DISTINCT + 48 ) + + ( 90 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7143
SELECT - 22 DIV + COUNT( * ) + - ( - 18 )
----
-4

skipif mysql # not compatible
query I rowsort label-7143
SELECT - 22 / + COUNT ( * ) + - ( - 18 )
----
-4

query I rowsort
SELECT DISTINCT - 7 col2
----
-7

query I rowsort
SELECT DISTINCT - 45 col0
----
-45

query I rowsort
SELECT ALL + 23 - + + 31 + 47
----
39

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

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

query I rowsort
SELECT ALL - 18 - + + 6
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT + 94 * + ( - 95 ) * + MAX( ALL - 20 )
----
178600

skipif mysql # not compatible
query I rowsort label-7150
SELECT + 94 * + ( - 95 ) * + MAX ( ALL - 20 )
----
178600

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

query I rowsort
SELECT ALL - - 47
----
47

query I rowsort
SELECT + - COALESCE ( - 2, - 85, + + 55 + - 29 ) * + - COALESCE ( - 43, - 79, - + 23 ) - + + 92 + + - 66 * + 66 * 70 * + 33 * + + 66
----
-664115766

onlyif mysql # aggregate syntax: 
query II rowsort label-7154
SELECT ALL - - ( + + 48 ) AS col0, 66 * - - 82 * + - SUM( ALL + + 62 ) * 90 AS col2
----
48
-30198960

skipif mysql # not compatible
query II rowsort label-7154
SELECT ALL - - ( + + 48 ) AS col0, 66 * - - 82 * + - SUM ( ALL + + 62 ) * 90 AS col2
----
48
-30198960

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

query I rowsort
SELECT ALL 63 col1
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7157
SELECT ALL + + 95 DIV 3 + ( - 13 ) * 3
----
-8

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL + + 95 / 3 + ( - 13 ) * 3
----
-8

query II rowsort
SELECT ALL ( - 12 ), + 88 AS col1
----
-12
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT - - SUM( ALL 31 ) * 93 AS col1
----
2883

skipif mysql # not compatible
query I rowsort label-7159
SELECT - - SUM ( ALL 31 ) * 93 AS col1
----
2883

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT - - COALESCE ( + - 73, + ( - 32 ), - - 75 * + ( - 55 ) + + NULLIF ( 90, MAX( DISTINCT + 66 ) ) * + + 78 + + 45 ) - - COUNT( * ) col1
----
-72

skipif mysql # not compatible
query I rowsort label-7160
SELECT - - COALESCE ( + - 73, + ( - 32 ), - - 75 * + ( - 55 ) + + NULLIF ( 90, MAX ( DISTINCT + 66 ) ) * + + 78 + + 45 ) - - COUNT ( * ) col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT ALL - - 65 + + 89 + 2 - + COUNT( * ) * 61 + - + SUM( - - 4 ) + 11 - + 0 + - + COUNT( DISTINCT + 23 ) - + - 40 * + 2 AS col0
----
181

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL - - 65 + + 89 + 2 - + COUNT ( * ) * 61 + - + SUM ( - - 4 ) + 11 - + 0 + - + COUNT ( DISTINCT + 23 ) - + - 40 * + 2 AS col0
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT ALL + COUNT( * ) * COALESCE ( + 49, MAX( DISTINCT 1 ) )
----
49

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL + COUNT ( * ) * COALESCE ( + 49, MAX ( DISTINCT 1 ) )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-7163
SELECT - 94 DIV 37 + + - 80
----
-82

skipif mysql # not compatible
query I rowsort label-7163
SELECT - 94 / 37 + + - 80
----
-82

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

skipif mysql # not compatible
query I rowsort label-7164
SELECT - 33 * 95 + COUNT ( * ) AS col0
----
-3134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7165
SELECT - COUNT( * ) * + 3 + - 39 + + 56 DIV ( - 11 )
----
-47

skipif mysql # not compatible
query I rowsort label-7165
SELECT - COUNT ( * ) * + 3 + - 39 + + 56 / ( - 11 )
----
-47

query II rowsort
SELECT DISTINCT - - 52 * + 84 * - 57 + - 69, + ( + 96 ) * + 41 + - 76 AS col1
----
-249045
3860

query I rowsort
SELECT - ( 64 ) * - 78 * 14 * 72 * + 8 AS col0
----
40255488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7168
SELECT ALL COALESCE ( + 45, - CASE + CAST( + COUNT( * ) AS SIGNED ) WHEN + 77 * - 76 + + - 20 + 50 + + MAX( 18 ) * + 79 + + ( + + 87 ) / + COUNT( * ) - - 18 + + COUNT( * ) * - 30 THEN NULL WHEN NULLIF ( + + 93, + COUNT( * ) ) THEN + 66 ELSE NULL END * - 46 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-7168
SELECT ALL COALESCE ( + 45, - CASE + CAST ( + COUNT ( * ) AS INTEGER ) WHEN + 77 * - 76 + + - 20 + 50 + + MAX ( 18 ) * + 79 + + ( + + 87 ) / + COUNT ( * ) - - 18 + + COUNT ( * ) * - 30 THEN NULL WHEN NULLIF ( + + 93, + COUNT ( * ) ) THEN + 66 ELSE NULL END * - 46 ) AS col2
----
45

query I rowsort
SELECT DISTINCT + 71 + 32 * - + 18
----
-505

query I rowsort
SELECT ALL 30 + + 94 - - - 93 * + 23
----
-2015

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7171
SELECT - COUNT( * ) * + 82 DIV 66, COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-7171
SELECT - COUNT ( * ) * + 82 / 66, COUNT ( * ) AS col0
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT - SUM( DISTINCT + 84 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-7172
SELECT - SUM ( DISTINCT + 84 ) AS col1
----
-84

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

skipif mysql # not compatible
query I rowsort label-7173
SELECT - SUM ( + ( ( + - 44 ) ) )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT - 76 + COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-7174
SELECT - 76 + COUNT ( * )
----
-75

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

query I rowsort
SELECT ALL 47 * - NULLIF ( 86, + 32 * 62 + + 37 ) col1
----
-4042

query I rowsort
SELECT + COALESCE ( + - 52, ( - 71 ) ) * - + 35 + + 84
----
1904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7178
SELECT + CAST( - - 32 AS SIGNED ) * + - 23 col2
----
-736

skipif mysql # not compatible
query I rowsort label-7178
SELECT + CAST ( - - 32 AS INTEGER ) * + - 23 col2
----
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT - ( + MIN( DISTINCT + 80 ) ) * - + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-7179
SELECT - ( + MIN ( DISTINCT + 80 ) ) * - + COUNT ( * )
----
80

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7181
SELECT + CAST( NULL AS SIGNED ) - + 51 / 54 + + - COUNT( * ) * - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7181
SELECT + CAST ( NULL AS INTEGER ) - + 51 / 54 + + - COUNT ( * ) * - 92
----
NULL

query I rowsort
SELECT DISTINCT 46 * + 2 * 6 * 24 AS col2
----
13248

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7184
SELECT + 39 * 13 + - 28 - COUNT( * ) + + 65 * 86 + ( + 13 ) + + 88 + + 55 * - - 55 * - CAST( 59 AS SIGNED )
----
-172306

skipif mysql # not compatible
query I rowsort label-7184
SELECT + 39 * 13 + - 28 - COUNT ( * ) + + 65 * 86 + ( + 13 ) + + 88 + + 55 * - - 55 * - CAST ( 59 AS INTEGER )
----
-172306

onlyif mysql # DIV for integer division: 
query I rowsort label-7185
SELECT - 79 DIV 53
----
-1

skipif mysql # not compatible
query I rowsort label-7185
SELECT - 79 / 53
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT + CASE - 92 WHEN - 82 + - - COALESCE ( ( + 7 ), + 96 ) * COUNT( DISTINCT - 70 ) THEN + 40 / - 97 * + + 53 WHEN + + COUNT( - 36 ) THEN NULL END * - SUM( - + 75 ) + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7186
SELECT + CASE - 92 WHEN - 82 + - - COALESCE ( ( + 7 ), + 96 ) * COUNT ( DISTINCT - 70 ) THEN + 40 / - 97 * + + 53 WHEN + + COUNT ( - 36 ) THEN NULL END * - SUM ( - + 75 ) + 75
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7187
SELECT + CASE 53 WHEN - CAST( NULL AS SIGNED ) THEN + NULLIF ( COUNT( * ), - - COUNT( * ) + 66 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7187
SELECT + CASE 53 WHEN - CAST ( NULL AS INTEGER ) THEN + NULLIF ( COUNT ( * ), - - COUNT ( * ) + 66 ) END
----
NULL

query I rowsort
SELECT 92 * 74 + - 32 col1
----
6776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7189
SELECT + 75 - + 23 * - - MAX( + CASE + 63 WHEN + 76 - + CAST( NULL AS SIGNED ) + - 7 * - - 99 THEN 36 WHEN 55 THEN NULL WHEN 45 THEN - 41 END ) + + CASE + + 18 WHEN - + 43 THEN NULL ELSE 44 - - ( 19 ) + + 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7189
SELECT + 75 - + 23 * - - MAX ( + CASE + 63 WHEN + 76 - + CAST ( NULL AS INTEGER ) + - 7 * - - 99 THEN 36 WHEN 55 THEN NULL WHEN 45 THEN - 41 END ) + + CASE + + 18 WHEN - + 43 THEN NULL ELSE 44 - - ( 19 ) + + 20 END
----
NULL

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

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

query I rowsort
SELECT + + 1 * + 99 AS col1
----
99

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

query II rowsort
SELECT ALL + 41 AS col1, 3 + + ( + 8 ) AS col0
----
41
11

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

query I rowsort
SELECT DISTINCT - 68 * + 22 + - 5
----
-1501

query I rowsort
SELECT ALL + 40 * - 14 + - + 76 AS col2
----
-636

query I rowsort
SELECT + 64 * 99
----
6336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7198
SELECT ALL + COALESCE ( + - 8, + CAST( NULL AS SIGNED ) * + 0 * + 71, - 98 ) * - CAST( 32 AS SIGNED ) + 76 + - + SUM( ALL ( + 47 ) )
----
285

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL + COALESCE ( + - 8, + CAST ( NULL AS INTEGER ) * + 0 * + 71, - 98 ) * - CAST ( 32 AS INTEGER ) + 76 + - + SUM ( ALL ( + 47 ) )
----
285

query I rowsort
SELECT + - 49 + + 90 - - - 90 AS col2
----
-49

query I rowsort
SELECT - + 54 col0
----
-54

query I rowsort
SELECT ALL + ( 19 ) + + - 54 AS col0
----
-35

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

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

query I rowsort
SELECT - 36 + + - 3 AS col1
----
-39

query I rowsort
SELECT 7 col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT - COUNT( * ) + + 37 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-7205
SELECT - COUNT ( * ) + + 37 AS col2
----
36

query I rowsort
SELECT ALL - 95 * - 64 col2
----
6080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7207
SELECT + 0 DIV - + COUNT( ALL + - 61 )
----
0

skipif mysql # not compatible
query I rowsort label-7207
SELECT + 0 / - + COUNT ( ALL + - 61 )
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT + MAX( DISTINCT - 15 ) * - 81 AS col1
----
1215

skipif mysql # not compatible
query I rowsort label-7210
SELECT + MAX ( DISTINCT - 15 ) * - 81 AS col1
----
1215

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT - ( COUNT( * ) ) + 22 + - CASE + - COUNT( * ) WHEN + 49 THEN 70 WHEN AVG ( 3 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7211
SELECT - ( COUNT ( * ) ) + 22 + - CASE + - COUNT ( * ) WHEN + 49 THEN 70 WHEN AVG ( 3 ) THEN NULL ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7213
SELECT ALL - 95 * - CAST( + + 96 AS SIGNED ) AS col2
----
9120

skipif mysql # not compatible
query I rowsort label-7213
SELECT ALL - 95 * - CAST ( + + 96 AS INTEGER ) AS col2
----
9120

query II rowsort
SELECT 7, + 22 * + 99 AS col0
----
7
2178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7215
SELECT - MAX( ALL - 78 ) + + CAST( - - COUNT( * ) AS SIGNED ) DIV NULLIF ( - NULLIF ( - COUNT( * ), 85 ), - + 82 DIV - 65 + 47 ) AS col1, - ( + + 98 ) * 93
----
79
-9114

skipif mysql # not compatible
query II rowsort label-7215
SELECT - MAX ( ALL - 78 ) + + CAST ( - - COUNT ( * ) AS INTEGER ) / NULLIF ( - NULLIF ( - COUNT ( * ), 85 ), - + 82 / - 65 + 47 ) AS col1, - ( + + 98 ) * 93
----
79
-9114

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7217
SELECT DISTINCT + 50 * - 30 AS col2, SUM( DISTINCT 19 ) AS col2
----
-1500
19

skipif mysql # not compatible
query II rowsort label-7217
SELECT DISTINCT + 50 * - 30 AS col2, SUM ( DISTINCT 19 ) AS col2
----
-1500
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT - COUNT( * ) + + 42 + - 35 - + SUM( + - 4 )
----
10

skipif mysql # not compatible
query I rowsort label-7218
SELECT - COUNT ( * ) + + 42 + - 35 - + SUM ( + - 4 )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7219
SELECT ALL + 58 AS col2, - ( COALESCE ( - COUNT( * ), + - 92 + CAST( + 41 AS SIGNED ) * - - 22 * + - 76 + + ( - - 96 ), - 59 + 73 + - 65 - 49 ) ) * - - 14
----
58
14

skipif mysql # not compatible
query II rowsort label-7219
SELECT ALL + 58 AS col2, - ( COALESCE ( - COUNT ( * ), + - 92 + CAST ( + 41 AS INTEGER ) * - - 22 * + - 76 + + ( - - 96 ), - 59 + 73 + - 65 - 49 ) ) * - - 14
----
58
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7220
SELECT + ( + 23 ) / - ( + + 95 ) * CAST( NULL AS SIGNED ) * + + 2 + + + 9 + - - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7220
SELECT + ( + 23 ) / - ( + + 95 ) * CAST ( NULL AS INTEGER ) * + + 2 + + + 9 + - - 30
----
NULL

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

query I rowsort
SELECT - 16 * + + 61 AS col2
----
-976

onlyif mysql # aggregate syntax: 
query II rowsort label-7223
SELECT ALL + + 2 AS col0, + 68 * - - 21 + + SUM( DISTINCT 64 )
----
2
1492

skipif mysql # not compatible
query II rowsort label-7223
SELECT ALL + + 2 AS col0, + 68 * - - 21 + + SUM ( DISTINCT 64 )
----
2
1492

query I rowsort
SELECT + + 84 col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT - + 80 * + - 79 * COUNT( * ) AS col1
----
6320

skipif mysql # not compatible
query I rowsort label-7225
SELECT - + 80 * + - 79 * COUNT ( * ) AS col1
----
6320

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT - + 71 * - COUNT( * ) + - 80 col1
----
-9

skipif mysql # not compatible
query I rowsort label-7226
SELECT - + 71 * - COUNT ( * ) + - 80 col1
----
-9

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

query I rowsort
SELECT 76 * COALESCE ( 96, 60, + ( + 70 ) ) AS col1
----
7296

query I rowsort
SELECT ALL - 36 * + 62
----
-2232

onlyif mysql # aggregate syntax: 
query II rowsort label-7230
SELECT 0 AS col0, + 3 * COUNT( + + 92 ) + + COUNT( * ) + - 10
----
0
-6

skipif mysql # not compatible
query II rowsort label-7230
SELECT 0 AS col0, + 3 * COUNT ( + + 92 ) + + COUNT ( * ) + - 10
----
0
-6

query I rowsort
SELECT ALL + + ( 55 ) + + 13 col2
----
68

query II rowsort
SELECT + 3 AS col0, + 39 AS col2
----
3
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT - COUNT( * ) + + + SUM( 80 )
----
79

skipif mysql # not compatible
query I rowsort label-7233
SELECT - COUNT ( * ) + + + SUM ( 80 )
----
79

query I rowsort
SELECT DISTINCT + 33 + + + 73
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT ALL - - 11 * + + MAX( + 69 ) + + 89 * + 66 + - + 84
----
6549

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL - - 11 * + + MAX ( + 69 ) + + 89 * + 66 + - + 84
----
6549

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT NULLIF ( + MAX( DISTINCT - 39 ), - 23 * 98 + - + 57 + 58 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-7236
SELECT NULLIF ( + MAX ( DISTINCT - 39 ), - 23 * 98 + - + 57 + 58 ) AS col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7237
SELECT ALL - 84 + 47 / + 82 / + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL - 84 + 47 / + 82 / + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT + MAX( ALL - 61 ) col2
----
-61

skipif mysql # not compatible
query I rowsort label-7238
SELECT + MAX ( ALL - 61 ) col2
----
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-7239
SELECT + 15 DIV + 64 AS col1, + 58 * - 92 - - - 79 + + - 90
----
0
-5505

skipif mysql # not compatible
query II rowsort label-7239
SELECT + 15 / + 64 AS col1, + 58 * - 92 - - - 79 + + - 90
----
0
-5505

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT DISTINCT COUNT( ALL - - 6 ) + - 58 * 28
----
-1623

skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT COUNT ( ALL - - 6 ) + - 58 * 28
----
-1623

query I rowsort
SELECT DISTINCT - 90 + - - 86 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT ALL 7 * - 39 * + - COUNT( * ) * + 24 AS col2
----
6552

skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL 7 * - 39 * + - COUNT ( * ) * + 24 AS col2
----
6552

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7243
SELECT DISTINCT 66 - ( 0 ) DIV + 21 * 94 col2, - CAST( NULL AS DECIMAL ) DIV 3 AS col0
----
66
NULL

skipif mysql # not compatible
query II rowsort label-7243
SELECT DISTINCT 66 - ( 0 ) / + 21 * 94 col2, - CAST ( NULL AS REAL ) / 3 AS col0
----
66
NULL

query I rowsort
SELECT ALL 61 col0
----
61

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

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

query I rowsort
SELECT ALL 71 * 6 AS col1
----
426

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT ALL - CASE + 89 WHEN - 35 * - - 30 + 33 THEN + 93 + + SUM( DISTINCT + 99 ) ELSE NULL END * - 68 + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL - CASE + 89 WHEN - 35 * - - 30 + 33 THEN + 93 + + SUM ( DISTINCT + 99 ) ELSE NULL END * - 68 + + 68
----
NULL

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

query I rowsort
SELECT DISTINCT 93
----
93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7251
SELECT CAST( - 95 AS SIGNED ) + 46 DIV - 15
----
-98

skipif mysql # not compatible
query I rowsort label-7251
SELECT CAST ( - 95 AS INTEGER ) + 46 / - 15
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7252
SELECT CAST( - 69 AS SIGNED ) + - 50 AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-7252
SELECT CAST ( - 69 AS INTEGER ) + - 50 AS col0
----
-119

query I rowsort
SELECT 10 * + - 50
----
-500

query I rowsort
SELECT 13 * - ( - 53 ) col2
----
689

query I rowsort
SELECT ALL + 65 * + 62 AS col1
----
4030

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7256
SELECT CASE + - 30 WHEN + CAST( NULL AS SIGNED ) THEN - 85 ELSE + - 16 END + + 17
----
1

skipif mysql # not compatible
query I rowsort label-7256
SELECT CASE + - 30 WHEN + CAST ( NULL AS INTEGER ) THEN - 85 ELSE + - 16 END + + 17
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT - ( - + 42 ) / + 51 / + CASE 63 WHEN 20 + - - COUNT( * ) THEN NULL WHEN 48 * - 84 THEN NULL WHEN - - 48 THEN NULL WHEN + 61 * 77 + - ( - + 73 ) THEN 49 ELSE NULL END * + 71 + + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7257
SELECT - ( - + 42 ) / + 51 / + CASE 63 WHEN 20 + - - COUNT ( * ) THEN NULL WHEN 48 * - 84 THEN NULL WHEN - - 48 THEN NULL WHEN + 61 * 77 + - ( - + 73 ) THEN 49 ELSE NULL END * + 71 + + - 50
----
NULL

query I rowsort
SELECT ALL + - 63 + + ( - - 27 )
----
-36

query I rowsort
SELECT + 8 col1
----
8

query I rowsort
SELECT DISTINCT + 48 + - 70 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT DISTINCT + + COUNT( * ) + - - 27 * + 3
----
82

skipif mysql # not compatible
query I rowsort label-7261
SELECT DISTINCT + + COUNT ( * ) + - - 27 * + 3
----
82

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

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

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

query I rowsort
SELECT - 92 * - 98 + - 42 AS col0
----
8974

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

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

query I rowsort
SELECT ALL + 54 + - 39
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT + 90 + + 34 + - 28 * COUNT( * ) * + - 26 * - 61 AS col0
----
-44284

skipif mysql # not compatible
query I rowsort label-7267
SELECT + 90 + + 34 + - 28 * COUNT ( * ) * + - 26 * - 61 AS col0
----
-44284

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

skipif mysql # not compatible
query I rowsort label-7268
SELECT + - SUM ( + + 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT + SUM( DISTINCT - 57 ) - COUNT( * ) * - COUNT( * ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-7269
SELECT + SUM ( DISTINCT - 57 ) - COUNT ( * ) * - COUNT ( * ) AS col2
----
-56

query I rowsort
SELECT DISTINCT + 61 - 11
----
50

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

query I rowsort
SELECT 63 + 36 + + - 82 AS col0
----
17

query I rowsort
SELECT DISTINCT + 13 * NULLIF ( 4, + 7 * - 9 + 62 ) AS col2
----
52

query I rowsort
SELECT 40 + + 35 AS col0
----
75

query I rowsort
SELECT 43 * + 50
----
2150

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT SUM( + + 74 ) * - COUNT( DISTINCT - + ( - - 58 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-7276
SELECT SUM ( + + 74 ) * - COUNT ( DISTINCT - + ( - - 58 ) )
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7277
SELECT ALL 24 DIV - 53 * - 78 AS col2, MIN( DISTINCT 26 )
----
0
26

skipif mysql # not compatible
query II rowsort label-7277
SELECT ALL 24 / - 53 * - 78 AS col2, MIN ( DISTINCT 26 )
----
0
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT MAX( - 58 ) * - 82 AS col2
----
4756

skipif mysql # not compatible
query I rowsort label-7278
SELECT MAX ( - 58 ) * - 82 AS col2
----
4756

query I rowsort
SELECT 78 * - 21
----
-1638

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

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

query II rowsort
SELECT ALL 83 AS col1, ( 84 ) AS col0
----
83
84

query I rowsort
SELECT 68 * + 1 AS col2
----
68

query II rowsort
SELECT - 41 col2, - 82 * 94
----
-41
-7708

onlyif mysql # aggregate syntax: 
query II rowsort label-7284
SELECT - 92 AS col2, 36 * + 43 + - + COALESCE ( 72, - + 41 + - - 95 * - 64, - + COALESCE ( - 47, - COUNT( * ) ) * + 0 + + 95 + + + ( 45 ) + + - 90 + 67 + + 85 ) AS col0
----
-92
1476

skipif mysql # not compatible
query II rowsort label-7284
SELECT - 92 AS col2, 36 * + 43 + - + COALESCE ( 72, - + 41 + - - 95 * - 64, - + COALESCE ( - 47, - COUNT ( * ) ) * + 0 + + 95 + + + ( 45 ) + + - 90 + 67 + + 85 ) AS col0
----
-92
1476

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7285
SELECT - CASE - - 67 WHEN + + COUNT( * ) + ( + COUNT( * ) ) - - CAST( - 28 AS DECIMAL ) - + 28 + + NULLIF ( + MIN( + 18 ), + 32 ) / + 24 * 80 * - COUNT( * ) THEN + COALESCE ( 72, + 43, - 60 / - 45 ) * + 55 * + 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7285
SELECT - CASE - - 67 WHEN + + COUNT ( * ) + ( + COUNT ( * ) ) - - CAST ( - 28 AS REAL ) - + 28 + + NULLIF ( + MIN ( + 18 ), + 32 ) / + 24 * 80 * - COUNT ( * ) THEN + COALESCE ( 72, + 43, - 60 / - 45 ) * + 55 * + 72 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7286
SELECT - COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7286
SELECT - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT MIN( 67 ) * + 84
----
5628

skipif mysql # not compatible
query I rowsort label-7287
SELECT MIN ( 67 ) * + 84
----
5628

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT 29 + - 63 * + COUNT( * ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-7288
SELECT 29 + - 63 * + COUNT ( * ) AS col0
----
-34

query I rowsort
SELECT DISTINCT 63 * + + 88
----
5544

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7290
SELECT - - 60 AS col0, - 28 + + - CASE - 13 WHEN 31 * 99 THEN + NULLIF ( CAST( NULL AS SIGNED ), AVG ( + 20 ) ) * - 24 + - 31 * + - 86 * - + 80 / + + 15 * + + 76 + + 27 END
----
60
NULL

skipif mysql # not compatible
query II rowsort label-7290
SELECT - - 60 AS col0, - 28 + + - CASE - 13 WHEN 31 * 99 THEN + NULLIF ( CAST ( NULL AS INTEGER ), AVG ( + 20 ) ) * - 24 + - 31 * + - 86 * - + 80 / + + 15 * + + 76 + + 27 END
----
60
NULL

query I rowsort
SELECT ALL + + 64
----
64

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7294
SELECT - - 64 DIV - 39 * 90 DIV 61 + 16
----
15

skipif mysql # not compatible
query I rowsort label-7294
SELECT - - 64 / - 39 * 90 / 61 + 16
----
15

query I rowsort
SELECT - 31 * - 7
----
217

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

query I rowsort
SELECT + ( 7 ) * - 71
----
-497

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7298
SELECT ALL - - 13 * 5 + - + 64 * + 42 * + 44 * + 91 * - 51 + 24 - - COUNT( * ) + + COUNT( * ) * ( - COUNT( * ) ) * - SUM( + + 27 ) DIV + 18 col1
----
548900443

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL - - 13 * 5 + - + 64 * + 42 * + 44 * + 91 * - 51 + 24 - - COUNT ( * ) + + COUNT ( * ) * ( - COUNT ( * ) ) * - SUM ( + + 27 ) / + 18 col1
----
548900443

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT + - CASE - COUNT( * ) WHEN + 31 + + 75 / - 9 THEN NULL WHEN - + COUNT( * ) + 40 THEN NULL WHEN - - ( 7 ) THEN NULL ELSE 67 END
----
-67

skipif mysql # not compatible
query I rowsort label-7300
SELECT + - CASE - COUNT ( * ) WHEN + 31 + + 75 / - 9 THEN NULL WHEN - + COUNT ( * ) + 40 THEN NULL WHEN - - ( 7 ) THEN NULL ELSE 67 END
----
-67

query I rowsort
SELECT + - 51 * + - 59 + + 18
----
3027

query I rowsort
SELECT + + 62
----
62

query I rowsort
SELECT DISTINCT + NULLIF ( - 38, - 28 ) col0
----
-38

query I rowsort
SELECT + 3 * + 3 + + 7 AS col0
----
16

query I rowsort
SELECT - NULLIF ( - + 92, + - 17 ) * + 45 * + - CASE - 22 WHEN - - 1 / - 47 * 58 * 77 THEN + 44 * - - 30 WHEN + - 63 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 33
----
33

query I rowsort
SELECT - NULLIF ( + - 27, + ( ( + 17 ) ) ) * + 94
----
2538

query I rowsort
SELECT DISTINCT + 91 * 65 AS col1
----
5915

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

query I rowsort
SELECT + 76 * - 16 * - 30
----
36480

query I rowsort
SELECT - ( 17 ) - ( 42 ) AS col2
----
-59

query I rowsort
SELECT DISTINCT 41 col1
----
41

query I rowsort
SELECT + 46 * + - 88
----
-4048

query I rowsort
SELECT - 16 * + 75 * 43 * + + 87 AS col2
----
-4489200

query I rowsort
SELECT ALL - 2 + + 99 * 38 col0
----
3760

onlyif mysql # aggregate syntax: 
query II rowsort label-7316
SELECT DISTINCT - COUNT( * ) + 26 AS col0, - 70 AS col2
----
25
-70

skipif mysql # not compatible
query II rowsort label-7316
SELECT DISTINCT - COUNT ( * ) + 26 AS col0, - 70 AS col2
----
25
-70

query I rowsort
SELECT ALL + 48 + - 55 * + - 1 col0
----
103

query I rowsort
SELECT DISTINCT 14 + 9
----
23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT + - 68 * COUNT( * ) * - 0 * + - 26 + 21
----
21

skipif mysql # not compatible
query I rowsort label-7320
SELECT + - 68 * COUNT ( * ) * - 0 * + - 26 + 21
----
21

query I rowsort
SELECT - - 92
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7322
SELECT CASE + + CAST( + - 26 AS SIGNED ) WHEN + 77 THEN 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7322
SELECT CASE + + CAST ( + - 26 AS INTEGER ) WHEN + 77 THEN 43 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7323
SELECT ALL CAST( 1 AS SIGNED ) + - CAST( NULL AS SIGNED ) + 65 * + 95 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL CAST ( 1 AS INTEGER ) + - CAST ( NULL AS INTEGER ) + 65 * + 95 col0
----
NULL

query I rowsort
SELECT + 28 - - - 14 + - 81
----
-67

query I rowsort
SELECT ALL + ( + + 31 ) * 63
----
1953

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT ( + COALESCE ( - + CASE + 91 WHEN + - 96 THEN NULL WHEN + COALESCE ( + 51, - 33 + - + MAX( DISTINCT 90 ) ) * 51 THEN NULL WHEN + MIN( 48 ) THEN NULL WHEN NULLIF ( + 95, - 8 ) THEN + CASE + 93 WHEN - + 39 * - 11 THEN + CASE - 90 WHEN + + 27 + ( 63 ) THEN + 33 END END END, 47 ) )
----
47

skipif mysql # not compatible
query I rowsort label-7326
SELECT ( + COALESCE ( - + CASE + 91 WHEN + - 96 THEN NULL WHEN + COALESCE ( + 51, - 33 + - + MAX ( DISTINCT 90 ) ) * 51 THEN NULL WHEN + MIN ( 48 ) THEN NULL WHEN NULLIF ( + 95, - 8 ) THEN + CASE + 93 WHEN - + 39 * - 11 THEN + CASE - 90 WHEN + + 27 + ( 63 ) THEN + 33 END END END, 47 ) )
----
47

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

skipif mysql # not compatible
query I rowsort label-7327
SELECT - + 29 / ( + 13 ) / + + 62 + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7328
SELECT DISTINCT + + 70 DIV - ( - 29 ) - 80 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-7328
SELECT DISTINCT + + 70 / - ( - 29 ) - 80 AS col1
----
-78

query I rowsort
SELECT + - 66 + - 55 AS col0
----
-121

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7331
SELECT + 33 * + 69 * + 43 + + NULLIF ( + + 75, + - CAST( SUM( + 31 ) AS SIGNED ) * - COUNT( * ) * 15 / - 28 ) AS col1
----
97986

skipif mysql # not compatible
query I rowsort label-7331
SELECT + 33 * + 69 * + 43 + + NULLIF ( + + 75, + - CAST ( SUM ( + 31 ) AS INTEGER ) * - COUNT ( * ) * 15 / - 28 ) AS col1
----
97986

query I rowsort
SELECT + 31 * - 62 + 4 AS col2
----
-1918

onlyif mysql # aggregate syntax: 
query II rowsort label-7333
SELECT + 88 + + SUM( - 1 ) + - - 51, COUNT( * ) AS col2
----
138
1

skipif mysql # not compatible
query II rowsort label-7333
SELECT + 88 + + SUM ( - 1 ) + - - 51, COUNT ( * ) AS col2
----
138
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7334
SELECT - 58 DIV 31
----
-1

skipif mysql # not compatible
query I rowsort label-7334
SELECT - 58 / 31
----
-1

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

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

query I rowsort
SELECT + 54 * 64 AS col2
----
3456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7337
SELECT - NULLIF ( - CAST( - 67 AS SIGNED ), + + 86 * COUNT( * ) + 13 ) + - ( + 4 ) AS col0, COUNT( * )
----
-71
1

skipif mysql # not compatible
query II rowsort label-7337
SELECT - NULLIF ( - CAST ( - 67 AS INTEGER ), + + 86 * COUNT ( * ) + 13 ) + - ( + 4 ) AS col0, COUNT ( * )
----
-71
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT + COUNT( * ) * + 70 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-7338
SELECT + COUNT ( * ) * + 70 AS col1
----
70

query I rowsort
SELECT ALL + 95 * - 32 col1
----
-3040

query I rowsort
SELECT - ( - 60 ) + 22 + CASE - AVG ( + 65 ) WHEN + 82 THEN - + 52 WHEN - 72 THEN NULL END + + + 69 AS col0
----
NULL

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

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

query I rowsort
SELECT NULLIF ( 19, - 69 * 63 ) AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7343
SELECT ALL 42 * + 19 + CAST( ( - ( + + COUNT( * ) ) ) AS SIGNED ) - 35
----
762

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL 42 * + 19 + CAST ( ( - ( + + COUNT ( * ) ) ) AS INTEGER ) - 35
----
762

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT + 88 + 80 * 46 * - COUNT( * )
----
-3592

skipif mysql # not compatible
query I rowsort label-7344
SELECT + 88 + 80 * 46 * - COUNT ( * )
----
-3592

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT + 60 * 63 + + COUNT( ALL - - NULLIF ( + 50, + 86 ) ) * - + 51 AS col1
----
3729

skipif mysql # not compatible
query I rowsort label-7345
SELECT + 60 * 63 + + COUNT ( ALL - - NULLIF ( + 50, + 86 ) ) * - + 51 AS col1
----
3729

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7346
SELECT - 70 - - + 65 DIV COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-7346
SELECT - 70 - - + 65 / COUNT ( * )
----
-5

query I rowsort
SELECT DISTINCT ( - + 77 ) col0
----
-77

query II rowsort
SELECT ALL 36 AS col1, - 33 + - + 45 AS col1
----
36
-78

query I rowsort
SELECT 93 + + 48
----
141

query I rowsort
SELECT DISTINCT 42 col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT 9 + + 87 * + + NULLIF ( - + 18, + COUNT( * ) ) * - + COUNT( * ) AS col2
----
1575

skipif mysql # not compatible
query I rowsort label-7351
SELECT 9 + + 87 * + + NULLIF ( - + 18, + COUNT ( * ) ) * - + COUNT ( * ) AS col2
----
1575

query I rowsort
SELECT 19 + 36
----
55

query I rowsort
SELECT ALL - COALESCE ( ( - 38 ), + + 57, - 19 ) * - + 65
----
-2470

query II rowsort
SELECT - ( 72 ) + - - 89 AS col1, + 66
----
17
66

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

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

query I rowsort
SELECT 20 + - 78 + - 56 + + 24 * 74 + + - 54 + + 16 AS col1
----
1624

onlyif mysql # aggregate syntax: 
query II rowsort label-7357
SELECT ALL + COUNT( * ) + COUNT( * ) * - 88 * + 48 * ( 54 ) AS col1, - 73
----
-228095
-73

skipif mysql # not compatible
query II rowsort label-7357
SELECT ALL + COUNT ( * ) + COUNT ( * ) * - 88 * + 48 * ( 54 ) AS col1, - 73
----
-228095
-73

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

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT - + COUNT ( * ) - - 90 AS col0
----
89

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

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

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

query I rowsort
SELECT ALL 39 col2
----
39

query II rowsort
SELECT 65 col1, 22 * + 38 col2
----
65
836

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT COALESCE ( 94, - + COALESCE ( - - COUNT( * ), COUNT( * ) ) * ( - - 54 ) + + 90 )
----
94

skipif mysql # not compatible
query I rowsort label-7363
SELECT COALESCE ( 94, - + COALESCE ( - - COUNT ( * ), COUNT ( * ) ) * ( - - 54 ) + + 90 )
----
94

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

query I rowsort
SELECT ALL 32 * + - ( 25 ) AS col1
----
-800

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

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

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

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

query I rowsort
SELECT 45 * 45
----
2025

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

query I rowsort
SELECT ALL - 80 * + 74
----
-5920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7371
SELECT 69 * + CAST( - - 88 AS SIGNED ) AS col2
----
6072

skipif mysql # not compatible
query I rowsort label-7371
SELECT 69 * + CAST ( - - 88 AS INTEGER ) AS col2
----
6072

query II rowsort
SELECT DISTINCT 42 + - + 38, - ( 11 ) AS col0
----
4
-11

query I rowsort
SELECT DISTINCT 54 * + 65 * + 69
----
242190

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT DISTINCT - MAX( DISTINCT - - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-7374
SELECT DISTINCT - MAX ( DISTINCT - - 91 )
----
-91

query I rowsort
SELECT DISTINCT 6 + - 9 - 85 * 66 AS col2
----
-5613

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7376
SELECT 61 col1, + 0 AS col0, - - 97 DIV MAX( ALL + + 25 ) AS col1
----
61
0
3

skipif mysql # not compatible
query III rowsort label-7376
SELECT 61 col1, + 0 AS col0, - - 97 / MAX ( ALL + + 25 ) AS col1
----
61
0
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7377
SELECT 84 DIV - ( + + COUNT( * ) ) AS col0
----
-84

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

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

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

query II rowsort
SELECT + 80 AS col2, 19 AS col0
----
80
19

query I rowsort
SELECT 29 + 72 AS col1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT ALL 5 + - + 5 * + COUNT( * ) * - MIN( ALL - 50 )
----
-245

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL 5 + - + 5 * + COUNT ( * ) * - MIN ( ALL - 50 )
----
-245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7382
SELECT ALL - 1 + + 79 + CAST( NULL AS SIGNED ) + + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL - 1 + + 79 + CAST ( NULL AS INTEGER ) + + - 98
----
NULL

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

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

query I rowsort
SELECT DISTINCT 40 * + 78
----
3120

query II rowsort
SELECT 22 * - 42, 58 col0
----
-924
58

query I rowsort
SELECT ALL 46 col1
----
46

query II rowsort
SELECT - 47, - 87 AS col0
----
-47
-87

query II rowsort
SELECT - 1, 74 - - + 94 AS col0
----
-1
168

query I rowsort
SELECT + 83 * - 99 col2
----
-8217

query II rowsort
SELECT DISTINCT - 63 AS col0, - 46
----
-63
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7391
SELECT + 67 col0, + CAST( NULL AS SIGNED ) * + COALESCE ( COUNT( * ), + + 32, 21 * ( - + ( + 82 ) ) - + + 55 - + 29 - + CAST( 81 AS DECIMAL ) ) AS col0
----
67
NULL

skipif mysql # not compatible
query II rowsort label-7391
SELECT + 67 col0, + CAST ( NULL AS INTEGER ) * + COALESCE ( COUNT ( * ), + + 32, 21 * ( - + ( + 82 ) ) - + + 55 - + 29 - + CAST ( 81 AS REAL ) ) AS col0
----
67
NULL

query II rowsort
SELECT ALL 94, + 89 AS col0
----
94
89

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

query I rowsort
SELECT DISTINCT - 27 - 87
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT COUNT( * ) - + + 48 * - 46
----
2209

skipif mysql # not compatible
query I rowsort label-7395
SELECT COUNT ( * ) - + + 48 * - 46
----
2209

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

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL - 36 / + - COUNT ( * )
----
36

query I rowsort
SELECT 91 - + ( - + ( - ( 42 ) ) ) AS col1
----
49

query I rowsort
SELECT ALL - + 24 * - 64
----
1536

query II rowsort
SELECT ALL - 94, 92 AS col0
----
-94
92

query I rowsort
SELECT - + COALESCE ( 22, - + ( + 80 ) )
----
-22

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7403
SELECT + 57 + 56 * + MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) * + - 27 - + 71 AS col1, + 84
----
NULL
84

skipif mysql # not compatible
query II rowsort label-7403
SELECT + 57 + 56 * + MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) * + - 27 - + 71 AS col1, + 84
----
NULL
84

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

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

query II rowsort
SELECT ALL - - 49 AS col0, - ( 5 ) AS col1
----
49
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7407
SELECT DISTINCT + 70 DIV + ( - 69 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7407
SELECT DISTINCT + 70 / + ( - 69 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 90 * + 73 + + 92 * - - 28 AS col2
----
9146

query I rowsort
SELECT DISTINCT 0 * - 10
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT MAX( - - 54 )
----
54

skipif mysql # not compatible
query I rowsort label-7412
SELECT MAX ( - - 54 )
----
54

query I rowsort
SELECT DISTINCT + 61 col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7414
SELECT ALL + 93 * + COUNT( * ) * + 99 * - 27 + + - CAST( 33 AS SIGNED ) AS col0
----
-248622

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL + 93 * + COUNT ( * ) * + 99 * - 27 + + - CAST ( 33 AS INTEGER ) AS col0
----
-248622

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT + 93 * - + ( ( + NULLIF ( - COUNT( * ), 74 + + 20 ) ) ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-7415
SELECT + 93 * - + ( ( + NULLIF ( - COUNT ( * ), 74 + + 20 ) ) ) AS col2
----
93

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

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

skipif mysql # not compatible
query I rowsort label-7417
SELECT COUNT ( + CAST ( 55 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7418
SELECT ALL + COUNT( + 70 ), - 76 AS col1
----
1
-76

skipif mysql # not compatible
query II rowsort label-7418
SELECT ALL + COUNT ( + 70 ), - 76 AS col1
----
1
-76

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

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

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

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

query I rowsort
SELECT 7 * + 5 + - 32 * - 10
----
355

onlyif mysql # DIV for integer division: 
query I rowsort label-7423
SELECT + 81 - 22 + + 91 DIV - - 15 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-7423
SELECT + 81 - 22 + + 91 / - - 15 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT - - NULLIF ( - 27, + ( - - ( - 79 ) ) ) * CASE - 46 WHEN 30 THEN - NULLIF ( - COALESCE ( - 98, - AVG ( ALL + 59 ) + - - 60 * + 13 - - 28 + 24 + + + 67 * + 67 ), - NULLIF ( + 5, CASE + + 46 WHEN COUNT( * ) THEN NULL WHEN - - 76 THEN NULL WHEN - + 96 THEN 21 END * 89 ) ) / COUNT( * ) + - COALESCE ( 64 - - 85, - 90 ) WHEN - COUNT( * ) THEN NULL ELSE NULL END * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7424
SELECT - - NULLIF ( - 27, + ( - - ( - 79 ) ) ) * CASE - 46 WHEN 30 THEN - NULLIF ( - COALESCE ( - 98, - AVG ( ALL + 59 ) + - - 60 * + 13 - - 28 + 24 + + + 67 * + 67 ), - NULLIF ( + 5, CASE + + 46 WHEN COUNT ( * ) THEN NULL WHEN - - 76 THEN NULL WHEN - + 96 THEN 21 END * 89 ) ) / COUNT ( * ) + - COALESCE ( 64 - - 85, - 90 ) WHEN - COUNT ( * ) THEN NULL ELSE NULL END * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT + 25 + - - CASE + 13 WHEN 53 * + 44 THEN - MAX( - 7 ) END + 12 * - MIN( DISTINCT + + 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7425
SELECT + 25 + - - CASE + 13 WHEN 53 * + 44 THEN - MAX ( - 7 ) END + 12 * - MIN ( DISTINCT + + 63 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7426
SELECT + 52 DIV - + SUM( ALL - 70 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7426
SELECT + 52 / - + SUM ( ALL - 70 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7427
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + CAST( + + COUNT( * ) AS SIGNED ), COALESCE ( - COUNT( * ), + + 0 ) * 77 AS col0
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-7427
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + CAST ( + + COUNT ( * ) AS INTEGER ), COALESCE ( - COUNT ( * ), + + 0 ) * 77 AS col0
----
NULL
-77

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

query I rowsort
SELECT ALL + 73 * 97 AS col1
----
7081

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7431
SELECT - + NULLIF ( + 48, - 41 * + COUNT( * ) ) + - 88, ( - + COUNT( - 86 ) ) AS col2
----
-136
-1

skipif mysql # not compatible
query II rowsort label-7431
SELECT - + NULLIF ( + 48, - 41 * + COUNT ( * ) ) + - 88, ( - + COUNT ( - 86 ) ) AS col2
----
-136
-1

query I rowsort
SELECT ALL - 26 col1
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7433
SELECT ALL - - 30 + - 30 AS col2, COALESCE ( - 24, - 46, - 65 * - 3 + + MAX( - CAST( 21 AS SIGNED ) ) ) AS col1
----
0
-24

skipif mysql # not compatible
query II rowsort label-7433
SELECT ALL - - 30 + - 30 AS col2, COALESCE ( - 24, - 46, - 65 * - 3 + + MAX ( - CAST ( 21 AS INTEGER ) ) ) AS col1
----
0
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7434
SELECT - 11 + + - 64 + - - 19 * 41 + - - 25, + CAST( + 40 AS SIGNED ) AS col2
----
729
40

skipif mysql # not compatible
query II rowsort label-7434
SELECT - 11 + + - 64 + - - 19 * 41 + - - 25, + CAST ( + 40 AS INTEGER ) AS col2
----
729
40

query II rowsort
SELECT + - 2 * + + 3 AS col0, 38 * 6 * - 33
----
-6
-7524

query I rowsort
SELECT DISTINCT - 91 + + ( 20 ) * 18 AS col2
----
269

query I rowsort
SELECT ALL 38 + + ( - 51 ) + 50
----
37

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

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

query II rowsort
SELECT + 2 AS col0, NULLIF ( - 6, + 86 + - + 2 - - 57 * + 51 )
----
2
-6

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

query II rowsort
SELECT + 57, - 28 AS col1
----
57
-28

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7443
SELECT COUNT( * ) * 55 - + ( - MAX( + 34 ) ) * + 86 * ( 77 ) * + + COALESCE ( + - COALESCE ( + MAX( - - 1 ), - CAST( + 0 AS SIGNED ) * + CASE - - COUNT( * ) WHEN + 11 - - CAST( NULL AS SIGNED ) THEN - 86 + + + 76 * 96 * + 33 WHEN 24 THEN NULL WHEN - + 74 * + + 40 + - 57 - - - 37 * + 74 + 2 + - 80 THEN - 26 ELSE NULL END ), - 3, 19 * + 13 ) col1
----
-225093

skipif mysql # not compatible
query I rowsort label-7443
SELECT COUNT ( * ) * 55 - + ( - MAX ( + 34 ) ) * + 86 * ( 77 ) * + + COALESCE ( + - COALESCE ( + MAX ( - - 1 ), - CAST ( + 0 AS INTEGER ) * + CASE - - COUNT ( * ) WHEN + 11 - - CAST ( NULL AS INTEGER ) THEN - 86 + + + 76 * 96 * + 33 WHEN 24 THEN NULL WHEN - + 74 * + + 40 + - 57 - - - 37 * + 74 + 2 + - 80 THEN - 26 ELSE NULL END ), - 3, 19 * + 13 ) col1
----
-225093

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

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

skipif mysql # not compatible
query I rowsort label-7445
SELECT - 29 * COUNT ( * )
----
-29

query I rowsort
SELECT - 0 * + 63
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7448
SELECT - 94 * + COUNT( - - 92 ) AS col2, - 66
----
-94
-66

skipif mysql # not compatible
query II rowsort label-7448
SELECT - 94 * + COUNT ( - - 92 ) AS col2, - 66
----
-94
-66

query I rowsort
SELECT ALL ( 91 ) * 32 AS col2
----
2912

onlyif mysql # aggregate syntax: 
query II rowsort label-7450
SELECT - 11 + + 28 * + 23, + MAX( ALL - + 50 ) col2
----
633
-50

skipif mysql # not compatible
query II rowsort label-7450
SELECT - 11 + + 28 * + 23, + MAX ( ALL - + 50 ) col2
----
633
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-7451
SELECT DISTINCT - 5 * + 13 - + COUNT( * ), - 94 col1
----
-66
-94

skipif mysql # not compatible
query II rowsort label-7451
SELECT DISTINCT - 5 * + 13 - + COUNT ( * ), - 94 col1
----
-66
-94

query I rowsort
SELECT COALESCE ( - + 74, + 85, - 52 ) AS col2
----
-74

query I rowsort
SELECT COALESCE ( + 40, + 57 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT COALESCE ( 47, - SUM( DISTINCT - 73 ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-7454
SELECT COALESCE ( 47, - SUM ( DISTINCT - 73 ) ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT - 34 * - - 15 * + - COUNT( * ) col2
----
510

skipif mysql # not compatible
query I rowsort label-7455
SELECT - 34 * - - 15 * + - COUNT ( * ) col2
----
510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7456
SELECT + 40 * COALESCE ( + + 45, CAST( + + 17 AS SIGNED ), - 8 * 67 * - 58 + - ( - 76 ) + - 43 * 24 * + ( + + 10 ) - - 80 + - - CAST( - - 93 AS SIGNED ) + - 29 + - 6 ) * 51 * 39 col0
----
3580200

skipif mysql # not compatible
query I rowsort label-7456
SELECT + 40 * COALESCE ( + + 45, CAST ( + + 17 AS INTEGER ), - 8 * 67 * - 58 + - ( - 76 ) + - 43 * 24 * + ( + + 10 ) - - 80 + - - CAST ( - - 93 AS INTEGER ) + - 29 + - 6 ) * 51 * 39 col0
----
3580200

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT + MAX( + 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-7460
SELECT + MAX ( + 7 ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT ALL + MIN( + 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL + MIN ( + 30 ) AS col0
----
30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT ALL + + ( ( - 5 ) ) * - ( + - 99 ) + - - COUNT( * ) + + + 13 AS col1
----
-481

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL + + ( ( - 5 ) ) * - ( + - 99 ) + - - COUNT ( * ) + + + 13 AS col1
----
-481

onlyif mysql # aggregate syntax: 
query II rowsort label-7464
SELECT DISTINCT + COUNT( * ) AS col0, ( + 61 ) - ( - ( + - 31 ) )
----
1
30

skipif mysql # not compatible
query II rowsort label-7464
SELECT DISTINCT + COUNT ( * ) AS col0, ( + 61 ) - ( - ( + - 31 ) )
----
1
30

query I rowsort
SELECT ( - 51 )
----
-51

query I rowsort
SELECT + 59 * 69
----
4071

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7467
SELECT - + COALESCE ( - 44, + + 32 * - + COUNT( * ) * 28 * 75 - - 88 * + + ( + 53 ) * + 82, + 44 + + - 62 ) * - CAST( NULL AS DECIMAL ) - - + ( - - 40 ) - + ( + + ( - 33 ) ) * + - 21 + - CASE - 41 WHEN - 24 THEN NULL WHEN + 79 THEN NULL WHEN + ( 59 ) THEN NULL ELSE - 61 + - - 31 + - - 96 END * - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-7467
SELECT - + COALESCE ( - 44, + + 32 * - + COUNT ( * ) * 28 * 75 - - 88 * + + ( + 53 ) * + 82, + 44 + + - 62 ) * - CAST ( NULL AS REAL ) - - + ( - - 40 ) - + ( + + ( - 33 ) ) * + - 21 + - CASE - 41 WHEN - 24 THEN NULL WHEN + 79 THEN NULL WHEN + ( 59 ) THEN NULL ELSE - 61 + - - 31 + - - 96 END * - 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT MIN( ALL + 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-7468
SELECT MIN ( ALL + 68 ) AS col0
----
68

query I rowsort
SELECT - - 21 AS col0
----
21

query I rowsort
SELECT - 12 - 19 + + 9 * 59
----
500

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

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

query I rowsort
SELECT + 25 + + 65 * - 27 + - 16
----
-1746

query I rowsort
SELECT DISTINCT + - 48 + + 98 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL + ( - MAX( 71 ) ) + + + 14 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL + ( - MAX ( 71 ) ) + + + 14 AS col2
----
-57

query I rowsort
SELECT DISTINCT 83 * - 58 col0
----
-4814

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

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

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

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

query I rowsort
SELECT DISTINCT 27 + - - 30
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7479
SELECT DISTINCT 81 AS col1, CAST( NULL AS SIGNED ) * + CASE - 56 WHEN - CASE + COUNT( * ) WHEN - 96 * 55 + + - 51 THEN - 26 END THEN NULL ELSE - SUM( 69 ) END
----
81
NULL

skipif mysql # not compatible
query II rowsort label-7479
SELECT DISTINCT 81 AS col1, CAST ( NULL AS INTEGER ) * + CASE - 56 WHEN - CASE + COUNT ( * ) WHEN - 96 * 55 + + - 51 THEN - 26 END THEN NULL ELSE - SUM ( 69 ) END
----
81
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7481
SELECT + - 6 - + ( + 10 ) AS col1, ( + COUNT( * ) ) * 11 - CAST( 61 AS SIGNED ) + + - 37 * 70 AS col1
----
-16
-2640

skipif mysql # not compatible
query II rowsort label-7481
SELECT + - 6 - + ( + 10 ) AS col1, ( + COUNT ( * ) ) * 11 - CAST ( 61 AS INTEGER ) + + - 37 * 70 AS col1
----
-16
-2640

query I rowsort
SELECT ALL 45 + 96 AS col2
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT + - 37 + - - NULLIF ( - COUNT( * ), - 51 )
----
-38

skipif mysql # not compatible
query I rowsort label-7483
SELECT + - 37 + - - NULLIF ( - COUNT ( * ), - 51 )
----
-38

query III rowsort
SELECT + NULLIF ( 22, + - 94 ) * + - 62 * - ( 54 ), 19 * 91 * + - 0 AS col1, - 97 * - + 2 * - 80 col2
----
73656
0
-15520

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT MIN( - 86 ) + 48 - 38 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-7485
SELECT MIN ( - 86 ) + 48 - 38 AS col0
----
-76

query I rowsort
SELECT 87 + 35 + + + 29
----
151

query I rowsort
SELECT 23 - + 50
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-7488
SELECT + 44 DIV - 87 + + + 52 * 47 + + - 0, 57 - + + 97 AS col0
----
2444
-40

skipif mysql # not compatible
query II rowsort label-7488
SELECT + 44 / - 87 + + + 52 * 47 + + - 0, 57 - + + 97 AS col0
----
2444
-40

query I rowsort
SELECT ALL + 15 - - + 5 * + ( ( - 49 ) )
----
-230

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT ( MIN( ALL - 80 ) ) * 91 * - 20 AS col0
----
145600

skipif mysql # not compatible
query I rowsort label-7490
SELECT ( MIN ( ALL - 80 ) ) * 91 * - 20 AS col0
----
145600

query I rowsort
SELECT ALL - 42 col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT DISTINCT COUNT( * ) - + 91
----
-90

skipif mysql # not compatible
query I rowsort label-7492
SELECT DISTINCT COUNT ( * ) - + 91
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7493
SELECT CAST( NULL AS SIGNED ) / + 79 * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7493
SELECT CAST ( NULL AS INTEGER ) / + 79 * 50
----
NULL

query I rowsort
SELECT 48 * 87 AS col0
----
4176

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7496
SELECT 38 DIV 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7496
SELECT 38 / 58 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT ALL - CASE COUNT( * ) WHEN - 12 THEN + 5 + - - MIN( ALL + 75 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL - CASE COUNT ( * ) WHEN - 12 THEN + 5 + - - MIN ( ALL + 75 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7498
SELECT 7 * 6 - - - 14 + + 81 + + - COUNT( * ) col1, + CASE - ( + ( + + COUNT( * ) ) ) WHEN + + 67 THEN + - CAST( NULL AS SIGNED ) ELSE - - 88 END
----
108
88

skipif mysql # not compatible
query II rowsort label-7498
SELECT 7 * 6 - - - 14 + + 81 + + - COUNT ( * ) col1, + CASE - ( + ( + + COUNT ( * ) ) ) WHEN + + 67 THEN + - CAST ( NULL AS INTEGER ) ELSE - - 88 END
----
108
88

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7500
SELECT ALL - 48 DIV + 19 + ( - + 84 ) * - 31 + - 56
----
2546

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL - 48 / + 19 + ( - + 84 ) * - 31 + - 56
----
2546

onlyif mysql # DIV for integer division: 
query I rowsort label-7501
SELECT - 43 DIV 27
----
-1

skipif mysql # not compatible
query I rowsort label-7501
SELECT - 43 / 27
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7502
SELECT DISTINCT - 15 * 23 + COUNT( * ) + - ( + 66 ) * + + 88 - COUNT( * ) AS col2, SUM( - 50 ) AS col2
----
-6153
-50

skipif mysql # not compatible
query II rowsort label-7502
SELECT DISTINCT - 15 * 23 + COUNT ( * ) + - ( + 66 ) * + + 88 - COUNT ( * ) AS col2, SUM ( - 50 ) AS col2
----
-6153
-50

query I rowsort
SELECT ALL + 57 + 50 col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT COUNT( * ) - + 10 - + + SUM( DISTINCT + NULLIF ( + 14, + + 68 ) ) + + 90 col0
----
67

skipif mysql # not compatible
query I rowsort label-7504
SELECT COUNT ( * ) - + 10 - + + SUM ( DISTINCT + NULLIF ( + 14, + + 68 ) ) + + 90 col0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7505
SELECT CAST( + 99 AS SIGNED ) - - 65 AS col2
----
164

skipif mysql # not compatible
query I rowsort label-7505
SELECT CAST ( + 99 AS INTEGER ) - - 65 AS col2
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT ALL - 65 + + + ( - CASE - ( + - 87 ) WHEN 44 THEN + + 96 - 11 - 57 / - COUNT( * ) WHEN + - ( + MIN( + - 9 ) ) THEN 57 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7506
SELECT ALL - 65 + + + ( - CASE - ( + - 87 ) WHEN 44 THEN + + 96 - 11 - 57 / - COUNT ( * ) WHEN + - ( + MIN ( + - 9 ) ) THEN 57 END ) AS col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7508
SELECT ALL + CASE - NULLIF ( COUNT( * ), - CAST( NULL AS SIGNED ) ) WHEN + 37 THEN - 4 ELSE - 86 END
----
-86

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL + CASE - NULLIF ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) WHEN + 37 THEN - 4 ELSE - 86 END
----
-86

query I rowsort
SELECT DISTINCT 87 col0
----
87

query I rowsort
SELECT DISTINCT + 63 + ( + 90 ) * 79
----
7173

query I rowsort
SELECT ALL 90 + - 36 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT - ( + - COUNT( * ) ) + + 13
----
14

skipif mysql # not compatible
query I rowsort label-7512
SELECT - ( + - COUNT ( * ) ) + + 13
----
14

query I rowsort
SELECT - + 94
----
-94

query I rowsort
SELECT 38 + + 56 * + 3 col2
----
206

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7516
SELECT CAST( NULL AS DECIMAL ) * + - 75 + + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7516
SELECT CAST ( NULL AS REAL ) * + - 75 + + - 0
----
NULL

query I rowsort
SELECT 3 * - 31
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-7518
SELECT - 61, COUNT( * ) * + NULLIF ( + - COALESCE ( + COUNT( * ), + - 17 ), - - CASE - COUNT( * ) WHEN + COUNT( * ) + 14 * + ( - 65 ) + - + 23 THEN NULL WHEN - 47 / + 16 * + 4 THEN - 96 * - + SUM( - 41 ) ELSE 30 * - + 10 + - 63 END ) col2
----
-61
-1

skipif mysql # not compatible
query II rowsort label-7518
SELECT - 61, COUNT ( * ) * + NULLIF ( + - COALESCE ( + COUNT ( * ), + - 17 ), - - CASE - COUNT ( * ) WHEN + COUNT ( * ) + 14 * + ( - 65 ) + - + 23 THEN NULL WHEN - 47 / + 16 * + 4 THEN - 96 * - + SUM ( - 41 ) ELSE 30 * - + 10 + - 63 END ) col2
----
-61
-1

query I rowsort
SELECT DISTINCT 41 - + ( + + 57 ) + - + 80
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7520
SELECT DISTINCT ( - 92 ) - + - 90 + 66 DIV - 88 + - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT ( - 92 ) - + - 90 + 66 / - 88 + - COUNT ( * )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7521
SELECT 93 DIV - 12 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-7521
SELECT 93 / - 12 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT SUM( 46 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-7522
SELECT SUM ( 46 ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-7523
SELECT COALESCE ( + + 25, - - 31, - 50 ) * 7 AS col2, MIN( ALL + 66 ) * - COUNT( * ) AS col2
----
175
-66

skipif mysql # not compatible
query II rowsort label-7523
SELECT COALESCE ( + + 25, - - 31, - 50 ) * 7 AS col2, MIN ( ALL + 66 ) * - COUNT ( * ) AS col2
----
175
-66

query I rowsort
SELECT ( - 29 ) * + 9 * + - 42 + 56 + + 61 * ( - 48 ) * - 51 - + 33 AS col0
----
160313

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT ALL - MAX( DISTINCT + 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL - MAX ( DISTINCT + 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT ( + COUNT( * ) ) * + 74 + + - 35 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-7526
SELECT ( + COUNT ( * ) ) * + 74 + + - 35 AS col1
----
39

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT MIN( - 92 ) col2
----
-92

skipif mysql # not compatible
query I rowsort label-7528
SELECT MIN ( - 92 ) col2
----
-92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT + MIN( ALL - 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-7530
SELECT + MIN ( ALL - 34 ) AS col0
----
-34

query I rowsort
SELECT 53 + + COALESCE ( - - 9, + 69 )
----
62

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

query I rowsort
SELECT ALL - - 98 + - 22
----
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7534
SELECT CAST( NULL AS DECIMAL ) * + - ( 16 ) * + + 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7534
SELECT CAST ( NULL AS REAL ) * + - ( 16 ) * + + 92 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7535
SELECT 35 + - CAST( + 25 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-7535
SELECT 35 + - CAST ( + 25 AS INTEGER )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT DISTINCT + + SUM( - 63 ) + - 89 AS col1
----
-152

skipif mysql # not compatible
query I rowsort label-7536
SELECT DISTINCT + + SUM ( - 63 ) + - 89 AS col1
----
-152

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

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

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

query I rowsort
SELECT ALL + + 10 + + 8 AS col1
----
18

query I rowsort
SELECT ALL + + 19 - + 98
----
-79

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

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

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

query I rowsort
SELECT - - 4 - + + 94 AS col2
----
-90

query I rowsort
SELECT - + 29 + + - 81
----
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-7545
SELECT - 33 * 36 * + NULLIF ( - 42, + 80 ) * - 90 DIV 45
----
-99792

skipif mysql # not compatible
query I rowsort label-7545
SELECT - 33 * 36 * + NULLIF ( - 42, + 80 ) * - 90 / 45
----
-99792

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

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

query I rowsort
SELECT DISTINCT - 33 - + 87 * + 37 AS col0
----
-3252

query I rowsort
SELECT ALL 7 col0
----
7

query I rowsort
SELECT - 94 - + 47 AS col2
----
-141

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7550
SELECT ALL - 15 * - MIN( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL - 15 * - MIN ( - CAST ( NULL AS REAL ) )
----
NULL

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

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

query I rowsort
SELECT + 47 + + 52
----
99

query II rowsort
SELECT - 18, 92 AS col2
----
-18
92

query II rowsort
SELECT 64 AS col1, 84
----
64
84

onlyif mysql # aggregate syntax: 
query II rowsort label-7555
SELECT ALL 72 AS col2, 68 + - COUNT( * ) AS col0
----
72
67

skipif mysql # not compatible
query II rowsort label-7555
SELECT ALL 72 AS col2, 68 + - COUNT ( * ) AS col0
----
72
67

onlyif mysql # aggregate syntax: 
query II rowsort label-7556
SELECT - MIN( 81 ) AS col2, + ( - ( - + 92 ) )
----
-81
92

skipif mysql # not compatible
query II rowsort label-7556
SELECT - MIN ( 81 ) AS col2, + ( - ( - + 92 ) )
----
-81
92

query I rowsort
SELECT + 17 - - 59
----
76

query I rowsort
SELECT ALL 23 * - 60 * + 75 AS col1
----
-103500

onlyif mysql # DIV for integer division: 
query I rowsort label-7559
SELECT - 28 DIV 5 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-7559
SELECT - 28 / 5 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-7560
SELECT ALL + 13 * - 16 + + + ( + COUNT( * ) ) AS col1, + MIN( DISTINCT + - 41 ) col1
----
-207
-41

skipif mysql # not compatible
query II rowsort label-7560
SELECT ALL + 13 * - 16 + + + ( + COUNT ( * ) ) AS col1, + MIN ( DISTINCT + - 41 ) col1
----
-207
-41

query I rowsort
SELECT ALL 60 * - + 60 + 3 AS col2
----
-3597

query I rowsort
SELECT + 81 + + 9 * - - 50 AS col1
----
531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7563
SELECT ALL - CAST( + - COALESCE ( - + ( + 41 ), MIN( - + ( + 13 ) ) ) AS SIGNED ) * 22 + 86
----
-816

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL - CAST ( + - COALESCE ( - + ( + 41 ), MIN ( - + ( + 13 ) ) ) AS INTEGER ) * 22 + 86
----
-816

query I rowsort
SELECT DISTINCT - 14 * + 65 + 78
----
-832

onlyif mysql # aggregate syntax: 
query II rowsort label-7565
SELECT + ( + 42 ) * COUNT( * ) + COUNT( * ) AS col1, ( 62 )
----
43
62

skipif mysql # not compatible
query II rowsort label-7565
SELECT + ( + 42 ) * COUNT ( * ) + COUNT ( * ) AS col1, ( 62 )
----
43
62

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7567
SELECT - 50 * + 6 + + 16 + + - 36 AS col0, - COUNT( * ) AS col2
----
-320
-1

skipif mysql # not compatible
query II rowsort label-7567
SELECT - 50 * + 6 + + 16 + + - 36 AS col0, - COUNT ( * ) AS col2
----
-320
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7568
SELECT ALL + - 22 col2, + MAX( DISTINCT - 13 ) * - 28 + 24
----
-22
388

skipif mysql # not compatible
query II rowsort label-7568
SELECT ALL + - 22 col2, + MAX ( DISTINCT - 13 ) * - 28 + 24
----
-22
388

query II rowsort
SELECT - 43, ( - 34 ) AS col0
----
-43
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7570
SELECT ALL - + COALESCE ( - 28, - COUNT( * ) DIV - 31 * + + 99 * - NULLIF ( + 27, - 72 ) * + 63 ) * - 74 + 58
----
-2014

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL - + COALESCE ( - 28, - COUNT ( * ) / - 31 * + + 99 * - NULLIF ( + 27, - 72 ) * + 63 ) * - 74 + 58
----
-2014

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

query I rowsort
SELECT ALL - 74 * - 31
----
2294

query II rowsort
SELECT ALL + + 89, + 13 col2
----
89
13

onlyif mysql # DIV for integer division: 
query II rowsort label-7574
SELECT DISTINCT + 57 AS col0, + 15 DIV 91
----
57
0

skipif mysql # not compatible
query II rowsort label-7574
SELECT DISTINCT + 57 AS col0, + 15 / 91
----
57
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT - - COUNT( * ) + 74
----
75

skipif mysql # not compatible
query I rowsort label-7577
SELECT - - COUNT ( * ) + 74
----
75

query II rowsort
SELECT + 66 AS col0, + ( - ( - 30 ) ) col2
----
66
30

query I rowsort
SELECT + 8 + + - 27 + - - 49 * - - 29 AS col2
----
1402

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

query I rowsort
SELECT DISTINCT 96 * 63
----
6048

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

skipif mysql # not compatible
query II rowsort label-7582
SELECT DISTINCT COUNT ( * ) AS col2, 27 AS col0
----
1
27

onlyif mysql # DIV for integer division: 
query II rowsort label-7583
SELECT ALL + ( - + CASE ( 19 ) WHEN + - 36 + 25 THEN NULL ELSE + 73 END ) DIV + + 28 AS col1, + 13
----
-2
13

skipif mysql # not compatible
query II rowsort label-7583
SELECT ALL + ( - + CASE ( 19 ) WHEN + - 36 + 25 THEN NULL ELSE + 73 END ) / + + 28 AS col1, + 13
----
-2
13

query II rowsort
SELECT - 95 + + + 10 + + 57, 54 AS col1
----
-28
54

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

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

query I rowsort
SELECT + 83 * - + 97
----
-8051

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT + ( COALESCE ( + - 18, + + 55 ) ) * - CASE 32 WHEN - 10 THEN + ( - 17 ) + MIN( DISTINCT + CASE 73 WHEN 41 * 26 THEN + 96 ELSE - 59 * - - ( - - 10 ) * + 2 + 1 END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7587
SELECT + ( COALESCE ( + - 18, + + 55 ) ) * - CASE 32 WHEN - 10 THEN + ( - 17 ) + MIN ( DISTINCT + CASE 73 WHEN 41 * 26 THEN + 96 ELSE - 59 * - - ( - - 10 ) * + 2 + 1 END ) END
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - 16, - + ( + + 14 ), - 41 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT + ( 76 ) * - COUNT( * ) + - 20
----
-96

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT + ( 76 ) * - COUNT ( * ) + - 20
----
-96

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7591
SELECT - 87 * + 14 * + COUNT( NULLIF ( + 85, - 79 * - 7 ) ), ( - 23 ) AS col0
----
-1218
-23

skipif mysql # not compatible
query II rowsort label-7591
SELECT - 87 * + 14 * + COUNT ( NULLIF ( + 85, - 79 * - 7 ) ), ( - 23 ) AS col0
----
-1218
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT DISTINCT CASE + COUNT( * ) WHEN - - COUNT( * ) / + 44 THEN 13 WHEN - - 17 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT DISTINCT CASE + COUNT ( * ) WHEN - - COUNT ( * ) / + 44 THEN 13 WHEN - - 17 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 85 * - 58
----
4930

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7595
SELECT DISTINCT - MIN( ALL 51 ) + - 65 + CAST( + + COUNT( 41 ) AS SIGNED )
----
-115

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT - MIN ( ALL 51 ) + - 65 + CAST ( + + COUNT ( 41 ) AS INTEGER )
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT DISTINCT + 12 + 65 + + MAX( 11 )
----
88

skipif mysql # not compatible
query I rowsort label-7596
SELECT DISTINCT + 12 + 65 + + MAX ( 11 )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7597
SELECT CASE - CAST( NULL AS SIGNED ) WHEN CAST( + - 74 AS SIGNED ) THEN + 94 WHEN - - 74 * + + 6 / - - 8 / - 94 THEN 89 + + + 10 END / COUNT( * ) + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-7597
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN CAST ( + - 74 AS INTEGER ) THEN + 94 WHEN - - 74 * + + 6 / - - 8 / - 94 THEN 89 + + + 10 END / COUNT ( * ) + 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7598
SELECT DISTINCT + 37 DIV + 52 * - 28 + - CAST( COUNT( * ) AS SIGNED ) AS col2, 91 + - 23
----
-1
68

skipif mysql # not compatible
query II rowsort label-7598
SELECT DISTINCT + 37 / + 52 * - 28 + - CAST ( COUNT ( * ) AS INTEGER ) AS col2, 91 + - 23
----
-1
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7599
SELECT - AVG ( ALL + 51 ) - - COUNT( * ) * + - SUM( - + 53 ) * - CAST( NULL AS SIGNED ) + - + 38 AS col1, + 25
----
NULL
25

skipif mysql # not compatible
query II rowsort label-7599
SELECT - AVG ( ALL + 51 ) - - COUNT ( * ) * + - SUM ( - + 53 ) * - CAST ( NULL AS INTEGER ) + - + 38 AS col1, + 25
----
NULL
25

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

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL - 88 / 41 * - 49 + COUNT ( * ) AS col2
----
99

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7602
SELECT ALL - 59 DIV - + 75 + 4 DIV - - 98 * - - 85 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL - 59 / - + 75 + 4 / - - 98 * - - 85 + + COUNT ( * )
----
1

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

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

query II rowsort
SELECT DISTINCT + 76 * + + 84 AS col2, ( + + 19 ) AS col1
----
6384
19

query I rowsort
SELECT - + 54 * - 83
----
4482

onlyif mysql # DIV for integer division: 
query II rowsort label-7607
SELECT - 65 DIV 30 col2, 54 AS col2
----
-2
54

skipif mysql # not compatible
query II rowsort label-7607
SELECT - 65 / 30 col2, 54 AS col2
----
-2
54

query I rowsort
SELECT DISTINCT - + 4
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT - SUM( DISTINCT + - 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7609
SELECT - SUM ( DISTINCT + - 42 ) AS col0
----
42

query I rowsort
SELECT - 35 * 80 + - 10
----
-2810

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT + 62 + 43 * - MIN( DISTINCT - 58 )
----
2556

skipif mysql # not compatible
query I rowsort label-7612
SELECT + 62 + 43 * - MIN ( DISTINCT - 58 )
----
2556

onlyif mysql # aggregate syntax: 
query II rowsort label-7613
SELECT + SUM( + 57 ) AS col2, 89 AS col2
----
57
89

skipif mysql # not compatible
query II rowsort label-7613
SELECT + SUM ( + 57 ) AS col2, 89 AS col2
----
57
89

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

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

query I rowsort
SELECT + CASE - + 89 WHEN - 18 + - 36 * + 15 THEN - 93 END AS col1
----
NULL

query I rowsort
SELECT ALL - + 89
----
-89

query I rowsort
SELECT ALL + NULLIF ( - + 77, ( - - 36 ) * - 97 + + + 80 )
----
-77

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7619
SELECT 60, 58 / - - MAX( CAST( NULL AS SIGNED ) ) AS col0
----
60
NULL

skipif mysql # not compatible
query II rowsort label-7619
SELECT 60, 58 / - - MAX ( CAST ( NULL AS INTEGER ) ) AS col0
----
60
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7620
SELECT ALL 5 AS col0, + 15 - COUNT( * ) + - + COUNT( * ) * + SUM( 35 )
----
5
-21

skipif mysql # not compatible
query II rowsort label-7620
SELECT ALL 5 AS col0, + 15 - COUNT ( * ) + - + COUNT ( * ) * + SUM ( 35 )
----
5
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT 3 - + 42 + - + COUNT( * ) * - - 32 * CASE + 73 WHEN 63 THEN + 21 / - 22 - + + AVG ( + + 19 ) END * + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7621
SELECT 3 - + 42 + - + COUNT ( * ) * - - 32 * CASE + 73 WHEN 63 THEN + 21 / - 22 - + + AVG ( + + 19 ) END * + 61 AS col0
----
NULL

query I rowsort
SELECT NULLIF ( + 25, 5 ) + - - 70
----
95

query II rowsort
SELECT - 61, + 96 * + 0 AS col1
----
-61
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7625
SELECT ( - 83 ) DIV + + 40
----
-2

skipif mysql # not compatible
query I rowsort label-7625
SELECT ( - 83 ) / + + 40
----
-2

query I rowsort
SELECT ALL + 25 + + + 40
----
65

query I rowsort
SELECT 47 - + 4 AS col0
----
43

query II rowsort
SELECT ALL 28, 64 AS col1
----
28
64

query I rowsort
SELECT DISTINCT 5 + - ( + 23 ) * - 74 AS col2
----
1707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7630
SELECT ALL CAST( + 28 AS SIGNED ) + + - COUNT( * ) + + + NULLIF ( - 81, - 56 ) * 25 AS col2
----
-1998

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL CAST ( + 28 AS INTEGER ) + + - COUNT ( * ) + + + NULLIF ( - 81, - 56 ) * 25 AS col2
----
-1998

query II rowsort
SELECT - 83, - 33 * - 12 col0
----
-83
396

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT 66 + + SUM( ALL 40 ) - + COUNT( * ) + - - 88 - + 37 * + 32 AS col1
----
-991

skipif mysql # not compatible
query I rowsort label-7632
SELECT 66 + + SUM ( ALL 40 ) - + COUNT ( * ) + - - 88 - + 37 * + 32 AS col1
----
-991

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT COUNT( * ) + - 34 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-7633
SELECT COUNT ( * ) + - 34 AS col0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7634
SELECT ALL + 90 * + 7 DIV + COUNT( * )
----
630

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL + 90 * + 7 / + COUNT ( * )
----
630

query I rowsort
SELECT ALL COALESCE ( - 17, 26, + - 7 + + - 60 * - 33 ) - + 2
----
-19

query I rowsort
SELECT DISTINCT + - 79 * - 0 * - 78 col1
----
0

query I rowsort
SELECT ALL - - 16 - 52 AS col0
----
-36

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT DISTINCT + 80 * + CASE + AVG ( ALL + 19 ) WHEN 34 THEN + + MIN( ALL - - 82 ) WHEN 41 * CASE ( + - 24 ) WHEN - 89 THEN + 45 + 25 ELSE NULL END + - 95 + + - 92 + 94 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7639
SELECT DISTINCT + 80 * + CASE + AVG ( ALL + 19 ) WHEN 34 THEN + + MIN ( ALL - - 82 ) WHEN 41 * CASE ( + - 24 ) WHEN - 89 THEN + 45 + 25 ELSE NULL END + - 95 + + - 92 + 94 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 87 + - 6
----
81

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

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

query II rowsort
SELECT ALL - - 71 AS col2, 81 * 43 * + 59 AS col1
----
71
205497

onlyif mysql # aggregate syntax: 
query II rowsort label-7644
SELECT ALL - 71 AS col0, + COUNT( + 39 ) AS col2
----
-71
1

skipif mysql # not compatible
query II rowsort label-7644
SELECT ALL - 71 AS col0, + COUNT ( + 39 ) AS col2
----
-71
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7645
SELECT - 54 * + COALESCE ( - - 84, NULLIF ( - - 7, - ( - - CAST( NULL AS SIGNED ) ) DIV + 70 ) * CAST( NULL AS SIGNED ) * MAX( ALL - 17 ) ) col0, 8 DIV - - 71 AS col1
----
-4536
0

skipif mysql # not compatible
query II rowsort label-7645
SELECT - 54 * + COALESCE ( - - 84, NULLIF ( - - 7, - ( - - CAST ( NULL AS INTEGER ) ) / + 70 ) * CAST ( NULL AS INTEGER ) * MAX ( ALL - 17 ) ) col0, 8 / - - 71 AS col1
----
-4536
0

query II rowsort
SELECT ALL - + 93 AS col1, + 50 AS col2
----
-93
50

query II rowsort
SELECT - 28 AS col1, 43 * + ( + - 26 )
----
-28
-1118

query I rowsort
SELECT + ( - 60 ) + 97
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7649
SELECT ALL - CASE - 12 WHEN + + 95 THEN 24 + + COUNT( * ) + - + CAST( NULL AS SIGNED ) + + - 29 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL - CASE - 12 WHEN + + 95 THEN 24 + + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + + - 29 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 66 col2
----
-66

query I rowsort
SELECT ALL 29 * 17 AS col1
----
493

onlyif mysql # DIV for integer division: 
query I rowsort label-7652
SELECT DISTINCT + - 70 DIV + 57
----
-1

skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT + - 70 / + 57
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT COUNT( * ) + - 32 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-7654
SELECT COUNT ( * ) + - 32 AS col1
----
-31

query I rowsort
SELECT 3 + + + 70 * + - 21
----
-1467

query I rowsort
SELECT ALL 30 + + 14
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT 93 * + - COUNT( * ) + + 51 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-7657
SELECT 93 * + - COUNT ( * ) + + 51 AS col1
----
-42

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

skipif mysql # not compatible
query I rowsort label-7658
SELECT - MIN ( + + 93 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT ALL COALESCE ( - 22, - 12 * - 35 - 59 + + 12 ) + COUNT( DISTINCT - - 4 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL COALESCE ( - 22, - 12 * - 35 - 59 + + 12 ) + COUNT ( DISTINCT - - 4 ) AS col0
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT ALL COALESCE ( + COUNT( * ), - + 57 * - 19, - - 76 * 75 ) + - ( - COUNT( * ) ) col0
----
2

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL COALESCE ( + COUNT ( * ), - + 57 * - 19, - - 76 * 75 ) + - ( - COUNT ( * ) ) col0
----
2

query I rowsort
SELECT DISTINCT + 84 * 60 AS col2
----
5040

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

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

query II rowsort
SELECT DISTINCT 29 + - 24 AS col1, 60
----
5
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT DISTINCT ( - MAX( 33 ) ) + + 71 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT ( - MAX ( 33 ) ) + + 71 AS col2
----
38

query I rowsort
SELECT ALL 64 + 58 + - + 16 * - 55
----
1002

query I rowsort
SELECT 82 + - 10 - 69
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7669
SELECT ALL 92 * + ( NULLIF ( + MAX( ALL + 17 ), + 33 + + + CAST( + CASE - 24 WHEN - 86 THEN - - 0 * + 32 ELSE 58 - COUNT( * ) END AS SIGNED ) ) ) AS col2
----
1564

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL 92 * + ( NULLIF ( + MAX ( ALL + 17 ), + 33 + + + CAST ( + CASE - 24 WHEN - 86 THEN - - 0 * + 32 ELSE 58 - COUNT ( * ) END AS INTEGER ) ) ) AS col2
----
1564

query II rowsort
SELECT DISTINCT 51 - + COALESCE ( - 55, 15 ) AS col2, - 88
----
106
-88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT ALL - COUNT( * ) - 80 - + - 19 + + 49 + ( - COUNT( * ) )
----
-14

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL - COUNT ( * ) - 80 - + - 19 + + 49 + ( - COUNT ( * ) )
----
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-7673
SELECT ALL + 9 * + COALESCE ( + - 12, - 58, - 69 DIV - + 17 ) DIV + + 1 + - + ( + - 38 ) AS col1, 77
----
-70
77

skipif mysql # not compatible
query II rowsort label-7673
SELECT ALL + 9 * + COALESCE ( + - 12, - 58, - 69 / - + 17 ) / + + 1 + - + ( + - 38 ) AS col1, 77
----
-70
77

query I rowsort
SELECT DISTINCT - 50 - - + 28 + + + 35 AS col0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-7675
SELECT ALL - 87 DIV - - ( + 43 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL - 87 / - - ( + 43 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT 35 + + - 72 + - 44 * MIN( ALL + 76 ) + - + COALESCE ( + SUM( + 76 ), - 86 * 8 ) * + 75
----
-9081

skipif mysql # not compatible
query I rowsort label-7676
SELECT 35 + + - 72 + - 44 * MIN ( ALL + 76 ) + - + COALESCE ( + SUM ( + 76 ), - 86 * 8 ) * + 75
----
-9081

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7678
SELECT - - 32 DIV + - 85 * - 21 - - - 60 * - + 72 * + + COUNT( * ) AS col2
----
4320

skipif mysql # not compatible
query I rowsort label-7678
SELECT - - 32 / + - 85 * - 21 - - - 60 * - + 72 * + + COUNT ( * ) AS col2
----
4320

query II rowsort
SELECT - + 57 * + 40 - + 2 * 23 AS col1, 22 + - 13
----
-2326
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7680
SELECT + - CASE - + 25 WHEN - - 61 * 26 THEN - - 59 + 97 * - 38 * + 85 WHEN 15 * + 78 + - 73 THEN + 39 + + NULLIF ( ( CAST( NULL AS SIGNED ) ), 58 ) + 47 + 55 + + - 38 * + 5 ELSE - 20 END + ( CASE + 75 WHEN - + CAST( NULL AS SIGNED ) - 76 + - ( ( + COUNT( * ) ) ) + - - 6 THEN - + 76 WHEN 4 * - 79 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7680
SELECT + - CASE - + 25 WHEN - - 61 * 26 THEN - - 59 + 97 * - 38 * + 85 WHEN 15 * + 78 + - 73 THEN + 39 + + NULLIF ( ( CAST ( NULL AS INTEGER ) ), 58 ) + 47 + 55 + + - 38 * + 5 ELSE - 20 END + ( CASE + 75 WHEN - + CAST ( NULL AS INTEGER ) - 76 + - ( ( + COUNT ( * ) ) ) + - - 6 THEN - + 76 WHEN 4 * - 79 THEN NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT ALL + CASE 37 WHEN - - AVG ( DISTINCT - + 28 ) * 96 / + 49 THEN 23 + - - 86 + 78 + MAX( + 37 ) * - 60 * - 41 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7681
SELECT ALL + CASE 37 WHEN - - AVG ( DISTINCT - + 28 ) * 96 / + 49 THEN 23 + - - 86 + 78 + MAX ( + 37 ) * - 60 * - 41 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT ALL + 2 * 52 * 42 - + COUNT( * )
----
4367

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL + 2 * 52 * 42 - + COUNT ( * )
----
4367

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

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

query I rowsort
SELECT - + 30 * + NULLIF ( - + 50, + 26 + - 6 ) AS col2
----
1500

query I rowsort
SELECT ALL - 77 * + 14 + - - 11
----
-1067

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT DISTINCT + 31 * - - ( - 61 ) + COUNT( * ) AS col1
----
-1890

skipif mysql # not compatible
query I rowsort label-7686
SELECT DISTINCT + 31 * - - ( - 61 ) + COUNT ( * ) AS col1
----
-1890

query II rowsort
SELECT - 12 * - 70 * - 72 AS col0, + 2 AS col1
----
-60480
2

query II rowsort
SELECT ALL + 37 * 23 + + 9 AS col2, - 54 AS col2
----
860
-54

query I rowsort
SELECT DISTINCT 59 * 42
----
2478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7690
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + MAX( CAST( NULL AS SIGNED ) ) + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-7690
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + MAX ( CAST ( NULL AS INTEGER ) ) + 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT + COUNT( DISTINCT + + 35 ) * + 58
----
58

skipif mysql # not compatible
query I rowsort label-7691
SELECT + COUNT ( DISTINCT + + 35 ) * + 58
----
58

query I rowsort
SELECT ALL + ( 25 ) + NULLIF ( + 90, 58 * 24 + - 76 )
----
115

query I rowsort
SELECT DISTINCT - 8 * - 95 AS col0
----
760

query I rowsort
SELECT + 52 * 68 AS col2
----
3536

query II rowsort
SELECT DISTINCT ( - + ( + 72 ) ) AS col1, - 98
----
-72
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7696
SELECT - COUNT( * ) + 13 DIV + - 61 - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7696
SELECT - COUNT ( * ) + 13 / + - 61 - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT + ( + 93 ) * - MIN( ALL - 47 )
----
4371

skipif mysql # not compatible
query I rowsort label-7697
SELECT + ( + 93 ) * - MIN ( ALL - 47 )
----
4371

query I rowsort
SELECT - 98 + + 88 AS col2
----
-10

query I rowsort
SELECT ALL 10 - - 77 + 25
----
112

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

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

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

query I rowsort
SELECT ALL + 36 * 99
----
3564

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

query I rowsort
SELECT + - 52 + + 22 + - - 58 * 47
----
2696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7705
SELECT - - 41 * NULLIF ( - - 17, + 97 ) DIV + 37 + + MIN( + - 11 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7705
SELECT - - 41 * NULLIF ( - - 17, + 97 ) / + 37 + + MIN ( + - 11 ) AS col1
----
7

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT + - SUM( ALL - 84 ) + + 94 * 49 AS col1
----
4690

skipif mysql # not compatible
query I rowsort label-7708
SELECT + - SUM ( ALL - 84 ) + + 94 * 49 AS col1
----
4690

query I rowsort
SELECT + 45 * - 50 - - 27 + + + COALESCE ( + + 85, - 57 ) + - 8
----
-2146

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7710
SELECT + + 17 + + 90 * - 86 AS col2, CAST( NULL AS SIGNED )
----
-7723
NULL

skipif mysql # not compatible
query II rowsort label-7710
SELECT + + 17 + + 90 * - 86 AS col2, CAST ( NULL AS INTEGER )
----
-7723
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT DISTINCT - 53 * 45 * - 99 * - COUNT( * ) + 39 + 16 * + 10 * + 25
----
-232076

skipif mysql # not compatible
query I rowsort label-7711
SELECT DISTINCT - 53 * 45 * - 99 * - COUNT ( * ) + 39 + 16 * + 10 * + 25
----
-232076

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7714
SELECT DISTINCT + 45 DIV + + 19 + + SUM( DISTINCT - 37 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT + 45 / + + 19 + + SUM ( DISTINCT - 37 ) AS col2
----
-35

query II rowsort
SELECT ALL + 11 AS col0, + 32 * 48 col1
----
11
1536

query I rowsort
SELECT + COALESCE ( - 90, + - 97 ) AS col1
----
-90

query I rowsort
SELECT 85 col1
----
85

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7719
SELECT ALL + + 60 DIV - 28 + + - 55 + - - 63 + 9 col0
----
15

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL + + 60 / - 28 + + - 55 + - - 63 + 9 col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7720
SELECT 48 * - 16 * - ( COUNT( * ) ) + - + 74 DIV - + 13 + - 52 + + + SUM( DISTINCT 5 ) AS col1
----
726

skipif mysql # not compatible
query I rowsort label-7720
SELECT 48 * - 16 * - ( COUNT ( * ) ) + - + 74 / - + 13 + - 52 + + + SUM ( DISTINCT 5 ) AS col1
----
726

onlyif mysql # DIV for integer division: 
query II rowsort label-7721
SELECT + 59 AS col2, + ( + ( - 39 ) ) DIV - - 43 AS col0
----
59
0

skipif mysql # not compatible
query II rowsort label-7721
SELECT + 59 AS col2, + ( + ( - 39 ) ) / - - 43 AS col0
----
59
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7722
SELECT - + MIN( + + 20 ) / + ( - + 92 ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7722
SELECT - + MIN ( + + 20 ) / + ( - + 92 ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7723
SELECT + MAX ( - + ( 96 ) )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7724
SELECT DISTINCT - 51 DIV 22 * + - COUNT( * ) - + 39 + - CAST( 26 AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-7724
SELECT DISTINCT - 51 / 22 * + - COUNT ( * ) - + 39 + - CAST ( 26 AS INTEGER )
----
-63

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

query I rowsort
SELECT DISTINCT + 10 * - 26 + 98 AS col2
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT - 78 * - + COUNT( * ) * + + NULLIF ( - + 41, - COUNT( * ) * + 30 + + NULLIF ( 76, 45 ) ) + + 61 * + COUNT( * )
----
-3137

skipif mysql # not compatible
query I rowsort label-7727
SELECT - 78 * - + COUNT ( * ) * + + NULLIF ( - + 41, - COUNT ( * ) * + 30 + + NULLIF ( 76, 45 ) ) + + 61 * + COUNT ( * )
----
-3137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7728
SELECT ALL + CAST( 76 AS SIGNED ) * - 25 + - COUNT( * ) col2, + 34 AS col0
----
-1901
34

skipif mysql # not compatible
query II rowsort label-7728
SELECT ALL + CAST ( 76 AS INTEGER ) * - 25 + - COUNT ( * ) col2, + 34 AS col0
----
-1901
34

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

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

query I rowsort
SELECT - 58 + 2 + 98 * - 15 * - 84 * 64 * + + 38
----
300303304

query I rowsort
SELECT + 70 * - + 20
----
-1400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7732
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 50 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7732
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 50 col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-7733
SELECT DISTINCT + COALESCE ( + 13, + 50, 9 * + 41 - + 66 ) AS col0, - MIN( ALL 25 ) * + - 52 AS col1, - 16
----
13
1300
-16

skipif mysql # not compatible
query III rowsort label-7733
SELECT DISTINCT + COALESCE ( + 13, + 50, 9 * + 41 - + 66 ) AS col0, - MIN ( ALL 25 ) * + - 52 AS col1, - 16
----
13
1300
-16

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7736
SELECT ALL 52 * COUNT( * ) - - ( ( - 64 ) ) DIV - + COUNT( * ) + + 77 AS col1
----
193

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL 52 * COUNT ( * ) - - ( ( - 64 ) ) / - + COUNT ( * ) + + 77 AS col1
----
193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7737
SELECT COALESCE ( - ( - 50 ), - 8, 51 * - 85 DIV - 24 - + COUNT( * ) )
----
50

skipif mysql # not compatible
query I rowsort label-7737
SELECT COALESCE ( - ( - 50 ), - 8, 51 * - 85 / - 24 - + COUNT ( * ) )
----
50

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7739
SELECT - SUM( DISTINCT - 23 ) AS col0, COUNT( * ) * - - 3 AS col0
----
23
3

skipif mysql # not compatible
query II rowsort label-7739
SELECT - SUM ( DISTINCT - 23 ) AS col0, COUNT ( * ) * - - 3 AS col0
----
23
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7740
SELECT DISTINCT - 86 DIV - 72
----
1

skipif mysql # not compatible
query I rowsort label-7740
SELECT DISTINCT - 86 / - 72
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT ALL ( + CASE - 5 WHEN - CASE + 81 WHEN - 78 + - COUNT( * ) THEN 71 + - COUNT( * ) WHEN + 53 THEN NULL ELSE NULL END THEN NULL WHEN + 25 THEN NULL ELSE 50 * 90 END )
----
4500

skipif mysql # not compatible
query I rowsort label-7741
SELECT ALL ( + CASE - 5 WHEN - CASE + 81 WHEN - 78 + - COUNT ( * ) THEN 71 + - COUNT ( * ) WHEN + 53 THEN NULL ELSE NULL END THEN NULL WHEN + 25 THEN NULL ELSE 50 * 90 END )
----
4500

query I rowsort
SELECT 56 * + 85 AS col2
----
4760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7743
SELECT 91 + + 58 + + CAST( NULL AS SIGNED ) * - 28 * 90 * - + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7743
SELECT 91 + + 58 + + CAST ( NULL AS INTEGER ) * - 28 * 90 * - + 85 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7744
SELECT 98 DIV + + 23
----
4

skipif mysql # not compatible
query I rowsort label-7744
SELECT 98 / + + 23
----
4

query I rowsort
SELECT DISTINCT - 59 * - 7
----
413

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT ALL + COUNT( * ) * 62 + 47
----
109

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL + COUNT ( * ) * 62 + 47
----
109

onlyif mysql # DIV for integer division: 
query II rowsort label-7747
SELECT 64 * + - 25 AS col1, - 46 DIV - 54 + - + 82 AS col2
----
-1600
-82

skipif mysql # not compatible
query II rowsort label-7747
SELECT 64 * + - 25 AS col1, - 46 / - 54 + - + 82 AS col2
----
-1600
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-7748
SELECT + ( + 98 ) DIV + 43
----
2

skipif mysql # not compatible
query I rowsort label-7748
SELECT + ( + 98 ) / + 43
----
2

query I rowsort
SELECT 67 * + 8 AS col1
----
536

query I rowsort
SELECT - 90 + - 15
----
-105

query II rowsort
SELECT ALL 19 AS col0, - 46
----
19
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7752
SELECT + COUNT( * ) DIV COUNT( - 49 ) + - - 14
----
15

skipif mysql # not compatible
query I rowsort label-7752
SELECT + COUNT ( * ) / COUNT ( - 49 ) + - - 14
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT DISTINCT + COUNT( ALL - + 97 ) + - - ( - 54 ) + - + 47 * - + 15 * + + 76 AS col0
----
53527

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT + COUNT ( ALL - + 97 ) + - - ( - 54 ) + - + 47 * - + 15 * + + 76 AS col0
----
53527

onlyif mysql # DIV for integer division: 
query I rowsort label-7754
SELECT DISTINCT 77 DIV + - 42
----
-1

skipif mysql # not compatible
query I rowsort label-7754
SELECT DISTINCT 77 / + - 42
----
-1

query I rowsort
SELECT DISTINCT - 18 + + 43
----
25

query I rowsort
SELECT ALL + 85 + 48 AS col2
----
133

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

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

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT + COUNT ( * ) + - 34 AS col0
----
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-7759
SELECT - 64, - 1 DIV + 93 - - NULLIF ( + 11, 72 ) AS col2
----
-64
11

skipif mysql # not compatible
query II rowsort label-7759
SELECT - 64, - 1 / + 93 - - NULLIF ( + 11, 72 ) AS col2
----
-64
11

query I rowsort
SELECT ALL ( + 82 ) + 66
----
148

query I rowsort
SELECT + 45 * 3
----
135

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

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

query I rowsort
SELECT ALL + - 21 + - + 71 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT ALL 3 * + + 96 + - 52 * 67 * + - ( - 21 ) * SUM( DISTINCT 79 )
----
-5779668

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL 3 * + + 96 + - 52 * 67 * + - ( - 21 ) * SUM ( DISTINCT 79 )
----
-5779668

query I rowsort
SELECT ( 13 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7766
SELECT ALL - COUNT( * ) * NULLIF ( - 88, - 46 * 12 + + + CAST( - COUNT( * ) AS SIGNED ) * + 60 + 92 ) AS col2, - COALESCE ( + 19, + - 50 ) - + - 28 DIV + 83 AS col2
----
88
-19

skipif mysql # not compatible
query II rowsort label-7766
SELECT ALL - COUNT ( * ) * NULLIF ( - 88, - 46 * 12 + + + CAST ( - COUNT ( * ) AS INTEGER ) * + 60 + 92 ) AS col2, - COALESCE ( + 19, + - 50 ) - + - 28 / + 83 AS col2
----
88
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT ALL + 42 + + + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL + 42 + + + COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT DISTINCT COUNT( * ) * 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-7768
SELECT DISTINCT COUNT ( * ) * 32 AS col2
----
32

query I rowsort
SELECT DISTINCT 35 - - 18 * - 44 * + 99 AS col2
----
-78373

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

query I rowsort
SELECT DISTINCT - 99 col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7772
SELECT DISTINCT 0 - - - CAST( - 57 AS SIGNED ) DIV - MAX( 88 ) * - + 92 * + 58 DIV - + 45 - 91 * COALESCE ( - ( + 56 ), + - 24 * + 59, + 77 ) + 76 AS col2
----
5172

skipif mysql # not compatible
query I rowsort label-7772
SELECT DISTINCT 0 - - - CAST ( - 57 AS INTEGER ) / - MAX ( 88 ) * - + 92 * + 58 / - + 45 - 91 * COALESCE ( - ( + 56 ), + - 24 * + 59, + 77 ) + 76 AS col2
----
5172

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT NULLIF ( - 79, - 53 - + - MIN( - 40 ) * + + 70 ) * - 4
----
316

skipif mysql # not compatible
query I rowsort label-7773
SELECT NULLIF ( - 79, - 53 - + - MIN ( - 40 ) * + + 70 ) * - 4
----
316

query I rowsort
SELECT ALL + 45 * - 21
----
-945

onlyif mysql # aggregate syntax: 
query II rowsort label-7775
SELECT ALL - COALESCE ( + 36, + 0 + - COUNT( * ) + - 92 ) AS col2, + COUNT( * ) AS col0
----
-36
1

skipif mysql # not compatible
query II rowsort label-7775
SELECT ALL - COALESCE ( + 36, + 0 + - COUNT ( * ) + - 92 ) AS col2, + COUNT ( * ) AS col0
----
-36
1

query I rowsort
SELECT 53 * + + 2 * + - 47 AS col1
----
-4982

query I rowsort
SELECT + 97 * 82 + - - 36
----
7990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7778
SELECT 1 * - ( - - COUNT( * ) ) AS col1, + CASE - COUNT( * ) WHEN + COUNT( * ) THEN NULL ELSE - SUM( + 3 ) + + 99 END - 98 + - 18 + + 93 * 82 - + COALESCE ( - + 0, - + 36 * 45 * 60 ) * + 73 * + CASE 40 WHEN + COUNT( * ) THEN 23 END * - 88 * + 87 * + 20 * + + CAST( - 91 AS SIGNED ) + 78 + + 85 * - 69 / COUNT( * ) + - 87 + + 0 + + 81 + + 73 + + 95 + 80 * 99 * - 97 * + 83 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7778
SELECT 1 * - ( - - COUNT ( * ) ) AS col1, + CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN NULL ELSE - SUM ( + 3 ) + + 99 END - 98 + - 18 + + 93 * 82 - + COALESCE ( - + 0, - + 36 * 45 * 60 ) * + 73 * + CASE 40 WHEN + COUNT ( * ) THEN 23 END * - 88 * + 87 * + 20 * + + CAST ( - 91 AS INTEGER ) + 78 + + 85 * - 69 / COUNT ( * ) + - 87 + + 0 + + 81 + + 73 + + 95 + 80 * 99 * - 97 * + 83 AS col2
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT MAX( + 20 ) + 73 + - - 88 * 83 * 49
----
357989

skipif mysql # not compatible
query I rowsort label-7779
SELECT MAX ( + 20 ) + 73 + - - 88 * 83 * 49
----
357989

query I rowsort
SELECT NULLIF ( - - ( - - 18 ), + 81 * 61 * - 55 * - 84 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT - 4 + 86 * 53 * + 6 - - CASE 42 WHEN + - 95 THEN - 63 * + 61 * + - 48 WHEN + 10 THEN NULL END / + + 70 - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7781
SELECT - 4 + 86 * 53 * + 6 - - CASE 42 WHEN + - 95 THEN - 63 * + 61 * + - 48 WHEN + 10 THEN NULL END / + + 70 - COUNT ( * )
----
NULL

query I rowsort
SELECT 59 col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7783
SELECT DISTINCT CAST( - + 17 AS SIGNED ) * 97
----
-1649

skipif mysql # not compatible
query I rowsort label-7783
SELECT DISTINCT CAST ( - + 17 AS INTEGER ) * 97
----
-1649

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7785
SELECT ALL - 69 + - 54 DIV + COALESCE ( - 41, - COUNT( * ) * CAST( + 98 AS SIGNED ) + + 65 - + CAST( 53 AS SIGNED ) * 47 * 54, + 88 + - 77 + + - 11 * 0 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL - 69 + - 54 / + COALESCE ( - 41, - COUNT ( * ) * CAST ( + 98 AS INTEGER ) + + 65 - + CAST ( 53 AS INTEGER ) * 47 * 54, + 88 + - 77 + + - 11 * 0 ) AS col1
----
-68

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

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

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

query I rowsort
SELECT ALL - + 98 + - - 58 * - 71 + + 36 AS col0
----
-4180

onlyif mysql # aggregate syntax: 
query II rowsort label-7789
SELECT ALL - - ( + 24 ) + CASE + COUNT( * ) WHEN - 25 THEN - 78 + 55 ELSE NULL END AS col0, + 11 AS col0
----
NULL
11

skipif mysql # not compatible
query II rowsort label-7789
SELECT ALL - - ( + 24 ) + CASE + COUNT ( * ) WHEN - 25 THEN - 78 + 55 ELSE NULL END AS col0, + 11 AS col0
----
NULL
11

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

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

query I rowsort
SELECT ALL + NULLIF ( 80, - - 38 ) + 81 AS col0
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7792
SELECT - 54 + - COALESCE ( CAST( - - 85 AS SIGNED ), - CASE + 69 WHEN - + 83 * - ( 51 ) THEN + 37 + - ( COALESCE ( + - 79, ( - 15 ) / + - 4 ) ) + ( + + 51 ) * + + COUNT( * ) + CAST( NULL AS SIGNED ) ELSE - 95 + + ( + 40 ) END * + COUNT( * ) + + 40, - 52 - 14 - - - 54 ) + - + 46 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7792
SELECT - 54 + - COALESCE ( CAST ( - - 85 AS INTEGER ), - CASE + 69 WHEN - + 83 * - ( 51 ) THEN + 37 + - ( COALESCE ( + - 79, ( - 15 ) / + - 4 ) ) + ( + + 51 ) * + + COUNT ( * ) + CAST ( NULL AS INTEGER ) ELSE - 95 + + ( + 40 ) END * + COUNT ( * ) + + 40, - 52 - 14 - - - 54 ) + - + 46 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT 97 + + + COUNT( * ) * - ( 91 )
----
6

skipif mysql # not compatible
query I rowsort label-7795
SELECT 97 + + + COUNT ( * ) * - ( 91 )
----
6

query I rowsort
SELECT ALL + 54 + - 46
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT COUNT( * ) * - 78 - 20 * + SUM( 16 ) * - COUNT( * ) + 20 + + - 83 * + 35 * 30 * - + 45 * - COUNT( - 42 ) - COUNT( * )
----
-3921489

skipif mysql # not compatible
query I rowsort label-7797
SELECT COUNT ( * ) * - 78 - 20 * + SUM ( 16 ) * - COUNT ( * ) + 20 + + - 83 * + 35 * 30 * - + 45 * - COUNT ( - 42 ) - COUNT ( * )
----
-3921489

query II rowsort
SELECT 30 + - 29 AS col1, 84
----
1
84

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7800
SELECT ALL 96 DIV + 81 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL 96 / + 81 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7801
SELECT + + SUM( + - 97 ) AS col1, 72
----
-97
72

skipif mysql # not compatible
query II rowsort label-7801
SELECT + + SUM ( + - 97 ) AS col1, 72
----
-97
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7802
SELECT ALL - CAST( - 81 AS SIGNED ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL - CAST ( - 81 AS INTEGER ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT CASE 9 WHEN - 74 / - 8 THEN NULL WHEN - COUNT( * ) THEN + 2 - - ( - 80 ) / 7 * + - 63 END + - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7803
SELECT CASE 9 WHEN - 74 / - 8 THEN NULL WHEN - COUNT ( * ) THEN + 2 - - ( - 80 ) / 7 * + - 63 END + - 30 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT DISTINCT - CASE - 80 WHEN + - 46 * + + 28 / - 67 THEN NULL WHEN - MAX( - - 18 ) THEN + - 35 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7804
SELECT DISTINCT - CASE - 80 WHEN + - 46 * + + 28 / - 67 THEN NULL WHEN - MAX ( - - 18 ) THEN + - 35 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7805
SELECT ALL - 92 AS col1, - 74 * CASE - COUNT( * ) WHEN - ( + + COUNT( * ) ) * + - 0 * 12 * COUNT( * ) * - COUNT( * ) + COUNT( * ) + + 20 THEN NULL ELSE + 42 END DIV - + 96 + + 40
----
-92
72

skipif mysql # not compatible
query II rowsort label-7805
SELECT ALL - 92 AS col1, - 74 * CASE - COUNT ( * ) WHEN - ( + + COUNT ( * ) ) * + - 0 * 12 * COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) + + 20 THEN NULL ELSE + 42 END / - + 96 + + 40
----
-92
72

query I rowsort
SELECT 31 * 6 col2
----
186

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

skipif mysql # not compatible
query I rowsort label-7807
SELECT MIN ( ALL 33 )
----
33

query I rowsort
SELECT DISTINCT 59 * + - 46 AS col0
----
-2714

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT 47 + + MIN( 84 ) AS col2
----
131

skipif mysql # not compatible
query I rowsort label-7809
SELECT 47 + + MIN ( 84 ) AS col2
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT DISTINCT 1 * + COUNT( * ) - + 51
----
-50

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT 1 * + COUNT ( * ) - + 51
----
-50

query I rowsort
SELECT ALL + 4 * - - 97
----
388

query I rowsort
SELECT DISTINCT + 86 * + 67
----
5762

query I rowsort
SELECT ALL 58 * - 39 AS col1
----
-2262

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT + 31 * 17 + + 39 - + - 29 + + 12 + - COUNT( * ) * - COUNT( * ) + - + 12 * 92 + + NULLIF ( - 12, - 60 )
----
-508

skipif mysql # not compatible
query I rowsort label-7814
SELECT + 31 * 17 + + 39 - + - 29 + + 12 + - COUNT ( * ) * - COUNT ( * ) + - + 12 * 92 + + NULLIF ( - 12, - 60 )
----
-508

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT + COUNT( * ) + - 56 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-7815
SELECT + COUNT ( * ) + - 56 AS col2
----
-55

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7817
SELECT + NULLIF ( + + 62, ( + 34 ) * COUNT( * ) + - + 98 * + 7 + - 74 * - + 96 - + + 91 * + 33 ) DIV 32 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7817
SELECT + NULLIF ( + + 62, ( + 34 ) * COUNT ( * ) + - + 98 * + 7 + - 74 * - + 96 - + + 91 * + 33 ) / 32 AS col2
----
1

query I rowsort
SELECT + 22 + + 15 * + ( - - 66 ) AS col0
----
1012

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT ALL COUNT( * ) + - 9
----
-8

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL COUNT ( * ) + - 9
----
-8

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7821
SELECT DISTINCT COUNT( * ) DIV 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT COUNT ( * ) / 77 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7822
SELECT - 15 + CAST( + + COUNT( * ) AS SIGNED ) AS col1, + 43
----
-14
43

skipif mysql # not compatible
query II rowsort label-7822
SELECT - 15 + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1, + 43
----
-14
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7823
SELECT + + 4 DIV + COUNT( - 87 )
----
4

skipif mysql # not compatible
query I rowsort label-7823
SELECT + + 4 / + COUNT ( - 87 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT ALL + ( ( 72 ) ) + - SUM( - + 80 ) AS col2
----
152

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL + ( ( 72 ) ) + - SUM ( - + 80 ) AS col2
----
152

query II rowsort
SELECT DISTINCT + COALESCE ( + 78, - - 28 ) col0, - 2 AS col1
----
78
-2

query I rowsort
SELECT + - 29 * + 53 AS col1
----
-1537

query I rowsort
SELECT - - 27
----
27

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

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

query I rowsort
SELECT - - 73
----
73

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

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

query II rowsort
SELECT - 32 col2, - 84 + - 66 AS col1
----
-32
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT ALL COUNT( * ) + + 47 - 42 * - 36 * - 36
----
-54384

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL COUNT ( * ) + + 47 - 42 * - 36 * - 36
----
-54384

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT SUM( DISTINCT + ( 48 ) )
----
48

skipif mysql # not compatible
query I rowsort label-7833
SELECT SUM ( DISTINCT + ( 48 ) )
----
48

query II rowsort
SELECT 42 AS col2, NULLIF ( + 24, + 31 ) col0
----
42
24

query I rowsort
SELECT ALL - 83 + - 80
----
-163

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

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

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

query I rowsort
SELECT + + 2 * + 44 + + + 58 + 7 AS col2
----
153

query I rowsort
SELECT ALL 88 col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT DISTINCT + 75 - - 35 + COALESCE ( - 81, - + 86, 11 - + COUNT( * ) ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-7840
SELECT DISTINCT + 75 - - 35 + COALESCE ( - 81, - + 86, 11 - + COUNT ( * ) ) AS col1
----
29

query II rowsort
SELECT DISTINCT 72 AS col1, 58 col0
----
72
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT ALL + + MAX( - 73 ) - 16 + 12 + + 20 + + + 40 * 10 * - - COUNT( * ) - 84 * 50 * - + ( + 86 ) AS col2
----
361543

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL + + MAX ( - 73 ) - 16 + 12 + + 20 + + + 40 * 10 * - - COUNT ( * ) - 84 * 50 * - + ( + 86 ) AS col2
----
361543

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT - 54 * + 29 * - 72 + + + CASE 16 WHEN + COUNT( 89 ) THEN NULL WHEN + 29 THEN - 31 END + + 46 * - 68 / 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7843
SELECT - 54 * + 29 * - 72 + + + CASE 16 WHEN + COUNT ( 89 ) THEN NULL WHEN + 29 THEN - 31 END + + 46 * - 68 / 57
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7844
SELECT DISTINCT 28 AS col0, + ( + + SUM( 38 ) ) * 11 + + + 88 AS col0
----
28
506

skipif mysql # not compatible
query II rowsort label-7844
SELECT DISTINCT 28 AS col0, + ( + + SUM ( 38 ) ) * 11 + + + 88 AS col0
----
28
506

query II rowsort
SELECT 53 AS col1, - NULLIF ( - ( + ( + - 58 ) ), - - 53 - - - 91 )
----
53
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7846
SELECT - COUNT( * ) * + 32 AS col2, MAX( + 72 )
----
-32
72

skipif mysql # not compatible
query II rowsort label-7846
SELECT - COUNT ( * ) * + 32 AS col2, MAX ( + 72 )
----
-32
72

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

skipif mysql # not compatible
query II rowsort label-7847
SELECT - ( + ( + 77 ) ) * - + COUNT ( * ), - 51 AS col1
----
77
-51

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

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

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

query I rowsort
SELECT ( - - 54 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7852
SELECT + 27 * COUNT( * ) - - NULLIF ( - 94, + + COUNT( * ) * 15 + - MAX( - + 24 ) ) + 14 + - 49 + + 54 + + ( - 45 ) * 63 * - 31 * - - COUNT( * ) + + CASE + + MAX( + + 34 ) WHEN NULLIF ( - - 96, + 10 * - 85 ) * 13 THEN CAST( NULL AS SIGNED ) / - + 86 WHEN + - COUNT( * ) + - 28 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7852
SELECT + 27 * COUNT ( * ) - - NULLIF ( - 94, + + COUNT ( * ) * 15 + - MAX ( - + 24 ) ) + 14 + - 49 + + 54 + + ( - 45 ) * 63 * - 31 * - - COUNT ( * ) + + CASE + + MAX ( + + 34 ) WHEN NULLIF ( - - 96, + 10 * - 85 ) * 13 THEN CAST ( NULL AS INTEGER ) / - + 86 WHEN + - COUNT ( * ) + - 28 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT - COUNT( * ) * - 88 col2
----
88

skipif mysql # not compatible
query I rowsort label-7853
SELECT - COUNT ( * ) * - 88 col2
----
88

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

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

query I rowsort
SELECT NULLIF ( + - 48, + 98 * + 94 - 93 )
----
-48

query I rowsort
SELECT + NULLIF ( + 72, - 16 + + COALESCE ( + 80, 5 ) )
----
72

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7859
SELECT ALL 89 * - MIN( DISTINCT 65 ) + + 70, 9 AS col0
----
-5715
9

skipif mysql # not compatible
query II rowsort label-7859
SELECT ALL 89 * - MIN ( DISTINCT 65 ) + + 70, 9 AS col0
----
-5715
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7860
SELECT ALL 14 * - + 0 DIV + 78 + + - 34 * - MIN( ALL - - 49 ) * - COUNT( ALL 4 )
----
-1666

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL 14 * - + 0 / + 78 + + - 34 * - MIN ( ALL - - 49 ) * - COUNT ( ALL 4 )
----
-1666

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

query I rowsort
SELECT ALL + 37 * 19 + 89 AS col0
----
792

onlyif mysql # DIV for integer division: 
query I rowsort label-7863
SELECT ALL + 14 * ( 90 ) * 39 * 22 + 13 + + + 8 * - 11 + 19 DIV + + 99 AS col1
----
1081005

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL + 14 * ( 90 ) * 39 * 22 + 13 + + + 8 * - 11 + 19 / + + 99 AS col1
----
1081005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7864
SELECT + + 42 - - - ( - NULLIF ( - 28, - 8 ) ) + + 55 * + 77 * + ( - 4 ) DIV + COUNT( * )
----
-16926

skipif mysql # not compatible
query I rowsort label-7864
SELECT + + 42 - - - ( - NULLIF ( - 28, - 8 ) ) + + 55 * + 77 * + ( - 4 ) / + COUNT ( * )
----
-16926

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT - + MAX( - 66 ) + - ( - - 83 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-7868
SELECT - + MAX ( - 66 ) + - ( - - 83 ) AS col1
----
-17

query I rowsort
SELECT + 45 * - + 77 * - 62 + - 27
----
214803

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

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

query II rowsort
SELECT ALL - 26 - - - 65, + 8 AS col0
----
-91
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT + 16 + + COUNT( * ) + - + COUNT( * ) col2
----
16

skipif mysql # not compatible
query I rowsort label-7872
SELECT + 16 + + COUNT ( * ) + - + COUNT ( * ) col2
----
16

query I rowsort
SELECT ALL 55 - + + 98 AS col0
----
-43

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

query I rowsort
SELECT ALL 69 * - 47 * + ( - 60 ) + + 52
----
194632

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT + + MAX( + 37 ) + - + 91 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-7876
SELECT + + MAX ( + 37 ) + - + 91 AS col1
----
-54

query I rowsort
SELECT ALL + 60 * + 89 AS col0
----
5340

query II rowsort
SELECT ALL - ( 47 ) col1, - 69 + + + ( + 79 )
----
-47
10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7880
SELECT + - 80 * 7 AS col1, CAST( NULL AS SIGNED ) AS col0
----
-560
NULL

skipif mysql # not compatible
query II rowsort label-7880
SELECT + - 80 * 7 AS col1, CAST ( NULL AS INTEGER ) AS col0
----
-560
NULL

query I rowsort
SELECT DISTINCT 31 * - 44 col2
----
-1364

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

skipif mysql # not compatible
query I rowsort label-7882
SELECT ALL MAX ( - 34 )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-7883
SELECT DISTINCT COUNT( * ) * + 99, 1 * 26 * 85 col2
----
99
2210

skipif mysql # not compatible
query II rowsort label-7883
SELECT DISTINCT COUNT ( * ) * + 99, 1 * 26 * 85 col2
----
99
2210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7884
SELECT DISTINCT NULLIF ( + CAST( NULL AS SIGNED ), + 15 + + + COUNT( * ) * CAST( - COUNT( * ) AS SIGNED ) + + 58 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7884
SELECT DISTINCT NULLIF ( + CAST ( NULL AS INTEGER ), + 15 + + + COUNT ( * ) * CAST ( - COUNT ( * ) AS INTEGER ) + + 58 ) col0
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7887
SELECT DISTINCT ( + NULLIF ( - NULLIF ( 59, ( + CAST( NULL AS SIGNED ) ) ), - 89 ) ) col0
----
-59

skipif mysql # not compatible
query I rowsort label-7887
SELECT DISTINCT ( + NULLIF ( - NULLIF ( 59, ( + CAST ( NULL AS INTEGER ) ) ), - 89 ) ) col0
----
-59

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

query I rowsort
SELECT ALL - NULLIF ( + 56, + - 74 )
----
-56

query I rowsort
SELECT DISTINCT - 31 * 62 col2
----
-1922

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7892
SELECT 56 DIV 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7892
SELECT 56 / 76 AS col1
----
0

query I rowsort
SELECT 91 * - 83 * - - 77
----
-581581

query I rowsort
SELECT ALL + 86 + - 65 AS col1
----
21

query I rowsort
SELECT + 23 * + 79 * 22 + 27
----
40001

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

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

query I rowsort
SELECT ALL - 14 * - ( 97 ) * 26 col0
----
35308

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT 81 + + COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-7898
SELECT 81 + + COUNT ( * ) AS col0
----
82

query I rowsort
SELECT ALL 16 + 44 AS col0
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7900
SELECT 91 + CAST( NULL AS DECIMAL ) + + 74 - AVG ( DISTINCT 17 ) * 0 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7900
SELECT 91 + CAST ( NULL AS REAL ) + + 74 - AVG ( DISTINCT 17 ) * 0 col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL - MIN ( ALL - 51 )
----
51

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

query I rowsort
SELECT ALL + - 79 - + 1
----
-80

query I rowsort
SELECT DISTINCT - ( - 78 ) AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7905
SELECT + CAST( + 35 AS SIGNED ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-7905
SELECT + CAST ( + 35 AS INTEGER ) AS col2
----
35

query I rowsort
SELECT + 34 + - COALESCE ( - 87, - 29 ) AS col2
----
121

query I rowsort
SELECT - 73 * + 9 + + ( 62 )
----
-595

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT ALL - - ( - - MAX( ALL 36 ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL - - ( - - MAX ( ALL 36 ) ) AS col2
----
36

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

query I rowsort
SELECT ALL + 75 - 86 * - + 70
----
6095

query I rowsort
SELECT ALL - 46 col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7912
SELECT 36 * 56 * + 39 / + ( - ( + CASE - + NULLIF ( + + CAST( NULL AS SIGNED ), 20 ) WHEN - + COUNT( * ) * + 93 + + 38 THEN NULL WHEN ( - 7 ) THEN + COUNT( * ) END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7912
SELECT 36 * 56 * + 39 / + ( - ( + CASE - + NULLIF ( + + CAST ( NULL AS INTEGER ), 20 ) WHEN - + COUNT ( * ) * + 93 + + 38 THEN NULL WHEN ( - 7 ) THEN + COUNT ( * ) END ) ) AS col2
----
NULL

query I rowsort
SELECT + ( + + 42 ) * + - 25 + 5 AS col1
----
-1045

query I rowsort
SELECT 84 - - 51
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT 15 * 85 * + NULLIF ( + + 41, + + 74 + + 82 ) + + COUNT( * )
----
52276

skipif mysql # not compatible
query I rowsort label-7915
SELECT 15 * 85 * + NULLIF ( + + 41, + + 74 + + 82 ) + + COUNT ( * )
----
52276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7916
SELECT DISTINCT - 32 DIV + ( + + MIN( - 82 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT - 32 / + ( + + MIN ( - 82 ) )
----
0

query II rowsort
SELECT DISTINCT 45 AS col0, 54 * + 33 * - 27
----
45
-48114

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT ALL 71 * 83 * + 18 * + COUNT( * ) * + 73
----
7743402

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL 71 * 83 * + 18 * + COUNT ( * ) * + 73
----
7743402

onlyif mysql # DIV for integer division: 
query I rowsort label-7919
SELECT ALL 82 DIV - 70
----
-1

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL 82 / - 70
----
-1

query I rowsort
SELECT ALL 41 + - 46 * - + 30
----
1421

query III rowsort
SELECT - 4 AS col2, - 5 AS col1, + 35
----
-4
-5
35

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

query I rowsort
SELECT DISTINCT 76 + ( + + 69 ) AS col1
----
145

query I rowsort
SELECT 95 * + 21
----
1995

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

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL 11 + + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL 28 + ( - 54 ) AS col2
----
-26

query I rowsort
SELECT 72 * 43 AS col0
----
3096

query I rowsort
SELECT DISTINCT 63 + + ( 23 )
----
86

query I rowsort
SELECT 85 + ( 18 ) * + 23 + 24 AS col0
----
523

query I rowsort
SELECT ALL 75 * - - 30
----
2250

query I rowsort
SELECT + 27 col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT ALL - ( - 63 ) + - COUNT( 49 ) + + 12 * - 88
----
-994

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL - ( - 63 ) + - COUNT ( 49 ) + + 12 * - 88
----
-994

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

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

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

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

query II rowsort
SELECT 10 * - 71 AS col2, + 86 * - 4
----
-710
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT ALL - COUNT( - 57 ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL - COUNT ( - 57 ) * - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT ALL 62 - - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL 62 - - COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT ALL - MAX( DISTINCT NULLIF ( 52, + 3 - - 81 ) ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL - MAX ( DISTINCT NULLIF ( 52, + 3 - - 81 ) ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query III rowsort label-7939
SELECT + 93, COUNT( * ) AS col0, + 67 - - + COUNT( * ) AS col1
----
93
1
68

skipif mysql # not compatible
query III rowsort label-7939
SELECT + 93, COUNT ( * ) AS col0, + 67 - - + COUNT ( * ) AS col1
----
93
1
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7940
SELECT ( COUNT( * ) ) DIV - 96 * - - 57 DIV - - COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-7940
SELECT ( COUNT ( * ) ) / - 96 * - - 57 / - - COUNT ( * ) col1
----
0

query I rowsort
SELECT ALL - 95 * + 65
----
-6175

query I rowsort
SELECT + + 4 col0
----
4

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7944
SELECT 81 DIV + 11 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7944
SELECT 81 / + 11 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT DISTINCT - - SUM( + ( + + 48 ) )
----
48

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT - - SUM ( + ( + + 48 ) )
----
48

query I rowsort
SELECT DISTINCT - - 46
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7947
SELECT - 76 * - - ( + + 65 ) + - + ( - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) + + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7947
SELECT - 76 * - - ( + + 65 ) + - + ( - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + + 32 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7948
SELECT ALL - 17 AS col1, 21 + - CAST( NULL AS SIGNED ) * + 60 * - 28 - CAST( NULL AS SIGNED )
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-7948
SELECT ALL - 17 AS col1, 21 + - CAST ( NULL AS INTEGER ) * + 60 * - 28 - CAST ( NULL AS INTEGER )
----
-17
NULL

query II rowsort
SELECT + - 61 AS col2, 4 * - 55 AS col2
----
-61
-220

query I rowsort
SELECT 50 * 63 col2
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT DISTINCT COALESCE ( - COUNT( * ), + 15 + 57 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT COALESCE ( - COUNT ( * ), + 15 + 57 ) AS col2
----
-1

query I rowsort
SELECT ALL - + 97 + + 64
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT ALL - COUNT( * ) * + - COALESCE ( + COUNT( * ), + - 33 + - COALESCE ( 92, - - 50 - 70 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL - COUNT ( * ) * + - COALESCE ( + COUNT ( * ), + - 33 + - COALESCE ( 92, - - 50 - 70 ) ) AS col1
----
1

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

skipif mysql # not compatible
query I rowsort label-7954
SELECT 30 * 71 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT ALL + COALESCE ( + ( + + ( 36 ) ), - COUNT( * ) )
----
36

skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL + COALESCE ( + ( + + ( 36 ) ), - COUNT ( * ) )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7956
SELECT - - CAST( - + MAX( DISTINCT ( - 27 ) ) AS SIGNED ), 73 AS col1
----
27
73

skipif mysql # not compatible
query II rowsort label-7956
SELECT - - CAST ( - + MAX ( DISTINCT ( - 27 ) ) AS INTEGER ), 73 AS col1
----
27
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT DISTINCT + 4 + - - MAX( + - ( - 86 ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-7957
SELECT DISTINCT + 4 + - - MAX ( + - ( - 86 ) ) AS col2
----
90

query I rowsort
SELECT - 1 AS col2
----
-1

query I rowsort
SELECT + 29 + + + 18 + + + ( + ( - 38 ) ) + - + 90 - - 67 AS col0
----
-14

query I rowsort
SELECT DISTINCT + 31 * - + ( + 45 )
----
-1395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7961
SELECT + COALESCE ( 1, + 74 DIV - COUNT( * ) ) + 29 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-7961
SELECT + COALESCE ( 1, + 74 / - COUNT ( * ) ) + 29 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT DISTINCT NULLIF ( + ( 8 ), + ( + + 17 ) * - COUNT( ALL - - 77 ) - - 98 + 22 )
----
8

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT NULLIF ( + ( 8 ), + ( + + 17 ) * - COUNT ( ALL - - 77 ) - - 98 + 22 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7963
SELECT - ( 3 ) DIV 13 * 7 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7963
SELECT - ( 3 ) / 13 * 7 AS col2
----
0

query I rowsort
SELECT 53 col1
----
53

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT DISTINCT COALESCE ( + - COUNT( * ), 44 * 96 ) * - 7 * 23 AS col0
----
161

skipif mysql # not compatible
query I rowsort label-7966
SELECT DISTINCT COALESCE ( + - COUNT ( * ), 44 * 96 ) * - 7 * 23 AS col0
----
161

onlyif mysql # DIV for integer division: 
query II rowsort label-7967
SELECT DISTINCT + 96 DIV + - 30, + 13 * + 72 AS col2
----
-3
936

skipif mysql # not compatible
query II rowsort label-7967
SELECT DISTINCT + 96 / + - 30, + 13 * + 72 AS col2
----
-3
936

onlyif mysql # aggregate syntax: 
query II rowsort label-7968
SELECT DISTINCT COUNT( * ) * - - ( + ( 16 ) ) - 66 AS col0, + 19 + + 98 AS col2
----
-50
117

skipif mysql # not compatible
query II rowsort label-7968
SELECT DISTINCT COUNT ( * ) * - - ( + ( 16 ) ) - 66 AS col0, + 19 + + 98 AS col2
----
-50
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7969
SELECT - 39 / 17 * - 91 + 41 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7969
SELECT - 39 / 17 * - 91 + 41 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7973
SELECT + + 30 * ( + COUNT( * ) ) * COUNT( DISTINCT + 33 ) - - - 95 + - CAST( NULL AS SIGNED ) / - SUM( - 24 ) + 62 + - - 83 + 0 col1, + 92 AS col0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-7973
SELECT + + 30 * ( + COUNT ( * ) ) * COUNT ( DISTINCT + 33 ) - - - 95 + - CAST ( NULL AS INTEGER ) / - SUM ( - 24 ) + 62 + - - 83 + 0 col1, + 92 AS col0
----
NULL
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT + + COUNT( * ) + + COUNT( * ) + 56 - + + COUNT( * ) col0
----
57

skipif mysql # not compatible
query I rowsort label-7974
SELECT + + COUNT ( * ) + + COUNT ( * ) + 56 - + + COUNT ( * ) col0
----
57

query I rowsort
SELECT DISTINCT 34 * + 2 * + 28 * 51 AS col1
----
97104

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT + MAX( - 77 ) + 2
----
-75

skipif mysql # not compatible
query I rowsort label-7976
SELECT + MAX ( - 77 ) + 2
----
-75

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7978
SELECT + 49 * - 27 AS col0, SUM( ALL + 47 ) * - SUM( ALL 15 ) - - 24 + - COUNT( * ) - - 77 * - 53 * + 9
----
-1323
-37411

skipif mysql # not compatible
query II rowsort label-7978
SELECT + 49 * - 27 AS col0, SUM ( ALL + 47 ) * - SUM ( ALL 15 ) - - 24 + - COUNT ( * ) - - 77 * - 53 * + 9
----
-1323
-37411

query I rowsort
SELECT - 18 + - COALESCE ( + - 84, + 31 )
----
66

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

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

query I rowsort
SELECT DISTINCT + ( 41 ) * - 43
----
-1763

query I rowsort
SELECT ALL - 86 * 3 * 62 * + 52 + 89 + + 94 AS col1
----
-831609

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

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

query I rowsort
SELECT - - 12 + - + 73 + - 22 - - ( + ( - 26 ) )
----
-109

query I rowsort
SELECT + - ( 98 ) * - 49
----
4802

query I rowsort
SELECT ALL + + 32 * + 15 + + + 44
----
524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7988
SELECT ALL + + MAX( + + 56 ) * 33 * + 92 - - 30 * - 49 * + CAST( NULL AS SIGNED ) * + - MAX( - + 39 ) * 36 + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL + + MAX ( + + 56 ) * 33 * + 92 - - 30 * - 49 * + CAST ( NULL AS INTEGER ) * + - MAX ( - + 39 ) * 36 + 98 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7990
SELECT - CAST( NULL AS SIGNED ) * + 97 + - 17 + - - 87 * + + 93 - - + COALESCE ( + 75, - 20 + - 21 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7990
SELECT - CAST ( NULL AS INTEGER ) * + 97 + - 17 + - - 87 * + + 93 - - + COALESCE ( + 75, - 20 + - 21 ) AS col2
----
NULL

query I rowsort
SELECT - ( NULLIF ( 95, + 44 + 92 + - 90 ) )
----
-95

query I rowsort
SELECT + 24 * + 68 * - - 52
----
84864

query I rowsort
SELECT DISTINCT CASE - ( 45 ) WHEN + 22 THEN - 17 END
----
NULL

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

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

query II rowsort
SELECT - 60 AS col0, + 6
----
-60
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7996
SELECT 22, 29 + + 61 - - 51 * + COUNT( * ) * - 2 AS col0
----
22
-12

skipif mysql # not compatible
query II rowsort label-7996
SELECT 22, 29 + + 61 - - 51 * + COUNT ( * ) * - 2 AS col0
----
22
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7997
SELECT ALL NULLIF ( - 96, COUNT( * ) * + CAST( 24 AS SIGNED ) )
----
-96

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL NULLIF ( - 96, COUNT ( * ) * + CAST ( 24 AS INTEGER ) )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT ALL + 28 - + - SUM( DISTINCT - 65 ) * + NULLIF ( 50, + 9 )
----
-3222

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL + 28 - + - SUM ( DISTINCT - 65 ) * + NULLIF ( 50, + 9 )
----
-3222

query I rowsort
SELECT - 63 * - - 56 AS col2
----
-3528

query I rowsort
SELECT ALL 34 - - 67 + 6 AS col2
----
107

query I rowsort
SELECT - 16 - - 86 AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8002
SELECT - CAST( NULL AS SIGNED ) * + CASE + - 20 WHEN + 37 * + - 95 THEN + 6 / + ( + - 82 ) + - COUNT( * ) - + ( - + 4 ) WHEN + + 92 THEN - ( + 86 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8002
SELECT - CAST ( NULL AS INTEGER ) * + CASE + - 20 WHEN + 37 * + - 95 THEN + 6 / + ( + - 82 ) + - COUNT ( * ) - + ( - + 4 ) WHEN + + 92 THEN - ( + 86 ) END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8003
SELECT - 72 DIV + MIN( + + 46 ) + 91
----
90

skipif mysql # not compatible
query I rowsort label-8003
SELECT - 72 / + MIN ( + + 46 ) + 91
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8004
SELECT - 97 * CAST( + 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8004
SELECT - 97 * CAST ( + 0 AS INTEGER )
----
0

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8009
SELECT DISTINCT - - MIN( + 16 ) DIV 48 DIV 47 + + ( + 14 ) * + + 53 AS col1
----
742

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT - - MIN ( + 16 ) / 48 / 47 + + ( + 14 ) * + + 53 AS col1
----
742

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8010
SELECT - + 38 DIV MIN( DISTINCT 47 )
----
0

skipif mysql # not compatible
query I rowsort label-8010
SELECT - + 38 / MIN ( DISTINCT 47 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8011
SELECT + + 32 DIV ( + 39 ) + 1
----
1

skipif mysql # not compatible
query I rowsort label-8011
SELECT + + 32 / ( + 39 ) + 1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8012
SELECT ALL - - COUNT( * ) DIV - COALESCE ( + + 23, 22, - - 50 ) + + COUNT( DISTINCT 11 )
----
1

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL - - COUNT ( * ) / - COALESCE ( + + 23, 22, - - 50 ) + + COUNT ( DISTINCT 11 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8013
SELECT - - 21 - 51 DIV + + 19 * + 99 DIV - 83
----
23

skipif mysql # not compatible
query I rowsort label-8013
SELECT - - 21 - 51 / + + 19 * + 99 / - 83
----
23

query I rowsort
SELECT + - 59
----
-59

query I rowsort
SELECT + - 57 * + 50 * 70 + + - 71
----
-199571

query I rowsort
SELECT ALL ( + - 18 ) * - + 91 AS col2
----
1638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8017
SELECT ALL 92 * + + 81 + 71 + + + 69 - - 1 + COALESCE ( + 66, + CAST( NULL AS SIGNED ), + + 71 ) * + + 17 * + 7 * - ( + + COUNT( * ) ) * - - 26 AS col1, 26 col0
----
-196611
26

skipif mysql # not compatible
query II rowsort label-8017
SELECT ALL 92 * + + 81 + 71 + + + 69 - - 1 + COALESCE ( + 66, + CAST ( NULL AS INTEGER ), + + 71 ) * + + 17 * + 7 * - ( + + COUNT ( * ) ) * - - 26 AS col1, 26 col0
----
-196611
26

query II rowsort
SELECT + 36 AS col2, + 73
----
36
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8019
SELECT DISTINCT + 33 + 82 * - 61 - - - CAST( - 90 AS SIGNED ) + - 95 + - + 53 + + 99 AS col2, - 25 AS col2
----
-4928
-25

skipif mysql # not compatible
query II rowsort label-8019
SELECT DISTINCT + 33 + 82 * - 61 - - - CAST ( - 90 AS INTEGER ) + - 95 + - + 53 + + 99 AS col2, - 25 AS col2
----
-4928
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT ALL 36 + - COUNT( * ) - + 7 + + 48
----
76

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL 36 + - COUNT ( * ) - + 7 + + 48
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8021
SELECT 59 - + 22 - - + CAST( + 46 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-8021
SELECT 59 - + 22 - - + CAST ( + 46 AS INTEGER )
----
83

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT MIN( - 40 ) col1
----
-40

skipif mysql # not compatible
query I rowsort label-8023
SELECT MIN ( - 40 ) col1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-8024
SELECT + - 31 * + - 2 + 20 DIV + 16
----
63

skipif mysql # not compatible
query I rowsort label-8024
SELECT + - 31 * + - 2 + 20 / + 16
----
63

query I rowsort
SELECT + 19 - + 21
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8026
SELECT DISTINCT 53 DIV 75 DIV - - 25
----
0

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT 53 / 75 / - - 25
----
0

query I rowsort
SELECT 11 * + 58 AS col0
----
638

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8028
SELECT ALL 5 * - 23, + ( + CAST( NULL AS SIGNED ) ) AS col1
----
-115
NULL

skipif mysql # not compatible
query II rowsort label-8028
SELECT ALL 5 * - 23, + ( + CAST ( NULL AS INTEGER ) ) AS col1
----
-115
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8029
SELECT DISTINCT 17 DIV 6 * - COALESCE ( + - 23, + 75 ) DIV 89 DIV + COALESCE ( - 55, + 1 * 59, - - COUNT( * ) + CASE - 13 WHEN - 32 - + 34 + + - 5 * - COUNT( * ) THEN - CAST( + 0 AS SIGNED ) ELSE - 14 END ) * 99 * - COUNT( * ) * - 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT 17 / 6 * - COALESCE ( + - 23, + 75 ) / 89 / + COALESCE ( - 55, + 1 * 59, - - COUNT ( * ) + CASE - 13 WHEN - 32 - + 34 + + - 5 * - COUNT ( * ) THEN - CAST ( + 0 AS INTEGER ) ELSE - 14 END ) * 99 * - COUNT ( * ) * - 49 AS col2
----
0

query I rowsort
SELECT 1 * - 39 AS col2
----
-39

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

query I rowsort
SELECT 10 + + - 37 AS col2
----
-27

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8035
SELECT 91 DIV 41 * + ( - 74 ) col2
----
-148

skipif mysql # not compatible
query I rowsort label-8035
SELECT 91 / 41 * + ( - 74 ) col2
----
-148

query I rowsort
SELECT 26 * - 8
----
-208

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT 6 + COALESCE ( + COUNT( * ), 81 )
----
7

skipif mysql # not compatible
query I rowsort label-8038
SELECT 6 + COALESCE ( + COUNT ( * ), 81 )
----
7

query I rowsort
SELECT ALL + ( - 87 ) * 35 * + 7
----
-21315

query I rowsort
SELECT 26 * - 90 AS col1
----
-2340

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

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

query I rowsort
SELECT + 60 + + 87 + + ( + + 96 ) * - 1 AS col1
----
51

query I rowsort
SELECT ALL - + 65 * + 57 * + + 63
----
-233415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8044
SELECT ( + SUM( DISTINCT + CASE - ( + - 55 ) WHEN + 58 * + - CAST( NULL AS SIGNED ) THEN NULL ELSE + + 10 - + + 21 END ) ) * + - CAST( NULL AS DECIMAL ) * + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-8044
SELECT ( + SUM ( DISTINCT + CASE - ( + - 55 ) WHEN + 58 * + - CAST ( NULL AS INTEGER ) THEN NULL ELSE + + 10 - + + 21 END ) ) * + - CAST ( NULL AS REAL ) * + 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT + ( + - COUNT( - NULLIF ( + 20, 91 ) ) ) + ( 89 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-8045
SELECT + ( + - COUNT ( - NULLIF ( + 20, 91 ) ) ) + ( 89 ) AS col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8046
SELECT + COALESCE ( - MAX( - COALESCE ( 79, + 58, ( 95 ) + ( - + NULLIF ( 9, - 30 * + + 13 * NULLIF ( 35, - + 47 * - 65 * + - 88 ) + - + 87 + + 64 ) ) ) ), - ( + 62 ) * ( + NULLIF ( - + 70, + + 64 * + 41 ) ), + - 20 * 91 + - ( + COALESCE ( - - 12, + COUNT( * ) ) ) DIV - + MAX( DISTINCT + 1 ) + - 85 + 1 ) col1
----
79

skipif mysql # not compatible
query I rowsort label-8046
SELECT + COALESCE ( - MAX ( - COALESCE ( 79, + 58, ( 95 ) + ( - + NULLIF ( 9, - 30 * + + 13 * NULLIF ( 35, - + 47 * - 65 * + - 88 ) + - + 87 + + 64 ) ) ) ), - ( + 62 ) * ( + NULLIF ( - + 70, + + 64 * + 41 ) ), + - 20 * 91 + - ( + COALESCE ( - - 12, + COUNT ( * ) ) ) / - + MAX ( DISTINCT + 1 ) + - 85 + 1 ) col1
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-8047
SELECT - 44 * - 88 + + + 22 * 93 DIV + + 23 - - + 98 + + 22 * - ( - - 35 ) AS col0, - ( + 67 )
----
3288
-67

skipif mysql # not compatible
query II rowsort label-8047
SELECT - 44 * - 88 + + + 22 * 93 / + + 23 - - + 98 + + 22 * - ( - - 35 ) AS col0, - ( + 67 )
----
3288
-67

query I rowsort
SELECT + + 72
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8049
SELECT 76 DIV - + 70 + 0 * COUNT( * ) + - + 57 + - 22 * + - 77
----
1636

skipif mysql # not compatible
query I rowsort label-8049
SELECT 76 / - + 70 + 0 * COUNT ( * ) + - + 57 + - 22 * + - 77
----
1636

onlyif mysql # aggregate syntax: 
query II rowsort label-8050
SELECT 70 * - 24 * + - ( + - 16 ) - + COUNT( - 86 ) * - + 45 * + NULLIF ( + 13, 5 ) AS col1, SUM( - 58 ) AS col0
----
-26295
-58

skipif mysql # not compatible
query II rowsort label-8050
SELECT 70 * - 24 * + - ( + - 16 ) - + COUNT ( - 86 ) * - + 45 * + NULLIF ( + 13, 5 ) AS col1, SUM ( - 58 ) AS col0
----
-26295
-58

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

query I rowsort
SELECT 5 + - 97 AS col1
----
-92

query I rowsort
SELECT ALL + - 61 + - 59
----
-120

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8055
SELECT ALL - 15 + 55 * + - 8 + - + CASE + 52 WHEN NULLIF ( 78, - - 45 + + 29 ) * + 97 / + + 33 + - 88 THEN - ( - - 50 ) WHEN + - MAX( + CAST( NULL AS DECIMAL ) ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL - 15 + 55 * + - 8 + - + CASE + 52 WHEN NULLIF ( 78, - - 45 + + 29 ) * + 97 / + + 33 + - 88 THEN - ( - - 50 ) WHEN + - MAX ( + CAST ( NULL AS REAL ) ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( + 65, + 4 )
----
-65

query I rowsort
SELECT ALL + 40 + 42 * 96 AS col1
----
4072

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT ALL - CASE 15 WHEN + + 80 * + 53 + - + AVG ( + + 23 ) + - 90 THEN NULL WHEN + - 46 * 92 THEN 87 * + 24 END / SUM( DISTINCT ( - 71 ) ) + 32 + + - 14 / - 16 + - + ( + + MAX( DISTINCT - 99 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8058
SELECT ALL - CASE 15 WHEN + + 80 * + 53 + - + AVG ( + + 23 ) + - 90 THEN NULL WHEN + - 46 * 92 THEN 87 * + 24 END / SUM ( DISTINCT ( - 71 ) ) + 32 + + - 14 / - 16 + - + ( + + MAX ( DISTINCT - 99 ) ) AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( - + 8, + 97 + 56 ) AS col2
----
8

query I rowsort
SELECT - 56 * + - 83 - - - 37 AS col2
----
4611

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT DISTINCT COUNT( * ) - - 31 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT COUNT ( * ) - - 31 AS col0
----
32

query I rowsort
SELECT 91 * + 60 AS col2
----
5460

query I rowsort
SELECT DISTINCT 4 col2
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-8064
SELECT 50 AS col0, - COUNT( * ) * - 68 * - + 75
----
50
-5100

skipif mysql # not compatible
query II rowsort label-8064
SELECT 50 AS col0, - COUNT ( * ) * - 68 * - + 75
----
50
-5100

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

skipif mysql # not compatible
query I rowsort label-8065
SELECT - MAX ( + + 41 )
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-8066
SELECT ALL 98 DIV - 56
----
-1

skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL 98 / - 56
----
-1

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

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

query I rowsort
SELECT ALL 78 col1
----
78

query I rowsort
SELECT 19 * - 45
----
-855

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

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

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

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

query I rowsort
SELECT ALL 89 col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8073
SELECT + 49 - - 76 + - + 5 + 67 + + 96 * 72 DIV - CAST( + + 51 AS SIGNED ) * + COUNT( * ) + 69 * + 71 * - 87 + 81 * - COUNT( DISTINCT + 70 ) AS col1
----
-426242

skipif mysql # not compatible
query I rowsort label-8073
SELECT + 49 - - 76 + - + 5 + 67 + + 96 * 72 / - CAST ( + + 51 AS INTEGER ) * + COUNT ( * ) + 69 * + 71 * - 87 + 81 * - COUNT ( DISTINCT + 70 ) AS col1
----
-426242

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT - 88 / - + 3 * - CASE - ( - 73 ) WHEN - ( - 13 ) THEN 11 - + + NULLIF ( + 31, NULLIF ( - 34, - 50 ) ) - + - ( 48 ) * - + 25 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8074
SELECT - 88 / - + 3 * - CASE - ( - 73 ) WHEN - ( - 13 ) THEN 11 - + + NULLIF ( + 31, NULLIF ( - 34, - 50 ) ) - + - ( 48 ) * - + 25 END + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT - 58 / - + 95 * - CASE 3 WHEN 69 + + ( + ( + ( - + 47 ) ) ) THEN - 61 ELSE NULL END - - - SUM( 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8075
SELECT - 58 / - + 95 * - CASE 3 WHEN 69 + + ( + ( + ( - + 47 ) ) ) THEN - 61 ELSE NULL END - - - SUM ( 1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8076
SELECT ALL COALESCE ( - 92, + 49 ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL COALESCE ( - 92, + 49 ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT ALL + 27 + + + 68 * - COUNT( DISTINCT + + 30 ) * - COUNT( - - NULLIF ( - ( 92 ), 83 ) ) * + COUNT( * ) + - 33 + + 58
----
120

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL + 27 + + + 68 * - COUNT ( DISTINCT + + 30 ) * - COUNT ( - - NULLIF ( - ( 92 ), 83 ) ) * + COUNT ( * ) + - 33 + + 58
----
120

query I rowsort
SELECT - + 97
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8079
SELECT ALL - COUNT( ALL 76 ) * + CAST( + 46 AS SIGNED ) + + - 53
----
-99

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL - COUNT ( ALL 76 ) * + CAST ( + 46 AS INTEGER ) + + - 53
----
-99

query I rowsort
SELECT DISTINCT - + 88 * - 13 AS col1
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT ALL COUNT( * ) * ( - 49 ) + - - 92
----
43

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL COUNT ( * ) * ( - 49 ) + - - 92
----
43

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

query I rowsort
SELECT DISTINCT + - 30
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8084
SELECT DISTINCT - + 96 * 40 DIV - NULLIF ( + 69, 17 + 88 * + COUNT( * ) ) + COUNT( * ), - 49 AS col2
----
56
-49

skipif mysql # not compatible
query II rowsort label-8084
SELECT DISTINCT - + 96 * 40 / - NULLIF ( + 69, 17 + 88 * + COUNT ( * ) ) + COUNT ( * ), - 49 AS col2
----
56
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8085
SELECT ALL + 8 * + 57 * + 40 + ( - COUNT( * ) ) * - 84 - + - COALESCE ( + - NULLIF ( 41, + + CAST( - ( 40 ) AS SIGNED ) ), + - 51 * + 45, - + 12 * + 56 ) + + + 36 * ( + - 61 ) col2
----
16087

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL + 8 * + 57 * + 40 + ( - COUNT ( * ) ) * - 84 - + - COALESCE ( + - NULLIF ( 41, + + CAST ( - ( 40 ) AS INTEGER ) ), + - 51 * + 45, - + 12 * + 56 ) + + + 36 * ( + - 61 ) col2
----
16087

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8086
SELECT - + 98 * CASE - 12 WHEN - 95 * + - MIN( ALL - + 32 ) * COUNT( * ) / COUNT( * ) - + + 21 THEN - + 96 * 49 + - - SUM( ALL - + 12 ) - - + CASE + + 44 WHEN - 82 THEN CAST( NULL AS SIGNED ) + + - 32 + + 98 ELSE + 49 * - 78 END * + 60 * + - 55 / 53 - 61 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT - + 98 * CASE - 12 WHEN - 95 * + - MIN ( ALL - + 32 ) * COUNT ( * ) / COUNT ( * ) - + + 21 THEN - + 96 * 49 + - - SUM ( ALL - + 12 ) - - + CASE + + 44 WHEN - 82 THEN CAST ( NULL AS INTEGER ) + + - 32 + + 98 ELSE + 49 * - 78 END * + 60 * + - 55 / 53 - 61 END AS col1
----
NULL

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

query I rowsort
SELECT - - 28 + 26
----
54

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

query II rowsort
SELECT DISTINCT + ( 87 ), - 13 AS col0
----
87
-13

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

skipif mysql # not compatible
query I rowsort label-8091
SELECT DISTINCT COUNT ( * ) / - 87
----
0

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8093
SELECT + 0, - 84 * + 40 * - CAST( - + 68 AS SIGNED ) * 83 + 23 + CAST( 81 AS SIGNED ) + - - 74 DIV - 66 + 28 DIV 65 AS col0
----
0
-18963737

skipif mysql # not compatible
query II rowsort label-8093
SELECT + 0, - 84 * + 40 * - CAST ( - + 68 AS INTEGER ) * 83 + 23 + CAST ( 81 AS INTEGER ) + - - 74 / - 66 + 28 / 65 AS col0
----
0
-18963737

onlyif mysql # aggregate syntax: 
query II rowsort label-8094
SELECT ALL + COUNT( * ), - 9 + ( - + 38 ) AS col2
----
1
-47

skipif mysql # not compatible
query II rowsort label-8094
SELECT ALL + COUNT ( * ), - 9 + ( - + 38 ) AS col2
----
1
-47

query I rowsort
SELECT - 41 - NULLIF ( - ( - 94 ), 58 + + + 47 * + ( + NULLIF ( - 81, 14 + - - NULLIF ( + - 54, + ( 63 ) ) / - + 43 ) ) + - 21 )
----
-135

query I rowsort
SELECT - 28 * - - ( 59 )
----
-1652

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT + 34 * - COUNT( ALL + ( - + 13 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-8097
SELECT + 34 * - COUNT ( ALL + ( - + 13 ) )
----
-34

query I rowsort
SELECT + 93 * - - ( 97 )
----
9021

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8099
SELECT + 10 DIV + + MIN( - 93 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8099
SELECT + 10 / + + MIN ( - 93 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8100
SELECT - 57 + + 44 - - 61 + 75 - ( - 37 ) * 83 * 96 * + 30 * - - ( + 38 ) - + 62 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8100
SELECT - 57 + + 44 - - 61 + 75 - ( - 37 ) * 83 * 96 * + 30 * - - ( + 38 ) - + 62 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8101
SELECT ALL CASE + + 73 WHEN - 12 * - 79 * - ( + - ( + 36 ) ) + + - 82 THEN + COUNT( * ) + + 88 * - 31 WHEN - + 11 THEN NULL END, - 48 AS col2
----
NULL
-48

skipif mysql # not compatible
query II rowsort label-8101
SELECT ALL CASE + + 73 WHEN - 12 * - 79 * - ( + - ( + 36 ) ) + + - 82 THEN + COUNT ( * ) + + 88 * - 31 WHEN - + 11 THEN NULL END, - 48 AS col2
----
NULL
-48

query I rowsort
SELECT DISTINCT - 79 * 78
----
-6162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8103
SELECT DISTINCT CAST( + - 89 AS SIGNED ) + + SUM( DISTINCT + 55 ) + + - 53 DIV + 80 * + COALESCE ( + - CAST( + 46 AS SIGNED ), + - 10 DIV + COUNT( * ) * 95 + + 9 )
----
-34

skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT CAST ( + - 89 AS INTEGER ) + + SUM ( DISTINCT + 55 ) + + - 53 / + 80 * + COALESCE ( + - CAST ( + 46 AS INTEGER ), + - 10 / + COUNT ( * ) * 95 + + 9 )
----
-34

query I rowsort
SELECT ALL 45 + 6 + + - 33
----
18

query I rowsort
SELECT - NULLIF ( 67, 68 ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT DISTINCT ( - 98 ) + + 61 * + COUNT( * ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8106
SELECT DISTINCT ( - 98 ) + + 61 * + COUNT ( * ) AS col2
----
-37

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8108
SELECT 41 AS col1, - SUM( ALL - 0 )
----
41
0

skipif mysql # not compatible
query II rowsort label-8108
SELECT 41 AS col1, - SUM ( ALL - 0 )
----
41
0

query II rowsort
SELECT 76 AS col0, - 80 + 10
----
76
-70

query I rowsort
SELECT ALL 16 + - 18
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT ALL COALESCE ( + + 50, COUNT( * ) * - - 49 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8111
SELECT ALL COALESCE ( + + 50, COUNT ( * ) * - - 49 ) AS col0
----
50

query I rowsort
SELECT + - 34 + + 42 + - 86
----
-78

query II rowsort
SELECT + + 59 + + + 4, 43 AS col2
----
63
43

query I rowsort
SELECT DISTINCT 1 * 95 + 85 * - 95 + 78
----
-7902

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8115
SELECT ALL SUM( DISTINCT + - 41 ) + + - 45 DIV - COUNT( + 29 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL SUM ( DISTINCT + - 41 ) + + - 45 / - COUNT ( + 29 ) AS col1
----
4

query I rowsort
SELECT DISTINCT + 46 * + 47 * 21 AS col0
----
45402

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8118
SELECT - COUNT( * ) AS col0, + CASE + 6 WHEN - + 73 THEN NULL WHEN - 33 + + - 14 * - 77 THEN + ( - 38 ) * 84 * 1 ELSE NULL END * + - MIN( DISTINCT 47 )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8118
SELECT - COUNT ( * ) AS col0, + CASE + 6 WHEN - + 73 THEN NULL WHEN - 33 + + - 14 * - 77 THEN + ( - 38 ) * 84 * 1 ELSE NULL END * + - MIN ( DISTINCT 47 )
----
-1
NULL

query I rowsort
SELECT - 72 + - 90 + - - ( - - 81 ) * 52 * 51
----
214650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8120
SELECT ALL - 54 DIV COUNT( * ) - 44 + + + 4 DIV - + 12 * - 23 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL - 54 / COUNT ( * ) - 44 + + + 4 / - + 12 * - 23 AS col2
----
-98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT + 15 * - COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-8122
SELECT + 15 * - COUNT ( * ) AS col2
----
-15

query I rowsort
SELECT + + 4 * + + 77 + 57 AS col1
----
365

onlyif mysql # aggregate syntax: 
query III rowsort label-8124
SELECT + - COUNT( * ) AS col2, - 80, - 12 + COUNT( * ) AS col1
----
-1
-80
-11

skipif mysql # not compatible
query III rowsort label-8124
SELECT + - COUNT ( * ) AS col2, - 80, - 12 + COUNT ( * ) AS col1
----
-1
-80
-11

query I rowsort
SELECT + - 83 + 44 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT DISTINCT + MAX( + - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-8126
SELECT DISTINCT + MAX ( + - 68 )
----
-68

query II rowsort
SELECT DISTINCT + - 30 AS col2, - 93 AS col1
----
-30
-93

query I rowsort
SELECT DISTINCT - CASE + 56 WHEN 88 THEN + 30 END * - 62 * - 59 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT DISTINCT 88 * + - COUNT( * ) * + - 80 AS col0
----
7040

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT 88 * + - COUNT ( * ) * + - 80 AS col0
----
7040

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT - 17 + - MAX( DISTINCT - 85 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-8130
SELECT - 17 + - MAX ( DISTINCT - 85 ) AS col1
----
68

query I rowsort
SELECT ALL + 65 * - 18 AS col2
----
-1170

query I rowsort
SELECT - 35 * + 44 AS col1
----
-1540

query I rowsort
SELECT - 69 * + + 58
----
-4002

query I rowsort
SELECT ALL + 24 * 4 + ( + 60 )
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8135
SELECT - 81 * + 4 * + 61 DIV COUNT( * ) AS col2
----
-19764

skipif mysql # not compatible
query I rowsort label-8135
SELECT - 81 * + 4 * + 61 / COUNT ( * ) AS col2
----
-19764

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT ALL SUM( ALL + + 51 ) * COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-8136
SELECT ALL SUM ( ALL + + 51 ) * COUNT ( * ) AS col0
----
51

query II rowsort
SELECT NULLIF ( + 73, - ( + 75 ) * 16 ) AS col2, + 44 * + 92 + + - 22 AS col2
----
73
4026

query I rowsort
SELECT ALL + 90 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT NULLIF ( + + COUNT( + 3 ), 0 * - 96 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8139
SELECT NULLIF ( + + COUNT ( + 3 ), 0 * - 96 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT ALL + COUNT( * ) * 59 + - COALESCE ( 11, - - 66 * + + 39 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL + COUNT ( * ) * 59 + - COALESCE ( 11, - - 66 * + + 39 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT ALL 19 * + - 70 + - + COUNT( * )
----
-1331

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL 19 * + - 70 + - + COUNT ( * )
----
-1331

query I rowsort
SELECT COALESCE ( + 31, + + 83 )
----
31

query I rowsort
SELECT - 21 + 34 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT - 15 * + 17 * - COUNT( + - 94 ) AS col2
----
255

skipif mysql # not compatible
query I rowsort label-8144
SELECT - 15 * + 17 * - COUNT ( + - 94 ) AS col2
----
255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8145
SELECT - CASE 37 WHEN - - CAST( NULL AS SIGNED ) THEN + 0 + - 96 ELSE - 70 END
----
70

skipif mysql # not compatible
query I rowsort label-8145
SELECT - CASE 37 WHEN - - CAST ( NULL AS INTEGER ) THEN + 0 + - 96 ELSE - 70 END
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT - - SUM( + 15 ) - + 6 * - - 33 col2
----
-183

skipif mysql # not compatible
query I rowsort label-8146
SELECT - - SUM ( + 15 ) - + 6 * - - 33 col2
----
-183

query II rowsort
SELECT + ( - + 56 ), 78 col2
----
-56
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8148
SELECT ALL - - 46 * NULLIF ( - - 78, 27 ) * 59, CAST( + + 87 AS SIGNED ) * - COUNT( * ) AS col0
----
211692
-87

skipif mysql # not compatible
query II rowsort label-8148
SELECT ALL - - 46 * NULLIF ( - - 78, 27 ) * 59, CAST ( + + 87 AS INTEGER ) * - COUNT ( * ) AS col0
----
211692
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8149
SELECT - + CAST( NULL AS SIGNED ) - - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8149
SELECT - + CAST ( NULL AS INTEGER ) - - 66
----
NULL

query I rowsort
SELECT ALL - 24 col1
----
-24

query I rowsort
SELECT + 11 - 64 AS col0
----
-53

query I rowsort
SELECT DISTINCT ( - ( - 66 ) ) AS col0
----
66

query I rowsort
SELECT ALL + - 54 * + - 98 * 27 col0
----
142884

query I rowsort
SELECT ALL 64 - - 96 * - 14
----
-1280

query I rowsort
SELECT ALL 49 AS col1
----
49

query II rowsort
SELECT + ( + - 60 ), 31 + + + 21 * 97 AS col1
----
-60
2068

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT DISTINCT - + 41 - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT - + 41 - COUNT ( * )
----
-42

query I rowsort
SELECT - 11 AS col1
----
-11

query II rowsort
SELECT - 60 - 93 AS col2, + 88 AS col2
----
-153
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8160
SELECT ALL - 92 * + - CAST( NULL AS SIGNED ), 62 AS col2
----
NULL
62

skipif mysql # not compatible
query II rowsort label-8160
SELECT ALL - 92 * + - CAST ( NULL AS INTEGER ), 62 AS col2
----
NULL
62

query I rowsort
SELECT ALL - ( + - 77 )
----
77

query I rowsort
SELECT + + 5
----
5

query II rowsort
SELECT ALL 80 * + 52 AS col2, + 76 col2
----
4160
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT 51 * + SUM( + 23 ) + + + 74
----
1247

skipif mysql # not compatible
query I rowsort label-8164
SELECT 51 * + SUM ( + 23 ) + + + 74
----
1247

query I rowsort
SELECT ( - 66 )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8166
SELECT DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, 6 AS col1
----
NULL
6

skipif mysql # not compatible
query II rowsort label-8166
SELECT DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, 6 AS col1
----
NULL
6

query I rowsort
SELECT ALL 47 * + + 23
----
1081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8168
SELECT CASE 72 WHEN + 33 + + 81 * - 32 THEN + - 57 WHEN CAST( + COUNT( * ) AS SIGNED ) THEN NULL END + + + COALESCE ( CAST( NULL AS DECIMAL ), + MAX( + - 32 ), - + 21 ) + 94 * + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8168
SELECT CASE 72 WHEN + 33 + + 81 * - 32 THEN + - 57 WHEN CAST ( + COUNT ( * ) AS INTEGER ) THEN NULL END + + + COALESCE ( CAST ( NULL AS REAL ), + MAX ( + - 32 ), - + 21 ) + 94 * + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT COUNT( * ) - - 24 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-8169
SELECT COUNT ( * ) - - 24 AS col0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-8170
SELECT 39 DIV - 34
----
-1

skipif mysql # not compatible
query I rowsort label-8170
SELECT 39 / - 34
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8171
SELECT ALL 76 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL 76 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 70 * 62 + - - ( - 28 ) + - 34 AS col0
----
4278

query I rowsort
SELECT ALL 87 + 39
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8174
SELECT - 15 * - ( 8 ) + + - 55 + - COUNT( * ) DIV + + 65 * + + 66 col0
----
65

skipif mysql # not compatible
query I rowsort label-8174
SELECT - 15 * - ( 8 ) + + - 55 + - COUNT ( * ) / + + 65 * + + 66 col0
----
65

query I rowsort
SELECT DISTINCT - 61 AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8176
SELECT ALL 40 + 72 + + COALESCE ( + + MIN( 19 ), - 11 - + 61, 66 - + 79 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL 40 + 72 + + COALESCE ( + + MIN ( 19 ), - 11 - + 61, 66 - + 79 ) * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 35 - - + 2 - 70 AS col0, 56 + 39 AS col2
----
-33
95

query I rowsort
SELECT DISTINCT - 6 col1
----
-6

query I rowsort
SELECT - 52 * + - 8 + - 52
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT 45 - + ( - COUNT( * ) )
----
46

skipif mysql # not compatible
query I rowsort label-8180
SELECT 45 - + ( - COUNT ( * ) )
----
46

query I rowsort
SELECT ALL ( + + 12 ) * 32
----
384

query II rowsort
SELECT + 75, 91 * - 4 AS col2
----
75
-364

query II rowsort
SELECT 19 + - 82 * + - 70, 96 * + - 80 AS col1
----
5759
-7680

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT 7 * - + COUNT( * ) + + - 24
----
-31

skipif mysql # not compatible
query I rowsort label-8184
SELECT 7 * - + COUNT ( * ) + + - 24
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8185
SELECT DISTINCT + ( + COUNT( * ) ) * - - COUNT( * ) * + 95 DIV + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-8185
SELECT DISTINCT + ( + COUNT ( * ) ) * - - COUNT ( * ) * + 95 / + COUNT ( * )
----
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8186
SELECT CAST( NULL AS DECIMAL ) + - ( + ( + 89 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8186
SELECT CAST ( NULL AS REAL ) + - ( + ( + 89 ) ) AS col2
----
NULL

query I rowsort
SELECT 70 * - 52 AS col0
----
-3640

query I rowsort
SELECT 44 + COALESCE ( 69, + + 32 )
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-8189
SELECT ALL SUM( - 24 ) - 27 * - 65 AS col2, + 4 AS col2
----
1731
4

skipif mysql # not compatible
query II rowsort label-8189
SELECT ALL SUM ( - 24 ) - 27 * - 65 AS col2, + 4 AS col2
----
1731
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT DISTINCT + 70 * + NULLIF ( + - MIN( + 79 ), - 11 ) - - COUNT( * ) - - COUNT( * ) AS col2
----
-5528

skipif mysql # not compatible
query I rowsort label-8190
SELECT DISTINCT + 70 * + NULLIF ( + - MIN ( + 79 ), - 11 ) - - COUNT ( * ) - - COUNT ( * ) AS col2
----
-5528

query II rowsort
SELECT ALL 61 col1, + 22
----
61
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT - SUM( 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-8192
SELECT - SUM ( 31 )
----
-31

query I rowsort
SELECT - 22 col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT 18 + - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-8194
SELECT 18 + - COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT - COUNT( * ) * - - 90 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-8195
SELECT - COUNT ( * ) * - - 90 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT - COUNT( COALESCE ( 93, + 61 ) ) + + - 8
----
-9

skipif mysql # not compatible
query I rowsort label-8196
SELECT - COUNT ( COALESCE ( 93, + 61 ) ) + + - 8
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8197
SELECT 97 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8197
SELECT 97 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT COUNT( * ) + - 27 + + + 76
----
50

skipif mysql # not compatible
query I rowsort label-8198
SELECT COUNT ( * ) + - 27 + + + 76
----
50

query II rowsort
SELECT - - 43, + 63 AS col2
----
43
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT DISTINCT NULLIF ( + MAX( + 2 ), - 70 + + 91 )
----
2

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT NULLIF ( + MAX ( + 2 ), - 70 + + 91 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT - MAX( + 83 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-8201
SELECT - MAX ( + 83 ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT DISTINCT + 2 * + - NULLIF ( SUM( DISTINCT + 33 ), - + 33 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT + 2 * + - NULLIF ( SUM ( DISTINCT + 33 ), - + 33 ) AS col0
----
-66

query I rowsort
SELECT ( + 17 ) + - 57 col2
----
-40

query I rowsort
SELECT + ( + 33 ) col0
----
33

query I rowsort
SELECT 20 + - + ( 8 ) col1
----
12

query I rowsort
SELECT ALL - 86 * ( + + 1 ) + 79 * - 20
----
-1666

onlyif mysql # DIV for integer division: 
query I rowsort label-8207
SELECT - 30 DIV + 57 + - 31 + + 86 + + 72
----
127

skipif mysql # not compatible
query I rowsort label-8207
SELECT - 30 / + 57 + - 31 + + 86 + + 72
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8208
SELECT CAST( NULL AS SIGNED ) - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8208
SELECT CAST ( NULL AS INTEGER ) - 58
----
NULL

query I rowsort
SELECT 10 + - 99
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8210
SELECT DISTINCT - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) * - - CASE + - MAX( + - 58 ) WHEN - 57 / - 33 + - COUNT( ALL + 6 ) + - COUNT( - ( - 22 ) ) THEN NULL ELSE + 12 END + + - 72, 23 AS col1
----
NULL
23

skipif mysql # not compatible
query II rowsort label-8210
SELECT DISTINCT - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * - - CASE + - MAX ( + - 58 ) WHEN - 57 / - 33 + - COUNT ( ALL + 6 ) + - COUNT ( - ( - 22 ) ) THEN NULL ELSE + 12 END + + - 72, 23 AS col1
----
NULL
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT + MAX( + ( 80 ) )
----
80

skipif mysql # not compatible
query I rowsort label-8211
SELECT + MAX ( + ( 80 ) )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8212
SELECT DISTINCT + 76 * - ( - CAST( NULL AS SIGNED ) ) + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT + 76 * - ( - CAST ( NULL AS INTEGER ) ) + 4 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8213
SELECT 9 DIV 8
----
1

skipif mysql # not compatible
query I rowsort label-8213
SELECT 9 / 8
----
1

query II rowsort
SELECT ALL 34 + + 70 AS col2, 51 - - - 36 AS col1
----
104
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8215
SELECT 16 * - CAST( NULL AS SIGNED ) * + - COALESCE ( + 93, + + 47, 99 / + COUNT( * ) * - - ( - + 9 ) * - CASE - 51 WHEN - - 90 THEN + 27 * 96 * - 59 + + ( + + 51 ) / - + 44 + 20 END ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8215
SELECT 16 * - CAST ( NULL AS INTEGER ) * + - COALESCE ( + 93, + + 47, 99 / + COUNT ( * ) * - - ( - + 9 ) * - CASE - 51 WHEN - - 90 THEN + 27 * 96 * - 59 + + ( + + 51 ) / - + 44 + 20 END ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT ( 22 ) + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-8216
SELECT ( 22 ) + COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT SUM( + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-8217
SELECT SUM ( + 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT MAX( DISTINCT ( + 34 ) )
----
34

skipif mysql # not compatible
query I rowsort label-8218
SELECT MAX ( DISTINCT ( + 34 ) )
----
34

query I rowsort
SELECT ALL 86 - + 75
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT 70 * - CASE - 42 WHEN - - MAX( ALL 37 ) + - + 37 THEN - MIN( 74 ) ELSE 60 END AS col0
----
-4200

skipif mysql # not compatible
query I rowsort label-8220
SELECT 70 * - CASE - 42 WHEN - - MAX ( ALL 37 ) + - + 37 THEN - MIN ( 74 ) ELSE 60 END AS col0
----
-4200

query I rowsort
SELECT DISTINCT ( - 99 ) * - - 1 col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT + SUM( - 74 ) * + 10
----
-740

skipif mysql # not compatible
query I rowsort label-8222
SELECT + SUM ( - 74 ) * + 10
----
-740

query I rowsort
SELECT DISTINCT + 86 AS col1
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-8224
SELECT DISTINCT + - ( + 24 ) col1, ( - 77 ) * CASE 66 WHEN 72 + - - MIN( ALL - 83 ) THEN + 11 * + - 88 * + + 31 + + 98 * AVG ( - 36 ) END * MAX( + 99 )
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-8224
SELECT DISTINCT + - ( + 24 ) col1, ( - 77 ) * CASE 66 WHEN 72 + - - MIN ( ALL - 83 ) THEN + 11 * + - 88 * + + 31 + + 98 * AVG ( - 36 ) END * MAX ( + 99 )
----
-24
NULL

query I rowsort
SELECT DISTINCT 67 - + 52 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT + + 28 + - - 74 - - ( + CASE + 47 WHEN + MIN( - + 26 ) + 49 + - + 61 + - MIN( DISTINCT + 47 ) THEN + AVG ( + 64 ) * + + 24 - - 13 + 48 * + 80 / + 89 - 38 - - + 23 * + 35 + - 41 * - 85 + + 28 WHEN + ( + - 81 ) THEN NULL WHEN + 13 THEN 4 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8226
SELECT + + 28 + - - 74 - - ( + CASE + 47 WHEN + MIN ( - + 26 ) + 49 + - + 61 + - MIN ( DISTINCT + 47 ) THEN + AVG ( + 64 ) * + + 24 - - 13 + 48 * + 80 / + 89 - 38 - - + 23 * + 35 + - 41 * - 85 + + 28 WHEN + ( + - 81 ) THEN NULL WHEN + 13 THEN 4 END )
----
NULL

query I rowsort
SELECT + 68 * - 30
----
-2040

query I rowsort
SELECT ALL - - 87 * - + 98 AS col2
----
-8526

query I rowsort
SELECT + 82 - - - 91
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT DISTINCT 56 * - + 83 + - 97 + + COALESCE ( + + 22, 41 * - COUNT( * ), + 64 ) * + 14 AS col0
----
-4437

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT 56 * - + 83 + - 97 + + COALESCE ( + + 22, 41 * - COUNT ( * ), + 64 ) * + 14 AS col0
----
-4437

query I rowsort
SELECT - + 70 * 49 AS col1
----
-3430

query I rowsort
SELECT ALL - ( 54 ) * 63
----
-3402

query I rowsort
SELECT DISTINCT + 63 col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT - - COUNT( * ) - - + 88 * + 88 AS col0
----
7745

skipif mysql # not compatible
query I rowsort label-8234
SELECT - - COUNT ( * ) - - + 88 * + 88 AS col0
----
7745

query I rowsort
SELECT DISTINCT - 24 + 63 AS col1
----
39

query I rowsort
SELECT ALL + CASE - 81 WHEN + 16 THEN NULL ELSE - 80 END AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT ALL + 65 * - - 9 + - COUNT( * ) AS col1
----
584

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL + 65 * - - 9 + - COUNT ( * ) AS col1
----
584

query I rowsort
SELECT ( - + 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT ALL 1 * - 19 + ( + 16 ) * + 62 + - COUNT( * )
----
972

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL 1 * - 19 + ( + 16 ) * + 62 + - COUNT ( * )
----
972

query I rowsort
SELECT - 52 * - 29 AS col0
----
1508

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT ALL - COUNT( * ) * 97 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL - COUNT ( * ) * 97 AS col1
----
-97

query I rowsort
SELECT - 98 + 91
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-8243
SELECT 71 DIV + - ( 58 ) + + 16 col0
----
15

skipif mysql # not compatible
query I rowsort label-8243
SELECT 71 / + - ( 58 ) + + 16 col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT + 22 * COUNT( * ) * 39 AS col0
----
858

skipif mysql # not compatible
query I rowsort label-8244
SELECT + 22 * COUNT ( * ) * 39 AS col0
----
858

query I rowsort
SELECT ( + 6 ) AS col0
----
6

query I rowsort
SELECT - 86 * - ( - 10 ) AS col1
----
-860

query I rowsort
SELECT DISTINCT + 86 AS col0
----
86

query I rowsort
SELECT ALL + ( - + ( - - 89 ) )
----
-89

query I rowsort
SELECT + 21 + + 36 AS col0
----
57

query I rowsort
SELECT ALL 32 * 90
----
2880

query I rowsort
SELECT + 38 - - + 74 AS col0
----
112

query I rowsort
SELECT ALL - 72 * 56
----
-4032

query I rowsort
SELECT - 50 * 96
----
-4800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8254
SELECT + CAST( NULL AS SIGNED ) + COUNT( DISTINCT ( 60 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8254
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT ( 60 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT + MIN( 59 )
----
59

skipif mysql # not compatible
query I rowsort label-8255
SELECT + MIN ( 59 )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8256
SELECT CAST( + CAST( - 29 AS SIGNED ) AS SIGNED ) * 72 + + 17
----
-2071

skipif mysql # not compatible
query I rowsort label-8256
SELECT CAST ( + CAST ( - 29 AS INTEGER ) AS INTEGER ) * 72 + + 17
----
-2071

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8257
SELECT + COUNT( * ) DIV 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8257
SELECT + COUNT ( * ) / 88 AS col1
----
0

query I rowsort
SELECT + 67 + 2 AS col0
----
69

query I rowsort
SELECT + 78 + - ( - 5 )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8260
SELECT DISTINCT CAST( - 44 AS SIGNED ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-8260
SELECT DISTINCT CAST ( - 44 AS INTEGER ) AS col1
----
-44

query I rowsort
SELECT DISTINCT - 0 * 45 AS col0
----
0

query I rowsort
SELECT - ( 24 ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT ALL - COUNT( * ) + 59
----
58

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL - COUNT ( * ) + 59
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT ALL + 82 + + 82 * MAX( + 14 )
----
1230

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL + 82 + + 82 * MAX ( + 14 )
----
1230

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT SUM( NULLIF ( 15, 17 / + 92 ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8265
SELECT SUM ( NULLIF ( 15, 17 / + 92 ) ) AS col2
----
15

query I rowsort
SELECT + 1 + 75
----
76

query I rowsort
SELECT - ( 64 ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT - 18 * + COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-8268
SELECT - 18 * + COUNT ( * ) AS col0
----
-18

query I rowsort
SELECT ALL 24 + 53 AS col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8270
SELECT - ( + CAST( - 86 AS SIGNED ) )
----
86

skipif mysql # not compatible
query I rowsort label-8270
SELECT - ( + CAST ( - 86 AS INTEGER ) )
----
86

query I rowsort
SELECT + 6 + 72 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT DISTINCT CASE + 29 WHEN ( - COUNT( * ) ) THEN + 27 - + 52 WHEN + 94 THEN NULL WHEN 89 + + 15 THEN COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT CASE + 29 WHEN ( - COUNT ( * ) ) THEN + 27 - + 52 WHEN + 94 THEN NULL WHEN 89 + + 15 THEN COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8273
SELECT + 82 + CAST( NULL AS DECIMAL ) / - CASE - COALESCE ( - ( - 84 ), 31 ) + 22 WHEN ( 56 ) * 58 THEN + 47 WHEN 80 THEN 5 + - 67 / ( 52 ) ELSE + COUNT( * ) * 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8273
SELECT + 82 + CAST ( NULL AS REAL ) / - CASE - COALESCE ( - ( - 84 ), 31 ) + 22 WHEN ( 56 ) * 58 THEN + 47 WHEN 80 THEN 5 + - 67 / ( 52 ) ELSE + COUNT ( * ) * 14 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL 88 + - ( 8 + 91 * COUNT( ( 20 ) ) ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL 88 + - ( 8 + 91 * COUNT ( ( 20 ) ) ) AS col0
----
-11

query I rowsort
SELECT + 59 + 23 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT ALL CASE + ( + 19 ) WHEN + 96 * COUNT( * ) - 26 THEN NULL ELSE 25 END + - COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL CASE + ( + 19 ) WHEN + 96 * COUNT ( * ) - 26 THEN NULL ELSE 25 END + - COUNT ( * ) AS col0
----
24

query I rowsort
SELECT DISTINCT 23 + ( - NULLIF ( 60, + 57 ) ) col0
----
-37

query I rowsort
SELECT ALL - 74 + 92
----
18

query I rowsort
SELECT - 52 + + 83 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT - COUNT( * ) + + NULLIF ( + 16, + COUNT( * ) / COUNT( * ) ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-8280
SELECT - COUNT ( * ) + + NULLIF ( + 16, + COUNT ( * ) / COUNT ( * ) ) AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8281
SELECT ALL + 75 DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL + 75 / - 76
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8282
SELECT + 16 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-8282
SELECT + 16 / 62
----
0

query I rowsort
SELECT DISTINCT + 57 - + 35 AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8284
SELECT ALL CASE 72 WHEN + 29 - - 45 THEN 80 END / - CASE 49 - - 43 WHEN 35 * 83 + - COUNT( * ) THEN + 9 ELSE - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL CASE 72 WHEN + 29 - - 45 THEN 80 END / - CASE 49 - - 43 WHEN 35 * 83 + - COUNT ( * ) THEN + 9 ELSE - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8285
SELECT ALL - 85 * + CASE - 92 WHEN + 37 THEN + 71 / 59 WHEN - CASE 60 WHEN 38 * - 7 THEN CAST( - 84 AS SIGNED ) / CAST( + 86 AS SIGNED ) ELSE + SUM( DISTINCT - 72 ) * + 65 END THEN - 51 + - 14 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL - 85 * + CASE - 92 WHEN + 37 THEN + 71 / 59 WHEN - CASE 60 WHEN 38 * - 7 THEN CAST ( - 84 AS INTEGER ) / CAST ( + 86 AS INTEGER ) ELSE + SUM ( DISTINCT - 72 ) * + 65 END THEN - 51 + - 14 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8286
SELECT DISTINCT + 58 - + 30 DIV - 98 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-8286
SELECT DISTINCT + 58 - + 30 / - 98 AS col2
----
58

query I rowsort
SELECT ALL - NULLIF ( - ( 83 ), - 14 * 39 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT ALL - 85 * COUNT( * ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL - 85 * COUNT ( * ) AS col0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8289
SELECT 13 DIV 84 + 88 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8289
SELECT 13 / 84 + 88 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT 50 * COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-8290
SELECT 50 * COUNT ( * )
----
50

query I rowsort
SELECT - ( + 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT + 11 * COALESCE ( 71 + - COALESCE ( + 72, ( - COUNT( * ) ) ), 62 * 49 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-8292
SELECT + 11 * COALESCE ( 71 + - COALESCE ( + 72, ( - COUNT ( * ) ) ), 62 * 49 ) AS col1
----
-11

query I rowsort
SELECT + - 3 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT DISTINCT - MAX( DISTINCT 19 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT - MAX ( DISTINCT 19 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT DISTINCT + + COUNT( * ) + - 83
----
-82

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT + + COUNT ( * ) + - 83
----
-82

query I rowsort
SELECT + - 80 AS col0
----
-80

query I rowsort
SELECT + 77 * + ( 72 ) AS col1
----
5544

query I rowsort
SELECT ALL + 65 + + 93
----
158

query I rowsort
SELECT ALL 30 + - 14 * + 65 col0
----
-880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8300
SELECT DISTINCT + 15 + - 22 DIV COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-8300
SELECT DISTINCT + 15 + - 22 / COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT - COUNT( * ) + NULLIF ( + 58, AVG ( 20 ) / + 43 + + COUNT( * ) )
----
57

skipif mysql # not compatible
query I rowsort label-8301
SELECT - COUNT ( * ) + NULLIF ( + 58, AVG ( 20 ) / + 43 + + COUNT ( * ) )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT - 13 * CASE - 88 * 4 + 26 * 84 WHEN + 45 * COUNT( * ) + + 62 * 5 THEN NULL WHEN 61 * 89 THEN 28 * 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT - 13 * CASE - 88 * 4 + 26 * 84 WHEN + 45 * COUNT ( * ) + + 62 * 5 THEN NULL WHEN 61 * 89 THEN 28 * 30 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8303
SELECT CAST( NULL AS SIGNED ) + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8303
SELECT CAST ( NULL AS INTEGER ) + 12
----
NULL

query I rowsort
SELECT ALL - 24 + 64 AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8305
SELECT CAST( 25 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-8305
SELECT CAST ( 25 AS INTEGER )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT 82 * - COUNT( * ) col1
----
-82

skipif mysql # not compatible
query I rowsort label-8306
SELECT 82 * - COUNT ( * ) col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT + CAST( - 60 AS SIGNED ) - + 85 * 95 AS col1
----
-8135

skipif mysql # not compatible
query I rowsort label-8307
SELECT + CAST ( - 60 AS INTEGER ) - + 85 * 95 AS col1
----
-8135

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT DISTINCT - COUNT( DISTINCT 75 ) * 69
----
-69

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT - COUNT ( DISTINCT 75 ) * 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ALL + COUNT( * ) + - 78 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL + COUNT ( * ) + - 78 AS col1
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8310
SELECT DISTINCT + 99 DIV NULLIF ( - 98, - 55 + + COUNT( * ) * 65 )
----
-1

skipif mysql # not compatible
query I rowsort label-8310
SELECT DISTINCT + 99 / NULLIF ( - 98, - 55 + + COUNT ( * ) * 65 )
----
-1

query I rowsort
SELECT DISTINCT 40 AS col2
----
40

query I rowsort
SELECT ALL 5 - - 76 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT COUNT( * ) * + 26 * - 53
----
-1378

skipif mysql # not compatible
query I rowsort label-8313
SELECT COUNT ( * ) * + 26 * - 53
----
-1378

query I rowsort
SELECT ALL 46 AS col1
----
46

query I rowsort
SELECT ALL 3 AS col2
----
3

query I rowsort
SELECT 25 - + 62
----
-37

query I rowsort
SELECT 2 col0
----
2

query I rowsort
SELECT DISTINCT 4 * - 68
----
-272

query I rowsort
SELECT ( - 44 ) * + 83
----
-3652

onlyif mysql # DIV for integer division: 
query I rowsort label-8320
SELECT ( 91 ) DIV 8
----
11

skipif mysql # not compatible
query I rowsort label-8320
SELECT ( 91 ) / 8
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT DISTINCT ( SUM( ALL + 81 ) ) * 69
----
5589

skipif mysql # not compatible
query I rowsort label-8321
SELECT DISTINCT ( SUM ( ALL + 81 ) ) * 69
----
5589

onlyif mysql # DIV for integer division: 
query I rowsort label-8322
SELECT 73 DIV + 88 * + 82
----
0

skipif mysql # not compatible
query I rowsort label-8322
SELECT 73 / + 88 * + 82
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8323
SELECT - 60 DIV COUNT( * ) + + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-8323
SELECT - 60 / COUNT ( * ) + + COUNT ( * )
----
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8324
SELECT CAST( - 70 AS SIGNED ) DIV - NULLIF ( 28, - 33 )
----
2

skipif mysql # not compatible
query I rowsort label-8324
SELECT CAST ( - 70 AS INTEGER ) / - NULLIF ( 28, - 33 )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8325
SELECT + CASE + 12 WHEN 79 THEN 89 WHEN + 88 THEN NULL ELSE 8 END DIV 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8325
SELECT + CASE + 12 WHEN 79 THEN 89 WHEN + 88 THEN NULL ELSE 8 END / 94 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8326
SELECT - ( - - 25 ) + CASE COUNT( * ) WHEN CAST( + 52 AS SIGNED ) + 64 * 40 THEN - COUNT( * ) ELSE 14 END * MAX( DISTINCT - 70 )
----
-1005

skipif mysql # not compatible
query I rowsort label-8326
SELECT - ( - - 25 ) + CASE COUNT ( * ) WHEN CAST ( + 52 AS INTEGER ) + 64 * 40 THEN - COUNT ( * ) ELSE 14 END * MAX ( DISTINCT - 70 )
----
-1005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8327
SELECT ALL + COALESCE ( + 46, 84 ) * - CASE 1 WHEN + CAST( + 60 AS SIGNED ) THEN 20 WHEN 27 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL + COALESCE ( + 46, 84 ) * - CASE 1 WHEN + CAST ( + 60 AS INTEGER ) THEN 20 WHEN 27 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT ALL - ( + MAX( ALL + 73 ) ) + - 79 AS col1
----
-152

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL - ( + MAX ( ALL + 73 ) ) + - 79 AS col1
----
-152

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8329
SELECT 74 * ( - 10 ) DIV + ( - CAST( - 78 AS SIGNED ) ) + + 73 * - NULLIF ( 94 * 25, 63 DIV + ( - 1 ) )
----
-171559

skipif mysql # not compatible
query I rowsort label-8329
SELECT 74 * ( - 10 ) / + ( - CAST ( - 78 AS INTEGER ) ) + + 73 * - NULLIF ( 94 * 25, 63 / + ( - 1 ) )
----
-171559

query I rowsort
SELECT ALL 18 + + 85 AS col1
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-8331
SELECT DISTINCT + 10 DIV 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT + 10 / 33 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8332
SELECT + + 14 DIV + COUNT( * ) + + CASE - 69 + 71 WHEN - 77 THEN NULL ELSE - 47 + + 94 * COALESCE ( 85, 78, 67, 66 * 68 ) END * MIN( + ( 16 ) + + 52 )
----
540138

skipif mysql # not compatible
query I rowsort label-8332
SELECT + + 14 / + COUNT ( * ) + + CASE - 69 + 71 WHEN - 77 THEN NULL ELSE - 47 + + 94 * COALESCE ( 85, 78, 67, 66 * 68 ) END * MIN ( + ( 16 ) + + 52 )
----
540138

query I rowsort
SELECT ALL - 88 + - 20
----
-108

query I rowsort
SELECT + 14 col2
----
14

query I rowsort
SELECT + 84 + + 21 col2
----
105

query I rowsort
SELECT DISTINCT + 86 + 32 + + 63 AS col0
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT + COALESCE ( COUNT( * ), 3, - 33 * + 14 )
----
1

skipif mysql # not compatible
query I rowsort label-8337
SELECT + COALESCE ( COUNT ( * ), 3, - 33 * + 14 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8338
SELECT - 34 * 77 + 78 DIV + ( - 56 )
----
-2619

skipif mysql # not compatible
query I rowsort label-8338
SELECT - 34 * 77 + 78 / + ( - 56 )
----
-2619

query I rowsort
SELECT DISTINCT 77 AS col1
----
77

query I rowsort
SELECT - 78 + + 40 + - 27 * + 38 AS col0
----
-1064

query I rowsort
SELECT ALL + + NULLIF ( - 63, + 64 ) - 13
----
-76

query I rowsort
SELECT DISTINCT ( + - 16 )
----
-16

query I rowsort
SELECT DISTINCT - 70 * + 42
----
-2940

query I rowsort
SELECT ALL 30 - - + 44 AS col2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8345
SELECT 3 DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-8345
SELECT 3 / 63
----
0

query I rowsort
SELECT NULLIF ( 77, + 36 ) * 52
----
4004

query I rowsort
SELECT 10 + - - 80
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8348
SELECT - MAX( - ( 41 ) ) DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-8348
SELECT - MAX ( - ( 41 ) ) / 51
----
0

query I rowsort
SELECT + 81 * - 76 AS col2
----
-6156

query I rowsort
SELECT + 69 + + 39
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8351
SELECT ALL + ( - 50 ) * - CASE + 3 WHEN COUNT( * ) + 28 * CAST( 20 + + 94 AS SIGNED ) THEN NULL ELSE - 0 END + - 13
----
-13

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL + ( - 50 ) * - CASE + 3 WHEN COUNT ( * ) + 28 * CAST ( 20 + + 94 AS INTEGER ) THEN NULL ELSE - 0 END + - 13
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8352
SELECT ALL COALESCE ( - CAST( + 51 AS SIGNED ), + 85 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-8352
SELECT ALL COALESCE ( - CAST ( + 51 AS INTEGER ), + 85 ) AS col1
----
-51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8353
SELECT ALL 57 DIV - CASE WHEN - ( 63 ) NOT BETWEEN 93 AND CAST( NULL AS SIGNED ) DIV + CAST( NULL AS SIGNED ) THEN 8 + 36 WHEN NOT NULL IN ( + 33 * 48 ) THEN + 39 ELSE NULL END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL 57 / - CASE WHEN - ( 63 ) NOT BETWEEN 93 AND CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) THEN 8 + 36 WHEN NOT NULL IN ( + 33 * 48 ) THEN + 39 ELSE NULL END AS col0
----
-1

query II rowsort
SELECT 74, + 78 AS col2
----
74
78

query I rowsort
SELECT DISTINCT 62 + - 48
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT + MAX( DISTINCT + - 28 ) * - 64 AS col0
----
1792

skipif mysql # not compatible
query I rowsort label-8356
SELECT + MAX ( DISTINCT + - 28 ) * - 64 AS col0
----
1792

query I rowsort
SELECT + ( + + 17 ) + - 59
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT + SUM( - - 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-8358
SELECT + SUM ( - - 98 ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT CASE WHEN NOT NULL NOT BETWEEN NULL AND ( - 67 ) THEN + 0 + NULLIF ( 27 + 20, 0 * 8 + 90 * COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8359
SELECT CASE WHEN NOT NULL NOT BETWEEN NULL AND ( - 67 ) THEN + 0 + NULLIF ( 27 + 20, 0 * 8 + 90 * COUNT ( * ) ) END
----
NULL

query I rowsort
SELECT DISTINCT 15 * - 53 * + + 86
----
-68370

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT ALL 50 * 71 * COUNT( 83 ) + + ( - 71 + - 54 ) AS col0
----
3425

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL 50 * 71 * COUNT ( 83 ) + + ( - 71 + - 54 ) AS col0
----
3425

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT ALL 78 * 31 + - 67 + + 10 * ( - MAX( DISTINCT - 16 ) ) * - 68 AS col1
----
-8529

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL 78 * 31 + - 67 + + 10 * ( - MAX ( DISTINCT - 16 ) ) * - 68 AS col1
----
-8529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8363
SELECT + CAST( NULL AS SIGNED ) * - - 24 + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-8363
SELECT + CAST ( NULL AS INTEGER ) * - - 24 + - 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT DISTINCT - 81 * + ( - 53 ) + - CASE + 71 WHEN 95 THEN NULL WHEN - NULLIF ( - COUNT( * ), + 3 ) + - 90 THEN - 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8364
SELECT DISTINCT - 81 * + ( - 53 ) + - CASE + 71 WHEN 95 THEN NULL WHEN - NULLIF ( - COUNT ( * ), + 3 ) + - 90 THEN - 17 END
----
NULL

query II rowsort
SELECT - 70 AS col1, 18 * + 85 AS col2
----
-70
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT + SUM( DISTINCT - 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8366
SELECT + SUM ( DISTINCT - 37 ) AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8367
SELECT ALL 86 * - + 43 + - CAST( + CASE - 8 WHEN 53 - - 34 * - 95 THEN NULL WHEN - 22 THEN + 47 END AS SIGNED ) * - COALESCE ( 1, - COALESCE ( 69, 64 * 39 ), + COUNT( * ) - 6 ) + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL 86 * - + 43 + - CAST ( + CASE - 8 WHEN 53 - - 34 * - 95 THEN NULL WHEN - 22 THEN + 47 END AS INTEGER ) * - COALESCE ( 1, - COALESCE ( 69, 64 * 39 ), + COUNT ( * ) - 6 ) + - 54
----
NULL

query I rowsort
SELECT + - ( + 35 ) * + - 48 AS col1
----
1680

query I rowsort
SELECT + - 37 * + 8 AS col0
----
-296

query II rowsort
SELECT + 43 AS col1, - 11
----
43
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8371
SELECT DISTINCT - 53 * + - COALESCE ( + - ( + CAST( NULL AS SIGNED ) ), CASE - 31 WHEN ( + ( COUNT( * ) ) ) THEN NULL ELSE 54 END ) + + 0 + SUM( ALL 61 + 90 ) DIV 48
----
2865

skipif mysql # not compatible
query I rowsort label-8371
SELECT DISTINCT - 53 * + - COALESCE ( + - ( + CAST ( NULL AS INTEGER ) ), CASE - 31 WHEN ( + ( COUNT ( * ) ) ) THEN NULL ELSE 54 END ) + + 0 + SUM ( ALL 61 + 90 ) / 48
----
2865

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT ALL + COUNT( * ) * + 81 + + 2 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL + COUNT ( * ) * + 81 + + 2 AS col0
----
83

query I rowsort
SELECT + + 58
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8374
SELECT - 95 DIV + + 69
----
-1

skipif mysql # not compatible
query I rowsort label-8374
SELECT - 95 / + + 69
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT SUM( DISTINCT 24 ) * + + 61 - ( ( - 61 ) - 86 ) AS col0
----
1611

skipif mysql # not compatible
query I rowsort label-8375
SELECT SUM ( DISTINCT 24 ) * + + 61 - ( ( - 61 ) - 86 ) AS col0
----
1611

query I rowsort
SELECT - 4 * + + 30 * - ( - 60 ) * 18 - + 57 AS col0
----
-129657

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT DISTINCT - 24 * 49 - - COUNT( * ) - 46 col2
----
-1221

skipif mysql # not compatible
query I rowsort label-8377
SELECT DISTINCT - 24 * 49 - - COUNT ( * ) - 46 col2
----
-1221

query II rowsort
SELECT ALL + - 18 col2, 82
----
-18
82

query I rowsort
SELECT + + 66 col2
----
66

query II rowsort
SELECT 42, - 88 col1
----
42
-88

query I rowsort
SELECT DISTINCT + 40
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8382
SELECT ALL + 5 * - - CAST( NULL AS SIGNED ) * + CAST( CASE + CASE COUNT( * ) WHEN 42 THEN 25 * - COUNT( * ) WHEN 45 THEN - COUNT( * ) ELSE - 5 END WHEN ( 59 ) THEN NULL WHEN + 28 THEN 82 * ( 13 * 0 ) WHEN + 58 THEN - 71 / 48 ELSE COUNT( DISTINCT 23 ) END AS SIGNED ) * 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL + 5 * - - CAST ( NULL AS INTEGER ) * + CAST ( CASE + CASE COUNT ( * ) WHEN 42 THEN 25 * - COUNT ( * ) WHEN 45 THEN - COUNT ( * ) ELSE - 5 END WHEN ( 59 ) THEN NULL WHEN + 28 THEN 82 * ( 13 * 0 ) WHEN + 58 THEN - 71 / 48 ELSE COUNT ( DISTINCT 23 ) END AS INTEGER ) * 86 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8383
SELECT ALL - COUNT( * ) * + 78 - NULLIF ( COUNT( * ), - ( + 77 ) ) + - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL - COUNT ( * ) * + 78 - NULLIF ( COUNT ( * ), - ( + 77 ) ) + - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT ALL - 30 * - - CASE + 72 WHEN 97 / 63 THEN - NULLIF ( 7, MIN( DISTINCT + 40 ) * - 1 + + ( - 99 - - 0 ) ) WHEN 95 * - 87 THEN - 79 WHEN - COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL - 30 * - - CASE + 72 WHEN 97 / 63 THEN - NULLIF ( 7, MIN ( DISTINCT + 40 ) * - 1 + + ( - 99 - - 0 ) ) WHEN 95 * - 87 THEN - 79 WHEN - COUNT ( * ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 72 * - 85 * + + 2 + + 27 col2
----
-12213

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT + + 66 + + + ( COUNT( * ) ) + 99 * 51
----
5116

skipif mysql # not compatible
query I rowsort label-8386
SELECT + + 66 + + + ( COUNT ( * ) ) + 99 * 51
----
5116

query I rowsort
SELECT - + 61 - - 41 col0
----
-20

query I rowsort
SELECT - 7 + 44 - - - 55 * - 15
----
862

query I rowsort
SELECT DISTINCT 22 AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8390
SELECT ALL + CAST( 25 AS SIGNED ) * + 37 * - 66
----
-61050

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL + CAST ( 25 AS INTEGER ) * + 37 * - 66
----
-61050

query I rowsort
SELECT DISTINCT CASE 66 WHEN - - 98 THEN NULL ELSE 3 * 41 END AS col2
----
123

query I rowsort
SELECT ALL ( 98 ) AS col1
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8393
SELECT - MAX( 36 ) + - + 15 DIV + 79 col2
----
-36

skipif mysql # not compatible
query I rowsort label-8393
SELECT - MAX ( 36 ) + - + 15 / + 79 col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT ALL SUM( DISTINCT ( 71 ) )
----
71

skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL SUM ( DISTINCT ( 71 ) )
----
71

query I rowsort
SELECT - 70 * 13 * - 8 AS col2
----
7280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8396
SELECT - 28 + - CAST( NULL AS SIGNED ) - 96 + - COUNT( * ) + MAX( 59 ) * + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8396
SELECT - 28 + - CAST ( NULL AS INTEGER ) - 96 + - COUNT ( * ) + MAX ( 59 ) * + 82 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT ALL CASE NULLIF ( + 87, + 66 ) WHEN + 90 THEN 69 * + AVG ( ALL 66 ) WHEN 5 * + 12 THEN - 20 WHEN + COALESCE ( ( - CASE WHEN NOT + 37 >= - 54 THEN - 80 + 81 ELSE NULL END ), MIN( 75 ) + + 45 ) + + 36 * 11 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL CASE NULLIF ( + 87, + 66 ) WHEN + 90 THEN 69 * + AVG ( ALL 66 ) WHEN 5 * + 12 THEN - 20 WHEN + COALESCE ( ( - CASE WHEN NOT + 37 >= - 54 THEN - 80 + 81 ELSE NULL END ), MIN ( 75 ) + + 45 ) + + 36 * 11 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT DISTINCT COALESCE ( + 35, + 16 * - - SUM( ALL 60 ), + 99 )
----
35

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT COALESCE ( + 35, + 16 * - - SUM ( ALL 60 ), + 99 )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8399
SELECT ALL CASE COUNT( * ) WHEN + + 60 * - + 27 / CAST( NULL AS SIGNED ) + - COUNT( * ) * - COALESCE ( 52 * 90 + + COALESCE ( - 14, - 6 ), 77, - 96, - 73 * - 50 + + 77 ) THEN 34 - ( 40 ) WHEN - 62 THEN COALESCE ( - COUNT( * ), + 76 * 94 ) + 47 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL CASE COUNT ( * ) WHEN + + 60 * - + 27 / CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - COALESCE ( 52 * 90 + + COALESCE ( - 14, - 6 ), 77, - 96, - 73 * - 50 + + 77 ) THEN 34 - ( 40 ) WHEN - 62 THEN COALESCE ( - COUNT ( * ), + 76 * 94 ) + 47 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 16 * - 33 AS col0
----
-528

onlyif mysql # DIV for integer division: 
query I rowsort label-8401
SELECT - 22 DIV + 1 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-8401
SELECT - 22 / + 1 AS col1
----
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-8402
SELECT ALL - 53 DIV + + 48, 48 AS col2
----
-1
48

skipif mysql # not compatible
query II rowsort label-8402
SELECT ALL - 53 / + + 48, 48 AS col2
----
-1
48

query I rowsort
SELECT - 34 * 81
----
-2754

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT - SUM( - 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-8404
SELECT - SUM ( - 65 ) AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8405
SELECT ALL - 26 * CASE - 9 WHEN + - CASE + 19 WHEN CAST( + 24 AS SIGNED ) THEN 56 * + 62 ELSE NULL END THEN + 98 + + COALESCE ( - MAX( + 29 ), + 71 * 13, + 87 ) WHEN + COUNT( * ) + COUNT( * ) * - 80 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL - 26 * CASE - 9 WHEN + - CASE + 19 WHEN CAST ( + 24 AS INTEGER ) THEN 56 * + 62 ELSE NULL END THEN + 98 + + COALESCE ( - MAX ( + 29 ), + 71 * 13, + 87 ) WHEN + COUNT ( * ) + COUNT ( * ) * - 80 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + 92 * - - 78 * - 15
----
-107640

query I rowsort
SELECT - 3 - + 99 * + + 82
----
-8121

query I rowsort
SELECT 65 col2
----
65

query I rowsort
SELECT ALL 74 + + + 13
----
87

query I rowsort
SELECT ALL + 81 + + 35 col2
----
116

query I rowsort
SELECT ALL - 27 * - 26 * - + NULLIF ( + 67, 89 / 71 + + 78 )
----
-47034

onlyif mysql # DIV for integer division: 
query I rowsort label-8412
SELECT - 56 DIV + 53 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8412
SELECT - 56 / + 53 AS col0
----
-1

query I rowsort
SELECT - ( 31 ) AS col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8414
SELECT ALL 34 / - COUNT( * ) + + COUNT( * ) - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL 34 / - COUNT ( * ) + + COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + + 32
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8416
SELECT ALL - + 46 DIV 38 * + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL - + 46 / 38 * + COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT - ( - - MAX( - 78 ) ) * + 95 + + 35 * 31 + 53 * 27
----
9926

skipif mysql # not compatible
query I rowsort label-8417
SELECT - ( - - MAX ( - 78 ) ) * + 95 + + 35 * 31 + 53 * 27
----
9926

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8418
SELECT + + CASE + CASE ( - 79 ) WHEN 28 THEN NULL WHEN + ( + 4 ) + - 25 THEN NULL ELSE + 19 * CAST( - 77 AS SIGNED ) END WHEN 85 * 18 THEN - COUNT( * ) + 8 * 97 END / CAST( - 92 / - MIN( 99 ) AS SIGNED ) + 9 * 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8418
SELECT + + CASE + CASE ( - 79 ) WHEN 28 THEN NULL WHEN + ( + 4 ) + - 25 THEN NULL ELSE + 19 * CAST ( - 77 AS INTEGER ) END WHEN 85 * 18 THEN - COUNT ( * ) + 8 * 97 END / CAST ( - 92 / - MIN ( 99 ) AS INTEGER ) + 9 * 1 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT + 66 * - SUM( DISTINCT 71 )
----
-4686

skipif mysql # not compatible
query I rowsort label-8419
SELECT + 66 * - SUM ( DISTINCT 71 )
----
-4686

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT DISTINCT + - NULLIF ( - - 24, 22 / - 67 * + 93 + - 30 + 87 / + COUNT( * ) )
----
-24

skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT + - NULLIF ( - - 24, 22 / - 67 * + 93 + - 30 + 87 / + COUNT ( * ) )
----
-24

query I rowsort
SELECT - 10 + - 71
----
-81

query I rowsort
SELECT + + 70 AS col0
----
70

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8423
SELECT + + 5 + + CAST( + 5 AS DECIMAL ) + + + CASE - 72 WHEN - COALESCE ( - 50, + ( + 25 ) ) THEN NULL WHEN 82 THEN + 29 + - CASE - 90 WHEN 40 * - 55 THEN + 51 - - 15 END END * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8423
SELECT + + 5 + + CAST ( + 5 AS REAL ) + + + CASE - 72 WHEN - COALESCE ( - 50, + ( + 25 ) ) THEN NULL WHEN 82 THEN + 29 + - CASE - 90 WHEN 40 * - 55 THEN + 51 - - 15 END END * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 1 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT ALL - COUNT( * ) * - - 24
----
-24

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL - COUNT ( * ) * - - 24
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8426
SELECT + - 31 + - 38 * - 99 * - COUNT( * ) + + 50 * + COALESCE ( 21 + 40, 20, CASE 62 WHEN 92 * 13 + - 35 THEN CAST( 77 AS SIGNED ) END DIV + 0 )
----
-743

skipif mysql # not compatible
query I rowsort label-8426
SELECT + - 31 + - 38 * - 99 * - COUNT ( * ) + + 50 * + COALESCE ( 21 + 40, 20, CASE 62 WHEN 92 * 13 + - 35 THEN CAST ( 77 AS INTEGER ) END / + 0 )
----
-743

query I rowsort
SELECT DISTINCT + - COALESCE ( + - 42, - 74 ) AS col0
----
42

query I rowsort
SELECT DISTINCT - 92 * + - 4 col1
----
368

query I rowsort
SELECT + + ( + 65 ) + - - 87 * - 80 - 1
----
-6896

query I rowsort
SELECT + 69 * + 72
----
4968

query I rowsort
SELECT DISTINCT + + 47
----
47

query I rowsort
SELECT + 96 + + - 82
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-8433
SELECT ALL + - ( - COUNT( * ) ) AS col0, + 6
----
1
6

skipif mysql # not compatible
query II rowsort label-8433
SELECT ALL + - ( - COUNT ( * ) ) AS col0, + 6
----
1
6

query I rowsort
SELECT + - 4 * + + ( 15 ) + + 25 AS col0
----
-35

query I rowsort
SELECT - - 98 * 92 AS col0
----
9016

query I rowsort
SELECT DISTINCT 90 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT COUNT( * ) * + COALESCE ( + NULLIF ( 43, - 83 + ( SUM( ALL 32 ) ) ), + 26 * + 29 )
----
43

skipif mysql # not compatible
query I rowsort label-8437
SELECT COUNT ( * ) * + COALESCE ( + NULLIF ( 43, - 83 + ( SUM ( ALL 32 ) ) ), + 26 * + 29 )
----
43

query I rowsort
SELECT DISTINCT - 12 * 7 AS col1
----
-84

query I rowsort
SELECT ALL + 57 * + ( + 4 ) * - 55 AS col1
----
-12540

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT COUNT( * ) + + 34 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8440
SELECT COUNT ( * ) + + 34 AS col2
----
35

query I rowsort
SELECT ALL 4 * - - 89
----
356

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT 44 * - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-8442
SELECT 44 * - COUNT ( * )
----
-44

query I rowsort
SELECT 79 * ( - 34 )
----
-2686

query I rowsort
SELECT 83 + 87
----
170

query II rowsort
SELECT ALL 63, + 59 + 97 + - - 81 * - 57 * - 69 AS col0
----
63
318729

query I rowsort
SELECT 26 col0
----
26

query I rowsort
SELECT ALL - 22 + + 77 AS col1
----
55

query I rowsort
SELECT ALL 86 + - + 99
----
-13

query I rowsort
SELECT 79 + + + 63
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8450
SELECT ALL + MAX( + 17 ) + - COUNT( * ) DIV 85
----
17

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL + MAX ( + 17 ) + - COUNT ( * ) / 85
----
17

query II rowsort
SELECT ALL - 95 * - ( - 41 ) AS col2, 52
----
-3895
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT ALL - 23 + - MIN( DISTINCT 45 ) - - 85 * 48 * 97
----
395692

skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL - 23 + - MIN ( DISTINCT 45 ) - - 85 * 48 * 97
----
395692

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT DISTINCT - SUM( + 94 ) * - 55 AS col2
----
5170

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT - SUM ( + 94 ) * - 55 AS col2
----
5170

query I rowsort
SELECT DISTINCT - 48 + 84
----
36

query I rowsort
SELECT 62 * 36 AS col1
----
2232

query I rowsort
SELECT ALL - - 19 * + - 79
----
-1501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8457
SELECT CASE ( - COUNT( * ) ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN ( - ( - 58 ) ) THEN + 31 / + 24 + + 90 WHEN + 9 THEN 82 END + MIN( ALL 7 ) / - NULLIF ( - 71, 78 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8457
SELECT CASE ( - COUNT ( * ) ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN ( - ( - 58 ) ) THEN + 31 / + 24 + + 90 WHEN + 9 THEN 82 END + MIN ( ALL 7 ) / - NULLIF ( - 71, 78 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8458
SELECT + 90 * 29 + - - COUNT( * ), - 35 AS col2
----
2611
-35

skipif mysql # not compatible
query II rowsort label-8458
SELECT + 90 * 29 + - - COUNT ( * ), - 35 AS col2
----
2611
-35

query I rowsort
SELECT DISTINCT - 98 * - - NULLIF ( + 60, 10 )
----
-5880

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT + + NULLIF ( + - 84, - COALESCE ( - + CASE 24 WHEN + 74 THEN ( - 72 ) * - CASE WHEN NULL IS NULL THEN ( - 26 ) END WHEN 44 THEN COUNT( * ) * 63 + 99 * COUNT( * ) END, 90 * + 47 + 13 * COUNT( - 55 ), 76 / + 45 ) * 77 ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-8460
SELECT + + NULLIF ( + - 84, - COALESCE ( - + CASE 24 WHEN + 74 THEN ( - 72 ) * - CASE WHEN NULL IS NULL THEN ( - 26 ) END WHEN 44 THEN COUNT ( * ) * 63 + 99 * COUNT ( * ) END, 90 * + 47 + 13 * COUNT ( - 55 ), 76 / + 45 ) * 77 ) col1
----
-84

query I rowsort
SELECT ALL - + 47 AS col1
----
-47

query I rowsort
SELECT + - 72
----
-72

query I rowsort
SELECT ALL + 54 - 64 + + 70 * - - 45
----
3140

query I rowsort
SELECT ALL 70 - - 97
----
167

query I rowsort
SELECT DISTINCT - 46 - + + 0 col1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-8466
SELECT DISTINCT + + 76 DIV 45 * 86 + 1 col1
----
87

skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT + + 76 / 45 * 86 + 1 col1
----
87

query I rowsort
SELECT ALL - + 36
----
-36

query I rowsort
SELECT + 6 * 0
----
0

query I rowsort
SELECT CASE + 28 WHEN - - 34 THEN - + 60 ELSE + COALESCE ( - 61, - 87 ) END AS col1
----
-61

query I rowsort
SELECT 58 * + 38 - + 93 + - 46
----
2065

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8471
SELECT + + CASE - 42 WHEN - CAST( NULL AS SIGNED ) + - 26 + 94 THEN ( - 10 ) WHEN - 71 THEN - 43 + 29 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT + + CASE - 42 WHEN - CAST ( NULL AS INTEGER ) + - 26 + 94 THEN ( - 10 ) WHEN - 71 THEN - 43 + 29 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8472
SELECT ALL - CAST( 2 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL - CAST ( 2 AS INTEGER )
----
-2

query I rowsort
SELECT 54 * + 47 AS col2
----
2538

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT ALL MIN( - 88 ) + 99
----
11

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL MIN ( - 88 ) + 99
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8475
SELECT 38 + - - 8 DIV - + 9 * + 69 + - + NULLIF ( - - COUNT( * ), + 1 + + 55 ) + 85 col2
----
122

skipif mysql # not compatible
query I rowsort label-8475
SELECT 38 + - - 8 / - + 9 * + 69 + - + NULLIF ( - - COUNT ( * ), + 1 + + 55 ) + 85 col2
----
122

query II rowsort
SELECT 52 AS col2, - 81
----
52
-81

query II rowsort
SELECT 61, + 95 AS col2
----
61
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8478
SELECT ALL 98 + COUNT( + 27 ) + 85 + + 52 + - COUNT( * ) DIV 48 AS col2
----
236

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL 98 + COUNT ( + 27 ) + 85 + + 52 + - COUNT ( * ) / 48 AS col2
----
236

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT CASE 28 WHEN + MAX( + 14 ) THEN - 5 WHEN - + AVG ( 2 ) THEN 83 ELSE NULL END / - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT CASE 28 WHEN + MAX ( + 14 ) THEN - 5 WHEN - + AVG ( 2 ) THEN 83 ELSE NULL END / - 2
----
NULL

query II rowsort
SELECT ALL 17, 95 AS col2
----
17
95

onlyif mysql # aggregate syntax: 
query II rowsort label-8481
SELECT - COUNT( * ) col0, + 11
----
-1
11

skipif mysql # not compatible
query II rowsort label-8481
SELECT - COUNT ( * ) col0, + 11
----
-1
11

query II rowsort
SELECT ALL 62 + - + 29 + - ( - 28 ) col1, 31 * + + 98 - 41 * + 0 AS col2
----
61
3038

onlyif mysql # DIV for integer division: 
query II rowsort label-8483
SELECT ALL + 63 * + 11, 37 + - - 73 DIV + 49 AS col0
----
693
38

skipif mysql # not compatible
query II rowsort label-8483
SELECT ALL + 63 * + 11, 37 + - - 73 / + 49 AS col0
----
693
38

query I rowsort
SELECT DISTINCT - COALESCE ( + 66, + 35 ) * + - 26 AS col0
----
1716

query I rowsort
SELECT DISTINCT 97 - + 5 - 45 AS col1
----
47

query I rowsort
SELECT 4 * 19 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT DISTINCT 32 - + + MIN( 47 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-8487
SELECT DISTINCT 32 - + + MIN ( 47 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT ALL SUM( ALL + - 75 ) * 14
----
-1050

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL SUM ( ALL + - 75 ) * 14
----
-1050

query II rowsort
SELECT ALL + 51, - 91 AS col1
----
51
-91

query I rowsort
SELECT 38 * + + 50
----
1900

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT ALL + SUM( 26 )
----
26

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL + SUM ( 26 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8492
SELECT - 1 - - + NULLIF ( - - 79, + 7 * + CAST( NULL AS SIGNED ) / + 72 ) * + CAST( 16 AS SIGNED )
----
1263

skipif mysql # not compatible
query I rowsort label-8492
SELECT - 1 - - + NULLIF ( - - 79, + 7 * + CAST ( NULL AS INTEGER ) / + 72 ) * + CAST ( 16 AS INTEGER )
----
1263

onlyif mysql # aggregate syntax: 
query II rowsort label-8493
SELECT ALL - COUNT( * ), 49 col1
----
-1
49

skipif mysql # not compatible
query II rowsort label-8493
SELECT ALL - COUNT ( * ), 49 col1
----
-1
49

onlyif mysql # aggregate syntax: 
query II rowsort label-8494
SELECT - 11 AS col2, + COUNT( DISTINCT + 64 )
----
-11
1

skipif mysql # not compatible
query II rowsort label-8494
SELECT - 11 AS col2, + COUNT ( DISTINCT + 64 )
----
-11
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT 18 * - NULLIF ( + + 15, 58 ) + - + NULLIF ( + 61, - 1 * 9 ) * - COUNT( * ) AS col1
----
-209

skipif mysql # not compatible
query I rowsort label-8495
SELECT 18 * - NULLIF ( + + 15, 58 ) + - + NULLIF ( + 61, - 1 * 9 ) * - COUNT ( * ) AS col1
----
-209

onlyif mysql # aggregate syntax: 
query II rowsort label-8496
SELECT 30 AS col1, - MAX( 57 )
----
30
-57

skipif mysql # not compatible
query II rowsort label-8496
SELECT 30 AS col1, - MAX ( 57 )
----
30
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT ALL - COUNT( 29 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL - COUNT ( 29 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8498
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col0, + CAST( NULL AS DECIMAL ) + - 66 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8498
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col0, + CAST ( NULL AS REAL ) + - 66 AS col2
----
NULL
NULL

query I rowsort
SELECT 79 * + ( 7 )
----
553

query I rowsort
SELECT - + NULLIF ( + 16, - - 38 / 61 ) * + 74 + 71 AS col0
----
-1113

onlyif mysql # DIV for integer division: 
query I rowsort label-8501
SELECT ALL + + 74 DIV 39 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL + + 74 / 39 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8502
SELECT ( - + SUM( DISTINCT CAST( NULL AS SIGNED ) ) ) * 29 / + 98 * - 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8502
SELECT ( - + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) ) * 29 / + 98 * - 74 AS col0
----
NULL

query I rowsort
SELECT - - 4 * - 42 AS col0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT - - 98 * ( 5 ) * + ( - 15 ) + MIN( DISTINCT 0 ) * 64 col1
----
-7350

skipif mysql # not compatible
query I rowsort label-8504
SELECT - - 98 * ( 5 ) * + ( - 15 ) + MIN ( DISTINCT 0 ) * 64 col1
----
-7350

onlyif mysql # aggregate syntax: 
query II rowsort label-8505
SELECT - ( 71 ) + + 79 * + COUNT( * ) AS col0, - COUNT( * ) AS col2
----
8
-1

skipif mysql # not compatible
query II rowsort label-8505
SELECT - ( 71 ) + + 79 * + COUNT ( * ) AS col0, - COUNT ( * ) AS col2
----
8
-1

query II rowsort
SELECT + + 33 col0, 80 col0
----
33
80

query I rowsort
SELECT 13 * 1 + - 57
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8508
SELECT 54 AS col2, - 51 * + - 56 + 63 + 66 + - CAST( NULL AS SIGNED ) AS col0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-8508
SELECT 54 AS col2, - 51 * + - 56 + 63 + 66 + - CAST ( NULL AS INTEGER ) AS col0
----
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT DISTINCT + ( 78 ) * + COUNT( * ) + - 34 + - + 63 + - 73
----
-92

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT + ( 78 ) * + COUNT ( * ) + - 34 + - + 63 + - 73
----
-92

query I rowsort
SELECT ALL - 88 * + 41 + - + 83 AS col2
----
-3691

query II rowsort
SELECT - 5 + 64 AS col1, 27
----
59
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT ALL - 30 * - - ( - COUNT( * ) ) / - 53 * + CASE 90 WHEN - ( - 27 ) THEN + 58 * - 48 + 57 * COUNT( * ) END + - 3 * ( + 87 - 51 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL - 30 * - - ( - COUNT ( * ) ) / - 53 * + CASE 90 WHEN - ( - 27 ) THEN + 58 * - 48 + 57 * COUNT ( * ) END + - 3 * ( + 87 - 51 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 47 * - 6 + + - 7 - + - 87 AS col1
----
-202

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT - SUM( DISTINCT + - 22 ) * 10 AS col0
----
220

skipif mysql # not compatible
query I rowsort label-8514
SELECT - SUM ( DISTINCT + - 22 ) * 10 AS col0
----
220

onlyif mysql # aggregate syntax: 
query II rowsort label-8515
SELECT + ( + 90 ) + - COUNT( * ) col2, + 52 - - - 55 AS col2
----
89
-3

skipif mysql # not compatible
query II rowsort label-8515
SELECT + ( + 90 ) + - COUNT ( * ) col2, + 52 - - - 55 AS col2
----
89
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8516
SELECT ALL + 94 DIV - 70
----
-1

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL + 94 / - 70
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8517
SELECT + CAST( NULL AS SIGNED ) / 94 * + + 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8517
SELECT + CAST ( NULL AS INTEGER ) / 94 * + + 0 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT DISTINCT 22 * 55 * + - COUNT( * ) * - 4 * - 99 + - - COUNT( * ) * - 18 AS col2
----
-479178

skipif mysql # not compatible
query I rowsort label-8518
SELECT DISTINCT 22 * 55 * + - COUNT ( * ) * - 4 * - 99 + - - COUNT ( * ) * - 18 AS col2
----
-479178

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT MIN( DISTINCT - + 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-8519
SELECT MIN ( DISTINCT - + 6 )
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8520
SELECT ALL 28 * - 63 + - COALESCE ( 7, COALESCE ( + - 10, + 33 DIV - 75 ), + ( 77 ), - ( + NULLIF ( + 85, + 12 ) ) - 11 )
----
-1771

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL 28 * - 63 + - COALESCE ( 7, COALESCE ( + - 10, + 33 / - 75 ), + ( 77 ), - ( + NULLIF ( + 85, + 12 ) ) - 11 )
----
-1771

query II rowsort
SELECT ALL 57 + - 34 * - - 45 AS col1, 49 - - 19 * 29 AS col2
----
-1473
600

onlyif mysql # aggregate syntax: 
query II rowsort label-8522
SELECT DISTINCT 16 * + 65 * + 26 AS col0, MAX( 29 )
----
27040
29

skipif mysql # not compatible
query II rowsort label-8522
SELECT DISTINCT 16 * + 65 * + 26 AS col0, MAX ( 29 )
----
27040
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8523
SELECT ALL 51 * - 21, - 16 * CAST( 20 AS SIGNED ) DIV + 73 - - + SUM( 98 ) AS col2
----
-1071
94

skipif mysql # not compatible
query II rowsort label-8523
SELECT ALL 51 * - 21, - 16 * CAST ( 20 AS INTEGER ) / + 73 - - + SUM ( 98 ) AS col2
----
-1071
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT SUM( DISTINCT 92 )
----
92

skipif mysql # not compatible
query I rowsort label-8524
SELECT SUM ( DISTINCT 92 )
----
92

query I rowsort
SELECT DISTINCT 68 col0
----
68

query I rowsort
SELECT - COALESCE ( - 44, - 11 ) + - 71 * 59
----
-4145

onlyif mysql # aggregate syntax: 
query II rowsort label-8527
SELECT + 27 + + 76 col2, COUNT( * )
----
103
1

skipif mysql # not compatible
query II rowsort label-8527
SELECT + 27 + + 76 col2, COUNT ( * )
----
103
1

query I rowsort
SELECT + 3 + - - 46
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT + 79 * - COALESCE ( + 13, + 86, + COUNT( ALL 50 ) )
----
-1027

skipif mysql # not compatible
query I rowsort label-8529
SELECT + 79 * - COALESCE ( + 13, + 86, + COUNT ( ALL 50 ) )
----
-1027

query II rowsort
SELECT DISTINCT ( + 72 ), 49 AS col2
----
72
49

onlyif mysql # aggregate syntax: 
query II rowsort label-8531
SELECT DISTINCT + COUNT( * ) * - 80 * - 3 col1, - COUNT( * )
----
240
-1

skipif mysql # not compatible
query II rowsort label-8531
SELECT DISTINCT + COUNT ( * ) * - 80 * - 3 col1, - COUNT ( * )
----
240
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT ALL + CASE - + 75 WHEN 60 THEN NULL WHEN + + COUNT( * ) THEN NULL ELSE - + 46 END * + - 11
----
506

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL + CASE - + 75 WHEN 60 THEN NULL WHEN + + COUNT ( * ) THEN NULL ELSE - + 46 END * + - 11
----
506

query I rowsort
SELECT + + 52 + 7 + + 16 AS col0
----
75

query I rowsort
SELECT DISTINCT 62 AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8535
SELECT + 35 + + 94 * - CAST( + 71 AS SIGNED ) * + 92 * + 36 AS col1
----
-22104253

skipif mysql # not compatible
query I rowsort label-8535
SELECT + 35 + + 94 * - CAST ( + 71 AS INTEGER ) * + 92 * + 36 AS col1
----
-22104253

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8536
SELECT ALL - 13 * - - 65 * + 69 AS col2, - ( CAST( - ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) )
----
-58305
NULL

skipif mysql # not compatible
query II rowsort label-8536
SELECT ALL - 13 * - - 65 * + 69 AS col2, - ( CAST ( - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) )
----
-58305
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT + - ( - 85 ) * + + COUNT( * ) + - - 79 - - 79 AS col2
----
243

skipif mysql # not compatible
query I rowsort label-8537
SELECT + - ( - 85 ) * + + COUNT ( * ) + - - 79 - - 79 AS col2
----
243

query I rowsort
SELECT - 49 + - 0 col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8539
SELECT ALL COALESCE ( - ( + + 61 ), + - CAST( NULL AS SIGNED ) * + 93 + - + 2 + + CAST( NULL AS SIGNED ) * 92, 15 ) * 93 AS col1
----
-5673

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL COALESCE ( - ( + + 61 ), + - CAST ( NULL AS INTEGER ) * + 93 + - + 2 + + CAST ( NULL AS INTEGER ) * 92, 15 ) * 93 AS col1
----
-5673

query I rowsort
SELECT - + 27 AS col2
----
-27

query I rowsort
SELECT COALESCE ( + - 27, + 67 ) * - 51 + 47 + - - 16 * 33 AS col2
----
1952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8542
SELECT ALL + 63 DIV + COUNT( * ) * COUNT( * ) + 74 col1
----
137

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL + 63 / + COUNT ( * ) * COUNT ( * ) + 74 col1
----
137

query I rowsort
SELECT DISTINCT + + 41
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8544
SELECT DISTINCT - + 80 DIV - COUNT( * ) + 40 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT - + 80 / - COUNT ( * ) + 40 AS col2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-8545
SELECT ALL - + 14 DIV - 67 + + 9 + - 58 * - - 16 + + - 35 DIV + 84 * + 78
----
-919

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL - + 14 / - 67 + + 9 + - 58 * - - 16 + + - 35 / + 84 * + 78
----
-919

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT - + COUNT( ALL + 28 ) * - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8546
SELECT - + COUNT ( ALL + 28 ) * - COUNT ( * ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8547
SELECT ALL + ( ( + 10 ) ) DIV + 99 - 96 + + 46 + + - 91 + 41 DIV + 45 AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL + ( ( + 10 ) ) / + 99 - 96 + + 46 + + - 91 + 41 / + 45 AS col2
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8548
SELECT + ( COALESCE ( 89, + 87, - MIN( - ( CAST( NULL AS SIGNED ) ) ) ) ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-8548
SELECT + ( COALESCE ( 89, + 87, - MIN ( - ( CAST ( NULL AS INTEGER ) ) ) ) ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT ALL ( - + ( - 33 ) ) * + 38 + + MAX( COALESCE ( - - 29, - 69 ) ) - + 72 * + 13 + ( + COUNT( ALL 86 ) )
----
348

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL ( - + ( - 33 ) ) * + 38 + + MAX ( COALESCE ( - - 29, - 69 ) ) - + 72 * + 13 + ( + COUNT ( ALL 86 ) )
----
348

query I rowsort
SELECT ( - - 11 )
----
11

query II rowsort
SELECT + 38 col2, 48
----
38
48

query I rowsort
SELECT ( - 6 ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT ALL 24 * - + 85 + ( - 11 ) + - NULLIF ( + CASE 42 WHEN + 37 * 62 + - 27 * 6 THEN 31 WHEN - COUNT( * ) * 53 THEN NULL WHEN + 5 THEN 83 END, 43 / - 78 - + 56 ) / + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL 24 * - + 85 + ( - 11 ) + - NULLIF ( + CASE 42 WHEN + 37 * 62 + - 27 * 6 THEN 31 WHEN - COUNT ( * ) * 53 THEN NULL WHEN + 5 THEN 83 END, 43 / - 78 - + 56 ) / + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT MAX( DISTINCT + 47 ) * + 66 + 7 - - COUNT( * )
----
3110

skipif mysql # not compatible
query I rowsort label-8554
SELECT MAX ( DISTINCT + 47 ) * + 66 + 7 - - COUNT ( * )
----
3110

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8555
SELECT DISTINCT 28 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT 28 * - CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT ALL + 44 AS col1, - 87
----
44
-87

query I rowsort
SELECT DISTINCT + NULLIF ( - 82, 9 + + + 16 ) AS col2
----
-82

query I rowsort
SELECT ALL 61 * + - 56 - - COALESCE ( + ( - + 68 ), 29 )
----
-3484

query I rowsort
SELECT DISTINCT - 81 * 37 AS col1
----
-2997

query I rowsort
SELECT ALL + ( - 0 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT ALL - SUM( + + 53 ) * - - 98 - + 7 * - - 1 * + 26 AS col0
----
-5376

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL - SUM ( + + 53 ) * - - 98 - + 7 * - - 1 * + 26 AS col0
----
-5376

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT DISTINCT + COALESCE ( 80, - 5, + COUNT( * ) + + COUNT( * ) )
----
80

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT + COALESCE ( 80, - 5, + COUNT ( * ) + + COUNT ( * ) )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8563
SELECT - CASE WHEN 60 BETWEEN 62 AND - - 47 THEN 44 ELSE NULL END + CAST( NULL AS SIGNED ) * COALESCE ( + 98, + ( 92 ) + - NULLIF ( 69, + 36 ) * + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8563
SELECT - CASE WHEN 60 BETWEEN 62 AND - - 47 THEN 44 ELSE NULL END + CAST ( NULL AS INTEGER ) * COALESCE ( + 98, + ( 92 ) + - NULLIF ( 69, + 36 ) * + COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT COALESCE ( - 49, 72, - - ( + 58 ) ) col0
----
-49

query I rowsort
SELECT + 3 + + ( - 14 )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8566
SELECT ALL CAST( 31 AS SIGNED ) col1
----
31

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL CAST ( 31 AS INTEGER ) col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-8567
SELECT COUNT( * ), + 28 AS col2
----
1
28

skipif mysql # not compatible
query II rowsort label-8567
SELECT COUNT ( * ), + 28 AS col2
----
1
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8568
SELECT ALL ( + COALESCE ( + COUNT( * ), ( - 17 ) + 98 ) ) AS col1, + 94
----
1
94

skipif mysql # not compatible
query II rowsort label-8568
SELECT ALL ( + COALESCE ( + COUNT ( * ), ( - 17 ) + 98 ) ) AS col1, + 94
----
1
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL ( + 47 ) * - 47 + MAX( + 70 ) AS col1
----
-2139

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL ( + 47 ) * - 47 + MAX ( + 70 ) AS col1
----
-2139

query I rowsort
SELECT ALL 12 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT - NULLIF ( - 22, + COUNT( * ) + - - 42 * + + COUNT( * ) * - 27 * + - 96 )
----
22

skipif mysql # not compatible
query I rowsort label-8571
SELECT - NULLIF ( - 22, + COUNT ( * ) + - - 42 * + + COUNT ( * ) * - 27 * + - 96 )
----
22

query I rowsort
SELECT ALL + + 33 * - 45
----
-1485

query II rowsort
SELECT DISTINCT - 98 AS col1, + 4
----
-98
4

query II rowsort
SELECT ALL 96 AS col2, + 94
----
96
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT DISTINCT + COUNT( - + 92 ) * + COUNT( * ) - + - 2
----
3

skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT + COUNT ( - + 92 ) * + COUNT ( * ) - + - 2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8576
SELECT ALL 35 AS col0, - COALESCE ( - 47, - - 19 + - + 71 * + - 35, - COUNT( ALL + 8 ) ) + + COUNT( ALL CASE - 80 WHEN 56 THEN 63 ELSE NULL END )
----
35
47

skipif mysql # not compatible
query II rowsort label-8576
SELECT ALL 35 AS col0, - COALESCE ( - 47, - - 19 + - + 71 * + - 35, - COUNT ( ALL + 8 ) ) + + COUNT ( ALL CASE - 80 WHEN 56 THEN 63 ELSE NULL END )
----
35
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8577
SELECT - + CAST( ( + 42 ) AS SIGNED ), CASE 79 WHEN + COUNT( * ) THEN MIN( ALL + - 47 ) WHEN + 80 + COALESCE ( - 50, ( 77 ) ) * 99 THEN - CAST( 66 AS SIGNED ) + - 11 * - 22 ELSE - 36 END AS col2
----
-42
-36

skipif mysql # not compatible
query II rowsort label-8577
SELECT - + CAST ( ( + 42 ) AS INTEGER ), CASE 79 WHEN + COUNT ( * ) THEN MIN ( ALL + - 47 ) WHEN + 80 + COALESCE ( - 50, ( 77 ) ) * 99 THEN - CAST ( 66 AS INTEGER ) + - 11 * - 22 ELSE - 36 END AS col2
----
-42
-36

query I rowsort
SELECT ALL 2 + 2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT + 72 - - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-8579
SELECT + 72 - - COUNT ( * )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-8580
SELECT 28, 33 / + CASE - COUNT( * ) WHEN 30 * 36 * - 23 THEN AVG ( ALL 58 ) * 32 END col2
----
28
NULL

skipif mysql # not compatible
query II rowsort label-8580
SELECT 28, 33 / + CASE - COUNT ( * ) WHEN 30 * 36 * - 23 THEN AVG ( ALL 58 ) * 32 END col2
----
28
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8581
SELECT - 97, COALESCE ( + + 0, - + 29 DIV + 92 ) * - COALESCE ( 68, 27 * 50, 99 * 66 ) * 16 + - 89 AS col2
----
-97
-89

skipif mysql # not compatible
query II rowsort label-8581
SELECT - 97, COALESCE ( + + 0, - + 29 / + 92 ) * - COALESCE ( 68, 27 * 50, 99 * 66 ) * 16 + - 89 AS col2
----
-97
-89

query II rowsort
SELECT ALL 8 AS col1, 81
----
8
81

query I rowsort
SELECT ALL - 65 + + 3
----
-62

query II rowsort
SELECT ALL 70 AS col1, ( 43 ) AS col0
----
70
43

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8585
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + CAST( NULL AS DECIMAL ) + + CAST( - 66 AS DECIMAL ) * + AVG ( ALL + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS REAL ) + + CAST ( - 66 AS REAL ) * + AVG ( ALL + 69 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8586
SELECT DISTINCT - ( + - MIN( 44 ) ) / AVG ( ALL - CAST( NULL AS SIGNED ) ) + - 11 AS col2, + 0 * - COUNT( * ) AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8586
SELECT DISTINCT - ( + - MIN ( 44 ) ) / AVG ( ALL - CAST ( NULL AS INTEGER ) ) + - 11 AS col2, + 0 * - COUNT ( * ) AS col2
----
NULL
0

query I rowsort
SELECT DISTINCT + 93 AS col0
----
93

query I rowsort
SELECT ALL 66 + 11
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT 96 - + COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-8589
SELECT 96 - + COUNT ( * ) AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8590
SELECT - + 8 DIV - CAST( - 11 AS SIGNED ) + 67
----
67

skipif mysql # not compatible
query I rowsort label-8590
SELECT - + 8 / - CAST ( - 11 AS INTEGER ) + 67
----
67

query II rowsort
SELECT + 36 * - 73 - - - 6 AS col1, + 7
----
-2634
7

query II rowsort
SELECT 47 + - 76 AS col0, 11
----
-29
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8593
SELECT ( - - COUNT( * ) ) * - MAX( + + CAST( + 22 AS SIGNED ) ) * 97 + + 29 + + 48 + - NULLIF ( 43, MAX( - 30 ) ) - 23
----
-2123

skipif mysql # not compatible
query I rowsort label-8593
SELECT ( - - COUNT ( * ) ) * - MAX ( + + CAST ( + 22 AS INTEGER ) ) * 97 + + 29 + + 48 + - NULLIF ( 43, MAX ( - 30 ) ) - 23
----
-2123

query II rowsort
SELECT 54 * - 97, - 68 * + 41 * + - 58 * - 24 + 81 * - 95 * + 37 * - 50 + - COALESCE ( + 69, + 10 * - 49 ) AS col0
----
-5238
10354785

query II rowsort
SELECT 89 * + 86, - 21 AS col2
----
7654
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8596
SELECT CAST( 10 AS SIGNED ) + + + 80 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-8596
SELECT CAST ( 10 AS INTEGER ) + + + 80 AS col0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8597
SELECT ALL - COALESCE ( - 3, - - 43 * + 31 - + 57 DIV + + 46 )
----
3

skipif mysql # not compatible
query I rowsort label-8597
SELECT ALL - COALESCE ( - 3, - - 43 * + 31 - + 57 / + + 46 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT ALL 46 - + + 67 * + COUNT( + + 62 ) * - 50 AS col0
----
3396

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL 46 - + + 67 * + COUNT ( + + 62 ) * - 50 AS col0
----
3396

query I rowsort
SELECT 40 * - 22 + - 70 AS col0
----
-950

query I rowsort
SELECT ALL 22 - + - 20
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8601
SELECT 89 * - 68 AS col1, CAST( - 2 AS SIGNED ) * 36 / 6 + - ( 55 ) * CAST( NULL AS SIGNED ) - + 32
----
-6052
NULL

skipif mysql # not compatible
query II rowsort label-8601
SELECT 89 * - 68 AS col1, CAST ( - 2 AS INTEGER ) * 36 / 6 + - ( 55 ) * CAST ( NULL AS INTEGER ) - + 32
----
-6052
NULL

query I rowsort
SELECT 79 * - 48 AS col0
----
-3792

query I rowsort
SELECT 14 * - 37 AS col2
----
-518

query I rowsort
SELECT DISTINCT - 59 * - - 34
----
-2006

onlyif mysql # aggregate syntax: 
query II rowsort label-8605
SELECT DISTINCT - 50 * 30 AS col1, COUNT( - 77 ) AS col2
----
-1500
1

skipif mysql # not compatible
query II rowsort label-8605
SELECT DISTINCT - 50 * 30 AS col1, COUNT ( - 77 ) AS col2
----
-1500
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8606
SELECT DISTINCT - CASE + 33 WHEN MAX( + - 11 ) THEN NULLIF ( COUNT( * ), + 90 / - 78 ) + + 89 + 26 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE + 66 + + MIN( ( + 72 ) ) * 86 END
----
-6258

skipif mysql # not compatible
query I rowsort label-8606
SELECT DISTINCT - CASE + 33 WHEN MAX ( + - 11 ) THEN NULLIF ( COUNT ( * ), + 90 / - 78 ) + + 89 + 26 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + 66 + + MIN ( ( + 72 ) ) * 86 END
----
-6258

onlyif mysql # aggregate syntax: 
query II rowsort label-8607
SELECT ALL - COALESCE ( - 0, COUNT( * ), - 10 ) * - + 16 col0, 45
----
0
45

skipif mysql # not compatible
query II rowsort label-8607
SELECT ALL - COALESCE ( - 0, COUNT ( * ), - 10 ) * - + 16 col0, 45
----
0
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8608
SELECT 4 + 29 + + + 15 * ( + COUNT( * ) ), - 85 AS col1
----
48
-85

skipif mysql # not compatible
query II rowsort label-8608
SELECT 4 + 29 + + + 15 * ( + COUNT ( * ) ), - 85 AS col1
----
48
-85

query I rowsort
SELECT DISTINCT 73 * - 70
----
-5110

query I rowsort
SELECT DISTINCT 32 AS col1
----
32

query II rowsort
SELECT ALL - 38 * - - 80 AS col2, - 53
----
-3040
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT - 81 / - CASE COUNT( * ) WHEN - 34 + + 91 * + + 92 + + + 10 - ( - 64 ) + - MAX( 74 - + 82 * - 73 ) THEN - 51 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8612
SELECT - 81 / - CASE COUNT ( * ) WHEN - 34 + + 91 * + + 92 + + + 10 - ( - 64 ) + - MAX ( 74 - + 82 * - 73 ) THEN - 51 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT ALL - COUNT( * ) + 44 * + 72 col0
----
3167

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL - COUNT ( * ) + 44 * + 72 col0
----
3167

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT 41 - + MIN( - 19 )
----
60

skipif mysql # not compatible
query I rowsort label-8614
SELECT 41 - + MIN ( - 19 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8615
SELECT DISTINCT + COALESCE ( COALESCE ( - CAST( NULL AS SIGNED ), + - 14 * 78 ), 96, + 69 * - 81 ) + 29 AS col0
----
-1063

skipif mysql # not compatible
query I rowsort label-8615
SELECT DISTINCT + COALESCE ( COALESCE ( - CAST ( NULL AS INTEGER ), + - 14 * 78 ), 96, + 69 * - 81 ) + 29 AS col0
----
-1063

onlyif mysql # DIV for integer division: 
query I rowsort label-8616
SELECT - 47 DIV + + 35 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8616
SELECT - 47 / + + 35 AS col1
----
-1

query I rowsort
SELECT - - 64 col2
----
64

query I rowsort
SELECT + 31 * + 74
----
2294

query I rowsort
SELECT 61 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT ALL + + CASE + 0 WHEN - 80 THEN + 67 WHEN + 87 * - 67 - + 8 + - - 90 + - COUNT( ALL - 42 ) THEN COUNT( * ) ELSE NULL END + - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8620
SELECT ALL + + CASE + 0 WHEN - 80 THEN + 67 WHEN + 87 * - 67 - + 8 + - - 90 + - COUNT ( ALL - 42 ) THEN COUNT ( * ) ELSE NULL END + - 43 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT - MAX( DISTINCT + 17 ) + - 69 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-8621
SELECT - MAX ( DISTINCT + 17 ) + - 69 AS col0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8622
SELECT ALL NULLIF ( - 66, 88 ) + + + 42 + - COUNT( DISTINCT - 0 ) - - - 25 AS col0, + 1 + - CAST( NULL AS SIGNED ) / 50
----
-50
NULL

skipif mysql # not compatible
query II rowsort label-8622
SELECT ALL NULLIF ( - 66, 88 ) + + + 42 + - COUNT ( DISTINCT - 0 ) - - - 25 AS col0, + 1 + - CAST ( NULL AS INTEGER ) / 50
----
-50
NULL

query I rowsort
SELECT - 20 + 31
----
11

query I rowsort
SELECT ALL - 70 * 59 AS col2
----
-4130

query I rowsort
SELECT ( 77 ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT COUNT( * ) + + ( - 23 )
----
-22

skipif mysql # not compatible
query I rowsort label-8626
SELECT COUNT ( * ) + + ( - 23 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT ALL - + 88 + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL - + 88 + COUNT ( * )
----
-87

query I rowsort
SELECT - - 13 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8629
SELECT + 47 + - + CAST( - 74 AS SIGNED ) - - + ( 54 ) * + COUNT( * ) * - CASE - 98 WHEN - 89 * + 31 THEN NULL WHEN CAST( 65 AS SIGNED ) THEN - COUNT( * ) ELSE 40 * - COALESCE ( CASE NULLIF ( + 79, - 73 * - 13 + 61 ) WHEN - 85 THEN + SUM( + 56 ) + SUM( DISTINCT 9 ) ELSE + 65 - - 7 END, - 97, ( 96 ), - 67 + 69 * + 41 ) END
----
155641

skipif mysql # not compatible
query I rowsort label-8629
SELECT + 47 + - + CAST ( - 74 AS INTEGER ) - - + ( 54 ) * + COUNT ( * ) * - CASE - 98 WHEN - 89 * + 31 THEN NULL WHEN CAST ( 65 AS INTEGER ) THEN - COUNT ( * ) ELSE 40 * - COALESCE ( CASE NULLIF ( + 79, - 73 * - 13 + 61 ) WHEN - 85 THEN + SUM ( + 56 ) + SUM ( DISTINCT 9 ) ELSE + 65 - - 7 END, - 97, ( 96 ), - 67 + 69 * + 41 ) END
----
155641

query I rowsort
SELECT ALL - 79 - 76
----
-155

query I rowsort
SELECT + ( + 46 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8632
SELECT COALESCE ( - + CASE - 66 WHEN + + NULLIF ( - 31, 40 * + + COALESCE ( - 35, COUNT( * ), + 74 ) / + COALESCE ( CASE + 67 WHEN + 82 + 12 THEN - AVG ( ALL ( ( + CAST( + 35 AS SIGNED ) ) ) ) * 93 WHEN 52 THEN COUNT( * ) + - 7 END - 57 * COALESCE ( 23 * - COALESCE ( 83, - COUNT( * ) / 41 ) + + 1, - CASE 1 WHEN 76 + 65 THEN AVG ( 40 ) - - NULLIF ( - 45, - COALESCE ( - 20, CAST( NULL AS SIGNED ) ) * 42 ) WHEN - 4 THEN + COUNT( * ) * 82 ELSE NULL END * - 41, + 80 + 42 * - 40, + COUNT( * ) * - 56 ), 51 ) ) + - CASE 10 + CAST( 17 AS SIGNED ) WHEN + 95 THEN 10 END THEN 15 ELSE NULL END, - ( 53 ) ) * - 32 + - 88
----
1608

skipif mysql # not compatible
query I rowsort label-8632
SELECT COALESCE ( - + CASE - 66 WHEN + + NULLIF ( - 31, 40 * + + COALESCE ( - 35, COUNT ( * ), + 74 ) / + COALESCE ( CASE + 67 WHEN + 82 + 12 THEN - AVG ( ALL ( ( + CAST ( + 35 AS INTEGER ) ) ) ) * 93 WHEN 52 THEN COUNT ( * ) + - 7 END - 57 * COALESCE ( 23 * - COALESCE ( 83, - COUNT ( * ) / 41 ) + + 1, - CASE 1 WHEN 76 + 65 THEN AVG ( 40 ) - - NULLIF ( - 45, - COALESCE ( - 20, CAST ( NULL AS INTEGER ) ) * 42 ) WHEN - 4 THEN + COUNT ( * ) * 82 ELSE NULL END * - 41, + 80 + 42 * - 40, + COUNT ( * ) * - 56 ), 51 ) ) + - CASE 10 + CAST ( 17 AS INTEGER ) WHEN + 95 THEN 10 END THEN 15 ELSE NULL END, - ( 53 ) ) * - 32 + - 88
----
1608

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT DISTINCT CASE + + COUNT( DISTINCT - COALESCE ( - 95, - - 16, + 92 ) ) WHEN - 82 * + 97 * - - 34 + + 8 THEN - 88 + + 50 END * 42 - 85 * - 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT CASE + + COUNT ( DISTINCT - COALESCE ( - 95, - - 16, + 92 ) ) WHEN - 82 * + 97 * - - 34 + + 8 THEN - 88 + + 50 END * 42 - 85 * - 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8634
SELECT DISTINCT - COUNT( * ), 34 * 69 + + - 66 DIV - 69 * + 18 + + 35 DIV + 84 * + 81 + 36 col2
----
-1
2382

skipif mysql # not compatible
query II rowsort label-8634
SELECT DISTINCT - COUNT ( * ), 34 * 69 + + - 66 / - 69 * + 18 + + 35 / + 84 * + 81 + 36 col2
----
-1
2382

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT MIN( ALL 52 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-8635
SELECT MIN ( ALL 52 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT ALL - 17 * + + 0 - - MIN( + 38 ) + - + 25 * + + 90 * + 44
----
-98962

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL - 17 * + + 0 - - MIN ( + 38 ) + - + 25 * + + 90 * + 44
----
-98962

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8637
SELECT ALL 40 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL 40 / + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 27 AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8639
SELECT 98 * ( + 70 ) * - CASE - 1 WHEN CASE + 48 WHEN - CAST( + ( + 53 ) AS SIGNED ) THEN - CASE COUNT( * ) WHEN 51 * COUNT( * ) THEN - COUNT( DISTINCT 10 ) + 96 WHEN COUNT( DISTINCT 5 ) + - 73 THEN 86 ELSE NULL END WHEN - 55 THEN 76 END * 41 THEN - 99 ELSE NULL END + + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8639
SELECT 98 * ( + 70 ) * - CASE - 1 WHEN CASE + 48 WHEN - CAST ( + ( + 53 ) AS INTEGER ) THEN - CASE COUNT ( * ) WHEN 51 * COUNT ( * ) THEN - COUNT ( DISTINCT 10 ) + 96 WHEN COUNT ( DISTINCT 5 ) + - 73 THEN 86 ELSE NULL END WHEN - 55 THEN 76 END * 41 THEN - 99 ELSE NULL END + + 25
----
NULL

query I rowsort
SELECT ALL 75 * - 1
----
-75

query I rowsort
SELECT 72 + 68
----
140

query I rowsort
SELECT ALL 92 * - 3
----
-276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8643
SELECT COUNT( CAST( NULL AS SIGNED ) ) DIV - 11 + 84 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-8643
SELECT COUNT ( CAST ( NULL AS INTEGER ) ) / - 11 + 84 AS col2
----
84

query I rowsort
SELECT ALL 68 * + 7 col0
----
476

onlyif mysql # aggregate syntax: 
query II rowsort label-8645
SELECT ALL 86 * - - ( + 99 ) * 32 * 30 * - MIN( ALL - + 94 ) + 92 AS col2, ( - 74 )
----
768303452
-74

skipif mysql # not compatible
query II rowsort label-8645
SELECT ALL 86 * - - ( + 99 ) * 32 * 30 * - MIN ( ALL - + 94 ) + 92 AS col2, ( - 74 )
----
768303452
-74

query I rowsort
SELECT DISTINCT - 40 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT DISTINCT - COUNT( DISTINCT - 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-8647
SELECT DISTINCT - COUNT ( DISTINCT - 90 )
----
-1

query I rowsort
SELECT 14 * - 41 col2
----
-574

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT SUM( + - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-8649
SELECT SUM ( + - 48 )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8650
SELECT ALL 85 + + CASE - - 36 WHEN + 52 + + + COUNT( * ) * + 41 * + 93 THEN - - 60 + - + MIN( - NULLIF ( 87, + 32 + + CAST( 51 AS SIGNED ) * 79 ) ) ELSE + 12 * - 92 END AS col0
----
-1019

skipif mysql # not compatible
query I rowsort label-8650
SELECT ALL 85 + + CASE - - 36 WHEN + 52 + + + COUNT ( * ) * + 41 * + 93 THEN - - 60 + - + MIN ( - NULLIF ( 87, + 32 + + CAST ( 51 AS INTEGER ) * 79 ) ) ELSE + 12 * - 92 END AS col0
----
-1019

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT 87 * - - MIN( + - 80 ) + - 22 + + 64 + - 71
----
-6989

skipif mysql # not compatible
query I rowsort label-8651
SELECT 87 * - - MIN ( + - 80 ) + - 22 + + 64 + - 71
----
-6989

query I rowsort
SELECT + + 70 * 22
----
1540

query I rowsort
SELECT DISTINCT + 59 + 82 + 53 AS col0
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT ALL + ( + MIN( 24 ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL + ( + MIN ( 24 ) ) AS col2
----
24

query I rowsort
SELECT - - 30
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT ALL - ( - 65 ) + + + ( SUM( DISTINCT - - COALESCE ( + + 82, + 14 ) ) )
----
147

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL - ( - 65 ) + + + ( SUM ( DISTINCT - - COALESCE ( + + 82, + 14 ) ) )
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8657
SELECT + SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8657
SELECT + SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT ALL - - 40 + - + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL - - 40 + - + COUNT ( * )
----
39

query I rowsort
SELECT DISTINCT 24 + + 43 AS col0
----
67

query I rowsort
SELECT - - 10 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT ALL COUNT( * ) + + - 72 col1
----
-71

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL COUNT ( * ) + + - 72 col1
----
-71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8662
SELECT DISTINCT + ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT + ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL + 43 + + 35 AS col2
----
78

query I rowsort
SELECT DISTINCT - 32 * 80 AS col2
----
-2560

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT DISTINCT + CASE 19 WHEN - 81 * - - 98 + - 86 THEN - COUNT( * ) * - 85 * + - 64 + 9 WHEN + - 1 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT + CASE 19 WHEN - 81 * - - 98 + - 86 THEN - COUNT ( * ) * - 85 * + - 64 + 9 WHEN + - 1 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8666
SELECT + + MIN( 70 ) + - CAST( NULL AS SIGNED ) AS col2, 49 + + + ( - 46 ) * + MAX( 26 ) col1
----
NULL
-1147

skipif mysql # not compatible
query II rowsort label-8666
SELECT + + MIN ( 70 ) + - CAST ( NULL AS INTEGER ) AS col2, 49 + + + ( - 46 ) * + MAX ( 26 ) col1
----
NULL
-1147

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT - NULLIF ( - 40, + SUM( - 60 ) / 33 ) * 17
----
680

skipif mysql # not compatible
query I rowsort label-8667
SELECT - NULLIF ( - 40, + SUM ( - 60 ) / 33 ) * 17
----
680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8668
SELECT - - 88 / - 5 + - - COUNT( + 84 ) + + NULLIF ( ( + 83 ), - 24 ) + CASE + - 90 WHEN 40 * + 52 THEN NULL ELSE 79 + CAST( 43 + + 88 * - CAST( NULL AS SIGNED ) AS DECIMAL ) END / - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-8668
SELECT - - 88 / - 5 + - - COUNT ( + 84 ) + + NULLIF ( ( + 83 ), - 24 ) + CASE + - 90 WHEN 40 * + 52 THEN NULL ELSE 79 + CAST ( 43 + + 88 * - CAST ( NULL AS INTEGER ) AS REAL ) END / - 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT ALL + 83 - 44 * + MIN( DISTINCT + + 92 ) AS col2
----
-3965

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL + 83 - 44 * + MIN ( DISTINCT + + 92 ) AS col2
----
-3965

query I rowsort
SELECT - - ( + 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT - 70 - COUNT( * ) + + 9 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-8671
SELECT - 70 - COUNT ( * ) + + 9 AS col2
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8672
SELECT - - COUNT( * ) * - + 10 + - + 28 DIV + 57
----
-10

skipif mysql # not compatible
query I rowsort label-8672
SELECT - - COUNT ( * ) * - + 10 + - + 28 / + 57
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-8673
SELECT ALL + 33 DIV + + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL + 33 / + + 94 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT - MAX( ALL - - 67 ) - 20
----
-87

skipif mysql # not compatible
query I rowsort label-8674
SELECT - MAX ( ALL - - 67 ) - 20
----
-87

query I rowsort
SELECT ALL + 2 AS col1
----
2

query I rowsort
SELECT - 41 + 17 AS col0
----
-24

query I rowsort
SELECT ALL - 67 * + 77 AS col1
----
-5159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8678
SELECT ALL 91 AS col1, 41 + - CAST( NULL AS SIGNED ) + 29 - + + 72 + + + 87 + CAST( NULL AS SIGNED ) * - - 89 + - COALESCE ( 80, 59 * + 84 + ( SUM( - 5 ) ) )
----
91
NULL

skipif mysql # not compatible
query II rowsort label-8678
SELECT ALL 91 AS col1, 41 + - CAST ( NULL AS INTEGER ) + 29 - + + 72 + + + 87 + CAST ( NULL AS INTEGER ) * - - 89 + - COALESCE ( 80, 59 * + 84 + ( SUM ( - 5 ) ) )
----
91
NULL

query II rowsort
SELECT - 92 AS col2, - ( + + 6 )
----
-92
-6

query I rowsort
SELECT 41 * + 63 - - 88
----
2671

query I rowsort
SELECT ALL + 43 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT DISTINCT + 50 * - COUNT( ALL - + 88 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT + 50 * - COUNT ( ALL - + 88 ) AS col1
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8683
SELECT - CASE - 86 WHEN + COUNT( * ) / + 52 THEN 32 / + - ( + 14 ) * - - 1 + + 27 + + MIN( ALL + 33 ) * - 92 + 25 END / CAST( NULL AS SIGNED ) + + 68 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT - CASE - 86 WHEN + COUNT ( * ) / + 52 THEN 32 / + - ( + 14 ) * - - 1 + + 27 + + MIN ( ALL + 33 ) * - 92 + 25 END / CAST ( NULL AS INTEGER ) + + 68 col2
----
NULL

query I rowsort
SELECT ( + COALESCE ( + ( - + 77 ), + 33 ) ) AS col2
----
-77

query I rowsort
SELECT + 80 * - - 39 AS col1
----
3120

query II rowsort
SELECT ALL + 33 AS col0, COALESCE ( - 25, 69, + ( 43 ) )
----
33
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8687
SELECT - 23 * + + CAST( + 12 AS SIGNED ) + - 18 AS col2
----
-294

skipif mysql # not compatible
query I rowsort label-8687
SELECT - 23 * + + CAST ( + 12 AS INTEGER ) + - 18 AS col2
----
-294

query I rowsort
SELECT ALL + NULLIF ( - - 60, 66 * 92 )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8689
SELECT + 44 DIV + - COUNT( 76 )
----
-44

skipif mysql # not compatible
query I rowsort label-8689
SELECT + 44 / + - COUNT ( 76 )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8690
SELECT - 32 + + 13 + CAST( - + 13 AS SIGNED ) * 22 + + - 12 * - 13 col0
----
-149

skipif mysql # not compatible
query I rowsort label-8690
SELECT - 32 + + 13 + CAST ( - + 13 AS INTEGER ) * 22 + + - 12 * - 13 col0
----
-149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8691
SELECT - 8 + 53 - + SUM( - 33 ) DIV - 99 * - 49 DIV + - 38 + + + 70
----
115

skipif mysql # not compatible
query I rowsort label-8691
SELECT - 8 + 53 - + SUM ( - 33 ) / - 99 * - 49 / + - 38 + + + 70
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT DISTINCT - 36 * - 39 + - MIN( 62 ) AS col1
----
1342

skipif mysql # not compatible
query I rowsort label-8692
SELECT DISTINCT - 36 * - 39 + - MIN ( 62 ) AS col1
----
1342

query I rowsort
SELECT ALL + NULLIF ( + - 93, - - 26 ) AS col0
----
-93

query I rowsort
SELECT + - 55
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8695
SELECT + CAST( 87 AS SIGNED ) * 18 / 51 + - CASE + CASE + + 0 WHEN - 20 THEN - 42 WHEN - 34 THEN NULL WHEN - 81 THEN NULL WHEN + 39 / + 94 THEN NULLIF ( 46, - 50 ) * ( 16 ) + - 17 END WHEN 93 THEN NULL WHEN AVG ( 64 ) * + NULLIF ( + 68 + + COUNT( * ) / CASE WHEN NOT ( NULL ) > + 67 / 3 + CASE COUNT( * ) + 98 WHEN + COUNT( ALL + 74 ) * 7 + SUM( 11 + + 87 ) THEN - 15 * - ( - 22 ) WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + 10 + + 74 * 97 THEN NULL END THEN 94 * MIN( 39 ) + + 13 WHEN NOT NULL NOT BETWEEN - 70 AND 91 / ( CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) THEN + 41 - - AVG ( DISTINCT 98 ) WHEN NULL IS NULL THEN 78 * - 81 - + 47 END, - 38 * 95 ) THEN CASE AVG ( - CAST( 25 AS SIGNED ) ) WHEN - 6 THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN NULL WHEN 11 THEN NULL ELSE - 0 + + 44 * + ( + 36 * + 64 ) END * - 11 WHEN - ( - 96 ) THEN 62 + 44 END - - 37 * + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-8695
SELECT + CAST ( 87 AS INTEGER ) * 18 / 51 + - CASE + CASE + + 0 WHEN - 20 THEN - 42 WHEN - 34 THEN NULL WHEN - 81 THEN NULL WHEN + 39 / + 94 THEN NULLIF ( 46, - 50 ) * ( 16 ) + - 17 END WHEN 93 THEN NULL WHEN AVG ( 64 ) * + NULLIF ( + 68 + + COUNT ( * ) / CASE WHEN NOT ( NULL ) > + 67 / 3 + CASE COUNT ( * ) + 98 WHEN + COUNT ( ALL + 74 ) * 7 + SUM ( 11 + + 87 ) THEN - 15 * - ( - 22 ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 10 + + 74 * 97 THEN NULL END THEN 94 * MIN ( 39 ) + + 13 WHEN NOT NULL NOT BETWEEN - 70 AND 91 / ( CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) THEN + 41 - - AVG ( DISTINCT 98 ) WHEN NULL IS NULL THEN 78 * - 81 - + 47 END, - 38 * 95 ) THEN CASE AVG ( - CAST ( 25 AS INTEGER ) ) WHEN - 6 THEN NULL WHEN CAST ( NULL AS REAL ) THEN NULL WHEN 11 THEN NULL ELSE - 0 + + 44 * + ( + 36 * + 64 ) END * - 11 WHEN - ( - 96 ) THEN 62 + 44 END - - 37 * + 31
----
NULL

query II rowsort
SELECT + - 45 AS col0, 85 AS col0
----
-45
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8697
SELECT ALL + - MAX( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL + - MAX ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8698
SELECT - 92 * - + CAST( NULL AS DECIMAL ) + - CASE - 44 WHEN + 66 / - + 3 THEN SUM( ALL 98 ) * 85 WHEN + SUM( DISTINCT + 6 ) * NULLIF ( CAST( - COUNT( * ) AS SIGNED ), 46 - 73 ) THEN - 52 - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8698
SELECT - 92 * - + CAST ( NULL AS REAL ) + - CASE - 44 WHEN + 66 / - + 3 THEN SUM ( ALL 98 ) * 85 WHEN + SUM ( DISTINCT + 6 ) * NULLIF ( CAST ( - COUNT ( * ) AS INTEGER ), 46 - 73 ) THEN - 52 - + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 37 col0
----
37

query I rowsort
SELECT + - 83 + - 55 AS col0
----
-138

query I rowsort
SELECT + - 98 + + COALESCE ( - 75, ( - 47 ) ) + 68
----
-105

query I rowsort
SELECT + 88 + + 96
----
184

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8703
SELECT DISTINCT 44, - CAST( + ( - 98 ) AS SIGNED ) - 93 DIV - 75 col0
----
44
99

skipif mysql # not compatible
query II rowsort label-8703
SELECT DISTINCT 44, - CAST ( + ( - 98 ) AS INTEGER ) - 93 / - 75 col0
----
44
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8704
SELECT - 17 * + + CAST( NULL AS DECIMAL ) + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8704
SELECT - 17 * + + CAST ( NULL AS REAL ) + - 96
----
NULL

query II rowsort
SELECT DISTINCT 27, + 19 col0
----
27
19

query II rowsort
SELECT - 72 AS col1, NULLIF ( + - 30, + 39 - - 27 )
----
-72
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-8707
SELECT ALL - COUNT( ALL 89 ) AS col1, 20 * - 2
----
-1
-40

skipif mysql # not compatible
query II rowsort label-8707
SELECT ALL - COUNT ( ALL 89 ) AS col1, 20 * - 2
----
-1
-40

query I rowsort
SELECT + 68 + + 14 AS col0
----
82

query I rowsort
SELECT ALL - 51 - - - 61
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8710
SELECT + + ( + MIN( - 24 ) ) + + - ( + 75 ) + - 78 * - ( + + CASE 12 WHEN - - 2 + + + 91 + COUNT( * ) / 60 THEN - 49 + 74 / + NULLIF ( 79, - NULLIF ( 62, - 71 ) ) WHEN COUNT( + CAST( NULL AS SIGNED ) ) THEN NULL ELSE + CAST( NULL AS DECIMAL ) END ) + + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8710
SELECT + + ( + MIN ( - 24 ) ) + + - ( + 75 ) + - 78 * - ( + + CASE 12 WHEN - - 2 + + + 91 + COUNT ( * ) / 60 THEN - 49 + 74 / + NULLIF ( 79, - NULLIF ( 62, - 71 ) ) WHEN COUNT ( + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE + CAST ( NULL AS REAL ) END ) + + 64 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT ALL - ( + MIN( DISTINCT - 28 ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-8711
SELECT ALL - ( + MIN ( DISTINCT - 28 ) ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT ALL SUM( - - 2 )
----
2

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL SUM ( - - 2 )
----
2

query I rowsort
SELECT ALL ( + 86 ) AS col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8714
SELECT - CAST( + 6 AS SIGNED ) * - CAST( 41 AS SIGNED )
----
246

skipif mysql # not compatible
query I rowsort label-8714
SELECT - CAST ( + 6 AS INTEGER ) * - CAST ( 41 AS INTEGER )
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT ALL 99 * CASE - CASE 53 WHEN - 0 / - - 20 + + 84 THEN - - 52 * - 30 + SUM( - + 84 ) + 24 + 39 ELSE NULL END WHEN - 15 + 61 * + 84 THEN NULL WHEN + 81 + - 95 THEN NULL ELSE + SUM( - 88 ) * + 92 + - 74 END
----
-808830

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL 99 * CASE - CASE 53 WHEN - 0 / - - 20 + + 84 THEN - - 52 * - 30 + SUM ( - + 84 ) + 24 + 39 ELSE NULL END WHEN - 15 + 61 * + 84 THEN NULL WHEN + 81 + - 95 THEN NULL ELSE + SUM ( - 88 ) * + 92 + - 74 END
----
-808830

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT DISTINCT NULLIF ( + COUNT( * ), + 11 + - ( 92 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8716
SELECT DISTINCT NULLIF ( + COUNT ( * ), + 11 + - ( 92 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT - 87 + - COALESCE ( COUNT( * ), + + 79 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-8717
SELECT - 87 + - COALESCE ( COUNT ( * ), + + 79 ) AS col2
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8718
SELECT ALL NULLIF ( + 84, + - 83 + + 55 * + + 82 * + - CAST( NULL AS SIGNED ) )
----
84

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL NULLIF ( + 84, + - 83 + + 55 * + + 82 * + - CAST ( NULL AS INTEGER ) )
----
84

query I rowsort
SELECT ALL CASE + - ( - - 45 ) WHEN + 70 THEN NULL WHEN COALESCE ( 57, + 81, - 64 * - - 32 ) THEN + 43 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8720
SELECT + CAST( + + 74 AS SIGNED ) DIV 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8720
SELECT + CAST ( + + 74 AS INTEGER ) / 80 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8721
SELECT DISTINCT - COALESCE ( 19, + + COUNT( * ) DIV COUNT( * ) + + - 64 ) DIV + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT - COALESCE ( 19, + + COUNT ( * ) / COUNT ( * ) + + - 64 ) / + COUNT ( * )
----
-19

query I rowsort
SELECT + 55 AS col1
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-8723
SELECT DISTINCT 16 DIV 9 * - + 20, + 27 AS col1
----
-20
27

skipif mysql # not compatible
query II rowsort label-8723
SELECT DISTINCT 16 / 9 * - + 20, + 27 AS col1
----
-20
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8724
SELECT DISTINCT + 19 DIV + 58 + + 17 + + ( - + COUNT( * ) )
----
16

skipif mysql # not compatible
query I rowsort label-8724
SELECT DISTINCT + 19 / + 58 + + 17 + + ( - + COUNT ( * ) )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8725
SELECT ALL - MIN( ALL + + 46 ) DIV 76 + - 31
----
-31

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL - MIN ( ALL + + 46 ) / 76 + - 31
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8726
SELECT ALL + ( - 68 ) DIV + 96 + + COUNT( * ) + - 89 + ( - 99 ) * - + COUNT( * ) * + COALESCE ( - 78, - ( + + 50 ) + - CAST( NULL AS SIGNED ) DIV + 3 ) col0
----
-7810

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL + ( - 68 ) / + 96 + + COUNT ( * ) + - 89 + ( - 99 ) * - + COUNT ( * ) * + COALESCE ( - 78, - ( + + 50 ) + - CAST ( NULL AS INTEGER ) / + 3 ) col0
----
-7810

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT 7 + + + 22 + + ( + COUNT( * ) ) + + 55 + + - 2 * - - 53 * - 42 AS col0
----
4537

skipif mysql # not compatible
query I rowsort label-8727
SELECT 7 + + + 22 + + ( + COUNT ( * ) ) + + 55 + + - 2 * - - 53 * - 42 AS col0
----
4537

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT COUNT( * ) * - + 52
----
-52

skipif mysql # not compatible
query I rowsort label-8728
SELECT COUNT ( * ) * - + 52
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT - COUNT( * ) * + 60 + - SUM( ALL + 50 ) + + + 73 * - NULLIF ( - 86, - 24 ) AS col2
----
6168

skipif mysql # not compatible
query I rowsort label-8729
SELECT - COUNT ( * ) * + 60 + - SUM ( ALL + 50 ) + + + 73 * - NULLIF ( - 86, - 24 ) AS col2
----
6168

query I rowsort
SELECT ALL - ( + 20 )
----
-20

query I rowsort
SELECT ALL + ( + ( + 75 ) ) * - - 10 + + 84 * - 68 * 47 * + 58 * - 75 AS col1
----
1167819150

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT + - NULLIF ( - 68, COUNT( ALL - 76 ) ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8732
SELECT + - NULLIF ( - 68, COUNT ( ALL - 76 ) ) AS col2
----
68

query I rowsort
SELECT ALL - ( - - 82 )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8734
SELECT DISTINCT 85 DIV - 45 * - ( - COUNT( * ) ) + - + 37 - + 69
----
-107

skipif mysql # not compatible
query I rowsort label-8734
SELECT DISTINCT 85 / - 45 * - ( - COUNT ( * ) ) + - + 37 - + 69
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT ALL + 49 - + NULLIF ( - 3, + - 68 ) + MAX( 75 ) col0
----
127

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL + 49 - + NULLIF ( - 3, + - 68 ) + MAX ( 75 ) col0
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8736
SELECT COALESCE ( CAST( + + CAST( - - 43 AS SIGNED ) AS SIGNED ), + - 6 - + + COUNT( * ) * + 48 ) * + + ( + COALESCE ( - + CASE + + 20 WHEN - 68 * 0 THEN + 14 WHEN - 84 DIV COUNT( * ) THEN 70 * + COALESCE ( + 39 DIV - 44, 38 ) END, COUNT( * ) - 35 ) ) DIV COUNT( * )
----
-1462

skipif mysql # not compatible
query I rowsort label-8736
SELECT COALESCE ( CAST ( + + CAST ( - - 43 AS INTEGER ) AS INTEGER ), + - 6 - + + COUNT ( * ) * + 48 ) * + + ( + COALESCE ( - + CASE + + 20 WHEN - 68 * 0 THEN + 14 WHEN - 84 / COUNT ( * ) THEN 70 * + COALESCE ( + 39 / - 44, 38 ) END, COUNT ( * ) - 35 ) ) / COUNT ( * )
----
-1462

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8737
SELECT DISTINCT - ( + - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT - ( + - CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8738
SELECT + COUNT( * ) + + 74, MAX( ALL + - 16 ) + + - 96 + - 34 AS col2
----
75
-146

skipif mysql # not compatible
query II rowsort label-8738
SELECT + COUNT ( * ) + + 74, MAX ( ALL + - 16 ) + + - 96 + - 34 AS col2
----
75
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8739
SELECT - CAST( NULL AS SIGNED ) * 23 + + 85 - + + COUNT( - + 73 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8739
SELECT - CAST ( NULL AS INTEGER ) * 23 + + 85 - + + COUNT ( - + 73 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT 19 * - COUNT( * ) - - ( - + 52 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-8740
SELECT 19 * - COUNT ( * ) - - ( - + 52 ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT ALL - 66 * + + COUNT( 88 ) - - 16 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL - 66 * + + COUNT ( 88 ) - - 16 AS col0
----
-50

query I rowsort
SELECT 65 * - 32
----
-2080

onlyif mysql # aggregate syntax: 
query II rowsort label-8743
SELECT + COUNT( DISTINCT 46 ) AS col2, MAX( DISTINCT - 85 ) AS col2
----
1
-85

skipif mysql # not compatible
query II rowsort label-8743
SELECT + COUNT ( DISTINCT 46 ) AS col2, MAX ( DISTINCT - 85 ) AS col2
----
1
-85

query I rowsort
SELECT ALL - + 14 * 27 AS col0
----
-378

query I rowsort
SELECT DISTINCT + 64 * + 21 AS col0
----
1344

onlyif mysql # aggregate syntax: 
query II rowsort label-8746
SELECT ALL MIN( - 81 ) AS col0, + 71 * + 6
----
-81
426

skipif mysql # not compatible
query II rowsort label-8746
SELECT ALL MIN ( - 81 ) AS col0, + 71 * + 6
----
-81
426

query I rowsort
SELECT DISTINCT - ( 27 )
----
-27

query I rowsort
SELECT + NULLIF ( + 40, + 99 ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-8749
SELECT - 85, + COUNT( * ) AS col0
----
-85
1

skipif mysql # not compatible
query II rowsort label-8749
SELECT - 85, + COUNT ( * ) AS col0
----
-85
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8750
SELECT CASE CAST( 73 AS SIGNED ) WHEN + COUNT( * ) + + CASE + 28 WHEN + + NULLIF ( ( COUNT( * ) ), - ( - 49 ) ) THEN NULL WHEN - - COALESCE ( + + COUNT( * ), - NULLIF ( + 24, CASE - CAST( 78 AS SIGNED ) WHEN - 95 / 18 THEN NULL WHEN 73 * - CAST( + 39 AS SIGNED ) THEN - COUNT( * ) ELSE NULL END * 38 ) ) THEN NULL ELSE ( - 8 ) END * + 76 THEN NULL WHEN + 58 + ( 15 + 60 ) THEN NULL ELSE + 15 END + CAST( NULL AS SIGNED ) * + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8750
SELECT CASE CAST ( 73 AS INTEGER ) WHEN + COUNT ( * ) + + CASE + 28 WHEN + + NULLIF ( ( COUNT ( * ) ), - ( - 49 ) ) THEN NULL WHEN - - COALESCE ( + + COUNT ( * ), - NULLIF ( + 24, CASE - CAST ( 78 AS INTEGER ) WHEN - 95 / 18 THEN NULL WHEN 73 * - CAST ( + 39 AS INTEGER ) THEN - COUNT ( * ) ELSE NULL END * 38 ) ) THEN NULL ELSE ( - 8 ) END * + 76 THEN NULL WHEN + 58 + ( 15 + 60 ) THEN NULL ELSE + 15 END + CAST ( NULL AS INTEGER ) * + 50 AS col1
----
NULL

query II rowsort
SELECT - 88, NULLIF ( + 2, + - 27 + - 8 ) AS col1
----
-88
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8752
SELECT 64, COUNT( * ) col1
----
64
1

skipif mysql # not compatible
query II rowsort label-8752
SELECT 64, COUNT ( * ) col1
----
64
1

query I rowsort
SELECT ALL 69 + + + 75 * 40
----
3069

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT SUM( - 53 ) - - 86
----
33

skipif mysql # not compatible
query I rowsort label-8754
SELECT SUM ( - 53 ) - - 86
----
33

query II rowsort
SELECT - 96 AS col1, - 21
----
-96
-21

query I rowsort
SELECT ALL ( 56 ) + - + 95 - + 92 * - 23 AS col2
----
2077

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8757
SELECT CAST( - + 76 AS SIGNED ) + + - 97 AS col1, ( 93 )
----
-173
93

skipif mysql # not compatible
query II rowsort label-8757
SELECT CAST ( - + 76 AS INTEGER ) + + - 97 AS col1, ( 93 )
----
-173
93

query I rowsort
SELECT ALL 63 * - 49
----
-3087

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8759
SELECT DISTINCT 75 + + + NULLIF ( - 58, 16 + AVG ( DISTINCT - 47 ) ) + COALESCE ( - + 77, - 26 * - 31 - + - 67 DIV + - ( + 10 ) + + COUNT( * ), + 96 + + 0 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-8759
SELECT DISTINCT 75 + + + NULLIF ( - 58, 16 + AVG ( DISTINCT - 47 ) ) + COALESCE ( - + 77, - 26 * - 31 - + - 67 / + - ( + 10 ) + + COUNT ( * ), + 96 + + 0 ) AS col0
----
-60

query I rowsort
SELECT ALL 7 col2
----
7

query I rowsort
SELECT 17 + - - 55 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT ALL 10 + MIN( + 88 )
----
98

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL 10 + MIN ( + 88 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8763
SELECT DISTINCT SUM( ALL + - 87 ) + + + 32 + + CAST( - 46 AS SIGNED ) col0
----
-101

skipif mysql # not compatible
query I rowsort label-8763
SELECT DISTINCT SUM ( ALL + - 87 ) + + + 32 + + CAST ( - 46 AS INTEGER ) col0
----
-101

query II rowsort
SELECT 2 AS col2, 23 + + 65 AS col0
----
2
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8765
SELECT 33 - - 23 / + 24 + + + CASE WHEN NOT SUM( - + 52 ) = NULL THEN + 99 WHEN NOT ( + CAST( + SUM( - - 80 ) AS SIGNED ) * + CAST( + 51 AS SIGNED ) ) IN ( + 2 * + COUNT( 20 ) + - 72 ) THEN NULL END - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT 33 - - 23 / + 24 + + + CASE WHEN NOT SUM ( - + 52 ) = NULL THEN + 99 WHEN NOT ( + CAST ( + SUM ( - - 80 ) AS INTEGER ) * + CAST ( + 51 AS INTEGER ) ) IN ( + 2 * + COUNT ( 20 ) + - 72 ) THEN NULL END - 18 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8766
SELECT 51 / CASE COUNT( * ) WHEN 39 THEN 82 * + 85 WHEN - 74 THEN + 6 ELSE NULL END / 69 + + - NULLIF ( + + COUNT( * ), + CAST( NULL AS SIGNED ) ) + + CASE 4 WHEN + 57 THEN NULL WHEN CASE 73 WHEN 60 THEN + 32 + 71 END THEN - 42 * 27 END / 43
----
NULL

skipif mysql # not compatible
query I rowsort label-8766
SELECT 51 / CASE COUNT ( * ) WHEN 39 THEN 82 * + 85 WHEN - 74 THEN + 6 ELSE NULL END / 69 + + - NULLIF ( + + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) + + CASE 4 WHEN + 57 THEN NULL WHEN CASE 73 WHEN 60 THEN + 32 + 71 END THEN - 42 * 27 END / 43
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8767
SELECT COUNT( * ) * 62 * + 56 + + 40 AS col2, 96 col2
----
3512
96

skipif mysql # not compatible
query II rowsort label-8767
SELECT COUNT ( * ) * 62 * + 56 + + 40 AS col2, 96 col2
----
3512
96

query I rowsort
SELECT DISTINCT - 84 col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT ALL + COALESCE ( CASE 73 WHEN + 54 + - COUNT( * ) THEN - 69 * + COALESCE ( + 26, 30 ) END, - - 85 ) + + 17
----
102

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL + COALESCE ( CASE 73 WHEN + 54 + - COUNT ( * ) THEN - 69 * + COALESCE ( + 26, 30 ) END, - - 85 ) + + 17
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-8770
SELECT ALL - 58 AS col1, 94 - - - 87 + + 63 + + 98 * + - 76 + 74 * 32 * - COUNT( * ) + - - 21 + 39 * 81 * 98
----
-58
299857

skipif mysql # not compatible
query II rowsort label-8770
SELECT ALL - 58 AS col1, 94 - - - 87 + + 63 + + 98 * + - 76 + 74 * 32 * - COUNT ( * ) + - - 21 + 39 * 81 * 98
----
-58
299857

query I rowsort
SELECT 32 + + ( + + 80 )
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-8772
SELECT DISTINCT 90 DIV + 35 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT 90 / + 35 AS col1
----
2

query II rowsort
SELECT + 61 AS col1, 17 AS col2
----
61
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT + ( - MIN( - ( - 45 ) ) ) + - + 3 + - 72 AS col1
----
-120

skipif mysql # not compatible
query I rowsort label-8774
SELECT + ( - MIN ( - ( - 45 ) ) ) + - + 3 + - 72 AS col1
----
-120

query I rowsort
SELECT ALL - + 8 AS col2
----
-8

query I rowsort
SELECT 95 + 82 * + 80
----
6655

query I rowsort
SELECT + + 10 col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8778
SELECT 54 * + - ( - 54 ) * 2 col0, - SUM( ALL + ( - + 57 ) ) AS col1
----
5832
57

skipif mysql # not compatible
query II rowsort label-8778
SELECT 54 * + - ( - 54 ) * 2 col0, - SUM ( ALL + ( - + 57 ) ) AS col1
----
5832
57

query I rowsort
SELECT ALL + + 54 * + 79 col0
----
4266

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8780
SELECT NULLIF ( COUNT( * ), + - 12 ) + + 13 + + 74 * ( ( + 23 ) ) DIV + - ( + + 51 ) DIV + + COUNT( * ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-8780
SELECT NULLIF ( COUNT ( * ), + - 12 ) + + 13 + + 74 * ( ( + 23 ) ) / + - ( + + 51 ) / + + COUNT ( * ) AS col0
----
-19

query I rowsort
SELECT - 95 col1
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8782
SELECT - 75 + COALESCE ( MIN( DISTINCT + 80 ), + ( + 41 ) DIV 70 + + MAX( + 40 ) ) + + 16 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8782
SELECT - 75 + COALESCE ( MIN ( DISTINCT + 80 ), + ( + 41 ) / 70 + + MAX ( + 40 ) ) + + 16 AS col0
----
21

query I rowsort
SELECT + + 87
----
87

query I rowsort
SELECT ALL - + ( + - 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT NULLIF ( 81, MIN( ALL 95 ) ) * - COUNT( * ) * 7
----
-567

skipif mysql # not compatible
query I rowsort label-8785
SELECT NULLIF ( 81, MIN ( ALL 95 ) ) * - COUNT ( * ) * 7
----
-567

query I rowsort
SELECT ALL - + 62 * - 89 + - 96 * - - 69 col0
----
-1106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8787
SELECT 15 * 21 + + ( - ( + CAST( NULL AS SIGNED ) ) ) / + + 32 / - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8787
SELECT 15 * 21 + + ( - ( + CAST ( NULL AS INTEGER ) ) ) / + + 32 / - 66
----
NULL

query II rowsort
SELECT DISTINCT - 51 AS col1, - 98 col2
----
-51
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT ALL - + MIN( ALL + - 80 ) col1
----
80

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL - + MIN ( ALL + - 80 ) col1
----
80

query I rowsort
SELECT 10 + - 77 AS col1
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-8791
SELECT ALL 94 DIV + 67
----
1

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL 94 / + 67
----
1

query I rowsort
SELECT ALL 3 * + 22
----
66

query I rowsort
SELECT - - 2 col0
----
2

query I rowsort
SELECT - 91 AS col1
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8795
SELECT ALL - COALESCE ( - - 55, - ( + COUNT( * ) ) ) DIV 34
----
-1

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL - COALESCE ( - - 55, - ( + COUNT ( * ) ) ) / 34
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT 8 + - 5 - COUNT( * ) * + - 17 * 74 + 33
----
1294

skipif mysql # not compatible
query I rowsort label-8796
SELECT 8 + - 5 - COUNT ( * ) * + - 17 * 74 + 33
----
1294

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT MIN( - 57 ) * + + 59 + 87
----
-3276

skipif mysql # not compatible
query I rowsort label-8797
SELECT MIN ( - 57 ) * + + 59 + 87
----
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT SUM( - 44 ) + + + 4 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-8798
SELECT SUM ( - 44 ) + + + 4 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT 98 + + + NULLIF ( + - 76, 99 + - - MIN( DISTINCT - - 99 ) * - 57 ) + 28
----
50

skipif mysql # not compatible
query I rowsort label-8799
SELECT 98 + + + NULLIF ( + - 76, 99 + - - MIN ( DISTINCT - - 99 ) * - 57 ) + 28
----
50

query I rowsort
SELECT DISTINCT 44 AS col0
----
44

query I rowsort
SELECT ALL + 46 + + 16
----
62

query I rowsort
SELECT ALL 50 col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8803
SELECT ALL NULLIF ( + - 41, COUNT( DISTINCT - 19 ) ) + - COUNT( ALL + ( 16 ) ) DIV + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL NULLIF ( + - 41, COUNT ( DISTINCT - 19 ) ) + - COUNT ( ALL + ( 16 ) ) / + COUNT ( * )
----
-42

query I rowsort
SELECT - 92 * - + 81
----
7452

query I rowsort
SELECT + 98 + - 12 AS col1
----
86

query I rowsort
SELECT + 50 + - 17
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8807
SELECT ALL 56 - - 41 DIV - 10 col0
----
52

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL 56 - - 41 / - 10 col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8808
SELECT ALL COALESCE ( - - 29, + + CAST( NULL AS SIGNED ) + + 44 * - 89, + COALESCE ( + 44, 50, 62 ) * - 73 * COUNT( * ) + - CAST( NULL AS SIGNED ), - SUM( ALL + + 43 ) ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL COALESCE ( - - 29, + + CAST ( NULL AS INTEGER ) + + 44 * - 89, + COALESCE ( + 44, 50, 62 ) * - 73 * COUNT ( * ) + - CAST ( NULL AS INTEGER ), - SUM ( ALL + + 43 ) ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT + MAX( - - 53 )
----
53

skipif mysql # not compatible
query I rowsort label-8809
SELECT + MAX ( - - 53 )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8810
SELECT ALL 8 * + CAST( NULL AS SIGNED ) * - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL 8 * + CAST ( NULL AS INTEGER ) * - 6 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT CASE - 86 WHEN + 29 THEN NULL WHEN COALESCE ( - - 27, + 7 + + 59 ) THEN MIN( 62 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8811
SELECT CASE - 86 WHEN + 29 THEN NULL WHEN COALESCE ( - - 27, + 7 + + 59 ) THEN MIN ( 62 ) END col0
----
NULL

query II rowsort
SELECT ALL - 94 * 24 - + - 7 + - 28, + 52 AS col2
----
-2277
52

query I rowsort
SELECT ALL + NULLIF ( 38, 65 ) AS col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-8814
SELECT - - 21 DIV + 71 - - 2
----
2

skipif mysql # not compatible
query I rowsort label-8814
SELECT - - 21 / + 71 - - 2
----
2

query I rowsort
SELECT + - 10 * 99 + + 30
----
-960

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8816
SELECT COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8816
SELECT COUNT ( DISTINCT CAST ( NULL AS REAL ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8817
SELECT ALL + 66 DIV 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL + 66 / 78 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8818
SELECT + - 61 DIV 65 + 27 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8818
SELECT + - 61 / 65 + 27 AS col1
----
27

query I rowsort
SELECT ALL + 46 AS col0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8820
SELECT - 43 * + - 6 DIV - ( ( - 2 ) ) - 97
----
32

skipif mysql # not compatible
query I rowsort label-8820
SELECT - 43 * + - 6 / - ( ( - 2 ) ) - 97
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT - COUNT( * ) - + + 11 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-8821
SELECT - COUNT ( * ) - + + 11 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT ALL - + 15 * - - COUNT( * ) * - + CASE - + 54 WHEN - 17 * + COUNT( * ) + - 26 THEN NULL WHEN + 72 THEN - + 22 ELSE NULL END / - 62 + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL - + 15 * - - COUNT ( * ) * - + CASE - + 54 WHEN - 17 * + COUNT ( * ) + - 26 THEN NULL WHEN + 72 THEN - + 22 ELSE NULL END / - 62 + + 26
----
NULL

query I rowsort
SELECT ALL - 25 * - + 83
----
2075

query I rowsort
SELECT ALL + + 31
----
31

query I rowsort
SELECT + - 9 * - 87
----
783

query I rowsort
SELECT - ( + 23 ) AS col1
----
-23

query I rowsort
SELECT ALL + 39 * + - 13 + + 87 AS col1
----
-420

query II rowsort
SELECT - 83 AS col2, + 83
----
-83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT ALL MAX( + - 58 ) col2
----
-58

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL MAX ( + - 58 ) col2
----
-58

query I rowsort
SELECT DISTINCT 99 + 90
----
189

query I rowsort
SELECT 60 * - 51 + + 1
----
-3059

query I rowsort
SELECT ALL ( - - 58 )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8833
SELECT - 28 DIV - + 19 * - + 71 DIV - - MIN( DISTINCT - + COALESCE ( - + ( + 45 ), 15 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8833
SELECT - 28 / - + 19 * - + 71 / - - MIN ( DISTINCT - + COALESCE ( - + ( + 45 ), 15 ) ) AS col0
----
-1

query I rowsort
SELECT ALL - 14 + - ( ( + ( + 9 ) ) ) * + 57
----
-527

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8835
SELECT DISTINCT CASE - - 93 WHEN + + 74 THEN + 71 WHEN - + 52 + + - 29 * + + COALESCE ( + COUNT( * ), - 71 ) DIV + COUNT( * ) * + 56 + - COALESCE ( - 93, - 25 ) DIV 84 + + NULLIF ( MIN( ALL 69 ), 67 * + 52 ) THEN + 35 + - 85 ELSE - COALESCE ( + COALESCE ( 32, COALESCE ( - 39, 29, 42 ) ), - 49 ) DIV + 64 + + 94 END
----
94

skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT CASE - - 93 WHEN + + 74 THEN + 71 WHEN - + 52 + + - 29 * + + COALESCE ( + COUNT ( * ), - 71 ) / + COUNT ( * ) * + 56 + - COALESCE ( - 93, - 25 ) / 84 + + NULLIF ( MIN ( ALL 69 ), 67 * + 52 ) THEN + 35 + - 85 ELSE - COALESCE ( + COALESCE ( 32, COALESCE ( - 39, 29, 42 ) ), - 49 ) / + 64 + + 94 END
----
94

query I rowsort
SELECT ALL ( - - 29 )
----
29

query I rowsort
SELECT ALL ( + 66 )
----
66

onlyif mysql # DIV for integer division: 
query II rowsort label-8838
SELECT - 68 + + 96 + + + 91 DIV - - ( - ( - 2 ) ), - 74 * + 71 AS col1
----
73
-5254

skipif mysql # not compatible
query II rowsort label-8838
SELECT - 68 + + 96 + + + 91 / - - ( - ( - 2 ) ), - 74 * + 71 AS col1
----
73
-5254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8839
SELECT + 74 * + + CASE + ( + + COUNT( * ) ) WHEN - + 0 + - COUNT( * ) * + CAST( - 75 AS SIGNED ) THEN - NULLIF ( + + 55, 20 ) / - 94 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8839
SELECT + 74 * + + CASE + ( + + COUNT ( * ) ) WHEN - + 0 + - COUNT ( * ) * + CAST ( - 75 AS INTEGER ) THEN - NULLIF ( + + 55, 20 ) / - 94 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - ( ( + 58 ) ) - - - 11
----
-69

query I rowsort
SELECT - 45 + 42
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8842
SELECT - COUNT( * ) + 70 + 68 col1, - 92
----
137
-92

skipif mysql # not compatible
query II rowsort label-8842
SELECT - COUNT ( * ) + 70 + 68 col1, - 92
----
137
-92

query I rowsort
SELECT ALL + 52 * + 33
----
1716

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT + 8 * COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-8844
SELECT + 8 * COUNT ( * )
----
8

query I rowsort
SELECT ALL ( + 67 ) col0
----
67

query II rowsort
SELECT + + 78 AS col0, 51 AS col1
----
78
51

query I rowsort
SELECT + - 94 AS col2
----
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8848
SELECT 76 * - 12 * + CAST( NULL AS DECIMAL ) + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT 76 * - 12 * + CAST ( NULL AS REAL ) + + 97
----
NULL

query I rowsort
SELECT ALL + + 13 col0
----
13

query I rowsort
SELECT - 83 * + + 11
----
-913

onlyif mysql # DIV for integer division: 
query II rowsort label-8851
SELECT + + 29 DIV + 18 + + + 94 AS col1, - 48
----
95
-48

skipif mysql # not compatible
query II rowsort label-8851
SELECT + + 29 / + 18 + + + 94 AS col1, - 48
----
95
-48

query I rowsort
SELECT ALL + - 26 col0
----
-26

query I rowsort
SELECT - 96 col2
----
-96

query I rowsort
SELECT ALL + - 35 AS col2
----
-35

query I rowsort
SELECT ALL 49 * 53 * - 0 - 62
----
-62

query II rowsort
SELECT + + 98 * - + 46 + - + 95 AS col2, - 95
----
-4603
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8857
SELECT + 16 * + COUNT( * ) - + CASE - - CAST( + - 9 AS SIGNED ) WHEN - 72 THEN 30 END + + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8857
SELECT + 16 * + COUNT ( * ) - + CASE - - CAST ( + - 9 AS INTEGER ) WHEN - 72 THEN 30 END + + 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT DISTINCT 97 * - MAX( DISTINCT 64 ) * - 59
----
366272

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT 97 * - MAX ( DISTINCT 64 ) * - 59
----
366272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8859
SELECT DISTINCT - - 38 / + 49 + CAST( + + COUNT( * ) AS SIGNED ) * ( - 49 ) * - MAX( DISTINCT - 48 ) / CASE - ( - - COUNT( * ) ) WHEN - 34 THEN NULL WHEN + 70 THEN - COUNT( - 83 ) ELSE NULL END * + 56 + AVG ( DISTINCT - 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT DISTINCT - - 38 / + 49 + CAST ( + + COUNT ( * ) AS INTEGER ) * ( - 49 ) * - MAX ( DISTINCT - 48 ) / CASE - ( - - COUNT ( * ) ) WHEN - 34 THEN NULL WHEN + 70 THEN - COUNT ( - 83 ) ELSE NULL END * + 56 + AVG ( DISTINCT - 28 )
----
NULL

query I rowsort
SELECT + + ( - 22 )
----
-22

query I rowsort
SELECT + - 42 AS col2
----
-42

query I rowsort
SELECT + - CASE 7 WHEN - 77 THEN NULL ELSE + 80 END + + - 92
----
-172

query I rowsort
SELECT + - 73 col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8864
SELECT CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8864
SELECT CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + + 19
----
19

query II rowsort
SELECT 23, 49 AS col0
----
23
49

onlyif mysql # DIV for integer division: 
query I rowsort label-8867
SELECT DISTINCT + 61 DIV - COALESCE ( - 57, 35, - 3 ) - + 37
----
-36

skipif mysql # not compatible
query I rowsort label-8867
SELECT DISTINCT + 61 / - COALESCE ( - 57, 35, - 3 ) - + 37
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT ALL + SUM( - - 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL + SUM ( - - 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT + COUNT( DISTINCT + 26 ) + + MIN( ALL 33 )
----
34

skipif mysql # not compatible
query I rowsort label-8869
SELECT + COUNT ( DISTINCT + 26 ) + + MIN ( ALL 33 )
----
34

query I rowsort
SELECT ALL + 55 * 85
----
4675

query I rowsort
SELECT + 28 + 31
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT DISTINCT - MAX( ALL 43 ) * ( - + 74 ) + 34 col0
----
3216

skipif mysql # not compatible
query I rowsort label-8872
SELECT DISTINCT - MAX ( ALL 43 ) * ( - + 74 ) + 34 col0
----
3216

query I rowsort
SELECT ALL - 83 - - + COALESCE ( + - 52, - NULLIF ( 77, - - 79 * - 56 ) - + ( - 33 ) )
----
-135

query I rowsort
SELECT 75 col0
----
75

query II rowsort
SELECT ALL 94 AS col2, 64
----
94
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8876
SELECT - CAST( NULL AS SIGNED ) * + 36 * - + ( MIN( + - 56 ) ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT - CAST ( NULL AS INTEGER ) * + 36 * - + ( MIN ( + - 56 ) ) + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 42 + 67 col2
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8878
SELECT COALESCE ( - - 74, - - 47 * 38 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT COALESCE ( - - 74, - - 47 * 38 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 52 + + 63 + - 44
----
71

query II rowsort
SELECT - 7, + 24 col1
----
-7
24

query I rowsort
SELECT ALL 60 AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8882
SELECT ALL COALESCE ( - CASE - 0 WHEN + + 78 THEN + 99 * 57 + - 47 + + 45 * COALESCE ( ( 73 ), - 63 + + 98, - 4 ) WHEN + + 78 THEN MIN( DISTINCT + COALESCE ( + 93, 14 * - 35 ) ) * 92 + 28 WHEN CASE + 0 WHEN ( 99 ) + + 77 THEN NULL WHEN NULLIF ( - 19, 34 ) THEN NULL ELSE - 30 END THEN - 34 END, 7 + 83 * 73 ) - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL COALESCE ( - CASE - 0 WHEN + + 78 THEN + 99 * 57 + - 47 + + 45 * COALESCE ( ( 73 ), - 63 + + 98, - 4 ) WHEN + + 78 THEN MIN ( DISTINCT + COALESCE ( + 93, 14 * - 35 ) ) * 92 + 28 WHEN CASE + 0 WHEN ( 99 ) + + 77 THEN NULL WHEN NULLIF ( - 19, 34 ) THEN NULL ELSE - 30 END THEN - 34 END, 7 + 83 * 73 ) - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL - 84 - 30 AS col2
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-8884
SELECT 58 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-8884
SELECT 58 / 97
----
0

query II rowsort
SELECT - 25 AS col2, - 45 + 22 AS col2
----
-25
-23

query I rowsort
SELECT ALL 26 col2
----
26

query I rowsort
SELECT - 28 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT COALESCE ( 70, - 51 - - - COUNT( * ), 89 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8888
SELECT COALESCE ( 70, - 51 - - - COUNT ( * ), 89 ) AS col0
----
70

query I rowsort
SELECT ( + 3 ) AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8890
SELECT 37 DIV 23
----
1

skipif mysql # not compatible
query I rowsort label-8890
SELECT 37 / 23
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8891
SELECT - 29 AS col2, COUNT( * )
----
-29
1

skipif mysql # not compatible
query II rowsort label-8891
SELECT - 29 AS col2, COUNT ( * )
----
-29
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8892
SELECT DISTINCT + - 97 * + COUNT( * ) + + 7 + - CAST( - + CASE WHEN NOT + 98 IS NOT NULL THEN SUM( - 9 ) * + + 73 END AS DECIMAL ) - - - NULLIF ( - 46, - + 1 * COUNT( * ) * + 25 ) * 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8892
SELECT DISTINCT + - 97 * + COUNT ( * ) + + 7 + - CAST ( - + CASE WHEN NOT + 98 IS NOT NULL THEN SUM ( - 9 ) * + + 73 END AS REAL ) - - - NULLIF ( - 46, - + 1 * COUNT ( * ) * + 25 ) * 51 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT ALL - - 34 * - COUNT( * ) col0
----
-34

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL - - 34 * - COUNT ( * ) col0
----
-34

query I rowsort
SELECT ALL + - 72 + 86 + - + ( 99 ) + - + 69 + + 9
----
-145

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8895
SELECT ALL + 39 * + - NULLIF ( 84, COUNT( * ) * + 54 - + - NULLIF ( - MIN( + ( + 15 ) ), 85 ) + + CAST( NULL AS DECIMAL ) * COUNT( * ) + - - 3 + + 37 - 94 )
----
-3276

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL + 39 * + - NULLIF ( 84, COUNT ( * ) * + 54 - + - NULLIF ( - MIN ( + ( + 15 ) ), 85 ) + + CAST ( NULL AS REAL ) * COUNT ( * ) + - - 3 + + 37 - 94 )
----
-3276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8896
SELECT - CASE - 42 WHEN + + ( NULLIF ( 4, - 3 * - + CAST( NULL AS SIGNED ) + + 18 + - + 71 / - AVG ( DISTINCT + CAST( 26 AS SIGNED ) ) * 48 ) ) * - + 88 THEN NULL WHEN + 16 THEN + COUNT( * ) ELSE - 42 + - 14 END AS col1
----
56

skipif mysql # not compatible
query I rowsort label-8896
SELECT - CASE - 42 WHEN + + ( NULLIF ( 4, - 3 * - + CAST ( NULL AS INTEGER ) + + 18 + - + 71 / - AVG ( DISTINCT + CAST ( 26 AS INTEGER ) ) * 48 ) ) * - + 88 THEN NULL WHEN + 16 THEN + COUNT ( * ) ELSE - 42 + - 14 END AS col1
----
56

query I rowsort
SELECT ALL - ( - - ( - 32 ) )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8898
SELECT - CAST( + - 59 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-8898
SELECT - CAST ( + - 59 AS INTEGER )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT ALL + - COUNT( * ) + 9 + + 13 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL + - COUNT ( * ) + 9 + + 13 AS col0
----
21

onlyif mysql # aggregate syntax: 
query III rowsort label-8900
SELECT + 58 AS col1, + 89 * + - COUNT( * ) * + - 80 AS col2, - - COUNT( * )
----
58
7120
1

skipif mysql # not compatible
query III rowsort label-8900
SELECT + 58 AS col1, + 89 * + - COUNT ( * ) * + - 80 AS col2, - - COUNT ( * )
----
58
7120
1

query I rowsort
SELECT + 74 + + 36
----
110

query I rowsort
SELECT DISTINCT - 81 + - 91 AS col0
----
-172

query I rowsort
SELECT ALL 27 + + - 26
----
1

query I rowsort
SELECT DISTINCT - ( ( - 20 ) ) AS col1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8905
SELECT ALL - 31 * - CAST( - - 14 AS SIGNED )
----
434

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL - 31 * - CAST ( - - 14 AS INTEGER )
----
434

query I rowsort
SELECT DISTINCT + - 50 + + 56
----
6

query II rowsort
SELECT ALL - + 93 col1, - 76
----
-93
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8908
SELECT + CAST( + CAST( 28 AS SIGNED ) AS SIGNED ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8908
SELECT + CAST ( + CAST ( 28 AS INTEGER ) AS INTEGER ) AS col2
----
28

query I rowsort
SELECT ALL ( + + 46 ) * 11 AS col1
----
506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8910
SELECT ALL COALESCE ( + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ), + 16 ) * - COUNT( * ) DIV + ( + - 45 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL COALESCE ( + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), + 16 ) * - COUNT ( * ) / + ( + - 45 ) AS col0
----
0

query I rowsort
SELECT 41 AS col1
----
41

query I rowsort
SELECT ( - 28 ) * - NULLIF ( - + 22, + 71 ) + 69
----
-547

query I rowsort
SELECT DISTINCT ( 48 ) * 52 + + - 20
----
2476

query I rowsort
SELECT ALL - 78 AS col2
----
-78

query I rowsort
SELECT DISTINCT 98 AS col2
----
98

query I rowsort
SELECT DISTINCT 10 * - 50
----
-500

onlyif mysql # DIV for integer division: 
query I rowsort label-8917
SELECT 26 DIV 1
----
26

skipif mysql # not compatible
query I rowsort label-8917
SELECT 26 / 1
----
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8918
SELECT ALL 33 / - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL 33 / - CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT ALL 6 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT - MIN( - ( 17 ) )
----
17

skipif mysql # not compatible
query I rowsort label-8920
SELECT - MIN ( - ( 17 ) )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8921
SELECT 51 * + CAST( + - ( 39 ) AS SIGNED ) * - 37 AS col0
----
73593

skipif mysql # not compatible
query I rowsort label-8921
SELECT 51 * + CAST ( + - ( 39 ) AS INTEGER ) * - 37 AS col0
----
73593

query II rowsort
SELECT 22 + - 29 col2, + 89 + - + 75 AS col1
----
-7
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8923
SELECT 58 - - CASE + CAST( - + 80 AS SIGNED ) WHEN - 77 * + 86 + - 66 THEN NULL ELSE - 13 END
----
45

skipif mysql # not compatible
query I rowsort label-8923
SELECT 58 - - CASE + CAST ( - + 80 AS INTEGER ) WHEN - 77 * + 86 + - 66 THEN NULL ELSE - 13 END
----
45

query I rowsort
SELECT 9 col2
----
9

query I rowsort
SELECT DISTINCT + 35 * + 57 * + 93
----
185535

query I rowsort
SELECT - ( 30 ) * + 78 + - + 51 AS col2
----
-2391

query I rowsort
SELECT ALL - 79 + + 50 AS col0
----
-29

query I rowsort
SELECT DISTINCT 53 col0
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-8929
SELECT ALL - + 40 + - 56, - 22 * - - COUNT( * ) AS col2
----
-96
-22

skipif mysql # not compatible
query II rowsort label-8929
SELECT ALL - + 40 + - 56, - 22 * - - COUNT ( * ) AS col2
----
-96
-22

query II rowsort
SELECT - 58 * + 55 AS col1, ( 0 ) * 54 + - - 89 AS col1
----
-3190
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8931
SELECT ALL - + 28 DIV NULLIF ( 3, - - COUNT( * ) )
----
-9

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL - + 28 / NULLIF ( 3, - - COUNT ( * ) )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT - - 98 * 98 * - 65 + MAX( DISTINCT - 40 ) + - 28 AS col2
----
-624328

skipif mysql # not compatible
query I rowsort label-8932
SELECT - - 98 * 98 * - 65 + MAX ( DISTINCT - 40 ) + - 28 AS col2
----
-624328

query I rowsort
SELECT DISTINCT - 94 * - 87 AS col0
----
8178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8934
SELECT ALL CASE 43 WHEN 19 THEN - 96 WHEN - - 58 * + - 58 * - 4 + - CAST( NULL AS SIGNED ) THEN - + 85 WHEN + 34 - + + ( - - COUNT( * ) ) + - + 23 - 50 THEN - 1 - ( + MIN( ALL 21 ) ) DIV + COUNT( * ) ELSE + 15 + 72 END * - 90 + 8 AS col0
----
-7822

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL CASE 43 WHEN 19 THEN - 96 WHEN - - 58 * + - 58 * - 4 + - CAST ( NULL AS INTEGER ) THEN - + 85 WHEN + 34 - + + ( - - COUNT ( * ) ) + - + 23 - 50 THEN - 1 - ( + MIN ( ALL 21 ) ) / + COUNT ( * ) ELSE + 15 + 72 END * - 90 + 8 AS col0
----
-7822

query I rowsort
SELECT ALL - + 27 * + + 76 + - + 59
----
-2111

query I rowsort
SELECT - 56 * + + ( 62 ) + 13 * + 78 * + + 51 AS col2
----
48242

query I rowsort
SELECT DISTINCT - 33 * + + 86
----
-2838

onlyif mysql # DIV for integer division: 
query I rowsort label-8938
SELECT + 69 DIV + 56 + + 42 + - - 5 col2
----
48

skipif mysql # not compatible
query I rowsort label-8938
SELECT + 69 / + 56 + + 42 + - - 5 col2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8939
SELECT 94 DIV - 9 + + + 32 + + 87
----
109

skipif mysql # not compatible
query I rowsort label-8939
SELECT 94 / - 9 + + + 32 + + 87
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8940
SELECT - 81 * CASE - - 5 WHEN - + 77 + + - 57 THEN 52 WHEN - 14 - + + 20 THEN NULL WHEN MAX( - - 66 ) * + 39 + + ( - 21 ) * - COUNT( * ) THEN 12 + + + CAST( NULL AS SIGNED ) END AS col1, - 78 AS col0
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-8940
SELECT - 81 * CASE - - 5 WHEN - + 77 + + - 57 THEN 52 WHEN - 14 - + + 20 THEN NULL WHEN MAX ( - - 66 ) * + 39 + + ( - 21 ) * - COUNT ( * ) THEN 12 + + + CAST ( NULL AS INTEGER ) END AS col1, - 78 AS col0
----
NULL
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT + MAX( ALL 32 )
----
32

skipif mysql # not compatible
query I rowsort label-8941
SELECT + MAX ( ALL 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT DISTINCT - ( - + 42 ) * - 53 - - CASE 89 WHEN - 58 + - + 88 THEN NULL WHEN - + SUM( DISTINCT - 75 ) THEN - + 22 * 17 + 45 WHEN + + MAX( ALL - - 67 ) * + 86 + COUNT( * ) THEN NULL END - + CASE - COUNT( * ) WHEN 15 THEN NULL ELSE COALESCE ( + COUNT( * ), + 71 * 50 - + 2 * + COUNT( * ), - 60 * COUNT( * ) + + 16 * - ( 14 * + 20 ) ) * 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8942
SELECT DISTINCT - ( - + 42 ) * - 53 - - CASE 89 WHEN - 58 + - + 88 THEN NULL WHEN - + SUM ( DISTINCT - 75 ) THEN - + 22 * 17 + 45 WHEN + + MAX ( ALL - - 67 ) * + 86 + COUNT ( * ) THEN NULL END - + CASE - COUNT ( * ) WHEN 15 THEN NULL ELSE COALESCE ( + COUNT ( * ), + 71 * 50 - + 2 * + COUNT ( * ), - 60 * COUNT ( * ) + + 16 * - ( 14 * + 20 ) ) * 91 END
----
NULL

query II rowsort
SELECT + 37, - 75 col2
----
37
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT MAX( - + 15 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-8944
SELECT MAX ( - + 15 ) AS col1
----
-15

query I rowsort
SELECT - 39 * + - 42 * + 2 + 74 - + 81
----
3269

query I rowsort
SELECT - 45 * + 60
----
-2700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8947
SELECT + MIN( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8947
SELECT + MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 88 col2
----
88

query I rowsort
SELECT - 39 + - ( - - 55 ) col0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8950
SELECT ALL + 71, 68 DIV - - COUNT( * ) AS col2
----
71
68

skipif mysql # not compatible
query II rowsort label-8950
SELECT ALL + 71, 68 / - - COUNT ( * ) AS col2
----
71
68

onlyif mysql # aggregate syntax: 
query II rowsort label-8951
SELECT ALL + 16 AS col1, + MIN( ALL + 48 )
----
16
48

skipif mysql # not compatible
query II rowsort label-8951
SELECT ALL + 16 AS col1, + MIN ( ALL + 48 )
----
16
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT - MIN( ALL + ( 14 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-8952
SELECT - MIN ( ALL + ( 14 ) )
----
-14

query II rowsort
SELECT ALL 59 col0, - 17 * - 29 * - 71
----
59
-35003

query I rowsort
SELECT DISTINCT 56 * - 42 AS col2
----
-2352

query I rowsort
SELECT - 79 * + - 4
----
316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8956
SELECT ( COUNT( * ) ) * - 49 + - - 98 + 62 DIV - - ( 2 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-8956
SELECT ( COUNT ( * ) ) * - 49 + - - 98 + 62 / - - ( 2 ) AS col0
----
80

query I rowsort
SELECT ALL 91 * 67
----
6097

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT + 49 * - - SUM( - - 99 ) * + 48
----
232848

skipif mysql # not compatible
query I rowsort label-8958
SELECT + 49 * - - SUM ( - - 99 ) * + 48
----
232848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8959
SELECT ALL - CAST( NULL AS SIGNED ) + - + 43 * MAX( + - 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL - CAST ( NULL AS INTEGER ) + - + 43 * MAX ( + - 46 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT ALL - MAX( + 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL - MAX ( + 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT DISTINCT + MIN( 36 ) + - + 1
----
35

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT + MIN ( 36 ) + - + 1
----
35

query I rowsort
SELECT ALL - + 80 + + - 98
----
-178

query I rowsort
SELECT - + 15 AS col0
----
-15

query I rowsort
SELECT ALL 59 + + + 11 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT - + ( - ( SUM( + 31 ) ) ) col2
----
31

skipif mysql # not compatible
query I rowsort label-8965
SELECT - + ( - ( SUM ( + 31 ) ) ) col2
----
31

query I rowsort
SELECT ALL + 35 AS col2
----
35

query I rowsort
SELECT DISTINCT 86 * - 50 AS col1
----
-4300

query II rowsort
SELECT + CASE 89 WHEN 10 / + + 25 * - 91 THEN NULL WHEN - 4 THEN NULL WHEN 36 THEN - 78 END AS col2, + 96 AS col2
----
NULL
96

query II rowsort
SELECT 5 AS col2, 9 AS col0
----
5
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT DISTINCT - - 75 * - COALESCE ( + 16, - + 77 + + ( - CASE + 68 WHEN MIN( 83 ) - + MIN( DISTINCT 94 ) * + CASE 3 WHEN 32 THEN + 18 ELSE NULL END * + 17 + + ( - 82 ) THEN 82 END ) * - 73, 71 ) AS col0
----
-1200

skipif mysql # not compatible
query I rowsort label-8970
SELECT DISTINCT - - 75 * - COALESCE ( + 16, - + 77 + + ( - CASE + 68 WHEN MIN ( 83 ) - + MIN ( DISTINCT 94 ) * + CASE 3 WHEN 32 THEN + 18 ELSE NULL END * + 17 + + ( - 82 ) THEN 82 END ) * - 73, 71 ) AS col0
----
-1200

query I rowsort
SELECT ALL + 6 - ( + 53 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8972
SELECT + - NULLIF ( + 98, + + NULLIF ( + MAX( DISTINCT + 23 ), + 17 * CAST( NULL AS SIGNED ) * CAST( - CASE - 25 WHEN + + 41 THEN + - 98 - - - ( + - 92 ) + - 82 / 25 ELSE - + 40 END AS SIGNED ) ) * COUNT( * ) ) - 11
----
-109

skipif mysql # not compatible
query I rowsort label-8972
SELECT + - NULLIF ( + 98, + + NULLIF ( + MAX ( DISTINCT + 23 ), + 17 * CAST ( NULL AS INTEGER ) * CAST ( - CASE - 25 WHEN + + 41 THEN + - 98 - - - ( + - 92 ) + - 82 / 25 ELSE - + 40 END AS INTEGER ) ) * COUNT ( * ) ) - 11
----
-109

query I rowsort
SELECT ALL ( - + 8 ) AS col2
----
-8

query I rowsort
SELECT + 92 * 20 AS col1
----
1840

query I rowsort
SELECT + - 27 AS col0
----
-27

query II rowsort
SELECT ( + 18 ) AS col0, - 22 AS col0
----
18
-22

query I rowsort
SELECT ( - 43 )
----
-43

query I rowsort
SELECT - 52 * - - 55 * + 36 AS col0
----
-102960

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT ALL + ( + NULLIF ( + + 82, CASE + - ( ( + SUM( DISTINCT - - 83 ) ) ) WHEN + 17 THEN + + 36 + - COUNT( * ) WHEN + - CASE 6 WHEN + ( - - COUNT( * ) ) * 51 + - - 53 * + + 90 THEN ( - 89 ) * 14 - 85 END THEN NULL WHEN + 54 THEN 46 END + - 11 ) )
----
82

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL + ( + NULLIF ( + + 82, CASE + - ( ( + SUM ( DISTINCT - - 83 ) ) ) WHEN + 17 THEN + + 36 + - COUNT ( * ) WHEN + - CASE 6 WHEN + ( - - COUNT ( * ) ) * 51 + - - 53 * + + 90 THEN ( - 89 ) * 14 - 85 END THEN NULL WHEN + 54 THEN 46 END + - 11 ) )
----
82

query I rowsort
SELECT DISTINCT - 6 * - ( - - COALESCE ( - CASE + 30 WHEN + 42 * 5 THEN + 70 ELSE NULL END, COALESCE ( - - 59, - + 61 ) * 82 * - 37 + - 86 - + 63 ) ) AS col1
----
-1074930

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT - 98 + + COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-8981
SELECT - 98 + + COUNT ( * )
----
-97

query I rowsort
SELECT ALL - 25 * + - 38 AS col0
----
950

query I rowsort
SELECT - 92 * - 52
----
4784

query II rowsort
SELECT NULLIF ( + - 83, + 94 * + 31 ) AS col2, - ( + 84 ) AS col0
----
-83
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8985
SELECT - COALESCE ( + 15, - + ( - 42 ) * - CASE - ( - ( - 66 ) ) WHEN + + 12 THEN NULL ELSE - + 62 END + - - 44 + - + 9 ) * - - CASE - 40 WHEN - + 3 THEN NULL WHEN - 93 / + + 21 * + 83 * 31 THEN + 63 + CAST( 86 AS SIGNED ) ELSE 92 END + + 22 + 92 * 47
----
2966

skipif mysql # not compatible
query I rowsort label-8985
SELECT - COALESCE ( + 15, - + ( - 42 ) * - CASE - ( - ( - 66 ) ) WHEN + + 12 THEN NULL ELSE - + 62 END + - - 44 + - + 9 ) * - - CASE - 40 WHEN - + 3 THEN NULL WHEN - 93 / + + 21 * + 83 * 31 THEN + 63 + CAST ( 86 AS INTEGER ) ELSE 92 END + + 22 + 92 * 47
----
2966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8986
SELECT + SUM( ALL ( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8986
SELECT + SUM ( ALL ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT - 56 * + 94 col0
----
-5264

query I rowsort
SELECT ALL 15 * + 50 + 59
----
809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8989
SELECT ALL ( CASE 82 WHEN - COUNT( DISTINCT 89 ) * COUNT( * ) - - COALESCE ( - + 17, + - CAST( NULL AS SIGNED ) * + 72 * + 46, + COUNT( * ), - - 15 * - 34 + - COUNT( * ) ) * 84 / - COUNT( * ) * + + 82 THEN + - 30 + 15 WHEN ( ( 17 ) ) + + 61 THEN + 40 + COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL ( CASE 82 WHEN - COUNT ( DISTINCT 89 ) * COUNT ( * ) - - COALESCE ( - + 17, + - CAST ( NULL AS INTEGER ) * + 72 * + 46, + COUNT ( * ), - - 15 * - 34 + - COUNT ( * ) ) * 84 / - COUNT ( * ) * + + 82 THEN + - 30 + 15 WHEN ( ( 17 ) ) + + 61 THEN + 40 + COUNT ( * ) END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8990
SELECT - 26 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8990
SELECT - 26 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 27 * + NULLIF ( + + 0, 80 ) + + 11
----
11

query I rowsort
SELECT - ( - 61 ) AS col0
----
61

query I rowsort
SELECT + 70 col2
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8994
SELECT - + 71 + - COUNT( * ), 66 col0
----
-72
66

skipif mysql # not compatible
query II rowsort label-8994
SELECT - + 71 + - COUNT ( * ), 66 col0
----
-72
66

query II rowsort
SELECT + - 65 - - + 25 col1, 11
----
-40
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8996
SELECT - - 96 + + 61 * - 7 * + 50 + + 61 + + - COALESCE ( + 74, MIN( - + 27 ) * + ( NULLIF ( + 69, 24 + CAST( NULL AS DECIMAL ) ) ) * - COUNT( * ) + - 38 ) * + 4 + + 97 - 57 - - 94
----
-21355

skipif mysql # not compatible
query I rowsort label-8996
SELECT - - 96 + + 61 * - 7 * + 50 + + 61 + + - COALESCE ( + 74, MIN ( - + 27 ) * + ( NULLIF ( + 69, 24 + CAST ( NULL AS REAL ) ) ) * - COUNT ( * ) + - 38 ) * + 4 + + 97 - 57 - - 94
----
-21355

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8997
SELECT ALL + 27 * - NULLIF ( CAST( + 12 AS SIGNED ), - CAST( NULL AS SIGNED ) ) * - + 80 + + 25 + 28 + + 19, 80 col2
----
25992
80

skipif mysql # not compatible
query II rowsort label-8997
SELECT ALL + 27 * - NULLIF ( CAST ( + 12 AS INTEGER ), - CAST ( NULL AS INTEGER ) ) * - + 80 + + 25 + 28 + + 19, 80 col2
----
25992
80

query I rowsort
SELECT - + 21 + 91 * 41 + 29
----
3739

query I rowsort
SELECT + 19 * - CASE - + 14 WHEN + + ( 77 ) - + 57 THEN - 13 * + 98 / 9 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9000
SELECT ALL + 44 DIV - - 14
----
3

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL + 44 / - - 14
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT + 85 * COUNT( ALL + 93 ) + + - 72
----
13

skipif mysql # not compatible
query I rowsort label-9001
SELECT + 85 * COUNT ( ALL + 93 ) + + - 72
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT ALL - CASE + + ( - SUM( DISTINCT + 3 ) ) WHEN + 45 THEN + 98 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL - CASE + + ( - SUM ( DISTINCT + 3 ) ) WHEN + 45 THEN + 98 ELSE NULL END col1
----
NULL

query I rowsort
SELECT - 11 col1
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-9004
SELECT + 12 DIV + - 83 * - - 89
----
0

skipif mysql # not compatible
query I rowsort label-9004
SELECT + 12 / + - 83 * - - 89
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9005
SELECT - CAST( - 15 AS SIGNED ) * - 67 AS col2
----
-1005

skipif mysql # not compatible
query I rowsort label-9005
SELECT - CAST ( - 15 AS INTEGER ) * - 67 AS col2
----
-1005

query I rowsort
SELECT - - 11 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT 42 * - + COUNT( * ) + - 37 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-9007
SELECT 42 * - + COUNT ( * ) + - 37 AS col1
----
-79

query I rowsort
SELECT ( + 81 )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9009
SELECT DISTINCT 5 * + 87 * 53 * + COUNT( * ) AS col0, 9 AS col0
----
23055
9

skipif mysql # not compatible
query II rowsort label-9009
SELECT DISTINCT 5 * + 87 * 53 * + COUNT ( * ) AS col0, 9 AS col0
----
23055
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT DISTINCT - SUM( DISTINCT - - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT - SUM ( DISTINCT - - 94 )
----
-94

query II rowsort
SELECT DISTINCT - 65 AS col1, 69
----
-65
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT ALL - NULLIF ( + 42, - COUNT( * ) * 17 )
----
-42

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL - NULLIF ( + 42, - COUNT ( * ) * 17 )
----
-42

query I rowsort
SELECT DISTINCT - 11 + + - 94 AS col2
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9014
SELECT ALL MAX( + 33 ) * - + 31 * 40 * + - 41 col0, COUNT( * ) - - NULLIF ( + COALESCE ( - 97, 61 ), - 15 + + COUNT( DISTINCT - 80 ) ) * 10 DIV - 71
----
1677720
14

skipif mysql # not compatible
query II rowsort label-9014
SELECT ALL MAX ( + 33 ) * - + 31 * 40 * + - 41 col0, COUNT ( * ) - - NULLIF ( + COALESCE ( - 97, 61 ), - 15 + + COUNT ( DISTINCT - 80 ) ) * 10 / - 71
----
1677720
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9015
SELECT 52 DIV + + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-9015
SELECT 52 / + + COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT COUNT( * ) + + 0 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9016
SELECT COUNT ( * ) + + 0 AS col2
----
1

query I rowsort
SELECT ALL - 97 col0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9018
SELECT 32 + ( - - 24 ) + 80 + + 60 col2, + COUNT( * )
----
196
1

skipif mysql # not compatible
query II rowsort label-9018
SELECT 32 + ( - - 24 ) + 80 + + 60 col2, + COUNT ( * )
----
196
1

query II rowsort
SELECT 19 AS col1, 13
----
19
13

query I rowsort
SELECT ALL + 94 + 0 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT MIN( ALL - 66 ) * - COUNT( + 90 ) * - - 87 + 99
----
5841

skipif mysql # not compatible
query I rowsort label-9021
SELECT MIN ( ALL - 66 ) * - COUNT ( + 90 ) * - - 87 + 99
----
5841

query I rowsort
SELECT 61 * 9
----
549

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT DISTINCT 73 + COUNT( * ) - COUNT( * ) * 78 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT 73 + COUNT ( * ) - COUNT ( * ) * 78 AS col2
----
-4

query I rowsort
SELECT DISTINCT + 58 * - 88 * - 9
----
45936

query I rowsort
SELECT 76 + + 16 AS col1
----
92

query I rowsort
SELECT DISTINCT + 76 + - - 24 AS col0
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9027
SELECT COALESCE ( - - 30, + MIN( - 38 ) - - - 38 * - 68 ) DIV + + 3
----
10

skipif mysql # not compatible
query I rowsort label-9027
SELECT COALESCE ( - - 30, + MIN ( - 38 ) - - - 38 * - 68 ) / + + 3
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT - CASE - - SUM( DISTINCT + COALESCE ( - 7, - - 42, 69 ) ) WHEN 20 THEN + 60 * + 99 END + + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9028
SELECT - CASE - - SUM ( DISTINCT + COALESCE ( - 7, - - 42, 69 ) ) WHEN 20 THEN + 60 * + 99 END + + 39 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT + COUNT( ALL + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-9029
SELECT + COUNT ( ALL + 61 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT DISTINCT + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9030
SELECT DISTINCT + COUNT ( * ) col0
----
1

query I rowsort
SELECT ALL + - 21 - 45 * - - 52 AS col1
----
-2361

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT - + MAX( 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-9032
SELECT - + MAX ( 37 ) AS col2
----
-37

query I rowsort
SELECT 8 * 44 col2
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT ALL - 15 * + 83 + + ( 25 ) + 63 + + 29 + + + CASE + ( - 53 ) WHEN 3 * - + 43 + + ( - COUNT( * ) ) THEN 22 * - 55 * - 72 ELSE NULL END * - - 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL - 15 * + 83 + + ( 25 ) + 63 + + 29 + + + CASE + ( - 53 ) WHEN 3 * - + 43 + + ( - COUNT ( * ) ) THEN 22 * - 55 * - 72 ELSE NULL END * - - 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT DISTINCT - MIN( - 81 )
----
81

skipif mysql # not compatible
query I rowsort label-9035
SELECT DISTINCT - MIN ( - 81 )
----
81

query I rowsort
SELECT - - ( + 46 ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT + 27 - - COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9037
SELECT + 27 - - COUNT ( * ) AS col0
----
28

query I rowsort
SELECT - - 77 AS col0
----
77

query I rowsort
SELECT - 49 * + 89
----
-4361

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT COUNT( * ) - + - ( - COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9040
SELECT COUNT ( * ) - + - ( - COUNT ( * ) ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9041
SELECT 42 * 5 * 32 DIV - 57 AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-9041
SELECT 42 * 5 * 32 / - 57 AS col1
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT ( - COUNT( * ) ) * - + 48 * - 7 + - - MIN( DISTINCT - 24 )
----
-360

skipif mysql # not compatible
query I rowsort label-9042
SELECT ( - COUNT ( * ) ) * - + 48 * - 7 + - - MIN ( DISTINCT - 24 )
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT ALL + 2 * + ( - MAX( ALL - + 7 ) ) + + 21
----
35

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL + 2 * + ( - MAX ( ALL - + 7 ) ) + + 21
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT COUNT( DISTINCT 50 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9044
SELECT COUNT ( DISTINCT 50 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT 26 + + MIN( - - 24 )
----
50

skipif mysql # not compatible
query I rowsort label-9045
SELECT 26 + + MIN ( - - 24 )
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-9046
SELECT + COUNT( * ) AS col0, 33 + - - 39
----
1
72

skipif mysql # not compatible
query II rowsort label-9046
SELECT + COUNT ( * ) AS col0, 33 + - - 39
----
1
72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9047
SELECT ( CASE + 71 WHEN - + 46 * - 78 * 69 - - 90 THEN NULL ELSE 50 * SUM( ALL - 60 ) + COUNT( * ) + + + 28 * + 72 + - 40 * + + 90 + + 66 * + - 25 * COUNT( * ) * + MAX( + CAST( NULL AS DECIMAL ) ) / - + COALESCE ( 62, 78 ) + NULLIF ( 6, + 32 + 79 ) END ) * + 48 + 99 * 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9047
SELECT ( CASE + 71 WHEN - + 46 * - 78 * 69 - - 90 THEN NULL ELSE 50 * SUM ( ALL - 60 ) + COUNT ( * ) + + + 28 * + 72 + - 40 * + + 90 + + 66 * + - 25 * COUNT ( * ) * + MAX ( + CAST ( NULL AS REAL ) ) / - + COALESCE ( 62, 78 ) + NULLIF ( 6, + 32 + 79 ) END ) * + 48 + 99 * 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT COUNT( + - 75 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9048
SELECT COUNT ( + - 75 ) AS col2
----
1

query I rowsort
SELECT ALL 27 + - + 12 AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9050
SELECT + 54 AS col1, + SUM( ALL 75 ) + + - 35
----
54
40

skipif mysql # not compatible
query II rowsort label-9050
SELECT + 54 AS col1, + SUM ( ALL 75 ) + + - 35
----
54
40

onlyif mysql # aggregate syntax: 
query II rowsort label-9051
SELECT + COUNT( * ) AS col1, 33 + + - ( - + 12 )
----
1
45

skipif mysql # not compatible
query II rowsort label-9051
SELECT + COUNT ( * ) AS col1, 33 + + - ( - + 12 )
----
1
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9052
SELECT ALL - 32, + ( + 31 ) * - CAST( + + 66 AS SIGNED ) * CAST( - + 67 AS SIGNED ) * - 34 + + - 27 + 54 + + COUNT( * ) * + + 45 + + CAST( NULL AS SIGNED ) * 96 * ( - + 89 ) AS col1
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-9052
SELECT ALL - 32, + ( + 31 ) * - CAST ( + + 66 AS INTEGER ) * CAST ( - + 67 AS INTEGER ) * - 34 + + - 27 + 54 + + COUNT ( * ) * + + 45 + + CAST ( NULL AS INTEGER ) * 96 * ( - + 89 ) AS col1
----
-32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT + SUM( 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-9053
SELECT + SUM ( 71 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT ALL + 63 - + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL + 63 - + COUNT ( * )
----
62

query III rowsort
SELECT + 19 AS col2, - 42 AS col1, 2 * + 90 * + 21
----
19
-42
3780

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT 96 * - - CASE - COUNT( * ) WHEN - 98 * - + 51 * + COALESCE ( - 0, - 30 * + SUM( 7 ) + + - NULLIF ( + + 73, 26 + - 19 ), + 36 ) THEN ( + 4 ) - 86 * 40 + 3 ELSE + + 54 * 73 END * 81
----
30652992

skipif mysql # not compatible
query I rowsort label-9056
SELECT 96 * - - CASE - COUNT ( * ) WHEN - 98 * - + 51 * + COALESCE ( - 0, - 30 * + SUM ( 7 ) + + - NULLIF ( + + 73, 26 + - 19 ), + 36 ) THEN ( + 4 ) - 86 * 40 + 3 ELSE + + 54 * 73 END * 81
----
30652992

query I rowsort
SELECT + - 54 AS col1
----
-54

query II rowsort
SELECT - ( 13 ) * + 88 * 51 * + - 9 - + + 97 + 81 * - - 94 + 96 col0, 11 AS col1
----
532709
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9059
SELECT CAST( + 55 AS SIGNED ) - - 76 * + COUNT( * ) + - + 22 + - 62 + 65 * + COUNT( * ) * 24 * + - 1 AS col0
----
-1513

skipif mysql # not compatible
query I rowsort label-9059
SELECT CAST ( + 55 AS INTEGER ) - - 76 * + COUNT ( * ) + - + 22 + - 62 + 65 * + COUNT ( * ) * 24 * + - 1 AS col0
----
-1513

query II rowsort
SELECT ALL 50 AS col2, + 92 AS col1
----
50
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9061
SELECT - + COUNT( * ) * CAST( NULL AS SIGNED ) * + 41 / + 53 + - CASE + 46 WHEN + 54 THEN - NULLIF ( + 93, 88 * COUNT( * ) * + 10 * CASE + + 1 WHEN + + 99 THEN - ( - - 27 ) + + ( + - 83 ) END ) * ( - 79 ) * + NULLIF ( + MAX( 67 ) * CASE NULLIF ( + 43, CASE COUNT( * ) WHEN COUNT( * ) + 11 THEN NULL ELSE 66 END * - 3 ) * + COUNT( * ) WHEN - 0 * + 69 THEN MIN( 96 ) WHEN - ( 73 ) THEN - 19 / COUNT( * ) END, + COALESCE ( CASE - 7 WHEN - 61 + CAST( 95 AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN + SUM( 44 ) ELSE 35 / MIN( ALL + 14 * + 7 ) END, 45 ) ) WHEN 26 + + 59 THEN 87 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9061
SELECT - + COUNT ( * ) * CAST ( NULL AS INTEGER ) * + 41 / + 53 + - CASE + 46 WHEN + 54 THEN - NULLIF ( + 93, 88 * COUNT ( * ) * + 10 * CASE + + 1 WHEN + + 99 THEN - ( - - 27 ) + + ( + - 83 ) END ) * ( - 79 ) * + NULLIF ( + MAX ( 67 ) * CASE NULLIF ( + 43, CASE COUNT ( * ) WHEN COUNT ( * ) + 11 THEN NULL ELSE 66 END * - 3 ) * + COUNT ( * ) WHEN - 0 * + 69 THEN MIN ( 96 ) WHEN - ( 73 ) THEN - 19 / COUNT ( * ) END, + COALESCE ( CASE - 7 WHEN - 61 + CAST ( 95 AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN + SUM ( 44 ) ELSE 35 / MIN ( ALL + 14 * + 7 ) END, 45 ) ) WHEN 26 + + 59 THEN 87 END AS col0
----
NULL

query I rowsort
SELECT ALL 12 AS col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9063
SELECT - 67 DIV 45 * - - 55 DIV 92 + 82 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-9063
SELECT - 67 / 45 * - - 55 / 92 + 82 AS col1
----
82

query I rowsort
SELECT DISTINCT - 16 * - 2 + + - 73 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-9065
SELECT + 11 + + NULLIF ( - 71, - - 55 ) + - + MAX( - 76 ), NULLIF ( + COUNT( * ), - + 40 + + + 41 + + 28 * 39 * + + 1 ) col2
----
16
1

skipif mysql # not compatible
query II rowsort label-9065
SELECT + 11 + + NULLIF ( - 71, - - 55 ) + - + MAX ( - 76 ), NULLIF ( + COUNT ( * ), - + 40 + + + 41 + + 28 * 39 * + + 1 ) col2
----
16
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9066
SELECT + 25 + - 20 + 59 * CASE - - 33 WHEN - 62 THEN + CAST( - COUNT( * ) AS SIGNED ) WHEN COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9066
SELECT + 25 + - 20 + 59 * CASE - - 33 WHEN - 62 THEN + CAST ( - COUNT ( * ) AS INTEGER ) WHEN COUNT ( * ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - 94 - + ( 6 )
----
-100

query I rowsort
SELECT - ( + 7 ) + COALESCE ( + 72, ( - 47 ) * - 49 * - 25, + - 95 ) + + 32
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT - MAX( - 30 )
----
30

skipif mysql # not compatible
query I rowsort label-9069
SELECT - MAX ( - 30 )
----
30

query II rowsort
SELECT ALL 85 col0, + 22 AS col2
----
85
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9071
SELECT DISTINCT 2 AS col1, - COALESCE ( - 35, CAST( NULL AS SIGNED ) )
----
2
35

skipif mysql # not compatible
query II rowsort label-9071
SELECT DISTINCT 2 AS col1, - COALESCE ( - 35, CAST ( NULL AS INTEGER ) )
----
2
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT - - NULLIF ( - 44, + 78 * - 14 * - - COUNT( * ) ) + 15 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-9072
SELECT - - NULLIF ( - 44, + 78 * - 14 * - - COUNT ( * ) ) + 15 AS col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9073
SELECT ALL + + 38 + - 55 + + SUM( DISTINCT + 49 ) * CAST( - 68 AS SIGNED ) + 29 + + - 3 * + COUNT( * ) * + 42 * - - 13
----
-4958

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL + + 38 + - 55 + + SUM ( DISTINCT + 49 ) * CAST ( - 68 AS INTEGER ) + 29 + + - 3 * + COUNT ( * ) * + 42 * - - 13
----
-4958

query I rowsort
SELECT - + 37 + - 41 + - 3
----
-81

query I rowsort
SELECT ALL + 31 + 13 + + 11 AS col2
----
55

query I rowsort
SELECT - 75 + - 34 + - 27 - + 21 + 97 * - + 75 AS col0
----
-7432

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT DISTINCT CASE + 96 WHEN + 89 + - + 65 THEN COALESCE ( - - 34, + 43, - 92 * + 14 * COUNT( * ) + - 17 + + 54 ) WHEN 13 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9077
SELECT DISTINCT CASE + 96 WHEN + 89 + - + 65 THEN COALESCE ( - - 34, + 43, - 92 * + 14 * COUNT ( * ) + - 17 + + 54 ) WHEN 13 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( - + 23, 45, 98 + + - ( + - 1 ) ) AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9079
SELECT - 63 * - 24 AS col1, 31 * - CASE + - CAST( NULL AS DECIMAL ) WHEN - COUNT( * ) * - 19 THEN NULL WHEN - - 34 * - 76 * 42 THEN - 74 ELSE NULL END + + 7 + ( - + 27 )
----
1512
NULL

skipif mysql # not compatible
query II rowsort label-9079
SELECT - 63 * - 24 AS col1, 31 * - CASE + - CAST ( NULL AS REAL ) WHEN - COUNT ( * ) * - 19 THEN NULL WHEN - - 34 * - 76 * 42 THEN - 74 ELSE NULL END + + 7 + ( - + 27 )
----
1512
NULL

query I rowsort
SELECT DISTINCT + 93 + 65 * - + 52 AS col2
----
-3287

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9081
SELECT ( - + CAST( NULL AS SIGNED ) ), 4 AS col1
----
NULL
4

skipif mysql # not compatible
query II rowsort label-9081
SELECT ( - + CAST ( NULL AS INTEGER ) ), 4 AS col1
----
NULL
4

query I rowsort
SELECT + 47 / 76 + + - NULLIF ( - + 40, - 40 ) AS col1
----
NULL

query I rowsort
SELECT ALL 59 * + 57 + - + ( + 74 )
----
3289

onlyif mysql # aggregate syntax: 
query II rowsort label-9084
SELECT ALL + COUNT( * ) * + + 58 AS col2, - ( + MIN( ALL + 23 ) ) * - 12 AS col0
----
58
276

skipif mysql # not compatible
query II rowsort label-9084
SELECT ALL + COUNT ( * ) * + + 58 AS col2, - ( + MIN ( ALL + 23 ) ) * - 12 AS col0
----
58
276

onlyif mysql # aggregate syntax: 
query II rowsort label-9085
SELECT DISTINCT + COUNT( - - 4 ) AS col0, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-9085
SELECT DISTINCT + COUNT ( - - 4 ) AS col0, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT + COUNT( * ) + 94 - + 79 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9086
SELECT + COUNT ( * ) + 94 - + 79 AS col1
----
16

query I rowsort
SELECT ALL + 6 col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT - SUM( DISTINCT 64 ) + 38
----
-26

skipif mysql # not compatible
query I rowsort label-9088
SELECT - SUM ( DISTINCT 64 ) + 38
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT - 67 * - MAX( ALL + 80 )
----
5360

skipif mysql # not compatible
query I rowsort label-9089
SELECT - 67 * - MAX ( ALL + 80 )
----
5360

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT + 73 + + 22 * COUNT( 68 ) * - 98 + 54 AS col1
----
-2029

skipif mysql # not compatible
query I rowsort label-9090
SELECT + 73 + + 22 * COUNT ( 68 ) * - 98 + 54 AS col1
----
-2029

query I rowsort
SELECT DISTINCT 83 * - 71 - + 94 AS col0
----
-5987

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT + SUM( 57 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-9092
SELECT + SUM ( 57 ) AS col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9093
SELECT ALL - COUNT( * ) * + 68 - - + 58 AS col2, 65 DIV + - 24 AS col1
----
-10
-2

skipif mysql # not compatible
query II rowsort label-9093
SELECT ALL - COUNT ( * ) * + 68 - - + 58 AS col2, 65 / + - 24 AS col1
----
-10
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9094
SELECT - NULLIF ( + - 97, + NULLIF ( COALESCE ( 61, 58 * + 40 * - - 24 * CAST( NULL AS DECIMAL ) ), + 10 + - 86 / COUNT( * ) / + 34 + - + 49 ) * - 45 )
----
97

skipif mysql # not compatible
query I rowsort label-9094
SELECT - NULLIF ( + - 97, + NULLIF ( COALESCE ( 61, 58 * + 40 * - - 24 * CAST ( NULL AS REAL ) ), + 10 + - 86 / COUNT ( * ) / + 34 + - + 49 ) * - 45 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT DISTINCT + + SUM( 2 )
----
2

skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT + + SUM ( 2 )
----
2

query I rowsort
SELECT ALL 99 * 69 * 12 AS col0
----
81972

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9097
SELECT + 43 + 0 + - - MAX( + + 66 ) + COALESCE ( + - ( + 66 ), - CASE WHEN ( 65 ) IN ( - ( + AVG ( - 82 ) ) ) THEN - COUNT( * ) ELSE NULL END DIV - 73 ) + 95 * + + 86 * - 96 * + 63 + + + 77 col2, - 38
----
-49412040
-38

skipif mysql # not compatible
query II rowsort label-9097
SELECT + 43 + 0 + - - MAX ( + + 66 ) + COALESCE ( + - ( + 66 ), - CASE WHEN ( 65 ) IN ( - ( + AVG ( - 82 ) ) ) THEN - COUNT ( * ) ELSE NULL END / - 73 ) + 95 * + + 86 * - 96 * + 63 + + + 77 col2, - 38
----
-49412040
-38

query I rowsort
SELECT ALL + - 82 AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT + COUNT( ALL COALESCE ( ( - 12 ), + + 63 ) ) * - - MAX( ALL + 88 ) - - 36 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-9099
SELECT + COUNT ( ALL COALESCE ( ( - 12 ), + + 63 ) ) * - - MAX ( ALL + 88 ) - - 36 AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT + - 32 * + - 33 + ( COUNT( DISTINCT 27 ) ) - + 63
----
994

skipif mysql # not compatible
query I rowsort label-9100
SELECT + - 32 * + - 33 + ( COUNT ( DISTINCT 27 ) ) - + 63
----
994

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9101
SELECT - - 27 + COUNT( * ) DIV - - 87 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-9101
SELECT - - 27 + COUNT ( * ) / - - 87 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT DISTINCT SUM( DISTINCT + - 1 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9102
SELECT DISTINCT SUM ( DISTINCT + - 1 ) col0
----
-1

query III rowsort
SELECT DISTINCT - + 49 + - + 34 AS col2, + 76 * 98 - + 41 col2, 4
----
-83
7407
4

query I rowsort
SELECT DISTINCT + 94 + 45
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9105
SELECT ALL - COUNT( COALESCE ( - - 75, - + 23 ) ) + - - 35 + - 69 DIV + 92 * + 66
----
34

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL - COUNT ( COALESCE ( - - 75, - + 23 ) ) + - - 35 + - 69 / + 92 * + 66
----
34

query I rowsort
SELECT - + 32 AS col1
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9107
SELECT + 11 - + 35 DIV MIN( DISTINCT 59 )
----
11

skipif mysql # not compatible
query I rowsort label-9107
SELECT + 11 - + 35 / MIN ( DISTINCT 59 )
----
11

query I rowsort
SELECT ALL 58 + - 53
----
5

query I rowsort
SELECT + 63 - + 54 AS col2
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9110
SELECT - 69 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9110
SELECT - 69 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT + COUNT( * ) * + 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9111
SELECT + COUNT ( * ) * + 6 AS col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-9112
SELECT - ( + 85 ) * + NULLIF ( 59, + 45 * COUNT( * ) * COALESCE ( - - 78, - 8 / + 74, - 9 ) ) - 41 - COUNT( * ), - 21 AS col2
----
-5057
-21

skipif mysql # not compatible
query II rowsort label-9112
SELECT - ( + 85 ) * + NULLIF ( 59, + 45 * COUNT ( * ) * COALESCE ( - - 78, - 8 / + 74, - 9 ) ) - 41 - COUNT ( * ), - 21 AS col2
----
-5057
-21

query II rowsort
SELECT 97 AS col2, 26
----
97
26

query I rowsort
SELECT - ( + 58 ) + 92 * - 63 AS col2
----
-5854

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9115
SELECT - COUNT( * ) DIV + 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9115
SELECT - COUNT ( * ) / + 77 AS col1
----
0

query I rowsort
SELECT DISTINCT ( - NULLIF ( + 50, + 30 ) )
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-9117
SELECT ALL ( SUM( 96 ) ) col0, + 69 AS col1
----
96
69

skipif mysql # not compatible
query II rowsort label-9117
SELECT ALL ( SUM ( 96 ) ) col0, + 69 AS col1
----
96
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9118
SELECT DISTINCT SUM( CAST( + 65 AS SIGNED ) ) - - 54 * + 38
----
2117

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT SUM ( CAST ( + 65 AS INTEGER ) ) - - 54 * + 38
----
2117

query II rowsort
SELECT - 98 AS col1, - 64 + 81
----
-98
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9120
SELECT - COUNT( 96 ) - + CAST( NULL AS SIGNED ) * + - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9120
SELECT - COUNT ( 96 ) - + CAST ( NULL AS INTEGER ) * + - 37 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 9 col1
----
9

query I rowsort
SELECT - 74 * 86 AS col1
----
-6364

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9123
SELECT - 79 * - COALESCE ( 55, + COALESCE ( + - 56, + - CAST( NULL AS SIGNED ) * - + 53 ) * 8 DIV - 35 ) AS col2
----
4345

skipif mysql # not compatible
query I rowsort label-9123
SELECT - 79 * - COALESCE ( 55, + COALESCE ( + - 56, + - CAST ( NULL AS INTEGER ) * - + 53 ) * 8 / - 35 ) AS col2
----
4345

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT ALL + NULLIF ( + COUNT( + 7 ), + 8 * + ( + + 27 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL + NULLIF ( + COUNT ( + 7 ), + 8 * + ( + + 27 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT - COUNT( ( 43 ) ) + + 76
----
75

skipif mysql # not compatible
query I rowsort label-9125
SELECT - COUNT ( ( 43 ) ) + + 76
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT + COUNT( ALL + 44 )
----
1

skipif mysql # not compatible
query I rowsort label-9126
SELECT + COUNT ( ALL + 44 )
----
1

query II rowsort
SELECT + 64 AS col2, 2 * - 54 col1
----
64
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9128
SELECT - 98 * - CASE 51 WHEN SUM( DISTINCT - 17 ) THEN - + 44 WHEN + 37 THEN 78 WHEN - 10 + - 14 THEN NULL END / + + 47 * - 94 * 68 + + - CAST( NULL AS SIGNED ) * + 63 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9128
SELECT - 98 * - CASE 51 WHEN SUM ( DISTINCT - 17 ) THEN - + 44 WHEN + 37 THEN 78 WHEN - 10 + - 14 THEN NULL END / + + 47 * - 94 * 68 + + - CAST ( NULL AS INTEGER ) * + 63 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9129
SELECT DISTINCT + COALESCE ( + 77, - 50, - COUNT( * ), - + 0 + COUNT( * ) * - CAST( NULL AS SIGNED ) * ( + 70 ) ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT + COALESCE ( + 77, - 50, - COUNT ( * ), - + 0 + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * ( + 70 ) ) AS col0
----
77

query I rowsort
SELECT ALL - 45 * - + 25
----
1125

query I rowsort
SELECT - 43 * 55 AS col2
----
-2365

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT + 49 * - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-9132
SELECT + 49 * - COUNT ( * )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT + COUNT( - + 63 )
----
1

skipif mysql # not compatible
query I rowsort label-9133
SELECT + COUNT ( - + 63 )
----
1

query I rowsort
SELECT DISTINCT - 58 AS col2
----
-58

query I rowsort
SELECT DISTINCT - COALESCE ( + 56, - 62 )
----
-56

query I rowsort
SELECT + + 9 AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9137
SELECT 53 DIV - 28
----
-1

skipif mysql # not compatible
query I rowsort label-9137
SELECT 53 / - 28
----
-1

query I rowsort
SELECT ALL - + 35 + + 77 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9139
SELECT - 26 * 63 * + + 51 + - 20 DIV + - ( - 35 ) AS col0, 8 * + 48 + + CAST( NULL AS SIGNED ) AS col0
----
-83538
NULL

skipif mysql # not compatible
query II rowsort label-9139
SELECT - 26 * 63 * + + 51 + - 20 / + - ( - 35 ) AS col0, 8 * + 48 + + CAST ( NULL AS INTEGER ) AS col0
----
-83538
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9140
SELECT CAST( - - 75 AS SIGNED ) * - 5 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9140
SELECT CAST ( - - 75 AS INTEGER ) * - 5 + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9141
SELECT + COALESCE ( - - MAX( ALL 93 ), + CAST( + 65 AS SIGNED ), + 61 - + - 64 )
----
93

skipif mysql # not compatible
query I rowsort label-9141
SELECT + COALESCE ( - - MAX ( ALL 93 ), + CAST ( + 65 AS INTEGER ), + 61 - + - 64 )
----
93

query I rowsort
SELECT + - 86 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT ALL COUNT( * ) + + + ( + - 30 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL COUNT ( * ) + + + ( + - 30 ) AS col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9144
SELECT ALL + MIN( ALL + - 42 ) * 53 + + 20 * - CAST( + + COUNT( * ) AS SIGNED ) * 83 * - + CAST( NULL AS SIGNED ) * 4 / - 47 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL + MIN ( ALL + - 42 ) * 53 + + 20 * - CAST ( + + COUNT ( * ) AS INTEGER ) * 83 * - + CAST ( NULL AS INTEGER ) * 4 / - 47 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9145
SELECT ( - 76 ) DIV - 32 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9145
SELECT ( - 76 ) / - 32 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9146
SELECT DISTINCT - CAST( + - COUNT( * ) AS SIGNED ) + + NULLIF ( + COUNT( * ), + + CAST( NULL AS SIGNED ) + 66 + - 91 )
----
2

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER ) + + NULLIF ( + COUNT ( * ), + + CAST ( NULL AS INTEGER ) + 66 + - 91 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT ALL SUM( + NULLIF ( 10, + 74 ) ) + - - 23
----
33

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL SUM ( + NULLIF ( 10, + 74 ) ) + - - 23
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT - 29 - - COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-9148
SELECT - 29 - - COUNT ( * ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT ALL - + ( - COUNT( * ) ) + + - 78 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL - + ( - COUNT ( * ) ) + + - 78 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT 55 + - 60 * - COUNT( * ) * - + 43
----
-2525

skipif mysql # not compatible
query I rowsort label-9150
SELECT 55 + - 60 * - COUNT ( * ) * - + 43
----
-2525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9151
SELECT + CAST( - + COUNT( * ) AS SIGNED ) + + NULLIF ( 3, 16 - - + 11 )
----
2

skipif mysql # not compatible
query I rowsort label-9151
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) + + NULLIF ( 3, 16 - - + 11 )
----
2

query I rowsort
SELECT + NULLIF ( - NULLIF ( + 22, - 35 ), + + 60 ) col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT 35 + + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-9153
SELECT 35 + + + COUNT ( * )
----
36

query I rowsort
SELECT 71 - + 72
----
-1

query I rowsort
SELECT ALL 4 * 72 * - 84
----
-24192

query I rowsort
SELECT 86 * + 98
----
8428

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT COUNT( + + 34 ) + - - 82 * + 44 + 94 + + - ( - 5 ) + 18 + + 69 * + ( - 22 ) AS col1
----
2208

skipif mysql # not compatible
query I rowsort label-9157
SELECT COUNT ( + + 34 ) + - - 82 * + 44 + 94 + + - ( - 5 ) + 18 + + 69 * + ( - 22 ) AS col1
----
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT DISTINCT 3 * SUM( ALL + + 48 ) AS col2
----
144

skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT 3 * SUM ( ALL + + 48 ) AS col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT 67 + + COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-9159
SELECT 67 + + COUNT ( * ) AS col2
----
68

query I rowsort
SELECT 5 + + - 27
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9161
SELECT CASE + AVG ( ALL CAST( NULL AS SIGNED ) ) WHEN - 5 + - 59 THEN + 98 WHEN - - NULLIF ( COUNT( ALL - 81 ), + + 85 ) + MAX( ALL - + 0 ) THEN NULL WHEN - - 14 THEN 57 ELSE - 56 END DIV NULLIF ( 21, + ( - - 92 ) ) DIV + + 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9161
SELECT CASE + AVG ( ALL CAST ( NULL AS INTEGER ) ) WHEN - 5 + - 59 THEN + 98 WHEN - - NULLIF ( COUNT ( ALL - 81 ), + + 85 ) + MAX ( ALL - + 0 ) THEN NULL WHEN - - 14 THEN 57 ELSE - 56 END / NULLIF ( 21, + ( - - 92 ) ) / + + 53 AS col0
----
0

query I rowsort
SELECT 12 * - + 14
----
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9163
SELECT ALL 8 * - 16, COUNT( * ) DIV 44 * - 80 AS col1
----
-128
0

skipif mysql # not compatible
query II rowsort label-9163
SELECT ALL 8 * - 16, COUNT ( * ) / 44 * - 80 AS col1
----
-128
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9164
SELECT COUNT( * ) / + + CAST( NULL AS SIGNED ) * + 50 * + 5 + + - 80 / - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9164
SELECT COUNT ( * ) / + + CAST ( NULL AS INTEGER ) * + 50 * + 5 + + - 80 / - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT 2 + - - COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9165
SELECT 2 + - - COUNT ( * ) AS col0
----
3

query I rowsort
SELECT DISTINCT - + 37 AS col0
----
-37

query I rowsort
SELECT ALL - 31 * - 20 + - + 52 AS col1
----
568

query I rowsort
SELECT + NULLIF ( - - ( - ( + + 93 ) ), + 13 ) * - 13 * - 42
----
-50778

query I rowsort
SELECT ALL - - 82 + - 5 + + - 83 * + 86 * + + 42 col1
----
-299719

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT + SUM( DISTINCT 44 )
----
44

skipif mysql # not compatible
query I rowsort label-9170
SELECT + SUM ( DISTINCT 44 )
----
44

query I rowsort
SELECT + - 21
----
-21

query I rowsort
SELECT 8 + + 41 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT - - 4 * + MAX( - + 13 ) + - 16
----
-68

skipif mysql # not compatible
query I rowsort label-9173
SELECT - - 4 * + MAX ( - + 13 ) + - 16
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT DISTINCT - - NULLIF ( 3, - CASE - 23 WHEN - 88 THEN - NULLIF ( + 69, COUNT( * ) ) END )
----
3

skipif mysql # not compatible
query I rowsort label-9174
SELECT DISTINCT - - NULLIF ( 3, - CASE - 23 WHEN - 88 THEN - NULLIF ( + 69, COUNT ( * ) ) END )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9175
SELECT 98 + + - COUNT( * ) AS col1, + 43 AS col2
----
97
43

skipif mysql # not compatible
query II rowsort label-9175
SELECT 98 + + - COUNT ( * ) AS col1, + 43 AS col2
----
97
43

query I rowsort
SELECT ALL - - 21 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT DISTINCT - 38 + + COUNT( * ) * - - 56 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT - 38 + + COUNT ( * ) * - - 56 AS col0
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-9178
SELECT ALL + 5 + + COUNT( * ) col1, + 71 AS col2
----
6
71

skipif mysql # not compatible
query II rowsort label-9178
SELECT ALL + 5 + + COUNT ( * ) col1, + 71 AS col2
----
6
71

query I rowsort
SELECT ALL + 94 + + + 6 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT + 27 + - COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-9180
SELECT + 27 + - COUNT ( * ) AS col1
----
26

query I rowsort
SELECT ALL + 44 + + + 79
----
123

query I rowsort
SELECT - 94 * - + 70 AS col1
----
6580

query I rowsort
SELECT + 68 * - 7 AS col1
----
-476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9184
SELECT - CASE + 71 WHEN + 91 THEN + 73 WHEN 87 * + - CASE - 26 WHEN 31 THEN NULL WHEN - COUNT( * ) / + 81 - 95 + + - 67 THEN - 66 END THEN 71 + - COALESCE ( 8, + COALESCE ( + 43, + COALESCE ( + + ( - 49 ), - 17 + + COUNT( * ) - 97, 80, - ( ( 23 ) ) * - CAST( NULL AS SIGNED ) ) * - 57, - 77 + - 15 ) + - 77 ) ELSE NULL END + COALESCE ( - 52, + 2 + + 43 ) * 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9184
SELECT - CASE + 71 WHEN + 91 THEN + 73 WHEN 87 * + - CASE - 26 WHEN 31 THEN NULL WHEN - COUNT ( * ) / + 81 - 95 + + - 67 THEN - 66 END THEN 71 + - COALESCE ( 8, + COALESCE ( + 43, + COALESCE ( + + ( - 49 ), - 17 + + COUNT ( * ) - 97, 80, - ( ( 23 ) ) * - CAST ( NULL AS INTEGER ) ) * - 57, - 77 + - 15 ) + - 77 ) ELSE NULL END + COALESCE ( - 52, + 2 + + 43 ) * 52 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9185
SELECT DISTINCT 69 * 82 * CAST( NULL AS DECIMAL ) * + - 1 * 79 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9185
SELECT DISTINCT 69 * 82 * CAST ( NULL AS REAL ) * + - 1 * 79 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT ALL COUNT( 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL COUNT ( 93 ) AS col2
----
1

query I rowsort
SELECT 77 * - 19 col1
----
-1463

query I rowsort
SELECT DISTINCT 10 * - 47 AS col0
----
-470

onlyif mysql # aggregate syntax: 
query II rowsort label-9189
SELECT SUM( DISTINCT - 14 ) - 47 AS col0, 20
----
-61
20

skipif mysql # not compatible
query II rowsort label-9189
SELECT SUM ( DISTINCT - 14 ) - 47 AS col0, 20
----
-61
20

query I rowsort
SELECT 67 * - - 22 AS col2
----
1474

query I rowsort
SELECT 12 + - + 32 AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9192
SELECT - COUNT( + CAST( 61 AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9192
SELECT - COUNT ( + CAST ( 61 AS INTEGER ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT + 97 - 54 + + COUNT( + 22 )
----
44

skipif mysql # not compatible
query I rowsort label-9193
SELECT + 97 - 54 + + COUNT ( + 22 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT DISTINCT 20 + - - MIN( - 83 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-9194
SELECT DISTINCT 20 + - - MIN ( - 83 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT ALL + ( + + MIN( ALL + 70 ) ) * + 96 * - 76
----
-510720

skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL + ( + + MIN ( ALL + 70 ) ) * + 96 * - 76
----
-510720

onlyif mysql # DIV for integer division: 
query I rowsort label-9196
SELECT + 90 DIV 30 * - ( 78 ) * + 8 * + 65
----
-121680

skipif mysql # not compatible
query I rowsort label-9196
SELECT + 90 / 30 * - ( 78 ) * + 8 * + 65
----
-121680

query I rowsort
SELECT ALL 14 * + 91 + ( + 11 ) AS col2
----
1285

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9198
SELECT - SUM( DISTINCT ( + 78 ) ) DIV + 24 + - 1 * + COUNT( * ) - + + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-9198
SELECT - SUM ( DISTINCT ( + 78 ) ) / + 24 + - 1 * + COUNT ( * ) - + + COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT + - MIN( ALL 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-9199
SELECT + - MIN ( ALL 60 )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-9200
SELECT ALL 92 * 84 + + ( + + 39 ) DIV - 87 + 56 * + 73 AS col0
----
11816

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL 92 * 84 + + ( + + 39 ) / - 87 + 56 * + 73 AS col0
----
11816

query II rowsort
SELECT 45 col0, + 12 col0
----
45
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT ALL - 78 * - 67 * - - COUNT( * ) * + 79 + NULLIF ( - - 46, - 59 * - + COUNT( * ) - - 9 )
----
412900

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL - 78 * - 67 * - - COUNT ( * ) * + 79 + NULLIF ( - - 46, - 59 * - + COUNT ( * ) - - 9 )
----
412900

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT ALL + + MAX( ALL + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL + + MAX ( ALL + 66 )
----
66

query I rowsort
SELECT ALL + ( + 14 ) AS col0
----
14

query I rowsort
SELECT DISTINCT + - 77
----
-77

query I rowsort
SELECT ( + + 59 )
----
59

query I rowsort
SELECT ALL + 82 col1
----
82

query I rowsort
SELECT + 64 + 49 * ( - - 71 )
----
3543

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT + - COUNT( * ) * + 74 col0
----
-74

skipif mysql # not compatible
query I rowsort label-9209
SELECT + - COUNT ( * ) * + 74 col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9210
SELECT - + CAST( + + 81 AS SIGNED ) * - - 76 + 82 AS col1
----
-6074

skipif mysql # not compatible
query I rowsort label-9210
SELECT - + CAST ( + + 81 AS INTEGER ) * - - 76 + 82 AS col1
----
-6074

query I rowsort
SELECT - 47 * + - 90 AS col2
----
4230

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT - 91 + - SUM( DISTINCT 32 )
----
-123

skipif mysql # not compatible
query I rowsort label-9212
SELECT - 91 + - SUM ( DISTINCT 32 )
----
-123

query I rowsort
SELECT DISTINCT + 36
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9214
SELECT - + 27 - + 4 + 22 * - 16 DIV + 2, ( + MAX( NULLIF ( 59, - - 38 * + CAST( NULL AS SIGNED ) ) ) ) AS col2
----
-207
59

skipif mysql # not compatible
query II rowsort label-9214
SELECT - + 27 - + 4 + 22 * - 16 / + 2, ( + MAX ( NULLIF ( 59, - - 38 * + CAST ( NULL AS INTEGER ) ) ) ) AS col2
----
-207
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT ALL + COUNT( * ) * - + 17 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL + COUNT ( * ) * - + 17 AS col0
----
-17

query II rowsort
SELECT ALL + 90 AS col0, + 31 - + 74 * - 69
----
90
5137

query I rowsort
SELECT ALL ( - + 88 ) AS col2
----
-88

query I rowsort
SELECT DISTINCT NULLIF ( 10, + 10 * 83 ) col1
----
10

query II rowsort
SELECT ALL + 49 * - 99 AS col2, + 9
----
-4851
9

query I rowsort
SELECT - ( + + 32 ) * + 42
----
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT ALL NULLIF ( 76, - 60 * SUM( 56 ) * 72 + + + 56 )
----
76

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL NULLIF ( 76, - 60 * SUM ( 56 ) * 72 + + + 56 )
----
76

query I rowsort
SELECT - 75 + - 95 - + 27 + + 49
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9223
SELECT - CAST( NULL AS SIGNED ) * + + AVG ( 20 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9223
SELECT - CAST ( NULL AS INTEGER ) * + + AVG ( 20 ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9224
SELECT ALL + 13 DIV - 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL + 13 / - 59 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT - COUNT( * ) + - - 86
----
85

skipif mysql # not compatible
query I rowsort label-9225
SELECT - COUNT ( * ) + - - 86
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT + 33 - - 40 * + COUNT( * ) * - 62
----
-2447

skipif mysql # not compatible
query I rowsort label-9226
SELECT + 33 - - 40 * + COUNT ( * ) * - 62
----
-2447

onlyif mysql # DIV for integer division: 
query I rowsort label-9227
SELECT - 3 DIV - 5 col2
----
0

skipif mysql # not compatible
query I rowsort label-9227
SELECT - 3 / - 5 col2
----
0

query I rowsort
SELECT ALL 15 * + 86 * - - 57 AS col0
----
73530

query I rowsort
SELECT - 21 + NULLIF ( 80, - + 96 ) * + 74 * - 45 AS col1
----
-266421

onlyif mysql # DIV for integer division: 
query I rowsort label-9230
SELECT ALL - 13 DIV - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL - 13 / - 90 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT ALL COUNT( * ) * - 46
----
-46

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL COUNT ( * ) * - 46
----
-46

query I rowsort
SELECT + 14 * - - 1 * - - 19
----
266

query I rowsort
SELECT DISTINCT + 41 + + 62
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9234
SELECT - NULLIF ( + ( - - COALESCE ( - 85, - 39 * - + 76 * - 85 + + 38 DIV 58, - 39 + - 67 ) ), + + 80 * - 84 * 26 - COUNT( * ) * 41 ), - 34 - + AVG ( 81 ) + + - CAST( NULL AS SIGNED ) * - 81 * + 26 AS col0, + 33 - - 82 * - 35 AS col2
----
85
NULL
-2837

skipif mysql # not compatible
query III rowsort label-9234
SELECT - NULLIF ( + ( - - COALESCE ( - 85, - 39 * - + 76 * - 85 + + 38 / 58, - 39 + - 67 ) ), + + 80 * - 84 * 26 - COUNT ( * ) * 41 ), - 34 - + AVG ( 81 ) + + - CAST ( NULL AS INTEGER ) * - 81 * + 26 AS col0, + 33 - - 82 * - 35 AS col2
----
85
NULL
-2837

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT + 49 + - COUNT( * ) * 62 col2
----
-13

skipif mysql # not compatible
query I rowsort label-9235
SELECT + 49 + - COUNT ( * ) * 62 col2
----
-13

query I rowsort
SELECT ALL + 23 + + - 52 AS col1
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9237
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, - 94 + ( - MIN( DISTINCT - 62 ) )
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-9237
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, - 94 + ( - MIN ( DISTINCT - 62 ) )
----
NULL
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT - ( + MAX( + 66 ) ) + - 96 + - - 16 AS col0
----
-146

skipif mysql # not compatible
query I rowsort label-9238
SELECT - ( + MAX ( + 66 ) ) + - 96 + - - 16 AS col0
----
-146

query II rowsort
SELECT + 7 + + + 59, - 61 AS col2
----
66
-61

query I rowsort
SELECT - + NULLIF ( + 97, - 48 * + 20 + + - 68 ) + + + 8
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9241
SELECT CASE COUNT( * ) WHEN + COUNT( * ) * + 27 * + NULLIF ( - - COALESCE ( 51, 9, - 62 * + + 38 + 26 ), + ( 87 ) + + 22 + - 98 * - 68 + CAST( - + AVG ( ALL - CAST( + - 46 AS DECIMAL ) ) AS SIGNED ) ) + - ( + MIN( ALL - 39 ) ) THEN - + ( - 93 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9241
SELECT CASE COUNT ( * ) WHEN + COUNT ( * ) * + 27 * + NULLIF ( - - COALESCE ( 51, 9, - 62 * + + 38 + 26 ), + ( 87 ) + + 22 + - 98 * - 68 + CAST ( - + AVG ( ALL - CAST ( + - 46 AS REAL ) ) AS INTEGER ) ) + - ( + MIN ( ALL - 39 ) ) THEN - + ( - 93 ) END AS col0
----
NULL

query I rowsort
SELECT + 20 + + 21 AS col1
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9243
SELECT ALL - - 54 DIV + ( COUNT( * ) ) + - 67, + COUNT( * ) * + 66 * + 16 AS col1
----
-13
1056

skipif mysql # not compatible
query II rowsort label-9243
SELECT ALL - - 54 / + ( COUNT ( * ) ) + - 67, + COUNT ( * ) * + 66 * + 16 AS col1
----
-13
1056

query I rowsort
SELECT + - 99 * - + 71 * 80 + 89 * - 42 * ( - 14 ) + + 45
----
614697

query I rowsort
SELECT ALL 26 * - + 4
----
-104

query I rowsort
SELECT 8 * 94 * - 60 + - 91 AS col1
----
-45211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9247
SELECT + COUNT( * ) * CAST( 14 AS SIGNED ) * + COUNT( * ) * - SUM( - 44 ) AS col2
----
616

skipif mysql # not compatible
query I rowsort label-9247
SELECT + COUNT ( * ) * CAST ( 14 AS INTEGER ) * + COUNT ( * ) * - SUM ( - 44 ) AS col2
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT + - SUM( + + 84 ) * ( + - 50 ) AS col0
----
4200

skipif mysql # not compatible
query I rowsort label-9248
SELECT + - SUM ( + + 84 ) * ( + - 50 ) AS col0
----
4200

query I rowsort
SELECT ( + + 98 ) * - 53 + + 88
----
-5106

query I rowsort
SELECT DISTINCT 68 * - 52 - 4
----
-3540

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT ALL + 92 * - COUNT( * ) col0
----
-92

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL + 92 * - COUNT ( * ) col0
----
-92

query II rowsort
SELECT DISTINCT + 96 AS col0, 83 AS col0
----
96
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT + MAX( - + 35 ) * - - MAX( ALL + 77 )
----
-2695

skipif mysql # not compatible
query I rowsort label-9253
SELECT + MAX ( - + 35 ) * - - MAX ( ALL + 77 )
----
-2695

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9254
SELECT + CAST( + - 53 AS SIGNED ) AS col0, 20 AS col1
----
-53
20

skipif mysql # not compatible
query II rowsort label-9254
SELECT + CAST ( + - 53 AS INTEGER ) AS col0, 20 AS col1
----
-53
20

query I rowsort
SELECT CASE - + 9 WHEN - - 14 * + + ( - - 34 ) * 15 + + 97 + - 97 - + 88 THEN + 85 ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9256
SELECT COALESCE ( 10, MIN( ALL + 32 ) + + 72 + - CAST( NULL AS SIGNED ) ) * + 47 + - 41 + - - 23
----
452

skipif mysql # not compatible
query I rowsort label-9256
SELECT COALESCE ( 10, MIN ( ALL + 32 ) + + 72 + - CAST ( NULL AS INTEGER ) ) * + 47 + - 41 + - - 23
----
452

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT COUNT( ALL + 47 )
----
1

skipif mysql # not compatible
query I rowsort label-9257
SELECT COUNT ( ALL + 47 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9258
SELECT ALL - 54 + + - 39 + + - 48 DIV - + 3 - - 50 DIV 57 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL - 54 + + - 39 + + - 48 / - + 3 - - 50 / 57 AS col1
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-9259
SELECT DISTINCT + COUNT( * ) * + 15, 40 AS col2
----
15
40

skipif mysql # not compatible
query II rowsort label-9259
SELECT DISTINCT + COUNT ( * ) * + 15, 40 AS col2
----
15
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT DISTINCT 44 + + NULLIF ( + COUNT( DISTINCT - ( 98 ) ), + COUNT( * ) ) * + ( - COUNT( * ) ) - - - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT 44 + + NULLIF ( + COUNT ( DISTINCT - ( 98 ) ), + COUNT ( * ) ) * + ( - COUNT ( * ) ) - - - 98 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9261
SELECT ALL + MAX( - 66 ) + COUNT( * ) DIV - NULLIF ( 81, + + 12 + - CAST( - + AVG ( - 91 ) AS SIGNED ) DIV - 13 + - COUNT( * ) DIV - 66 * - CASE - + 74 WHEN ( + - 32 ) THEN 53 + - NULLIF ( ( 20 ), 14 ) - - - CASE - + COUNT( * ) WHEN - + ( - + 53 ) * + 92 - - + COUNT( * ) THEN + COUNT( * ) END WHEN - 24 THEN NULL WHEN - 77 * 96 THEN NULL END * - 18 + NULLIF ( - COUNT( * ), - 22 + - 48 * + 71 ) ) * - 32
----
-66

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL + MAX ( - 66 ) + COUNT ( * ) / - NULLIF ( 81, + + 12 + - CAST ( - + AVG ( - 91 ) AS INTEGER ) / - 13 + - COUNT ( * ) / - 66 * - CASE - + 74 WHEN ( + - 32 ) THEN 53 + - NULLIF ( ( 20 ), 14 ) - - - CASE - + COUNT ( * ) WHEN - + ( - + 53 ) * + 92 - - + COUNT ( * ) THEN + COUNT ( * ) END WHEN - 24 THEN NULL WHEN - 77 * 96 THEN NULL END * - 18 + NULLIF ( - COUNT ( * ), - 22 + - 48 * + 71 ) ) * - 32
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9262
SELECT 14 DIV - + 47 * COUNT( - 51 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9262
SELECT 14 / - + 47 * COUNT ( - 51 ) col0
----
0

query I rowsort
SELECT ALL 15 col2
----
15

query I rowsort
SELECT - 16 AS col2
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9265
SELECT DISTINCT - 64 DIV + COUNT( * ) AS col1, + 60 - 77 AS col1
----
-64
-17

skipif mysql # not compatible
query II rowsort label-9265
SELECT DISTINCT - 64 / + COUNT ( * ) AS col1, + 60 - 77 AS col1
----
-64
-17

query II rowsort
SELECT 4 + + - 53, 39 AS col0
----
-49
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9267
SELECT 40 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-9267
SELECT 40 / 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT 6 * + 76 - + COUNT( * ) AS col1
----
455

skipif mysql # not compatible
query I rowsort label-9268
SELECT 6 * + 76 - + COUNT ( * ) AS col1
----
455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9269
SELECT DISTINCT - - CASE 34 WHEN AVG ( ALL + + 11 ) THEN - - 71 / MIN( - CAST( - COALESCE ( - - 21, - + 59 ) AS SIGNED ) ) END * + 56 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT - - CASE 34 WHEN AVG ( ALL + + 11 ) THEN - - 71 / MIN ( - CAST ( - COALESCE ( - - 21, - + 59 ) AS INTEGER ) ) END * + 56 col2
----
NULL

query I rowsort
SELECT 45 - 26 + + + 39 + ( ( + - 78 ) ) + + 26 + - 68 * + 71 * 29 AS col1
----
-140006

onlyif mysql # aggregate syntax: 
query II rowsort label-9271
SELECT ALL + + 21 - - NULLIF ( - + COUNT( * ), - 80 * 2 ), - 70 AS col1
----
20
-70

skipif mysql # not compatible
query II rowsort label-9271
SELECT ALL + + 21 - - NULLIF ( - + COUNT ( * ), - 80 * 2 ), - 70 AS col1
----
20
-70

query I rowsort
SELECT 55 col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT ALL - SUM( ALL - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL - SUM ( ALL - 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT + + NULLIF ( 54, + COUNT( * ) * + - 53 )
----
54

skipif mysql # not compatible
query I rowsort label-9274
SELECT + + NULLIF ( 54, + COUNT ( * ) * + - 53 )
----
54

query I rowsort
SELECT DISTINCT - 27 AS col2
----
-27

query I rowsort
SELECT ALL - 42 col1
----
-42

query I rowsort
SELECT - 87 * - 1 AS col0
----
87

query I rowsort
SELECT ALL - - 57
----
57

query I rowsort
SELECT ALL - 22 AS col0
----
-22

query I rowsort
SELECT ALL - - ( 63 )
----
63

query I rowsort
SELECT ALL - + 79
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9282
SELECT - 53 DIV - COUNT( * ), - 26 AS col1
----
53
-26

skipif mysql # not compatible
query II rowsort label-9282
SELECT - 53 / - COUNT ( * ), - 26 AS col1
----
53
-26

query I rowsort
SELECT 80 * + - 16
----
-1280

query I rowsort
SELECT DISTINCT 87 * 78 AS col2
----
6786

onlyif mysql # aggregate syntax: 
query II rowsort label-9285
SELECT ALL - 25, + COUNT( * ) * 3 AS col1
----
-25
3

skipif mysql # not compatible
query II rowsort label-9285
SELECT ALL - 25, + COUNT ( * ) * 3 AS col1
----
-25
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9286
SELECT + 85 * 80 + - - 76 * - + CAST( - - 58 AS SIGNED )
----
2392

skipif mysql # not compatible
query I rowsort label-9286
SELECT + 85 * 80 + - - 76 * - + CAST ( - - 58 AS INTEGER )
----
2392

query I rowsort
SELECT 70 + + + 31 + + - 61 AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9288
SELECT COUNT( * ) * ( - 61 ) DIV 55 DIV + 49 * + 77 + - - COUNT( * ) DIV 31 * + 52 + 55
----
55

skipif mysql # not compatible
query I rowsort label-9288
SELECT COUNT ( * ) * ( - 61 ) / 55 / + 49 * + 77 + - - COUNT ( * ) / 31 * + 52 + 55
----
55

query I rowsort
SELECT ALL 39 + - + 35 AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9290
SELECT + 36 AS col0, - COUNT( * ) * 52
----
36
-52

skipif mysql # not compatible
query II rowsort label-9290
SELECT + 36 AS col0, - COUNT ( * ) * 52
----
36
-52

query I rowsort
SELECT DISTINCT 51 * - 28 AS col0
----
-1428

query I rowsort
SELECT ALL 10 + + 91
----
101

query I rowsort
SELECT DISTINCT 44 + + + 33 * - 79 + + 34 AS col1
----
-2529

query I rowsort
SELECT ALL 3 + - - 61 * 85 - + 15 AS col2
----
5173

query I rowsort
SELECT ALL 99 col1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9296
SELECT 14 + + + 62 + + + 56 * CASE - - ( 77 ) WHEN + ( - 33 ) THEN - NULLIF ( + + 17, - 43 ) - 40 + + - 92 + ( 40 ) * + - MAX( - - 11 ) - SUM( ALL - 3 ) WHEN + 56 THEN + COUNT( * ) WHEN + 80 THEN NULL ELSE NULL END * + CAST( + 37 AS SIGNED ) * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9296
SELECT 14 + + + 62 + + + 56 * CASE - - ( 77 ) WHEN + ( - 33 ) THEN - NULLIF ( + + 17, - 43 ) - 40 + + - 92 + ( 40 ) * + - MAX ( - - 11 ) - SUM ( ALL - 3 ) WHEN + 56 THEN + COUNT ( * ) WHEN + 80 THEN NULL ELSE NULL END * + CAST ( + 37 AS INTEGER ) * 86
----
NULL

query I rowsort
SELECT 95 + + 42
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT 30 - + - ( COUNT( 52 ) )
----
31

skipif mysql # not compatible
query I rowsort label-9298
SELECT 30 - + - ( COUNT ( 52 ) )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT NULLIF ( COUNT( * ), - ( - - 72 ) * - 76 ) + + SUM( - 57 )
----
-56

skipif mysql # not compatible
query I rowsort label-9299
SELECT NULLIF ( COUNT ( * ), - ( - - 72 ) * - 76 ) + + SUM ( - 57 )
----
-56

query I rowsort
SELECT 21 + - 48
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-9301
SELECT ALL - 21 * + 68 * - 21 AS col0, - 97 + + 14 * + - COUNT( * ) AS col0
----
29988
-111

skipif mysql # not compatible
query II rowsort label-9301
SELECT ALL - 21 * + 68 * - 21 AS col0, - 97 + + 14 * + - COUNT ( * ) AS col0
----
29988
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-9302
SELECT - 69 + 67 DIV + + 72 * + 47 * + 48 - - 25 * - + 79 * + 0 + + ( - - 14 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-9302
SELECT - 69 + 67 / + + 72 * + 47 * + 48 - - 25 * - + 79 * + 0 + + ( - - 14 ) AS col2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9303
SELECT ALL - 77 - 60 * - + SUM( DISTINCT CAST( - - 32 AS SIGNED ) ) AS col1
----
1843

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL - 77 - 60 * - + SUM ( DISTINCT CAST ( - - 32 AS INTEGER ) ) AS col1
----
1843

query I rowsort
SELECT 1 * 48 + - 83 + + CASE - 16 WHEN + + 86 THEN NULL WHEN + 84 * 33 THEN + - 50 END * - - 63 + - + 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT + 78 * + ( 86 ) + + + COUNT( * )
----
6709

skipif mysql # not compatible
query I rowsort label-9305
SELECT + 78 * + ( 86 ) + + + COUNT ( * )
----
6709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9306
SELECT ALL + CASE CAST( + 13 AS SIGNED ) WHEN - COALESCE ( + + NULLIF ( 50, - + 31 ), - CAST( NULL AS SIGNED ) / 74, - + COALESCE ( - 12, 66 ) ) * - - 20 * 32 THEN - COUNT( * ) WHEN + 49 THEN NULL WHEN 21 THEN - + 11 END, + 5 AS col2
----
NULL
5

skipif mysql # not compatible
query II rowsort label-9306
SELECT ALL + CASE CAST ( + 13 AS INTEGER ) WHEN - COALESCE ( + + NULLIF ( 50, - + 31 ), - CAST ( NULL AS INTEGER ) / 74, - + COALESCE ( - 12, 66 ) ) * - - 20 * 32 THEN - COUNT ( * ) WHEN + 49 THEN NULL WHEN 21 THEN - + 11 END, + 5 AS col2
----
NULL
5

query I rowsort
SELECT ALL + 34 col2
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9308
SELECT + 5 + 50 + + 97 * - 91 - - 10 - 53 + - + 44 + - 42 DIV + + 44
----
-8859

skipif mysql # not compatible
query I rowsort label-9308
SELECT + 5 + 50 + + 97 * - 91 - - 10 - 53 + - + 44 + - 42 / + + 44
----
-8859

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9309
SELECT - 44 * 15 * + 17 * - 73 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9309
SELECT - 44 * 15 * + 17 * - 73 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9310
SELECT DISTINCT - - CAST( + 18 AS SIGNED ) DIV - + 55 + + - ( + 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT - - CAST ( + 18 AS INTEGER ) / - + 55 + + - ( + 92 ) AS col1
----
-92

query I rowsort
SELECT ALL + - 81 * + + 91 AS col2
----
-7371

query II rowsort
SELECT ALL - + 54 AS col1, 57 AS col0
----
-54
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT COUNT( ALL - 7 )
----
1

skipif mysql # not compatible
query I rowsort label-9313
SELECT COUNT ( ALL - 7 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9314
SELECT + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - - 1 * - 35 * - 42
----
1470

query I rowsort
SELECT 61 * + - 89 * - 48 AS col1
----
260592

query I rowsort
SELECT ALL - 17 * + 30 AS col0
----
-510

query I rowsort
SELECT NULLIF ( - 72, - - 88 ) + 69 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT DISTINCT + ( + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9319
SELECT DISTINCT + ( + COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT DISTINCT COALESCE ( + 87, - MIN( ALL + 0 ) ) * - 31 + - 65
----
-2762

skipif mysql # not compatible
query I rowsort label-9320
SELECT DISTINCT COALESCE ( + 87, - MIN ( ALL + 0 ) ) * - 31 + - 65
----
-2762

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9321
SELECT + 74 DIV - CAST( - 61 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9321
SELECT + 74 / - CAST ( - 61 AS INTEGER )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9322
SELECT DISTINCT 97 DIV - + 22
----
-4

skipif mysql # not compatible
query I rowsort label-9322
SELECT DISTINCT 97 / - + 22
----
-4

query I rowsort
SELECT + 0 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9324
SELECT + 68 + + + MIN( DISTINCT CAST( NULL AS SIGNED ) ) + - - 27 - + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT + 68 + + + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + - - 27 - + 75
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9325
SELECT MIN( - - 21 ), 30 + - 77 + - ( + 29 ) AS col0
----
21
-76

skipif mysql # not compatible
query II rowsort label-9325
SELECT MIN ( - - 21 ), 30 + - 77 + - ( + 29 ) AS col0
----
21
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT ALL COUNT( * ) * + 26
----
26

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL COUNT ( * ) * + 26
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9327
SELECT - NULLIF ( 57, + 35 ) DIV - - CAST( + 66 AS SIGNED ) + 97 - + 79 * 14 - - + ( + 31 ) col1, 19 * CAST( NULL AS SIGNED ) + + COALESCE ( ( + 58 ), - COUNT( + + 40 ) )
----
-978
NULL

skipif mysql # not compatible
query II rowsort label-9327
SELECT - NULLIF ( 57, + 35 ) / - - CAST ( + 66 AS INTEGER ) + 97 - + 79 * 14 - - + ( + 31 ) col1, 19 * CAST ( NULL AS INTEGER ) + + COALESCE ( ( + 58 ), - COUNT ( + + 40 ) )
----
-978
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT - COUNT( * ) * + COUNT( * ) + - 83
----
-84

skipif mysql # not compatible
query I rowsort label-9328
SELECT - COUNT ( * ) * + COUNT ( * ) + - 83
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT ALL MIN( + NULLIF ( - 99, - 29 * 17 ) ) * + + 46 + + + 54 + - 71 * - + 93
----
2103

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL MIN ( + NULLIF ( - 99, - 29 * 17 ) ) * + + 46 + + + 54 + - 71 * - + 93
----
2103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9330
SELECT + 20 + + CASE - + 28 WHEN + 69 * + 0 + + - 16 + + - 85 + + 46 / CAST( NULL AS SIGNED ) - - + 23 + - MAX( - + 58 ) * 97 * COUNT( * ) THEN - 27 ELSE 55 + + - 74 END + - 36
----
-35

skipif mysql # not compatible
query I rowsort label-9330
SELECT + 20 + + CASE - + 28 WHEN + 69 * + 0 + + - 16 + + - 85 + + 46 / CAST ( NULL AS INTEGER ) - - + 23 + - MAX ( - + 58 ) * 97 * COUNT ( * ) THEN - 27 ELSE 55 + + - 74 END + - 36
----
-35

query II rowsort
SELECT ALL ( 38 ) AS col0, + 83
----
38
83

query I rowsort
SELECT DISTINCT 55 - - 63 AS col2
----
118

query I rowsort
SELECT ALL - 81 - + 52
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT SUM( DISTINCT - 18 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-9334
SELECT SUM ( DISTINCT - 18 ) AS col2
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9335
SELECT - + CAST( + 95 AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-9335
SELECT - + CAST ( + 95 AS INTEGER )
----
-95

query I rowsort
SELECT ALL ( - 12 ) col1
----
-12

query I rowsort
SELECT + 6 - 39 AS col1
----
-33

query I rowsort
SELECT + 76 * ( + + 16 ) AS col1
----
1216

query I rowsort
SELECT - - 46
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9340
SELECT - - COUNT( * ) + - 56, 90 * CASE - - 18 WHEN - 17 + + 8 THEN NULL WHEN 10 * + - CAST( NULL AS SIGNED ) + - COUNT( ALL - 73 ) * + 61 * + - 87 + + 35 THEN NULL ELSE + COUNT( * ) - + + 85 END * + - MAX( ALL + - 44 ) AS col2
----
-55
-332640

skipif mysql # not compatible
query II rowsort label-9340
SELECT - - COUNT ( * ) + - 56, 90 * CASE - - 18 WHEN - 17 + + 8 THEN NULL WHEN 10 * + - CAST ( NULL AS INTEGER ) + - COUNT ( ALL - 73 ) * + 61 * + - 87 + + 35 THEN NULL ELSE + COUNT ( * ) - + + 85 END * + - MAX ( ALL + - 44 ) AS col2
----
-55
-332640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9341
SELECT ALL - + CASE + 49 WHEN - - ( + + 47 ) + + + 43 THEN NULL WHEN COUNT( ALL - + 26 ) * - 94 - 45 + + + 36 THEN NULL ELSE - 26 * - 37 END * + 81 - - 24 DIV + 22 AS col0
----
-77921

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL - + CASE + 49 WHEN - - ( + + 47 ) + + + 43 THEN NULL WHEN COUNT ( ALL - + 26 ) * - 94 - 45 + + + 36 THEN NULL ELSE - 26 * - 37 END * + 81 - - 24 / + 22 AS col0
----
-77921

onlyif mysql # DIV for integer division: 
query I rowsort label-9342
SELECT + + 60 * - 69 * 81 + - 28 DIV + - 49 AS col1
----
-335340

skipif mysql # not compatible
query I rowsort label-9342
SELECT + + 60 * - 69 * 81 + - 28 / + - 49 AS col1
----
-335340

query I rowsort
SELECT DISTINCT 21 * + 54
----
1134

query I rowsort
SELECT ALL COALESCE ( - 84, 45 )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-9345
SELECT - + 10 - + - COALESCE ( + 42, + 33, COALESCE ( 2, + 25, - 30 ) * - - 5 + COALESCE ( - 0, + ( 4 ) ) * + 17 * - + 14 + 57 + + 10 * - 80 * 64 * 78 ) + + 68 + + 84 + + ( COALESCE ( - + 4, COALESCE ( - 79, + + ( + ( - 54 ) ) * + 52 + + 99 DIV 22 ), 35 ) )
----
180

skipif mysql # not compatible
query I rowsort label-9345
SELECT - + 10 - + - COALESCE ( + 42, + 33, COALESCE ( 2, + 25, - 30 ) * - - 5 + COALESCE ( - 0, + ( 4 ) ) * + 17 * - + 14 + 57 + + 10 * - 80 * 64 * 78 ) + + 68 + + 84 + + ( COALESCE ( - + 4, COALESCE ( - 79, + + ( + ( - 54 ) ) * + 52 + + 99 / 22 ), 35 ) )
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT DISTINCT COUNT( - - 61 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT COUNT ( - - 61 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT - - MAX( 43 )
----
43

skipif mysql # not compatible
query I rowsort label-9347
SELECT - - MAX ( 43 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9348
SELECT ALL + 96 / - 52 + + CAST( 12 AS SIGNED ) + + 95 + - 89 + CASE - 64 WHEN + ( + 95 ) / - + 45 * + SUM( + 48 ) + + 81 + 56 THEN - 98 WHEN MAX( ALL - 92 ) THEN NULL ELSE NULL END / - 23 * - ( + - 78 ) + + ( - - MIN( DISTINCT + + 56 ) ) / - - 85 * 25 + AVG ( DISTINCT + 15 ) + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL + 96 / - 52 + + CAST ( 12 AS INTEGER ) + + 95 + - 89 + CASE - 64 WHEN + ( + 95 ) / - + 45 * + SUM ( + 48 ) + + 81 + 56 THEN - 98 WHEN MAX ( ALL - 92 ) THEN NULL ELSE NULL END / - 23 * - ( + - 78 ) + + ( - - MIN ( DISTINCT + + 56 ) ) / - - 85 * 25 + AVG ( DISTINCT + 15 ) + + 29
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9349
SELECT - - 27 * 58 DIV + 71 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-9349
SELECT - - 27 * 58 / + 71 AS col2
----
22

query I rowsort
SELECT ( - 31 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-9351
SELECT ALL + COUNT( * ), + 85 * ( + 42 ) AS col0
----
1
3570

skipif mysql # not compatible
query II rowsort label-9351
SELECT ALL + COUNT ( * ), + 85 * ( + 42 ) AS col0
----
1
3570

query II rowsort
SELECT DISTINCT 33 * + + 68 + + 30 AS col1, 67
----
2274
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9353
SELECT DISTINCT 2 * - + 40 * + 98 * - + 94 + - NULLIF ( + 80, + NULLIF ( + 97, 52 * - - SUM( DISTINCT CAST( - 41 AS SIGNED ) ) * + AVG ( + + 31 ) / + - ( 18 ) + - - 29 + - - 59 + AVG ( ALL - + 69 ) * 72 + - COALESCE ( + 52, + - 83, + COUNT( * ) - - NULLIF ( - 91, + 97 * SUM( ALL CASE 72 WHEN - 7 THEN ( - 30 ) ELSE NULL END ) - 53 ) ) ) * 33 ) * - 54
----
741280

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT 2 * - + 40 * + 98 * - + 94 + - NULLIF ( + 80, + NULLIF ( + 97, 52 * - - SUM ( DISTINCT CAST ( - 41 AS INTEGER ) ) * + AVG ( + + 31 ) / + - ( 18 ) + - - 29 + - - 59 + AVG ( ALL - + 69 ) * 72 + - COALESCE ( + 52, + - 83, + COUNT ( * ) - - NULLIF ( - 91, + 97 * SUM ( ALL CASE 72 WHEN - 7 THEN ( - 30 ) ELSE NULL END ) - 53 ) ) ) * 33 ) * - 54
----
741280

query I rowsort
SELECT ALL + 60 col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT - MIN( ALL 76 ) * + 64
----
-4864

skipif mysql # not compatible
query I rowsort label-9355
SELECT - MIN ( ALL 76 ) * + 64
----
-4864

query II rowsort
SELECT ALL 8 * - 64 * 0 * + 63 + + 39 * + + CASE + 45 WHEN NULLIF ( - + 30, + 7 ) * 51 * - - 1 + 41 + - 16 THEN - 35 END col0, 25 - + 38 * 9 + - 29 * + COALESCE ( - 9, - 91 ) AS col2
----
NULL
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9357
SELECT ALL + 68 DIV - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL + 68 / - COUNT ( * )
----
-68

query I rowsort
SELECT - ( + 48 ) + + 86 AS col0
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-9359
SELECT + 40 AS col2, - 56 - - COUNT( * ) - - + 35
----
40
-20

skipif mysql # not compatible
query II rowsort label-9359
SELECT + 40 AS col2, - 56 - - COUNT ( * ) - - + 35
----
40
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT NULLIF ( 56, - 59 + + SUM( ALL 9 ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-9360
SELECT NULLIF ( 56, - 59 + + SUM ( ALL 9 ) ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT ALL - MAX( + 75 ) * 53 col1
----
-3975

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL - MAX ( + 75 ) * 53 col1
----
-3975

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT - 68 * MAX( DISTINCT + 91 ) AS col2
----
-6188

skipif mysql # not compatible
query I rowsort label-9362
SELECT - 68 * MAX ( DISTINCT + 91 ) AS col2
----
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT + MAX( - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-9363
SELECT + MAX ( - 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT + COUNT( * ) * - + 18 + 17 * - - 65
----
1087

skipif mysql # not compatible
query I rowsort label-9364
SELECT + COUNT ( * ) * - + 18 + 17 * - - 65
----
1087

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT ALL + 5 * - 25 * NULLIF ( - 25, + COUNT( * ) - - 83 * 25 ) - - + 94 AS col1
----
3219

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL + 5 * - 25 * NULLIF ( - 25, + COUNT ( * ) - - 83 * 25 ) - - + 94 AS col1
----
3219

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT - 14 + - ( - MAX( - ( + + 0 ) ) ) - 38 - + 54
----
-106

skipif mysql # not compatible
query I rowsort label-9366
SELECT - 14 + - ( - MAX ( - ( + + 0 ) ) ) - 38 - + 54
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT + CASE + + CASE 32 WHEN + + 10 THEN + 94 * + 87 + - 28 WHEN + - 88 * - - 25 THEN NULL END WHEN + 55 THEN NULL ELSE - 30 * + COUNT( * ) + 80 END AS col1
----
50

skipif mysql # not compatible
query I rowsort label-9367
SELECT + CASE + + CASE 32 WHEN + + 10 THEN + 94 * + 87 + - 28 WHEN + - 88 * - - 25 THEN NULL END WHEN + 55 THEN NULL ELSE - 30 * + COUNT ( * ) + 80 END AS col1
----
50

query I rowsort
SELECT - 32 * + 78 AS col0
----
-2496

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9369
SELECT NULLIF ( CAST( NULL AS DECIMAL ), - 42 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9369
SELECT NULLIF ( CAST ( NULL AS REAL ), - 42 ) AS col0
----
NULL

query II rowsort
SELECT ALL + 49 AS col2, 71 AS col0
----
49
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9371
SELECT - 84 + + 21 DIV - ( + 65 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-9371
SELECT - 84 + + 21 / - ( + 65 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ALL + 78 * + COUNT( * ) * ( 42 ) - + 66 AS col1
----
3210

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL + 78 * + COUNT ( * ) * ( 42 ) - + 66 AS col1
----
3210

query I rowsort
SELECT - 72 + - 22
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT + ( - + COUNT( * ) ) + - ( COUNT( 70 ) ) + - 68
----
-70

skipif mysql # not compatible
query I rowsort label-9374
SELECT + ( - + COUNT ( * ) ) + - ( COUNT ( 70 ) ) + - 68
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9375
SELECT - CAST( + 2 AS SIGNED ) + - - CASE + ( + 22 ) WHEN + COUNT( ALL 55 ) THEN + 2 WHEN COUNT( * ) THEN - 2 ELSE NULL END + + 8 * MIN( ALL 92 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9375
SELECT - CAST ( + 2 AS INTEGER ) + - - CASE + ( + 22 ) WHEN + COUNT ( ALL 55 ) THEN + 2 WHEN COUNT ( * ) THEN - 2 ELSE NULL END + + 8 * MIN ( ALL 92 ) col2
----
NULL

query I rowsort
SELECT - 4 + + 15 col0
----
11

query I rowsort
SELECT - ( + ( 4 ) ) * - 35
----
140

query I rowsort
SELECT ALL + 0 * - 21 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9379
SELECT ALL 46 col2, - 76 + CAST( NULL AS SIGNED ) AS col2
----
46
NULL

skipif mysql # not compatible
query II rowsort label-9379
SELECT ALL 46 col2, - 76 + CAST ( NULL AS INTEGER ) AS col2
----
46
NULL

query I rowsort
SELECT ALL - + 10 * + 20
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT DISTINCT MIN( - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT MIN ( - 12 )
----
-12

query I rowsort
SELECT ( 96 ) col2
----
96

query I rowsort
SELECT ALL 45 + + 40 AS col0
----
85

query I rowsort
SELECT + - 37 + + + 9 AS col0
----
-28

query I rowsort
SELECT DISTINCT + 26 + - 21 + + 72 * 1 - ( + 78 ) * 24 AS col0
----
-1795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9386
SELECT + CAST( + + 4 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-9386
SELECT + CAST ( + + 4 AS INTEGER )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9387
SELECT - COALESCE ( - CASE 77 WHEN - COUNT( DISTINCT 83 ) THEN 26 + - + 64 WHEN CASE + 39 WHEN 50 * - 48 THEN NULL WHEN - 73 + - 39 THEN - 1 / COUNT( * ) + 30 + 33 * - 66 * - 60 END * + + 57 + + COUNT( * ) - + + CAST( - 8 AS SIGNED ) + - 55 * - 25 * - - COUNT( * ) + - ( + 25 ) + 44 THEN NULL WHEN 81 - COUNT( * ) THEN NULL ELSE NULL END, COUNT( * ) * 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-9387
SELECT - COALESCE ( - CASE 77 WHEN - COUNT ( DISTINCT 83 ) THEN 26 + - + 64 WHEN CASE + 39 WHEN 50 * - 48 THEN NULL WHEN - 73 + - 39 THEN - 1 / COUNT ( * ) + 30 + 33 * - 66 * - 60 END * + + 57 + + COUNT ( * ) - + + CAST ( - 8 AS INTEGER ) + - 55 * - 25 * - - COUNT ( * ) + - ( + 25 ) + 44 THEN NULL WHEN 81 - COUNT ( * ) THEN NULL ELSE NULL END, COUNT ( * ) * 48 )
----
-48

query I rowsort
SELECT ALL 16 + 1 - - + 0 - - 53 AS col2
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9389
SELECT 90 DIV 1 * - - 90 + + 34 + + 34
----
8168

skipif mysql # not compatible
query I rowsort label-9389
SELECT 90 / 1 * - - 90 + + 34 + + 34
----
8168

query I rowsort
SELECT DISTINCT 28 + 42
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT ALL 87 * + ( - - COALESCE ( MAX( ALL 37 ), 40 - - 88 + 40 + - 95 * + 57 ) )
----
3219

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL 87 * + ( - - COALESCE ( MAX ( ALL 37 ), 40 - - 88 + 40 + - 95 * + 57 ) )
----
3219

query I rowsort
SELECT ( + COALESCE ( + + 77, + 47 - - 19 ) ) + - 56 + - 92 AS col1
----
-71

query II rowsort
SELECT + 28 AS col2, - 63 AS col1
----
28
-63

query I rowsort
SELECT ALL - 34 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT DISTINCT COUNT( * ) * + + 81 * - - 7
----
567

skipif mysql # not compatible
query I rowsort label-9395
SELECT DISTINCT COUNT ( * ) * + + 81 * - - 7
----
567

query II rowsort
SELECT ALL - 40 AS col0, ( + 26 )
----
-40
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9397
SELECT ( - 25 ) * + - 8 * + CASE + CAST( NULL AS SIGNED ) WHEN - 25 THEN NULL ELSE + ( - 24 ) * + 35 - 75 END
----
-183000

skipif mysql # not compatible
query I rowsort label-9397
SELECT ( - 25 ) * + - 8 * + CASE + CAST ( NULL AS INTEGER ) WHEN - 25 THEN NULL ELSE + ( - 24 ) * + 35 - 75 END
----
-183000

query II rowsort
SELECT 78 col0, 8 AS col1
----
78
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9399
SELECT DISTINCT - CASE - 51 WHEN + ( + CAST( + 63 AS SIGNED ) ) + 39 THEN 83 + - - 65 ELSE - MAX( ALL - - NULLIF ( 10, + 0 ) ) DIV - ( - COUNT( * ) ) - + - COUNT( * ) END
----
9

skipif mysql # not compatible
query I rowsort label-9399
SELECT DISTINCT - CASE - 51 WHEN + ( + CAST ( + 63 AS INTEGER ) ) + 39 THEN 83 + - - 65 ELSE - MAX ( ALL - - NULLIF ( 10, + 0 ) ) / - ( - COUNT ( * ) ) - + - COUNT ( * ) END
----
9

query I rowsort
SELECT 30 + - - 13
----
43

query I rowsort
SELECT ALL - ( ( - 45 ) )
----
45

query I rowsort
SELECT DISTINCT 79 - 23
----
56

query II rowsort
SELECT 3 AS col1, + 45 AS col2
----
3
45

query II rowsort
SELECT 16, + ( 50 ) col1
----
16
50

query I rowsort
SELECT ALL - 92 * 99
----
-9108

query I rowsort
SELECT DISTINCT - 19 * + 79 AS col2
----
-1501

query I rowsort
SELECT DISTINCT + 47 * 40 AS col0
----
1880

query I rowsort
SELECT ALL - + 14 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT - NULLIF ( - 30, - + NULLIF ( 7, - 21 * - - COUNT( * ) ) * - ( - 90 ) )
----
30

skipif mysql # not compatible
query I rowsort label-9409
SELECT - NULLIF ( - 30, - + NULLIF ( 7, - 21 * - - COUNT ( * ) ) * - ( - 90 ) )
----
30

query I rowsort
SELECT ALL + 98 * - + 20
----
-1960

query I rowsort
SELECT - 97 * + 60 AS col1
----
-5820

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT DISTINCT + - COUNT( * ) + - ( + - 15 )
----
14

skipif mysql # not compatible
query I rowsort label-9412
SELECT DISTINCT + - COUNT ( * ) + - ( + - 15 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT DISTINCT + - NULLIF ( - COALESCE ( - + 96, - 1, 2 - - 48 ), - - 74 ) * + COALESCE ( - + 42, - 36, - 7 ) * - 17 * - + 47 + - 35 * COUNT( * ) + + 78 + - 59 AS col2
----
3221552

skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT + - NULLIF ( - COALESCE ( - + 96, - 1, 2 - - 48 ), - - 74 ) * + COALESCE ( - + 42, - 36, - 7 ) * - 17 * - + 47 + - 35 * COUNT ( * ) + + 78 + - 59 AS col2
----
3221552

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT DISTINCT - COUNT( * ) + + 88 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT - COUNT ( * ) + + 88 AS col2
----
87

query II rowsort
SELECT - + 22, 70 AS col1
----
-22
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9416
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + + 13 + - 7 * - 63 * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + 13 + - 7 * - 63 * - 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT DISTINCT + COUNT( * ) + + + COUNT( * ) + 22 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) + 22 AS col2
----
24

query I rowsort
SELECT DISTINCT - 46 + 52 - NULLIF ( + 42, COALESCE ( - 31, - - 93, 45 / 95 + - 88 + + 75 ) + + 66 * + 45 ) * - 88 AS col1
----
3702

query I rowsort
SELECT ALL + 88 + 2 * + ( + NULLIF ( - 19, - 12 ) ) AS col0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-9420
SELECT + 90 - + - 15 DIV + 95 * - 20 + + 68 AS col2
----
158

skipif mysql # not compatible
query I rowsort label-9420
SELECT + 90 - + - 15 / + 95 * - 20 + + 68 AS col2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT ALL + - 7 + - + 87 + - + ( - + 63 ) * + - ( + COUNT( * ) ) * COUNT( * ) AS col0
----
-157

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL + - 7 + - + 87 + - + ( - + 63 ) * + - ( + COUNT ( * ) ) * COUNT ( * ) AS col0
----
-157

query I rowsort
SELECT 47 + + 50 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT - COALESCE ( ( - 80 ), - + COUNT( * ) )
----
80

skipif mysql # not compatible
query I rowsort label-9423
SELECT - COALESCE ( ( - 80 ), - + COUNT ( * ) )
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-9424
SELECT ALL 25, COUNT( * ) AS col1
----
25
1

skipif mysql # not compatible
query II rowsort label-9424
SELECT ALL 25, COUNT ( * ) AS col1
----
25
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT DISTINCT - CASE + 40 WHEN COALESCE ( COUNT( * ), + 95 + - ( - 72 ) ) THEN + + SUM( ALL + - 91 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9425
SELECT DISTINCT - CASE + 40 WHEN COALESCE ( COUNT ( * ), + 95 + - ( - 72 ) ) THEN + + SUM ( ALL + - 91 ) END
----
NULL

query I rowsort
SELECT DISTINCT 66 + - ( + 75 ) AS col0
----
-9

query I rowsort
SELECT DISTINCT - 94 * + 34 AS col2
----
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT ALL MIN( ALL - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL MIN ( ALL - 15 )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9429
SELECT 16 - + - COUNT( * ) + + CAST( 90 AS SIGNED ) + - 82 * COUNT( DISTINCT 17 ) * - - ( + - CASE - - 71 WHEN + SUM( - 69 ) - + 49 * - + 12 THEN - 46 * - 83 END ) + + - 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9429
SELECT 16 - + - COUNT ( * ) + + CAST ( 90 AS INTEGER ) + - 82 * COUNT ( DISTINCT 17 ) * - - ( + - CASE - - 71 WHEN + SUM ( - 69 ) - + 49 * - + 12 THEN - 46 * - 83 END ) + + - 86 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9430
SELECT ALL - + 2 * 60 + - 25 + 42 * + 1 + + 56 + - + CAST( NULL AS SIGNED ) + COUNT( * ) * - 84 + + COUNT( * ) * + + 98 / - - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL - + 2 * 60 + - 25 + 42 * + 1 + + 56 + - + CAST ( NULL AS INTEGER ) + COUNT ( * ) * - 84 + + COUNT ( * ) * + + 98 / - - 14 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 3 * ( + 5 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT ALL 39 - + + ( + - COALESCE ( + COUNT( * ), - - 55 * + - CASE - - COUNT( * ) WHEN 75 * - 70 THEN - 86 * 90 * COUNT( * ) + 22 + - 43 + - 95 ELSE NULL END + - 93, + ( + 17 ) ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL 39 - + + ( + - COALESCE ( + COUNT ( * ), - - 55 * + - CASE - - COUNT ( * ) WHEN 75 * - 70 THEN - 86 * 90 * COUNT ( * ) + 22 + - 43 + - 95 ELSE NULL END + - 93, + ( + 17 ) ) ) AS col1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9433
SELECT 79 * 72 AS col1, - 91 * + 70 / - + CAST( NULL AS SIGNED )
----
5688
NULL

skipif mysql # not compatible
query II rowsort label-9433
SELECT 79 * 72 AS col1, - 91 * + 70 / - + CAST ( NULL AS INTEGER )
----
5688
NULL

query I rowsort
SELECT 15 * + ( + 3 ) * - 70 - - 51 AS col0
----
-3099

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9435
SELECT MAX( 95 ) + ( + MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9435
SELECT MAX ( 95 ) + ( + MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9436
SELECT CAST( NULL AS SIGNED ) * + ( - 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9436
SELECT CAST ( NULL AS INTEGER ) * + ( - 80 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9437
SELECT + MAX( 8 ) AS col1, + COUNT( * ) * - 8 AS col1
----
8
-8

skipif mysql # not compatible
query II rowsort label-9437
SELECT + MAX ( 8 ) AS col1, + COUNT ( * ) * - 8 AS col1
----
8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT MIN( - + 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-9438
SELECT MIN ( - + 32 )
----
-32

query I rowsort
SELECT DISTINCT - 43 col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT ( + 95 ) * - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-9440
SELECT ( + 95 ) * - COUNT ( * )
----
-95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9441
SELECT ALL CAST( NULL AS SIGNED ) * - 21, COALESCE ( - ( 43 ), CAST( - NULLIF ( + COALESCE ( + + 67, ( 51 ) ), + - 51 ) AS SIGNED ) DIV + ( + - 72 ) * 57 + - 17, - 56 ) AS col2
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-9441
SELECT ALL CAST ( NULL AS INTEGER ) * - 21, COALESCE ( - ( 43 ), CAST ( - NULLIF ( + COALESCE ( + + 67, ( 51 ) ), + - 51 ) AS INTEGER ) / + ( + - 72 ) * 57 + - 17, - 56 ) AS col2
----
NULL
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT COUNT( - - ( - + 22 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9442
SELECT COUNT ( - - ( - + 22 ) )
----
1

query I rowsort
SELECT DISTINCT 32 * + + 84
----
2688

query I rowsort
SELECT 39 * + - 46
----
-1794

query I rowsort
SELECT ALL 67 * - 14 AS col0
----
-938

onlyif mysql # DIV for integer division: 
query I rowsort label-9446
SELECT 10 + - + 45 DIV - - 53
----
10

skipif mysql # not compatible
query I rowsort label-9446
SELECT 10 + - + 45 / - - 53
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9447
SELECT - 86 * + ( + 92 ) + - 54 - + - CAST( + + 52 AS SIGNED ) * + - COUNT( * ) - + CAST( 8 AS SIGNED ) * + 81 col0, 94 col2
----
-8666
94

skipif mysql # not compatible
query II rowsort label-9447
SELECT - 86 * + ( + 92 ) + - 54 - + - CAST ( + + 52 AS INTEGER ) * + - COUNT ( * ) - + CAST ( 8 AS INTEGER ) * + 81 col0, 94 col2
----
-8666
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT 55 - - - ( + ( - 69 ) ) * 57 * - - 25 + + + COUNT( 36 ) col0
----
98381

skipif mysql # not compatible
query I rowsort label-9448
SELECT 55 - - - ( + ( - 69 ) ) * 57 * - - 25 + + + COUNT ( 36 ) col0
----
98381

query I rowsort
SELECT ALL - 91 AS col0
----
-91

query II rowsort
SELECT 70 * + + ( - - 39 ) + - ( + + 71 ), + 80 AS col2
----
2659
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9451
SELECT ALL - CAST( MAX( + 1 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL - CAST ( MAX ( + 1 ) AS INTEGER )
----
-1

query I rowsort
SELECT 13 + + - 37 + + 27 * - + ( 94 ) AS col2
----
-2562

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT ALL 55 + + COALESCE ( COUNT( * ), - 62, + 67 * - 21 + - - COUNT( * ) ) + + 53 AS col1
----
109

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL 55 + + COALESCE ( COUNT ( * ), - 62, + 67 * - 21 + - - COUNT ( * ) ) + + 53 AS col1
----
109

query II rowsort
SELECT ALL + 53 + - - 52 AS col2, 68 - - + 15 AS col2
----
105
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9455
SELECT ALL - - MIN( + ( + 52 ) ), 82 + - + ( CAST( 77 AS SIGNED ) ) AS col2
----
52
5

skipif mysql # not compatible
query II rowsort label-9455
SELECT ALL - - MIN ( + ( + 52 ) ), 82 + - + ( CAST ( 77 AS INTEGER ) ) AS col2
----
52
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9456
SELECT ALL - - COUNT( * ) + 49 + - MAX( + 48 ) + + 27, + 93 AS col2
----
29
93

skipif mysql # not compatible
query II rowsort label-9456
SELECT ALL - - COUNT ( * ) + 49 + - MAX ( + 48 ) + + 27, + 93 AS col2
----
29
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9457
SELECT AVG ( ALL 31 ) + - CAST( NULL AS SIGNED ) + + MIN( ALL - 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9457
SELECT AVG ( ALL 31 ) + - CAST ( NULL AS INTEGER ) + + MIN ( ALL - 94 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT ALL - + SUM( + - 48 )
----
48

skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL - + SUM ( + - 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT ALL - MAX( ALL - - ( + 49 ) ) * 39
----
-1911

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL - MAX ( ALL - - ( + 49 ) ) * 39
----
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT ALL + - COALESCE ( + - 30, + 45 ) * + MAX( + ( - - 23 ) )
----
690

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL + - COALESCE ( + - 30, + 45 ) * + MAX ( + ( - - 23 ) )
----
690

query II rowsort
SELECT - + ( + 92 ) AS col2, 34 * + + 81 AS col1
----
-92
2754

query II rowsort
SELECT 70 * - - 57 AS col1, + 96 * - 38 - + 34 * + - CASE 27 WHEN - 16 * + 98 THEN NULL ELSE 74 END + - + 13
----
3990
-1145

query I rowsort
SELECT - + 13
----
-13

query I rowsort
SELECT 29 + + - 53
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT ( COUNT( * ) ) + - NULLIF ( COUNT( * ), - 35 )
----
0

skipif mysql # not compatible
query I rowsort label-9465
SELECT ( COUNT ( * ) ) + - NULLIF ( COUNT ( * ), - 35 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT ALL + - 42 * - CAST( 31 AS SIGNED )
----
1302

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL + - 42 * - CAST ( 31 AS INTEGER )
----
1302

query I rowsort
SELECT - 71 + NULLIF ( + 90, - 94 + + 25 ) * + 48 AS col1
----
4249

query I rowsort
SELECT - 43 AS col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9469
SELECT ALL COUNT( DISTINCT 97 ) + CAST( 61 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL COUNT ( DISTINCT 97 ) + CAST ( 61 AS INTEGER )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT - COUNT( * ) * + 60 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-9470
SELECT - COUNT ( * ) * + 60 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL + COUNT( * ) - COUNT( * ) + + 85 - - 2 + + - 62 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL + COUNT ( * ) - COUNT ( * ) + + 85 - - 2 + + - 62 AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9472
SELECT + CASE + - 70 WHEN 7 THEN NULL WHEN - + 98 * - 61 THEN - + NULLIF ( + ( 41 ), - + 29 ) * - COALESCE ( + CAST( NULL AS SIGNED ), - 13 ) END AS col1, 41 AS col1
----
NULL
41

skipif mysql # not compatible
query II rowsort label-9472
SELECT + CASE + - 70 WHEN 7 THEN NULL WHEN - + 98 * - 61 THEN - + NULLIF ( + ( 41 ), - + 29 ) * - COALESCE ( + CAST ( NULL AS INTEGER ), - 13 ) END AS col1, 41 AS col1
----
NULL
41

query I rowsort
SELECT - - 62 AS col2
----
62

query II rowsort
SELECT 12 AS col2, 52
----
12
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9475
SELECT - ( 35 ) + 51 DIV + 20 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-9475
SELECT - ( 35 ) + 51 / + 20 AS col2
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-9476
SELECT - 22 DIV + 5
----
-4

skipif mysql # not compatible
query I rowsort label-9476
SELECT - 22 / + 5
----
-4

query I rowsort
SELECT + 28 * + + 88 * - 75
----
-184800

query I rowsort
SELECT - 39 + - - 10
----
-29

query I rowsort
SELECT + 4 + - + 62 AS col0
----
-58

query I rowsort
SELECT DISTINCT 68 * - 21 * NULLIF ( - 57, + 96 * + 26 )
----
81396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9481
SELECT - 92 / - - 58 * - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT - 92 / - - 58 * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9482
SELECT ALL - NULLIF ( + + 12, + 48 + + - 58 * - SUM( - CAST( NULL AS DECIMAL ) ) ) * - SUM( ALL ( + 63 ) ) col0, 28 * - - 94 + + - 30 + + + MAX( - 33 ) + - 58 * - CAST( - 31 AS SIGNED ) * - 0 * - CAST( NULL AS SIGNED ) * 90 - + + CAST( NULL AS SIGNED ) AS col2
----
756
NULL

skipif mysql # not compatible
query II rowsort label-9482
SELECT ALL - NULLIF ( + + 12, + 48 + + - 58 * - SUM ( - CAST ( NULL AS REAL ) ) ) * - SUM ( ALL ( + 63 ) ) col0, 28 * - - 94 + + - 30 + + + MAX ( - 33 ) + - 58 * - CAST ( - 31 AS INTEGER ) * - 0 * - CAST ( NULL AS INTEGER ) * 90 - + + CAST ( NULL AS INTEGER ) AS col2
----
756
NULL

query I rowsort
SELECT ( 18 )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9484
SELECT ALL + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 19 * 87 AS col0
----
-1653

query I rowsort
SELECT ALL + ( + + 14 ) * + 83 * + 95 AS col2
----
110390

onlyif mysql # DIV for integer division: 
query I rowsort label-9487
SELECT ALL 56 DIV + + 95
----
0

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL 56 / + + 95
----
0

query I rowsort
SELECT NULLIF ( - + 89, - 59 * - 38 ) AS col2
----
-89

query I rowsort
SELECT + 38 * + 28
----
1064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9490
SELECT NULLIF ( - + CAST( + 77 AS SIGNED ), + COUNT( DISTINCT 17 ) * 67 * - 41 )
----
-77

skipif mysql # not compatible
query I rowsort label-9490
SELECT NULLIF ( - + CAST ( + 77 AS INTEGER ), + COUNT ( DISTINCT 17 ) * 67 * - 41 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT MAX( ALL 16 ) * - COUNT( * ) + 71 + + + 19 * - 14 + + 51 + + 30 * - + 34 + - - 56 * + ( - 18 )
----
-2188

skipif mysql # not compatible
query I rowsort label-9491
SELECT MAX ( ALL 16 ) * - COUNT ( * ) + 71 + + + 19 * - 14 + + 51 + + 30 * - + 34 + - - 56 * + ( - 18 )
----
-2188

query II rowsort
SELECT DISTINCT + 91 AS col2, - 62
----
91
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT + 2 * - MAX( ALL - 59 ) * - + COALESCE ( - + 60, + - COUNT( * ) + - 66 ) + - 53 AS col2
----
7027

skipif mysql # not compatible
query I rowsort label-9493
SELECT + 2 * - MAX ( ALL - 59 ) * - + COALESCE ( - + 60, + - COUNT ( * ) + - 66 ) + - 53 AS col2
----
7027

query I rowsort
SELECT + NULLIF ( + 56, - + 85 * - 44 - + 49 + 42 / - 71 / - 27 + - ( + 93 ) / + 14 )
----
56

query I rowsort
SELECT ALL + - 10 * - CASE 61 WHEN - 16 THEN + - 8 + - 51 - - COALESCE ( - 17, - NULLIF ( + 80, - - 8 ) - 68 + + 82, - 36 * 80 * + + 40 + 95 ) * - 1 END * + 82 + - 88 - 90 * + 12
----
NULL

query I rowsort
SELECT DISTINCT + ( - 63 ) AS col0
----
-63

query I rowsort
SELECT + + 27 * + NULLIF ( - + 66, + 77 ) AS col2
----
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT ALL 3 * + COUNT( * ) + 14
----
17

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL 3 * + COUNT ( * ) + 14
----
17

query I rowsort
SELECT + ( 94 )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9500
SELECT ALL + 51 * + - 55 + COALESCE ( 76, + 62 + - 13, + 94 + 6 + COUNT( * ) + - 58 ) * 83 DIV 27
----
-2572

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL + 51 * + - 55 + COALESCE ( 76, + 62 + - 13, + 94 + 6 + COUNT ( * ) + - 58 ) * 83 / 27
----
-2572

query I rowsort
SELECT DISTINCT + 25 AS col2
----
25

query I rowsort
SELECT + 72 * - 58 + + + 29 * + - 39 AS col0
----
-5307

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT - 42 * - + 39 * - + MAX( - + 88 )
----
144144

skipif mysql # not compatible
query I rowsort label-9503
SELECT - 42 * - + 39 * - + MAX ( - + 88 )
----
144144

query II rowsort
SELECT ALL + - 12 AS col1, + 20 AS col2
----
-12
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT - SUM( DISTINCT + + 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-9505
SELECT - SUM ( DISTINCT + + 79 )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9506
SELECT DISTINCT CAST( NULL AS SIGNED ) col0, - 56 * + 30 * - 87
----
NULL
146160

skipif mysql # not compatible
query II rowsort label-9506
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0, - 56 * + 30 * - 87
----
NULL
146160

query I rowsort
SELECT ALL - 57 * + + 41 - - 81 AS col1
----
-2256

query I rowsort
SELECT + - 0 * 91 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT - - ( + MAX( + - 55 ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-9509
SELECT - - ( + MAX ( + - 55 ) ) AS col1
----
-55

query II rowsort
SELECT DISTINCT 27, - 74 AS col1
----
27
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT ALL + MIN( COALESCE ( + 80, - 11 ) ) * COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL + MIN ( COALESCE ( + 80, - 11 ) ) * COUNT ( * )
----
80

query I rowsort
SELECT ALL + 45 - + 35
----
10

query I rowsort
SELECT - 45 * - 10
----
450

query II rowsort
SELECT - 0, - 27 AS col0
----
0
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9515
SELECT + 89 + - + CAST( COUNT( * ) AS SIGNED ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-9515
SELECT + 89 + - + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT - 58 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT - 58 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9517
SELECT - - 64 AS col2, + 36 * NULLIF ( - 8, + 22 + + COUNT( * ) + - 26 / 66 - + COUNT( - - 10 ) ) * - - COUNT( DISTINCT + 83 ) + - 74 AS col2
----
64
-362

skipif mysql # not compatible
query II rowsort label-9517
SELECT - - 64 AS col2, + 36 * NULLIF ( - 8, + 22 + + COUNT ( * ) + - 26 / 66 - + COUNT ( - - 10 ) ) * - - COUNT ( DISTINCT + 83 ) + - 74 AS col2
----
64
-362

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9518
SELECT + ( + 25 ) + - COUNT( * ) * - SUM( + + 84 ) * NULLIF ( - - 62, COUNT( * ) ) DIV 28 + 61 * 30
----
2041

skipif mysql # not compatible
query I rowsort label-9518
SELECT + ( + 25 ) + - COUNT ( * ) * - SUM ( + + 84 ) * NULLIF ( - - 62, COUNT ( * ) ) / 28 + 61 * 30
----
2041

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT ALL CASE - 93 WHEN ( + 34 ) * + SUM( - 88 ) THEN - - 34 * 94 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL CASE - 93 WHEN ( + 34 ) * + SUM ( - 88 ) THEN - - 34 * 94 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9520
SELECT - CAST( + 73 AS SIGNED )
----
-73

skipif mysql # not compatible
query I rowsort label-9520
SELECT - CAST ( + 73 AS INTEGER )
----
-73

query I rowsort
SELECT - 45 + - 23 + - 86
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT DISTINCT CASE - NULLIF ( 29, - 72 ) WHEN - - MIN( ALL - 86 ) THEN - COALESCE ( 1, - 98, - COUNT( * ) ) + + - 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9522
SELECT DISTINCT CASE - NULLIF ( 29, - 72 ) WHEN - - MIN ( ALL - 86 ) THEN - COALESCE ( 1, - 98, - COUNT ( * ) ) + + - 17 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9523
SELECT DISTINCT MAX( ALL + CAST( - 82 AS SIGNED ) )
----
-82

skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT MAX ( ALL + CAST ( - 82 AS INTEGER ) )
----
-82

query I rowsort
SELECT ALL ( - - 70 )
----
70

query I rowsort
SELECT ALL ( + 26 ) col2
----
26

query I rowsort
SELECT DISTINCT ( - 76 ) col2
----
-76

query I rowsort
SELECT DISTINCT 56 * - + 80 AS col0
----
-4480

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT DISTINCT CASE + NULLIF ( 69, SUM( ALL 14 ) / - SUM( - COALESCE ( 16, + 2 / - - 98, - ( + 80 ) * - 25 + + + COALESCE ( - 31, + 51 ) ) ) + + + 50 ) WHEN + MIN( 67 ) THEN + 26 - - 40 + - + 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9528
SELECT DISTINCT CASE + NULLIF ( 69, SUM ( ALL 14 ) / - SUM ( - COALESCE ( 16, + 2 / - - 98, - ( + 80 ) * - 25 + + + COALESCE ( - 31, + 51 ) ) ) + + + 50 ) WHEN + MIN ( 67 ) THEN + 26 - - 40 + - + 59 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT - COUNT( * ) + 71 + + + 43 AS col2
----
113

skipif mysql # not compatible
query I rowsort label-9529
SELECT - COUNT ( * ) + 71 + + + 43 AS col2
----
113

query I rowsort
SELECT DISTINCT ( + 35 ) AS col2
----
35

query I rowsort
SELECT - 50 * - 42 AS col0
----
2100

onlyif mysql # aggregate syntax: 
query II rowsort label-9532
SELECT + COALESCE ( COUNT( * ), 47 - - 35, + COUNT( * ) ), 38 * - 65 AS col2
----
1
-2470

skipif mysql # not compatible
query II rowsort label-9532
SELECT + COALESCE ( COUNT ( * ), 47 - - 35, + COUNT ( * ) ), 38 * - 65 AS col2
----
1
-2470

onlyif mysql # DIV for integer division: 
query I rowsort label-9533
SELECT ALL 71 DIV + 40 + + 34
----
35

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL 71 / + 40 + + 34
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9534
SELECT - 20 - - CAST( NULL AS SIGNED ) + 17 + 82 * 52 + + COUNT( * ) / - COUNT( * ) + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-9534
SELECT - 20 - - CAST ( NULL AS INTEGER ) + 17 + 82 * 52 + + COUNT ( * ) / - COUNT ( * ) + 23
----
NULL

query II rowsort
SELECT DISTINCT + 98 * 19 AS col1, NULLIF ( 50, - NULLIF ( - - 58, + - 77 - - + 92 ) ) * 13 * - 32 col0
----
1862
-20800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9536
SELECT DISTINCT - - 67 DIV - 32 + MAX( ALL 0 ) * 79 col1
----
-2

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT - - 67 / - 32 + MAX ( ALL 0 ) * 79 col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9537
SELECT DISTINCT 17 DIV + - 72 + - - 48 * COUNT( * ) + - 7 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT 17 / + - 72 + - - 48 * COUNT ( * ) + - 7 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT COUNT( ALL + 48 )
----
1

skipif mysql # not compatible
query I rowsort label-9538
SELECT COUNT ( ALL + 48 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT - 43 + - 90 * COUNT( * )
----
-133

skipif mysql # not compatible
query I rowsort label-9539
SELECT - 43 + - 90 * COUNT ( * )
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT DISTINCT + + MIN( ALL + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-9540
SELECT DISTINCT + + MIN ( ALL + 66 )
----
66

query I rowsort
SELECT ALL + 9 AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9542
SELECT + + CAST( NULL AS SIGNED ) * 77 + COUNT( * ) / + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9542
SELECT + + CAST ( NULL AS INTEGER ) * 77 + COUNT ( * ) / + - 72
----
NULL

query I rowsort
SELECT 43 * - 33 * + - 39 AS col2
----
55341

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT ALL - 9 - - COUNT( * ) + - - ( - + CASE + 90 WHEN - 40 THEN - 39 * - 69 WHEN + 45 + - 21 THEN NULL END ) / 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL - 9 - - COUNT ( * ) + - - ( - + CASE + 90 WHEN - 40 THEN - 39 * - 69 WHEN + 45 + - 21 THEN NULL END ) / 68 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + COALESCE ( - + 53, 33 )
----
53

query I rowsort
SELECT ALL + 34 - - 43 AS col1
----
77

query I rowsort
SELECT + 93 + 72
----
165

query I rowsort
SELECT DISTINCT - - 32
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-9549
SELECT NULLIF ( + - COUNT( * ), 47 + - 49 ) + 76 AS col0, + 55
----
75
55

skipif mysql # not compatible
query II rowsort label-9549
SELECT NULLIF ( + - COUNT ( * ), 47 + - 49 ) + 76 AS col0, + 55
----
75
55

query I rowsort
SELECT ALL 46 * 3
----
138

query I rowsort
SELECT DISTINCT 85 * + 77 AS col2
----
6545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9552
SELECT DISTINCT - 27 * + CAST( 53 AS SIGNED ) AS col2
----
-1431

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT - 27 * + CAST ( 53 AS INTEGER ) AS col2
----
-1431

query I rowsort
SELECT DISTINCT - 16 * 92 + + + 58 AS col0
----
-1414

query I rowsort
SELECT - 33 + + 62
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9555
SELECT DISTINCT + CAST( + 7 AS SIGNED ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT + CAST ( + 7 AS INTEGER ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9556
SELECT ALL - 83 * + 47 * - + 2 * - COALESCE ( + + 83, 62, - COUNT( * ) ) AS col1, + 45
----
-647566
45

skipif mysql # not compatible
query II rowsort label-9556
SELECT ALL - 83 * + 47 * - + 2 * - COALESCE ( + + 83, 62, - COUNT ( * ) ) AS col1, + 45
----
-647566
45

query I rowsort
SELECT 91 + 6 AS col1
----
97

query I rowsort
SELECT 34 + + 0 col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9559
SELECT DISTINCT ( - 38 ) / + CAST( NULL AS SIGNED ) + + + 16 - + 40 + + 27 + - 47 + + 19 + - 37 * + 74 * - - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-9559
SELECT DISTINCT ( - 38 ) / + CAST ( NULL AS INTEGER ) + + + 16 - + 40 + + 27 + - 47 + + 19 + - 37 * + 74 * - - 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9560
SELECT ALL + CAST( + 39 AS SIGNED ) * COUNT( 39 )
----
39

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL + CAST ( + 39 AS INTEGER ) * COUNT ( 39 )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9561
SELECT CAST( NULL AS SIGNED ) * - ( + ( 85 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9561
SELECT CAST ( NULL AS INTEGER ) * - ( + ( 85 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9562
SELECT DISTINCT CASE + ( 40 ) WHEN 70 THEN + - COUNT( * ) * + COUNT( ALL + 36 ) * - 68 + 66 * - COUNT( * ) * + 12 WHEN 51 * 14 THEN - 65 END + + 82, 85 AS col0
----
NULL
85

skipif mysql # not compatible
query II rowsort label-9562
SELECT DISTINCT CASE + ( 40 ) WHEN 70 THEN + - COUNT ( * ) * + COUNT ( ALL + 36 ) * - 68 + 66 * - COUNT ( * ) * + 12 WHEN 51 * 14 THEN - 65 END + + 82, 85 AS col0
----
NULL
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT DISTINCT + 65 * + ( MIN( - 0 ) ) * - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT + 65 * + ( MIN ( - 0 ) ) * - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT DISTINCT ( AVG ( + + 67 ) ) / + CASE + ( + CASE WHEN 64 IS NOT NULL THEN - 75 END ) WHEN 8 * - - 54 THEN 15 * + 32 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 41 AS col2
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9566
SELECT ALL CAST( NULL AS SIGNED ) + - 70 + + - 74 * 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9566
SELECT ALL CAST ( NULL AS INTEGER ) + - 70 + + - 74 * 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT COUNT( * ) * 1 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9567
SELECT COUNT ( * ) * 1 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT 65 + - CASE + 19 WHEN + - COUNT( * ) THEN NULL WHEN COUNT( * ) * + + 80 THEN - 39 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9568
SELECT 65 + - CASE + 19 WHEN + - COUNT ( * ) THEN NULL WHEN COUNT ( * ) * + + 80 THEN - 39 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 2 + - 65 * - 63 AS col1
----
4097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9570
SELECT ALL 8 + + 22 / + 25 + + 77 + - 73 - - 64 * + + 2 * + COUNT( * ) + 21 * + 14 + CAST( NULL AS SIGNED ) + + 61 * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL 8 + + 22 / + 25 + + 77 + - 73 - - 64 * + + 2 * + COUNT ( * ) + 21 * + 14 + CAST ( NULL AS INTEGER ) + + 61 * 37
----
NULL

query I rowsort
SELECT 45 + 30
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9572
SELECT ALL CASE + 41 WHEN - + 74 + 1 THEN + 85 WHEN + 75 * - CAST( + - 81 AS SIGNED ) + + MAX( - + 26 ) THEN 49 ELSE - + 49 END * + 18 * + 96 * + ( - - COUNT( + ( - ( + 22 ) ) ) ) * - 36 AS col1
----
3048192

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL CASE + 41 WHEN - + 74 + 1 THEN + 85 WHEN + 75 * - CAST ( + - 81 AS INTEGER ) + + MAX ( - + 26 ) THEN 49 ELSE - + 49 END * + 18 * + 96 * + ( - - COUNT ( + ( - ( + 22 ) ) ) ) * - 36 AS col1
----
3048192

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL + 75 + + + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL + 75 + + + COUNT ( * )
----
76

query I rowsort
SELECT ALL - 39 + - 56
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT + + 0 * + 76 * COALESCE ( - + 51, - - 30, 86 - - + 12 + - 57 * + NULLIF ( + COALESCE ( + 36, + 28, - + COALESCE ( - 62, - - COUNT( * ), + 24 ) ), - 27 ) * + CASE MAX( + + 84 ) WHEN + 66 THEN + 20 WHEN 69 * ( - 9 ) + + - 52 + 52 + + 58 THEN + 70 WHEN + - 19 / - - COUNT( + 39 ) + 18 THEN NULL ELSE NULL END + - - 10 ) * 15 * - 98 + - 25 * 18 AS col1
----
-450

skipif mysql # not compatible
query I rowsort label-9575
SELECT + + 0 * + 76 * COALESCE ( - + 51, - - 30, 86 - - + 12 + - 57 * + NULLIF ( + COALESCE ( + 36, + 28, - + COALESCE ( - 62, - - COUNT ( * ), + 24 ) ), - 27 ) * + CASE MAX ( + + 84 ) WHEN + 66 THEN + 20 WHEN 69 * ( - 9 ) + + - 52 + 52 + + 58 THEN + 70 WHEN + - 19 / - - COUNT ( + 39 ) + 18 THEN NULL ELSE NULL END + - - 10 ) * 15 * - 98 + - 25 * 18 AS col1
----
-450

query I rowsort
SELECT DISTINCT - + ( + 33 )
----
-33

query I rowsort
SELECT - NULLIF ( - 3, 31 * 62 ) AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9578
SELECT 19 DIV 51 + 2
----
2

skipif mysql # not compatible
query I rowsort label-9578
SELECT 19 / 51 + 2
----
2

query I rowsort
SELECT - COALESCE ( - 14, - COALESCE ( - 7, 37 + + 90 ) ) * - + 16 AS col0
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT DISTINCT - - COUNT( DISTINCT - - 21 )
----
1

skipif mysql # not compatible
query I rowsort label-9580
SELECT DISTINCT - - COUNT ( DISTINCT - - 21 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9581
SELECT ALL + + COUNT( * ) - + + NULLIF ( - - CAST( - 15 AS SIGNED ), + COUNT( * ) * - CAST( NULL AS SIGNED ) ) + + CASE + CAST( NULL AS SIGNED ) WHEN + 33 / + + 69 * COUNT( * ) + CAST( NULL AS SIGNED ) * 22 + - 94 THEN + 81 WHEN 58 * + + NULLIF ( - + 20, 1 ) * - 26 * - COUNT( * ) + - + 70 + + 66 * - 44 + + 67 * COUNT( * ) * - - 35 * - 77 + + 85 THEN NULL ELSE NULL END * MAX( DISTINCT 32 ) + - 85 - SUM( - - 50 ) * + 6 * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL + + COUNT ( * ) - + + NULLIF ( - - CAST ( - 15 AS INTEGER ), + COUNT ( * ) * - CAST ( NULL AS INTEGER ) ) + + CASE + CAST ( NULL AS INTEGER ) WHEN + 33 / + + 69 * COUNT ( * ) + CAST ( NULL AS INTEGER ) * 22 + - 94 THEN + 81 WHEN 58 * + + NULLIF ( - + 20, 1 ) * - 26 * - COUNT ( * ) + - + 70 + + 66 * - 44 + + 67 * COUNT ( * ) * - - 35 * - 77 + + 85 THEN NULL ELSE NULL END * MAX ( DISTINCT 32 ) + - 85 - SUM ( - - 50 ) * + 6 * + 10
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9582
SELECT 98 * - ( + - 98 ) DIV - ( COUNT( * ) ) col2, ( + 3 )
----
-9604
3

skipif mysql # not compatible
query II rowsort label-9582
SELECT 98 * - ( + - 98 ) / - ( COUNT ( * ) ) col2, ( + 3 )
----
-9604
3

query I rowsort
SELECT DISTINCT - - 33
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT ALL - MAX( DISTINCT - - 56 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL - MAX ( DISTINCT - - 56 ) AS col0
----
-56

query I rowsort
SELECT DISTINCT + - 85 * 28 AS col0
----
-2380

query II rowsort
SELECT ALL - 47, - 84 col0
----
-47
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9587
SELECT + 11 col1, CAST( + 25 AS SIGNED ) + COUNT( * )
----
11
26

skipif mysql # not compatible
query II rowsort label-9587
SELECT + 11 col1, CAST ( + 25 AS INTEGER ) + COUNT ( * )
----
11
26

query I rowsort
SELECT DISTINCT - + 39 AS col0
----
-39

query I rowsort
SELECT - 48 * - ( + - 36 ) * + 78 AS col1
----
-134784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9590
SELECT COUNT( * ) * + CASE - NULLIF ( - CAST( + 95 AS SIGNED ), + 61 * + + 13 ) WHEN + - 6 / - 51 THEN NULL ELSE + 34 * 49 END * + 93 - + 30 AS col0
----
154908

skipif mysql # not compatible
query I rowsort label-9590
SELECT COUNT ( * ) * + CASE - NULLIF ( - CAST ( + 95 AS INTEGER ), + 61 * + + 13 ) WHEN + - 6 / - 51 THEN NULL ELSE + 34 * 49 END * + 93 - + 30 AS col0
----
154908

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9591
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9591
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9592
SELECT 47 * - 30 + - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9592
SELECT 47 * - 30 + - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 84 * + + 24
----
2016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9594
SELECT ALL CAST( - 94 AS SIGNED ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL CAST ( - 94 AS INTEGER ) AS col2
----
-94

query I rowsort
SELECT 8 col1
----
8

query I rowsort
SELECT ALL + + ( 84 ) + + 37
----
121

query II rowsort
SELECT - 69, - 34 * 11 * - 25 * - ( + 25 ) * + + 33 + 80 AS col2
----
-69
-7713670

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT ALL ( + 83 ) * + + 93 * - COUNT( * ) * + 80
----
-617520

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL ( + 83 ) * + + 93 * - COUNT ( * ) * + 80
----
-617520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9599
SELECT ALL 63 + - CAST( ( + 90 ) AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL 63 + - CAST ( ( + 90 ) AS INTEGER )
----
-27

query I rowsort
SELECT 24 - 84 + - 11 + - ( + + 13 )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9601
SELECT ALL CAST( NULL AS SIGNED ) + - - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL CAST ( NULL AS INTEGER ) + - - 85
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9602
SELECT ALL CASE - - 27 WHEN 83 * + ( - CASE - MAX( DISTINCT 12 ) WHEN - - 7 THEN - 25 ELSE NULL END ) + + COUNT( * ) THEN + 48 ELSE NULL END + 23, + MAX( ALL 98 ) - + COALESCE ( 6, + - ( - 31 ), + 0 ) col0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-9602
SELECT ALL CASE - - 27 WHEN 83 * + ( - CASE - MAX ( DISTINCT 12 ) WHEN - - 7 THEN - 25 ELSE NULL END ) + + COUNT ( * ) THEN + 48 ELSE NULL END + 23, + MAX ( ALL 98 ) - + COALESCE ( 6, + - ( - 31 ), + 0 ) col0
----
NULL
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9603
SELECT 71 AS col1, + COUNT( * ) AS col1
----
71
1

skipif mysql # not compatible
query II rowsort label-9603
SELECT 71 AS col1, + COUNT ( * ) AS col1
----
71
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9604
SELECT DISTINCT CAST( NULL AS SIGNED ) + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9604
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 9 AS col2
----
NULL

query I rowsort
SELECT NULLIF ( - 5, 79 / - 49 - - 95 ) + + 69 col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT - MIN( + 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-9606
SELECT - MIN ( + 23 )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9607
SELECT DISTINCT CAST( COUNT( ALL - ( - - 11 ) ) AS SIGNED ) + - 51
----
-50

skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT CAST ( COUNT ( ALL - ( - - 11 ) ) AS INTEGER ) + - 51
----
-50

query I rowsort
SELECT 49 * - 89
----
-4361

onlyif mysql # DIV for integer division: 
query I rowsort label-9609
SELECT ALL 90 DIV + 45 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL 90 / + 45 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9610
SELECT 55 DIV - + COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-9610
SELECT 55 / - + COUNT ( * ) AS col2
----
-55

query I rowsort
SELECT DISTINCT 2 + - 36 + + 10 * + - 37
----
-404

query I rowsort
SELECT ALL 56 AS col0
----
56

query II rowsort
SELECT 39 * 3 AS col1, - 93 AS col0
----
117
-93

query II rowsort
SELECT 95, 20 AS col0
----
95
20

query I rowsort
SELECT 45 - - 18 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT - MIN( - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-9616
SELECT - MIN ( - 8 )
----
8

query II rowsort
SELECT 3 AS col0, 8 AS col2
----
3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT ALL ( - - ( + + COUNT( * ) ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL ( - - ( + + COUNT ( * ) ) ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9619
SELECT + - 24 DIV 64 + + - 77 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-9619
SELECT + - 24 / 64 + + - 77 AS col0
----
-77

query I rowsort
SELECT ALL + 24 col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT ALL + - 33 * + 95 + - - 1 + + 26 + ( + 36 ) * - 13 + - COUNT( * ) + + COUNT( * ) * + + 45 + - 19 + - 34 * 20
----
-4231

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL + - 33 * + 95 + - - 1 + + 26 + ( + 36 ) * - 13 + - COUNT ( * ) + + COUNT ( * ) * + + 45 + - 19 + - 34 * 20
----
-4231

query I rowsort
SELECT + 61 - - CASE - - 78 WHEN + 59 * + + 25 THEN - - ( - 35 ) * + 12 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9623
SELECT + + 29 AS col0, + 95 + 42 DIV - 68 + - - 52 + 48 * 61 AS col1
----
29
3075

skipif mysql # not compatible
query II rowsort label-9623
SELECT + + 29 AS col0, + 95 + 42 / - 68 + - - 52 + 48 * 61 AS col1
----
29
3075

query I rowsort
SELECT ALL + - 5
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9625
SELECT ALL + NULLIF ( + - 88, + + CAST( - + 6 AS SIGNED ) * - 57 * 15 + - 75 + - - 35 ) col0
----
-88

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL + NULLIF ( + - 88, + + CAST ( - + 6 AS INTEGER ) * - 57 * 15 + - 75 + - - 35 ) col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9626
SELECT ALL 49 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL 49 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + + 5 AS col0
----
5

query I rowsort
SELECT + - 27 + - + 19 AS col1
----
-46

query II rowsort
SELECT DISTINCT + 80 AS col2, - 82
----
80
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9630
SELECT ALL + + CAST( + NULLIF ( + COUNT( * ), - 42 ) AS SIGNED ) AS col1, 76 * 31
----
1
2356

skipif mysql # not compatible
query II rowsort label-9630
SELECT ALL + + CAST ( + NULLIF ( + COUNT ( * ), - 42 ) AS INTEGER ) AS col1, 76 * 31
----
1
2356

query I rowsort
SELECT + + 52 + - 37 + + 11 col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT - - 88 * COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-9632
SELECT - - 88 * COUNT ( * ) AS col2
----
88

query I rowsort
SELECT + 24 col0
----
24

onlyif mysql # aggregate syntax: 
query III rowsort label-9634
SELECT ALL - + 16 * - 8 + - NULLIF ( - 58, - COUNT( * ) ) * - 96 AS col2, NULLIF ( + 48, + COUNT( * ) + - + 23 - - 18 - + - 53 * + 66 * - 65 ), - 70 AS col2
----
-5440
48
-70

skipif mysql # not compatible
query III rowsort label-9634
SELECT ALL - + 16 * - 8 + - NULLIF ( - 58, - COUNT ( * ) ) * - 96 AS col2, NULLIF ( + 48, + COUNT ( * ) + - + 23 - - 18 - + - 53 * + 66 * - 65 ), - 70 AS col2
----
-5440
48
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9635
SELECT ALL + 58 * + SUM( ALL NULLIF ( + 12, 83 + - + 11 ) ) - + 72 + + - 83 + + 81 + - - 73 + + 85 DIV + 92
----
695

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL + 58 * + SUM ( ALL NULLIF ( + 12, 83 + - + 11 ) ) - + 72 + + - 83 + + 81 + - - 73 + + 85 / + 92
----
695

query I rowsort
SELECT DISTINCT - 92 * - 40 * + - ( + - 7 ) * + 4 + 3
----
103043

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT ALL + 19 + - + MAX( DISTINCT - 63 ) + + 15 + 62 * 40 AS col0
----
2577

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL + 19 + - + MAX ( DISTINCT - 63 ) + + 15 + 62 * 40 AS col0
----
2577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9638
SELECT - 51 + + AVG ( DISTINCT + - 14 ) + - CAST( NULL AS SIGNED ) - - 37 * - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-9638
SELECT - 51 + + AVG ( DISTINCT + - 14 ) + - CAST ( NULL AS INTEGER ) - - 37 * - 8
----
NULL

query I rowsort
SELECT + 15 + 57
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9640
SELECT ALL - 47 DIV 14 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL - 47 / 14 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT - MIN( ALL 88 ) * 44
----
-3872

skipif mysql # not compatible
query I rowsort label-9641
SELECT - MIN ( ALL 88 ) * 44
----
-3872

query I rowsort
SELECT DISTINCT + 2 + 11 - - 68
----
81

query I rowsort
SELECT - 97 + + 46 * 55 - + 36
----
2397

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT + ( + 33 ) * COUNT( - 32 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-9644
SELECT + ( + 33 ) * COUNT ( - 32 ) AS col0
----
33

query I rowsort
SELECT DISTINCT ( - ( - 43 ) ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT - CASE + - 72 WHEN 99 THEN + 89 * 22 * COUNT( * ) + + 90 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9646
SELECT - CASE + - 72 WHEN 99 THEN + 89 * 22 * COUNT ( * ) + + 90 + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9647
SELECT DISTINCT - 66 * 65 AS col0, + 18 * - 4 + + COUNT( * ) * - + CAST( NULL AS SIGNED )
----
-4290
NULL

skipif mysql # not compatible
query II rowsort label-9647
SELECT DISTINCT - 66 * 65 AS col0, + 18 * - 4 + + COUNT ( * ) * - + CAST ( NULL AS INTEGER )
----
-4290
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9648
SELECT ALL CAST( - + COUNT( ALL - 28 ) AS SIGNED ) AS col2, 55
----
-1
55

skipif mysql # not compatible
query II rowsort label-9648
SELECT ALL CAST ( - + COUNT ( ALL - 28 ) AS INTEGER ) AS col2, 55
----
-1
55

query I rowsort
SELECT - 61 + - 15 + 0 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT - 19 - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-9650
SELECT - 19 - COUNT ( * )
----
-20

query I rowsort
SELECT + 25 * + - 72 * 50
----
-90000

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT - 37 + + COUNT( * ) col2
----
-36

skipif mysql # not compatible
query I rowsort label-9652
SELECT - 37 + + COUNT ( * ) col2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9653
SELECT DISTINCT 49 - - - 31 + + 64 * CAST( - + 42 AS SIGNED ) + 21
----
-2649

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT 49 - - - 31 + + 64 * CAST ( - + 42 AS INTEGER ) + 21
----
-2649

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT - SUM( + 77 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-9654
SELECT - SUM ( + 77 ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT + + COUNT( * ) + - 99 * - 28 AS col2
----
2773

skipif mysql # not compatible
query I rowsort label-9655
SELECT + + COUNT ( * ) + - 99 * - 28 AS col2
----
2773

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9656
SELECT + - 42 + 42 * + COUNT( * ) * - - NULLIF ( + 15, + 69 + + COALESCE ( + + CAST( NULL AS SIGNED ), 49, + COALESCE ( - 76, COUNT( * ) ) / 35 + 12 ) )
----
588

skipif mysql # not compatible
query I rowsort label-9656
SELECT + - 42 + 42 * + COUNT ( * ) * - - NULLIF ( + 15, + 69 + + COALESCE ( + + CAST ( NULL AS INTEGER ), 49, + COALESCE ( - 76, COUNT ( * ) ) / 35 + 12 ) )
----
588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9657
SELECT 83 * 24 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9657
SELECT 83 * 24 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - 38
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9659
SELECT + - 97 * 82 DIV - MIN( ALL 73 )
----
108

skipif mysql # not compatible
query I rowsort label-9659
SELECT + - 97 * 82 / - MIN ( ALL 73 )
----
108

query I rowsort
SELECT ALL + - 56 AS col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9661
SELECT DISTINCT + NULLIF ( ( SUM( ALL + + CASE + 30 WHEN + 64 * - 69 THEN - + 38 * 69 ELSE + 59 DIV 62 END ) ), - MIN( + 94 ) + 1 ) DIV CAST( 88 AS SIGNED ) * - - CAST( 94 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT + NULLIF ( ( SUM ( ALL + + CASE + 30 WHEN + 64 * - 69 THEN - + 38 * 69 ELSE + 59 / 62 END ) ), - MIN ( + 94 ) + 1 ) / CAST ( 88 AS INTEGER ) * - - CAST ( 94 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT - CASE - + ( - 72 ) WHEN AVG ( 72 ) + + 5 * + - ( + 19 ) THEN - - 44 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9663
SELECT + + 17 / MAX( + 55 ) * + + CAST( NULL AS SIGNED ) - 26 * COUNT( * ) * + CAST( 44 AS SIGNED ) * + - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9663
SELECT + + 17 / MAX ( + 55 ) * + + CAST ( NULL AS INTEGER ) - 26 * COUNT ( * ) * + CAST ( 44 AS INTEGER ) * + - 40 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9664
SELECT + NULLIF ( 37, - 46 + - + 98 + + - CAST( NULL AS SIGNED ) + + - COUNT( * ) ) * - CASE - 30 WHEN - ( 79 ) THEN + + 74 * 58 + - 14 WHEN + COUNT( * ) THEN - - CAST( + 38 AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9664
SELECT + NULLIF ( 37, - 46 + - + 98 + + - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) ) * - CASE - 30 WHEN - ( 79 ) THEN + + 74 * 58 + - 14 WHEN + COUNT ( * ) THEN - - CAST ( + 38 AS INTEGER ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9665
SELECT 1 / + CAST( + - COUNT( * ) AS SIGNED ) + - 82 + CAST( NULL AS DECIMAL ) - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9665
SELECT 1 / + CAST ( + - COUNT ( * ) AS INTEGER ) + - 82 + CAST ( NULL AS REAL ) - 42
----
NULL

query I rowsort
SELECT ALL 78 * + 17 col1
----
1326

query I rowsort
SELECT + 53 * 16 AS col1
----
848

query I rowsort
SELECT DISTINCT + - 96 AS col0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9669
SELECT DISTINCT - 47 DIV - 60 - - - 28 + - 22 * - - ( - 71 ) + + ( 63 ) + + 83 - + 37 * - - 46
----
-22

skipif mysql # not compatible
query I rowsort label-9669
SELECT DISTINCT - 47 / - 60 - - - 28 + - 22 * - - ( - 71 ) + + ( 63 ) + + 83 - + 37 * - - 46
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9670
SELECT ALL + 11 * - - COUNT( * ) + 46 + CAST( NULL AS SIGNED ) * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL + 11 * - - COUNT ( * ) + 46 + CAST ( NULL AS INTEGER ) * 93
----
NULL

query I rowsort
SELECT + - 76 AS col1
----
-76

query I rowsort
SELECT ALL + + 45
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9673
SELECT ALL + 3 * - CAST( NULL AS SIGNED ) + + + 81 - + AVG ( DISTINCT + 63 ) * - COUNT( * ) + ( 18 ) - 76 + + 93 + + ( - 61 ) * - CAST( + 36 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL + 3 * - CAST ( NULL AS INTEGER ) + + + 81 - + AVG ( DISTINCT + 63 ) * - COUNT ( * ) + ( 18 ) - 76 + + 93 + + ( - 61 ) * - CAST ( + 36 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + + 65 * - 4 * + 82 + - + 32 AS col2
----
-21352

query I rowsort
SELECT ALL + - 28 AS col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9676
SELECT DISTINCT + - 40 * - - 51 * COUNT( * ) * + 38 - - 74 * + 28 + COUNT( * ) + CASE 37 WHEN - + 46 THEN 53 END * - + 72 * + 63 / + + CAST( + - 40 AS SIGNED ) - - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT DISTINCT + - 40 * - - 51 * COUNT ( * ) * + 38 - - 74 * + 28 + COUNT ( * ) + CASE 37 WHEN - + 46 THEN 53 END * - + 72 * + 63 / + + CAST ( + - 40 AS INTEGER ) - - 71
----
NULL

query I rowsort
SELECT + ( + + 48 )
----
48

query I rowsort
SELECT ( + 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT DISTINCT + SUM( - + 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT + SUM ( - + 46 ) AS col2
----
-46

query I rowsort
SELECT 51 * 53 - 22 + - 8
----
2673

query I rowsort
SELECT + 10 - - + 97
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-9682
SELECT + 77 AS col0, COUNT( ALL - 59 ) AS col2
----
77
1

skipif mysql # not compatible
query II rowsort label-9682
SELECT + 77 AS col0, COUNT ( ALL - 59 ) AS col2
----
77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ALL + COUNT( * ) * - 33 + - 25
----
-58

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL + COUNT ( * ) * - 33 + - 25
----
-58

query I rowsort
SELECT - 3 * 33 AS col1
----
-99

query I rowsort
SELECT DISTINCT - 43 * + 53
----
-2279

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT ALL ( + 73 ) * + COALESCE ( + ( - 40 ), MAX( - 72 ) ) * + 3 + - + 23 * + 33 * - 79 - + 30 + - - 72 - 45 AS col0
----
51198

skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL ( + 73 ) * + COALESCE ( + ( - 40 ), MAX ( - 72 ) ) * + 3 + - + 23 * + 33 * - 79 - + 30 + - - 72 - 45 AS col0
----
51198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9687
SELECT DISTINCT - MIN( + + 61 ), CAST( NULL AS SIGNED ) col0, - COUNT( * ) AS col1
----
-61
NULL
-1

skipif mysql # not compatible
query III rowsort label-9687
SELECT DISTINCT - MIN ( + + 61 ), CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) AS col1
----
-61
NULL
-1

query I rowsort
SELECT ALL - - 19 AS col2
----
19

query I rowsort
SELECT + 94 col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9690
SELECT 99 DIV + 48 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9690
SELECT 99 / + 48 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT 83 * + ( - ( + COUNT( * ) ) ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-9691
SELECT 83 * + ( - ( + COUNT ( * ) ) ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT ALL 25 * COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL 25 * COUNT ( * )
----
25

query I rowsort
SELECT DISTINCT 64 col2
----
64

query I rowsort
SELECT DISTINCT 88 AS col2
----
88

query I rowsort
SELECT + + 67 AS col1
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-9696
SELECT DISTINCT + - 52, - COUNT( * ) + + COUNT( * ) AS col0
----
-52
0

skipif mysql # not compatible
query II rowsort label-9696
SELECT DISTINCT + - 52, - COUNT ( * ) + + COUNT ( * ) AS col0
----
-52
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT MIN( ( - 74 ) ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-9697
SELECT MIN ( ( - 74 ) ) AS col0
----
-74

query I rowsort
SELECT ALL + 58 + + - 76
----
-18

query I rowsort
SELECT 37 col2
----
37

query I rowsort
SELECT - 33 col1
----
-33

query I rowsort
SELECT + + 18 * - - 62 * - 60
----
-66960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9702
SELECT + 14 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9702
SELECT + 14 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9703
SELECT - 96 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-9703
SELECT - 96 / 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT - 54 - MAX( - 42 ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-9704
SELECT - 54 - MAX ( - 42 ) col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT + MAX( + 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9705
SELECT + MAX ( + 41 ) AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9706
SELECT COUNT( * ) * - 59 * - + CAST( - 45 AS SIGNED )
----
-2655

skipif mysql # not compatible
query I rowsort label-9706
SELECT COUNT ( * ) * - 59 * - + CAST ( - 45 AS INTEGER )
----
-2655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9707
SELECT ALL COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT ALL MIN( ALL 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL MIN ( ALL 56 ) AS col2
----
56

query I rowsort
SELECT ALL 96 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT DISTINCT - COALESCE ( - 55, - MIN( - 34 ), - + 21 ) * + + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT - COALESCE ( - 55, - MIN ( - 34 ), - + 21 ) * + + COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT COUNT( * ) + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9711
SELECT COUNT ( * ) + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT COUNT( * ) * - 22 * + - 83 col0
----
1826

skipif mysql # not compatible
query I rowsort label-9712
SELECT COUNT ( * ) * - 22 * + - 83 col0
----
1826

query I rowsort
SELECT DISTINCT - 85 AS col1
----
-85

query I rowsort
SELECT ALL - 98 AS col0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9715
SELECT ALL + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9716
SELECT DISTINCT - CAST( ( + ( + - 86 ) ) AS SIGNED ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-9716
SELECT DISTINCT - CAST ( ( + ( + - 86 ) ) AS INTEGER ) AS col1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9717
SELECT ALL ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - - 13
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-9719
SELECT + COUNT( * ) AS col1, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-9719
SELECT + COUNT ( * ) AS col1, COUNT ( * ) AS col1
----
1
1

query II rowsort
SELECT ALL + + 2 AS col1, 78 + - 43
----
2
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9721
SELECT DISTINCT + - CAST( 87 AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT + - CAST ( 87 AS INTEGER )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9722
SELECT - 48 DIV + + MIN( ALL + 71 )
----
0

skipif mysql # not compatible
query I rowsort label-9722
SELECT - 48 / + + MIN ( ALL + 71 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT + 68 + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-9723
SELECT + 68 + COUNT ( * )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT - 14 - + + MAX( ALL 22 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9724
SELECT - 14 - + + MAX ( ALL 22 ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT ALL SUM( + 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL SUM ( + 83 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT ALL SUM( ALL + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-9726
SELECT ALL SUM ( ALL + 89 )
----
89

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9727
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1, + 13 AS col1
----
NULL
13

skipif mysql # not compatible
query II rowsort label-9727
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS col1, + 13 AS col1
----
NULL
13

query I rowsort
SELECT ALL - - NULLIF ( 78, - - 91 * + - 64 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT 42 + MAX( - 81 ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-9729
SELECT 42 + MAX ( - 81 ) col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT - MAX( DISTINCT 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-9730
SELECT - MAX ( DISTINCT 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT COUNT( * ) * + 72
----
72

skipif mysql # not compatible
query I rowsort label-9731
SELECT COUNT ( * ) * + 72
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9732
SELECT 56 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9732
SELECT 56 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 27 * - 73
----
-1971

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT ( - 71 ) * - COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-9734
SELECT ( - 71 ) * - COUNT ( * ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT COUNT( * ) * MAX( ALL + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-9735
SELECT COUNT ( * ) * MAX ( ALL + 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT + SUM( ALL - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-9736
SELECT + SUM ( ALL - 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT ALL - MAX( ALL + 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL - MAX ( ALL + 96 )
----
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9738
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT + CAST ( NULL AS REAL ) + 91 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9739
SELECT COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9739
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9740
SELECT - COUNT( * ) DIV + CAST( 75 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9740
SELECT - COUNT ( * ) / + CAST ( 75 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT DISTINCT + + 19
----
19

query I rowsort
SELECT DISTINCT 46 * - 94 AS col0
----
-4324

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL + SUM( DISTINCT + 9 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL + SUM ( DISTINCT + 9 ) AS col2
----
9

query I rowsort
SELECT - 44 AS col1
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9745
SELECT ALL + - 70 DIV 52 - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-9745
SELECT ALL + - 70 / 52 - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT SUM( 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-9746
SELECT SUM ( 51 ) AS col1
----
51

query I rowsort
SELECT DISTINCT + - 20 col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT 46 * - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-9748
SELECT 46 * - COUNT ( * )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT ALL - MAX( - + 43 ) * - 84 AS col1
----
-3612

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL - MAX ( - + 43 ) * - 84 AS col1
----
-3612

query II rowsort
SELECT 6, 99 AS col1
----
6
99

query I rowsort
SELECT + 29 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT COUNT( * ) * - 77 + - + ( - 63 )
----
-14

skipif mysql # not compatible
query I rowsort label-9752
SELECT COUNT ( * ) * - 77 + - + ( - 63 )
----
-14

query I rowsort
SELECT DISTINCT - 13 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT - COUNT( DISTINCT - 87 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9754
SELECT - COUNT ( DISTINCT - 87 ) AS col1
----
-1

query I rowsort
SELECT - 97 AS col1
----
-97

query I rowsort
SELECT ALL 94 + - + 63
----
31

query I rowsort
SELECT ALL 11 col0
----
11

query I rowsort
SELECT DISTINCT ( 96 ) AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9759
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9759
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - COUNT ( * )
----
NULL

query I rowsort
SELECT - - 0 AS col0
----
0

query I rowsort
SELECT ( 51 )
----
51

query I rowsort
SELECT ALL + 10 AS col0
----
10

query I rowsort
SELECT + 21 col0
----
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9764
SELECT + CAST( NULL AS DECIMAL ) * - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9764
SELECT + CAST ( NULL AS REAL ) * - 45
----
NULL

query I rowsort
SELECT - 6 + + 97
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9766
SELECT + COUNT( * ) AS col2, - ( + 10 ) AS col0
----
1
-10

skipif mysql # not compatible
query II rowsort label-9766
SELECT + COUNT ( * ) AS col2, - ( + 10 ) AS col0
----
1
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT DISTINCT MAX( DISTINCT + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-9767
SELECT DISTINCT MAX ( DISTINCT + 10 )
----
10

query I rowsort
SELECT ALL + + 27 * - - 7
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT - SUM( + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-9769
SELECT - SUM ( + 80 )
----
-80

query I rowsort
SELECT DISTINCT + 88 AS col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9771
SELECT 78 * + - CAST( NULL AS SIGNED ) + + ( + ( + + COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9771
SELECT 78 * + - CAST ( NULL AS INTEGER ) + + ( + ( + + COUNT ( * ) ) )
----
NULL

query I rowsort
SELECT + 82 col1
----
82

query I rowsort
SELECT + 76 - + 63 AS col1
----
13

query I rowsort
SELECT - + 73 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT DISTINCT - COUNT( * ) * + 84
----
-84

skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT - COUNT ( * ) * + 84
----
-84

query I rowsort
SELECT ALL - 51 AS col0
----
-51

query I rowsort
SELECT + - 93 AS col0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9778
SELECT ALL - CAST( 6 AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL - CAST ( 6 AS INTEGER )
----
-6

query I rowsort
SELECT ALL - + 36 * + - 69
----
2484

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT DISTINCT - + COUNT( * ) + + - 46 * - + COUNT( * ) col2
----
45

skipif mysql # not compatible
query I rowsort label-9780
SELECT DISTINCT - + COUNT ( * ) + + - 46 * - + COUNT ( * ) col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9781
SELECT CAST( NULL AS SIGNED ) + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9781
SELECT CAST ( NULL AS INTEGER ) + + 2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9782
SELECT COUNT( * ) DIV - - 18
----
0

skipif mysql # not compatible
query I rowsort label-9782
SELECT COUNT ( * ) / - - 18
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9783
SELECT SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9783
SELECT SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT - 21 AS col0, 18 AS col1
----
-21
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT DISTINCT - COUNT( * ) - + 98
----
-99

skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT - COUNT ( * ) - + 98
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT + MAX( - - 78 ) col2
----
78

skipif mysql # not compatible
query I rowsort label-9786
SELECT + MAX ( - - 78 ) col2
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-9787
SELECT ALL COUNT( * ) * + COUNT( * ) AS col0, - COUNT( * ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-9787
SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col0, - COUNT ( * ) AS col0
----
1
-1

query I rowsort
SELECT + - 15 col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9789
SELECT ALL - ( - 50 ) * - CAST( NULL AS SIGNED ) - + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL - ( - 50 ) * - CAST ( NULL AS INTEGER ) - + 42
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9790
SELECT + + 32 + - CAST( + 79 AS SIGNED ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-9790
SELECT + + 32 + - CAST ( + 79 AS INTEGER ) AS col2
----
-47

query II rowsort
SELECT - 14, 50 AS col2
----
-14
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT - COUNT( * ) * - ( + ( 22 ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9792
SELECT - COUNT ( * ) * - ( + ( 22 ) ) AS col0
----
22

query I rowsort
SELECT - 76 * 77
----
-5852

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT + - COALESCE ( + - COUNT( * ), - 27 + + 83, 10 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9794
SELECT + - COALESCE ( + - COUNT ( * ), - 27 + + 83, 10 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9795
SELECT + - COUNT( * ) AS col0, 48 AS col2
----
-1
48

skipif mysql # not compatible
query II rowsort label-9795
SELECT + - COUNT ( * ) AS col0, 48 AS col2
----
-1
48

query I rowsort
SELECT ALL - + 19 AS col2
----
-19

query I rowsort
SELECT ALL - 43 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT - + MAX( - 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9798
SELECT - + MAX ( - 47 ) AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9799
SELECT DISTINCT 77 * - CAST( 91 AS SIGNED ) AS col1
----
-7007

skipif mysql # not compatible
query I rowsort label-9799
SELECT DISTINCT 77 * - CAST ( 91 AS INTEGER ) AS col1
----
-7007

query I rowsort
SELECT DISTINCT 6 + + + 86
----
92

query I rowsort
SELECT - 11 * - 61
----
671

onlyif mysql # aggregate syntax: 
query II rowsort label-9802
SELECT ALL - + COUNT( * ) AS col0, + 57
----
-1
57

skipif mysql # not compatible
query II rowsort label-9802
SELECT ALL - + COUNT ( * ) AS col0, + 57
----
-1
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9803
SELECT 55 * - 85 DIV + COUNT( * ) col0
----
-4675

skipif mysql # not compatible
query I rowsort label-9803
SELECT 55 * - 85 / + COUNT ( * ) col0
----
-4675

onlyif mysql # aggregate syntax: 
query II rowsort label-9804
SELECT ALL + 24 + COUNT( * ), + COUNT( * ) + - - 8 AS col2
----
25
9

skipif mysql # not compatible
query II rowsort label-9804
SELECT ALL + 24 + COUNT ( * ), + COUNT ( * ) + - - 8 AS col2
----
25
9

query I rowsort
SELECT DISTINCT 30 + - + 78 * - + 23
----
1824

query I rowsort
SELECT 41 col1
----
41

query I rowsort
SELECT ALL 83 + + 89
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9808
SELECT ALL CAST( COUNT( * ) AS SIGNED ) * + 18 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * + 18 AS col2
----
18

query I rowsort
SELECT DISTINCT 57 AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9810
SELECT DISTINCT CAST( NULL AS SIGNED ) * 55 + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 55 + - 26
----
NULL

query I rowsort
SELECT + - ( + 54 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT - - COUNT( * ) + + COALESCE ( + COUNT( * ), 30 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9812
SELECT - - COUNT ( * ) + + COALESCE ( + COUNT ( * ), 30 ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9813
SELECT ALL - COUNT( * ) + - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9814
SELECT - CAST( + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9814
SELECT - CAST ( + COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT DISTINCT + 36 * - 87 AS col0
----
-3132

query I rowsort
SELECT ALL - 95 AS col0
----
-95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9817
SELECT + MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9817
SELECT + MAX ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + + 71 AS col0
----
71

query I rowsort
SELECT ( - ( - - 14 ) )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT ( - ( - COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9820
SELECT ( - ( - COUNT ( * ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT DISTINCT + ( + 27 ) * COUNT( * ) + + COUNT( * ) + + 99
----
127

skipif mysql # not compatible
query I rowsort label-9821
SELECT DISTINCT + ( + 27 ) * COUNT ( * ) + + COUNT ( * ) + + 99
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9822
SELECT DISTINCT 21 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT 21 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT ALL - MAX( DISTINCT - - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL - MAX ( DISTINCT - - 36 )
----
-36

query I rowsort
SELECT + + ( COALESCE ( + 72, - 78 ) ) AS col2
----
72

query I rowsort
SELECT 51 col0
----
51

query I rowsort
SELECT DISTINCT - 73 AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9827
SELECT CAST( NULL AS SIGNED ) / - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT CAST ( NULL AS INTEGER ) / - 96
----
NULL

query I rowsort
SELECT ALL ( + 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT - MAX( - 21 )
----
21

skipif mysql # not compatible
query I rowsort label-9829
SELECT - MAX ( - 21 )
----
21

query I rowsort
SELECT + + 49 AS col2
----
49

query I rowsort
SELECT 43 col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9832
SELECT ALL CAST( NULL AS SIGNED ), + ( - - CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9832
SELECT ALL CAST ( NULL AS INTEGER ), + ( - - CAST ( NULL AS INTEGER ) )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9833
SELECT ALL - 28 AS col2, + COUNT( * )
----
-28
1

skipif mysql # not compatible
query II rowsort label-9833
SELECT ALL - 28 AS col2, + COUNT ( * )
----
-28
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9834
SELECT ALL - CAST( - 63 AS SIGNED ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL - CAST ( - 63 AS INTEGER ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT DISTINCT - MIN( + - 71 ) * + - 63 * - + 8 AS col2
----
35784

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT - MIN ( + - 71 ) * + - 63 * - + 8 AS col2
----
35784

query I rowsort
SELECT ( + - 14 )
----
-14

query I rowsort
SELECT ALL + 95 col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9838
SELECT ALL COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9839
SELECT + ( - COUNT( * ) ) AS col1, + 35 AS col1
----
-1
35

skipif mysql # not compatible
query II rowsort label-9839
SELECT + ( - COUNT ( * ) ) AS col1, + 35 AS col1
----
-1
35

query I rowsort
SELECT DISTINCT 88 - + + 86 col1
----
2

query I rowsort
SELECT - 46 + - 27
----
-73

query I rowsort
SELECT ALL 7 AS col2
----
7

query I rowsort
SELECT DISTINCT ( 42 )
----
42

query I rowsort
SELECT + 40 * 19
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT ALL ( + - 37 ) * + - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-9845
SELECT ALL ( + - 37 ) * + - COUNT ( * )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-9846
SELECT ALL 87 DIV 5
----
17

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL 87 / 5
----
17

query I rowsort
SELECT ALL - 30 AS col0
----
-30

query I rowsort
SELECT ( + ( - - 93 ) )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT - SUM( DISTINCT + 84 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-9849
SELECT - SUM ( DISTINCT + 84 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT - SUM( + ( ( + - 44 ) ) )
----
44

skipif mysql # not compatible
query I rowsort label-9850
SELECT - SUM ( + ( ( + - 44 ) ) )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT - 76 + COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-9851
SELECT - 76 + COUNT ( * )
----
-75

query I rowsort
SELECT ( 38 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT - ( + MIN( DISTINCT + 80 ) ) * - + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-9853
SELECT - ( + MIN ( DISTINCT + 80 ) ) * - + COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-9854
SELECT ALL + COUNT( * ) col1, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-9854
SELECT ALL + COUNT ( * ) col1, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT ALL + + MIN( + ( + 30 ) )
----
30

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL + + MIN ( + ( + 30 ) )
----
30

query I rowsort
SELECT 7 col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9857
SELECT - CAST( - 65 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-9857
SELECT - CAST ( - 65 AS INTEGER )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT - ( COUNT( * ) ) + - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9858
SELECT - ( COUNT ( * ) ) + - - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT - 41 * ( - COUNT( * ) )
----
41

skipif mysql # not compatible
query I rowsort label-9859
SELECT - 41 * ( - COUNT ( * ) )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT - + 71 * - COUNT( * ) + - 80 col1
----
-9

skipif mysql # not compatible
query I rowsort label-9860
SELECT - + 71 * - COUNT ( * ) + - 80 col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT - COUNT( * ) + + + SUM( 80 )
----
79

skipif mysql # not compatible
query I rowsort label-9861
SELECT - COUNT ( * ) + + + SUM ( 80 )
----
79

query I rowsort
SELECT DISTINCT 91 AS col2
----
91

query I rowsort
SELECT DISTINCT - 73 AS col1
----
-73

query I rowsort
SELECT + 8 col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT DISTINCT + + COUNT( * ) + - - 27 * + 3
----
82

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT + + COUNT ( * ) + - - 27 * + 3
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT + - ( - + ( - - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9866
SELECT + - ( - + ( - - COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT + - SUM( + + 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-9867
SELECT + - SUM ( + + 46 )
----
-46

query I rowsort
SELECT ALL - - 83 AS col1
----
83

query I rowsort
SELECT ALL 86 AS col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9870
SELECT - COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9870
SELECT - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL 52 AS col1
----
52

query I rowsort
SELECT ALL + + 47
----
47

query I rowsort
SELECT DISTINCT 14 + 9
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9874
SELECT - + 29 DIV ( + 13 ) DIV + + 62 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9874
SELECT - + 29 / ( + 13 ) / + + 62 + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9875
SELECT ALL + - SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL + - SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT + COUNT( * ) * + 70 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9876
SELECT + COUNT ( * ) * + 70 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT ALL 88 * - COUNT( * ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL 88 * - COUNT ( * ) AS col2
----
-88

query I rowsort
SELECT NULLIF ( 19, - 69 * 63 ) AS col2
----
19

query I rowsort
SELECT DISTINCT ( - + 77 ) col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT 9 + + 87 * + + NULLIF ( - + 18, + COUNT( * ) ) * - + COUNT( * ) AS col2
----
1575

skipif mysql # not compatible
query I rowsort label-9880
SELECT 9 + + 87 * + + NULLIF ( - + 18, + COUNT ( * ) ) * - + COUNT ( * ) AS col2
----
1575

query I rowsort
SELECT 19 + 36
----
55

query I rowsort
SELECT - 77 AS col2
----
-77

query I rowsort
SELECT ALL 39 col2
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-9884
SELECT DISTINCT - 97 AS col2, - COUNT( * )
----
-97
-1

skipif mysql # not compatible
query II rowsort label-9884
SELECT DISTINCT - 97 AS col2, - COUNT ( * )
----
-97
-1

query I rowsort
SELECT ALL - ( + - 2 ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9886
SELECT 84 DIV - ( + + COUNT( * ) ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-9886
SELECT 84 / - ( + + COUNT ( * ) ) AS col0
----
-84

query II rowsort
SELECT + 80 AS col2, 19 AS col0
----
80
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9888
SELECT ALL - 1 + + 79 + CAST( NULL AS SIGNED ) + + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL - 1 + + 79 + CAST ( NULL AS INTEGER ) + + - 98
----
NULL

query I rowsort
SELECT DISTINCT 40 * + 78
----
3120

query I rowsort
SELECT ALL 46 col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9891
SELECT - 23 * CAST( + COUNT( DISTINCT 15 ) AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-9891
SELECT - 23 * CAST ( + COUNT ( DISTINCT 15 ) AS INTEGER )
----
-23

query I rowsort
SELECT ALL + 73 * 97 AS col1
----
7081

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT - 29 * COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-9893
SELECT - 29 * COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-9894
SELECT DISTINCT + COUNT( * ) AS col0, 95 AS col1
----
1
95

skipif mysql # not compatible
query II rowsort label-9894
SELECT DISTINCT + COUNT ( * ) AS col0, 95 AS col1
----
1
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT ALL - COUNT( * ) * + 66 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL - COUNT ( * ) * + 66 AS col0
----
-66

query I rowsort
SELECT + 57 + - 0 AS col1
----
57

query I rowsort
SELECT ( - 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT MIN( ALL + 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-9898
SELECT MIN ( ALL + 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT ALL + ( - MAX( 71 ) ) + + + 14 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL + ( - MAX ( 71 ) ) + + + 14 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT + NULLIF ( - - 35, + COUNT( * ) )
----
35

skipif mysql # not compatible
query I rowsort label-9900
SELECT + NULLIF ( - - 35, + COUNT ( * ) )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT ALL - 92 + + - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL - 92 + + - COUNT ( * )
----
-93

query I rowsort
SELECT ALL - 73 AS col1
----
-73

query I rowsort
SELECT 48 * 87 AS col0
----
4176

query I rowsort
SELECT DISTINCT - 76 AS col1
----
-76

query I rowsort
SELECT DISTINCT - - ( + - 98 ) AS col0
----
-98

query I rowsort
SELECT 69 * - ( - - 71 ) AS col0
----
-4899

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9907
SELECT DISTINCT + COALESCE ( - CAST( NULL AS SIGNED ), COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT + COALESCE ( - CAST ( NULL AS INTEGER ), COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT 56
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT SUM( 46 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-9909
SELECT SUM ( 46 ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT ALL - MAX( DISTINCT + 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL - MAX ( DISTINCT + 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT + MIN( ALL - 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-9911
SELECT + MIN ( ALL - 34 ) AS col0
----
-34

query I rowsort
SELECT ( 53 ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT DISTINCT + + SUM( - 63 ) + - 89 AS col1
----
-152

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT + + SUM ( - 63 ) + - 89 AS col1
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT ALL - ( - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL - ( - COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT ALL + + 10 + + 8 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT DISTINCT MIN( + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT MIN ( + 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT - 41 * - - COUNT( * ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-9917
SELECT - 41 * - - COUNT ( * ) AS col0
----
-41

query II rowsort
SELECT - 18, 92 AS col2
----
-18
92

query I rowsort
SELECT + 17 - - 59
----
76

query I rowsort
SELECT ALL 23 * - 60 * + 75 AS col1
----
-103500

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT + ( + MIN( - - 29 ) ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-9921
SELECT + ( + MIN ( - - 29 ) ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT + COUNT( * ) * - 34
----
-34

skipif mysql # not compatible
query I rowsort label-9922
SELECT + COUNT ( * ) * - 34
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-9923
SELECT DISTINCT COUNT( * ) AS col2, 27 AS col0
----
1
27

skipif mysql # not compatible
query II rowsort label-9923
SELECT DISTINCT COUNT ( * ) AS col2, 27 AS col0
----
1
27

query I rowsort
SELECT ALL ( + 10 ) AS col1
----
10

query I rowsort
SELECT DISTINCT + - 55 AS col1
----
-55

query I rowsort
SELECT + + ( - - ( 52 ) )
----
52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9927
SELECT ALL - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9928
SELECT + SUM( + 57 ) AS col2, 89 AS col2
----
57
89

skipif mysql # not compatible
query II rowsort label-9928
SELECT + SUM ( + 57 ) AS col2, 89 AS col2
----
57
89

query I rowsort
SELECT NULLIF ( + 25, 5 ) + - - 70
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT COUNT( * ) + - 34 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9930
SELECT COUNT ( * ) + - 34 AS col0
----
-33

query I rowsort
SELECT ALL - - 27 AS col2
----
27

query I rowsort
SELECT + 89 col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT COUNT( * ) * 67
----
67

skipif mysql # not compatible
query I rowsort label-9933
SELECT COUNT ( * ) * 67
----
67

query I rowsort
SELECT DISTINCT + 84 * 60 AS col2
----
5040

query I rowsort
SELECT - + ( + + 96 ) AS col2
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9936
SELECT ALL + CAST( NULL AS SIGNED ) * + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9936
SELECT ALL + CAST ( NULL AS INTEGER ) * + 37
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9937
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + MAX( CAST( NULL AS SIGNED ) ) + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + MAX ( CAST ( NULL AS INTEGER ) ) + 22
----
NULL

query I rowsort
SELECT - 98 + + 88 AS col2
----
-10

query I rowsort
SELECT DISTINCT 93
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT + + COUNT( * ) * COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9940
SELECT + + COUNT ( * ) * COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9941
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9941
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( - 90, + - 97 ) AS col1
----
-90

query I rowsort
SELECT 85 col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9944
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 50 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9944
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 50 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9945
SELECT ALL CAST( NULL AS SIGNED ) AS col1, + 79
----
NULL
79

skipif mysql # not compatible
query II rowsort label-9945
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + 79
----
NULL
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9946
SELECT 98 DIV + + 23
----
4

skipif mysql # not compatible
query I rowsort label-9946
SELECT 98 / + + 23
----
4

query I rowsort
SELECT DISTINCT - 59 * - 7
----
413

query I rowsort
SELECT 67 * + 8 AS col1
----
536

query II rowsort
SELECT ALL 19 AS col0, - 46
----
19
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT DISTINCT + COUNT( * ) + - 34 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT + COUNT ( * ) + - 34 AS col0
----
-33

query I rowsort
SELECT + 45 * 3
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT ALL - - MAX( + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL - - MAX ( + 71 )
----
71

query I rowsort
SELECT DISTINCT - 99 col0
----
-99

query I rowsort
SELECT DISTINCT - 8 AS col1
----
-8

query I rowsort
SELECT 53 * + + 2 * + - 47 AS col1
----
-4982

query I rowsort
SELECT ALL 43
----
43

query I rowsort
SELECT DISTINCT + 84 AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9958
SELECT COUNT( * ) + - CAST( + ( - COUNT( * ) ) AS SIGNED ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9958
SELECT COUNT ( * ) + - CAST ( + ( - COUNT ( * ) ) AS INTEGER ) AS col1
----
2

query I rowsort
SELECT - - 92 col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9960
SELECT CAST( NULL AS SIGNED ) * - 87 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9960
SELECT CAST ( NULL AS INTEGER ) * - 87 + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9961
SELECT + + SUM( + - 97 ) AS col1, 72
----
-97
72

skipif mysql # not compatible
query II rowsort label-9961
SELECT + + SUM ( + - 97 ) AS col1, 72
----
-97
72

query I rowsort
SELECT + + 84 col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT ALL + ( ( 72 ) ) + - SUM( - + 80 ) AS col2
----
152

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL + ( ( 72 ) ) + - SUM ( - + 80 ) AS col2
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT DISTINCT ( ( - SUM( DISTINCT - ( 58 ) ) ) )
----
58

skipif mysql # not compatible
query I rowsort label-9964
SELECT DISTINCT ( ( - SUM ( DISTINCT - ( 58 ) ) ) )
----
58

query I rowsort
SELECT - - 73
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-9966
SELECT + COUNT( * ) AS col1, + 85
----
1
85

skipif mysql # not compatible
query II rowsort label-9966
SELECT + COUNT ( * ) AS col1, + 85
----
1
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT SUM( DISTINCT + ( 48 ) )
----
48

skipif mysql # not compatible
query I rowsort label-9967
SELECT SUM ( DISTINCT + ( 48 ) )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-9968
SELECT - COUNT( * ) AS col1, 43
----
-1
43

skipif mysql # not compatible
query II rowsort label-9968
SELECT - COUNT ( * ) AS col1, 43
----
-1
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9969
SELECT - ( + ( + 77 ) ) * - + COUNT( * ), - 51 AS col1
----
77
-51

skipif mysql # not compatible
query II rowsort label-9969
SELECT - ( + ( + 77 ) ) * - + COUNT ( * ), - 51 AS col1
----
77
-51

query I rowsort
SELECT ( + + 94 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT - COUNT( * ) * - 88 col2
----
88

skipif mysql # not compatible
query I rowsort label-9971
SELECT - COUNT ( * ) * - 88 col2
----
88

query I rowsort
SELECT ALL + 37 * 19 + 89 AS col0
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT ALL + COUNT( * ) * - 96 + + 4 + COUNT( * ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL + COUNT ( * ) * - 96 + + 4 + COUNT ( * ) AS col1
----
-91

query I rowsort
SELECT ALL + - 83 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT - ( + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9975
SELECT - ( + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT + - 91 + SUM( - 10 )
----
-101

skipif mysql # not compatible
query I rowsort label-9976
SELECT + - 91 + SUM ( - 10 )
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9977
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + COUNT( - - 68 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + COUNT ( - - 68 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( 2 ) AS col0
----
2

query I rowsort
SELECT ALL + - 79 - + 1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9980
SELECT + CAST( + 35 AS SIGNED ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9980
SELECT + CAST ( + 35 AS INTEGER ) AS col2
----
35

query I rowsort
SELECT 71 AS col0
----
71

query III rowsort
SELECT - 4 AS col2, - 5 AS col1, + 35
----
-4
-5
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT COUNT( - + 9 )
----
1

skipif mysql # not compatible
query I rowsort label-9983
SELECT COUNT ( - + 9 )
----
1

query I rowsort
SELECT ALL - 36 col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT ALL - COUNT( - 57 ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL - COUNT ( - 57 ) * - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT ALL 62 - - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL 62 - - COUNT ( * )
----
63

query I rowsort
SELECT 78 AS col0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9988
SELECT ( COUNT( * ) ) DIV - 96 * - - 57 DIV - - COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9988
SELECT ( COUNT ( * ) ) / - 96 * - - 57 / - - COUNT ( * ) col1
----
0

query I rowsort
SELECT + + 4 col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9990
SELECT 81 DIV + 11 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9990
SELECT 81 / + 11 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT DISTINCT - - SUM( + ( + + 48 ) )
----
48

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT - - SUM ( + ( + + 48 ) )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9992
SELECT - - CAST( - + MAX( DISTINCT ( - 27 ) ) AS SIGNED ), 73 AS col1
----
27
73

skipif mysql # not compatible
query II rowsort label-9992
SELECT - - CAST ( - + MAX ( DISTINCT ( - 27 ) ) AS INTEGER ), 73 AS col1
----
27
73

query I rowsort
SELECT ALL 24 AS col2
----
24

query I rowsort
SELECT + + 91 AS col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9995
SELECT DISTINCT CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9996
SELECT - 72 DIV + MIN( + + 46 ) + 91
----
90

skipif mysql # not compatible
query I rowsort label-9996
SELECT - 72 / + MIN ( + + 46 ) + 91
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9997
SELECT - 97 * CAST( + 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9997
SELECT - 97 * CAST ( + 0 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9998
SELECT COUNT( * ) AS col2, + 49
----
1
49

skipif mysql # not compatible
query II rowsort label-9998
SELECT COUNT ( * ) AS col2, + 49
----
1
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT ALL 6 * + ( - COUNT( * ) ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-9999
SELECT ALL 6 * + ( - COUNT ( * ) ) AS col2
----
-6

