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 # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-0
SELECT ALL + 77 + - 25 + COALESCE ( 17, COUNT( * ), - NULLIF ( + 14, + - ( - 78 ) * - COUNT( * ) ) ) + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL + 77 + - 25 + COALESCE ( 17, COUNT ( * ), - NULLIF ( + 14, + - ( - 78 ) * - COUNT ( * ) ) ) + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL + + 78 + 95 AS col2
----
173

onlyif mysql # DIV for integer division: 
query I rowsort label-2
SELECT 64 DIV - - 90 + + 22 * + ( - 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2
SELECT 64 / - - 90 + + 22 * + ( - 0 ) AS col1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4
SELECT ALL + + 77 + + + 85 - + 37 DIV - 39 * - 96 DIV 66
----
162

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL + + 77 + + + 85 - + 37 / - 39 * - 96 / 66
----
162

query I rowsort
SELECT DISTINCT + 1 - - 64
----
65

query II rowsort
SELECT 64 - + - CASE + 33 WHEN + 80 * 8 * - - 62 + + 88 + - + 5 * 63 / 11 THEN - + COALESCE ( - 93, - 63 ) ELSE NULL END + - - 51 - + + 99 AS col1, 79 AS col1
----
NULL
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7
SELECT 67 * + NULLIF ( + COUNT( * ), - 37 ) / CAST( NULL AS SIGNED ), + 0 * - - 57 col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7
SELECT 67 * + NULLIF ( + COUNT ( * ), - 37 ) / CAST ( NULL AS INTEGER ), + 0 * - - 57 col1
----
NULL
0

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

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

query I rowsort
SELECT 73 - - 4
----
77

query I rowsort
SELECT NULLIF ( 77, 36 ) * + 85
----
6545

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT ALL NULLIF ( COUNT( DISTINCT 22 ), + 51 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL NULLIF ( COUNT ( DISTINCT 22 ), + 51 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-12
SELECT - COUNT( DISTINCT 11 ) + + 90, 54 col2
----
89
54

skipif mysql # not compatible
query II rowsort label-12
SELECT - COUNT ( DISTINCT 11 ) + + 90, 54 col2
----
89
54

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT ALL ( + 21 ) * MIN( ALL + + ( 36 ) )
----
756

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL ( + 21 ) * MIN ( ALL + + ( 36 ) )
----
756

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-15
SELECT ALL 25 * 6 DIV 75 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-15
SELECT ALL 25 * 6 / 75 AS col1
----
2

query I rowsort
SELECT + 30 - - 66 + + 77 AS col0
----
173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-17
SELECT ALL - 50 * + 15 * - - ( - CAST( ( + + 16 ) AS SIGNED ) )
----
12000

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL - 50 * + 15 * - - ( - CAST ( ( + + 16 ) AS INTEGER ) )
----
12000

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT - 31 * 21 + - MIN( ALL + + ( 18 ) ) AS col2
----
-669

skipif mysql # not compatible
query I rowsort label-18
SELECT - 31 * 21 + - MIN ( ALL + + ( 18 ) ) AS col2
----
-669

query I rowsort
SELECT + 24 * 75 AS col0
----
1800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-20
SELECT DISTINCT COALESCE ( + 4, - NULLIF ( + + ( - COUNT( * ) ), - - 56 * - - ( - + NULLIF ( - 60, + CAST( + - COUNT( * ) AS SIGNED ) ) ) + + 12 + NULLIF ( - 80, - COALESCE ( + 65, - CASE + - 49 WHEN + MIN( 14 ) THEN NULL WHEN 37 * 12 THEN NULL ELSE - COUNT( * ) END * 90 + ( + 0 ), + 73 ) * + + 1 ) + + 85 ) * COUNT( * ) - - 86 * + ( + 37 ) ) * + 17 + + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-20
SELECT DISTINCT COALESCE ( + 4, - NULLIF ( + + ( - COUNT ( * ) ), - - 56 * - - ( - + NULLIF ( - 60, + CAST ( + - COUNT ( * ) AS INTEGER ) ) ) + + 12 + NULLIF ( - 80, - COALESCE ( + 65, - CASE + - 49 WHEN + MIN ( 14 ) THEN NULL WHEN 37 * 12 THEN NULL ELSE - COUNT ( * ) END * 90 + ( + 0 ), + 73 ) * + + 1 ) + + 85 ) * COUNT ( * ) - - 86 * + ( + 37 ) ) * + 17 + + COUNT ( * )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT DISTINCT + 79 * 79 + - 92 * SUM( ALL 99 )
----
-2867

skipif mysql # not compatible
query I rowsort label-21
SELECT DISTINCT + 79 * 79 + - 92 * SUM ( ALL 99 )
----
-2867

query II rowsort
SELECT DISTINCT + 2 * 10 + + 93 col0, + 50 * + 82
----
113
4100

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

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

query I rowsort
SELECT ALL - 73 * + - 66 + - 44 AS col0
----
4774

query I rowsort
SELECT + 96 + 36
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT + + SUM( ALL - + 70 ) * + 13 AS col0
----
-910

skipif mysql # not compatible
query I rowsort label-26
SELECT + + SUM ( ALL - + 70 ) * + 13 AS col0
----
-910

query II rowsort
SELECT ALL 48 AS col1, 67 AS col2
----
48
67

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-29
SELECT DISTINCT - + NULLIF ( - CAST( ( - 43 ) AS SIGNED ), + 1 * + + 67 ) DIV + 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-29
SELECT DISTINCT - + NULLIF ( - CAST ( ( - 43 ) AS INTEGER ), + 1 * + + 67 ) / + 97 AS col2
----
0

query I rowsort
SELECT - - 28 + - 89 AS col2
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-31
SELECT + - COUNT( DISTINCT + 77 ) * + 29 DIV ( + - 89 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-31
SELECT + - COUNT ( DISTINCT + 77 ) * + 29 / ( + - 89 ) AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-32
SELECT + + CAST( NULL AS DECIMAL ) + - - NULLIF ( + COALESCE ( + 6, + 21 ), + - 45 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-32
SELECT + + CAST ( NULL AS REAL ) + - - NULLIF ( + COALESCE ( + 6, + 21 ), + - 45 ) AS col1
----
NULL

query I rowsort
SELECT + ( + + 92 ) * + + 28 AS col1
----
2576

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT + ( + 70 ) + - 81 * - - 58 - + COUNT( + 32 ) AS col1
----
-4629

skipif mysql # not compatible
query I rowsort label-34
SELECT + ( + 70 ) + - 81 * - - 58 - + COUNT ( + 32 ) AS col1
----
-4629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-35
SELECT - 90 + 72 + + 72 * + 88 * - CASE COUNT( * ) WHEN 67 * + 99 THEN NULL WHEN + 99 THEN + ( 3 ) * - COUNT( + CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-35
SELECT - 90 + 72 + + 72 * + 88 * - CASE COUNT ( * ) WHEN 67 * + 99 THEN NULL WHEN + 99 THEN + ( 3 ) * - COUNT ( + CAST ( NULL AS INTEGER ) ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-36
SELECT ALL - COUNT( * ) * + - 6 DIV 42 col0
----
0

skipif mysql # not compatible
query I rowsort label-36
SELECT ALL - COUNT ( * ) * + - 6 / 42 col0
----
0

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

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

query I rowsort
SELECT ALL + 63 * - ( + 75 ) AS col2
----
-4725

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT ALL + MAX( ALL - + 47 ) * 81 * 1
----
-3807

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL + MAX ( ALL - + 47 ) * 81 * 1
----
-3807

query I rowsort
SELECT - 54 + + 68
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT ALL ( MAX( DISTINCT 58 ) )
----
58

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL ( MAX ( DISTINCT 58 ) )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-42
SELECT + 1 * 81 DIV - - 75
----
1

skipif mysql # not compatible
query I rowsort label-42
SELECT + 1 * 81 / - - 75
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-44
SELECT ALL + CAST( NULL AS SIGNED ) / - 32 + - + AVG ( DISTINCT - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL + CAST ( NULL AS INTEGER ) / - 32 + - + AVG ( DISTINCT - 87 )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-46
SELECT DISTINCT + 35 DIV - + 50 + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-46
SELECT DISTINCT + 35 / - + 50 + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-47
SELECT CAST( NULL AS SIGNED ) AS col2, + 17 + - 5 AS col1
----
NULL
12

skipif mysql # not compatible
query II rowsort label-47
SELECT CAST ( NULL AS INTEGER ) AS col2, + 17 + - 5 AS col1
----
NULL
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-48
SELECT DISTINCT COUNT( DISTINCT - - 87 ) DIV - 26 + 50 * + COALESCE ( 14, 0 ) + - - 79 AS col0
----
779

skipif mysql # not compatible
query I rowsort label-48
SELECT DISTINCT COUNT ( DISTINCT - - 87 ) / - 26 + 50 * + COALESCE ( 14, 0 ) + - - 79 AS col0
----
779

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT ALL COUNT( * ) / CASE + NULLIF ( + 80, + + 63 * 87 / - + 77 + 42 - + 72 * - 48 + + - COUNT( * ) / - 49 * + 85 * MIN( 98 ) * - 3 + - MIN( ALL + 88 ) + - COUNT( * ) ) WHEN 67 * + + 12 THEN - - 4 WHEN + + 57 + 70 + - - 73 THEN NULL END + COUNT( * ) + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL COUNT ( * ) / CASE + NULLIF ( + 80, + + 63 * 87 / - + 77 + 42 - + 72 * - 48 + + - COUNT ( * ) / - 49 * + 85 * MIN ( 98 ) * - 3 + - MIN ( ALL + 88 ) + - COUNT ( * ) ) WHEN 67 * + + 12 THEN - - 4 WHEN + + 57 + 70 + - - 73 THEN NULL END + COUNT ( * ) + - 20
----
NULL

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

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

query II rowsort
SELECT + 97 AS col0, 55 * + ( - 21 ) + + 89 AS col2
----
97
-1066

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-52
SELECT DISTINCT - - COUNT( * ) * - 34 + - 84 + - - 25 AS col1, COUNT( * ) * + NULLIF ( 12, + AVG ( 73 ) ) * + - COUNT( * ) + - - 98 + + 96 - - 65 + - - CAST( NULL AS DECIMAL )
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-52
SELECT DISTINCT - - COUNT ( * ) * - 34 + - 84 + - - 25 AS col1, COUNT ( * ) * + NULLIF ( 12, + AVG ( 73 ) ) * + - COUNT ( * ) + - - 98 + + 96 - - 65 + - - CAST ( NULL AS REAL )
----
-93
NULL

query I rowsort
SELECT - - 64 * + 66
----
4224

query II rowsort
SELECT + 58 AS col0, - 84 AS col2
----
58
-84

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-55
SELECT ALL CAST( NULL AS DECIMAL ) * CAST( + 47 AS SIGNED ) + - 21 * + 93 + + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL CAST ( NULL AS REAL ) * CAST ( + 47 AS INTEGER ) + - 21 * + 93 + + - 55
----
NULL

query I rowsort
SELECT 14 * - 27 - - - 28 * 92 AS col0
----
-2954

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

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

query II rowsort
SELECT + + 94 AS col1, + NULLIF ( + + 48, 57 * 88 ) + - ( + 60 )
----
94
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-59
SELECT ALL + + NULLIF ( + - COUNT( * ), - NULLIF ( 61, - 34 + COUNT( 56 ) ) ) AS col0, 44 AS col2
----
-1
44

skipif mysql # not compatible
query II rowsort label-59
SELECT ALL + + NULLIF ( + - COUNT ( * ), - NULLIF ( 61, - 34 + COUNT ( 56 ) ) ) AS col0, 44 AS col2
----
-1
44

query II rowsort
SELECT ALL - 96 * 24 - - + 74 * 8, + 17 AS col1
----
-1712
17

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-62
SELECT - ( - ( COUNT( - 97 ) ) ), 86 * 21 + + + 14 * + - 41 AS col0
----
1
1232

skipif mysql # not compatible
query II rowsort label-62
SELECT - ( - ( COUNT ( - 97 ) ) ), 86 * 21 + + + 14 * + - 41 AS col0
----
1
1232

query I rowsort
SELECT + 64 * - 74 - - 36 AS col2
----
-4700

query II rowsort
SELECT - 38 col0, 95 * - 93
----
-38
-8835

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT + 46 * MIN( 55 )
----
2530

skipif mysql # not compatible
query I rowsort label-65
SELECT + 46 * MIN ( 55 )
----
2530

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-66
SELECT + 89 col1, + CAST( + 5 AS SIGNED ) * - 64 + - 3 + - + 33
----
89
-356

skipif mysql # not compatible
query II rowsort label-66
SELECT + 89 col1, + CAST ( + 5 AS INTEGER ) * - 64 + - 3 + - + 33
----
89
-356

query I rowsort
SELECT 91 * + ( 91 ) + + 17 + - 87
----
8211

query I rowsort
SELECT DISTINCT 25 * - + 20 col1
----
-500

query II rowsort
SELECT DISTINCT 14 * + 69, 25 AS col1
----
966
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-70
SELECT DISTINCT 26 * - 68 * COUNT( + 69 ) * 6 * 94 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT 26 * - 68 * COUNT ( + 69 ) * 6 * 94 / CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-72
SELECT DISTINCT - CAST( NULL AS SIGNED ) + MAX( - COALESCE ( - CASE + 12 WHEN 83 THEN NULL WHEN + - 79 * 71 * 30 - + 96 + 44 + - COALESCE ( + 67, + 61 ) THEN - 69 ELSE NULL END, + 21 * - 13 * - 0, - 19 * - - ( + 64 ) * - 56 ) ) + + - COUNT( * ) / - 60 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-72
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + MAX ( - COALESCE ( - CASE + 12 WHEN 83 THEN NULL WHEN + - 79 * 71 * 30 - + 96 + 44 + - COALESCE ( + 67, + 61 ) THEN - 69 ELSE NULL END, + 21 * - 13 * - 0, - 19 * - - ( + 64 ) * - 56 ) ) + + - COUNT ( * ) / - 60 col0
----
NULL

query I rowsort
SELECT NULLIF ( + + 71, + - 89 ) * - 43 AS col1
----
-3053

onlyif mysql # aggregate syntax: 
query II rowsort label-74
SELECT ALL COUNT( * ) + - 77, 26 AS col1
----
-76
26

skipif mysql # not compatible
query II rowsort label-74
SELECT ALL COUNT ( * ) + - 77, 26 AS col1
----
-76
26

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-76
SELECT COALESCE ( 10, + - 18 ) + + - 97 DIV 76
----
9

skipif mysql # not compatible
query I rowsort label-76
SELECT COALESCE ( 10, + - 18 ) + + - 97 / 76
----
9

query II rowsort
SELECT 53 * - 23 col2, - 15 AS col1
----
-1219
-15

query I rowsort
SELECT 27 + 35 * - 8 * + ( - 72 )
----
20187

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT ALL 53 + - 94 - - COUNT( * ) * + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL 53 + - 94 - - COUNT ( * ) * + COUNT ( * )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-80
SELECT DISTINCT NULLIF ( + CAST( + 71 AS SIGNED ), 84 / - - 21 * - 67 * 58 * 11 ) + + + 35 * + 20 * - 83 * + 79 AS col0
----
-4589829

skipif mysql # not compatible
query I rowsort label-80
SELECT DISTINCT NULLIF ( + CAST ( + 71 AS INTEGER ), 84 / - - 21 * - 67 * 58 * 11 ) + + + 35 * + 20 * - 83 * + 79 AS col0
----
-4589829

query I rowsort
SELECT ALL + 61 + + + NULLIF ( + + 10, - 3 + - 24 * - 46 * - ( + + 61 ) ) * + 5 AS col2
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-82
SELECT - 72 DIV - 89 - - 21
----
21

skipif mysql # not compatible
query I rowsort label-82
SELECT - 72 / - 89 - - 21
----
21

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

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

query I rowsort
SELECT ALL 6 * + 70
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT 52 + - COUNT( * ) + - 7 + - 12 * - 9 - - 78
----
230

skipif mysql # not compatible
query I rowsort label-85
SELECT 52 + - COUNT ( * ) + - 7 + - 12 * - 9 - - 78
----
230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-86
SELECT DISTINCT - - 46 * + MIN( - 69 ) - 24 * + 15 DIV - COUNT( * ) AS col0
----
-2814

skipif mysql # not compatible
query I rowsort label-86
SELECT DISTINCT - - 46 * + MIN ( - 69 ) - 24 * + 15 / - COUNT ( * ) AS col0
----
-2814

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-87
SELECT ALL + - CASE - 72 WHEN + 91 THEN - 39 + - - COUNT( * ) + - ( 41 ) + + 92 + - - 51 DIV - 9 WHEN - - 12 + 7 THEN NULL ELSE + 93 * + 72 - + 92 END + 30 AS col2
----
-6574

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL + - CASE - 72 WHEN + 91 THEN - 39 + - - COUNT ( * ) + - ( 41 ) + + 92 + - - 51 / - 9 WHEN - - 12 + 7 THEN NULL ELSE + 93 * + 72 - + 92 END + 30 AS col2
----
-6574

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT + - COUNT( + 73 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-88
SELECT + - COUNT ( + 73 ) col1
----
-1

query II rowsort
SELECT - 31 + + 41 AS col2, + 94 + - 88 * 38 * + - 38
----
10
127166

query I rowsort
SELECT 83 * 65 col0
----
5395

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT - 45 + + 5 + - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-91
SELECT - 45 + + 5 + - COUNT ( * )
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-92
SELECT + 92 DIV 47 - - 98
----
99

skipif mysql # not compatible
query I rowsort label-92
SELECT + 92 / 47 - - 98
----
99

query I rowsort
SELECT + NULLIF ( + NULLIF ( - 11, - 2 + + 3 * - + 73 + - 61 ), + + 2 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT ALL - - COALESCE ( - - 0, + + 2 + 61, + + 80 - + MAX( - ( + 95 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-94
SELECT ALL - - COALESCE ( - - 0, + + 2 + 61, + + 80 - + MAX ( - ( + 95 ) ) )
----
0

query I rowsort
SELECT ( + + COALESCE ( + - 65, ( - 63 ) ) ) * + 25 * - 42 + 41 AS col1
----
68291

query I rowsort
SELECT DISTINCT + 41 * + + 31 AS col2
----
1271

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-98
SELECT DISTINCT + + 29 DIV + + NULLIF ( + 90, 75 * 60 ) * - 79 + 81 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-98
SELECT DISTINCT + + 29 / + + NULLIF ( + 90, 75 * 60 ) * - 79 + 81 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT ALL + 80 * - COUNT( * ) * - 79
----
6320

skipif mysql # not compatible
query I rowsort label-99
SELECT ALL + 80 * - COUNT ( * ) * - 79
----
6320

query I rowsort
SELECT - 56 + - 34 AS col2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-101
SELECT - 30 DIV 37 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-101
SELECT - 30 / 37 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT + + 77 * - 85 + - SUM( ALL - 34 )
----
-6511

skipif mysql # not compatible
query I rowsort label-102
SELECT + + 77 * - 85 + - SUM ( ALL - 34 )
----
-6511

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-103
SELECT + 39 * 82 DIV + MIN( - 51 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-103
SELECT + 39 * 82 / + MIN ( - 51 ) AS col2
----
-62

query II rowsort
SELECT DISTINCT 31, + 44 + + 49 col1
----
31
93

query II rowsort
SELECT ALL ( + 55 ) + - 8, 4 AS col2
----
47
4

onlyif mysql # DIV for integer division: 
query I rowsort label-106
SELECT DISTINCT ( + ( + 3 ) ) * - 19 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-106
SELECT DISTINCT ( + ( + 3 ) ) * - 19 / - 79
----
0

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

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

query II rowsort
SELECT 62 AS col1, 37
----
62
37

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-110
SELECT 8 + + 16 DIV + ( - 10 )
----
7

skipif mysql # not compatible
query I rowsort label-110
SELECT 8 + + 16 / + ( - 10 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT COUNT( * ) + + - 33 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-111
SELECT COUNT ( * ) + + - 33 AS col0
----
-32

query I rowsort
SELECT DISTINCT 1 + + 88 col0
----
89

query I rowsort
SELECT ALL ( + - ( - + 37 ) ) + COALESCE ( 27, - 27 + + ( + + 12 ), - ( + 35 ) + - 87 + + NULLIF ( + 0, - - 25 + + 72 ) ) * + 46 - - 3
----
1282

query I rowsort
SELECT ALL 36 + 53 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT NULLIF ( - 42, + SUM( DISTINCT + 39 ) ) * + 15 + + COALESCE ( - 30, + - ( - 77 ) * 0, + 91 ) AS col0
----
-660

skipif mysql # not compatible
query I rowsort label-115
SELECT NULLIF ( - 42, + SUM ( DISTINCT + 39 ) ) * + 15 + + COALESCE ( - 30, + - ( - 77 ) * 0, + 91 ) AS col0
----
-660

onlyif mysql # aggregate syntax: 
query II rowsort label-116
SELECT DISTINCT 20 AS col1, + MAX( 65 ) * COUNT( * ) col0
----
20
65

skipif mysql # not compatible
query II rowsort label-116
SELECT DISTINCT 20 AS col1, + MAX ( 65 ) * COUNT ( * ) col0
----
20
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-117
SELECT ALL 0 - - CASE - + 31 WHEN + 55 THEN - 83 - + - 12 + ( 9 ) WHEN COALESCE ( 81, + + CAST( + + 73 AS SIGNED ) ) * + 45 THEN NULL ELSE 4 DIV 96 END
----
0

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL 0 - - CASE - + 31 WHEN + 55 THEN - 83 - + - 12 + ( 9 ) WHEN COALESCE ( 81, + + CAST ( + + 73 AS INTEGER ) ) * + 45 THEN NULL ELSE 4 / 96 END
----
0

query II rowsort
SELECT DISTINCT 77, + 91 * - 61 AS col1
----
77
-5551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-119
SELECT 8 / CASE WHEN CAST( NULL AS SIGNED ) IS NOT NULL THEN - 9 + 3 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-119
SELECT 8 / CASE WHEN CAST ( NULL AS INTEGER ) IS NOT NULL THEN - 9 + 3 ELSE NULL END
----
NULL

query I rowsort
SELECT + 85 + + 61 AS col2
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-121
SELECT ALL - NULLIF ( - - 45, - 35 ) DIV + 70 * - - 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL - NULLIF ( - - 45, - 35 ) / + 70 * - - 59 AS col0
----
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-124
SELECT + 51 DIV - - 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-124
SELECT + 51 / - - 77 AS col0
----
0

query I rowsort
SELECT ALL - - 68 * + 94 AS col2
----
6392

query I rowsort
SELECT DISTINCT 44 * - 74 AS col1
----
-3256

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

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

query I rowsort
SELECT - 1 * 35
----
-35

query I rowsort
SELECT + NULLIF ( + 32, - + 54 )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-130
SELECT ALL + + 28 AS col1, NULLIF ( + + 32, - COUNT( * ) ) + + 90
----
28
122

skipif mysql # not compatible
query II rowsort label-130
SELECT ALL + + 28 AS col1, NULLIF ( + + 32, - COUNT ( * ) ) + + 90
----
28
122

query I rowsort
SELECT DISTINCT + + 51 + + 35 AS col1
----
86

query I rowsort
SELECT ALL + 35 + + 81 AS col0
----
116

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

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

query I rowsort
SELECT DISTINCT + 23 + - 40 + - 79 * + - 48 + + 94 - - 95
----
3964

query I rowsort
SELECT DISTINCT COALESCE ( - 54, + 0 ) AS col1
----
-54

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

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL COALESCE ( + CAST ( NULL AS INTEGER ), 68 )
----
68

query I rowsort
SELECT - 72 * + - 54 * + 61 AS col0
----
237168

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT ALL - 6 + 36 * + 3 * - 66 * + COUNT( * )
----
-7134

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL - 6 + 36 * + 3 * - 66 * + COUNT ( * )
----
-7134

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT DISTINCT COALESCE ( + COUNT( DISTINCT - NULLIF ( + 43, - + 69 ) ), + 19 + - 12, 33 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT COALESCE ( + COUNT ( DISTINCT - NULLIF ( + 43, - + 69 ) ), + 19 + - 12, 33 ) AS col0
----
1

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

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

query I rowsort
SELECT - 0 * - ( - + 50 )
----
0

query I rowsort
SELECT ALL - 61 - 48
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT - SUM( ALL 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-144
SELECT - SUM ( ALL 10 ) AS col2
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-145
SELECT - 6 + + + 28 - - + 40 * - COUNT( * ) DIV - + 85 * 89
----
22

skipif mysql # not compatible
query I rowsort label-145
SELECT - 6 + + + 28 - - + 40 * - COUNT ( * ) / - + 85 * 89
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT + NULLIF ( - 69, - - COUNT( DISTINCT + - 86 ) ) * - 0 + + + 57 + + + 8 * 19
----
209

skipif mysql # not compatible
query I rowsort label-146
SELECT + NULLIF ( - 69, - - COUNT ( DISTINCT + - 86 ) ) * - 0 + + + 57 + + + 8 * 19
----
209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-147
SELECT - COALESCE ( + CASE - 35 WHEN 66 * - 55 + 35 THEN + COUNT( * ) DIV - 65 DIV - 48 DIV ( - ( - CAST( - + 69 AS SIGNED ) ) ) * 29 - - 58 DIV + - NULLIF ( + 29, - - COUNT( * ) * CAST( 6 AS SIGNED ) ) + + 88 * + + 34 + + 40 WHEN - + 51 + - 1 * - 51 THEN + - 98 END, - COUNT( * ) + - 89 )
----
90

skipif mysql # not compatible
query I rowsort label-147
SELECT - COALESCE ( + CASE - 35 WHEN 66 * - 55 + 35 THEN + COUNT ( * ) / - 65 / - 48 / ( - ( - CAST ( - + 69 AS INTEGER ) ) ) * 29 - - 58 / + - NULLIF ( + 29, - - COUNT ( * ) * CAST ( 6 AS INTEGER ) ) + + 88 * + + 34 + + 40 WHEN - + 51 + - 1 * - 51 THEN + - 98 END, - COUNT ( * ) + - 89 )
----
90

query I rowsort
SELECT + ( - 58 ) * - 26 AS col0
----
1508

query I rowsort
SELECT ALL 52 * + 40
----
2080

onlyif mysql # DIV for integer division: 
query I rowsort label-150
SELECT + 22 * + + COALESCE ( + 84, COALESCE ( - 28, - 51 DIV 97 ) ) - + 47 + 11 * + 41
----
2252

skipif mysql # not compatible
query I rowsort label-150
SELECT + 22 * + + COALESCE ( + 84, COALESCE ( - 28, - 51 / 97 ) ) - + 47 + 11 * + 41
----
2252

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT + + 27 + + ( + COUNT( * ) ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-151
SELECT + + 27 + + ( + COUNT ( * ) ) AS col2
----
28

query I rowsort
SELECT + - 52 * 77 AS col0
----
-4004

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT ALL + 46 * + COUNT( * ) * - 40 AS col0
----
-1840

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL + 46 * + COUNT ( * ) * - 40 AS col0
----
-1840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-154
SELECT ALL + - CASE - 17 WHEN + 75 THEN NULL ELSE + + 28 DIV + 41 - + COUNT( * ) + + 32 + + + COUNT( * ) - 42 * - 13 END
----
-578

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL + - CASE - 17 WHEN + 75 THEN NULL ELSE + + 28 / + 41 - + COUNT ( * ) + + 32 + + + COUNT ( * ) - 42 * - 13 END
----
-578

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT + 63 + - - MIN( ALL + 38 ) AS col0
----
101

skipif mysql # not compatible
query I rowsort label-155
SELECT + 63 + - - MIN ( ALL + 38 ) AS col0
----
101

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT - ( + 89 ) * - SUM( DISTINCT 1 ) + 88 + - 94 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-157
SELECT - ( + 89 ) * - SUM ( DISTINCT 1 ) + 88 + - 94 AS col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-158
SELECT + + ( - 33 ) DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-158
SELECT + + ( - 33 ) / 88
----
0

query I rowsort
SELECT + - 0 + + 5 + + 27 AS col0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-160
SELECT + + 25 + + - 20 AS col1, + ( - COUNT( * ) ) * + 15
----
5
-15

skipif mysql # not compatible
query II rowsort label-160
SELECT + + 25 + + - 20 AS col1, + ( - COUNT ( * ) ) * + 15
----
5
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-161
SELECT ALL + CAST( 46 AS SIGNED ), + COUNT( * ) AS col0
----
46
1

skipif mysql # not compatible
query II rowsort label-161
SELECT ALL + CAST ( 46 AS INTEGER ), + COUNT ( * ) AS col0
----
46
1

query I rowsort
SELECT DISTINCT - + 86 * + - ( - 42 ) AS col2
----
-3612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-163
SELECT ALL - CASE - 44 WHEN + 84 + 99 * - - MIN( - NULLIF ( CAST( NULL AS DECIMAL ), - 69 ) ) THEN NULL ELSE + 33 END * + 29 + + - CAST( - - 85 AS SIGNED ) DIV + - COUNT( DISTINCT + - 71 ) AS col2
----
-872

skipif mysql # not compatible
query I rowsort label-163
SELECT ALL - CASE - 44 WHEN + 84 + 99 * - - MIN ( - NULLIF ( CAST ( NULL AS REAL ), - 69 ) ) THEN NULL ELSE + 33 END * + 29 + + - CAST ( - - 85 AS INTEGER ) / + - COUNT ( DISTINCT + - 71 ) AS col2
----
-872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-164
SELECT MIN( - + CAST( - 18 AS SIGNED ) ) * - 37 * - 79 + + - 70
----
52544

skipif mysql # not compatible
query I rowsort label-164
SELECT MIN ( - + CAST ( - 18 AS INTEGER ) ) * - 37 * - 79 + + - 70
----
52544

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT + - ( - - 16 ) DIV 10
----
-1

skipif mysql # not compatible
query I rowsort label-165
SELECT + - ( - - 16 ) / 10
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-166
SELECT DISTINCT - - 10 * + 52 + 99 - + - CAST( NULL AS SIGNED ) * + 8 + - 52 + COUNT( 17 ) * + - 1 + + 49 + + 57 + + - 64 * - + 53 - + 39 - + ( - - COALESCE ( + COUNT( DISTINCT + 9 ), - 60 ) ) + + 46 * + + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT - - 10 * + 52 + 99 - + - CAST ( NULL AS INTEGER ) * + 8 + - 52 + COUNT ( 17 ) * + - 1 + + 49 + + 57 + + - 64 * - + 53 - + 39 - + ( - - COALESCE ( + COUNT ( DISTINCT + 9 ), - 60 ) ) + + 46 * + + 87 AS col1
----
NULL

query I rowsort
SELECT ALL 62 * + - 36 + + 67 AS col2
----
-2165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-168
SELECT COALESCE ( ( + + CAST( NULL AS SIGNED ) ), COUNT( * ) * + CASE - CASE - 91 WHEN COUNT( * ) THEN 8 WHEN 22 THEN NULL ELSE 95 END WHEN + ( + 8 ) THEN + + COUNT( * ) + 1 - - 16 - - + 18 * 68 WHEN + NULLIF ( + COUNT( * ), + - 44 * CASE MIN( + 70 ) WHEN - COUNT( * ) / + - 3 * - 83 + + - COUNT( * ) + 28 * - 19 * - 98 THEN NULL ELSE 60 END * + CAST( NULL AS SIGNED ) ) / + 19 * + 40 THEN - - COUNT( * ) / - 2 + - 72 + + 87 END * + 37 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-168
SELECT COALESCE ( ( + + CAST ( NULL AS INTEGER ) ), COUNT ( * ) * + CASE - CASE - 91 WHEN COUNT ( * ) THEN 8 WHEN 22 THEN NULL ELSE 95 END WHEN + ( + 8 ) THEN + + COUNT ( * ) + 1 - - 16 - - + 18 * 68 WHEN + NULLIF ( + COUNT ( * ), + - 44 * CASE MIN ( + 70 ) WHEN - COUNT ( * ) / + - 3 * - 83 + + - COUNT ( * ) + 28 * - 19 * - 98 THEN NULL ELSE 60 END * + CAST ( NULL AS INTEGER ) ) / + 19 * + 40 THEN - - COUNT ( * ) / - 2 + - 72 + + 87 END * + 37 ) AS col1
----
NULL

query I rowsort
SELECT 28 * + 18 + + 63 + + + 47
----
614

query I rowsort
SELECT + 55 * + - 13 AS col0
----
-715

query I rowsort
SELECT - NULLIF ( + 77, - 95 ) * + + 2 + - 17 + + + 46 + - 50 * + ( + 64 ) * - 4 - - 10
----
12685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-172
SELECT CASE - - 84 WHEN NULLIF ( + 82, - 49 + - + 93 ) THEN NULL ELSE + 24 + - CAST( + 97 AS SIGNED ) * + - COALESCE ( COUNT( * ), - MIN( DISTINCT + 58 ) ) END
----
121

skipif mysql # not compatible
query I rowsort label-172
SELECT CASE - - 84 WHEN NULLIF ( + 82, - 49 + - + 93 ) THEN NULL ELSE + 24 + - CAST ( + 97 AS INTEGER ) * + - COALESCE ( COUNT ( * ), - MIN ( DISTINCT + 58 ) ) END
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT ALL - ( + 21 ) * + + 61 * + + COUNT( DISTINCT 65 ) + + + 11
----
-1270

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL - ( + 21 ) * + + 61 * + + COUNT ( DISTINCT 65 ) + + + 11
----
-1270

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-175
SELECT - 25 * 74 DIV + + 93 col1
----
-19

skipif mysql # not compatible
query I rowsort label-175
SELECT - 25 * 74 / + + 93 col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT DISTINCT SUM( ALL 67 )
----
67

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT SUM ( ALL 67 )
----
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT - COUNT( * ) + - 92 + + 82 * - 70 * - 83 AS col1
----
476327

skipif mysql # not compatible
query I rowsort label-178
SELECT - COUNT ( * ) + - 92 + + 82 * - 70 * - 83 AS col1
----
476327

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-179
SELECT ALL - CAST( + - 24 AS SIGNED ) * - + 57 AS col2
----
-1368

skipif mysql # not compatible
query I rowsort label-179
SELECT ALL - CAST ( + - 24 AS INTEGER ) * - + 57 AS col2
----
-1368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-180
SELECT + 89 * + 2 * CASE 72 WHEN 40 + + 70 THEN - - 2 WHEN + - 84 THEN NULL ELSE - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-180
SELECT + 89 * + 2 * CASE 72 WHEN 40 + + 70 THEN - - 2 WHEN + - 84 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 57 * 14 AS col2
----
-798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-183
SELECT - 69, + COALESCE ( - 31, - 44 - - 51 ) + COUNT( * ) + CAST( - + 42 AS SIGNED ) * 38 AS col1
----
-69
-1626

skipif mysql # not compatible
query II rowsort label-183
SELECT - 69, + COALESCE ( - 31, - 44 - - 51 ) + COUNT ( * ) + CAST ( - + 42 AS INTEGER ) * 38 AS col1
----
-69
-1626

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-185
SELECT DISTINCT - CAST( 16 AS SIGNED ) * COUNT( * ) AS col0, - 22
----
-16
-22

skipif mysql # not compatible
query II rowsort label-185
SELECT DISTINCT - CAST ( 16 AS INTEGER ) * COUNT ( * ) AS col0, - 22
----
-16
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-186
SELECT DISTINCT - - COALESCE ( + - 84, + 56, + 82 ) / - 23 * - + 53 * - - 13 + CAST( NULL AS SIGNED ) + AVG ( DISTINCT + - 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT - - COALESCE ( + - 84, + 56, + 82 ) / - 23 * - + 53 * - - 13 + CAST ( NULL AS INTEGER ) + AVG ( DISTINCT + - 2 )
----
NULL

query II rowsort
SELECT ALL 83, - 79 col1
----
83
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-188
SELECT DISTINCT - 54 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-188
SELECT DISTINCT - 54 / - 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT - + COUNT( - 58 ) + - 39 - 16 + + 2 * + ( 73 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-189
SELECT - + COUNT ( - 58 ) + - 39 - 16 + + 2 * + ( 73 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT ALL CASE - COUNT( * ) WHEN - 42 THEN + + 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL CASE - COUNT ( * ) WHEN - 42 THEN + + 32 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT - - 37 col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT + MIN( 32 ) * + 43
----
1376

skipif mysql # not compatible
query I rowsort label-193
SELECT + MIN ( 32 ) * + 43
----
1376

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT ALL + + 9 + - + 26 + CASE COUNT( * ) WHEN 51 THEN - 27 + + 33 WHEN - - 64 + + 21 + - - 13 * - 46 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-194
SELECT ALL + + 9 + - + 26 + CASE COUNT ( * ) WHEN 51 THEN - 27 + + 33 WHEN - - 64 + + 21 + - - 13 * - 46 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT DISTINCT - COUNT( * ) + + - 19 - 16
----
-36

skipif mysql # not compatible
query I rowsort label-195
SELECT DISTINCT - COUNT ( * ) + + - 19 - 16
----
-36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT DISTINCT + + 80 + COUNT( DISTINCT + - 43 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT + + 80 + COUNT ( DISTINCT + - 43 ) AS col1
----
81

query I rowsort
SELECT DISTINCT - - 67 + 28 AS col1
----
95

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

query I rowsort
SELECT - 7 + 56 - 60 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-201
SELECT 55 * - COUNT( * ) * - - 34, - ( + 57 ) * - + 57 * 30 + - 46 AS col0
----
-1870
97424

skipif mysql # not compatible
query II rowsort label-201
SELECT 55 * - COUNT ( * ) * - - 34, - ( + 57 ) * - + 57 * 30 + - 46 AS col0
----
-1870
97424

query II rowsort
SELECT ALL - NULLIF ( - 47, - 23 ) + + 94 * + 91 AS col1, 25 * 20 + - 1 + + 25 + + 35 + + ( - 26 ) AS col0
----
8601
533

query II rowsort
SELECT ALL - 72 AS col0, 87
----
-72
87

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-205
SELECT 42 * - + 92 - - - COALESCE ( + 58, COUNT( * ) + - 42 * - 89 * - 72 ) DIV + SUM( 16 )
----
-3867

skipif mysql # not compatible
query I rowsort label-205
SELECT 42 * - + 92 - - - COALESCE ( + 58, COUNT ( * ) + - 42 * - 89 * - 72 ) / + SUM ( 16 )
----
-3867

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT COUNT( * ) * - 47 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-206
SELECT COUNT ( * ) * - 47 AS col1
----
-47

query II rowsort
SELECT + 90, - 46 AS col1
----
90
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT COUNT( * ) * 13 * + 85
----
1105

skipif mysql # not compatible
query I rowsort label-208
SELECT COUNT ( * ) * 13 * + 85
----
1105

query I rowsort
SELECT ALL 37 * - 48
----
-1776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-210
SELECT DISTINCT COUNT( * ) - + - NULLIF ( CAST( + 89 AS SIGNED ), + MAX( ALL - + 84 ) ) * - 36
----
-3203

skipif mysql # not compatible
query I rowsort label-210
SELECT DISTINCT COUNT ( * ) - + - NULLIF ( CAST ( + 89 AS INTEGER ), + MAX ( ALL - + 84 ) ) * - 36
----
-3203

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT + ( + + 74 ) * NULLIF ( + COALESCE ( + - ( - COUNT( * ) ), + - 75 ), - - 84 ) - + ( - 53 ) * - - 47
----
2565

skipif mysql # not compatible
query I rowsort label-211
SELECT + ( + + 74 ) * NULLIF ( + COALESCE ( + - ( - COUNT ( * ) ), + - 75 ), - - 84 ) - + ( - 53 ) * - - 47
----
2565

query II rowsort
SELECT 64 AS col0, + 29 AS col1
----
64
29

query I rowsort
SELECT 36 * - 80 * + + 78
----
-224640

query II rowsort
SELECT - 13 col1, 87
----
-13
87

query II rowsort
SELECT DISTINCT 71 AS col2, - 47 AS col1
----
71
-47

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

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

query I rowsort
SELECT DISTINCT - 25 * - - 67
----
-1675

onlyif mysql # aggregate syntax: 
query II rowsort label-218
SELECT DISTINCT 28, COUNT( * ) * + 59 AS col0
----
28
59

skipif mysql # not compatible
query II rowsort label-218
SELECT DISTINCT 28, COUNT ( * ) * + 59 AS col0
----
28
59

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

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

query III rowsort
SELECT ALL + 88, - 17 AS col2, - - 63 + 88 AS col1
----
88
-17
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-221
SELECT 62 + MIN( - ( - - NULLIF ( - 88, + - 56 * - + 1 * - CASE 84 WHEN CAST( NULL AS SIGNED ) + - 58 THEN + 46 ELSE + 57 END ) ) )
----
150

skipif mysql # not compatible
query I rowsort label-221
SELECT 62 + MIN ( - ( - - NULLIF ( - 88, + - 56 * - + 1 * - CASE 84 WHEN CAST ( NULL AS INTEGER ) + - 58 THEN + 46 ELSE + 57 END ) ) )
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-222
SELECT 21 / + 37 * + - ( + MAX( + 31 ) ) + + COUNT( * ) * + CASE + COUNT( 76 ) WHEN - - 43 THEN 69 * - 96 + - 5 ELSE NULL END * CAST( + ( + NULLIF ( - 57, - + 21 * - 34 + - ( + MIN( ALL 95 ) ) * - + COALESCE ( + 8, + + 42 + - 75, - + 16 * + 34 ) * MAX( 60 ) * 71 ) ) AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-222
SELECT 21 / + 37 * + - ( + MAX ( + 31 ) ) + + COUNT ( * ) * + CASE + COUNT ( 76 ) WHEN - - 43 THEN 69 * - 96 + - 5 ELSE NULL END * CAST ( + ( + NULLIF ( - 57, - + 21 * - 34 + - ( + MIN ( ALL 95 ) ) * - + COALESCE ( + 8, + + 42 + - 75, - + 16 * + 34 ) * MAX ( 60 ) * 71 ) ) AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 64 + + 18 + - + 21 * 35 * - ( 55 )
----
40379

query II rowsort
SELECT - 98 + - 86 * - 68 * 85, 58 + + 68 * - 45 AS col0
----
496982
-3002

query II rowsort
SELECT 5 AS col2, 57 * - 76 * 55 * - 62 * - + 15 AS col2
----
5
-221581800

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT DISTINCT + ( + 45 ) + - 46 + COUNT( ALL - 55 )
----
0

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT + ( + 45 ) + - 46 + COUNT ( ALL - 55 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-227
SELECT ALL - 72 + + ( 48 ) + + 84 * - COUNT( * ) * - COALESCE ( - SUM( DISTINCT - 99 ), + - COUNT( * ) DIV - 34 * - 25 )
----
8292

skipif mysql # not compatible
query I rowsort label-227
SELECT ALL - 72 + + ( 48 ) + + 84 * - COUNT ( * ) * - COALESCE ( - SUM ( DISTINCT - 99 ), + - COUNT ( * ) / - 34 * - 25 )
----
8292

onlyif mysql # aggregate syntax: 
query II rowsort label-228
SELECT ALL 24 AS col2, COUNT( * ) * 91 - - 25 * - 55 * + 55 * 46
----
24
-3478659

skipif mysql # not compatible
query II rowsort label-228
SELECT ALL 24 AS col2, COUNT ( * ) * 91 - - 25 * - 55 * + 55 * 46
----
24
-3478659

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT 0 + - + SUM( ALL + 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-229
SELECT 0 + - + SUM ( ALL + 15 ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-230
SELECT ALL + COUNT( * ) + 68 * + - ( - 67 ), 0 * + MIN( 76 ) AS col2
----
4557
0

skipif mysql # not compatible
query II rowsort label-230
SELECT ALL + COUNT ( * ) + 68 * + - ( - 67 ), 0 * + MIN ( 76 ) AS col2
----
4557
0

onlyif mysql # aggregate syntax: 
query II rowsort label-231
SELECT NULLIF ( + COUNT( 61 ), + 27 * 84 ) * 8 * 56 AS col2, - 6 + - 94
----
448
-100

skipif mysql # not compatible
query II rowsort label-231
SELECT NULLIF ( + COUNT ( 61 ), + 27 * 84 ) * 8 * 56 AS col2, - 6 + - 94
----
448
-100

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-233
SELECT ALL - 23 + 64 DIV - 46 + 9 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL - 23 + 64 / - 46 + 9 AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-234
SELECT + - CASE - + 71 WHEN - - 33 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-234
SELECT + - CASE - + 71 WHEN - - 33 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT 11 * - 5 col1, + 80
----
-55
80

onlyif mysql # aggregate syntax: 
query II rowsort label-236
SELECT COUNT( * ) AS col1, 47 * + 70 AS col0
----
1
3290

skipif mysql # not compatible
query II rowsort label-236
SELECT COUNT ( * ) AS col1, 47 * + 70 AS col0
----
1
3290

query I rowsort
SELECT 3 + - + 49 + - - 63 AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-238
SELECT - CAST( 57 AS SIGNED ) * + 92 - MAX( - 85 ) col2
----
-5159

skipif mysql # not compatible
query I rowsort label-238
SELECT - CAST ( 57 AS INTEGER ) * + 92 - MAX ( - 85 ) col2
----
-5159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-239
SELECT ALL COUNT( * ) * + - 59 DIV 86 DIV - + COUNT( * ) * - + 96 * + CAST( - - 54 AS SIGNED ) DIV NULLIF ( 44, 9 * - - 20 + + 52 )
----
0

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL COUNT ( * ) * + - 59 / 86 / - + COUNT ( * ) * - + 96 * + CAST ( - - 54 AS INTEGER ) / NULLIF ( 44, 9 * - - 20 + + 52 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-240
SELECT 27 * - CASE + - 72 WHEN + 5 * - - 41 THEN + - 63 WHEN - 99 THEN - 88 ELSE NULL END * + 35 * + 56 / 78 * + - 70 + + + CAST( + 97 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-240
SELECT 27 * - CASE + - 72 WHEN + 5 * - - 41 THEN + - 63 WHEN - 99 THEN - 88 ELSE NULL END * + 35 * + 56 / 78 * + - 70 + + + CAST ( + 97 AS INTEGER ) AS col1
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-242
SELECT DISTINCT - CAST ( + 16 AS INTEGER ) col2
----
-16

query I rowsort
SELECT 17 * + 0 * + + 47 * 1 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-244
SELECT 36 DIV - - 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-244
SELECT 36 / - - 37 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT SUM( ALL ( + 61 ) ) * + + 16
----
976

skipif mysql # not compatible
query I rowsort label-245
SELECT SUM ( ALL ( + 61 ) ) * + + 16
----
976

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT - 52 * COUNT( * ) * + 53 + - 66
----
-2822

skipif mysql # not compatible
query I rowsort label-246
SELECT - 52 * COUNT ( * ) * + 53 + - 66
----
-2822

query I rowsort
SELECT ALL 29 * 12 AS col0
----
348

query I rowsort
SELECT ALL 23 + + 48 * 87 col0
----
4199

query I rowsort
SELECT 77 + 53
----
130

query II rowsort
SELECT ALL 94 * - 22, 84 AS col2
----
-2068
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-251
SELECT COUNT( ALL + ( - - 50 ) ) DIV - MIN( DISTINCT 32 ), - 2 AS col1
----
0
-2

skipif mysql # not compatible
query II rowsort label-251
SELECT COUNT ( ALL + ( - - 50 ) ) / - MIN ( DISTINCT 32 ), - 2 AS col1
----
0
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT DISTINCT - ( SUM( + - 28 ) ) + - 40 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-253
SELECT DISTINCT - ( SUM ( + - 28 ) ) + - 40 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT - - 82 + - 5 + - + SUM( - - 91 ) - + + ( - 74 )
----
60

skipif mysql # not compatible
query I rowsort label-254
SELECT - - 82 + - 5 + - + SUM ( - - 91 ) - + + ( - 74 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT DISTINCT 61 + - 46 * + COUNT( * ) * + 80
----
-3619

skipif mysql # not compatible
query I rowsort label-255
SELECT DISTINCT 61 + - 46 * + COUNT ( * ) * + 80
----
-3619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-256
SELECT ALL + NULLIF ( 97, + 22 * - CAST( - + 70 AS SIGNED ) ) + + - COUNT( - + CAST( NULL AS SIGNED ) ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-256
SELECT ALL + NULLIF ( 97, + 22 * - CAST ( - + 70 AS INTEGER ) ) + + - COUNT ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
97

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

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

query I rowsort
SELECT ALL - 32 + 88 AS col1
----
56

query I rowsort
SELECT DISTINCT 83 + - 57 * 40 + - 35 * + 3 AS col2
----
-2302

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT ALL + - COUNT( * ) + - 90 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL + - COUNT ( * ) + - 90 AS col2
----
-91

query I rowsort
SELECT + 98 * - 76 * 96 * + + 97 AS col1
----
-69355776

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT - - CASE + ( + NULLIF ( COUNT( * ), 27 * 38 * - COUNT( * ) * - 83 - - ( + 65 ) + AVG ( DISTINCT - - 36 ) + - - 56 * 63 - - - 38 ) ) WHEN - 31 THEN + 14 / - 55 - + - 69 / COUNT( * ) * + 3 + - 36 END * + - 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-262
SELECT - - CASE + ( + NULLIF ( COUNT ( * ), 27 * 38 * - COUNT ( * ) * - 83 - - ( + 65 ) + AVG ( DISTINCT - - 36 ) + - - 56 * 63 - - - 38 ) ) WHEN - 31 THEN + 14 / - 55 - + - 69 / COUNT ( * ) * + 3 + - 36 END * + - 84 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( - 6 ) col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT DISTINCT + 77 * MAX( + - 30 ) - + 27 AS col0
----
-2337

skipif mysql # not compatible
query I rowsort label-264
SELECT DISTINCT + 77 * MAX ( + - 30 ) - + 27 AS col0
----
-2337

onlyif mysql # DIV for integer division: 
query I rowsort label-265
SELECT ALL + 15 DIV - 72 * - 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL + 15 / - 72 * - 75 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT DISTINCT MAX( 77 ) * - 29 - COUNT( * )
----
-2234

skipif mysql # not compatible
query I rowsort label-266
SELECT DISTINCT MAX ( 77 ) * - 29 - COUNT ( * )
----
-2234

query I rowsort
SELECT + 13 * + 8 AS col2
----
104

query I rowsort
SELECT - 90 * + 12 AS col1
----
-1080

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT - SUM( 98 ) - - 76 + - 78 AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-269
SELECT - SUM ( 98 ) - - 76 + - 78 AS col1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT COALESCE ( + + COUNT( * ), + MIN( ALL - 54 ) + + - 17 )
----
1

skipif mysql # not compatible
query I rowsort label-270
SELECT COALESCE ( + + COUNT ( * ), + MIN ( ALL - 54 ) + + - 17 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-271
SELECT NULLIF ( - SUM( DISTINCT + CAST( - 30 AS SIGNED ) ), + COUNT( * ) + - 50 ) AS col0, - 19 col2
----
30
-19

skipif mysql # not compatible
query II rowsort label-271
SELECT NULLIF ( - SUM ( DISTINCT + CAST ( - 30 AS INTEGER ) ), + COUNT ( * ) + - 50 ) AS col0, - 19 col2
----
30
-19

query I rowsort
SELECT ALL + 43 * - 6
----
-258

query I rowsort
SELECT - 59 * 36 * 72 AS col1
----
-152928

query II rowsort
SELECT + 9 AS col2, 97
----
9
97

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT ALL COUNT( * ) * 82 + - 10 * - 43 + COUNT( * ) + 73 + + + 26
----
612

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL COUNT ( * ) * 82 + - 10 * - 43 + COUNT ( * ) + 73 + + + 26
----
612

query I rowsort
SELECT - COALESCE ( + - 55, + + 5 ) * - 26 * - 92 col0
----
131560

query I rowsort
SELECT - 88 - - + 83 - - 35
----
30

query II rowsort
SELECT ALL + 16 AS col0, - 37 AS col1
----
16
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-279
SELECT + CAST( - 20 AS SIGNED ) DIV - COUNT( - 3 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-279
SELECT + CAST ( - 20 AS INTEGER ) / - COUNT ( - 3 ) AS col1
----
20

query I rowsort
SELECT + ( - + 90 ) * 44 + + + 88 - + 15 AS col1
----
-3887

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT - + CASE + - 67 WHEN - + ( + - COUNT( * ) ) * - 24 THEN 40 * 86 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-281
SELECT - + CASE + - 67 WHEN - + ( + - COUNT ( * ) ) * - 24 THEN 40 * 86 END AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 78 + + - 97 AS col2
----
-175

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-285
SELECT + + 92 * NULLIF ( COALESCE ( + - 44, 60 * + 41 ), - - 77 ) * 82 * CAST( NULLIF ( COUNT( * ), - 7 * - 79 + + + 35 ) AS SIGNED ) + + + 48
----
-331888

skipif mysql # not compatible
query I rowsort label-285
SELECT + + 92 * NULLIF ( COALESCE ( + - 44, 60 * + 41 ), - - 77 ) * 82 * CAST ( NULLIF ( COUNT ( * ), - 7 * - 79 + + + 35 ) AS INTEGER ) + + + 48
----
-331888

onlyif mysql # aggregate syntax: 
query II rowsort label-286
SELECT ALL - 74 AS col1, + COUNT( * ) * - 75
----
-74
-75

skipif mysql # not compatible
query II rowsort label-286
SELECT ALL - 74 AS col1, + COUNT ( * ) * - 75
----
-74
-75

query I rowsort
SELECT - 60 + + 73 AS col1
----
13

query I rowsort
SELECT - NULLIF ( + 28, - + 16 )
----
-28

query I rowsort
SELECT + 73 * - 88 AS col2
----
-6424

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT - + COALESCE ( + 19, - - 28, + NULLIF ( COUNT( + 63 ), - 99 / 6 / - - 66 + + + 69 ) * NULLIF ( - COUNT( * ), 77 ) ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-291
SELECT - + COALESCE ( + 19, - - 28, + NULLIF ( COUNT ( + 63 ), - 99 / 6 / - - 66 + + + 69 ) * NULLIF ( - COUNT ( * ), 77 ) ) AS col2
----
-19

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-293
SELECT - - NULLIF ( + 39, + 62 * - 99 + - 97 ) - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-293
SELECT - - NULLIF ( + 39, + 62 * - 99 + - 97 ) - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT DISTINCT 75 * MAX( ALL + 91 ) + + 22 AS col0
----
6847

skipif mysql # not compatible
query I rowsort label-294
SELECT DISTINCT 75 * MAX ( ALL + 91 ) + + 22 AS col0
----
6847

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

skipif mysql # not compatible
query I rowsort label-295
SELECT DISTINCT + COUNT ( * ) * + 45 AS col1
----
45

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

query II rowsort
SELECT ALL 27, - 29 AS col1
----
27
-29

query I rowsort
SELECT + 32 + 27 + + 99
----
158

query I rowsort
SELECT + 2 + - ( + + 45 ) + + 21 col0
----
-22

query I rowsort
SELECT + 72 * 8 AS col0
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT + ( COUNT( * ) ) * + ( + 11 ) + + NULLIF ( - 17, 67 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-301
SELECT + ( COUNT ( * ) ) * + ( + 11 ) + + NULLIF ( - 17, 67 ) AS col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-302
SELECT COUNT( * ) * + ( - 88 ) * + 23 * 81 * + - 21 * - 72 - - 17 + 5 + - + 1 * + + ( 18 ) AS col2, + 45 DIV + COUNT( ALL 40 )
----
-247883324
45

skipif mysql # not compatible
query II rowsort label-302
SELECT COUNT ( * ) * + ( - 88 ) * + 23 * 81 * + - 21 * - 72 - - 17 + 5 + - + 1 * + + ( 18 ) AS col2, + 45 / + COUNT ( ALL 40 )
----
-247883324
45

query I rowsort
SELECT DISTINCT 19 * + 28
----
532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-304
SELECT CAST( - + 42 AS SIGNED ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-304
SELECT CAST ( - + 42 AS INTEGER ) AS col1
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-305
SELECT ALL + 11 * - 64 * - - 81 * 18 AS col1, - 72 DIV 95 AS col2
----
-1026432
0

skipif mysql # not compatible
query II rowsort label-305
SELECT ALL + 11 * - 64 * - - 81 * 18 AS col1, - 72 / 95 AS col2
----
-1026432
0

query I rowsort
SELECT DISTINCT 83 * ( - - 90 )
----
7470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-307
SELECT ALL 44 DIV + MAX( - + 33 ) + + - COALESCE ( - + 76, - 92 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL 44 / + MAX ( - + 33 ) + + - COALESCE ( - + 76, - 92 ) AS col2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-308
SELECT ALL 13 DIV - - 13 + + 19 + + 38 DIV 65 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL 13 / - - 13 + + 19 + + 38 / 65 AS col1
----
20

query I rowsort
SELECT - 30 * 88 * - 5 AS col0
----
13200

query I rowsort
SELECT - CASE - - 56 WHEN - 4 THEN - 64 ELSE NULL END + - 76 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 94 + - 59 + COALESCE ( + ( 19 ), + 54 * 59 + - 62, + + 62 + - 95 )
----
-134

query I rowsort
SELECT 67 + - - 57 * - 37
----
-2042

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT + NULLIF ( + - 65, - 49 ) * - 7 + - - 9 + - SUM( ALL + - 63 ) - + 11
----
516

skipif mysql # not compatible
query I rowsort label-313
SELECT + NULLIF ( + - 65, - 49 ) * - 7 + - - 9 + - SUM ( ALL + - 63 ) - + 11
----
516

query I rowsort
SELECT ALL - - 46 + - 61
----
-15

query II rowsort
SELECT DISTINCT + ( - 88 ) AS col2, - 65 col2
----
-88
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT ALL + 85 + + - COUNT( - + 81 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL + 85 + + - COUNT ( - + 81 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT 37 + + 89 + + - 48 * 45 * COUNT( * ) / - 22 + + 53 + - + CASE + 92 WHEN + 17 THEN + 81 END * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-317
SELECT 37 + + 89 + + - 48 * 45 * COUNT ( * ) / - 22 + + 53 + - + CASE + 92 WHEN + 17 THEN + 81 END * - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT DISTINCT + CASE + AVG ( DISTINCT - NULLIF ( + 17, - - 49 ) ) WHEN COUNT( * ) + + - 82 + + - MAX( ALL - + 4 ) THEN NULL WHEN 33 + - AVG ( + 29 ) THEN + 44 END * - - ( + 43 ) + - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT + CASE + AVG ( DISTINCT - NULLIF ( + 17, - - 49 ) ) WHEN COUNT ( * ) + + - 82 + + - MAX ( ALL - + 4 ) THEN NULL WHEN 33 + - AVG ( + 29 ) THEN + 44 END * - - ( + 43 ) + - 41 AS col0
----
NULL

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

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

query I rowsort
SELECT 99 * - 27 + - 32
----
-2705

query I rowsort
SELECT ALL + ( + - 76 ) * + 78 + - 37 * 45
----
-7593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-322
SELECT COALESCE ( + + 88, + + ( + 91 ) ) * CAST( + 96 AS SIGNED )
----
8448

skipif mysql # not compatible
query I rowsort label-322
SELECT COALESCE ( + + 88, + + ( + 91 ) ) * CAST ( + 96 AS INTEGER )
----
8448

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT + ( - + 79 ) + 20 - + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-323
SELECT + ( - + 79 ) + 20 - + COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-324
SELECT ( - - COUNT( * ) ) AS col1, 43 * 95 * - - 8
----
1
32680

skipif mysql # not compatible
query II rowsort label-324
SELECT ( - - COUNT ( * ) ) AS col1, 43 * 95 * - - 8
----
1
32680

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

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT - SUM( DISTINCT 30 ) + - 95
----
-125

skipif mysql # not compatible
query I rowsort label-326
SELECT - SUM ( DISTINCT 30 ) + - 95
----
-125

query I rowsort
SELECT DISTINCT - 31 - + - 86 AS col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-328
SELECT ALL CAST( NULL AS SIGNED ) * SUM( - 28 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL CAST ( NULL AS INTEGER ) * SUM ( - 28 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-329
SELECT ALL - ( - 22 ) DIV - 48 * + 30 + - 32
----
-32

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL - ( - 22 ) / - 48 * + 30 + - 32
----
-32

query I rowsort
SELECT 20 * + - COALESCE ( + - 17, + - 69 ) * + 0
----
0

query I rowsort
SELECT 56 * + + 34 AS col0
----
1904

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT COUNT( * ) - + - 20 + - 85 * - 75
----
6396

skipif mysql # not compatible
query I rowsort label-332
SELECT COUNT ( * ) - + - 20 + - 85 * - 75
----
6396

query I rowsort
SELECT ALL 78 * + 8
----
624

onlyif mysql # aggregate syntax: 
query II rowsort label-334
SELECT ALL - MIN( + - COALESCE ( + - 4, + + 59 * - - 62 ) ), + 51 * 28 col2
----
-4
1428

skipif mysql # not compatible
query II rowsort label-334
SELECT ALL - MIN ( + - COALESCE ( + - 4, + + 59 * - - 62 ) ), + 51 * 28 col2
----
-4
1428

query I rowsort
SELECT DISTINCT 13 + - 74
----
-61

query II rowsort
SELECT ( - - ( - - ( - - 78 ) ) ) * - - 37 AS col0, - 64
----
2886
-64

query I rowsort
SELECT ALL 7 + 77 + + 46 AS col1
----
130

query II rowsort
SELECT DISTINCT - 39 AS col1, + 74
----
-39
74

query I rowsort
SELECT DISTINCT 77 + + + 90 AS col2
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT ALL 71 + + 17 * - 14 * + COUNT( * )
----
-167

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL 71 + + 17 * - 14 * + COUNT ( * )
----
-167

onlyif mysql # aggregate syntax: 
query II rowsort label-341
SELECT + 2 * + - SUM( 78 ) + - + 75 * + 38 * 57 * + 86 + + + 62 AS col1, - 76
----
-13970794
-76

skipif mysql # not compatible
query II rowsort label-341
SELECT + 2 * + - SUM ( 78 ) + - + 75 * + 38 * 57 * + 86 + + + 62 AS col1, - 76
----
-13970794
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT DISTINCT + COUNT( * ) - 83 - - ( - 87 ) + 97 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-342
SELECT DISTINCT + COUNT ( * ) - 83 - - ( - 87 ) + 97 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT DISTINCT - NULLIF ( - - 92, COUNT( * ) )
----
-92

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT - NULLIF ( - - 92, COUNT ( * ) )
----
-92

query I rowsort
SELECT ALL + 20 * + 86 AS col1
----
1720

query I rowsort
SELECT ALL + + 48 - - 45
----
93

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

skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT - - COUNT ( ALL + + 73 ) AS col1
----
1

query II rowsort
SELECT + NULLIF ( + - 24, - 50 ) AS col1, 46 col1
----
-24
46

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-348
SELECT + AVG ( DISTINCT - - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) ) / + + 6 * + ( + ( + 41 ) ) * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-348
SELECT + AVG ( DISTINCT - - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ) / + + 6 * + ( + ( + 41 ) ) * 83
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-349
SELECT ALL - COUNT( * ) / ( - + CAST( NULL AS SIGNED ) ) + - 72 + 86 + 10 * COUNT( * ) * - CAST( NULL AS DECIMAL ) / + + 30 + + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-349
SELECT ALL - COUNT ( * ) / ( - + CAST ( NULL AS INTEGER ) ) + - 72 + 86 + 10 * COUNT ( * ) * - CAST ( NULL AS REAL ) / + + 30 + + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT NULLIF ( + - 55, + + ( - + 6 ) * 71 * + 90 + + COUNT( * ) )
----
-55

skipif mysql # not compatible
query I rowsort label-350
SELECT NULLIF ( + - 55, + + ( - + 6 ) * 71 * + 90 + + COUNT ( * ) )
----
-55

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

query I rowsort
SELECT ALL - - 31 * + - 32 AS col2
----
-992

query II rowsort
SELECT - 17 AS col1, 0 * - - 91
----
-17
0

query I rowsort
SELECT + 5 * + 12 + + - 89
----
-29

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

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

query I rowsort
SELECT 36 + ( - 64 ) - - + 20 * 47 AS col0
----
912

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

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

query I rowsort
SELECT 46 + 25 + + - 23
----
48

query I rowsort
SELECT 55 + - 3 AS col1
----
52

onlyif mysql # DIV for integer division: 
query II rowsort label-360
SELECT - 39 AS col2, 12 DIV ( + 56 ) + - 19 AS col2
----
-39
-19

skipif mysql # not compatible
query II rowsort label-360
SELECT - 39 AS col2, 12 / ( + 56 ) + - 19 AS col2
----
-39
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-361
SELECT ALL COUNT( * ) AS col2, ( + MIN( ALL - + 44 ) ) AS col1
----
1
-44

skipif mysql # not compatible
query II rowsort label-361
SELECT ALL COUNT ( * ) AS col2, ( + MIN ( ALL - + 44 ) ) AS col1
----
1
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-362
SELECT ALL + 57 + + ( - NULLIF ( SUM( - CAST( NULL AS SIGNED ) ), + + 39 ) ) * - - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-362
SELECT ALL + 57 + + ( - NULLIF ( SUM ( - CAST ( NULL AS INTEGER ) ), + + 39 ) ) * - - 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT DISTINCT 30 * + COUNT( * ) + - - 42 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-363
SELECT DISTINCT 30 * + COUNT ( * ) + - - 42 AS col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-364
SELECT ALL - 85 / + CAST( NULL AS SIGNED ) * MAX( 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL - 85 / + CAST ( NULL AS INTEGER ) * MAX ( 79 )
----
NULL

query I rowsort
SELECT COALESCE ( - 98, 94 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT CASE + + COUNT( * ) WHEN - 21 THEN + 26 * 47 * 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-366
SELECT CASE + + COUNT ( * ) WHEN - 21 THEN + 26 * 47 * 42 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT ( 50 ) * + + COUNT( * ) + - COUNT( * ) * - 98 * - + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-367
SELECT ( 50 ) * + + COUNT ( * ) + - COUNT ( * ) * - 98 * - + COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-368
SELECT ALL 4 * + COUNT( * ) + + - 3 + + - 32 DIV 5 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-368
SELECT ALL 4 * + COUNT ( * ) + + - 3 + + - 32 / 5 AS col1
----
-5

query I rowsort
SELECT DISTINCT 30 * + 41 AS col1
----
1230

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT + 59 * - + COALESCE ( + COUNT( * ), - - 68, + 10 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-370
SELECT + 59 * - + COALESCE ( + COUNT ( * ), - - 68, + 10 ) AS col0
----
-59

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

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

query I rowsort
SELECT + 29 * - 15 AS col0
----
-435

onlyif mysql # aggregate syntax: 
query II rowsort label-373
SELECT DISTINCT - 4 * 87 AS col2, COUNT( * ) * - + 63 + + 47 * - + 73 + + + 69 AS col2
----
-348
-3425

skipif mysql # not compatible
query II rowsort label-373
SELECT DISTINCT - 4 * 87 AS col2, COUNT ( * ) * - + 63 + + 47 * - + 73 + + + 69 AS col2
----
-348
-3425

query I rowsort
SELECT ALL + - ( - + COALESCE ( - 48, 2 ) )
----
-48

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-376
SELECT NULLIF ( 64, - 89 * + 30 - + + COUNT( * ) + + SUM( + 43 ) + - CAST( NULL AS DECIMAL ) )
----
64

skipif mysql # not compatible
query I rowsort label-376
SELECT NULLIF ( 64, - 89 * + 30 - + + COUNT ( * ) + + SUM ( + 43 ) + - CAST ( NULL AS REAL ) )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-377
SELECT 2 * - 40 + - 22 * COALESCE ( + + 3, + - 46 - + - ( - 81 ) * + 4 + 20 * - + 26 ) + - CAST( NULL AS SIGNED ), + 87 * + - 52 * ( ( - - ( ( - + 24 ) ) ) ) AS col1
----
NULL
108576

skipif mysql # not compatible
query II rowsort label-377
SELECT 2 * - 40 + - 22 * COALESCE ( + + 3, + - 46 - + - ( - 81 ) * + 4 + 20 * - + 26 ) + - CAST ( NULL AS INTEGER ), + 87 * + - 52 * ( ( - - ( ( - + 24 ) ) ) ) AS col1
----
NULL
108576

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-379
SELECT - 95 * 46 - + 79 DIV + 66 + - 9 * + ( + COUNT( ALL + + 90 ) ) AS col1
----
-4380

skipif mysql # not compatible
query I rowsort label-379
SELECT - 95 * 46 - + 79 / + 66 + - 9 * + ( + COUNT ( ALL + + 90 ) ) AS col1
----
-4380

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-381
SELECT ALL 23 DIV - - 38
----
0

skipif mysql # not compatible
query I rowsort label-381
SELECT ALL 23 / - - 38
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-382
SELECT ALL + 42 * - COUNT( 89 ) * - COUNT( * ), + 33 AS col0
----
42
33

skipif mysql # not compatible
query II rowsort label-382
SELECT ALL + 42 * - COUNT ( 89 ) * - COUNT ( * ), + 33 AS col0
----
42
33

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-384
SELECT ALL CAST( - 16 AS SIGNED ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL CAST ( - 16 AS INTEGER ) col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT DISTINCT - NULLIF ( - 89, - 34 + - COUNT( DISTINCT 88 ) / 79 + 68 + COUNT( + - 10 ) ) * - 44 AS col1
----
-3916

skipif mysql # not compatible
query I rowsort label-385
SELECT DISTINCT - NULLIF ( - 89, - 34 + - COUNT ( DISTINCT 88 ) / 79 + 68 + COUNT ( + - 10 ) ) * - 44 AS col1
----
-3916

query I rowsort
SELECT - 98 + 36 + + - 71 * - 48 + - 73
----
3273

query I rowsort
SELECT + 42 * 2 AS col2
----
84

query II rowsort
SELECT 46, ( - 0 ) AS col2
----
46
0

query II rowsort
SELECT - 46 AS col1, ( + 55 ) * - 70 - + 98 + + ( 66 )
----
-46
-3882

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

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

query I rowsort
SELECT - + 20 + - 69 + 99
----
10

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 98 * - NULLIF ( 0, - ( - 80 ) + + - 32 - COALESCE ( 18, + 27 ) )
----
0

query I rowsort
SELECT ALL 1 + 43 + + 64 * + 33 AS col0
----
2156

query I rowsort
SELECT DISTINCT + 71 + + 35
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT DISTINCT - 80 * + 87 * - COUNT( ALL 51 )
----
6960

skipif mysql # not compatible
query I rowsort label-398
SELECT DISTINCT - 80 * + 87 * - COUNT ( ALL 51 )
----
6960

query I rowsort
SELECT DISTINCT - 7 + - 97 + + 77
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-400
SELECT - CAST( + - CASE ( - 73 ) WHEN - - 31 THEN MAX( ALL 10 ) + + 46 WHEN + 23 + - CAST( 28 AS SIGNED ) THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-400
SELECT - CAST ( + - CASE ( - 73 ) WHEN - - 31 THEN MAX ( ALL 10 ) + + 46 WHEN + 23 + - CAST ( 28 AS INTEGER ) THEN NULL END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT - MAX( 53 ) * + COUNT( * ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-401
SELECT - MAX ( 53 ) * + COUNT ( * ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT - MIN( + - 80 ) * - 74 + 36
----
-5884

skipif mysql # not compatible
query I rowsort label-402
SELECT - MIN ( + - 80 ) * - 74 + 36
----
-5884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-403
SELECT ALL + NULLIF ( + 72, - 82 / - COUNT( * ) * + - CAST( - 5 AS DECIMAL ) - - CAST( NULL AS SIGNED ) ) AS col2, 20 * 55 + + CAST( NULL AS SIGNED )
----
72
NULL

skipif mysql # not compatible
query II rowsort label-403
SELECT ALL + NULLIF ( + 72, - 82 / - COUNT ( * ) * + - CAST ( - 5 AS REAL ) - - CAST ( NULL AS INTEGER ) ) AS col2, 20 * 55 + + CAST ( NULL AS INTEGER )
----
72
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-404
SELECT DISTINCT 13 DIV - 96 - - 32 + - 87 * + 51 + - COUNT( DISTINCT + 24 ) + 6 + + 10
----
-4390

skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT 13 / - 96 - - 32 + - 87 * + 51 + - COUNT ( DISTINCT + 24 ) + 6 + + 10
----
-4390

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT - NULLIF ( COUNT( * ), + - 44 + - 27 ) * + ( + 56 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-405
SELECT - NULLIF ( COUNT ( * ), + - 44 + - 27 ) * + ( + 56 ) AS col1
----
-56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-406
SELECT ALL - CAST( - 13 AS SIGNED ) DIV - + 85 + + 18 - NULLIF ( 90, - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * + + ( 12 ) + + 97 ) + - 85 col0
----
-157

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL - CAST ( - 13 AS INTEGER ) / - + 85 + + 18 - NULLIF ( 90, - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * + + ( 12 ) + + 97 ) + - 85 col0
----
-157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-407
SELECT DISTINCT MAX( DISTINCT - 48 ) DIV - 24
----
2

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT MAX ( DISTINCT - 48 ) / - 24
----
2

query I rowsort
SELECT ALL + COALESCE ( + 73, - - 27, 14 * + 54 - 35 ) AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-409
SELECT DISTINCT 50 / - COALESCE ( + ( 85 ), + COUNT( * ) * - 78, - 37 + + 25 ) - - 2 + + 65 + CAST( NULL AS SIGNED ) * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-409
SELECT DISTINCT 50 / - COALESCE ( + ( 85 ), + COUNT ( * ) * - 78, - 37 + + 25 ) - - 2 + + 65 + CAST ( NULL AS INTEGER ) * + 48
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-410
SELECT ALL NULLIF ( - 78, - COUNT( * ) * + 56 ) * + - 52 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-410
SELECT ALL NULLIF ( - 78, - COUNT ( * ) * + 56 ) * + - 52 * + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - 17 + + 43 * - - 7
----
284

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-412
SELECT DISTINCT + 45 DIV + - SUM( DISTINCT - - 20 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT + 45 / + - SUM ( DISTINCT - - 20 ) AS col1
----
-2

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-414
SELECT - 10 DIV COUNT( * ) * + + 61 + + - 29
----
-639

skipif mysql # not compatible
query I rowsort label-414
SELECT - 10 / COUNT ( * ) * + + 61 + + - 29
----
-639

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT ALL + - 52 * SUM( + + 54 )
----
-2808

skipif mysql # not compatible
query I rowsort label-415
SELECT ALL + - 52 * SUM ( + + 54 )
----
-2808

query I rowsort
SELECT - + 31 * + 27 AS col2
----
-837

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT + 81 * + 79 + - 25 + - - MAX( - - NULLIF ( + ( - ( 33 ) ), 58 ) ) - 69 + 68 + - 46 AS col1
----
6294

skipif mysql # not compatible
query I rowsort label-417
SELECT + 81 * + 79 + - 25 + - - MAX ( - - NULLIF ( + ( - ( 33 ) ), 58 ) ) - 69 + 68 + - 46 AS col1
----
6294

query I rowsort
SELECT + - 68 * + 49 col1
----
-3332

query I rowsort
SELECT DISTINCT - + 22 * + 74
----
-1628

query II rowsort
SELECT + - 7 * + + 0 col2, - CASE + + 49 WHEN 21 THEN + - 9 WHEN 49 THEN 68 ELSE NULL END AS col2
----
0
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT DISTINCT + 70 * COALESCE ( 40, - 43 ) + + + 61 + - + CASE + - 22 WHEN - COUNT( * ) + + - 60 * + - 9 - 39 + - 11 / + COUNT( * ) THEN NULL WHEN + 54 * AVG ( 28 ) THEN + - 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT + 70 * COALESCE ( 40, - 43 ) + + + 61 + - + CASE + - 22 WHEN - COUNT ( * ) + + - 60 * + - 9 - 39 + - 11 / + COUNT ( * ) THEN NULL WHEN + 54 * AVG ( 28 ) THEN + - 75 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-423
SELECT - + NULLIF ( + NULLIF ( + 49, + - 98 ), + CAST( - 49 AS SIGNED ) + - NULLIF ( - 82, - COUNT( * ) ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-423
SELECT - + NULLIF ( + NULLIF ( + 49, + - 98 ), + CAST ( - 49 AS INTEGER ) + - NULLIF ( - 82, - COUNT ( * ) ) ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT ALL - NULLIF ( + + MIN( - 79 ), 6 + - + 65 ) * + SUM( DISTINCT + 60 ) * ( + 2 ) + + 38 * 25 AS col2
----
10430

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL - NULLIF ( + + MIN ( - 79 ), 6 + - + 65 ) * + SUM ( DISTINCT + 60 ) * ( + 2 ) + + 38 * 25 AS col2
----
10430

onlyif mysql # DIV for integer division: 
query I rowsort label-425
SELECT DISTINCT 41 DIV + 8 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT 41 / + 8 AS col0
----
5

query I rowsort
SELECT ALL - 47 * - - 45 * + 8 + - 86 * 53
----
-21478

query I rowsort
SELECT DISTINCT NULLIF ( - ( - 86 ), 96 ) AS col2
----
86

query I rowsort
SELECT ALL 19 * - - 89
----
1691

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-430
SELECT ALL 95 - - ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL 95 - - ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-431
SELECT ( ( CAST( - 15 AS SIGNED ) ) ) + + + MAX( + 95 ) + COALESCE ( COUNT( * ), - 16 + + - 49 DIV + 5, - 21 - 17 + 73 + 75 * - 35 * + 27 ) * - COUNT( * ) + - - 38 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-431
SELECT ( ( CAST ( - 15 AS INTEGER ) ) ) + + + MAX ( + 95 ) + COALESCE ( COUNT ( * ), - 16 + + - 49 / + 5, - 21 - 17 + 73 + 75 * - 35 * + 27 ) * - COUNT ( * ) + - - 38 AS col1
----
117

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

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

query I rowsort
SELECT 6 * - - 36
----
216

query I rowsort
SELECT 80 + - 60
----
20

query I rowsort
SELECT ALL - 22 * 7
----
-154

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT CASE 3 WHEN - 99 THEN + 41 END + - COALESCE ( - ( + - 9 ), + NULLIF ( + 26, - + SUM( ALL 82 ) + + 23 + 39 + - - ( + 98 ) ), + + 0 * + - 7 - + - 24 * - 61 + - - 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-437
SELECT CASE 3 WHEN - 99 THEN + 41 END + - COALESCE ( - ( + - 9 ), + NULLIF ( + 26, - + SUM ( ALL 82 ) + + 23 + 39 + - - ( + 98 ) ), + + 0 * + - 7 - + - 24 * - 61 + - - 96 )
----
NULL

query I rowsort
SELECT 96 * 39 AS col0
----
3744

query I rowsort
SELECT DISTINCT + 49 * - 96
----
-4704

query I rowsort
SELECT ( + 77 ) * ( 62 ) AS col1
----
4774

query I rowsort
SELECT 21 * + 59 AS col1
----
1239

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT MIN( ALL 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-442
SELECT MIN ( ALL 9 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT DISTINCT - COALESCE ( + MAX( DISTINCT - 0 ), 93 )
----
0

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT - COALESCE ( + MAX ( DISTINCT - 0 ), 93 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT DISTINCT + CASE WHEN NULL IN ( - 81, + 76 * + + COUNT( * ) ) THEN - 44 / 30 * - 48 END * + NULLIF ( 2, - + ( 14 ) + - SUM( DISTINCT - 69 ) + - - 7 ) * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-444
SELECT DISTINCT + CASE WHEN NULL IN ( - 81, + 76 * + + COUNT ( * ) ) THEN - 44 / 30 * - 48 END * + NULLIF ( 2, - + ( 14 ) + - SUM ( DISTINCT - 69 ) + - - 7 ) * 63
----
NULL

query I rowsort
SELECT ALL - 5 + 37 AS col0
----
32

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT ALL + NULLIF ( + ( - COUNT( * ) ), - 89 * 31 ) + + 18
----
17

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL + NULLIF ( + ( - COUNT ( * ) ), - 89 * 31 ) + + 18
----
17

query I rowsort
SELECT DISTINCT + 14 + - ( + + 79 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT + COUNT( * ) * - 19 * + CASE - 32 WHEN - 52 + + COUNT( * ) + + 52 THEN NULL WHEN 23 THEN - 64 END * + 37 + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-450
SELECT + COUNT ( * ) * - 19 * + CASE - 32 WHEN - 52 + + COUNT ( * ) + + 52 THEN NULL WHEN 23 THEN - 64 END * + 37 + 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-451
SELECT ALL - - MAX( CAST( NULL AS SIGNED ) ) / - 85 + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL - - MAX ( CAST ( NULL AS INTEGER ) ) / - 85 + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL - 65 + + 68
----
3

query II rowsort
SELECT ALL + + ( - - NULLIF ( + 73, - - 43 ) ) + - + ( 54 ) AS col1, + 34 col1
----
19
34

query I rowsort
SELECT 47 - + - 35 AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-455
SELECT DISTINCT COUNT( + ( + 75 ) ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT COUNT ( + ( + 75 ) ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 29 + + - 92 AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-457
SELECT DISTINCT - COUNT( ALL - COALESCE ( - - CAST( NULL AS SIGNED ), 77 ) ) + + CAST( 69 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT - COUNT ( ALL - COALESCE ( - - CAST ( NULL AS INTEGER ), 77 ) ) + + CAST ( 69 AS INTEGER )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-458
SELECT - + 70 AS col2, + MAX( + 77 )
----
-70
77

skipif mysql # not compatible
query II rowsort label-458
SELECT - + 70 AS col2, + MAX ( + 77 )
----
-70
77

query I rowsort
SELECT 71 + + 49
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT MAX( - + 74 ) * - + 5 col0
----
370

skipif mysql # not compatible
query I rowsort label-460
SELECT MAX ( - + 74 ) * - + 5 col0
----
370

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT DISTINCT 7 - + SUM( + 41 ) + - + COUNT( * ) - - + 96 + COALESCE ( 58, - + COUNT( * ), - ( - 90 ) )
----
119

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT 7 - + SUM ( + 41 ) + - + COUNT ( * ) - - + 96 + COALESCE ( 58, - + COUNT ( * ), - ( - 90 ) )
----
119

query I rowsort
SELECT ALL NULLIF ( 16, - 94 ) * - 5
----
-80

query I rowsort
SELECT ( 4 ) * + 48 * + 66 AS col0
----
12672

query II rowsort
SELECT ALL 12 * - + 66, 4 AS col2
----
-792
4

query I rowsort
SELECT DISTINCT 47 * 69
----
3243

query I rowsort
SELECT ALL 65 * - 9 * + 66 col0
----
-38610

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT 80 * - 66 * COUNT( * )
----
-5280

skipif mysql # not compatible
query I rowsort label-467
SELECT 80 * - 66 * COUNT ( * )
----
-5280

query I rowsort
SELECT 21 + - 9 + + 97 * 24 + - 39 * 54 AS col2
----
234

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

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

query I rowsort
SELECT 34 * - 17 AS col2
----
-578

onlyif mysql # DIV for integer division: 
query I rowsort label-471
SELECT ALL 32 DIV - 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL 32 / - 92 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-472
SELECT - 1 DIV + 5 + + SUM( DISTINCT - + ( + + 28 ) ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-472
SELECT - 1 / + 5 + + SUM ( DISTINCT - + ( + + 28 ) ) AS col2
----
-28

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-474
SELECT DISTINCT - COUNT( + + 12 ) AS col1, 62 AS col1
----
-1
62

skipif mysql # not compatible
query II rowsort label-474
SELECT DISTINCT - COUNT ( + + 12 ) AS col1, 62 AS col1
----
-1
62

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT ALL MIN( 37 ) * - 51 + + 21
----
-1866

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL MIN ( 37 ) * - 51 + + 21
----
-1866

query II rowsort
SELECT ALL ( - 87 ) * NULLIF ( + 41, - 87 ) + - 35 + + + 89 + 43 * - + 58 + 46 AS col2, ( - + 42 )
----
-5961
-42

query I rowsort
SELECT - - 47 * - + 99 + 61 - + 60 col1
----
-4652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-478
SELECT DISTINCT + 54 * + + CAST( NULL AS SIGNED ) * + 82 + + - 57 + - - ( - 37 ) + + NULLIF ( - 41, + 10 + + 55 * COALESCE ( + 74, - - ( - 60 ) - + + COUNT( * ), ( ( + + CASE + + 89 WHEN - + 72 - + 47 + + COUNT( * ) - 13 THEN NULL WHEN - 33 THEN + 73 ELSE NULL END ) ) * - + 10 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT + 54 * + + CAST ( NULL AS INTEGER ) * + 82 + + - 57 + - - ( - 37 ) + + NULLIF ( - 41, + 10 + + 55 * COALESCE ( + 74, - - ( - 60 ) - + + COUNT ( * ), ( ( + + CASE + + 89 WHEN - + 72 - + 47 + + COUNT ( * ) - 13 THEN NULL WHEN - 33 THEN + 73 ELSE NULL END ) ) * - + 10 ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT 16 * 40 - - NULLIF ( 53, - 36 * - 69 + 92 ) + + ( - ( - - COUNT( * ) ) ) * + - 48
----
741

skipif mysql # not compatible
query I rowsort label-479
SELECT 16 * 40 - - NULLIF ( 53, - 36 * - 69 + 92 ) + + ( - ( - - COUNT ( * ) ) ) * + - 48
----
741

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-480
SELECT ALL - 75 * + 17 + + - 80 + + 34 - + - CASE - + 42 WHEN - 52 * - 85 * + CAST( NULL AS SIGNED ) - + - 16 THEN NULL ELSE - 91 * COUNT( * ) + 5 END * + ( NULLIF ( + 55, - 50 ) ) + - - 39 AS col2
----
-6012

skipif mysql # not compatible
query I rowsort label-480
SELECT ALL - 75 * + 17 + + - 80 + + 34 - + - CASE - + 42 WHEN - 52 * - 85 * + CAST ( NULL AS INTEGER ) - + - 16 THEN NULL ELSE - 91 * COUNT ( * ) + 5 END * + ( NULLIF ( + 55, - 50 ) ) + - - 39 AS col2
----
-6012

onlyif mysql # aggregate syntax: 
query II rowsort label-481
SELECT DISTINCT + + 50 - ( + - 75 ) + 61 - - COUNT( * ) AS col0, + COUNT( * )
----
187
1

skipif mysql # not compatible
query II rowsort label-481
SELECT DISTINCT + + 50 - ( + - 75 ) + 61 - - COUNT ( * ) AS col0, + COUNT ( * )
----
187
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-484
SELECT DISTINCT + 67 - - COUNT( * ), SUM( 82 ) AS col1
----
68
82

skipif mysql # not compatible
query II rowsort label-484
SELECT DISTINCT + 67 - - COUNT ( * ), SUM ( 82 ) AS col1
----
68
82

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-486
SELECT DISTINCT - 48 DIV 98 * - + CAST( NULL AS SIGNED ) * - - 93 DIV - - 53, - 21 DIV + + 27 * + COALESCE ( + 30, - - 70 * + 24 DIV - 69 ) * - 35 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-486
SELECT DISTINCT - 48 / 98 * - + CAST ( NULL AS INTEGER ) * - - 93 / - - 53, - 21 / + + 27 * + COALESCE ( + 30, - - 70 * + 24 / - 69 ) * - 35 AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT + COALESCE ( - ( - - 3 ), + - 20 ) * + 84 + 34 - COUNT( * )
----
-219

skipif mysql # not compatible
query I rowsort label-487
SELECT + COALESCE ( - ( - - 3 ), + - 20 ) * + 84 + 34 - COUNT ( * )
----
-219

query I rowsort
SELECT + 43 * - 90 AS col1
----
-3870

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-489
SELECT - 54 + 2 + + + 12 - - NULLIF ( - 47, CAST( 66 AS DECIMAL ) ) + - 18
----
-105

skipif mysql # not compatible
query I rowsort label-489
SELECT - 54 + 2 + + + 12 - - NULLIF ( - 47, CAST ( 66 AS REAL ) ) + - 18
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-490
SELECT + 60 DIV - COUNT( 18 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-490
SELECT + 60 / - COUNT ( 18 ) AS col2
----
-60

query I rowsort
SELECT DISTINCT - 21 * - 16
----
336

query I rowsort
SELECT ALL + 67 * + 15 * + 90 AS col0
----
90450

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-494
SELECT - COUNT( * ) * - - 51 * + 44 AS col0, - 11
----
-2244
-11

skipif mysql # not compatible
query II rowsort label-494
SELECT - COUNT ( * ) * - - 51 * + 44 AS col0, - 11
----
-2244
-11

query I rowsort
SELECT ALL - 31 * - 12 * - 72
----
-26784

query I rowsort
SELECT DISTINCT + 76 * - 51 AS col0
----
-3876

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

query I rowsort
SELECT + 76 + 87
----
163

query II rowsort
SELECT - 57 col0, 52
----
-57
52

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT - 47 * + MIN( DISTINCT - 73 )
----
3431

skipif mysql # not compatible
query I rowsort label-500
SELECT - 47 * + MIN ( DISTINCT - 73 )
----
3431

query I rowsort
SELECT + 53 * - - 72 AS col2
----
3816

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

onlyif mysql # aggregate syntax: 
query II rowsort label-503
SELECT - 41 + + 72 + + - ( - 6 ) + + - CASE AVG ( ALL + 73 ) WHEN - + 50 * + 70 / + MAX( DISTINCT 79 ) + COUNT( * ) THEN NULL WHEN + 5 * - COUNT( * ) THEN + + ( + COUNT( * ) ) END / 64 * - - 27 AS col0, 50 + + COUNT( * ) + - ( 15 ) AS col1
----
NULL
36

skipif mysql # not compatible
query II rowsort label-503
SELECT - 41 + + 72 + + - ( - 6 ) + + - CASE AVG ( ALL + 73 ) WHEN - + 50 * + 70 / + MAX ( DISTINCT 79 ) + COUNT ( * ) THEN NULL WHEN + 5 * - COUNT ( * ) THEN + + ( + COUNT ( * ) ) END / 64 * - - 27 AS col0, 50 + + COUNT ( * ) + - ( 15 ) AS col1
----
NULL
36

query I rowsort
SELECT + 46 - - 96 * 4 * 90
----
34606

query I rowsort
SELECT DISTINCT NULLIF ( + 83, + 74 )
----
83

query I rowsort
SELECT ALL 11 + 73 AS col1
----
84

query I rowsort
SELECT + 17 + - 72
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT ALL - 32 + + + COALESCE ( - COUNT( * ), - 98 + - 77 ) + 65 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL - 32 + + + COALESCE ( - COUNT ( * ), - 98 + - 77 ) + 65 AS col2
----
32

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

query I rowsort
SELECT ALL + ( 9 ) + 70 AS col1
----
79

query I rowsort
SELECT - CASE + 95 WHEN + 44 THEN NULL WHEN 13 + + 79 THEN NULL WHEN 16 / - 83 THEN 69 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT ALL 81 + - MAX( 42 ) * - 30
----
1341

skipif mysql # not compatible
query I rowsort label-512
SELECT ALL 81 + - MAX ( 42 ) * - 30
----
1341

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

query I rowsort
SELECT ALL 92 * + 96
----
8832

onlyif mysql # DIV for integer division: 
query I rowsort label-515
SELECT + 4 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-515
SELECT + 4 / 90
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-516
SELECT DISTINCT - MAX( + 62 ) DIV 81 + + 41 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT - MAX ( + 62 ) / 81 + + 41 AS col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-517
SELECT ALL + 41 DIV - 57 + + 10 * CASE + 64 WHEN - 15 + 71 THEN + COUNT( ALL 80 ) ELSE MAX( 24 ) END AS col2
----
240

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL + 41 / - 57 + + 10 * CASE + 64 WHEN - 15 + 71 THEN + COUNT ( ALL 80 ) ELSE MAX ( 24 ) END AS col2
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-518
SELECT ALL - 58 DIV - ( - 30 * - 82 ) + 36 * - 58
----
-2088

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL - 58 / - ( - 30 * - 82 ) + 36 * - 58
----
-2088

query I rowsort
SELECT + 51 * 38 AS col1
----
1938

query I rowsort
SELECT ( ( 92 ) )
----
92

query I rowsort
SELECT 24 * - 42 + + 45 * 63
----
1827

query I rowsort
SELECT ( 6 ) col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-523
SELECT + 3 DIV 30
----
0

skipif mysql # not compatible
query I rowsort label-523
SELECT + 3 / 30
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-524
SELECT ALL - SUM( ALL - 32 ) * + 48 - - CAST( 26 AS SIGNED ) AS col0
----
1562

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL - SUM ( ALL - 32 ) * + 48 - - CAST ( 26 AS INTEGER ) AS col0
----
1562

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT ALL + 25 * - SUM( ALL 27 ) AS col0
----
-675

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL + 25 * - SUM ( ALL 27 ) AS col0
----
-675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-527
SELECT CASE - COALESCE ( COUNT( * ), CAST( 40 AS SIGNED ) ) WHEN - 49 / COUNT( * ) THEN 85 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-527
SELECT CASE - COALESCE ( COUNT ( * ), CAST ( 40 AS INTEGER ) ) WHEN - 49 / COUNT ( * ) THEN 85 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT + NULLIF ( 98, - 43 ) * COUNT( * ) + 66
----
164

skipif mysql # not compatible
query I rowsort label-528
SELECT + NULLIF ( 98, - 43 ) * COUNT ( * ) + 66
----
164

query I rowsort
SELECT + 61 * 87
----
5307

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT - 67 + - COUNT( 3 )
----
-68

skipif mysql # not compatible
query I rowsort label-530
SELECT - 67 + - COUNT ( 3 )
----
-68

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

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL 72 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 78 + 41 col0
----
119

query I rowsort
SELECT - 60 - - 81
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT DISTINCT + COALESCE ( + COUNT( * ), 90 + 48 * 70, + 90 * + 21 + 77 )
----
1

skipif mysql # not compatible
query I rowsort label-534
SELECT DISTINCT + COALESCE ( + COUNT ( * ), 90 + 48 * 70, + 90 * + 21 + 77 )
----
1

query I rowsort
SELECT ALL 37 * + 15 col2
----
555

query I rowsort
SELECT COALESCE ( + 48, 75 * NULLIF ( 36, 92 ) ) AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-537
SELECT - SUM( ALL - 89 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-537
SELECT - SUM ( ALL - 89 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 1 + 25
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-539
SELECT ALL CASE - ( - 82 ) WHEN + SUM( 64 ) * CASE COALESCE ( + CAST( NULL AS SIGNED ), - 45, + 69 + 72 ) - - 95 WHEN 8 THEN + 20 * 17 + 63 END THEN NULL WHEN 49 + - 64 THEN NULL ELSE ( 28 ) END
----
28

skipif mysql # not compatible
query I rowsort label-539
SELECT ALL CASE - ( - 82 ) WHEN + SUM ( 64 ) * CASE COALESCE ( + CAST ( NULL AS INTEGER ), - 45, + 69 + 72 ) - - 95 WHEN 8 THEN + 20 * 17 + 63 END THEN NULL WHEN 49 + - 64 THEN NULL ELSE ( 28 ) END
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT COUNT( DISTINCT - 54 )
----
1

skipif mysql # not compatible
query I rowsort label-540
SELECT COUNT ( DISTINCT - 54 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-541
SELECT - 21 * + COALESCE ( - COALESCE ( + SUM( DISTINCT ( 79 ) ), - 45 + 1 ), + 47 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-541
SELECT - 21 * + COALESCE ( - COALESCE ( + SUM ( DISTINCT ( 79 ) ), - 45 + 1 ), + 47 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT ALL CASE 49 WHEN + 38 THEN - MIN( - 50 ) + 80 / 55 WHEN + 18 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL CASE 49 WHEN + 38 THEN - MIN ( - 50 ) + 80 / 55 WHEN + 18 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-543
SELECT - COALESCE ( 57, 68 * 93 - + 8, 22 ) DIV NULLIF ( + 41 + - 54, - 3 + 76 * 78 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-543
SELECT - COALESCE ( 57, 68 * 93 - + 8, 22 ) / NULLIF ( + 41 + - 54, - 3 + 76 * 78 ) AS col1
----
4

query I rowsort
SELECT - 53 + 76
----
23

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

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

query I rowsort
SELECT DISTINCT ( + 55 ) col2
----
55

query I rowsort
SELECT ALL + 73 + - 82 AS col2
----
-9

query I rowsort
SELECT ALL + 0 + 30 * 53
----
1590

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

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT COALESCE ( COUNT ( * ), - 47 )
----
1

query I rowsort
SELECT - 93 * + 88
----
-8184

query I rowsort
SELECT ALL 5 + 29
----
34

query I rowsort
SELECT ALL - 28 * 67
----
-1876

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

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

query I rowsort
SELECT NULLIF ( 33, + 3 ) AS col1
----
33

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

skipif mysql # not compatible
query I rowsort label-555
SELECT ALL - - ( COUNT ( * ) ) + 40 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT COALESCE ( - COUNT( * ), + 87 + + 39, - 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-556
SELECT COALESCE ( - COUNT ( * ), + 87 + + 39, - 14 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT - - NULLIF ( COUNT( * ), COALESCE ( + ( + NULLIF ( 70, - SUM( - 28 ) ) ), 5 + - COALESCE ( + 4, + 81, + NULLIF ( - 22, 82 + - ( COUNT( * ) ) ) / COUNT( * ) ) * 51 ) + 50 )
----
1

skipif mysql # not compatible
query I rowsort label-557
SELECT - - NULLIF ( COUNT ( * ), COALESCE ( + ( + NULLIF ( 70, - SUM ( - 28 ) ) ), 5 + - COALESCE ( + 4, + 81, + NULLIF ( - 22, 82 + - ( COUNT ( * ) ) ) / COUNT ( * ) ) * 51 ) + 50 )
----
1

query I rowsort
SELECT ALL + 94 - + 3 * 56 AS col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-559
SELECT - - 88 - - CAST( + 97 AS SIGNED )
----
185

skipif mysql # not compatible
query I rowsort label-559
SELECT - - 88 - - CAST ( + 97 AS INTEGER )
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-560
SELECT - + COALESCE ( - 41, + COUNT( * ), 86 DIV 69 + 29 * CAST( + CAST( NULL AS SIGNED ) + 81 AS SIGNED ) ) - 33
----
8

skipif mysql # not compatible
query I rowsort label-560
SELECT - + COALESCE ( - 41, + COUNT ( * ), 86 / 69 + 29 * CAST ( + CAST ( NULL AS INTEGER ) + 81 AS INTEGER ) ) - 33
----
8

query I rowsort
SELECT ALL + 2 * ( ( - 66 ) * + 54 ) AS col0
----
-7128

onlyif mysql # DIV for integer division: 
query I rowsort label-562
SELECT ALL - - 83 DIV + 95 - 1
----
-1

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL - - 83 / + 95 - 1
----
-1

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

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

query I rowsort
SELECT ALL + 53 - 79 * 97
----
-7610

query I rowsort
SELECT 76 * 16 AS col1
----
1216

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-567
SELECT + + CAST( NULL AS SIGNED ) / 24 - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-567
SELECT + + CAST ( NULL AS INTEGER ) / 24 - 75
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-568
SELECT 55 * + COALESCE ( + 59 DIV + 81 + 60 * - 80, 95 * 64 )
----
-264000

skipif mysql # not compatible
query I rowsort label-568
SELECT 55 * + COALESCE ( + 59 / + 81 + 60 * - 80, 95 * 64 )
----
-264000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-569
SELECT + CASE COUNT( * ) WHEN - CAST( CAST( ( 81 ) AS SIGNED ) AS SIGNED ) + 11 THEN NULL WHEN 91 * + COUNT( * ) THEN COUNT( * ) ELSE NULL END * 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-569
SELECT + CASE COUNT ( * ) WHEN - CAST ( CAST ( ( 81 ) AS INTEGER ) AS INTEGER ) + 11 THEN NULL WHEN 91 * + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END * 3 AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT - ( - 80 ) * - 91 AS col0
----
-7280

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-572
SELECT DISTINCT COUNT( * ) / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-572
SELECT DISTINCT COUNT ( * ) / - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL CASE WHEN NOT ( NULL ) IS NOT NULL THEN 81 END * - 48
----
-3888

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-574
SELECT ( + NULLIF ( 13, 41 * - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) ) * 24 + - ( - 28 + 91 ) col1
----
249

skipif mysql # not compatible
query I rowsort label-574
SELECT ( + NULLIF ( 13, 41 * - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) ) * 24 + - ( - 28 + 91 ) col1
----
249

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT NULLIF ( - ( 69 ), 27 ) + - COALESCE ( - 88, 52 * COUNT( * ) ) * - 37
----
-3325

skipif mysql # not compatible
query I rowsort label-578
SELECT NULLIF ( - ( 69 ), 27 ) + - COALESCE ( - 88, 52 * COUNT ( * ) ) * - 37
----
-3325

query I rowsort
SELECT ALL 47 + + - 42
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-580
SELECT 15 + - ( - 0 ) + 78 DIV + 78 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-580
SELECT 15 + - ( - 0 ) + 78 / + 78 AS col1
----
16

query I rowsort
SELECT ALL 23 + 14 AS col1
----
37

query I rowsort
SELECT ALL - 32 + + - ( 67 ) AS col0
----
-99

query I rowsort
SELECT ALL + 69 + 31 AS col2
----
100

query I rowsort
SELECT 30 - + 59
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-585
SELECT DISTINCT COALESCE ( NULLIF ( - 8, - 2 * CAST( NULL AS SIGNED ) ), 17 * 62 ) + + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT COALESCE ( NULLIF ( - 8, - 2 * CAST ( NULL AS INTEGER ) ), 17 * 62 ) + + COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT MAX( - ( 25 ) ) + + SUM( ALL 41 )
----
16

skipif mysql # not compatible
query I rowsort label-586
SELECT MAX ( - ( 25 ) ) + + SUM ( ALL 41 )
----
16

query I rowsort
SELECT 42 + 33 AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-588
SELECT 29 * COUNT( * ) DIV - 45 - 49 col1
----
-49

skipif mysql # not compatible
query I rowsort label-588
SELECT 29 * COUNT ( * ) / - 45 - 49 col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-589
SELECT MAX( - + 54 ) + 37 * ( + CAST( NULL AS SIGNED ) )
----
NULL

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

query I rowsort
SELECT - NULLIF ( - 61, 80 ) AS col1
----
61

query I rowsort
SELECT 22 + 34
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT ALL - COUNT( * ) - SUM( DISTINCT 64 ) + CASE 0 WHEN ( 59 ) THEN NULL WHEN + 97 THEN 26 ELSE - ( + COUNT( * ) ) END AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-592
SELECT ALL - COUNT ( * ) - SUM ( DISTINCT 64 ) + CASE 0 WHEN ( 59 ) THEN NULL WHEN + 97 THEN 26 ELSE - ( + COUNT ( * ) ) END AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT - MAX( DISTINCT NULLIF ( - 75, 47 ) ) * + 60
----
4500

skipif mysql # not compatible
query I rowsort label-593
SELECT - MAX ( DISTINCT NULLIF ( - 75, 47 ) ) * + 60
----
4500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-594
SELECT CAST( COALESCE ( - 22, 46 ) AS SIGNED ) + 63 col1
----
41

skipif mysql # not compatible
query I rowsort label-594
SELECT CAST ( COALESCE ( - 22, 46 ) AS INTEGER ) + 63 col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT ALL - - COUNT( * ) - + + 56 + - 37 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-595
SELECT ALL - - COUNT ( * ) - + + 56 + - 37 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT ALL - 57 * - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL - 57 * - COUNT ( * )
----
57

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

skipif mysql # not compatible
query I rowsort label-597
SELECT + 2 + + 52 * COUNT ( * ) AS col0
----
54

query I rowsort
SELECT ALL + + ( - ( 0 ) ) * 37 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT ALL - - 44 * - - MAX( ( NULLIF ( 59, 62 ) ) ) + - 70 * ( + 22 )
----
1056

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL - - 44 * - - MAX ( ( NULLIF ( 59, 62 ) ) ) + - 70 * ( + 22 )
----
1056

query I rowsort
SELECT 91 + 79 + - 67 * + 41
----
-2577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-601
SELECT 78 * + - CASE - CAST( 70 AS SIGNED ) WHEN - 58 + - COALESCE ( + 28 + + 5, ( - 99 ) / + 8 ) * + COUNT( * ) THEN NULL ELSE 53 - CASE + 67 WHEN + COUNT( * ) THEN + 8 + 0 / 61 ELSE NULL END / + 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-601
SELECT 78 * + - CASE - CAST ( 70 AS INTEGER ) WHEN - 58 + - COALESCE ( + 28 + + 5, ( - 99 ) / + 8 ) * + COUNT ( * ) THEN NULL ELSE 53 - CASE + 67 WHEN + COUNT ( * ) THEN + 8 + 0 / 61 ELSE NULL END / + 14 END
----
NULL

query I rowsort
SELECT DISTINCT + CASE 16 WHEN + 29 THEN + 75 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT ALL - CASE + + 34 WHEN - 27 THEN COUNT( * ) + + 55 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL - CASE + + 34 WHEN - 27 THEN COUNT ( * ) + + 55 ELSE NULL END
----
NULL

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

query I rowsort
SELECT + + 40 * - 75 * - 61 + - 15
----
182985

query I rowsort
SELECT + 61 * - 56 col1
----
-3416

onlyif mysql # DIV for integer division: 
query I rowsort label-607
SELECT + 10 DIV - + 92 + 79
----
79

skipif mysql # not compatible
query I rowsort label-607
SELECT + 10 / - + 92 + 79
----
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT ALL COUNT( * ) * - COALESCE ( - 41, NULLIF ( + MAX( DISTINCT 8 ), 92 ), 32, 76 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL COUNT ( * ) * - COALESCE ( - 41, NULLIF ( + MAX ( DISTINCT 8 ), 92 ), 32, 76 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT ALL + 35 + - 76 * + MIN( 33 ) AS col0
----
-2473

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL + 35 + - 76 * + MIN ( 33 ) AS col0
----
-2473

query II rowsort
SELECT ALL - 64 AS col0, - 34 * + + 15 + 5
----
-64
-505

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT DISTINCT COALESCE ( + 46, + - 27, + 86, 56 ) * + MAX( ALL + 59 + + 47 ) AS col0
----
4876

skipif mysql # not compatible
query I rowsort label-612
SELECT DISTINCT COALESCE ( + 46, + - 27, + 86, 56 ) * + MAX ( ALL + 59 + + 47 ) AS col0
----
4876

query I rowsort
SELECT ALL 95 + 43 AS col2
----
138

query I rowsort
SELECT DISTINCT - 63 + - + 97 * - 79 - 9
----
7591

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT - 76 * - COALESCE ( + 45, 44, - MIN( 7 ) ) + - 4 * 17
----
3352

skipif mysql # not compatible
query I rowsort label-615
SELECT - 76 * - COALESCE ( + 45, 44, - MIN ( 7 ) ) + - 4 * 17
----
3352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-616
SELECT COUNT( * ) + + - COUNT( * ) * - 87 * SUM( CAST( NULL AS SIGNED ) ) + MAX( DISTINCT 57 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-616
SELECT COUNT ( * ) + + - COUNT ( * ) * - 87 * SUM ( CAST ( NULL AS INTEGER ) ) + MAX ( DISTINCT 57 ) AS col2
----
NULL

query II rowsort
SELECT + 93 AS col2, + 35 + + 10 + + 74
----
93
119

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

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

query I rowsort
SELECT ALL ( + - 61 ) + - + 4 AS col2
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-620
SELECT - 13 * 89 + 42 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-620
SELECT - 13 * 89 + 42 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-621
SELECT ALL - NULLIF ( + + 90, + - CAST( - 90 AS SIGNED ) * + ( + 14 + 40 ) ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL - NULLIF ( + + 90, + - CAST ( - 90 AS INTEGER ) * + ( + 14 + 40 ) ) AS col0
----
-90

query I rowsort
SELECT DISTINCT 71 + - 67 * - - 48
----
-3145

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT ALL NULLIF ( - NULLIF ( - 2, + 80 ), 36 ) + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-623
SELECT ALL NULLIF ( - NULLIF ( - 2, + 80 ), 36 ) + COUNT ( * )
----
3

query I rowsort
SELECT 31 + + 49
----
80

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

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

query II rowsort
SELECT - 62, + 87 AS col2
----
-62
87

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT SUM( ALL + 14 ) * COUNT( * ) * 71 - - 95 * 61 + + 36
----
6825

skipif mysql # not compatible
query I rowsort label-627
SELECT SUM ( ALL + 14 ) * COUNT ( * ) * 71 - - 95 * 61 + + 36
----
6825

query I rowsort
SELECT ALL 70 - + 40 col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT - MAX( + - 29 ) col2
----
29

skipif mysql # not compatible
query I rowsort label-629
SELECT - MAX ( + - 29 ) col2
----
29

query I rowsort
SELECT DISTINCT 85 * 74 + + 66 * - 48 AS col2
----
3122

query II rowsort
SELECT - 87 AS col2, 36 + - 21
----
-87
15

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT ALL COUNT( * ) - + 49 + - 47 * - 4 AS col2
----
140

skipif mysql # not compatible
query I rowsort label-632
SELECT ALL COUNT ( * ) - + 49 + - 47 * - 4 AS col2
----
140

query I rowsort
SELECT DISTINCT - 8 * 24 * + 61 * + 59 AS col2
----
-691008

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT ALL + - 71 - - COUNT( * ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-634
SELECT ALL + - 71 - - COUNT ( * ) AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-635
SELECT DISTINCT + 75 * + MAX( - CAST( - 29 AS SIGNED ) ) + 12 AS col1
----
2187

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT + 75 * + MAX ( - CAST ( - 29 AS INTEGER ) ) + 12 AS col1
----
2187

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT + + 36 + - ( 77 ) * - COUNT( * ) AS col0
----
113

skipif mysql # not compatible
query I rowsort label-636
SELECT + + 36 + - ( 77 ) * - COUNT ( * ) AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT - + CASE 84 WHEN + - COALESCE ( + SUM( 47 ), ( - MIN( ALL 59 ) ) ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-637
SELECT - + CASE 84 WHEN + - COALESCE ( + SUM ( 47 ), ( - MIN ( ALL 59 ) ) ) THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT + + 20 * + 83 AS col2
----
1660

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-640
SELECT + COUNT( * ) AS col2, 47 * + - 83 + + CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-640
SELECT + COUNT ( * ) AS col2, 47 * + - 83 + + CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-641
SELECT - + 81 * COALESCE ( 45, + ( NULLIF ( 64, 20 ) ) DIV + 84 )
----
-3645

skipif mysql # not compatible
query I rowsort label-641
SELECT - + 81 * COALESCE ( 45, + ( NULLIF ( 64, 20 ) ) / + 84 )
----
-3645

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT + SUM( DISTINCT + ( - 34 ) ) - 86 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-642
SELECT + SUM ( DISTINCT + ( - 34 ) ) - 86 AS col0
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-643
SELECT - 45 DIV + 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-643
SELECT - 45 / + 87 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT ALL - 59 * + ( + - COUNT( * ) ) / NULLIF ( - NULLIF ( CASE 45 WHEN - COUNT( * ) / - 89 THEN NULL WHEN + 55 THEN 63 END, 6 ) * + COALESCE ( COUNT( * ), - COUNT( DISTINCT - 69 ) + + 30 ) + 11, + 52 - + 27 / - 91 ) + 74 * ( + 38 + ( - 72 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL - 59 * + ( + - COUNT ( * ) ) / NULLIF ( - NULLIF ( CASE 45 WHEN - COUNT ( * ) / - 89 THEN NULL WHEN + 55 THEN 63 END, 6 ) * + COALESCE ( COUNT ( * ), - COUNT ( DISTINCT - 69 ) + + 30 ) + 11, + 52 - + 27 / - 91 ) + 74 * ( + 38 + ( - 72 ) )
----
NULL

query I rowsort
SELECT + 84 * + 24
----
2016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-646
SELECT - COUNT( + 60 ) - + 9 DIV - 47 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-646
SELECT - COUNT ( + 60 ) - + 9 / - 47 AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT - COUNT( * ) + + 54 + ( MAX( ALL + 48 ) ) AS col2
----
101

skipif mysql # not compatible
query I rowsort label-648
SELECT - COUNT ( * ) + + 54 + ( MAX ( ALL + 48 ) ) AS col2
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-649
SELECT + 29 AS col2, CAST( NULL AS SIGNED ) * - - 56
----
29
NULL

skipif mysql # not compatible
query II rowsort label-649
SELECT + 29 AS col2, CAST ( NULL AS INTEGER ) * - - 56
----
29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT ALL COUNT( * ) * + 49 * + - 42 + 22 * - 16
----
-2410

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL COUNT ( * ) * + 49 * + - 42 + 22 * - 16
----
-2410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-651
SELECT COALESCE ( + CASE + + 22 WHEN + 13 * 15 THEN NULL WHEN 93 THEN 12 + - COUNT( * ) ELSE NULL END, NULLIF ( 77, 68 / CASE + COALESCE ( NULLIF ( 23, + MIN( DISTINCT 63 ) ), + ( - ( CAST( NULL AS SIGNED ) ) ) ) WHEN 99 * + 63 THEN 39 WHEN 87 * 86 THEN NULL END + 66 ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-651
SELECT COALESCE ( + CASE + + 22 WHEN + 13 * 15 THEN NULL WHEN 93 THEN 12 + - COUNT ( * ) ELSE NULL END, NULLIF ( 77, 68 / CASE + COALESCE ( NULLIF ( 23, + MIN ( DISTINCT 63 ) ), + ( - ( CAST ( NULL AS INTEGER ) ) ) ) WHEN 99 * + 63 THEN 39 WHEN 87 * 86 THEN NULL END + 66 ) ) AS col2
----
77

query I rowsort
SELECT ALL + 1 * + - 50 + ( - + 0 ) + + 29 AS col1
----
-21

query I rowsort
SELECT - 2 * + - 63 AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT DISTINCT 10 * - 73 + - MIN( DISTINCT - - 66 ) - MIN( - 93 )
----
-703

skipif mysql # not compatible
query I rowsort label-654
SELECT DISTINCT 10 * - 73 + - MIN ( DISTINCT - - 66 ) - MIN ( - 93 )
----
-703

query I rowsort
SELECT NULLIF ( - - 34, - 57 + 86 ) AS col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-656
SELECT - 72 DIV - + COUNT( * ) - 25
----
47

skipif mysql # not compatible
query I rowsort label-656
SELECT - 72 / - + COUNT ( * ) - 25
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT ALL + ( - CASE 85 WHEN COUNT( * ) THEN NULL WHEN - 5 THEN 31 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL + ( - CASE 85 WHEN COUNT ( * ) THEN NULL WHEN - 5 THEN 31 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT COALESCE ( + - SUM( DISTINCT - 5 ), MAX( 46 ) + 76 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-658
SELECT COALESCE ( + - SUM ( DISTINCT - 5 ), MAX ( 46 ) + 76 ) AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-659
SELECT ALL + 24 * - CASE - 84 WHEN - + 5 / - 75 + CAST( NULL AS SIGNED ) THEN NULL ELSE - COALESCE ( - 66, - 67 - 16, + 12 ) * - 32 END + + 91 AS col1
----
50779

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL + 24 * - CASE - 84 WHEN - + 5 / - 75 + CAST ( NULL AS INTEGER ) THEN NULL ELSE - COALESCE ( - 66, - 67 - 16, + 12 ) * - 32 END + + 91 AS col1
----
50779

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-660
SELECT - CAST( + - 79 AS SIGNED ) * - 18
----
-1422

skipif mysql # not compatible
query I rowsort label-660
SELECT - CAST ( + - 79 AS INTEGER ) * - 18
----
-1422

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT NULLIF ( - + 3, MIN( - ( - 88 ) ) * + ( - COUNT( * ) ) )
----
-3

skipif mysql # not compatible
query I rowsort label-661
SELECT NULLIF ( - + 3, MIN ( - ( - 88 ) ) * + ( - COUNT ( * ) ) )
----
-3

query I rowsort
SELECT - 9 * 74 + - 93
----
-759

query I rowsort
SELECT ALL + NULLIF ( COALESCE ( - - 98, + + 51, 71, + 77 ), 68 + 84 / 22 ) col1
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-664
SELECT DISTINCT + ( - + 60 ) AS col2, 20 * + SUM( DISTINCT 65 )
----
-60
1300

skipif mysql # not compatible
query II rowsort label-664
SELECT DISTINCT + ( - + 60 ) AS col2, 20 * + SUM ( DISTINCT 65 )
----
-60
1300

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT DISTINCT + COUNT( * ) * + 21 * + ( 82 ) - 12
----
1710

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT + COUNT ( * ) * + 21 * + ( 82 ) - 12
----
1710

query I rowsort
SELECT - 82 + - + 94 * - 9 + - 31 AS col1
----
733

onlyif mysql # DIV for integer division: 
query I rowsort label-667
SELECT + 88 DIV 79
----
1

skipif mysql # not compatible
query I rowsort label-667
SELECT + 88 / 79
----
1

query I rowsort
SELECT ALL + 81 * - + ( + CASE + 52 WHEN 17 * 97 - - 93 * 78 THEN 58 ELSE NULL END ) - + 33
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-669
SELECT SUM( DISTINCT - 95 ) AS col1, + 35 AS col1
----
-95
35

skipif mysql # not compatible
query II rowsort label-669
SELECT SUM ( DISTINCT - 95 ) AS col1, + 35 AS col1
----
-95
35

query I rowsort
SELECT - NULLIF ( + 60, 49 ) * 6 - 78 + 86 AS col1
----
-352

query I rowsort
SELECT - 34 * - 53 AS col1
----
1802

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT 6 * MIN( DISTINCT + 49 ) + - 75 col0
----
219

skipif mysql # not compatible
query I rowsort label-672
SELECT 6 * MIN ( DISTINCT + 49 ) + - 75 col0
----
219

query I rowsort
SELECT + 58 / - 97 / CASE + 79 WHEN 59 / + 30 THEN NULL WHEN - 5 THEN 63 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-674
SELECT SUM( ALL - 60 ), CAST( NULL AS SIGNED ) AS col1
----
-60
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT - 43 + + COUNT( * ) + - - 64
----
22

skipif mysql # not compatible
query I rowsort label-675
SELECT - 43 + + COUNT ( * ) + - - 64
----
22

query I rowsort
SELECT + 57 + + 18 + + 6
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-677
SELECT + - 9 DIV 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-677
SELECT + - 9 / 34 AS col1
----
0

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

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

query I rowsort
SELECT - - 65 + ( + - 50 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT + - 60 + COUNT( * ) + - 20
----
-79

skipif mysql # not compatible
query I rowsort label-680
SELECT + - 60 + COUNT ( * ) + - 20
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-681
SELECT ALL 63 DIV - 17
----
-3

skipif mysql # not compatible
query I rowsort label-681
SELECT ALL 63 / - 17
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-682
SELECT - 32 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-682
SELECT - 32 / 86
----
0

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-685
SELECT ALL 90 + - 98 + + + CAST( 69 AS SIGNED ) - - CASE 79 WHEN COUNT( * ) THEN NULL WHEN 9 * - 1 THEN - 35 + 1 * + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-685
SELECT ALL 90 + - 98 + + + CAST ( 69 AS INTEGER ) - - CASE 79 WHEN COUNT ( * ) THEN NULL WHEN 9 * - 1 THEN - 35 + 1 * + COUNT ( * ) END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL 3 + - + COUNT ( * ) + 80
----
82

query I rowsort
SELECT + - ( + 71 ) * - + 51 AS col2
----
3621

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-688
SELECT DISTINCT - 2 + + - 26 col1, CAST( - 70 AS SIGNED ) AS col2
----
-28
-70

skipif mysql # not compatible
query II rowsort label-688
SELECT DISTINCT - 2 + + - 26 col1, CAST ( - 70 AS INTEGER ) AS col2
----
-28
-70

query I rowsort
SELECT ALL + NULLIF ( 30, + 8 * + 67 + - 10 ) + 15
----
45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT DISTINCT 74 + + 38 + NULLIF ( - + COUNT( * ), + 69 * 33 ) AS col2
----
111

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT 74 + + 38 + NULLIF ( - + COUNT ( * ), + 69 * 33 ) AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT + COUNT( * ) + 94 + - + 48 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-692
SELECT + COUNT ( * ) + 94 + - + 48 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT DISTINCT MAX( + 87 ) + 5 * 83
----
502

skipif mysql # not compatible
query I rowsort label-693
SELECT DISTINCT MAX ( + 87 ) + 5 * 83
----
502

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT - 37 + COUNT( * ) col2
----
-36

skipif mysql # not compatible
query I rowsort label-695
SELECT - 37 + COUNT ( * ) col2
----
-36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-697
SELECT ALL 60 DIV - + 54 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL 60 / - + 54 AS col1
----
-1

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

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

query I rowsort
SELECT + 1 * 65 col1
----
65

query I rowsort
SELECT ALL - 46 * + - 86 AS col0
----
3956

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-703
SELECT ALL + CAST( - 29 AS SIGNED ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-703
SELECT ALL + CAST ( - 29 AS INTEGER ) AS col1
----
-29

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-705
SELECT - COUNT( * ) + + 33 - + CAST( + - 69 AS SIGNED ) + COUNT( 46 )
----
102

skipif mysql # not compatible
query I rowsort label-705
SELECT - COUNT ( * ) + + 33 - + CAST ( + - 69 AS INTEGER ) + COUNT ( 46 )
----
102

query I rowsort
SELECT - 17 * - 51 * - 3
----
-2601

query I rowsort
SELECT DISTINCT + COALESCE ( - 36, 24, - 86 * - 94 * 4 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT ALL - NULLIF ( - COUNT( * ), COALESCE ( - - MAX( - 86 ), + COUNT( * ), 29 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL - NULLIF ( - COUNT ( * ), COALESCE ( - - MAX ( - 86 ), + COUNT ( * ), 29 ) ) AS col2
----
1

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

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

query I rowsort
SELECT ALL 94 * - - 1 * - 89 + + + 15 AS col0
----
-8351

onlyif mysql # aggregate syntax: 
query II rowsort label-711
SELECT ALL - COUNT( + + 35 ) * - 41, + 34 AS col1
----
41
34

skipif mysql # not compatible
query II rowsort label-711
SELECT ALL - COUNT ( + + 35 ) * - 41, + 34 AS col1
----
41
34

onlyif mysql # DIV for integer division: 
query I rowsort label-712
SELECT 96 + + 97 DIV NULLIF ( 97, - 23 + + 29 )
----
97

skipif mysql # not compatible
query I rowsort label-712
SELECT 96 + + 97 / NULLIF ( 97, - 23 + + 29 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT - 21 * COUNT( 11 ) * - + 99 AS col2
----
2079

skipif mysql # not compatible
query I rowsort label-713
SELECT - 21 * COUNT ( 11 ) * - + 99 AS col2
----
2079

query I rowsort
SELECT 43 * - + 12 AS col0
----
-516

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT - - CASE + + 74 WHEN 84 / - + ( + COALESCE ( 65, MIN( DISTINCT 24 ) ) ) * + CASE - 96 WHEN COUNT( * ) * + 32 THEN - 65 WHEN - 57 THEN NULL END THEN 46 ELSE - 30 END AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-716
SELECT - - CASE + + 74 WHEN 84 / - + ( + COALESCE ( 65, MIN ( DISTINCT 24 ) ) ) * + CASE - 96 WHEN COUNT ( * ) * + 32 THEN - 65 WHEN - 57 THEN NULL END THEN 46 ELSE - 30 END AS col1
----
-30

query I rowsort
SELECT DISTINCT - - ( - COALESCE ( + - 32, - + 82 ) ) + NULLIF ( - 18, ( + 45 ) * 41 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT ALL + - 24 + MAX( ALL - 38 )
----
-62

skipif mysql # not compatible
query I rowsort label-718
SELECT ALL + - 24 + MAX ( ALL - 38 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT ALL - 65 * 3 * COALESCE ( - 51, + 17 ) + MIN( ALL 74 - 20 * 42 ) AS col1
----
9179

skipif mysql # not compatible
query I rowsort label-719
SELECT ALL - 65 * 3 * COALESCE ( - 51, + 17 ) + MIN ( ALL 74 - 20 * 42 ) AS col1
----
9179

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

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

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

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

query I rowsort
SELECT ALL + 84 + + 80 AS col1
----
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-723
SELECT + ( + CAST( 68 AS SIGNED ) ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-723
SELECT + ( + CAST ( 68 AS INTEGER ) ) AS col2
----
68

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

onlyif mysql # DIV for integer division: 
query I rowsort label-725
SELECT DISTINCT - 9 DIV + - 83 col0
----
0

skipif mysql # not compatible
query I rowsort label-725
SELECT DISTINCT - 9 / + - 83 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-726
SELECT COALESCE ( + - COALESCE ( - + 12, - 59 ), - CASE + 10 WHEN - 84 * + 33 THEN 11 WHEN 97 THEN NULL WHEN - 25 THEN NULL ELSE NULL END ) DIV - NULLIF ( - 70, - COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-726
SELECT COALESCE ( + - COALESCE ( - + 12, - 59 ), - CASE + 10 WHEN - 84 * + 33 THEN 11 WHEN 97 THEN NULL WHEN - 25 THEN NULL ELSE NULL END ) / - NULLIF ( - 70, - COUNT ( * ) ) AS col2
----
0

query I rowsort
SELECT ALL + + COALESCE ( + - NULLIF ( + - 68, - ( + 32 ) - 25 ), 19 ) + 89 AS col2
----
157

query I rowsort
SELECT 45 * + + 33 AS col0
----
1485

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-729
SELECT - 37 + NULLIF ( + 83, - + CAST( NULL AS DECIMAL ) - - 21 + 94 * 17 )
----
46

skipif mysql # not compatible
query I rowsort label-729
SELECT - 37 + NULLIF ( + 83, - + CAST ( NULL AS REAL ) - - 21 + 94 * 17 )
----
46

query II rowsort
SELECT ALL - 35 AS col0, + 29
----
-35
29

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT - + MIN( - 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-731
SELECT - + MIN ( - 42 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT NULLIF ( COALESCE ( + COUNT( * ), 1 ), - + NULLIF ( - 44, 87 + - COUNT( * ) ) ) + 46
----
47

skipif mysql # not compatible
query I rowsort label-732
SELECT NULLIF ( COALESCE ( + COUNT ( * ), 1 ), - + NULLIF ( - 44, 87 + - COUNT ( * ) ) ) + 46
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT ALL 19 + - COUNT( * ) * - 7 + - 39 + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL 19 + - COUNT ( * ) * - 7 + - 39 + COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT 99 - + + 45 + + 90 + - + 75 - COALESCE ( 63, 21 ) * COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-734
SELECT 99 - + + 45 + + 90 + - + 75 - COALESCE ( 63, 21 ) * COUNT ( * ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-735
SELECT DISTINCT 77, CAST( NULL AS SIGNED ) / + COUNT( + 40 ) / 70 + - + COUNT( * ) + + ( - 93 ) * - COUNT( * ) AS col1
----
77
NULL

skipif mysql # not compatible
query II rowsort label-735
SELECT DISTINCT 77, CAST ( NULL AS INTEGER ) / + COUNT ( + 40 ) / 70 + - + COUNT ( * ) + + ( - 93 ) * - COUNT ( * ) AS col1
----
77
NULL

query II rowsort
SELECT ALL 83 AS col0, + 73 col0
----
83
73

query I rowsort
SELECT 24 * - - 64
----
1536

query II rowsort
SELECT + 93, 76 AS col1
----
93
76

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT 87 * - COUNT( * ) - - 37 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-739
SELECT 87 * - COUNT ( * ) - - 37 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT COUNT( * ) * - 61 * + 43 col1
----
-2623

skipif mysql # not compatible
query I rowsort label-740
SELECT COUNT ( * ) * - 61 * + 43 col1
----
-2623

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-741
SELECT + 2 AS col1, - CAST( NULL AS SIGNED )
----
2
NULL

skipif mysql # not compatible
query II rowsort label-741
SELECT + 2 AS col1, - CAST ( NULL AS INTEGER )
----
2
NULL

query II rowsort
SELECT ALL - 95, 15 * + - 93 * 67 AS col1
----
-95
-93465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-743
SELECT NULLIF ( + - 83, + + 55 + + COALESCE ( - 64, - - 56 ) + + 70 DIV 44 * COUNT( * ) ) DIV 38
----
-2

skipif mysql # not compatible
query I rowsort label-743
SELECT NULLIF ( + - 83, + + 55 + + COALESCE ( - 64, - - 56 ) + + 70 / 44 * COUNT ( * ) ) / 38
----
-2

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

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

query I rowsort
SELECT NULLIF ( + + ( + - ( 73 ) ), COALESCE ( - 76, - 75 ) ) * + 23 AS col2
----
-1679

query I rowsort
SELECT DISTINCT + 6 * 51 AS col1
----
306

query I rowsort
SELECT DISTINCT ( - 70 ) * + - 41 AS col2
----
2870

onlyif mysql # DIV for integer division: 
query I rowsort label-748
SELECT 59 DIV + 92 * - + 12 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-748
SELECT 59 / + 92 * - + 12 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT ALL - - ( + + NULLIF ( + 90, + COALESCE ( + 70, - - 65 ) * COUNT( * ) - ( ( + 63 ) - - 51 * - 4 ) ) ) col2
----
90

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL - - ( + + NULLIF ( + 90, + COALESCE ( + 70, - - 65 ) * COUNT ( * ) - ( ( + 63 ) - - 51 * - 4 ) ) ) col2
----
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT DISTINCT - 87 * 90 * 12 * - 1 + - + COUNT( * )
----
93959

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT - 87 * 90 * 12 * - 1 + - + COUNT ( * )
----
93959

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT ALL 22 * - 50 + + COUNT( - 68 ) + - - 60 * - 63 + 74
----
-4805

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL 22 * - 50 + + COUNT ( - 68 ) + - - 60 * - 63 + 74
----
-4805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-753
SELECT 24 * + 75 + + + CASE + + COUNT( * ) WHEN 12 + + ( + AVG ( DISTINCT + 55 ) ) + - COUNT( * ) * 44 THEN NULL WHEN 52 THEN - CAST( - 23 AS SIGNED ) * - MIN( DISTINCT + 2 + + 10 ) ELSE NULL END + - 13 + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-753
SELECT 24 * + 75 + + + CASE + + COUNT ( * ) WHEN 12 + + ( + AVG ( DISTINCT + 55 ) ) + - COUNT ( * ) * 44 THEN NULL WHEN 52 THEN - CAST ( - 23 AS INTEGER ) * - MIN ( DISTINCT + 2 + + 10 ) ELSE NULL END + - 13 + 43 AS col2
----
NULL

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

skipif mysql # not compatible
query II rowsort label-754
SELECT ALL - - 36 AS col0, COUNT ( * )
----
36
1

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT - - CASE WHEN NOT 18 IS NULL THEN + 49 END * - - 94 + 45 - - COALESCE ( 88 - 36 * 13, + COUNT( * ) * 5 ) * NULLIF ( 83 + - 60, 39 ) AS col1
----
-4089

skipif mysql # not compatible
query I rowsort label-755
SELECT - - CASE WHEN NOT 18 IS NULL THEN + 49 END * - - 94 + 45 - - COALESCE ( 88 - 36 * 13, + COUNT ( * ) * 5 ) * NULLIF ( 83 + - 60, 39 ) AS col1
----
-4089

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-756
SELECT COALESCE ( + 56, - - COUNT( * ) * - 33 + 83, + 3 ) DIV - 96 col2
----
0

skipif mysql # not compatible
query I rowsort label-756
SELECT COALESCE ( + 56, - - COUNT ( * ) * - 33 + 83, + 3 ) / - 96 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT ALL + 38 + + + COUNT( - 83 ) * + - NULLIF ( + 28, + + 88 + - COALESCE ( 29 - 86, 79, 40 - + 44 * 91 ) ) * 90 AS col2
----
-2482

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL + 38 + + + COUNT ( - 83 ) * + - NULLIF ( + 28, + + 88 + - COALESCE ( 29 - 86, 79, 40 - + 44 * 91 ) ) * 90 AS col2
----
-2482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-758
SELECT - NULLIF ( - 35, + ( 7 ) ), CAST( + 55 AS SIGNED ) - COUNT( 37 ) AS col1
----
35
54

skipif mysql # not compatible
query II rowsort label-758
SELECT - NULLIF ( - 35, + ( 7 ) ), CAST ( + 55 AS INTEGER ) - COUNT ( 37 ) AS col1
----
35
54

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-761
SELECT ALL 35 col2, + 0 + NULLIF ( + - 32, + 3 + + 18 ) DIV CAST( 4 * 84 AS SIGNED )
----
35
0

skipif mysql # not compatible
query II rowsort label-761
SELECT ALL 35 col2, + 0 + NULLIF ( + - 32, + 3 + + 18 ) / CAST ( 4 * 84 AS INTEGER )
----
35
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-762
SELECT ALL + CASE 39 WHEN 70 - + 39 THEN + - CAST( NULL AS DECIMAL ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL + CASE 39 WHEN 70 - + 39 THEN + - CAST ( NULL AS REAL ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - + 93 + 28
----
-65

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-765
SELECT ALL - 22 + ( + + 92 ) DIV ( + - 15 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-765
SELECT ALL - 22 + ( + + 92 ) / ( + - 15 ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT - 78 + + MIN( + + 38 )
----
-40

skipif mysql # not compatible
query I rowsort label-766
SELECT - 78 + + MIN ( + + 38 )
----
-40

query I rowsort
SELECT ALL + + 17 * 69 AS col1
----
1173

query I rowsort
SELECT - 21 * - 28 col0
----
588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-769
SELECT CASE 34 WHEN 87 THEN NULL WHEN + ( - 21 ) + - + CAST( - 82 AS SIGNED ) THEN - 24 ELSE - 51 * 18 END + + 79
----
-839

skipif mysql # not compatible
query I rowsort label-769
SELECT CASE 34 WHEN 87 THEN NULL WHEN + ( - 21 ) + - + CAST ( - 82 AS INTEGER ) THEN - 24 ELSE - 51 * 18 END + + 79
----
-839

query II rowsort
SELECT 91 AS col1, + 43 AS col2
----
91
43

query I rowsort
SELECT 39 + 76 * - ( - + 51 )
----
3915

query I rowsort
SELECT DISTINCT + 73 * + 80
----
5840

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT ALL MIN( DISTINCT 31 )
----
31

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL MIN ( DISTINCT 31 )
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-774
SELECT COUNT( * ) * + + 45 * COUNT( * ) DIV - NULLIF ( 25, - NULLIF ( + - 39, 81 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-774
SELECT COUNT ( * ) * + + 45 * COUNT ( * ) / - NULLIF ( 25, - NULLIF ( + - 39, 81 ) ) col1
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT NULLIF ( - + 55, MAX( - + 64 ) * + - 8 * 5 + + + 70 - + COALESCE ( 21, - 20 + - NULLIF ( + NULLIF ( + COUNT( * ), 33 / + 56 ), - 94 ), - 50 ) ) + + 25 * 71 AS col0
----
1720

skipif mysql # not compatible
query I rowsort label-776
SELECT NULLIF ( - + 55, MAX ( - + 64 ) * + - 8 * 5 + + + 70 - + COALESCE ( 21, - 20 + - NULLIF ( + NULLIF ( + COUNT ( * ), 33 / + 56 ), - 94 ), - 50 ) ) + + 25 * 71 AS col0
----
1720

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

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

query I rowsort
SELECT 24 * + 60 AS col2
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT MIN( DISTINCT - 99 ) * - - 34
----
-3366

skipif mysql # not compatible
query I rowsort label-779
SELECT MIN ( DISTINCT - 99 ) * - - 34
----
-3366

query I rowsort
SELECT NULLIF ( + 69, + 0 )
----
69

query I rowsort
SELECT ALL 99 * 41
----
4059

query I rowsort
SELECT ALL CASE + 0 WHEN + 75 THEN NULL WHEN + - 84 + - ( + AVG ( - 47 ) ) THEN 90 ELSE NULL END * 81 + + 38 * 71 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT ( + COUNT( * ) ) * COUNT( * ) + NULLIF ( - 33, + 9 / + 36 * 3 + + 74 ) + + 67 * 95 AS col2
----
6333

skipif mysql # not compatible
query I rowsort label-783
SELECT ( + COUNT ( * ) ) * COUNT ( * ) + NULLIF ( - 33, + 9 / + 36 * 3 + + 74 ) + + 67 * 95 AS col2
----
6333

onlyif mysql # aggregate syntax: 
query III rowsort label-784
SELECT + SUM( DISTINCT + - 0 ) AS col1, 37 + - - ( - + 5 ), + 72 AS col0
----
0
32
72

skipif mysql # not compatible
query III rowsort label-784
SELECT + SUM ( DISTINCT + - 0 ) AS col1, 37 + - - ( - + 5 ), + 72 AS col0
----
0
32
72

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT - 69 * + 16 * + - COUNT( * ) AS col2
----
1104

skipif mysql # not compatible
query I rowsort label-785
SELECT - 69 * + 16 * + - COUNT ( * ) AS col2
----
1104

query I rowsort
SELECT + 12 * - + 93 + 86 * 29 - - 61 + + 14
----
1453

query I rowsort
SELECT - 82 + + 75 AS col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-788
SELECT DISTINCT 52 DIV - 60 * + 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-788
SELECT DISTINCT 52 / - 60 * + 43 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT ALL 40 * + COUNT( ALL - 45 ) * + + 78 + - - 72 + + ( - - 46 ) * + 52 AS col2
----
5584

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL 40 * + COUNT ( ALL - 45 ) * + + 78 + - - 72 + + ( - - 46 ) * + 52 AS col2
----
5584

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-791
SELECT DISTINCT - + 27 * - - 42 * 56 + - 12 + - + 7 DIV - 98 AS col2
----
-63516

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT - + 27 * - - 42 * 56 + - 12 + - + 7 / - 98 AS col2
----
-63516

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT ALL - - 60 * - SUM( + + 42 ) * + + 54 + NULLIF ( + 43, - - 84 ) + + 74
----
-135963

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL - - 60 * - SUM ( + + 42 ) * + + 54 + NULLIF ( + 43, - - 84 ) + + 74
----
-135963

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-793
SELECT + + 20 * - 76 + - 28 - 87 + - + CAST( NULL AS DECIMAL ) * + 12 * + COUNT( * ) * 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-793
SELECT + + 20 * - 76 + - 28 - 87 + - + CAST ( NULL AS REAL ) * + 12 * + COUNT ( * ) * 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-794
SELECT DISTINCT + 15 * 31 AS col2, - 66 + - 12 * - 94 + - 37 + - - COUNT( * ) - + 90 * 24 AS col1
----
465
-1134

skipif mysql # not compatible
query II rowsort label-794
SELECT DISTINCT + 15 * 31 AS col2, - 66 + - 12 * - 94 + - 37 + - - COUNT ( * ) - + 90 * 24 AS col1
----
465
-1134

query I rowsort
SELECT ALL - 82 * + - 6 AS col1
----
492

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT DISTINCT 40 + - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-796
SELECT DISTINCT 40 + - COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-797
SELECT - MAX( + - 32 ) AS col1, 83 * + + COUNT( * )
----
32
83

skipif mysql # not compatible
query II rowsort label-797
SELECT - MAX ( + - 32 ) AS col1, 83 * + + COUNT ( * )
----
32
83

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT ALL + 90 - + 61 + COUNT( * ) * 44 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL + 90 - + 61 + COUNT ( * ) * 44 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT DISTINCT + + NULLIF ( 62, COUNT( * ) * 14 + 23 ) - 64 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT + + NULLIF ( 62, COUNT ( * ) * 14 + 23 ) - 64 AS col2
----
-2

query I rowsort
SELECT - 19 * 26 * - + 47
----
23218

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT ALL + ( + - NULLIF ( + - 83, + CASE - ( + 46 ) WHEN 21 THEN NULL WHEN + 24 * COUNT( * ) THEN 86 END * 76 + 64 ) ) * COUNT( 49 )
----
83

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL + ( + - NULLIF ( + - 83, + CASE - ( + 46 ) WHEN 21 THEN NULL WHEN + 24 * COUNT ( * ) THEN 86 END * 76 + 64 ) ) * COUNT ( 49 )
----
83

query I rowsort
SELECT - 72 - + - 81 * - + 49
----
-4041

query I rowsort
SELECT + 83 * + 59 AS col1
----
4897

query I rowsort
SELECT + 42 + + 49 * ( + 30 )
----
1512

query I rowsort
SELECT DISTINCT COALESCE ( + 71, - ( + ( 36 ) ) )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT DISTINCT COALESCE ( + + MIN( ALL + + NULLIF ( + 44, + ( - 29 ) ) ), - COUNT( * ) * + 25 * - 15 + - 5 + - 43, 12 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-806
SELECT DISTINCT COALESCE ( + + MIN ( ALL + + NULLIF ( + 44, + ( - 29 ) ) ), - COUNT ( * ) * + 25 * - 15 + - 5 + - 43, 12 ) AS col0
----
44

query I rowsort
SELECT - 12 + + 59
----
47

query I rowsort
SELECT DISTINCT + 97 + - 46 AS col0
----
51

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-810
SELECT - 6 DIV + + 90 * - - 86 AS col1, - 55
----
0
-55

skipif mysql # not compatible
query II rowsort label-810
SELECT - 6 / + + 90 * - - 86 AS col1, - 55
----
0
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-811
SELECT DISTINCT 17 + 12 * CAST( - 82 AS SIGNED ) + CASE - COALESCE ( 2, + 34, + ( + 0 ) ) WHEN 98 + - COUNT( * ) THEN NULL WHEN 89 * - CAST( AVG ( ALL + 98 ) AS SIGNED ) THEN + 34 + 50 END + 78 * - 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-811
SELECT DISTINCT 17 + 12 * CAST ( - 82 AS INTEGER ) + CASE - COALESCE ( 2, + 34, + ( + 0 ) ) WHEN 98 + - COUNT ( * ) THEN NULL WHEN 89 * - CAST ( AVG ( ALL + 98 ) AS INTEGER ) THEN + 34 + 50 END + 78 * - 67 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-812
SELECT ALL + SUM( DISTINCT - - 78 ) DIV + - 89 + + 60 + - 33 + - + MAX( ALL CAST( 92 AS SIGNED ) )
----
-65

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL + SUM ( DISTINCT - - 78 ) / + - 89 + + 60 + - 33 + - + MAX ( ALL CAST ( 92 AS INTEGER ) )
----
-65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-813
SELECT 61 DIV - + 17 + + + 57 - - - CAST( + 51 AS SIGNED ) * - - ( - 93 ) * + 59
----
279891

skipif mysql # not compatible
query I rowsort label-813
SELECT 61 / - + 17 + + + 57 - - - CAST ( + 51 AS INTEGER ) * - - ( - 93 ) * + 59
----
279891

onlyif mysql # DIV for integer division: 
query I rowsort label-814
SELECT + 75 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-814
SELECT + 75 / + 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-815
SELECT DISTINCT ( + + 75 ) / - - 10 + - 97 + 93 / - - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + - 83 * COALESCE ( + MIN( - 54 ), 11, + 12 + 86 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-815
SELECT DISTINCT ( + + 75 ) / - - 10 + - 97 + 93 / - - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + - 83 * COALESCE ( + MIN ( - 54 ), 11, + 12 + 86 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-816
SELECT + CASE - 73 WHEN - + COALESCE ( - + 87, 66, 7 + + 72 - 34 - - 18 ) / - CAST( NULL AS SIGNED ) THEN + 22 ELSE - 34 + 99 * MAX( 20 + + 12 ) END * - 74
----
-231916

skipif mysql # not compatible
query I rowsort label-816
SELECT + CASE - 73 WHEN - + COALESCE ( - + 87, 66, 7 + + 72 - 34 - - 18 ) / - CAST ( NULL AS INTEGER ) THEN + 22 ELSE - 34 + 99 * MAX ( 20 + + 12 ) END * - 74
----
-231916

query I rowsort
SELECT ALL 40 * 72 AS col2
----
2880

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-820
SELECT ALL - + 83 * - COUNT( * ) + - + 8 * - 75 + + 60 + - CAST( - + 41 AS SIGNED ) + - 3 + - 9 * - 14
----
907

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL - + 83 * - COUNT ( * ) + - + 8 * - 75 + + 60 + - CAST ( - + 41 AS INTEGER ) + - 3 + - 9 * - 14
----
907

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT ALL + 86 * + MIN( - 44 ) AS col0
----
-3784

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL + 86 * + MIN ( - 44 ) AS col0
----
-3784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-822
SELECT - - 8 * - 42 / + 93 * + + CAST( NULL AS SIGNED ) * + 17 * 40 / + 71 / + 69 - + 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-822
SELECT - - 8 * - 42 / + 93 * + + CAST ( NULL AS INTEGER ) * + 17 * 40 / + 71 / + 69 - + 5 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-823
SELECT ALL 13 * 39 - + 7 + + 63 DIV 50 * + - NULLIF ( + COUNT( * ), + 11 * + ( 31 + + 43 * 58 ) ) col0
----
499

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL 13 * 39 - + 7 + + 63 / 50 * + - NULLIF ( + COUNT ( * ), + 11 * + ( 31 + + 43 * 58 ) ) col0
----
499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-824
SELECT + 42 * + + 85 * - 50 + - 81 + + COUNT( * ) + + 71 - - COUNT( * ) + 79 + 73 * SUM( ALL CAST( - 15 AS SIGNED ) DIV 89 )
----
-178429

skipif mysql # not compatible
query I rowsort label-824
SELECT + 42 * + + 85 * - 50 + - 81 + + COUNT ( * ) + + 71 - - COUNT ( * ) + 79 + 73 * SUM ( ALL CAST ( - 15 AS INTEGER ) / 89 )
----
-178429

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

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT + ( + - 45 ) * - COUNT( ALL - 8 )
----
45

skipif mysql # not compatible
query I rowsort label-826
SELECT + ( + - 45 ) * - COUNT ( ALL - 8 )
----
45

query II rowsort
SELECT + 10 AS col1, 87 * + 12 AS col2
----
10
1044

query II rowsort
SELECT + 26 + + 75 + - 48 AS col0, 29
----
53
29

query I rowsort
SELECT + 40 + + + 57 col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT ALL SUM( + 72 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL SUM ( + 72 ) AS col0
----
72

query I rowsort
SELECT + - 48 * - 96 AS col1
----
4608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-832
SELECT - + CASE WHEN NOT - CAST( NULL AS SIGNED ) IN ( - 28, 23 + NULLIF ( MAX( DISTINCT + - 76 ), + 34 * 26 ) * 36 ) THEN + SUM( ALL 59 ) - CAST( COUNT( * ) AS DECIMAL ) END * 45 + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-832
SELECT - + CASE WHEN NOT - CAST ( NULL AS INTEGER ) IN ( - 28, 23 + NULLIF ( MAX ( DISTINCT + - 76 ), + 34 * 26 ) * 36 ) THEN + SUM ( ALL 59 ) - CAST ( COUNT ( * ) AS REAL ) END * 45 + - 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT ALL + COUNT( ALL + 30 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL + COUNT ( ALL + 30 ) AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT 55 * - 51 * - - COUNT( * ) + - COUNT( * ) + + + 45 AS col0
----
-2761

skipif mysql # not compatible
query I rowsort label-835
SELECT 55 * - 51 * - - COUNT ( * ) + - COUNT ( * ) + + + 45 AS col0
----
-2761

query I rowsort
SELECT + 84 * - 38
----
-3192

query II rowsort
SELECT - ( - 55 ) AS col0, - NULLIF ( + 50, + 37 ) + + + 98 AS col1
----
55
48

query I rowsort
SELECT + 60 * 5
----
300

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT ALL COALESCE ( - - 95, 22, - COUNT( * ) )
----
95

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL COALESCE ( - - 95, 22, - COUNT ( * ) )
----
95

query I rowsort
SELECT DISTINCT + 10 + - + 22 AS col1
----
-12

query I rowsort
SELECT 53 * + 73 * - - 35
----
135415

query I rowsort
SELECT ALL 88 + + 69 AS col1
----
157

query II rowsort
SELECT DISTINCT + 48 + 23, 1 * 66 + - 7 AS col0
----
71
59

query I rowsort
SELECT ALL + 30 + - 81 + 56
----
5

query II rowsort
SELECT DISTINCT - 75 * - 44 AS col0, 34 col0
----
3300
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-847
SELECT + MAX( DISTINCT - + 96 ) * + MIN( + 6 ) + + + 57 - CASE - COUNT( * ) WHEN 58 THEN - - 75 WHEN + 6 THEN NULL ELSE - COUNT( * ) DIV 39 + - COUNT( * ) END AS col0
----
-518

skipif mysql # not compatible
query I rowsort label-847
SELECT + MAX ( DISTINCT - + 96 ) * + MIN ( + 6 ) + + + 57 - CASE - COUNT ( * ) WHEN 58 THEN - - 75 WHEN + 6 THEN NULL ELSE - COUNT ( * ) / 39 + - COUNT ( * ) END AS col0
----
-518

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-848
SELECT DISTINCT - NULLIF ( 8, + CASE - NULLIF ( 31, - + 57 * + 78 ) WHEN - 55 * - 7 * + 51 THEN NULL WHEN + COUNT( * ) * - 21 THEN - 47 WHEN - SUM( ALL 88 ) * + ( 65 * 69 ) THEN - 22 * ( - 55 ) ELSE + 84 * + COUNT( * ) END DIV 10 ) + - 15 DIV + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT - NULLIF ( 8, + CASE - NULLIF ( 31, - + 57 * + 78 ) WHEN - 55 * - 7 * + 51 THEN NULL WHEN + COUNT ( * ) * - 21 THEN - 47 WHEN - SUM ( ALL 88 ) * + ( 65 * 69 ) THEN - 22 * ( - 55 ) ELSE + 84 * + COUNT ( * ) END / 10 ) + - 15 / + 32 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-849
SELECT + ( - - COUNT( * ) ) DIV 46 + - SUM( - 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-849
SELECT + ( - - COUNT ( * ) ) / 46 + - SUM ( - 42 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT DISTINCT - NULLIF ( + - 57, + 40 ) * + - MIN( DISTINCT - - 34 ) AS col2
----
-1938

skipif mysql # not compatible
query I rowsort label-850
SELECT DISTINCT - NULLIF ( + - 57, + 40 ) * + - MIN ( DISTINCT - - 34 ) AS col2
----
-1938

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-851
SELECT + CAST( NULL AS SIGNED ) * + 8 AS col1, 42 AS col1
----
NULL
42

skipif mysql # not compatible
query II rowsort label-851
SELECT + CAST ( NULL AS INTEGER ) * + 8 AS col1, 42 AS col1
----
NULL
42

query I rowsort
SELECT 4 * + - 63 + - + 53 AS col2
----
-305

query I rowsort
SELECT - - 46 * - 58 + + + 41 AS col1
----
-2627

query I rowsort
SELECT - 88 * - 44 * 2
----
7744

query I rowsort
SELECT - 57 + ( - 24 ) - - 89 * - 28 AS col1
----
-2573

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-856
SELECT DISTINCT - + 60 * + 66 * - MAX( DISTINCT 40 ) + + + 50 + - - 22 DIV 5
----
158454

skipif mysql # not compatible
query I rowsort label-856
SELECT DISTINCT - + 60 * + 66 * - MAX ( DISTINCT 40 ) + + + 50 + - - 22 / 5
----
158454

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-857
SELECT DISTINCT - + 44 / - - 57 / + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-857
SELECT DISTINCT - + 44 / - - 57 / + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT + COALESCE ( - ( - 45 ), + + COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-858
SELECT + COALESCE ( - ( - 45 ), + + COUNT ( * ) )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-859
SELECT + - MIN( 44 ) AS col2, 88 * 6
----
-44
528

skipif mysql # not compatible
query II rowsort label-859
SELECT + - MIN ( 44 ) AS col2, 88 * 6
----
-44
528

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

skipif mysql # not compatible
query I rowsort label-860
SELECT DISTINCT - - 56 * + COUNT ( * ) AS col2
----
56

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

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

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

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL COUNT ( * ) + + + COUNT ( * ) * + 84 AS col2
----
85

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

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

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

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

query I rowsort
SELECT ALL 77 + - 71
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-866
SELECT CAST( + 10 AS SIGNED ) - + + 10
----
0

skipif mysql # not compatible
query I rowsort label-866
SELECT CAST ( + 10 AS INTEGER ) - + + 10
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-867
SELECT - 99, + CAST( NULL AS DECIMAL ) AS col0
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-867
SELECT - 99, + CAST ( NULL AS REAL ) AS col0
----
-99
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-868
SELECT CASE - 57 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + 43 THEN - COUNT( * ) * 31 * + - 48 + + ( 83 ) WHEN + 96 THEN - COUNT( * ) + 60 END * - 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-868
SELECT CASE - 57 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + 43 THEN - COUNT ( * ) * 31 * + - 48 + + ( 83 ) WHEN + 96 THEN - COUNT ( * ) + 60 END * - 43 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT ALL 41 * - - COUNT( * ) * - 23 AS col0
----
-943

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL 41 * - - COUNT ( * ) * - 23 AS col0
----
-943

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

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

query I rowsort
SELECT 87 * 79
----
6873

query I rowsort
SELECT 65 * + 48 AS col0
----
3120

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT - SUM( - + 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-873
SELECT - SUM ( - + 63 ) AS col0
----
63

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-875
SELECT DISTINCT - 97 * - CAST( 56 AS SIGNED ) - + - ( + ( + CASE - 8 WHEN + 46 * + SUM( - - 67 ) + + COUNT( * ) THEN 47 / COALESCE ( 16, 0 / MIN( DISTINCT + 8 ) + 29 ) WHEN COUNT( * ) THEN NULL END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-875
SELECT DISTINCT - 97 * - CAST ( 56 AS INTEGER ) - + - ( + ( + CASE - 8 WHEN + 46 * + SUM ( - - 67 ) + + COUNT ( * ) THEN 47 / COALESCE ( 16, 0 / MIN ( DISTINCT + 8 ) + 29 ) WHEN COUNT ( * ) THEN NULL END ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-876
SELECT CASE + CAST( NULL AS SIGNED ) WHEN 47 * - 25 / + 44 * - - 90 * 32 * - 1 * 63 + - AVG ( + 86 ) + COUNT( * ) THEN NULLIF ( COUNT( * ), + 83 ) + + ( 91 ) * CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-876
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN 47 * - 25 / + 44 * - - 90 * 32 * - 1 * 63 + - AVG ( + 86 ) + COUNT ( * ) THEN NULLIF ( COUNT ( * ), + 83 ) + + ( 91 ) * CAST ( NULL AS INTEGER ) END
----
NULL

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

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

query II rowsort
SELECT + 55 * + 46 + - 71 col1, 35 AS col2
----
2459
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-879
SELECT ALL - 3 * - + 20 * + NULLIF ( + 92, + 57 ) * CAST( NULL AS SIGNED ) * + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL - 3 * - + 20 * + NULLIF ( + 92, + 57 ) * CAST ( NULL AS INTEGER ) * + 74 AS col1
----
NULL

query I rowsort
SELECT + 95 - - 28 * + - 85 + - + 16
----
-2301

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-881
SELECT ALL - MIN( DISTINCT - - CASE - 95 WHEN 74 THEN NULL ELSE 70 DIV - 51 END ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-881
SELECT ALL - MIN ( DISTINCT - - CASE - 95 WHEN 74 THEN NULL ELSE 70 / - 51 END ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-882
SELECT - 22 * ( - CAST( NULL AS SIGNED ) ) * - - 77 + - COUNT( * ) col1, 66, 2 AS col1
----
NULL
66
2

skipif mysql # not compatible
query III rowsort label-882
SELECT - 22 * ( - CAST ( NULL AS INTEGER ) ) * - - 77 + - COUNT ( * ) col1, 66, 2 AS col1
----
NULL
66
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-883
SELECT - 50 * + - 92 + + + COUNT( * ) - + COUNT( * ) DIV SUM( DISTINCT + ( 26 ) ) * + 4 + - 60 - - COUNT( * )
----
4542

skipif mysql # not compatible
query I rowsort label-883
SELECT - 50 * + - 92 + + + COUNT ( * ) - + COUNT ( * ) / SUM ( DISTINCT + ( 26 ) ) * + 4 + - 60 - - COUNT ( * )
----
4542

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-884
SELECT DISTINCT + 20 / - 17 * CAST( NULL AS SIGNED ), - ( 62 ) AS col1
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-884
SELECT DISTINCT + 20 / - 17 * CAST ( NULL AS INTEGER ), - ( 62 ) AS col1
----
NULL
-62

query I rowsort
SELECT 39 + + - 5 * + + 72 - 89 * - 54 + 41 AS col0
----
4526

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT + 44 - + 13 * + SUM( - - 86 ) AS col2
----
-1074

skipif mysql # not compatible
query I rowsort label-886
SELECT + 44 - + 13 * + SUM ( - - 86 ) AS col2
----
-1074

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-887
SELECT - + CAST( NULL AS DECIMAL ) * + 64 + - - 60 + - + 37 + 53 - - CAST( - 65 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-887
SELECT - + CAST ( NULL AS REAL ) * + 64 + - - 60 + - + 37 + 53 - - CAST ( - 65 AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-888
SELECT + + 16 AS col1, 14 - 88 DIV + 40 col0
----
16
12

skipif mysql # not compatible
query II rowsort label-888
SELECT + + 16 AS col1, 14 - 88 / + 40 col0
----
16
12

query I rowsort
SELECT 31 * 66 AS col0
----
2046

query I rowsort
SELECT - 13 + 83 AS col1
----
70

query II rowsort
SELECT DISTINCT + 72 AS col0, 3 AS col1
----
72
3

query I rowsort
SELECT ALL 1 * - - 29
----
29

query I rowsort
SELECT ALL + ( + - 30 ) + + + COALESCE ( - 4, 21 )
----
-34

query II rowsort
SELECT DISTINCT 36, + 24 col1
----
36
24

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT - 53 * - COUNT( + 73 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-895
SELECT - 53 * - COUNT ( + 73 ) AS col2
----
53

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

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

query II rowsort
SELECT 68 AS col1, + 36 - - 23 + + - 55 AS col1
----
68
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-898
SELECT + NULLIF ( ( + COUNT( * ) ), COUNT( * ) * CASE + + CAST( NULL AS SIGNED ) WHEN + NULLIF ( + 7, 65 ) THEN NULL ELSE - 38 + + ( 41 ) + SUM( ALL CAST( NULL AS SIGNED ) ) * + 43 * 86 END + 62 * 74 ) + SUM( 69 + 37 * 51 )
----
1957

skipif mysql # not compatible
query I rowsort label-898
SELECT + NULLIF ( ( + COUNT ( * ) ), COUNT ( * ) * CASE + + CAST ( NULL AS INTEGER ) WHEN + NULLIF ( + 7, 65 ) THEN NULL ELSE - 38 + + ( 41 ) + SUM ( ALL CAST ( NULL AS INTEGER ) ) * + 43 * 86 END + 62 * 74 ) + SUM ( 69 + 37 * 51 )
----
1957

query I rowsort
SELECT - CASE - AVG ( ALL + - 71 ) WHEN + ( 26 ) * + + 95 / + - 60 THEN NULL WHEN + + 67 * + 63 + - - 84 THEN - 55 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-900
SELECT ALL NULLIF ( ( - 4 ), - + COUNT( * ) + + - 66 * + COUNT( * ) ) col1, 77 AS col0
----
-4
77

skipif mysql # not compatible
query II rowsort label-900
SELECT ALL NULLIF ( ( - 4 ), - + COUNT ( * ) + + - 66 * + COUNT ( * ) ) col1, 77 AS col0
----
-4
77

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT DISTINCT CASE - 89 WHEN 17 THEN 78 + + + ( 72 ) + - - ( - COUNT( * ) ) * 55 WHEN 89 THEN NULL ELSE - 57 END
----
-57

skipif mysql # not compatible
query I rowsort label-901
SELECT DISTINCT CASE - 89 WHEN 17 THEN 78 + + + ( 72 ) + - - ( - COUNT ( * ) ) * 55 WHEN 89 THEN NULL ELSE - 57 END
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT ALL MAX( + 11 ) * + 8
----
88

skipif mysql # not compatible
query I rowsort label-902
SELECT ALL MAX ( + 11 ) * + 8
----
88

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT - - 68 + - CASE 71 WHEN - 19 * - + COUNT( * ) THEN - MIN( - NULLIF ( 71, + + 13 ) ) END + + ( MIN( - ( - 43 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-905
SELECT - - 68 + - CASE 71 WHEN - 19 * - + COUNT ( * ) THEN - MIN ( - NULLIF ( 71, + + 13 ) ) END + + ( MIN ( - ( - 43 ) ) )
----
NULL

query I rowsort
SELECT ALL + 98 * + 13 + - ( - - 41 )
----
1233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-907
SELECT - + 93 * + 70 + + 3 + - 56 - - ( CAST( 51 AS SIGNED ) ) * 64 * - ( 49 ) * 75 * 14 AS col0
----
-167939363

skipif mysql # not compatible
query I rowsort label-907
SELECT - + 93 * + 70 + + 3 + - 56 - - ( CAST ( 51 AS INTEGER ) ) * 64 * - ( 49 ) * 75 * 14 AS col0
----
-167939363

query I rowsort
SELECT + + 87 + - 14 - - 60
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-909
SELECT DISTINCT 91 * + 74 AS col2, COUNT( 33 ) AS col2
----
6734
1

skipif mysql # not compatible
query II rowsort label-909
SELECT DISTINCT 91 * + 74 AS col2, COUNT ( 33 ) AS col2
----
6734
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-910
SELECT + + COUNT( * ) DIV 97 + - 25 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-910
SELECT + + COUNT ( * ) / 97 + - 25 AS col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-911
SELECT - + COUNT( * ) DIV MAX( - + ( + CAST( + ( - - 1 ) AS SIGNED ) ) ) * 75 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-911
SELECT - + COUNT ( * ) / MAX ( - + ( + CAST ( + ( - - 1 ) AS INTEGER ) ) ) * 75 AS col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-912
SELECT + + 9 DIV - 53 + + + 26 + + + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-912
SELECT + + 9 / - 53 + + + 26 + + + COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-913
SELECT ALL + - 36 AS col1, + 77 + + 49 + COUNT( * ) AS col2
----
-36
127

skipif mysql # not compatible
query II rowsort label-913
SELECT ALL + - 36 AS col1, + 77 + + 49 + COUNT ( * ) AS col2
----
-36
127

query II rowsort
SELECT + - 61 + - - 19 + - - 64 + - 58, 89 * 37 AS col1
----
-36
3293

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-916
SELECT + + 91 * 86, - SUM( DISTINCT CAST( 81 AS SIGNED ) ) + + + CAST( NULL AS SIGNED ) AS col1
----
7826
NULL

skipif mysql # not compatible
query II rowsort label-916
SELECT + + 91 * 86, - SUM ( DISTINCT CAST ( 81 AS INTEGER ) ) + + + CAST ( NULL AS INTEGER ) AS col1
----
7826
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT + CASE - 27 WHEN - 95 + + 68 + - MIN( DISTINCT + 23 ) + 87 + - ( 29 ) + + 34 * + 54 THEN 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-917
SELECT + CASE - 27 WHEN - 95 + + 68 + - MIN ( DISTINCT + 23 ) + 87 + - ( 29 ) + + 34 * + 54 THEN 82 END
----
NULL

query I rowsort
SELECT - + 36 + - + 14
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT ALL - 44 * - 11 * - 4 * - 65 + - MAX( DISTINCT + - 23 )
----
125863

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL - 44 * - 11 * - 4 * - 65 + - MAX ( DISTINCT + - 23 )
----
125863

query I rowsort
SELECT ALL CASE + - CASE - + 23 WHEN + 74 + + ( + - 28 ) THEN NULL ELSE - ( - + 1 ) + 46 END WHEN 49 THEN + 65 - - - 67 END * - 9 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT DISTINCT - COUNT( * ) * + + 70 + - 30
----
-100

skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT - COUNT ( * ) * + + 70 + - 30
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-922
SELECT NULLIF ( - - 92, + + 3 / + CAST( NULL AS SIGNED ) + - 61 + - - 68 / - 43 * + ( COUNT( * ) ) )
----
92

skipif mysql # not compatible
query I rowsort label-922
SELECT NULLIF ( - - 92, + + 3 / + CAST ( NULL AS INTEGER ) + - 61 + - - 68 / - 43 * + ( COUNT ( * ) ) )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-923
SELECT ALL + 69 * + CASE + + 68 WHEN - 68 * + - CAST( 20 AS SIGNED ) / + ( 82 ) THEN 96 + - 49 + + 69 + - + 14 + ( 82 ) WHEN - ( 42 ) THEN - 88 * 20 + + 16 END + 64 * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL + 69 * + CASE + + 68 WHEN - 68 * + - CAST ( 20 AS INTEGER ) / + ( 82 ) THEN 96 + - 49 + + 69 + - + 14 + ( 82 ) WHEN - ( 42 ) THEN - 88 * 20 + + 16 END + 64 * - 48
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-924
SELECT + 53 DIV 57, - COUNT( * ) AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-924
SELECT + 53 / 57, - COUNT ( * ) AS col1
----
0
-1

query I rowsort
SELECT - ( - 26 ) * + - 80 + + - 92
----
-2172

query I rowsort
SELECT ALL + COALESCE ( - 9, + + 72 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT MAX( ( 84 ) )
----
84

skipif mysql # not compatible
query I rowsort label-927
SELECT MAX ( ( 84 ) )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-928
SELECT ALL + 62 * CAST( COUNT( * ) AS SIGNED ) * + + 54 + - 30 AS col2
----
3318

skipif mysql # not compatible
query I rowsort label-928
SELECT ALL + 62 * CAST ( COUNT ( * ) AS INTEGER ) * + + 54 + - 30 AS col2
----
3318

query I rowsort
SELECT DISTINCT CASE - + 75 WHEN 23 * 35 THEN 6 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT DISTINCT COUNT( * ) * 40 col0
----
40

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT COUNT ( * ) * 40 col0
----
40

query I rowsort
SELECT ALL + 71 * + 36 AS col1
----
2556

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT - 40 + ( + 14 ) + + 57 * - - MIN( ALL - - 96 ) AS col2
----
5446

skipif mysql # not compatible
query I rowsort label-932
SELECT - 40 + ( + 14 ) + + 57 * - - MIN ( ALL - - 96 ) AS col2
----
5446

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT - - 64 + COUNT( * ) + - 26 + - + 51
----
-12

skipif mysql # not compatible
query I rowsort label-933
SELECT - - 64 + COUNT ( * ) + - 26 + - + 51
----
-12

query I rowsort
SELECT + 10 * 55 + - 50 AS col0
----
500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-935
SELECT - - CAST( + 11 AS SIGNED ) * + 35 * 76
----
29260

skipif mysql # not compatible
query I rowsort label-935
SELECT - - CAST ( + 11 AS INTEGER ) * + 35 * 76
----
29260

query I rowsort
SELECT DISTINCT 25 + + 95 AS col2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-937
SELECT 12 DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-937
SELECT 12 / 55
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-938
SELECT ALL COUNT( * ) + - 48 * + 81 - MAX( - + 80 ) + - 3 + - + 12 + + 57, - 6 AS col1
----
-3765
-6

skipif mysql # not compatible
query II rowsort label-938
SELECT ALL COUNT ( * ) + - 48 * + 81 - MAX ( - + 80 ) + - 3 + - + 12 + + 57, - 6 AS col1
----
-3765
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-939
SELECT - 93 + 11 + - + 79, CAST( COUNT( * ) AS SIGNED ) * - CASE + CASE - ( - + 70 ) WHEN + MAX( DISTINCT 36 ) * 7 THEN 34 * 72 END WHEN + 82 THEN NULL ELSE 67 END DIV + 21 AS col0
----
-161
-3

skipif mysql # not compatible
query II rowsort label-939
SELECT - 93 + 11 + - + 79, CAST ( COUNT ( * ) AS INTEGER ) * - CASE + CASE - ( - + 70 ) WHEN + MAX ( DISTINCT 36 ) * 7 THEN 34 * 72 END WHEN + 82 THEN NULL ELSE 67 END / + 21 AS col0
----
-161
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-940
SELECT ALL 36 DIV 66 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL 36 / 66 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT ALL - COUNT( * ) AS col0, - 54 AS col1
----
-1
-54

skipif mysql # not compatible
query II rowsort label-941
SELECT ALL - COUNT ( * ) AS col0, - 54 AS col1
----
-1
-54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT 33 + + 97 + - COUNT( + ( + 46 ) ) AS col1
----
129

skipif mysql # not compatible
query I rowsort label-943
SELECT 33 + + 97 + - COUNT ( + ( + 46 ) ) AS col1
----
129

query I rowsort
SELECT 69 - + 58 * - + 15 col0
----
939

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

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

query I rowsort
SELECT - 97 * + 84 + - 8
----
-8156

query I rowsort
SELECT 78 - 81 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT ( 86 ) * + CASE + COUNT( * ) WHEN - 45 THEN - 15 ELSE + - 72 END + - 95 + - 95 * - - 87 * + 99
----
-824522

skipif mysql # not compatible
query I rowsort label-948
SELECT ( 86 ) * + CASE + COUNT ( * ) WHEN - 45 THEN - 15 ELSE + - 72 END + - 95 + - 95 * - - 87 * + 99
----
-824522

query I rowsort
SELECT 66 * 19 + 1
----
1255

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-950
SELECT ALL - 97 AS col1, + COALESCE ( + 14, - 79 - + - ( - 73 ) ) * + CAST( 62 AS SIGNED )
----
-97
868

skipif mysql # not compatible
query II rowsort label-950
SELECT ALL - 97 AS col1, + COALESCE ( + 14, - 79 - + - ( - 73 ) ) * + CAST ( 62 AS INTEGER )
----
-97
868

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-951
SELECT CAST( 3 AS SIGNED ) + ( + - 18 )
----
-15

skipif mysql # not compatible
query I rowsort label-951
SELECT CAST ( 3 AS INTEGER ) + ( + - 18 )
----
-15

query I rowsort
SELECT DISTINCT 23 * + 93
----
2139

query II rowsort
SELECT 1 col0, 60
----
1
60

query I rowsort
SELECT 3 + 37 AS col1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-955
SELECT - 62, MIN( ALL - 43 ) AS col2
----
-62
-43

skipif mysql # not compatible
query II rowsort label-955
SELECT - 62, MIN ( ALL - 43 ) AS col2
----
-62
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-956
SELECT - 25 DIV - 27
----
0

skipif mysql # not compatible
query I rowsort label-956
SELECT - 25 / - 27
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT - 99 + - + COUNT( * ) AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-957
SELECT - 99 + - + COUNT ( * ) AS col1
----
-100

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

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT - + COUNT ( * ) / - - 30
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-960
SELECT 35 * - + CAST( ( 52 ) AS SIGNED ) + ( - 61 )
----
-1881

skipif mysql # not compatible
query I rowsort label-960
SELECT 35 * - + CAST ( ( 52 ) AS INTEGER ) + ( - 61 )
----
-1881

query I rowsort
SELECT ALL - - 51 * + 20 col2
----
1020

query I rowsort
SELECT ALL - - 35 + - + 53
----
-18

query I rowsort
SELECT ALL + 24 + + 49 AS col2
----
73

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

query II rowsort
SELECT ALL + 1 AS col0, + ( - 63 )
----
1
-63

query II rowsort
SELECT 35 + - 18 + 24 col0, - 52 + 21
----
41
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT - COUNT( + 91 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-967
SELECT - COUNT ( + 91 ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-968
SELECT DISTINCT + - 17 + 43 * + NULLIF ( - - 30, NULLIF ( + 66, 59 / NULLIF ( - COUNT( * ), + - 79 + - AVG ( - - 19 ) + + - 26 - + 61 * - 34 ) * - COUNT( + 58 ) ) ) * ( CAST( 7 AS SIGNED ) ) + + 23
----
9036

skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT + - 17 + 43 * + NULLIF ( - - 30, NULLIF ( + 66, 59 / NULLIF ( - COUNT ( * ), + - 79 + - AVG ( - - 19 ) + + - 26 - + 61 * - 34 ) * - COUNT ( + 58 ) ) ) * ( CAST ( 7 AS INTEGER ) ) + + 23
----
9036

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

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

skipif mysql # not compatible
query I rowsort label-970
SELECT + 90 + - COUNT ( * ) AS col2
----
89

query I rowsort
SELECT ALL + 28 + + 9 AS col2
----
37

query I rowsort
SELECT ALL - 70 + + 44
----
-26

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

skipif mysql # not compatible
query I rowsort label-973
SELECT ALL 78 - + CAST ( + 52 AS INTEGER )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-974
SELECT DISTINCT - CAST( - 91 AS SIGNED ) DIV - + MIN( - - ( - 58 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-974
SELECT DISTINCT - CAST ( - 91 AS INTEGER ) / - + MIN ( - - ( - 58 ) ) AS col2
----
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-976
SELECT 72 * 57 DIV + + 68
----
60

skipif mysql # not compatible
query I rowsort label-976
SELECT 72 * 57 / + + 68
----
60

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-978
SELECT DISTINCT 29 DIV - + 67 col0, + MIN( NULLIF ( 90, - ( 50 ) + 76 ) )
----
0
90

skipif mysql # not compatible
query II rowsort label-978
SELECT DISTINCT 29 / - + 67 col0, + MIN ( NULLIF ( 90, - ( 50 ) + 76 ) )
----
0
90

query I rowsort
SELECT 74 * + 22 * + - 56 AS col2
----
-91168

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

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT ALL + 20 * - - COUNT( - - COALESCE ( - + 30, 8 ) ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-981
SELECT ALL + 20 * - - COUNT ( - - COALESCE ( - + 30, 8 ) ) AS col2
----
20

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

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT DISTINCT - 87 + COUNT( DISTINCT + + ( 82 ) ) + 69 - + ( NULLIF ( + 56, + 13 ) ) * 79 + 29 AS col0
----
-4412

skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT - 87 + COUNT ( DISTINCT + + ( 82 ) ) + 69 - + ( NULLIF ( + 56, + 13 ) ) * 79 + 29 AS col0
----
-4412

query I rowsort
SELECT 50 * + + 5 col2
----
250

query I rowsort
SELECT ALL - 75 + 52 col0
----
-23

query I rowsort
SELECT ALL + 95 + 20
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT DISTINCT COUNT( * ) + NULLIF ( - ( 51 ), - - 52 * - MAX( + 43 ) + - - 38 )
----
-50

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT COUNT ( * ) + NULLIF ( - ( 51 ), - - 52 * - MAX ( + 43 ) + - - 38 )
----
-50

query I rowsort
SELECT 29 + + 70
----
99

query I rowsort
SELECT 73 - - 99 col2
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-990
SELECT ALL + NULLIF ( + - 76, + CAST( NULL AS SIGNED ) * - - 76 * 16 ) + + - 41 * + 68 AS col0, SUM( ALL 20 ) + + - 85
----
-2864
-65

skipif mysql # not compatible
query II rowsort label-990
SELECT ALL + NULLIF ( + - 76, + CAST ( NULL AS INTEGER ) * - - 76 * 16 ) + + - 41 * + 68 AS col0, SUM ( ALL 20 ) + + - 85
----
-2864
-65

query I rowsort
SELECT DISTINCT 31 + - 4 + - 76 AS col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-992
SELECT DISTINCT + - 82 * 34 * - 39 + - 69 col0, - 57 * - CAST( NULL AS SIGNED ) / 7 + + 90 AS col0
----
108663
NULL

skipif mysql # not compatible
query II rowsort label-992
SELECT DISTINCT + - 82 * 34 * - 39 + - 69 col0, - 57 * - CAST ( NULL AS INTEGER ) / 7 + + 90 AS col0
----
108663
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-994
SELECT DISTINCT NULLIF ( + 16, + COUNT( * ) * + CAST( 89 AS DECIMAL ) ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-994
SELECT DISTINCT NULLIF ( + 16, + COUNT ( * ) * + CAST ( 89 AS REAL ) ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT ALL - + 52 * 56 + 18 * + + COUNT( * )
----
-2894

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL - + 52 * 56 + 18 * + + COUNT ( * )
----
-2894

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT - 44 * - COUNT( * ) * 19 + + + 83 + - 99 / + CASE 45 WHEN - - 54 THEN - 9 ELSE NULL END * NULLIF ( - 70, 23 - 70 + + - AVG ( + 3 ) + - 71 ) * 31 + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-996
SELECT - 44 * - COUNT ( * ) * 19 + + + 83 + - 99 / + CASE 45 WHEN - - 54 THEN - 9 ELSE NULL END * NULLIF ( - 70, 23 - 70 + + - AVG ( + 3 ) + - 71 ) * 31 + 54
----
NULL

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

query I rowsort
SELECT - 7 * + 74
----
-518

query I rowsort
SELECT - 24 - + 44 col1
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-1000
SELECT COALESCE ( 95, 36 ) col0, + 53 * + - 63 - - - NULLIF ( + + COUNT( * ), + 11 * - + 99 + - - 66 ) + 92 * + COUNT( * ) AS col1
----
95
-3248

skipif mysql # not compatible
query II rowsort label-1000
SELECT COALESCE ( 95, 36 ) col0, + 53 * + - 63 - - - NULLIF ( + + COUNT ( * ), + 11 * - + 99 + - - 66 ) + 92 * + COUNT ( * ) AS col1
----
95
-3248

query I rowsort
SELECT - NULLIF ( + 33, 16 ) + - 92
----
-125

query I rowsort
SELECT ( + 50 ) * 88 * 4 + + 51 AS col1
----
17651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1003
SELECT - SUM( + 37 ) / + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1003
SELECT - SUM ( + 37 ) / + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1004
SELECT + NULLIF ( + - 47, - - 79 ) DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-1004
SELECT + NULLIF ( + - 47, - - 79 ) / + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT 76 * + 23 + COUNT( * ) * 32 AS col0
----
1780

skipif mysql # not compatible
query I rowsort label-1005
SELECT 76 * + 23 + COUNT ( * ) * 32 AS col0
----
1780

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1007
SELECT DISTINCT 87 * - CAST( + + 52 AS SIGNED )
----
-4524

skipif mysql # not compatible
query I rowsort label-1007
SELECT DISTINCT 87 * - CAST ( + + 52 AS INTEGER )
----
-4524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1008
SELECT - CASE 94 WHEN - + 97 * + 37 THEN + CASE MIN( ALL - + CAST( NULL AS SIGNED ) ) WHEN + MIN( - 85 ) THEN + MAX( ALL + 40 ) WHEN - 26 THEN + + ( - - 4 ) ELSE 95 * - COUNT( * ) END * + NULLIF ( - 71 + + COUNT( * ), + 37 ) + CASE 52 WHEN 25 THEN 31 + - CASE - 48 - 27 WHEN - 67 THEN + COALESCE ( 76, 91 + 72 ) WHEN 69 THEN NULL ELSE NULL END ELSE NULL END / COALESCE ( + 35 + + 99 * 34, + 2 ) ELSE NULL END / - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-1008
SELECT - CASE 94 WHEN - + 97 * + 37 THEN + CASE MIN ( ALL - + CAST ( NULL AS INTEGER ) ) WHEN + MIN ( - 85 ) THEN + MAX ( ALL + 40 ) WHEN - 26 THEN + + ( - - 4 ) ELSE 95 * - COUNT ( * ) END * + NULLIF ( - 71 + + COUNT ( * ), + 37 ) + CASE 52 WHEN 25 THEN 31 + - CASE - 48 - 27 WHEN - 67 THEN + COALESCE ( 76, 91 + 72 ) WHEN 69 THEN NULL ELSE NULL END ELSE NULL END / COALESCE ( + 35 + + 99 * 34, + 2 ) ELSE NULL END / - 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT - NULLIF ( + MAX( + 46 ), - COUNT( ALL + 69 ) ) + - SUM( DISTINCT 87 ) + - 65 AS col2
----
-198

skipif mysql # not compatible
query I rowsort label-1009
SELECT - NULLIF ( + MAX ( + 46 ), - COUNT ( ALL + 69 ) ) + - SUM ( DISTINCT 87 ) + - 65 AS col2
----
-198

query I rowsort
SELECT ALL + 29 * + 21 + ( - 84 ) AS col2
----
525

query I rowsort
SELECT + 87 + - 15 AS col1
----
72

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

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL COUNT ( * ) * - 15 + + 1 AS col2
----
-14

query II rowsort
SELECT 37 AS col2, + 68 * - 57 AS col1
----
37
-3876

query I rowsort
SELECT + 34 + + 3
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1015
SELECT ALL + + COUNT( * ) * - 12 + + 34 + CAST( - 31 AS SIGNED ) + 72 col1, 65 AS col0
----
63
65

skipif mysql # not compatible
query II rowsort label-1015
SELECT ALL + + COUNT ( * ) * - 12 + + 34 + CAST ( - 31 AS INTEGER ) + 72 col1, 65 AS col0
----
63
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT + MIN( ALL + 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-1016
SELECT + MIN ( ALL + 69 ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT - - MIN( 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-1017
SELECT - - MIN ( 61 ) AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1018
SELECT - + CAST( NULL AS SIGNED ) + 6 / 88 / + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-1018
SELECT - + CAST ( NULL AS INTEGER ) + 6 / 88 / + - 95
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1020
SELECT + + CAST( 88 AS SIGNED ) + - - 95 + + 66 AS col0
----
249

skipif mysql # not compatible
query I rowsort label-1020
SELECT + + CAST ( 88 AS INTEGER ) + - - 95 + + 66 AS col0
----
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1021
SELECT ALL + 64 + CASE - - ( + 36 ) WHEN - CAST( NULL AS SIGNED ) THEN - 40 + + + 50 + + + 56 - - + 73 + ( - + ( 86 ) ) * + + 12 ELSE 37 END AS col0
----
101

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL + 64 + CASE - - ( + 36 ) WHEN - CAST ( NULL AS INTEGER ) THEN - 40 + + + 50 + + + 56 - - + 73 + ( - + ( 86 ) ) * + + 12 ELSE 37 END AS col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT - SUM( - - 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-1022
SELECT - SUM ( - - 19 ) AS col1
----
-19

query I rowsort
SELECT DISTINCT - 36 - + 64
----
-100

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1025
SELECT + COUNT( DISTINCT + + CAST( 14 AS SIGNED ) ) + + - 10 + + 17 + + - COALESCE ( - - 28, - 8 * - COUNT( * ) * - + NULLIF ( - + 56, + 63 ) - - ( - 86 ) + + CASE 72 WHEN - COUNT( * ) DIV - MIN( DISTINCT 27 ) + 54 THEN + ( 97 ) DIV - 85 WHEN AVG ( 6 ) THEN NULL END ) * NULLIF ( 5 + - 65, + 63 ) * - ( + 22 * + MAX( + 78 ) ) AS col1
----
-2882872

skipif mysql # not compatible
query I rowsort label-1025
SELECT + COUNT ( DISTINCT + + CAST ( 14 AS INTEGER ) ) + + - 10 + + 17 + + - COALESCE ( - - 28, - 8 * - COUNT ( * ) * - + NULLIF ( - + 56, + 63 ) - - ( - 86 ) + + CASE 72 WHEN - COUNT ( * ) / - MIN ( DISTINCT 27 ) + 54 THEN + ( 97 ) / - 85 WHEN AVG ( 6 ) THEN NULL END ) * NULLIF ( 5 + - 65, + 63 ) * - ( + 22 * + MAX ( + 78 ) ) AS col1
----
-2882872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1026
SELECT DISTINCT - + CAST( 95 AS SIGNED ) - - 85 * COUNT( * ) col2
----
-10

skipif mysql # not compatible
query I rowsort label-1026
SELECT DISTINCT - + CAST ( 95 AS INTEGER ) - - 85 * COUNT ( * ) col2
----
-10

query I rowsort
SELECT DISTINCT + 70 * - + ( + 0 )
----
0

query I rowsort
SELECT + 16 - + - 76 AS col1
----
92

onlyif mysql # DIV for integer division: 
query II rowsort label-1029
SELECT - + 26 + - 78 DIV - 39, - 24 AS col0
----
-24
-24

skipif mysql # not compatible
query II rowsort label-1029
SELECT - + 26 + - 78 / - 39, - 24 AS col0
----
-24
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1030
SELECT DISTINCT - CAST( - - 70 AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-1030
SELECT DISTINCT - CAST ( - - 70 AS INTEGER )
----
-70

query I rowsort
SELECT - - 51 + 99
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT + COUNT( * ) * + + 37 * + - ( - 43 ) * COALESCE ( + 87, - 63 )
----
138417

skipif mysql # not compatible
query I rowsort label-1032
SELECT + COUNT ( * ) * + + 37 * + - ( - 43 ) * COALESCE ( + 87, - 63 )
----
138417

query I rowsort
SELECT - ( 98 ) * + + 18 - + 82 AS col2
----
-1846

onlyif mysql # DIV for integer division: 
query I rowsort label-1034
SELECT ALL 65 DIV 41
----
1

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL 65 / 41
----
1

onlyif mysql # aggregate syntax: 
query III rowsort label-1035
SELECT ALL - 16 * + COUNT( * ), - 76 * - 53 col0, 51 AS col1
----
-16
4028
51

skipif mysql # not compatible
query III rowsort label-1035
SELECT ALL - 16 * + COUNT ( * ), - 76 * - 53 col0, 51 AS col1
----
-16
4028
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1036
SELECT - COUNT( 85 ) * + 27 + + - CASE - 90 WHEN + - 92 * + + CAST( NULL AS DECIMAL ) * 20 * + 93 - + 49 THEN COUNT( * ) WHEN + COUNT( * ) / 99 + - 2 + + 62 THEN - 95 + 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1036
SELECT - COUNT ( 85 ) * + 27 + + - CASE - 90 WHEN + - 92 * + + CAST ( NULL AS REAL ) * 20 * + 93 - + 49 THEN COUNT ( * ) WHEN + COUNT ( * ) / 99 + - 2 + + 62 THEN - 95 + 35 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1037
SELECT ALL + 23 AS col1, 84 * COUNT( * )
----
23
84

skipif mysql # not compatible
query II rowsort label-1037
SELECT ALL + 23 AS col1, 84 * COUNT ( * )
----
23
84

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

skipif mysql # not compatible
query II rowsort label-1038
SELECT + CAST ( NULL AS INTEGER ), 65 AS col2
----
NULL
65

query I rowsort
SELECT ( - 18 ) * + + 55 * + - 89 + - + 32 AS col0
----
88078

query II rowsort
SELECT + 87 AS col1, + 45 AS col1
----
87
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1041
SELECT DISTINCT 28 DIV 78 + + ( - - 16 ) - + 75 + - ( + - 8 ) * - 41
----
-387

skipif mysql # not compatible
query I rowsort label-1041
SELECT DISTINCT 28 / 78 + + ( - - 16 ) - + 75 + - ( + - 8 ) * - 41
----
-387

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT ALL + COALESCE ( + COUNT( * ), - 62 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL + COALESCE ( + COUNT ( * ), - 62 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1043
SELECT + COUNT( * ) * + 11 * + ( 34 ), + 83 + 34 AS col2
----
374
117

skipif mysql # not compatible
query II rowsort label-1043
SELECT + COUNT ( * ) * + 11 * + ( 34 ), + 83 + 34 AS col2
----
374
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1044
SELECT DISTINCT - COUNT( * ) DIV 14 + - 74 + + 63 + COALESCE ( - 10, - + 87 ) * 97 * - COUNT( * ) AS col1, 58 AS col0
----
959
58

skipif mysql # not compatible
query II rowsort label-1044
SELECT DISTINCT - COUNT ( * ) / 14 + - 74 + + 63 + COALESCE ( - 10, - + 87 ) * 97 * - COUNT ( * ) AS col1, 58 AS col0
----
959
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT ALL + 85 * - MAX( ALL + 12 ) * - COALESCE ( + 46, + 3 + MAX( ALL - 89 ) - - 73 ) + + 7 * + - ( - 71 ) * NULLIF ( - 3, - 1 )
----
45429

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL + 85 * - MAX ( ALL + 12 ) * - COALESCE ( + 46, + 3 + MAX ( ALL - 89 ) - - 73 ) + + 7 * + - ( - 71 ) * NULLIF ( - 3, - 1 )
----
45429

onlyif mysql # aggregate syntax: 
query II rowsort label-1046
SELECT DISTINCT - 2 * 68 + - + COUNT( * ) + - - COUNT( * ) AS col0, 41
----
-136
41

skipif mysql # not compatible
query II rowsort label-1046
SELECT DISTINCT - 2 * 68 + - + COUNT ( * ) + - - COUNT ( * ) AS col0, 41
----
-136
41

query I rowsort
SELECT DISTINCT COALESCE ( - 85, - 48 ) * 84 * + 25
----
-178500

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT ALL - COUNT( * ) * + - 31 + 52 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL - COUNT ( * ) * + - 31 + 52 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT + SUM( DISTINCT + + 34 ) * - 98 * - + 48 - + 38 AS col2
----
159898

skipif mysql # not compatible
query I rowsort label-1049
SELECT + SUM ( DISTINCT + + 34 ) * - 98 * - + 48 - + 38 AS col2
----
159898

query I rowsort
SELECT - - 48 * NULLIF ( + + 77, 13 ) AS col2
----
3696

onlyif mysql # DIV for integer division: 
query I rowsort label-1051
SELECT + 68 DIV + 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1051
SELECT + 68 / + 69 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT - CASE 17 WHEN + 48 * + + 64 + - - 79 THEN - 53 + - COUNT( * ) END * + ( + NULLIF ( + 81, 71 - - ( - - 14 ) ) ) * - NULLIF ( + 91, - 53 ) + + ( + 15 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1052
SELECT - CASE 17 WHEN + 48 * + + 64 + - - 79 THEN - 53 + - COUNT ( * ) END * + ( + NULLIF ( + 81, 71 - - ( - - 14 ) ) ) * - NULLIF ( + 91, - 53 ) + + ( + 15 ) AS col1
----
NULL

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

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

query I rowsort
SELECT ALL + + 73 - - 20
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT DISTINCT - + 11 * - ( - - ( + 0 ) ) * + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1055
SELECT DISTINCT - + 11 * - ( - - ( + 0 ) ) * + - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1056
SELECT + 1 + - 2 DIV - 34
----
1

skipif mysql # not compatible
query I rowsort label-1056
SELECT + 1 + - 2 / - 34
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT 61 + - COUNT( - 32 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-1057
SELECT 61 + - COUNT ( - 32 ) AS col1
----
60

query I rowsort
SELECT 92 * - 67 - + - 96 * - 64 AS col2
----
-12308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1059
SELECT CAST( + + ( - 53 ) AS SIGNED ) - - SUM( - 56 ) AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-1059
SELECT CAST ( + + ( - 53 ) AS INTEGER ) - - SUM ( - 56 ) AS col1
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1060
SELECT CASE + - 69 WHEN - NULLIF ( - 8, - 27 * 61 + + + 12 + 10 + + AVG ( ALL - 1 ) + - - CAST( NULL AS SIGNED ) + + - CAST( + COUNT( * ) AS SIGNED ) ) / - 52 THEN 59 END * - ( 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1060
SELECT CASE + - 69 WHEN - NULLIF ( - 8, - 27 * 61 + + + 12 + 10 + + AVG ( ALL - 1 ) + - - CAST ( NULL AS INTEGER ) + + - CAST ( + COUNT ( * ) AS INTEGER ) ) / - 52 THEN 59 END * - ( 27 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1061
SELECT DISTINCT 13 * COUNT( * ) AS col2, - 63 AS col1
----
13
-63

skipif mysql # not compatible
query II rowsort label-1061
SELECT DISTINCT 13 * COUNT ( * ) AS col2, - 63 AS col1
----
13
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT DISTINCT 24 * + 5 * - COUNT( * )
----
-120

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT 24 * + 5 * - COUNT ( * )
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT SUM( DISTINCT - 5 ) + - - 82
----
77

skipif mysql # not compatible
query I rowsort label-1063
SELECT SUM ( DISTINCT - 5 ) + - - 82
----
77

query I rowsort
SELECT ALL 5 + - 67 AS col1
----
-62

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

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

query I rowsort
SELECT ALL 17 + + ( - + 52 ) AS col0
----
-35

query I rowsort
SELECT - 54 * - + 10 + + 18 - - 96 - - 44
----
698

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1069
SELECT DISTINCT 11 DIV - - MAX( ALL + + 53 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT 11 / - - MAX ( ALL + + 53 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1070
SELECT DISTINCT + CAST( + - ( + + 37 ) AS SIGNED ) * 95 + 31 col2, 55
----
-3484
55

skipif mysql # not compatible
query II rowsort label-1070
SELECT DISTINCT + CAST ( + - ( + + 37 ) AS INTEGER ) * 95 + 31 col2, 55
----
-3484
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT 93 + + 81 + - + COUNT( * )
----
173

skipif mysql # not compatible
query I rowsort label-1071
SELECT 93 + + 81 + - + COUNT ( * )
----
173

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

skipif mysql # not compatible
query I rowsort label-1072
SELECT 77 / COUNT ( * ) - + 58
----
19

query I rowsort
SELECT - 30 * - 52 * 31 + + 47 col1
----
48407

query I rowsort
SELECT 78 + - ( 77 ) + 11
----
12

query I rowsort
SELECT ALL + 97 - + 42 AS col0
----
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT - 34 * - 76 + COUNT( * ) * + + 39 * + ( + 6 ) * - + 97 AS col0
----
-20114

skipif mysql # not compatible
query I rowsort label-1077
SELECT - 34 * - 76 + COUNT ( * ) * + + 39 * + ( + 6 ) * - + 97 AS col0
----
-20114

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT - - NULLIF ( + - 21, + - 23 * + 89 ) * + - ( + - 53 ) + - + SUM( ALL + - 38 )
----
-1075

skipif mysql # not compatible
query I rowsort label-1079
SELECT - - NULLIF ( + - 21, + - 23 * + 89 ) * + - ( + - 53 ) + - + SUM ( ALL + - 38 )
----
-1075

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1081
SELECT ALL ( + CASE - ( + ( + 11 ) ) WHEN - CAST( - 79 AS SIGNED ) THEN - COUNT( * ) + + 37 + 95 ELSE NULL END ), - 35 col0
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-1081
SELECT ALL ( + CASE - ( + ( + 11 ) ) WHEN - CAST ( - 79 AS INTEGER ) THEN - COUNT ( * ) + + 37 + 95 ELSE NULL END ), - 35 col0
----
NULL
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1082
SELECT 14 + - + 53 DIV + COUNT( * ) - ( + - 91 )
----
52

skipif mysql # not compatible
query I rowsort label-1082
SELECT 14 + - + 53 / + COUNT ( * ) - ( + - 91 )
----
52

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

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

query II rowsort
SELECT - ( + 23 ) + 29, - 30 AS col2
----
6
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT ALL + 20 * - MAX( + 95 ) * + 2 col0
----
-3800

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL + 20 * - MAX ( + 95 ) * + 2 col0
----
-3800

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT - MIN( ALL - - 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-1086
SELECT - MIN ( ALL - - 33 ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT ALL - 60 * - 92 - - COUNT( + 71 ) - 32 + + 62
----
5551

skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL - 60 * - 92 - - COUNT ( + 71 ) - 32 + + 62
----
5551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1088
SELECT + CASE + 12 WHEN + 49 - + - COALESCE ( + COUNT( * ), - + COUNT( DISTINCT - + ( - 21 ) ) * + COUNT( * ) + 87 + + 4 / 54 * - + CAST( + 63 AS SIGNED ) * + COUNT( * ) ) THEN + 3 * + NULLIF ( 25, - 1 ) WHEN 99 THEN 63 - 61 WHEN + 91 THEN NULL ELSE + 76 + 42 END AS col0
----
118

skipif mysql # not compatible
query I rowsort label-1088
SELECT + CASE + 12 WHEN + 49 - + - COALESCE ( + COUNT ( * ), - + COUNT ( DISTINCT - + ( - 21 ) ) * + COUNT ( * ) + 87 + + 4 / 54 * - + CAST ( + 63 AS INTEGER ) * + COUNT ( * ) ) THEN + 3 * + NULLIF ( 25, - 1 ) WHEN 99 THEN 63 - 61 WHEN + 91 THEN NULL ELSE + 76 + 42 END AS col0
----
118

query I rowsort
SELECT DISTINCT - 98 * 86 AS col2
----
-8428

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT ALL + 43 + - + SUM( 34 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL + 43 + - + SUM ( 34 ) AS col1
----
9

query I rowsort
SELECT ALL - 89 + - + 72 AS col0
----
-161

query II rowsort
SELECT - 20 AS col2, 20
----
-20
20

query I rowsort
SELECT 61 - + + 62 col0
----
-1

query I rowsort
SELECT 68 * 88
----
5984

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT NULLIF ( 54, + 44 ) + - CASE + 20 WHEN + - 35 THEN NULL WHEN + - COUNT( * ) / - + 58 THEN + 48 END * AVG ( 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1095
SELECT NULLIF ( 54, + 44 ) + - CASE + 20 WHEN + - 35 THEN NULL WHEN + - COUNT ( * ) / - + 58 THEN + 48 END * AVG ( 14 )
----
NULL

query I rowsort
SELECT 84 + - + 62 + + 49 * - 56 AS col2
----
-2722

query I rowsort
SELECT ALL COALESCE ( + COALESCE ( + + ( + - 73 ), - - 99 ), + + 38 ) + - - 85 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT CASE - - COUNT( * ) WHEN + - 24 THEN NULL WHEN 25 THEN + 60 END + + 98 * + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1098
SELECT CASE - - COUNT ( * ) WHEN + - 24 THEN NULL WHEN 25 THEN + 60 END + + 98 * + 31 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT ALL + 8 + + 82 * - - 67 * 32 * COUNT( ALL + - 77 )
----
175816

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL + 8 + + 82 * - - 67 * 32 * COUNT ( ALL + - 77 )
----
175816

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1100
SELECT ALL + 30 * - COUNT( ALL - - 63 ) DIV + 84 * - + 45 + - 39 AS col0, - 3 AS col1
----
-39
-3

skipif mysql # not compatible
query II rowsort label-1100
SELECT ALL + 30 * - COUNT ( ALL - - 63 ) / + 84 * - + 45 + - 39 AS col0, - 3 AS col1
----
-39
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1101
SELECT ALL CAST( + 10 AS SIGNED ) * + - ( 40 ) AS col0
----
-400

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL CAST ( + 10 AS INTEGER ) * + - ( 40 ) AS col0
----
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT CASE + COUNT( * ) WHEN + 52 THEN 15 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1102
SELECT CASE + COUNT ( * ) WHEN + 52 THEN 15 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT ALL ( - COUNT( * ) ) * + + 10 + 60 col0
----
50

skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL ( - COUNT ( * ) ) * + + 10 + 60 col0
----
50

query I rowsort
SELECT DISTINCT - 86 * + 74 * - 92 + - - 82 - + 27 + - 11 * - 1
----
585554

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

skipif mysql # not compatible
query I rowsort label-1105
SELECT + MAX ( 2 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1106
SELECT DISTINCT - NULLIF ( - 46, - COALESCE ( - 78, + 49 - + 53 + + ( - 6 ) * - 89 + 74 ) * - 63 * - CAST( - ( MAX( ALL + 80 ) ) AS SIGNED ) ) * NULLIF ( + - ( + COUNT( * ) ), - 51 ) - 15
----
-61

skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT - NULLIF ( - 46, - COALESCE ( - 78, + 49 - + 53 + + ( - 6 ) * - 89 + 74 ) * - 63 * - CAST ( - ( MAX ( ALL + 80 ) ) AS INTEGER ) ) * NULLIF ( + - ( + COUNT ( * ) ), - 51 ) - 15
----
-61

query II rowsort
SELECT ALL - 64 AS col1, 31 + + + 96
----
-64
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1108
SELECT 82 * - CAST( ( + - 52 ) AS SIGNED ) + + 93 * - 71 AS col1
----
-2339

skipif mysql # not compatible
query I rowsort label-1108
SELECT 82 * - CAST ( ( + - 52 ) AS INTEGER ) + + 93 * - 71 AS col1
----
-2339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1109
SELECT + 45 * CASE - COUNT( * ) WHEN 22 THEN + 57 WHEN - 94 THEN + 92 * CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1109
SELECT + 45 * CASE - COUNT ( * ) WHEN 22 THEN + 57 WHEN - 94 THEN + 92 * CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1110
SELECT 68 col1, - CAST( NULLIF ( + 69, + + 61 ) AS SIGNED ) * - - COUNT( + 27 )
----
68
-69

skipif mysql # not compatible
query II rowsort label-1110
SELECT 68 col1, - CAST ( NULLIF ( + 69, + + 61 ) AS INTEGER ) * - - COUNT ( + 27 )
----
68
-69

query I rowsort
SELECT + + 26 col2
----
26

query II rowsort
SELECT ALL + 70 col0, 35
----
70
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT + - CASE COUNT( * ) WHEN - - 73 THEN + 3 WHEN 79 THEN NULL ELSE - COUNT( DISTINCT - COALESCE ( + 76, - 54, + 92 ) ) END
----
1

skipif mysql # not compatible
query I rowsort label-1113
SELECT + - CASE COUNT ( * ) WHEN - - 73 THEN + 3 WHEN 79 THEN NULL ELSE - COUNT ( DISTINCT - COALESCE ( + 76, - 54, + 92 ) ) END
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1114
SELECT + - 3, - 83 + + 9 + 74 + - + COUNT( * ) * 59 AS col1
----
-3
-59

skipif mysql # not compatible
query II rowsort label-1114
SELECT + - 3, - 83 + + 9 + 74 + - + COUNT ( * ) * 59 AS col1
----
-3
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-1115
SELECT + - 21 * 29 + - 25 + + 28 DIV - COALESCE ( + + 35, 92 + - - COALESCE ( + 91, - - 15 + + + 8, + 27 ) ) * + 89 * - - 55 * 7 + 66 * ( + + 70 ) + 65
----
4051

skipif mysql # not compatible
query I rowsort label-1115
SELECT + - 21 * 29 + - 25 + + 28 / - COALESCE ( + + 35, 92 + - - COALESCE ( + 91, - - 15 + + + 8, + 27 ) ) * + 89 * - - 55 * 7 + 66 * ( + + 70 ) + 65
----
4051

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1116
SELECT ALL - NULLIF ( - + CASE - 7 WHEN - + 28 * + - MAX( DISTINCT - + 57 ) - - 10 - - + 58 + - - 1 * - - 38 THEN - 98 * - COALESCE ( + + 5, - - 53 * - - 97 - - + 68 + - 13 - CAST( NULL AS SIGNED ) * - 87, 64 ) - 69 * - 55 WHEN 42 * - 53 THEN NULL ELSE NULL END, + 88 - - 74 ) / + 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1116
SELECT ALL - NULLIF ( - + CASE - 7 WHEN - + 28 * + - MAX ( DISTINCT - + 57 ) - - 10 - - + 58 + - - 1 * - - 38 THEN - 98 * - COALESCE ( + + 5, - - 53 * - - 97 - - + 68 + - 13 - CAST ( NULL AS INTEGER ) * - 87, 64 ) - 69 * - 55 WHEN 42 * - 53 THEN NULL ELSE NULL END, + 88 - - 74 ) / + 96 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1117
SELECT + SUM( + ( 11 ) ) + + 82 + CAST( NULL AS SIGNED ) + - - 88 * - - 13 + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1117
SELECT + SUM ( + ( 11 ) ) + + 82 + CAST ( NULL AS INTEGER ) + - - 88 * - - 13 + + 72
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1118
SELECT 61 AS col1, MAX( ALL 35 ) * COUNT( + - 49 )
----
61
35

skipif mysql # not compatible
query II rowsort label-1118
SELECT 61 AS col1, MAX ( ALL 35 ) * COUNT ( + - 49 )
----
61
35

query II rowsort
SELECT DISTINCT + + 31, 70 AS col0
----
31
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1120
SELECT - COALESCE ( + 53, - CAST( - NULLIF ( + + 53, 10 * - 19 ) AS SIGNED ) + + ( - + ( - 68 ) ) )
----
-53

skipif mysql # not compatible
query I rowsort label-1120
SELECT - COALESCE ( + 53, - CAST ( - NULLIF ( + + 53, 10 * - 19 ) AS INTEGER ) + + ( - + ( - 68 ) ) )
----
-53

query I rowsort
SELECT ALL + + 31 + 12
----
43

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

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

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

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

query I rowsort
SELECT DISTINCT 97 + + 73 * + - 89
----
-6400

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT ALL COUNT( * ) + - 60 + + 88 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL COUNT ( * ) + - 60 + + 88 AS col1
----
29

query I rowsort
SELECT ALL + + 39 + + 22
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1127
SELECT + 24 + ( CASE COALESCE ( + + 82, + - CAST( 69 AS SIGNED ) + - 8 ) WHEN + 90 THEN NULL ELSE COUNT( * ) END ) + - - COUNT( * ) - - - 96 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-1127
SELECT + 24 + ( CASE COALESCE ( + + 82, + - CAST ( 69 AS INTEGER ) + - 8 ) WHEN + 90 THEN NULL ELSE COUNT ( * ) END ) + - - COUNT ( * ) - - - 96 AS col2
----
-70

query I rowsort
SELECT - 48 * 57
----
-2736

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT ALL + 12 + - 94 * - 5 * - MIN( DISTINCT - + 89 ) AS col1
----
41842

skipif mysql # not compatible
query I rowsort label-1129
SELECT ALL + 12 + - 94 * - 5 * - MIN ( DISTINCT - + 89 ) AS col1
----
41842

onlyif mysql # DIV for integer division: 
query I rowsort label-1130
SELECT ALL - 85 DIV + + 73
----
-1

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL - 85 / + + 73
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT ALL MAX( ALL 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL MAX ( ALL 40 ) AS col0
----
40

query I rowsort
SELECT DISTINCT - 67 * + COALESCE ( - ( 4 ), - 39 ) * - 38
----
-10184

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

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

query I rowsort
SELECT DISTINCT + 95 - + 5 * + 27 + + + 80 AS col2
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT + 16 * - CASE - + 65 WHEN + 34 THEN 61 WHEN 46 THEN NULL END / - MIN( ALL + 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1136
SELECT + 16 * - CASE - + 65 WHEN + 34 THEN 61 WHEN 46 THEN NULL END / - MIN ( ALL + 62 )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1138
SELECT 23 DIV + 57 * - 26 + 42 * + + 7 - + COUNT( * )
----
293

skipif mysql # not compatible
query I rowsort label-1138
SELECT 23 / + 57 * - 26 + 42 * + + 7 - + COUNT ( * )
----
293

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

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

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

skipif mysql # not compatible
query I rowsort label-1140
SELECT - ( + CAST ( NULL AS INTEGER ) ) + - COUNT ( DISTINCT 85 )
----
NULL

query I rowsort
SELECT - 53 + - - 54 * 41 AS col1
----
2161

onlyif mysql # DIV for integer division: 
query I rowsort label-1142
SELECT + 62 DIV 3 + - 55 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-1142
SELECT + 62 / 3 + - 55 AS col0
----
-35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT + - 15 * + COUNT( * ) + + 74 * + - 49 + - 29 AS col0
----
-3670

skipif mysql # not compatible
query I rowsort label-1144
SELECT + - 15 * + COUNT ( * ) + + 74 * + - 49 + - 29 AS col0
----
-3670

query I rowsort
SELECT ALL + - 63 * + 95 * + 90 + 21 + - 14 * + 67 * - 91 * - 71
----
-6599047

query I rowsort
SELECT + 3 + - 66 + 95
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1147
SELECT DISTINCT + 59 * - 31 + 97 DIV COUNT( * ) DIV 65 AS col1
----
-1828

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT + 59 * - 31 + 97 / COUNT ( * ) / 65 AS col1
----
-1828

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT ALL + COUNT( * ) * ( - - 60 ) + 45 * COUNT( * ) + + - 39
----
66

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL + COUNT ( * ) * ( - - 60 ) + 45 * COUNT ( * ) + + - 39
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1149
SELECT DISTINCT + 10 DIV + 28 * + 77 + + COUNT( * ) AS col0, - 15 AS col2
----
1
-15

skipif mysql # not compatible
query II rowsort label-1149
SELECT DISTINCT + 10 / + 28 * + 77 + + COUNT ( * ) AS col0, - 15 AS col2
----
1
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT - COUNT( ALL + 77 ) * + ( + - 11 ) + + 82 + + 70 AS col1
----
163

skipif mysql # not compatible
query I rowsort label-1150
SELECT - COUNT ( ALL + 77 ) * + ( + - 11 ) + + 82 + + 70 AS col1
----
163

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

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

query I rowsort
SELECT ALL 36 * + - 45 AS col2
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT SUM( ALL + + 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-1153
SELECT SUM ( ALL + + 89 ) AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1154
SELECT - 48 DIV + + 56 * - 50 * + CAST( - 7 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1154
SELECT - 48 / + + 56 * - 50 * + CAST ( - 7 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1155
SELECT ALL 12 * - 53 * COUNT( * ) + - MIN( - - 57 ) col1, - COUNT( * ) AS col0
----
-693
-1

skipif mysql # not compatible
query II rowsort label-1155
SELECT ALL 12 * - 53 * COUNT ( * ) + - MIN ( - - 57 ) col1, - COUNT ( * ) AS col0
----
-693
-1

query I rowsort
SELECT + 71 * 94
----
6674

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ALL ( CASE CASE + + 67 WHEN COALESCE ( + 17, - 62 - COUNT( * ) * - 38 ) THEN NULL WHEN + + 66 / 41 + + - 87 + - 69 THEN - 0 END WHEN - 59 + + 93 THEN NULL WHEN + 77 - - 41 THEN - 78 WHEN + + 0 + 82 THEN - SUM( DISTINCT - 24 ) ELSE + COALESCE ( 95, - 58 ) END ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL ( CASE CASE + + 67 WHEN COALESCE ( + 17, - 62 - COUNT ( * ) * - 38 ) THEN NULL WHEN + + 66 / 41 + + - 87 + - 69 THEN - 0 END WHEN - 59 + + 93 THEN NULL WHEN + 77 - - 41 THEN - 78 WHEN + + 0 + 82 THEN - SUM ( DISTINCT - 24 ) ELSE + COALESCE ( 95, - 58 ) END ) AS col0
----
95

query I rowsort
SELECT + 88 + + 29
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT ALL MAX( + 8 ) - COUNT( - 19 ) + - CASE - 18 WHEN - 50 - 23 THEN 82 + - + 41 WHEN - + 49 THEN NULL ELSE NULL END * - 31 * + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-1159
SELECT ALL MAX ( + 8 ) - COUNT ( - 19 ) + - CASE - 18 WHEN - 50 - 23 THEN 82 + - + 41 WHEN - + 49 THEN NULL ELSE NULL END * - 31 * + - 7
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1161
SELECT DISTINCT CASE 55 WHEN 90 * CAST( 72 AS SIGNED ) THEN COUNT( * ) / + - 60 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT CASE 55 WHEN 90 * CAST ( 72 AS INTEGER ) THEN COUNT ( * ) / + - 60 ELSE NULL END
----
NULL

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

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

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

skipif mysql # not compatible
query II rowsort label-1163
SELECT 92 AS col1, - COUNT ( * ) AS col0
----
92
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1164
SELECT 41 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-1164
SELECT 41 / + 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT 12 * 83 * 10 * - COUNT( * )
----
-9960

skipif mysql # not compatible
query I rowsort label-1165
SELECT 12 * 83 * 10 * - COUNT ( * )
----
-9960

query I rowsort
SELECT 47 + + - 41 AS col0
----
6

query I rowsort
SELECT ALL + 18 * 18 AS col1
----
324

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1168
SELECT DISTINCT COUNT( * ) DIV + MAX( + 93 ), 25 AS col2
----
0
25

skipif mysql # not compatible
query II rowsort label-1168
SELECT DISTINCT COUNT ( * ) / + MAX ( + 93 ), 25 AS col2
----
0
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1169
SELECT 31 DIV + MIN( ALL 94 ) * 50 + + 63
----
63

skipif mysql # not compatible
query I rowsort label-1169
SELECT 31 / + MIN ( ALL 94 ) * 50 + + 63
----
63

query I rowsort
SELECT ALL + 92 * 25 AS col1
----
2300

query I rowsort
SELECT ALL + + 14 * - 2 AS col2
----
-28

query II rowsort
SELECT NULLIF ( 99, + 91 ), - 16 * + 56 AS col1
----
99
-896

query I rowsort
SELECT DISTINCT + - 64 * - 74 + + + 34 AS col0
----
4770

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT DISTINCT - - COUNT( * ) * - 37 + 59 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-1174
SELECT DISTINCT - - COUNT ( * ) * - 37 + 59 AS col0
----
22

query I rowsort
SELECT DISTINCT + - ( - 61 ) + - 94
----
-33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1176
SELECT ALL + 33 + + 39 + - CASE WHEN NOT 24 IS NOT NULL THEN 91 + - 30 ELSE NULL END * + + ( + - CAST( NULL AS DECIMAL ) ) / + COALESCE ( 50, 59, + 3 * 85 + + - 35 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL + 33 + + 39 + - CASE WHEN NOT 24 IS NOT NULL THEN 91 + - 30 ELSE NULL END * + + ( + - CAST ( NULL AS REAL ) ) / + COALESCE ( 50, 59, + 3 * 85 + + - 35 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1177
SELECT ALL - + MIN( ALL - 80 ) + + 19 AS col2, - COALESCE ( + 0, - + 90 * + + 3, - - 61 - - + 69 DIV - CAST( COUNT( * ) AS SIGNED ) ) AS col2
----
99
0

skipif mysql # not compatible
query II rowsort label-1177
SELECT ALL - + MIN ( ALL - 80 ) + + 19 AS col2, - COALESCE ( + 0, - + 90 * + + 3, - - 61 - - + 69 / - CAST ( COUNT ( * ) AS INTEGER ) ) AS col2
----
99
0

query I rowsort
SELECT DISTINCT + + 97 + 61 + + + 6 - + 0 * + + 68
----
164

query I rowsort
SELECT ALL - 42 * 34 AS col0
----
-1428

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT ALL 31 + - CASE + - NULLIF ( - 46, + 2 ) WHEN + 92 * + - ( + 84 ) THEN + 87 WHEN + COALESCE ( - + ( + - 0 ), + - ( - 11 ) * + 11 + + + 60 + COUNT( * ) ) * + 96 * + + 58 THEN + 44 * 54 - + 79 ELSE NULL END * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL 31 + - CASE + - NULLIF ( - 46, + 2 ) WHEN + 92 * + - ( + 84 ) THEN + 87 WHEN + COALESCE ( - + ( + - 0 ), + - ( - 11 ) * + 11 + + + 60 + COUNT ( * ) ) * + 96 * + + 58 THEN + 44 * 54 - + 79 ELSE NULL END * 96
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1182
SELECT + + NULLIF ( + 96, + NULLIF ( + 16, 3 - - 23 + + - CAST( NULL AS DECIMAL ) ) )
----
96

skipif mysql # not compatible
query I rowsort label-1182
SELECT + + NULLIF ( + 96, + NULLIF ( + 16, 3 - - 23 + + - CAST ( NULL AS REAL ) ) )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT ALL - 92 + ( - 33 ) - + SUM( 4 ) * 21 AS col1
----
-209

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL - 92 + ( - 33 ) - + SUM ( 4 ) * 21 AS col1
----
-209

query I rowsort
SELECT ALL + 81 * 36 AS col0
----
2916

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1185
SELECT ALL - COUNT( * ) + + 40 * - - 75 + CASE + 36 WHEN AVG ( DISTINCT - + 98 ) THEN NULL WHEN + CAST( NULL AS DECIMAL ) * 4 + - 8 THEN NULL ELSE 46 END AS col2
----
3045

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL - COUNT ( * ) + + 40 * - - 75 + CASE + 36 WHEN AVG ( DISTINCT - + 98 ) THEN NULL WHEN + CAST ( NULL AS REAL ) * 4 + - 8 THEN NULL ELSE 46 END AS col2
----
3045

query I rowsort
SELECT DISTINCT + 48 * - + 71
----
-3408

query I rowsort
SELECT + 50 * - 82
----
-4100

query II rowsort
SELECT ALL 89 - + 77, 9 + - 36 AS col1
----
12
-27

query II rowsort
SELECT 53, - 36 AS col0
----
53
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-1190
SELECT DISTINCT + 67 * COALESCE ( 75, + + 55 ) DIV - 58
----
-86

skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT + 67 * COALESCE ( 75, + + 55 ) / - 58
----
-86

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

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT - 13 - + + COUNT ( * ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT MAX( DISTINCT + + 88 ) + + SUM( - - 37 ) + 68
----
193

skipif mysql # not compatible
query I rowsort label-1192
SELECT MAX ( DISTINCT + + 88 ) + + SUM ( - - 37 ) + 68
----
193

onlyif mysql # DIV for integer division: 
query I rowsort label-1193
SELECT ALL NULLIF ( + + 81, 23 + - 57 ) DIV 13 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL NULLIF ( + + 81, 23 + - 57 ) / 13 AS col0
----
6

query I rowsort
SELECT 96 + - - 11 - + + 6
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT DISTINCT ( + 46 ) * + 83 - - 42 * + NULLIF ( + 73, 74 + - 15 ) * MIN( 87 )
----
270560

skipif mysql # not compatible
query I rowsort label-1195
SELECT DISTINCT ( + 46 ) * + 83 - - 42 * + NULLIF ( + 73, 74 + - 15 ) * MIN ( 87 )
----
270560

query II rowsort
SELECT DISTINCT 0 AS col0, 15
----
0
15

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1198
SELECT ALL NULLIF ( SUM( ALL - + 94 ), - COUNT( * ) / + 5 - - COALESCE ( - 15, + SUM( ALL + - 94 ), CAST( 37 AS SIGNED ) + - 19 ) ) * COUNT( DISTINCT - 87 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL NULLIF ( SUM ( ALL - + 94 ), - COUNT ( * ) / + 5 - - COALESCE ( - 15, + SUM ( ALL + - 94 ), CAST ( 37 AS INTEGER ) + - 19 ) ) * COUNT ( DISTINCT - 87 ) AS col1
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1199
SELECT DISTINCT 9 col0, + CAST( NULLIF ( + - COUNT( * ), + + 87 ) AS SIGNED ) * 24 + - + 62 + + + 25 * 28 col1
----
9
614

skipif mysql # not compatible
query II rowsort label-1199
SELECT DISTINCT 9 col0, + CAST ( NULLIF ( + - COUNT ( * ), + + 87 ) AS INTEGER ) * 24 + - + 62 + + + 25 * 28 col1
----
9
614

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1201
SELECT DISTINCT - 99, + 3 DIV - + 72 + + ( + COUNT( * ) ) AS col1
----
-99
1

skipif mysql # not compatible
query II rowsort label-1201
SELECT DISTINCT - 99, + 3 / - + 72 + + ( + COUNT ( * ) ) AS col1
----
-99
1

query I rowsort
SELECT ALL - 28 + 26 + + 92
----
90

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1204
SELECT ALL + COUNT( ALL - 45 ) * 34 + + - 34 DIV + 60 col0
----
34

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL + COUNT ( ALL - 45 ) * 34 + + - 34 / + 60 col0
----
34

query II rowsort
SELECT DISTINCT - 68 AS col2, 80 * ( 20 )
----
-68
1600

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1206
SELECT ALL + CAST( NULL AS DECIMAL ) * - 73 + + ( 9 ) + - 96 * + 99 + SUM( + 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL + CAST ( NULL AS REAL ) * - 73 + + ( 9 ) + - 96 * + 99 + SUM ( + 36 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT ALL 7 * NULLIF ( - 96, - + ( SUM( + 15 ) ) * + 29 + COUNT( * ) ) - + 63 * 47 + + + 63
----
-3570

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL 7 * NULLIF ( - 96, - + ( SUM ( + 15 ) ) * + 29 + COUNT ( * ) ) - + 63 * 47 + + + 63
----
-3570

query I rowsort
SELECT DISTINCT + 43 * 57 col2
----
2451

query I rowsort
SELECT ALL + - 11 + 4 * 42 AS col1
----
157

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

skipif mysql # not compatible
query I rowsort label-1210
SELECT - COUNT ( * ) * 51
----
-51

query I rowsort
SELECT ALL - 52 * + ( - + 64 )
----
3328

query I rowsort
SELECT + 52 * 85 * 89 * + - 38
----
-14948440

query I rowsort
SELECT 96 + 93 + + 0 + + 33 AS col1
----
222

query II rowsort
SELECT - 47 AS col2, - 34 * 4 * + - NULLIF ( - 25, - 30 ) * - - 2 AS col0
----
-47
-6800

query I rowsort
SELECT ALL - + 19 - 26
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT - MIN( - 10 ) * - 7 + - 21 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-1216
SELECT - MIN ( - 10 ) * - 7 + - 21 AS col0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1217
SELECT + 44 * - 68 AS col0, - CAST( NULL AS SIGNED ) + - + 83
----
-2992
NULL

skipif mysql # not compatible
query II rowsort label-1217
SELECT + 44 * - 68 AS col0, - CAST ( NULL AS INTEGER ) + - + 83
----
-2992
NULL

query I rowsort
SELECT 75 * + ( + - 40 ) col1
----
-3000

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1220
SELECT 6 + - + 0 * + 51 / + ( CASE WHEN + 76 BETWEEN - 93 * + + CAST( - - 7 AS SIGNED ) * 71 * + + 10 - + AVG ( DISTINCT - 95 ) AND - 61 THEN - - 39 WHEN 73 BETWEEN 8 AND - ( 25 ) + 86 THEN + COUNT( * ) * AVG ( 33 ) END ) * 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1220
SELECT 6 + - + 0 * + 51 / + ( CASE WHEN + 76 BETWEEN - 93 * + + CAST ( - - 7 AS INTEGER ) * 71 * + + 10 - + AVG ( DISTINCT - 95 ) AND - 61 THEN - - 39 WHEN 73 BETWEEN 8 AND - ( 25 ) + 86 THEN + COUNT ( * ) * AVG ( 33 ) END ) * 89 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1221
SELECT COUNT( * ) * + 8 col0, COALESCE ( - - 81, + ( 67 ) ) - + + 18 - + 51
----
8
12

skipif mysql # not compatible
query II rowsort label-1221
SELECT COUNT ( * ) * + 8 col0, COALESCE ( - - 81, + ( 67 ) ) - + + 18 - + 51
----
8
12

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

query I rowsort
SELECT DISTINCT COALESCE ( + 30, + ( + + 27 ), + 10 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT DISTINCT COALESCE ( - SUM( DISTINCT 14 ), - + 28 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT COALESCE ( - SUM ( DISTINCT 14 ), - + 28 ) AS col2
----
-14

query I rowsort
SELECT ALL COALESCE ( 58, 67 * 21 - 22 + 3 )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1226
SELECT + 75 + COUNT( ALL + + 40 ) DIV + ( 11 ) * - 49 + + SUM( ALL 15 ) + - 19 + COUNT( * ) - 85 * + 71 + + - 25 AS col2, 26
----
-5988
26

skipif mysql # not compatible
query II rowsort label-1226
SELECT + 75 + COUNT ( ALL + + 40 ) / + ( 11 ) * - 49 + + SUM ( ALL 15 ) + - 19 + COUNT ( * ) - 85 * + 71 + + - 25 AS col2, 26
----
-5988
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT ALL COALESCE ( 33, + CASE + - 60 WHEN + COUNT( * ) * + 39 * - 99 THEN - - COUNT( * ) + + - 4 END )
----
33

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL COALESCE ( 33, + CASE + - 60 WHEN + COUNT ( * ) * + 39 * - 99 THEN - - COUNT ( * ) + + - 4 END )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1228
SELECT + 51 DIV COUNT( * ) * + 89 AS col0
----
4539

skipif mysql # not compatible
query I rowsort label-1228
SELECT + 51 / COUNT ( * ) * + 89 AS col0
----
4539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1229
SELECT ALL NULLIF ( + - 37, 86 + - + 94 + + - NULLIF ( + 3, - 59 ) * + + COUNT( * ) ) + 97 - - + 13 AS col1, + 47 * + ( + + 73 ) - 61 * + + CAST( NULL AS SIGNED )
----
73
NULL

skipif mysql # not compatible
query II rowsort label-1229
SELECT ALL NULLIF ( + - 37, 86 + - + 94 + + - NULLIF ( + 3, - 59 ) * + + COUNT ( * ) ) + 97 - - + 13 AS col1, + 47 * + ( + + 73 ) - 61 * + + CAST ( NULL AS INTEGER )
----
73
NULL

query I rowsort
SELECT + 89 + - + NULLIF ( - 90, 19 ) * + - 69
----
-6121

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT ALL + MIN( ALL + - 64 ) + CASE + 85 WHEN COUNT( * ) THEN + ( COALESCE ( - 60, - COUNT( * ), - 54 + - - 2 + + + MAX( ALL - + 71 ) * - ( + 71 ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL + MIN ( ALL + - 64 ) + CASE + 85 WHEN COUNT ( * ) THEN + ( COALESCE ( - 60, - COUNT ( * ), - 54 + - - 2 + + + MAX ( ALL - + 71 ) * - ( + 71 ) ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT ALL 64 * 80 + - 74 - CASE + SUM( - 1 ) WHEN + COUNT( * ) * - COUNT( * ) THEN + + 52 END
----
4994

skipif mysql # not compatible
query I rowsort label-1232
SELECT ALL 64 * 80 + - 74 - CASE + SUM ( - 1 ) WHEN + COUNT ( * ) * - COUNT ( * ) THEN + + 52 END
----
4994

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT DISTINCT - ( - 86 ) * + 12 + - SUM( ALL + 94 )
----
938

skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT - ( - 86 ) * + 12 + - SUM ( ALL + 94 )
----
938

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT DISTINCT COUNT( * ) + - 5 + - 63 + 40
----
-27

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT COUNT ( * ) + - 5 + - 63 + 40
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT - - MIN( - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-1235
SELECT - - MIN ( - 39 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1236
SELECT ALL + COALESCE ( + 97, + 47 ) + - 44 * + NULLIF ( CAST( NULL AS SIGNED ), - + 25 ) / - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL + COALESCE ( + 97, + 47 ) + - 44 * + NULLIF ( CAST ( NULL AS INTEGER ), - + 25 ) / - 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT ALL - 5 + - COUNT( * ) * + 50
----
-55

skipif mysql # not compatible
query I rowsort label-1237
SELECT ALL - 5 + - COUNT ( * ) * + 50
----
-55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1238
SELECT ALL 59 * - 49 + - 14 * + - 36 * MAX( DISTINCT - 57 ) + COUNT( * ) * 49 * - NULLIF ( + 98, + COUNT( * ) / + + CAST( 36 AS DECIMAL ) / - 17 * 61 / COUNT( DISTINCT 66 ) * 30 + 73 ) * + + 56 col0
----
-300531

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL 59 * - 49 + - 14 * + - 36 * MAX ( DISTINCT - 57 ) + COUNT ( * ) * 49 * - NULLIF ( + 98, + COUNT ( * ) / + + CAST ( 36 AS REAL ) / - 17 * 61 / COUNT ( DISTINCT 66 ) * 30 + 73 ) * + + 56 col0
----
-300531

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT DISTINCT 48 * COUNT( * ) * + 22 * - 24 + 76
----
-25268

skipif mysql # not compatible
query I rowsort label-1239
SELECT DISTINCT 48 * COUNT ( * ) * + 22 * - 24 + 76
----
-25268

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT + 36 * + COUNT( * ) - - 72 + 27 * 12
----
432

skipif mysql # not compatible
query I rowsort label-1240
SELECT + 36 * + COUNT ( * ) - - 72 + 27 * 12
----
432

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1242
SELECT ALL + CAST( + + 83 AS SIGNED ) * + ( + 90 ) - + - 38 AS col1
----
7508

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL + CAST ( + + 83 AS INTEGER ) * + ( + 90 ) - + - 38 AS col1
----
7508

onlyif mysql # aggregate syntax: 
query II rowsort label-1243
SELECT - COUNT( DISTINCT - 66 ), 25 AS col0
----
-1
25

skipif mysql # not compatible
query II rowsort label-1243
SELECT - COUNT ( DISTINCT - 66 ), 25 AS col0
----
-1
25

onlyif mysql # aggregate syntax: 
query II rowsort label-1244
SELECT DISTINCT + + ( + 51 ), 0 * - CASE 92 WHEN 85 * - + 87 * - + 79 + - SUM( + - 66 ) THEN NULL WHEN + 94 THEN 62 WHEN + 23 * - COUNT( * ) THEN NULL ELSE - - 19 - + 73 * - + 61 END AS col1
----
51
0

skipif mysql # not compatible
query II rowsort label-1244
SELECT DISTINCT + + ( + 51 ), 0 * - CASE 92 WHEN 85 * - + 87 * - + 79 + - SUM ( + - 66 ) THEN NULL WHEN + 94 THEN 62 WHEN + 23 * - COUNT ( * ) THEN NULL ELSE - - 19 - + 73 * - + 61 END AS col1
----
51
0

query I rowsort
SELECT DISTINCT - 81 * + 45 - 52
----
-3697

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT ALL 88 * - 31 - + - COUNT( * ) col0
----
-2727

skipif mysql # not compatible
query I rowsort label-1246
SELECT ALL 88 * - 31 - + - COUNT ( * ) col0
----
-2727

onlyif mysql # DIV for integer division: 
query I rowsort label-1247
SELECT DISTINCT 36 DIV - 34
----
-1

skipif mysql # not compatible
query I rowsort label-1247
SELECT DISTINCT 36 / - 34
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1248
SELECT NULLIF ( + CAST( - 42 AS SIGNED ), COUNT( * ) * - 27 * + CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) * 3 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-1248
SELECT NULLIF ( + CAST ( - 42 AS INTEGER ), COUNT ( * ) * - 27 * + CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) * 3 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-1249
SELECT DISTINCT + COUNT( * ), NULLIF ( 92, - 34 ) * - - 2 - 38 AS col1
----
1
146

skipif mysql # not compatible
query II rowsort label-1249
SELECT DISTINCT + COUNT ( * ), NULLIF ( 92, - 34 ) * - - 2 - 38 AS col1
----
1
146

query I rowsort
SELECT ALL 71 * NULLIF ( + 8, 45 ) AS col1
----
568

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT ALL + MAX( ALL 95 ) col2
----
95

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL + MAX ( ALL 95 ) col2
----
95

query I rowsort
SELECT - 41 * - - 62
----
-2542

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT 68 * 95 * - - ( + 59 ) * 87 + - 13 - CASE + 23 WHEN MAX( ALL 6 ) THEN - 12 + 86 * - + 89 * COUNT( * ) ELSE - 67 END * 27 - + 9
----
33160967

skipif mysql # not compatible
query I rowsort label-1253
SELECT 68 * 95 * - - ( + 59 ) * 87 + - 13 - CASE + 23 WHEN MAX ( ALL 6 ) THEN - 12 + 86 * - + 89 * COUNT ( * ) ELSE - 67 END * 27 - + 9
----
33160967

onlyif mysql # aggregate syntax: 
query II rowsort label-1254
SELECT ALL + 67, SUM( DISTINCT - 38 ) AS col2
----
67
-38

skipif mysql # not compatible
query II rowsort label-1254
SELECT ALL + 67, SUM ( DISTINCT - 38 ) AS col2
----
67
-38

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

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

query I rowsort
SELECT - 6 * + 18 AS col1
----
-108

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

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

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

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

query I rowsort
SELECT - 34 + - 6
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1261
SELECT DISTINCT ( + CAST( - + 63 AS SIGNED ) ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-1261
SELECT DISTINCT ( + CAST ( - + 63 AS INTEGER ) ) AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1262
SELECT ALL - CASE + - CAST( NULLIF ( + - 79, + 11 ) AS SIGNED ) WHEN 83 * 48 + - - 73 + - 91 THEN - 5 END + - COALESCE ( + CASE + 56 WHEN MIN( ALL 55 ) THEN + - 3 ELSE - 8 * - 62 * + 31 END, 13 + + 25 * + 86 ) + 52 - 39 * 68 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL - CASE + - CAST ( NULLIF ( + - 79, + 11 ) AS INTEGER ) WHEN 83 * 48 + - - 73 + - 91 THEN - 5 END + - COALESCE ( + CASE + 56 WHEN MIN ( ALL 55 ) THEN + - 3 ELSE - 8 * - 62 * + 31 END, 13 + + 25 * + 86 ) + 52 - 39 * 68 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 63 - + 61 + - 41 AS col0
----
-165

query I rowsort
SELECT + 45 * - 38
----
-1710

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

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

query I rowsort
SELECT ALL - - 45 * 71
----
3195

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1268
SELECT - 27 - - + COUNT( * ) + - - 51 AS col2, + ( + + 27 ) + 2 col2
----
25
29

skipif mysql # not compatible
query II rowsort label-1268
SELECT - 27 - - + COUNT ( * ) + - - 51 AS col2, + ( + + 27 ) + 2 col2
----
25
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1269
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, CASE - 45 WHEN 29 THEN + - COUNT( * ) WHEN + 74 THEN NULL END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1269
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, CASE - 45 WHEN 29 THEN + - COUNT ( * ) WHEN + 74 THEN NULL END AS col1
----
NULL
NULL

query I rowsort
SELECT ALL 93 + - - 61 AS col0
----
154

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

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

onlyif mysql # DIV for integer division: 
query III rowsort label-1272
SELECT + 81 * 9 * + 7, 53 AS col1, ( - 20 ) DIV + - 23 AS col2
----
5103
53
0

skipif mysql # not compatible
query III rowsort label-1272
SELECT + 81 * 9 * + 7, 53 AS col1, ( - 20 ) / + - 23 AS col2
----
5103
53
0

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

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

query II rowsort
SELECT 71 AS col0, + 45 AS col2
----
71
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT + - COUNT( * ) * 16 + + + COUNT( * ) + 0
----
-15

skipif mysql # not compatible
query I rowsort label-1275
SELECT + - COUNT ( * ) * 16 + + + COUNT ( * ) + 0
----
-15

query I rowsort
SELECT ALL - ( + 51 ) * + + ( - - 78 )
----
-3978

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1277
SELECT + 56 + - ( + + CAST( - 82 AS SIGNED ) ) + + 4 - 64, + 11 + + - 41 AS col0
----
78
-30

skipif mysql # not compatible
query II rowsort label-1277
SELECT + 56 + - ( + + CAST ( - 82 AS INTEGER ) ) + + 4 - 64, + 11 + + - 41 AS col0
----
78
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT + 70 + + 64 + + 19 + + COUNT( ALL - 53 ) * NULLIF ( - 18, - 31 ) * 16 * + 71 AS col0
----
-20295

skipif mysql # not compatible
query I rowsort label-1278
SELECT + 70 + + 64 + + 19 + + COUNT ( ALL - 53 ) * NULLIF ( - 18, - 31 ) * 16 * + 71 AS col0
----
-20295

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1279
SELECT ALL 48 DIV + + 21 - + 20 + - 37 * - MAX( - 21 ) * 87 AS col2
----
-67617

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL 48 / + + 21 - + 20 + - 37 * - MAX ( - 21 ) * 87 AS col2
----
-67617

query I rowsort
SELECT DISTINCT + 42 * 50
----
2100

query I rowsort
SELECT + - COALESCE ( + 46, 33, - 97 ) AS col2
----
-46

query I rowsort
SELECT ALL 30 * + 45 * + 79 AS col1
----
106650

query I rowsort
SELECT 6 * + + ( 47 )
----
282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1284
SELECT 41 + - + COUNT( * ) + - 46 - + 33 * CAST( NULL AS SIGNED ) * 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1284
SELECT 41 + - + COUNT ( * ) + - 46 - + 33 * CAST ( NULL AS INTEGER ) * 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1285
SELECT DISTINCT - MIN( 7 ), - 99 col0
----
-7
-99

skipif mysql # not compatible
query II rowsort label-1285
SELECT DISTINCT - MIN ( 7 ), - 99 col0
----
-7
-99

query I rowsort
SELECT DISTINCT 17 + - 53 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT ALL + ( + CASE - 61 WHEN + - COUNT( * ) * + 33 THEN 57 * + 74 + COALESCE ( + + 46, - MAX( ALL + 36 ) ) + + - 46 WHEN - MAX( + 63 ) * + + 61 + + 50 + - + CASE + 50 WHEN - COUNT( * ) THEN NULL WHEN - + 52 * COUNT( * ) THEN NULL WHEN - 77 THEN + + COUNT( * ) - 41 ELSE + 75 * 30 END THEN COUNT( * ) * 46 END ) + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL + ( + CASE - 61 WHEN + - COUNT ( * ) * + 33 THEN 57 * + 74 + COALESCE ( + + 46, - MAX ( ALL + 36 ) ) + + - 46 WHEN - MAX ( + 63 ) * + + 61 + + 50 + - + CASE + 50 WHEN - COUNT ( * ) THEN NULL WHEN - + 52 * COUNT ( * ) THEN NULL WHEN - 77 THEN + + COUNT ( * ) - 41 ELSE + 75 * 30 END THEN COUNT ( * ) * 46 END ) + - 42
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT 82 + + - 42 + - 36 * - 5 AS col0
----
220

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1292
SELECT ALL COUNT( * ) + + CASE + + 75 WHEN + 18 + + - COUNT( * ) * + 56 THEN NULL WHEN + 63 THEN + - 56 WHEN - 70 THEN NULL END, 32 col1
----
NULL
32

skipif mysql # not compatible
query II rowsort label-1292
SELECT ALL COUNT ( * ) + + CASE + + 75 WHEN + 18 + + - COUNT ( * ) * + 56 THEN NULL WHEN + 63 THEN + - 56 WHEN - 70 THEN NULL END, 32 col1
----
NULL
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1293
SELECT DISTINCT CAST( - 73 AS SIGNED ) * - 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT CAST ( - 73 AS INTEGER ) * - 0 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1294
SELECT DISTINCT - CASE + + ( - - 95 ) WHEN + MIN( DISTINCT - + 75 ) THEN + + NULLIF ( + 11, 64 ) WHEN - + MAX( + 81 ) THEN NULL ELSE 95 END + + CAST( + ( + 97 ) AS SIGNED ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1294
SELECT DISTINCT - CASE + + ( - - 95 ) WHEN + MIN ( DISTINCT - + 75 ) THEN + + NULLIF ( + 11, 64 ) WHEN - + MAX ( + 81 ) THEN NULL ELSE 95 END + + CAST ( + ( + 97 ) AS INTEGER ) AS col2
----
2

query I rowsort
SELECT 72 * - 90 * - 11
----
71280

query I rowsort
SELECT 75 * + 85 * - + 69 AS col2
----
-439875

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1298
SELECT ALL - + COUNT( * ) + - 98 * 90 * 81 DIV + MIN( DISTINCT + + 52 )
----
-13739

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL - + COUNT ( * ) + - 98 * 90 * 81 / + MIN ( DISTINCT + + 52 )
----
-13739

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT 33 + - CASE + COUNT( * ) WHEN + 81 THEN - 87 ELSE NULL END + + + COALESCE ( + 88, + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1299
SELECT 33 + - CASE + COUNT ( * ) WHEN + 81 THEN - 87 ELSE NULL END + + + COALESCE ( + 88, + COUNT ( * ) )
----
NULL

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

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

query I rowsort
SELECT ALL - + 17 * + ( 5 )
----
-85

query I rowsort
SELECT + 87 + - 81 AS col0
----
6

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1304
SELECT DISTINCT - COUNT( * ) - + CASE + MIN( ALL + 20 ) WHEN - ( + 14 ) THEN NULL ELSE 96 END, + COUNT( * ) AS col0
----
-97
1

skipif mysql # not compatible
query II rowsort label-1304
SELECT DISTINCT - COUNT ( * ) - + CASE + MIN ( ALL + 20 ) WHEN - ( + 14 ) THEN NULL ELSE 96 END, + COUNT ( * ) AS col0
----
-97
1

query II rowsort
SELECT ALL + COALESCE ( 78, + + 99 + - - 56 ) AS col2, + 15 AS col0
----
78
15

query I rowsort
SELECT ( + 55 ) col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT COUNT( * ) * - - MIN( ALL 63 )
----
63

skipif mysql # not compatible
query I rowsort label-1307
SELECT COUNT ( * ) * - - MIN ( ALL 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT ALL - CASE + 76 WHEN - 63 THEN - MIN( + 20 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL - CASE + 76 WHEN - 63 THEN - MIN ( + 20 ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1309
SELECT + 25 DIV + - 25 - + + 43 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-1309
SELECT + 25 / + - 25 - + + 43 AS col1
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1310
SELECT ALL + NULLIF ( 13, - + 6 + + - COUNT( * ) * - MAX( 51 ) ) DIV + 61 - - 92 * - COUNT( * ) * - 65 * - + 37
----
-221260

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL + NULLIF ( 13, - + 6 + + - COUNT ( * ) * - MAX ( 51 ) ) / + 61 - - 92 * - COUNT ( * ) * - 65 * - + 37
----
-221260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1311
SELECT 2 * CASE 97 WHEN + COUNT( * ) + 69 * - 12 / - 25 * - 50 * + 83 THEN 50 - - MIN( + 24 ) * - 14 WHEN + CAST( NULL AS SIGNED ) THEN - COUNT( ALL + - 4 ) ELSE + + 41 END * - + 36 AS col1, ( + 21 )
----
-2952
21

skipif mysql # not compatible
query II rowsort label-1311
SELECT 2 * CASE 97 WHEN + COUNT ( * ) + 69 * - 12 / - 25 * - 50 * + 83 THEN 50 - - MIN ( + 24 ) * - 14 WHEN + CAST ( NULL AS INTEGER ) THEN - COUNT ( ALL + - 4 ) ELSE + + 41 END * - + 36 AS col1, ( + 21 )
----
-2952
21

onlyif mysql # aggregate syntax: 
query II rowsort label-1312
SELECT DISTINCT ( + COUNT( * ) ) + 68 AS col1, ( 56 ) AS col2
----
69
56

skipif mysql # not compatible
query II rowsort label-1312
SELECT DISTINCT ( + COUNT ( * ) ) + 68 AS col1, ( 56 ) AS col2
----
69
56

query I rowsort
SELECT ALL 77 + - - 53
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-1314
SELECT 68 * + 14 * 31 - - + 97 * COUNT( * ), - 85 AS col2
----
29609
-85

skipif mysql # not compatible
query II rowsort label-1314
SELECT 68 * + 14 * 31 - - + 97 * COUNT ( * ), - 85 AS col2
----
29609
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT DISTINCT 23 * + COUNT( * ) * ( - 6 )
----
-138

skipif mysql # not compatible
query I rowsort label-1315
SELECT DISTINCT 23 * + COUNT ( * ) * ( - 6 )
----
-138

query I rowsort
SELECT ALL 29 + - - 2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1317
SELECT 41 * + NULLIF ( + 55, - 21 * - CAST( NULL AS SIGNED ) ) * - ( - - COUNT( * ) ) + - 89 AS col0, 2 + COALESCE ( - 51, - + 87 ) + 94
----
-2344
45

skipif mysql # not compatible
query II rowsort label-1317
SELECT 41 * + NULLIF ( + 55, - 21 * - CAST ( NULL AS INTEGER ) ) * - ( - - COUNT ( * ) ) + - 89 AS col0, 2 + COALESCE ( - 51, - + 87 ) + 94
----
-2344
45

query I rowsort
SELECT ALL 41 + - + 24 AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1319
SELECT ALL CAST( NULL AS SIGNED ) + + - 88 + - COUNT( DISTINCT - 0 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL CAST ( NULL AS INTEGER ) + + - 88 + - COUNT ( DISTINCT - 0 ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1320
SELECT 31 + - 77 + - + ( - - CAST( NULL AS DECIMAL ) ) * - - 3 - + + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1320
SELECT 31 + - 77 + - + ( - - CAST ( NULL AS REAL ) ) * - - 3 - + + 15 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 28 + + + 39
----
67

query I rowsort
SELECT - 82 * ( + - 91 ) + + 61
----
7523

query II rowsort
SELECT ALL + 4 AS col0, 9 AS col2
----
4
9

query I rowsort
SELECT ALL - 60 - - 81 * + 20 AS col2
----
1560

query I rowsort
SELECT + ( 22 ) * + 91 AS col1
----
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT - ( - + 49 ) + + 9 + 89 * COUNT( * ) - MIN( - - 14 ) + + 44 + - + 5 * + - ( 16 ) col1
----
257

skipif mysql # not compatible
query I rowsort label-1326
SELECT - ( - + 49 ) + + 9 + 89 * COUNT ( * ) - MIN ( - - 14 ) + + 44 + - + 5 * + - ( 16 ) col1
----
257

onlyif mysql # aggregate syntax: 
query II rowsort label-1327
SELECT - COUNT( * ) col2, + MAX( ALL - 47 ) * - + 9 + MIN( + 81 )
----
-1
504

skipif mysql # not compatible
query II rowsort label-1327
SELECT - COUNT ( * ) col2, + MAX ( ALL - 47 ) * - + 9 + MIN ( + 81 )
----
-1
504

onlyif mysql # aggregate syntax: 
query II rowsort label-1328
SELECT - 37, 43 + COUNT( * ) AS col0
----
-37
44

skipif mysql # not compatible
query II rowsort label-1328
SELECT - 37, 43 + COUNT ( * ) AS col0
----
-37
44

query I rowsort
SELECT ( + + 73 ) + + + 90 * + 57
----
5203

query II rowsort
SELECT ALL - 29, - 92 col1
----
-29
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT + COUNT( * ) - + + 15 * + 95 * + 53 AS col0
----
-75524

skipif mysql # not compatible
query I rowsort label-1331
SELECT + COUNT ( * ) - + + 15 * + 95 * + 53 AS col0
----
-75524

query II rowsort
SELECT DISTINCT 94, + 17 * - - 34 AS col2
----
94
578

query I rowsort
SELECT 96 + - 78 AS col2
----
18

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

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

query II rowsort
SELECT - 74 - - 86 * + + 25 AS col2, - COALESCE ( + 89, - 75, 13 )
----
2076
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1336
SELECT DISTINCT 67 AS col2, + CAST( NULL AS SIGNED ) + MAX( DISTINCT 87 ) * - - 30 col2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-1336
SELECT DISTINCT 67 AS col2, + CAST ( NULL AS INTEGER ) + MAX ( DISTINCT 87 ) * - - 30 col2
----
67
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1337
SELECT - 88 - 23 / - MAX( ALL - - CAST( NULL AS DECIMAL ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1337
SELECT - 88 - 23 / - MAX ( ALL - - CAST ( NULL AS REAL ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT - 89 + - MAX( ALL + 47 ) AS col2
----
-136

skipif mysql # not compatible
query I rowsort label-1338
SELECT - 89 + - MAX ( ALL + 47 ) AS col2
----
-136

query II rowsort
SELECT + 10, 4 col0
----
10
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1340
SELECT ALL + COUNT( * ) * + 17 + - CAST( + NULLIF ( + - 58, + + ( + 68 ) ) AS SIGNED ) + + - 75 - 19 + - 57 * + COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL + COUNT ( * ) * + 17 + - CAST ( + NULLIF ( + - 58, + + ( + 68 ) ) AS INTEGER ) + + - 75 - 19 + - 57 * + COUNT ( * ) AS col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1341
SELECT - 83 + NULLIF ( + + ( - COUNT( ALL + 43 ) ), - - 14 + 20 - + 57 + - 15 * + CASE + 44 WHEN + COUNT( * ) THEN NULL WHEN - 47 * - - 47 - COALESCE ( + - 96, 67 * - 45 ) THEN 51 WHEN - 70 THEN - 46 * CAST( NULL AS SIGNED ) * 80 END ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-1341
SELECT - 83 + NULLIF ( + + ( - COUNT ( ALL + 43 ) ), - - 14 + 20 - + 57 + - 15 * + CASE + 44 WHEN + COUNT ( * ) THEN NULL WHEN - 47 * - - 47 - COALESCE ( + - 96, 67 * - 45 ) THEN 51 WHEN - 70 THEN - 46 * CAST ( NULL AS INTEGER ) * 80 END ) col1
----
-84

query II rowsort
SELECT DISTINCT + ( + 0 ), + 11 AS col1
----
0
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT DISTINCT - 74 * - 15 * MIN( + - 17 ) + + - MIN( ALL + 26 ) AS col1
----
-18896

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT - 74 * - 15 * MIN ( + - 17 ) + + - MIN ( ALL + 26 ) AS col1
----
-18896

query II rowsort
SELECT ALL + 5, + 66 col2
----
5
66

query I rowsort
SELECT - 11 + + 72 * + - 9 AS col1
----
-659

onlyif mysql # DIV for integer division: 
query I rowsort label-1346
SELECT - 99 DIV 64
----
-1

skipif mysql # not compatible
query I rowsort label-1346
SELECT - 99 / 64
----
-1

query I rowsort
SELECT + ( + 5 ) + - 64 AS col2
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1348
SELECT COALESCE ( 23, COUNT( * ) * + 79 + + + CASE 48 WHEN 3 * - 38 DIV + - COUNT( * ) * - 51 THEN - + 61 DIV + 97 + COUNT( * ) * 96 + + + 23 + - - 23 - 79 * - 75 + - 10 * 13 + + 98 * - NULLIF ( + 70, + - 66 ) + - 24 WHEN + 7 THEN + 81 WHEN ( AVG ( + 43 ) ) + - 30 THEN + 54 END + MAX( - 69 ) DIV 11 * - 60 + 43, SUM( - 87 ) + 9, ( - 66 ) )
----
23

skipif mysql # not compatible
query I rowsort label-1348
SELECT COALESCE ( 23, COUNT ( * ) * + 79 + + + CASE 48 WHEN 3 * - 38 / + - COUNT ( * ) * - 51 THEN - + 61 / + 97 + COUNT ( * ) * 96 + + + 23 + - - 23 - 79 * - 75 + - 10 * 13 + + 98 * - NULLIF ( + 70, + - 66 ) + - 24 WHEN + 7 THEN + 81 WHEN ( AVG ( + 43 ) ) + - 30 THEN + 54 END + MAX ( - 69 ) / 11 * - 60 + 43, SUM ( - 87 ) + 9, ( - 66 ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT DISTINCT 28 * - 24 * + NULLIF ( + 61, 75 - COUNT( * ) ) AS col1
----
-40992

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT 28 * - 24 * + NULLIF ( + 61, 75 - COUNT ( * ) ) AS col1
----
-40992

onlyif mysql # aggregate syntax: 
query II rowsort label-1350
SELECT ALL ( + 45 ) * 43 - COUNT( * ) AS col2, 44
----
1934
44

skipif mysql # not compatible
query II rowsort label-1350
SELECT ALL ( + 45 ) * 43 - COUNT ( * ) AS col2, 44
----
1934
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1351
SELECT DISTINCT + CASE + + ( MIN( ALL - + ( + 22 ) ) ) WHEN - + 88 THEN NULL ELSE 16 DIV + 81 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1351
SELECT DISTINCT + CASE + + ( MIN ( ALL - + ( + 22 ) ) ) WHEN - + 88 THEN NULL ELSE 16 / + 81 END AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1352
SELECT ALL + 36 AS col1, - SUM( ALL + 10 ) AS col1
----
36
-10

skipif mysql # not compatible
query II rowsort label-1352
SELECT ALL + 36 AS col1, - SUM ( ALL + 10 ) AS col1
----
36
-10

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

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

query I rowsort
SELECT ALL + 66 * + 48 * 4 AS col2
----
12672

query I rowsort
SELECT ALL 79 * + 34 - 13 AS col2
----
2673

onlyif mysql # DIV for integer division: 
query I rowsort label-1356
SELECT DISTINCT 85 * 38 + + 92 DIV 57
----
3231

skipif mysql # not compatible
query I rowsort label-1356
SELECT DISTINCT 85 * 38 + + 92 / 57
----
3231

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT - + COUNT( * ) - 29
----
-30

skipif mysql # not compatible
query I rowsort label-1357
SELECT - + COUNT ( * ) - 29
----
-30

query II rowsort
SELECT ALL 82 AS col1, 2 - - 22
----
82
24

query II rowsort
SELECT - 93 col0, 51 * - 48 + + - 50 * + - COALESCE ( - 94, - - 63 )
----
-93
-7148

onlyif mysql # aggregate syntax: 
query II rowsort label-1360
SELECT + COUNT( * ) * + 37 * 40 + - 61 + - 12 + + 34, + 34 + + 22 * - - 49 AS col0
----
1441
1112

skipif mysql # not compatible
query II rowsort label-1360
SELECT + COUNT ( * ) * + 37 * 40 + - 61 + - 12 + + 34, + 34 + + 22 * - - 49 AS col0
----
1441
1112

query II rowsort
SELECT 16, 13 col2
----
16
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT DISTINCT - NULLIF ( + COALESCE ( + 91, MIN( DISTINCT 93 ) ), + 43 + + 97 + COUNT( * ) )
----
-91

skipif mysql # not compatible
query I rowsort label-1362
SELECT DISTINCT - NULLIF ( + COALESCE ( + 91, MIN ( DISTINCT 93 ) ), + 43 + + 97 + COUNT ( * ) )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1363
SELECT + CAST( NULL AS SIGNED ) * + COALESCE ( - 82, - CAST( NULL AS SIGNED ) ) + + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1363
SELECT + CAST ( NULL AS INTEGER ) * + COALESCE ( - 82, - CAST ( NULL AS INTEGER ) ) + + 61
----
NULL

query II rowsort
SELECT ALL - 31 AS col0, 68
----
-31
68

query I rowsort
SELECT + + 51 + + + ( - 31 )
----
20

query I rowsort
SELECT + - 76 + + 79 * + 71
----
5533

query II rowsort
SELECT ALL 6 + 79 AS col2, 70
----
85
70

query I rowsort
SELECT ALL + + COALESCE ( 59, + 24 + - 60 + - + 81 + - - 89 * - 52 ) * - 9 * + 42
----
-22302

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

query I rowsort
SELECT ALL 33 + 40
----
73

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

skipif mysql # not compatible
query I rowsort label-1371
SELECT + NULLIF ( 90, COUNT ( 37 ) ) * 1
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-1372
SELECT COUNT( * ) AS col1, ( - 16 ) * + + COALESCE ( - - 86, 84 ) col2
----
1
-1376

skipif mysql # not compatible
query II rowsort label-1372
SELECT COUNT ( * ) AS col1, ( - 16 ) * + + COALESCE ( - - 86, 84 ) col2
----
1
-1376

query I rowsort
SELECT + 16 * + 35 AS col2
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT - - ( + + SUM( ALL - 75 ) ) + 65
----
-10

skipif mysql # not compatible
query I rowsort label-1374
SELECT - - ( + + SUM ( ALL - 75 ) ) + 65
----
-10

query I rowsort
SELECT ALL + 30 + + 20 AS col1
----
50

query II rowsort
SELECT - - 82, - 13 AS col1
----
82
-13

query I rowsort
SELECT ALL + 60 + - + 41 * 31 AS col1
----
-1211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1378
SELECT ALL + CASE - 33 WHEN + COUNT( * ) * + COUNT( DISTINCT + 3 ) / + CASE 84 WHEN ( - - 86 ) THEN NULL WHEN - CAST( 6 AS SIGNED ) THEN NULL ELSE + 59 END * - + AVG ( + 64 ) THEN NULL ELSE + CAST( NULL AS SIGNED ) END + - + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL + CASE - 33 WHEN + COUNT ( * ) * + COUNT ( DISTINCT + 3 ) / + CASE 84 WHEN ( - - 86 ) THEN NULL WHEN - CAST ( 6 AS INTEGER ) THEN NULL ELSE + 59 END * - + AVG ( + 64 ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) END + - + 20
----
NULL

query I rowsort
SELECT - 59 * + 40
----
-2360

query I rowsort
SELECT ALL CASE + 93 WHEN - AVG ( + 10 ) THEN + 53 END + - 36 AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT + 60 + + 47 * - CASE - + CASE 97 WHEN + - 3 THEN 38 END WHEN + 56 THEN - - 15 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1383
SELECT - 26 DIV - + SUM( ALL + 95 ) - - 98 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-1383
SELECT - 26 / - + SUM ( ALL + 95 ) - - 98 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT COUNT( * ) * - - COUNT( * ) * - + COUNT( * ) - + 58 + 59 + + 9 * + 42 + + 15 * 78 * - - CASE - + ( + - 95 ) WHEN + - 87 THEN NULL WHEN + 44 THEN NULL ELSE + 66 + - + 3 END AS col1
----
74088

skipif mysql # not compatible
query I rowsort label-1384
SELECT COUNT ( * ) * - - COUNT ( * ) * - + COUNT ( * ) - + 58 + 59 + + 9 * + 42 + + 15 * 78 * - - CASE - + ( + - 95 ) WHEN + - 87 THEN NULL WHEN + 44 THEN NULL ELSE + 66 + - + 3 END AS col1
----
74088

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT DISTINCT + SUM( DISTINCT - + 14 ) * + COUNT( * ) + 56 - - 87 * - - 85 + + 90
----
7527

skipif mysql # not compatible
query I rowsort label-1385
SELECT DISTINCT + SUM ( DISTINCT - + 14 ) * + COUNT ( * ) + 56 - - 87 * - - 85 + + 90
----
7527

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT 80 * COUNT( * ) + 63 AS col1
----
143

skipif mysql # not compatible
query I rowsort label-1386
SELECT 80 * COUNT ( * ) + 63 AS col1
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-1387
SELECT - 18 DIV 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1387
SELECT - 18 / 84 AS col2
----
0

query I rowsort
SELECT - 14 * - 32 - - 62 AS col2
----
510

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

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL - - COUNT ( * ) / ( 25 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT - - 97 + + 75 + + - 73 + + - COUNT( * ) * 16 * - 91
----
1555

skipif mysql # not compatible
query I rowsort label-1390
SELECT - - 97 + + 75 + + - 73 + + - COUNT ( * ) * 16 * - 91
----
1555

query I rowsort
SELECT ALL 37 * - 32 * + - 23 - - 68 AS col1
----
27300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1392
SELECT DISTINCT - 46 * 65 + + - 23 + - 67 - + 46 - - MIN( DISTINCT + 21 ) * + + COUNT( * ) DIV - + COUNT( * )
----
-3147

skipif mysql # not compatible
query I rowsort label-1392
SELECT DISTINCT - 46 * 65 + + - 23 + - 67 - + 46 - - MIN ( DISTINCT + 21 ) * + + COUNT ( * ) / - + COUNT ( * )
----
-3147

query I rowsort
SELECT - 35 * - - 37 + 45 AS col1
----
-1250

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT DISTINCT + MIN( - 93 ) + COUNT( * ) col2
----
-92

skipif mysql # not compatible
query I rowsort label-1395
SELECT DISTINCT + MIN ( - 93 ) + COUNT ( * ) col2
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-1396
SELECT DISTINCT 60 + + 44 DIV + + 94
----
60

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT 60 + + 44 / + + 94
----
60

query II rowsort
SELECT DISTINCT 21 + - 72 * - 13 AS col2, 53 - 62 AS col2
----
957
-9

query I rowsort
SELECT ALL - 34 + - 48
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1399
SELECT COALESCE ( + 81, + 59, 41 * + CAST( NULL AS SIGNED ) + 32 ) * 42 AS col1, + 52 AS col0
----
3402
52

skipif mysql # not compatible
query II rowsort label-1399
SELECT COALESCE ( + 81, + 59, 41 * + CAST ( NULL AS INTEGER ) + 32 ) * 42 AS col1, + 52 AS col0
----
3402
52

query II rowsort
SELECT 36 - - 28 AS col1, 74 AS col0
----
64
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT CASE 47 WHEN + 17 THEN - COUNT( * ) * - MAX( - 81 ) * + 64 + + 79 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1401
SELECT CASE 47 WHEN + 17 THEN - COUNT ( * ) * - MAX ( - 81 ) * + 64 + + 79 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT DISTINCT - 31 + + - COUNT( * ) + - + 73 + - ( + 8 ) * - + 92 * 32 + + 12 + - 54 AS col2
----
23405

skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT - 31 + + - COUNT ( * ) + - + 73 + - ( + 8 ) * - + 92 * 32 + + 12 + - 54 AS col2
----
23405

query I rowsort
SELECT ALL ( + + ( 67 ) ) * 69 AS col2
----
4623

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1404
SELECT DISTINCT ( + - 95 ) + - COUNT( * ) * + 60, 84 DIV - + 92 AS col1
----
-155
0

skipif mysql # not compatible
query II rowsort label-1404
SELECT DISTINCT ( + - 95 ) + - COUNT ( * ) * + 60, 84 / - + 92 AS col1
----
-155
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT DISTINCT 89 * SUM( DISTINCT + 28 ) * CASE 84 WHEN COUNT( * ) THEN - 65 WHEN 20 THEN NULL END * - 33 + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT 89 * SUM ( DISTINCT + 28 ) * CASE 84 WHEN COUNT ( * ) THEN - 65 WHEN 20 THEN NULL END * - 33 + + 38
----
NULL

query I rowsort
SELECT ALL 47 + - - ( + 0 ) * - 1 AS col1
----
47

query II rowsort
SELECT 15 * - 56 * + + 48 AS col0, 0 AS col0
----
-40320
0

query I rowsort
SELECT ALL 18 * 19 AS col2
----
342

query I rowsort
SELECT 21 + - - 75 AS col0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-1410
SELECT 57 - - ( + 61 ) + - - COUNT( * ), + 67 * + 15 AS col1
----
119
1005

skipif mysql # not compatible
query II rowsort label-1410
SELECT 57 - - ( + 61 ) + - - COUNT ( * ), + 67 * + 15 AS col1
----
119
1005

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT NULLIF ( + 70, + 74 + + MIN( ALL + 0 ) * - + COUNT( * ) ) + - - MIN( 43 ) + COUNT( * ) col2
----
114

skipif mysql # not compatible
query I rowsort label-1411
SELECT NULLIF ( + 70, + 74 + + MIN ( ALL + 0 ) * - + COUNT ( * ) ) + - - MIN ( 43 ) + COUNT ( * ) col2
----
114

query II rowsort
SELECT 66 - + 86 - 39, 80 AS col0
----
-59
80

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

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

query II rowsort
SELECT 40 + 80 * + 50, 16 * + 25 * - - ( 73 ) AS col1
----
4040
29200

query II rowsort
SELECT 76 + CASE WHEN NOT NULL IS NOT NULL THEN - 72 ELSE 31 END - - 80 * - 24 * - 32, + 72 AS col2
----
61444
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1416
SELECT ALL 88 - ( + ( - CAST( NULL AS SIGNED ) ) ) + 14 + + + 43 + + NULLIF ( - - 46, + + 73 ) + - + 9 + + 53 * - - 96 * + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL 88 - ( + ( - CAST ( NULL AS INTEGER ) ) ) + 14 + + + 43 + + NULLIF ( - - 46, + + 73 ) + - + 9 + + 53 * - - 96 * + + 4
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1417
SELECT 47 DIV + - ( 90 ) col2, + SUM( - - 88 ) AS col2
----
0
88

skipif mysql # not compatible
query II rowsort label-1417
SELECT 47 / + - ( 90 ) col2, + SUM ( - - 88 ) AS col2
----
0
88

query II rowsort
SELECT 81 AS col0, - 16
----
81
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1419
SELECT ALL CAST( 40 AS SIGNED ) * 68
----
2720

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL CAST ( 40 AS INTEGER ) * 68
----
2720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1420
SELECT CAST( - - CASE 79 WHEN - - COUNT( * ) * + 93 THEN + COUNT( * ) WHEN + 81 THEN NULL ELSE NULL END AS SIGNED ) + + + COUNT( + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1420
SELECT CAST ( - - CASE 79 WHEN - - COUNT ( * ) * + 93 THEN + COUNT ( * ) WHEN + 81 THEN NULL ELSE NULL END AS INTEGER ) + + + COUNT ( + 24 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT ALL - COALESCE ( - COUNT( * ), + 92 * - - 86 + - - 24 + - 98 * + - 37 )
----
1

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL - COALESCE ( - COUNT ( * ), + 92 * - - 86 + - - 24 + - 98 * + - 37 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1422
SELECT ALL - 84 DIV - 47 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL - 84 / - 47 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1423
SELECT COUNT( * ) * + ( 93 ) + - 20 * + 78 + 2 DIV + SUM( DISTINCT + + 70 ) + - - 72 - - 50 * + 77 + 98 - - 73 - + COUNT( - 27 ) * COUNT( * ) * + - 93 * + 35 + + 54
----
5935

skipif mysql # not compatible
query I rowsort label-1423
SELECT COUNT ( * ) * + ( 93 ) + - 20 * + 78 + 2 / + SUM ( DISTINCT + + 70 ) + - - 72 - - 50 * + 77 + 98 - - 73 - + COUNT ( - 27 ) * COUNT ( * ) * + - 93 * + 35 + + 54
----
5935

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1424
SELECT 81 AS col1, - 37 + + 47 + + CAST( NULL AS SIGNED ) + - + ( 24 ) / CAST( NULLIF ( + + ( + 79 ), 14 ) AS SIGNED ) AS col1
----
81
NULL

skipif mysql # not compatible
query II rowsort label-1424
SELECT 81 AS col1, - 37 + + 47 + + CAST ( NULL AS INTEGER ) + - + ( 24 ) / CAST ( NULLIF ( + + ( + 79 ), 14 ) AS INTEGER ) AS col1
----
81
NULL

query II rowsort
SELECT + 51 AS col1, + 65 * + 74 * 48 + + CASE - - 43 WHEN + 82 THEN NULL ELSE - 14 * + 35 + - 46 END AS col1
----
51
230344

query I rowsort
SELECT CASE + 24 WHEN + 98 THEN - 85 * - + 8 - + 10 END + - 86 * 53
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1427
SELECT ALL - COUNT( * ) * - + COALESCE ( ( + + COUNT( DISTINCT - 79 ) ), - 6 + + - 29 ) * + + 35, - 85 DIV COALESCE ( - COUNT( * ), - ( + 99 ) ) AS col2
----
35
85

skipif mysql # not compatible
query II rowsort label-1427
SELECT ALL - COUNT ( * ) * - + COALESCE ( ( + + COUNT ( DISTINCT - 79 ) ), - 6 + + - 29 ) * + + 35, - 85 / COALESCE ( - COUNT ( * ), - ( + 99 ) ) AS col2
----
35
85

query I rowsort
SELECT 22 * 29 + 40 + - 4 col0
----
674

query I rowsort
SELECT - 87 * + + 44 + - 67
----
-3895

onlyif mysql # aggregate syntax: 
query II rowsort label-1430
SELECT DISTINCT - 48 * - COUNT( * ) + COUNT( * ), - SUM( + 44 ) AS col2
----
49
-44

skipif mysql # not compatible
query II rowsort label-1430
SELECT DISTINCT - 48 * - COUNT ( * ) + COUNT ( * ), - SUM ( + 44 ) AS col2
----
49
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT ALL + 90 + - SUM( - 71 ) AS col1
----
161

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL + 90 + - SUM ( - 71 ) AS col1
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1432
SELECT ALL - - NULLIF ( - + CAST( NULL AS SIGNED ), 48 * - 93 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + 97 * - COUNT( DISTINCT - 57 ) + ( + 54 ) + + + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1432
SELECT ALL - - NULLIF ( - + CAST ( NULL AS INTEGER ), 48 * - 93 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + 97 * - COUNT ( DISTINCT - 57 ) + ( + 54 ) + + + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT COUNT( * ) + + COUNT( * ) + + CASE + + 50 WHEN + 77 * - 35 THEN + 35 + + 37 WHEN 86 * AVG ( 45 ) + 75 + + 5 + + - 60 * - + 78 THEN - - ( COUNT( * ) ) * - + AVG ( + + ( 23 ) ) * - 3 END + 81 * 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1433
SELECT COUNT ( * ) + + COUNT ( * ) + + CASE + + 50 WHEN + 77 * - 35 THEN + 35 + + 37 WHEN 86 * AVG ( 45 ) + 75 + + 5 + + - 60 * - + 78 THEN - - ( COUNT ( * ) ) * - + AVG ( + + ( 23 ) ) * - 3 END + 81 * 28 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 4 + - ( + 10 ) + - COALESCE ( + 97, 77 * 24 ) col1
----
-111

query I rowsort
SELECT DISTINCT - 98 + + - 83 AS col1
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT + COUNT( + NULLIF ( - 73, - 48 * 50 ) ) - - COUNT( * ) + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-1436
SELECT + COUNT ( + NULLIF ( - 73, - 48 * 50 ) ) - - COUNT ( * ) + COUNT ( * )
----
3

query I rowsort
SELECT DISTINCT - + 24 + 47 col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1438
SELECT DISTINCT + - 62 + - MIN( + CAST( + 11 AS SIGNED ) ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-1438
SELECT DISTINCT + - 62 + - MIN ( + CAST ( + 11 AS INTEGER ) ) AS col0
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-1439
SELECT ALL - 5 DIV + - 73
----
0

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL - 5 / + - 73
----
0

query II rowsort
SELECT - - 74 col0, + 44 AS col2
----
74
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1441
SELECT - 54 + + 56 + + 69 * CAST( NULL AS SIGNED ) / + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-1441
SELECT - 54 + + 56 + + 69 * CAST ( NULL AS INTEGER ) / + 89
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1442
SELECT ALL + + 11 + - 88 DIV + - 10 + + 84 * - 53 AS col0
----
-4433

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL + + 11 + - 88 / + - 10 + + 84 * - 53 AS col0
----
-4433

onlyif mysql # aggregate syntax: 
query II rowsort label-1443
SELECT - + 20 AS col0, COUNT( * ) * + - COUNT( DISTINCT - 25 ) * + 65 - - + 64 - - 20 AS col1
----
-20
19

skipif mysql # not compatible
query II rowsort label-1443
SELECT - + 20 AS col0, COUNT ( * ) * + - COUNT ( DISTINCT - 25 ) * + 65 - - + 64 - - 20 AS col1
----
-20
19

onlyif mysql # aggregate syntax: 
query II rowsort label-1444
SELECT DISTINCT - + NULLIF ( + 49, - COUNT( ALL 29 ) ) + + 4 * - 0 col2, - 6 AS col2
----
-49
-6

skipif mysql # not compatible
query II rowsort label-1444
SELECT DISTINCT - + NULLIF ( + 49, - COUNT ( ALL 29 ) ) + + 4 * - 0 col2, - 6 AS col2
----
-49
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1445
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - - SUM( ALL - 57 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1445
SELECT DISTINCT + CAST ( NULL AS REAL ) + - - SUM ( ALL - 57 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT ALL 51 * + 22 * 31 * - - 26 - + + NULLIF ( COUNT( ALL + - 32 ), COALESCE ( + COUNT( * ), 64 ) ) - - - 21 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL 51 * + 22 * 31 * - - 26 - + + NULLIF ( COUNT ( ALL + - 32 ), COALESCE ( + COUNT ( * ), 64 ) ) - - - 21 + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( - - 71, ( 10 ) ) + + 6
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT DISTINCT + COALESCE ( + 38, 36 + + - 99 * 0 * + - 74 ) + + + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT + COALESCE ( + 38, 36 + + - 99 * 0 * + - 74 ) + + + COUNT ( * )
----
39

query I rowsort
SELECT 12 * - 30
----
-360

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT DISTINCT - ( 56 ) - + NULLIF ( + - 43, MAX( DISTINCT - ( 12 ) ) ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-1451
SELECT DISTINCT - ( 56 ) - + NULLIF ( + - 43, MAX ( DISTINCT - ( 12 ) ) ) AS col2
----
-13

query I rowsort
SELECT 66 + - 50 + 64 + + 3
----
83

query I rowsort
SELECT ALL 12 - - ( - - 53 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT CASE - 90 WHEN + CASE WHEN NOT NULL IS NULL THEN NULL ELSE + COALESCE ( + - ( + 38 ), - + 9 * - 5 ) END + 94 + - ( - COALESCE ( 7, - 33 * - 48 / 52, - 13 ) ) + - 74 * + 25 THEN - COUNT( * ) WHEN - COALESCE ( - 78, - 18 ) + + - 40 + + 68 * + 29 * + 5 + + 37 + 53 * + 80 THEN - 22 * COUNT( * ) END + + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1454
SELECT CASE - 90 WHEN + CASE WHEN NOT NULL IS NULL THEN NULL ELSE + COALESCE ( + - ( + 38 ), - + 9 * - 5 ) END + 94 + - ( - COALESCE ( 7, - 33 * - 48 / 52, - 13 ) ) + - 74 * + 25 THEN - COUNT ( * ) WHEN - COALESCE ( - 78, - 18 ) + + - 40 + + 68 * + 29 * + 5 + + 37 + 53 * + 80 THEN - 22 * COUNT ( * ) END + + 83 AS col2
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1455
SELECT 50 * + COUNT ( * ) AS col1, ( - 13 )
----
50
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT DISTINCT COUNT( + + 64 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT COUNT ( + + 64 ) col0
----
1

query II rowsort
SELECT 75 * + 4 AS col2, 13 - - 94 AS col2
----
300
107

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT 79 * + + 43 - ( + ( + + COUNT( * ) ) ) AS col2
----
3396

skipif mysql # not compatible
query I rowsort label-1458
SELECT 79 * + + 43 - ( + ( + + COUNT ( * ) ) ) AS col2
----
3396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1459
SELECT MIN( 40 ) DIV - + 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1459
SELECT MIN ( 40 ) / - + 41 AS col2
----
0

query I rowsort
SELECT DISTINCT 46 * - COALESCE ( - 44, - 3 ) AS col0
----
2024

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT COUNT( DISTINCT + 17 ) + 19 + 59
----
79

skipif mysql # not compatible
query I rowsort label-1461
SELECT COUNT ( DISTINCT + 17 ) + 19 + 59
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT MIN( ALL + 42 ) col2
----
42

skipif mysql # not compatible
query I rowsort label-1463
SELECT MIN ( ALL + 42 ) col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT - 36 * COUNT( * ) + 74 * + - 4
----
-332

skipif mysql # not compatible
query I rowsort label-1464
SELECT - 36 * COUNT ( * ) + 74 * + - 4
----
-332

query I rowsort
SELECT ALL + + 65 * - 60 + - + 36
----
-3936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1466
SELECT + - NULLIF ( - - CAST( NULL AS SIGNED ), + - 29 ) / - 65 * - + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-1466
SELECT + - NULLIF ( - - CAST ( NULL AS INTEGER ), + - 29 ) / - 65 * - + 15
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1467
SELECT + ( 11 ) DIV - - 94 + + - 35 - - + COUNT( * ) * - + COUNT( ALL - + 10 ) * - - 18 DIV COUNT( * ) + + 75 - - + 58 - + 30 + - 19 * + + 37 - + + 13 * - 0 DIV - COUNT( * ) * + 9
----
-653

skipif mysql # not compatible
query I rowsort label-1467
SELECT + ( 11 ) / - - 94 + + - 35 - - + COUNT ( * ) * - + COUNT ( ALL - + 10 ) * - - 18 / COUNT ( * ) + + 75 - - + 58 - + 30 + - 19 * + + 37 - + + 13 * - 0 / - COUNT ( * ) * + 9
----
-653

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1469
SELECT ALL + 52 * ( - + 63 ) * 39 + ( - 79 ) + + + NULLIF ( + MAX( DISTINCT - 57 ), + + CAST( NULL AS SIGNED ) )
----
-127900

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL + 52 * ( - + 63 ) * 39 + ( - 79 ) + + + NULLIF ( + MAX ( DISTINCT - 57 ), + + CAST ( NULL AS INTEGER ) )
----
-127900

query I rowsort
SELECT ALL + COALESCE ( 76, - + 4, - + 43 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT ALL + - 46 * - NULLIF ( 75, + 25 * ( + MIN( 47 ) ) + 34 - - + 77 ) + - + 77 + + + 92 col0
----
3465

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL + - 46 * - NULLIF ( 75, + 25 * ( + MIN ( 47 ) ) + 34 - - + 77 ) + - + 77 + + + 92 col0
----
3465

query I rowsort
SELECT + 64 * - 35 * 46 + - - 21 + + 99 * 84 + + 79 AS col2
----
-94624

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT - 25 * - SUM( DISTINCT - + 63 )
----
-1575

skipif mysql # not compatible
query I rowsort label-1473
SELECT - 25 * - SUM ( DISTINCT - + 63 )
----
-1575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1474
SELECT DISTINCT - + 81 * - CAST( - 35 AS SIGNED ) * - 83 + + 22 * - 34 AS col2
----
234557

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT - + 81 * - CAST ( - 35 AS INTEGER ) * - 83 + + 22 * - 34 AS col2
----
234557

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT - + 37 * ( - ( 24 ) ) - - - COUNT( * ) + + 88
----
975

skipif mysql # not compatible
query I rowsort label-1475
SELECT - + 37 * ( - ( 24 ) ) - - - COUNT ( * ) + + 88
----
975

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

skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT + COUNT ( * ) - - - 77 AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1477
SELECT 4 * + + NULLIF ( - CAST( NULL AS SIGNED ), + + ( + COUNT( * ) ) ) + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1477
SELECT 4 * + + NULLIF ( - CAST ( NULL AS INTEGER ), + + ( + COUNT ( * ) ) ) + 52
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1478
SELECT ALL + + CAST( + 21 AS SIGNED ) * 36 AS col0
----
756

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL + + CAST ( + 21 AS INTEGER ) * 36 AS col0
----
756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1479
SELECT + CAST( 60 AS SIGNED ) + 66 AS col0
----
126

skipif mysql # not compatible
query I rowsort label-1479
SELECT + CAST ( 60 AS INTEGER ) + 66 AS col0
----
126

query I rowsort
SELECT + 71 + + - NULLIF ( + - 10, - NULLIF ( 91, + 90 ) )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1481
SELECT + 83 DIV + - 22
----
-3

skipif mysql # not compatible
query I rowsort label-1481
SELECT + 83 / + - 22
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT - MIN( DISTINCT + - 17 ) * + 8 * - + 56 AS col0
----
-7616

skipif mysql # not compatible
query I rowsort label-1482
SELECT - MIN ( DISTINCT + - 17 ) * + 8 * - + 56 AS col0
----
-7616

query I rowsort
SELECT - 0 + + - 53
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-1484
SELECT ALL + 10 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL + 10 / - 72
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1486
SELECT DISTINCT SUM( - ( + - CAST( ( + + 35 ) AS SIGNED ) ) ) AS col2, - 93 AS col1
----
35
-93

skipif mysql # not compatible
query II rowsort label-1486
SELECT DISTINCT SUM ( - ( + - CAST ( ( + + 35 ) AS INTEGER ) ) ) AS col2, - 93 AS col1
----
35
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT ALL + 83 * + - 80 * - NULLIF ( - COUNT( * ), - + 69 + + - COUNT( * ) + + COUNT( * ) * - 79 - + COUNT( ALL - 30 ) - - 70 * - - 45 - 9 )
----
-6640

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL + 83 * + - 80 * - NULLIF ( - COUNT ( * ), - + 69 + + - COUNT ( * ) + + COUNT ( * ) * - 79 - + COUNT ( ALL - 30 ) - - 70 * - - 45 - 9 )
----
-6640

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT - MIN( ALL 52 ) + 75 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-1488
SELECT - MIN ( ALL 52 ) + 75 AS col2
----
23

query I rowsort
SELECT - 46 + + 0 - 15 * - 22
----
284

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT ALL 58 * 18 * + COUNT( * )
----
1044

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL 58 * 18 * + COUNT ( * )
----
1044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1491
SELECT DISTINCT NULLIF ( CAST( NULL AS SIGNED ), 11 + - - ( + 70 ) - - 68 * - COUNT( * ) * + - 35 * 62 * + + ( - ( + ( 21 ) ) ) * - 99 + + 70 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT NULLIF ( CAST ( NULL AS INTEGER ), 11 + - - ( + 70 ) - - 68 * - COUNT ( * ) * + - 35 * 62 * + + ( - ( + ( 21 ) ) ) * - 99 + + 70 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 84 * - - 45 AS col0
----
3780

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT - MIN( DISTINCT + ( - 39 ) ) * - 41 * 76 + + 88 + - + 60 * - - 3 + + 79
----
-121537

skipif mysql # not compatible
query I rowsort label-1494
SELECT - MIN ( DISTINCT + ( - 39 ) ) * - 41 * 76 + + 88 + - + 60 * - - 3 + + 79
----
-121537

onlyif mysql # DIV for integer division: 
query I rowsort label-1495
SELECT ALL - 20 + + 17 DIV + - 65
----
-20

skipif mysql # not compatible
query I rowsort label-1495
SELECT ALL - 20 + + 17 / + - 65
----
-20

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT + COUNT( * ) - + - 91 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-1497
SELECT + COUNT ( * ) - + - 91 AS col1
----
92

query I rowsort
SELECT + 93 - + 51 AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1499
SELECT DISTINCT 46, 18 + + + CAST( 43 AS SIGNED ) - + + 48 AS col2
----
46
13

skipif mysql # not compatible
query II rowsort label-1499
SELECT DISTINCT 46, 18 + + + CAST ( 43 AS INTEGER ) - + + 48 AS col2
----
46
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1500
SELECT - MIN( + 35 ) * + CAST( + 58 AS SIGNED )
----
-2030

skipif mysql # not compatible
query I rowsort label-1500
SELECT - MIN ( + 35 ) * + CAST ( + 58 AS INTEGER )
----
-2030

query I rowsort
SELECT ALL - 21 + + + 77
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1502
SELECT DISTINCT + ( + 60 ) DIV COALESCE ( - COUNT( * ), + COUNT( * ) + - + 15, + 45 ) + 7 * - 92 + - - MAX( DISTINCT - 35 ) AS col2
----
-739

skipif mysql # not compatible
query I rowsort label-1502
SELECT DISTINCT + ( + 60 ) / COALESCE ( - COUNT ( * ), + COUNT ( * ) + - + 15, + 45 ) + 7 * - 92 + - - MAX ( DISTINCT - 35 ) AS col2
----
-739

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1503
SELECT ALL + 57 DIV + + 19 DIV + + COUNT( * ) + - - 51
----
54

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL + 57 / + + 19 / + + COUNT ( * ) + - - 51
----
54

query I rowsort
SELECT - 57 + + 86 * 40 + + 43 AS col0
----
3426

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

query I rowsort
SELECT - + 27 * + 40 + 11 * - + 46 AS col2
----
-1586

query II rowsort
SELECT 6 col2, - 7
----
6
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT ALL 20 * + 23 + CASE + 15 WHEN - - 47 THEN ( - 14 ) * + - 53 + - 99 * - 12 WHEN + 18 THEN NULL ELSE NULL END + 45 * + + 54 / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL 20 * + 23 + CASE + 15 WHEN - - 47 THEN ( - 14 ) * + - 53 + - 99 * - 12 WHEN + 18 THEN NULL ELSE NULL END + 45 * + + 54 / + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL + + 69 * - 64 + 61 AS col2
----
-4355

query I rowsort
SELECT - 30 * - 22
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT + COUNT( * ) + 77 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-1511
SELECT + COUNT ( * ) + 77 AS col1
----
78

query I rowsort
SELECT ALL 70 * 64 AS col2
----
4480

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT - NULLIF ( COUNT( * ), + + 41 ) + + - 17
----
-18

skipif mysql # not compatible
query I rowsort label-1513
SELECT - NULLIF ( COUNT ( * ), + + 41 ) + + - 17
----
-18

query I rowsort
SELECT + 14 + 57 AS col0
----
71

query II rowsort
SELECT ALL + - 83 AS col1, 7 * 26 * 80 * + 76 AS col0
----
-83
1106560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1516
SELECT DISTINCT 88 * - CASE + 32 WHEN 69 THEN + - 29 + - 31 + - ( - 61 ) * 84 - + - 53 + + MAX( DISTINCT - CASE + 35 WHEN + - NULLIF ( + + CAST( - - 3 AS SIGNED ), + CAST( 72 AS SIGNED ) ) THEN + 34 END ) + 44 * 1 + - 67 END * + - 5 * + - 70 / + - MIN( DISTINCT 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1516
SELECT DISTINCT 88 * - CASE + 32 WHEN 69 THEN + - 29 + - 31 + - ( - 61 ) * 84 - + - 53 + + MAX ( DISTINCT - CASE + 35 WHEN + - NULLIF ( + + CAST ( - - 3 AS INTEGER ), + CAST ( 72 AS INTEGER ) ) THEN + 34 END ) + 44 * 1 + - 67 END * + - 5 * + - 70 / + - MIN ( DISTINCT 87 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1517
SELECT DISTINCT - 90 * - + 66 + - 67 * - - CASE - 47 WHEN + 91 * - COUNT( * ) * - ( + ( + 49 ) ) / - 94 + + - AVG ( DISTINCT 95 ) - - - 28 + - 89 * + 55 * + + 4 * - 39 / + - 45 + 35 THEN + 89 WHEN - + 0 + - 12 THEN - ( NULLIF ( + - SUM( DISTINCT 52 ), - 90 ) ) END - 2 / - + COALESCE ( 16, - 36 ) * - CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT - 90 * - + 66 + - 67 * - - CASE - 47 WHEN + 91 * - COUNT ( * ) * - ( + ( + 49 ) ) / - 94 + + - AVG ( DISTINCT 95 ) - - - 28 + - 89 * + 55 * + + 4 * - 39 / + - 45 + 35 THEN + 89 WHEN - + 0 + - 12 THEN - ( NULLIF ( + - SUM ( DISTINCT 52 ), - 90 ) ) END - 2 / - + COALESCE ( 16, - 36 ) * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1518
SELECT ALL - 61 * 50 + 58 - - 5 * COALESCE ( - COUNT( * ), + ( + + 12 ) / + + 51 ) * + 7 * - 68 + - 97 / - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL - 61 * 50 + 58 - - 5 * COALESCE ( - COUNT ( * ), + ( + + 12 ) / + + 51 ) * + 7 * - 68 + - 97 / - CAST ( NULL AS REAL ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1520
SELECT + + NULLIF ( - CAST( - 84 AS SIGNED ), - NULLIF ( - - 15, - 68 * SUM( DISTINCT - 75 ) ) * + - COUNT( * ) ) DIV + 98 - + 49 DIV + 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1520
SELECT + + NULLIF ( - CAST ( - 84 AS INTEGER ), - NULLIF ( - - 15, - 68 * SUM ( DISTINCT - 75 ) ) * + - COUNT ( * ) ) / + 98 - + 49 / + 88 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1521
SELECT ALL + - 32 DIV - SUM( - 26 ) + - + 85 + - 33
----
-119

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL + - 32 / - SUM ( - 26 ) + - + 85 + - 33
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT + 3 + - 70 + - 35 - COUNT( * )
----
-103

skipif mysql # not compatible
query I rowsort label-1522
SELECT + 3 + - 70 + - 35 - COUNT ( * )
----
-103

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1524
SELECT DISTINCT + + CAST( - 8 AS SIGNED ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT + + CAST ( - 8 AS INTEGER ) AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1525
SELECT 50 * CAST( - 66 AS SIGNED ) + - + 15 * - + 60 + + 79 * - 43 * - - 51 + - ( - 70 ) * 20 DIV - 7
----
-175847

skipif mysql # not compatible
query I rowsort label-1525
SELECT 50 * CAST ( - 66 AS INTEGER ) + - + 15 * - + 60 + + 79 * - 43 * - - 51 + - ( - 70 ) * 20 / - 7
----
-175847

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1527
SELECT ALL + 15 * - + 89, - COUNT( * ) DIV + SUM( ALL - 90 ) + - 60 col0
----
-1335
-60

skipif mysql # not compatible
query II rowsort label-1527
SELECT ALL + 15 * - + 89, - COUNT ( * ) / + SUM ( ALL - 90 ) + - 60 col0
----
-1335
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT + SUM( ALL 4 ) + 34 + + SUM( ALL + - 69 )
----
-31

skipif mysql # not compatible
query I rowsort label-1528
SELECT + SUM ( ALL 4 ) + 34 + + SUM ( ALL + - 69 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT ALL ( - + 28 ) * 92 + COUNT( * ) + - - 26 * + + 39
----
-1561

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL ( - + 28 ) * 92 + COUNT ( * ) + - - 26 * + + 39
----
-1561

query I rowsort
SELECT - COALESCE ( - 92, 28 ) + - - 93 + 4
----
189

onlyif mysql # aggregate syntax: 
query II rowsort label-1531
SELECT ALL 29 + - COALESCE ( NULLIF ( - - 22, - 53 * - + 27 + - 92 ), - MIN( - 14 ) ) AS col2, 39
----
7
39

skipif mysql # not compatible
query II rowsort label-1531
SELECT ALL 29 + - COALESCE ( NULLIF ( - - 22, - 53 * - + 27 + - 92 ), - MIN ( - 14 ) ) AS col2, 39
----
7
39

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

skipif mysql # not compatible
query II rowsort label-1532
SELECT - CAST ( NULL AS INTEGER ), + 31 AS col2
----
NULL
31

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1534
SELECT 97, + COUNT( * ) * + ( - - CASE + - ( + 40 ) WHEN - ( - 82 ) THEN 60 END ) + + 84 * ( + 14 ) AS col1
----
97
NULL

skipif mysql # not compatible
query II rowsort label-1534
SELECT 97, + COUNT ( * ) * + ( - - CASE + - ( + 40 ) WHEN - ( - 82 ) THEN 60 END ) + + 84 * ( + 14 ) AS col1
----
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL + SUM( DISTINCT - 26 ) + + + 86 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL + SUM ( DISTINCT - 26 ) + + + 86 AS col2
----
60

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

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

query I rowsort
SELECT ALL CASE - 4 WHEN 58 THEN NULL ELSE - 83 END col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT ALL - SUM( 23 ) + - 89 AS col1
----
-112

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL - SUM ( 23 ) + - 89 AS col1
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-1539
SELECT DISTINCT + 35 + - 78 + MAX( - - CASE ( + + 35 ) WHEN - 52 THEN NULL WHEN 7 - - 23 THEN ( + - 56 ) / - 51 END ) AS col1, - 55
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-1539
SELECT DISTINCT + 35 + - 78 + MAX ( - - CASE ( + + 35 ) WHEN - 52 THEN NULL WHEN 7 - - 23 THEN ( + - 56 ) / - 51 END ) AS col1, - 55
----
NULL
-55

query II rowsort
SELECT ALL 50 col0, + 5 col1
----
50
5

onlyif mysql # DIV for integer division: 
query II rowsort label-1541
SELECT 2, - 80 DIV - ( 38 ) AS col0
----
2
2

skipif mysql # not compatible
query II rowsort label-1541
SELECT 2, - 80 / - ( 38 ) AS col0
----
2
2

query I rowsort
SELECT ALL + 58 + - - 4
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1543
SELECT 39 AS col1, 24 DIV + CAST( 98 AS SIGNED ) * - ( + COUNT( * ) ) - + 6 + - 41 * + 79 + - - 44 AS col1
----
39
-3201

skipif mysql # not compatible
query II rowsort label-1543
SELECT 39 AS col1, 24 / + CAST ( 98 AS INTEGER ) * - ( + COUNT ( * ) ) - + 6 + - 41 * + 79 + - - 44 AS col1
----
39
-3201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1544
SELECT - 84 DIV COUNT( * ) + + - 86 col0
----
-170

skipif mysql # not compatible
query I rowsort label-1544
SELECT - 84 / COUNT ( * ) + + - 86 col0
----
-170

onlyif mysql # DIV for integer division: 
query II rowsort label-1545
SELECT ALL - 90 AS col0, 83 DIV 33
----
-90
2

skipif mysql # not compatible
query II rowsort label-1545
SELECT ALL - 90 AS col0, 83 / 33
----
-90
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT ALL + 8 * - MIN( - 64 ) * + - 30 - + 85 + 42
----
-15403

skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL + 8 * - MIN ( - 64 ) * + - 30 - + 85 + 42
----
-15403

query I rowsort
SELECT 49 + - 19
----
30

query II rowsort
SELECT 76 AS col2, - NULLIF ( 82, 20 + - 76 ) col2
----
76
-82

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

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

query I rowsort
SELECT ALL - ( - - 45 ) - - 19 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT ALL - MAX( 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-1551
SELECT ALL - MAX ( 89 ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT COUNT( * ) - - 97 * - 41 + 6 * 55
----
-3646

skipif mysql # not compatible
query I rowsort label-1552
SELECT COUNT ( * ) - - 97 * - 41 + 6 * 55
----
-3646

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT - - 21 * + COALESCE ( NULLIF ( + - 69, - 48 / - - 25 ), 97 + - 43, - 24, MAX( DISTINCT - - 17 ) * + 54 ) + - - 54
----
-1395

skipif mysql # not compatible
query I rowsort label-1553
SELECT - - 21 * + COALESCE ( NULLIF ( + - 69, - 48 / - - 25 ), 97 + - 43, - 24, MAX ( DISTINCT - - 17 ) * + 54 ) + - - 54
----
-1395

query II rowsort
SELECT 63, - 89 + + 30 * + 76 AS col2
----
63
2191

query I rowsort
SELECT + 17 * + 47 + 93 col0
----
892

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

query I rowsort
SELECT 21 * - 77 - + 38 + - - ( + - 80 ) AS col1
----
-1735

query I rowsort
SELECT 29 * - 49 + 54 + + 37 col0
----
-1330

query I rowsort
SELECT ALL 53 + - + ( 68 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT COUNT( * ) + - 84 col0
----
-83

skipif mysql # not compatible
query I rowsort label-1560
SELECT COUNT ( * ) + - 84 col0
----
-83

query I rowsort
SELECT 1 * - - 57 * - - ( 28 ) AS col2
----
1596

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1563
SELECT CAST( 64 AS SIGNED ) + - 11 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1563
SELECT CAST ( 64 AS INTEGER ) + - 11 AS col0
----
53

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

skipif mysql # not compatible
query I rowsort label-1564
SELECT DISTINCT + NULLIF ( + COUNT ( * ), 46 ) * 69
----
69

query I rowsort
SELECT ALL 39 + - 16 AS col1
----
23

query II rowsort
SELECT 10 + 56 AS col0, 37 AS col0
----
66
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT 81 + - - MAX( ALL 38 )
----
119

skipif mysql # not compatible
query I rowsort label-1567
SELECT 81 + - - MAX ( ALL 38 )
----
119

query I rowsort
SELECT 16 * + 92 col2
----
1472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1569
SELECT COALESCE ( - COUNT( * ), - 17 + CAST( - NULLIF ( - CASE - 48 WHEN + - 30 THEN 19 END, - 43 + + 25 * CAST( NULL AS SIGNED ) ) AS SIGNED ) DIV 28 - + 2 - 71 ) - + SUM( DISTINCT + 97 ) - 1 * - 39
----
-59

skipif mysql # not compatible
query I rowsort label-1569
SELECT COALESCE ( - COUNT ( * ), - 17 + CAST ( - NULLIF ( - CASE - 48 WHEN + - 30 THEN 19 END, - 43 + + 25 * CAST ( NULL AS INTEGER ) ) AS INTEGER ) / 28 - + 2 - 71 ) - + SUM ( DISTINCT + 97 ) - 1 * - 39
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-1570
SELECT + 12 + - + 42, + 86 DIV + 21 AS col1
----
-30
4

skipif mysql # not compatible
query II rowsort label-1570
SELECT + 12 + - + 42, + 86 / + 21 AS col1
----
-30
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT + 82 + - COUNT( * ) + + + 24 * + + 36 AS col1
----
945

skipif mysql # not compatible
query I rowsort label-1571
SELECT + 82 + - COUNT ( * ) + + + 24 * + + 36 AS col1
----
945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1572
SELECT - 21 * CASE 70 WHEN - - 74 THEN + - MIN( - 87 ) WHEN - 72 * - CAST( - ( - - CASE WHEN - 42 = 11 THEN + - NULLIF ( 90, - + COUNT( * ) * - 47 * - CAST( - + CASE - + 96 WHEN - 32 THEN - 70 * + CAST( NULL AS SIGNED ) + + 57 ELSE 90 + - 85 END AS SIGNED ) ) ELSE NULL END ) AS SIGNED ) THEN ( + 1 ) * - 32 * - COUNT( * ) + 70 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1572
SELECT - 21 * CASE 70 WHEN - - 74 THEN + - MIN ( - 87 ) WHEN - 72 * - CAST ( - ( - - CASE WHEN - 42 = 11 THEN + - NULLIF ( 90, - + COUNT ( * ) * - 47 * - CAST ( - + CASE - + 96 WHEN - 32 THEN - 70 * + CAST ( NULL AS INTEGER ) + + 57 ELSE 90 + - 85 END AS INTEGER ) ) ELSE NULL END ) AS INTEGER ) THEN ( + 1 ) * - 32 * - COUNT ( * ) + 70 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1573
SELECT DISTINCT - - 15 / + + 54 / + MIN( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1573
SELECT DISTINCT - - 15 / + + 54 / + MIN ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1574
SELECT - - 3 DIV - ( - 76 ) + - + 43 - + - 27 DIV - - ( + 86 ) * - 46 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-1574
SELECT - - 3 / - ( - 76 ) + - + 43 - + - 27 / - - ( + 86 ) * - 46 AS col2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1575
SELECT - 49 + - 0 + - 84 * - + 15 * COUNT( * ) * + CAST( + 85 AS SIGNED ) + - 26 * 97 - + 9 + 94 + 96 * COUNT( * )
----
104710

skipif mysql # not compatible
query I rowsort label-1575
SELECT - 49 + - 0 + - 84 * - + 15 * COUNT ( * ) * + CAST ( + 85 AS INTEGER ) + - 26 * 97 - + 9 + 94 + 96 * COUNT ( * )
----
104710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1576
SELECT + COALESCE ( + 75, ( - - NULLIF ( - 76, - 1 * + 45 ) ) * - NULLIF ( - - 86, + - 98 ) ) + - 28 - COUNT( * ) + - 3 DIV + 98 - + 31 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1576
SELECT + COALESCE ( + 75, ( - - NULLIF ( - 76, - 1 * + 45 ) ) * - NULLIF ( - - 86, + - 98 ) ) + - 28 - COUNT ( * ) + - 3 / + 98 - + 31 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT + COUNT( * ) + + 83 * 90 AS col1
----
7471

skipif mysql # not compatible
query I rowsort label-1577
SELECT + COUNT ( * ) + + 83 * 90 AS col1
----
7471

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT 66 + + 27 + 31 * + - COUNT( - 75 ) * + 25 - 11 AS col0
----
-693

skipif mysql # not compatible
query I rowsort label-1578
SELECT 66 + + 27 + 31 * + - COUNT ( - 75 ) * + 25 - 11 AS col0
----
-693

onlyif mysql # aggregate syntax: 
query III rowsort label-1579
SELECT ALL + 52 + - 45 + - - COUNT( * ) AS col2, - 25 col0, + 94
----
8
-25
94

skipif mysql # not compatible
query III rowsort label-1579
SELECT ALL + 52 + - 45 + - - COUNT ( * ) AS col2, - 25 col0, + 94
----
8
-25
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1580
SELECT 75 * CAST( - + ( + 69 ) AS SIGNED ) AS col0
----
-5175

skipif mysql # not compatible
query I rowsort label-1580
SELECT 75 * CAST ( - + ( + 69 ) AS INTEGER ) AS col0
----
-5175

onlyif mysql # aggregate syntax: 
query II rowsort label-1581
SELECT 46 * CASE 84 WHEN 97 THEN NULL WHEN + 79 THEN + MIN( + 28 ) + + COUNT( * ) ELSE NULL END AS col1, - 67
----
NULL
-67

skipif mysql # not compatible
query II rowsort label-1581
SELECT 46 * CASE 84 WHEN 97 THEN NULL WHEN + 79 THEN + MIN ( + 28 ) + + COUNT ( * ) ELSE NULL END AS col1, - 67
----
NULL
-67

query I rowsort
SELECT ALL + 25 + - 60 AS col2
----
-35

query II rowsort
SELECT 27 AS col2, 28 * + 88 col1
----
27
2464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1584
SELECT + 1 * + + 82 + - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-1584
SELECT + 1 * + + 82 + - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
81

query II rowsort
SELECT 65, ( - 70 ) AS col2
----
65
-70

query II rowsort
SELECT 35, + 45 col0
----
35
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT 89 * - CASE + - 77 WHEN MAX( - 1 ) THEN NULL WHEN 95 + - 50 THEN NULL ELSE 52 END + + + 17 + - 62 * + + 28 + 30 AS col0
----
-6317

skipif mysql # not compatible
query I rowsort label-1587
SELECT 89 * - CASE + - 77 WHEN MAX ( - 1 ) THEN NULL WHEN 95 + - 50 THEN NULL ELSE 52 END + + + 17 + - 62 * + + 28 + 30 AS col0
----
-6317

query I rowsort
SELECT ALL 99 + 5 AS col1
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-1589
SELECT DISTINCT - 80 DIV - 65 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT - 80 / - 65 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT ALL COUNT( + 10 ) + - 2 * - 98
----
197

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL COUNT ( + 10 ) + - 2 * - 98
----
197

query II rowsort
SELECT - 80 AS col1, - 95 + 1
----
-80
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT ALL - 62 * + COUNT( * ) * - 60
----
3720

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL - 62 * + COUNT ( * ) * - 60
----
3720

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT DISTINCT + 7 + COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT + 7 + COUNT ( * ) AS col1
----
8

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1595
SELECT 65 AS col0, 13 - - CAST( + COALESCE ( - 6, - 87 ) AS SIGNED ) + - 35 AS col0
----
65
-28

skipif mysql # not compatible
query II rowsort label-1595
SELECT 65 AS col0, 13 - - CAST ( + COALESCE ( - 6, - 87 ) AS INTEGER ) + - 35 AS col0
----
65
-28

query II rowsort
SELECT DISTINCT 42, + 70 AS col0
----
42
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1597
SELECT - COUNT( * ) DIV + - 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1597
SELECT - COUNT ( * ) / + - 36 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT DISTINCT 33 DIV 3
----
11

skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT 33 / 3
----
11

query II rowsort
SELECT ALL 99 col2, - 96 AS col1
----
99
-96

query II rowsort
SELECT + 4 + 34 + + + 79, 7 AS col2
----
117
7

query I rowsort
SELECT + 66 + - - 33
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT ALL ( MIN( + 25 ) ) - + 69 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL ( MIN ( + 25 ) ) - + 69 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT COALESCE ( + + 63, + MAX( + ( - 13 ) ) * + 11 + - 27 )
----
63

skipif mysql # not compatible
query I rowsort label-1603
SELECT COALESCE ( + + 63, + MAX ( + ( - 13 ) ) * + 11 + - 27 )
----
63

query I rowsort
SELECT ALL 50 * - 16
----
-800

query I rowsort
SELECT ALL + 15 * 67 - + 55 AS col1
----
950

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

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

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

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

query I rowsort
SELECT + 22 * - 55
----
-1210

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1609
SELECT + - 85 + + 72 * CAST( NULL AS SIGNED ) AS col0, 2, - 81 AS col2
----
NULL
2
-81

skipif mysql # not compatible
query III rowsort label-1609
SELECT + - 85 + + 72 * CAST ( NULL AS INTEGER ) AS col0, 2, - 81 AS col2
----
NULL
2
-81

query II rowsort
SELECT ALL + 68 AS col2, - 61
----
68
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1611
SELECT ALL - - CAST( NULL AS SIGNED ) / - 51 * - - 66 * - - 14 + - - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL - - CAST ( NULL AS INTEGER ) / - 51 * - - 66 * - - 14 + - - 10
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1612
SELECT ALL CAST( NULL AS SIGNED ) * - - NULLIF ( 65, - SUM( DISTINCT CAST( - - 92 AS SIGNED ) ) ) + - 70 + 25 - - CAST( - 86 AS SIGNED ) * 35 + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL CAST ( NULL AS INTEGER ) * - - NULLIF ( 65, - SUM ( DISTINCT CAST ( - - 92 AS INTEGER ) ) ) + - 70 + 25 - - CAST ( - 86 AS INTEGER ) * 35 + - 94
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1613
SELECT DISTINCT + 91 * + 4 + - 37 * 26 + + + ( + 33 ) - - - 29 + + - ( 59 ) DIV 73 + - SUM( - 61 ) AS col2
----
-533

skipif mysql # not compatible
query I rowsort label-1613
SELECT DISTINCT + 91 * + 4 + - 37 * 26 + + + ( + 33 ) - - - 29 + + - ( 59 ) / 73 + - SUM ( - 61 ) AS col2
----
-533

query I rowsort
SELECT - + 2 * 58 AS col0
----
-116

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT ALL 60 * 45 + + + 23 + 48 - + COUNT( * ) - - + 89 * - 99 + + 39 * + 80 * - 8 + + 97 - 92 col0
----
-30996

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL 60 * 45 + + + 23 + 48 - + COUNT ( * ) - - + 89 * - 99 + + 39 * + 80 * - 8 + + 97 - 92 col0
----
-30996

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1617
SELECT CASE + 31 WHEN + + NULLIF ( + 16, - - 7 ) THEN CASE + - 11 WHEN - - 42 * - CAST( NULL AS DECIMAL ) THEN - 22 + - 30 - 68 ELSE NULL END ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1617
SELECT CASE + 31 WHEN + + NULLIF ( + 16, - - 7 ) THEN CASE + - 11 WHEN - - 42 * - CAST ( NULL AS REAL ) THEN - 22 + - 30 - 68 ELSE NULL END ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1618
SELECT NULLIF ( COALESCE ( + 17, + 95 ), + COALESCE ( + CAST( + 98 AS SIGNED ), + + 56 ) + COUNT( * ) * - CASE 62 WHEN - + 10 + - 72 + + - 74 THEN + - ( - 2 ) END + + - CAST( - COUNT( * ) AS SIGNED ) )
----
17

skipif mysql # not compatible
query I rowsort label-1618
SELECT NULLIF ( COALESCE ( + 17, + 95 ), + COALESCE ( + CAST ( + 98 AS INTEGER ), + + 56 ) + COUNT ( * ) * - CASE 62 WHEN - + 10 + - 72 + + - 74 THEN + - ( - 2 ) END + + - CAST ( - COUNT ( * ) AS INTEGER ) )
----
17

query I rowsort
SELECT ALL - 93 * 24
----
-2232

query II rowsort
SELECT + 12 * - 91 AS col1, - 75 AS col2
----
-1092
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1621
SELECT + CASE + 86 WHEN 28 + 61 THEN 4 * - 79 + - ( - + 32 ) + 40 END * - CAST( NULL AS SIGNED ) * 87 - CAST( 1 AS SIGNED ) + COUNT( DISTINCT - - 33 ) / - 11 - - 79 / - + CAST( - ( + COALESCE ( + - 68, - + CAST( NULL AS SIGNED ), + 35 ) ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1621
SELECT + CASE + 86 WHEN 28 + 61 THEN 4 * - 79 + - ( - + 32 ) + 40 END * - CAST ( NULL AS INTEGER ) * 87 - CAST ( 1 AS INTEGER ) + COUNT ( DISTINCT - - 33 ) / - 11 - - 79 / - + CAST ( - ( + COALESCE ( + - 68, - + CAST ( NULL AS INTEGER ), + 35 ) ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1622
SELECT DISTINCT 47 * - - ( + 98 ) + 39 - + + COUNT( * ) * + - 98 * + 43 * - 85 DIV COUNT( * ) + + 69
----
-353476

skipif mysql # not compatible
query I rowsort label-1622
SELECT DISTINCT 47 * - - ( + 98 ) + 39 - + + COUNT ( * ) * + - 98 * + 43 * - 85 / COUNT ( * ) + + 69
----
-353476

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT NULLIF ( + 34, + 69 / + SUM( ALL + 4 ) ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1623
SELECT NULLIF ( + 34, + 69 / + SUM ( ALL + 4 ) ) AS col0
----
34

query II rowsort
SELECT ALL 22 * 76 + 27 - - 22 AS col0, + 94
----
1721
94

onlyif mysql # aggregate syntax: 
query II rowsort label-1625
SELECT ALL + ( - COALESCE ( 46, - - COUNT( * ) ) ) col1, + CASE + + 15 WHEN + 40 THEN - CASE - - 94 WHEN + 13 THEN + 45 ELSE NULL END WHEN - 57 * 95 THEN + - 71 ELSE + + 9 END * - 83
----
-46
-747

skipif mysql # not compatible
query II rowsort label-1625
SELECT ALL + ( - COALESCE ( 46, - - COUNT ( * ) ) ) col1, + CASE + + 15 WHEN + 40 THEN - CASE - - 94 WHEN + 13 THEN + 45 ELSE NULL END WHEN - 57 * 95 THEN + - 71 ELSE + + 9 END * - 83
----
-46
-747

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT ALL 84 * - COUNT( * ) * - + 21 - - CASE + 55 WHEN 22 + + 63 THEN + AVG ( ALL 36 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL 84 * - COUNT ( * ) * - + 21 - - CASE + 55 WHEN 22 + + 63 THEN + AVG ( ALL 36 ) ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT + 86 * + + 52
----
4472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1629
SELECT ALL - NULLIF ( - 46, - - 79 ) * - 21 * + - COALESCE ( - 46, - - CAST( NULL AS SIGNED ) )
----
-44436

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL - NULLIF ( - 46, - - 79 ) * - 21 * + - COALESCE ( - 46, - - CAST ( NULL AS INTEGER ) )
----
-44436

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT - COUNT( - 31 ) + - COUNT( 24 ) + - - 24 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-1630
SELECT - COUNT ( - 31 ) + - COUNT ( 24 ) + - - 24 AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1631
SELECT MIN( 98 ) AS col0, CAST( NULL AS SIGNED ) AS col1
----
98
NULL

skipif mysql # not compatible
query II rowsort label-1631
SELECT MIN ( 98 ) AS col0, CAST ( NULL AS INTEGER ) AS col1
----
98
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1632
SELECT - CASE CAST( + 81 AS SIGNED ) WHEN + COUNT( * ) THEN 62 ELSE ( - 99 ) * 64 * - + 56 END AS col1, + 9 AS col1
----
-354816
9

skipif mysql # not compatible
query II rowsort label-1632
SELECT - CASE CAST ( + 81 AS INTEGER ) WHEN + COUNT ( * ) THEN 62 ELSE ( - 99 ) * 64 * - + 56 END AS col1, + 9 AS col1
----
-354816
9

query I rowsort
SELECT - 74 + + 6 + - 7 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-1634
SELECT ALL COUNT( * ) * 62 AS col0, - 69
----
62
-69

skipif mysql # not compatible
query II rowsort label-1634
SELECT ALL COUNT ( * ) * 62 AS col0, - 69
----
62
-69

query I rowsort
SELECT ALL + - 81 * 3 AS col0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1636
SELECT ALL CASE - 41 WHEN 98 THEN - 43 ELSE - CAST( NULL AS SIGNED ) - - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL CASE - 41 WHEN 98 THEN - 43 ELSE - CAST ( NULL AS INTEGER ) - - 10 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1637
SELECT + 40 DIV 9 * + 23 * - + 87
----
-8004

skipif mysql # not compatible
query I rowsort label-1637
SELECT + 40 / 9 * + 23 * - + 87
----
-8004

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT - SUM( DISTINCT - - NULLIF ( + 68, - - 72 ) ) + + 50 col2
----
-18

skipif mysql # not compatible
query I rowsort label-1638
SELECT - SUM ( DISTINCT - - NULLIF ( + 68, - - 72 ) ) + + 50 col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1639
SELECT + + 72 DIV + - 7 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-1639
SELECT + + 72 / + - 7 AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1640
SELECT + COUNT( * ) * + NULLIF ( + CAST( NULL AS SIGNED ), - + 33 * 2 * 96 * - + 86 + 47 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1640
SELECT + COUNT ( * ) * + NULLIF ( + CAST ( NULL AS INTEGER ), - + 33 * 2 * 96 * - + 86 + 47 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1642
SELECT ALL + COALESCE ( - 92, - ( ( + - 61 ) ), + 17 * + 83 - + COALESCE ( - 73, - MAX( + 11 ) DIV - - 71 + 82 + + - COUNT( * ) ) + + 89 ), - 99 AS col1
----
-92
-99

skipif mysql # not compatible
query II rowsort label-1642
SELECT ALL + COALESCE ( - 92, - ( ( + - 61 ) ), + 17 * + 83 - + COALESCE ( - 73, - MAX ( + 11 ) / - - 71 + 82 + + - COUNT ( * ) ) + + 89 ), - 99 AS col1
----
-92
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1643
SELECT ALL + COUNT( * ) + + 63 + - MAX( + 23 ) + 17 DIV 35 * - 55 * + 68 + + 34 AS col0, 97 * - CAST( + 60 AS SIGNED )
----
75
-5820

skipif mysql # not compatible
query II rowsort label-1643
SELECT ALL + COUNT ( * ) + + 63 + - MAX ( + 23 ) + 17 / 35 * - 55 * + 68 + + 34 AS col0, 97 * - CAST ( + 60 AS INTEGER )
----
75
-5820

query I rowsort
SELECT + + 23 + + 47 * - 59 AS col1
----
-2750

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT COUNT( * ) * - COUNT( * ) + - - 25 + - 22 * - MIN( ALL - 33 ) + - - 22 + - - 22 * - COUNT( 97 )
----
-702

skipif mysql # not compatible
query I rowsort label-1645
SELECT COUNT ( * ) * - COUNT ( * ) + - - 25 + - 22 * - MIN ( ALL - 33 ) + - - 22 + - - 22 * - COUNT ( 97 )
----
-702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1646
SELECT ALL - 42 * COALESCE ( - 51, - - 19 ) * + CASE - - 31 WHEN - 10 * + 38 * - SUM( + 55 ) * - - CAST( 35 AS SIGNED ) THEN - 49 WHEN - 40 * + 42 THEN + 80 * 58 * COUNT( * ) + + - COUNT( * ) - - 15 DIV + + AVG ( - - 59 ) * + 37 + COUNT( * ) ELSE + 39 END - ( - COUNT( * ) ) + - + 77
----
83462

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL - 42 * COALESCE ( - 51, - - 19 ) * + CASE - - 31 WHEN - 10 * + 38 * - SUM ( + 55 ) * - - CAST ( 35 AS INTEGER ) THEN - 49 WHEN - 40 * + 42 THEN + 80 * 58 * COUNT ( * ) + + - COUNT ( * ) - - 15 / + + AVG ( - - 59 ) * + 37 + COUNT ( * ) ELSE + 39 END - ( - COUNT ( * ) ) + - + 77
----
83462

query I rowsort
SELECT DISTINCT + 9 * + + 84 - 41 AS col1
----
715

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT + 13 * - MIN( - 99 ) * + 90
----
115830

skipif mysql # not compatible
query I rowsort label-1648
SELECT + 13 * - MIN ( - 99 ) * + 90
----
115830

onlyif mysql # DIV for integer division: 
query I rowsort label-1649
SELECT DISTINCT 69 DIV + - 71 + + NULLIF ( - - 48, - ( 94 ) ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT 69 / + - 71 + + NULLIF ( - - 48, - ( 94 ) ) AS col0
----
48

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

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

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

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

query I rowsort
SELECT DISTINCT 29 + - 69 AS col1
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1653
SELECT DISTINCT + NULLIF ( + - COUNT( * ), - 58 ) DIV - 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1653
SELECT DISTINCT + NULLIF ( + - COUNT ( * ), - 58 ) / - 42 AS col0
----
0

query I rowsort
SELECT COALESCE ( + + 5, + ( - - 32 ) - - + 26 + + 94 ) * + 98 + 94 + 72 AS col0
----
656

query I rowsort
SELECT DISTINCT 64 - + + 16 AS col1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1656
SELECT ALL 23 DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL 23 / - 52
----
0

query II rowsort
SELECT 0 + + 30 - - - 72 AS col0, 46
----
-42
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT DISTINCT + MAX( - 25 ) - + 26 col2
----
-51

skipif mysql # not compatible
query I rowsort label-1658
SELECT DISTINCT + MAX ( - 25 ) - + 26 col2
----
-51

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

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

query I rowsort
SELECT 19 * - 94 AS col2
----
-1786

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT DISTINCT - COUNT( * ) * - 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-1661
SELECT DISTINCT - COUNT ( * ) * - 67 AS col2
----
67

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1663
SELECT 35 + - 36 * + - COUNT( * ), + 47 AS col0
----
71
47

skipif mysql # not compatible
query II rowsort label-1663
SELECT 35 + - 36 * + - COUNT ( * ), + 47 AS col0
----
71
47

query I rowsort
SELECT DISTINCT 15 * + 6 AS col1
----
90

query I rowsort
SELECT 19 * + 75
----
1425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1666
SELECT - ( COALESCE ( - - 12, - ( + 50 ) * CASE + - COALESCE ( - + 4, - 66 * 39 * + 78, CASE 94 WHEN - - 54 * + - COUNT( * ) THEN NULL WHEN - 51 THEN - 62 - + 28 END * 73 + 48 DIV + COUNT( * ) - + 40 ) WHEN - 50 THEN NULL WHEN + - 97 DIV - COUNT( DISTINCT + NULLIF ( 62, 15 * + 8 + + + 40 ) ) * 21 THEN CAST( - 31 AS SIGNED ) END + COUNT( * ) DIV - ( 72 ) ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-1666
SELECT - ( COALESCE ( - - 12, - ( + 50 ) * CASE + - COALESCE ( - + 4, - 66 * 39 * + 78, CASE 94 WHEN - - 54 * + - COUNT ( * ) THEN NULL WHEN - 51 THEN - 62 - + 28 END * 73 + 48 / + COUNT ( * ) - + 40 ) WHEN - 50 THEN NULL WHEN + - 97 / - COUNT ( DISTINCT + NULLIF ( 62, 15 * + 8 + + + 40 ) ) * 21 THEN CAST ( - 31 AS INTEGER ) END + COUNT ( * ) / - ( 72 ) ) ) AS col0
----
-12

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1668
SELECT ALL + CAST( - + 93 AS SIGNED ) + + + 52
----
-41

skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL + CAST ( - + 93 AS INTEGER ) + + + 52
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-1669
SELECT 41 col0, + CASE COALESCE ( 49, - SUM( + 64 ) - 40 ) WHEN - 42 - + MAX( DISTINCT 57 ) * + + COUNT( * ) * - - 46 THEN - 44 WHEN - 80 * 94 + 75 THEN + 58 ELSE NULL END * - COUNT( * ) + + + ( - 26 ) * 45 * + 93
----
41
NULL

skipif mysql # not compatible
query II rowsort label-1669
SELECT 41 col0, + CASE COALESCE ( 49, - SUM ( + 64 ) - 40 ) WHEN - 42 - + MAX ( DISTINCT 57 ) * + + COUNT ( * ) * - - 46 THEN - 44 WHEN - 80 * 94 + 75 THEN + 58 ELSE NULL END * - COUNT ( * ) + + + ( - 26 ) * 45 * + 93
----
41
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT 18 * - 13 + + COUNT( * ) * - 89 * - 29
----
2347

skipif mysql # not compatible
query I rowsort label-1670
SELECT 18 * - 13 + + COUNT ( * ) * - 89 * - 29
----
2347

query I rowsort
SELECT 61 * - - ( + 76 )
----
4636

onlyif mysql # aggregate syntax: 
query II rowsort label-1672
SELECT DISTINCT + - 29 + CASE + + 52 WHEN COUNT( * ) + 20 THEN - 0 WHEN 33 THEN + + 71 ELSE NULL END, 73 AS col2
----
NULL
73

skipif mysql # not compatible
query II rowsort label-1672
SELECT DISTINCT + - 29 + CASE + + 52 WHEN COUNT ( * ) + 20 THEN - 0 WHEN 33 THEN + + 71 ELSE NULL END, 73 AS col2
----
NULL
73

query I rowsort
SELECT ALL + + 62 + - 71 * 42
----
-2920

query I rowsort
SELECT DISTINCT - - 99 * 84
----
8316

query II rowsort
SELECT - 13 AS col2, - 6 * 17 * 48 AS col0
----
-13
-4896

query I rowsort
SELECT ALL + + 86 + - - 66 AS col0
----
152

query I rowsort
SELECT 66 + + 85 + - - 1 AS col2
----
152

query II rowsort
SELECT + 54 AS col2, - 63 + + 69
----
54
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT ALL MAX( - 99 ) * - NULLIF ( - 7, NULLIF ( 14, - - 55 ) ) AS col1
----
-693

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL MAX ( - 99 ) * - NULLIF ( - 7, NULLIF ( 14, - - 55 ) ) AS col1
----
-693

query II rowsort
SELECT ALL - 59, + 50 AS col0
----
-59
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1681
SELECT 39 DIV - - NULLIF ( 92, - + 91 ) + - - 51 * - 57 + MIN( - - 53 ) + - 62 + - 30
----
-2946

skipif mysql # not compatible
query I rowsort label-1681
SELECT 39 / - - NULLIF ( 92, - + 91 ) + - - 51 * - 57 + MIN ( - - 53 ) + - 62 + - 30
----
-2946

query I rowsort
SELECT COALESCE ( + ( - + 92 ), + - 4 ) + - 85 - + 94 AS col0
----
-271

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT ( SUM( DISTINCT - NULLIF ( - 59, - - 2 ) ) ) * COUNT( * ) * + 64
----
3776

skipif mysql # not compatible
query I rowsort label-1683
SELECT ( SUM ( DISTINCT - NULLIF ( - 59, - - 2 ) ) ) * COUNT ( * ) * + 64
----
3776

query II rowsort
SELECT ALL - 48 AS col0, 34 AS col2
----
-48
34

query I rowsort
SELECT - 51 * - 85 - - + 79
----
4414

query II rowsort
SELECT ALL - 64 AS col0, + ( + 29 )
----
-64
29

query I rowsort
SELECT ( + ( - + 0 ) ) * - 33 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1688
SELECT + 38 + + + 89 DIV 58 * - MIN( DISTINCT - - ( + 89 ) ) col0, 6 col0
----
-51
6

skipif mysql # not compatible
query II rowsort label-1688
SELECT + 38 + + + 89 / 58 * - MIN ( DISTINCT - - ( + 89 ) ) col0, 6 col0
----
-51
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1689
SELECT 7 DIV - 85 * + - 39 col0
----
0

skipif mysql # not compatible
query I rowsort label-1689
SELECT 7 / - 85 * + - 39 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT - 97 * - 25 - - 56 + - 53 + + COUNT( * ) AS col1
----
2429

skipif mysql # not compatible
query I rowsort label-1690
SELECT - 97 * - 25 - - 56 + - 53 + + COUNT ( * ) AS col1
----
2429

onlyif mysql # aggregate syntax: 
query II rowsort label-1691
SELECT + 12 AS col1, 11 * - + 71 + + ( + COUNT( * ) ) AS col2
----
12
-780

skipif mysql # not compatible
query II rowsort label-1691
SELECT + 12 AS col1, 11 * - + 71 + + ( + COUNT ( * ) ) AS col2
----
12
-780

query II rowsort
SELECT + 45 AS col0, - 27 + - 28 - + 96 AS col0
----
45
-151

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT ALL - NULLIF ( - COUNT( - 28 ), 80 )
----
1

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL - NULLIF ( - COUNT ( - 28 ), 80 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1695
SELECT + ( 80 ) * - 23 + + NULLIF ( - 80, + ( + COUNT( ALL + - 31 ) ) * 68 ) + - 22 - + - 6 + - 30 DIV + + 8
----
-1939

skipif mysql # not compatible
query I rowsort label-1695
SELECT + ( 80 ) * - 23 + + NULLIF ( - 80, + ( + COUNT ( ALL + - 31 ) ) * 68 ) + - 22 - + - 6 + - 30 / + + 8
----
-1939

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1696
SELECT ALL + - 26 + - 75 + CASE + 80 WHEN + - CAST( NULL AS SIGNED ) * - AVG ( ALL + 41 ) + ( - - COUNT( * ) ) THEN NULL WHEN - 57 * SUM( + + 42 ) + - - 67 THEN - 34 ELSE NULL END * - 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL + - 26 + - 75 + CASE + 80 WHEN + - CAST ( NULL AS INTEGER ) * - AVG ( ALL + 41 ) + ( - - COUNT ( * ) ) THEN NULL WHEN - 57 * SUM ( + + 42 ) + - - 67 THEN - 34 ELSE NULL END * - 79 AS col0
----
NULL

query II rowsort
SELECT 63 + - 72, 93 AS col0
----
-9
93

query I rowsort
SELECT ALL 71 * - - 1
----
71

query I rowsort
SELECT - 15 + - + 86 AS col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT ALL COALESCE ( 0, - - COUNT( * ) - + + 80 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL COALESCE ( 0, - - COUNT ( * ) - + + 80 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1701
SELECT COALESCE ( + 30, CASE + + 68 WHEN + - 9 THEN - CAST( NULL AS SIGNED ) WHEN + CAST( + ( - MIN( - - NULLIF ( + - 42, + - 73 * - + 21 ) ) ) AS SIGNED ) THEN + 83 END * + 91 ) * + - 27 AS col2
----
-810

skipif mysql # not compatible
query I rowsort label-1701
SELECT COALESCE ( + 30, CASE + + 68 WHEN + - 9 THEN - CAST ( NULL AS INTEGER ) WHEN + CAST ( + ( - MIN ( - - NULLIF ( + - 42, + - 73 * - + 21 ) ) ) AS INTEGER ) THEN + 83 END * + 91 ) * + - 27 AS col2
----
-810

query II rowsort
SELECT 2 + - - 91 AS col1, + 59
----
93
59

query I rowsort
SELECT + COALESCE ( + 70, + - 14 )
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1704
SELECT COUNT( * ) + - 70 + - + 88 DIV - COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-1704
SELECT COUNT ( * ) + - 70 + - + 88 / - COUNT ( * ) AS col0
----
19

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

query I rowsort
SELECT ALL + 60 * 73 * + 23 - + + 31 AS col1
----
100709

onlyif mysql # DIV for integer division: 
query I rowsort label-1707
SELECT ALL - 7 * + COALESCE ( - 75, + 37 - + 70 DIV + 15 ) AS col2
----
525

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL - 7 * + COALESCE ( - 75, + 37 - + 70 / + 15 ) AS col2
----
525

onlyif mysql # DIV for integer division: 
query I rowsort label-1708
SELECT - 41 DIV - - 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1708
SELECT - 41 / - - 77 AS col2
----
0

query I rowsort
SELECT DISTINCT - 17 * - 88 AS col0
----
1496

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT DISTINCT + NULLIF ( - 55, + COUNT( * ) / - 44 + - 75 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-1710
SELECT DISTINCT + NULLIF ( - 55, + COUNT ( * ) / - 44 + - 75 ) AS col1
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-1711
SELECT - 5 DIV + 82 * + 36
----
0

skipif mysql # not compatible
query I rowsort label-1711
SELECT - 5 / + 82 * + 36
----
0

query I rowsort
SELECT + 11 * 38 * - - 64 * 58 AS col1
----
1551616

query II rowsort
SELECT ALL + ( - 84 ), 28 AS col2
----
-84
28

query I rowsort
SELECT + 87 * + 35 * - 95 AS col1
----
-289275

query I rowsort
SELECT - ( + 19 ) + - 37 * + COALESCE ( 67, + 26 ) col0
----
-2498

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1716
SELECT + 64 + + CAST( NULL AS SIGNED ) - + - AVG ( - + 38 ) + - + 88 * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT + 64 + + CAST ( NULL AS INTEGER ) - + - AVG ( - + 38 ) + - + 88 * 23
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1717
SELECT - 75 DIV + 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1717
SELECT - 75 / + 91 AS col2
----
0

query I rowsort
SELECT + 81 * - + 99 AS col1
----
-8019

query II rowsort
SELECT - 51 * - - 54, 18 AS col0
----
-2754
18

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

skipif mysql # not compatible
query II rowsort label-1720
SELECT DISTINCT + CAST ( + 36 AS INTEGER ), COUNT ( * ) / + 78 + - 1 AS col1
----
36
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT ALL + MAX( ALL 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL + MAX ( ALL 57 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT + COUNT( * ) + - - 9
----
10

skipif mysql # not compatible
query I rowsort label-1722
SELECT + COUNT ( * ) + - - 9
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT ALL - 78 * + COUNT( * ) * + 1 + + 6 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-1723
SELECT ALL - 78 * + COUNT ( * ) * + 1 + + 6 AS col1
----
-72

query I rowsort
SELECT DISTINCT + + 13 * - - 85 + + 7
----
1112

query I rowsort
SELECT + + 76 * + - 58
----
-4408

query I rowsort
SELECT 71 * - 87 * 69 + - - 94 * + 15
----
-424803

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1728
SELECT DISTINCT - - 20 + - - 70 + - 91 - + + ( 67 ) DIV + + 69 * + 79 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1728
SELECT DISTINCT - - 20 + - - 70 + - 91 - + + ( 67 ) / + + 69 * + 79 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1729
SELECT ALL 16 + + COALESCE ( + - NULLIF ( + 61, 8 ), - 85, COUNT( * ) * + 42 ) - - - 43 * ( 5 ) * + - 63, - 9 AS col1
----
13500
-9

skipif mysql # not compatible
query II rowsort label-1729
SELECT ALL 16 + + COALESCE ( + - NULLIF ( + 61, 8 ), - 85, COUNT ( * ) * + 42 ) - - - 43 * ( 5 ) * + - 63, - 9 AS col1
----
13500
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT - NULLIF ( + 93, COUNT( ALL 6 ) - - - 37 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-1730
SELECT - NULLIF ( + 93, COUNT ( ALL 6 ) - - - 37 ) AS col2
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1731
SELECT ALL - CASE CAST( + CASE + ( 78 ) WHEN 74 THEN NULL WHEN - 74 THEN - - 83 END AS SIGNED ) WHEN + - 95 * + + 61 + + - 99 + - 44 THEN NULL WHEN - + 10 * 70 * + 38 THEN NULL WHEN - 70 THEN 65 END + - + 45 AS col1, + 82 + - 42 col1, - 54 col0
----
NULL
40
-54

skipif mysql # not compatible
query III rowsort label-1731
SELECT ALL - CASE CAST ( + CASE + ( 78 ) WHEN 74 THEN NULL WHEN - 74 THEN - - 83 END AS INTEGER ) WHEN + - 95 * + + 61 + + - 99 + - 44 THEN NULL WHEN - + 10 * 70 * + 38 THEN NULL WHEN - 70 THEN 65 END + - + 45 AS col1, + 82 + - 42 col1, - 54 col0
----
NULL
40
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT + + COUNT( ALL 76 ) * 53 * - 2
----
-106

skipif mysql # not compatible
query I rowsort label-1732
SELECT + + COUNT ( ALL 76 ) * 53 * - 2
----
-106

query I rowsort
SELECT + 88 * + + 24 - + 77
----
2035

query I rowsort
SELECT DISTINCT NULLIF ( 38, + + 26 + + - 55 ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT DISTINCT - 61 - - MIN( + - 5 )
----
-66

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT - 61 - - MIN ( + - 5 )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1736
SELECT + COALESCE ( + + 58, + + 21 DIV 56, + 1 * 99 * + COALESCE ( 93, - - 80, 87 DIV 0 + + ( - MAX( + 83 ) ) ) + - 15 + - - 85 ) * 66 AS col2
----
3828

skipif mysql # not compatible
query I rowsort label-1736
SELECT + COALESCE ( + + 58, + + 21 / 56, + 1 * 99 * + COALESCE ( 93, - - 80, 87 / 0 + + ( - MAX ( + 83 ) ) ) + - 15 + - - 85 ) * 66 AS col2
----
3828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1737
SELECT ALL 6 * - CAST( NULL AS SIGNED ) / - 54 * + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-1737
SELECT ALL 6 * - CAST ( NULL AS INTEGER ) / - 54 * + 24
----
NULL

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

query I rowsort
SELECT - 35 * + + 43
----
-1505

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1741
SELECT - 70 * + 36 * + COUNT( * ), - 25 + + 93 + + 12 AS col1
----
-2520
80

skipif mysql # not compatible
query II rowsort label-1741
SELECT - 70 * + 36 * + COUNT ( * ), - 25 + + 93 + + 12 AS col1
----
-2520
80

query I rowsort
SELECT + 99 * - 65 AS col2
----
-6435

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT + MAX( DISTINCT - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1743
SELECT + MAX ( DISTINCT - 0 ) AS col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT - 43 * COUNT( * ) + - ( 7 )
----
-50

skipif mysql # not compatible
query I rowsort label-1745
SELECT - 43 * COUNT ( * ) + - ( 7 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT ALL + CASE + 49 WHEN - 74 * - - 30 THEN COUNT( * ) * - 13 WHEN 91 * + - 69 + - COUNT( * ) + ( 73 ) * + 53 THEN - + MAX( + 37 ) + + 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL + CASE + 49 WHEN - 74 * - - 30 THEN COUNT ( * ) * - 13 WHEN 91 * + - 69 + - COUNT ( * ) + ( 73 ) * + 53 THEN - + MAX ( + 37 ) + + 70 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1747
SELECT DISTINCT + 67 / - CASE 12 WHEN + - 43 THEN - 73 * - - 51 + + 81 + + MAX( DISTINCT 0 ) / + 74 WHEN 51 / - 46 THEN 87 * + 32 ELSE NULL END * - 38 * COALESCE ( - CAST( NULL AS SIGNED ), - COUNT( * ) + - 45 / COUNT( * ) + - 14 + + 15 * 96 + 96 ) * - - COUNT( * ) * 11 + - 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT + 67 / - CASE 12 WHEN + - 43 THEN - 73 * - - 51 + + 81 + + MAX ( DISTINCT 0 ) / + 74 WHEN 51 / - 46 THEN 87 * + 32 ELSE NULL END * - 38 * COALESCE ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) + - 45 / COUNT ( * ) + - 14 + + 15 * 96 + 96 ) * - - COUNT ( * ) * 11 + - 16 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1748
SELECT ALL + 51 DIV - - 1 + - 36 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL + 51 / - - 1 + - 36 AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1749
SELECT - 86 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-1749
SELECT - 86 / 92
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1750
SELECT + 4 DIV ( 66 ) DIV - - 74 + + - 30 col0
----
-30

skipif mysql # not compatible
query I rowsort label-1750
SELECT + 4 / ( 66 ) / - - 74 + + - 30 col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1751
SELECT DISTINCT + CAST( - MIN( DISTINCT 60 ) AS SIGNED ) DIV 5
----
-12

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT + CAST ( - MIN ( DISTINCT 60 ) AS INTEGER ) / 5
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT - MIN( ALL - 0 ) * - MAX( ALL - + 82 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1752
SELECT - MIN ( ALL - 0 ) * - MAX ( ALL - + 82 ) AS col2
----
0

query II rowsort
SELECT + 30, - 96 AS col0
----
30
-96

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1755
SELECT ALL 92, - 27 DIV + 81 col0
----
92
0

skipif mysql # not compatible
query II rowsort label-1755
SELECT ALL 92, - 27 / + 81 col0
----
92
0

query I rowsort
SELECT DISTINCT 89 * - 95
----
-8455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1757
SELECT DISTINCT + + NULLIF ( + CAST( NULL AS SIGNED ), + + 76 ) - + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1757
SELECT DISTINCT + + NULLIF ( + CAST ( NULL AS INTEGER ), + + 76 ) - + 72
----
NULL

query I rowsort
SELECT DISTINCT - + 50 * - + 22
----
1100

query I rowsort
SELECT 95 + - 83
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-1760
SELECT COUNT( * ) * COUNT( * ) AS col1, - 12 + - COALESCE ( - - 9, 13 ) * - 78 + 24 * - 74 AS col2
----
1
-1086

skipif mysql # not compatible
query II rowsort label-1760
SELECT COUNT ( * ) * COUNT ( * ) AS col1, - 12 + - COALESCE ( - - 9, 13 ) * - 78 + 24 * - 74 AS col2
----
1
-1086

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT COALESCE ( 12, + 97 + + + 49 ) + + COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-1761
SELECT COALESCE ( 12, + 97 + + + 49 ) + + COUNT ( * ) AS col2
----
13

query I rowsort
SELECT 29 + - 89 AS col1
----
-60

onlyif mysql # DIV for integer division: 
query II rowsort label-1763
SELECT 0 * + 64, 39 * 42 DIV 5 + - 65 AS col2
----
0
262

skipif mysql # not compatible
query II rowsort label-1763
SELECT 0 * + 64, 39 * 42 / 5 + - 65 AS col2
----
0
262

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1764
SELECT NULLIF ( - 9, - 39 ) DIV 27 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1764
SELECT NULLIF ( - 9, - 39 ) / 27 + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT 51 + - 2
----
49

query I rowsort
SELECT 38 * - + ( 42 ) * ( - + 73 )
----
116508

onlyif mysql # DIV for integer division: 
query I rowsort label-1767
SELECT 37 DIV + 41 + - - 50
----
50

skipif mysql # not compatible
query I rowsort label-1767
SELECT 37 / + 41 + - - 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT ALL - CASE - ( - 10 ) WHEN + - 67 THEN - 97 WHEN - - 55 THEN + COUNT( * ) + - 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL - CASE - ( - 10 ) WHEN + - 67 THEN - 97 WHEN - - 55 THEN + COUNT ( * ) + - 33 END
----
NULL

query I rowsort
SELECT NULLIF ( - 13, 92 ) * - + NULLIF ( + 5, - - 28 ) AS col0
----
65

query I rowsort
SELECT ALL + 37 + 36 + + 81 + + - 67 * + 43
----
-2727

query I rowsort
SELECT ALL - + ( + - ( - - 58 ) ) + + ( 3 ) + - ( 0 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT COUNT( DISTINCT 25 ) * - 80 + + 71
----
-9

skipif mysql # not compatible
query I rowsort label-1772
SELECT COUNT ( DISTINCT 25 ) * - 80 + + 71
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT + CASE 64 WHEN 68 * + ( + 12 ) * + 39 * - COUNT( * ) THEN + + 45 WHEN + ( 70 ) * 23 THEN - - 0 ELSE NULL END * + + 5 * 68 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1773
SELECT + CASE 64 WHEN 68 * + ( + 12 ) * + 39 * - COUNT ( * ) THEN + + 45 WHEN + ( 70 ) * 23 THEN - - 0 ELSE NULL END * + + 5 * 68 col1
----
NULL

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

query I rowsort
SELECT 61 + 14 - + + 94 + - - 28 * + + 25 - + 62 AS col0
----
619

query I rowsort
SELECT - NULLIF ( 27, - - 55 + - 84 * 54 ) * + - 1
----
27

query I rowsort
SELECT 7 * - 89 col0
----
-623

query I rowsort
SELECT + 23 * + COALESCE ( 29, 21 ) + + + ( + 63 )
----
730

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT 87 * + COUNT( * ) * - 54
----
-4698

skipif mysql # not compatible
query I rowsort label-1779
SELECT 87 * + COUNT ( * ) * - 54
----
-4698

onlyif mysql # DIV for integer division: 
query I rowsort label-1780
SELECT ALL + 72 DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL + 72 / 91 AS col1
----
0

query I rowsort
SELECT + 75 * 87 * 87
----
567675

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1783
SELECT - CAST( + NULLIF ( - + 35, - + COUNT( * ) ) AS SIGNED ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-1783
SELECT - CAST ( + NULLIF ( - + 35, - + COUNT ( * ) ) AS INTEGER ) AS col1
----
35

query I rowsort
SELECT DISTINCT 23 * - - 32
----
736

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT ALL COALESCE ( - COUNT( * ), + ( - 29 ) * - - 44 )
----
-1

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL COALESCE ( - COUNT ( * ), + ( - 29 ) * - - 44 )
----
-1

query I rowsort
SELECT + 41 * + ( 77 )
----
3157

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

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

query II rowsort
SELECT - 3 AS col1, - 76 AS col0
----
-3
-76

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

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

query I rowsort
SELECT 94 * - + 24
----
-2256

onlyif mysql # aggregate syntax: 
query II rowsort label-1791
SELECT DISTINCT + COUNT( * ) * + + ( + 9 ), - NULLIF ( - - 9, - + COUNT( + COALESCE ( + - ( 12 ), - - 81, + - 98 + 2 ) ) ) * 27 * - 65 * - - COUNT( DISTINCT - + 73 ) * ( + 28 ) + - - 18 + 99 AS col0
----
9
442377

skipif mysql # not compatible
query II rowsort label-1791
SELECT DISTINCT + COUNT ( * ) * + + ( + 9 ), - NULLIF ( - - 9, - + COUNT ( + COALESCE ( + - ( 12 ), - - 81, + - 98 + 2 ) ) ) * 27 * - 65 * - - COUNT ( DISTINCT - + 73 ) * ( + 28 ) + - - 18 + 99 AS col0
----
9
442377

query I rowsort
SELECT ALL + 86 + + + 23
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT DISTINCT - COUNT( * ) + + 12
----
11

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT - COUNT ( * ) + + 12
----
11

query I rowsort
SELECT ALL 10 + 78 + + + 18 * + 53 col0
----
1042

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT ( - 92 ) / - CASE - - ( + 69 ) WHEN 80 + + 30 * + 23 THEN NULL WHEN + COUNT( * ) THEN COUNT( * ) END + - NULLIF ( + COALESCE ( - + COALESCE ( + 91, 64 - + 8 * - - 74 ), - 44 + + + 43 + + 71 ), 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1795
SELECT ( - 92 ) / - CASE - - ( + 69 ) WHEN 80 + + 30 * + 23 THEN NULL WHEN + COUNT ( * ) THEN COUNT ( * ) END + - NULLIF ( + COALESCE ( - + COALESCE ( + 91, 64 - + 8 * - - 74 ), - 44 + + + 43 + + 71 ), 84 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1796
SELECT ALL ( 36 ) / - 44 - + 63 + 38 * 74 * - CAST( - - 58 AS SIGNED ) - + 30 + + 49 * - CASE 39 WHEN + - 0 THEN 56 END - + ( - - 85 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL ( 36 ) / - 44 - + 63 + 38 * 74 * - CAST ( - - 58 AS INTEGER ) - + 30 + + 49 * - CASE 39 WHEN + - 0 THEN 56 END - + ( - - 85 ) AS col2
----
NULL

query I rowsort
SELECT 19 + + + 2 - + 78 * 47
----
-3645

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT NULLIF ( 60, - - 25 * 47 * - 70 - COUNT( * ) + + 5 + 17 ) + 54 col2
----
114

skipif mysql # not compatible
query I rowsort label-1799
SELECT NULLIF ( 60, - - 25 * 47 * - 70 - COUNT ( * ) + + 5 + 17 ) + 54 col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT ( - - 33 ) * + CASE - 76 WHEN 27 THEN + + ( + 98 ) WHEN - COUNT( * ) THEN + 15 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1800
SELECT ( - - 33 ) * + CASE - 76 WHEN 27 THEN + + ( + 98 ) WHEN - COUNT ( * ) THEN + 15 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT MIN( + 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1801
SELECT MIN ( + 93 ) AS col1
----
93

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

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

query II rowsort
SELECT 27 col1, + ( 74 ) * 77 AS col0
----
27
5698

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

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

query I rowsort
SELECT 17 - - - 19
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT + 80 * COUNT( * ) * - CASE 75 WHEN AVG ( + 71 ) THEN NULL ELSE + 12 END + + 79 + 13 + + COUNT( * )
----
-867

skipif mysql # not compatible
query I rowsort label-1806
SELECT + 80 * COUNT ( * ) * - CASE 75 WHEN AVG ( + 71 ) THEN NULL ELSE + 12 END + + 79 + 13 + + COUNT ( * )
----
-867

query II rowsort
SELECT - 76, 66 AS col0
----
-76
66

query I rowsort
SELECT + 93 * - - 59
----
5487

query II rowsort
SELECT ALL + 96 col2, + ( + + 13 ) AS col1
----
96
13

query I rowsort
SELECT - - 38 * - 29 * - - 10 - + 84 * - + 42 + - ( - - 44 )
----
-7536

query II rowsort
SELECT DISTINCT + + 17 AS col0, 95 AS col2
----
17
95

query I rowsort
SELECT ALL + 82 * + 68
----
5576

query I rowsort
SELECT - 95 * - + 53 + 85 AS col2
----
5120

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

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

query I rowsort
SELECT - - 86 + - 80 + + 48 AS col1
----
54

query I rowsort
SELECT - - 80 - - 72 + 59
----
211

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

query I rowsort
SELECT ALL - NULLIF ( - - 93, - 19 ) + - + ( + 21 )
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1820
SELECT DISTINCT COUNT( * ), + 34 DIV + 51 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-1820
SELECT DISTINCT COUNT ( * ), + 34 / + 51 AS col2
----
1
0

query I rowsort
SELECT ALL + 17 + - + 21 AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1822
SELECT DISTINCT - 26 DIV + 63 * + 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1822
SELECT DISTINCT - 26 / + 63 * + 43 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT DISTINCT + SUM( + - ( - - 19 ) ) + 21
----
2

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT + SUM ( + - ( - - 19 ) ) + 21
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1824
SELECT ALL - 45 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL - 45 / 80
----
0

query I rowsort
SELECT - 5 + + 58 col2
----
53

query I rowsort
SELECT ALL + 81 + 14 + - 71 col0
----
24

query II rowsort
SELECT - 81 + - 10 AS col1, - 65 AS col0
----
-91
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT ALL + CASE CASE - - 56 WHEN 66 THEN + 28 ELSE NULL END WHEN CASE COALESCE ( 58, - 30 ) WHEN + 19 + - + COUNT( * ) THEN 22 / 15 / + - 52 * - 96 + + COUNT( * ) ELSE + 85 + - 89 + - 46 END - + - 38 / - - 7 * + 93 * + 91 * - 74 / - + 46 THEN - 36 * - CASE - 34 WHEN - 13 + 79 THEN NULL WHEN 63 THEN + SUM( ALL + - 12 ) + - ( + + 90 ) * + 86 ELSE 63 END WHEN + 49 THEN - COUNT( * ) - - + 95 WHEN - - 26 * 94 THEN NULL END * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL + CASE CASE - - 56 WHEN 66 THEN + 28 ELSE NULL END WHEN CASE COALESCE ( 58, - 30 ) WHEN + 19 + - + COUNT ( * ) THEN 22 / 15 / + - 52 * - 96 + + COUNT ( * ) ELSE + 85 + - 89 + - 46 END - + - 38 / - - 7 * + 93 * + 91 * - 74 / - + 46 THEN - 36 * - CASE - 34 WHEN - 13 + 79 THEN NULL WHEN 63 THEN + SUM ( ALL + - 12 ) + - ( + + 90 ) * + 86 ELSE 63 END WHEN + 49 THEN - COUNT ( * ) - - + 95 WHEN - - 26 * 94 THEN NULL END * 67
----
NULL

query I rowsort
SELECT - 69 * COALESCE ( - 45, + + ( 68 ) ) * - ( - COALESCE ( + 81, + 51 ) ) AS col1
----
251505

query I rowsort
SELECT + 51 + + 17 AS col0
----
68

onlyif mysql # DIV for integer division: 
query II rowsort label-1831
SELECT ALL 34 AS col2, 32 DIV - - 68 AS col0
----
34
0

skipif mysql # not compatible
query II rowsort label-1831
SELECT ALL 34 AS col2, 32 / - - 68 AS col0
----
34
0

query I rowsort
SELECT ALL COALESCE ( - 16, - 65 ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT + - CASE - 59 WHEN - - 64 - 4 THEN 94 WHEN + - 35 + 88 THEN NULL WHEN 8 / + 27 - - 27 THEN - COUNT( * ) WHEN - 1 THEN + + 33 END * - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT + - CASE - 59 WHEN - - 64 - 4 THEN 94 WHEN + - 35 + 88 THEN NULL WHEN 8 / + 27 - - 27 THEN - COUNT ( * ) WHEN - 1 THEN + + 33 END * - 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT - + 8 - + COUNT( * ) col1
----
-9

skipif mysql # not compatible
query I rowsort label-1834
SELECT - + 8 - + COUNT ( * ) col1
----
-9

query I rowsort
SELECT - - 91 + + 84
----
175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1836
SELECT 33 * - - 64 * - CASE + + COUNT( * ) WHEN - + 99 + - ( + 51 ) + + ( + - 39 ) / - 75 * + 67 THEN 14 ELSE + NULLIF ( + 25, + CASE - AVG ( 91 ) WHEN - 71 THEN + ( 67 ) * + ( + - 92 ) * - 5 - 19 * - CAST( - + 99 AS SIGNED ) * + 78 END ) END - 50
----
-52850

skipif mysql # not compatible
query I rowsort label-1836
SELECT 33 * - - 64 * - CASE + + COUNT ( * ) WHEN - + 99 + - ( + 51 ) + + ( + - 39 ) / - 75 * + 67 THEN 14 ELSE + NULLIF ( + 25, + CASE - AVG ( 91 ) WHEN - 71 THEN + ( 67 ) * + ( + - 92 ) * - 5 - 19 * - CAST ( - + 99 AS INTEGER ) * + 78 END ) END - 50
----
-52850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1837
SELECT + - ( - CASE - + 9 WHEN + + 59 * - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) THEN NULL WHEN - SUM( 95 ) THEN NULL WHEN - 9 * + 43 THEN - 61 + + NULLIF ( + 79, CASE 33 WHEN + - 35 THEN 22 + - + 38 WHEN + 85 THEN - - 98 END ) * - 68 * 4 / + 42 ELSE NULL END ) / + - 76 + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-1837
SELECT + - ( - CASE - + 9 WHEN + + 59 * - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - SUM ( 95 ) THEN NULL WHEN - 9 * + 43 THEN - 61 + + NULLIF ( + 79, CASE 33 WHEN + - 35 THEN 22 + - + 38 WHEN + 85 THEN - - 98 END ) * - 68 * 4 / + 42 ELSE NULL END ) / + - 76 + + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT + NULLIF ( + + 71, - 57 + + - 0 ) * COUNT( * ) + - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-1838
SELECT + NULLIF ( + + 71, - 57 + + - 0 ) * COUNT ( * ) + - COUNT ( * )
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1839
SELECT - 44 DIV - 97 - + + 36 + + 0 * 40 + + 15 * - MIN( - 42 ) * + + 25 AS col1, - CASE - + 73 WHEN COALESCE ( - MAX( ALL - - 70 ), + 94 * + COALESCE ( - 20, - 90 * - 32 + - 35 + - + 4, + 62 + - NULLIF ( + + ( 95 ), + 65 ), 26 ) * - 49 + + NULLIF ( 43, - 91 ) ) THEN - 62 * + 4 * + AVG ( 92 ) - - 7 + - 8 DIV 77 - - COUNT( + + 39 ) - - MAX( 56 ) WHEN 10 * 7 THEN NULL ELSE NULL END - 72
----
15714
NULL

skipif mysql # not compatible
query II rowsort label-1839
SELECT - 44 / - 97 - + + 36 + + 0 * 40 + + 15 * - MIN ( - 42 ) * + + 25 AS col1, - CASE - + 73 WHEN COALESCE ( - MAX ( ALL - - 70 ), + 94 * + COALESCE ( - 20, - 90 * - 32 + - 35 + - + 4, + 62 + - NULLIF ( + + ( 95 ), + 65 ), 26 ) * - 49 + + NULLIF ( 43, - 91 ) ) THEN - 62 * + 4 * + AVG ( 92 ) - - 7 + - 8 / 77 - - COUNT ( + + 39 ) - - MAX ( 56 ) WHEN 10 * 7 THEN NULL ELSE NULL END - 72
----
15714
NULL

query I rowsort
SELECT DISTINCT - CASE 5 WHEN - + 53 THEN NULL WHEN - + COALESCE ( - 13, - - 6, + 91 + 91 - - 52 + - 39 * 17 * + 17 - + - 12 * + 93, + 91 ) THEN + 11 ELSE NULL END / - + 69 + 19 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1841
SELECT DISTINCT + 78 * - - 46 + - + COUNT( * ) * - MIN( - + 92 ) * + 76 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT + 78 * - - 46 + - + COUNT ( * ) * - MIN ( - + 92 ) * + 76 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1842
SELECT + COALESCE ( - MAX( + - 18 ), - - ( + COALESCE ( 15, - SUM( ALL - + 6 ) ) ) ) DIV - - ( CAST( + + MIN( ALL - 30 ) AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1842
SELECT + COALESCE ( - MAX ( + - 18 ), - - ( + COALESCE ( 15, - SUM ( ALL - + 6 ) ) ) ) / - - ( CAST ( + + MIN ( ALL - 30 ) AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT ALL + COUNT( DISTINCT + - 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL + COUNT ( DISTINCT + - 74 ) AS col0
----
1

query I rowsort
SELECT 50 * + 57 + - 28
----
2822

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1845
SELECT DISTINCT - 45 * - COUNT( * ) DIV + 75 - - 3 col2
----
3

skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT - 45 * - COUNT ( * ) / + 75 - - 3 col2
----
3

query I rowsort
SELECT ALL 27 * + 99 AS col1
----
2673

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1848
SELECT + - COUNT( * ) AS col1, - ( + 80 ) DIV CAST( - 16 AS SIGNED ) * - ( COUNT( * ) ) DIV + 85 + COUNT( 36 ) - + + COUNT( * ) col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-1848
SELECT + - COUNT ( * ) AS col1, - ( + 80 ) / CAST ( - 16 AS INTEGER ) * - ( COUNT ( * ) ) / + 85 + COUNT ( 36 ) - + + COUNT ( * ) col2
----
-1
0

query I rowsort
SELECT ALL + 77 * - 50 + - 63
----
-3913

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT + + 15 * - COUNT( * ) + - 66
----
-81

skipif mysql # not compatible
query I rowsort label-1850
SELECT + + 15 * - COUNT ( * ) + - 66
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT - - 63 * - - 63 * 71 * COUNT( * ) + 92 + - ( + NULLIF ( - COUNT( * ), + 23 - - 35 / - ( + 68 ) + 61 ) ) col0
----
281892

skipif mysql # not compatible
query I rowsort label-1851
SELECT - - 63 * - - 63 * 71 * COUNT ( * ) + 92 + - ( + NULLIF ( - COUNT ( * ), + 23 - - 35 / - ( + 68 ) + 61 ) ) col0
----
281892

query I rowsort
SELECT ALL + + ( + - 35 ) * - - 75 - 62
----
-2687

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT DISTINCT 90 * NULLIF ( - COUNT( * ), - 10 ) + ( + + 79 )
----
-11

skipif mysql # not compatible
query I rowsort label-1853
SELECT DISTINCT 90 * NULLIF ( - COUNT ( * ), - 10 ) + ( + + 79 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT ALL - 74 * 12 * - 72 * - 36 + + - MAX( + - CASE - 43 WHEN + 94 THEN NULL ELSE 73 END )
----
-2301623

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL - 74 * 12 * - 72 * - 36 + + - MAX ( + - CASE - 43 WHEN + 94 THEN NULL ELSE 73 END )
----
-2301623

query II rowsort
SELECT + 17 * + 29, 78 AS col1
----
493
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1856
SELECT DISTINCT 29 * + CAST( + - 47 AS SIGNED ) AS col2, 20
----
-1363
20

skipif mysql # not compatible
query II rowsort label-1856
SELECT DISTINCT 29 * + CAST ( + - 47 AS INTEGER ) AS col2, 20
----
-1363
20

query II rowsort
SELECT + 93 - 41 * - + 5 AS col2, 29 AS col1
----
298
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT ALL COALESCE ( - + COALESCE ( - + NULLIF ( 52, + AVG ( 30 ) ), ( - CASE + 85 WHEN + 14 + + 3 - + - 15 * + NULLIF ( + COUNT( - 63 ), + + 45 ) THEN + 57 * - COUNT( * ) WHEN + COUNT( * ) + 57 THEN + - 30 * + 67 WHEN 12 THEN - 95 ELSE NULL END ), + ( 17 ) ), + 51 + + + 72, - COUNT( * ) )
----
52

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL COALESCE ( - + COALESCE ( - + NULLIF ( 52, + AVG ( 30 ) ), ( - CASE + 85 WHEN + 14 + + 3 - + - 15 * + NULLIF ( + COUNT ( - 63 ), + + 45 ) THEN + 57 * - COUNT ( * ) WHEN + COUNT ( * ) + 57 THEN + - 30 * + 67 WHEN 12 THEN - 95 ELSE NULL END ), + ( 17 ) ), + 51 + + + 72, - COUNT ( * ) )
----
52

query I rowsort
SELECT - 75 * - - 37 AS col1
----
-2775

query I rowsort
SELECT ALL + ( - 43 ) - - 56
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT DISTINCT ( - 47 ) - - COUNT( * ) + + ( + 41 )
----
-5

skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT ( - 47 ) - - COUNT ( * ) + + ( + 41 )
----
-5

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1864
SELECT ALL CASE - CAST( NULL AS SIGNED ) WHEN + CASE 77 WHEN - 87 THEN - 4 WHEN - + 36 THEN NULL ELSE ( + 57 ) END THEN + ( MAX( + 74 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL CASE - CAST ( NULL AS INTEGER ) WHEN + CASE 77 WHEN - 87 THEN - 4 WHEN - + 36 THEN NULL ELSE ( + 57 ) END THEN + ( MAX ( + 74 ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1865
SELECT DISTINCT - CAST( + ( - + 43 ) AS SIGNED ) DIV + 76 * - COUNT( * ) * + + 24
----
0

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT - CAST ( + ( - + 43 ) AS INTEGER ) / + 76 * - COUNT ( * ) * + + 24
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1866
SELECT - - NULLIF ( - 36, 85 ) + + COALESCE ( 25, + + 88 * + CAST( - 36 AS DECIMAL ) * COUNT( + 69 ) - 72 ) * + ( - + 95 ) + - 81 * + CAST( NULL AS DECIMAL ) + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1866
SELECT - - NULLIF ( - 36, 85 ) + + COALESCE ( 25, + + 88 * + CAST ( - 36 AS REAL ) * COUNT ( + 69 ) - 72 ) * + ( - + 95 ) + - 81 * + CAST ( NULL AS REAL ) + + 79
----
NULL

query I rowsort
SELECT - 48 * + 2 * 16 AS col2
----
-1536

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1870
SELECT DISTINCT - CAST( - 56 AS SIGNED ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT - CAST ( - 56 AS INTEGER ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT ALL + 85 + COALESCE ( 78, + MAX( - + 60 ) ) + + 97
----
260

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL + 85 + COALESCE ( 78, + MAX ( - + 60 ) ) + + 97
----
260

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT DISTINCT + 57 + - 45 * + 97 + COUNT( - - 82 ) * - 80 + - MIN( - 38 ) - 83
----
-4433

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT + 57 + - 45 * + 97 + COUNT ( - - 82 ) * - 80 + - MIN ( - 38 ) - 83
----
-4433

query II rowsort
SELECT + + ( - 21 ) AS col0, 79 - + - 57 AS col2
----
-21
136

query I rowsort
SELECT ALL + - 29 + - + 99 - + 93
----
-221

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

skipif mysql # not compatible
query I rowsort label-1875
SELECT - COUNT ( * ) + + ( + 40 ) AS col1
----
39

query I rowsort
SELECT - 86 * + 87 col2
----
-7482

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT DISTINCT CASE - 25 WHEN + + 39 THEN + 88 * + 38 WHEN + 22 THEN + COUNT( * ) WHEN - COUNT( * ) THEN NULL ELSE NULL END + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT CASE - 25 WHEN + + 39 THEN + 88 * + 38 WHEN + 22 THEN + COUNT ( * ) WHEN - COUNT ( * ) THEN NULL ELSE NULL END + + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT - COUNT( * ) * - + 48 + - 46
----
2

skipif mysql # not compatible
query I rowsort label-1878
SELECT - COUNT ( * ) * - + 48 + - 46
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1879
SELECT ALL 74 * 80 DIV + - 66 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL 74 * 80 / + - 66 AS col1
----
-89

query I rowsort
SELECT DISTINCT - NULLIF ( 17, - NULLIF ( - + 4, - + 37 + - + 2 ) ) * 42 AS col0
----
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT DISTINCT + - 87 + - COUNT( * ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT + - 87 + - COUNT ( * ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query III rowsort label-1882
SELECT DISTINCT - + 24 * 25 col1, + SUM( ALL 15 ) - - - 91 AS col2, + 0
----
-600
-76
0

skipif mysql # not compatible
query III rowsort label-1882
SELECT DISTINCT - + 24 * 25 col1, + SUM ( ALL 15 ) - - - 91 AS col2, + 0
----
-600
-76
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT ALL - MAX( DISTINCT - 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL - MAX ( DISTINCT - 11 ) AS col2
----
11

query I rowsort
SELECT 19 + - + 45 + - - 68 * - 79
----
-5398

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT ALL MAX( ALL - 24 ) * + 37 + 89
----
-799

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL MAX ( ALL - 24 ) * + 37 + 89
----
-799

query I rowsort
SELECT - 10 * + 65 + - + 42
----
-692

query I rowsort
SELECT 9 + - 12
----
-3

query II rowsort
SELECT 93 AS col0, + 18 + 83 AS col1
----
93
101

query I rowsort
SELECT 35 * + - 24 * 94 col1
----
-78960

query I rowsort
SELECT ( 77 ) + - - 35 AS col0
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1891
SELECT ALL COUNT( * ) DIV ( + - NULLIF ( + 90, - 27 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL COUNT ( * ) / ( + - NULLIF ( + 90, - 27 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT DISTINCT COUNT( * ) * 66 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT COUNT ( * ) * 66 AS col0
----
66

query I rowsort
SELECT 73 + + 14
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-1894
SELECT 79, + 57 + - + COUNT( * ) * COUNT( * ) AS col2
----
79
56

skipif mysql # not compatible
query II rowsort label-1894
SELECT 79, + 57 + - + COUNT ( * ) * COUNT ( * ) AS col2
----
79
56

onlyif mysql # DIV for integer division: 
query II rowsort label-1895
SELECT - 97 col0, 4 DIV 34
----
-97
0

skipif mysql # not compatible
query II rowsort label-1895
SELECT - 97 col0, 4 / 34
----
-97
0

query I rowsort
SELECT + CASE + 10 WHEN - + 19 * + 12 THEN 66 WHEN - 5 / + 79 * 77 THEN + 4 ELSE + 66 END AS col0
----
66

query I rowsort
SELECT ALL 59 * - 2 * - 30 AS col1
----
3540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1898
SELECT - - 61 AS col0, - 96 * - 31 * - NULLIF ( - 14, COUNT( * ) ) - CAST( + 23 AS SIGNED ) AS col1
----
61
41641

skipif mysql # not compatible
query II rowsort label-1898
SELECT - - 61 AS col0, - 96 * - 31 * - NULLIF ( - 14, COUNT ( * ) ) - CAST ( + 23 AS INTEGER ) AS col1
----
61
41641

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1899
SELECT ALL + 56 + - - 95 + 3 DIV COUNT( * )
----
154

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL + 56 + - - 95 + 3 / COUNT ( * )
----
154

query I rowsort
SELECT + 26 * - 43
----
-1118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1901
SELECT DISTINCT - - 39 + - + COUNT( ALL 13 ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1901
SELECT DISTINCT - - 39 + - + COUNT ( ALL 13 ) - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + - 77 + - 58 + - - 92 AS col0, - 25 col2
----
-43
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-1903
SELECT ALL - 53 + 22 DIV 46
----
-53

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL - 53 + 22 / 46
----
-53

query I rowsort
SELECT ALL + 95 + + 48 AS col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT - 92 - - - COUNT( * ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-1905
SELECT - 92 - - - COUNT ( * ) AS col2
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-1906
SELECT DISTINCT + 62 + + + 9 DIV 7
----
63

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT + 62 + + + 9 / 7
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1907
SELECT ALL - COUNT( * ) * + 25 * + + 42 AS col0, 13 col0
----
-1050
13

skipif mysql # not compatible
query II rowsort label-1907
SELECT ALL - COUNT ( * ) * + 25 * + + 42 AS col0, 13 col0
----
-1050
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1908
SELECT + 84 + NULLIF ( + COALESCE ( 70, - - 26 + 52 + - + COUNT( * ) * + COUNT( * ) ), COUNT( * ) ) DIV - 84 col0
----
84

skipif mysql # not compatible
query I rowsort label-1908
SELECT + 84 + NULLIF ( + COALESCE ( 70, - - 26 + 52 + - + COUNT ( * ) * + COUNT ( * ) ), COUNT ( * ) ) / - 84 col0
----
84

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

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL + + COUNT ( * ) + 75 AS col1
----
76

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

skipif mysql # not compatible
query I rowsort label-1910
SELECT + MIN ( + + 97 )
----
97

query I rowsort
SELECT - - 26 * - 91 + + 44 + + + 36 - + 24 AS col1
----
-2310

query I rowsort
SELECT ALL - - 22 * + 61 col1
----
1342

query I rowsort
SELECT ALL + 86 - - ( 70 )
----
156

query I rowsort
SELECT 3 * + - ( + 53 ) AS col0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT COUNT( * ) + - - 96 + + 42
----
139

skipif mysql # not compatible
query I rowsort label-1915
SELECT COUNT ( * ) + - - 96 + + 42
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-1916
SELECT DISTINCT - CASE + - 36 WHEN 95 THEN NULL WHEN + - 1 THEN - MIN( DISTINCT - 24 ) - + 39 * - 10 * + ( + ( ( - - 84 ) ) ) WHEN MIN( - 15 ) THEN NULL ELSE NULL END AS col2, + ( - 52 ) - - ( + 29 ) AS col0
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-1916
SELECT DISTINCT - CASE + - 36 WHEN 95 THEN NULL WHEN + - 1 THEN - MIN ( DISTINCT - 24 ) - + 39 * - 10 * + ( + ( ( - - 84 ) ) ) WHEN MIN ( - 15 ) THEN NULL ELSE NULL END AS col2, + ( - 52 ) - - ( + 29 ) AS col0
----
NULL
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT SUM( ALL - - COALESCE ( 79, + 97 ) ) * - 96 + - 36 * - 53 AS col0
----
-5676

skipif mysql # not compatible
query I rowsort label-1917
SELECT SUM ( ALL - - COALESCE ( 79, + 97 ) ) * - 96 + - 36 * - 53 AS col0
----
-5676

query I rowsort
SELECT ALL ( - 67 ) * 9 AS col2
----
-603

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT DISTINCT - 69 - - + 70 + - 12 * 51 * 4 - - COALESCE ( + 33, 75 * 21 ) + - - 98 * + COUNT( + - 79 ) - 48 - - - 49
----
-2413

skipif mysql # not compatible
query I rowsort label-1919
SELECT DISTINCT - 69 - - + 70 + - 12 * 51 * 4 - - COALESCE ( + 33, 75 * 21 ) + - - 98 * + COUNT ( + - 79 ) - 48 - - - 49
----
-2413

query I rowsort
SELECT ALL + 96 * - + 35 * - - 44
----
-147840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1921
SELECT ALL 81 * + CASE - + 46 WHEN + - 19 * 82 * - 90 * CAST( NULL AS SIGNED ) + - - 48 + - 22 + + + 51 + + 63 * SUM( - 25 ) * + 26 + - COUNT( + ( - 69 ) ) THEN - MAX( 40 ) WHEN - 49 THEN + - ( 88 ) ELSE NULL END * 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL 81 * + CASE - + 46 WHEN + - 19 * 82 * - 90 * CAST ( NULL AS INTEGER ) + - - 48 + - 22 + + + 51 + + 63 * SUM ( - 25 ) * + 26 + - COUNT ( + ( - 69 ) ) THEN - MAX ( 40 ) WHEN - 49 THEN + - ( 88 ) ELSE NULL END * 25 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT ALL MAX( + 19 ) * + - 66 AS col1
----
-1254

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL MAX ( + 19 ) * + - 66 AS col1
----
-1254

query I rowsort
SELECT 70 * 10
----
700

query I rowsort
SELECT ( 37 ) * - 51
----
-1887

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT COUNT( * ) - 50 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-1926
SELECT COUNT ( * ) - 50 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT + COUNT( * ) * NULLIF ( - 66, - + MAX( - 96 ) + + 80 + - - 57 * + 94 * COALESCE ( - + 24, 41 ) / - COALESCE ( + + 5, 52 ) * - + 1 + - 49 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-1927
SELECT + COUNT ( * ) * NULLIF ( - 66, - + MAX ( - 96 ) + + 80 + - - 57 * + 94 * COALESCE ( - + 24, 41 ) / - COALESCE ( + + 5, 52 ) * - + 1 + - 49 ) AS col2
----
-66

query I rowsort
SELECT + 56 - - 91 AS col2
----
147

query I rowsort
SELECT + 74 * + ( 90 ) AS col2
----
6660

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT DISTINCT - MIN( ALL 74 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT - MIN ( ALL 74 ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT + - COUNT( 45 ) * - 31 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-1931
SELECT + - COUNT ( 45 ) * - 31 AS col0
----
31

query I rowsort
SELECT ALL - 60 + + 82 - + 46
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1933
SELECT + - CAST( - COUNT( * ) AS SIGNED ) - - ( - + 33 ) DIV 8 + - + 71 - - 94 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-1933
SELECT + - CAST ( - COUNT ( * ) AS INTEGER ) - - ( - + 33 ) / 8 + - + 71 - - 94 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT DISTINCT + 90 + - COUNT( * ) + - MIN( DISTINCT 62 ) * 58 * CASE COUNT( * ) WHEN + 83 THEN + + CASE 69 WHEN 19 THEN + 12 + - 39 * + NULLIF ( - - 57, - CASE + 4 WHEN MAX( - 64 ) THEN - 83 WHEN + - 44 * 38 * 22 THEN - 16 END + - 64 + 72 ) WHEN 34 THEN NULL END WHEN - 67 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT + 90 + - COUNT ( * ) + - MIN ( DISTINCT 62 ) * 58 * CASE COUNT ( * ) WHEN + 83 THEN + + CASE 69 WHEN 19 THEN + 12 + - 39 * + NULLIF ( - - 57, - CASE + 4 WHEN MAX ( - 64 ) THEN - 83 WHEN + - 44 * 38 * 22 THEN - 16 END + - 64 + 72 ) WHEN 34 THEN NULL END WHEN - 67 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1935
SELECT + 10 - + 29 * CAST( + 8 AS SIGNED ) - + NULLIF ( COUNT( * ), + + 37 * - 11 + ( + CAST( NULL AS SIGNED ) ) * + 40 * 45 - + 93 - + COUNT( * ) / - + 87 )
----
-223

skipif mysql # not compatible
query I rowsort label-1935
SELECT + 10 - + 29 * CAST ( + 8 AS INTEGER ) - + NULLIF ( COUNT ( * ), + + 37 * - 11 + ( + CAST ( NULL AS INTEGER ) ) * + 40 * 45 - + 93 - + COUNT ( * ) / - + 87 )
----
-223

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

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL 93 + - COUNT ( * ) / + - COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT ALL 7 + + 11 + 32 + - - 66 * + + COUNT( * ) AS col0
----
116

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL 7 + + 11 + 32 + - - 66 * + + COUNT ( * ) AS col0
----
116

query I rowsort
SELECT DISTINCT - 66 * + 18 * - 62 * - ( 68 ) AS col2
----
-5008608

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT + MIN( ALL + ( + + 64 ) ) + - CASE - COUNT( * ) WHEN + 2 THEN + ( + 22 ) + + 80 + - 16 - + COALESCE ( - NULLIF ( - + 50, - + 10 ), 13, COUNT( * ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT + MIN ( ALL + ( + + 64 ) ) + - CASE - COUNT ( * ) WHEN + 2 THEN + ( + 22 ) + + 80 + - 16 - + COALESCE ( - NULLIF ( - + 50, - + 10 ), 13, COUNT ( * ) ) END AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - 22 * + + 31 AS col1
----
-682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1942
SELECT 3 / + COUNT( + 68 ) + - CAST( NULL AS SIGNED ) * + 73 * 49 / - + ( - 85 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1942
SELECT 3 / + COUNT ( + 68 ) + - CAST ( NULL AS INTEGER ) * + 73 * 49 / - + ( - 85 ) col1
----
NULL

query I rowsort
SELECT + 92 * 56 AS col1
----
5152

query I rowsort
SELECT + 94 + + 29 * 27
----
877

query I rowsort
SELECT + 53 * 17 col0
----
901

query I rowsort
SELECT - 59 * + 37
----
-2183

query I rowsort
SELECT - ( - 58 ) * - + 96 + - 44 * - 81
----
-2004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1948
SELECT 27 * + + 49 * - ( CAST( 61 AS SIGNED ) ) + - 37 * - COUNT( DISTINCT + 4 )
----
-80666

skipif mysql # not compatible
query I rowsort label-1948
SELECT 27 * + + 49 * - ( CAST ( 61 AS INTEGER ) ) + - 37 * - COUNT ( DISTINCT + 4 )
----
-80666

query I rowsort
SELECT - 23 * + 80
----
-1840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1950
SELECT ALL + NULLIF ( + + 77, + 23 + 81 + + + CAST( NULL AS SIGNED ) )
----
77

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL + NULLIF ( + + 77, + 23 + 81 + + + CAST ( NULL AS INTEGER ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT - COUNT( * ) - COALESCE ( - 23, + COUNT( * ) - - - 19 * + 17 * - - 64, - COUNT( * ) * 38 * 99 )
----
22

skipif mysql # not compatible
query I rowsort label-1951
SELECT - COUNT ( * ) - COALESCE ( - 23, + COUNT ( * ) - - - 19 * + 17 * - - 64, - COUNT ( * ) * 38 * 99 )
----
22

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

skipif mysql # not compatible
query I rowsort label-1952
SELECT DISTINCT + COUNT ( * ) * + 69 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT - 64 * - 88 + + COUNT( * )
----
5633

skipif mysql # not compatible
query I rowsort label-1953
SELECT - 64 * - 88 + + COUNT ( * )
----
5633

query I rowsort
SELECT - 80 + 84 * - 21 AS col0
----
-1844

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1955
SELECT + ( + COUNT( * ) ) DIV - 25 AS col1, + MIN( + 29 ) AS col0
----
0
29

skipif mysql # not compatible
query II rowsort label-1955
SELECT + ( + COUNT ( * ) ) / - 25 AS col1, + MIN ( + 29 ) AS col0
----
0
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT ALL MIN( DISTINCT - 15 ) * - + 47 * + + COUNT( * ) + 26 AS col0
----
731

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL MIN ( DISTINCT - 15 ) * - + 47 * + + COUNT ( * ) + 26 AS col0
----
731

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT ALL - COUNT( * ) + 47 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL - COUNT ( * ) + 47 AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1958
SELECT DISTINCT + 75 DIV - + 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT + 75 / - + 97 AS col2
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1960
SELECT ALL COUNT( * ) + - NULLIF ( - 40, CAST( NULL AS SIGNED ) ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL COUNT ( * ) + - NULLIF ( - 40, CAST ( NULL AS INTEGER ) ) AS col0
----
41

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1962
SELECT ALL + CASE - 10 WHEN + 65 * + - SUM( + - 14 ) + - 68 THEN + 84 + + + CAST( NULL AS SIGNED ) WHEN + 42 + ( - 66 ) THEN CAST( + COUNT( * ) AS SIGNED ) END * + MIN( DISTINCT - ( - - ( + 32 ) ) ) + - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL + CASE - 10 WHEN + 65 * + - SUM ( + - 14 ) + - 68 THEN + 84 + + + CAST ( NULL AS INTEGER ) WHEN + 42 + ( - 66 ) THEN CAST ( + COUNT ( * ) AS INTEGER ) END * + MIN ( DISTINCT - ( - - ( + 32 ) ) ) + - 57 AS col0
----
NULL

query I rowsort
SELECT ALL - 19 + + 33
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-1964
SELECT DISTINCT - 61 + + 77 DIV - 45
----
-62

skipif mysql # not compatible
query I rowsort label-1964
SELECT DISTINCT - 61 + + 77 / - 45
----
-62

query II rowsort
SELECT - - 23 * 60 - 65 * - + 67 + 2 AS col0, 69 col1
----
5737
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT + COUNT( * ) + - CASE 91 WHEN + + 13 THEN + 88 * 23 + - 14 * + 28 + + 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1966
SELECT + COUNT ( * ) + - CASE 91 WHEN + + 13 THEN + 88 * 23 + - 14 * + 28 + + 29 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT - + NULLIF ( - 81, - - COUNT( * ) ) * + + 33 AS col0
----
2673

skipif mysql # not compatible
query I rowsort label-1967
SELECT - + NULLIF ( - 81, - - COUNT ( * ) ) * + + 33 AS col0
----
2673

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT - NULLIF ( - 32, - 48 + COUNT( * ) + - 79 * ( 26 ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-1969
SELECT - NULLIF ( - 32, - 48 + COUNT ( * ) + - 79 * ( 26 ) ) AS col0
----
32

query I rowsort
SELECT + - 67 + + 37
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1971
SELECT ALL + - CASE - 2 WHEN - - ( MAX( ALL 65 ) ) + + 45 + COUNT( * ) THEN + 84 * - 75 WHEN + COUNT( * ) + + CAST( NULL AS SIGNED ) * + 37 THEN NULL END - + CAST( - - 20 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL + - CASE - 2 WHEN - - ( MAX ( ALL 65 ) ) + + 45 + COUNT ( * ) THEN + 84 * - 75 WHEN + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + 37 THEN NULL END - + CAST ( - - 20 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( 21 ) col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1973
SELECT ALL COUNT( * ) - - AVG ( - CAST( NULL AS SIGNED ) ) AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1973
SELECT ALL COUNT ( * ) - - AVG ( - CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( * )
----
NULL
1

query I rowsort
SELECT DISTINCT + 54 * - - 89
----
4806

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT ALL - NULLIF ( - 2, - SUM( - 2 ) * - - 18 * - + 61 / - 97 + 4 ) * + 88
----
176

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL - NULLIF ( - 2, - SUM ( - 2 ) * - - 18 * - + 61 / - 97 + 4 ) * + 88
----
176

query I rowsort
SELECT + - 16 + - 41
----
-57

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

query I rowsort
SELECT + - ( + + 19 ) - 22 AS col1
----
-41

query I rowsort
SELECT - - 66 * + 92
----
6072

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1982
SELECT CAST( NULL AS SIGNED ), - 93 - - - 84 - + + 26 AS col0
----
NULL
-203

skipif mysql # not compatible
query II rowsort label-1982
SELECT CAST ( NULL AS INTEGER ), - 93 - - - 84 - + + 26 AS col0
----
NULL
-203

query II rowsort
SELECT DISTINCT + 96, + 76 AS col1
----
96
76

onlyif mysql # aggregate syntax: 
query II rowsort label-1984
SELECT ALL 11 * ( - SUM( + + 10 ) ) AS col2, + 77
----
-110
77

skipif mysql # not compatible
query II rowsort label-1984
SELECT ALL 11 * ( - SUM ( + + 10 ) ) AS col2, + 77
----
-110
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1985
SELECT + 23 DIV COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-1985
SELECT + 23 / COUNT ( * ) AS col0
----
23

query I rowsort
SELECT ALL 29 * - - 69 col0
----
2001

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT 23 * + - 40 * + 40 + + COUNT( ALL - 34 ) AS col2
----
-36799

skipif mysql # not compatible
query I rowsort label-1987
SELECT 23 * + - 40 * + 40 + + COUNT ( ALL - 34 ) AS col2
----
-36799

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1988
SELECT CAST( - 36 AS SIGNED ) col2, 15
----
-36
15

skipif mysql # not compatible
query II rowsort label-1988
SELECT CAST ( - 36 AS INTEGER ) col2, 15
----
-36
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1989
SELECT + 60 DIV + 38 + + CASE 76 WHEN COUNT( * ) THEN NULL WHEN 54 * 91 * + 61 THEN NULL WHEN + 58 THEN NULL ELSE - COUNT( * ) END
----
0

skipif mysql # not compatible
query I rowsort label-1989
SELECT + 60 / + 38 + + CASE 76 WHEN COUNT ( * ) THEN NULL WHEN 54 * 91 * + 61 THEN NULL WHEN + 58 THEN NULL ELSE - COUNT ( * ) END
----
0

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

skipif mysql # not compatible
query I rowsort label-1990
SELECT + 87 / 70 * + COUNT ( * ) AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT 79 + NULLIF ( 23, - + COUNT( * ) ) - + 47 + - 2
----
53

skipif mysql # not compatible
query I rowsort label-1992
SELECT 79 + NULLIF ( 23, - + COUNT ( * ) ) - + 47 + - 2
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-1993
SELECT DISTINCT - COALESCE ( COUNT( * ), - + CASE WHEN NOT 16 IS NULL THEN + ( - 92 ) * + 70 * - NULLIF ( - - 75, - - ( - 36 ) + - - 40 ) - + 4 ELSE NULL END ) col2, - 83 AS col2
----
-1
-83

skipif mysql # not compatible
query II rowsort label-1993
SELECT DISTINCT - COALESCE ( COUNT ( * ), - + CASE WHEN NOT 16 IS NULL THEN + ( - 92 ) * + 70 * - NULLIF ( - - 75, - - ( - 36 ) + - - 40 ) - + 4 ELSE NULL END ) col2, - 83 AS col2
----
-1
-83

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

query II rowsort
SELECT 63 * 36 AS col1, 90 AS col0
----
2268
90

query I rowsort
SELECT ALL + 61 + + 52 - - 86 - 53 * - 50
----
2849

query I rowsort
SELECT DISTINCT 56 * + - 36 AS col2
----
-2016

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

query I rowsort
SELECT DISTINCT - 16 + - 26 + 97 col1
----
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT ALL + - COUNT( - 54 ) + - 97 + + 60 + + 44
----
6

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL + - COUNT ( - 54 ) + - 97 + + 60 + + 44
----
6

query I rowsort
SELECT + ( - 85 ) - - ( - 16 ) AS col2
----
-101

query II rowsort
SELECT 2 AS col1, + CASE - 19 WHEN + 99 THEN - 15 * 95 / 33 END
----
2
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2004
SELECT + 45 - - 72 DIV + 2
----
81

skipif mysql # not compatible
query I rowsort label-2004
SELECT + 45 - - 72 / + 2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT - COUNT( * ) * + + NULLIF ( + 70, - COUNT( * ) ) * 3 + + COUNT( * )
----
-209

skipif mysql # not compatible
query I rowsort label-2005
SELECT - COUNT ( * ) * + + NULLIF ( + 70, - COUNT ( * ) ) * 3 + + COUNT ( * )
----
-209

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

query II rowsort
SELECT DISTINCT + 3, 86 AS col0
----
3
86

query I rowsort
SELECT ALL - 16 - - 35 AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2009
SELECT ALL - - 90 / + 66 * - + NULLIF ( 95, + + 63 ) + - - 37 + 40 + + 67 - 93 * - - 58 + + - 28 + CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL ) / + 82 * + MIN( 85 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL - - 90 / + 66 * - + NULLIF ( 95, + + 63 ) + - - 37 + 40 + + 67 - 93 * - - 58 + + - 28 + CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ) / + 82 * + MIN ( 85 ) AS col2
----
NULL

query II rowsort
SELECT ALL 87, + 11 AS col2
----
87
11

query II rowsort
SELECT DISTINCT 54 AS col2, - 55 AS col2
----
54
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2012
SELECT ALL - + COALESCE ( - 71, 75, 73 + + 52 + + 85 ) * - COALESCE ( + - COUNT( * ), + ( CASE COALESCE ( + 43, - 48 / - ( - 7 ) / 54 + - 53 * + 49 + + - 88 + - 44 ) WHEN + - 26 THEN + + 22 + NULLIF ( + 93, + CAST( 2 AS SIGNED ) + 35 ) * - + 56 * 55 ELSE 55 * + 80 END ), + COALESCE ( + 48, + CAST( NULL AS SIGNED ) ) ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL - + COALESCE ( - 71, 75, 73 + + 52 + + 85 ) * - COALESCE ( + - COUNT ( * ), + ( CASE COALESCE ( + 43, - 48 / - ( - 7 ) / 54 + - 53 * + 49 + + - 88 + - 44 ) WHEN + - 26 THEN + + 22 + NULLIF ( + 93, + CAST ( 2 AS INTEGER ) + 35 ) * - + 56 * 55 ELSE 55 * + 80 END ), + COALESCE ( + 48, + CAST ( NULL AS INTEGER ) ) ) AS col0
----
71

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

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

query I rowsort
SELECT + 22 + 11 - 35 AS col2
----
-2

query I rowsort
SELECT NULLIF ( + - 56, - 36 ) AS col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2016
SELECT CAST( NULL AS SIGNED ) + - - 5 + - 46 - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-2016
SELECT CAST ( NULL AS INTEGER ) + - - 5 + - 46 - 24
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2017
SELECT 77 DIV + 56, + COUNT( ( - 72 ) ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-2017
SELECT 77 / + 56, + COUNT ( ( - 72 ) ) AS col0
----
1
1

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

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

query I rowsort
SELECT 23 - 24 col0
----
-1

query I rowsort
SELECT DISTINCT + COALESCE ( + - 92, + 26 ) col1
----
-92

query I rowsort
SELECT 54 * 26
----
1404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2022
SELECT + CASE NULLIF ( + - 43, - 7 + + + CASE + + 51 WHEN - 93 + COUNT( * ) THEN NULL WHEN 44 THEN + + 17 * + 46 * - 4 + - 49 END + + 62 ) WHEN - 6 THEN - - COALESCE ( + + 25, MAX( + - 77 ) ) WHEN - + COUNT( * ) THEN NULL ELSE 87 * + 15 END / CAST( NULL AS SIGNED ) + 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT + CASE NULLIF ( + - 43, - 7 + + + CASE + + 51 WHEN - 93 + COUNT ( * ) THEN NULL WHEN 44 THEN + + 17 * + 46 * - 4 + - 49 END + + 62 ) WHEN - 6 THEN - - COALESCE ( + + 25, MAX ( + - 77 ) ) WHEN - + COUNT ( * ) THEN NULL ELSE 87 * + 15 END / CAST ( NULL AS INTEGER ) + 36 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2023
SELECT 73 DIV - - 51 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2023
SELECT 73 / - - 51 AS col2
----
1

query I rowsort
SELECT ALL 75 + + 46 AS col1
----
121

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

skipif mysql # not compatible
query I rowsort label-2025
SELECT 44 + CAST ( + - 45 AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT ALL 69 + + - 1 * - NULLIF ( + 37, - 84 ) col1
----
106

query I rowsort
SELECT DISTINCT 57 * + 63
----
3591

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT COUNT( ALL + - 45 ) * + - MAX( DISTINCT + 43 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-2029
SELECT COUNT ( ALL + - 45 ) * + - MAX ( DISTINCT + 43 ) AS col2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2030
SELECT ALL - COALESCE ( + MIN( 78 ), CAST( + 80 AS SIGNED ) ) DIV + 82 * + - 45 * - CASE 32 WHEN - 87 * - ( + 47 ) + - ( + COALESCE ( 67, 6 * - 58 + ( - 78 ) + - 69 + - CAST( - - COUNT( * ) AS SIGNED ) + + CAST( NULL AS SIGNED ) + + 29 * + 49 ) ) THEN + 67 ELSE + 47 * + 84 END DIV 31 * - 34
----
0

skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL - COALESCE ( + MIN ( 78 ), CAST ( + 80 AS INTEGER ) ) / + 82 * + - 45 * - CASE 32 WHEN - 87 * - ( + 47 ) + - ( + COALESCE ( 67, 6 * - 58 + ( - 78 ) + - 69 + - CAST ( - - COUNT ( * ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) + + 29 * + 49 ) ) THEN + 67 ELSE + 47 * + 84 END / 31 * - 34
----
0

query I rowsort
SELECT ALL 9 + + ( + 19 )
----
28

query I rowsort
SELECT 59 * 82
----
4838

query I rowsort
SELECT + 92 * 67 * - 16 + + 71
----
-98553

query I rowsort
SELECT ( - 89 ) + - 13 * 14 AS col1
----
-271

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT + COUNT( * ) * NULLIF ( - 54, + 74 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-2035
SELECT + COUNT ( * ) * NULLIF ( - 54, + 74 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT - 29 + - 98 + + + 66 + - COUNT( * ) - + 0 * 8
----
-62

skipif mysql # not compatible
query I rowsort label-2036
SELECT - 29 + - 98 + + + 66 + - COUNT ( * ) - + 0 * 8
----
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2037
SELECT ALL - - 55 * - CASE 13 WHEN COUNT( * ) THEN + 45 WHEN - 68 * + SUM( 3 ) THEN + + 50 + + NULLIF ( - 89, - 3 * + CASE - - 26 WHEN COUNT( + 35 ) THEN + - 24 * 67 / + 60 / 61 ELSE NULL END * + SUM( - + 74 ) * ( 8 ) + - 8 - - + COALESCE ( - - COUNT( * ), CAST( + 97 AS DECIMAL ) + - 55 ) + NULLIF ( - 44, - + 68 ) + + 88 + + 96 / + 58 * + 79 / - 6 ) * + 23 + + 36 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL - - 55 * - CASE 13 WHEN COUNT ( * ) THEN + 45 WHEN - 68 * + SUM ( 3 ) THEN + + 50 + + NULLIF ( - 89, - 3 * + CASE - - 26 WHEN COUNT ( + 35 ) THEN + - 24 * 67 / + 60 / 61 ELSE NULL END * + SUM ( - + 74 ) * ( 8 ) + - 8 - - + COALESCE ( - - COUNT ( * ), CAST ( + 97 AS REAL ) + - 55 ) + NULLIF ( - 44, - + 68 ) + + 88 + + 96 / + 58 * + 79 / - 6 ) * + 23 + + 36 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT + ( - 77 ), - 85 AS col2
----
-77
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2039
SELECT DISTINCT - NULLIF ( - COALESCE ( + - 25, + 97 DIV ( - 66 ) + - + 30 - 21 + - 99 + + - 59 - 15 DIV - - ( - - 66 ) + - 38 + - + MIN( DISTINCT + 79 ) * - 86 * - 81 * + COUNT( * ) ), + + CAST( - CAST( + 23 AS SIGNED ) AS SIGNED ) * 74 * + 93 ) * + - COUNT( * ) DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT - NULLIF ( - COALESCE ( + - 25, + 97 / ( - 66 ) + - + 30 - 21 + - 99 + + - 59 - 15 / - - ( - - 66 ) + - 38 + - + MIN ( DISTINCT + 79 ) * - 86 * - 81 * + COUNT ( * ) ), + + CAST ( - CAST ( + 23 AS INTEGER ) AS INTEGER ) * 74 * + 93 ) * + - COUNT ( * ) / 60
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-2040
SELECT ( - 45 ) + + 85 AS col1, + 64 + - - 80, 39 + MIN( DISTINCT + - 34 ) AS col1
----
40
144
5

skipif mysql # not compatible
query III rowsort label-2040
SELECT ( - 45 ) + + 85 AS col1, + 64 + - - 80, 39 + MIN ( DISTINCT + - 34 ) AS col1
----
40
144
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2041
SELECT + 68 + + - COUNT( * ) AS col2, 90 * 1
----
67
90

skipif mysql # not compatible
query II rowsort label-2041
SELECT + 68 + + - COUNT ( * ) AS col2, 90 * 1
----
67
90

query I rowsort
SELECT 92 + + + 56 + - 86
----
62

query I rowsort
SELECT 79 * - - 72 + 25 + + 80
----
5793

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2044
SELECT ALL + - 75 + + + COALESCE ( + CASE - 94 WHEN - 83 * 26 - + 68 THEN NULL WHEN + 25 / + + 60 + + COUNT( * ) * AVG ( ALL 70 ) * + 35 * + + 8 + COUNT( * ) + - 40 * 87 * ( + COUNT( * ) ) THEN + - 86 + - 35 - + 68 - - + ( + + 69 ) - - CAST( + 42 AS SIGNED ) + + - COUNT( * ) * - - 32 * + 4 END, - - ( + 92 ) + - CAST( NULL AS DECIMAL ) * 35 ) + 97 * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL + - 75 + + + COALESCE ( + CASE - 94 WHEN - 83 * 26 - + 68 THEN NULL WHEN + 25 / + + 60 + + COUNT ( * ) * AVG ( ALL 70 ) * + 35 * + + 8 + COUNT ( * ) + - 40 * 87 * ( + COUNT ( * ) ) THEN + - 86 + - 35 - + 68 - - + ( + + 69 ) - - CAST ( + 42 AS INTEGER ) + + - COUNT ( * ) * - - 32 * + 4 END, - - ( + 92 ) + - CAST ( NULL AS REAL ) * 35 ) + 97 * - 23
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2045
SELECT DISTINCT COUNT( CAST( + 92 AS DECIMAL ) )
----
1

skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT COUNT ( CAST ( + 92 AS REAL ) )
----
1

query I rowsort
SELECT ALL 11 + 65
----
76

query I rowsort
SELECT 54 + + 95
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT DISTINCT + 60 + COUNT( * ) + + + 91
----
152

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT + 60 + COUNT ( * ) + + + 91
----
152

onlyif mysql # aggregate syntax: 
query II rowsort label-2049
SELECT ALL COUNT( * ) AS col2, - NULLIF ( - ( - 77 ), COUNT( * ) / - 64 * + 23 + - COUNT( * ) - - - 92 + - ( + 34 ) + - 5 * + 53 ) * - 62 + COUNT( * )
----
1
4775

skipif mysql # not compatible
query II rowsort label-2049
SELECT ALL COUNT ( * ) AS col2, - NULLIF ( - ( - 77 ), COUNT ( * ) / - 64 * + 23 + - COUNT ( * ) - - - 92 + - ( + 34 ) + - 5 * + 53 ) * - 62 + COUNT ( * )
----
1
4775

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

query I rowsort
SELECT 63 + + 80 col2
----
143

query II rowsort
SELECT + 59 AS col0, - 76
----
59
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-2053
SELECT - 81 DIV + - 26 col0
----
3

skipif mysql # not compatible
query I rowsort label-2053
SELECT - 81 / + - 26 col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT - 40 - + 70 + + + COUNT( * )
----
-109

skipif mysql # not compatible
query I rowsort label-2054
SELECT - 40 - + 70 + + + COUNT ( * )
----
-109

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT DISTINCT MIN( 74 ) * + 94 + - 42 + - 99 AS col0
----
6815

skipif mysql # not compatible
query I rowsort label-2056
SELECT DISTINCT MIN ( 74 ) * + 94 + - 42 + - 99 AS col0
----
6815

query II rowsort
SELECT DISTINCT + 40 AS col1, - 86
----
40
-86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2058
SELECT + 27 * - - ( + 82 ), 30 AS col2, + 97 + 11 * - 26 + - CAST( NULL AS SIGNED ) AS col2
----
2214
30
NULL

skipif mysql # not compatible
query III rowsort label-2058
SELECT + 27 * - - ( + 82 ), 30 AS col2, + 97 + 11 * - 26 + - CAST ( NULL AS INTEGER ) AS col2
----
2214
30
NULL

query II rowsort
SELECT ALL + 53 AS col0, - 90 * + 46 - 60 AS col1
----
53
-4200

query II rowsort
SELECT + 35 AS col0, 32 AS col2
----
35
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT MAX( DISTINCT 57 ) col1
----
57

skipif mysql # not compatible
query I rowsort label-2061
SELECT MAX ( DISTINCT 57 ) col1
----
57

query I rowsort
SELECT - 91 * - 20
----
1820

query I rowsort
SELECT DISTINCT 3 * + 55 AS col1
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2064
SELECT - CAST( - - 34 AS SIGNED ) * - 83 + - CAST( - - 14 AS SIGNED ) AS col2
----
2808

skipif mysql # not compatible
query I rowsort label-2064
SELECT - CAST ( - - 34 AS INTEGER ) * - 83 + - CAST ( - - 14 AS INTEGER ) AS col2
----
2808

query I rowsort
SELECT + 32 * - 93
----
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT - MAX( - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-2066
SELECT - MAX ( - 56 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2067
SELECT + NULLIF ( + 92, + 28 * - AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) + - + 0 * - COUNT( * ) ) * + 32 / - CASE + 68 WHEN 97 THEN - - 66 END * - + 62 + + 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2067
SELECT + NULLIF ( + 92, + 28 * - AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + - + 0 * - COUNT ( * ) ) * + 32 / - CASE + 68 WHEN 97 THEN - - 66 END * - + 62 + + 23 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2068
SELECT ALL + - 35 * - 28 - - COALESCE ( - 18, + 4 DIV - + 16, CAST( - 88 AS SIGNED ) ), 54 + - ( + 23 ) AS col0
----
962
31

skipif mysql # not compatible
query II rowsort label-2068
SELECT ALL + - 35 * - 28 - - COALESCE ( - 18, + 4 / - + 16, CAST ( - 88 AS INTEGER ) ), 54 + - ( + 23 ) AS col0
----
962
31

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2070
SELECT + 37 AS col1, + 6 + - + 23 * COUNT( * ) DIV - - 65 AS col0
----
37
6

skipif mysql # not compatible
query II rowsort label-2070
SELECT + 37 AS col1, + 6 + - + 23 * COUNT ( * ) / - - 65 AS col0
----
37
6

query I rowsort
SELECT + + 11 * + - 96 col1
----
-1056

query I rowsort
SELECT ALL + 5 * 64 AS col2
----
320

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

query I rowsort
SELECT + 20 + - - 95 + + 3
----
118

query I rowsort
SELECT + 90 * 38 AS col2
----
3420

onlyif mysql # DIV for integer division: 
query I rowsort label-2076
SELECT - + ( - + 32 ) DIV 32 * 69 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-2076
SELECT - + ( - + 32 ) / 32 * 69 AS col1
----
69

query II rowsort
SELECT ALL 83, 7 AS col1
----
83
7

query I rowsort
SELECT + - 42 * 25 * - - 90 AS col0
----
-94500

query I rowsort
SELECT + - 84 + 75 * - + 34 AS col2
----
-2634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2080
SELECT DISTINCT - - 85 * MIN( DISTINCT + COALESCE ( 23, + - ( 24 ) ) ) DIV - 85 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT - - 85 * MIN ( DISTINCT + COALESCE ( 23, + - ( 24 ) ) ) / - 85 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL - + 35 + - NULLIF ( 56, + ( - COALESCE ( - AVG ( ALL - 41 ), 17 - 72 ) ) ) + 27 * - + COUNT( * ) * + + ( + 76 ) * - 57 * + + 13 + - - 46 + + 70 AS col0
----
1520557

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL - + 35 + - NULLIF ( 56, + ( - COALESCE ( - AVG ( ALL - 41 ), 17 - 72 ) ) ) + 27 * - + COUNT ( * ) * + + ( + 76 ) * - 57 * + + 13 + - - 46 + + 70 AS col0
----
1520557

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2082
SELECT ALL CASE CAST( - 71 AS SIGNED ) WHEN 25 THEN + 19 + - COUNT( * ) - - COUNT( * ) * + 5 * + COUNT( * ) WHEN + 27 * - MIN( + 82 ) + + + 80 THEN NULL ELSE NULL END * + 56 + + 5 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL CASE CAST ( - 71 AS INTEGER ) WHEN 25 THEN + 19 + - COUNT ( * ) - - COUNT ( * ) * + 5 * + COUNT ( * ) WHEN + 27 * - MIN ( + 82 ) + + + 80 THEN NULL ELSE NULL END * + 56 + + 5 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT DISTINCT COUNT( - 15 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT COUNT ( - 15 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT ALL - 65 + 57 * 15 + + + COUNT( * )
----
791

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL - 65 + 57 * 15 + + + COUNT ( * )
----
791

query I rowsort
SELECT - ( + 51 ) col2
----
-51

query I rowsort
SELECT ALL NULLIF ( - + 25, + 19 / - 2 + ( ( - 70 ) ) )
----
-25

query I rowsort
SELECT ALL + 47 + + 70
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-2088
SELECT + 40 + + 28 + + + 50 - + 15 * + SUM( DISTINCT - 14 ) * + + COUNT( * ) AS col1, 85
----
328
85

skipif mysql # not compatible
query II rowsort label-2088
SELECT + 40 + + 28 + + + 50 - + 15 * + SUM ( DISTINCT - 14 ) * + + COUNT ( * ) AS col1, 85
----
328
85

query I rowsort
SELECT DISTINCT + 29 + - + 50 AS col0
----
-21

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

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL ( MIN ( - 87 ) )
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-2091
SELECT - COALESCE ( + COALESCE ( 18, 21 ), - + CASE 80 WHEN 27 + ( - 76 ) THEN NULL ELSE ( + 66 ) END * 83 ) DIV - - 40
----
0

skipif mysql # not compatible
query I rowsort label-2091
SELECT - COALESCE ( + COALESCE ( 18, 21 ), - + CASE 80 WHEN 27 + ( - 76 ) THEN NULL ELSE ( + 66 ) END * 83 ) / - - 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT - ( - 41 ) + + 89 * - COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-2092
SELECT - ( - 41 ) + + 89 * - COUNT ( * ) AS col2
----
-48

query I rowsort
SELECT ALL + 11 * 29 AS col1
----
319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2094
SELECT - CASE CAST( NULL AS SIGNED ) WHEN - 27 * - SUM( 76 ) THEN NULL ELSE - CASE ( + CASE - + 28 WHEN - 94 THEN + - COUNT( + + 16 ) + + + 30 WHEN - - 24 THEN NULL WHEN + 84 THEN ( - - COUNT( * ) ) + - - COUNT( * ) * AVG ( ALL - 40 ) + + 55 END ) WHEN + ( - + 71 ) / + 69 + + + 80 THEN - - 26 WHEN - CAST( + 59 AS SIGNED ) * 86 + - 44 THEN NULL ELSE NULL END END * + + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2094
SELECT - CASE CAST ( NULL AS INTEGER ) WHEN - 27 * - SUM ( 76 ) THEN NULL ELSE - CASE ( + CASE - + 28 WHEN - 94 THEN + - COUNT ( + + 16 ) + + + 30 WHEN - - 24 THEN NULL WHEN + 84 THEN ( - - COUNT ( * ) ) + - - COUNT ( * ) * AVG ( ALL - 40 ) + + 55 END ) WHEN + ( - + 71 ) / + 69 + + + 80 THEN - - 26 WHEN - CAST ( + 59 AS INTEGER ) * 86 + - 44 THEN NULL ELSE NULL END END * + + COUNT ( * ) col2
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2097
SELECT - CASE + - 5 WHEN + NULLIF ( + + 1, + 44 * 69 ) + COALESCE ( + 12, - COUNT( - 89 ) * + + 88 - - 45 + + - 82 ) THEN - AVG ( ALL - - NULLIF ( - + 35, + - 76 ) ) * + - 32 WHEN - 37 THEN NULL END + + 83 + - 47 * + 68 - - ( - MIN( 59 ) ) AS col2, + COUNT( * ) * - CASE + 84 WHEN - 34 DIV - 30 THEN NULL ELSE - COUNT( + - 96 ) END DIV + 3 + + + 79 AS col1
----
NULL
79

skipif mysql # not compatible
query II rowsort label-2097
SELECT - CASE + - 5 WHEN + NULLIF ( + + 1, + 44 * 69 ) + COALESCE ( + 12, - COUNT ( - 89 ) * + + 88 - - 45 + + - 82 ) THEN - AVG ( ALL - - NULLIF ( - + 35, + - 76 ) ) * + - 32 WHEN - 37 THEN NULL END + + 83 + - 47 * + 68 - - ( - MIN ( 59 ) ) AS col2, + COUNT ( * ) * - CASE + 84 WHEN - 34 / - 30 THEN NULL ELSE - COUNT ( + - 96 ) END / + 3 + + + 79 AS col1
----
NULL
79

query I rowsort
SELECT ( + - 69 ) col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT ALL - 39 * + COUNT( * ) * - MAX( - 80 )
----
-3120

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL - 39 * + COUNT ( * ) * - MAX ( - 80 )
----
-3120

query I rowsort
SELECT + 32 * 1 AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2101
SELECT ( + + ( + CAST( 28 AS SIGNED ) ) ), + ( - + ( - - 47 ) ) col0
----
28
-47

skipif mysql # not compatible
query II rowsort label-2101
SELECT ( + + ( + CAST ( 28 AS INTEGER ) ) ), + ( - + ( - - 47 ) ) col0
----
28
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2102
SELECT ALL - CAST( NULL AS DECIMAL ) * + 48 + - 28 + + - COUNT( * ) - 63 + CAST( - + 18 AS SIGNED ) - + 91 / - 56 * + 43 * + MIN( DISTINCT 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL - CAST ( NULL AS REAL ) * + 48 + - 28 + + - COUNT ( * ) - 63 + CAST ( - + 18 AS INTEGER ) - + 91 / - 56 * + 43 * + MIN ( DISTINCT 32 )
----
NULL

query I rowsort
SELECT 98 * + 48 + - - 89
----
4793

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT DISTINCT + NULLIF ( + 0, - COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2104
SELECT DISTINCT + NULLIF ( + 0, - COUNT ( * ) ) AS col0
----
0

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

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

query I rowsort
SELECT - + 58 * - 8 + 70 - - 23
----
557

query I rowsort
SELECT + CASE + 43 WHEN + ( - - 43 ) THEN + - 45 END col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2108
SELECT - COALESCE ( + ( + 32 ), + + 23 ) * - - 79 / + CASE - ( - 10 ) WHEN + + 72 THEN + CAST( NULL AS SIGNED ) WHEN + + 67 THEN NULL END * - COUNT( * ) * + - 39 + - MIN( 73 ) + + 59 + + 41 + - 56 * - CAST( NULL AS SIGNED ) * 34 * + COUNT( * ) * - - NULLIF ( 65, + 92 * NULLIF ( - 36, + 47 ) - 69 - 25 + MIN( - 35 ) ) + 92 + - CASE - NULLIF ( + - 56, 19 ) WHEN COALESCE ( 35, + - 41, 20 / - COUNT( * ) * + 88 * + + 58 ) THEN NULL WHEN + 92 * + 32 + - - 19 THEN + - 75 * 9 + + - COUNT( * ) END * + 25 + + NULLIF ( SUM( - 26 ) + + 83, NULLIF ( - 6, COUNT( * ) ) / COUNT( * ) ) * - CAST( - 71 - 23 AS DECIMAL ) + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-2108
SELECT - COALESCE ( + ( + 32 ), + + 23 ) * - - 79 / + CASE - ( - 10 ) WHEN + + 72 THEN + CAST ( NULL AS INTEGER ) WHEN + + 67 THEN NULL END * - COUNT ( * ) * + - 39 + - MIN ( 73 ) + + 59 + + 41 + - 56 * - CAST ( NULL AS INTEGER ) * 34 * + COUNT ( * ) * - - NULLIF ( 65, + 92 * NULLIF ( - 36, + 47 ) - 69 - 25 + MIN ( - 35 ) ) + 92 + - CASE - NULLIF ( + - 56, 19 ) WHEN COALESCE ( 35, + - 41, 20 / - COUNT ( * ) * + 88 * + + 58 ) THEN NULL WHEN + 92 * + 32 + - - 19 THEN + - 75 * 9 + + - COUNT ( * ) END * + 25 + + NULLIF ( SUM ( - 26 ) + + 83, NULLIF ( - 6, COUNT ( * ) ) / COUNT ( * ) ) * - CAST ( - 71 - 23 AS REAL ) + + 57
----
NULL

query I rowsort
SELECT - - 63 + 22
----
85

query I rowsort
SELECT - + 88 + 5
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2111
SELECT DISTINCT + CAST( + 12 AS SIGNED ) * - 98 + - 63 + COUNT( * ) AS col2
----
-1238

skipif mysql # not compatible
query I rowsort label-2111
SELECT DISTINCT + CAST ( + 12 AS INTEGER ) * - 98 + - 63 + COUNT ( * ) AS col2
----
-1238

onlyif mysql # aggregate syntax: 
query II rowsort label-2112
SELECT DISTINCT 95 * - COUNT( * ) * - 0 + + 5, ( - + 44 ) AS col0
----
5
-44

skipif mysql # not compatible
query II rowsort label-2112
SELECT DISTINCT 95 * - COUNT ( * ) * - 0 + + 5, ( - + 44 ) AS col0
----
5
-44

query I rowsort
SELECT + 77 + 56
----
133

query I rowsort
SELECT + COALESCE ( + 11, 76 )
----
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT ALL - MIN( DISTINCT + 0 ) + + 7
----
7

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL - MIN ( DISTINCT + 0 ) + + 7
----
7

query I rowsort
SELECT ALL 35 + + + 34 AS col1
----
69

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

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

query I rowsort
SELECT 82 * 42 AS col0
----
3444

query I rowsort
SELECT ALL 52 * 61 AS col0
----
3172

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT ALL 28 * SUM( + + COALESCE ( + 36, + - 31 ) )
----
1008

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL 28 * SUM ( + + COALESCE ( + 36, + - 31 ) )
----
1008

query II rowsort
SELECT ALL 99 - - 30 + - - 20 * + 88 * + ( + 73 ) AS col0, + 78 + + 24 + - + 87 - - 16 AS col0
----
128609
31

query I rowsort
SELECT 79 + + 52
----
131

onlyif mysql # DIV for integer division: 
query II rowsort label-2124
SELECT DISTINCT 16 AS col2, 49 DIV - 57
----
16
0

skipif mysql # not compatible
query II rowsort label-2124
SELECT DISTINCT 16 AS col2, 49 / - 57
----
16
0

query I rowsort
SELECT 88 + - 38 AS col1
----
50

query I rowsort
SELECT DISTINCT 27 * 77
----
2079

query II rowsort
SELECT + 25 AS col2, - 78
----
25
-78

query I rowsort
SELECT 7 * - 23
----
-161

onlyif mysql # aggregate syntax: 
query II rowsort label-2129
SELECT DISTINCT - COALESCE ( - + COUNT( * ), 99 * + 45 + - COALESCE ( + - MAX( 22 ), + ( - 98 ), - COUNT( * ) * - - 11 ) ) AS col2, + ( - CASE + 22 WHEN - + COUNT( * ) THEN NULL ELSE COUNT( * ) END ) col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-2129
SELECT DISTINCT - COALESCE ( - + COUNT ( * ), 99 * + 45 + - COALESCE ( + - MAX ( 22 ), + ( - 98 ), - COUNT ( * ) * - - 11 ) ) AS col2, + ( - CASE + 22 WHEN - + COUNT ( * ) THEN NULL ELSE COUNT ( * ) END ) col2
----
1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2130
SELECT ALL + 80 DIV - 9 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL + 80 / - 9 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-2131
SELECT ALL + 71 * ( - + 91 ) AS col1, + 75 - - CASE - + 37 WHEN - + 48 * - - 11 + + - COUNT( * ) + - 84 / - - COUNT( * ) + + AVG ( ALL + 33 ) THEN - 28 WHEN + 50 - 92 * 58 * 39 + - - COUNT( - 16 ) * + 18 * - + 20 THEN - 52 - + 56 * + - 41 WHEN + 50 THEN NULL END + COUNT( * ) AS col2
----
-6461
NULL

skipif mysql # not compatible
query II rowsort label-2131
SELECT ALL + 71 * ( - + 91 ) AS col1, + 75 - - CASE - + 37 WHEN - + 48 * - - 11 + + - COUNT ( * ) + - 84 / - - COUNT ( * ) + + AVG ( ALL + 33 ) THEN - 28 WHEN + 50 - 92 * 58 * 39 + - - COUNT ( - 16 ) * + 18 * - + 20 THEN - 52 - + 56 * + - 41 WHEN + 50 THEN NULL END + COUNT ( * ) AS col2
----
-6461
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2132
SELECT DISTINCT - COUNT( * ), + COALESCE ( - - ( + 49 ), - + 43 ) AS col2
----
-1
49

skipif mysql # not compatible
query II rowsort label-2132
SELECT DISTINCT - COUNT ( * ), + COALESCE ( - - ( + 49 ), - + 43 ) AS col2
----
-1
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT DISTINCT - MAX( DISTINCT + 34 ) col2
----
-34

skipif mysql # not compatible
query I rowsort label-2133
SELECT DISTINCT - MAX ( DISTINCT + 34 ) col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT DISTINCT - MAX( 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-2134
SELECT DISTINCT - MAX ( 65 )
----
-65

query I rowsort
SELECT DISTINCT - 63 * 24 AS col0
----
-1512

query I rowsort
SELECT DISTINCT - 54 * + 39
----
-2106

onlyif mysql # DIV for integer division: 
query I rowsort label-2137
SELECT 42 DIV ( + 90 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2137
SELECT 42 / ( + 90 ) AS col1
----
0

query I rowsort
SELECT 13 * - 8
----
-104

query I rowsort
SELECT ALL + 82 + 65 * + 98
----
6452

query I rowsort
SELECT 22 * 56 AS col2
----
1232

onlyif mysql # DIV for integer division: 
query I rowsort label-2141
SELECT 32 DIV 7
----
4

skipif mysql # not compatible
query I rowsort label-2141
SELECT 32 / 7
----
4

query I rowsort
SELECT ALL - 46 + 89
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2143
SELECT ALL - 9 + + NULLIF ( + 86 + - CAST( CASE + 15 WHEN + NULLIF ( NULLIF ( 64, 85 ), + 42 + 97 ) THEN 92 WHEN - COUNT( + 59 ) * + 84 - 28 THEN NULL END AS SIGNED ), + 15 / 41 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL - 9 + + NULLIF ( + 86 + - CAST ( CASE + 15 WHEN + NULLIF ( NULLIF ( 64, 85 ), + 42 + 97 ) THEN 92 WHEN - COUNT ( + 59 ) * + 84 - 28 THEN NULL END AS INTEGER ), + 15 / 41 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2144
SELECT ALL 95 + - CAST( + 58 AS SIGNED ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL 95 + - CAST ( + 58 AS INTEGER ) AS col1
----
37

query I rowsort
SELECT DISTINCT 54 + - 31
----
23

query I rowsort
SELECT DISTINCT + 64 + - 52 AS col1
----
12

query I rowsort
SELECT - 59 * - 18 + - 11 AS col0
----
1051

query I rowsort
SELECT CASE 62 WHEN - 38 THEN NULL WHEN 3 THEN - 0 WHEN 77 THEN 78 END * 64 col0
----
NULL

query I rowsort
SELECT ALL + 46 + 1
----
47

query I rowsort
SELECT 38 + - 16 AS col2
----
22

query I rowsort
SELECT 47 * 41 + 92
----
2019

query I rowsort
SELECT DISTINCT 11 * 5 AS col2
----
55

query I rowsort
SELECT ALL + 47 - - 80 AS col1
----
127

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

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

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

query I rowsort
SELECT 82 - + 51 * - 65 AS col1
----
3397

query I rowsort
SELECT 7 * - 95
----
-665

query I rowsort
SELECT 78 * - 82 AS col1
----
-6396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2159
SELECT CASE 61 WHEN + 73 * + ( + 94 / 84 ) THEN CASE 12 WHEN COUNT( * ) THEN NULL WHEN + AVG ( ALL CAST( NULL AS SIGNED ) ) * - 55 THEN - 51 WHEN + 77 / + 78 + + CASE CAST( NULL AS SIGNED ) WHEN + 87 * + 10 + + NULLIF ( + 68, COUNT( * ) + - MIN( - 65 ) ) THEN NULLIF ( - COUNT( * ), 45 ) * + 36 ELSE - 2 + 95 END * 1 THEN NULL END + 48 * 70 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2159
SELECT CASE 61 WHEN + 73 * + ( + 94 / 84 ) THEN CASE 12 WHEN COUNT ( * ) THEN NULL WHEN + AVG ( ALL CAST ( NULL AS INTEGER ) ) * - 55 THEN - 51 WHEN + 77 / + 78 + + CASE CAST ( NULL AS INTEGER ) WHEN + 87 * + 10 + + NULLIF ( + 68, COUNT ( * ) + - MIN ( - 65 ) ) THEN NULLIF ( - COUNT ( * ), 45 ) * + 36 ELSE - 2 + 95 END * 1 THEN NULL END + 48 * 70 END + COUNT ( * )
----
NULL

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

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

query I rowsort
SELECT DISTINCT 98 * + 14 AS col2
----
1372

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2162
SELECT ALL 9 DIV - CAST( + 20 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL 9 / - CAST ( + 20 AS INTEGER ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2163
SELECT 97 DIV 5 col0
----
19

skipif mysql # not compatible
query I rowsort label-2163
SELECT 97 / 5 col0
----
19

query I rowsort
SELECT ALL ( 86 ) * 33 AS col2
----
2838

query I rowsort
SELECT ( 38 ) * 14
----
532

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT COUNT( 57 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2166
SELECT COUNT ( 57 ) AS col1
----
1

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

skipif mysql # not compatible
query I rowsort label-2167
SELECT DISTINCT - + 51 * 69 + - COUNT ( * ) * 37
----
-3556

onlyif mysql # DIV for integer division: 
query I rowsort label-2168
SELECT ALL + - 84 * 60 + 8 DIV + 92 AS col2
----
-5040

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL + - 84 * 60 + 8 / + 92 AS col2
----
-5040

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

skipif mysql # not compatible
query I rowsort label-2169
SELECT ( 40 ) * COUNT ( * )
----
40

query I rowsort
SELECT 43 * 42 col1
----
1806

query I rowsort
SELECT ALL + 85 * - 35 + 72 AS col0
----
-2903

query I rowsort
SELECT 30 + 16
----
46

query I rowsort
SELECT - + 21 * - 70 + 67
----
1537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2174
SELECT 71 * 23 + CASE CAST( NULL AS SIGNED ) WHEN 53 THEN - 81 WHEN 49 / 25 THEN NULL WHEN + 86 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2174
SELECT 71 * 23 + CASE CAST ( NULL AS INTEGER ) WHEN 53 THEN - 81 WHEN 49 / 25 THEN NULL WHEN + 86 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - COALESCE ( - 71, + 83, + 27 * 32 + - 84 ) + + 52 col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ALL + MIN( DISTINCT 54 ) * - SUM( ALL 23 ) + 74
----
-1168

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL + MIN ( DISTINCT 54 ) * - SUM ( ALL 23 ) + 74
----
-1168

query I rowsort
SELECT + 45 + 66 col2
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2178
SELECT ALL - - CAST( NULL AS SIGNED ) * - NULLIF ( + 5 * 77, 55 * + COUNT( * ) + 42 * 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL - - CAST ( NULL AS INTEGER ) * - NULLIF ( + 5 * 77, 55 * + COUNT ( * ) + 42 * 76 )
----
NULL

query I rowsort
SELECT DISTINCT - - 12 + COALESCE ( + 83, 5 + - 30 ) AS col1
----
95

query I rowsort
SELECT ALL + 25 + 6
----
31

query I rowsort
SELECT 56 * - 37 + - 6
----
-2078

query I rowsort
SELECT + 12 * COALESCE ( 78 * - CASE WHEN NOT - 22 * - COALESCE ( + 49, + 30 + 82 ) IS NULL THEN NULL ELSE - 51 END, + 37 ) AS col0
----
444

query I rowsort
SELECT ALL - - 36 * - 61 AS col0
----
-2196

query I rowsort
SELECT - 25 * + 79 AS col0
----
-1975

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT ALL COALESCE ( + COALESCE ( 1, - 97 * COUNT( * ) ), - 85, 60 ) - 17
----
-16

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL COALESCE ( + COALESCE ( 1, - 97 * COUNT ( * ) ), - 85, 60 ) - 17
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2186
SELECT DISTINCT + CAST( MIN( ALL 93 ) AS SIGNED ) * COUNT( ALL + 66 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT + CAST ( MIN ( ALL 93 ) AS INTEGER ) * COUNT ( ALL + 66 ) AS col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2187
SELECT DISTINCT - 70 DIV - + 67
----
1

skipif mysql # not compatible
query I rowsort label-2187
SELECT DISTINCT - 70 / - + 67
----
1

query I rowsort
SELECT ALL + 15 - + 93 AS col0
----
-78

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

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

query I rowsort
SELECT DISTINCT 40 - 59 * 41 AS col1
----
-2379

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2191
SELECT DISTINCT CASE CASE - 51 WHEN ( 33 ) THEN - 71 / 17 ELSE NULL END WHEN 5 THEN NULL WHEN ( - CAST( NULL AS DECIMAL ) ) / 67 THEN NULL ELSE 84 END
----
84

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT CASE CASE - 51 WHEN ( 33 ) THEN - 71 / 17 ELSE NULL END WHEN 5 THEN NULL WHEN ( - CAST ( NULL AS REAL ) ) / 67 THEN NULL ELSE 84 END
----
84

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

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL NULLIF ( - 39, 33 + COUNT ( * ) )
----
-39

query I rowsort
SELECT - 75 * - + 74
----
5550

query I rowsort
SELECT - 81 * 67 AS col2
----
-5427

query I rowsort
SELECT DISTINCT - 98 * - - 28
----
-2744

query I rowsort
SELECT - 45 * - 32 * + 72
----
103680

query I rowsort
SELECT DISTINCT 57 * + + 94
----
5358

query I rowsort
SELECT DISTINCT - 98 * 12 AS col1
----
-1176

query I rowsort
SELECT ALL - 80 * - 35
----
2800

query I rowsort
SELECT DISTINCT - 63 + - 32 + + 27 * - 74 AS col0
----
-2093

query I rowsort
SELECT ALL + ( 34 ) + + 94 AS col2
----
128

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

skipif mysql # not compatible
query I rowsort label-2202
SELECT + 67 / - + 66
----
-1

query I rowsort
SELECT - + ( 6 ) * 72
----
-432

onlyif mysql # DIV for integer division: 
query I rowsort label-2204
SELECT ALL + 6 DIV 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL + 6 / 72 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2205
SELECT ALL - CAST( NULL AS SIGNED ) * + + 1 + ( 67 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 1 + ( 67 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2206
SELECT DISTINCT + CASE 0 WHEN 26 THEN 3 DIV + ( 66 * NULLIF ( COUNT( * ) DIV + 2, - 22 ) ) + - CAST( NULL AS SIGNED ) WHEN + 80 THEN + 72 + + 62 WHEN - COUNT( * ) * - 91 - CASE + ( 27 ) WHEN + 95 THEN + MIN( + 12 ) ELSE COUNT( * ) END THEN NULL ELSE + 9 END DIV + 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2206
SELECT DISTINCT + CASE 0 WHEN 26 THEN 3 / + ( 66 * NULLIF ( COUNT ( * ) / + 2, - 22 ) ) + - CAST ( NULL AS INTEGER ) WHEN + 80 THEN + 72 + + 62 WHEN - COUNT ( * ) * - 91 - CASE + ( 27 ) WHEN + 95 THEN + MIN ( + 12 ) ELSE COUNT ( * ) END THEN NULL ELSE + 9 END / + 50 AS col0
----
0

query I rowsort
SELECT ALL 1 * 21 + + 5 AS col1
----
26

query I rowsort
SELECT DISTINCT + 56 * + 14 AS col2
----
784

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT DISTINCT - + COUNT( * ) * + + 49 + 46
----
-3

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT - + COUNT ( * ) * + + 49 + 46
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT ALL + 9 * + SUM( + 4 ) - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL + 9 * + SUM ( + 4 ) - COUNT ( * )
----
35

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

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

query I rowsort
SELECT - + 44 * 69 + + 68 * + 24 - - 21 AS col2
----
-1383

query I rowsort
SELECT - + ( - 12 ) * 78 AS col2
----
936

query I rowsort
SELECT DISTINCT + - NULLIF ( - + 73, + 61 ) AS col0
----
73

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT + MIN( - 32 ) + + - 88 AS col2
----
-120

skipif mysql # not compatible
query I rowsort label-2217
SELECT + MIN ( - 32 ) + + - 88 AS col2
----
-120

query I rowsort
SELECT ALL 70 * - 27 * 97
----
-183330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2219
SELECT + MIN( - 87 ) DIV - - ( - COUNT( ALL + 37 ) )
----
87

skipif mysql # not compatible
query I rowsort label-2219
SELECT + MIN ( - 87 ) / - - ( - COUNT ( ALL + 37 ) )
----
87

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

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

query I rowsort
SELECT ALL + 57 * + 5
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT + NULLIF ( - MIN( ALL 29 ), + ( + 84 ) * 11 + + 61 ) + - 39 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-2222
SELECT + NULLIF ( - MIN ( ALL 29 ), + ( + 84 ) * 11 + + 61 ) + - 39 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT - 34 - + COUNT( ALL 98 ) * + COALESCE ( 11 * 72, + 87 + 63, - 20 ) AS col1
----
-826

skipif mysql # not compatible
query I rowsort label-2223
SELECT - 34 - + COUNT ( ALL 98 ) * + COALESCE ( 11 * 72, + 87 + 63, - 20 ) AS col1
----
-826

onlyif mysql # DIV for integer division: 
query I rowsort label-2224
SELECT - ( 21 ) DIV 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2224
SELECT - ( 21 ) / 85 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT - 4 + - 39 - ( + COUNT( * ) ) * 23 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-2225
SELECT - 4 + - 39 - ( + COUNT ( * ) ) * 23 AS col1
----
-66

query I rowsort
SELECT - 22 * 71
----
-1562

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2228
SELECT - 74, MAX( - + 95 ) + COUNT( * ) * - 5 AS col1
----
-74
-100

skipif mysql # not compatible
query II rowsort label-2228
SELECT - 74, MAX ( - + 95 ) + COUNT ( * ) * - 5 AS col1
----
-74
-100

query I rowsort
SELECT ALL + 12 + + 92 AS col1
----
104

query I rowsort
SELECT DISTINCT + 40 + 42
----
82

query I rowsort
SELECT - 91 * 71 * - 67 AS col0
----
432887

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2232
SELECT 6 col2, 2 + - + CAST( 35 AS SIGNED ) AS col2
----
6
-33

skipif mysql # not compatible
query II rowsort label-2232
SELECT 6 col2, 2 + - + CAST ( 35 AS INTEGER ) AS col2
----
6
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT - 79 - + 76 * - 93 + CASE + COUNT( * ) WHEN + ( + 7 ) * ( - 30 ) THEN NULL WHEN + MIN( ALL + 34 ) * 58 + 54 / - 53 THEN + 16 * + 97 ELSE - 85 * 33 + 92 * COUNT( ALL NULLIF ( 11, - 56 + 90 / 40 ) ) END
----
4276

skipif mysql # not compatible
query I rowsort label-2233
SELECT - 79 - + 76 * - 93 + CASE + COUNT ( * ) WHEN + ( + 7 ) * ( - 30 ) THEN NULL WHEN + MIN ( ALL + 34 ) * 58 + 54 / - 53 THEN + 16 * + 97 ELSE - 85 * 33 + 92 * COUNT ( ALL NULLIF ( 11, - 56 + 90 / 40 ) ) END
----
4276

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

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

query I rowsort
SELECT - 55 * 21 AS col2
----
-1155

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT + + 99 * MAX( - + 4 ) AS col2
----
-396

skipif mysql # not compatible
query I rowsort label-2236
SELECT + + 99 * MAX ( - + 4 ) AS col2
----
-396

query I rowsort
SELECT ALL + 19 + - NULLIF ( 76, 30 * 44 + + 87 * + 87 ) + 46 * - 41
----
-1943

query I rowsort
SELECT ALL + 60 * + - 26
----
-1560

query II rowsort
SELECT 98 AS col1, 84 AS col1
----
98
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT ALL + + MIN( 18 ) * 22 - 89 col2
----
307

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL + + MIN ( 18 ) * 22 - 89 col2
----
307

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT + 66 * 62 - - 55 - - COALESCE ( + COUNT( * ), 36, + COUNT( * ) )
----
4148

skipif mysql # not compatible
query I rowsort label-2243
SELECT + 66 * 62 - - 55 - - COALESCE ( + COUNT ( * ), 36, + COUNT ( * ) )
----
4148

query II rowsort
SELECT + + 29, 31 AS col2
----
29
31

query I rowsort
SELECT ALL + ( - 37 ) - + - 54 col0
----
17

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2248
SELECT + 98 DIV + - 1 + - - 84 + ( 22 ) * 81 AS col0
----
1768

skipif mysql # not compatible
query I rowsort label-2248
SELECT + 98 / + - 1 + - - 84 + ( 22 ) * 81 AS col0
----
1768

query II rowsort
SELECT ALL - 42, - 3 * + + 14 AS col0
----
-42
-42

query I rowsort
SELECT - 16 * 50 AS col2
----
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT 31 + + - SUM( DISTINCT 5 )
----
26

skipif mysql # not compatible
query I rowsort label-2251
SELECT 31 + + - SUM ( DISTINCT 5 )
----
26

query I rowsort
SELECT ALL 74 * - 84 * + 30 AS col2
----
-186480

onlyif mysql # DIV for integer division: 
query I rowsort label-2253
SELECT - 43 + - + 32 + 95 * 54 DIV - 45 AS col1
----
-189

skipif mysql # not compatible
query I rowsort label-2253
SELECT - 43 + - + 32 + 95 * 54 / - 45 AS col1
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT 53 * + ( - MIN( DISTINCT + 83 ) )
----
-4399

skipif mysql # not compatible
query I rowsort label-2254
SELECT 53 * + ( - MIN ( DISTINCT + 83 ) )
----
-4399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2255
SELECT + ( 10 ) * CAST( NULL AS SIGNED ) + + + 28 + 83 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2255
SELECT + ( 10 ) * CAST ( NULL AS INTEGER ) + + + 28 + 83 col0
----
NULL

query I rowsort
SELECT DISTINCT 29 * - ( + 25 ) col2
----
-725

query I rowsort
SELECT 66 * 31 AS col2
----
2046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2258
SELECT NULLIF ( + 92, ( COUNT( * ) ) + - CAST( 93 AS SIGNED ) ) + ( - 77 ) DIV + 90 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-2258
SELECT NULLIF ( + 92, ( COUNT ( * ) ) + - CAST ( 93 AS INTEGER ) ) + ( - 77 ) / + 90 AS col1
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-2259
SELECT ALL 22 + + 35, COUNT( * ) AS col0
----
57
1

skipif mysql # not compatible
query II rowsort label-2259
SELECT ALL 22 + + 35, COUNT ( * ) AS col0
----
57
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2260
SELECT DISTINCT + COUNT( * ) * - - 93 AS col1, - 31 * + - 86 + 3
----
93
2669

skipif mysql # not compatible
query II rowsort label-2260
SELECT DISTINCT + COUNT ( * ) * - - 93 AS col1, - 31 * + - 86 + 3
----
93
2669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2261
SELECT ALL - 80 + 40 - + MAX( + 60 ) - NULLIF ( - COUNT( * ) + - 33, 55 * - 62 ) * + CAST( 95 AS SIGNED ) AS col1
----
3130

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL - 80 + 40 - + MAX ( + 60 ) - NULLIF ( - COUNT ( * ) + - 33, 55 * - 62 ) * + CAST ( 95 AS INTEGER ) AS col1
----
3130

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT ( + ( - SUM( + 35 ) ) ) * - 85
----
2975

skipif mysql # not compatible
query I rowsort label-2262
SELECT ( + ( - SUM ( + 35 ) ) ) * - 85
----
2975

onlyif mysql # DIV for integer division: 
query I rowsort label-2263
SELECT 23 DIV + - COALESCE ( + 88, 49, 2 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2263
SELECT 23 / + - COALESCE ( + 88, 49, 2 ) AS col1
----
0

query I rowsort
SELECT ALL 56 + - 88 + + + 64 * - - ( + 10 ) - 1 * + 82 col1
----
526

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT DISTINCT NULLIF ( + 81, + 90 ) * - + 45 + - CASE + 74 WHEN - 72 * - 37 THEN 76 * NULLIF ( COUNT( * ), + 39 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2265
SELECT DISTINCT NULLIF ( + 81, + 90 ) * - + 45 + - CASE + 74 WHEN - 72 * - 37 THEN 76 * NULLIF ( COUNT ( * ), + 39 ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2266
SELECT ALL 74 + - + 69 DIV - 99 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL 74 + - + 69 / - 99 AS col0
----
74

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT DISTINCT + ( - COUNT( * ) ) + COALESCE ( - - MAX( DISTINCT ( + 55 ) ), + 72 )
----
54

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT + ( - COUNT ( * ) ) + COALESCE ( - - MAX ( DISTINCT ( + 55 ) ), + 72 )
----
54

query I rowsort
SELECT - 76 * - 46 * 55 AS col0
----
192280

query I rowsort
SELECT ALL 45 * - 53 AS col0
----
-2385

onlyif mysql # DIV for integer division: 
query I rowsort label-2272
SELECT DISTINCT - + 97 DIV + 71
----
-1

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT - + 97 / + 71
----
-1

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

query I rowsort
SELECT DISTINCT + ( + + 10 ) - 52
----
-42

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

skipif mysql # not compatible
query I rowsort label-2275
SELECT - + MIN ( - 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT CASE - 54 WHEN + 68 + + 30 + 84 THEN - COUNT( * ) WHEN + 39 + + NULLIF ( - NULLIF ( COUNT( * ), 61 + 15 ), + COUNT( * ) + + 44 * + COUNT( * ) ) THEN 78 * SUM( - 45 ) ELSE + CASE + 56 WHEN 20 THEN - COUNT( * ) - - 93 WHEN 68 THEN + 47 * 0 END END + - 92 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2276
SELECT CASE - 54 WHEN + 68 + + 30 + 84 THEN - COUNT ( * ) WHEN + 39 + + NULLIF ( - NULLIF ( COUNT ( * ), 61 + 15 ), + COUNT ( * ) + + 44 * + COUNT ( * ) ) THEN 78 * SUM ( - 45 ) ELSE + CASE + 56 WHEN 20 THEN - COUNT ( * ) - - 93 WHEN 68 THEN + 47 * 0 END END + - 92 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2277
SELECT DISTINCT - 46 - + + COUNT( * ) AS col0, + 51 AS col1
----
-47
51

skipif mysql # not compatible
query II rowsort label-2277
SELECT DISTINCT - 46 - + + COUNT ( * ) AS col0, + 51 AS col1
----
-47
51

query I rowsort
SELECT ALL + - 42 * + 12 + + 61 - - 15 AS col1
----
-428

onlyif mysql # DIV for integer division: 
query I rowsort label-2279
SELECT DISTINCT + - 17 * 20 DIV + 90
----
-3

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT + - 17 * 20 / + 90
----
-3

query I rowsort
SELECT DISTINCT + 44 * ( 49 ) * - - 74 + - ( + 92 )
----
159452

query II rowsort
SELECT 15 * 37 AS col1, + 53 + 81
----
555
134

query I rowsort
SELECT + - NULLIF ( + 59, - 30 ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT ALL + + 50 * + + 51 * COALESCE ( + + COUNT( * ), + MAX( ALL 22 ) )
----
2550

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL + + 50 * + + 51 * COALESCE ( + + COUNT ( * ), + MAX ( ALL 22 ) )
----
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT ( + COUNT( * ) ) * + - 99 - 73 + + 7 * - 60
----
-592

skipif mysql # not compatible
query I rowsort label-2284
SELECT ( + COUNT ( * ) ) * + - 99 - 73 + + 7 * - 60
----
-592

onlyif mysql # DIV for integer division: 
query I rowsort label-2285
SELECT 66 DIV + COALESCE ( + + NULLIF ( 73, + - 15 ), 49 ) * - 7 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2285
SELECT 66 / + COALESCE ( + + NULLIF ( 73, + - 15 ), 49 ) * - 7 AS col0
----
0

query I rowsort
SELECT NULLIF ( + + 2, + NULLIF ( - + 31, - - 59 ) ) * + 60 AS col1
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2287
SELECT ALL + 57 + + - 89 + + CAST( NULL AS SIGNED ) - - COUNT( * ) * 70 / 82
----
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL + 57 + + - 89 + + CAST ( NULL AS INTEGER ) - - COUNT ( * ) * 70 / 82
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 12 + - 16 * + + 53
----
-836

query I rowsort
SELECT ALL 16 + - 92 AS col2
----
-76

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

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

query I rowsort
SELECT DISTINCT - 39 + + 67 AS col0
----
28

query I rowsort
SELECT ALL 69 + - 40 + - ( COALESCE ( 69, + 23 ) ) * 97 * 85 AS col0
----
-568876

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT 58 * - + ( - - 94 ) * + + 82 + - 69 * - COUNT( * ) - 44
----
-447039

skipif mysql # not compatible
query I rowsort label-2294
SELECT 58 * - + ( - - 94 ) * + + 82 + - 69 * - COUNT ( * ) - 44
----
-447039

query II rowsort
SELECT 37, + 21 col2
----
37
21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT ALL CASE + - SUM( 22 ) WHEN + 43 + + 81 + - 2 THEN - COUNT( * ) ELSE NULL END * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL CASE + - SUM ( 22 ) WHEN + 43 + + 81 + - 2 THEN - COUNT ( * ) ELSE NULL END * 75
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2298
SELECT ALL 33 + + - COALESCE ( 83, - + CASE - ( 65 ) WHEN 42 + COUNT( DISTINCT - 12 + + 88 DIV + 6 ) * 44 THEN NULL WHEN CAST( NULL AS SIGNED ) DIV 25 THEN + ( 9 ) + - SUM( + 4 + 18 ) END * + 37 ) DIV 45
----
32

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL 33 + + - COALESCE ( 83, - + CASE - ( 65 ) WHEN 42 + COUNT ( DISTINCT - 12 + + 88 / + 6 ) * 44 THEN NULL WHEN CAST ( NULL AS INTEGER ) / 25 THEN + ( 9 ) + - SUM ( + 4 + 18 ) END * + 37 ) / 45
----
32

query I rowsort
SELECT NULLIF ( + 28, + 48 ) + 3
----
31

query I rowsort
SELECT DISTINCT COALESCE ( 69, 77 + 41 + - 32 ) AS col0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2301
SELECT ALL COALESCE ( - - 83, - 42 * + - 96 * 98 + 13 * + ( + 68 DIV + ( - 17 ) + 88 ) ) * + 44 AS col2
----
3652

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL COALESCE ( - - 83, - 42 * + - 96 * 98 + 13 * + ( + 68 / + ( - 17 ) + 88 ) ) * + 44 AS col2
----
3652

query I rowsort
SELECT ALL - AVG ( ALL + CASE 36 WHEN - - ( + 73 ) * + 96 THEN + 14 WHEN + 24 - 58 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT + + MAX( DISTINCT 24 ) + - - 54 + + 70 - - 6 AS col1
----
154

skipif mysql # not compatible
query I rowsort label-2303
SELECT + + MAX ( DISTINCT 24 ) + - - 54 + + 70 - - 6 AS col1
----
154

query I rowsort
SELECT + - 89 + + 72
----
-17

query I rowsort
SELECT - 9 * - + 81 * + + 61 + + 39
----
44508

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

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

query I rowsort
SELECT DISTINCT + - 90 * + - 77 AS col0
----
6930

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

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

query I rowsort
SELECT - + ( + 31 ) - - - ( - 78 ) AS col0
----
47

query I rowsort
SELECT DISTINCT 68 * + 42 * + 58
----
165648

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

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

query I rowsort
SELECT + + 76 * 53 AS col0
----
4028

query I rowsort
SELECT + CASE + 32 WHEN + 43 THEN - + 20 END + + 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT + 38 * COUNT( * ) + + 9
----
47

skipif mysql # not compatible
query I rowsort label-2314
SELECT + 38 * COUNT ( * ) + + 9
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2315
SELECT ALL + 53 * - CASE 55 WHEN + - 42 * - 47 THEN NULL WHEN - 32 THEN MIN( ALL - 50 ) WHEN + CAST( MIN( 56 ) AS DECIMAL ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL + 53 * - CASE 55 WHEN + - 42 * - 47 THEN NULL WHEN - 32 THEN MIN ( ALL - 50 ) WHEN + CAST ( MIN ( 56 ) AS REAL ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2316
SELECT 62 DIV - COUNT( - 20 ) + - 74 + - 2 * - MAX( 2 ) AS col2
----
-132

skipif mysql # not compatible
query I rowsort label-2316
SELECT 62 / - COUNT ( - 20 ) + - 74 + - 2 * - MAX ( 2 ) AS col2
----
-132

query I rowsort
SELECT ALL 56 * - ( - 96 ) * - 25 * - 10 + + + 0 AS col2
----
1344000

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT DISTINCT - NULLIF ( + 38, + 99 * 90 ) * + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT - NULLIF ( + 38, + 99 * 90 ) * + COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT NULLIF ( + MAX( + + 11 ), - 51 )
----
11

skipif mysql # not compatible
query I rowsort label-2319
SELECT NULLIF ( + MAX ( + + 11 ), - 51 )
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2320
SELECT - 99 + + COUNT( * ) DIV + 46 + - 73 * + - 14 AS col1
----
923

skipif mysql # not compatible
query I rowsort label-2320
SELECT - 99 + + COUNT ( * ) / + 46 + - 73 * + - 14 AS col1
----
923

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT ALL - 53 * COUNT( * ) * 42 AS col0
----
-2226

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL - 53 * COUNT ( * ) * 42 AS col0
----
-2226

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT ALL + CASE 75 WHEN 55 THEN NULL WHEN + 26 - ( - + 26 ) THEN NULL WHEN + COUNT( + ( 16 ) ) + + 18 THEN NULL ELSE - 85 * 35 END * SUM( DISTINCT 63 ) + - COUNT( * ) * 20
----
-187445

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL + CASE 75 WHEN 55 THEN NULL WHEN + 26 - ( - + 26 ) THEN NULL WHEN + COUNT ( + ( 16 ) ) + + 18 THEN NULL ELSE - 85 * 35 END * SUM ( DISTINCT 63 ) + - COUNT ( * ) * 20
----
-187445

query II rowsort
SELECT DISTINCT - 35 * - + 52 AS col2, + 51
----
1820
51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT ALL - 97 * - 59 * - COUNT( * ) + - 40 AS col1
----
-5763

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL - 97 * - 59 * - COUNT ( * ) + - 40 AS col1
----
-5763

onlyif mysql # DIV for integer division: 
query I rowsort label-2326
SELECT DISTINCT + 14 * - 37 + - 47 DIV 49 + - 85 + ( 48 ) DIV 36 AS col0
----
-602

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT + 14 * - 37 + - 47 / 49 + - 85 + ( 48 ) / 36 AS col0
----
-602

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT - 15 DIV - - 68 col1
----
0

skipif mysql # not compatible
query I rowsort label-2327
SELECT - 15 / - - 68 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2328
SELECT ALL 27 DIV + - 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL 27 / + - 28 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT ALL + COUNT( * ) * - 60 * - + 27 * - - 28 - - 68 + COUNT( 35 ) + - 68 AS col0
----
45361

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL + COUNT ( * ) * - 60 * - + 27 * - - 28 - - 68 + COUNT ( 35 ) + - 68 AS col0
----
45361

onlyif mysql # DIV for integer division: 
query I rowsort label-2331
SELECT + 85 DIV 28 * - + 82
----
-246

skipif mysql # not compatible
query I rowsort label-2331
SELECT + 85 / 28 * - + 82
----
-246

onlyif mysql # DIV for integer division: 
query I rowsort label-2332
SELECT ALL - ( + + 37 ) DIV + + 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL - ( + + 37 ) / + + 69 AS col1
----
0

query I rowsort
SELECT ALL 55 * + 59 AS col0
----
3245

query I rowsort
SELECT + ( - CASE - 78 WHEN - 6 THEN NULLIF ( 47, 54 / 52 ) END ) AS col2
----
NULL

query II rowsort
SELECT + 76, - 36 AS col0
----
76
-36

query I rowsort
SELECT DISTINCT ( - 79 ) * 74 + 72
----
-5774

query I rowsort
SELECT + 7 * - 81
----
-567

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2339
SELECT ALL 38, - COUNT( * ) DIV 92 AS col2
----
38
0

skipif mysql # not compatible
query II rowsort label-2339
SELECT ALL 38, - COUNT ( * ) / 92 AS col2
----
38
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2341
SELECT + - 66 * - + 36 + - 26 / - 62 + - 63 + + CAST( NULL AS SIGNED ) + + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2341
SELECT + - 66 * - + 36 + - 26 / - 62 + - 63 + + CAST ( NULL AS INTEGER ) + + 29 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT + 83 + + CAST( - + 8 AS SIGNED ) * - 77 * + 30
----
18563

skipif mysql # not compatible
query I rowsort label-2342
SELECT + 83 + + CAST ( - + 8 AS INTEGER ) * - 77 * + 30
----
18563

query I rowsort
SELECT + - 16 - 10 + 53 AS col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2344
SELECT + 40 DIV 79 col1
----
0

skipif mysql # not compatible
query I rowsort label-2344
SELECT + 40 / 79 col1
----
0

query I rowsort
SELECT + 10 + 4 AS col2
----
14

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

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

query II rowsort
SELECT - + 63 AS col2, 42
----
-63
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2348
SELECT - 79 * ( - 17 ) - - 4 + + COUNT( * ) DIV + CASE - COUNT( * ) WHEN ( 52 ) * 64 THEN - 55 WHEN 52 DIV - 30 THEN - 27 * - 81 + ( 19 ) * 0 WHEN 31 THEN NULL END + - 85 AS col2
----
1262

skipif mysql # not compatible
query I rowsort label-2348
SELECT - 79 * ( - 17 ) - - 4 + + COUNT ( * ) / + CASE - COUNT ( * ) WHEN ( 52 ) * 64 THEN - 55 WHEN 52 / - 30 THEN - 27 * - 81 + ( 19 ) * 0 WHEN 31 THEN NULL END + - 85 AS col2
----
1262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2349
SELECT ALL - 76 / + NULLIF ( + - CAST( NULL AS SIGNED ), - 97 + COUNT( * ) + - ( - 4 ) + - 45 * - ( 58 + + 46 * - 14 ) ) + CASE + 57 + - 44 WHEN 8 THEN + 94 * 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL - 76 / + NULLIF ( + - CAST ( NULL AS INTEGER ), - 97 + COUNT ( * ) + - ( - 4 ) + - 45 * - ( 58 + + 46 * - 14 ) ) + CASE + 57 + - 44 WHEN 8 THEN + 94 * 22 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2350
SELECT ALL + + 20 AS col0, - COALESCE ( - 8, COUNT( * ) ) DIV NULLIF ( + 26, + 1 ) col1
----
20
0

skipif mysql # not compatible
query II rowsort label-2350
SELECT ALL + + 20 AS col0, - COALESCE ( - 8, COUNT ( * ) ) / NULLIF ( + 26, + 1 ) col1
----
20
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2351
SELECT ALL 84 DIV 11 + - - 16 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL 84 / 11 + - - 16 AS col2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2352
SELECT DISTINCT 52 DIV - 48 + COALESCE ( - ( - 6 ), + 73 * + 5 + 44 DIV 34 + 24, 50 )
----
5

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT 52 / - 48 + COALESCE ( - ( - 6 ), + 73 * + 5 + 44 / 34 + 24, 50 )
----
5

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2354
SELECT ALL + 80 / - + 42 * 35 + + CAST( + CASE 59 WHEN 66 * 45 THEN + COUNT( - ( + 65 ) ) * 75 WHEN 77 / 27 + + NULLIF ( - 52, - 67 + + 11 ) THEN + COUNT( * ) END AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL + 80 / - + 42 * 35 + + CAST ( + CASE 59 WHEN 66 * 45 THEN + COUNT ( - ( + 65 ) ) * 75 WHEN 77 / 27 + + NULLIF ( - 52, - 67 + + 11 ) THEN + COUNT ( * ) END AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + 99 * - - 57 AS col0
----
5643

query II rowsort
SELECT ALL 64 * + 11 AS col2, ( - 11 ) - - 58 + 43 AS col2
----
704
90

query I rowsort
SELECT - 75 * - ( + 22 )
----
1650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2358
SELECT + CAST( + + 60 AS SIGNED ) col1
----
60

skipif mysql # not compatible
query I rowsort label-2358
SELECT + CAST ( + + 60 AS INTEGER ) col1
----
60

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

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL + COUNT ( * ) / - COUNT ( * ) - + 79
----
-80

query I rowsort
SELECT 95 * + - ( - 14 ) - - 94 AS col0
----
1424

query I rowsort
SELECT - 45 * + 56
----
-2520

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

skipif mysql # not compatible
query I rowsort label-2362
SELECT + MIN ( - - 94 )
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2363
SELECT - 15 - - CASE 88 WHEN + - CAST( + - 51 AS DECIMAL ) THEN - 89 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2363
SELECT - 15 - - CASE 88 WHEN + - CAST ( + - 51 AS REAL ) THEN - 89 END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2364
SELECT ALL - CAST( NULL AS SIGNED ) * - 58 AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2364
SELECT ALL - CAST ( NULL AS INTEGER ) * - 58 AS col0, COUNT ( * )
----
NULL
1

query I rowsort
SELECT DISTINCT - 86 * - 24 * ( - - 63 )
----
130032

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2367
SELECT - CAST( NULL AS SIGNED ) * 76 - ( - 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2367
SELECT - CAST ( NULL AS INTEGER ) * 76 - ( - 33 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2368
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ), + COUNT( DISTINCT + 62 )
----
1
1

skipif mysql # not compatible
query II rowsort label-2368
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ), + COUNT ( DISTINCT + 62 )
----
1
1

query I rowsort
SELECT 22 * + + 23 * + - ( - + ( - - 77 ) ) * - + 99
----
-3857238

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT - CASE SUM( DISTINCT + 43 ) WHEN - - 43 THEN + ( + 71 ) WHEN - 71 THEN NULL END col1
----
-71

skipif mysql # not compatible
query I rowsort label-2370
SELECT - CASE SUM ( DISTINCT + 43 ) WHEN - - 43 THEN + ( + 71 ) WHEN - 71 THEN NULL END col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT 61 * - + MAX( 2 ) + - - 82 + + - ( 5 ) + + 69 * 19
----
1266

skipif mysql # not compatible
query I rowsort label-2371
SELECT 61 * - + MAX ( 2 ) + - - 82 + + - ( 5 ) + + 69 * 19
----
1266

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2372
SELECT + MIN( + - 41 ) DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-2372
SELECT + MIN ( + - 41 ) / - 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT ALL NULLIF ( + - ( - MAX( + 69 ) ), - 65 / COUNT( * ) * - - ( 98 ) ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL NULLIF ( + - ( - MAX ( + 69 ) ), - 65 / COUNT ( * ) * - - ( 98 ) ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT CASE COUNT( * ) WHEN 6 + + + 76 THEN NULL ELSE 49 END * 88 AS col1
----
4312

skipif mysql # not compatible
query I rowsort label-2374
SELECT CASE COUNT ( * ) WHEN 6 + + + 76 THEN NULL ELSE 49 END * 88 AS col1
----
4312

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2375
SELECT ALL CAST( + 82 AS SIGNED ) AS col1, - 11
----
82
-11

skipif mysql # not compatible
query II rowsort label-2375
SELECT ALL CAST ( + 82 AS INTEGER ) AS col1, - 11
----
82
-11

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

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT + 17 / + COUNT ( * )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2377
SELECT ALL CASE - - COUNT( * ) WHEN + 34 + + MIN( ALL - + ( 68 ) ) THEN - 4 * - 80 WHEN 77 THEN COALESCE ( 73, - CASE + 95 WHEN 4 * - 19 THEN NULL ELSE CAST( NULL AS SIGNED ) END, 99 ) WHEN ( + CASE - 77 WHEN 94 + 2 * + COALESCE ( 92 * CASE + 45 * 20 WHEN 84 + 47 THEN 67 * - 34 END + 27, 46 + + 57 ) THEN 33 ELSE 23 / 32 END ) THEN NULL ELSE - ( - CAST( NULL AS SIGNED ) ) END + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL CASE - - COUNT ( * ) WHEN + 34 + + MIN ( ALL - + ( 68 ) ) THEN - 4 * - 80 WHEN 77 THEN COALESCE ( 73, - CASE + 95 WHEN 4 * - 19 THEN NULL ELSE CAST ( NULL AS INTEGER ) END, 99 ) WHEN ( + CASE - 77 WHEN 94 + 2 * + COALESCE ( 92 * CASE + 45 * 20 WHEN 84 + 47 THEN 67 * - 34 END + 27, 46 + + 57 ) THEN 33 ELSE 23 / 32 END ) THEN NULL ELSE - ( - CAST ( NULL AS INTEGER ) ) END + 10
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2378
SELECT DISTINCT + COUNT( DISTINCT + 38 ) + + + ( + + ( - 96 ) ) DIV COUNT( * ) * COUNT( * ) * + 46 + + 26 AS col2
----
-4389

skipif mysql # not compatible
query I rowsort label-2378
SELECT DISTINCT + COUNT ( DISTINCT + 38 ) + + + ( + + ( - 96 ) ) / COUNT ( * ) * COUNT ( * ) * + 46 + + 26 AS col2
----
-4389

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2379
SELECT - MIN( ALL + + 48 ) + + - 76 DIV + SUM( DISTINCT - 84 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-2379
SELECT - MIN ( ALL + + 48 ) + + - 76 / + SUM ( DISTINCT - 84 ) AS col1
----
-48

query I rowsort
SELECT ALL + 23 + + 86 AS col1
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-2381
SELECT MIN( - + 94 ) AS col1, 54
----
-94
54

skipif mysql # not compatible
query II rowsort label-2381
SELECT MIN ( - + 94 ) AS col1, 54
----
-94
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT NULLIF ( 64, + 32 * - COUNT( * ) * + 27 ) + + - 89
----
-25

skipif mysql # not compatible
query I rowsort label-2382
SELECT NULLIF ( 64, + 32 * - COUNT ( * ) * + 27 ) + + - 89
----
-25

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

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

query I rowsort
SELECT ALL + 63 + 59 * 13 + + 87 + - COALESCE ( - 32, 39 ) + - 62 * 7 * - 95
----
42179

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT ALL COUNT( - 13 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL COUNT ( - 13 ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2386
SELECT DISTINCT - CASE + + 88 WHEN - CAST( NULL AS SIGNED ) - 73 + - - ( 67 ) / 39 * 73 THEN - 37 END * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT - CASE + + 88 WHEN - CAST ( NULL AS INTEGER ) - 73 + - - ( 67 ) / 39 * 73 THEN - 37 END * 88
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2387
SELECT ALL ( - 98 ) + + - COALESCE ( 36, + CAST( NULL AS SIGNED ) )
----
-134

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL ( - 98 ) + + - COALESCE ( 36, + CAST ( NULL AS INTEGER ) )
----
-134

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

skipif mysql # not compatible
query I rowsort label-2388
SELECT ( 58 ) / COUNT ( * ) + 68
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT 62 * - 32 + - MAX( 66 )
----
-2050

skipif mysql # not compatible
query I rowsort label-2389
SELECT 62 * - 32 + - MAX ( 66 )
----
-2050

query II rowsort
SELECT 48, + ( - + 6 ) AS col2
----
48
-6

query II rowsort
SELECT + 1, 37 * 44 AS col0
----
1
1628

query I rowsort
SELECT ALL 58 - - + 98 + - 34 * - NULLIF ( + 54, + + 39 )
----
1992

query II rowsort
SELECT 91 AS col1, 2 - - ( + - 63 )
----
91
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2394
SELECT NULLIF ( + CAST( - 41 AS SIGNED ), 23 ) - ( - COUNT( * ) ) col0, + 46 * CASE WHEN NULL NOT IN ( - NULLIF ( + 35, 22 * 42 + - 23 * NULLIF ( 67, 50 * ( + 33 ) + - 26 / COUNT( * ) ) ) ) THEN COUNT( * ) * 60 ELSE - 35 END * 72
----
-40
-115920

skipif mysql # not compatible
query II rowsort label-2394
SELECT NULLIF ( + CAST ( - 41 AS INTEGER ), 23 ) - ( - COUNT ( * ) ) col0, + 46 * CASE WHEN NULL NOT IN ( - NULLIF ( + 35, 22 * 42 + - 23 * NULLIF ( 67, 50 * ( + 33 ) + - 26 / COUNT ( * ) ) ) ) THEN COUNT ( * ) * 60 ELSE - 35 END * 72
----
-40
-115920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2395
SELECT ALL CASE - 36 WHEN + - CAST( + 24 AS SIGNED ) THEN - 10 END * 58 * - 66 / + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL CASE - 36 WHEN + - CAST ( + 24 AS INTEGER ) THEN - 10 END * 58 * - 66 / + 54 AS col2
----
NULL

query I rowsort
SELECT ALL ( 22 ) * + 65 * 2 - - 1
----
2861

query I rowsort
SELECT COALESCE ( 71, - 82 ) + + 52 AS col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT 42 + - - COUNT( * ) * - MAX( DISTINCT 94 ) + + + 74
----
22

skipif mysql # not compatible
query I rowsort label-2398
SELECT 42 + - - COUNT ( * ) * - MAX ( DISTINCT 94 ) + + + 74
----
22

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

skipif mysql # not compatible
query II rowsort label-2399
SELECT ALL - 13 col0, + COUNT ( * )
----
-13
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2400
SELECT + 47 * - CAST( NULL AS SIGNED ) + + + 82 + 23 / + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2400
SELECT + 47 * - CAST ( NULL AS INTEGER ) + + + 82 + 23 / + 43 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2401
SELECT COALESCE ( - 60, - 8 ) DIV - - 74 * + CAST( - 71 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2401
SELECT COALESCE ( - 60, - 8 ) / - - 74 * + CAST ( - 71 AS INTEGER )
----
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2403
SELECT DISTINCT 85 + - 23 * + 64 + + CAST( NULL AS DECIMAL ) * 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2403
SELECT DISTINCT 85 + - 23 * + 64 + + CAST ( NULL AS REAL ) * 34 AS col2
----
NULL

query I rowsort
SELECT 98 * 43 AS col0
----
4214

onlyif mysql # aggregate syntax: 
query II rowsort label-2405
SELECT ALL + + COUNT( * ) + - 29 * + 24 col1, CASE WHEN ( + 75 ) IN ( + ( 23 ) / 65 ) THEN + 40 / + 13 + + 2 / 41 ELSE ( - 25 ) + + 14 END AS col0
----
-695
-11

skipif mysql # not compatible
query II rowsort label-2405
SELECT ALL + + COUNT ( * ) + - 29 * + 24 col1, CASE WHEN ( + 75 ) IN ( + ( 23 ) / 65 ) THEN + 40 / + 13 + + 2 / 41 ELSE ( - 25 ) + + 14 END AS col0
----
-695
-11

query I rowsort
SELECT + 65 + + 45 AS col1
----
110

query I rowsort
SELECT DISTINCT + 27 + + 95 * + 37 AS col1
----
3542

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2408
SELECT SUM( ALL + ( + - COALESCE ( + 70, 25 * 90 DIV - + 53 + 9 ) ) ) + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-2408
SELECT SUM ( ALL + ( + - COALESCE ( + 70, 25 * 90 / - + 53 + 9 ) ) ) + COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT ALL + - NULLIF ( - 95, + MAX( - ( - ( + + 47 ) ) ) ) + 88 * - - COUNT( * )
----
183

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL + - NULLIF ( - 95, + MAX ( - ( - ( + + 47 ) ) ) ) + 88 * - - COUNT ( * )
----
183

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT COUNT( * ) - 8 + 88
----
81

skipif mysql # not compatible
query I rowsort label-2411
SELECT COUNT ( * ) - 8 + 88
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2412
SELECT - 69, - ( - 77 ) + + - 34 - + + 2 * CASE + 88 WHEN - 61 THEN NULL WHEN + COUNT( * ) THEN COUNT( * ) - - 0 WHEN CASE MIN( ALL 86 ) WHEN 27 THEN + 11 ELSE 12 END / - 99 THEN NULL END AS col1
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-2412
SELECT - 69, - ( - 77 ) + + - 34 - + + 2 * CASE + 88 WHEN - 61 THEN NULL WHEN + COUNT ( * ) THEN COUNT ( * ) - - 0 WHEN CASE MIN ( ALL 86 ) WHEN 27 THEN + 11 ELSE 12 END / - 99 THEN NULL END AS col1
----
-69
NULL

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

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

query II rowsort
SELECT DISTINCT 64 AS col2, 97
----
64
97

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

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

query I rowsort
SELECT + 81 + - + CASE WHEN 65 < - - 42 + - 16 + + 2 + 17 THEN NULL ELSE 69 END + - 65
----
-53

query I rowsort
SELECT 84 * + 48 + + 41
----
4073

query I rowsort
SELECT 97 * + - ( + 93 )
----
-9021

query I rowsort
SELECT ALL NULLIF ( - 5, + - 96 ) * - - 29 AS col0
----
-145

query I rowsort
SELECT NULLIF ( + + 97, - 36 )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2421
SELECT CASE + 21 WHEN + CAST( CASE - 54 WHEN - COUNT( * ) / + - 24 + + 24 + + CAST( + COALESCE ( + 99, - CASE 62 WHEN CAST( NULL AS SIGNED ) * + 6 - ( 43 + + COUNT( * ) ) * + AVG ( - 39 ) THEN 6 + + 58 WHEN 63 + + CASE + 75 WHEN 50 THEN NULL WHEN + 65 THEN - ( + 39 ) WHEN ( + SUM( DISTINCT 56 ) ) THEN NULL WHEN 8 THEN NULL ELSE NULL END THEN NULL WHEN + COALESCE ( 85, 7 * - 44, + 57 + 22 / - 21, + 79, 25 ) THEN NULL END + COUNT( * ) * ( - MAX( 17 ) ) ) AS SIGNED ) * 85 THEN - 42 END AS SIGNED ) * + 65 THEN NULL WHEN 62 + 10 * 5 THEN 67 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2421
SELECT CASE + 21 WHEN + CAST ( CASE - 54 WHEN - COUNT ( * ) / + - 24 + + 24 + + CAST ( + COALESCE ( + 99, - CASE 62 WHEN CAST ( NULL AS INTEGER ) * + 6 - ( 43 + + COUNT ( * ) ) * + AVG ( - 39 ) THEN 6 + + 58 WHEN 63 + + CASE + 75 WHEN 50 THEN NULL WHEN + 65 THEN - ( + 39 ) WHEN ( + SUM ( DISTINCT 56 ) ) THEN NULL WHEN 8 THEN NULL ELSE NULL END THEN NULL WHEN + COALESCE ( 85, 7 * - 44, + 57 + 22 / - 21, + 79, 25 ) THEN NULL END + COUNT ( * ) * ( - MAX ( 17 ) ) ) AS INTEGER ) * 85 THEN - 42 END AS INTEGER ) * + 65 THEN NULL WHEN 62 + 10 * 5 THEN 67 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 33 * 74 AS col2
----
-2442

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT + NULLIF ( + + 69, CASE + COUNT( * ) WHEN + + CASE + COUNT( * ) WHEN + 3 / - COUNT( * ) + + 25 * - 36 THEN NULL ELSE 57 + - 3 END / 81 THEN 20 + ( ( 71 ) + + 6 ) WHEN - 97 + + 19 THEN COUNT( * ) + - 94 END ) * 95 AS col2
----
6555

skipif mysql # not compatible
query I rowsort label-2423
SELECT + NULLIF ( + + 69, CASE + COUNT ( * ) WHEN + + CASE + COUNT ( * ) WHEN + 3 / - COUNT ( * ) + + 25 * - 36 THEN NULL ELSE 57 + - 3 END / 81 THEN 20 + ( ( 71 ) + + 6 ) WHEN - 97 + + 19 THEN COUNT ( * ) + - 94 END ) * 95 AS col2
----
6555

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT SUM( DISTINCT + - NULLIF ( - 26, + + 51 + - + ( - - 84 ) ) )
----
26

skipif mysql # not compatible
query I rowsort label-2424
SELECT SUM ( DISTINCT + - NULLIF ( - 26, + + 51 + - + ( - - 84 ) ) )
----
26

query I rowsort
SELECT DISTINCT 62 * - 36 col2
----
-2232

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2426
SELECT 69 DIV - 15 - + + NULLIF ( - 17, COUNT( * ) ), 38 * - ( - 50 ) AS col2
----
13
1900

skipif mysql # not compatible
query II rowsort label-2426
SELECT 69 / - 15 - + + NULLIF ( - 17, COUNT ( * ) ), 38 * - ( - 50 ) AS col2
----
13
1900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2427
SELECT + COALESCE ( - 15, - 11 DIV + + MIN( + 49 ) DIV - 39 * - 18 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-2427
SELECT + COALESCE ( - 15, - 11 / + + MIN ( + 49 ) / - 39 * - 18 ) AS col0
----
-15

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

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL COUNT ( * ) * + + 20 / + 73 * 92 + + 78 * + COUNT ( * ) AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2429
SELECT ALL - 95 * + - CAST( + 49 AS SIGNED ) + + MIN( 40 ) + + NULLIF ( + 54, - - 14 ) + - + 21
----
4728

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL - 95 * + - CAST ( + 49 AS INTEGER ) + + MIN ( 40 ) + + NULLIF ( + 54, - - 14 ) + - + 21
----
4728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2430
SELECT - COALESCE ( + 28, - CAST( NULL AS SIGNED ) )
----
-28

skipif mysql # not compatible
query I rowsort label-2430
SELECT - COALESCE ( + 28, - CAST ( NULL AS INTEGER ) )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT ALL + NULLIF ( - 11, + - COUNT( * ) * + ( - + ( - 75 ) ) * - MIN( ALL - 63 ) * - 67 ) * 51 + - 3 col2
----
-564

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL + NULLIF ( - 11, + - COUNT ( * ) * + ( - + ( - 75 ) ) * - MIN ( ALL - 63 ) * - 67 ) * 51 + - 3 col2
----
-564

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2432
SELECT ALL + + CASE - COALESCE ( CAST( NULL AS DECIMAL ), - 25, 40, 28 ) WHEN - COALESCE ( - + 65, + - 24 * + 92 + 35 ) THEN COUNT( DISTINCT 22 ) * 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL + + CASE - COALESCE ( CAST ( NULL AS REAL ), - 25, 40, 28 ) WHEN - COALESCE ( - + 65, + - 24 * + 92 + 35 ) THEN COUNT ( DISTINCT 22 ) * 79 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL - 50 * - COUNT ( * ) + COUNT ( * ) / - - 2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT + + NULLIF ( + - 54, 83 * - COUNT( * ) - + 29 ) + + 33 + - - 91 * - + CASE - - COUNT( * ) WHEN MAX( + 54 ) THEN + 14 ELSE NULL END * AVG ( DISTINCT - 52 ) + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-2434
SELECT + + NULLIF ( + - 54, 83 * - COUNT ( * ) - + 29 ) + + 33 + - - 91 * - + CASE - - COUNT ( * ) WHEN MAX ( + 54 ) THEN + 14 ELSE NULL END * AVG ( DISTINCT - 52 ) + - 10
----
NULL

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

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

query I rowsort
SELECT ALL + 98 + - + 59 * - 76 AS col2
----
4582

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT + 33 + + - COUNT( * ) + 91 * + + 52
----
4764

skipif mysql # not compatible
query I rowsort label-2439
SELECT + 33 + + - COUNT ( * ) + 91 * + + 52
----
4764

onlyif mysql # aggregate syntax: 
query II rowsort label-2440
SELECT DISTINCT SUM( - - 66 ), + 1 + + - 74 AS col2
----
66
-73

skipif mysql # not compatible
query II rowsort label-2440
SELECT DISTINCT SUM ( - - 66 ), + 1 + + - 74 AS col2
----
66
-73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2441
SELECT - - CASE 5 WHEN - COUNT( * ) - COUNT( DISTINCT + + 21 ) - + 13 * COUNT( + + 74 ) * - CAST( NULL AS DECIMAL ) THEN - ( + 94 ) WHEN 52 THEN + COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2441
SELECT - - CASE 5 WHEN - COUNT ( * ) - COUNT ( DISTINCT + + 21 ) - + 13 * COUNT ( + + 74 ) * - CAST ( NULL AS REAL ) THEN - ( + 94 ) WHEN 52 THEN + COUNT ( * ) END col2
----
NULL

query I rowsort
SELECT + + 91 + + 57 AS col2
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2443
SELECT - - CAST( NULL AS SIGNED ) + + + MAX( ALL + - 5 ) * + - 27 * + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-2443
SELECT - - CAST ( NULL AS INTEGER ) + + + MAX ( ALL + - 5 ) * + - 27 * + 44
----
NULL

query I rowsort
SELECT ALL + 22 * - 48
----
-1056

onlyif mysql # DIV for integer division: 
query I rowsort label-2445
SELECT ALL COALESCE ( - 42, - + 19 + + 13 DIV + 25 + + - NULLIF ( - 20, ( + + 73 ) ) ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL COALESCE ( - 42, - + 19 + + 13 / + 25 + + - NULLIF ( - 20, ( + + 73 ) ) ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT - 40 + 61 * - + COUNT( * )
----
-101

skipif mysql # not compatible
query I rowsort label-2446
SELECT - 40 + 61 * - + COUNT ( * )
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT - NULLIF ( - MIN( - 87 ), + 29 ) * - 12 * + 75
----
78300

skipif mysql # not compatible
query I rowsort label-2447
SELECT - NULLIF ( - MIN ( - 87 ), + 29 ) * - 12 * + 75
----
78300

query I rowsort
SELECT - 16 + - 71
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2449
SELECT ALL ( + CASE + 52 WHEN - - MIN( DISTINCT + - 17 ) + + CASE - 20 WHEN CASE + 58 WHEN - 49 THEN 33 WHEN ( + COUNT( * ) ) * - 92 + 68 THEN NULL ELSE NULL END THEN SUM( DISTINCT CAST( NULL AS SIGNED ) ) + ( + 68 ) WHEN - 75 THEN NULL ELSE NULL END THEN NULL ELSE + ( + ( + 55 ) ) END ) col1
----
55

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL ( + CASE + 52 WHEN - - MIN ( DISTINCT + - 17 ) + + CASE - 20 WHEN CASE + 58 WHEN - 49 THEN 33 WHEN ( + COUNT ( * ) ) * - 92 + 68 THEN NULL ELSE NULL END THEN SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) + ( + 68 ) WHEN - 75 THEN NULL ELSE NULL END THEN NULL ELSE + ( + ( + 55 ) ) END ) col1
----
55

query I rowsort
SELECT - 10 - + 59 * + 54 + - 16
----
-3212

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2452
SELECT + 1 * + - 42 + 84 DIV + 33
----
-40

skipif mysql # not compatible
query I rowsort label-2452
SELECT + 1 * + - 42 + 84 / + 33
----
-40

query I rowsort
SELECT ALL - 46 * + 0 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2454
SELECT - 33 / + 82 * - ( - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2454
SELECT - 33 / + 82 * - ( - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2455
SELECT 73 / CAST( NULL AS DECIMAL ) + - + MIN( ALL + - 41 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT 73 / CAST ( NULL AS REAL ) + - + MIN ( ALL + - 41 ) AS col1
----
NULL

query I rowsort
SELECT - 50 + + 84
----
34

query I rowsort
SELECT DISTINCT - 28 * + - 85 AS col1
----
2380

onlyif mysql # DIV for integer division: 
query I rowsort label-2458
SELECT ALL 26 DIV - - 52 + + 59
----
59

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL 26 / - - 52 + + 59
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2459
SELECT - 38 * + + 13 + - 95 * 66 + COUNT( * ), 23 AS col0
----
-6763
23

skipif mysql # not compatible
query II rowsort label-2459
SELECT - 38 * + + 13 + - 95 * 66 + COUNT ( * ), 23 AS col0
----
-6763
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2460
SELECT + ( - 72 ) - NULLIF ( - + 70, - + 64 ) AS col1, ( - - MAX( ALL 49 ) ) AS col2
----
-2
49

skipif mysql # not compatible
query II rowsort label-2460
SELECT + ( - 72 ) - NULLIF ( - + 70, - + 64 ) AS col1, ( - - MAX ( ALL 49 ) ) AS col2
----
-2
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2461
SELECT 74 * + CAST( - ( + - 38 ) AS SIGNED ) * - 75 + - + 64 * - - 60 AS col1
----
-214740

skipif mysql # not compatible
query I rowsort label-2461
SELECT 74 * + CAST ( - ( + - 38 ) AS INTEGER ) * - 75 + - + 64 * - - 60 AS col1
----
-214740

onlyif mysql # DIV for integer division: 
query I rowsort label-2462
SELECT ALL 69 DIV + 90 + + 69
----
69

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL 69 / + 90 + + 69
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2463
SELECT ALL 62 * + COUNT( * ) + - COUNT( * ) + + + 34 + + - 22 AS col2, COUNT( + - 94 )
----
73
1

skipif mysql # not compatible
query II rowsort label-2463
SELECT ALL 62 * + COUNT ( * ) + - COUNT ( * ) + + + 34 + + - 22 AS col2, COUNT ( + - 94 )
----
73
1

query I rowsort
SELECT - - 38 * - 53 AS col2
----
-2014

query I rowsort
SELECT + - 74 * - 63 * + 23 + + 84 AS col2
----
107310

onlyif mysql # DIV for integer division: 
query I rowsort label-2466
SELECT ALL 49 * + 28 + - - 87 + - 26 DIV - 86 + + 81
----
1540

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL 49 * + 28 + - - 87 + - 26 / - 86 + + 81
----
1540

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

query I rowsort
SELECT ALL 74 * 73 + + - ( - 13 )
----
5415

query I rowsort
SELECT - 4 * + + 2 AS col2
----
-8

query II rowsort
SELECT ALL + 86 col0, 56 * 61
----
86
3416

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT ALL + + SUM( + 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL + + SUM ( + 23 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT + + COUNT( * ) * + + ( COALESCE ( 75, - + 91 * CASE + - COUNT( * ) WHEN - 25 * + 81 THEN NULL WHEN - MIN( ALL 64 ) + 50 THEN COUNT( - ( + 7 ) ) END + 89 ) ) + + 45 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-2472
SELECT + + COUNT ( * ) * + + ( COALESCE ( 75, - + 91 * CASE + - COUNT ( * ) WHEN - 25 * + 81 THEN NULL WHEN - MIN ( ALL 64 ) + 50 THEN COUNT ( - ( + 7 ) ) END + 89 ) ) + + 45 AS col2
----
120

query II rowsort
SELECT ALL + 63 AS col1, + 46 AS col0
----
63
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT DISTINCT - 30 * COALESCE ( - 67, + ( 81 ) ) - COUNT( DISTINCT 26 ) + - 2 + NULLIF ( 35, - 21 * 89 ) * 6 AS col2
----
2217

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT - 30 * COALESCE ( - 67, + ( 81 ) ) - COUNT ( DISTINCT 26 ) + - 2 + NULLIF ( 35, - 21 * 89 ) * 6 AS col2
----
2217

query II rowsort
SELECT - - 9 AS col1, + 2 AS col2
----
9
2

query I rowsort
SELECT + 7 * + ( 19 ) * + 21 AS col0
----
2793

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT + 76 + + - 80 + 76 - - NULLIF ( - 90, COUNT( ALL + NULLIF ( + 69, + - 0 ) ) )
----
-18

skipif mysql # not compatible
query I rowsort label-2477
SELECT + 76 + + - 80 + 76 - - NULLIF ( - 90, COUNT ( ALL + NULLIF ( + 69, + - 0 ) ) )
----
-18

query I rowsort
SELECT + 20 * + 76
----
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT + SUM( DISTINCT + 27 ) * 65 * + + 98 + 42 AS col2
----
172032

skipif mysql # not compatible
query I rowsort label-2479
SELECT + SUM ( DISTINCT + 27 ) * 65 * + + 98 + 42 AS col2
----
172032

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

query I rowsort
SELECT DISTINCT COALESCE ( + + 50, - 75 ) AS col2
----
50

query II rowsort
SELECT ALL 96 col2, 68 - + - 94
----
96
162

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

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

query I rowsort
SELECT 16 * - 18 AS col1
----
-288

query I rowsort
SELECT 51 + + 65
----
116

query II rowsort
SELECT - 63, 21 AS col2
----
-63
21

query II rowsort
SELECT - 65, - 46 + + 52 - + 64 + - 12 * - 11 AS col1
----
-65
74

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

query I rowsort
SELECT 41 * + 88 AS col2
----
3608

query I rowsort
SELECT 77 + + + 40
----
117

query II rowsort
SELECT ALL - 80 AS col2, - 87
----
-80
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-2492
SELECT 1 AS col1, + CASE - COUNT( * ) WHEN 35 / 48 / 7 THEN - - 29 WHEN - 97 THEN NULL ELSE NULL END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2492
SELECT 1 AS col1, + CASE - COUNT ( * ) WHEN 35 / 48 / 7 THEN - - 29 WHEN - 97 THEN NULL ELSE NULL END
----
1
NULL

query I rowsort
SELECT ALL + 69 + - + 3 - - 88
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT DISTINCT - MAX( ALL - + 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-2494
SELECT DISTINCT - MAX ( ALL - + 33 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT ALL MIN( DISTINCT - 68 ) + + 4 * + 16 * - NULLIF ( 28, 50 ) AS col1
----
-1860

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL MIN ( DISTINCT - 68 ) + + 4 * + 16 * - NULLIF ( 28, 50 ) AS col1
----
-1860

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT 67 * + MIN( + 6 ) * COUNT( * ) AS col1
----
402

skipif mysql # not compatible
query I rowsort label-2496
SELECT 67 * + MIN ( + 6 ) * COUNT ( * ) AS col1
----
402

onlyif mysql # DIV for integer division: 
query II rowsort label-2497
SELECT + 83 AS col2, NULLIF ( + 4, - 24 ) DIV + - 16 * + 99 AS col1
----
83
0

skipif mysql # not compatible
query II rowsort label-2497
SELECT + 83 AS col2, NULLIF ( + 4, - 24 ) / + - 16 * + 99 AS col1
----
83
0

query I rowsort
SELECT ALL + 42 + - 22
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2499
SELECT ALL - COALESCE ( + COUNT( * ), + - AVG ( + 25 ) DIV - 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL - COALESCE ( + COUNT ( * ), + - AVG ( + 25 ) / - 70 )
----
-1

query I rowsort
SELECT + 61 * - + 32
----
-1952

query I rowsort
SELECT + + 99 * 31 - 83
----
2986

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT ALL + + 34 * + COALESCE ( 5, 56 + + CASE 75 WHEN - CASE - 16 WHEN - 57 THEN - + ( ( - COUNT( * ) ) ) WHEN - 90 THEN 11 * 91 END + ( 36 ) THEN + 85 END * 89, + 37 * - 51, 87 )
----
170

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL + + 34 * + COALESCE ( 5, 56 + + CASE 75 WHEN - CASE - 16 WHEN - 57 THEN - + ( ( - COUNT ( * ) ) ) WHEN - 90 THEN 11 * 91 END + ( 36 ) THEN + 85 END * 89, + 37 * - 51, 87 )
----
170

onlyif mysql # DIV for integer division: 
query II rowsort label-2503
SELECT DISTINCT - - 63, 90 DIV - 29 AS col1
----
63
-3

skipif mysql # not compatible
query II rowsort label-2503
SELECT DISTINCT - - 63, 90 / - 29 AS col1
----
63
-3

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

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

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

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

query I rowsort
SELECT + 38 * - 16 - + 32 AS col1
----
-640

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT - 77 * + MAX( + 40 ) * + 92 * - 67 col2
----
18985120

skipif mysql # not compatible
query I rowsort label-2507
SELECT - 77 * + MAX ( + 40 ) * + 92 * - 67 col2
----
18985120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2508
SELECT 93 + - ( 96 ) + + 11 - COUNT( * ) DIV + ( + - 97 ) + - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-2508
SELECT 93 + - ( 96 ) + + 11 - COUNT ( * ) / + ( + - 97 ) + - COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT - 52 - - 19 + + - COUNT( * ) * + 28 - 18 * - + COUNT( * ) + + - 79
----
-122

skipif mysql # not compatible
query I rowsort label-2509
SELECT - 52 - - 19 + + - COUNT ( * ) * + 28 - 18 * - + COUNT ( * ) + + - 79
----
-122

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT 70 DIV 7 * 96 AS col0
----
960

skipif mysql # not compatible
query I rowsort label-2511
SELECT 70 / 7 * 96 AS col0
----
960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2512
SELECT COUNT( * ) * CAST( 43 AS SIGNED ) * 75
----
3225

skipif mysql # not compatible
query I rowsort label-2512
SELECT COUNT ( * ) * CAST ( 43 AS INTEGER ) * 75
----
3225

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT ALL MIN( ALL - 70 ) col1
----
-70

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL MIN ( ALL - 70 ) col1
----
-70

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2516
SELECT 26 / - + CAST( NULL AS SIGNED ) * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-2516
SELECT 26 / - + CAST ( NULL AS INTEGER ) * + 57
----
NULL

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

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

query I rowsort
SELECT ALL 81 + - 83
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT ALL MIN( 79 ) * 25 - - COUNT( * )
----
1976

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL MIN ( 79 ) * 25 - - COUNT ( * )
----
1976

query I rowsort
SELECT 16 + 35 + 83 AS col1
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2521
SELECT 61 * + NULLIF ( + 30, AVG ( CAST( NULL AS SIGNED ) ) + - - 21 + 49 ) AS col1, + 50 AS col0
----
1830
50

skipif mysql # not compatible
query II rowsort label-2521
SELECT 61 * + NULLIF ( + 30, AVG ( CAST ( NULL AS INTEGER ) ) + - - 21 + 49 ) AS col1, + 50 AS col0
----
1830
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT ALL 45 + + + 48 * ( - COALESCE ( + CASE + 70 WHEN 72 + - 46 THEN 28 END, NULLIF ( - + 39, - - MAX( - 26 ) * COUNT( * ) ) + - 48 * + 25, - COUNT( * ) ) ) * - ( 28 ) + + ( - ( 17 ) )
----
-1665188

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL 45 + + + 48 * ( - COALESCE ( + CASE + 70 WHEN 72 + - 46 THEN 28 END, NULLIF ( - + 39, - - MAX ( - 26 ) * COUNT ( * ) ) + - 48 * + 25, - COUNT ( * ) ) ) * - ( 28 ) + + ( - ( 17 ) )
----
-1665188

query I rowsort
SELECT 32 + + - 89 AS col2
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2524
SELECT COUNT( * ) + - COUNT( * ) + - 98 col0, 13 DIV + - COUNT( * )
----
-98
-13

skipif mysql # not compatible
query II rowsort label-2524
SELECT COUNT ( * ) + - COUNT ( * ) + - 98 col0, 13 / + - COUNT ( * )
----
-98
-13

query II rowsort
SELECT ALL 9 + + 95 AS col1, - ( + - 62 )
----
104
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2526
SELECT DISTINCT 44 + CAST( NULL AS DECIMAL ) * + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT 44 + CAST ( NULL AS REAL ) * + 39
----
NULL

query II rowsort
SELECT ALL - 10 + + 86 AS col1, + 93
----
76
93

query I rowsort
SELECT ALL 79 + - - 69 + + - 98 + - + 22 - - - 54 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT DISTINCT - - ( CASE + 11 WHEN + 50 THEN + 51 / + + ( - 66 ) + - + MAX( - 8 ) / - CASE + 82 WHEN + 47 THEN 97 * + 63 END * 77 WHEN 76 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT - - ( CASE + 11 WHEN + 50 THEN + 51 / + + ( - 66 ) + - + MAX ( - 8 ) / - CASE + 82 WHEN + 47 THEN 97 * + 63 END * 77 WHEN 76 THEN NULL END )
----
NULL

query I rowsort
SELECT ALL + 11 * - + 81 col2
----
-891

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT + 59 + - COUNT( ALL + + 5 ) + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-2531
SELECT + 59 + - COUNT ( ALL + + 5 ) + COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT + + 37 * - COUNT( * ) * + 89 + - 15
----
-3308

skipif mysql # not compatible
query I rowsort label-2532
SELECT + + 37 * - COUNT ( * ) * + 89 + - 15
----
-3308

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT ALL 56 * + COUNT( * ) + 22
----
78

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL 56 * + COUNT ( * ) + 22
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT 67 * - + MAX( DISTINCT + 97 ) + - 40 AS col1
----
-6539

skipif mysql # not compatible
query I rowsort label-2534
SELECT 67 * - + MAX ( DISTINCT + 97 ) + - 40 AS col1
----
-6539

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2535
SELECT DISTINCT 40 * 54 / + 23 * - 96 - + - 51 - - 94 + - 25 - - - 0 * + + CASE + + 59 WHEN COUNT( * ) * - 65 * COUNT( * ) + + CASE - 43 + + 83 WHEN 46 * COUNT( * ) THEN NULL WHEN + COALESCE ( COUNT( * ), 92 * 3 + + CASE + 74 WHEN 84 * + 99 THEN COUNT( * ) + + 31 WHEN + NULLIF ( + ( + ( 35 ) ), - 51 * COALESCE ( + 79, + 48 - 74 ) ) THEN NULL ELSE NULL END ) + - COUNT( * ) THEN NULL WHEN - 5 * + 96 THEN - ( ( 75 ) ) + 98 END / ( 49 + 45 * + 48 ) THEN - CAST( + NULLIF ( - ( 33 ), - 99 ) AS DECIMAL ) WHEN + COUNT( ALL - 22 ) THEN NULL WHEN 49 THEN 86 * ( - 51 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT 40 * 54 / + 23 * - 96 - + - 51 - - 94 + - 25 - - - 0 * + + CASE + + 59 WHEN COUNT ( * ) * - 65 * COUNT ( * ) + + CASE - 43 + + 83 WHEN 46 * COUNT ( * ) THEN NULL WHEN + COALESCE ( COUNT ( * ), 92 * 3 + + CASE + 74 WHEN 84 * + 99 THEN COUNT ( * ) + + 31 WHEN + NULLIF ( + ( + ( 35 ) ), - 51 * COALESCE ( + 79, + 48 - 74 ) ) THEN NULL ELSE NULL END ) + - COUNT ( * ) THEN NULL WHEN - 5 * + 96 THEN - ( ( 75 ) ) + 98 END / ( 49 + 45 * + 48 ) THEN - CAST ( + NULLIF ( - ( 33 ), - 99 ) AS REAL ) WHEN + COUNT ( ALL - 22 ) THEN NULL WHEN 49 THEN 86 * ( - 51 ) END AS col2
----
NULL

query I rowsort
SELECT ALL + 95 * 18 col1
----
1710

query I rowsort
SELECT 59 + - + 52
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2538
SELECT ALL + - CAST( - - COUNT( * ) AS SIGNED ) DIV - COALESCE ( - 26, - + 88 * + 40 - + - 76 ) * + 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL + - CAST ( - - COUNT ( * ) AS INTEGER ) / - COALESCE ( - 26, - + 88 * + 40 - + - 76 ) * + 65 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2539
SELECT COALESCE ( - SUM( 42 ), - - 71 ) * - 53 col1, - 27 AS col0
----
2226
-27

skipif mysql # not compatible
query II rowsort label-2539
SELECT COALESCE ( - SUM ( 42 ), - - 71 ) * - 53 col1, - 27 AS col0
----
2226
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2540
SELECT - 11 * MAX( ALL - 15 ) * - - 88 * + CAST( + 22 AS SIGNED ) + 11 * - 11 * + - ( - COALESCE ( 33, + 62, + 39 ) ) AS col0
----
315447

skipif mysql # not compatible
query I rowsort label-2540
SELECT - 11 * MAX ( ALL - 15 ) * - - 88 * + CAST ( + 22 AS INTEGER ) + 11 * - 11 * + - ( - COALESCE ( 33, + 62, + 39 ) ) AS col0
----
315447

query I rowsort
SELECT + 75 * ( - 52 )
----
-3900

query I rowsort
SELECT - - 29 * 17 + ( 76 )
----
569

query I rowsort
SELECT ALL + + 15 * - 26 - - 98 AS col2
----
-292

onlyif mysql # DIV for integer division: 
query I rowsort label-2544
SELECT + ( + 42 ) DIV ( - 56 ) - - 23
----
23

skipif mysql # not compatible
query I rowsort label-2544
SELECT + ( + 42 ) / ( - 56 ) - - 23
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2545
SELECT ALL - COUNT( * ) * - SUM( - + CAST( NULL AS SIGNED ) ) * - - 79 - + 94 + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL - COUNT ( * ) * - SUM ( - + CAST ( NULL AS INTEGER ) ) * - - 79 - + 94 + + 42
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2546
SELECT ALL + COUNT( 61 ) + + COUNT( * ) + 15 * 92 * ( + 89 ) DIV + CAST( - 49 AS SIGNED ) + 21 - 6 * 9 + 11 AS col0
----
-2526

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL + COUNT ( 61 ) + + COUNT ( * ) + 15 * 92 * ( + 89 ) / + CAST ( - 49 AS INTEGER ) + 21 - 6 * 9 + 11 AS col0
----
-2526

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT ALL COUNT( ALL 41 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL COUNT ( ALL 41 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2548
SELECT - CASE COUNT( * ) WHEN + 9 * + + AVG ( - 9 ) + - - COALESCE ( + COALESCE ( 4, + 94 / + COUNT( * ) * + 67 * 72 * - + 72 ), - 45 ) THEN 54 ELSE NULL END + COUNT( * ) / + ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2548
SELECT - CASE COUNT ( * ) WHEN + 9 * + + AVG ( - 9 ) + - - COALESCE ( + COALESCE ( 4, + 94 / + COUNT ( * ) * + 67 * 72 * - + 72 ), - 45 ) THEN 54 ELSE NULL END + COUNT ( * ) / + ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - 87 + - 60
----
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2550
SELECT - 86 - + 41 + - ( - 18 ) DIV + + COALESCE ( - + 68, - + 99, + COALESCE ( ( - 45 ), CAST( - 15 AS SIGNED ) * + 7 + COUNT( DISTINCT 7 ) ) DIV 0 + - 13 )
----
-127

skipif mysql # not compatible
query I rowsort label-2550
SELECT - 86 - + 41 + - ( - 18 ) / + + COALESCE ( - + 68, - + 99, + COALESCE ( ( - 45 ), CAST ( - 15 AS INTEGER ) * + 7 + COUNT ( DISTINCT 7 ) ) / 0 + - 13 )
----
-127

query I rowsort
SELECT ALL 98 * - 97 * 58 * + 25
----
-13783700

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

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL + 42 + - + COUNT ( * ) AS col0
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT ALL 91 + - COUNT( DISTINCT - - 72 ) - - + 92 + + - 44 + 73 - + COUNT( * ) - - COUNT( ALL - 15 )
----
211

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL 91 + - COUNT ( DISTINCT - - 72 ) - - + 92 + + - 44 + 73 - + COUNT ( * ) - - COUNT ( ALL - 15 )
----
211

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT DISTINCT NULLIF ( + NULLIF ( - SUM( ALL - 1 ), COUNT( ALL 83 ) ), - 9 / - CASE - 96 WHEN - 57 THEN NULL WHEN 46 THEN + 73 + - - 33 ELSE + 51 * - CASE + COUNT( * ) * 1 WHEN COUNT( * ) THEN 86 / + 70 END + - 61 * + 63 END + 24 * + 98 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2556
SELECT DISTINCT NULLIF ( + NULLIF ( - SUM ( ALL - 1 ), COUNT ( ALL 83 ) ), - 9 / - CASE - 96 WHEN - 57 THEN NULL WHEN 46 THEN + 73 + - - 33 ELSE + 51 * - CASE + COUNT ( * ) * 1 WHEN COUNT ( * ) THEN 86 / + 70 END + - 61 * + 63 END + 24 * + 98 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 51 * + 48 col0
----
-2448

query I rowsort
SELECT DISTINCT 97 * - - 55 * + 15 * 43 AS col2
----
3441075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2559
SELECT - COALESCE ( + + 46, CAST( 82 AS SIGNED ) * - - COUNT( * ), 61 ) * - - 48 AS col2
----
-2208

skipif mysql # not compatible
query I rowsort label-2559
SELECT - COALESCE ( + + 46, CAST ( 82 AS INTEGER ) * - - COUNT ( * ), 61 ) * - - 48 AS col2
----
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT - CASE - NULLIF ( 39, - + AVG ( DISTINCT + 82 ) ) WHEN + - COUNT( * ) THEN 10 WHEN - COUNT( * ) THEN + - AVG ( + + 38 ) + + MAX( - + NULLIF ( + + 67, + 50 * - 36 + + 61 * 46 ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2560
SELECT - CASE - NULLIF ( 39, - + AVG ( DISTINCT + 82 ) ) WHEN + - COUNT ( * ) THEN 10 WHEN - COUNT ( * ) THEN + - AVG ( + + 38 ) + + MAX ( - + NULLIF ( + + 67, + 50 * - 36 + + 61 * 46 ) ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2561
SELECT - NULLIF ( COUNT( 33 ), - - SUM( ALL - + 86 ) ) DIV - COUNT( DISTINCT + + 53 )
----
1

skipif mysql # not compatible
query I rowsort label-2561
SELECT - NULLIF ( COUNT ( 33 ), - - SUM ( ALL - + 86 ) ) / - COUNT ( DISTINCT + + 53 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT + 43 DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-2562
SELECT + 43 / 73
----
0

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

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL COUNT ( * ) / + 30
----
0

query II rowsort
SELECT - 99, 68 + 36 AS col2
----
-99
104

query II rowsort
SELECT + + 51 AS col2, 10
----
51
10

query I rowsort
SELECT ALL - 99 * + + 75 * + + 38
----
-282150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2567
SELECT + - CAST( + + ( + 97 ) AS SIGNED ) * + 41
----
-3977

skipif mysql # not compatible
query I rowsort label-2567
SELECT + - CAST ( + + ( + 97 ) AS INTEGER ) * + 41
----
-3977

query I rowsort
SELECT + 29 * + 5 AS col2
----
145

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2569
SELECT DISTINCT + 32 * - 35 + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT DISTINCT - + 94 * SUM( DISTINCT - 68 ) * - - 70 + 32 * + 97 + NULLIF ( + SUM( DISTINCT + - 92 ), - 55 + - 45 )
----
450452

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT - + 94 * SUM ( DISTINCT - 68 ) * - - 70 + 32 * + 97 + NULLIF ( + SUM ( DISTINCT + - 92 ), - 55 + - 45 )
----
450452

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT ALL 87 * + 40 + + 83 + - + 26 + + 10 * - 39 - + - 97 * + 27 * MIN( + 10 ) + 61 AS col1
----
29398

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL 87 * + 40 + + 83 + - + 26 + + 10 * - 39 - + - 97 * + 27 * MIN ( + 10 ) + 61 AS col1
----
29398

query I rowsort
SELECT + - NULLIF ( - 53, - - 19 ) + - 49 * + NULLIF ( - ( 25 ), + 89 ) + + + 21 + - + ( - 97 ) + + + 22 AS col1
----
1418

query I rowsort
SELECT 18 * + - 37 * - 66 - + 37 + + 47
----
43966

query I rowsort
SELECT CASE - 86 WHEN - 94 * - - 18 * - - 71 THEN NULL WHEN - ( - + 97 ) + - - 44 THEN - - 61 ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2577
SELECT DISTINCT + 1 * - MAX( + + 52 ) + + COUNT( ( + - 28 ) ) * + + COUNT( * ) * 93 + CAST( + 70 AS SIGNED ) * ( - + 27 ) * 4
----
-7519

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT + 1 * - MAX ( + + 52 ) + + COUNT ( ( + - 28 ) ) * + + COUNT ( * ) * 93 + CAST ( + 70 AS INTEGER ) * ( - + 27 ) * 4
----
-7519

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT - 28 * + SUM( 87 )
----
-2436

skipif mysql # not compatible
query I rowsort label-2579
SELECT - 28 * + SUM ( 87 )
----
-2436

query II rowsort
SELECT ALL ( - - 82 ), 97 * + 93 AS col0
----
82
9021

onlyif mysql # DIV for integer division: 
query II rowsort label-2581
SELECT DISTINCT + 28 * 35, 16 DIV 26 AS col2
----
980
0

skipif mysql # not compatible
query II rowsort label-2581
SELECT DISTINCT + 28 * 35, 16 / 26 AS col2
----
980
0

query I rowsort
SELECT ALL NULLIF ( + 83, + - 25 ) AS col1
----
83

query I rowsort
SELECT DISTINCT ( ( - NULLIF ( + 31, + 55 ) ) ) AS col1
----
-31

query I rowsort
SELECT - 38 + 44
----
6

query II rowsort
SELECT + 2 * 30, - 39 col0
----
60
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2586
SELECT DISTINCT NULLIF ( 89, 84 * + - MAX( + - CAST( NULL AS SIGNED ) ) + + + 58 - - 54 ) AS col2, 60 AS col0
----
89
60

skipif mysql # not compatible
query II rowsort label-2586
SELECT DISTINCT NULLIF ( 89, 84 * + - MAX ( + - CAST ( NULL AS INTEGER ) ) + + + 58 - - 54 ) AS col2, 60 AS col0
----
89
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2587
SELECT - - COUNT( * ) + COUNT( * ), + 14 * - MAX( ALL - 65 ) DIV + - 63 + - + 70 col2
----
2
-84

skipif mysql # not compatible
query II rowsort label-2587
SELECT - - COUNT ( * ) + COUNT ( * ), + 14 * - MAX ( ALL - 65 ) / + - 63 + - + 70 col2
----
2
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-2588
SELECT DISTINCT + 50 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT + 50 / - 70
----
0

query II rowsort
SELECT - + 39 + + 38 AS col0, + 0 * + 31 AS col2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT ALL + 28 * + MIN( ALL - 61 )
----
-1708

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL + 28 * + MIN ( ALL - 61 )
----
-1708

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT - - COUNT( * ) + + 22 + - MIN( DISTINCT - 38 ) * ( + 45 ) AS col0
----
1733

skipif mysql # not compatible
query I rowsort label-2591
SELECT - - COUNT ( * ) + + 22 + - MIN ( DISTINCT - 38 ) * ( + 45 ) AS col0
----
1733

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

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

query I rowsort
SELECT - ( NULLIF ( - 94, + + ( + NULLIF ( - + 58, - 91 ) ) ) ) * + 91
----
8554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2594
SELECT - + MIN( DISTINCT - - 78 ) * - COUNT( DISTINCT - 42 ) + + - 42 * - 21 * + CAST( NULL AS SIGNED ) * - - CASE WHEN ( + 59 ) = NULL THEN 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT - + MIN ( DISTINCT - - 78 ) * - COUNT ( DISTINCT - 42 ) + + - 42 * - 21 * + CAST ( NULL AS INTEGER ) * - - CASE WHEN ( + 59 ) = NULL THEN 35 END
----
NULL

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

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

query I rowsort
SELECT + COALESCE ( - 33, - 38 ) + 27 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT ALL 15 + 97 + - COUNT( * ) + MIN( - 96 )
----
15

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL 15 + 97 + - COUNT ( * ) + MIN ( - 96 )
----
15

query I rowsort
SELECT ALL + - 43 + - 69
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT MAX( 61 )
----
61

skipif mysql # not compatible
query I rowsort label-2599
SELECT MAX ( 61 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2600
SELECT ALL + 52 + + COUNT( DISTINCT - CAST( + 16 AS SIGNED ) ) + + - 17 * 75 * 57 AS col2
----
-72622

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL + 52 + + COUNT ( DISTINCT - CAST ( + 16 AS INTEGER ) ) + + - 17 * 75 * 57 AS col2
----
-72622

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT SUM( 32 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-2601
SELECT SUM ( 32 ) AS col1
----
32

query I rowsort
SELECT - 20 + - 60 * - 71 * 35 * + + 77
----
11480680

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2603
SELECT + 38 AS col1, 91 * - + CAST( NULL AS SIGNED ) AS col0
----
38
NULL

skipif mysql # not compatible
query II rowsort label-2603
SELECT + 38 AS col1, 91 * - + CAST ( NULL AS INTEGER ) AS col0
----
38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT ( + + 63 ) * - + COUNT( ALL + 92 ) + - + 43
----
-106

skipif mysql # not compatible
query I rowsort label-2604
SELECT ( + + 63 ) * - + COUNT ( ALL + 92 ) + - + 43
----
-106

query I rowsort
SELECT ALL 22 * 90
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT ( + COUNT( * ) ) + + 63 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-2606
SELECT ( + COUNT ( * ) ) + + 63 AS col0
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-2607
SELECT DISTINCT - COALESCE ( + - 75, - 28 + 18 DIV + + COALESCE ( 11, - 34 + ( 79 ) + 18 * - 79, - 27 ) * - 51 ), 70 * - 64 col1
----
75
-4480

skipif mysql # not compatible
query II rowsort label-2607
SELECT DISTINCT - COALESCE ( + - 75, - 28 + 18 / + + COALESCE ( 11, - 34 + ( 79 ) + 18 * - 79, - 27 ) * - 51 ), 70 * - 64 col1
----
75
-4480

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2609
SELECT DISTINCT - 69 DIV - 78 col2
----
0

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT - 69 / - 78 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2610
SELECT ALL 56 DIV - - 19 col1
----
2

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL 56 / - - 19 col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2611
SELECT ALL 15 - NULLIF ( - COUNT( + - 8 ), + - 12 ), - 24 AS col2
----
16
-24

skipif mysql # not compatible
query II rowsort label-2611
SELECT ALL 15 - NULLIF ( - COUNT ( + - 8 ), + - 12 ), - 24 AS col2
----
16
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT ALL - 52 * - SUM( - 66 ) AS col0
----
-3432

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL - 52 * - SUM ( - 66 ) AS col0
----
-3432

query I rowsort
SELECT 76 * 75
----
5700

onlyif mysql # DIV for integer division: 
query I rowsort label-2614
SELECT ALL 20 DIV + - 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL 20 / + - 50 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2615
SELECT 2 col1, NULLIF ( 5, + - 60 * + ( NULLIF ( - COUNT( * ), + + 4 / 42 ) ) / - 94 + + - 96 / - 58 * + 95 - + 49 ) + + 25 + - COUNT( * ) col1
----
2
29

skipif mysql # not compatible
query II rowsort label-2615
SELECT 2 col1, NULLIF ( 5, + - 60 * + ( NULLIF ( - COUNT ( * ), + + 4 / 42 ) ) / - 94 + + - 96 / - 58 * + 95 - + 49 ) + + 25 + - COUNT ( * ) col1
----
2
29

query I rowsort
SELECT ALL + 79 * + 65
----
5135

query I rowsort
SELECT DISTINCT 14 * 88
----
1232

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2618
SELECT ALL + COUNT( * ), 20 DIV - - 70 AS col1, + + COUNT( * )
----
1
0
1

skipif mysql # not compatible
query III rowsort label-2618
SELECT ALL + COUNT ( * ), 20 / - - 70 AS col1, + + COUNT ( * )
----
1
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT ALL + + COUNT( - + 27 ) * - + 49 + + 78
----
29

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL + + COUNT ( - + 27 ) * - + 49 + + 78
----
29

query I rowsort
SELECT - 5 * + 11 col0
----
-55

query I rowsort
SELECT ALL - + CASE + 20 WHEN - 14 THEN 30 WHEN + + 58 THEN - 71 END + - 3 / + 63
----
NULL

query I rowsort
SELECT 13 * - 66 AS col0
----
-858

query I rowsort
SELECT - 2 * 91 AS col1
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT DISTINCT MAX( ALL + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT MAX ( ALL + 69 )
----
69

query I rowsort
SELECT ALL + - 91 + + 13 * - 83 AS col2
----
-1170

query I rowsort
SELECT + 69 * - 96 col2
----
-6624

query I rowsort
SELECT ALL - - 95 + 3
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2628
SELECT ALL + - COALESCE ( - 10, CASE - COUNT( * ) WHEN + 93 THEN NULL ELSE - 86 END, + - ( + 0 ) * + + 49 + + MIN( ALL - 41 ) + + + 3 * - MIN( - ( + 72 ) ) + ( + 43 ), CAST( - 44 AS SIGNED ) ) + 87
----
97

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL + - COALESCE ( - 10, CASE - COUNT ( * ) WHEN + 93 THEN NULL ELSE - 86 END, + - ( + 0 ) * + + 49 + + MIN ( ALL - 41 ) + + + 3 * - MIN ( - ( + 72 ) ) + ( + 43 ), CAST ( - 44 AS INTEGER ) ) + 87
----
97

query I rowsort
SELECT ALL - NULLIF ( + ( 67 ), - - 92 * - 34 ) * + 93
----
-6231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2630
SELECT - 35 + - CAST( - - AVG ( DISTINCT - + 31 ) AS SIGNED ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-2630
SELECT - 35 + - CAST ( - - AVG ( DISTINCT - + 31 ) AS INTEGER ) col0
----
-4

query II rowsort
SELECT DISTINCT - 65 AS col1, + 95
----
-65
95

query I rowsort
SELECT 55 * + 58 + + 99 AS col1
----
3289

query I rowsort
SELECT 71 * 65
----
4615

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT DISTINCT - MAX( + - CASE - 11 WHEN 69 THEN - - 55 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT - MAX ( + - CASE - 11 WHEN 69 THEN - - 55 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2635
SELECT ALL + CAST( 18 AS SIGNED ) - + CASE + - ( 98 ) WHEN - - 78 THEN + - 63 + + + 15 ELSE NULL END + + 12 * + ( + + 67 ) * + 4 / 6 - + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL + CAST ( 18 AS INTEGER ) - + CASE + - ( 98 ) WHEN - - 78 THEN + - 63 + + + 15 ELSE NULL END + + 12 * + ( + + 67 ) * + 4 / 6 - + 74 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2636
SELECT 54 + + 28 AS col2, 90 * - + CAST( NULL AS SIGNED ) AS col2
----
82
NULL

skipif mysql # not compatible
query II rowsort label-2636
SELECT 54 + + 28 AS col2, 90 * - + CAST ( NULL AS INTEGER ) AS col2
----
82
NULL

query I rowsort
SELECT 61 * - - 62
----
3782

query I rowsort
SELECT 70 * + - 66
----
-4620

query I rowsort
SELECT 44 + + 59 AS col2
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2640
SELECT + COUNT( * ) * 89 + - CAST( 27 AS SIGNED ) - - 71 * 25 * + COALESCE ( - 61, COUNT( * ), COALESCE ( 56, + + 5, + CASE - + CAST( - + 68 AS SIGNED ) WHEN 31 THEN NULL ELSE + COUNT( * ) END ) ) * 32 AS col0
----
-3464738

skipif mysql # not compatible
query I rowsort label-2640
SELECT + COUNT ( * ) * 89 + - CAST ( 27 AS INTEGER ) - - 71 * 25 * + COALESCE ( - 61, COUNT ( * ), COALESCE ( 56, + + 5, + CASE - + CAST ( - + 68 AS INTEGER ) WHEN 31 THEN NULL ELSE + COUNT ( * ) END ) ) * 32 AS col0
----
-3464738

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2644
SELECT 60 * 8 DIV + 52 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2644
SELECT 60 * 8 / + 52 AS col0
----
9

query II rowsort
SELECT 93 AS col1, + 27
----
93
27

query I rowsort
SELECT 85 * - - 18 AS col1
----
1530

onlyif mysql # aggregate syntax: 
query II rowsort label-2647
SELECT ALL 26 AS col0, - COUNT( + 50 )
----
26
-1

skipif mysql # not compatible
query II rowsort label-2647
SELECT ALL 26 AS col0, - COUNT ( + 50 )
----
26
-1

query I rowsort
SELECT DISTINCT 14 * + 88
----
1232

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

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

query I rowsort
SELECT 90 + 42
----
132

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2652
SELECT + 86 DIV + 25, + 13 AS col0
----
3
13

skipif mysql # not compatible
query II rowsort label-2652
SELECT + 86 / + 25, + 13 AS col0
----
3
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT + 39 + + 86 - + + 89 * - COUNT( * )
----
214

skipif mysql # not compatible
query I rowsort label-2654
SELECT + 39 + + 86 - + + 89 * - COUNT ( * )
----
214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2655
SELECT ALL + 7 / + - 97 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL + 7 / + - 97 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT DISTINCT MAX( + - 36 ) col1
----
-36

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT MAX ( + - 36 ) col1
----
-36

query I rowsort
SELECT - 62 * - + 94 * 23 * 91
----
12198004

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT DISTINCT + 57 + + 39 + - - SUM( ALL + 1 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-2658
SELECT DISTINCT + 57 + + 39 + - - SUM ( ALL + 1 ) AS col1
----
97

query II rowsort
SELECT - 13 AS col2, - 7 AS col0
----
-13
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT ALL + COUNT( * ) + + - ( + 42 )
----
-41

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL + COUNT ( * ) + + - ( + 42 )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2661
SELECT ALL + 87 AS col0, CAST( + - 32 AS SIGNED )
----
87
-32

skipif mysql # not compatible
query II rowsort label-2661
SELECT ALL + 87 AS col0, CAST ( + - 32 AS INTEGER )
----
87
-32

query II rowsort
SELECT 49 AS col1, 56 AS col0
----
49
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2663
SELECT + 85 / + - CAST( NULL AS DECIMAL ) + - 82 * - COUNT( * ) / - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-2663
SELECT + 85 / + - CAST ( NULL AS REAL ) + - 82 * - COUNT ( * ) / - 43
----
NULL

query I rowsort
SELECT + + 44 * + 45 AS col1
----
1980

onlyif mysql # DIV for integer division: 
query I rowsort label-2665
SELECT - - 80 + + - 6 DIV + + 66 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-2665
SELECT - - 80 + + - 6 / + + 66 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT DISTINCT 38 * - + 70 - + 67 * + COUNT( * ) - + 32 * COUNT( * ) AS col2
----
-2759

skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT 38 * - + 70 - + 67 * + COUNT ( * ) - + 32 * COUNT ( * ) AS col2
----
-2759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2667
SELECT ALL - CASE - CAST( NULL AS DECIMAL ) WHEN 85 * + + MIN( - ( + 71 ) ) + - 44 + 37 * - CAST( NULL AS SIGNED ) + - 5 THEN + - 30 * - 63 ELSE NULL END / - COUNT( * ) + + + 71 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL - CASE - CAST ( NULL AS REAL ) WHEN 85 * + + MIN ( - ( + 71 ) ) + - 44 + 37 * - CAST ( NULL AS INTEGER ) + - 5 THEN + - 30 * - 63 ELSE NULL END / - COUNT ( * ) + + + 71 col2
----
NULL

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

query I rowsort
SELECT - 69 * + + 54
----
-3726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2670
SELECT NULLIF ( MIN( ALL + - 22 ), - CAST( NULL AS SIGNED ) + - 92 + COUNT( ALL - 33 ) - 39 + COUNT( * ) * + 9 ) AS col1, - 89 * + - 69
----
-22
6141

skipif mysql # not compatible
query II rowsort label-2670
SELECT NULLIF ( MIN ( ALL + - 22 ), - CAST ( NULL AS INTEGER ) + - 92 + COUNT ( ALL - 33 ) - 39 + COUNT ( * ) * + 9 ) AS col1, - 89 * + - 69
----
-22
6141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2671
SELECT - COUNT( * ) DIV 25 * + 9 * - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2671
SELECT - COUNT ( * ) / 25 * + 9 * - 74 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT ALL + NULLIF ( + MAX( DISTINCT 67 ), + 52 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL + NULLIF ( + MAX ( DISTINCT 67 ), + 52 ) AS col1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2673
SELECT + 3 * - CAST( + + 87 AS SIGNED )
----
-261

skipif mysql # not compatible
query I rowsort label-2673
SELECT + 3 * - CAST ( + + 87 AS INTEGER )
----
-261

query I rowsort
SELECT ALL + COALESCE ( 45, + - 25 )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-2675
SELECT - 67 * 78, - 98 * NULLIF ( 41, + + 24 + - - COUNT( * ) + + 82 ) AS col1
----
-5226
-4018

skipif mysql # not compatible
query II rowsort label-2675
SELECT - 67 * 78, - 98 * NULLIF ( 41, + + 24 + - - COUNT ( * ) + + 82 ) AS col1
----
-5226
-4018

query II rowsort
SELECT DISTINCT 22 * + ( 86 ) + + 83 + + 66 AS col1, 11 col1
----
2041
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT DISTINCT ( + ( MAX( DISTINCT + 2 ) ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT ( + ( MAX ( DISTINCT + 2 ) ) ) AS col0
----
2

query I rowsort
SELECT + 61 + 18 * + + 30 AS col1
----
601

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT DISTINCT + COUNT( * ) + - 10 * - + 30 + 54 * + 38 + + + 9 AS col2
----
2362

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT + COUNT ( * ) + - 10 * - + 30 + 54 * + 38 + + + 9 AS col2
----
2362

query I rowsort
SELECT - COALESCE ( 74, 74 ) AS col0
----
-74

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

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

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

query II rowsort
SELECT + 24 * + 75 AS col1, - 7 - 82 AS col1
----
1800
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-2684
SELECT DISTINCT - 89 + - 65 col2, ( - SUM( ALL + ( 34 ) ) ) + 19 AS col1
----
-154
-15

skipif mysql # not compatible
query II rowsort label-2684
SELECT DISTINCT - 89 + - 65 col2, ( - SUM ( ALL + ( 34 ) ) ) + 19 AS col1
----
-154
-15

query I rowsort
SELECT ALL 7 + - + 14
----
-7

query I rowsort
SELECT DISTINCT 25 + + 98 * - - 50 AS col2
----
4925

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

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

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

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

query I rowsort
SELECT - COALESCE ( 91, - - 64 - - - 84 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT + 26 - + COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-2690
SELECT + 26 - + COUNT ( * ) AS col1
----
25

query I rowsort
SELECT + 40 - - ( - - 96 ) * - 45
----
-4280

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

skipif mysql # not compatible
query I rowsort label-2692
SELECT + + COUNT ( * ) * ( - CAST ( - + 88 AS INTEGER ) ) col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2693
SELECT DISTINCT + COUNT( * ) DIV - 2 * - 66 col2
----
0

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT + COUNT ( * ) / - 2 * - 66 col2
----
0

query I rowsort
SELECT + 81 * + 19 AS col0
----
1539

query I rowsort
SELECT + NULLIF ( + - 32, - + 35 + ( - 53 ) + - 56 ) * + 88
----
-2816

query I rowsort
SELECT DISTINCT 5 * - 67 * 29 * + 47
----
-456605

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT 65 * - - COUNT( * ) * + COUNT( * ) + - 95 + + + 17
----
-13

skipif mysql # not compatible
query I rowsort label-2698
SELECT 65 * - - COUNT ( * ) * + COUNT ( * ) + - 95 + + + 17
----
-13

query I rowsort
SELECT ALL 40 * + 70 * + ( + 90 ) AS col1
----
252000

onlyif mysql # DIV for integer division: 
query II rowsort label-2700
SELECT DISTINCT + 21 AS col2, 9 DIV - - 19 col0
----
21
0

skipif mysql # not compatible
query II rowsort label-2700
SELECT DISTINCT + 21 AS col2, 9 / - - 19 col0
----
21
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2701
SELECT + CAST( NULL AS SIGNED ) AS col0, CASE - 98 WHEN - - 35 + + 63 * - COUNT( * ) THEN NULL WHEN + - 33 THEN NULL ELSE + 64 + 74 END
----
NULL
138

skipif mysql # not compatible
query II rowsort label-2701
SELECT + CAST ( NULL AS INTEGER ) AS col0, CASE - 98 WHEN - - 35 + + 63 * - COUNT ( * ) THEN NULL WHEN + - 33 THEN NULL ELSE + 64 + 74 END
----
NULL
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2702
SELECT + COUNT( * ) DIV + ( + + 73 ) * - - 13 + - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2702
SELECT + COUNT ( * ) / + ( + + 73 ) * - - 13 + - - COUNT ( * ) AS col0
----
1

query I rowsort
SELECT ALL 4 * - - 31 AS col2
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2704
SELECT - NULLIF ( + 32, ( - COUNT( * ) ) * - + 37 ) * - - ( 92 ) + - - 77 + - COUNT( * ) + - ( - - CAST( NULL AS SIGNED ) ) / 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2704
SELECT - NULLIF ( + 32, ( - COUNT ( * ) ) * - + 37 ) * - - ( 92 ) + - - 77 + - COUNT ( * ) + - ( - - CAST ( NULL AS INTEGER ) ) / 67
----
NULL

query I rowsort
SELECT ALL 74 * + - 10 + 30
----
-710

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2706
SELECT ALL COUNT( * ) * - 81 + 55, + ( - COALESCE ( COUNT( * ), - 3 + - + 23 + - - 13, + COALESCE ( - + 26, - 24 + 18 * + 61, 57 ) * + - ( + 20 ) * + - COUNT( * ) * 85 + 44 ) ) DIV + 76 AS col0
----
-26
0

skipif mysql # not compatible
query II rowsort label-2706
SELECT ALL COUNT ( * ) * - 81 + 55, + ( - COALESCE ( COUNT ( * ), - 3 + - + 23 + - - 13, + COALESCE ( - + 26, - 24 + 18 * + 61, 57 ) * + - ( + 20 ) * + - COUNT ( * ) * 85 + 44 ) ) / + 76 AS col0
----
-26
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ( + - CASE + + COUNT( * ) WHEN 61 + - - 34 THEN NULL ELSE 59 - + 13 + + - 62 + ( - 57 ) END )
----
73

skipif mysql # not compatible
query I rowsort label-2707
SELECT ( + - CASE + + COUNT ( * ) WHEN 61 + - - 34 THEN NULL ELSE 59 - + 13 + + - 62 + ( - 57 ) END )
----
73

query I rowsort
SELECT DISTINCT NULLIF ( - - 23, 85 ) * 98 + - ( 43 ) - 14 AS col2
----
2197

query II rowsort
SELECT ALL + 40 col1, + 38 * - + ( - 67 ) AS col1
----
40
2546

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT - 20 + - ( - - 89 ) * + COUNT( * ) AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-2710
SELECT - 20 + - ( - - 89 ) * + COUNT ( * ) AS col0
----
-109

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

skipif mysql # not compatible
query I rowsort label-2711
SELECT COALESCE ( + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ), COALESCE ( COUNT ( * ), - 26 ) * 32 ) AS col0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2712
SELECT - 38 DIV - + 56 * + 47 AS col0, 98 - + COUNT( * ) AS col2
----
0
97

skipif mysql # not compatible
query II rowsort label-2712
SELECT - 38 / - + 56 * + 47 AS col0, 98 - + COUNT ( * ) AS col2
----
0
97

query I rowsort
SELECT NULLIF ( + - 64, + 18 * 94 * - + 88 )
----
-64

query I rowsort
SELECT ALL - 58 + + 91 AS col0
----
33

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2716
SELECT - 99 * + CASE - + COUNT( * ) WHEN - 51 THEN NULL WHEN - MIN( + + 62 ) THEN NULL WHEN + NULLIF ( + NULLIF ( - 31, - + 96 ), + - 33 * 32 + + 85 + + CASE - - 93 WHEN + COALESCE ( + COUNT( * ), + MAX( DISTINCT - CASE 74 WHEN + 97 THEN 91 END ) ) THEN NULL WHEN 82 * COUNT( * ) THEN - 74 END ) THEN - COUNT( * ) * ( + COUNT( 30 ) * + CASE 51 WHEN 51 THEN + 75 WHEN + NULLIF ( + AVG ( 20 ), CASE 42 WHEN - 6 * + CAST( NULL AS SIGNED ) - COUNT( * ) THEN - COUNT( * ) * + 53 END * 43 + 58 ) THEN - 75 ELSE - 80 END ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT - 99 * + CASE - + COUNT ( * ) WHEN - 51 THEN NULL WHEN - MIN ( + + 62 ) THEN NULL WHEN + NULLIF ( + NULLIF ( - 31, - + 96 ), + - 33 * 32 + + 85 + + CASE - - 93 WHEN + COALESCE ( + COUNT ( * ), + MAX ( DISTINCT - CASE 74 WHEN + 97 THEN 91 END ) ) THEN NULL WHEN 82 * COUNT ( * ) THEN - 74 END ) THEN - COUNT ( * ) * ( + COUNT ( 30 ) * + CASE 51 WHEN 51 THEN + 75 WHEN + NULLIF ( + AVG ( 20 ), CASE 42 WHEN - 6 * + CAST ( NULL AS INTEGER ) - COUNT ( * ) THEN - COUNT ( * ) * + 53 END * 43 + 58 ) THEN - 75 ELSE - 80 END ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2717
SELECT DISTINCT + + 64 + - + CAST( - 37 AS SIGNED ) + - 97 + 25 + - 86 * + MIN( - 87 ) AS col0
----
7511

skipif mysql # not compatible
query I rowsort label-2717
SELECT DISTINCT + + 64 + - + CAST ( - 37 AS INTEGER ) + - 97 + 25 + - 86 * + MIN ( - 87 ) AS col0
----
7511

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2718
SELECT ALL - CASE - NULLIF ( - NULLIF ( - 22, 86 * 55 + + - 6 ), + - 63 ) WHEN COUNT( * ) * + 62 THEN + CAST( NULL AS SIGNED ) + + 28 + 57 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL - CASE - NULLIF ( - NULLIF ( - 22, 86 * 55 + + - 6 ), + - 63 ) WHEN COUNT ( * ) * + 62 THEN + CAST ( NULL AS INTEGER ) + + 28 + 57 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT MAX( ALL + - COALESCE ( - 90, COALESCE ( ( + 45 ), - - 32 * + 45 ) * - 55, + 64 * - 77 ) ) * + 27 * + NULLIF ( - ( - 88 ), + 50 * + 73 ) AS col1
----
213840

skipif mysql # not compatible
query I rowsort label-2719
SELECT MAX ( ALL + - COALESCE ( - 90, COALESCE ( ( + 45 ), - - 32 * + 45 ) * - 55, + 64 * - 77 ) ) * + 27 * + NULLIF ( - ( - 88 ), + 50 * + 73 ) AS col1
----
213840

query I rowsort
SELECT 19 - + + 1 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT DISTINCT - + 72 - COUNT( * ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT - + 72 - COUNT ( * ) AS col2
----
-73

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

query I rowsort
SELECT DISTINCT - NULLIF ( 98, - ( - 57 ) )
----
-98

query I rowsort
SELECT 99 + + 27
----
126

query I rowsort
SELECT - 15 * 21 AS col0
----
-315

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2727
SELECT ALL - ( - - 84 ) - - + 41 + CASE - - COALESCE ( 65, 16 ) WHEN + CAST( + + 35 AS SIGNED ) THEN + CASE - 39 WHEN - 47 + + - 43 + 75 THEN 49 END * + - 44 * + 19 WHEN - 78 THEN + CASE 99 WHEN - 29 THEN AVG ( - 85 ) ELSE 26 END * - 23 - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL - ( - - 84 ) - - + 41 + CASE - - COALESCE ( 65, 16 ) WHEN + CAST ( + + 35 AS INTEGER ) THEN + CASE - 39 WHEN - 47 + + - 43 + 75 THEN 49 END * + - 44 * + 19 WHEN - 78 THEN + CASE 99 WHEN - 29 THEN AVG ( - 85 ) ELSE 26 END * - 23 - COUNT ( * ) END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT MAX( 32 ) * - - 55 AS col1
----
1760

skipif mysql # not compatible
query I rowsort label-2729
SELECT MAX ( 32 ) * - - 55 AS col1
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT ALL MAX( + + 68 ) + + 1 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL MAX ( + + 68 ) + + 1 AS col2
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2731
SELECT DISTINCT 21 + 0 * + + 34 * ( 62 ) * 6 + - - 83 + - + 41 + - COUNT( ALL + 45 ) * - 32 * + 55 * - ( + - ( 25 ) ), ( 68 ) * - + 14 col1
----
44063
-952

skipif mysql # not compatible
query II rowsort label-2731
SELECT DISTINCT 21 + 0 * + + 34 * ( 62 ) * 6 + - - 83 + - + 41 + - COUNT ( ALL + 45 ) * - 32 * + 55 * - ( + - ( 25 ) ), ( 68 ) * - + 14 col1
----
44063
-952

query I rowsort
SELECT DISTINCT 45 + + 83
----
128

onlyif mysql # DIV for integer division: 
query II rowsort label-2733
SELECT 89 DIV + 57 col0, + 14 + - 77
----
1
-63

skipif mysql # not compatible
query II rowsort label-2733
SELECT 89 / + 57 col0, + 14 + - 77
----
1
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT DISTINCT - CASE 30 WHEN COUNT( * ) + + - 96 THEN NULL WHEN 22 + - + COUNT( * ) + - 30 THEN - AVG ( ALL - 27 ) * CASE - ( ( - + 54 ) ) WHEN + 6 THEN NULL WHEN 41 - - 21 + - COUNT( * ) THEN + - 64 WHEN + + ( - 71 ) THEN 86 ELSE NULL END ELSE NULL END + 24 / - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT - CASE 30 WHEN COUNT ( * ) + + - 96 THEN NULL WHEN 22 + - + COUNT ( * ) + - 30 THEN - AVG ( ALL - 27 ) * CASE - ( ( - + 54 ) ) WHEN + 6 THEN NULL WHEN 41 - - 21 + - COUNT ( * ) THEN + - 64 WHEN + + ( - 71 ) THEN 86 ELSE NULL END ELSE NULL END + 24 / - 32 AS col0
----
NULL

query I rowsort
SELECT ALL 50 * - 29 AS col1
----
-1450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2736
SELECT DISTINCT 9 + NULLIF ( - + 58, + 35 ) + CAST( NULL AS SIGNED ) + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT 9 + NULLIF ( - + 58, + 35 ) + CAST ( NULL AS INTEGER ) + + 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT DISTINCT MIN( DISTINCT 38 ) * - 45 * 84 * 97
----
-13933080

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT MIN ( DISTINCT 38 ) * - 45 * 84 * 97
----
-13933080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2738
SELECT ALL 44 + - CAST( - 18 AS SIGNED ) * COUNT( + 6 ) AS col2, - 99 + 18 AS col2
----
62
-81

skipif mysql # not compatible
query II rowsort label-2738
SELECT ALL 44 + - CAST ( - 18 AS INTEGER ) * COUNT ( + 6 ) AS col2, - 99 + 18 AS col2
----
62
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT - 76 * - - 16 + - COUNT( * ) * 39 AS col1
----
-1255

skipif mysql # not compatible
query I rowsort label-2739
SELECT - 76 * - - 16 + - COUNT ( * ) * 39 AS col1
----
-1255

query II rowsort
SELECT 4 - - 53 AS col2, 40 AS col2
----
57
40

query I rowsort
SELECT ALL + 89 * + 69 + + + 49 - + 69
----
6121

query I rowsort
SELECT + + NULLIF ( 93, - ( 71 ) )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2743
SELECT ALL + COALESCE ( COALESCE ( - 16, + + SUM( ALL - CASE + + CAST( NULL AS SIGNED ) WHEN 86 THEN 77 END ), + - 9 + - - 40 ), 26 - COUNT( * ) ) - - 90 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL + COALESCE ( COALESCE ( - 16, + + SUM ( ALL - CASE + + CAST ( NULL AS INTEGER ) WHEN 86 THEN 77 END ), + - 9 + - - 40 ), 26 - COUNT ( * ) ) - - 90 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT 92 * 57 + MAX( - - 69 ) AS col1
----
5313

skipif mysql # not compatible
query I rowsort label-2744
SELECT 92 * 57 + MAX ( - - 69 ) AS col1
----
5313

query I rowsort
SELECT DISTINCT - 95 * - 96 AS col2
----
9120

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT COUNT( DISTINCT + - 80 ) * - 99
----
-99

skipif mysql # not compatible
query I rowsort label-2746
SELECT COUNT ( DISTINCT + - 80 ) * - 99
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2747
SELECT - 13 + - + COUNT( * ) / - SUM( - + 7 ) / - + CAST( NULL AS SIGNED ) / + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2747
SELECT - 13 + - + COUNT ( * ) / - SUM ( - + 7 ) / - + CAST ( NULL AS INTEGER ) / + 20
----
NULL

query I rowsort
SELECT 6 * + 72
----
432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2749
SELECT + 62 / - + 62 * MIN( - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2749
SELECT + 62 / - + 62 * MIN ( - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2750
SELECT DISTINCT - 19 + + 80 + + 32 + - - CAST( NULL AS SIGNED ) * + 12 * - 65 * - CAST( + + 66 AS SIGNED ) / + 44 + + - CASE - 96 WHEN - 14 THEN NULL WHEN - 70 THEN NULL WHEN - - 95 * + - 61 * - ( MIN( DISTINCT - - 89 ) ) / 61 + - COUNT( * ) * + CASE WHEN NOT NULL > NULL THEN - MAX( - 17 ) END + MIN( ALL 13 ) THEN NULL ELSE - 26 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2750
SELECT DISTINCT - 19 + + 80 + + 32 + - - CAST ( NULL AS INTEGER ) * + 12 * - 65 * - CAST ( + + 66 AS INTEGER ) / + 44 + + - CASE - 96 WHEN - 14 THEN NULL WHEN - 70 THEN NULL WHEN - - 95 * + - 61 * - ( MIN ( DISTINCT - - 89 ) ) / 61 + - COUNT ( * ) * + CASE WHEN NOT NULL > NULL THEN - MAX ( - 17 ) END + MIN ( ALL 13 ) THEN NULL ELSE - 26 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT ALL + 65 + - COUNT( * ) + + + 92 col0
----
156

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL + 65 + - COUNT ( * ) + + + 92 col0
----
156

query I rowsort
SELECT 60 - - + 29
----
89

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

query I rowsort
SELECT 70 - - ( - - 10 ) * 48
----
550

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT ALL MAX( ALL + + 24 ) + + - COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL MAX ( ALL + + 24 ) + + - COUNT ( * ) AS col0
----
23

query I rowsort
SELECT ALL + 65 + - + 18
----
47

query I rowsort
SELECT DISTINCT 66 * - 38 + - 9 AS col2
----
-2517

query I rowsort
SELECT ALL - COALESCE ( + 65, - 63 ) AS col1
----
-65

query I rowsort
SELECT 69 + 72 AS col1
----
141

query I rowsort
SELECT NULLIF ( - + 35, ( + 97 ) ) AS col2
----
-35

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2762
SELECT 24 DIV - - COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-2762
SELECT 24 / - - COUNT ( * ) AS col0
----
24

query I rowsort
SELECT ALL - 69 * 46 + 99
----
-3075

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2765
SELECT - 72 / 43 + + 62 / - 29 + + 45 + + 43 + - CAST( NULL AS DECIMAL ) * 39 col1, + 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-2765
SELECT - 72 / 43 + + 62 / - 29 + + 45 + + 43 + - CAST ( NULL AS REAL ) * 39 col1, + 78
----
NULL
78

query I rowsort
SELECT + 61 + - 52
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2767
SELECT DISTINCT 29 * + 36 * 62 + + 57 DIV 76
----
64728

skipif mysql # not compatible
query I rowsort label-2767
SELECT DISTINCT 29 * + 36 * 62 + + 57 / 76
----
64728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2768
SELECT DISTINCT + COUNT( - 74 ) * - CAST( + 93 AS SIGNED ) * + COUNT( * ) DIV 96 * - + 30 * - MIN( 19 ) + - - 32 col2
----
32

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT + COUNT ( - 74 ) * - CAST ( + 93 AS INTEGER ) * + COUNT ( * ) / 96 * - + 30 * - MIN ( 19 ) + - - 32 col2
----
32

query II rowsort
SELECT ALL + 69 AS col0, 96 AS col1
----
69
96

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

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

query I rowsort
SELECT ALL 87 * - - 30 - + 11 AS col1
----
2599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2772
SELECT + 31 + + ( + - 41 ) * 50 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2772
SELECT + 31 + + ( + - 41 ) * 50 + - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + + 9 AS col1, 5
----
9
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT - COALESCE ( 57, + COUNT( * ) )
----
-57

skipif mysql # not compatible
query I rowsort label-2774
SELECT - COALESCE ( 57, + COUNT ( * ) )
----
-57

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

query II rowsort
SELECT ALL - CASE + + ( + 5 ) WHEN + + ( - 53 ) THEN NULL ELSE - 80 END AS col1, + 65
----
80
65

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

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

query I rowsort
SELECT - 33 * + - 90 * - + 47 * - 95 AS col2
----
13261050

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT + 72 + - NULLIF ( - ( + 25 ), 42 + COUNT( * ) + - 93 )
----
97

skipif mysql # not compatible
query I rowsort label-2779
SELECT + 72 + - NULLIF ( - ( + 25 ), 42 + COUNT ( * ) + - 93 )
----
97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2781
SELECT + - 0 DIV - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2781
SELECT + - 0 / - 51 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT - + MIN( - 17 ) * + 52 + - + 57 AS col1
----
827

skipif mysql # not compatible
query I rowsort label-2782
SELECT - + MIN ( - 17 ) * + 52 + - + 57 AS col1
----
827

query I rowsort
SELECT + + 84 + - - 84
----
168

query II rowsort
SELECT - 90 col1, 31 * - - 76 * + - 77 AS col2
----
-90
-181412

query I rowsort
SELECT DISTINCT - 24 * - 31 * - 29
----
-21576

query I rowsort
SELECT - ( ( + - 89 ) ) + - 6 col1
----
83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2787
SELECT - CAST( + - 80 AS SIGNED ) + - 38 + 88 - + - 12 DIV + 93 AS col2, - 20
----
130
-20

skipif mysql # not compatible
query II rowsort label-2787
SELECT - CAST ( + - 80 AS INTEGER ) + - 38 + 88 - + - 12 / + 93 AS col2, - 20
----
130
-20

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2789
SELECT 26 col2, COUNT( * ) col0
----
26
1

skipif mysql # not compatible
query II rowsort label-2789
SELECT 26 col2, COUNT ( * ) col0
----
26
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT ALL NULLIF ( + MAX( ALL - 53 ), 36 )
----
-53

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL NULLIF ( + MAX ( ALL - 53 ), 36 )
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-2791
SELECT - 68 DIV 88 + - + 87
----
-87

skipif mysql # not compatible
query I rowsort label-2791
SELECT - 68 / 88 + - + 87
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-2792
SELECT ALL - ( + - 54 ) DIV 12 - + - 2
----
6

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL - ( + - 54 ) / 12 - + - 2
----
6

query I rowsort
SELECT + 73 + + - 13
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2794
SELECT DISTINCT COUNT( * ) DIV + 52 - + 5 - - 18 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2794
SELECT DISTINCT COUNT ( * ) / + 52 - + 5 - - 18 AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2795
SELECT ALL - CAST( + - 1 AS SIGNED ) * + MAX( DISTINCT 15 ) AS col2, 94 col1
----
15
94

skipif mysql # not compatible
query II rowsort label-2795
SELECT ALL - CAST ( + - 1 AS INTEGER ) * + MAX ( DISTINCT 15 ) AS col2, 94 col1
----
15
94

query II rowsort
SELECT ALL + 78 AS col0, - 99
----
78
-99

query I rowsort
SELECT DISTINCT - 17 * + + 6 AS col1
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-2798
SELECT ALL - 9 DIV - 6 - + - 93
----
94

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL - 9 / - 6 - + - 93
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2799
SELECT + 55 * 94 DIV 39 * + COUNT( * ) * + MAX( CAST( 87 AS SIGNED ) ) AS col0
----
11484

skipif mysql # not compatible
query I rowsort label-2799
SELECT + 55 * 94 / 39 * + COUNT ( * ) * + MAX ( CAST ( 87 AS INTEGER ) ) AS col0
----
11484

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT ALL - SUM( + 58 ) * - 7 col2
----
406

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL - SUM ( + 58 ) * - 7 col2
----
406

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

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

query I rowsort
SELECT - - 55 * 11 * 97 - 68 AS col2
----
58617

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2804
SELECT ALL - - 13 * 71 - + CAST( - COALESCE ( + - NULLIF ( + + 6, ( - 74 ) + 70 ), + 4 ) AS SIGNED )
----
917

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL - - 13 * 71 - + CAST ( - COALESCE ( + - NULLIF ( + + 6, ( - 74 ) + 70 ), + 4 ) AS INTEGER )
----
917

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT + + 0 * - + 78 * - 79 - + MAX( - + 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-2806
SELECT + + 0 * - + 78 * - 79 - + MAX ( - + 39 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT ALL + ( - CASE - - 8 WHEN - COUNT( * ) THEN 44 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL + ( - CASE - - 8 WHEN - COUNT ( * ) THEN 44 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2808
SELECT DISTINCT + + 42 AS col0, CAST( + + COUNT( * ) AS SIGNED ) AS col0
----
42
1

skipif mysql # not compatible
query II rowsort label-2808
SELECT DISTINCT + + 42 AS col0, CAST ( + + COUNT ( * ) AS INTEGER ) AS col0
----
42
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2810
SELECT + CAST( - 54 AS SIGNED ) * + + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) * MIN( + 65 ) * - + 45 + + 1 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT + CAST ( - 54 AS INTEGER ) * + + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) * MIN ( + 65 ) * - + 45 + + 1 * COUNT ( * )
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 29 * + + 77
----
-2233

query I rowsort
SELECT ALL + 54 * + 32 + - 97 AS col2
----
1631

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT ALL COUNT( * ) * - 31 col2
----
-31

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL COUNT ( * ) * - 31 col2
----
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT + + 4 * - MAX( - 50 )
----
200

skipif mysql # not compatible
query I rowsort label-2816
SELECT + + 4 * - MAX ( - 50 )
----
200

query I rowsort
SELECT + + 99 + + 2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT ALL 98 * 59 * 9 + COUNT( * ) + - + 6
----
52033

skipif mysql # not compatible
query I rowsort label-2818
SELECT ALL 98 * 59 * 9 + COUNT ( * ) + - + 6
----
52033

query I rowsort
SELECT ALL - ( - 94 ) AS col1
----
94

query I rowsort
SELECT - ( - 8 ) col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2821
SELECT + 51, + COUNT( * ) * 48 + + - 95 + ( + 67 ) - - - CAST( NULL AS SIGNED ) + + 29 / + ( - AVG ( - - 92 ) ) * + + 61 + + 68 AS col2
----
51
NULL

skipif mysql # not compatible
query II rowsort label-2821
SELECT + 51, + COUNT ( * ) * 48 + + - 95 + ( + 67 ) - - - CAST ( NULL AS INTEGER ) + + 29 / + ( - AVG ( - - 92 ) ) * + + 61 + + 68 AS col2
----
51
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT ALL 23 * - ( - - 70 ) + - SUM( ALL - 47 )
----
-1563

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL 23 * - ( - - 70 ) + - SUM ( ALL - 47 )
----
-1563

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT ALL CASE - CASE 30 WHEN - 45 - + 23 / COUNT( * ) * - COUNT( * ) THEN NULL ELSE COUNT( * ) END WHEN 7 * - - ( 99 ) / + 64 / - NULLIF ( - 43, - + 57 ) * - COUNT( * ) + + 74 + - - 20 - - 85 THEN + 51 WHEN + ( + 97 ) * 54 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL CASE - CASE 30 WHEN - 45 - + 23 / COUNT ( * ) * - COUNT ( * ) THEN NULL ELSE COUNT ( * ) END WHEN 7 * - - ( 99 ) / + 64 / - NULLIF ( - 43, - + 57 ) * - COUNT ( * ) + + 74 + - - 20 - - 85 THEN + 51 WHEN + ( + 97 ) * 54 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT COUNT( DISTINCT - 71 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2824
SELECT COUNT ( DISTINCT - 71 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2825
SELECT ALL 81 + 77, + COUNT( * ) DIV + ( + 91 ) AS col0
----
158
0

skipif mysql # not compatible
query II rowsort label-2825
SELECT ALL 81 + 77, + COUNT ( * ) / + ( + 91 ) AS col0
----
158
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT ALL MAX( 53 ) col0
----
53

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL MAX ( 53 ) col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2827
SELECT + ( - - CAST( + - 45 AS SIGNED ) ) + + SUM( DISTINCT - 84 ) AS col1
----
-129

skipif mysql # not compatible
query I rowsort label-2827
SELECT + ( - - CAST ( + - 45 AS INTEGER ) ) + + SUM ( DISTINCT - 84 ) AS col1
----
-129

query I rowsort
SELECT DISTINCT CASE + 64 WHEN 34 THEN + 22 ELSE + 23 END
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2829
SELECT ALL 27 - ( COALESCE ( + - 24, CASE - + 29 WHEN + ( - 35 ) THEN NULL WHEN + COUNT( * ) THEN NULL ELSE - 8 + 65 DIV AVG ( + 45 ) END ) )
----
51

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL 27 - ( COALESCE ( + - 24, CASE - + 29 WHEN + ( - 35 ) THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE - 8 + 65 / AVG ( + 45 ) END ) )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT MAX( ALL + 1 ) * 22 * - 74 + 59 + + + 67
----
-1502

skipif mysql # not compatible
query I rowsort label-2830
SELECT MAX ( ALL + 1 ) * 22 * - 74 + 59 + + + 67
----
-1502

query I rowsort
SELECT 95 - - 24 - 58 * - 52 * - + 9
----
-27025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2832
SELECT ALL + CASE + - CAST( 76 AS SIGNED ) WHEN + + 26 THEN - 58 WHEN - + 99 THEN NULL ELSE NULL END * - ( - 57 ) / + 7 * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL + CASE + - CAST ( 76 AS INTEGER ) WHEN + + 26 THEN - 58 WHEN - + 99 THEN NULL ELSE NULL END * - ( - 57 ) / + 7 * + 89
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2833
SELECT ( - 99 ) - 23 + + SUM( 84 ) AS col2, + 67 * - 65 AS col1
----
-38
-4355

skipif mysql # not compatible
query II rowsort label-2833
SELECT ( - 99 ) - 23 + + SUM ( 84 ) AS col2, + 67 * - 65 AS col1
----
-38
-4355

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

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

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

query I rowsort
SELECT 23 * - 77 AS col1
----
-1771

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT ALL - SUM( DISTINCT - 72 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL - SUM ( DISTINCT - 72 ) AS col0
----
72

query I rowsort
SELECT 4 + - COALESCE ( - 97, - - 75, 74 )
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2839
SELECT 40 DIV - 70 - + ( 20 ) + 70, - MIN( ALL + + 53 ) AS col0
----
50
-53

skipif mysql # not compatible
query II rowsort label-2839
SELECT 40 / - 70 - + ( 20 ) + 70, - MIN ( ALL + + 53 ) AS col0
----
50
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT COUNT( * ) - + + 43 + - 93
----
-135

skipif mysql # not compatible
query I rowsort label-2840
SELECT COUNT ( * ) - + + 43 + - 93
----
-135

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2841
SELECT 42 DIV - 92 AS col1, COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-2841
SELECT 42 / - 92 AS col1, COUNT ( * ) AS col1
----
0
1

query I rowsort
SELECT 32 * - 76 AS col0
----
-2432

query I rowsort
SELECT DISTINCT - 16 + 85
----
69

query I rowsort
SELECT ( - - 35 ) * + 73
----
2555

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT - 62 * CASE + - 84 WHEN - - 75 * + 73 - - 63 THEN - - 87 ELSE NULL END + + MAX( + ( 30 ) ) + + - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT - 62 * CASE + - 84 WHEN - - 75 * + 73 - - 63 THEN - - 87 ELSE NULL END + + MAX ( + ( 30 ) ) + + - 98 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2846
SELECT CASE + 59 WHEN - + COUNT( * ) THEN - NULLIF ( - 27, + 95 * - + 94 ) ELSE - 59 * - - 9 - 85 + + 94 * - - CAST( NULL AS SIGNED ) END * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-2846
SELECT CASE + 59 WHEN - + COUNT ( * ) THEN - NULLIF ( - 27, + 95 * - + 94 ) ELSE - 59 * - - 9 - 85 + + 94 * - - CAST ( NULL AS INTEGER ) END * + 98
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2847
SELECT + 91 * + ( + - 30 ) + 1 + CAST( NULL AS SIGNED ) * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT + 91 * + ( + - 30 ) + 1 + CAST ( NULL AS INTEGER ) * - 48
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2849
SELECT DISTINCT - NULLIF ( + COALESCE ( - 82, + - ( + MAX( DISTINCT - 89 ) ) + - - ( 86 ) + - CASE + COUNT( 18 ) WHEN + 63 THEN 55 WHEN ( + CAST( NULL AS SIGNED ) ) * - 27 * - - 22 * - 77 * - 15 THEN CAST( 43 AS SIGNED ) WHEN MIN( DISTINCT - 58 ) THEN NULL END, + 3 * + 62 ), 72 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-2849
SELECT DISTINCT - NULLIF ( + COALESCE ( - 82, + - ( + MAX ( DISTINCT - 89 ) ) + - - ( 86 ) + - CASE + COUNT ( 18 ) WHEN + 63 THEN 55 WHEN ( + CAST ( NULL AS INTEGER ) ) * - 27 * - - 22 * - 77 * - 15 THEN CAST ( 43 AS INTEGER ) WHEN MIN ( DISTINCT - 58 ) THEN NULL END, + 3 * + 62 ), 72 ) AS col2
----
82

query I rowsort
SELECT + 87 * + 63 + - ( - 36 )
----
5517

onlyif mysql # DIV for integer division: 
query I rowsort label-2851
SELECT ALL + 6 DIV + 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL + 6 / + 53 AS col0
----
0

query I rowsort
SELECT 69 + - - 49 AS col0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT COUNT( * ) - - 98
----
99

skipif mysql # not compatible
query I rowsort label-2853
SELECT COUNT ( * ) - - 98
----
99

query I rowsort
SELECT ALL 51 - - 50 AS col1
----
101

query I rowsort
SELECT NULLIF ( + - 78, 5 ) * + + 2 AS col1
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2856
SELECT DISTINCT 51 AS col2, - CAST( NULL AS SIGNED ) * 8 + 81 + - + ( + 55 ) / + + 94 / + 45 - + 3
----
51
NULL

skipif mysql # not compatible
query II rowsort label-2856
SELECT DISTINCT 51 AS col2, - CAST ( NULL AS INTEGER ) * 8 + 81 + - + ( + 55 ) / + + 94 / + 45 - + 3
----
51
NULL

query II rowsort
SELECT ALL 3 AS col1, - 87
----
3
-87

query I rowsort
SELECT 4 + + + 8 AS col0
----
12

query I rowsort
SELECT ALL 91 - + 13 * 22 + - 23
----
-218

query I rowsort
SELECT COALESCE ( 48, 17 - - 3, + 21 ) + 82
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2861
SELECT NULLIF ( ( + 83 ), - 44 + + - CASE - 55 WHEN - COUNT( * ) * + 26 THEN NULL ELSE + 82 * - - 90 + + - 21 END + - + CAST( NULL AS SIGNED ) - - 24 * - 2 * + SUM( ALL - 30 ) ) * - - SUM( - + 91 ) + 4 AS col1
----
-7549

skipif mysql # not compatible
query I rowsort label-2861
SELECT NULLIF ( ( + 83 ), - 44 + + - CASE - 55 WHEN - COUNT ( * ) * + 26 THEN NULL ELSE + 82 * - - 90 + + - 21 END + - + CAST ( NULL AS INTEGER ) - - 24 * - 2 * + SUM ( ALL - 30 ) ) * - - SUM ( - + 91 ) + 4 AS col1
----
-7549

query I rowsort
SELECT 49 + ( - NULLIF ( 3, + ( - 78 ) + + - 38 + - + 79 + + - 58 * - 99 ) )
----
46

query I rowsort
SELECT DISTINCT ( - + 36 ) * + - 18
----
648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2864
SELECT DISTINCT 29 AS col1, + COUNT( * ) + CASE - 55 WHEN - COUNT( * ) THEN + - 46 WHEN + - ( ( - COUNT( + 45 ) ) ) * - 64 THEN NULL ELSE + - CAST( NULL AS SIGNED ) END AS col1
----
29
NULL

skipif mysql # not compatible
query II rowsort label-2864
SELECT DISTINCT 29 AS col1, + COUNT ( * ) + CASE - 55 WHEN - COUNT ( * ) THEN + - 46 WHEN + - ( ( - COUNT ( + 45 ) ) ) * - 64 THEN NULL ELSE + - CAST ( NULL AS INTEGER ) END AS col1
----
29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT ALL - NULLIF ( - COUNT( * ), + 5 - - 45 - + - MAX( - 54 ) * - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL - NULLIF ( - COUNT ( * ), + 5 - - 45 - + - MAX ( - 54 ) * - COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2866
SELECT DISTINCT COALESCE ( + 81, + 93 * + - 73 ) * - 81 - + ( + CAST( + 75 AS SIGNED ) ) AS col1
----
-6636

skipif mysql # not compatible
query I rowsort label-2866
SELECT DISTINCT COALESCE ( + 81, + 93 * + - 73 ) * - 81 - + ( + CAST ( + 75 AS INTEGER ) ) AS col1
----
-6636

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT + 63 * - COUNT( * ) * + 83 AS col2
----
-5229

skipif mysql # not compatible
query I rowsort label-2867
SELECT + 63 * - COUNT ( * ) * + 83 AS col2
----
-5229

query I rowsort
SELECT DISTINCT 37 * + 17 + - ( + 17 ) + - - 48 AS col0
----
660

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2870
SELECT ALL + 59 + - + 75 * + 26 * 72 + ( 59 ) * 99 DIV + - 92 + + - 85
----
-140489

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL + 59 + - + 75 * + 26 * 72 + ( 59 ) * 99 / + - 92 + + - 85
----
-140489

query I rowsort
SELECT 72 * + 23 AS col2
----
1656

query II rowsort
SELECT + 13, 25 AS col1
----
13
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT + + 24 * + COUNT( * ) - + - 3 + + - 8
----
19

skipif mysql # not compatible
query I rowsort label-2874
SELECT + + 24 * + COUNT ( * ) - + - 3 + + - 8
----
19

query I rowsort
SELECT DISTINCT + - 30 + + 14 + + + 7 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT ALL - ( + - NULLIF ( - - 6, - - COUNT( * ) + - 95 + - - CASE - - COALESCE ( - 97, - + 70 + + + 98, 30 ) WHEN 31 THEN NULL ELSE + + MIN( ALL - 52 ) END ) )
----
6

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL - ( + - NULLIF ( - - 6, - - COUNT ( * ) + - 95 + - - CASE - - COALESCE ( - 97, - + 70 + + + 98, 30 ) WHEN 31 THEN NULL ELSE + + MIN ( ALL - 52 ) END ) )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2877
SELECT DISTINCT + 83 - 77 + + ( + 50 ) * 29 * 24 + - 83 / + 54 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT + 83 - 77 + + ( + 50 ) * 29 * 24 + - 83 / + 54 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2878
SELECT - 38 * + CASE - + ( - + 25 ) WHEN - ( - 81 ) THEN NULL ELSE - 4 END + COUNT( * ) * - 20 AS col2, 20 - - + 9 * 81 * - COUNT( * )
----
132
-709

skipif mysql # not compatible
query II rowsort label-2878
SELECT - 38 * + CASE - + ( - + 25 ) WHEN - ( - 81 ) THEN NULL ELSE - 4 END + COUNT ( * ) * - 20 AS col2, 20 - - + 9 * 81 * - COUNT ( * )
----
132
-709

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT + 22 + NULLIF ( - 22, + AVG ( DISTINCT - - NULLIF ( - + 25, - - 51 ) ) * + MIN( + 94 ) ) + + 46 * - 68 * + 89 + - 19 * 5 * + COUNT( * ) * + 28 AS col0
----
-281052

skipif mysql # not compatible
query I rowsort label-2879
SELECT + 22 + NULLIF ( - 22, + AVG ( DISTINCT - - NULLIF ( - + 25, - - 51 ) ) * + MIN ( + 94 ) ) + + 46 * - 68 * + 89 + - 19 * 5 * + COUNT ( * ) * + 28 AS col0
----
-281052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2880
SELECT - MAX( ALL + 82 ) AS col2, COUNT( * ) - CAST( - + 69 AS SIGNED )
----
-82
70

skipif mysql # not compatible
query II rowsort label-2880
SELECT - MAX ( ALL + 82 ) AS col2, COUNT ( * ) - CAST ( - + 69 AS INTEGER )
----
-82
70

query I rowsort
SELECT ALL 74 * 0
----
0

query I rowsort
SELECT DISTINCT 91 * 67
----
6097

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2883
SELECT DISTINCT - 58 DIV + COUNT( * ) AS col1
----
-58

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2884
SELECT + 15 DIV + 68 * - COUNT( * ) * + - NULLIF ( 43, - 51 * + + 90 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2884
SELECT + 15 / + 68 * - COUNT ( * ) * + - NULLIF ( 43, - 51 * + + 90 ) AS col2
----
0

query I rowsort
SELECT - 26 + - 69 AS col0
----
-95

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2887
SELECT - 44 DIV + 49, + 84 AS col1
----
0
84

skipif mysql # not compatible
query II rowsort label-2887
SELECT - 44 / + 49, + 84 AS col1
----
0
84

onlyif mysql # DIV for integer division: 
query II rowsort label-2888
SELECT - 79 DIV - 54 AS col2, 88
----
1
88

skipif mysql # not compatible
query II rowsort label-2888
SELECT - 79 / - 54 AS col2, 88
----
1
88

onlyif mysql # DIV for integer division: 
query II rowsort label-2889
SELECT + 84 DIV - 21, 29 AS col1
----
-4
29

skipif mysql # not compatible
query II rowsort label-2889
SELECT + 84 / - 21, 29 AS col1
----
-4
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT ALL 90 + + + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL 90 + + + COUNT ( * )
----
91

query I rowsort
SELECT ALL COALESCE ( - CASE WHEN NOT 94 < - 62 THEN NULL ELSE 94 END, 84 ) AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2892
SELECT ALL 66 + - 3 * + ( - 65 ) * - COALESCE ( - 3, - - 36 DIV + COUNT( * ), + - MAX( ALL + CAST( 35 AS SIGNED ) ) ) + + - MIN( + 81 ) - - 34 * 26 col0, ( + - 27 ) * ( 63 ) - + + 57 AS col2
----
1454
-1758

skipif mysql # not compatible
query II rowsort label-2892
SELECT ALL 66 + - 3 * + ( - 65 ) * - COALESCE ( - 3, - - 36 / + COUNT ( * ), + - MAX ( ALL + CAST ( 35 AS INTEGER ) ) ) + + - MIN ( + 81 ) - - 34 * 26 col0, ( + - 27 ) * ( 63 ) - + + 57 AS col2
----
1454
-1758

query I rowsort
SELECT + 43 * - 77
----
-3311

query I rowsort
SELECT DISTINCT 13 + - ( + 63 )
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-2895
SELECT ALL 87 + - + 25 + 46 - - 57 DIV + 36 + - 13 * - 21 * 2 * + 14, 45 DIV - 65 AS col0
----
7753
0

skipif mysql # not compatible
query II rowsort label-2895
SELECT ALL 87 + - + 25 + 46 - - 57 / + 36 + - 13 * - 21 * 2 * + 14, 45 / - 65 AS col0
----
7753
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT + - MAX( DISTINCT - 24 ) * + 6 * - 96 + + 27 + MIN( DISTINCT + 54 ) AS col2
----
-13743

skipif mysql # not compatible
query I rowsort label-2896
SELECT + - MAX ( DISTINCT - 24 ) * + 6 * - 96 + + 27 + MIN ( DISTINCT + 54 ) AS col2
----
-13743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2897
SELECT - 12 / + 60 - - MAX( ALL + - 79 ) + CAST( NULL AS SIGNED ) * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT - 12 / + 60 - - MAX ( ALL + - 79 ) + CAST ( NULL AS INTEGER ) * 84
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2898
SELECT DISTINCT 58 DIV 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2898
SELECT DISTINCT 58 / 91 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2899
SELECT - 33 * + NULLIF ( 84, NULLIF ( - 19, + 39 * - 62 - - 85 / - ( - 64 ) * + COUNT( * ) * - 46 / + 46 ) / CAST( NULL AS SIGNED ) / - MIN( DISTINCT + - 61 ) ) * + + 24 + - 54
----
-66582

skipif mysql # not compatible
query I rowsort label-2899
SELECT - 33 * + NULLIF ( 84, NULLIF ( - 19, + 39 * - 62 - - 85 / - ( - 64 ) * + COUNT ( * ) * - 46 / + 46 ) / CAST ( NULL AS INTEGER ) / - MIN ( DISTINCT + - 61 ) ) * + + 24 + - 54
----
-66582

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2900
SELECT ALL ( - 25 ) * + - 99 * + - COUNT( * ) + + 14, + 44 + 56 DIV 42 AS col2
----
-2461
45

skipif mysql # not compatible
query II rowsort label-2900
SELECT ALL ( - 25 ) * + - 99 * + - COUNT ( * ) + + 14, + 44 + 56 / 42 AS col2
----
-2461
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2901
SELECT + + CASE 54 WHEN - 42 * AVG ( - 64 ) + - CASE + 37 WHEN - 32 THEN + 47 + - MIN( DISTINCT - - 58 ) * + - NULLIF ( - + 42, - 14 + - - COUNT( * ) / + 43 ) / + NULLIF ( COUNT( * ), + 43 + CAST( NULL AS SIGNED ) ) ELSE NULL END + + 89 THEN + + 93 WHEN + - ( + + 87 ) THEN NULL END + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2901
SELECT + + CASE 54 WHEN - 42 * AVG ( - 64 ) + - CASE + 37 WHEN - 32 THEN + 47 + - MIN ( DISTINCT - - 58 ) * + - NULLIF ( - + 42, - 14 + - - COUNT ( * ) / + 43 ) / + NULLIF ( COUNT ( * ), + 43 + CAST ( NULL AS INTEGER ) ) ELSE NULL END + + 89 THEN + + 93 WHEN + - ( + + 87 ) THEN NULL END + 14 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2902
SELECT ALL 42 * - CAST( NULL AS DECIMAL ) + + 32 / - + 34 * - 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL 42 * - CAST ( NULL AS REAL ) + + 32 / - + 34 * - 60 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2904
SELECT AVG ( DISTINCT + 62 ) * - + 60 + CAST( COUNT( * ) AS DECIMAL ) + - COUNT( + + 77 ) * MAX( - 81 ) + CAST( NULL AS SIGNED ) + + + COUNT( * ) * 78 * + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2904
SELECT AVG ( DISTINCT + 62 ) * - + 60 + CAST ( COUNT ( * ) AS REAL ) + - COUNT ( + + 77 ) * MAX ( - 81 ) + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * 78 * + 2 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2905
SELECT - CASE + SUM( ALL + + 60 ) WHEN + COALESCE ( + - COUNT( DISTINCT - 47 ), 55 ) + - SUM( + 13 ) + - CAST( + COALESCE ( 12, AVG ( ALL + - 54 ), - - ( + 21 ) ) AS SIGNED ) * - 80 THEN + + 60 + + 27 ELSE + 76 END AS col2, - 92 * - - 90 * - - 94 + - + CAST( NULL AS SIGNED ) / - COUNT( * ) col2
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-2905
SELECT - CASE + SUM ( ALL + + 60 ) WHEN + COALESCE ( + - COUNT ( DISTINCT - 47 ), 55 ) + - SUM ( + 13 ) + - CAST ( + COALESCE ( 12, AVG ( ALL + - 54 ), - - ( + 21 ) ) AS INTEGER ) * - 80 THEN + + 60 + + 27 ELSE + 76 END AS col2, - 92 * - - 90 * - - 94 + - + CAST ( NULL AS INTEGER ) / - COUNT ( * ) col2
----
-76
NULL

query I rowsort
SELECT - 98 * + ( 76 )
----
-7448

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2909
SELECT DISTINCT + CAST( 4 AS SIGNED ) * + + 88 AS col2
----
352

skipif mysql # not compatible
query I rowsort label-2909
SELECT DISTINCT + CAST ( 4 AS INTEGER ) * + + 88 AS col2
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT - 39 * COUNT( * ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-2910
SELECT - 39 * COUNT ( * ) AS col1
----
-39

query I rowsort
SELECT - 27 + - 32 * - - 61 - + - 49
----
-1930

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

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

query I rowsort
SELECT - 3 * 26
----
-78

query I rowsort
SELECT - 20 + - - 93 col0
----
73

query II rowsort
SELECT 17 AS col1, + 73 + + 98 AS col2
----
17
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2916
SELECT + AVG ( DISTINCT - 58 ) + + - 94 / + 21 + - 50 + - CAST( NULL AS SIGNED ) + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT + AVG ( DISTINCT - 58 ) + + - 94 / + 21 + - 50 + - CAST ( NULL AS INTEGER ) + 24 AS col0
----
NULL

query I rowsort
SELECT - 96 + + 79 AS col1
----
-17

query I rowsort
SELECT ALL CASE 50 WHEN 96 * + - 16 THEN - 17 WHEN 74 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2919
SELECT ALL COALESCE ( + - 17, - CASE - - 12 WHEN + NULLIF ( - CAST( - MAX( + - ( + 50 ) ) AS SIGNED ), + 92 ) THEN 23 * + 85 + - 95 * COUNT( * ) ELSE NULL END + 64 )
----
-17

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL COALESCE ( + - 17, - CASE - - 12 WHEN + NULLIF ( - CAST ( - MAX ( + - ( + 50 ) ) AS INTEGER ), + 92 ) THEN 23 * + 85 + - 95 * COUNT ( * ) ELSE NULL END + 64 )
----
-17

query I rowsort
SELECT - 73 + - - 42 AS col2
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-2921
SELECT ALL 84 DIV - 73
----
-1

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL 84 / - 73
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2922
SELECT DISTINCT + 71 + - 46 - + 55 + 91 * + 39 * 28, + CASE - 79 WHEN + + 81 + AVG ( + 92 ) THEN - 76 - + - CAST( NULL AS SIGNED ) ELSE - COUNT( * ) * COUNT( * ) + + - 66 * + 33 + 58 END / COUNT( + 62 ) * - 15 + + CAST( NULL AS SIGNED ) * + ( 28 ) AS col0
----
99342
NULL

skipif mysql # not compatible
query II rowsort label-2922
SELECT DISTINCT + 71 + - 46 - + 55 + 91 * + 39 * 28, + CASE - 79 WHEN + + 81 + AVG ( + 92 ) THEN - 76 - + - CAST ( NULL AS INTEGER ) ELSE - COUNT ( * ) * COUNT ( * ) + + - 66 * + 33 + 58 END / COUNT ( + 62 ) * - 15 + + CAST ( NULL AS INTEGER ) * + ( 28 ) AS col0
----
99342
NULL

query I rowsort
SELECT ALL 85 + + 93 + + 78
----
256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2924
SELECT + - COUNT( * ) + - 26 * + - CAST( NULL AS SIGNED ) - + - 1 * AVG ( + 63 ), + 88 - + COUNT( * ) AS col2
----
NULL
87

skipif mysql # not compatible
query II rowsort label-2924
SELECT + - COUNT ( * ) + - 26 * + - CAST ( NULL AS INTEGER ) - + - 1 * AVG ( + 63 ), + 88 - + COUNT ( * ) AS col2
----
NULL
87

onlyif mysql # DIV for integer division: 
query I rowsort label-2925
SELECT ALL - 1 DIV - 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL - 1 / - 18 AS col0
----
0

query I rowsort
SELECT - - ( + 97 ) * 58 + 26 * - 93
----
3208

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

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT - + COUNT ( * ) * + 8 AS col1
----
-8

query I rowsort
SELECT CASE + 67 WHEN + 74 THEN + ( 6 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT + + 82 + + - 65 + + - COALESCE ( + + SUM( DISTINCT - - 88 ), 83 ) * 50 + + + 42
----
-4341

skipif mysql # not compatible
query I rowsort label-2929
SELECT + + 82 + + - 65 + + - COALESCE ( + + SUM ( DISTINCT - - 88 ), 83 ) * 50 + + + 42
----
-4341

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2930
SELECT - ( - - CAST( NULL AS SIGNED ) ) * + 94 * + 6 * + 94 + + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT - ( - - CAST ( NULL AS INTEGER ) ) * + 94 * + 6 * + 94 + + - 27
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2931
SELECT ALL - - 72 * - 87 + - 19 + 39 DIV - 84, 41 * + CAST( NULL AS DECIMAL ) DIV + + 64 AS col1
----
-6283
NULL

skipif mysql # not compatible
query II rowsort label-2931
SELECT ALL - - 72 * - 87 + - 19 + 39 / - 84, 41 * + CAST ( NULL AS REAL ) / + + 64 AS col1
----
-6283
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2932
SELECT ALL 97 DIV - - ( 51 ) - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL 97 / - - ( 51 ) - - COUNT ( * )
----
2

query I rowsort
SELECT + 70 * - 77
----
-5390

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

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

query I rowsort
SELECT 4 * + - 42 AS col1
----
-168

query II rowsort
SELECT ALL - + 67 col0, 42
----
-67
42

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

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

query I rowsort
SELECT ALL 63 * + 87 AS col1
----
5481

query I rowsort
SELECT 4 * - + 57 AS col1
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT - 5 * - + NULLIF ( - 79, + + 15 * - + 27 * - - 32 - + 84 ) - - COUNT( * ) AS col0
----
-394

skipif mysql # not compatible
query I rowsort label-2940
SELECT - 5 * - + NULLIF ( - 79, + + 15 * - + 27 * - - 32 - + 84 ) - - COUNT ( * ) AS col0
----
-394

query II rowsort
SELECT ALL - CASE + ( - 77 ) WHEN 98 THEN - + 36 + - 60 ELSE NULL END AS col1, 20
----
NULL
20

query I rowsort
SELECT ALL 27 * - 29 AS col0
----
-783

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2943
SELECT COUNT( * ) DIV 7 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2943
SELECT COUNT ( * ) / 7 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT 76 * - 46 + - NULLIF ( - + 21, 58 * - - 48 / + 19 * CASE + 37 WHEN COUNT( * ) / 53 THEN 56 / MIN( - 47 ) + + COALESCE ( 57, + + 65 * - + 63 / + - COUNT( * ) / - 36 * 12 * - 94 * 51 - + + 22 + 45 * NULLIF ( 75, + 29 ), 48 ) + + MIN( DISTINCT 8 + 29 ) ELSE 7 END / 28 + 13 ) AS col1
----
-3475

skipif mysql # not compatible
query I rowsort label-2944
SELECT 76 * - 46 + - NULLIF ( - + 21, 58 * - - 48 / + 19 * CASE + 37 WHEN COUNT ( * ) / 53 THEN 56 / MIN ( - 47 ) + + COALESCE ( 57, + + 65 * - + 63 / + - COUNT ( * ) / - 36 * 12 * - 94 * 51 - + + 22 + 45 * NULLIF ( 75, + 29 ), 48 ) + + MIN ( DISTINCT 8 + 29 ) ELSE 7 END / 28 + 13 ) AS col1
----
-3475

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

skipif mysql # not compatible
query II rowsort label-2945
SELECT DISTINCT - 65 AS col0, COUNT ( * ) AS col2
----
-65
1

query I rowsort
SELECT 39 + + 31 AS col0
----
70

query I rowsort
SELECT 42 - - - 1 * - 70
----
112

query II rowsort
SELECT ALL 54 AS col2, - 46 AS col0
----
54
-46

query I rowsort
SELECT 49 * 20
----
980

query II rowsort
SELECT 94 AS col1, 23 AS col2
----
94
23

query I rowsort
SELECT ALL - 23 * 53
----
-1219

query I rowsort
SELECT 48 * 21 * 16
----
16128

query I rowsort
SELECT DISTINCT ( + - 13 ) + - 94 AS col2
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT ALL + 50 + - 86 * + - COUNT( * ) AS col1
----
136

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL + 50 + - 86 * + - COUNT ( * ) AS col1
----
136

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2956
SELECT ALL - + 49 * - 61 AS col2, NULLIF ( COALESCE ( - 27, + COUNT( * ) ), + 67 * + 63 + - + AVG ( 67 ) ) + - 42 AS col2
----
2989
-69

skipif mysql # not compatible
query II rowsort label-2956
SELECT ALL - + 49 * - 61 AS col2, NULLIF ( COALESCE ( - 27, + COUNT ( * ) ), + 67 * + 63 + - + AVG ( 67 ) ) + - 42 AS col2
----
2989
-69

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

skipif mysql # not compatible
query I rowsort label-2957
SELECT + SUM ( + 58 ) + + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT + 52 * - + 2 - 85
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT ALL + + COUNT( * ) - + ( - + 95 )
----
96

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL + + COUNT ( * ) - + ( - + 95 )
----
96

query II rowsort
SELECT - - 70 AS col2, - COALESCE ( - - 53, - 53, 48 ) AS col2
----
70
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT - 19 - + + NULLIF ( - + 44, CASE - AVG ( - + 31 ) WHEN - + 4 THEN + 77 + - 54 END + + + MIN( + 63 ) + - COUNT( * ) / - NULLIF ( 3, + - 74 * - 14 ) )
----
25

skipif mysql # not compatible
query I rowsort label-2961
SELECT - 19 - + + NULLIF ( - + 44, CASE - AVG ( - + 31 ) WHEN - + 4 THEN + 77 + - 54 END + + + MIN ( + 63 ) + - COUNT ( * ) / - NULLIF ( 3, + - 74 * - 14 ) )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT CASE - 3 WHEN COUNT( + 56 ) THEN ( - - 13 ) * 87 * + 35 + - - 44 END * - 20 * + - 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2962
SELECT CASE - 3 WHEN COUNT ( + 56 ) THEN ( - - 13 ) * 87 * + 35 + - - 44 END * - 20 * + - 23 AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( + 90, 91 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT + 74 * SUM( DISTINCT - 8 ) + - + 59
----
-651

skipif mysql # not compatible
query I rowsort label-2964
SELECT + 74 * SUM ( DISTINCT - 8 ) + - + 59
----
-651

query I rowsort
SELECT - 91 * - - 97 * + 59
----
-520793

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT ALL - COUNT( * ) * - + 73 * + SUM( - - 71 ) AS col2
----
5183

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL - COUNT ( * ) * - + 73 * + SUM ( - - 71 ) AS col2
----
5183

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

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

query I rowsort
SELECT 50 * - 56 + - 1
----
-2801

query I rowsort
SELECT + 57 * - 29 AS col2
----
-1653

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2970
SELECT 8 + 70 + + + 72 + - - ( - + 89 ) AS col0, NULLIF ( + COUNT( * ), 34 * + ( - ( 90 ) ) ) DIV 75
----
61
0

skipif mysql # not compatible
query II rowsort label-2970
SELECT 8 + 70 + + + 72 + - - ( - + 89 ) AS col0, NULLIF ( + COUNT ( * ), 34 * + ( - ( 90 ) ) ) / 75
----
61
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2971
SELECT 14 * - MAX( DISTINCT - 29 ), 38 - - - 4 * + 79 + COALESCE ( + 33, CASE + ( + 89 ) WHEN + + 29 THEN - COUNT( * ) END ) * + - MIN( + - 69 ) * 50 + - 63 AS col2
----
406
113509

skipif mysql # not compatible
query II rowsort label-2971
SELECT 14 * - MAX ( DISTINCT - 29 ), 38 - - - 4 * + 79 + COALESCE ( + 33, CASE + ( + 89 ) WHEN + + 29 THEN - COUNT ( * ) END ) * + - MIN ( + - 69 ) * 50 + - 63 AS col2
----
406
113509

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2972
SELECT DISTINCT - COUNT( ALL ( + 9 ) ), 34 DIV + - COUNT( * ) AS col1
----
-1
-34

skipif mysql # not compatible
query II rowsort label-2972
SELECT DISTINCT - COUNT ( ALL ( + 9 ) ), 34 / + - COUNT ( * ) AS col1
----
-1
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2973
SELECT ALL CAST( 88 AS SIGNED ) + + 66 * - 39 * - + ( COUNT( * ) ) AS col2
----
2662

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL CAST ( 88 AS INTEGER ) + + 66 * - 39 * - + ( COUNT ( * ) ) AS col2
----
2662

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT 17 * - ( + + 57 ) + - - 65 + + COUNT( * ) AS col1
----
-903

skipif mysql # not compatible
query I rowsort label-2974
SELECT 17 * - ( + + 57 ) + - - 65 + + COUNT ( * ) AS col1
----
-903

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT - 87 * NULLIF ( 16, - COUNT( * ) ) + 25 * 28
----
-692

skipif mysql # not compatible
query I rowsort label-2976
SELECT - 87 * NULLIF ( 16, - COUNT ( * ) ) + 25 * 28
----
-692

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT ALL 15 + - 56 - - 66 + - + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL 15 + - 56 - - 66 + - + COUNT ( * )
----
24

query I rowsort
SELECT DISTINCT 9 * + 27
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT ALL 79 + - 52 + + COALESCE ( - + 69, - + COUNT( * ) ) * - 35 AS col2
----
2442

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL 79 + - 52 + + COALESCE ( - + 69, - + COUNT ( * ) ) * - 35 AS col2
----
2442

query I rowsort
SELECT CASE + 91 WHEN - 92 * - + 56 THEN 23 END * + + 93
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2981
SELECT DISTINCT ( - CAST( 71 AS SIGNED ) ) * + 29
----
-2059

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT ( - CAST ( 71 AS INTEGER ) ) * + 29
----
-2059

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT 64 + 44 * - COUNT( * ) + - - 0 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-2982
SELECT 64 + 44 * - COUNT ( * ) + - - 0 AS col1
----
20

query I rowsort
SELECT ( 95 ) * + + 83 + - 87
----
7798

query I rowsort
SELECT ALL 20 - - - 17 - + 13 * - 67
----
874

query I rowsort
SELECT 95 * - 49 AS col2
----
-4655

query I rowsort
SELECT - 63 + ( - NULLIF ( + 36, 73 ) ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT ALL - 49 - - NULLIF ( + + 81, + COUNT( * ) )
----
32

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL - 49 - - NULLIF ( + + 81, + COUNT ( * ) )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2988
SELECT - - ( + - 43 ), - 99 + CAST( - CASE + 85 WHEN - 46 THEN - 65 END AS SIGNED ) * - 28 AS col1
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-2988
SELECT - - ( + - 43 ), - 99 + CAST ( - CASE + 85 WHEN - 46 THEN - 65 END AS INTEGER ) * - 28 AS col1
----
-43
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2989
SELECT ALL + 69 - + MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL + 69 - + MAX ( DISTINCT + CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT - - 22 * + 48
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT - + 37 + + ( + MIN( ALL 88 ) )
----
51

skipif mysql # not compatible
query I rowsort label-2991
SELECT - + 37 + + ( + MIN ( ALL 88 ) )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2992
SELECT DISTINCT - 56 * 27 - + MAX( + 57 ) DIV - NULLIF ( 66, + - SUM( DISTINCT CAST( - 77 AS SIGNED ) ) ) + 63
----
-1449

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT - 56 * 27 - + MAX ( + 57 ) / - NULLIF ( 66, + - SUM ( DISTINCT CAST ( - 77 AS INTEGER ) ) ) + 63
----
-1449

query I rowsort
SELECT NULLIF ( 26, 30 * 53 + 55 / 73 * + + 92 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT ALL + MAX( DISTINCT - - 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL + MAX ( DISTINCT - - 13 ) AS col1
----
13

query I rowsort
SELECT + 96 * 92 - - 72 * 14 AS col2
----
9840

query I rowsort
SELECT COALESCE ( + 5, - - 54 * + - ( + 90 ) * + 71 - - 42 ) AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2997
SELECT - 27 DIV - CAST( + - 24 AS SIGNED ), 86 AS col1
----
-1
86

skipif mysql # not compatible
query II rowsort label-2997
SELECT - 27 / - CAST ( + - 24 AS INTEGER ), 86 AS col1
----
-1
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2998
SELECT - COUNT( * ) + - CAST( NULL AS SIGNED ) - + 49 * - SUM( - 89 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2998
SELECT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) - + 49 * - SUM ( - 89 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 73 * + - COALESCE ( + + ( - 87 ), - COALESCE ( - 66, 52 ) ) * - 24 * 94 + 2 + - - 40 - 68 col2
----
14327830

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT ALL - COUNT( * ) * + 23 + - 24 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL - COUNT ( * ) * + 23 + - 24 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL + 46 * - 94 + 32 * + MAX( ALL 55 ) * 69 AS col2
----
117116

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL + 46 * - 94 + 32 * + MAX ( ALL 55 ) * 69 AS col2
----
117116

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

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

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

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

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

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

query I rowsort
SELECT + COALESCE ( + 33, ( 73 ) )
----
33

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3007
SELECT ALL + COUNT( NULLIF ( - - 40, + NULLIF ( - - 15, - 12 ) ) ) * 49 * CAST( 12 AS SIGNED )
----
588

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL + COUNT ( NULLIF ( - - 40, + NULLIF ( - - 15, - 12 ) ) ) * 49 * CAST ( 12 AS INTEGER )
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT ALL + ( - COUNT( - 69 ) ) * 11 * + 0
----
0

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL + ( - COUNT ( - 69 ) ) * 11 * + 0
----
0

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

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT COUNT ( ALL + - 86 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT + COUNT( * ) * - 19 * + 41 + + 61 * - - 13 * + 2 - 92
----
715

skipif mysql # not compatible
query I rowsort label-3010
SELECT + COUNT ( * ) * - 19 * + 41 + + 61 * - - 13 * + 2 - 92
----
715

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3012
SELECT 43 AS col1, COUNT( * ) DIV + + 17 AS col0
----
43
0

skipif mysql # not compatible
query II rowsort label-3012
SELECT 43 AS col1, COUNT ( * ) / + + 17 AS col0
----
43
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3013
SELECT ALL CASE - 31 WHEN 81 * 36 THEN - 10 WHEN 74 * + 92 - + COALESCE ( + + 92, + - 2 ) THEN + COUNT( ALL + 3 ) * - 62 + - 68 WHEN + - 94 / + + ( + + 88 ) + - 42 THEN NULL END AS col0, - 63 AS col0
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-3013
SELECT ALL CASE - 31 WHEN 81 * 36 THEN - 10 WHEN 74 * + 92 - + COALESCE ( + + 92, + - 2 ) THEN + COUNT ( ALL + 3 ) * - 62 + - 68 WHEN + - 94 / + + ( + + 88 ) + - 42 THEN NULL END AS col0, - 63 AS col0
----
NULL
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3014
SELECT + 94 + - 9 - - - CAST( + 64 AS SIGNED ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3014
SELECT + 94 + - 9 - - - CAST ( + 64 AS INTEGER ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3015
SELECT - + COUNT( * ), 34 - + - 77 * - 81 AS col0
----
-1
-6203

skipif mysql # not compatible
query II rowsort label-3015
SELECT - + COUNT ( * ), 34 - + - 77 * - 81 AS col0
----
-1
-6203

query I rowsort
SELECT DISTINCT 82 + 26
----
108

query I rowsort
SELECT ALL - NULLIF ( + - 36, - + 90 ) + 80 + - 99 AS col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-3018
SELECT + + 8 + + 14 + ( + - 51 ) DIV - - 35 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3018
SELECT + + 8 + + 14 + ( + - 51 ) / - - 35 AS col0
----
21

query I rowsort
SELECT ALL + 2 + + 74 + - + 50 * + COALESCE ( + + 71, + + 30 * + - 96 ) * 6 + - CASE - - 56 WHEN - 94 THEN - 25 END + - 5 * 91 - - - 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT + - COUNT( * ) + + 34 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3020
SELECT + - COUNT ( * ) + + 34 AS col1
----
33

query I rowsort
SELECT ALL + ( - - 63 ) + 37 AS col2
----
100

query I rowsort
SELECT + + 5 * - 97
----
-485

onlyif mysql # DIV for integer division: 
query I rowsort label-3023
SELECT 26 DIV 4 - - 92
----
98

skipif mysql # not compatible
query I rowsort label-3023
SELECT 26 / 4 - - 92
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT - SUM( 0 ) - + - 89 + - 62 + + 56
----
83

skipif mysql # not compatible
query I rowsort label-3024
SELECT - SUM ( 0 ) - + - 89 + - 62 + + 56
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3025
SELECT ALL + CAST( NULL AS SIGNED ) * 36, + 52 col0
----
NULL
52

skipif mysql # not compatible
query II rowsort label-3025
SELECT ALL + CAST ( NULL AS INTEGER ) * 36, + 52 col0
----
NULL
52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT MIN( DISTINCT 24 ) * - 62 + + 92 AS col2
----
-1396

skipif mysql # not compatible
query I rowsort label-3027
SELECT MIN ( DISTINCT 24 ) * - 62 + + 92 AS col2
----
-1396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3028
SELECT ALL + COUNT( DISTINCT + + 27 ) / + CAST( NULL AS SIGNED ) + + + 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL + COUNT ( DISTINCT + + 27 ) / + CAST ( NULL AS INTEGER ) + + + 80 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3029
SELECT DISTINCT - 35 DIV - 92 + + 30 DIV - CAST( - 21 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT - 35 / - 92 + + 30 / - CAST ( - 21 AS INTEGER ) AS col1
----
1

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

query I rowsort
SELECT - 33 + - 94 AS col2
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3032
SELECT ALL 48 DIV - + ( - COUNT( * ) ) - 10 + + 94 AS col2
----
132

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL 48 / - + ( - COUNT ( * ) ) - 10 + + 94 AS col2
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3033
SELECT ALL - 64 * CAST( - 54 AS SIGNED ) AS col2
----
3456

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL - 64 * CAST ( - 54 AS INTEGER ) AS col2
----
3456

query I rowsort
SELECT - 26 * 88 AS col1
----
-2288

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT ALL 85 * - COUNT( * ) - - 4 * - 41 AS col2
----
-249

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL 85 * - COUNT ( * ) - - 4 * - 41 AS col2
----
-249

query I rowsort
SELECT - 90 * + 54 * + 7 col1
----
-34020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3038
SELECT + COALESCE ( + COALESCE ( - 20, COUNT( * ) ), - 44, CAST( NULL AS SIGNED ) )
----
-20

skipif mysql # not compatible
query I rowsort label-3038
SELECT + COALESCE ( + COALESCE ( - 20, COUNT ( * ) ), - 44, CAST ( NULL AS INTEGER ) )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3039
SELECT - 8 + 10 AS col2, + 26 + COUNT( * ) + + MIN( - + COALESCE ( + - 14, 62 - + ( 65 ) + 96, + - 36 ) ) + - 47 * - + 34 + - 72
----
2
1567

skipif mysql # not compatible
query II rowsort label-3039
SELECT - 8 + 10 AS col2, + 26 + COUNT ( * ) + + MIN ( - + COALESCE ( + - 14, 62 - + ( 65 ) + 96, + - 36 ) ) + - 47 * - + 34 + - 72
----
2
1567

query I rowsort
SELECT DISTINCT - 46 * 57 * 78
----
-204516

query I rowsort
SELECT ALL + 92 * + - 8
----
-736

onlyif mysql # aggregate syntax: 
query II rowsort label-3042
SELECT 13 * + 38 + - 51 + - 14 + - ( + SUM( DISTINCT 4 ) ), - 54 * + 50 + + COALESCE ( 72, 64 + + + SUM( DISTINCT + - 66 ), - 97, 58 + + - 71 ) + 21 + - 51 + + COUNT( DISTINCT + 39 ) AS col2
----
425
-2657

skipif mysql # not compatible
query II rowsort label-3042
SELECT 13 * + 38 + - 51 + - 14 + - ( + SUM ( DISTINCT 4 ) ), - 54 * + 50 + + COALESCE ( 72, 64 + + + SUM ( DISTINCT + - 66 ), - 97, 58 + + - 71 ) + 21 + - 51 + + COUNT ( DISTINCT + 39 ) AS col2
----
425
-2657

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT - CASE + COUNT( * ) WHEN - MAX( - + 77 ) THEN 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3043
SELECT - CASE + COUNT ( * ) WHEN - MAX ( - + 77 ) THEN 91 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3044
SELECT + 21 + + ( - NULLIF ( + CAST( + 67 AS SIGNED ), - COUNT( * ) ) )
----
-46

skipif mysql # not compatible
query I rowsort label-3044
SELECT + 21 + + ( - NULLIF ( + CAST ( + 67 AS INTEGER ), - COUNT ( * ) ) )
----
-46

query I rowsort
SELECT 48 * COALESCE ( - 53, - 94 ) + - - 36
----
-2508

query I rowsort
SELECT + 35 + + 57 * + + 82 + ( 13 )
----
4722

query I rowsort
SELECT ( 40 ) + 10 AS col1
----
50

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3049
SELECT DISTINCT + + 33 + ( - + CAST( + 88 AS SIGNED ) ) + 92 + - - 32
----
69

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT + + 33 + ( - + CAST ( + 88 AS INTEGER ) ) + 92 + - - 32
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT ALL MIN( ALL + - 45 ) + - 71 AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL MIN ( ALL + - 45 ) + - 71 AS col2
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3051
SELECT ALL 11 + 69 + - COALESCE ( - - 43, + + 47 ) / 29 * - 61 / + CAST( NULL AS SIGNED ) * SUM( + + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL 11 + 69 + - COALESCE ( - - 43, + + 47 ) / 29 * - 61 / + CAST ( NULL AS INTEGER ) * SUM ( + + 93 )
----
NULL

query I rowsort
SELECT DISTINCT 16 + - 53 AS col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT + 94 DIV - 33 col0
----
-2

skipif mysql # not compatible
query I rowsort label-3053
SELECT + 94 / - 33 col0
----
-2

query I rowsort
SELECT 43 + + + 32 + + 99 * - 27
----
-2598

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3055
SELECT ALL 98 + MAX( ALL + ( 36 ) ) + - + NULLIF ( + - 11, 53 ) * 74 DIV 53 AS col0
----
149

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL 98 + MAX ( ALL + ( 36 ) ) + - + NULLIF ( + - 11, 53 ) * 74 / 53 AS col0
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3056
SELECT CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + - COUNT( * ) + - SUM( + - 99 ) + + - 38 * + + COALESCE ( - COUNT( * ), 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3056
SELECT CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + - COUNT ( * ) + - SUM ( + - 99 ) + + - 38 * + + COALESCE ( - COUNT ( * ), 40 )
----
NULL

query II rowsort
SELECT ALL 86 AS col0, + 7 AS col1
----
86
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT COUNT( * ) * + 9 + - COUNT( * ) - + 77 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-3059
SELECT COUNT ( * ) * + 9 + - COUNT ( * ) - + 77 AS col1
----
-69

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-3061
SELECT ALL - NULLIF ( + 72, + - 79 + - + 31 + 81 ), COUNT( * ) col1, - 29 - - 2 + + 70 * - 83 * COUNT( * ) + + - 9 AS col0
----
-72
1
-5846

skipif mysql # not compatible
query III rowsort label-3061
SELECT ALL - NULLIF ( + 72, + - 79 + - + 31 + 81 ), COUNT ( * ) col1, - 29 - - 2 + + 70 * - 83 * COUNT ( * ) + + - 9 AS col0
----
-72
1
-5846

query II rowsort
SELECT ALL - 32 - 69 - + 89 col0, 33 col0
----
-190
33

query II rowsort
SELECT 63 AS col0, - 16 + + 99
----
63
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3064
SELECT MIN( DISTINCT - 87 ) * + 1 + - + 52 * + CAST( NULL AS DECIMAL ), MAX( DISTINCT - - 33 ) DIV SUM( DISTINCT + 39 ) AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3064
SELECT MIN ( DISTINCT - 87 ) * + 1 + - + 52 * + CAST ( NULL AS REAL ), MAX ( DISTINCT - - 33 ) / SUM ( DISTINCT + 39 ) AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT 68 * + NULLIF ( 12, + + 39 * - + ( + 52 ) + - MIN( DISTINCT - 92 ) + 91 )
----
816

skipif mysql # not compatible
query I rowsort label-3065
SELECT 68 * + NULLIF ( 12, + + 39 * - + ( + 52 ) + - MIN ( DISTINCT - 92 ) + 91 )
----
816

query I rowsort
SELECT 74 + - 67 + - 33 AS col1
----
-26

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

skipif mysql # not compatible
query II rowsort label-3067
SELECT + 61, CAST ( NULL AS INTEGER ) col2
----
61
NULL

query I rowsort
SELECT 57 * - 92 AS col1
----
-5244

onlyif mysql # aggregate syntax: 
query II rowsort label-3069
SELECT ALL - 28 AS col1, CASE - 27 WHEN 8 * + + 58 THEN NULL WHEN + - 84 + + COUNT( * ) + + ( + NULLIF ( - 36, 73 + 96 ) ) * - 45 * - 3 THEN 49 + + 85 * 1 END AS col2
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-3069
SELECT ALL - 28 AS col1, CASE - 27 WHEN 8 * + + 58 THEN NULL WHEN + - 84 + + COUNT ( * ) + + ( + NULLIF ( - 36, 73 + 96 ) ) * - 45 * - 3 THEN 49 + + 85 * 1 END AS col2
----
-28
NULL

query I rowsort
SELECT DISTINCT 90 * - + 15
----
-1350

query I rowsort
SELECT DISTINCT - CASE + 2 WHEN + - 72 / + + ( 20 ) THEN NULL ELSE 66 * + 72 * - ( + + 50 ) END AS col1
----
237600

query I rowsort
SELECT - COALESCE ( - 88, + CASE + 25 WHEN + 7 * - + 29 THEN NULL ELSE - 15 + - - 11 END )
----
88

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

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

query II rowsort
SELECT - 11, 12 col2
----
-11
12

query I rowsort
SELECT 50 * - + 60
----
-3000

query I rowsort
SELECT DISTINCT + + 85 * + 3 - + - 71
----
326

query I rowsort
SELECT - 85 * 77 AS col2
----
-6545

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT DISTINCT - COUNT( * ) * + + 93 * - + 71
----
6603

skipif mysql # not compatible
query I rowsort label-3079
SELECT DISTINCT - COUNT ( * ) * + + 93 * - + 71
----
6603

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

skipif mysql # not compatible
query I rowsort label-3080
SELECT - + MAX ( - 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT SUM( 61 ) + - 58 col1
----
3

skipif mysql # not compatible
query I rowsort label-3081
SELECT SUM ( 61 ) + - 58 col1
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT + MIN( DISTINCT 43 ) + - 8 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3083
SELECT + MIN ( DISTINCT 43 ) + - 8 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT 23 + - 67 * - SUM( DISTINCT - - 70 )
----
4713

skipif mysql # not compatible
query I rowsort label-3084
SELECT 23 + - 67 * - SUM ( DISTINCT - - 70 )
----
4713

query II rowsort
SELECT ALL 81 AS col0, - 65 AS col0
----
81
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT COUNT( * ) + - 41 * + + 9 AS col0
----
-368

skipif mysql # not compatible
query I rowsort label-3086
SELECT COUNT ( * ) + - 41 * + + 9 AS col0
----
-368

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT ALL SUM( DISTINCT 2 )
----
2

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL SUM ( DISTINCT 2 )
----
2

query I rowsort
SELECT DISTINCT 86 - 59 AS col2
----
27

query I rowsort
SELECT ALL 45 * + 1 * 80
----
3600

query I rowsort
SELECT 49 * - 85 * + 92 AS col0
----
-383180

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT ALL COUNT( 3 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL COUNT ( 3 ) col2
----
1

query II rowsort
SELECT - 96, - 55 AS col0
----
-96
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3093
SELECT 0 DIV + - 6 + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3093
SELECT 0 / + - 6 + - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL 9 * - - 85
----
765

query I rowsort
SELECT 38 * 56 * - 14
----
-29792

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

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

query I rowsort
SELECT 77 + - - 59
----
136

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3099
SELECT ALL - 19, + SUM( 63 ) AS col1
----
-19
63

skipif mysql # not compatible
query II rowsort label-3099
SELECT ALL - 19, + SUM ( 63 ) AS col1
----
-19
63

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

skipif mysql # not compatible
query I rowsort label-3100
SELECT COUNT ( DISTINCT + - 1 ) * + 31 AS col2
----
31

query I rowsort
SELECT 67 + + 71 AS col2
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3102
SELECT + COUNT( * ) AS col2, 7 * 13 DIV + - COUNT( DISTINCT + + 20 ) + 19 * + 6 * + - COUNT( * ) AS col1
----
1
-205

skipif mysql # not compatible
query II rowsort label-3102
SELECT + COUNT ( * ) AS col2, 7 * 13 / + - COUNT ( DISTINCT + + 20 ) + 19 * + 6 * + - COUNT ( * ) AS col1
----
1
-205

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3103
SELECT DISTINCT - 44 col2, + 65 DIV + 92 + - 20 col1, + COUNT( * ) AS col0
----
-44
-20
1

skipif mysql # not compatible
query III rowsort label-3103
SELECT DISTINCT - 44 col2, + 65 / + 92 + - 20 col1, + COUNT ( * ) AS col0
----
-44
-20
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3104
SELECT ALL COUNT( * ) * 16 * CASE - 92 WHEN + ( - 58 ) * - - COALESCE ( NULLIF ( 76, SUM( ALL ( + - 60 ) ) ), 39, - 69, - - CAST( NULL AS SIGNED ) ) - - 84 * + 30 THEN + 71 END * 90 + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL COUNT ( * ) * 16 * CASE - 92 WHEN + ( - 58 ) * - - COALESCE ( NULLIF ( 76, SUM ( ALL ( + - 60 ) ) ), 39, - 69, - - CAST ( NULL AS INTEGER ) ) - - 84 * + 30 THEN + 71 END * 90 + 11
----
NULL

query I rowsort
SELECT ALL 88 * 12 * - 47 + + 13 col1
----
-49619

onlyif mysql # aggregate syntax: 
query II rowsort label-3106
SELECT + 24 AS col2, COALESCE ( + 9, 14 * - - COUNT( * ) + ( + 16 ) )
----
24
9

skipif mysql # not compatible
query II rowsort label-3106
SELECT + 24 AS col2, COALESCE ( + 9, 14 * - - COUNT ( * ) + ( + 16 ) )
----
24
9

query I rowsort
SELECT + COALESCE ( - 33, + 52 )
----
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-3108
SELECT + ( - - 84 ) - 14 DIV + 23, + 51 AS col1
----
84
51

skipif mysql # not compatible
query II rowsort label-3108
SELECT + ( - - 84 ) - 14 / + 23, + 51 AS col1
----
84
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3109
SELECT + - 85 AS col2, + 70 * - 87 * - COUNT( * ) AS col0
----
-85
6090

skipif mysql # not compatible
query II rowsort label-3109
SELECT + - 85 AS col2, + 70 * - 87 * - COUNT ( * ) AS col0
----
-85
6090

query I rowsort
SELECT + 33 + + 42
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3111
SELECT + 84, + 88 * - CAST( NULL AS SIGNED ) AS col2
----
84
NULL

skipif mysql # not compatible
query II rowsort label-3111
SELECT + 84, + 88 * - CAST ( NULL AS INTEGER ) AS col2
----
84
NULL

query I rowsort
SELECT ALL + + 45 * - + 3 + 85
----
-50

query I rowsort
SELECT + - 45 + + 12 + - 31 * + 94
----
-2947

onlyif mysql # DIV for integer division: 
query I rowsort label-3114
SELECT + + ( + 58 ) + 70 DIV - 63 * + 11 DIV + 10 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-3114
SELECT + + ( + 58 ) + 70 / - 63 * + 11 / + 10 AS col1
----
57

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

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

query I rowsort
SELECT DISTINCT 48 + 52 - - 25 AS col0
----
125

query I rowsort
SELECT ALL + 84 + + 6 * - 82 col1
----
-408

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3119
SELECT ALL + 15 + - CAST( + 12 AS SIGNED ) DIV - MAX( - 20 ) + + 62 + 82 AS col2
----
159

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL + 15 + - CAST ( + 12 AS INTEGER ) / - MAX ( - 20 ) + + 62 + 82 AS col2
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-3120
SELECT + 49 DIV + ( + 59 )
----
0

skipif mysql # not compatible
query I rowsort label-3120
SELECT + 49 / + ( + 59 )
----
0

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

skipif mysql # not compatible
query I rowsort label-3121
SELECT - COUNT ( * ) + - + 25 + + + 23 * + - 3 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT - 33 + COUNT( * ) * + 58 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-3122
SELECT - 33 + COUNT ( * ) * + 58 AS col0
----
25

query I rowsort
SELECT - COALESCE ( - 89, - - 98, - - 28 * 66 * 35 + 73 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT - COUNT( * ) + - NULLIF ( - SUM( - 74 ), + 19 * + 42 )
----
-75

skipif mysql # not compatible
query I rowsort label-3124
SELECT - COUNT ( * ) + - NULLIF ( - SUM ( - 74 ), + 19 * + 42 )
----
-75

query I rowsort
SELECT ALL + - 3 - ( 14 ) - - + 31 + + 88 AS col1
----
102

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3128
SELECT DISTINCT + 23 DIV 5 * + 39 * - 68 AS col1
----
-10608

skipif mysql # not compatible
query I rowsort label-3128
SELECT DISTINCT + 23 / 5 * + 39 * - 68 AS col1
----
-10608

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT DISTINCT NULLIF ( + SUM( - 95 ), + - 73 )
----
-95

skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT NULLIF ( + SUM ( - 95 ), + - 73 )
----
-95

query I rowsort
SELECT - 91 * - 38 AS col2
----
3458

query I rowsort
SELECT ALL COALESCE ( + 62, + 65 ) AS col1
----
62

query I rowsort
SELECT - 85 + 65 * + 8 AS col0
----
435

query I rowsort
SELECT ALL 55 * - 69 * - 89 * + 50 * + 49
----
827499750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3134
SELECT ALL COUNT( * ) DIV + 70 + - + 13 + - NULLIF ( 90, + 16 ) AS col0
----
-103

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL COUNT ( * ) / + 70 + - + 13 + - NULLIF ( 90, + 16 ) AS col0
----
-103

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3135
SELECT ALL - 89 DIV + 36 + + NULLIF ( + COUNT( * ), 39 ) * - - 25 DIV 33 col0, 1
----
-2
1

skipif mysql # not compatible
query II rowsort label-3135
SELECT ALL - 89 / + 36 + + NULLIF ( + COUNT ( * ), 39 ) * - - 25 / 33 col0, 1
----
-2
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3136
SELECT + 97 * - CAST( - + 60 AS SIGNED ) + + 94
----
5914

skipif mysql # not compatible
query I rowsort label-3136
SELECT + 97 * - CAST ( - + 60 AS INTEGER ) + + 94
----
5914

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3137
SELECT + 47 DIV - + 72 + - 21 * + COUNT( + - 15 ) + - 59 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-3137
SELECT + 47 / - + 72 + - 21 * + COUNT ( + - 15 ) + - 59 AS col1
----
-80

query II rowsort
SELECT ( - 7 ), - 30 AS col1
----
-7
-30

query II rowsort
SELECT + 92 * + 85, 55 + + - 80 AS col2
----
7820
-25

query I rowsort
SELECT - + 74 * - 75
----
5550

query I rowsort
SELECT DISTINCT + + 14 * - 24 * - - 87 * + - 20 + + 36 AS col0
----
584676

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3142
SELECT - + COUNT( - 51 ) * - - 48 DIV - 44 - + COUNT( * ) - + - NULLIF ( 11, + COALESCE ( + - 30, - 8 ) ) - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-3142
SELECT - + COUNT ( - 51 ) * - - 48 / - 44 - + COUNT ( * ) - + - NULLIF ( 11, + COALESCE ( + - 30, - 8 ) ) - COUNT ( * )
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3143
SELECT ALL + ( + - 12 ) DIV - NULLIF ( + 14, - - 10 )
----
0

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL + ( + - 12 ) / - NULLIF ( + 14, - - 10 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3144
SELECT - + 80 * - - CAST( NULL AS SIGNED ) * - ( - + SUM( + 20 ) ) * 6 + - + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT - + 80 * - - CAST ( NULL AS INTEGER ) * - ( - + SUM ( + 20 ) ) * 6 + - + 79 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT + NULLIF ( + 12, COUNT( * ) * + 38 + - 22 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3145
SELECT + NULLIF ( + 12, COUNT ( * ) * + 38 + - 22 ) AS col1
----
12

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3147
SELECT + - CASE - CAST( - - 41 AS SIGNED ) WHEN 15 THEN NULL WHEN + - 67 THEN + 0 / 86 - + COALESCE ( - 76, - COUNT( * ) * + 45, + - 69, - 20 ) + - - 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3147
SELECT + - CASE - CAST ( - - 41 AS INTEGER ) WHEN 15 THEN NULL WHEN + - 67 THEN + 0 / 86 - + COALESCE ( - 76, - COUNT ( * ) * + 45, + - 69, - 20 ) + - - 42 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL + MAX( ALL - 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL + MAX ( ALL - 59 ) AS col2
----
-59

query I rowsort
SELECT DISTINCT 62 * 71
----
4402

query I rowsort
SELECT DISTINCT CASE - + ( - + 88 ) WHEN 51 * - 29 THEN 78 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3152
SELECT ALL COUNT( + + CAST( + 77 AS DECIMAL ) ) AS col2, - MIN( ALL + 35 ) AS col1
----
1
-35

skipif mysql # not compatible
query II rowsort label-3152
SELECT ALL COUNT ( + + CAST ( + 77 AS REAL ) ) AS col2, - MIN ( ALL + 35 ) AS col1
----
1
-35

query I rowsort
SELECT + 98 + + 2 + 18 AS col0
----
118

query I rowsort
SELECT - 4 - - + 75
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-3155
SELECT DISTINCT 68 DIV 3
----
22

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT 68 / 3
----
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT - 44 + COUNT( * ) * - + 85
----
-129

skipif mysql # not compatible
query I rowsort label-3158
SELECT - 44 + COUNT ( * ) * - + 85
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-3159
SELECT - 61 DIV - + 42 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3159
SELECT - 61 / - + 42 AS col2
----
1

query I rowsort
SELECT DISTINCT 67 + - ( - 72 )
----
139

query I rowsort
SELECT ALL 26 + + 40 + - 27
----
39

query I rowsort
SELECT DISTINCT + 29 + ( 87 )
----
116

query I rowsort
SELECT DISTINCT + 56 * + 47
----
2632

query I rowsort
SELECT DISTINCT - 84 + - 80
----
-164

query I rowsort
SELECT DISTINCT + 29 + + 7 * + 31 AS col1
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT ALL + MAX( ALL - 46 ) + - 72 AS col1
----
-118

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL + MAX ( ALL - 46 ) + - 72 AS col1
----
-118

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT DISTINCT - + COALESCE ( + COUNT( * ), - 71 * - + 78 + - + 73 + + 74 * ( - 77 ) + + 17 * - 90 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT - + COALESCE ( + COUNT ( * ), - 71 * - + 78 + - + 73 + + 74 * ( - 77 ) + + 17 * - 90 ) col0
----
-1

query II rowsort
SELECT + 30 AS col0, - 46 + + - ( + 2 ) + + + 21
----
30
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3170
SELECT ALL - 48 + - 86 DIV 61 * - ( - + 87 ) * + + COUNT( * ) AS col0
----
-135

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL - 48 + - 86 / 61 * - ( - + 87 ) * + + COUNT ( * ) AS col0
----
-135

query I rowsort
SELECT ALL + - 37 + - - 74
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3172
SELECT DISTINCT - CAST( + MIN( DISTINCT 27 ) AS SIGNED ) AS col0, 98 col1
----
-27
98

skipif mysql # not compatible
query II rowsort label-3172
SELECT DISTINCT - CAST ( + MIN ( DISTINCT 27 ) AS INTEGER ) AS col0, 98 col1
----
-27
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT + 88 - + - SUM( - + 14 ) + - COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-3173
SELECT + 88 - + - SUM ( - + 14 ) + - COUNT ( * ) AS col0
----
73

query I rowsort
SELECT 35 + + 14 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT CASE 39 WHEN 62 THEN + 4 * CASE - 73 WHEN + ( + 23 ) * - + 31 THEN - - 40 ELSE - CASE 21 WHEN - 0 THEN NULL WHEN + COALESCE ( - COUNT( * ), 42, + - 52 ) THEN + + 90 END END + + - 22 WHEN + 3 / + 16 - - - COUNT( * ) - 40 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3175
SELECT CASE 39 WHEN 62 THEN + 4 * CASE - 73 WHEN + ( + 23 ) * - + 31 THEN - - 40 ELSE - CASE 21 WHEN - 0 THEN NULL WHEN + COALESCE ( - COUNT ( * ), 42, + - 52 ) THEN + + 90 END END + + - 22 WHEN + 3 / + 16 - - - COUNT ( * ) - 40 THEN NULL END col2
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT - 95 + + 19
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT + COUNT( * ) + - 74
----
-73

skipif mysql # not compatible
query I rowsort label-3180
SELECT + COUNT ( * ) + - 74
----
-73

query I rowsort
SELECT ( - - 84 ) + - - 20
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT COUNT( * ) * 91 * - 22 AS col1
----
-2002

skipif mysql # not compatible
query I rowsort label-3182
SELECT COUNT ( * ) * 91 * - 22 AS col1
----
-2002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3183
SELECT CASE + 36 WHEN COALESCE ( + - 61, - - CASE + SUM( - ( + 16 ) ) WHEN + - 12 * + COUNT( * ) * + - 45 THEN + - MIN( DISTINCT - - 51 ) END ) / 25 + CASE + - 76 WHEN 70 THEN - + 89 + - 29 * - 37 WHEN - 20 THEN - COUNT( * ) + + 43 ELSE + 93 - COUNT( * ) + - + CAST( - ( - 14 ) AS SIGNED ) / - 37 END THEN + 21 * - + NULLIF ( + - ( + 58 ), + - 61 * 93 ) * 83 + SUM( - 99 + CAST( NULL AS SIGNED ) * 9 ) END * 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT CASE + 36 WHEN COALESCE ( + - 61, - - CASE + SUM ( - ( + 16 ) ) WHEN + - 12 * + COUNT ( * ) * + - 45 THEN + - MIN ( DISTINCT - - 51 ) END ) / 25 + CASE + - 76 WHEN 70 THEN - + 89 + - 29 * - 37 WHEN - 20 THEN - COUNT ( * ) + + 43 ELSE + 93 - COUNT ( * ) + - + CAST ( - ( - 14 ) AS INTEGER ) / - 37 END THEN + 21 * - + NULLIF ( + - ( + 58 ), + - 61 * 93 ) * 83 + SUM ( - 99 + CAST ( NULL AS INTEGER ) * 9 ) END * 86 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3184
SELECT CAST( + 4 AS SIGNED ) + + + 90 + 79
----
173

skipif mysql # not compatible
query I rowsort label-3184
SELECT CAST ( + 4 AS INTEGER ) + + + 90 + 79
----
173

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3186
SELECT CAST( 59 AS SIGNED ) * + + 90 AS col2
----
5310

skipif mysql # not compatible
query I rowsort label-3186
SELECT CAST ( 59 AS INTEGER ) * + + 90 AS col2
----
5310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3187
SELECT ALL 26 + - - 63 - 1 + 87 - 53 + + 68 / - COUNT( * ) - + CASE 64 WHEN + 47 THEN NULL ELSE 1 + + 0 END * - 77 * + CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL 26 + - - 63 - 1 + 87 - 53 + + 68 / - COUNT ( * ) - + CASE 64 WHEN + 47 THEN NULL ELSE 1 + + 0 END * - 77 * + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - 97 + + 64 AS col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3189
SELECT AVG ( + + 10 ) - 12 + - CAST( NULL AS SIGNED ) - - 21 * - - 57 * + 52 - 4 * + - 22 + - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT AVG ( + + 10 ) - 12 + - CAST ( NULL AS INTEGER ) - - 21 * - - 57 * + 52 - 4 * + - 22 + - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT ALL 79 + - + 69
----
10

query I rowsort
SELECT DISTINCT 14 + - 35
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT ALL MIN( ALL + 93 ) + - 93
----
0

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL MIN ( ALL + 93 ) + - 93
----
0

query I rowsort
SELECT 92 * - + 59
----
-5428

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT ALL - MAX( - 70 ) * + COALESCE ( + 11, + 67 + + 83 )
----
770

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL - MAX ( - 70 ) * + COALESCE ( + 11, + 67 + + 83 )
----
770

query I rowsort
SELECT 1 + - 38 AS col2
----
-37

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

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

query I rowsort
SELECT + + 41 * + 89 + - 52 AS col0
----
3597

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT ALL + + 84 * - 48 + + COUNT( * ) AS col0
----
-4031

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL + + 84 * - 48 + + COUNT ( * ) AS col0
----
-4031

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT ( + + 65 ) * + + 57 - - + COUNT( * ) + - + COUNT( DISTINCT + - 46 ) + 53 + - - 5 * + - 60
----
3458

skipif mysql # not compatible
query I rowsort label-3199
SELECT ( + + 65 ) * + + 57 - - + COUNT ( * ) + - + COUNT ( DISTINCT + - 46 ) + 53 + - - 5 * + - 60
----
3458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3200
SELECT ALL - + CAST( - - 34 AS SIGNED ) AS col1, 20 * + COUNT( * )
----
-34
20

skipif mysql # not compatible
query II rowsort label-3200
SELECT ALL - + CAST ( - - 34 AS INTEGER ) AS col1, 20 * + COUNT ( * )
----
-34
20

query I rowsort
SELECT 19 * 70 * + 78
----
103740

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT 42 * - - MIN( DISTINCT - 50 )
----
-2100

skipif mysql # not compatible
query I rowsort label-3202
SELECT 42 * - - MIN ( DISTINCT - 50 )
----
-2100

query I rowsort
SELECT ALL - - 84 * - - 71
----
5964

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3204
SELECT DISTINCT - - MIN( + 4 ) DIV + + 50 * - + COUNT( * ) + 40 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-3204
SELECT DISTINCT - - MIN ( + 4 ) / + + 50 * - + COUNT ( * ) + 40 AS col2
----
40

query II rowsort
SELECT + 18 - + 25 AS col2, - ( - 85 )
----
-7
85

query I rowsort
SELECT + 92 * - 55
----
-5060

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

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

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

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

query I rowsort
SELECT ALL + 73 + + 38
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-3210
SELECT 51 DIV + - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3210
SELECT 51 / + - 75 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3211
SELECT DISTINCT + 92 + + 2 DIV + 6 + 27 * - ( 28 ) - + 64 + + + 71 - + 71
----
-728

skipif mysql # not compatible
query I rowsort label-3211
SELECT DISTINCT + 92 + + 2 / + 6 + 27 * - ( 28 ) - + 64 + + + 71 - + 71
----
-728

query I rowsort
SELECT ALL 39 + 2 AS col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3213
SELECT MIN( - ( - 48 ) ) - - COUNT( DISTINCT + - 91 ) DIV 71
----
48

skipif mysql # not compatible
query I rowsort label-3213
SELECT MIN ( - ( - 48 ) ) - - COUNT ( DISTINCT + - 91 ) / 71
----
48

query I rowsort
SELECT ALL + 74 + - - 30 - + 51 * 99 AS col0
----
-4945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3215
SELECT + COUNT( * ) DIV 18 * - CAST( - 29 AS SIGNED ) * + 22
----
0

skipif mysql # not compatible
query I rowsort label-3215
SELECT + COUNT ( * ) / 18 * - CAST ( - 29 AS INTEGER ) * + 22
----
0

query I rowsort
SELECT ALL 32 + 45 * - - 57
----
2597

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3220
SELECT ALL 73 + - + CAST( + + 75 AS SIGNED ), 95 col2
----
-2
95

skipif mysql # not compatible
query II rowsort label-3220
SELECT ALL 73 + - + CAST ( + + 75 AS INTEGER ), 95 col2
----
-2
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT ALL CASE 43 WHEN + 38 + - 62 + + COUNT( * ) * - 13 - ( 80 ) - - 10 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL CASE 43 WHEN + 38 + - 62 + + COUNT ( * ) * - 13 - ( 80 ) - - 10 THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL 37 * 49
----
1813

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT + 25 + 54 + - 50 + + 45 + + 96 * 2 + 27 + + COUNT( * ) + + 80 - 59 + 60 AS col0
----
375

skipif mysql # not compatible
query I rowsort label-3223
SELECT + 25 + 54 + - 50 + + 45 + + 96 * 2 + 27 + + COUNT ( * ) + + 80 - 59 + 60 AS col0
----
375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3224
SELECT DISTINCT CAST( 25 AS SIGNED ) * + + 94 + - 56 - - 7 DIV 12 * + COALESCE ( - 87, + + COUNT( * ), 35 DIV - 51 + + 77 * COUNT( * ) ) AS col0
----
2294

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT CAST ( 25 AS INTEGER ) * + + 94 + - 56 - - 7 / 12 * + COALESCE ( - 87, + + COUNT ( * ), 35 / - 51 + + 77 * COUNT ( * ) ) AS col0
----
2294

query I rowsort
SELECT - 73 + - 39 AS col1
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3226
SELECT DISTINCT - CASE + - 88 WHEN + 5 - CAST( 18 AS SIGNED ) THEN 26 ELSE + - 32 * + ( + - 19 ) + - 1 + 46 * - + 11 END
----
-101

skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT - CASE + - 88 WHEN + 5 - CAST ( 18 AS INTEGER ) THEN 26 ELSE + - 32 * + ( + - 19 ) + - 1 + 46 * - + 11 END
----
-101

query I rowsort
SELECT ( + NULLIF ( - 3, + 25 ) ) AS col2
----
-3

query II rowsort
SELECT + - 85 AS col1, - 17 * 16 - - 48 + + 91 * + 94
----
-85
8330

query I rowsort
SELECT - 74 + + 17 AS col0
----
-57

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

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL + 58 * + 50 - - COUNT ( * ) AS col1
----
2901

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT DISTINCT COUNT( * ) * - 94 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT COUNT ( * ) * - 94 AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT ALL - SUM( DISTINCT + 84 ) * + - 89 + 7
----
7483

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL - SUM ( DISTINCT + 84 ) * + - 89 + 7
----
7483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3235
SELECT - CAST( MIN( ALL ( - 94 ) ) AS SIGNED ) - + 60 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-3235
SELECT - CAST ( MIN ( ALL ( - 94 ) ) AS INTEGER ) - + 60 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT + + COALESCE ( + 99, - 84, - COUNT( * ) ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-3236
SELECT + + COALESCE ( + 99, - 84, - COUNT ( * ) ) AS col1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3237
SELECT + 30 * 24 * 33 DIV 94 + - 54
----
198

skipif mysql # not compatible
query I rowsort label-3237
SELECT + 30 * 24 * 33 / 94 + - 54
----
198

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

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

query II rowsort
SELECT ALL + 34 * - 16 + 86 - + 40 AS col1, 95 + - 21
----
-498
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT ALL + SUM( - + 48 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3241
SELECT ALL + SUM ( - + 48 ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-3242
SELECT ALL 57 * - + 6 * + COALESCE ( SUM( + 77 ), - 23 + - COUNT( - 29 ) - 86 * + 81 ) + 63, 32 AS col1
----
-26271
32

skipif mysql # not compatible
query II rowsort label-3242
SELECT ALL 57 * - + 6 * + COALESCE ( SUM ( + 77 ), - 23 + - COUNT ( - 29 ) - 86 * + 81 ) + 63, 32 AS col1
----
-26271
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT SUM( 45 ) * 58 + + 62 * 51 * ( + CASE + 90 WHEN 99 * - 52 * - MAX( DISTINCT - + 24 ) THEN NULL WHEN + 89 THEN + 19 WHEN - + 7 * + - MAX( ALL - 19 ) THEN + - 56 - - 20 ELSE NULL END ) + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT SUM ( 45 ) * 58 + + 62 * 51 * ( + CASE + 90 WHEN 99 * - 52 * - MAX ( DISTINCT - + 24 ) THEN NULL WHEN + 89 THEN + 19 WHEN - + 7 * + - MAX ( ALL - 19 ) THEN + - 56 - - 20 ELSE NULL END ) + + 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT ALL 82 * 53 + COUNT( ALL + + 39 ) * 16
----
4362

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL 82 * 53 + COUNT ( ALL + + 39 ) * 16
----
4362

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3246
SELECT ALL 94 * 22 DIV - 94 + + - 4 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL 94 * 22 / - 94 + + - 4 AS col1
----
-26

query I rowsort
SELECT + 9 * - + 54 col0
----
-486

query II rowsort
SELECT - 97 AS col0, 57
----
-97
57

query I rowsort
SELECT - 91 + - NULLIF ( 1, ( + 76 ) ) AS col1
----
-92

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

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL ( MAX ( ALL 70 ) )
----
70

query I rowsort
SELECT + 85 * 69 AS col2
----
5865

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3252
SELECT DISTINCT CAST( - ( ( 52 ) ) AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT CAST ( - ( ( 52 ) ) AS INTEGER )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3253
SELECT DISTINCT + 98 - CASE + - COUNT( * ) WHEN - 80 / + 90 THEN - + 36 WHEN + AVG ( ALL + - 8 ) THEN 59 + 71 - 91 / + ( + COUNT( * ) ) ELSE NULL END + - 86 + - - 99 - CAST( NULL AS SIGNED ) * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT + 98 - CASE + - COUNT ( * ) WHEN - 80 / + 90 THEN - + 36 WHEN + AVG ( ALL + - 8 ) THEN 59 + 71 - 91 / + ( + COUNT ( * ) ) ELSE NULL END + - 86 + - - 99 - CAST ( NULL AS INTEGER ) * 69
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3254
SELECT ALL NULLIF ( - 74, + + 65 * - + 42 + + CAST( NULL AS SIGNED ) + - - 35 ) AS col1, - ( - COUNT( * ) ) + + 77 + 79
----
-74
157

skipif mysql # not compatible
query II rowsort label-3254
SELECT ALL NULLIF ( - 74, + + 65 * - + 42 + + CAST ( NULL AS INTEGER ) + - - 35 ) AS col1, - ( - COUNT ( * ) ) + + 77 + 79
----
-74
157

query I rowsort
SELECT ALL + 80 - - - 43 * + 68
----
-2844

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3257
SELECT ALL 19 - - COUNT( * ) DIV 5 * + 68 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL 19 - - COUNT ( * ) / 5 * + 68 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT - COUNT( + 87 ) - - - CASE + MAX( ALL - 50 ) WHEN - 24 / COUNT( DISTINCT - 14 ) THEN + COUNT( * ) WHEN + 75 - - + 40 + - COUNT( * ) + - + MIN( DISTINCT - 65 ) * 32 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3258
SELECT - COUNT ( + 87 ) - - - CASE + MAX ( ALL - 50 ) WHEN - 24 / COUNT ( DISTINCT - 14 ) THEN + COUNT ( * ) WHEN + 75 - - + 40 + - COUNT ( * ) + - + MIN ( DISTINCT - 65 ) * 32 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 71 * + 67
----
-4757

query II rowsort
SELECT - + 79 AS col0, + 24 AS col1
----
-79
24

query I rowsort
SELECT - 84 * + 49
----
-4116

onlyif mysql # aggregate syntax: 
query II rowsort label-3262
SELECT + + COUNT( * ) + 24 AS col2, 90 + - MAX( 0 ) AS col1
----
25
90

skipif mysql # not compatible
query II rowsort label-3262
SELECT + + COUNT ( * ) + 24 AS col2, 90 + - MAX ( 0 ) AS col1
----
25
90

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

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

query II rowsort
SELECT DISTINCT - 30 AS col0, + 68
----
-30
68

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

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

query I rowsort
SELECT + - 39 + 95 + + 4 AS col2
----
60

query I rowsort
SELECT + 47 * - + 10
----
-470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3268
SELECT ALL - 96 DIV + ( MAX( ALL - 32 ) ) + - 32 * - - 79 + ( + ( + 7 ) ) - - COUNT( * ) AS col0
----
-2517

skipif mysql # not compatible
query I rowsort label-3268
SELECT ALL - 96 / + ( MAX ( ALL - 32 ) ) + - 32 * - - 79 + ( + ( + 7 ) ) - - COUNT ( * ) AS col0
----
-2517

onlyif mysql # aggregate syntax: 
query II rowsort label-3269
SELECT 20 * - + ( - COUNT( * ) ) + + 20 AS col2, + COALESCE ( - COUNT( * ), 57 * + - 76 * + 57 ) AS col2
----
40
-1

skipif mysql # not compatible
query II rowsort label-3269
SELECT 20 * - + ( - COUNT ( * ) ) + + 20 AS col2, + COALESCE ( - COUNT ( * ), 57 * + - 76 * + 57 ) AS col2
----
40
-1

query I rowsort
SELECT + + 98 + + + 80
----
178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3271
SELECT DISTINCT COUNT( * ) DIV ( - 60 ) DIV - 68 * COALESCE ( 8, + 72 * + + 86 ) + + + COUNT( 0 ) + - + 60 + - ( 13 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-3271
SELECT DISTINCT COUNT ( * ) / ( - 60 ) / - 68 * COALESCE ( 8, + 72 * + + 86 ) + + + COUNT ( 0 ) + - + 60 + - ( 13 ) AS col0
----
-72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT + - COUNT( * ) + + 11 + + - 14 + - CASE - 19 WHEN + 1 THEN NULL ELSE COUNT( * ) END * + 78 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-3273
SELECT + - COUNT ( * ) + + 11 + + - 14 + - CASE - 19 WHEN + 1 THEN NULL ELSE COUNT ( * ) END * + 78 AS col2
----
-82

query I rowsort
SELECT + + 12 * - ( - 58 )
----
696

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3275
SELECT DISTINCT 62 DIV COUNT( * ), 44 AS col1
----
62
44

skipif mysql # not compatible
query II rowsort label-3275
SELECT DISTINCT 62 / COUNT ( * ), 44 AS col1
----
62
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT ALL + 88 / + 93 + - - 28 * - MIN( ALL + CASE + - 91 WHEN + - 22 THEN - 94 - - 12 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL + 88 / + 93 + - - 28 * - MIN ( ALL + CASE + - 91 WHEN + - 22 THEN - 94 - - 12 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3277
SELECT + NULLIF ( + CASE + CAST( + 33 AS SIGNED ) WHEN + - COUNT( * ) THEN - + CAST( NULL AS SIGNED ) / + - 10 WHEN 60 + + 60 THEN + 87 END, - COUNT( * ) * - - 96 * + 37 + - 84 + 60 * - MIN( ALL + - 36 ) * + 83 ) / 17 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT + NULLIF ( + CASE + CAST ( + 33 AS INTEGER ) WHEN + - COUNT ( * ) THEN - + CAST ( NULL AS INTEGER ) / + - 10 WHEN 60 + + 60 THEN + 87 END, - COUNT ( * ) * - - 96 * + 37 + - 84 + 60 * - MIN ( ALL + - 36 ) * + 83 ) / 17 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3278
SELECT ALL + 74 * CASE 72 WHEN - - 34 THEN + + ( + 5 ) / - COALESCE ( - + 90, + - CAST( - 19 AS SIGNED ) * - 15 ) ELSE NULL END * - 9 * - + 38 * 0 * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL + 74 * CASE 72 WHEN - - 34 THEN + + ( + 5 ) / - COALESCE ( - + 90, + - CAST ( - 19 AS INTEGER ) * - 15 ) ELSE NULL END * - 9 * - + 38 * 0 * + 20
----
NULL

query I rowsort
SELECT ALL 3 * - + 14 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT ( MIN( DISTINCT - + 73 ) ) - + - 24 + - 97 AS col2
----
-146

skipif mysql # not compatible
query I rowsort label-3280
SELECT ( MIN ( DISTINCT - + 73 ) ) - + - 24 + - 97 AS col2
----
-146

query I rowsort
SELECT 93 * 48 * + 25 col2
----
111600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3282
SELECT COUNT( ALL 77 ) + + MAX( DISTINCT 11 ) - - COUNT( * ) DIV - - 60
----
12

skipif mysql # not compatible
query I rowsort label-3282
SELECT COUNT ( ALL 77 ) + + MAX ( DISTINCT 11 ) - - COUNT ( * ) / - - 60
----
12

query I rowsort
SELECT 2 * - 23 AS col2
----
-46

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

skipif mysql # not compatible
query I rowsort label-3284
SELECT + 89 * + CAST ( NULL AS INTEGER ) - - 66 AS col0
----
NULL

query I rowsort
SELECT 2 - - 75
----
77

query I rowsort
SELECT 18 * ( - 86 ) AS col0
----
-1548

onlyif mysql # aggregate syntax: 
query II rowsort label-3287
SELECT 27 - - 36, + SUM( - 10 ) AS col2
----
63
-10

skipif mysql # not compatible
query II rowsort label-3287
SELECT 27 - - 36, + SUM ( - 10 ) AS col2
----
63
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT + 29 - 55 * + COUNT( * ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-3288
SELECT + 29 - 55 * + COUNT ( * ) AS col2
----
-26

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

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

query I rowsort
SELECT + 38 * 94 AS col0
----
3572

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT COUNT( * ) - - 15 col2
----
16

skipif mysql # not compatible
query I rowsort label-3291
SELECT COUNT ( * ) - - 15 col2
----
16

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

skipif mysql # not compatible
query I rowsort label-3292
SELECT + 96 + + - CAST ( NULL AS INTEGER ) / 40 AS col0
----
NULL

query I rowsort
SELECT ALL + 79 * - + 5 * 16
----
-6320

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

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

query I rowsort
SELECT + ( + - 27 ) + 90 AS col0
----
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT MIN( ALL - + 6 ) + 47 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-3297
SELECT MIN ( ALL - + 6 ) + 47 AS col2
----
41

query II rowsort
SELECT ALL - - 10 * 92, 57 AS col1
----
920
57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3299
SELECT ALL 51 + + 89 DIV - NULLIF ( 10, + + 24 ), CAST( NULL AS SIGNED ) col1
----
43
NULL

skipif mysql # not compatible
query II rowsort label-3299
SELECT ALL 51 + + 89 / - NULLIF ( 10, + + 24 ), CAST ( NULL AS INTEGER ) col1
----
43
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3300
SELECT DISTINCT + 44 * + ( - + CASE 15 WHEN + 89 DIV ( 99 ) - + 6 THEN + COUNT( * ) DIV CAST( 49 AS SIGNED ) ELSE + 17 END ), 16 col1
----
-748
16

skipif mysql # not compatible
query II rowsort label-3300
SELECT DISTINCT + 44 * + ( - + CASE 15 WHEN + 89 / ( 99 ) - + 6 THEN + COUNT ( * ) / CAST ( 49 AS INTEGER ) ELSE + 17 END ), 16 col1
----
-748
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT DISTINCT COUNT( DISTINCT - 53 ) + - - NULLIF ( ( - 96 ), + AVG ( - 23 ) + 36 + + AVG ( - - 57 ) + - SUM( - 57 ) ) + 99 * + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT COUNT ( DISTINCT - 53 ) + - - NULLIF ( ( - 96 ), + AVG ( - 23 ) + 36 + + AVG ( - - 57 ) + - SUM ( - 57 ) ) + 99 * + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-3302
SELECT 66, COALESCE ( + 21, - COUNT( * ), ( + ( - 96 ) ) ) AS col1
----
66
21

skipif mysql # not compatible
query II rowsort label-3302
SELECT 66, COALESCE ( + 21, - COUNT ( * ), ( + ( - 96 ) ) ) AS col1
----
66
21

query I rowsort
SELECT 15 * - + 91 + + 25 AS col1
----
-1340

query I rowsort
SELECT 93 - + - 92 AS col0
----
185

query II rowsort
SELECT DISTINCT - 28, + 24 * - 11 * - - 39 AS col0
----
-28
-10296

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT 52 * + - 97 + + - ( - + COUNT( * ) )
----
-5043

skipif mysql # not compatible
query I rowsort label-3306
SELECT 52 * + - 97 + + - ( - + COUNT ( * ) )
----
-5043

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT 83 + - + COUNT( * ) * - 68 * 0 * 64 * - 14
----
83

skipif mysql # not compatible
query I rowsort label-3307
SELECT 83 + - + COUNT ( * ) * - 68 * 0 * 64 * - 14
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT ( ( + - 85 ) ) + - MAX( DISTINCT - 67 ) + + + 46
----
28

skipif mysql # not compatible
query I rowsort label-3308
SELECT ( ( + - 85 ) ) + - MAX ( DISTINCT - 67 ) + + + 46
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3309
SELECT DISTINCT 79 DIV + - COUNT( * ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT 79 / + - COUNT ( * ) AS col1
----
-79

query I rowsort
SELECT ALL 2 * 40
----
80

query I rowsort
SELECT 11 + 80 AS col2
----
91

query I rowsort
SELECT ALL 14 * - 48 AS col0
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT DISTINCT COUNT( + - 99 ) - - 27 + + + 73 - 40
----
61

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT COUNT ( + - 99 ) - - 27 + + + 73 - 40
----
61

query II rowsort
SELECT - 61 col1, - ( 66 ) AS col1
----
-61
-66

query I rowsort
SELECT ( + 23 ) + 38 + - 83 * - NULLIF ( - 62, - 65 ) AS col1
----
-5085

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

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

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

query I rowsort
SELECT 37 + - + ( ( - 11 ) ) + + + ( 2 ) - 42 * - 72 * - 98 AS col0
----
-296302

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3320
SELECT ALL 36 * - 77 + + 93 col1, + ( + - 12 ) * - - 8 * - COUNT( * ) AS col1
----
-2679
96

skipif mysql # not compatible
query II rowsort label-3320
SELECT ALL 36 * - 77 + + 93 col1, + ( + - 12 ) * - - 8 * - COUNT ( * ) AS col1
----
-2679
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3321
SELECT ALL - + 63 + - - MAX( 85 ) DIV - 24 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL - + 63 + - - MAX ( 85 ) / - 24 AS col1
----
-66

query I rowsort
SELECT DISTINCT - ( 17 ) col1
----
-17

query I rowsort
SELECT + 2 * 80
----
160

query I rowsort
SELECT ALL + + ( + 66 ) * 19
----
1254

query II rowsort
SELECT 39 + COALESCE ( - 78, - 42 * + - 22, - 14 * - - 90 + - 95 ), 14 AS col2
----
-39
14

query I rowsort
SELECT DISTINCT - 34 * 6 AS col1
----
-204

query I rowsort
SELECT DISTINCT + COALESCE ( + + 85, + 76 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-3328
SELECT 19 + 68 + + 3 AS col1, COUNT( * ) col2
----
90
1

skipif mysql # not compatible
query II rowsort label-3328
SELECT 19 + 68 + + 3 AS col1, COUNT ( * ) col2
----
90
1

query I rowsort
SELECT - 9 - 73 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT ALL - 29 * - COUNT( * ) - + - 80
----
109

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL - 29 * - COUNT ( * ) - + - 80
----
109

query I rowsort
SELECT COALESCE ( - 74, + 49 )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3332
SELECT DISTINCT + ( + CAST( 99 AS SIGNED ) ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT + ( + CAST ( 99 AS INTEGER ) ) AS col1
----
99

query I rowsort
SELECT - 92 + - 55 + - + 19 + 78
----
-88

query I rowsort
SELECT - 76 * - 98 - - 18 - - 62 + 96 * + 68 + - 23 * - 99 * + 30 * 44 AS col0
----
3019696

query I rowsort
SELECT DISTINCT - 38 * - 60 AS col2
----
2280

onlyif mysql # aggregate syntax: 
query II rowsort label-3336
SELECT - ( 6 ) * - ( COALESCE ( + COUNT( * ), 60 * - 15 ) ) col0, COUNT( * ) AS col2
----
6
1

skipif mysql # not compatible
query II rowsort label-3336
SELECT - ( 6 ) * - ( COALESCE ( + COUNT ( * ), 60 * - 15 ) ) col0, COUNT ( * ) AS col2
----
6
1

query I rowsort
SELECT DISTINCT + COALESCE ( + ( 2 ), - 74 + - 78 * - 79 + 5 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT NULLIF ( COUNT( - + ( + 24 ) ), - 22 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3338
SELECT NULLIF ( COUNT ( - + ( + 24 ) ), - 22 ) AS col0
----
1

query I rowsort
SELECT COALESCE ( - + 83, - 27 )
----
-83

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

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL + 84 * - 16 * - 98 * + + COUNT ( * )
----
131712

onlyif mysql # aggregate syntax: 
query II rowsort label-3341
SELECT ALL + NULLIF ( + + 98, + - 59 - - + ( - - 49 ) + - - ( 81 ) * + COUNT( ALL + 50 ) + - 45 + - 44 * 43 * - COUNT( * ) * - 35 ) AS col1, 40 AS col2
----
98
40

skipif mysql # not compatible
query II rowsort label-3341
SELECT ALL + NULLIF ( + + 98, + - 59 - - + ( - - 49 ) + - - ( 81 ) * + COUNT ( ALL + 50 ) + - 45 + - 44 * 43 * - COUNT ( * ) * - 35 ) AS col1, 40 AS col2
----
98
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3342
SELECT DISTINCT - MAX( - ( 53 ) ) * COALESCE ( COUNT( * ), - 97, - + 79, CAST( NULL AS SIGNED ) + + 33 ) col0
----
53

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT - MAX ( - ( 53 ) ) * COALESCE ( COUNT ( * ), - 97, - + 79, CAST ( NULL AS INTEGER ) + + 33 ) col0
----
53

query II rowsort
SELECT - 79 * 63 AS col1, ( + 30 ) + + 89 + + COALESCE ( - 4, + 72 * 24 )
----
-4977
115

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

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

query II rowsort
SELECT - 49 * + 5 AS col2, + 37
----
-245
37

onlyif mysql # aggregate syntax: 
query II rowsort label-3346
SELECT + 54 * - 72 AS col2, - 17 * - COUNT( * ) * 16 AS col2
----
-3888
272

skipif mysql # not compatible
query II rowsort label-3346
SELECT + 54 * - 72 AS col2, - 17 * - COUNT ( * ) * 16 AS col2
----
-3888
272

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT ALL + 78 * 18 + + COUNT( * ) AS col2
----
1405

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL + 78 * 18 + + COUNT ( * ) AS col2
----
1405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3348
SELECT 85 * 7 - - - CASE - 62 WHEN + 99 THEN NULL WHEN COUNT( * ) + + 37 + - + 92 THEN + MAX( + 10 ) DIV + MAX( ALL + 86 ) * + ( - 69 ) WHEN - COUNT( * ) THEN + COUNT( * ) ELSE MAX( - - 57 ) END
----
538

skipif mysql # not compatible
query I rowsort label-3348
SELECT 85 * 7 - - - CASE - 62 WHEN + 99 THEN NULL WHEN COUNT ( * ) + + 37 + - + 92 THEN + MAX ( + 10 ) / + MAX ( ALL + 86 ) * + ( - 69 ) WHEN - COUNT ( * ) THEN + COUNT ( * ) ELSE MAX ( - - 57 ) END
----
538

query I rowsort
SELECT ALL - 17 * CASE - 34 WHEN - 67 THEN NULL WHEN + - 25 + + - COALESCE ( + - AVG ( DISTINCT - + 68 ), 65 ) THEN + 9 END + + ( 45 ) AS col0
----
NULL

query I rowsort
SELECT - 43 * - 71 - 1
----
3052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3351
SELECT + - 93 + ( + + COALESCE ( + - CAST( 88 AS SIGNED ), - ( - 9 ) + 24 + + - 74 + - 87 ) ) AS col0
----
-181

skipif mysql # not compatible
query I rowsort label-3351
SELECT + - 93 + ( + + COALESCE ( + - CAST ( 88 AS INTEGER ), - ( - 9 ) + 24 + + - 74 + - 87 ) ) AS col0
----
-181

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

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

query I rowsort
SELECT + - 2 - - 41
----
39

query II rowsort
SELECT ALL 83 * - 27 col1, 35 + 46 + 75 + - - 2 * + 6
----
-2241
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT + 27 - + MIN( + - ( - 91 ) ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-3355
SELECT + 27 - + MIN ( + - ( - 91 ) ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT DISTINCT - 5 + - COUNT( * ) - - 31 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT - 5 + - COUNT ( * ) - - 31 AS col1
----
25

query I rowsort
SELECT ALL 10 + 55 AS col2
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3358
SELECT + 80 * 84 * 99 DIV - 77 DIV + + COUNT( * )
----
-8640

skipif mysql # not compatible
query I rowsort label-3358
SELECT + 80 * 84 * 99 / - 77 / + + COUNT ( * )
----
-8640

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT DISTINCT 54 * + SUM( 51 ) * COUNT( * ) + + - 59
----
2695

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT 54 * + SUM ( 51 ) * COUNT ( * ) + + - 59
----
2695

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

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT - SUM ( - 83 )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3361
SELECT ALL + CAST( - 2 AS SIGNED ) - - 12 - + 33 + + CAST( + 93 AS DECIMAL ) * - CAST( NULL AS SIGNED ) * - 8 + 64, - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3361
SELECT ALL + CAST ( - 2 AS INTEGER ) - - 12 - + 33 + + CAST ( + 93 AS REAL ) * - CAST ( NULL AS INTEGER ) * - 8 + 64, - COUNT ( * ) AS col0
----
NULL
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3362
SELECT - CAST( 69 AS SIGNED ) AS col0, - COUNT( * )
----
-69
-1

skipif mysql # not compatible
query II rowsort label-3362
SELECT - CAST ( 69 AS INTEGER ) AS col0, - COUNT ( * )
----
-69
-1

query I rowsort
SELECT - - 0 * - 58 * 11
----
0

query I rowsort
SELECT + 69 + 70
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3365
SELECT + CAST( NULLIF ( 18, - + 70 ) AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-3365
SELECT + CAST ( NULLIF ( 18, - + 70 ) AS INTEGER )
----
18

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3367
SELECT + CASE AVG ( ALL 99 ) WHEN - COUNT( * ) + + + 55 + - ( - 21 ) THEN NULL ELSE CAST( NULL AS SIGNED ) END + - - COALESCE ( + 25, ( - + 0 ) * - 22, 93 ) + - + 29 * + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT + CASE AVG ( ALL 99 ) WHEN - COUNT ( * ) + + + 55 + - ( - 21 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) END + - - COALESCE ( + 25, ( - + 0 ) * - 22, 93 ) + - + 29 * + 92
----
NULL

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

query I rowsort
SELECT + 62 * 3
----
186

onlyif mysql # aggregate syntax: 
query II rowsort label-3370
SELECT ALL - MIN( DISTINCT - + 52 ) * - 42 * 3 - + - 74, 47 + - 44 * + + 87 AS col0
----
-6478
-3781

skipif mysql # not compatible
query II rowsort label-3370
SELECT ALL - MIN ( DISTINCT - + 52 ) * - 42 * 3 - + - 74, 47 + - 44 * + + 87 AS col0
----
-6478
-3781

query I rowsort
SELECT DISTINCT 3 * - - 96
----
288

query II rowsort
SELECT + 35 AS col1, - 79 col2
----
35
-79

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3374
SELECT ALL 38 * + COALESCE ( - 34, - - CAST( NULL AS SIGNED ), - 75 ) AS col0, 98 AS col1
----
-1292
98

skipif mysql # not compatible
query II rowsort label-3374
SELECT ALL 38 * + COALESCE ( - 34, - - CAST ( NULL AS INTEGER ), - 75 ) AS col0, 98 AS col1
----
-1292
98

query I rowsort
SELECT - 9 + 93 + + 31 + + 28 + 81
----
224

query I rowsort
SELECT + 8 * + + ( - + 82 ) + 56
----
-600

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

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

query I rowsort
SELECT - 2 + 51 + 56 col0
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-3379
SELECT + COUNT( * ), 42 + - 2 + + 70 AS col0
----
1
110

skipif mysql # not compatible
query II rowsort label-3379
SELECT + COUNT ( * ), 42 + - 2 + + 70 AS col0
----
1
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3380
SELECT MAX( DISTINCT 58 ) * - 42 + 64 + - CAST( NULL AS SIGNED ) AS col1, CASE 84 WHEN 57 THEN - + 65 END col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3380
SELECT MAX ( DISTINCT 58 ) * - 42 + 64 + - CAST ( NULL AS INTEGER ) AS col1, CASE 84 WHEN 57 THEN - + 65 END col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3381
SELECT - 49 DIV - - NULLIF ( 98, + ( COALESCE ( + - 34, + 14 ) ) * - - 84 * - - COUNT( * ) * - NULLIF ( 53, + CAST( NULL AS DECIMAL ) * - 76 + + + MIN( 40 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3381
SELECT - 49 / - - NULLIF ( 98, + ( COALESCE ( + - 34, + 14 ) ) * - - 84 * - - COUNT ( * ) * - NULLIF ( 53, + CAST ( NULL AS REAL ) * - 76 + + + MIN ( 40 ) ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3382
SELECT - 39 / + 54 * + 1 * CAST( NULL AS SIGNED ) / COUNT( * ) * + - 28 * - 46 * - CASE - - 23 WHEN + 57 THEN - + SUM( - + 65 ) * - - CAST( NULL AS SIGNED ) / + - 3 - - + 50 END * - 62 + - ( - COUNT( DISTINCT + + 5 ) ) + 59 - + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3382
SELECT - 39 / + 54 * + 1 * CAST ( NULL AS INTEGER ) / COUNT ( * ) * + - 28 * - 46 * - CASE - - 23 WHEN + 57 THEN - + SUM ( - + 65 ) * - - CAST ( NULL AS INTEGER ) / + - 3 - - + 50 END * - 62 + - ( - COUNT ( DISTINCT + + 5 ) ) + 59 - + 89 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT - 66 + - 3 * - 8 + - ( + + MAX( - 70 ) ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-3383
SELECT - 66 + - 3 * - 8 + - ( + + MAX ( - 70 ) ) AS col2
----
28

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3385
SELECT DISTINCT + 90 * + 66 + - - CAST( NULL AS SIGNED ) AS col2, - ( - 68 ) + + 0 AS col2
----
NULL
68

skipif mysql # not compatible
query II rowsort label-3385
SELECT DISTINCT + 90 * + 66 + - - CAST ( NULL AS INTEGER ) AS col2, - ( - 68 ) + + 0 AS col2
----
NULL
68

query I rowsort
SELECT DISTINCT - + 16 * 30
----
-480

query I rowsort
SELECT - + NULLIF ( + 81, + 75 ) * + 54
----
-4374

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT + MAX( ALL - 3 ) + + 9
----
6

skipif mysql # not compatible
query I rowsort label-3388
SELECT + MAX ( ALL - 3 ) + + 9
----
6

query I rowsort
SELECT - 42 * - - 7
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT - + MIN( + + 50 ) col1
----
-50

skipif mysql # not compatible
query I rowsort label-3390
SELECT - + MIN ( + + 50 ) col1
----
-50

query I rowsort
SELECT + 12 * - 13 + - 66 AS col2
----
-222

query II rowsort
SELECT ALL + 69, 68 AS col2
----
69
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT - NULLIF ( + 25, + - 96 + - 47 + + COUNT( ALL - + 76 ) + - - 66 + ( 59 ) / + ( + - 11 ) ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-3393
SELECT - NULLIF ( + 25, + - 96 + - 47 + + COUNT ( ALL - + 76 ) + - - 66 + ( 59 ) / + ( + - 11 ) ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT ALL - COUNT( * ) - - 72
----
71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT DISTINCT + CASE - 32 WHEN - ( - 64 ) THEN COUNT( * ) END / ( + 69 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT + CASE - 32 WHEN - ( - 64 ) THEN COUNT ( * ) END / ( + 69 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3396
SELECT + 53 AS col0, 32 - CASE - 64 WHEN + + 5 * + + 10 * - CASE 21 WHEN + 71 THEN COUNT( * ) + - + 92 WHEN + COUNT( * ) * COUNT( * ) * - + MAX( ALL - + 81 ) * 37 * - + 90 - AVG ( ALL 71 ) + - 66 THEN + - 20 / SUM( + 30 ) END - + 31 + - 2 - + - CAST( NULL AS SIGNED ) * 4 * AVG ( DISTINCT - 26 ) * - - 16 + - 69 * + 33 * + 12 THEN + COUNT( * ) END + + + 50 * - - 13 AS col0
----
53
NULL

skipif mysql # not compatible
query II rowsort label-3396
SELECT + 53 AS col0, 32 - CASE - 64 WHEN + + 5 * + + 10 * - CASE 21 WHEN + 71 THEN COUNT ( * ) + - + 92 WHEN + COUNT ( * ) * COUNT ( * ) * - + MAX ( ALL - + 81 ) * 37 * - + 90 - AVG ( ALL 71 ) + - 66 THEN + - 20 / SUM ( + 30 ) END - + 31 + - 2 - + - CAST ( NULL AS INTEGER ) * 4 * AVG ( DISTINCT - 26 ) * - - 16 + - 69 * + 33 * + 12 THEN + COUNT ( * ) END + + + 50 * - - 13 AS col0
----
53
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT 51 - 1 + - SUM( DISTINCT + + 76 )
----
-26

skipif mysql # not compatible
query I rowsort label-3397
SELECT 51 - 1 + - SUM ( DISTINCT + + 76 )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3398
SELECT - CAST( NULL AS SIGNED ) * 92 * 99, 18 AS col2
----
NULL
18

skipif mysql # not compatible
query II rowsort label-3398
SELECT - CAST ( NULL AS INTEGER ) * 92 * 99, 18 AS col2
----
NULL
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT ALL MAX( DISTINCT + + 89 ) * - 7
----
-623

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL MAX ( DISTINCT + + 89 ) * - 7
----
-623

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT 40 * + 84 * + + SUM( + 78 ) AS col0
----
262080

skipif mysql # not compatible
query I rowsort label-3400
SELECT 40 * + 84 * + + SUM ( + 78 ) AS col0
----
262080

query I rowsort
SELECT DISTINCT + 33 * + + 9
----
297

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

skipif mysql # not compatible
query I rowsort label-3402
SELECT + 80 / - 45
----
-1

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

skipif mysql # not compatible
query II rowsort label-3403
SELECT ALL 23 AS col1, COUNT ( * )
----
23
1

query I rowsort
SELECT 86 * + 27
----
2322

onlyif mysql # aggregate syntax: 
query II rowsort label-3405
SELECT 74, - COUNT( * ) + + + 26 + 38 AS col2
----
74
63

skipif mysql # not compatible
query II rowsort label-3405
SELECT 74, - COUNT ( * ) + + + 26 + 38 AS col2
----
74
63

query II rowsort
SELECT DISTINCT 32 AS col1, 61 AS col2
----
32
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3407
SELECT DISTINCT - 44 AS col2, - CAST( NULL AS SIGNED ) + - CASE 2 WHEN - 98 THEN + 64 / - + 35 + + - 87 WHEN 27 + + 7 * + 15 THEN NULL END
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-3407
SELECT DISTINCT - 44 AS col2, - CAST ( NULL AS INTEGER ) + - CASE 2 WHEN - 98 THEN + 64 / - + 35 + + - 87 WHEN 27 + + 7 * + 15 THEN NULL END
----
-44
NULL

query II rowsort
SELECT DISTINCT - 53, 56 * 52 AS col2
----
-53
2912

onlyif mysql # aggregate syntax: 
query II rowsort label-3409
SELECT 68 col1, COUNT( ALL 65 ) * + 49 * - - COUNT( * )
----
68
49

skipif mysql # not compatible
query II rowsort label-3409
SELECT 68 col1, COUNT ( ALL 65 ) * + 49 * - - COUNT ( * )
----
68
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3410
SELECT COUNT( * ) * + - CASE MAX( - 59 ) WHEN - 8 THEN 96 ELSE - 3 END AS col1, + ( - - 55 ) * ( - + 37 ) + CAST( NULL AS DECIMAL ) * ( + - 35 ) + - 75 + SUM( ALL + + 44 ) AS col2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3410
SELECT COUNT ( * ) * + - CASE MAX ( - 59 ) WHEN - 8 THEN 96 ELSE - 3 END AS col1, + ( - - 55 ) * ( - + 37 ) + CAST ( NULL AS REAL ) * ( + - 35 ) + - 75 + SUM ( ALL + + 44 ) AS col2
----
3
NULL

query I rowsort
SELECT 37 * + + 71 * + - 63 * ( - + ( + 69 ) )
----
11419569

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT ALL MAX( ALL + - 20 ) + + 14 * - 66
----
-944

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL MAX ( ALL + - 20 ) + + 14 * - 66
----
-944

query II rowsort
SELECT + 2, 63 * - 1 AS col0
----
2
-63

query I rowsort
SELECT DISTINCT + 3 + + + 23 AS col2
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-3415
SELECT DISTINCT - 88 AS col0, 68 DIV 81
----
-88
0

skipif mysql # not compatible
query II rowsort label-3415
SELECT DISTINCT - 88 AS col0, 68 / 81
----
-88
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT DISTINCT 90 + 29 - COUNT( * ) + + 87 * + - 78 AS col1
----
-6668

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT 90 + 29 - COUNT ( * ) + + 87 * + - 78 AS col1
----
-6668

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

query I rowsort
SELECT DISTINCT + 76 + + + 64 - + 37 col2
----
103

query II rowsort
SELECT DISTINCT - 78, 32 AS col0
----
-78
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT - 34 * - 83 + - COUNT( * ) AS col2
----
2821

skipif mysql # not compatible
query I rowsort label-3420
SELECT - 34 * - 83 + - COUNT ( * ) AS col2
----
2821

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT SUM( + 54 ) * - 90 * + + COUNT( * ) AS col1
----
-4860

skipif mysql # not compatible
query I rowsort label-3421
SELECT SUM ( + 54 ) * - 90 * + + COUNT ( * ) AS col1
----
-4860

query II rowsort
SELECT ALL - 27, - ( + 23 ) + - 43 col0
----
-27
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT - 68 * - MIN( ALL + 27 ) + + 3 AS col1
----
1839

skipif mysql # not compatible
query I rowsort label-3423
SELECT - 68 * - MIN ( ALL + 27 ) + + 3 AS col1
----
1839

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3424
SELECT ALL + - CASE + + AVG ( ALL - + 5 ) WHEN + - 66 THEN - 61 * - MAX( - 80 ) * + + 22 WHEN - + MAX( DISTINCT - CAST( 7 AS DECIMAL ) ) THEN 59 - + SUM( DISTINCT - 24 ) END - COALESCE ( - MAX( DISTINCT - 70 ), + 97 * + COUNT( * ) ) * + CAST( NULL AS SIGNED ) / 85
----
NULL

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL + - CASE + + AVG ( ALL - + 5 ) WHEN + - 66 THEN - 61 * - MAX ( - 80 ) * + + 22 WHEN - + MAX ( DISTINCT - CAST ( 7 AS REAL ) ) THEN 59 - + SUM ( DISTINCT - 24 ) END - COALESCE ( - MAX ( DISTINCT - 70 ), + 97 * + COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) / 85
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3425
SELECT 48 * + CAST( - 10 AS SIGNED ) * + COUNT( * ) + + 90 + ( - 45 ) DIV 75 * 69
----
-390

skipif mysql # not compatible
query I rowsort label-3425
SELECT 48 * + CAST ( - 10 AS INTEGER ) * + COUNT ( * ) + + 90 + ( - 45 ) / 75 * 69
----
-390

query I rowsort
SELECT + 62 - 47
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-3427
SELECT - COUNT( * ) AS col1, 42 - 10 AS col0
----
-1
32

skipif mysql # not compatible
query II rowsort label-3427
SELECT - COUNT ( * ) AS col1, 42 - 10 AS col0
----
-1
32

query I rowsort
SELECT 86 + - 49 * + 25 + - 69 * 71 AS col0
----
-6038

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3429
SELECT ALL - - 72 - + COUNT( * ) + + 41 DIV + + COUNT( DISTINCT 43 )
----
112

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL - - 72 - + COUNT ( * ) + + 41 / + + COUNT ( DISTINCT 43 )
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT COUNT( * ) * - - 39 + + 46
----
85

skipif mysql # not compatible
query I rowsort label-3430
SELECT COUNT ( * ) * - - 39 + + 46
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3431
SELECT - + 63 AS col1, - NULLIF ( + CAST( NULL AS SIGNED ), + 54 * - CAST( 87 AS SIGNED ) + - - MIN( + 92 ) ) + COUNT( * ) * + ( - 66 )
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-3431
SELECT - + 63 AS col1, - NULLIF ( + CAST ( NULL AS INTEGER ), + 54 * - CAST ( 87 AS INTEGER ) + - - MIN ( + 92 ) ) + COUNT ( * ) * + ( - 66 )
----
-63
NULL

query I rowsort
SELECT ALL + - ( + 87 ) * + 43 + + 37 + + 97 AS col2
----
-3607

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT MIN( DISTINCT - 87 ) + - + COUNT( * ) + - 91
----
-179

skipif mysql # not compatible
query I rowsort label-3433
SELECT MIN ( DISTINCT - 87 ) + - + COUNT ( * ) + - 91
----
-179

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

skipif mysql # not compatible
query I rowsort label-3434
SELECT 96 * + 34 * - + COUNT ( * ) AS col0
----
-3264

query I rowsort
SELECT 55 - - - 87
----
-32

onlyif mysql # DIV for integer division: 
query II rowsort label-3436
SELECT 95 AS col2, 32 DIV 43
----
95
0

skipif mysql # not compatible
query II rowsort label-3436
SELECT 95 AS col2, 32 / 43
----
95
0

query I rowsort
SELECT ALL + - 5 * - 25 * 84 + + 72
----
10572

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3438
SELECT ALL COUNT( * ) DIV 72 AS col2, + 36 DIV + MIN( - 42 ) col0
----
0
0

skipif mysql # not compatible
query II rowsort label-3438
SELECT ALL COUNT ( * ) / 72 AS col2, + 36 / + MIN ( - 42 ) col0
----
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3439
SELECT ALL + COUNT( * ) DIV COUNT( ALL - - 41 ) * - - 60 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL + COUNT ( * ) / COUNT ( ALL - - 41 ) * - - 60 AS col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-3440
SELECT NULLIF ( + - 43, + - 97 ) DIV + - ( - 26 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3440
SELECT NULLIF ( + - 43, + - 97 ) / + - ( - 26 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT ALL + 25 + + + MIN( 54 ) + - 7 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL + 25 + + + MIN ( 54 ) + - 7 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT ALL 91 + + - COUNT( * ) + + - 90 * - MIN( + 93 ) * - + 93
----
-778320

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL 91 + + - COUNT ( * ) + + - 90 * - MIN ( + 93 ) * - + 93
----
-778320

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT 92 + - MAX( 30 ) col2
----
62

skipif mysql # not compatible
query I rowsort label-3443
SELECT 92 + - MAX ( 30 ) col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT MIN( ALL - 40 ) * - - MIN( - 55 )
----
2200

skipif mysql # not compatible
query I rowsort label-3444
SELECT MIN ( ALL - 40 ) * - - MIN ( - 55 )
----
2200

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3446
SELECT COUNT( * ) + + + ( - 55 ) - + - 92 * + - CAST( NULL AS SIGNED ) + - AVG ( ALL 36 ) * - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-3446
SELECT COUNT ( * ) + + + ( - 55 ) - + - 92 * + - CAST ( NULL AS INTEGER ) + - AVG ( ALL 36 ) * - 41
----
NULL

query I rowsort
SELECT ALL ( - 34 ) + + ( - 15 ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT MIN( - 45 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-3448
SELECT MIN ( - 45 ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT ALL MAX( DISTINCT - - 7 ) * - MIN( DISTINCT - 16 ) + + + 33 * 5 + - 74 / + - CASE + 14 WHEN - 60 + + + MAX( ALL 26 ) THEN NULL WHEN 67 * 65 * + 2 THEN 14 * - - 90 + 98 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL MAX ( DISTINCT - - 7 ) * - MIN ( DISTINCT - 16 ) + + + 33 * 5 + - 74 / + - CASE + 14 WHEN - 60 + + + MAX ( ALL 26 ) THEN NULL WHEN 67 * 65 * + 2 THEN 14 * - - 90 + 98 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT ALL - 96 * - + CASE - + COUNT( * ) WHEN + 25 / + 9 + + 90 + 62 * + 13 THEN NULL WHEN 89 THEN NULL WHEN + 74 * - MAX( + + 22 ) THEN NULL ELSE + 35 END * - + 30 * + 99 + + 57 + - + 15 + + CASE + + 81 WHEN - NULLIF ( + 10, 57 / + 98 + - 39 ) THEN + - COUNT( DISTINCT - 85 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL - 96 * - + CASE - + COUNT ( * ) WHEN + 25 / + 9 + + 90 + 62 * + 13 THEN NULL WHEN 89 THEN NULL WHEN + 74 * - MAX ( + + 22 ) THEN NULL ELSE + 35 END * - + 30 * + 99 + + 57 + - + 15 + + CASE + + 81 WHEN - NULLIF ( + 10, 57 / + 98 + - 39 ) THEN + - COUNT ( DISTINCT - 85 ) ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT ALL - COUNT( * ) * + + 39 * + 9 + + + COUNT( + 81 ) AS col0
----
-350

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL - COUNT ( * ) * + + 39 * + 9 + + + COUNT ( + 81 ) AS col0
----
-350

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3453
SELECT 46 + + CAST( 7 AS SIGNED ) + + - 13 - + 90 DIV 4 DIV - 42
----
40

skipif mysql # not compatible
query I rowsort label-3453
SELECT 46 + + CAST ( 7 AS INTEGER ) + + - 13 - + 90 / 4 / - 42
----
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT + MIN( ALL 47 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-3455
SELECT + MIN ( ALL 47 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3456
SELECT + MAX( DISTINCT 83 ), 83 * + - 22 AS col0
----
83
-1826

skipif mysql # not compatible
query II rowsort label-3456
SELECT + MAX ( DISTINCT 83 ), 83 * + - 22 AS col0
----
83
-1826

query I rowsort
SELECT ( + + 31 ) + + 11 col2
----
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT DISTINCT + CASE - ( + 92 ) WHEN - - COUNT( * ) * 67 THEN - 97 WHEN - + 8 - - - COUNT( * ) THEN NULL END * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3459
SELECT DISTINCT + CASE - ( + 92 ) WHEN - - COUNT ( * ) * 67 THEN - 97 WHEN - + 8 - - - COUNT ( * ) THEN NULL END * + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT DISTINCT - + CASE + 96 WHEN - + SUM( ALL + - 14 ) + NULLIF ( - 99, + 94 ) THEN NULL WHEN - 48 THEN - - 18 ELSE NULL END * + 62 - - ( - + 70 ) * + 50 - + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT - + CASE + 96 WHEN - + SUM ( ALL + - 14 ) + NULLIF ( - 99, + 94 ) THEN NULL WHEN - 48 THEN - - 18 ELSE NULL END * + 62 - - ( - + 70 ) * + 50 - + 2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3461
SELECT DISTINCT + COUNT( * ) * + 85 + + NULLIF ( CAST( - 16 AS SIGNED ), - 80 ) col2
----
69

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT + COUNT ( * ) * + 85 + + NULLIF ( CAST ( - 16 AS INTEGER ), - 80 ) col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT DISTINCT + 7 * + + 84 * - 75 * - SUM( DISTINCT - - 31 ) + - - 72 col1
----
1367172

skipif mysql # not compatible
query I rowsort label-3462
SELECT DISTINCT + 7 * + + 84 * - 75 * - SUM ( DISTINCT - - 31 ) + - - 72 col1
----
1367172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3463
SELECT - - ( COUNT( * ) ) * CAST( NULL AS SIGNED ) col2, - 12 * - - CASE CAST( - COUNT( * ) AS SIGNED ) WHEN + 4 * - 4 THEN + - 74 * - 95 + + + COUNT( * ) END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3463
SELECT - - ( COUNT ( * ) ) * CAST ( NULL AS INTEGER ) col2, - 12 * - - CASE CAST ( - COUNT ( * ) AS INTEGER ) WHEN + 4 * - 4 THEN + - 74 * - 95 + + + COUNT ( * ) END AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3464
SELECT - - CAST( NULL AS SIGNED ) + + COUNT( DISTINCT + 47 ) + + COALESCE ( - 53, + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT - - CAST ( NULL AS INTEGER ) + + COUNT ( DISTINCT + 47 ) + + COALESCE ( - 53, + 92 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3465
SELECT + NULLIF ( - + 28, + MIN( CAST( NULL AS DECIMAL ) ) ) DIV + - 28 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3465
SELECT + NULLIF ( - + 28, + MIN ( CAST ( NULL AS REAL ) ) ) / + - 28 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3466
SELECT + 49 * - 92 * + + CAST( NULL AS SIGNED ) AS col0, - ( + 62 ) col0
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-3466
SELECT + 49 * - 92 * + + CAST ( NULL AS INTEGER ) AS col0, - ( + 62 ) col0
----
NULL
-62

query I rowsort
SELECT ALL - - 32 * 8 + - 13 AS col0
----
243

onlyif mysql # aggregate syntax: 
query II rowsort label-3468
SELECT ALL + 83 + + - COUNT( * ), 14 AS col0
----
82
14

skipif mysql # not compatible
query II rowsort label-3468
SELECT ALL + 83 + + - COUNT ( * ), 14 AS col0
----
82
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3469
SELECT ALL ( - - COALESCE ( + + CAST( NULL AS SIGNED ), 53, + + ( COALESCE ( + 20, NULLIF ( - 35, 58 / COUNT( * ) + - 51 ) ) ) + + + ( + 21 ) + + CAST( NULL AS SIGNED ) * + - 19 + + 90 ) )
----
53

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL ( - - COALESCE ( + + CAST ( NULL AS INTEGER ), 53, + + ( COALESCE ( + 20, NULLIF ( - 35, 58 / COUNT ( * ) + - 51 ) ) ) + + + ( + 21 ) + + CAST ( NULL AS INTEGER ) * + - 19 + + 90 ) )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT ALL + COUNT( * ) + - 37 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL + COUNT ( * ) + - 37 AS col0
----
-36

query I rowsort
SELECT - ( 98 ) - + - 57 AS col0
----
-41

query II rowsort
SELECT 36 AS col1, + 34 AS col2
----
36
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT - CAST( 83 AS SIGNED ) * 18 - + 46 + 8 + + 18
----
-1514

skipif mysql # not compatible
query I rowsort label-3473
SELECT - CAST ( 83 AS INTEGER ) * 18 - + 46 + 8 + + 18
----
-1514

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3474
SELECT ALL COALESCE ( - CAST( NULL AS SIGNED ), COUNT( DISTINCT - - 0 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL COALESCE ( - CAST ( NULL AS INTEGER ), COUNT ( DISTINCT - - 0 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT + COUNT( * ) * + 84 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-3475
SELECT + COUNT ( * ) * + 84 AS col1
----
84

query I rowsort
SELECT ALL ( + COALESCE ( + ( + - ( - ( - 71 ) ) ), - 76 * 35 * - 0 ) )
----
-71

query II rowsort
SELECT - 88, 30 * 76 AS col2
----
-88
2280

query I rowsort
SELECT ALL + 30 * + 49
----
1470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3479
SELECT ALL + CASE - CAST( NULL AS SIGNED ) WHEN - 41 THEN - COUNT( * ) ELSE + 81 END + 2
----
83

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL + CASE - CAST ( NULL AS INTEGER ) WHEN - 41 THEN - COUNT ( * ) ELSE + 81 END + 2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT DISTINCT + COUNT( * ) + + - 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3480
SELECT DISTINCT + COUNT ( * ) + + - 0 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT - COUNT( * ) - + 34 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3481
SELECT - COUNT ( * ) - + 34 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT ALL 31 + + COUNT( * ) * 47 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL 31 + + COUNT ( * ) * 47 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ALL + CASE + + 1 WHEN + 59 * + 7 * + COUNT( * ) THEN 73 + - + 92 WHEN + AVG ( + NULLIF ( + + 50, 14 * + + 27 + - + 27 + + ( 35 ) - - + 13 + 59 / - 99 * + 45 ) ) THEN 60 + + - 64 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL + CASE + + 1 WHEN + 59 * + 7 * + COUNT ( * ) THEN 73 + - + 92 WHEN + AVG ( + NULLIF ( + + 50, 14 * + + 27 + - + 27 + + ( 35 ) - - + 13 + 59 / - 99 * + 45 ) ) THEN 60 + + - 64 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT + MIN( + - 49 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-3484
SELECT + MIN ( + - 49 ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT + 72 * MAX( ALL ( 11 ) ) AS col1
----
792

skipif mysql # not compatible
query I rowsort label-3485
SELECT + 72 * MAX ( ALL ( 11 ) ) AS col1
----
792

onlyif mysql # DIV for integer division: 
query I rowsort label-3486
SELECT + 89 DIV - + 40
----
-2

skipif mysql # not compatible
query I rowsort label-3486
SELECT + 89 / - + 40
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT + MAX( DISTINCT - 81 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-3487
SELECT + MAX ( DISTINCT - 81 ) AS col2
----
-81

query I rowsort
SELECT - 8 * - + 34 * - 76 AS col0
----
-20672

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT ALL - COUNT( DISTINCT + - 21 ) * COUNT( DISTINCT + 55 )
----
-1

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL - COUNT ( DISTINCT + - 21 ) * COUNT ( DISTINCT + 55 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT ALL - + CASE + NULLIF ( - + 56, + - ( SUM( 57 ) ) ) WHEN + - 47 THEN - 40 + - 76 ELSE NULL END * + 1 + + + 50 - - COALESCE ( 82, + 62 * - 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL - + CASE + NULLIF ( - + 56, + - ( SUM ( 57 ) ) ) WHEN + - 47 THEN - 40 + - 76 ELSE NULL END * + 1 + + + 50 - - COALESCE ( 82, + 62 * - 52 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3491
SELECT DISTINCT + - COUNT( * ) AS col0, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-3491
SELECT DISTINCT + - COUNT ( * ) AS col0, COUNT ( * )
----
-1
1

query I rowsort
SELECT + + 48 + 90
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT + 21 * - 72 + 54 * ( - - 87 ) - + NULLIF ( - COUNT( * ), COUNT( - - 13 ) ) col0
----
3187

skipif mysql # not compatible
query I rowsort label-3493
SELECT + 21 * - 72 + 54 * ( - - 87 ) - + NULLIF ( - COUNT ( * ), COUNT ( - - 13 ) ) col0
----
3187

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT + + MAX( DISTINCT 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3494
SELECT + + MAX ( DISTINCT 65 ) AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3495
SELECT + - MAX( + 64 ) * - 88 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3495
SELECT + - MAX ( + 64 ) * - 88 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 25 * - 77 * + + 3 * + 75 * - COALESCE ( + 11, + + 38 ) + + + 15
----
4764390

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT ALL - + 6 * - + 87 + - 21 + COALESCE ( + CASE + SUM( ALL + + 82 ) WHEN - + 3 * + 74 THEN COALESCE ( 95, - NULLIF ( + 7, - 25 ) ) END, + 85 - + + 71 + - - NULLIF ( - 85, + 72 ) * + 2 * + - ( - ( + 90 ) ) * - 43 )
----
658415

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL - + 6 * - + 87 + - 21 + COALESCE ( + CASE + SUM ( ALL + + 82 ) WHEN - + 3 * + 74 THEN COALESCE ( 95, - NULLIF ( + 7, - 25 ) ) END, + 85 - + + 71 + - - NULLIF ( - 85, + 72 ) * + 2 * + - ( - ( + 90 ) ) * - 43 )
----
658415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3498
SELECT + COUNT( * ) * 28 + 42 DIV 26 + 23 - - 26 * + 20 AS col1
----
572

skipif mysql # not compatible
query I rowsort label-3498
SELECT + COUNT ( * ) * 28 + 42 / 26 + 23 - - 26 * + 20 AS col1
----
572

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT ALL + 1 * 78 + + 40 DIV 67 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL + 1 * 78 + + 40 / 67 AS col0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT + - 90 DIV - + 48
----
1

skipif mysql # not compatible
query I rowsort label-3500
SELECT + - 90 / - + 48
----
1

query I rowsort
SELECT ALL + 90 * - 1 + - 52 + 90 + - - 25 - - 30 * + - 87 * - 85 AS col0
----
221823

onlyif mysql # DIV for integer division: 
query I rowsort label-3502
SELECT + 98 DIV - 90
----
-1

skipif mysql # not compatible
query I rowsort label-3502
SELECT + 98 / - 90
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT SUM( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3503
SELECT SUM ( - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT - 38 + NULLIF ( 57, - 44 * - + 20 + + + 66 + + COUNT( * ) * - 70 )
----
19

skipif mysql # not compatible
query I rowsort label-3504
SELECT - 38 + NULLIF ( 57, - 44 * - + 20 + + + 66 + + COUNT ( * ) * - 70 )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3505
SELECT DISTINCT CASE + 33 WHEN - 18 THEN + CAST( - + 60 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3505
SELECT DISTINCT CASE + 33 WHEN - 18 THEN + CAST ( - + 60 AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT ALL MIN( 45 )
----
45

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL MIN ( 45 )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3507
SELECT - 2 + COUNT( * ) + - - 79 + 71 DIV 62
----
79

skipif mysql # not compatible
query I rowsort label-3507
SELECT - 2 + COUNT ( * ) + - - 79 + 71 / 62
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3508
SELECT ALL 8 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL 8 / + 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT DISTINCT CASE + + COUNT( * ) WHEN + 54 THEN NULL ELSE + 7 END
----
7

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT CASE + + COUNT ( * ) WHEN + 54 THEN NULL ELSE + 7 END
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3510
SELECT ALL COUNT( * ) * + 75, + 7 * CASE - 98 WHEN + ( + 63 ) THEN - + 85 END * - 89 * 70 + - - 7 AS col0
----
75
NULL

skipif mysql # not compatible
query II rowsort label-3510
SELECT ALL COUNT ( * ) * + 75, + 7 * CASE - 98 WHEN + ( + 63 ) THEN - + 85 END * - 89 * 70 + - - 7 AS col0
----
75
NULL

query II rowsort
SELECT ALL + 99 * 79 col1, + 7 AS col1
----
7821
7

query II rowsort
SELECT + 8 + + 92, 26 + + 68 col2
----
100
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT - 84 + + NULLIF ( + ( + CASE - COUNT( * ) WHEN + - 46 THEN + + 17 * - - 31 END ), 16 / + - 39 ) + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3513
SELECT - 84 + + NULLIF ( + ( + CASE - COUNT ( * ) WHEN + - 46 THEN + + 17 * - - 31 END ), 16 / + - 39 ) + + 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT - SUM( DISTINCT 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-3514
SELECT - SUM ( DISTINCT 64 )
----
-64

query I rowsort
SELECT ALL - 72 * - 55 AS col0
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT ALL - ( - - MIN( 49 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL - ( - - MIN ( 49 ) )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT + MAX( + 57 ) * - + MAX( DISTINCT - - 95 ) - 38 + 30
----
-5423

skipif mysql # not compatible
query I rowsort label-3517
SELECT + MAX ( + 57 ) * - + MAX ( DISTINCT - - 95 ) - 38 + 30
----
-5423

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT ALL - + MAX( DISTINCT 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL - + MAX ( DISTINCT 99 )
----
-99

query I rowsort
SELECT - 49 * + - 46 + + 15
----
2269

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT + - 69 DIV + 52 + 8 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3520
SELECT + - 69 / + 52 + 8 AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3521
SELECT ALL - + 65 DIV 11 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL - + 65 / 11 AS col1
----
-5

query I rowsort
SELECT - 51 + - + 29
----
-80

query I rowsort
SELECT ALL - + 90 * + ( - + COALESCE ( 8, - 43, 13 ) )
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT DISTINCT + COUNT( * ) + - SUM( ALL 86 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-3524
SELECT DISTINCT + COUNT ( * ) + - SUM ( ALL 86 ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL + COUNT( * ) + 12 + - 32 + 99 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL + COUNT ( * ) + 12 + - 32 + 99 AS col1
----
80

query I rowsort
SELECT 40 * 55 AS col0
----
2200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3527
SELECT ALL 84 DIV - 98 * - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL 84 / - 98 * - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT DISTINCT + - 48 + - + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-3528
SELECT DISTINCT + - 48 + - + COUNT ( * )
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3529
SELECT ALL COUNT( * ) + - COUNT( DISTINCT + 88 ) DIV 23 * + 69 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL COUNT ( * ) + - COUNT ( DISTINCT + 88 ) / 23 * + 69 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT DISTINCT + COUNT( * ) + - 74 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT + COUNT ( * ) + - 74 AS col2
----
-73

query I rowsort
SELECT 95 * + 1 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT 31 + + COUNT( ALL + 69 )
----
32

skipif mysql # not compatible
query I rowsort label-3532
SELECT 31 + + COUNT ( ALL + 69 )
----
32

query II rowsort
SELECT 61 AS col0, + 18 AS col2
----
61
18

query I rowsort
SELECT 21 * 80 * + + 64 * - 96 AS col1
----
-10321920

query I rowsort
SELECT ALL 32 * ( - 92 )
----
-2944

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT 27 + + COUNT( 6 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-3536
SELECT 27 + + COUNT ( 6 ) AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3537
SELECT ALL SUM( DISTINCT + 56 ) - CASE - - 82 WHEN + 9 * - 77 * - ( - 28 ) + + + 1 THEN - + CAST( NULL AS SIGNED ) * + 1 * + + 65 * - 96 WHEN 43 THEN - AVG ( DISTINCT + 53 ) ELSE NULL END * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL SUM ( DISTINCT + 56 ) - CASE - - 82 WHEN + 9 * - 77 * - ( - 28 ) + + + 1 THEN - + CAST ( NULL AS INTEGER ) * + 1 * + + 65 * - 96 WHEN 43 THEN - AVG ( DISTINCT + 53 ) ELSE NULL END * 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT COUNT( * ) * - - 90
----
90

skipif mysql # not compatible
query I rowsort label-3538
SELECT COUNT ( * ) * - - 90
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT ( - 77 ) - + COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-3539
SELECT ( - 77 ) - + COUNT ( * ) AS col0
----
-78

query I rowsort
SELECT 62 + + - 48
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3541
SELECT 65 DIV 23
----
2

skipif mysql # not compatible
query I rowsort label-3541
SELECT 65 / 23
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT COUNT( * ) * - 76 * + NULLIF ( - 19, COALESCE ( 28, + - 56 ) ) * - 33 + - COUNT( * )
----
-47653

skipif mysql # not compatible
query I rowsort label-3542
SELECT COUNT ( * ) * - 76 * + NULLIF ( - 19, COALESCE ( 28, + - 56 ) ) * - 33 + - COUNT ( * )
----
-47653

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT 71 + 0 * + 76 * 76 - + - COUNT( * ) col1
----
72

skipif mysql # not compatible
query I rowsort label-3543
SELECT 71 + 0 * + 76 * 76 - + - COUNT ( * ) col1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3544
SELECT ( + 84 ) DIV - - 41
----
2

skipif mysql # not compatible
query I rowsort label-3544
SELECT ( + 84 ) / - - 41
----
2

query I rowsort
SELECT ( - 67 ) * 6 * 12
----
-4824

query I rowsort
SELECT 65 - - - 57 AS col0
----
8

query I rowsort
SELECT ALL - 3 * - - 37 AS col1
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT DISTINCT - + ( COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT - + ( COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT ALL - + 38 * - MIN( - + 65 )
----
-2470

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL - + 38 * - MIN ( - + 65 )
----
-2470

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT 40 * - COUNT( * ) * - + 5 AS col0
----
200

skipif mysql # not compatible
query I rowsort label-3550
SELECT 40 * - COUNT ( * ) * - + 5 AS col0
----
200

query II rowsort
SELECT - 34 AS col1, 18
----
-34
18

query II rowsort
SELECT + 56 AS col1, - 9 AS col0
----
56
-9

query I rowsort
SELECT ALL + + 25 + + 51 AS col1
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-3554
SELECT - NULLIF ( - - 73, + 58 ), 65 + + - MAX( 93 ) + + 16 * - 50 * - 34 AS col2
----
-73
27172

skipif mysql # not compatible
query II rowsort label-3554
SELECT - NULLIF ( - - 73, + 58 ), 65 + + - MAX ( 93 ) + + 16 * - 50 * - 34 AS col2
----
-73
27172

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT ALL - - COUNT( * ) * 89 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL - - COUNT ( * ) * 89 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT DISTINCT - - MAX( - - 66 )
----
66

skipif mysql # not compatible
query I rowsort label-3556
SELECT DISTINCT - - MAX ( - - 66 )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3557
SELECT DISTINCT - - 96 + + 43 DIV - + ( - 11 )
----
99

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT - - 96 + + 43 / - + ( - 11 )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3558
SELECT ALL + 96 * - CASE + + ( 93 ) WHEN + + CAST( + - ( + 69 ) AS SIGNED ) + - 70 THEN NULL WHEN + 89 * 97 - - 53 THEN 70 END * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL + 96 * - CASE + + ( 93 ) WHEN + + CAST ( + - ( + 69 ) AS INTEGER ) + - 70 THEN NULL WHEN + 89 * 97 - - 53 THEN 70 END * - 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT 55 * + COUNT( * ) + COUNT( * ) col2
----
56

skipif mysql # not compatible
query I rowsort label-3559
SELECT 55 * + COUNT ( * ) + COUNT ( * ) col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT + ( - 31 ) * - - COUNT( * ) * + + ( 29 ) + + COUNT( * )
----
-898

skipif mysql # not compatible
query I rowsort label-3560
SELECT + ( - 31 ) * - - COUNT ( * ) * + + ( 29 ) + + COUNT ( * )
----
-898

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT 88 + + + MAX( + 30 ) AS col1
----
118

skipif mysql # not compatible
query I rowsort label-3561
SELECT 88 + + + MAX ( + 30 ) AS col1
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-3562
SELECT 99 * 84 - 47 DIV ( + 95 ) * + + 90 + + 64
----
8380

skipif mysql # not compatible
query I rowsort label-3562
SELECT 99 * 84 - 47 / ( + 95 ) * + + 90 + + 64
----
8380

onlyif mysql # DIV for integer division: 
query I rowsort label-3563
SELECT ALL + + 70 * 79 DIV + 37
----
149

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL + + 70 * 79 / + 37
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT COUNT( * ) + + - 81
----
-80

skipif mysql # not compatible
query I rowsort label-3564
SELECT COUNT ( * ) + + - 81
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3565
SELECT CASE - - COALESCE ( + AVG ( DISTINCT + 47 ), - - 69 * + COALESCE ( + + ( 30 ), COUNT( * ) ) ) WHEN + COUNT( * ) THEN - 48 DIV 87 ELSE + CAST( - + COUNT( * ) AS SIGNED ) END * 79 + - ( + 92 )
----
-171

skipif mysql # not compatible
query I rowsort label-3565
SELECT CASE - - COALESCE ( + AVG ( DISTINCT + 47 ), - - 69 * + COALESCE ( + + ( 30 ), COUNT ( * ) ) ) WHEN + COUNT ( * ) THEN - 48 / 87 ELSE + CAST ( - + COUNT ( * ) AS INTEGER ) END * 79 + - ( + 92 )
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT ALL - COUNT( * ) - + + 51 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL - COUNT ( * ) - + + 51 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-3567
SELECT + 19, + NULLIF ( CASE WHEN NOT - 13 IN ( - - 82 * - 29, ( - + COUNT( * ) ) * 81 + + ( 90 ) + - - 69 * + 80, + 35 * + - 12 + + 17 + NULLIF ( + 6, + MAX( 49 ) * + - 2 * + NULLIF ( - 95, - CASE + 82 WHEN - 20 THEN - COUNT( * ) END ) ) ) THEN 33 END, - 5 / - 24 ) AS col2
----
19
33

skipif mysql # not compatible
query II rowsort label-3567
SELECT + 19, + NULLIF ( CASE WHEN NOT - 13 IN ( - - 82 * - 29, ( - + COUNT ( * ) ) * 81 + + ( 90 ) + - - 69 * + 80, + 35 * + - 12 + + 17 + NULLIF ( + 6, + MAX ( 49 ) * + - 2 * + NULLIF ( - 95, - CASE + 82 WHEN - 20 THEN - COUNT ( * ) END ) ) ) THEN 33 END, - 5 / - 24 ) AS col2
----
19
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL ( + COUNT( * ) ) - 35 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL ( + COUNT ( * ) ) - 35 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT - 97 * + + COUNT( 93 ) * - - 24 + 88 AS col1
----
-2240

skipif mysql # not compatible
query I rowsort label-3569
SELECT - 97 * + + COUNT ( 93 ) * - - 24 + 88 AS col1
----
-2240

query I rowsort
SELECT ALL + 71 * - 5 AS col2
----
-355

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT DISTINCT + MIN( - 48 ) * 13
----
-624

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT + MIN ( - 48 ) * 13
----
-624

onlyif mysql # DIV for integer division: 
query I rowsort label-3572
SELECT DISTINCT 73 DIV 6 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3572
SELECT DISTINCT 73 / 6 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT COALESCE ( + - 36, 56 + COUNT( * ) ) * + 87 - - 44 col2
----
-3088

skipif mysql # not compatible
query I rowsort label-3573
SELECT COALESCE ( + - 36, 56 + COUNT ( * ) ) * + 87 - - 44 col2
----
-3088

query II rowsort
SELECT ALL 41 col1, + 89
----
41
89

query II rowsort
SELECT 47 AS col2, 98 col1
----
47
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT - SUM( ALL + - 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3576
SELECT - SUM ( ALL + - 42 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT + COUNT( * ) + + 78 - + 62 * + COUNT( * ) + COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-3577
SELECT + COUNT ( * ) + + 78 - + 62 * + COUNT ( * ) + COUNT ( * ) AS col0
----
18

query I rowsort
SELECT ALL 31 * 22 * - + 38
----
-25916

query I rowsort
SELECT + 37 * + 14 AS col1
----
518

query I rowsort
SELECT DISTINCT 30 * - 94
----
-2820

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT + - COUNT( * ) + + 41 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-3581
SELECT + - COUNT ( * ) + + 41 AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3582
SELECT + - 4 - - - COUNT( * ) + - - COUNT( * ) DIV - 27 + - 11 * + 75 * ( - - 94 )
----
-77555

skipif mysql # not compatible
query I rowsort label-3582
SELECT + - 4 - - - COUNT ( * ) + - - COUNT ( * ) / - 27 + - 11 * + 75 * ( - - 94 )
----
-77555

query I rowsort
SELECT DISTINCT ( 80 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query III rowsort label-3584
SELECT ALL - COUNT( - + 59 ) AS col2, + 21 + - 62 + - 62 + ( COUNT( * ) ), - 91 AS col2
----
-1
-102
-91

skipif mysql # not compatible
query III rowsort label-3584
SELECT ALL - COUNT ( - + 59 ) AS col2, + 21 + - 62 + - 62 + ( COUNT ( * ) ), - 91 AS col2
----
-1
-102
-91

query I rowsort
SELECT + + 29 * + 4 * + + 26
----
3016

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT COUNT( ALL - 61 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3586
SELECT COUNT ( ALL - 61 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT DISTINCT 12 + - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-3587
SELECT DISTINCT 12 + - COUNT ( * )
----
11

query I rowsort
SELECT ALL 16 + 68 * - 55 AS col0
----
-3724

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT + MIN( DISTINCT - 26 ) + - - 31
----
5

skipif mysql # not compatible
query I rowsort label-3589
SELECT + MIN ( DISTINCT - 26 ) + - - 31
----
5

query I rowsort
SELECT + 89 * 31 + - + 7 * - 24 + 99 * 49 + - 69
----
7709

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT DISTINCT + 58 * - - SUM( - + 46 ) * - COUNT( * )
----
2668

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT + 58 * - - SUM ( - + 46 ) * - COUNT ( * )
----
2668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3592
SELECT ALL CAST( + 3 AS SIGNED ) * + 70 + + - 38
----
172

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL CAST ( + 3 AS INTEGER ) * + 70 + + - 38
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT - 27 + - COUNT( * ) + - - 42
----
14

skipif mysql # not compatible
query I rowsort label-3593
SELECT - 27 + - COUNT ( * ) + - - 42
----
14

query I rowsort
SELECT + - 8 * - + 51 col0
----
408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3595
SELECT - - 3 * + COUNT( * ) * + ( ( + + COUNT( * ) ) ) DIV + CASE - 72 WHEN + 87 THEN NULL WHEN 7 THEN NULL ELSE - 21 END
----
0

skipif mysql # not compatible
query I rowsort label-3595
SELECT - - 3 * + COUNT ( * ) * + ( ( + + COUNT ( * ) ) ) / + CASE - 72 WHEN + 87 THEN NULL WHEN 7 THEN NULL ELSE - 21 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT + + NULLIF ( - + 85, + 47 ) * MAX( - 95 ) + + 21
----
8096

skipif mysql # not compatible
query I rowsort label-3596
SELECT + + NULLIF ( - + 85, + 47 ) * MAX ( - 95 ) + + 21
----
8096

query I rowsort
SELECT - + 28 + - 51 + ( + 5 ) AS col1
----
-74

query I rowsort
SELECT ALL + 22 * + + 3 AS col2
----
66

query III rowsort
SELECT + - 34, - 42 col1, 50 AS col1
----
-34
-42
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT - + 37 * + COUNT( * ) + + 0 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3600
SELECT - + 37 * + COUNT ( * ) + + 0 AS col0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3601
SELECT ALL - 80 * ( + - 42 ) - CAST( NULL AS SIGNED ) - + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL - 80 * ( + - 42 ) - CAST ( NULL AS INTEGER ) - + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT - 16 * - COUNT( * ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3602
SELECT - 16 * - COUNT ( * ) AS col1
----
16

query I rowsort
SELECT ALL 85 * - 35
----
-2975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3604
SELECT NULLIF ( 93, - 72 - 4 * 71 + - + 31 - + CAST( NULL AS SIGNED ) )
----
93

skipif mysql # not compatible
query I rowsort label-3604
SELECT NULLIF ( 93, - 72 - 4 * 71 + - + 31 - + CAST ( NULL AS INTEGER ) )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT ALL + COUNT( ALL 2 )
----
1

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL + COUNT ( ALL 2 )
----
1

query I rowsort
SELECT ALL + ( 45 ) AS col0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3607
SELECT ALL - COUNT( * ) * 46 - - 97 DIV - 79 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL - COUNT ( * ) * 46 - - 97 / - 79 AS col2
----
-47

query I rowsort
SELECT - 21 * 84
----
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT + 91 - - + 1 * + CASE - MAX( - + 87 ) WHEN + NULLIF ( + + 75, + + 83 * ( + COUNT( * ) ) ) * + - 78 THEN NULL WHEN 0 THEN - 88 ELSE COUNT( ALL - 13 ) END
----
92

skipif mysql # not compatible
query I rowsort label-3609
SELECT + 91 - - + 1 * + CASE - MAX ( - + 87 ) WHEN + NULLIF ( + + 75, + + 83 * ( + COUNT ( * ) ) ) * + - 78 THEN NULL WHEN 0 THEN - 88 ELSE COUNT ( ALL - 13 ) END
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3610
SELECT ALL + CAST( NULL AS SIGNED ) / - 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL + CAST ( NULL AS INTEGER ) / - 27 AS col0
----
NULL

query II rowsort
SELECT - 85 * 65 AS col2, + 40 AS col2
----
-5525
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3612
SELECT MIN( DISTINCT - 39 ) AS col1, 12
----
-39
12

skipif mysql # not compatible
query II rowsort label-3612
SELECT MIN ( DISTINCT - 39 ) AS col1, 12
----
-39
12

query II rowsort
SELECT DISTINCT ( - 7 ) AS col0, 3
----
-7
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3614
SELECT - COALESCE ( - 27, CAST( NULL AS SIGNED ) ) DIV COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-3614
SELECT - COALESCE ( - 27, CAST ( NULL AS INTEGER ) ) / COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT ALL + COUNT( * ) * 60 col1
----
60

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL + COUNT ( * ) * 60 col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3616
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 30 / + CAST( - 72 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 30 / + CAST ( - 72 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT DISTINCT 84 + - - NULLIF ( + 55, COUNT( * ) )
----
139

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT 84 + - - NULLIF ( + 55, COUNT ( * ) )
----
139

query II rowsort
SELECT - 90 * - + 12 AS col2, 70 * 75
----
1080
5250

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT ALL - 14 * - COUNT( * ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL - 14 * - COUNT ( * ) AS col2
----
14

query I rowsort
SELECT ALL + 51 + + 68 + 95 - - 67
----
281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3621
SELECT ALL + 42 + 92 * - 79 + + 89 - + - 94 + - - 47 DIV 34 + - - COUNT( * )
----
-7041

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL + 42 + 92 * - 79 + + 89 - + - 94 + - - 47 / 34 + - - COUNT ( * )
----
-7041

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3622
SELECT - 54 + + 7 + - 53 + - 47 * + 17 + NULLIF ( 88, - CAST( - + 43 AS SIGNED ) ) * + COALESCE ( + ( - 83 ), 17, + 73 + + 91 ) AS col1, - 52 * + 40
----
-8203
-2080

skipif mysql # not compatible
query II rowsort label-3622
SELECT - 54 + + 7 + - 53 + - 47 * + 17 + NULLIF ( 88, - CAST ( - + 43 AS INTEGER ) ) * + COALESCE ( + ( - 83 ), 17, + 73 + + 91 ) AS col1, - 52 * + 40
----
-8203
-2080

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3623
SELECT DISTINCT 87 + + - 2 - - SUM( ALL + COALESCE ( - ( - 36 ), 59 ) ) - 72 DIV + 79 * 21 AS col2, 90 * + 3
----
121
270

skipif mysql # not compatible
query II rowsort label-3623
SELECT DISTINCT 87 + + - 2 - - SUM ( ALL + COALESCE ( - ( - 36 ), 59 ) ) - 72 / + 79 * 21 AS col2, 90 * + 3
----
121
270

onlyif mysql # DIV for integer division: 
query I rowsort label-3624
SELECT + COALESCE ( - ( + 45 ), 42 DIV + 8 - 10 + - + 28 ) + + CASE WHEN 3 IS NOT NULL THEN - 38 END
----
-83

skipif mysql # not compatible
query I rowsort label-3624
SELECT + COALESCE ( - ( + 45 ), 42 / + 8 - 10 + - + 28 ) + + CASE WHEN 3 IS NOT NULL THEN - 38 END
----
-83

query I rowsort
SELECT ALL 1 + + 4 * + 28
----
113

query I rowsort
SELECT ALL + ( - 76 ) + + ( - 3 )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3627
SELECT - + COUNT( * ) - + 54 + - + 59 * NULLIF ( SUM( + - NULLIF ( - + ( + - 82 ), + CAST( NULL AS SIGNED ) ) ), - + 96 ) * + COUNT( * )
----
4783

skipif mysql # not compatible
query I rowsort label-3627
SELECT - + COUNT ( * ) - + 54 + - + 59 * NULLIF ( SUM ( + - NULLIF ( - + ( + - 82 ), + CAST ( NULL AS INTEGER ) ) ), - + 96 ) * + COUNT ( * )
----
4783

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT - + CASE - 42 WHEN - 78 / + + COUNT( * ) THEN + + 49 ELSE NULL END * + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT - + CASE - 42 WHEN - 78 / + + COUNT ( * ) THEN + + 49 ELSE NULL END * + 63 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3629
SELECT - - 63 DIV + 42 col2
----
1

skipif mysql # not compatible
query I rowsort label-3629
SELECT - - 63 / + 42 col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3630
SELECT + 33 * + MIN( DISTINCT - - 90 ) + + 83 + + + 23 DIV - 46
----
3053

skipif mysql # not compatible
query I rowsort label-3630
SELECT + 33 * + MIN ( DISTINCT - - 90 ) + + 83 + + + 23 / - 46
----
3053

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT ALL + ( - + SUM( + 63 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL + ( - + SUM ( + 63 ) )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT ALL + NULLIF ( COUNT( * ), + - 67 ) / + - 11 - 44 * + CASE + 53 WHEN + + COUNT( * ) THEN + COUNT( * ) / + AVG ( ALL 76 ) + MAX( - + 84 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL + NULLIF ( COUNT ( * ), + - 67 ) / + - 11 - 44 * + CASE + 53 WHEN + + COUNT ( * ) THEN + COUNT ( * ) / + AVG ( ALL 76 ) + MAX ( - + 84 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3633
SELECT - 70 * - - CAST( + 2 AS SIGNED ) - - COUNT( * ) * - 10 * + 21 col0
----
-350

skipif mysql # not compatible
query I rowsort label-3633
SELECT - 70 * - - CAST ( + 2 AS INTEGER ) - - COUNT ( * ) * - 10 * + 21 col0
----
-350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3634
SELECT DISTINCT + 85 DIV + - COUNT( DISTINCT 94 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT + 85 / + - COUNT ( DISTINCT 94 ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT - MAX( DISTINCT - 73 ) * 6 + + - 56 AS col1
----
382

skipif mysql # not compatible
query I rowsort label-3635
SELECT - MAX ( DISTINCT - 73 ) * 6 + + - 56 AS col1
----
382

onlyif mysql # DIV for integer division: 
query II rowsort label-3636
SELECT - 56 * + 53 * 35, + 15 DIV - - 24 * - 36 AS col1
----
-103880
0

skipif mysql # not compatible
query II rowsort label-3636
SELECT - 56 * + 53 * 35, + 15 / - - 24 * - 36 AS col1
----
-103880
0

query I rowsort
SELECT ALL 62 * - 94
----
-5828

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3638
SELECT ( + CASE - - CASE - 54 WHEN - + 81 * 1 THEN NULL ELSE + ( 38 ) END WHEN - + CAST( NULL AS DECIMAL ) THEN NULL WHEN + + 90 THEN NULL WHEN + 43 THEN - 5 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT ( + CASE - - CASE - 54 WHEN - + 81 * 1 THEN NULL ELSE + ( 38 ) END WHEN - + CAST ( NULL AS REAL ) THEN NULL WHEN + + 90 THEN NULL WHEN + 43 THEN - 5 END )
----
NULL

query I rowsort
SELECT ALL + 45 * - 17
----
-765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3640
SELECT CAST( NULL AS SIGNED ) * - ( - 57 ) AS col2, 16 DIV + - COUNT( * )
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-3640
SELECT CAST ( NULL AS INTEGER ) * - ( - 57 ) AS col2, 16 / + - COUNT ( * )
----
NULL
-16

query I rowsort
SELECT ALL - 73 + - ( 44 ) AS col0
----
-117

query I rowsort
SELECT + 50 * + + 75 + + + 2
----
3752

query I rowsort
SELECT ALL - ( + 97 ) AS col1
----
-97

query I rowsort
SELECT DISTINCT + 0 + 16 AS col1
----
16

query II rowsort
SELECT 15 AS col0, + 66 AS col2
----
15
66

query I rowsort
SELECT ALL - 10 + - - 50 col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3647
SELECT 51 + 21 DIV - COUNT( * ) + + + 58 col1
----
88

skipif mysql # not compatible
query I rowsort label-3647
SELECT 51 + 21 / - COUNT ( * ) + + + 58 col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3648
SELECT 96 AS col0, - 99 DIV 12 * - COUNT( * ) * + ( + 73 ) AS col2, + 55
----
96
584
55

skipif mysql # not compatible
query III rowsort label-3648
SELECT 96 AS col0, - 99 / 12 * - COUNT ( * ) * + ( + 73 ) AS col2, + 55
----
96
584
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3649
SELECT DISTINCT - 92 + - MIN( - 76 ) DIV 22 * + 7
----
-71

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT - 92 + - MIN ( - 76 ) / 22 * + 7
----
-71

query I rowsort
SELECT 64 * ( + 63 ) * 43 - - 35
----
173411

query I rowsort
SELECT 0 + 92
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT - MAX( ALL + 12 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-3652
SELECT - MAX ( ALL + 12 ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT DISTINCT + 22 + - + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT + 22 + - + COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3654
SELECT - 58, COALESCE ( + CASE 84 WHEN + 34 * NULLIF ( + - COUNT( * ), - + 39 ) * + 86 + + COUNT( + 25 ) THEN NULL WHEN + - 52 * NULLIF ( - 91, + COALESCE ( ( + - 36 ), + + COUNT( * ) + - ( - 47 ) ) ) + - 82 + 30 THEN + - COALESCE ( 11, - MIN( ( - 7 ) ), 41 ) ELSE NULL END, 62 * + - 97 ) AS col1
----
-58
-6014

skipif mysql # not compatible
query II rowsort label-3654
SELECT - 58, COALESCE ( + CASE 84 WHEN + 34 * NULLIF ( + - COUNT ( * ), - + 39 ) * + 86 + + COUNT ( + 25 ) THEN NULL WHEN + - 52 * NULLIF ( - 91, + COALESCE ( ( + - 36 ), + + COUNT ( * ) + - ( - 47 ) ) ) + - 82 + 30 THEN + - COALESCE ( 11, - MIN ( ( - 7 ) ), 41 ) ELSE NULL END, 62 * + - 97 ) AS col1
----
-58
-6014

query I rowsort
SELECT ALL - + 14 - + 19 / + CASE + - ( 86 ) WHEN 46 THEN + + 74 + + 21 + - 85 WHEN + 1 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 21 + + 29 + - ( - + 33 )
----
83

query I rowsort
SELECT - 35 + + 16 - - COALESCE ( - 35, - 90 + - ( + 61 ) + + 51 - 18 ) * - 57 AS col0
----
1976

query I rowsort
SELECT + 9 * 7
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3659
SELECT - COUNT( * ) - + CAST( NULL AS SIGNED ) + + ( - - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3659
SELECT - COUNT ( * ) - + CAST ( NULL AS INTEGER ) + + ( - - COUNT ( * ) )
----
NULL

query I rowsort
SELECT 84 - - 43 col2
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-3661
SELECT COUNT( * ) col1, ( - 34 )
----
1
-34

skipif mysql # not compatible
query II rowsort label-3661
SELECT COUNT ( * ) col1, ( - 34 )
----
1
-34

query I rowsort
SELECT + 84 + + 1 + - 26 * + 44 + + ( - ( 43 ) )
----
-1102

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT ALL + 56 * + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL + 56 * + COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT ALL - - COUNT( * ) - + + ( 0 ) + COUNT( * ) + 93 * - 41
----
-3811

skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL - - COUNT ( * ) - + + ( 0 ) + COUNT ( * ) + 93 * - 41
----
-3811

onlyif mysql # aggregate syntax: 
query II rowsort label-3665
SELECT ALL - 53 AS col1, + 82 * COUNT( + 80 ) AS col2
----
-53
82

skipif mysql # not compatible
query II rowsort label-3665
SELECT ALL - 53 AS col1, + 82 * COUNT ( + 80 ) AS col2
----
-53
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT ALL - - SUM( - - 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL - - SUM ( - - 10 ) AS col0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3667
SELECT 46 DIV + - 4
----
-11

skipif mysql # not compatible
query I rowsort label-3667
SELECT 46 / + - 4
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT COUNT( * ) * - 77 + - 15 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3668
SELECT COUNT ( * ) * - 77 + - 15 AS col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3669
SELECT DISTINCT 50 + - + ( - 3 ) * + 23 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT 50 + - + ( - 3 ) * + 23 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 84 + + ( - 30 ) col1
----
54

query I rowsort
SELECT DISTINCT 43 + + - 39 + 73 - 58 + + 41 + - 89 * 49 AS col1
----
-4301

query I rowsort
SELECT ALL - NULLIF ( + - ( 38 ), - ( + 4 ) + - 85 * - - ( - 45 ) * - 81 ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-3673
SELECT DISTINCT 14 + 14 AS col0, 68 + MIN( DISTINCT 36 ) * - 85 AS col1
----
28
-2992

skipif mysql # not compatible
query II rowsort label-3673
SELECT DISTINCT 14 + 14 AS col0, 68 + MIN ( DISTINCT 36 ) * - 85 AS col1
----
28
-2992

query I rowsort
SELECT 45 - + 10 * - + 74 AS col0
----
785

query I rowsort
SELECT ALL 90 * - - 99
----
8910

onlyif mysql # DIV for integer division: 
query II rowsort label-3676
SELECT DISTINCT 83 + - 78 AS col1, + 1 DIV - + 85 AS col1
----
5
0

skipif mysql # not compatible
query II rowsort label-3676
SELECT DISTINCT 83 + - 78 AS col1, + 1 / - + 85 AS col1
----
5
0

query I rowsort
SELECT DISTINCT 1 * - 80 * - - 79 AS col1
----
-6320

query II rowsort
SELECT ALL 13 + + 81 AS col2, 30
----
94
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3679
SELECT ALL CAST( + MIN( + 17 ) AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL CAST ( + MIN ( + 17 ) AS INTEGER )
----
17

query I rowsort
SELECT ALL + - 16 - ( + + ( - 84 ) ) col1
----
68

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3681
SELECT ALL CASE 23 WHEN + - 65 + - + NULLIF ( + - 85, + NULLIF ( 19, - 80 * + - 22 + - 46 ) + + 4 ) - + 36 - + - 97 * - - NULLIF ( + + 13, ( - ( + 49 ) ) - - 64 ) * CAST( 29 AS DECIMAL ) THEN + CAST( NULL AS SIGNED ) + - 98 ELSE - + 35 END AS col0, 53 * - - 92 AS col1
----
-35
4876

skipif mysql # not compatible
query II rowsort label-3681
SELECT ALL CASE 23 WHEN + - 65 + - + NULLIF ( + - 85, + NULLIF ( 19, - 80 * + - 22 + - 46 ) + + 4 ) - + 36 - + - 97 * - - NULLIF ( + + 13, ( - ( + 49 ) ) - - 64 ) * CAST ( 29 AS REAL ) THEN + CAST ( NULL AS INTEGER ) + - 98 ELSE - + 35 END AS col0, 53 * - - 92 AS col1
----
-35
4876

onlyif mysql # DIV for integer division: 
query I rowsort label-3682
SELECT - 66 + - 39 DIV + - ( 67 ) * + - 17
----
-66

skipif mysql # not compatible
query I rowsort label-3682
SELECT - 66 + - 39 / + - ( 67 ) * + - 17
----
-66

query I rowsort
SELECT 99 * - + 16 AS col0
----
-1584

query I rowsort
SELECT 78 + - 18 AS col1
----
60

query I rowsort
SELECT - 7 * - + 47 AS col1
----
329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3686
SELECT + NULLIF ( + 99, - 5 / + - CAST( NULL AS SIGNED ) ) + 88
----
187

skipif mysql # not compatible
query I rowsort label-3686
SELECT + NULLIF ( + 99, - 5 / + - CAST ( NULL AS INTEGER ) ) + 88
----
187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3687
SELECT ALL - CAST( NULL AS SIGNED ) * + + 12 + - + COUNT( * ) * - 79 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 12 + - + COUNT ( * ) * - 79 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT ALL NULLIF ( - - 3, COUNT( * ) ) col2
----
3

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL NULLIF ( - - 3, COUNT ( * ) ) col2
----
3

query I rowsort
SELECT DISTINCT - 18 * + ( 74 )
----
-1332

query I rowsort
SELECT + 73 * - ( + 34 )
----
-2482

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT ALL - 85 * MAX( ALL - 93 )
----
7905

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL - 85 * MAX ( ALL - 93 )
----
7905

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT ALL + CASE - + 98 WHEN + + 69 THEN NULL WHEN 77 THEN 63 * 96 + + COUNT( ( + - 87 ) ) - - + 96 WHEN + - ( + 97 ) * + 60 THEN COUNT( * ) - - 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL + CASE - + 98 WHEN + + 69 THEN NULL WHEN 77 THEN 63 * 96 + + COUNT ( ( + - 87 ) ) - - + 96 WHEN + - ( + 97 ) * + 60 THEN COUNT ( * ) - - 64 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT - 48 - SUM( ALL + 90 )
----
-138

skipif mysql # not compatible
query I rowsort label-3693
SELECT - 48 - SUM ( ALL + 90 )
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-3694
SELECT - 45 DIV + - 71 * + - 95 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-3694
SELECT - 45 / + - 71 * + - 95 / + 78
----
0

query I rowsort
SELECT ALL + ( - + 4 ) AS col0
----
-4

query I rowsort
SELECT COALESCE ( 14, 89 ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT ALL - COUNT( * ) * + + 39 + CASE 68 WHEN CASE - 14 WHEN - 38 THEN NULL ELSE + 75 END THEN NULL WHEN - 16 / 87 THEN - 81 END + 84 + + - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL - COUNT ( * ) * + + 39 + CASE 68 WHEN CASE - 14 WHEN - 38 THEN NULL ELSE + 75 END THEN NULL WHEN - 16 / 87 THEN - 81 END + 84 + + - 89
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3698
SELECT DISTINCT + 23 * + 97 + CAST( NULL AS SIGNED ) + + ( - 95 ) - 31 + + - 97 / + - 75 * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT + 23 * + 97 + CAST ( NULL AS INTEGER ) + + ( - 95 ) - 31 + + - 97 / + - 75 * 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT - NULLIF ( 78, + - 57 + - COUNT( * ) ) - - 95 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-3699
SELECT - NULLIF ( 78, + - 57 + - COUNT ( * ) ) - - 95 AS col2
----
17

query I rowsort
SELECT ALL + ( + 63 ) AS col1
----
63

query II rowsort
SELECT ALL + 94 AS col0, + 4 AS col1
----
94
4

query I rowsort
SELECT - 91 * - 36 col0
----
3276

query I rowsort
SELECT ALL 2 * - 71
----
-142

query I rowsort
SELECT DISTINCT - 9 * + + 74
----
-666

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT ALL COUNT( * ) * + 25 + + + 4 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL COUNT ( * ) * + 25 + + + 4 AS col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3706
SELECT - 42 DIV - 25 + - + ( MIN( ALL 29 ) ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-3706
SELECT - 42 / - 25 + - + ( MIN ( ALL 29 ) ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT + COUNT( DISTINCT 98 )
----
1

skipif mysql # not compatible
query I rowsort label-3707
SELECT + COUNT ( DISTINCT 98 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT ALL NULLIF ( - CASE - ( + - 30 ) WHEN COUNT( * ) THEN NULL WHEN + 9 - + 24 + + 1 + + 32 * + 51 THEN - COUNT( * ) + + + COALESCE ( + MAX( DISTINCT - - 48 ), + + 51 + - 58 * + 13 ) ELSE + 76 END, + + 82 * + SUM( + - 35 ) ) * 81 * - 40 + - 60 - + + 95 + - 30 + - - 7 * 43 * - COUNT( + 39 ) * - 11 * + 33 AS col0
----
355318

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL NULLIF ( - CASE - ( + - 30 ) WHEN COUNT ( * ) THEN NULL WHEN + 9 - + 24 + + 1 + + 32 * + 51 THEN - COUNT ( * ) + + + COALESCE ( + MAX ( DISTINCT - - 48 ), + + 51 + - 58 * + 13 ) ELSE + 76 END, + + 82 * + SUM ( + - 35 ) ) * 81 * - 40 + - 60 - + + 95 + - 30 + - - 7 * 43 * - COUNT ( + 39 ) * - 11 * + 33 AS col0
----
355318

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3709
SELECT COALESCE ( 10, + 39 ) * + - 54 - - 41 * - + 33 * - - 12 + - + 70 + ( + CAST( NULL AS DECIMAL ) ) - + ( + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3709
SELECT COALESCE ( 10, + 39 ) * + - 54 - - 41 * - + 33 * - - 12 + - + 70 + ( + CAST ( NULL AS REAL ) ) - + ( + COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 66 * + ( - - 66 )
----
4356

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT 92 * - - 37 * COUNT( * ) + + 1 + - + MIN( DISTINCT - + 61 ) * - - 29
----
5174

skipif mysql # not compatible
query I rowsort label-3711
SELECT 92 * - - 37 * COUNT ( * ) + + 1 + - + MIN ( DISTINCT - + 61 ) * - - 29
----
5174

query I rowsort
SELECT ALL 72 * + 84 + + ( - 54 ) AS col1
----
5994

query I rowsort
SELECT DISTINCT 41 * - 34 - + - 18
----
-1376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3714
SELECT ALL COUNT( * ) DIV + 86 * 88 * - CASE 55 WHEN 22 THEN 40 * + - ( - COALESCE ( - + 57, 97 ) ) ELSE 73 * + ( 40 ) END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL COUNT ( * ) / + 86 * 88 * - CASE 55 WHEN 22 THEN 40 * + - ( - COALESCE ( - + 57, 97 ) ) ELSE 73 * + ( 40 ) END AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3715
SELECT ALL + 54 col0, + 25 * 79 DIV + 6 + + 73
----
54
402

skipif mysql # not compatible
query II rowsort label-3715
SELECT ALL + 54 col0, + 25 * 79 / + 6 + + 73
----
54
402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3716
SELECT + 1 + + COALESCE ( COUNT( * ), SUM( - + CAST( + 62 AS SIGNED ) ) DIV + 40 + 7 )
----
2

skipif mysql # not compatible
query I rowsort label-3716
SELECT + 1 + + COALESCE ( COUNT ( * ), SUM ( - + CAST ( + 62 AS INTEGER ) ) / + 40 + 7 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3717
SELECT + COALESCE ( - - 19, + + 53 + 37 * + 59, CAST( NULL AS SIGNED ) + - 37 - - - 75 )
----
19

skipif mysql # not compatible
query I rowsort label-3717
SELECT + COALESCE ( - - 19, + + 53 + 37 * + 59, CAST ( NULL AS INTEGER ) + - 37 - - - 75 )
----
19

query I rowsort
SELECT + 94 * - 64
----
-6016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3719
SELECT ALL COUNT( * ) DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL COUNT ( * ) / 42
----
0

query I rowsort
SELECT + 65 * - 8 AS col2
----
-520

query I rowsort
SELECT - NULLIF ( + 58, + 39 )
----
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3722
SELECT CAST( NULL AS DECIMAL ) * 51 + 20 * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-3722
SELECT CAST ( NULL AS REAL ) * 51 + 20 * 56
----
NULL

query I rowsort
SELECT DISTINCT 94 - 39
----
55

query I rowsort
SELECT + 64 * NULLIF ( + 21, + 94 ) col2
----
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT - 23 + 93 * - NULLIF ( 45, - COUNT( * ) / - 78 )
----
-4208

skipif mysql # not compatible
query I rowsort label-3725
SELECT - 23 + 93 * - NULLIF ( 45, - COUNT ( * ) / - 78 )
----
-4208

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT ALL 29 * + ( - CASE + COUNT( * ) WHEN - 85 + + ( + 54 ) THEN + 5 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL 29 * + ( - CASE + COUNT ( * ) WHEN - 85 + + ( + 54 ) THEN + 5 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT + 35 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT + 35 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 46 * 11 col1
----
506

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT DISTINCT 58 * - COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT 58 * - COUNT ( * ) AS col2
----
-58

query I rowsort
SELECT + 28 + - 63 AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3731
SELECT DISTINCT COUNT( - CAST( 58 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT COUNT ( - CAST ( 58 AS INTEGER ) )
----
1

query I rowsort
SELECT + 5 + - ( - 98 ) * 56
----
5493

query I rowsort
SELECT DISTINCT NULLIF ( 78, - 18 + + 0 )
----
78

query I rowsort
SELECT - NULLIF ( ( 77 ), 98 )
----
-77

query I rowsort
SELECT ALL 87 + + 98 * 24 AS col0
----
2439

query I rowsort
SELECT - 57 * + 7 AS col0
----
-399

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT + 69 + ( COUNT( * ) - SUM( DISTINCT - 34 ) ) * SUM( DISTINCT + 6 + - 99 ) col0
----
-3186

skipif mysql # not compatible
query I rowsort label-3737
SELECT + 69 + ( COUNT ( * ) - SUM ( DISTINCT - 34 ) ) * SUM ( DISTINCT + 6 + - 99 ) col0
----
-3186

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT DISTINCT COUNT( ALL - 3 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT COUNT ( ALL - 3 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT + 45 + CASE WHEN NULL NOT BETWEEN NULL AND + MAX( ALL 68 ) THEN + 6 * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3739
SELECT + 45 + CASE WHEN NULL NOT BETWEEN NULL AND + MAX ( ALL 68 ) THEN + 6 * COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3740
SELECT - 51 + CAST( + 1 + + 74 AS SIGNED ) DIV - ( 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-3740
SELECT - 51 + CAST ( + 1 + + 74 AS INTEGER ) / - ( 52 )
----
-52

query I rowsort
SELECT ALL + 95 * - 29
----
-2755

onlyif mysql # DIV for integer division: 
query I rowsort label-3742
SELECT + 21 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-3742
SELECT + 21 / + 73
----
0

query I rowsort
SELECT ALL + 86 + 92
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT - COUNT( * ) + - 83 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-3744
SELECT - COUNT ( * ) + - 83 AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3745
SELECT DISTINCT ( - 47 ) / - MIN( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT ( - 47 ) / - MIN ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3746
SELECT ALL 20 DIV 38 + - 5 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL 20 / 38 + - 5 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT 86 * MAX( DISTINCT 98 ) + 5 AS col2
----
8433

skipif mysql # not compatible
query I rowsort label-3747
SELECT 86 * MAX ( DISTINCT 98 ) + 5 AS col2
----
8433

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3748
SELECT DISTINCT - SUM( ALL 82 ) DIV - 79 + - MIN( ALL 16 + + 56 ) * 65 AS col2
----
-4679

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT - SUM ( ALL 82 ) / - 79 + - MIN ( ALL 16 + + 56 ) * 65 AS col2
----
-4679

query I rowsort
SELECT - 67 + 83
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3750
SELECT CAST( + NULLIF ( - COUNT( * ), - COUNT( ALL + 67 ) ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3750
SELECT CAST ( + NULLIF ( - COUNT ( * ), - COUNT ( ALL + 67 ) ) AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3751
SELECT - CAST( - 24 AS SIGNED ) + 78 * 90 AS col0
----
7044

skipif mysql # not compatible
query I rowsort label-3751
SELECT - CAST ( - 24 AS INTEGER ) + 78 * 90 AS col0
----
7044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3752
SELECT ( + ( - CAST( - CASE 20 WHEN COALESCE ( + 20, 44 ) THEN NULL ELSE - 31 END AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3752
SELECT ( + ( - CAST ( - CASE 20 WHEN COALESCE ( + 20, 44 ) THEN NULL ELSE - 31 END AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT 24 * + 17 + 34
----
442

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT DISTINCT + COALESCE ( + MIN( 38 ), - 94 + + 69 * - 20 ) col2
----
38

skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT + COALESCE ( + MIN ( 38 ), - 94 + + 69 * - 20 ) col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ALL 12 * 37 - COUNT( - 40 + - 58 * + 80 )
----
443

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL 12 * 37 - COUNT ( - 40 + - 58 * + 80 )
----
443

query I rowsort
SELECT DISTINCT + NULLIF ( 68, + 76 * - ( + 97 ) )
----
68

query I rowsort
SELECT COALESCE ( + 25, + 80, - 44 )
----
25

query I rowsort
SELECT ALL + 1 * 45 AS col0
----
45

query I rowsort
SELECT - 49 * 67 - 44 * 32 AS col2
----
-4691

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3760
SELECT + 84 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT + 84 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( - 68, 98 ) * - 85 AS col2
----
-5780

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT + - COUNT( * ) + 7 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3762
SELECT + - COUNT ( * ) + 7 AS col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3763
SELECT ALL + ( + 18 ) DIV - MIN( ALL 73 )
----
0

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL + ( + 18 ) / - MIN ( ALL 73 )
----
0

query I rowsort
SELECT + + 63 * 33
----
2079

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3765
SELECT ALL - 81 * 60 + - CAST( 17 AS SIGNED )
----
-4877

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL - 81 * 60 + - CAST ( 17 AS INTEGER )
----
-4877

query I rowsort
SELECT ALL + 25 + - 80
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT SUM( ALL 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-3767
SELECT SUM ( ALL 37 ) AS col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3768
SELECT - 30 DIV 11 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3768
SELECT - 30 / 11 AS col0
----
-2

query I rowsort
SELECT 38 + 43 col1
----
81

query I rowsort
SELECT DISTINCT 70 + + 67
----
137

query I rowsort
SELECT - 44 * 12 AS col2
----
-528

query I rowsort
SELECT DISTINCT - NULLIF ( 61, 38 + 30 / + COALESCE ( - 26, 4, 77 * 92 ) ) * 4
----
-244

query I rowsort
SELECT ALL 97 + + 72 AS col1
----
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3774
SELECT ALL COUNT( * ) + 86 DIV + COALESCE ( NULLIF ( + COALESCE ( + 14, 26, 47 ), - 0 ), - 25 * NULLIF ( 57, ( 56 ) ), 46 * COUNT( * ) )
----
7

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL COUNT ( * ) + 86 / + COALESCE ( NULLIF ( + COALESCE ( + 14, 26, 47 ), - 0 ), - 25 * NULLIF ( 57, ( 56 ) ), 46 * COUNT ( * ) )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL 97 + + + COUNT( * ) * - 3 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL 97 + + + COUNT ( * ) * - 3 AS col2
----
94

query I rowsort
SELECT 36 - + + 79
----
-43

query I rowsort
SELECT 81 * - + 99
----
-8019

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT ALL 26 / + - CASE + 77 WHEN 36 THEN 83 WHEN 22 * COUNT( * ) THEN - 20 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL 26 / + - CASE + 77 WHEN 36 THEN 83 WHEN 22 * COUNT ( * ) THEN - 20 END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3779
SELECT CAST( - - 61 AS SIGNED ) * - ( 18 + 68 )
----
-5246

skipif mysql # not compatible
query I rowsort label-3779
SELECT CAST ( - - 61 AS INTEGER ) * - ( 18 + 68 )
----
-5246

query I rowsort
SELECT DISTINCT + 46 * + - 39 col2
----
-1794

query I rowsort
SELECT 90 - - - 43 AS col2
----
47

query I rowsort
SELECT + 64 * - 95 + 79 AS col2
----
-6001

query I rowsort
SELECT 9 * + 36 AS col0
----
324

onlyif mysql # DIV for integer division: 
query I rowsort label-3784
SELECT 15 DIV + - 50 * 40 col2
----
0

skipif mysql # not compatible
query I rowsort label-3784
SELECT 15 / + - 50 * 40 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3785
SELECT 15 * - MAX( DISTINCT 67 ) + CAST( - 29 AS SIGNED )
----
-1034

skipif mysql # not compatible
query I rowsort label-3785
SELECT 15 * - MAX ( DISTINCT 67 ) + CAST ( - 29 AS INTEGER )
----
-1034

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT DISTINCT - + 38 + - - COUNT( * ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3786
SELECT DISTINCT - + 38 + - - COUNT ( * ) AS col0
----
-37

query I rowsort
SELECT 53 + 75 + - 82 * + 48 AS col2
----
-3808

query I rowsort
SELECT + + ( - 16 ) col0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3789
SELECT - 62 * - COALESCE ( 36, 67 DIV 24 )
----
2232

skipif mysql # not compatible
query I rowsort label-3789
SELECT - 62 * - COALESCE ( 36, 67 / 24 )
----
2232

query I rowsort
SELECT DISTINCT + 96 * - 4 AS col1
----
-384

query I rowsort
SELECT + 4 * - ( - 56 ) * + ( - 26 * 85 ) + + 58 * 61
----
-491502

query I rowsort
SELECT - ( - 34 ) * 68 col2
----
2312

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT ALL + MAX( + 23 ) * + 22 AS col1
----
506

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL + MAX ( + 23 ) * + 22 AS col1
----
506

query I rowsort
SELECT - 28 + - 48
----
-76

query I rowsort
SELECT 53 * + 53 AS col1
----
2809

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT DISTINCT - ( - 65 ) + COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-3796
SELECT DISTINCT - ( - 65 ) + COUNT ( * ) AS col1
----
66

query I rowsort
SELECT DISTINCT - + 83 * 23 AS col1
----
-1909

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3798
SELECT + CAST( + + 39 AS SIGNED ) + + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-3798
SELECT + CAST ( + + 39 AS INTEGER ) + + COUNT ( * )
----
40

query I rowsort
SELECT DISTINCT + 44 + - + 3 col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT + MIN( ALL + 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-3800
SELECT + MIN ( ALL + 15 ) AS col0
----
15

query II rowsort
SELECT ALL 64, 25 AS col1
----
64
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT COUNT( DISTINCT - + 90 ) + - COALESCE ( + 51, 39 ) col1
----
-50

skipif mysql # not compatible
query I rowsort label-3802
SELECT COUNT ( DISTINCT - + 90 ) + - COALESCE ( + 51, 39 ) col1
----
-50

query I rowsort
SELECT 45 + 10
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3804
SELECT 81 - - - 14 DIV - COUNT( - ( 11 ) ) + + 35
----
130

skipif mysql # not compatible
query I rowsort label-3804
SELECT 81 - - - 14 / - COUNT ( - ( 11 ) ) + + 35
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-3805
SELECT DISTINCT 91 DIV - 45 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT 91 / - 45 AS col1
----
-2

query II rowsort
SELECT ALL 75, + 86 AS col0
----
75
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT ( + 0 ) - - 70 * + NULLIF ( - COUNT( * ), - 10 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-3807
SELECT ( + 0 ) - - 70 * + NULLIF ( - COUNT ( * ), - 10 ) AS col0
----
-70

query I rowsort
SELECT 93 * ( + 38 ) AS col2
----
3534

query I rowsort
SELECT ALL 26 * + 39 * + 41 * 53 AS col2
----
2203422

query I rowsort
SELECT DISTINCT 85 * + - 36 AS col1
----
-3060

onlyif mysql # DIV for integer division: 
query I rowsort label-3811
SELECT ALL 43 - + 59 - 74 DIV + 64
----
-17

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL 43 - + 59 - 74 / + 64
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-3812
SELECT 71 DIV + 54
----
1

skipif mysql # not compatible
query I rowsort label-3812
SELECT 71 / + 54
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3813
SELECT DISTINCT - 51 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT - 51 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT ALL COUNT( * ) * + ( + 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL COUNT ( * ) * + ( + 54 ) AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3815
SELECT CASE + COUNT( * ) WHEN CAST( ( + COUNT( * ) ) AS DECIMAL ) THEN NULL ELSE 65 END + - 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT CASE + COUNT ( * ) WHEN CAST ( ( + COUNT ( * ) ) AS REAL ) THEN NULL ELSE 65 END + - 82 AS col0
----
NULL

query II rowsort
SELECT - 40 col1, 30
----
-40
30

query I rowsort
SELECT DISTINCT 49 * - ( + 90 ) * - 57
----
251370

onlyif mysql # aggregate syntax: 
query II rowsort label-3818
SELECT + 50 AS col2, 63 * + 49 + - 77 * - NULLIF ( COUNT( * ) * + 8, ( 62 ) ) AS col2
----
50
3703

skipif mysql # not compatible
query II rowsort label-3818
SELECT + 50 AS col2, 63 * + 49 + - 77 * - NULLIF ( COUNT ( * ) * + 8, ( 62 ) ) AS col2
----
50
3703

query I rowsort
SELECT 18 * - 87 * 16 AS col0
----
-25056

onlyif mysql # aggregate syntax: 
query II rowsort label-3820
SELECT + COUNT( * ) AS col0, - COUNT( * ) + - 43 * 25 AS col1
----
1
-1076

skipif mysql # not compatible
query II rowsort label-3820
SELECT + COUNT ( * ) AS col0, - COUNT ( * ) + - 43 * 25 AS col1
----
1
-1076

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT 61 * - 77 + + - SUM( + 83 )
----
-4780

skipif mysql # not compatible
query I rowsort label-3821
SELECT 61 * - 77 + + - SUM ( + 83 )
----
-4780

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ALL - + COALESCE ( + - COUNT( * ), 15, + 14 )
----
1

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL - + COALESCE ( + - COUNT ( * ), 15, + 14 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3823
SELECT ALL - COUNT( * ) * + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL - COUNT ( * ) * + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3824
SELECT 68 * 93 DIV COALESCE ( + 22, + NULLIF ( CASE ( + COUNT( 42 ) ) WHEN + 7 THEN - NULLIF ( COUNT( * ), 64 ) END, 76 ) ) + 10 * - 97 col0
----
-683

skipif mysql # not compatible
query I rowsort label-3824
SELECT 68 * 93 / COALESCE ( + 22, + NULLIF ( CASE ( + COUNT ( 42 ) ) WHEN + 7 THEN - NULLIF ( COUNT ( * ), 64 ) END, 76 ) ) + 10 * - 97 col0
----
-683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3825
SELECT ALL 7 + - CAST( - 11 AS SIGNED ) * 94
----
1041

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL 7 + - CAST ( - 11 AS INTEGER ) * 94
----
1041

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT SUM( + + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-3826
SELECT SUM ( + + 94 )
----
94

query II rowsort
SELECT + 96, + 81 - - - 88 - - ( 54 ) * + 3 AS col2
----
96
155

query I rowsort
SELECT 3 * 28 + - 15 * + 50 - + 95 AS col1
----
-761

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT - COUNT( ALL - 37 ) * 9 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-3829
SELECT - COUNT ( ALL - 37 ) * 9 AS col1
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-3830
SELECT + 68 AS col2, 31 DIV COALESCE ( + 35, + 16, ( 45 ) * 50 )
----
68
0

skipif mysql # not compatible
query II rowsort label-3830
SELECT + 68 AS col2, 31 / COALESCE ( + 35, + 16, ( 45 ) * 50 )
----
68
0

query I rowsort
SELECT - + 81 + 68 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT ALL + - COUNT( * ) + - ( + - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL + - COUNT ( * ) + - ( + - COUNT ( * ) )
----
0

query I rowsort
SELECT DISTINCT - NULLIF ( + - 75, + 94 ) AS col2
----
75

query I rowsort
SELECT ALL - 51 * + - ( 42 )
----
2142

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT ALL + - COUNT( * ) - NULLIF ( 39, 73 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL + - COUNT ( * ) - NULLIF ( 39, 73 ) AS col1
----
-40

query I rowsort
SELECT - 38 * 41 col0
----
-1558

query I rowsort
SELECT - 44 * - 88 * + 53
----
205216

query I rowsort
SELECT ALL - 64 * 89 * + 37
----
-210752

query I rowsort
SELECT + 38 + ( + - 71 )
----
-33

query I rowsort
SELECT ALL ( + 94 ) AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3841
SELECT DISTINCT NULLIF ( + CAST( + - NULLIF ( + 87, COUNT( * ) * + 77 ) AS SIGNED ), 40 ) col2
----
-87

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT NULLIF ( + CAST ( + - NULLIF ( + 87, COUNT ( * ) * + 77 ) AS INTEGER ), 40 ) col2
----
-87

query I rowsort
SELECT ALL CASE - ( + ( 80 ) ) WHEN 19 + + 12 THEN + 40 ELSE 96 END AS col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3843
SELECT ALL 72 DIV - 42 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL 72 / - 42 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT - COUNT( + - 62 ) - - - 72
----
-73

skipif mysql # not compatible
query I rowsort label-3844
SELECT - COUNT ( + - 62 ) - - - 72
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-3845
SELECT + 31 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-3845
SELECT + 31 / 83
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3846
SELECT ALL 36 DIV + 7 DIV + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL 36 / + 7 / + COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT 2 * + COUNT( * ) + 68 col2
----
70

skipif mysql # not compatible
query I rowsort label-3847
SELECT 2 * + COUNT ( * ) + 68 col2
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-3848
SELECT ALL 30 * 40 col1, + CASE - 72 WHEN 90 THEN NULL WHEN + 26 THEN + CASE + 88 WHEN COUNT( * ) + 58 THEN 19 WHEN - 28 THEN NULL END WHEN - 41 THEN NULL ELSE NULL END * COALESCE ( 82, 35 - + 6 * 77 ) AS col1
----
1200
NULL

skipif mysql # not compatible
query II rowsort label-3848
SELECT ALL 30 * 40 col1, + CASE - 72 WHEN 90 THEN NULL WHEN + 26 THEN + CASE + 88 WHEN COUNT ( * ) + 58 THEN 19 WHEN - 28 THEN NULL END WHEN - 41 THEN NULL ELSE NULL END * COALESCE ( 82, 35 - + 6 * 77 ) AS col1
----
1200
NULL

query I rowsort
SELECT DISTINCT CASE + - 30 WHEN + + 88 * - 30 + 87 THEN NULL WHEN 0 THEN + 7 ELSE NULL END * 98
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3850
SELECT + 95 DIV + 60
----
1

skipif mysql # not compatible
query I rowsort label-3850
SELECT + 95 / + 60
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT ALL 80 * + 13 + + COUNT( * ) + + + 67
----
1108

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL 80 * + 13 + + COUNT ( * ) + + + 67
----
1108

query I rowsort
SELECT + 8 - - 45 AS col2
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3853
SELECT ALL + + COUNT( * ) * - 17 + - - 9 DIV + + 36 * - NULLIF ( + 23, + 36 * 10 - 55 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL + + COUNT ( * ) * - 17 + - - 9 / + + 36 * - NULLIF ( + 23, + 36 * 10 - 55 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT - 54 * 84 + + + COUNT( * )
----
-4535

skipif mysql # not compatible
query I rowsort label-3854
SELECT - 54 * 84 + + + COUNT ( * )
----
-4535

query I rowsort
SELECT + 35 * + 39 AS col2
----
1365

query II rowsort
SELECT + + 32 + + 98 col1, - 47 * 35
----
130
-1645

onlyif mysql # DIV for integer division: 
query I rowsort label-3857
SELECT + + 54 DIV + 55 - - + 13 * + 83
----
1079

skipif mysql # not compatible
query I rowsort label-3857
SELECT + + 54 / + 55 - - + 13 * + 83
----
1079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3858
SELECT 57 * - COUNT( * ) DIV - COUNT( - - 30 ) + + 75 * ( - CASE 51 WHEN - COUNT( * ) * - 79 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE - CASE 34 WHEN 32 * + 36 THEN - 80 WHEN + 59 * 15 THEN NULL ELSE + COUNT( * ) DIV 60 END END ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-3858
SELECT 57 * - COUNT ( * ) / - COUNT ( - - 30 ) + + 75 * ( - CASE 51 WHEN - COUNT ( * ) * - 79 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - CASE 34 WHEN 32 * + 36 THEN - 80 WHEN + 59 * 15 THEN NULL ELSE + COUNT ( * ) / 60 END END ) AS col1
----
57

query I rowsort
SELECT ALL 58 * + + 18 + - - 21
----
1065

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3860
SELECT + COUNT( + CAST( NULL AS DECIMAL ) ) AS col2, + CAST( - 14 AS SIGNED )
----
0
-14

skipif mysql # not compatible
query II rowsort label-3860
SELECT + COUNT ( + CAST ( NULL AS REAL ) ) AS col2, + CAST ( - 14 AS INTEGER )
----
0
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT ALL + - MAX( 86 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL + - MAX ( 86 ) AS col2
----
-86

query I rowsort
SELECT DISTINCT - 13 * + 15
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT ALL - - ( + MIN( ALL + + 80 ) ) * + - 57 AS col2
----
-4560

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL - - ( + MIN ( ALL + + 80 ) ) * + - 57 AS col2
----
-4560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3864
SELECT + ( - ( + - ( + 20 ) ) ) + NULLIF ( COUNT( * ) + - 79, - 20 + - SUM( + NULLIF ( COALESCE ( 44, 92 ), 84 ) ) ) DIV - 85
----
20

skipif mysql # not compatible
query I rowsort label-3864
SELECT + ( - ( + - ( + 20 ) ) ) + NULLIF ( COUNT ( * ) + - 79, - 20 + - SUM ( + NULLIF ( COALESCE ( 44, 92 ), 84 ) ) ) / - 85
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT ALL 7 * + + COUNT( * ) * - + COALESCE ( - - 24, + 70 ) + - 86 col0
----
-254

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL 7 * + + COUNT ( * ) * - + COALESCE ( - - 24, + 70 ) + - 86 col0
----
-254

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT + NULLIF ( 59, + CASE 83 WHEN - ( + 67 ) - ( - 25 ) THEN 71 WHEN NULLIF ( 78, 96 + 2 ) + 96 THEN NULL END / COUNT( * ) ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-3866
SELECT + NULLIF ( 59, + CASE 83 WHEN - ( + 67 ) - ( - 25 ) THEN 71 WHEN NULLIF ( 78, 96 + 2 ) + 96 THEN NULL END / COUNT ( * ) ) AS col2
----
59

query I rowsort
SELECT + 51 + + 49 AS col1
----
100

query I rowsort
SELECT DISTINCT + 52 * + 87 * - COALESCE ( 43, 6 ) AS col1
----
-194532

onlyif mysql # DIV for integer division: 
query I rowsort label-3869
SELECT + ( + - 55 ) DIV + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3869
SELECT + ( + - 55 ) / + 85 AS col2
----
0

query I rowsort
SELECT - - 25 * - 80 col1
----
-2000

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT DISTINCT 9 * + 93 - + + SUM( DISTINCT - 27 ) AS col2
----
864

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT 9 * + 93 - + + SUM ( DISTINCT - 27 ) AS col2
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT + 32 + - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-3872
SELECT + 32 + - COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT - 85 * + MAX( DISTINCT 83 ) AS col2
----
-7055

skipif mysql # not compatible
query I rowsort label-3873
SELECT - 85 * + MAX ( DISTINCT 83 ) AS col2
----
-7055

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3874
SELECT - 2 + + COUNT( * ) * - COUNT( ALL - - 58 ) DIV - COUNT( * ) + 92 * - 54 AS col1
----
-4969

skipif mysql # not compatible
query I rowsort label-3874
SELECT - 2 + + COUNT ( * ) * - COUNT ( ALL - - 58 ) / - COUNT ( * ) + 92 * - 54 AS col1
----
-4969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3875
SELECT - CAST( + COUNT( * ) AS SIGNED ) + + 26 * + 50 * COUNT( * )
----
1299

skipif mysql # not compatible
query I rowsort label-3875
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + + 26 * + 50 * COUNT ( * )
----
1299

query II rowsort
SELECT + ( 69 ) + - 68, 1 AS col1
----
1
1

query I rowsort
SELECT + 49 * 15
----
735

query I rowsort
SELECT - 55 + - + 83 * - 56
----
4593

query I rowsort
SELECT ALL - 34 + + 83 AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3880
SELECT + COUNT( ALL - CAST( NULL AS SIGNED ) ) + + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3880
SELECT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + + - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT - 72 - - + 38 * - 66 + 48
----
-2532

query I rowsort
SELECT ALL ( + ( + 83 ) ) AS col2
----
83

query I rowsort
SELECT DISTINCT + 16 + 67
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3884
SELECT ALL + CAST( + ( + 78 ) AS SIGNED ) + + 50 + + 43 + - NULLIF ( + CAST( MIN( 45 ) AS SIGNED ), - COUNT( * ) ) * 6
----
-99

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL + CAST ( + ( + 78 ) AS INTEGER ) + + 50 + + 43 + - NULLIF ( + CAST ( MIN ( 45 ) AS INTEGER ), - COUNT ( * ) ) * 6
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3885
SELECT - 89 + + + 5 - 81 + + - 22 - COALESCE ( - 36, - ( - 18 ) * - CAST( NULL AS SIGNED ) + + COUNT( * ), COUNT( * ) ) + SUM( DISTINCT 76 ) DIV 80
----
-151

skipif mysql # not compatible
query I rowsort label-3885
SELECT - 89 + + + 5 - 81 + + - 22 - COALESCE ( - 36, - ( - 18 ) * - CAST ( NULL AS INTEGER ) + + COUNT ( * ), COUNT ( * ) ) + SUM ( DISTINCT 76 ) / 80
----
-151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3886
SELECT ALL + + COUNT( * ) DIV 56 + - + 82 - - - 14
----
-96

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL + + COUNT ( * ) / 56 + - + 82 - - - 14
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3887
SELECT + + NULLIF ( - SUM( DISTINCT 9 ), COALESCE ( + - COUNT( * ), - CASE COUNT( * ) WHEN + NULLIF ( COUNT( * ), 9 / 54 ) * 57 THEN NULL WHEN 57 + 78 THEN CASE + 4 WHEN - ( COUNT( * ) ) THEN 89 END + COUNT( ALL 78 ) WHEN CAST( NULL AS SIGNED ) * - 12 THEN NULL ELSE 91 END * + COALESCE ( - CAST( NULL AS DECIMAL ) * 60 - 56, 38 + + CASE 22 + ( 64 ) * - 6 WHEN 96 - 66 * 51 THEN - CAST( NULL AS SIGNED ) WHEN + 82 THEN NULL END ) ) )
----
-9

skipif mysql # not compatible
query I rowsort label-3887
SELECT + + NULLIF ( - SUM ( DISTINCT 9 ), COALESCE ( + - COUNT ( * ), - CASE COUNT ( * ) WHEN + NULLIF ( COUNT ( * ), 9 / 54 ) * 57 THEN NULL WHEN 57 + 78 THEN CASE + 4 WHEN - ( COUNT ( * ) ) THEN 89 END + COUNT ( ALL 78 ) WHEN CAST ( NULL AS INTEGER ) * - 12 THEN NULL ELSE 91 END * + COALESCE ( - CAST ( NULL AS REAL ) * 60 - 56, 38 + + CASE 22 + ( 64 ) * - 6 WHEN 96 - 66 * 51 THEN - CAST ( NULL AS INTEGER ) WHEN + 82 THEN NULL END ) ) )
----
-9

query I rowsort
SELECT DISTINCT - ( + 33 ) col2
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3889
SELECT ALL + + COUNT( * ) + 58 + - - 93 DIV - 24
----
56

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL + + COUNT ( * ) + 58 + - - 93 / - 24
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3890
SELECT CAST( NULL AS SIGNED ) * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT CAST ( NULL AS INTEGER ) * + 14
----
NULL

query I rowsort
SELECT + 28 * CASE + 32 WHEN - ( - 38 ) THEN NULL WHEN 37 THEN NULL ELSE 96 + + 88 END
----
5152

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3892
SELECT + SUM( - 55 ) * + 20 * + ( + + 86 ) + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT + SUM ( - 55 ) * + 20 * + ( + + 86 ) + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - 14 * - - 89 + - + NULLIF ( 64, + + 64 - 20 * + 15 ) col0
----
-1310

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT DISTINCT - MIN( 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT - MIN ( 81 )
----
-81

query II rowsort
SELECT - 95 * - - 9 * 80 AS col0, 16
----
-68400
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT DISTINCT + - MIN( DISTINCT + 3 ) - - - COALESCE ( - - COUNT( * ), - COUNT( * ) * + 30 + COUNT( * ) * 98 ) * - 84 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT + - MIN ( DISTINCT + 3 ) - - - COALESCE ( - - COUNT ( * ), - COUNT ( * ) * + 30 + COUNT ( * ) * 98 ) * - 84 AS col1
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3897
SELECT DISTINCT - 67 - - 76 DIV + + 98, + COUNT( ALL + 80 ) AS col1
----
-67
1

skipif mysql # not compatible
query II rowsort label-3897
SELECT DISTINCT - 67 - - 76 / + + 98, + COUNT ( ALL + 80 ) AS col1
----
-67
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT DISTINCT - - CASE - 34 WHEN + 24 THEN - MAX( ALL - + 48 ) WHEN COUNT( ALL 0 ) THEN NULL WHEN - 58 * - 80 THEN NULL WHEN - 82 + + 42 THEN + 68 ELSE - 33 END * - 71 AS col1
----
2343

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT - - CASE - 34 WHEN + 24 THEN - MAX ( ALL - + 48 ) WHEN COUNT ( ALL 0 ) THEN NULL WHEN - 58 * - 80 THEN NULL WHEN - 82 + + 42 THEN + 68 ELSE - 33 END * - 71 AS col1
----
2343

query I rowsort
SELECT 31 * 28 * - + 64 AS col1
----
-55552

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT - NULLIF ( + - COUNT( * ), 50 ) * + ( COUNT( * ) ) - - MIN( 76 + 67 * + 85 ) * 76
----
438597

skipif mysql # not compatible
query I rowsort label-3900
SELECT - NULLIF ( + - COUNT ( * ), 50 ) * + ( COUNT ( * ) ) - - MIN ( 76 + 67 * + 85 ) * 76
----
438597

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3901
SELECT - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT + ( + NULLIF ( ( 21 ), - MIN( ALL 9 ) ) )
----
21

skipif mysql # not compatible
query I rowsort label-3902
SELECT + ( + NULLIF ( ( 21 ), - MIN ( ALL 9 ) ) )
----
21

query I rowsort
SELECT DISTINCT 62 * ( ( - - ( 25 ) ) )
----
1550

query I rowsort
SELECT ( 54 ) * COALESCE ( 42, + - ( - 67 ) * + 31, + 0 ) + - ( 49 )
----
2219

query I rowsort
SELECT 93 - + 28 + 96 * + 99
----
9569

query II rowsort
SELECT ALL 26, - 6 col2
----
26
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT DISTINCT 26 * + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT 26 * + COUNT ( * )
----
26

query II rowsort
SELECT - 30 AS col2, 85 AS col0
----
-30
85

query II rowsort
SELECT 61 AS col2, - ( - + 78 ) + 50
----
61
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3910
SELECT CASE - 77 WHEN 97 * 7 * 54 * COALESCE ( 9, - 76 ) + + MIN( 36 ) * 88 THEN + 90 + 32 / 93 WHEN 84 THEN CAST( + 6 AS SIGNED ) ELSE NULL END * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3910
SELECT CASE - 77 WHEN 97 * 7 * 54 * COALESCE ( 9, - 76 ) + + MIN ( 36 ) * 88 THEN + 90 + 32 / 93 WHEN 84 THEN CAST ( + 6 AS INTEGER ) ELSE NULL END * 98
----
NULL

query I rowsort
SELECT 83 + - 28
----
55

query I rowsort
SELECT ALL 54 + - - 70 + + + 7 - - - 83 AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3913
SELECT CAST( 57 AS SIGNED ) DIV + 6 + + + COUNT( * ) * - 17 - - COALESCE ( + 54, + 92 * 2, ( 9 ) + - 49 * - 10, + 64 * + 82 ) + ( 22 + ( 68 + 94 ) ) * 26
----
4830

skipif mysql # not compatible
query I rowsort label-3913
SELECT CAST ( 57 AS INTEGER ) / + 6 + + + COUNT ( * ) * - 17 - - COALESCE ( + 54, + 92 * 2, ( 9 ) + - 49 * - 10, + 64 * + 82 ) + ( 22 + ( 68 + 94 ) ) * 26
----
4830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3914
SELECT CAST( NULL AS SIGNED ) * - + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3914
SELECT CAST ( NULL AS INTEGER ) * - + 67
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3915
SELECT DISTINCT + SUM( ALL + - 31 ) DIV + 78 col1
----
0

skipif mysql # not compatible
query I rowsort label-3915
SELECT DISTINCT + SUM ( ALL + - 31 ) / + 78 col1
----
0

query I rowsort
SELECT ALL + 2 + + 53 AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3917
SELECT ALL - CAST( NULL AS SIGNED ) + 57 - + - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL - CAST ( NULL AS INTEGER ) + 57 - + - 20 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT DISTINCT + MAX( 58 ) + + 93 AS col1
----
151

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT + MAX ( 58 ) + + 93 AS col1
----
151

onlyif mysql # aggregate syntax: 
query II rowsort label-3919
SELECT ALL 58 AS col1, NULLIF ( + COUNT( * ), - - 40 ) + + 97 AS col1
----
58
98

skipif mysql # not compatible
query II rowsort label-3919
SELECT ALL 58 AS col1, NULLIF ( + COUNT ( * ), - - 40 ) + + 97 AS col1
----
58
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT + 29 + - MAX( - 2 ) + 75 + + + 8 * - 32 - + 34
----
-184

skipif mysql # not compatible
query I rowsort label-3920
SELECT + 29 + - MAX ( - 2 ) + 75 + + + 8 * - 32 - + 34
----
-184

query I rowsort
SELECT - ( 47 ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-3922
SELECT ALL COUNT( * ) col2, + ( - CASE + 59 WHEN - - COUNT( * ) + 99 THEN COUNT( * ) WHEN + 37 THEN NULL WHEN 83 * + ( - 55 / - 51 ) THEN NULL END ) * + 98 - + 50 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3922
SELECT ALL COUNT ( * ) col2, + ( - CASE + 59 WHEN - - COUNT ( * ) + 99 THEN COUNT ( * ) WHEN + 37 THEN NULL WHEN 83 * + ( - 55 / - 51 ) THEN NULL END ) * + 98 - + 50 AS col0
----
1
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3923
SELECT 7 + - 60 + 4 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT 7 + - 60 + 4 * CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT - + 51, + 17 AS col1
----
-51
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT 53 + + MAX( DISTINCT - 5 ) * - 98 + + 50 AS col0
----
593

skipif mysql # not compatible
query I rowsort label-3925
SELECT 53 + + MAX ( DISTINCT - 5 ) * - 98 + + 50 AS col0
----
593

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT 97 * 38 + - COUNT( * ) AS col0
----
3685

skipif mysql # not compatible
query I rowsort label-3926
SELECT 97 * 38 + - COUNT ( * ) AS col0
----
3685

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT ALL + SUM( ALL - - 72 ) * + + 83
----
5976

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL + SUM ( ALL - - 72 ) * + + 83
----
5976

query I rowsort
SELECT DISTINCT - 68 * ( + 78 )
----
-5304

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT + MAX( DISTINCT + COALESCE ( + + 4, 42 + - + 16 ) )
----
4

skipif mysql # not compatible
query I rowsort label-3929
SELECT + MAX ( DISTINCT + COALESCE ( + + 4, 42 + - + 16 ) )
----
4

query II rowsort
SELECT + 20 AS col2, 50 col2
----
20
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3931
SELECT DISTINCT - - MAX( DISTINCT + 5 ), CASE - - 95 WHEN - 83 DIV + + 95 * - COUNT( * ) THEN NULL ELSE - 42 DIV + 14 END AS col0
----
5
-3

skipif mysql # not compatible
query II rowsort label-3931
SELECT DISTINCT - - MAX ( DISTINCT + 5 ), CASE - - 95 WHEN - 83 / + + 95 * - COUNT ( * ) THEN NULL ELSE - 42 / + 14 END AS col0
----
5
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT - ( - + 56 ) * + - NULLIF ( + 57, - COUNT( * ) )
----
-3192

skipif mysql # not compatible
query I rowsort label-3932
SELECT - ( - + 56 ) * + - NULLIF ( + 57, - COUNT ( * ) )
----
-3192

query I rowsort
SELECT ALL - + ( - 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT 2 + 72 * - COUNT( * ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-3934
SELECT 2 + 72 * - COUNT ( * ) AS col2
----
-70

query II rowsort
SELECT + 43, - 40 * 28 * + 87 AS col1
----
43
-97440

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3936
SELECT - AVG ( + NULLIF ( + 83, - + 26 + - 91 ) ) + - CAST( NULL AS DECIMAL ) / 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT - AVG ( + NULLIF ( + 83, - + 26 + - 91 ) ) + - CAST ( NULL AS REAL ) / 45
----
NULL

query I rowsort
SELECT 91 - - 43
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT ALL - - 99 * + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL - - 99 * + COUNT ( * )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3939
SELECT 25 * 43 DIV + 83
----
12

skipif mysql # not compatible
query I rowsort label-3939
SELECT 25 * 43 / + 83
----
12

query I rowsort
SELECT ALL 21 * ( 12 ) col1
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT DISTINCT - NULLIF ( 98, - - COUNT( * ) * 5 )
----
-98

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT - NULLIF ( 98, - - COUNT ( * ) * 5 )
----
-98

query II rowsort
SELECT ALL - 6 * - 33 col1, + 5 AS col1
----
198
5

query II rowsort
SELECT 90 * 15, 40 AS col1
----
1350
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3944
SELECT SUM( DISTINCT + 57 ) + + + COUNT( * ) DIV - - 56
----
57

skipif mysql # not compatible
query I rowsort label-3944
SELECT SUM ( DISTINCT + 57 ) + + + COUNT ( * ) / - - 56
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3945
SELECT 80 + 64 + + + COUNT( * ) + + 86 / - 51 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3945
SELECT 80 + 64 + + + COUNT ( * ) + + 86 / - 51 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT + COUNT( * ) * - 16 + - - 8 + - 4
----
-12

skipif mysql # not compatible
query I rowsort label-3946
SELECT + COUNT ( * ) * - 16 + - - 8 + - 4
----
-12

query I rowsort
SELECT ( + - 87 ) * + 93 AS col0
----
-8091

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT ALL - 70 + COALESCE ( - 85, - 85 ) * - + 13 * - COUNT( * ) * + 93 AS col2
----
-102835

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL - 70 + COALESCE ( - 85, - 85 ) * - + 13 * - COUNT ( * ) * + 93 AS col2
----
-102835

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT DISTINCT + COUNT( * ) + 33 + + 67 * 7 AS col1
----
503

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT + COUNT ( * ) + 33 + + 67 * 7 AS col1
----
503

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3950
SELECT ALL CAST( NULL AS DECIMAL ) + - 31 col0, + ( - 26 ) + + 56 AS col1
----
NULL
30

skipif mysql # not compatible
query II rowsort label-3950
SELECT ALL CAST ( NULL AS REAL ) + - 31 col0, + ( - 26 ) + + 56 AS col1
----
NULL
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3951
SELECT ( - + 55 ) + 87 + ( + 95 ) DIV + 41 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-3951
SELECT ( - + 55 ) + 87 + ( + 95 ) / + 41 AS col2
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3952
SELECT DISTINCT COALESCE ( COUNT( * ), - COALESCE ( 57, - + 11 ) * 4 ) + - - 67 DIV - NULLIF ( 42, 52 )
----
0

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT COALESCE ( COUNT ( * ), - COALESCE ( 57, - + 11 ) * 4 ) + - - 67 / - NULLIF ( 42, 52 )
----
0

query II rowsort
SELECT + 65 + - 28, + 30 + - 76 + ( + 5 ) * - - 76 AS col1
----
37
334

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT + 77 * - NULLIF ( - 86, + 46 + SUM( + + 27 ) - - 12 + + 57 )
----
6622

skipif mysql # not compatible
query I rowsort label-3954
SELECT + 77 * - NULLIF ( - 86, + 46 + SUM ( + + 27 ) - - 12 + + 57 )
----
6622

query I rowsort
SELECT + 42 + + 80
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT + MAX( + 71 ) + 50 * 60 * + MIN( + 13 ) AS col1
----
39071

skipif mysql # not compatible
query I rowsort label-3956
SELECT + MAX ( + 71 ) + 50 * 60 * + MIN ( + 13 ) AS col1
----
39071

query I rowsort
SELECT + 1 * + 99 + - 38 * - 23 + + - 37
----
936

onlyif mysql # DIV for integer division: 
query I rowsort label-3958
SELECT ALL - - 51 DIV + 56 + - ( 80 ) DIV - 10 + + + 22
----
30

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL - - 51 / + 56 + - ( 80 ) / - 10 + + + 22
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT + + MIN( DISTINCT - - 43 ) + + - 48 + + 59 col1
----
54

skipif mysql # not compatible
query I rowsort label-3959
SELECT + + MIN ( DISTINCT - - 43 ) + + - 48 + + 59 col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3960
SELECT + - CAST( - + 15 AS SIGNED ) + 69
----
84

skipif mysql # not compatible
query I rowsort label-3960
SELECT + - CAST ( - + 15 AS INTEGER ) + 69
----
84

query I rowsort
SELECT DISTINCT + - ( 19 ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT NULLIF ( COUNT( * ), 85 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3962
SELECT NULLIF ( COUNT ( * ), 85 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3963
SELECT ALL + + 47 * - CAST( - - 83 AS SIGNED ) col2
----
-3901

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL + + 47 * - CAST ( - - 83 AS INTEGER ) col2
----
-3901

query I rowsort
SELECT DISTINCT + - 96 * - + 99 + + + 41 AS col1
----
9545

query I rowsort
SELECT ALL + 63 * + - 57 AS col0
----
-3591

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT - ( CASE - + 2 WHEN - 47 THEN - + 81 ELSE + COUNT( * ) + - + 24 END ) col0
----
23

skipif mysql # not compatible
query I rowsort label-3966
SELECT - ( CASE - + 2 WHEN - 47 THEN - + 81 ELSE + COUNT ( * ) + - + 24 END ) col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT ALL - ( - COUNT( * ) ) * + 84 + + 12 + + 62
----
158

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL - ( - COUNT ( * ) ) * + 84 + + 12 + + 62
----
158

query I rowsort
SELECT - 62 * 4
----
-248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3969
SELECT CASE + 27 WHEN - COUNT( * ) * - CASE 6 WHEN + 97 THEN NULL ELSE - ( COUNT( * ) ) * + 48 END + + CAST( NULL AS SIGNED ) * + 4 THEN NULL WHEN COUNT( * ) THEN COUNT( * ) + 7 * + 59 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT CASE + 27 WHEN - COUNT ( * ) * - CASE 6 WHEN + 97 THEN NULL ELSE - ( COUNT ( * ) ) * + 48 END + + CAST ( NULL AS INTEGER ) * + 4 THEN NULL WHEN COUNT ( * ) THEN COUNT ( * ) + 7 * + 59 ELSE NULL END col2
----
NULL

query II rowsort
SELECT + 70, 54 AS col2
----
70
54

query I rowsort
SELECT COALESCE ( + - 60, + + 81, - - 44 )
----
-60

query I rowsort
SELECT 47 * + 27 * 6 - 69 AS col0
----
7545

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT ALL - 75 DIV - + ( + + ( - - 11 ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL - 75 / - + ( + + ( - - 11 ) ) AS col1
----
6

query I rowsort
SELECT - 49 + - 19 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT + MAX( - + 62 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-3975
SELECT + MAX ( - + 62 ) AS col1
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-3976
SELECT - 13 DIV + 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3976
SELECT - 13 / + 76 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3977
SELECT 85 * + + COUNT( * ) - 23, - COUNT( * ) + + 19 AS col1
----
62
18

skipif mysql # not compatible
query II rowsort label-3977
SELECT 85 * + + COUNT ( * ) - 23, - COUNT ( * ) + + 19 AS col1
----
62
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL + 85 - - + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL + 85 - - + COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT - NULLIF ( - CASE - - 96 WHEN NULLIF ( + 12, 40 ) THEN + 25 WHEN + + ( 21 ) + + 49 THEN NULL ELSE NULL END, - ( - COUNT( 15 ) ) - - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT - NULLIF ( - CASE - - 96 WHEN NULLIF ( + 12, 40 ) THEN + 25 WHEN + + ( 21 ) + + 49 THEN NULL ELSE NULL END, - ( - COUNT ( 15 ) ) - - 70 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3980
SELECT + 59 * CAST( NULL AS SIGNED ) / - + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3980
SELECT + 59 * CAST ( NULL AS INTEGER ) / - + 15
----
NULL

query II rowsort
SELECT 67 AS col1, - 53
----
67
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT ALL - CASE - 84 WHEN ( - ( + COUNT( * ) ) ) * - 65 * + MAX( ALL + 3 ) THEN - COUNT( * ) END * - ( 1 * COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL - CASE - 84 WHEN ( - ( + COUNT ( * ) ) ) * - 65 * + MAX ( ALL + 3 ) THEN - COUNT ( * ) END * - ( 1 * COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL MAX( DISTINCT + + 71 ) col1
----
71

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL MAX ( DISTINCT + + 71 ) col1
----
71

query I rowsort
SELECT + ( 12 ) - - 98 AS col0
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3985
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COALESCE ( + 40, + COUNT( * ) ) + + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COALESCE ( + 40, + COUNT ( * ) ) + + 44
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3986
SELECT ALL + CAST( 11 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL + CAST ( 11 AS INTEGER )
----
11

query I rowsort
SELECT DISTINCT ( - + 47 )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3988
SELECT - 14 DIV + + MIN( ALL - ( 85 ) ) DIV 1 + + 28 - - 96 DIV - 38
----
26

skipif mysql # not compatible
query I rowsort label-3988
SELECT - 14 / + + MIN ( ALL - ( 85 ) ) / 1 + + 28 - - 96 / - 38
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3989
SELECT - - 6 AS col2, + ( ( COUNT( * ) ) ) * + COUNT( * ) AS col0
----
6
1

skipif mysql # not compatible
query II rowsort label-3989
SELECT - - 6 AS col2, + ( ( COUNT ( * ) ) ) * + COUNT ( * ) AS col0
----
6
1

query I rowsort
SELECT - + 22 + + 45 AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3991
SELECT + COALESCE ( - 42, 67 DIV CASE CASE + + 53 WHEN + COUNT( ALL - 32 ) THEN 48 DIV + CASE + 54 WHEN ( 33 ) * 59 THEN + 27 * - 26 + - COALESCE ( + CASE + 15 WHEN + CASE WHEN ( - 65 ) IS NOT NULL THEN 45 END THEN NULL WHEN COUNT( * ) THEN NULL ELSE - COUNT( * ) END, + 52 DIV 85 + 12 ) END ELSE NULL END WHEN 40 + 94 THEN NULL ELSE 68 END ) * 72 AS col1
----
-3024

skipif mysql # not compatible
query I rowsort label-3991
SELECT + COALESCE ( - 42, 67 / CASE CASE + + 53 WHEN + COUNT ( ALL - 32 ) THEN 48 / + CASE + 54 WHEN ( 33 ) * 59 THEN + 27 * - 26 + - COALESCE ( + CASE + 15 WHEN + CASE WHEN ( - 65 ) IS NOT NULL THEN 45 END THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - COUNT ( * ) END, + 52 / 85 + 12 ) END ELSE NULL END WHEN 40 + 94 THEN NULL ELSE 68 END ) * 72 AS col1
----
-3024

query I rowsort
SELECT + - 47 + + - 68 AS col2
----
-115

query I rowsort
SELECT DISTINCT - 8 * + 43 * - + 80 + 68 col2
----
27588

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT DISTINCT + COUNT( * ) * + + 13 + - 61 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT + COUNT ( * ) * + + 13 + - 61 AS col1
----
-48

query I rowsort
SELECT + 90 + - 54 - 84 * ( 40 ) AS col1
----
-3324

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3996
SELECT DISTINCT + 85 DIV - COUNT( * ) + + 9 AS col2, + 93 * + 65 AS col0
----
-76
6045

skipif mysql # not compatible
query II rowsort label-3996
SELECT DISTINCT + 85 / - COUNT ( * ) + + 9 AS col2, + 93 * + 65 AS col0
----
-76
6045

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT DISTINCT + 49 / + + COUNT( * ) * + 42 * - - CASE WHEN NOT ( NULL ) >= + + CASE 32 WHEN COUNT( * ) THEN NULL WHEN - 14 THEN + AVG ( DISTINCT 93 ) END THEN 82 ELSE NULL END * 37 + 31 * + MAX( + 60 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT + 49 / + + COUNT ( * ) * + 42 * - - CASE WHEN NOT ( NULL ) >= + + CASE 32 WHEN COUNT ( * ) THEN NULL WHEN - 14 THEN + AVG ( DISTINCT 93 ) END THEN 82 ELSE NULL END * 37 + 31 * + MAX ( + 60 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3998
SELECT 51 * + 54 + + 58 * - COUNT( * ) DIV - COALESCE ( + COUNT( * ), 41 ) + COUNT( * ) + 47
----
2860

skipif mysql # not compatible
query I rowsort label-3998
SELECT 51 * + 54 + + 58 * - COUNT ( * ) / - COALESCE ( + COUNT ( * ), 41 ) + COUNT ( * ) + 47
----
2860

onlyif mysql # DIV for integer division: 
query I rowsort label-3999
SELECT ALL 37 DIV 84 + - 53 * - - 95 AS col1
----
-5035

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL 37 / 84 + - 53 * - - 95 AS col1
----
-5035

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT + NULLIF ( - - SUM( 94 ), + + 98 ) + + 70 * - - 18 col1
----
1354

skipif mysql # not compatible
query I rowsort label-4000
SELECT + NULLIF ( - - SUM ( 94 ), + + 98 ) + + 70 * - - 18 col1
----
1354

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT ALL + MAX( 8 )
----
8

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL + MAX ( 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT ( + + MIN( + 63 ) )
----
63

skipif mysql # not compatible
query I rowsort label-4002
SELECT ( + + MIN ( + 63 ) )
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4003
SELECT DISTINCT - 85 * - - CASE - + 13 WHEN + ( 34 ) THEN NULL ELSE - 30 END + + MIN( ALL + - 79 ) DIV 35
----
2548

skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT - 85 * - - CASE - + 13 WHEN + ( 34 ) THEN NULL ELSE - 30 END + + MIN ( ALL + - 79 ) / 35
----
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT DISTINCT + MAX( + 95 ) col2
----
95

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT + MAX ( + 95 ) col2
----
95

query I rowsort
SELECT DISTINCT 96 - - + 46 * - 15 + + 43 + 73 * + 80
----
5289

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4006
SELECT CAST( NULL AS DECIMAL ) + - COUNT( * ) * + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4006
SELECT CAST ( NULL AS REAL ) + - COUNT ( * ) * + - 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT 8 * - 66 + + 70 * - - 6 * - - NULLIF ( - COUNT( + 91 ), 67 + 20 )
----
-948

skipif mysql # not compatible
query I rowsort label-4007
SELECT 8 * - 66 + + 70 * - - 6 * - - NULLIF ( - COUNT ( + 91 ), 67 + 20 )
----
-948

query I rowsort
SELECT 50 - + + 24 * + 21 AS col1
----
-454

query I rowsort
SELECT 24 + + 51
----
75

query I rowsort
SELECT 33 * 33
----
1089

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL + 8 * MAX( ALL + 13 ) * - - 97 * + + 1
----
10088

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL + 8 * MAX ( ALL + 13 ) * - - 97 * + + 1
----
10088

query I rowsort
SELECT 40 + + 27 col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4013
SELECT DISTINCT + + 43 DIV + 38 - 57 - - NULLIF ( + 7, + - 72 ) * - - CAST( + 74 AS SIGNED ) - - COALESCE ( + COUNT( * ), + 93 ) * - 27 AS col0
----
435

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT + + 43 / + 38 - 57 - - NULLIF ( + 7, + - 72 ) * - - CAST ( + 74 AS INTEGER ) - - COALESCE ( + COUNT ( * ), + 93 ) * - 27 AS col0
----
435

query I rowsort
SELECT 82 + + + 59 AS col1
----
141

onlyif mysql # DIV for integer division: 
query II rowsort label-4015
SELECT - 50 DIV - - 1 col1, - 11 + - 74 + + + ( - - ( + 4 ) ) AS col1
----
-50
-81

skipif mysql # not compatible
query II rowsort label-4015
SELECT - 50 / - - 1 col1, - 11 + - 74 + + + ( - - ( + 4 ) ) AS col1
----
-50
-81

query I rowsort
SELECT 28 + - 88
----
-60

query I rowsort
SELECT ALL + + 67 * + 27
----
1809

query II rowsort
SELECT ( - + 12 ) AS col1, 45
----
-12
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT COUNT( * ) * - COUNT( * ) + + - 11 + - 74 col2
----
-86

skipif mysql # not compatible
query I rowsort label-4019
SELECT COUNT ( * ) * - COUNT ( * ) + + - 11 + - 74 col2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-4020
SELECT + 72 + ( 60 ) + - 32 * - 45 - - + 46 + 57 DIV - 65
----
1618

skipif mysql # not compatible
query I rowsort label-4020
SELECT + 72 + ( 60 ) + - 32 * - 45 - - + 46 + 57 / - 65
----
1618

query I rowsort
SELECT DISTINCT - - 63 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL - COUNT( * ) + - + 64
----
-65

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL - COUNT ( * ) + - + 64
----
-65

query I rowsort
SELECT ALL 19 + + + ( - - 4 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT + + COUNT( COALESCE ( - ( - - 81 ), - - 28 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4024
SELECT + + COUNT ( COALESCE ( - ( - - 81 ), - - 28 ) )
----
1

query I rowsort
SELECT ALL + 84 + - - ( - 62 )
----
22

query I rowsort
SELECT ALL 91 - + 29
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4027
SELECT ALL ( + ( - - SUM( 22 ) ) ) DIV 74 AS col0, 45 * - 82
----
0
-3690

skipif mysql # not compatible
query II rowsort label-4027
SELECT ALL ( + ( - - SUM ( 22 ) ) ) / 74 AS col0, 45 * - 82
----
0
-3690

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ( - 44 ) + + - 26 * 85 * 6 * - COUNT( * ) + - 32 col1
----
13184

skipif mysql # not compatible
query I rowsort label-4028
SELECT ( - 44 ) + + - 26 * 85 * 6 * - COUNT ( * ) + - 32 col1
----
13184

query I rowsort
SELECT ALL 55 - + - 5 * + 35 AS col2
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT 21 * + + COUNT( * ) + + + 84
----
105

skipif mysql # not compatible
query I rowsort label-4030
SELECT 21 * + + COUNT ( * ) + + + 84
----
105

query I rowsort
SELECT 53 * - 71
----
-3763

query I rowsort
SELECT 59 + 51 AS col1
----
110

query I rowsort
SELECT ALL + 22 * - 82
----
-1804

onlyif mysql # DIV for integer division: 
query I rowsort label-4034
SELECT COALESCE ( - 8, - 89, - 26 DIV + - ( 55 ) DIV 26 ) * - - 64 AS col0
----
-512

skipif mysql # not compatible
query I rowsort label-4034
SELECT COALESCE ( - 8, - 89, - 26 / + - ( 55 ) / 26 ) * - - 64 AS col0
----
-512

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4035
SELECT ALL - 2 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL - 2 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 56 * - + 60 AS col0
----
-3360

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4037
SELECT - CAST( NULL AS DECIMAL ) * 8 / - 90 * 69 * + - SUM( ALL + 47 ) - - 39 - + 10 col0, + 67 AS col1
----
NULL
67

skipif mysql # not compatible
query II rowsort label-4037
SELECT - CAST ( NULL AS REAL ) * 8 / - 90 * 69 * + - SUM ( ALL + 47 ) - - 39 - + 10 col0, + 67 AS col1
----
NULL
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4038
SELECT ALL - 11 + - 80 + COUNT( * ) col2, + 25 AS col1
----
-90
25

skipif mysql # not compatible
query II rowsort label-4038
SELECT ALL - 11 + - 80 + COUNT ( * ) col2, + 25 AS col1
----
-90
25

query I rowsort
SELECT - 23 * 98
----
-2254

query I rowsort
SELECT ALL + 19 + + - 20 + + + 98 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT - 36 * + - COALESCE ( + + 61, + COUNT( * ), 71 * - CASE - 96 WHEN + - MAX( - + ( 63 ) ) THEN 24 + 63 WHEN 66 + + 24 THEN NULL WHEN 82 THEN 84 ELSE NULL END + 69 ) * - ( NULLIF ( 79, 72 ) ) AS col0
----
-173484

skipif mysql # not compatible
query I rowsort label-4041
SELECT - 36 * + - COALESCE ( + + 61, + COUNT ( * ), 71 * - CASE - 96 WHEN + - MAX ( - + ( 63 ) ) THEN 24 + 63 WHEN 66 + + 24 THEN NULL WHEN 82 THEN 84 ELSE NULL END + 69 ) * - ( NULLIF ( 79, 72 ) ) AS col0
----
-173484

onlyif mysql # DIV for integer division: 
query I rowsort label-4042
SELECT + ( - 19 ) - + 19 DIV + 73 * + 22
----
-19

skipif mysql # not compatible
query I rowsort label-4042
SELECT + ( - 19 ) - + 19 / + 73 * + 22
----
-19

query I rowsort
SELECT DISTINCT - 17 + 73
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT ALL + 59 + - 30 + - 14 * + + COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL + 59 + - 30 + - 14 * + + COUNT ( * ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT + ( + 93 ) * + COUNT( * ) * 11 AS col2
----
1023

skipif mysql # not compatible
query I rowsort label-4045
SELECT + ( + 93 ) * + COUNT ( * ) * 11 AS col2
----
1023

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4046
SELECT 25 + - - 97 + + 75 * + - CASE - - NULLIF ( 71, - + 61 + - ( - 40 ) DIV + + 93 * + 12 ) WHEN + COUNT( * ) * - 56 THEN CAST( NULL AS SIGNED ) WHEN 25 THEN NULL ELSE + MIN( - 77 ) DIV + COALESCE ( SUM( 83 ), 67 ) END AS col1
----
122

skipif mysql # not compatible
query I rowsort label-4046
SELECT 25 + - - 97 + + 75 * + - CASE - - NULLIF ( 71, - + 61 + - ( - 40 ) / + + 93 * + 12 ) WHEN + COUNT ( * ) * - 56 THEN CAST ( NULL AS INTEGER ) WHEN 25 THEN NULL ELSE + MIN ( - 77 ) / + COALESCE ( SUM ( 83 ), 67 ) END AS col1
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4047
SELECT - ( + 84 ) + + - COUNT( * ) - - + CAST( - - 48 AS SIGNED ) + 49
----
12

skipif mysql # not compatible
query I rowsort label-4047
SELECT - ( + 84 ) + + - COUNT ( * ) - - + CAST ( - - 48 AS INTEGER ) + 49
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT 14 - + - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-4048
SELECT 14 - + - COUNT ( * )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4049
SELECT ALL - 35, + MAX( DISTINCT - + 82 ) * - CASE - + 9 WHEN 36 THEN - - 19 END AS col0
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-4049
SELECT ALL - 35, + MAX ( DISTINCT - + 82 ) * - CASE - + 9 WHEN 36 THEN - - 19 END AS col0
----
-35
NULL

query I rowsort
SELECT ALL - COALESCE ( + 16, + 48 ) AS col0
----
-16

query II rowsort
SELECT ALL - 80, 34 col0
----
-80
34

query I rowsort
SELECT DISTINCT - CASE 26 WHEN 93 THEN 1 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + 54 AS col2, + 91 * + + 51 AS col1
----
54
4641

query I rowsort
SELECT ALL + NULLIF ( - - ( - 42 ), + + ( - 72 ) ) * + 88 - - + NULLIF ( + - 3, - 57 ) + 82 AS col1
----
-3617

query I rowsort
SELECT + 67 * - + 2
----
-134

onlyif mysql # DIV for integer division: 
query I rowsort label-4056
SELECT 26 * + 97 + - 39 DIV - 63 + + + 72
----
2594

skipif mysql # not compatible
query I rowsort label-4056
SELECT 26 * + 97 + - 39 / - 63 + + + 72
----
2594

query I rowsort
SELECT ALL ( + 77 ) * - 7
----
-539

query I rowsort
SELECT - 31 * - - NULLIF ( 82, + ( 67 ) * ( ( + 38 ) ) + + 74 ) AS col0
----
-2542

onlyif mysql # aggregate syntax: 
query II rowsort label-4059
SELECT DISTINCT + COUNT( * ) * - 52, 48 AS col2
----
-52
48

skipif mysql # not compatible
query II rowsort label-4059
SELECT DISTINCT + COUNT ( * ) * - 52, 48 AS col2
----
-52
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4060
SELECT ALL + 14 col0, - MIN( DISTINCT 47 )
----
14
-47

skipif mysql # not compatible
query II rowsort label-4060
SELECT ALL + 14 col0, - MIN ( DISTINCT 47 )
----
14
-47

query I rowsort
SELECT + 59 + + 54 * 22 + + ( - - 49 ) AS col2
----
1296

query II rowsort
SELECT ALL + 88 AS col1, - 14 + - 71 AS col0
----
88
-85

query II rowsort
SELECT + 56, 3 AS col0
----
56
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT ALL 24 + - + COUNT( * ) + + 93
----
116

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL 24 + - + COUNT ( * ) + + 93
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4065
SELECT + - COALESCE ( - - COUNT( * ), CAST( + - 26 AS SIGNED ) ) - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4065
SELECT + - COALESCE ( - - COUNT ( * ), CAST ( + - 26 AS INTEGER ) ) - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT + COUNT( * ) + MAX( ALL - 41 )
----
-40

skipif mysql # not compatible
query I rowsort label-4066
SELECT + COUNT ( * ) + MAX ( ALL - 41 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT ALL + COUNT( * ) + 0 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL + COUNT ( * ) + 0 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4068
SELECT ALL CAST( 13 AS SIGNED ) * - - 7
----
91

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL CAST ( 13 AS INTEGER ) * - - 7
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4069
SELECT DISTINCT + COUNT( + 97 ) * + COALESCE ( - 69, 14 * - CAST( + COUNT( * ) AS SIGNED ) - - + SUM( CASE - ( + 91 ) WHEN ( 44 ) + - 81 THEN 90 END ) ) + - 48 * 48
----
-2373

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT + COUNT ( + 97 ) * + COALESCE ( - 69, 14 * - CAST ( + COUNT ( * ) AS INTEGER ) - - + SUM ( CASE - ( + 91 ) WHEN ( 44 ) + - 81 THEN 90 END ) ) + - 48 * 48
----
-2373

query I rowsort
SELECT + + 93 + - - 31 + 94 * + 29 AS col0
----
2850

query I rowsort
SELECT ALL - 29 * NULLIF ( - 64, - 63 )
----
1856

onlyif mysql # aggregate syntax: 
query II rowsort label-4072
SELECT DISTINCT + COUNT( * ), 73 AS col1
----
1
73

skipif mysql # not compatible
query II rowsort label-4072
SELECT DISTINCT + COUNT ( * ), 73 AS col1
----
1
73

query II rowsort
SELECT 44, + 66 AS col2
----
44
66

query II rowsort
SELECT - 25 col1, + ( + 54 ) AS col2
----
-25
54

query II rowsort
SELECT ALL 36 AS col1, + 57
----
36
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4076
SELECT + 23 DIV - + 78 + 7 col2
----
7

skipif mysql # not compatible
query I rowsort label-4076
SELECT + 23 / - + 78 + 7 col2
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4077
SELECT - 97 AS col1, COUNT( * ) * + + 49 + - MAX( 66 ) AS col2
----
-97
-17

skipif mysql # not compatible
query II rowsort label-4077
SELECT - 97 AS col1, COUNT ( * ) * + + 49 + - MAX ( 66 ) AS col2
----
-97
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4078
SELECT ALL + CASE + - 64 WHEN 47 * + COUNT( * ) * ( + - 99 ) + NULLIF ( - 48, + 15 + - 72 + - 60 + + COUNT( * ) * 24 * + CAST( 36 AS SIGNED ) * 43 ) + 12 * + 26 + COUNT( * ) * 56 THEN NULL WHEN CAST( COUNT( * ) AS SIGNED ) THEN + COUNT( * ) * 30 END - + 67 * 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL + CASE + - 64 WHEN 47 * + COUNT ( * ) * ( + - 99 ) + NULLIF ( - 48, + 15 + - 72 + - 60 + + COUNT ( * ) * 24 * + CAST ( 36 AS INTEGER ) * 43 ) + 12 * + 26 + COUNT ( * ) * 56 THEN NULL WHEN CAST ( COUNT ( * ) AS INTEGER ) THEN + COUNT ( * ) * 30 END - + 67 * 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4079
SELECT - COUNT( * ), 55 + 70 AS col0
----
-1
125

skipif mysql # not compatible
query II rowsort label-4079
SELECT - COUNT ( * ), 55 + 70 AS col0
----
-1
125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4080
SELECT CAST( NULL AS SIGNED ) AS col1, CAST( + - ( - 4 ) AS SIGNED )
----
NULL
4

skipif mysql # not compatible
query II rowsort label-4080
SELECT CAST ( NULL AS INTEGER ) AS col1, CAST ( + - ( - 4 ) AS INTEGER )
----
NULL
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT DISTINCT 44 - + COUNT( + 30 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT 44 - + COUNT ( + 30 ) AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4082
SELECT DISTINCT - 11 * 37 DIV - 39 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT - 11 * 37 / - 39 AS col2
----
10

onlyif mysql # DIV for integer division: 
query III rowsort label-4083
SELECT DISTINCT 20 DIV - 58 AS col2, 85 AS col1, + 73
----
0
85
73

skipif mysql # not compatible
query III rowsort label-4083
SELECT DISTINCT 20 / - 58 AS col2, 85 AS col1, + 73
----
0
85
73

query I rowsort
SELECT + 44 * + - 72
----
-3168

onlyif mysql # DIV for integer division: 
query II rowsort label-4085
SELECT + 61 DIV - 30 AS col1, - 53 + + 49 AS col1
----
-2
-4

skipif mysql # not compatible
query II rowsort label-4085
SELECT + 61 / - 30 AS col1, - 53 + + 49 AS col1
----
-2
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4086
SELECT DISTINCT - NULLIF ( - - COUNT( * ), 73 * + 88 * + AVG ( - 0 ) ) * + 60 - 22 AS col2, 4 + - COALESCE ( - + 91, - 8 DIV 38 + + 31 * - 61 )
----
-82
95

skipif mysql # not compatible
query II rowsort label-4086
SELECT DISTINCT - NULLIF ( - - COUNT ( * ), 73 * + 88 * + AVG ( - 0 ) ) * + 60 - 22 AS col2, 4 + - COALESCE ( - + 91, - 8 / 38 + + 31 * - 61 )
----
-82
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4087
SELECT - 30 * + 94 - COUNT( * ) - - - NULLIF ( 88, - 90 ) * - ( - 77 ) * + 57 + + 52 - + 13 + - + 42 + 3 DIV 70 AS col2
----
-389056

skipif mysql # not compatible
query I rowsort label-4087
SELECT - 30 * + 94 - COUNT ( * ) - - - NULLIF ( 88, - 90 ) * - ( - 77 ) * + 57 + + 52 - + 13 + - + 42 + 3 / 70 AS col2
----
-389056

onlyif mysql # aggregate syntax: 
query II rowsort label-4088
SELECT - COUNT( * ) * - 1 AS col0, 68 * - + 28 * 87
----
1
-165648

skipif mysql # not compatible
query II rowsort label-4088
SELECT - COUNT ( * ) * - 1 AS col0, 68 * - + 28 * 87
----
1
-165648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4089
SELECT - COUNT( * ) * + - 91 / + - CAST( NULL AS SIGNED ) / + + CAST( + COUNT( * ) AS SIGNED ) * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4089
SELECT - COUNT ( * ) * + - 91 / + - CAST ( NULL AS INTEGER ) / + + CAST ( + COUNT ( * ) AS INTEGER ) * + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT ALL + 49 * + 52 * - 32
----
-81536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4091
SELECT ( - + CASE + - COUNT( * ) WHEN - 94 THEN - - CASE 59 WHEN + ( CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) THEN - 44 * 25 ELSE - COUNT( * ) * - 63 END * ( 66 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT ( - + CASE + - COUNT ( * ) WHEN - 94 THEN - - CASE 59 WHEN + ( CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) THEN - 44 * 25 ELSE - COUNT ( * ) * - 63 END * ( 66 ) END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4092
SELECT ALL + CAST( - 37 AS SIGNED ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL + CAST ( - 37 AS INTEGER ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-4093
SELECT + SUM( + - 55 ) AS col0, 10 AS col0
----
-55
10

skipif mysql # not compatible
query II rowsort label-4093
SELECT + SUM ( + - 55 ) AS col0, 10 AS col0
----
-55
10

query I rowsort
SELECT ( - ( 36 ) )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4095
SELECT - - 63 * + + COUNT( * ) * - 54 / + ( + - CAST( NULL AS SIGNED ) ) + - + CASE 23 WHEN ( + COUNT( * ) ) + - 73 THEN - + 96 + COUNT( * ) * - 73 END * + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT - - 63 * + + COUNT ( * ) * - 54 / + ( + - CAST ( NULL AS INTEGER ) ) + - + CASE 23 WHEN ( + COUNT ( * ) ) + - 73 THEN - + 96 + COUNT ( * ) * - 73 END * + 4 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4096
SELECT + 56 * - - 46 + 32 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4096
SELECT + 56 * - - 46 + 32 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 48 * 39 + - + 26
----
1846

query I rowsort
SELECT ALL - - 81 * - + 59 AS col0
----
-4779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4099
SELECT DISTINCT + 48 * + + 54 - + 4 * + + MAX( + 99 ) + + - CASE + 71 WHEN + + ( - 97 ) * + + 5 * 22 / + CAST( CASE 58 WHEN COUNT( * ) * ( 21 * 19 ) - 62 / + 59 THEN NULL ELSE + 43 * AVG ( 84 ) - 96 * 87 END AS SIGNED ) THEN NULL WHEN + CASE + 42 WHEN COUNT( DISTINCT - 75 ) THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE + COUNT( * ) END THEN + 17 WHEN + 94 THEN + 33 / + 82 END * + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT + 48 * + + 54 - + 4 * + + MAX ( + 99 ) + + - CASE + 71 WHEN + + ( - 97 ) * + + 5 * 22 / + CAST ( CASE 58 WHEN COUNT ( * ) * ( 21 * 19 ) - 62 / + 59 THEN NULL ELSE + 43 * AVG ( 84 ) - 96 * 87 END AS INTEGER ) THEN NULL WHEN + CASE + 42 WHEN COUNT ( DISTINCT - 75 ) THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + COUNT ( * ) END THEN + 17 WHEN + 94 THEN + 33 / + 82 END * + 97
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4100
SELECT DISTINCT - + CAST( + - COALESCE ( - - 48, 49 * + COUNT( * ) ) AS SIGNED ) * - 13 - 54 col1, 38
----
-678
38

skipif mysql # not compatible
query II rowsort label-4100
SELECT DISTINCT - + CAST ( + - COALESCE ( - - 48, 49 * + COUNT ( * ) ) AS INTEGER ) * - 13 - 54 col1, 38
----
-678
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT DISTINCT - + 61 * 58 + SUM( 70 ) AS col1
----
-3468

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT - + 61 * 58 + SUM ( 70 ) AS col1
----
-3468

query I rowsort
SELECT - - 36 - - 0 col0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4103
SELECT DISTINCT - 25 DIV - - 79 + - + ( + 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-4103
SELECT DISTINCT - 25 / - - 79 + - + ( + 53 )
----
-53

query I rowsort
SELECT - + ( + 22 ) - - 27 * - - 43 AS col2
----
1139

query II rowsort
SELECT + + 56 * + 58, 74 AS col1
----
3248
74

query I rowsort
SELECT + 68 * - 58 AS col0
----
-3944

query I rowsort
SELECT + 82 * + NULLIF ( - + 26, 10 ) AS col1
----
-2132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4108
SELECT ALL CAST( - - NULLIF ( + + 16, + 99 * MIN( DISTINCT - - 79 ) - + 87 ) AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL CAST ( - - NULLIF ( + + 16, + 99 * MIN ( DISTINCT - - 79 ) - + 87 ) AS INTEGER ) AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4109
SELECT + + 62 * + 51 AS col2, NULLIF ( + NULLIF ( + - 70, + - 66 - NULLIF ( NULLIF ( CASE + MIN( DISTINCT - - 78 ) WHEN + - 92 THEN 71 WHEN - 70 - + 59 * - 9 THEN 28 + + NULLIF ( + 52, - ( 15 ) ) ELSE NULL END, + NULLIF ( + 76, + 32 * - 67 ) / ( + 70 ) ), - CAST( 71 AS DECIMAL ) * 48 ) + + 99 * 58 ), - 27 ) + - 94 * 70 AS col1
----
3162
-6650

skipif mysql # not compatible
query II rowsort label-4109
SELECT + + 62 * + 51 AS col2, NULLIF ( + NULLIF ( + - 70, + - 66 - NULLIF ( NULLIF ( CASE + MIN ( DISTINCT - - 78 ) WHEN + - 92 THEN 71 WHEN - 70 - + 59 * - 9 THEN 28 + + NULLIF ( + 52, - ( 15 ) ) ELSE NULL END, + NULLIF ( + 76, + 32 * - 67 ) / ( + 70 ) ), - CAST ( 71 AS REAL ) * 48 ) + + 99 * 58 ), - 27 ) + - 94 * 70 AS col1
----
3162
-6650

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT ALL 79 - - - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL 79 - - - COUNT ( * )
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-4111
SELECT DISTINCT 66 col2, - 29 - - + MAX( + + 40 )
----
66
11

skipif mysql # not compatible
query II rowsort label-4111
SELECT DISTINCT 66 col2, - 29 - - + MAX ( + + 40 )
----
66
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT 8 + - COUNT( * ) * + + 27 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-4112
SELECT 8 + - COUNT ( * ) * + + 27 AS col2
----
-19

query I rowsort
SELECT ( - 97 ) + 75
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-4114
SELECT 53 - + MIN( ALL 89 ) AS col2, + 0
----
-36
0

skipif mysql # not compatible
query II rowsort label-4114
SELECT 53 - + MIN ( ALL 89 ) AS col2, + 0
----
-36
0

query II rowsort
SELECT ALL 75 AS col2, + 17 AS col0
----
75
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT 27 + - 72 * + 27 * + + MIN( + + 65 )
----
-126333

skipif mysql # not compatible
query I rowsort label-4116
SELECT 27 + - 72 * + 27 * + + MIN ( + + 65 )
----
-126333

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT ALL ( - 61 ) + - - NULLIF ( - 61, - 35 ) + 23 * + COUNT( * ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL ( - 61 ) + - - NULLIF ( - 61, - 35 ) + 23 * + COUNT ( * ) AS col0
----
-99

query II rowsort
SELECT + 85, 84 AS col0
----
85
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT ALL - COUNT( ALL - 30 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL - COUNT ( ALL - 30 ) AS col2
----
-1

query I rowsort
SELECT ALL - 63 + 8
----
-55

query I rowsort
SELECT 53 + 30 AS col2
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4122
SELECT ALL COUNT( + 13 ) DIV + 16
----
0

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL COUNT ( + 13 ) / + 16
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4123
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + COALESCE ( 60, + 59, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + COALESCE ( 60, + 59, COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL + 18 + + NULLIF ( NULLIF ( + 86, - ( - - 19 ) * - 91 ), NULLIF ( - + 70, + 71 ) ) AS col2
----
104

query I rowsort
SELECT ALL - 63 + 14
----
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-4126
SELECT + 51 AS col2, 14 * 24 DIV - + 47
----
51
-7

skipif mysql # not compatible
query II rowsort label-4126
SELECT + 51 AS col2, 14 * 24 / - + 47
----
51
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4127
SELECT NULLIF ( - 39, + - 4 ) DIV + + 44 * 43 + - - 77 * - 22 + + 63 * + ( 94 ) AS col0
----
4228

skipif mysql # not compatible
query I rowsort label-4127
SELECT NULLIF ( - 39, + - 4 ) / + + 44 * 43 + - - 77 * - 22 + + 63 * + ( 94 ) AS col0
----
4228

query I rowsort
SELECT DISTINCT + 46 + - 80 AS col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4129
SELECT ALL NULLIF ( + + 40, + 80 * - 17 + - 50 + + 59 * 98 ) + 83 / - COUNT( - 55 ) * + ( - ( + 52 ) ) + - CASE + CAST( NULL AS SIGNED ) - + 21 * CAST( 34 * + 11 + 14 AS SIGNED ) WHEN 87 * + 2 THEN NULL WHEN 34 THEN 70 WHEN 94 THEN 85 * - 49 + + 62 END * CASE - 73 * 29 WHEN - 21 / 17 - COALESCE ( + 55 - 57 * 8, COUNT( * ), 67 - COUNT( * ) ) THEN - COUNT( * ) + + 71 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL NULLIF ( + + 40, + 80 * - 17 + - 50 + + 59 * 98 ) + 83 / - COUNT ( - 55 ) * + ( - ( + 52 ) ) + - CASE + CAST ( NULL AS INTEGER ) - + 21 * CAST ( 34 * + 11 + 14 AS INTEGER ) WHEN 87 * + 2 THEN NULL WHEN 34 THEN 70 WHEN 94 THEN 85 * - 49 + + 62 END * CASE - 73 * 29 WHEN - 21 / 17 - COALESCE ( + 55 - 57 * 8, COUNT ( * ), 67 - COUNT ( * ) ) THEN - COUNT ( * ) + + 71 END AS col2
----
NULL

query II rowsort
SELECT + + 74 AS col2, - 8
----
74
-8

query I rowsort
SELECT + 37 * 47 * + COALESCE ( 49, - 9, 37 ) + - - COALESCE ( - + 18, - + NULLIF ( - 65, - 18 * - AVG ( - - 30 ) * + NULLIF ( + 56, ( 74 ) * 92 ) ) ) + 27
----
85220

query II rowsort
SELECT - 2 AS col2, 21 * + - 86 AS col0
----
-2
-1806

query II rowsort
SELECT ALL - 10 col0, 26
----
-10
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4134
SELECT COUNT( * ) * - - 51 * - - CAST( - 70 AS SIGNED ) + - - CASE COUNT( * ) WHEN + MIN( ALL - + COALESCE ( - 80, - 84, - 0 ) ) * - CAST( - 14 AS SIGNED ) + - 81 THEN COUNT( * ) + + 56 WHEN 77 * 8 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT COUNT ( * ) * - - 51 * - - CAST ( - 70 AS INTEGER ) + - - CASE COUNT ( * ) WHEN + MIN ( ALL - + COALESCE ( - 80, - 84, - 0 ) ) * - CAST ( - 14 AS INTEGER ) + - 81 THEN COUNT ( * ) + + 56 WHEN 77 * 8 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT COUNT( - + 74 )
----
1

skipif mysql # not compatible
query I rowsort label-4135
SELECT COUNT ( - + 74 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4136
SELECT ALL - + 54 DIV - 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL - + 54 / - 71 AS col0
----
0

query II rowsort
SELECT + 36 AS col2, 72 * - 40 col1
----
36
-2880

onlyif mysql # aggregate syntax: 
query II rowsort label-4138
SELECT + + 71 * - 47 + + + 76 AS col2, - NULLIF ( + ( 52 ), - 21 * + 4 ) - - 82 + - SUM( 23 )
----
-3261
7

skipif mysql # not compatible
query II rowsort label-4138
SELECT + + 71 * - 47 + + + 76 AS col2, - NULLIF ( + ( 52 ), - 21 * + 4 ) - - 82 + - SUM ( 23 )
----
-3261
7

query I rowsort
SELECT 20 - 44
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT DISTINCT + + 41 - NULLIF ( COUNT( * ), + 11 ) * + - 54
----
95

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT + + 41 - NULLIF ( COUNT ( * ), + 11 ) * + - 54
----
95

query I rowsort
SELECT ALL - + 78 * 52
----
-4056

query I rowsort
SELECT + 5 + - - 53 AS col0
----
58

query I rowsort
SELECT DISTINCT + ( - 65 ) - - 29 - - 85 * + 13 AS col0
----
1069

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT DISTINCT - - 11 * - COUNT( * ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT - - 11 * - COUNT ( * ) AS col1
----
-11

query I rowsort
SELECT ALL - 86 * + + 32 * + 13
----
-35776

query I rowsort
SELECT - 41 + 88 - 71 * - 21 + - 94
----
1444

onlyif mysql # DIV for integer division: 
query I rowsort label-4147
SELECT 2 DIV - 4 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4147
SELECT 2 / - 4 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT 47 * CASE - + 40 WHEN - - 89 * - - 31 THEN NULL WHEN - + 46 * - 45 * + 86 THEN 10 * + + 53 + COUNT( * ) + 39 * + 85 ELSE NULL END / - COUNT( * ) + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-4148
SELECT 47 * CASE - + 40 WHEN - - 89 * - - 31 THEN NULL WHEN - + 46 * - 45 * + 86 THEN 10 * + + 53 + COUNT ( * ) + 39 * + 85 ELSE NULL END / - COUNT ( * ) + 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT 53 + + COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4149
SELECT 53 + + COUNT ( * ) AS col0
----
54

query I rowsort
SELECT 24 * 70
----
1680

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4151
SELECT DISTINCT - 49 + 55, - CAST( NULL AS SIGNED ) * - + 20 + - CAST( - 0 AS SIGNED ) * - ( - - 60 ) - - 74 AS col1
----
6
NULL

skipif mysql # not compatible
query II rowsort label-4151
SELECT DISTINCT - 49 + 55, - CAST ( NULL AS INTEGER ) * - + 20 + - CAST ( - 0 AS INTEGER ) * - ( - - 60 ) - - 74 AS col1
----
6
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4152
SELECT ALL + ( + ( COUNT( * ) ) ) + 71 * 14, 31 AS col1
----
995
31

skipif mysql # not compatible
query II rowsort label-4152
SELECT ALL + ( + ( COUNT ( * ) ) ) + 71 * 14, 31 AS col1
----
995
31

query II rowsort
SELECT 37 * + - 2 AS col2, 2
----
-74
2

query I rowsort
SELECT ALL 78 + 32 + + 81 - - - ( + 56 ) AS col0
----
135

query I rowsort
SELECT ALL ( + 79 ) + - + CASE - 25 WHEN ( 85 ) THEN + 71 END / - 61 + - - 18
----
NULL

query I rowsort
SELECT DISTINCT 13 + + 62 AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4157
SELECT MAX( - CAST( NULL AS SIGNED ) ) * + + COUNT( * ) + + - SUM( DISTINCT + + 19 ) + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4157
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) + + - SUM ( DISTINCT + + 19 ) + 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT - 83 * 90 - - NULLIF ( - 87, - COUNT( * ) ) - - ( + 39 ) AS col2
----
-7518

skipif mysql # not compatible
query I rowsort label-4158
SELECT - 83 * 90 - - NULLIF ( - 87, - COUNT ( * ) ) - - ( + 39 ) AS col2
----
-7518

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT COUNT( ALL 21 )
----
1

skipif mysql # not compatible
query I rowsort label-4159
SELECT COUNT ( ALL 21 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT COUNT( + 70 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4160
SELECT COUNT ( + 70 ) AS col1
----
1

query I rowsort
SELECT 88 * 54
----
4752

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT ALL + 35 * - 48 + + COUNT( * ) + + 67 * MIN( - - 19 ) * + - ( - 55 ) AS col0
----
68336

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL + 35 * - 48 + + COUNT ( * ) + + 67 * MIN ( - - 19 ) * + - ( - 55 ) AS col0
----
68336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4163
SELECT + 96 + - + 83 / - - COUNT( * ) * + 97 + CAST( + CASE - - NULLIF ( - + 87, + + COUNT( * ) ) WHEN - 51 THEN + - COUNT( * ) END AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4163
SELECT + 96 + - + 83 / - - COUNT ( * ) * + 97 + CAST ( + CASE - - NULLIF ( - + 87, + + COUNT ( * ) ) WHEN - 51 THEN + - COUNT ( * ) END AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4164
SELECT - 35 * CAST( - 75 AS SIGNED ) + - 90 DIV 54 * + 33 - - COALESCE ( - 51, - COUNT( * ) * - COUNT( * ) * - COUNT( * ) + ( + SUM( - + 17 ) ) * + COALESCE ( - 30, + 16 * - 79 ) + 30 ) AS col0
----
2541

skipif mysql # not compatible
query I rowsort label-4164
SELECT - 35 * CAST ( - 75 AS INTEGER ) + - 90 / 54 * + 33 - - COALESCE ( - 51, - COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ) + ( + SUM ( - + 17 ) ) * + COALESCE ( - 30, + 16 * - 79 ) + 30 ) AS col0
----
2541

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT + + NULLIF ( - + NULLIF ( 74, MAX( - 75 ) / - SUM( + 21 ) ), + - 2 ) col1
----
-74

skipif mysql # not compatible
query I rowsort label-4165
SELECT + + NULLIF ( - + NULLIF ( 74, MAX ( - 75 ) / - SUM ( + 21 ) ), + - 2 ) col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4166
SELECT + - CAST( - - NULLIF ( + 63, - COUNT( * ) + - + 65 ) AS SIGNED ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-4166
SELECT + - CAST ( - - NULLIF ( + 63, - COUNT ( * ) + - + 65 ) AS INTEGER ) AS col1
----
-63

query I rowsort
SELECT + 53 * + 19
----
1007

query I rowsort
SELECT + 23 * - 21 * + + 46 AS col0
----
-22218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4169
SELECT - COUNT( * ) * + - 10 + 63 + + + AVG ( DISTINCT - 79 ) + - CAST( - 99 AS SIGNED ) * 9 * 96 * + CAST( NULL AS SIGNED ) * - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4169
SELECT - COUNT ( * ) * + - 10 + 63 + + + AVG ( DISTINCT - 79 ) + - CAST ( - 99 AS INTEGER ) * 9 * 96 * + CAST ( NULL AS INTEGER ) * - 72 AS col2
----
NULL

query I rowsort
SELECT ALL - 51 * 89 + + + 32 + 29 + - 62 * - 19
----
-3300

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT - 46 + - 98 + + + COUNT( * ) * + 5 * - 40 AS col0
----
-344

skipif mysql # not compatible
query I rowsort label-4171
SELECT - 46 + - 98 + + + COUNT ( * ) * + 5 * - 40 AS col0
----
-344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4172
SELECT 4 DIV + 14 * + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4172
SELECT 4 / + 14 * + + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4173
SELECT ALL CASE - 28 WHEN 48 * - 28 * + - 23 / CASE - 25 WHEN + - 93 * 31 + - 8 THEN - - 72 WHEN CASE + + 14 WHEN - 94 / CAST( COUNT( * ) AS SIGNED ) THEN NULL WHEN 78 THEN COUNT( * ) END / 99 + - 42 THEN + CAST( COUNT( * ) AS DECIMAL ) * 0 END * + 49 + SUM( ALL + 85 ) + 41 * - 60 THEN COUNT( * ) WHEN + MIN( DISTINCT 40 ) THEN NULL END * + 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL CASE - 28 WHEN 48 * - 28 * + - 23 / CASE - 25 WHEN + - 93 * 31 + - 8 THEN - - 72 WHEN CASE + + 14 WHEN - 94 / CAST ( COUNT ( * ) AS INTEGER ) THEN NULL WHEN 78 THEN COUNT ( * ) END / 99 + - 42 THEN + CAST ( COUNT ( * ) AS REAL ) * 0 END * + 49 + SUM ( ALL + 85 ) + 41 * - 60 THEN COUNT ( * ) WHEN + MIN ( DISTINCT 40 ) THEN NULL END * + 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4174
SELECT - 3 * - 21 AS col1, COUNT( * )
----
63
1

skipif mysql # not compatible
query II rowsort label-4174
SELECT - 3 * - 21 AS col1, COUNT ( * )
----
63
1

query I rowsort
SELECT - 30 + - + 7
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-4176
SELECT + - 35 * + - 75, 33 * - - MAX( ALL + 72 ) AS col0
----
2625
2376

skipif mysql # not compatible
query II rowsort label-4176
SELECT + - 35 * + - 75, 33 * - - MAX ( ALL + 72 ) AS col0
----
2625
2376

query II rowsort
SELECT - 92 - + + 98 AS col1, 50 * - 10 AS col0
----
-190
-500

query I rowsort
SELECT DISTINCT COALESCE ( 72, - 84, + 15 ) AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4179
SELECT ALL + 98 + - + 91 + COUNT( * ) AS col0, CAST( NULL AS DECIMAL ) / ( - 35 )
----
8
NULL

skipif mysql # not compatible
query II rowsort label-4179
SELECT ALL + 98 + - + 91 + COUNT ( * ) AS col0, CAST ( NULL AS REAL ) / ( - 35 )
----
8
NULL

query I rowsort
SELECT - 14 + - + 25
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT ALL COALESCE ( 38, 0 + + COUNT( - 75 ) )
----
38

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL COALESCE ( 38, 0 + + COUNT ( - 75 ) )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4182
SELECT - 15, + 92 * - COUNT( * ) AS col0
----
-15
-92

skipif mysql # not compatible
query II rowsort label-4182
SELECT - 15, + 92 * - COUNT ( * ) AS col0
----
-15
-92

query I rowsort
SELECT ALL - ( + 43 ) + - + 89
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT DISTINCT + COUNT( * ) + 59 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT + COUNT ( * ) + 59 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT - MAX( ALL + + 51 ) - + ( + 38 ) col0
----
-89

skipif mysql # not compatible
query I rowsort label-4185
SELECT - MAX ( ALL + + 51 ) - + ( + 38 ) col0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4186
SELECT ALL COALESCE ( + 37, - COALESCE ( - 1, + 89 ) * + 97, - ( - 73 ) + - COUNT( * ) DIV + - 87 + - CAST( 15 AS SIGNED ) ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL COALESCE ( + 37, - COALESCE ( - 1, + 89 ) * + 97, - ( - 73 ) + - COUNT ( * ) / + - 87 + - CAST ( 15 AS INTEGER ) ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT - 31 + - COUNT( * ) + - + 39 col2
----
-71

skipif mysql # not compatible
query I rowsort label-4187
SELECT - 31 + - COUNT ( * ) + - + 39 col2
----
-71

query I rowsort
SELECT - 25 + + 21
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4189
SELECT ALL 95 DIV COUNT( * ) * - - COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL 95 / COUNT ( * ) * - - COUNT ( * ) AS col1
----
95

query I rowsort
SELECT - NULLIF ( + - 16, 17 / 71 * 73 ) + + 65 + + + 28 * + 73 * + 52 AS col2
----
106369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT + CAST( NULL AS SIGNED ) - - 77 + 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT + CAST ( NULL AS INTEGER ) - - 77 + 85 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4192
SELECT ALL - CAST( NULL AS SIGNED ) - COUNT( ALL - 57 ) - - AVG ( ALL + - 11 ) + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL - CAST ( NULL AS INTEGER ) - COUNT ( ALL - 57 ) - - AVG ( ALL + - 11 ) + 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT ALL + NULLIF ( + ( + 53 ), + 61 * - - SUM( + + 45 ) )
----
53

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL + NULLIF ( + ( + 53 ), + 61 * - - SUM ( + + 45 ) )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4194
SELECT ALL 54 * - CAST( - + ( - 13 ) AS SIGNED ) - + - 88 DIV 88, - ( - MAX( - 11 ) ) AS col2
----
-701
-11

skipif mysql # not compatible
query II rowsort label-4194
SELECT ALL 54 * - CAST ( - + ( - 13 ) AS INTEGER ) - + - 88 / 88, - ( - MAX ( - 11 ) ) AS col2
----
-701
-11

query I rowsort
SELECT DISTINCT 45 * - 94
----
-4230

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT - - 40 * - - COUNT( * ) - 35
----
5

skipif mysql # not compatible
query I rowsort label-4196
SELECT - - 40 * - - COUNT ( * ) - 35
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ALL + ( + COUNT( * ) ) * - 7 - 43 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL + ( + COUNT ( * ) ) * - 7 - 43 AS col2
----
-50

query I rowsort
SELECT DISTINCT + 13 * 59 AS col1
----
767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4199
SELECT + COUNT( - - 81 ) / + CAST( NULL AS SIGNED ) - + + COUNT( * ) - - + 57 / ( + + NULLIF ( - 89, 77 + + 92 ) ) + - 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4199
SELECT + COUNT ( - - 81 ) / + CAST ( NULL AS INTEGER ) - + + COUNT ( * ) - - + 57 / ( + + NULLIF ( - 89, 77 + + 92 ) ) + - 73 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT + 21 * + + 1 - - MAX( ALL + 98 )
----
119

skipif mysql # not compatible
query I rowsort label-4200
SELECT + 21 * + + 1 - - MAX ( ALL + 98 )
----
119

query I rowsort
SELECT + + 25 * 90 * 3 + 58
----
6808

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT DISTINCT + 97 * + + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-4202
SELECT DISTINCT + 97 * + + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4203
SELECT DISTINCT 75 DIV - + COUNT( * ) + + 14
----
-61

skipif mysql # not compatible
query I rowsort label-4203
SELECT DISTINCT 75 / - + COUNT ( * ) + + 14
----
-61

query I rowsort
SELECT - 23 * - - 92 AS col0
----
-2116

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT + 63 + COUNT( * ) * + ( + + 88 )
----
151

skipif mysql # not compatible
query I rowsort label-4205
SELECT + 63 + COUNT ( * ) * + ( + + 88 )
----
151

query II rowsort
SELECT + 44, 44 AS col2
----
44
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4207
SELECT - COUNT( * ) * - CAST( + 91 AS SIGNED ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-4207
SELECT - COUNT ( * ) * - CAST ( + 91 AS INTEGER ) AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4208
SELECT + CASE - 47 WHEN + - COUNT( * ) * - 7 THEN - 87 END * + - 87 + + 73 - - 83 * 81 + - 60 * 34 + 94 - CAST( - 62 AS SIGNED ) + + + MAX( DISTINCT + 45 ) - 5 * - 98 * - ( COALESCE ( - 10, + 39 + + 60 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4208
SELECT + CASE - 47 WHEN + - COUNT ( * ) * - 7 THEN - 87 END * + - 87 + + 73 - - 83 * 81 + - 60 * 34 + 94 - CAST ( - 62 AS INTEGER ) + + + MAX ( DISTINCT + 45 ) - 5 * - 98 * - ( COALESCE ( - 10, + 39 + + 60 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4209
SELECT - + 67 - - 63 DIV ( 65 )
----
-67

skipif mysql # not compatible
query I rowsort label-4209
SELECT - + 67 - - 63 / ( 65 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT DISTINCT - 62 * - 46 - + 80 - + 71 * - - 53 * - COUNT( * ) - + 14 - - - 15 * - + COALESCE ( 75, - COUNT( * ) )
----
7646

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT - 62 * - 46 - + 80 - + 71 * - - 53 * - COUNT ( * ) - + 14 - - - 15 * - + COALESCE ( 75, - COUNT ( * ) )
----
7646

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT 98 * + 39 * - MAX( - 10 ) * + COUNT( ALL + 62 ) + + - 95 AS col2
----
38125

skipif mysql # not compatible
query I rowsort label-4211
SELECT 98 * + 39 * - MAX ( - 10 ) * + COUNT ( ALL + 62 ) + + - 95 AS col2
----
38125

query II rowsort
SELECT ALL 56 AS col0, 1
----
56
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4213
SELECT + 91 * + 55 AS col1, CAST( NULL AS SIGNED ) * - 90 + + 44 - 14 AS col0
----
5005
NULL

skipif mysql # not compatible
query II rowsort label-4213
SELECT + 91 * + 55 AS col1, CAST ( NULL AS INTEGER ) * - 90 + + 44 - 14 AS col0
----
5005
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4214
SELECT ALL - CAST( NULL AS SIGNED ) * + CASE + 5 WHEN - - 64 + ( + CASE + CAST( - 4 AS SIGNED ) WHEN + - 29 + CAST( NULL AS SIGNED ) * + MIN( - + 73 ) * AVG ( + 87 ) + - 9 - + 34 + - 94 * - 69 THEN NULL WHEN COUNT( * ) / 16 + + AVG ( ALL 77 ) THEN + 64 ELSE 10 * - COUNT( * ) + + 37 END ) * MIN( DISTINCT 12 ) THEN 51 END / + COUNT( * ) + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL - CAST ( NULL AS INTEGER ) * + CASE + 5 WHEN - - 64 + ( + CASE + CAST ( - 4 AS INTEGER ) WHEN + - 29 + CAST ( NULL AS INTEGER ) * + MIN ( - + 73 ) * AVG ( + 87 ) + - 9 - + 34 + - 94 * - 69 THEN NULL WHEN COUNT ( * ) / 16 + + AVG ( ALL 77 ) THEN + 64 ELSE 10 * - COUNT ( * ) + + 37 END ) * MIN ( DISTINCT 12 ) THEN 51 END / + COUNT ( * ) + + 27
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4215
SELECT SUM( + 23 ), + 30 + - NULLIF ( - - 69, - + 98 ) AS col1
----
23
-39

skipif mysql # not compatible
query II rowsort label-4215
SELECT SUM ( + 23 ), + 30 + - NULLIF ( - - 69, - + 98 ) AS col1
----
23
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-4216
SELECT - 85 + + 83 DIV + 56 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-4216
SELECT - 85 + + 83 / + 56 AS col1
----
-84

query I rowsort
SELECT DISTINCT ( - + 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ALL + ( - SUM( + 23 ) ) + + ( - + 25 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL + ( - SUM ( + 23 ) ) + + ( - + 25 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT SUM( - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-4219
SELECT SUM ( - 92 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4220
SELECT DISTINCT CASE - 4 WHEN - NULLIF ( 5, + - 74 ) * - 41 * + + 56 + CASE - CASE - 80 WHEN NULLIF ( + 89, - + 20 ) * - 46 * - + 48 * - + 19 THEN NULL ELSE - COUNT( * ) + 92 END WHEN + 93 / + 46 THEN 94 * - 84 + - 78 WHEN CAST( NULL AS SIGNED ) + 59 * 25 THEN - 15 * - 28 WHEN - 41 / - 26 THEN - 11 WHEN 41 THEN - 60 - 29 * 21 ELSE NULL END THEN + 38 / CASE CAST( + 1 AS SIGNED ) WHEN - COALESCE ( 73, + 4 + + 57 / + ( + 7 + + CAST( COALESCE ( + 30, + 81 + 89, - 73 / - 44 ) AS SIGNED ) ), 30 - - 36 ) THEN - 26 / + COUNT( 86 ) + 4 * - 13 WHEN + 40 / NULLIF ( - 36 * - 35, 79 * MIN( + 10 ) + CASE ( 13 ) WHEN - 90 + - 35 / + 94 THEN 19 / - CAST( NULL AS SIGNED ) ELSE NULL END ) THEN - 28 ELSE 82 * + CAST( 56 AS SIGNED ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT CASE - 4 WHEN - NULLIF ( 5, + - 74 ) * - 41 * + + 56 + CASE - CASE - 80 WHEN NULLIF ( + 89, - + 20 ) * - 46 * - + 48 * - + 19 THEN NULL ELSE - COUNT ( * ) + 92 END WHEN + 93 / + 46 THEN 94 * - 84 + - 78 WHEN CAST ( NULL AS INTEGER ) + 59 * 25 THEN - 15 * - 28 WHEN - 41 / - 26 THEN - 11 WHEN 41 THEN - 60 - 29 * 21 ELSE NULL END THEN + 38 / CASE CAST ( + 1 AS INTEGER ) WHEN - COALESCE ( 73, + 4 + + 57 / + ( + 7 + + CAST ( COALESCE ( + 30, + 81 + 89, - 73 / - 44 ) AS INTEGER ) ), 30 - - 36 ) THEN - 26 / + COUNT ( 86 ) + 4 * - 13 WHEN + 40 / NULLIF ( - 36 * - 35, 79 * MIN ( + 10 ) + CASE ( 13 ) WHEN - 90 + - 35 / + 94 THEN 19 / - CAST ( NULL AS INTEGER ) ELSE NULL END ) THEN - 28 ELSE 82 * + CAST ( 56 AS INTEGER ) END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT DISTINCT NULLIF ( COUNT( * ), + 30 * + - 83 )
----
1

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT NULLIF ( COUNT ( * ), + 30 * + - 83 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT - COUNT( * ) * - 8 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4222
SELECT - COUNT ( * ) * - 8 AS col0
----
8

query I rowsort
SELECT ALL + 59 * + - 25 AS col0
----
-1475

query I rowsort
SELECT DISTINCT + 50 - + 69 + + 2 - - NULLIF ( - 75, - 78 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT ALL + COUNT( * ) - 80 * + - 19 col2
----
1521

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL + COUNT ( * ) - 80 * + - 19 col2
----
1521

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4226
SELECT - ( 98 ) * - COALESCE ( + + 38, - NULLIF ( - + CAST( NULL AS SIGNED ), + 50 ) ) * + 2
----
7448

skipif mysql # not compatible
query I rowsort label-4226
SELECT - ( 98 ) * - COALESCE ( + + 38, - NULLIF ( - + CAST ( NULL AS INTEGER ), + 50 ) ) * + 2
----
7448

query I rowsort
SELECT ALL + 59 * 85 AS col0
----
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT ALL NULLIF ( + COUNT( * ), + 95 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL NULLIF ( + COUNT ( * ), + 95 ) AS col0
----
1

query II rowsort
SELECT ALL 49, 77 AS col0
----
49
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4230
SELECT DISTINCT ( - + COUNT( * ) ) AS col0, + CAST( - + 50 AS SIGNED )
----
-1
-50

skipif mysql # not compatible
query II rowsort label-4230
SELECT DISTINCT ( - + COUNT ( * ) ) AS col0, + CAST ( - + 50 AS INTEGER )
----
-1
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT ALL - 33 - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL - 33 - COUNT ( * )
----
-34

query I rowsort
SELECT - 59 * - 60 AS col2
----
3540

query I rowsort
SELECT - 65 + 92
----
27

query I rowsort
SELECT - 22 * + - 7
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4235
SELECT + 63 * - + CAST( - + 6 AS SIGNED ) - + ( + COUNT( * ) ) AS col1
----
377

skipif mysql # not compatible
query I rowsort label-4235
SELECT + 63 * - + CAST ( - + 6 AS INTEGER ) - + ( + COUNT ( * ) ) AS col1
----
377

onlyif mysql # DIV for integer division: 
query I rowsort label-4236
SELECT + 5 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-4236
SELECT + 5 / - 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT - - COUNT( * ) * 18 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-4237
SELECT - - COUNT ( * ) * 18 AS col1
----
18

query I rowsort
SELECT - + 29 * - 56 - 70
----
1554

onlyif mysql # aggregate syntax: 
query II rowsort label-4239
SELECT DISTINCT - COUNT( * ), - 55 AS col2
----
-1
-55

skipif mysql # not compatible
query II rowsort label-4239
SELECT DISTINCT - COUNT ( * ), - 55 AS col2
----
-1
-55

query I rowsort
SELECT - 94 + 40 + - 83
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT DISTINCT + ( - SUM( DISTINCT + 10 ) ) + + 73 - - 41 AS col1
----
104

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT + ( - SUM ( DISTINCT + 10 ) ) + + 73 - - 41 AS col1
----
104

query II rowsort
SELECT - 50 AS col2, - 96 * - - 14 AS col0
----
-50
-1344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4243
SELECT ALL - CAST( NULL AS SIGNED ) + - - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL - CAST ( NULL AS INTEGER ) + - - 87
----
NULL

query I rowsort
SELECT + 61 * + 83 + - NULLIF ( - 21, - 21 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT - MIN( ALL 37 ) * + - 38 * - - 65 + - 16 AS col0
----
91374

skipif mysql # not compatible
query I rowsort label-4245
SELECT - MIN ( ALL 37 ) * + - 38 * - - 65 + - 16 AS col0
----
91374

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4246
SELECT ALL - NULLIF ( + - CAST( NULL AS SIGNED ), + CAST( - 85 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL - NULLIF ( + - CAST ( NULL AS INTEGER ), + CAST ( - 85 AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4247
SELECT + CAST( 65 AS SIGNED ) col0
----
65

skipif mysql # not compatible
query I rowsort label-4247
SELECT + CAST ( 65 AS INTEGER ) col0
----
65

query II rowsort
SELECT + 44 + 32 AS col1, 83 col1
----
76
83

query I rowsort
SELECT ALL 27 + - - 93
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4250
SELECT DISTINCT 32 + - - COALESCE ( - COUNT( * ), + 30, COUNT( * ) DIV COALESCE ( + 58, + + 10 * + 57, 60 ) ) * 94 * + 23 * + SUM( ALL + 87 ) * 67 * - 41 DIV + + COUNT( * )
----
516694250

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT 32 + - - COALESCE ( - COUNT ( * ), + 30, COUNT ( * ) / COALESCE ( + 58, + + 10 * + 57, 60 ) ) * 94 * + 23 * + SUM ( ALL + 87 ) * 67 * - 41 / + + COUNT ( * )
----
516694250

query I rowsort
SELECT 47 * 57
----
2679

onlyif mysql # DIV for integer division: 
query I rowsort label-4252
SELECT 53 DIV + + 44
----
1

skipif mysql # not compatible
query I rowsort label-4252
SELECT 53 / + + 44
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4253
SELECT ALL 67 + + - 25 - + MIN( + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL 67 + + - 25 - + MIN ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 19 * 3
----
57

query I rowsort
SELECT 43 - + + NULLIF ( - - 96, + 54 )
----
-53

query I rowsort
SELECT ( - - 29 ) + + + ( + + 0 )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-4257
SELECT ALL 13 * + - 6 AS col0, COUNT( * ) * - 6 - 74
----
-78
-80

skipif mysql # not compatible
query II rowsort label-4257
SELECT ALL 13 * + - 6 AS col0, COUNT ( * ) * - 6 - 74
----
-78
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4258
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + NULLIF ( - - CASE WHEN ( NULL ) IS NULL THEN NULL ELSE - - COUNT( ALL - 92 ) END, 45 ), - 46 + - COUNT( * ) AS col2
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-4258
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + NULLIF ( - - CASE WHEN ( NULL ) IS NULL THEN NULL ELSE - - COUNT ( ALL - 92 ) END, 45 ), - 46 + - COUNT ( * ) AS col2
----
NULL
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4259
SELECT ALL - COUNT( * ) - - 9 + SUM( - 50 ) + COUNT( + - 71 ) + 38 * + - COUNT( * ) AS col1, - 98 + + + 22 + - + COUNT( * ) + - 14 + + NULLIF ( + - COUNT( * ), - 34 * - + COALESCE ( - 48, + 56 ) ) DIV - CAST( COUNT( * ) AS SIGNED )
----
-79
-90

skipif mysql # not compatible
query II rowsort label-4259
SELECT ALL - COUNT ( * ) - - 9 + SUM ( - 50 ) + COUNT ( + - 71 ) + 38 * + - COUNT ( * ) AS col1, - 98 + + + 22 + - + COUNT ( * ) + - 14 + + NULLIF ( + - COUNT ( * ), - 34 * - + COALESCE ( - 48, + 56 ) ) / - CAST ( COUNT ( * ) AS INTEGER )
----
-79
-90

query I rowsort
SELECT ALL 60 * + ( - - 23 )
----
1380

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4261
SELECT 78 - - 36 - - 69 + - CAST( - 53 AS SIGNED ) - + 30 + + - 76 - + + 87 - 11 DIV + 5 AS col2, + 5
----
41
5

skipif mysql # not compatible
query II rowsort label-4261
SELECT 78 - - 36 - - 69 + - CAST ( - 53 AS INTEGER ) - + 30 + + - 76 - + + 87 - 11 / + 5 AS col2, + 5
----
41
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4262
SELECT 87 - COUNT( * ) AS col2, - 85 * - MIN( DISTINCT + - 30 ) + + COUNT( * ) AS col2
----
86
-2549

skipif mysql # not compatible
query II rowsort label-4262
SELECT 87 - COUNT ( * ) AS col2, - 85 * - MIN ( DISTINCT + - 30 ) + + COUNT ( * ) AS col2
----
86
-2549

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT 97 + - ( - COUNT( * ) ) - 8 + + 81 AS col2
----
171

skipif mysql # not compatible
query I rowsort label-4263
SELECT 97 + - ( - COUNT ( * ) ) - 8 + + 81 AS col2
----
171

query III rowsort
SELECT 68 + + 38 AS col0, + 32 * + ( + + 36 ), - ( + 90 ) AS col2
----
106
1152
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-4265
SELECT 3 * - 32, - CASE + NULLIF ( - 83, 28 ) WHEN ( 50 ) THEN CASE - - ( + 36 ) WHEN - - COUNT( * ) THEN NULL WHEN 22 THEN 2 ELSE - - 50 END * + - 33 / + - 35 + + COALESCE ( 42, + ( 66 ) * 82, - 52 ) END col1
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-4265
SELECT 3 * - 32, - CASE + NULLIF ( - 83, 28 ) WHEN ( 50 ) THEN CASE - - ( + 36 ) WHEN - - COUNT ( * ) THEN NULL WHEN 22 THEN 2 ELSE - - 50 END * + - 33 / + - 35 + + COALESCE ( 42, + ( 66 ) * 82, - 52 ) END col1
----
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT COUNT( * ) + SUM( + + 37 )
----
38

skipif mysql # not compatible
query I rowsort label-4266
SELECT COUNT ( * ) + SUM ( + + 37 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT - COUNT( * ) * - - MIN( - + 51 ) * - 81 + - 60 + + + 93 + + 71 col0
----
-4027

skipif mysql # not compatible
query I rowsort label-4267
SELECT - COUNT ( * ) * - - MIN ( - + 51 ) * - 81 + - 60 + + + 93 + + 71 col0
----
-4027

onlyif mysql # DIV for integer division: 
query II rowsort label-4268
SELECT ALL 12 DIV - - 75, + 14 * 58 col2
----
0
812

skipif mysql # not compatible
query II rowsort label-4268
SELECT ALL 12 / - - 75, + 14 * 58 col2
----
0
812

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4269
SELECT ( - 57 ) DIV ( + + 49 ) * - 75 + - COUNT( ALL - + 17 ) AS col1, + COUNT( * ) + + ( 30 ) * + 45
----
74
1351

skipif mysql # not compatible
query II rowsort label-4269
SELECT ( - 57 ) / ( + + 49 ) * - 75 + - COUNT ( ALL - + 17 ) AS col1, + COUNT ( * ) + + ( 30 ) * + 45
----
74
1351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4270
SELECT COUNT( * ) * + + CASE 97 WHEN - 79 + ( - 22 ) * + 90 THEN + + SUM( ALL - - CAST( - 81 AS SIGNED ) ) END * - + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4270
SELECT COUNT ( * ) * + + CASE 97 WHEN - 79 + ( - 22 ) * + 90 THEN + + SUM ( ALL - - CAST ( - 81 AS INTEGER ) ) END * - + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT ALL - MIN( - - 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL - MIN ( - - 3 ) AS col2
----
-3

query I rowsort
SELECT ALL - + 27 + 51 * - - 59 * - + 69 * ( + 66 ) AS col1
----
-13703013

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4273
SELECT - 19 * 13 + - ( + 2 ) + + + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4273
SELECT - 19 * 13 + - ( + 2 ) + + + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 58 + 94
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4275
SELECT ALL - - MAX( DISTINCT + 45 ) + + 19 + + 60 DIV + + COUNT( * )
----
124

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL - - MAX ( DISTINCT + 45 ) + + 19 + + 60 / + + COUNT ( * )
----
124

query I rowsort
SELECT ALL - 76 + + 71
----
-5

query II rowsort
SELECT DISTINCT + + 85 + + + 14 AS col1, 32 AS col2
----
99
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4278
SELECT + MAX( 97 ) * 0 + - + 38 + - CAST( NULL AS SIGNED ) + + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4278
SELECT + MAX ( 97 ) * 0 + - + 38 + - CAST ( NULL AS INTEGER ) + + 98 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( + - 56 )
----
56

query I rowsort
SELECT 33 + + 66 AS col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4281
SELECT - 92 * 51 + CAST( + 90 AS SIGNED )
----
-4602

skipif mysql # not compatible
query I rowsort label-4281
SELECT - 92 * 51 + CAST ( + 90 AS INTEGER )
----
-4602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4282
SELECT CASE SUM( + 59 ) WHEN 30 * 46 THEN + 97 END - CAST( - MAX( DISTINCT + 65 ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4282
SELECT CASE SUM ( + 59 ) WHEN 30 * 46 THEN + 97 END - CAST ( - MAX ( DISTINCT + 65 ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 81 * + + 34 AS col1
----
2754

query I rowsort
SELECT ALL 13 - + 83 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL COUNT( ALL - 32 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL COUNT ( ALL - 32 ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4286
SELECT 71 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4286
SELECT 71 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 78 + - + 80 * + NULLIF ( - NULLIF ( - 16, - COALESCE ( 25, + 75 ) ), + - 5 )
----
-1202

query II rowsort
SELECT ALL 88 AS col1, 22 + - 17 AS col1
----
88
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4289
SELECT DISTINCT 12 DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT 12 / - 51
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4290
SELECT MAX( + 31 ) + + - 98, 9 AS col0
----
-67
9

skipif mysql # not compatible
query II rowsort label-4290
SELECT MAX ( + 31 ) + + - 98, 9 AS col0
----
-67
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4291
SELECT NULLIF ( + 61, - 31 + 52 ) DIV + - 72
----
0

skipif mysql # not compatible
query I rowsort label-4291
SELECT NULLIF ( + 61, - 31 + 52 ) / + - 72
----
0

query I rowsort
SELECT DISTINCT 47 * - + 88 col2
----
-4136

query I rowsort
SELECT DISTINCT 65 * - 59 col2
----
-3835

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4294
SELECT DISTINCT 96 + - + CAST( - 57 AS SIGNED ) * ( 70 ) * - 41 * - - 10
----
-1635804

skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT 96 + - + CAST ( - 57 AS INTEGER ) * ( 70 ) * - 41 * - - 10
----
-1635804

query I rowsort
SELECT ALL 1 + + 10
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT DISTINCT COALESCE ( - - 25, 46 * - - COUNT( * ) - - ( - 3 ) * 89, + COUNT( * ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4296
SELECT DISTINCT COALESCE ( - - 25, 46 * - - COUNT ( * ) - - ( - 3 ) * 89, + COUNT ( * ) ) AS col2
----
25

query II rowsort
SELECT DISTINCT - + 67 + - 64 + + - 70 AS col1, 90
----
-201
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ALL + - COUNT( * ) + - + COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL + - COUNT ( * ) + - + COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT ALL + 57 + 30
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT - CASE 59 WHEN + - COUNT( * ) THEN NULL ELSE - - COUNT( - + NULLIF ( + 68, - 26 + - 11 + 5 ) ) * - + 16 * + 19 * 54 + - - 40 * MAX( - 93 ) END AS col0
----
20136

skipif mysql # not compatible
query I rowsort label-4300
SELECT - CASE 59 WHEN + - COUNT ( * ) THEN NULL ELSE - - COUNT ( - + NULLIF ( + 68, - 26 + - 11 + 5 ) ) * - + 16 * + 19 * 54 + - - 40 * MAX ( - 93 ) END AS col0
----
20136

query I rowsort
SELECT - + 46 + + 15 AS col1
----
-31

query I rowsort
SELECT DISTINCT ( + ( - - 86 ) ) + - 70
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4303
SELECT 96, NULLIF ( + 80, + COUNT( * ) + + 45 ) AS col1
----
96
80

skipif mysql # not compatible
query II rowsort label-4303
SELECT 96, NULLIF ( + 80, + COUNT ( * ) + + 45 ) AS col1
----
96
80

query II rowsort
SELECT + 96, 43 * 71 - 59 + - 73 AS col0
----
96
2921

query II rowsort
SELECT + - 27 - + 31 + - 70 - + ( + 68 ) - + 12, - 81 * + 15 * + + 34 + 33 AS col0
----
-208
-41277

onlyif mysql # aggregate syntax: 
query II rowsort label-4306
SELECT DISTINCT + + COUNT( * ) AS col1, + 14 AS col0
----
1
14

skipif mysql # not compatible
query II rowsort label-4306
SELECT DISTINCT + + COUNT ( * ) AS col1, + 14 AS col0
----
1
14

query II rowsort
SELECT ALL + 70 * - 87 + - - 61 + + + 19, 6 col2
----
-6010
6

onlyif mysql # DIV for integer division: 
query II rowsort label-4308
SELECT - 70 * 46 DIV 34, 79 col0
----
-94
79

skipif mysql # not compatible
query II rowsort label-4308
SELECT - 70 * 46 / 34, 79 col0
----
-94
79

query I rowsort
SELECT ALL - 25 * + 4 AS col1
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4310
SELECT - - COUNT( * ) + 56 / NULLIF ( 31, + COUNT( * ) + + MAX( + 23 ) - + 85 + + + 56 ) + - + ( SUM( + ( - - CAST( NULL AS SIGNED ) ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT - - COUNT ( * ) + 56 / NULLIF ( 31, + COUNT ( * ) + + MAX ( + 23 ) - + 85 + + + 56 ) + - + ( SUM ( + ( - - CAST ( NULL AS INTEGER ) ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4311
SELECT DISTINCT + 27 * - COALESCE ( + COUNT( * ), 5 * - 39 ) + - - ( 22 ) * - - 39 - + - CASE - ( - + 82 ) WHEN 1 THEN NULL WHEN - + CAST( NULL AS SIGNED ) THEN 73 * 10 END * + + 96 + 1 + + ( 6 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT + 27 * - COALESCE ( + COUNT ( * ), 5 * - 39 ) + - - ( 22 ) * - - 39 - + - CASE - ( - + 82 ) WHEN 1 THEN NULL WHEN - + CAST ( NULL AS INTEGER ) THEN 73 * 10 END * + + 96 + 1 + + ( 6 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT ALL + MIN( ALL + 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL + MIN ( ALL + 91 ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT + COUNT( ALL 10 )
----
1

skipif mysql # not compatible
query I rowsort label-4313
SELECT + COUNT ( ALL 10 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4314
SELECT + + COUNT( * ) * - - COALESCE ( + - 48, + 21 + - 42 + + 49 + - 19 + 30 + 29 DIV + + 71 * + 51 ) - + + 46
----
-94

skipif mysql # not compatible
query I rowsort label-4314
SELECT + + COUNT ( * ) * - - COALESCE ( + - 48, + 21 + - 42 + + 49 + - 19 + 30 + 29 / + + 71 * + 51 ) - + + 46
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT ALL + MAX( DISTINCT + 62 ) * + + 89 * - 25 * + MIN( DISTINCT - 99 )
----
13657050

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL + MAX ( DISTINCT + 62 ) * + + 89 * - 25 * + MIN ( DISTINCT - 99 )
----
13657050

query I rowsort
SELECT + 32 * - 37 AS col1
----
-1184

onlyif mysql # aggregate syntax: 
query II rowsort label-4317
SELECT ALL + MIN( - 24 ), - 74 AS col2
----
-24
-74

skipif mysql # not compatible
query II rowsort label-4317
SELECT ALL + MIN ( - 24 ), - 74 AS col2
----
-24
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4318
SELECT - 50 DIV - + 57 AS col2, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-4318
SELECT - 50 / - + 57 AS col2, + COUNT ( * )
----
0
1

query I rowsort
SELECT NULLIF ( - 74, + 49 ) AS col1
----
-74

query I rowsort
SELECT NULLIF ( - 35, 95 )
----
-35

query I rowsort
SELECT NULLIF ( + 57, + 40 * - COALESCE ( 95, 68 ) )
----
57

query I rowsort
SELECT 0 * 11 + 85 col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4323
SELECT ALL + 0 DIV + 87 col2
----
0

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL + 0 / + 87 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4324
SELECT DISTINCT + MAX( - - 97 ) AS col2, COUNT( * )
----
97
1

skipif mysql # not compatible
query II rowsort label-4324
SELECT DISTINCT + MAX ( - - 97 ) AS col2, COUNT ( * )
----
97
1

query I rowsort
SELECT - 31 * - - 83
----
-2573

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT ALL ( - COUNT( ( ( + 9 ) ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL ( - COUNT ( ( ( + 9 ) ) ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - 28 * 31 AS col2
----
-868

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT + 12 * 18 - - - 88 * + + ( 31 ) + ( - MIN( + + 2 ) ) AS col0
----
-2514

skipif mysql # not compatible
query I rowsort label-4328
SELECT + 12 * 18 - - - 88 * + + ( 31 ) + ( - MIN ( + + 2 ) ) AS col0
----
-2514

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4329
SELECT + 0 * 43 * CASE + - 78 WHEN - 39 THEN COALESCE ( - 70, - 94 + CAST( 70 AS DECIMAL ) ) WHEN + 11 * - 87 * CAST( - 6 AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4329
SELECT + 0 * 43 * CASE + - 78 WHEN - 39 THEN COALESCE ( - 70, - 94 + CAST ( 70 AS REAL ) ) WHEN + 11 * - 87 * CAST ( - 6 AS INTEGER ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 10 + 50
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4331
SELECT - COUNT( * ) + + - 9 AS col2, 61 DIV 52 AS col0
----
-10
1

skipif mysql # not compatible
query II rowsort label-4331
SELECT - COUNT ( * ) + + - 9 AS col2, 61 / 52 AS col0
----
-10
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT - NULLIF ( - SUM( DISTINCT - 92 ), + + 86 - + 0 + - COUNT( * ) / 62 + + - 72 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4332
SELECT - NULLIF ( - SUM ( DISTINCT - 92 ), + + 86 - + 0 + - COUNT ( * ) / 62 + + - 72 ) AS col2
----
-92

query I rowsort
SELECT DISTINCT - 29 + 64 + + 67
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4334
SELECT DISTINCT - 65 + 24 * + CASE - 99 WHEN - + CAST( NULL AS SIGNED ) - + + COUNT( * ) / - 15 THEN + 41 * + - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4334
SELECT DISTINCT - 65 + 24 * + CASE - 99 WHEN - + CAST ( NULL AS INTEGER ) - + + COUNT ( * ) / - 15 THEN + 41 * + - 10 END
----
NULL

query I rowsort
SELECT DISTINCT 17 + - 5 AS col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4336
SELECT DISTINCT - - CAST( - 9 AS SIGNED ) + + 78 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-4336
SELECT DISTINCT - - CAST ( - 9 AS INTEGER ) + + 78 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT DISTINCT - NULLIF ( - 18, - + SUM( DISTINCT + - 71 ) ) + + - 76 col0
----
-58

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT - NULLIF ( - 18, - + SUM ( DISTINCT + - 71 ) ) + + - 76 col0
----
-58

query I rowsort
SELECT ALL - ( - 37 ) + - - 42 AS col1
----
79

query I rowsort
SELECT + - 66 - - + ( 78 ) AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4340
SELECT ALL CASE + COUNT( * ) WHEN - + 92 + + + 13 + - 41 * 20 * - 33 + 22 + - + 46 * + ( + CAST( NULL AS SIGNED ) ) + + 32 THEN + 92 * - - 63 + COUNT( + 66 ) * + 7 * + + ( - + 81 ) + + 68 / - COUNT( * ) ELSE + COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL CASE + COUNT ( * ) WHEN - + 92 + + + 13 + - 41 * 20 * - 33 + 22 + - + 46 * + ( + CAST ( NULL AS INTEGER ) ) + + 32 THEN + 92 * - - 63 + COUNT ( + 66 ) * + 7 * + + ( - + 81 ) + + 68 / - COUNT ( * ) ELSE + COUNT ( * ) END AS col0
----
1

query I rowsort
SELECT - + 97 + 61 * - 15 AS col0
----
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT + + SUM( - - 50 ) + 59 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-4342
SELECT + + SUM ( - - 50 ) + 59 AS col2
----
109

query I rowsort
SELECT DISTINCT 30 + - - 60 + 41 + ( + 82 )
----
213

onlyif mysql # aggregate syntax: 
query II rowsort label-4344
SELECT ALL + 11 + - 48 * - 10 * - 28 + - COUNT( * ), - ( + + 24 ) col1
----
-13430
-24

skipif mysql # not compatible
query II rowsort label-4344
SELECT ALL + 11 + - 48 * - 10 * - 28 + - COUNT ( * ), - ( + + 24 ) col1
----
-13430
-24

query I rowsort
SELECT + 18 + - - 3 + 33 AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4346
SELECT ALL CAST( 63 AS SIGNED ) * - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL CAST ( 63 AS INTEGER ) * - COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4347
SELECT ALL 15 - + 1 + COUNT( * ) + - + 76 DIV + - COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL 15 - + 1 + COUNT ( * ) + - + 76 / + - COUNT ( * ) AS col1
----
91

query I rowsort
SELECT ALL - 84 * - 47
----
3948

onlyif mysql # DIV for integer division: 
query I rowsort label-4349
SELECT ALL + 23 DIV 69 - - - 46
----
-46

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL + 23 / 69 - - - 46
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT + 34 * COUNT( * ) + + 28 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-4350
SELECT + 34 * COUNT ( * ) + + 28 AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4351
SELECT CAST( - - 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-4351
SELECT CAST ( - - 12 AS INTEGER )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-4352
SELECT DISTINCT + 85, COALESCE ( - 60, - 13, + 69 + + 46 * - - COUNT( * ) + + 95 * + COUNT( * ) * - 37, - - 49 ) AS col0
----
85
-60

skipif mysql # not compatible
query II rowsort label-4352
SELECT DISTINCT + 85, COALESCE ( - 60, - 13, + 69 + + 46 * - - COUNT ( * ) + + 95 * + COUNT ( * ) * - 37, - - 49 ) AS col0
----
85
-60

query I rowsort
SELECT ALL + 14 * 62 AS col1
----
868

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT + SUM( DISTINCT - + 34 ) * + COUNT( * ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4354
SELECT + SUM ( DISTINCT - + 34 ) * + COUNT ( * ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-4355
SELECT DISTINCT 2 * - 42 * COUNT( * ) AS col2, - 85
----
-84
-85

skipif mysql # not compatible
query II rowsort label-4355
SELECT DISTINCT 2 * - 42 * COUNT ( * ) AS col2, - 85
----
-84
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4356
SELECT NULLIF ( 53, MIN( - 42 ) + + - 84 ) * + 23 + - 3 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT NULLIF ( 53, MIN ( - 42 ) + + - 84 ) * + 23 + - 3 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 27 * - 0 + - 51 + + - 75
----
-126

query I rowsort
SELECT + 36 + + 1 AS col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4359
SELECT - 1 DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-4359
SELECT - 1 / 34
----
0

query I rowsort
SELECT - 18 + 24 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT DISTINCT + ( - SUM( - - 86 ) ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT + ( - SUM ( - - 86 ) ) AS col0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4362
SELECT ALL + 56 * 5 + CAST( 36 AS SIGNED ) * - MAX( DISTINCT - 84 ) + COUNT( * )
----
3305

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL + 56 * 5 + CAST ( 36 AS INTEGER ) * - MAX ( DISTINCT - 84 ) + COUNT ( * )
----
3305

query II rowsort
SELECT NULLIF ( + + 84, - - 11 ), - 47 AS col1
----
84
-47

query I rowsort
SELECT ALL 94 + - 6
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4365
SELECT 96 DIV - - 89 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4365
SELECT 96 / - - 89 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4366
SELECT ALL + 79 + + + CASE + 29 WHEN - + 29 - 63 THEN + 74 * - 75 ELSE 10 + - 89 - + 33 + + + AVG ( + CAST( NULL AS SIGNED ) ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL + 79 + + + CASE + 29 WHEN - + 29 - 63 THEN + 74 * - 75 ELSE 10 + - 89 - + 33 + + + AVG ( + CAST ( NULL AS INTEGER ) ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ALL + COUNT( DISTINCT + 0 ) + - 66 * COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL + COUNT ( DISTINCT + 0 ) + - 66 * COUNT ( * )
----
-65

query I rowsort
SELECT ALL 61 * - 3 + + 81 - + - 10 + 9 * + + 48 * + + 17 * - 18 col0
----
-132284

query I rowsort
SELECT DISTINCT + 73 + - - 17 * + 17
----
362

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT - + MIN( - - 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-4370
SELECT - + MIN ( - - 44 ) AS col0
----
-44

query I rowsort
SELECT DISTINCT - NULLIF ( + 96, + 95 * + 35 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ALL + 40 + + ( + COUNT( * ) ) * - MIN( DISTINCT - + 35 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL + 40 + + ( + COUNT ( * ) ) * - MIN ( DISTINCT - + 35 ) AS col0
----
75

query I rowsort
SELECT 75 * - - 90
----
6750

query I rowsort
SELECT DISTINCT + + 83 + - 40
----
43

query II rowsort
SELECT ALL + 23, 48 AS col0
----
23
48

query I rowsort
SELECT ALL + 80 - - + 81 AS col1
----
161

query I rowsort
SELECT ALL - ( - + 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT ALL + 99 - ( + - COUNT( * ) ) - COUNT( * ) + - 71
----
28

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL + 99 - ( + - COUNT ( * ) ) - COUNT ( * ) + - 71
----
28

query I rowsort
SELECT 77 * - - 12 AS col2
----
924

onlyif mysql # DIV for integer division: 
query I rowsort label-4380
SELECT ALL 48 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL 48 / + 58
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4381
SELECT COALESCE ( - - 18, 22 - 19 DIV - 12 ) * - 77 AS col0
----
-1386

skipif mysql # not compatible
query I rowsort label-4381
SELECT COALESCE ( - - 18, 22 - 19 / - 12 ) * - 77 AS col0
----
-1386

onlyif mysql # DIV for integer division: 
query I rowsort label-4382
SELECT - 70 DIV + 72 - + 95 + - - 22 DIV 55 * - + 5
----
-95

skipif mysql # not compatible
query I rowsort label-4382
SELECT - 70 / + 72 - + 95 + - - 22 / 55 * - + 5
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4383
SELECT + 54 AS col2, CASE + COUNT( * ) WHEN - 29 THEN + + 52 WHEN 50 THEN - CAST( - - 24 AS SIGNED ) END AS col2
----
54
NULL

skipif mysql # not compatible
query II rowsort label-4383
SELECT + 54 AS col2, CASE + COUNT ( * ) WHEN - 29 THEN + + 52 WHEN 50 THEN - CAST ( - - 24 AS INTEGER ) END AS col2
----
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT ALL - CASE - 25 WHEN 26 THEN + COALESCE ( COALESCE ( - ( ( + 70 ) ), CASE + 82 WHEN - SUM( - 49 ) THEN - 83 END, + + 39 ), 62 ) WHEN - CASE + 30 WHEN - 56 + + - 63 + + 55 + + COUNT( * ) / - 70 THEN NULL ELSE + 32 + 49 END + AVG ( - 0 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL - CASE - 25 WHEN 26 THEN + COALESCE ( COALESCE ( - ( ( + 70 ) ), CASE + 82 WHEN - SUM ( - 49 ) THEN - 83 END, + + 39 ), 62 ) WHEN - CASE + 30 WHEN - 56 + + - 63 + + 55 + + COUNT ( * ) / - 70 THEN NULL ELSE + 32 + 49 END + AVG ( - 0 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - ( 71 ) * - 29
----
2059

onlyif mysql # DIV for integer division: 
query I rowsort label-4386
SELECT 62 DIV - 93 * - 85 DIV 26
----
0

skipif mysql # not compatible
query I rowsort label-4386
SELECT 62 / - 93 * - 85 / 26
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4387
SELECT ALL - 33 AS col1, COUNT( * )
----
-33
1

skipif mysql # not compatible
query II rowsort label-4387
SELECT ALL - 33 AS col1, COUNT ( * )
----
-33
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT ALL 61 * SUM( - 78 ) AS col1
----
-4758

skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL 61 * SUM ( - 78 ) AS col1
----
-4758

query II rowsort
SELECT 78 col2, ( + 20 ) col1
----
78
20

query II rowsort
SELECT 86, - 54 AS col0
----
86
-54

query I rowsort
SELECT ALL 54 + - 54 + - + 3 * - ( - 86 ) + + + 84 * + 19
----
1338

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4392
SELECT 59 AS col2, SUM( + 12 ) + 35 * - COALESCE ( 34, 75, - COUNT( DISTINCT 72 ) + + 69 + - 29 * 75, CAST( NULL AS SIGNED ) ) * - 79 * 78
----
59
7332792

skipif mysql # not compatible
query II rowsort label-4392
SELECT 59 AS col2, SUM ( + 12 ) + 35 * - COALESCE ( 34, 75, - COUNT ( DISTINCT 72 ) + + 69 + - 29 * 75, CAST ( NULL AS INTEGER ) ) * - 79 * 78
----
59
7332792

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ( - 40 ) * + + COUNT( * ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-4393
SELECT ( - 40 ) * + + COUNT ( * ) AS col2
----
-40

query I rowsort
SELECT ALL 31 + - ( + - 10 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT + COUNT( * ) * - + 28 + + 42 - + 80 col0
----
-66

skipif mysql # not compatible
query I rowsort label-4395
SELECT + COUNT ( * ) * - + 28 + + 42 - + 80 col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4396
SELECT ALL - COUNT( DISTINCT - CAST( 3 AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL - COUNT ( DISTINCT - CAST ( 3 AS INTEGER ) ) AS col2
----
-1

query I rowsort
SELECT ( NULLIF ( + COALESCE ( - 85, - 83, + 52 ), + + 51 ) ) * + - 28 AS col1
----
2380

query I rowsort
SELECT ALL 95 + 72 + - + 55
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4399
SELECT DISTINCT 53 + ( CAST( NULL AS SIGNED ) ) * + + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT 53 + ( CAST ( NULL AS INTEGER ) ) * + + 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4400
SELECT + 40 col2, - 23 * + COUNT( + + 65 ) - + COUNT( * ) AS col0
----
40
-24

skipif mysql # not compatible
query II rowsort label-4400
SELECT + 40 col2, - 23 * + COUNT ( + + 65 ) - + COUNT ( * ) AS col0
----
40
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT ALL - NULLIF ( - - 77, 11 + NULLIF ( - MAX( DISTINCT - - 91 ), + 79 * + 49 * - + 2 ) ) + + 10
----
-67

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL - NULLIF ( - - 77, 11 + NULLIF ( - MAX ( DISTINCT - - 91 ), + 79 * + 49 * - + 2 ) ) + + 10
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-4402
SELECT DISTINCT - 38 AS col0, + 91 + COUNT( * )
----
-38
92

skipif mysql # not compatible
query II rowsort label-4402
SELECT DISTINCT - 38 AS col0, + 91 + COUNT ( * )
----
-38
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT ALL COUNT( * ) * - - 70
----
70

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL COUNT ( * ) * - - 70
----
70

query I rowsort
SELECT 12 * - 6 AS col1
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4405
SELECT + 22 * + + MAX( DISTINCT - CAST( + - 91 AS SIGNED ) ) * - - 40 + - 42 AS col0
----
80038

skipif mysql # not compatible
query I rowsort label-4405
SELECT + 22 * + + MAX ( DISTINCT - CAST ( + - 91 AS INTEGER ) ) * - - 40 + - 42 AS col0
----
80038

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT ALL 90 + COUNT( * ) * 30
----
120

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL 90 + COUNT ( * ) * 30
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT - COALESCE ( 61, COUNT( * ) + - ( + 8 ) ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-4407
SELECT - COALESCE ( 61, COUNT ( * ) + - ( + 8 ) ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL - - 93 + 43 + + 87 * + 60 * + + NULLIF ( + - 0, - 85 ) + + 72 - + 34 + - + COUNT( * ) AS col1
----
173

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL - - 93 + 43 + + 87 * + 60 * + + NULLIF ( + - 0, - 85 ) + + 72 - + 34 + - + COUNT ( * ) AS col1
----
173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4409
SELECT + CAST( NULL AS SIGNED ) * 24 + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4409
SELECT + CAST ( NULL AS INTEGER ) * 24 + 31 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4410
SELECT ALL CAST( + 88 AS SIGNED ) col2
----
88

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL CAST ( + 88 AS INTEGER ) col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4411
SELECT + COUNT( * ) + + CASE WHEN - 5 IS NOT NULL THEN + CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4411
SELECT + COUNT ( * ) + + CASE WHEN - 5 IS NOT NULL THEN + CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 16, - 27 + 9 ) - + + 52 + 85
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-4413
SELECT ALL + 56 AS col1, 88 + + CASE 99 WHEN - + 54 THEN + ( + 18 ) + AVG ( ALL 58 ) ELSE NULL END / - 68 + 25 / + COUNT( * )
----
56
NULL

skipif mysql # not compatible
query II rowsort label-4413
SELECT ALL + 56 AS col1, 88 + + CASE 99 WHEN - + 54 THEN + ( + 18 ) + AVG ( ALL 58 ) ELSE NULL END / - 68 + 25 / + COUNT ( * )
----
56
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4414
SELECT ALL - + ( MAX( - 26 ) ) DIV + NULLIF ( - 88, - + 48 ) * + 40
----
0

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL - + ( MAX ( - 26 ) ) / + NULLIF ( - 88, - + 48 ) * + 40
----
0

query I rowsort
SELECT 59 - 89 + + - 77 + - - ( - 76 ) * + - 65 AS col2
----
4833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4416
SELECT - 54 col0, 98 * + 97 * - CASE + - 37 WHEN - + CAST( + 87 AS SIGNED ) + - 57 THEN NULL WHEN - - 80 / - 17 - 65 * + MIN( + 32 ) THEN NULL ELSE + + 19 END AS col2
----
-54
-180614

skipif mysql # not compatible
query II rowsort label-4416
SELECT - 54 col0, 98 * + 97 * - CASE + - 37 WHEN - + CAST ( + 87 AS INTEGER ) + - 57 THEN NULL WHEN - - 80 / - 17 - 65 * + MIN ( + 32 ) THEN NULL ELSE + + 19 END AS col2
----
-54
-180614

query I rowsort
SELECT - 50 + + + ( - 71 )
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4418
SELECT 51 + - + SUM( ALL - 95 ) * + + 4 + + CAST( + - COUNT( * ) AS SIGNED ) - + - 32 + 99 + + - CAST( NULL AS SIGNED ) + - - 67 - - - CAST( - ( NULLIF ( - 96, + + 56 * - COUNT( * ) + + 86 + - COALESCE ( NULLIF ( 7, + - 75 ), 98, + 37 + 49 ) / CASE - 2 WHEN CASE 56 WHEN 38 THEN NULL WHEN - 95 + - CAST( NULL AS SIGNED ) * 18 THEN NULL WHEN + 49 THEN 42 END * 83 THEN + CASE + 24 WHEN COUNT( + 21 ) + - 77 THEN - SUM( ALL 72 ) + - COUNT( * ) END ELSE NULL END + - ( 16 + - COUNT( * ) ) ) ) AS SIGNED ) + + 4 * ( 49 ) * 83 * + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4418
SELECT 51 + - + SUM ( ALL - 95 ) * + + 4 + + CAST ( + - COUNT ( * ) AS INTEGER ) - + - 32 + 99 + + - CAST ( NULL AS INTEGER ) + - - 67 - - - CAST ( - ( NULLIF ( - 96, + + 56 * - COUNT ( * ) + + 86 + - COALESCE ( NULLIF ( 7, + - 75 ), 98, + 37 + 49 ) / CASE - 2 WHEN CASE 56 WHEN 38 THEN NULL WHEN - 95 + - CAST ( NULL AS INTEGER ) * 18 THEN NULL WHEN + 49 THEN 42 END * 83 THEN + CASE + 24 WHEN COUNT ( + 21 ) + - 77 THEN - SUM ( ALL 72 ) + - COUNT ( * ) END ELSE NULL END + - ( 16 + - COUNT ( * ) ) ) ) AS INTEGER ) + + 4 * ( 49 ) * 83 * + 11 AS col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 80, - 43 ) AS col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4420
SELECT + CAST( NULL AS SIGNED ) + - + 75 + - - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT + CAST ( NULL AS INTEGER ) + - + 75 + - - 32 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT - 25 * - SUM( - ( 87 ) ) / + CASE 74 WHEN - COALESCE ( COUNT( * ), - ( - - 72 ) / - + 44 + 40 * 9 ) THEN - COUNT( * ) * - COUNT( * ) * - COUNT( * ) + 43 WHEN + - 68 THEN NULL END * - 85 + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4421
SELECT - 25 * - SUM ( - ( 87 ) ) / + CASE 74 WHEN - COALESCE ( COUNT ( * ), - ( - - 72 ) / - + 44 + 40 * 9 ) THEN - COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ) + 43 WHEN + - 68 THEN NULL END * - 85 + 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT COUNT( * ) + 72 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-4422
SELECT COUNT ( * ) + 72 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT DISTINCT - + 72 * + 33 * - COUNT( * ) AS col2
----
2376

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT - + 72 * + 33 * - COUNT ( * ) AS col2
----
2376

query I rowsort
SELECT DISTINCT 91 + - - 19
----
110

query I rowsort
SELECT DISTINCT 1 * + + 55 * - - 99 + - 45
----
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT MAX( ALL - + 87 ) + - COUNT( * ) * + - 72 * 8 AS col2
----
489

skipif mysql # not compatible
query I rowsort label-4426
SELECT MAX ( ALL - + 87 ) + - COUNT ( * ) * + - 72 * 8 AS col2
----
489

onlyif mysql # DIV for integer division: 
query I rowsort label-4427
SELECT 97 DIV + 79
----
1

skipif mysql # not compatible
query I rowsort label-4427
SELECT 97 / + 79
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT 42 * + + COUNT( * ) + + - 66 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-4428
SELECT 42 * + + COUNT ( * ) + + - 66 AS col0
----
-24

query I rowsort
SELECT ALL 88 * COALESCE ( 49, + 71, - 86 ) + 74
----
4386

onlyif mysql # aggregate syntax: 
query II rowsort label-4430
SELECT SUM( 61 ) AS col2, - 86
----
61
-86

skipif mysql # not compatible
query II rowsort label-4430
SELECT SUM ( 61 ) AS col2, - 86
----
61
-86

query I rowsort
SELECT ALL 83 * + 75
----
6225

query I rowsort
SELECT + 89 + - - 75
----
164

query I rowsort
SELECT ALL - 1 * + - 48 + - 39 * + + 37 AS col0
----
-1395

query I rowsort
SELECT DISTINCT - 70 * - 80
----
5600

query I rowsort
SELECT + 83 + + 66
----
149

query I rowsort
SELECT + 42 * - + 24 * 49
----
-49392

query I rowsort
SELECT ALL 47 * - - 85 * 33 AS col1
----
131835

query I rowsort
SELECT DISTINCT 0 * 56 + + - ( + 64 ) * + - 78 * - 56
----
-279552

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT COUNT( + ( 42 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4439
SELECT COUNT ( + ( 42 ) )
----
1

query I rowsort
SELECT - 62 * + 71 + + + 99 * 31
----
-1333

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT ALL - ( - + COALESCE ( 36, + + 63, - 94 - - NULLIF ( - 82, + 30 + + ( + COUNT( * ) ) + 6 ) ) ) * + 56 - + 78 * 4 AS col0
----
1704

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL - ( - + COALESCE ( 36, + + 63, - 94 - - NULLIF ( - 82, + 30 + + ( + COUNT ( * ) ) + 6 ) ) ) * + 56 - + 78 * 4 AS col0
----
1704

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4442
SELECT + + 35 * + - 95 * + 19 * 84 + - - CAST( NULL AS DECIMAL ) + + 71 * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT + + 35 * + - 95 * + 19 * 84 + - - CAST ( NULL AS REAL ) + + 71 * + 34
----
NULL

query I rowsort
SELECT + + CASE - - 27 WHEN ( 44 ) * + + 47 * 95 + - 75 THEN NULL WHEN + 20 * + 28 * 60 THEN ( - + 17 ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT - 40 + + - COUNT( * ) + + 60 * - 6 AS col0
----
-401

skipif mysql # not compatible
query I rowsort label-4444
SELECT - 40 + + - COUNT ( * ) + + 60 * - 6 AS col0
----
-401

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT ALL NULLIF ( - 14, 78 ) - MIN( - 48 ) * + + COUNT( 49 ) + + - 29 + + + 10 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL NULLIF ( - 14, 78 ) - MIN ( - 48 ) * + + COUNT ( 49 ) + + - 29 + + + 10 AS col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4446
SELECT ALL - 58 * + NULLIF ( 86, + 20 * 35 - + COALESCE ( 4, - + CASE + 96 WHEN ( ( CAST( NULL AS SIGNED ) ) ) + - 22 THEN - + 8 + - 80 * + + 71 * + 81 * + + AVG ( - 88 ) ELSE - CAST( + - 62 AS SIGNED ) END * - + 30 ) ) + 97
----
-4891

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL - 58 * + NULLIF ( 86, + 20 * 35 - + COALESCE ( 4, - + CASE + 96 WHEN ( ( CAST ( NULL AS INTEGER ) ) ) + - 22 THEN - + 8 + - 80 * + + 71 * + 81 * + + AVG ( - 88 ) ELSE - CAST ( + - 62 AS INTEGER ) END * - + 30 ) ) + 97
----
-4891

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT DISTINCT - COUNT( * ) * - ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT - COUNT ( * ) * - ( COUNT ( * ) )
----
1

query I rowsort
SELECT + 64 * 47 * + 96 - - - 3
----
288765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4449
SELECT 3 * - 4 * 4 + + 81 + + + 80 * 45 DIV + NULLIF ( - 84, SUM( - - 95 ) ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-4449
SELECT 3 * - 4 * 4 + + 81 + + + 80 * 45 / + NULLIF ( - 84, SUM ( - - 95 ) ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4450
SELECT ALL - 97 * + + 8 * 36 + + + 5 + 45 col2, COUNT( * )
----
-27886
1

skipif mysql # not compatible
query II rowsort label-4450
SELECT ALL - 97 * + + 8 * 36 + + + 5 + 45 col2, COUNT ( * )
----
-27886
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT DISTINCT + CASE + ( - - 12 ) WHEN + - NULLIF ( - 16, - 10 ) * + 38 THEN - 9 WHEN + ( + COUNT( DISTINCT + + 6 ) ) THEN NULL ELSE + - 49 END AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT + CASE + ( - - 12 ) WHEN + - NULLIF ( - 16, - 10 ) * + 38 THEN - 9 WHEN + ( + COUNT ( DISTINCT + + 6 ) ) THEN NULL ELSE + - 49 END AS col0
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4452
SELECT ALL CASE - 49 WHEN + + 48 / COUNT( DISTINCT ( - 51 ) ) + - 75 + - 13 * 57 THEN + COUNT( * ) WHEN + 91 THEN NULL END * + 88 * + + 4 + + CAST( + ( 87 ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL CASE - 49 WHEN + + 48 / COUNT ( DISTINCT ( - 51 ) ) + - 75 + - 13 * 57 THEN + COUNT ( * ) WHEN + 91 THEN NULL END * + 88 * + + 4 + + CAST ( + ( 87 ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4453
SELECT + ( + + 29 ) DIV - - 28 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4453
SELECT + ( + + 29 ) / - - 28 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4454
SELECT DISTINCT - COUNT( * ) + 43 + + + CASE - + CAST( NULL AS SIGNED ) WHEN - 30 THEN 42 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT - COUNT ( * ) + 43 + + + CASE - + CAST ( NULL AS INTEGER ) WHEN - 30 THEN 42 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT ALL + COUNT( * ) + + 77 + 14 col0
----
92

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL + COUNT ( * ) + + 77 + 14 col0
----
92

query I rowsort
SELECT DISTINCT + 73 + - 80 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT ALL + 55 + - 24 * + 29 * - + COUNT( * )
----
751

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL + 55 + - 24 * + 29 * - + COUNT ( * )
----
751

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT DISTINCT NULLIF ( COUNT( * ), 57 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT NULLIF ( COUNT ( * ), 57 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4459
SELECT ALL - 83 * + COALESCE ( + + 48, COUNT( * ) + + NULLIF ( + - CAST( NULL AS SIGNED ), - 19 ) - + 85 ) AS col0, COUNT( 68 ) col1
----
-3984
1

skipif mysql # not compatible
query II rowsort label-4459
SELECT ALL - 83 * + COALESCE ( + + 48, COUNT ( * ) + + NULLIF ( + - CAST ( NULL AS INTEGER ), - 19 ) - + 85 ) AS col0, COUNT ( 68 ) col1
----
-3984
1

query I rowsort
SELECT - 13 * 81
----
-1053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4461
SELECT + ( NULLIF ( 55, COUNT( - 0 ) ) ) / + CAST( NULL AS SIGNED ) + + COUNT( * ) * + + 69 * CAST( NULL AS SIGNED ) - 35 * - 19 - - 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT + ( NULLIF ( 55, COUNT ( - 0 ) ) ) / + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + + 69 * CAST ( NULL AS INTEGER ) - 35 * - 19 - - 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4462
SELECT ALL + COUNT( * ) AS col0, 48 DIV + COUNT( * )
----
1
48

skipif mysql # not compatible
query II rowsort label-4462
SELECT ALL + COUNT ( * ) AS col0, 48 / + COUNT ( * )
----
1
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4463
SELECT DISTINCT + 55, COALESCE ( - - 9, 27 * - - 96 + 65 ) - + CAST( - 95 AS SIGNED ) * 48 AS col0
----
55
4569

skipif mysql # not compatible
query II rowsort label-4463
SELECT DISTINCT + 55, COALESCE ( - - 9, 27 * - - 96 + 65 ) - + CAST ( - 95 AS INTEGER ) * 48 AS col0
----
55
4569

onlyif mysql # DIV for integer division: 
query I rowsort label-4464
SELECT DISTINCT - 57 DIV + 98 * + - 18 * 63 + - 7 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT - 57 / + 98 * + - 18 * 63 + - 7 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT ( ( + COUNT( 43 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4465
SELECT ( ( + COUNT ( 43 ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT DISTINCT 96 * - 75 * + ( - COUNT( DISTINCT - ( + 73 ) ) ) * - 68 - + - 32
----
-489568

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT 96 * - 75 * + ( - COUNT ( DISTINCT - ( + 73 ) ) ) * - 68 - + - 32
----
-489568

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT DISTINCT + MIN( + - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT + MIN ( + - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT - 82 * + MAX( ALL 38 )
----
-3116

skipif mysql # not compatible
query I rowsort label-4468
SELECT - 82 * + MAX ( ALL 38 )
----
-3116

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT ALL MAX( + 71 ) * + 76 col2
----
5396

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL MAX ( + 71 ) * + 76 col2
----
5396

query II rowsort
SELECT DISTINCT + 80 col1, 99 - 93
----
80
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4471
SELECT ALL + - ( NULLIF ( + 84, + + ( + MAX( - NULLIF ( - + NULLIF ( + + 65, + 53 + + 81 ), + - 33 ) ) ) + - + AVG ( ALL + 43 ) * + - 54 * - CAST( + 39 AS SIGNED ) * + 57 ) )
----
-84

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL + - ( NULLIF ( + 84, + + ( + MAX ( - NULLIF ( - + NULLIF ( + + 65, + 53 + + 81 ), + - 33 ) ) ) + - + AVG ( ALL + 43 ) * + - 54 * - CAST ( + 39 AS INTEGER ) * + 57 ) )
----
-84

query I rowsort
SELECT ALL - 62 * 85 AS col2
----
-5270

query I rowsort
SELECT ALL 12 * + 12 AS col0
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4474
SELECT + 82 * - - 55 DIV + COUNT( * )
----
4510

skipif mysql # not compatible
query I rowsort label-4474
SELECT + 82 * - - 55 / + COUNT ( * )
----
4510

query I rowsort
SELECT + ( + - 39 ) * - + 33
----
1287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4476
SELECT DISTINCT + 59 * + NULLIF ( + 26, - CAST( NULL AS SIGNED ) ) * - 45 * 92 + ( ( + + 64 ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT + 59 * + NULLIF ( + 26, - CAST ( NULL AS INTEGER ) ) * - 45 * 92 + ( ( + + 64 ) ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4477
SELECT - - 28 * - 82 + + - 46 + - 56 DIV - 26
----
-2340

skipif mysql # not compatible
query I rowsort label-4477
SELECT - - 28 * - 82 + + - 46 + - 56 / - 26
----
-2340

query II rowsort
SELECT - 10 AS col0, - ( 21 ) * - 40 - + 59
----
-10
781

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT ALL + 85 * + NULLIF ( - COUNT( - - 61 ), + 29 * 60 + + + 1 )
----
-85

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL + 85 * + NULLIF ( - COUNT ( - - 61 ), + 29 * 60 + + + 1 )
----
-85

query I rowsort
SELECT - + ( - + 40 )
----
40

query I rowsort
SELECT + 12 + 78 + + ( + + 17 )
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4482
SELECT + - 5 + - - COALESCE ( - + 25, - + 16, - ( - 63 ) + + - CAST( 96 AS SIGNED ) + + 91 * - 35 * 69 + 98 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-4482
SELECT + - 5 + - - COALESCE ( - + 25, - + 16, - ( - 63 ) + + - CAST ( 96 AS INTEGER ) + + 91 * - 35 * 69 + 98 ) AS col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4483
SELECT ALL + - NULLIF ( CAST( NULL AS SIGNED ), + 51 + - - 90 ) + 91 + - MAX( 71 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL + - NULLIF ( CAST ( NULL AS INTEGER ), + 51 + - - 90 ) + 91 + - MAX ( 71 ) AS col2
----
NULL

query I rowsort
SELECT ALL - - 71 + - + 64
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4485
SELECT + + COUNT( * ) + + - COALESCE ( + 6, + + 58 DIV + 11, 99 * MIN( - 9 ) ) AS col2, - 22 - - - 51 AS col0
----
-5
-73

skipif mysql # not compatible
query II rowsort label-4485
SELECT + + COUNT ( * ) + + - COALESCE ( + 6, + + 58 / + 11, 99 * MIN ( - 9 ) ) AS col2, - 22 - - - 51 AS col0
----
-5
-73

query I rowsort
SELECT ALL + 25 * + - 22 * - 65 AS col2
----
35750

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT DISTINCT 73 * + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-4487
SELECT DISTINCT 73 * + COUNT ( * )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT + MAX( NULLIF ( + 79, + 13 ) ) + + 33
----
112

skipif mysql # not compatible
query I rowsort label-4488
SELECT + MAX ( NULLIF ( + 79, + 13 ) ) + + 33
----
112

query I rowsort
SELECT ALL 67 + - 15 AS col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4490
SELECT 81 + NULLIF ( - - 33, - 45 * - 69 ) * 61 * - 3 * + 99 + COUNT( * ) + COUNT( * ) * - 91 * 92 + 26 DIV - 42 * - COALESCE ( - + 82, - + 61 ) + - + MAX( - 45 )
----
-606106

skipif mysql # not compatible
query I rowsort label-4490
SELECT 81 + NULLIF ( - - 33, - 45 * - 69 ) * 61 * - 3 * + 99 + COUNT ( * ) + COUNT ( * ) * - 91 * 92 + 26 / - 42 * - COALESCE ( - + 82, - + 61 ) + - + MAX ( - 45 )
----
-606106

query I rowsort
SELECT DISTINCT 37 * - 66 AS col1
----
-2442

query I rowsort
SELECT ( - 94 ) + + + 59 - 56 + - 9 col1
----
-100

query I rowsort
SELECT ( - 77 ) * + - 22
----
1694

onlyif mysql # aggregate syntax: 
query II rowsort label-4494
SELECT ALL 31 - + 86 * + 74 * + - 42 AS col1, 20 * 20 + - - MAX( - - 49 ) + + + 38 * - 36 col2
----
267319
-919

skipif mysql # not compatible
query II rowsort label-4494
SELECT ALL 31 - + 86 * + 74 * + - 42 AS col1, 20 * 20 + - - MAX ( - - 49 ) + + + 38 * - 36 col2
----
267319
-919

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4495
SELECT 16 + - CAST( NULL AS SIGNED ) + + COALESCE ( ( - 36 ), + COALESCE ( - 29, + 78 / + + 3 / + 28 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4495
SELECT 16 + - CAST ( NULL AS INTEGER ) + + COALESCE ( ( - 36 ), + COALESCE ( - 29, + 78 / + + 3 / + 28 ) )
----
NULL

query I rowsort
SELECT ( - NULLIF ( + + 75, 48 ) ) * + 65 + - 68 AS col0
----
-4943

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT 16 * - COUNT( * ) + - 19
----
-35

skipif mysql # not compatible
query I rowsort label-4497
SELECT 16 * - COUNT ( * ) + - 19
----
-35

query II rowsort
SELECT ALL - ( + + 12 ) AS col0, + 63
----
-12
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4499
SELECT - 54 / + + 79 + + - CAST( NULL AS SIGNED ) * + + COUNT( + 91 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT - 54 / + + 79 + + - CAST ( NULL AS INTEGER ) * + + COUNT ( + 91 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - CASE - 62 WHEN 9 THEN + + 10 * - 53 WHEN + 68 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT ALL - COUNT( + - 44 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL - COUNT ( + - 44 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT ALL - + MAX( - - 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL - + MAX ( - - 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT DISTINCT + 63 * NULLIF ( 91, + MAX( ALL - 48 ) + 57 * - + ( - + 54 ) )
----
5733

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT + 63 * NULLIF ( 91, + MAX ( ALL - 48 ) + 57 * - + ( - + 54 ) )
----
5733

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT + 80 * - COUNT( * ) + ( + 71 ) * 6 * + 84 AS col1
----
35704

skipif mysql # not compatible
query I rowsort label-4504
SELECT + 80 * - COUNT ( * ) + ( + 71 ) * 6 * + 84 AS col1
----
35704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4505
SELECT - + COUNT( * ) * + 54 DIV 29 DIV 49 + - COUNT( * ) + + 59 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-4505
SELECT - + COUNT ( * ) * + 54 / 29 / 49 + - COUNT ( * ) + + 59 AS col1
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4506
SELECT - 46 / - ( - CASE + 18 WHEN CAST( NULL AS DECIMAL ) THEN - - 2 + + + 34 + + 37 WHEN 20 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4506
SELECT - 46 / - ( - CASE + 18 WHEN CAST ( NULL AS REAL ) THEN - - 2 + + + 34 + + 37 WHEN 20 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4507
SELECT 57 + 63, + 37 * + COUNT( * ) AS col2
----
120
37

skipif mysql # not compatible
query II rowsort label-4507
SELECT 57 + 63, + 37 * + COUNT ( * ) AS col2
----
120
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT + + SUM( 25 )
----
25

skipif mysql # not compatible
query I rowsort label-4508
SELECT + + SUM ( 25 )
----
25

query II rowsort
SELECT ALL - ( + 14 ) AS col0, - 55
----
-14
-55

query I rowsort
SELECT ALL - 14 + + 20 col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4511
SELECT DISTINCT - 56 * 29, COUNT( * ) * + + ( - - 27 ) AS col1
----
-1624
27

skipif mysql # not compatible
query II rowsort label-4511
SELECT DISTINCT - 56 * 29, COUNT ( * ) * + + ( - - 27 ) AS col1
----
-1624
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT ALL - - COUNT( * ) + + + 44
----
45

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL - - COUNT ( * ) + + + 44
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT - 18 * - + 90 - - COUNT( * ) + 99 + - 82 * - + COALESCE ( - - 31, 83 ) * 96 + + 34 AS col1
----
245786

skipif mysql # not compatible
query I rowsort label-4513
SELECT - 18 * - + 90 - - COUNT ( * ) + 99 + - 82 * - + COALESCE ( - - 31, 83 ) * 96 + + 34 AS col1
----
245786

query I rowsort
SELECT ALL + - NULLIF ( - - 17, + + 43 ) + - + 39 * + 34 AS col0
----
-1343

onlyif mysql # DIV for integer division: 
query II rowsort label-4515
SELECT DISTINCT COALESCE ( 24, + 71, + 92 ) AS col0, 7 * 81 - + 18 DIV 22
----
24
567

skipif mysql # not compatible
query II rowsort label-4515
SELECT DISTINCT COALESCE ( 24, + 71, + 92 ) AS col0, 7 * 81 - + 18 / 22
----
24
567

query I rowsort
SELECT ALL 91 + + - 48
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT SUM( 69 ) * 16
----
1104

skipif mysql # not compatible
query I rowsort label-4517
SELECT SUM ( 69 ) * 16
----
1104

query I rowsort
SELECT DISTINCT 90 - + 75 AS col2
----
15

query I rowsort
SELECT 80 + + 57 AS col1
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4520
SELECT CAST( NULL AS SIGNED ) * + + 86 * - 38 AS col0, 69 + - 30 + + 1 AS col1
----
NULL
40

skipif mysql # not compatible
query II rowsort label-4520
SELECT CAST ( NULL AS INTEGER ) * + + 86 * - 38 AS col0, 69 + - 30 + + 1 AS col1
----
NULL
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4521
SELECT ALL NULLIF ( 27, + CAST( 52 AS SIGNED ) ) * COALESCE ( - 79, - 26 ) + + 41 AS col1
----
-2092

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL NULLIF ( 27, + CAST ( 52 AS INTEGER ) ) * COALESCE ( - 79, - 26 ) + + 41 AS col1
----
-2092

query I rowsort
SELECT 6 - - 18 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT MAX( 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-4523
SELECT MAX ( 43 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT MIN( + + 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4524
SELECT MIN ( + + 92 ) AS col2
----
92

query I rowsort
SELECT - 3 * + 11
----
-33

query I rowsort
SELECT + 88 * + 66 + + + 56 + - 55 - + 78 * - 25 - - 32
----
7791

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4527
SELECT - 17 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT - 17 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4528
SELECT - - COUNT( * ) DIV 7 - - + CAST( - 3 AS SIGNED ) - - 45
----
42

skipif mysql # not compatible
query I rowsort label-4528
SELECT - - COUNT ( * ) / 7 - - + CAST ( - 3 AS INTEGER ) - - 45
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4529
SELECT + CAST( 50 AS SIGNED ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4529
SELECT + CAST ( 50 AS INTEGER ) AS col2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4530
SELECT + 53 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4530
SELECT + 53 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT ALL - COUNT( DISTINCT + 31 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL - COUNT ( DISTINCT + 31 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4532
SELECT ALL + 49 + + CAST( NULL AS DECIMAL ) * - 42 + ( + 46 ) + + 3 * + - 99 * ( + CAST( + + ( + ( 64 ) ) AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL + 49 + + CAST ( NULL AS REAL ) * - 42 + ( + 46 ) + + 3 * + - 99 * ( + CAST ( + + ( + ( 64 ) ) AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 69 + 83 col0
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4534
SELECT - COUNT( * ) DIV 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4534
SELECT - COUNT ( * ) / 89 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT - ( + + COALESCE ( - + SUM( - 98 ), - COUNT( * ) ) )
----
-98

skipif mysql # not compatible
query I rowsort label-4535
SELECT - ( + + COALESCE ( - + SUM ( - 98 ), - COUNT ( * ) ) )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT - - NULLIF ( + 55, - + 53 + - 25 + 83 * - + 41 * MAX( + 95 ) ) col2
----
55

skipif mysql # not compatible
query I rowsort label-4536
SELECT - - NULLIF ( + 55, - + 53 + - 25 + 83 * - + 41 * MAX ( + 95 ) ) col2
----
55

query I rowsort
SELECT - - 28 + + 51 AS col1
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4538
SELECT ALL - NULLIF ( + 39, COUNT( * ) + + 31 + + 67 * - + 97 * - - 94 / - CASE + 72 WHEN + + NULLIF ( 9, - + 74 * + + 72 ) * 91 + - NULLIF ( + SUM( DISTINCT - 45 ), + 83 + 62 + - 58 + + CAST( NULL AS SIGNED ) / 83 - + 47 * NULLIF ( - COUNT( * ), 3 * - 56 + 92 ) ) + + 32 THEN 52 + - 65 * 22 ELSE 1 END ) * 19
----
-741

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL - NULLIF ( + 39, COUNT ( * ) + + 31 + + 67 * - + 97 * - - 94 / - CASE + 72 WHEN + + NULLIF ( 9, - + 74 * + + 72 ) * 91 + - NULLIF ( + SUM ( DISTINCT - 45 ), + 83 + 62 + - 58 + + CAST ( NULL AS INTEGER ) / 83 - + 47 * NULLIF ( - COUNT ( * ), 3 * - 56 + 92 ) ) + + 32 THEN 52 + - 65 * 22 ELSE 1 END ) * 19
----
-741

query I rowsort
SELECT - 90 * - + 30 * + 59 AS col1
----
159300

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL MAX( DISTINCT + 3 )
----
3

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL MAX ( DISTINCT + 3 )
----
3

query I rowsort
SELECT DISTINCT 20 * 96 AS col1
----
1920

query I rowsort
SELECT - 25 + - 77 * + 18 AS col1
----
-1411

query II rowsort
SELECT ALL 11 AS col0, 13 * 66
----
11
858

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT - 43 + MAX( DISTINCT - 51 )
----
-94

skipif mysql # not compatible
query I rowsort label-4544
SELECT - 43 + MAX ( DISTINCT - 51 )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4545
SELECT - 66 AS col0, CAST( + + COUNT( * ) AS SIGNED )
----
-66
1

skipif mysql # not compatible
query II rowsort label-4545
SELECT - 66 AS col0, CAST ( + + COUNT ( * ) AS INTEGER )
----
-66
1

query I rowsort
SELECT + 19 + + NULLIF ( + 4, + 40 * - + 52 * ( - 66 ) / - + 36 ) * 72
----
307

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4547
SELECT - 7 DIV + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-4547
SELECT - 7 / + COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4548
SELECT + 13 DIV 53 * 15 * - COUNT( * ) col0, 52 + 66 - + 96 AS col1
----
0
22

skipif mysql # not compatible
query II rowsort label-4548
SELECT + 13 / 53 * 15 * - COUNT ( * ) col0, 52 + 66 - + 96 AS col1
----
0
22

query II rowsort
SELECT 38 AS col2, 24 AS col0
----
38
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT + SUM( DISTINCT 92 ) * - 49 * + MIN( ALL - 13 )
----
58604

skipif mysql # not compatible
query I rowsort label-4550
SELECT + SUM ( DISTINCT 92 ) * - 49 * + MIN ( ALL - 13 )
----
58604

query II rowsort
SELECT DISTINCT 86 AS col2, 74 col0
----
86
74

query I rowsort
SELECT + 53 * - 20 col2
----
-1060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4553
SELECT ALL 65 + + CAST( NULL AS SIGNED ) * + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL 65 + + CAST ( NULL AS INTEGER ) * + 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4554
SELECT DISTINCT 94 AS col2, - ( + COUNT( * ) ) DIV - - NULLIF ( - 54, - 69 ) + - + 72 AS col1
----
94
-72

skipif mysql # not compatible
query II rowsort label-4554
SELECT DISTINCT 94 AS col2, - ( + COUNT ( * ) ) / - - NULLIF ( - 54, - 69 ) + - + 72 AS col1
----
94
-72

query I rowsort
SELECT - 41 + + 81 - + + 52 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT + NULLIF ( + 5, - MAX( DISTINCT + + 99 ) + 37 * - + COUNT( - 39 ) ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4556
SELECT + NULLIF ( + 5, - MAX ( DISTINCT + + 99 ) + 37 * - + COUNT ( - 39 ) ) AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4557
SELECT + NULLIF ( - CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ), 98 ) + - + NULLIF ( - COUNT( * ), ( - ( - - 54 ) ) * + 56 * + AVG ( DISTINCT - ( + - 60 ) ) * + - NULLIF ( + 45, - COUNT( * ) ) / + 64 / - - SUM( - CAST( NULL AS SIGNED ) ) - COUNT( * ) ) - + 18 + + 68 + + 10 * - 81 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT + NULLIF ( - CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ), 98 ) + - + NULLIF ( - COUNT ( * ), ( - ( - - 54 ) ) * + 56 * + AVG ( DISTINCT - ( + - 60 ) ) * + - NULLIF ( + 45, - COUNT ( * ) ) / + 64 / - - SUM ( - CAST ( NULL AS INTEGER ) ) - COUNT ( * ) ) - + 18 + + 68 + + 10 * - 81 col2
----
NULL

query I rowsort
SELECT - - 25 * 62 + - - 0
----
1550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4559
SELECT + - COUNT( * ) * ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4559
SELECT + - COUNT ( * ) * ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - 51 * + 78 * + + 54 + 95 col2
----
-214717

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4561
SELECT DISTINCT - 79 * - + CASE + COALESCE ( + CAST( 85 AS DECIMAL ), - 12 ) WHEN - + COUNT( 83 ) * ( - 43 ) THEN 18 * + 82 END + - - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT - 79 * - + CASE + COALESCE ( + CAST ( 85 AS REAL ), - 12 ) WHEN - + COUNT ( 83 ) * ( - 43 ) THEN 18 * + 82 END + - - 83
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4562
SELECT DISTINCT + + ( CAST( + 33 AS SIGNED ) )
----
33

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT + + ( CAST ( + 33 AS INTEGER ) )
----
33

query II rowsort
SELECT DISTINCT + + 43 AS col0, - 82 + + 69
----
43
-13

query I rowsort
SELECT DISTINCT + - ( - 26 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4565
SELECT ALL + 21 * - COALESCE ( - 33, - 4 / - - 42 - + - 68 + - - 40, 29 ) - 90 + - + 11 + - + 19 / + 0 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL + 21 * - COALESCE ( - 33, - 4 / - - 42 - + - 68 + - - 40, 29 ) - 90 + - + 11 + - + 19 / + 0 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4566
SELECT + - 32 / ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4566
SELECT + - 32 / ( - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + - 45, 58 * + - ( - - ( + 31 ) ) AS col1
----
-45
-1798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4568
SELECT - + 68 + + + ( - + 35 ) * + + ( + + 74 ) - - - CAST( MAX( - 33 ) AS SIGNED ) * 25 DIV + + 93 + - SUM( DISTINCT + ( 98 ) ) * 66 * + 46 col1
----
-300178

skipif mysql # not compatible
query I rowsort label-4568
SELECT - + 68 + + + ( - + 35 ) * + + ( + + 74 ) - - - CAST ( MAX ( - 33 ) AS INTEGER ) * 25 / + + 93 + - SUM ( DISTINCT + ( 98 ) ) * 66 * + 46 col1
----
-300178

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT - 23 + - 91 - MIN( - ( + NULLIF ( + 34, + + 15 * 70 ) ) )
----
-80

skipif mysql # not compatible
query I rowsort label-4569
SELECT - 23 + - 91 - MIN ( - ( + NULLIF ( + 34, + + 15 * 70 ) ) )
----
-80

query II rowsort
SELECT ALL + - 6 AS col2, 72 + 86
----
-6
158

onlyif mysql # DIV for integer division: 
query II rowsort label-4571
SELECT + + 53 AS col2, 94 * 34 DIV - 6 - + 15 - + - 42 AS col1
----
53
-505

skipif mysql # not compatible
query II rowsort label-4571
SELECT + + 53 AS col2, 94 * 34 / - 6 - + 15 - + - 42 AS col1
----
53
-505

onlyif mysql # aggregate syntax: 
query II rowsort label-4572
SELECT DISTINCT + + COUNT( * ) AS col1, - COUNT( * ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-4572
SELECT DISTINCT + + COUNT ( * ) AS col1, - COUNT ( * ) AS col1
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT DISTINCT 93 * 32 - + - 64 - + COUNT( * )
----
3039

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT 93 * 32 - + - 64 - + COUNT ( * )
----
3039

query I rowsort
SELECT ALL ( ( 35 ) ) col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT DISTINCT ( - SUM( DISTINCT 78 ) )
----
-78

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT ( - SUM ( DISTINCT 78 ) )
----
-78

query II rowsort
SELECT - ( - + 64 ) col2, - 65 AS col1
----
64
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT + 31 * + - COALESCE ( + 20, - SUM( DISTINCT + 33 ) )
----
-620

skipif mysql # not compatible
query I rowsort label-4577
SELECT + 31 * + - COALESCE ( + 20, - SUM ( DISTINCT + 33 ) )
----
-620

query I rowsort
SELECT - 37 * + + 58 AS col2
----
-2146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4579
SELECT ALL CASE + 33 WHEN ( 65 ) THEN 71 WHEN MAX( DISTINCT CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END, - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4579
SELECT ALL CASE + 33 WHEN ( 65 ) THEN 71 WHEN MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END, - COUNT ( * ) AS col1
----
NULL
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4580
SELECT SUM( ALL + 52 ) AS col1, CAST( NULL AS SIGNED ) AS col0
----
52
NULL

skipif mysql # not compatible
query II rowsort label-4580
SELECT SUM ( ALL + 52 ) AS col1, CAST ( NULL AS INTEGER ) AS col0
----
52
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4581
SELECT - MAX( + 70 ) AS col2, - COUNT( * )
----
-70
-1

skipif mysql # not compatible
query II rowsort label-4581
SELECT - MAX ( + 70 ) AS col2, - COUNT ( * )
----
-70
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4582
SELECT - 83 - + + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4582
SELECT - 83 - + + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4583
SELECT - 1 * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4583
SELECT - 1 * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 46
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4584
SELECT ALL CAST( 43 AS SIGNED ) col0, - 62 * - + COALESCE ( - - 28, 4, 6 * CAST( 57 AS SIGNED ) * + 4 ) AS col0
----
43
1736

skipif mysql # not compatible
query II rowsort label-4584
SELECT ALL CAST ( 43 AS INTEGER ) col0, - 62 * - + COALESCE ( - - 28, 4, 6 * CAST ( 57 AS INTEGER ) * + 4 ) AS col0
----
43
1736

query I rowsort
SELECT DISTINCT - 75 * - + 94 AS col1
----
7050

query II rowsort
SELECT - 36 * 59 col1, - 12 AS col2
----
-2124
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4587
SELECT ALL - 3 DIV 64 col2
----
0

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL - 3 / 64 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT ALL - 57 + COUNT( + 47 ) * 53
----
-4

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL - 57 + COUNT ( + 47 ) * 53
----
-4

query I rowsort
SELECT ALL ( - COALESCE ( 21, - 70, - 51 ) )
----
-21

query I rowsort
SELECT - 41 * + - 4 AS col2
----
164

query II rowsort
SELECT - 6 * 30 * 47 AS col0, + 2
----
-8460
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4592
SELECT + 23 DIV + + 20
----
1

skipif mysql # not compatible
query I rowsort label-4592
SELECT + 23 / + + 20
----
1

query I rowsort
SELECT ALL - 58 + - + 47 AS col1
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4594
SELECT ALL + CAST( NULL AS SIGNED ) + - - 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 52 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT - COUNT( * ) * + - MAX( ALL - ( + 82 ) )
----
-82

skipif mysql # not compatible
query I rowsort label-4595
SELECT - COUNT ( * ) * + - MAX ( ALL - ( + 82 ) )
----
-82

query I rowsort
SELECT - + 4 + 63
----
59

query II rowsort
SELECT DISTINCT - 40 * + 84 AS col1, - 96 col2
----
-3360
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4598
SELECT ALL + + ( 5 ) DIV - ( + 7 ) * - - COUNT( * ) * - + 80 + - COUNT( * ) + 0 * - ( 15 ) AS col0, - SUM( 66 ) AS col0
----
-1
-66

skipif mysql # not compatible
query II rowsort label-4598
SELECT ALL + + ( 5 ) / - ( + 7 ) * - - COUNT ( * ) * - + 80 + - COUNT ( * ) + 0 * - ( 15 ) AS col0, - SUM ( 66 ) AS col0
----
-1
-66

query I rowsort
SELECT ALL + - ( - 12 )
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4600
SELECT ALL 87 / + 37 + CAST( NULL AS SIGNED ) - + - 20 + - AVG ( ALL + - 61 ) * + 53 * ( 48 ) + - + 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL 87 / + 37 + CAST ( NULL AS INTEGER ) - + - 20 + - AVG ( ALL + - 61 ) * + 53 * ( 48 ) + - + 44 AS col1
----
NULL

query I rowsort
SELECT ALL + + ( 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT + - NULLIF ( - 99, 4 + + CASE - AVG ( CASE 82 WHEN 14 + - - 92 - - 86 THEN - ( - COALESCE ( + + 35, + + 59 ) ) ELSE NULL END ) WHEN CASE - 67 WHEN + + 34 + 48 THEN + MAX( DISTINCT 92 ) * - + 48 WHEN COUNT( ALL 63 ) THEN NULL END THEN 32 WHEN - 5 * ( + 1 ) THEN NULL WHEN + 85 THEN NULL ELSE NULL END ) * - COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-4602
SELECT + - NULLIF ( - 99, 4 + + CASE - AVG ( CASE 82 WHEN 14 + - - 92 - - 86 THEN - ( - COALESCE ( + + 35, + + 59 ) ) ELSE NULL END ) WHEN CASE - 67 WHEN + + 34 + 48 THEN + MAX ( DISTINCT 92 ) * - + 48 WHEN COUNT ( ALL 63 ) THEN NULL END THEN 32 WHEN - 5 * ( + 1 ) THEN NULL WHEN + 85 THEN NULL ELSE NULL END ) * - COUNT ( * )
----
-99

query I rowsort
SELECT - ( + - 42 ) AS col2
----
42

query I rowsort
SELECT - 38 - 96 AS col0
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT - COUNT( * ) * - 41 * - SUM( + 80 )
----
-3280

skipif mysql # not compatible
query I rowsort label-4605
SELECT - COUNT ( * ) * - 41 * - SUM ( + 80 )
----
-3280

query I rowsort
SELECT - 65 * + 44 AS col2
----
-2860

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT 6 - - 81 + COUNT( * ) - 4 + COALESCE ( - 87, 57, - 74 ) / - 91 * CASE + 67 WHEN + 89 + + 5 THEN - - 5 + - - COUNT( DISTINCT - ( - + 50 ) ) END * - 5 + + 49 + + + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT 6 - - 81 + COUNT ( * ) - 4 + COALESCE ( - 87, 57, - 74 ) / - 91 * CASE + 67 WHEN + 89 + + 5 THEN - - 5 + - - COUNT ( DISTINCT - ( - + 50 ) ) END * - 5 + + 49 + + + 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4608
SELECT MAX( ALL + - 30 ) DIV - 45 + - 98 + 26
----
-72

skipif mysql # not compatible
query I rowsort label-4608
SELECT MAX ( ALL + - 30 ) / - 45 + - 98 + 26
----
-72

query I rowsort
SELECT 90 + - - 38 AS col1
----
128

query II rowsort
SELECT + 9, 55 * - 44 AS col1
----
9
-2420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4611
SELECT 97 * + 77 * - 49 * + + COALESCE ( + COALESCE ( - 79, CAST( NULL AS DECIMAL ) * + - 28, + 56 ), + 49 ) + COUNT( * ) * + CAST( NULL AS SIGNED ) * - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4611
SELECT 97 * + 77 * - 49 * + + COALESCE ( + COALESCE ( - 79, CAST ( NULL AS REAL ) * + - 28, + 56 ), + 49 ) + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - 38 AS col2
----
NULL

query I rowsort
SELECT 32 * 23 AS col1
----
736

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT 35 * - NULLIF ( - COUNT( * ), - - 76 )
----
35

skipif mysql # not compatible
query I rowsort label-4613
SELECT 35 * - NULLIF ( - COUNT ( * ), - - 76 )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4614
SELECT COALESCE ( + CASE CASE - + MIN( DISTINCT - 94 ) WHEN + 31 * 56 - - 23 * - CASE + + COUNT( * ) WHEN - 55 THEN + MIN( ALL + + 93 ) + + + 45 END * 25 + + COUNT( * ) THEN COALESCE ( + - COALESCE ( - 74, - CAST( NULL AS SIGNED ), ( + 44 ) + + 78 ), - - 64 + 85 + + + 77 - - 8 * + + NULLIF ( AVG ( DISTINCT + CAST( NULL AS SIGNED ) ), - 88 * + 86 ) - 58, + 15 ) * + 21 END WHEN 18 THEN ( + MAX( ALL 6 ) ) * - 30 END, 56 ) + + 30
----
86

skipif mysql # not compatible
query I rowsort label-4614
SELECT COALESCE ( + CASE CASE - + MIN ( DISTINCT - 94 ) WHEN + 31 * 56 - - 23 * - CASE + + COUNT ( * ) WHEN - 55 THEN + MIN ( ALL + + 93 ) + + + 45 END * 25 + + COUNT ( * ) THEN COALESCE ( + - COALESCE ( - 74, - CAST ( NULL AS INTEGER ), ( + 44 ) + + 78 ), - - 64 + 85 + + + 77 - - 8 * + + NULLIF ( AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ), - 88 * + 86 ) - 58, + 15 ) * + 21 END WHEN 18 THEN ( + MAX ( ALL 6 ) ) * - 30 END, 56 ) + + 30
----
86

query II rowsort
SELECT - 66, 19 AS col2
----
-66
19

query I rowsort
SELECT ALL 54 + 44
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT ( + ( - ( - 34 ) ) ) + + 92 + + - 98 + + 80 - 35 * 27 * MAX( DISTINCT + ( + 19 ) ) + + 63 AS col1
----
-17784

skipif mysql # not compatible
query I rowsort label-4617
SELECT ( + ( - ( - 34 ) ) ) + + 92 + + - 98 + + 80 - 35 * 27 * MAX ( DISTINCT + ( + 19 ) ) + + 63 AS col1
----
-17784

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT DISTINCT 1 * - COUNT( * ) * - MIN( DISTINCT + - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-4618
SELECT DISTINCT 1 * - COUNT ( * ) * - MIN ( DISTINCT + - 79 )
----
-79

query II rowsort
SELECT ALL - 71 + + + 24 * + - 71, + 71 * 92 AS col2
----
-1775
6532

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4620
SELECT DISTINCT ( - - 13 ) + - + 8 + - 38 DIV + 11 * - + COUNT( * ) AS col1, - 8
----
8
-8

skipif mysql # not compatible
query II rowsort label-4620
SELECT DISTINCT ( - - 13 ) + - + 8 + - 38 / + 11 * - + COUNT ( * ) AS col1, - 8
----
8
-8

query I rowsort
SELECT 60 + + + 57
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4622
SELECT ALL - CAST( - + 30 AS SIGNED ) + - 60
----
-30

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL - CAST ( - + 30 AS INTEGER ) + - 60
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-4623
SELECT - 42, COUNT( * ) - - + ( + + 27 ) AS col1
----
-42
28

skipif mysql # not compatible
query II rowsort label-4623
SELECT - 42, COUNT ( * ) - - + ( + + 27 ) AS col1
----
-42
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT CASE WHEN NOT - 82 NOT IN ( - 96, - 31 * - 60 - + ( - - 68 ) * - COUNT( * ) ) THEN NULL ELSE - 4 END
----
-4

skipif mysql # not compatible
query I rowsort label-4624
SELECT CASE WHEN NOT - 82 NOT IN ( - 96, - 31 * - 60 - + ( - - 68 ) * - COUNT ( * ) ) THEN NULL ELSE - 4 END
----
-4

query I rowsort
SELECT ALL + 11 + + 94 AS col2
----
105

query I rowsort
SELECT ALL 80 + + + 50 * - + 57 col1
----
-2770

query I rowsort
SELECT ALL + + 48 + + + 55 * - 34 * - - 56 * + - 35
----
3665248

query I rowsort
SELECT 87 - + 88 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT DISTINCT + MAX( NULLIF ( 26, 10 + - 11 ) )
----
26

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT + MAX ( NULLIF ( 26, 10 + - 11 ) )
----
26

query II rowsort
SELECT - 14 AS col2, 12 * + - 24
----
-14
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT 90 * + 48 + 24 * + SUM( - - 57 ) + 20 AS col1
----
5708

skipif mysql # not compatible
query I rowsort label-4631
SELECT 90 * + 48 + 24 * + SUM ( - - 57 ) + 20 AS col1
----
5708

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT - NULLIF ( + - COUNT( + 2 ), 20 ) * 40 col0
----
40

skipif mysql # not compatible
query I rowsort label-4632
SELECT - NULLIF ( + - COUNT ( + 2 ), 20 ) * 40 col0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-4633
SELECT + 72 DIV + 93 * + ( - 51 ) + - + 56 + - - 23 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-4633
SELECT + 72 / + 93 * + ( - 51 ) + - + 56 + - - 23 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT 59 + - + NULLIF ( - - COUNT( * ), 26 ) + + 10 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4634
SELECT 59 + - + NULLIF ( - - COUNT ( * ), 26 ) + + 10 AS col1
----
68

query I rowsort
SELECT ALL - 35 * + + 59
----
-2065

query I rowsort
SELECT 36 + + + 12
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT ALL - MAX( ALL 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL - MAX ( ALL 75 )
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-4638
SELECT DISTINCT - 56 AS col0, MIN( 63 ) AS col1
----
-56
63

skipif mysql # not compatible
query II rowsort label-4638
SELECT DISTINCT - 56 AS col0, MIN ( 63 ) AS col1
----
-56
63

query I rowsort
SELECT 90 * + 33
----
2970

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT DISTINCT COUNT( * ) * + - ( - + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT COUNT ( * ) * + - ( - + 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT ALL CASE - + 27 WHEN - 38 + + 22 * - + COUNT( * ) THEN NULL WHEN COUNT( * ) * + 24 THEN NULL ELSE + 56 * 40 + + + COUNT( * ) - + 24 * 62 * - 22 END + - 75 + + NULLIF ( + 11, - COUNT( * ) ) AS col2
----
34913

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL CASE - + 27 WHEN - 38 + + 22 * - + COUNT ( * ) THEN NULL WHEN COUNT ( * ) * + 24 THEN NULL ELSE + 56 * 40 + + + COUNT ( * ) - + 24 * 62 * - 22 END + - 75 + + NULLIF ( + 11, - COUNT ( * ) ) AS col2
----
34913

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4642
SELECT ALL 48 + + + 86, + CASE - 78 WHEN - COALESCE ( - + COALESCE ( + 78, + + CAST( - NULLIF ( 73, + + ( COUNT( * ) ) - COUNT( * ) * - ( 87 ) + - + 93 ) AS DECIMAL ) ), 27, + 60 ) THEN NULL WHEN + + 21 THEN - 49 WHEN - - 12 THEN NULL END AS col2
----
134
NULL

skipif mysql # not compatible
query II rowsort label-4642
SELECT ALL 48 + + + 86, + CASE - 78 WHEN - COALESCE ( - + COALESCE ( + 78, + + CAST ( - NULLIF ( 73, + + ( COUNT ( * ) ) - COUNT ( * ) * - ( 87 ) + - + 93 ) AS REAL ) ), 27, + 60 ) THEN NULL WHEN + + 21 THEN - 49 WHEN - - 12 THEN NULL END AS col2
----
134
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT ALL COALESCE ( - MIN( DISTINCT - 32 ), - - COUNT( * ) * - 84 + 52 ) + - 44 * + - COUNT( * ) - - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL COALESCE ( - MIN ( DISTINCT - 32 ), - - COUNT ( * ) * - 84 + 52 ) + - 44 * + - COUNT ( * ) - - COUNT ( * )
----
77

query I rowsort
SELECT ALL 12 + + - 57 col2
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4645
SELECT COALESCE ( + ( - + 16 ), - 28 ) * SUM( ALL - 57 ) DIV - 88 - - - 44 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-4645
SELECT COALESCE ( + ( - + 16 ), - 28 ) * SUM ( ALL - 57 ) / - 88 - - - 44 AS col0
----
-54

query I rowsort
SELECT ALL 6 * 31
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT COUNT( * ) - - + 13 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-4647
SELECT COUNT ( * ) - - + 13 AS col1
----
14

query II rowsort
SELECT DISTINCT 41 * + 42 col2, - ( + 72 ) AS col0
----
1722
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4649
SELECT CAST( + 93 AS SIGNED ) / + CASE - 54 WHEN - 65 THEN NULL WHEN - ( CAST( - AVG ( ALL 10 ) AS SIGNED ) ) THEN + - COUNT( * ) END * - - 47 + + COUNT( * ) + + - AVG ( ALL - 3 ) + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4649
SELECT CAST ( + 93 AS INTEGER ) / + CASE - 54 WHEN - 65 THEN NULL WHEN - ( CAST ( - AVG ( ALL 10 ) AS INTEGER ) ) THEN + - COUNT ( * ) END * - - 47 + + COUNT ( * ) + + - AVG ( ALL - 3 ) + 52
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4650
SELECT ALL CAST( - - 53 AS SIGNED ) + + 69 * + 30 col0, 52 * + - 40
----
2123
-2080

skipif mysql # not compatible
query II rowsort label-4650
SELECT ALL CAST ( - - 53 AS INTEGER ) + + 69 * + 30 col0, 52 * + - 40
----
2123
-2080

onlyif mysql # aggregate syntax: 
query II rowsort label-4651
SELECT - MIN( DISTINCT - 11 ) col2, + 17 * + ( + 42 ) * NULLIF ( - + NULLIF ( + 45, + COUNT( * ) + + 2 - + 43 ), + 39 ) + + 84 AS col0
----
11
-32046

skipif mysql # not compatible
query II rowsort label-4651
SELECT - MIN ( DISTINCT - 11 ) col2, + 17 * + ( + 42 ) * NULLIF ( - + NULLIF ( + 45, + COUNT ( * ) + + 2 - + 43 ), + 39 ) + + 84 AS col0
----
11
-32046

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT ALL + COUNT( * ) - + 41 + - - COUNT( * ) col1
----
-39

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL + COUNT ( * ) - + 41 + - - COUNT ( * ) col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT ALL COUNT( + - 24 ) * 98 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL COUNT ( + - 24 ) * 98 AS col1
----
98

query I rowsort
SELECT 71 - + + ( + 43 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT 5 * - + 89 + COALESCE ( 48, + 46 + - SUM( + ( - 6 ) ) - ( + COALESCE ( + 24, + MIN( ALL + 88 ) ) ) + + COUNT( * ), + + 52 ) + + 39 + + 1 * - NULLIF ( - 66, + MIN( DISTINCT + 1 ) ) AS col0
----
-292

skipif mysql # not compatible
query I rowsort label-4655
SELECT 5 * - + 89 + COALESCE ( 48, + 46 + - SUM ( + ( - 6 ) ) - ( + COALESCE ( + 24, + MIN ( ALL + 88 ) ) ) + + COUNT ( * ), + + 52 ) + + 39 + + 1 * - NULLIF ( - 66, + MIN ( DISTINCT + 1 ) ) AS col0
----
-292

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT - MIN( ALL + 97 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-4656
SELECT - MIN ( ALL + 97 ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT + + 69 * - 95 + COUNT( * ) AS col1
----
-6554

skipif mysql # not compatible
query I rowsort label-4657
SELECT + + 69 * - 95 + COUNT ( * ) AS col1
----
-6554

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT DISTINCT + 58 * 79 + - COUNT( + 91 )
----
4581

skipif mysql # not compatible
query I rowsort label-4658
SELECT DISTINCT + 58 * 79 + - COUNT ( + 91 )
----
4581

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT + - MAX( DISTINCT - 51 ) col0
----
51

skipif mysql # not compatible
query I rowsort label-4659
SELECT + - MAX ( DISTINCT - 51 ) col0
----
51

query I rowsort
SELECT ALL + + 78 * + ( - 17 )
----
-1326

onlyif mysql # DIV for integer division: 
query I rowsort label-4661
SELECT - 47 DIV - 75 + - - ( - - 92 )
----
92

skipif mysql # not compatible
query I rowsort label-4661
SELECT - 47 / - 75 + - - ( - - 92 )
----
92

query I rowsort
SELECT ALL + NULLIF ( + - 55, - + 15 ) AS col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-4663
SELECT - 13 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-4663
SELECT - 13 / + 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT - - SUM( ALL + 6 ) * + 94 * - + 79 AS col0
----
-44556

skipif mysql # not compatible
query I rowsort label-4664
SELECT - - SUM ( ALL + 6 ) * + 94 * - + 79 AS col0
----
-44556

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4665
SELECT + 75 / - - 44 * CAST( NULL AS SIGNED ) - - COUNT( * ) + + COUNT( * ) * - + 5 * - - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4665
SELECT + 75 / - - 44 * CAST ( NULL AS INTEGER ) - - COUNT ( * ) + + COUNT ( * ) * - + 5 * - - 16 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT ALL + 89 * 98 + + 78 + - COUNT( * ) + 19 AS col2
----
8818

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL + 89 * 98 + + 78 + - COUNT ( * ) + 19 AS col2
----
8818

onlyif mysql # DIV for integer division: 
query I rowsort label-4667
SELECT - 61 DIV + 28 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4667
SELECT - 61 / + 28 AS col2
----
-2

query II rowsort
SELECT ALL + 73 * 52 + + 22, + 91 + - - 64 AS col1
----
3818
155

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT NULLIF ( + 37, + + COALESCE ( 55, - - NULLIF ( + 73, - 74 * 36 ) * + - 28 / + 61 + - 51 + - 67 ) + - MAX( DISTINCT - ( - + 13 ) ) ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4669
SELECT NULLIF ( + 37, + + COALESCE ( 55, - - NULLIF ( + 73, - 74 * 36 ) * + - 28 / + 61 + - 51 + - 67 ) + - MAX ( DISTINCT - ( - + 13 ) ) ) AS col0
----
37

query I rowsort
SELECT - 37 * - 3 * CASE - 22 WHEN - 91 THEN + + 26 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT - 30 * + 98 * + + COUNT( * ) * 9 + 13
----
-26447

skipif mysql # not compatible
query I rowsort label-4671
SELECT - 30 * + 98 * + + COUNT ( * ) * 9 + 13
----
-26447

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT + COUNT( * ) - 60 - 21 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-4672
SELECT + COUNT ( * ) - 60 - 21 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT COUNT( DISTINCT - 76 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4673
SELECT COUNT ( DISTINCT - 76 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4674
SELECT ALL 65 * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL 65 * - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4675
SELECT ALL + ( + 31 ) * + - CAST( - - 34 AS SIGNED ) - 58
----
-1112

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL + ( + 31 ) * + - CAST ( - - 34 AS INTEGER ) - 58
----
-1112

query I rowsort
SELECT - 47 + - 51 * - 75 AS col1
----
3778

query I rowsort
SELECT DISTINCT + 54 * - 42
----
-2268

query I rowsort
SELECT + 91 * + + 80 + - + 19
----
7261

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT + ( + 84 ) * COUNT( * ) - - 33
----
117

skipif mysql # not compatible
query I rowsort label-4679
SELECT + ( + 84 ) * COUNT ( * ) - - 33
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT + CAST( NULL AS SIGNED ) + - 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4680
SELECT + CAST ( NULL AS INTEGER ) + - 61 AS col2
----
NULL

query I rowsort
SELECT + - 59 * + + 9
----
-531

query I rowsort
SELECT + 42 + + 37
----
79

query I rowsort
SELECT + + 90 * - 83
----
-7470

query I rowsort
SELECT - + ( 92 )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4685
SELECT DISTINCT 10 AS col2, ( 42 ) * - CAST( ( + 25 ) AS SIGNED ) + + 13 AS col2
----
10
-1037

skipif mysql # not compatible
query II rowsort label-4685
SELECT DISTINCT 10 AS col2, ( 42 ) * - CAST ( ( + 25 ) AS INTEGER ) + + 13 AS col2
----
10
-1037

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4686
SELECT ALL - 10 DIV COALESCE ( - CAST( NULL AS SIGNED ), - 95, + ( - 72 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL - 10 / COALESCE ( - CAST ( NULL AS INTEGER ), - 95, + ( - 72 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT + COUNT( * ) * 31 * 6 * 56 AS col2
----
10416

skipif mysql # not compatible
query I rowsort label-4687
SELECT + COUNT ( * ) * 31 * 6 * 56 AS col2
----
10416

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT ALL - + 13 + - + MIN( DISTINCT - COALESCE ( 28, + 46 * - 25 * - 95 ) )
----
15

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL - + 13 + - + MIN ( DISTINCT - COALESCE ( 28, + 46 * - 25 * - 95 ) )
----
15

query I rowsort
SELECT + + 32 + + + 74 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT + - 63 * - MIN( ALL 41 ) - + COUNT( * ) AS col0
----
2582

skipif mysql # not compatible
query I rowsort label-4690
SELECT + - 63 * - MIN ( ALL 41 ) - + COUNT ( * ) AS col0
----
2582

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT ( - + ( + COUNT( - 8 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4691
SELECT ( - + ( + COUNT ( - 8 ) ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4692
SELECT 72 * 0 DIV 83 + + - 93 + - 29 AS col1, COUNT( * )
----
-122
1

skipif mysql # not compatible
query II rowsort label-4692
SELECT 72 * 0 / 83 + + - 93 + - 29 AS col1, COUNT ( * )
----
-122
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4693
SELECT ALL + - 58 DIV + COUNT( - 51 ) * - - COUNT( * ) + - 4 + - + 66 DIV + - 62 + + + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL + - 58 / + COUNT ( - 51 ) * - - COUNT ( * ) + - 4 + - + 66 / + - 62 + + + COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4694
SELECT - 25 DIV COUNT( + 41 ) + + + NULLIF ( - - 16, - 27 ) + COALESCE ( + + 90, + 98 * + MAX( + 36 ) * 25 ) * - 99 * + COUNT( * ) * 5
----
-44559

skipif mysql # not compatible
query I rowsort label-4694
SELECT - 25 / COUNT ( + 41 ) + + + NULLIF ( - - 16, - 27 ) + COALESCE ( + + 90, + 98 * + MAX ( + 36 ) * 25 ) * - 99 * + COUNT ( * ) * 5
----
-44559

query II rowsort
SELECT + 61 + 45 AS col1, 27
----
106
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4696
SELECT ALL + 29 DIV + 39 + + 64 * - CAST( + COUNT( * ) AS SIGNED ) * + ( 61 ) * 40 * - 63 * - - 47 + + - 66 - - + CAST( + 76 AS SIGNED ) * + 56 * - + 83 * COUNT( * ) AS col0
----
462036446

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL + 29 / + 39 + + 64 * - CAST ( + COUNT ( * ) AS INTEGER ) * + ( 61 ) * 40 * - 63 * - - 47 + + - 66 - - + CAST ( + 76 AS INTEGER ) * + 56 * - + 83 * COUNT ( * ) AS col0
----
462036446

query I rowsort
SELECT ALL - 48 * - 31 * - + 12 col2
----
-17856

onlyif mysql # DIV for integer division: 
query I rowsort label-4698
SELECT ALL - 68 DIV - + 12 + - 51 - 74 * - ( + 65 ) * 49 * + NULLIF ( - 34, - 51 )
----
-8013506

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL - 68 / - + 12 + - 51 - 74 * - ( + 65 ) * 49 * + NULLIF ( - 34, - 51 )
----
-8013506

query I rowsort
SELECT - 55 + + 8 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT - 30 * - CASE - 24 WHEN 12 / - - 75 + + 61 + - 13 - 91 - + + 95 * COUNT( * ) * ( + + NULLIF ( 43, - 86 + + 4 ) ) + + COUNT( * ) * - 7 THEN NULL WHEN - 98 + SUM( - 10 ) THEN + 73 WHEN + 45 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT - 30 * - CASE - 24 WHEN 12 / - - 75 + + 61 + - 13 - 91 - + + 95 * COUNT ( * ) * ( + + NULLIF ( 43, - 86 + + 4 ) ) + + COUNT ( * ) * - 7 THEN NULL WHEN - 98 + SUM ( - 10 ) THEN + 73 WHEN + 45 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4701
SELECT ALL 51 DIV - COUNT( ALL + 17 ) + - COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL 51 / - COUNT ( ALL + 17 ) + - COUNT ( * ) AS col0
----
-52

query I rowsort
SELECT - 63 * 6 + 41
----
-337

onlyif mysql # aggregate syntax: 
query II rowsort label-4703
SELECT ( + - COUNT( * ) ) AS col2, - 80 AS col1
----
-1
-80

skipif mysql # not compatible
query II rowsort label-4703
SELECT ( + - COUNT ( * ) ) AS col2, - 80 AS col1
----
-1
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT DISTINCT - 30 * + 68 * - - COUNT( * ) * + 41
----
-83640

skipif mysql # not compatible
query I rowsort label-4704
SELECT DISTINCT - 30 * + 68 * - - COUNT ( * ) * + 41
----
-83640

query II rowsort
SELECT ( 27 ) col0, 94 AS col1
----
27
94

onlyif mysql # DIV for integer division: 
query II rowsort label-4706
SELECT ALL + 5 AS col0, 19 DIV 52
----
5
0

skipif mysql # not compatible
query II rowsort label-4706
SELECT ALL + 5 AS col0, 19 / 52
----
5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4707
SELECT - 71 DIV - + 22
----
3

skipif mysql # not compatible
query I rowsort label-4707
SELECT - 71 / - + 22
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4708
SELECT ALL + 25 * - 56 - + 66 * + COUNT( * ), + 57 + - + 97 - + NULLIF ( + 21, + MAX( DISTINCT + 23 ) ) * + + 43 col2
----
-1466
-943

skipif mysql # not compatible
query II rowsort label-4708
SELECT ALL + 25 * - 56 - + 66 * + COUNT ( * ), + 57 + - + 97 - + NULLIF ( + 21, + MAX ( DISTINCT + 23 ) ) * + + 43 col2
----
-1466
-943

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT DISTINCT ( COUNT( * ) ) * + 17 * - 8 * - 60
----
8160

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT ( COUNT ( * ) ) * + 17 * - 8 * - 60
----
8160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4710
SELECT COALESCE ( + CAST( 89 AS SIGNED ), ( + + COALESCE ( - COUNT( * ), 89 * + COUNT( * ) ) ) * - + ( + 78 ) * ( 94 ) DIV - 82 * 24 + + + 56 )
----
89

skipif mysql # not compatible
query I rowsort label-4710
SELECT COALESCE ( + CAST ( 89 AS INTEGER ), ( + + COALESCE ( - COUNT ( * ), 89 * + COUNT ( * ) ) ) * - + ( + 78 ) * ( 94 ) / - 82 * 24 + + + 56 )
----
89

query I rowsort
SELECT NULLIF ( + + 42, + 40 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT - COUNT( * ) - + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4712
SELECT - COUNT ( * ) - + - COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4713
SELECT ALL CAST( + CAST( - COALESCE ( + 9, + 4 * - + CASE + 55 WHEN + - 51 THEN NULL WHEN - + ( 17 ) + 9 THEN - + COUNT( * ) ELSE NULL END ) AS SIGNED ) AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL CAST ( + CAST ( - COALESCE ( + 9, + 4 * - + CASE + 55 WHEN + - 51 THEN NULL WHEN - + ( 17 ) + 9 THEN - + COUNT ( * ) ELSE NULL END ) AS INTEGER ) AS INTEGER )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4714
SELECT - NULLIF ( + COUNT( * ), + + 19 ) * CAST( + 28 AS SIGNED ) DIV 55 DIV + - 43 + 95
----
95

skipif mysql # not compatible
query I rowsort label-4714
SELECT - NULLIF ( + COUNT ( * ), + + 19 ) * CAST ( + 28 AS INTEGER ) / 55 / + - 43 + 95
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4715
SELECT CASE 9 WHEN - 40 THEN CASE + 5 WHEN + + 65 THEN + CAST( NULL AS SIGNED ) ELSE - + 48 END + - 5 WHEN + 22 + 50 THEN NULL WHEN - - 1 THEN - - 86 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4715
SELECT CASE 9 WHEN - 40 THEN CASE + 5 WHEN + + 65 THEN + CAST ( NULL AS INTEGER ) ELSE - + 48 END + - 5 WHEN + 22 + 50 THEN NULL WHEN - - 1 THEN - - 86 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT - MIN( DISTINCT + 56 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-4716
SELECT - MIN ( DISTINCT + 56 ) AS col0
----
-56

query II rowsort
SELECT 32 * - 95 AS col1, + 37 AS col2
----
-3040
37

query I rowsort
SELECT 34 - - 92 * - - 0 * - + 5
----
34

query II rowsort
SELECT ALL + 78, - 49 AS col2
----
78
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4720
SELECT ALL - + AVG ( + - NULLIF ( + - CAST( NULL AS SIGNED ), + 29 ) ) * 43 + + 41 * + ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL - + AVG ( + - NULLIF ( + - CAST ( NULL AS INTEGER ), + 29 ) ) * 43 + + 41 * + ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4721
SELECT ALL - 67 + - CAST( NULL AS SIGNED ) * + 71 * CAST( - 23 AS SIGNED ) + CASE CAST( - 2 AS DECIMAL ) WHEN - 7 THEN + - 47 + 7 END + - 62 + - 33 + + 99 * 90 * - 16, 31 AS col1
----
NULL
31

skipif mysql # not compatible
query II rowsort label-4721
SELECT ALL - 67 + - CAST ( NULL AS INTEGER ) * + 71 * CAST ( - 23 AS INTEGER ) + CASE CAST ( - 2 AS REAL ) WHEN - 7 THEN + - 47 + 7 END + - 62 + - 33 + + 99 * 90 * - 16, 31 AS col1
----
NULL
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT + COUNT( * ) + 47 * 66 * + 56
----
173713

skipif mysql # not compatible
query I rowsort label-4722
SELECT + COUNT ( * ) + 47 * 66 * + 56
----
173713

query I rowsort
SELECT + 42 - - 10 AS col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4724
SELECT 80 * - 51 - - 72 * 57 DIV - 87 AS col0
----
-4127

skipif mysql # not compatible
query I rowsort label-4724
SELECT 80 * - 51 - - 72 * 57 / - 87 AS col0
----
-4127

query I rowsort
SELECT ALL 21 + - ( - 47 )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4726
SELECT - - CAST( + 53 AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-4726
SELECT - - CAST ( + 53 AS INTEGER )
----
53

query I rowsort
SELECT ( ( 88 ) )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4728
SELECT 13 DIV 89 * - - 40 * + ( + 45 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4728
SELECT 13 / 89 * - - 40 * + ( + 45 ) col0
----
0

query I rowsort
SELECT - 9 + - 45
----
-54

query II rowsort
SELECT ALL 40 AS col0, 49 col1
----
40
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4731
SELECT DISTINCT - + 52 DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT - + 52 / - 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT DISTINCT 2 + COALESCE ( - 47, + COUNT( + 60 ) + + COUNT( * ) )
----
-45

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT 2 + COALESCE ( - 47, + COUNT ( + 60 ) + + COUNT ( * ) )
----
-45

query I rowsort
SELECT 44 * + 66 + + - 31
----
2873

query I rowsort
SELECT ALL 37 + 26 AS col0
----
63

query I rowsort
SELECT COALESCE ( - 75, - 65 ) + + + 99 * + 90 * + 10
----
89025

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT DISTINCT - 99 * + COUNT( * ) * - COUNT( * ) * - 27
----
-2673

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT - 99 * + COUNT ( * ) * - COUNT ( * ) * - 27
----
-2673

query I rowsort
SELECT 69 * - 26 col2
----
-1794

query I rowsort
SELECT 81 * - - 80 + - 94 AS col1
----
6386

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT COUNT( * ) * 90 * 43 col0
----
3870

skipif mysql # not compatible
query I rowsort label-4739
SELECT COUNT ( * ) * 90 * 43 col0
----
3870

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT 85 + 20 + + CASE + 73 WHEN 99 THEN + - 23 WHEN + 66 THEN NULL END / COALESCE ( + + COALESCE ( + - MIN( + - 87 ), + 63 ), + 34, 70 ) * + 74 + + 90 - - SUM( - 33 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4740
SELECT 85 + 20 + + CASE + 73 WHEN 99 THEN + - 23 WHEN + 66 THEN NULL END / COALESCE ( + + COALESCE ( + - MIN ( + - 87 ), + 63 ), + 34, 70 ) * + 74 + + 90 - - SUM ( - 33 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT SUM( DISTINCT - - 49 ) * - - 56 + - - 29 * - COUNT( - 46 ) AS col1
----
2715

skipif mysql # not compatible
query I rowsort label-4741
SELECT SUM ( DISTINCT - - 49 ) * - - 56 + - - 29 * - COUNT ( - 46 ) AS col1
----
2715

query I rowsort
SELECT 69 * - 79
----
-5451

query I rowsort
SELECT 57 + - 65 AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4744
SELECT COUNT( * ) DIV - CAST( NULLIF ( + 5, - - 58 + + 59 ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4744
SELECT COUNT ( * ) / - CAST ( NULLIF ( + 5, - - 58 + + 59 ) AS INTEGER ) AS col2
----
0

query I rowsort
SELECT - 63 + - 4 * + 90 - COALESCE ( - 32, 65 ) * + + 5 * - ( - + 23 ) AS col1
----
3257

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT + 72 * - ( + MAX( 74 ) )
----
-5328

skipif mysql # not compatible
query I rowsort label-4746
SELECT + 72 * - ( + MAX ( 74 ) )
----
-5328

onlyif mysql # DIV for integer division: 
query I rowsort label-4747
SELECT 80 DIV + ( 82 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4747
SELECT 80 / + ( 82 ) col0
----
0

query I rowsort
SELECT DISTINCT + 71 + - NULLIF ( + 14, + - 56 )
----
57

query I rowsort
SELECT - 39 + - + 67 + + 95
----
-11

query III rowsort
SELECT + 13 + 75 AS col1, 38, - ( 82 ) AS col1
----
88
38
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4751
SELECT DISTINCT - 69 + + CAST( NULL AS SIGNED ) AS col1, - 40 - - 10 * + 5 AS col0, + SUM( ALL CAST( NULL AS SIGNED ) ) * + 74
----
NULL
10
NULL

skipif mysql # not compatible
query III rowsort label-4751
SELECT DISTINCT - 69 + + CAST ( NULL AS INTEGER ) AS col1, - 40 - - 10 * + 5 AS col0, + SUM ( ALL CAST ( NULL AS INTEGER ) ) * + 74
----
NULL
10
NULL

query I rowsort
SELECT ALL - 36 + - ( + + 96 )
----
-132

query I rowsort
SELECT ALL + 77 + - 87 col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT DISTINCT - - 0 + - 31 * NULLIF ( - - NULLIF ( - 5, COUNT( * ) ), - COUNT( * ) / + - 76 ) AS col1
----
155

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT - - 0 + - 31 * NULLIF ( - - NULLIF ( - 5, COUNT ( * ) ), - COUNT ( * ) / + - 76 ) AS col1
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT 97 * + + MIN( ALL - 87 ) + + 49
----
-8390

skipif mysql # not compatible
query I rowsort label-4755
SELECT 97 * + + MIN ( ALL - 87 ) + + 49
----
-8390

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT 28 + + 21 + - 96 DIV - 33
----
51

skipif mysql # not compatible
query I rowsort label-4756
SELECT 28 + + 21 + - 96 / - 33
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4757
SELECT - SUM( 78 ) AS col2, 49 DIV NULLIF ( 40, COUNT( * ) )
----
-78
1

skipif mysql # not compatible
query II rowsort label-4757
SELECT - SUM ( 78 ) AS col2, 49 / NULLIF ( 40, COUNT ( * ) )
----
-78
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT DISTINCT SUM( ALL 58 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT SUM ( ALL 58 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT 25 * + + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-4759
SELECT 25 * + + COUNT ( * )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4760
SELECT ALL ( ( + 19 ) ) DIV 90 + + 48 col0
----
48

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL ( ( + 19 ) ) / 90 + + 48 col0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4761
SELECT - CAST( - 91 AS SIGNED ) * 86 + + 93 + - - 36 + - ( + 62 ) * - 82, - 0 AS col2
----
13039
0

skipif mysql # not compatible
query II rowsort label-4761
SELECT - CAST ( - 91 AS INTEGER ) * 86 + + 93 + - - 36 + - ( + 62 ) * - 82, - 0 AS col2
----
13039
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT ALL 42 * + - SUM( 89 )
----
-3738

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL 42 * + - SUM ( 89 )
----
-3738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4763
SELECT MIN( + - CAST( + 25 AS SIGNED ) ) * COUNT( * ) + + + 90 + - 82 + + - NULLIF ( 45, - 43 ) + + CAST( NULL AS DECIMAL ) * - ( 8 ) * - - 62 AS col1, 4 + - NULLIF ( 55, - ( - + 7 ) )
----
NULL
-51

skipif mysql # not compatible
query II rowsort label-4763
SELECT MIN ( + - CAST ( + 25 AS INTEGER ) ) * COUNT ( * ) + + + 90 + - 82 + + - NULLIF ( 45, - 43 ) + + CAST ( NULL AS REAL ) * - ( 8 ) * - - 62 AS col1, 4 + - NULLIF ( 55, - ( - + 7 ) )
----
NULL
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT DISTINCT - COUNT( * ) * - 34 * 33 - + ( + + 16 )
----
1106

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT - COUNT ( * ) * - 34 * 33 - + ( + + 16 )
----
1106

onlyif mysql # aggregate syntax: 
query II rowsort label-4765
SELECT DISTINCT 77 * - + COUNT( * ) * + 91 AS col0, NULLIF ( - 37, + - 82 )
----
-7007
-37

skipif mysql # not compatible
query II rowsort label-4765
SELECT DISTINCT 77 * - + COUNT ( * ) * + 91 AS col0, NULLIF ( - 37, + - 82 )
----
-7007
-37

query I rowsort
SELECT 66 + + 63
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT + SUM( - - 51 )
----
51

skipif mysql # not compatible
query I rowsort label-4767
SELECT + SUM ( - - 51 )
----
51

query I rowsort
SELECT - 88 * - 70
----
6160

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT + MIN( - + 34 ) + - 8 col0
----
-42

skipif mysql # not compatible
query I rowsort label-4769
SELECT + MIN ( - + 34 ) + - 8 col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT MAX( ALL + 27 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4770
SELECT MAX ( ALL + 27 ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT + MIN( ALL - 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-4771
SELECT + MIN ( ALL - 70 ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT + SUM( ALL + + 12 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4772
SELECT + SUM ( ALL + + 12 ) AS col2
----
12

query I rowsort
SELECT ALL 46 * 19
----
874

query I rowsort
SELECT + - 86 * + 32 + 44 - + 22 * 5
----
-2818

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4775
SELECT DISTINCT + - COALESCE ( + COALESCE ( CAST( NULL AS SIGNED ), + 50 + 61 + - + 83 + 74 + CASE - 78 WHEN - 17 / 10 * - COUNT( * ) THEN + CASE + ( + 6 ) WHEN 98 - + 55 THEN + 55 END + + 61 WHEN 65 + + - 55 THEN NULL ELSE NULL END * ( + CASE + COUNT( * ) WHEN 31 + - ( 37 ) THEN + 61 ELSE + - 36 END ) * - CAST( + + CASE 92 WHEN - - 94 THEN 59 ELSE - 74 END AS SIGNED ) - ( COUNT( * ) ) * 80 ), 18 * - 59, 35 + MAX( DISTINCT + 24 + + 18 ) ) col0
----
1062

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT + - COALESCE ( + COALESCE ( CAST ( NULL AS INTEGER ), + 50 + 61 + - + 83 + 74 + CASE - 78 WHEN - 17 / 10 * - COUNT ( * ) THEN + CASE + ( + 6 ) WHEN 98 - + 55 THEN + 55 END + + 61 WHEN 65 + + - 55 THEN NULL ELSE NULL END * ( + CASE + COUNT ( * ) WHEN 31 + - ( 37 ) THEN + 61 ELSE + - 36 END ) * - CAST ( + + CASE 92 WHEN - - 94 THEN 59 ELSE - 74 END AS INTEGER ) - ( COUNT ( * ) ) * 80 ), 18 * - 59, 35 + MAX ( DISTINCT + 24 + + 18 ) ) col0
----
1062

query I rowsort
SELECT + COALESCE ( 91, + - 17 ) + + 43 + 66 AS col2
----
200

onlyif mysql # DIV for integer division: 
query II rowsort label-4777
SELECT - 67, + 48 DIV + 74 + - 36 AS col1
----
-67
-36

skipif mysql # not compatible
query II rowsort label-4777
SELECT - 67, + 48 / + 74 + - 36 AS col1
----
-67
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT - MAX( - + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-4778
SELECT - MAX ( - + 73 )
----
73

query I rowsort
SELECT ALL - + 40 + - 60 + - 31 + + 8 * - - 62 * - 96 * + 29
----
-1380995

query I rowsort
SELECT DISTINCT 38 * + 41
----
1558

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4781
SELECT DISTINCT COUNT( * ) + - 39 DIV - - 78, - 83 DIV 25 * - 14 AS col2
----
1
42

skipif mysql # not compatible
query II rowsort label-4781
SELECT DISTINCT COUNT ( * ) + - 39 / - - 78, - 83 / 25 * - 14 AS col2
----
1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT ALL - COUNT( * ) + ( 95 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL - COUNT ( * ) + ( 95 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-4783
SELECT ALL + - COUNT( + + 93 ) - - 41, + 67 col2
----
40
67

skipif mysql # not compatible
query II rowsort label-4783
SELECT ALL + - COUNT ( + + 93 ) - - 41, + 67 col2
----
40
67

query I rowsort
SELECT + 57 + - - 32 * 42
----
1401

query I rowsort
SELECT - 27 - + - ( - ( - 12 ) ) * - 48 AS col2
----
-603

query I rowsort
SELECT ALL COALESCE ( 76, + 38 ) AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4787
SELECT ALL + NULLIF ( 84, + 25 ) * CAST( NULL AS SIGNED ) * + + 72 + - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL + NULLIF ( 84, + 25 ) * CAST ( NULL AS INTEGER ) * + + 72 + - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 54 * + + 3
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT ALL SUM( DISTINCT - + 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL SUM ( DISTINCT - + 39 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ALL SUM( ALL 55 )
----
55

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL SUM ( ALL 55 )
----
55

query I rowsort
SELECT DISTINCT + 26 * + - 93 * - ( + 62 ) AS col1
----
149916

query I rowsort
SELECT DISTINCT + 9 * - - ( - 98 ) AS col0
----
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT 18 * 86 * ( - - COUNT( DISTINCT 14 ) ) + + 94
----
1642

skipif mysql # not compatible
query I rowsort label-4793
SELECT 18 * 86 * ( - - COUNT ( DISTINCT 14 ) ) + + 94
----
1642

query I rowsort
SELECT ( - 39 ) col1
----
-39

query II rowsort
SELECT + ( + 35 ) * + 25 * - 94 AS col0, ( - - 7 )
----
-82250
7

query II rowsort
SELECT ( + 79 ) col2, ( - 12 )
----
79
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4797
SELECT - 82 + + ( + + 30 ) DIV + ( - COALESCE ( + + 80, + 40 + - 81 ) ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-4797
SELECT - 82 + + ( + + 30 ) / + ( - COALESCE ( + + 80, + 40 + - 81 ) ) AS col2
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4798
SELECT + NULLIF ( - 68, + - 1 * - CAST( + ( - 95 ) AS SIGNED ) + CAST( NULL AS SIGNED ) + + + 9 * - - 48 + - + 88 ) col1
----
-68

skipif mysql # not compatible
query I rowsort label-4798
SELECT + NULLIF ( - 68, + - 1 * - CAST ( + ( - 95 ) AS INTEGER ) + CAST ( NULL AS INTEGER ) + + + 9 * - - 48 + - + 88 ) col1
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-4799
SELECT ALL + ( + COUNT( * ) ) col1, + 51
----
1
51

skipif mysql # not compatible
query II rowsort label-4799
SELECT ALL + ( + COUNT ( * ) ) col1, + 51
----
1
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT DISTINCT 31 * + 95 + COUNT( * ) + 82 AS col0
----
3028

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT 31 * + 95 + COUNT ( * ) + 82 AS col0
----
3028

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT ALL COALESCE ( 15, - CASE + + 6 WHEN - 95 + - ( COUNT( * ) ) THEN NULL ELSE - - COUNT( + + 82 ) END * - - COUNT( * ), COUNT( ALL + 9 ) ) * - ( - + 93 ) / + + 30 + CASE NULLIF ( - 15, - 40 ) WHEN - COUNT( * ) THEN + + 97 / AVG ( ALL - + 13 ) + + 94 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL COALESCE ( 15, - CASE + + 6 WHEN - 95 + - ( COUNT ( * ) ) THEN NULL ELSE - - COUNT ( + + 82 ) END * - - COUNT ( * ), COUNT ( ALL + 9 ) ) * - ( - + 93 ) / + + 30 + CASE NULLIF ( - 15, - 40 ) WHEN - COUNT ( * ) THEN + + 97 / AVG ( ALL - + 13 ) + + 94 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT COUNT( DISTINCT - 44 ) * 20 + + 15 + - 61
----
-26

skipif mysql # not compatible
query I rowsort label-4802
SELECT COUNT ( DISTINCT - 44 ) * 20 + + 15 + - 61
----
-26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4803
SELECT + - 82 DIV + - CAST( ( + - 5 ) AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-4803
SELECT + - 82 / + - CAST ( ( + - 5 ) AS INTEGER )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4804
SELECT ALL - + NULLIF ( + 77, - AVG ( - + CAST( + CAST( 85 AS SIGNED ) AS SIGNED ) ) ) * + 50 + + COUNT( * )
----
-3849

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL - + NULLIF ( + 77, - AVG ( - + CAST ( + CAST ( 85 AS INTEGER ) AS INTEGER ) ) ) * + 50 + + COUNT ( * )
----
-3849

query I rowsort
SELECT ALL - - 63 * 6
----
378

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4806
SELECT ALL 0 * 99 + - 30 + 63 * 31 DIV - MIN( ALL - + 93 ) AS col0, 66 + - 64 + + - 71 - - 17 - 48 - 2 AS col2
----
-9
-102

skipif mysql # not compatible
query II rowsort label-4806
SELECT ALL 0 * 99 + - 30 + 63 * 31 / - MIN ( ALL - + 93 ) AS col0, 66 + - 64 + + - 71 - - 17 - 48 - 2 AS col2
----
-9
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4807
SELECT + 82 - - - COUNT( * ) DIV - 53 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4807
SELECT + 82 - - - COUNT ( * ) / - 53 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT DISTINCT - + COUNT( * ) * - ( - + ( + 48 ) ) * SUM( ALL - 49 ) + - COUNT( * )
----
2351

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT - + COUNT ( * ) * - ( - + ( + 48 ) ) * SUM ( ALL - 49 ) + - COUNT ( * )
----
2351

query I rowsort
SELECT ALL + - 81 * 49 + 78
----
-3891

query I rowsort
SELECT ALL - 94 * + 82 - - 13
----
-7695

query I rowsort
SELECT DISTINCT - NULLIF ( - 37, + 23 ) AS col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4812
SELECT ALL - 29 * + - 66 + 65 * - 1 + - - 43 + + + CAST( NULL AS SIGNED ) - 94 - 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL - 29 * + - 66 + 65 * - 1 + - - 43 + + + CAST ( NULL AS INTEGER ) - 94 - 84 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4813
SELECT + + 78 + - 80 * - CAST( NULL AS DECIMAL ) * + 95 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT + + 78 + - 80 * - CAST ( NULL AS REAL ) * + 95 col0
----
NULL

query I rowsort
SELECT + 11 + - 54
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-4815
SELECT 7, 77 + + 50 * - + ( + COUNT( * ) ) col0
----
7
27

skipif mysql # not compatible
query II rowsort label-4815
SELECT 7, 77 + + 50 * - + ( + COUNT ( * ) ) col0
----
7
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4816
SELECT + 96 + + + CAST( 13 AS SIGNED )
----
109

skipif mysql # not compatible
query I rowsort label-4816
SELECT + 96 + + + CAST ( 13 AS INTEGER )
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4817
SELECT + MIN( ALL 89 ) DIV 80 - - 76 DIV + COUNT( * ) - - 99 AS col2
----
176

skipif mysql # not compatible
query I rowsort label-4817
SELECT + MIN ( ALL 89 ) / 80 - - 76 / + COUNT ( * ) - - 99 AS col2
----
176

query I rowsort
SELECT ALL NULLIF ( 89, 80 )
----
89

query II rowsort
SELECT + 72 + + ( - 21 ) AS col2, + 45
----
51
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT + COUNT( * ) + + + ( 86 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-4820
SELECT + COUNT ( * ) + + + ( 86 ) AS col1
----
87

query I rowsort
SELECT - 42 + - + 82 AS col1
----
-124

query I rowsort
SELECT - COALESCE ( + 33, + 81 ) * - 11 * + NULLIF ( + 88, - 19 )
----
31944

query I rowsort
SELECT DISTINCT 65 + 64
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4824
SELECT 85 + + 30 DIV + + NULLIF ( + 24, + - COUNT( * ) * - CASE CASE - 17 WHEN - - 24 THEN NULL WHEN - + 30 * - 35 * + COALESCE ( 35, NULLIF ( - 47, 45 ) ) - + - 68 THEN NULL ELSE 50 END WHEN + + 66 THEN 94 ELSE NULL END DIV - 16 - - NULLIF ( - CAST( NULL AS SIGNED ), + + 82 * + + 75 * - + MAX( DISTINCT + 27 ) - + - 88 ) + + 41 )
----
86

skipif mysql # not compatible
query I rowsort label-4824
SELECT 85 + + 30 / + + NULLIF ( + 24, + - COUNT ( * ) * - CASE CASE - 17 WHEN - - 24 THEN NULL WHEN - + 30 * - 35 * + COALESCE ( 35, NULLIF ( - 47, 45 ) ) - + - 68 THEN NULL ELSE 50 END WHEN + + 66 THEN 94 ELSE NULL END / - 16 - - NULLIF ( - CAST ( NULL AS INTEGER ), + + 82 * + + 75 * - + MAX ( DISTINCT + 27 ) - + - 88 ) + + 41 )
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4825
SELECT ALL - 50 + COUNT( * ) DIV - - 4 AS col2, ( 37 ) - 56 AS col1
----
-50
-19

skipif mysql # not compatible
query II rowsort label-4825
SELECT ALL - 50 + COUNT ( * ) / - - 4 AS col2, ( 37 ) - 56 AS col1
----
-50
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4826
SELECT 14 * 29 + - - 99 + - 66 - + 36 DIV 2 + + - 11 + - 9 + + - COALESCE ( + 7, + - 58 ) DIV + 19 + 61 - + 79 * 76 * 52 DIV 18 - + COUNT( * ) * + - 24 AS col2
----
-16858

skipif mysql # not compatible
query I rowsort label-4826
SELECT 14 * 29 + - - 99 + - 66 - + 36 / 2 + + - 11 + - 9 + + - COALESCE ( + 7, + - 58 ) / + 19 + 61 - + 79 * 76 * 52 / 18 - + COUNT ( * ) * + - 24 AS col2
----
-16858

query I rowsort
SELECT + 84 * + 95 + 20 AS col2
----
8000

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT + COUNT( * ) * 60 + - CASE WHEN NOT - 46 > NULL THEN - 0 * + 8 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT + COUNT ( * ) * 60 + - CASE WHEN NOT - 46 > NULL THEN - 0 * + 8 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT COUNT( * ) + 0 col0
----
1

skipif mysql # not compatible
query I rowsort label-4829
SELECT COUNT ( * ) + 0 col0
----
1

query I rowsort
SELECT ALL - 23 + - - 37
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL 64 + COUNT( ALL - 77 ) + - 20
----
45

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL 64 + COUNT ( ALL - 77 ) + - 20
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4832
SELECT ALL + 51 + - ( 33 ) + + MAX( - 43 ) AS col2, + COUNT( * ) - + - 65 * - COALESCE ( + 18, - 9 * CAST( - 2 AS SIGNED ) * - 99 * - - 93 ) + + ( + + 90 ) * + + 91
----
-25
7021

skipif mysql # not compatible
query II rowsort label-4832
SELECT ALL + 51 + - ( 33 ) + + MAX ( - 43 ) AS col2, + COUNT ( * ) - + - 65 * - COALESCE ( + 18, - 9 * CAST ( - 2 AS INTEGER ) * - 99 * - - 93 ) + + ( + + 90 ) * + + 91
----
-25
7021

query I rowsort
SELECT DISTINCT + 78 * + - 3
----
-234

query I rowsort
SELECT ALL - 24 + 54
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4835
SELECT 95 * - COUNT( + ( CASE ( 21 ) WHEN + 95 THEN NULL WHEN - 4 * + - 53 * 49 THEN 91 ELSE NULL END ) ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT 95 * - COUNT ( + ( CASE ( 21 ) WHEN + 95 THEN NULL WHEN - 4 * + - 53 * 49 THEN 91 ELSE NULL END ) ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4836
SELECT COUNT( * ) DIV - COUNT( * ) + 0 * - 26 + - ( + 33 ) * + COUNT( * ) + - 60 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-4836
SELECT COUNT ( * ) / - COUNT ( * ) + 0 * - 26 + - ( + 33 ) * + COUNT ( * ) + - 60 AS col0
----
-94

query I rowsort
SELECT + 44 * 49 + + - 15 AS col2
----
2141

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT 24 + 56 + 5 - - ( 68 ) + + + 86 * 73 + - COALESCE ( 9, + 99 * + 89, COUNT( ALL 47 ) ) + + - 53 - + 94 + ( 15 ) * + + COUNT( * ) * + - 22 * - ( 33 ) * 84 - 81 + + + 73 col0
----
921027

skipif mysql # not compatible
query I rowsort label-4838
SELECT 24 + 56 + 5 - - ( 68 ) + + + 86 * 73 + - COALESCE ( 9, + 99 * + 89, COUNT ( ALL 47 ) ) + + - 53 - + 94 + ( 15 ) * + + COUNT ( * ) * + - 22 * - ( 33 ) * 84 - 81 + + + 73 col0
----
921027

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT DISTINCT - MIN( DISTINCT 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-4839
SELECT DISTINCT - MIN ( DISTINCT 7 )
----
-7

query I rowsort
SELECT + + NULLIF ( - 90, + 72 ) AS col1
----
-90

query I rowsort
SELECT - 32 * + ( + - 2 ) col1
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4842
SELECT ALL - COUNT( * ) DIV 74 - + 86 * - 3 * - + 12 AS col2
----
-3096

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL - COUNT ( * ) / 74 - + 86 * - 3 * - + 12 AS col2
----
-3096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4843
SELECT DISTINCT - CAST( - + 9 AS SIGNED ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT - CAST ( - + 9 AS INTEGER ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT + COUNT( ALL + - 0 ) * - + 12
----
-12

skipif mysql # not compatible
query I rowsort label-4844
SELECT + COUNT ( ALL + - 0 ) * - + 12
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4845
SELECT ALL - 88 DIV COALESCE ( - 26, + 14, - - CASE - 46 WHEN + COALESCE ( - + 39, 45 DIV 43 ) THEN + 79 ELSE 95 + - 2 + - COUNT( * ) END + - - 12 ) + - 20
----
-17

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL - 88 / COALESCE ( - 26, + 14, - - CASE - 46 WHEN + COALESCE ( - + 39, 45 / 43 ) THEN + 79 ELSE 95 + - 2 + - COUNT ( * ) END + - - 12 ) + - 20
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT DISTINCT - CASE 54 WHEN + + 53 * + 61 THEN - + 88 + + COUNT( * ) WHEN + 57 THEN NULL END * + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT - CASE 54 WHEN + + 53 * + 61 THEN - + 88 + + COUNT ( * ) WHEN + 57 THEN NULL END * + 17 AS col0
----
NULL

query II rowsort
SELECT + 26 + 86 * 3, + 71 * + 39 * - + 68 AS col0
----
284
-188292

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT 3 + - ( + + MIN( 87 ) ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-4848
SELECT 3 + - ( + + MIN ( 87 ) ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT + CASE + 60 WHEN + COUNT( * ) + - - ( - 86 ) THEN NULLIF ( - - 44, + COUNT( + 93 ) ) + - 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT + CASE + 60 WHEN + COUNT ( * ) + - - ( - 86 ) THEN NULLIF ( - - 44, + COUNT ( + 93 ) ) + - 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT ALL + CASE - + 99 WHEN - 79 THEN - + ( + 5 ) END * - SUM( DISTINCT - + 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL + CASE - + 99 WHEN - 79 THEN - + ( + 5 ) END * - SUM ( DISTINCT - + 9 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT - 48 * + 35 * - 43 + COUNT( * ) AS col0
----
72241

skipif mysql # not compatible
query I rowsort label-4851
SELECT - 48 * + 35 * - 43 + COUNT ( * ) AS col0
----
72241

query I rowsort
SELECT - 18 * + - 44
----
792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4853
SELECT 52 - - 7 + - 56 + AVG ( - 74 ) + + COALESCE ( + + 75, + 83 - 42 ) + SUM( 90 ) + - - 60 * 82 + + MIN( - 87 ) * - CAST( NULL AS SIGNED ) + - - COUNT( * ) + + ( - + 81 ) * 93 * + + 78 * - ( NULLIF ( - 23, - + 34 ) ) * COUNT( * ) + - MAX( - 79 ) + + + 9 + + + 60 AS col0, 45 AS col1
----
NULL
45

skipif mysql # not compatible
query II rowsort label-4853
SELECT 52 - - 7 + - 56 + AVG ( - 74 ) + + COALESCE ( + + 75, + 83 - 42 ) + SUM ( 90 ) + - - 60 * 82 + + MIN ( - 87 ) * - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) + + ( - + 81 ) * 93 * + + 78 * - ( NULLIF ( - 23, - + 34 ) ) * COUNT ( * ) + - MAX ( - 79 ) + + + 9 + + + 60 AS col0, 45 AS col1
----
NULL
45

query II rowsort
SELECT DISTINCT 96, COALESCE ( + 96, + - 30 )
----
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT ALL + COUNT( * ) * - 99 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL + COUNT ( * ) * - 99 AS col1
----
-99

query II rowsort
SELECT 50 * + 14 col2, + 53 AS col1
----
700
53

query II rowsort
SELECT 71 AS col2, - 58 AS col1
----
71
-58

query II rowsort
SELECT 40 * - ( + + ( + 69 ) ), + COALESCE ( 44, - 77 ) col2
----
-2760
44

query I rowsort
SELECT 75 * - ( 76 ) * + - 34 + - + 14 AS col2
----
193786

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4860
SELECT DISTINCT 24 + + - CASE - 1 WHEN - + 46 + + - ( 63 ) * + 40 THEN ( CAST( + 97 AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT 24 + + - CASE - 1 WHEN - + 46 + + - ( 63 ) * + 40 THEN ( CAST ( + 97 AS INTEGER ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4861
SELECT - 67 col0, + CAST( - MIN( ALL + 10 ) AS SIGNED ) * 45 col0
----
-67
-450

skipif mysql # not compatible
query II rowsort label-4861
SELECT - 67 col0, + CAST ( - MIN ( ALL + 10 ) AS INTEGER ) * 45 col0
----
-67
-450

query I rowsort
SELECT ALL 59 * + 42
----
2478

onlyif mysql # DIV for integer division: 
query I rowsort label-4863
SELECT 95 DIV + + 77 col0
----
1

skipif mysql # not compatible
query I rowsort label-4863
SELECT 95 / + + 77 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4864
SELECT 65 * - + COALESCE ( - CAST( NULL AS SIGNED ), - - 53 + 80, - 46 )
----
-8645

skipif mysql # not compatible
query I rowsort label-4864
SELECT 65 * - + COALESCE ( - CAST ( NULL AS INTEGER ), - - 53 + 80, - 46 )
----
-8645

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ALL COUNT( ( + - ( - - 76 ) ) ) + 75 * + COUNT( * ) * 91
----
6826

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL COUNT ( ( + - ( - - 76 ) ) ) + 75 * + COUNT ( * ) * 91
----
6826

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4866
SELECT - 77 AS col1, - 0 - - CAST( NULL AS SIGNED ) + - 46
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-4866
SELECT - 77 AS col1, - 0 - - CAST ( NULL AS INTEGER ) + - 46
----
-77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT ALL 23 * - CAST( 68 AS SIGNED )
----
-1564

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL 23 * - CAST ( 68 AS INTEGER )
----
-1564

onlyif mysql # DIV for integer division: 
query I rowsort label-4868
SELECT 84 DIV 73 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4868
SELECT 84 / 73 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT COUNT( ALL 39 )
----
1

skipif mysql # not compatible
query I rowsort label-4869
SELECT COUNT ( ALL 39 )
----
1

query I rowsort
SELECT ALL 17 * + + 75 * + 22 AS col2
----
28050

query I rowsort
SELECT DISTINCT 76 + - + 67 col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT 4 * + - COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4872
SELECT 4 * + - COUNT ( * ) AS col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-4873
SELECT 10 DIV - 36
----
0

skipif mysql # not compatible
query I rowsort label-4873
SELECT 10 / - 36
----
0

query II rowsort
SELECT + 57, - 73 AS col0
----
57
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT ( NULLIF ( - 63, + + COUNT( * ) ) ) + 94 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4875
SELECT ( NULLIF ( - 63, + + COUNT ( * ) ) ) + 94 AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4876
SELECT - 16 + - COALESCE ( 80, NULLIF ( - ( + COALESCE ( 85, + + COALESCE ( COUNT( DISTINCT + 34 ), - ( NULLIF ( + - 53, + 54 * - COUNT( * ) ) ) - + 30, + ( - 63 ) * - ( - COUNT( * ) ) ) ) ), - CAST( - COUNT( * ) AS SIGNED ) ) + - 9 + + 48 DIV + SUM( ALL + 83 ) ) col0
----
-96

skipif mysql # not compatible
query I rowsort label-4876
SELECT - 16 + - COALESCE ( 80, NULLIF ( - ( + COALESCE ( 85, + + COALESCE ( COUNT ( DISTINCT + 34 ), - ( NULLIF ( + - 53, + 54 * - COUNT ( * ) ) ) - + 30, + ( - 63 ) * - ( - COUNT ( * ) ) ) ) ), - CAST ( - COUNT ( * ) AS INTEGER ) ) + - 9 + + 48 / + SUM ( ALL + 83 ) ) col0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4877
SELECT 14 * 21 DIV + - 50 + + - 21 * - 24 AS col1
----
499

skipif mysql # not compatible
query I rowsort label-4877
SELECT 14 * 21 / + - 50 + + - 21 * - 24 AS col1
----
499

query I rowsort
SELECT ALL - 8 - ( 85 )
----
-93

query II rowsort
SELECT DISTINCT - 31, 34 AS col0
----
-31
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT DISTINCT - NULLIF ( + 33, - COUNT( * ) + + - 36 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT - NULLIF ( + 33, - COUNT ( * ) + + - 36 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4881
SELECT ALL + - 20 - + 76, 81 + - 47 - + 9 + + - COUNT( * ) * + COUNT( * ) col1
----
-96
24

skipif mysql # not compatible
query II rowsort label-4881
SELECT ALL + - 20 - + 76, 81 + - 47 - + 9 + + - COUNT ( * ) * + COUNT ( * ) col1
----
-96
24

query I rowsort
SELECT DISTINCT - - ( - 0 ) * COALESCE ( 54, + - 0 ) AS col2
----
0

query I rowsort
SELECT + 57 + - 87
----
-30

query I rowsort
SELECT ALL - 58 * 72 * + 87
----
-363312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4885
SELECT - - COUNT( * ) * - - 50 + CAST( NULL AS SIGNED ) * 5 * + - 49 * + 39 / + AVG ( - 65 ) * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4885
SELECT - - COUNT ( * ) * - - 50 + CAST ( NULL AS INTEGER ) * 5 * + - 49 * + 39 / + AVG ( - 65 ) * + 14
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4886
SELECT ALL - - 49 AS col2, 26 - MIN( - + 5 ) AS col2
----
49
31

skipif mysql # not compatible
query II rowsort label-4886
SELECT ALL - - 49 AS col2, 26 - MIN ( - + 5 ) AS col2
----
49
31

onlyif mysql # aggregate syntax: 
query II rowsort label-4887
SELECT - COUNT( * ) col0, + COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-4887
SELECT - COUNT ( * ) col0, + COUNT ( * )
----
-1
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4888
SELECT CAST( + - ( - 77 ) AS SIGNED ) * + 87 * - - ( 18 ) + + 21 + + + 37 DIV + 82 AS col0, - 36
----
120603
-36

skipif mysql # not compatible
query II rowsort label-4888
SELECT CAST ( + - ( - 77 ) AS INTEGER ) * + 87 * - - ( 18 ) + + 21 + + + 37 / + 82 AS col0, - 36
----
120603
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT COUNT( * ) * + 36 * + 82 AS col1
----
2952

skipif mysql # not compatible
query I rowsort label-4889
SELECT COUNT ( * ) * + 36 * + 82 AS col1
----
2952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4890
SELECT ( CAST( NULL AS SIGNED ) ) AS col2, - CASE - 68 WHEN + 40 THEN NULL WHEN 9 * - + 44 THEN NULL WHEN 50 + - 95 + + 14 - 29 THEN + ( MIN( 76 ) ) * - 31 ELSE NULL END + 32 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4890
SELECT ( CAST ( NULL AS INTEGER ) ) AS col2, - CASE - 68 WHEN + 40 THEN NULL WHEN 9 * - + 44 THEN NULL WHEN 50 + - 95 + + 14 - 29 THEN + ( MIN ( 76 ) ) * - 31 ELSE NULL END + 32 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT 67 + - + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-4891
SELECT 67 + - + COUNT ( * )
----
66

query II rowsort
SELECT DISTINCT - 26, - NULLIF ( 31, + 74 ) AS col1
----
-26
-31

query I rowsort
SELECT - 13 + 80 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT DISTINCT + 50 + + COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT + 50 + + COUNT ( * ) AS col0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4895
SELECT ALL - 95 * 47 DIV - 68
----
65

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL - 95 * 47 / - 68
----
65

query I rowsort
SELECT DISTINCT 18 * + - 2 * - ( + 48 ) AS col1
----
1728

query I rowsort
SELECT ALL 77 + + 1 AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4898
SELECT DISTINCT 71 + CASE - COALESCE ( - CASE - 56 WHEN + + 24 THEN 20 END, - 2, 83 * 18 ) WHEN - + 10 THEN - 70 WHEN 62 + + 96 THEN COUNT( ALL ( + NULLIF ( + - 8, + 1 ) ) ) * 77 - - NULLIF ( COUNT( * ), - 2 * - 2 + COUNT( * ) ) ELSE + COUNT( * ) END * - + 10 + NULLIF ( + CAST( NULL AS SIGNED ), - COUNT( * ) + 11 - - 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT 71 + CASE - COALESCE ( - CASE - 56 WHEN + + 24 THEN 20 END, - 2, 83 * 18 ) WHEN - + 10 THEN - 70 WHEN 62 + + 96 THEN COUNT ( ALL ( + NULLIF ( + - 8, + 1 ) ) ) * 77 - - NULLIF ( COUNT ( * ), - 2 * - 2 + COUNT ( * ) ) ELSE + COUNT ( * ) END * - + 10 + NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) + 11 - - 22 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4899
SELECT DISTINCT - 78 * SUM( DISTINCT + 21 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT - 78 * SUM ( DISTINCT + 21 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 76 + - 8 - 39 col2
----
29

query I rowsort
SELECT + 5 + - - 35
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT ALL COUNT( * ) - - 14 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL COUNT ( * ) - - 14 AS col1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4903
SELECT ALL 70 DIV SUM( DISTINCT + - 41 )
----
-1

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL 70 / SUM ( DISTINCT + - 41 )
----
-1

query I rowsort
SELECT + 81 + 57 AS col0
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4905
SELECT ALL 64 * - SUM( - 21 ) - + CAST( + 71 AS SIGNED )
----
1273

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL 64 * - SUM ( - 21 ) - + CAST ( + 71 AS INTEGER )
----
1273

onlyif mysql # DIV for integer division: 
query II rowsort label-4906
SELECT ALL 75 DIV - + 73 AS col0, - 43 * 13
----
-1
-559

skipif mysql # not compatible
query II rowsort label-4906
SELECT ALL 75 / - + 73 AS col0, - 43 * 13
----
-1
-559

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT ALL - COUNT( + NULLIF ( - 1, - 5 * + + ( + 23 ) * + 44 + - 85 ) ) * 33 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL - COUNT ( + NULLIF ( - 1, - 5 * + + ( + 23 ) * + 44 + - 85 ) ) * 33 AS col1
----
-33

query I rowsort
SELECT + + 93 * + 34 + + - 71 AS col1
----
3091

query I rowsort
SELECT ALL + + ( - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4910
SELECT 2 * - - 59 + + + 97, - COUNT( * ) AS col0
----
215
-1

skipif mysql # not compatible
query II rowsort label-4910
SELECT 2 * - - 59 + + + 97, - COUNT ( * ) AS col0
----
215
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4911
SELECT + ( 26 ) * - 2 DIV SUM( + COALESCE ( - ( - - 77 ), 19 ) ) * - 91 + 92 * - 49 AS col1
----
-4508

skipif mysql # not compatible
query I rowsort label-4911
SELECT + ( 26 ) * - 2 / SUM ( + COALESCE ( - ( - - 77 ), 19 ) ) * - 91 + 92 * - 49 AS col1
----
-4508

query I rowsort
SELECT DISTINCT + ( - + 17 )
----
-17

query II rowsort
SELECT + ( 27 ) col0, + 31
----
27
31

query I rowsort
SELECT - 91 * - 68
----
6188

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4915
SELECT DISTINCT + - COALESCE ( - 61, - + 69 DIV 53 + CAST( NULL AS SIGNED ), - + 32 DIV + 77 DIV + + 7 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT + - COALESCE ( - 61, - + 69 / 53 + CAST ( NULL AS INTEGER ), - + 32 / + 77 / + + 7 ) AS col0
----
61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4916
SELECT ALL + NULLIF ( - - 36, - 81 + - CAST( - - 7 AS DECIMAL ) + - + 78 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL + NULLIF ( - - 36, - 81 + - CAST ( - - 7 AS REAL ) + - + 78 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT + ( - COUNT( ALL + - 33 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4917
SELECT + ( - COUNT ( ALL + - 33 ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4918
SELECT + 72 + + + SUM( DISTINCT - CAST( 40 AS SIGNED ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-4918
SELECT + 72 + + + SUM ( DISTINCT - CAST ( 40 AS INTEGER ) ) AS col2
----
32

query I rowsort
SELECT ALL + 63 * 95
----
5985

query I rowsort
SELECT DISTINCT NULLIF ( + 4, - 2 )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4921
SELECT COUNT( * ), 3 - 44 AS col1
----
1
-41

skipif mysql # not compatible
query II rowsort label-4921
SELECT COUNT ( * ), 3 - 44 AS col1
----
1
-41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4922
SELECT DISTINCT CASE 32 WHEN + CASE 71 WHEN 73 * COUNT( * ) * - + MAX( ALL - - 59 ) + 52 + + + 29 - 48 THEN NULL WHEN + + COUNT( * ) THEN - - 41 END + 71 + NULLIF ( + - 77, 2 ) THEN NULL WHEN - 27 THEN COUNT( * ) WHEN - CAST( - 85 AS DECIMAL ) + 0 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT CASE 32 WHEN + CASE 71 WHEN 73 * COUNT ( * ) * - + MAX ( ALL - - 59 ) + 52 + + + 29 - 48 THEN NULL WHEN + + COUNT ( * ) THEN - - 41 END + 71 + NULLIF ( + - 77, 2 ) THEN NULL WHEN - 27 THEN COUNT ( * ) WHEN - CAST ( - 85 AS REAL ) + 0 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT ALL NULLIF ( + 19, + NULLIF ( - 18, - NULLIF ( + 32, + CASE 86 WHEN 27 THEN NULL ELSE 27 * + - 56 + COUNT( * ) END * - 65 * - 48 + + + 20 + 59 + - 98 + 55 ) * 19 * + 34 + + 86 * COALESCE ( + 72, 74 * - NULLIF ( - MIN( ALL 51 ), 96 / - 94 * - - 81 ) + - - 44, - + ( - - 16 ) ) ) * 62 )
----
19

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL NULLIF ( + 19, + NULLIF ( - 18, - NULLIF ( + 32, + CASE 86 WHEN 27 THEN NULL ELSE 27 * + - 56 + COUNT ( * ) END * - 65 * - 48 + + + 20 + 59 + - 98 + 55 ) * 19 * + 34 + + 86 * COALESCE ( + 72, 74 * - NULLIF ( - MIN ( ALL 51 ), 96 / - 94 * - - 81 ) + - - 44, - + ( - - 16 ) ) ) * 62 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT - ( + + 11 ) * - + MAX( DISTINCT - 20 )
----
-220

skipif mysql # not compatible
query I rowsort label-4924
SELECT - ( + + 11 ) * - + MAX ( DISTINCT - 20 )
----
-220

onlyif mysql # DIV for integer division: 
query I rowsort label-4925
SELECT DISTINCT - 74 - + NULLIF ( + 40, + 74 DIV + - ( - - 34 ) + - + 37 + 18 ) + 26 + - 54 DIV - 6
----
-79

skipif mysql # not compatible
query I rowsort label-4925
SELECT DISTINCT - 74 - + NULLIF ( + 40, + 74 / + - ( - - 34 ) + - + 37 + 18 ) + 26 + - 54 / - 6
----
-79

query I rowsort
SELECT - 82 + 42
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4927
SELECT - CAST( 23 AS SIGNED ) * + - 46 AS col2
----
1058

skipif mysql # not compatible
query I rowsort label-4927
SELECT - CAST ( 23 AS INTEGER ) * + - 46 AS col2
----
1058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4928
SELECT ALL CAST( - + 72 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL CAST ( - + 72 AS INTEGER )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL - - 24 - - COUNT( * ) * 44 * - 10 AS col2
----
-416

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL - - 24 - - COUNT ( * ) * 44 * - 10 AS col2
----
-416

query I rowsort
SELECT DISTINCT - 25 * - 58
----
1450

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT DISTINCT + SUM( ALL - - 31 )
----
31

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT + SUM ( ALL - - 31 )
----
31

query II rowsort
SELECT ALL 82 col1, 20 AS col2
----
82
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4933
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, - 21 * - 62 AS col1
----
NULL
1302

skipif mysql # not compatible
query II rowsort label-4933
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, - 21 * - 62 AS col1
----
NULL
1302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4934
SELECT ALL + + NULLIF ( - - 2, - 74 ), COUNT( * ) + MIN( CAST( + + 29 AS SIGNED ) ) AS col2
----
2
30

skipif mysql # not compatible
query II rowsort label-4934
SELECT ALL + + NULLIF ( - - 2, - 74 ), COUNT ( * ) + MIN ( CAST ( + + 29 AS INTEGER ) ) AS col2
----
2
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT - SUM( DISTINCT + 78 ) + + MIN( + 98 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4935
SELECT - SUM ( DISTINCT + 78 ) + + MIN ( + 98 ) AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4936
SELECT + + CAST( - 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-4936
SELECT + + CAST ( - 22 AS INTEGER )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4937
SELECT ALL + CASE 67 WHEN + - 80 THEN + ( + - ( - NULLIF ( + MIN( + 31 ), + 14 ) ) ) / - 3 ELSE NULL END / - + 38 + + 25 * - NULLIF ( CAST( NULL AS SIGNED ), 59 * + 47 * 44 + - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL + CASE 67 WHEN + - 80 THEN + ( + - ( - NULLIF ( + MIN ( + 31 ), + 14 ) ) ) / - 3 ELSE NULL END / - + 38 + + 25 * - NULLIF ( CAST ( NULL AS INTEGER ), 59 * + 47 * 44 + - 30 )
----
NULL

query I rowsort
SELECT + - 70 + - 15 + - - 97
----
12

query I rowsort
SELECT ALL + - 67 col2
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4940
SELECT DISTINCT + SUM( DISTINCT - ( - 1 ) ) DIV 19 * + - SUM( + 16 ) + + COUNT( * ) + 16 * + MAX( DISTINCT + 20 )
----
321

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT + SUM ( DISTINCT - ( - 1 ) ) / 19 * + - SUM ( + 16 ) + + COUNT ( * ) + 16 * + MAX ( DISTINCT + 20 )
----
321

query I rowsort
SELECT DISTINCT + 57 + - 78
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-4942
SELECT DISTINCT + ( - 2 ) + - 38 DIV 71
----
-2

skipif mysql # not compatible
query I rowsort label-4942
SELECT DISTINCT + ( - 2 ) + - 38 / 71
----
-2

query I rowsort
SELECT DISTINCT - 82 + 90 AS col0
----
8

query II rowsort
SELECT ALL - + 34, - 95 AS col2
----
-34
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4945
SELECT COALESCE ( + - 50, 65 + + - ( - + 96 ) * + COUNT( * ) ) DIV 67 * - 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4945
SELECT COALESCE ( + - 50, 65 + + - ( - + 96 ) * + COUNT ( * ) ) / 67 * - 45 AS col0
----
0

query I rowsort
SELECT ALL 60 + + 89 + - - 16 * + + 34
----
693

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4947
SELECT 69 + + + 58 AS col2, - 64 DIV + COALESCE ( - 50, - CASE - - 16 WHEN + NULLIF ( 46, + - 97 + - - ( ( - CASE + 10 WHEN - ( + ( - 75 ) ) * + 43 THEN + 2 + - 60 ELSE - + COUNT( * ) END ) ) + - + SUM( DISTINCT + - 91 ) * + - 84 ) THEN NULL WHEN - 68 + 56 THEN + + 48 * - - AVG ( DISTINCT - 8 ) WHEN + 83 THEN NULL END )
----
127
1

skipif mysql # not compatible
query II rowsort label-4947
SELECT 69 + + + 58 AS col2, - 64 / + COALESCE ( - 50, - CASE - - 16 WHEN + NULLIF ( 46, + - 97 + - - ( ( - CASE + 10 WHEN - ( + ( - 75 ) ) * + 43 THEN + 2 + - 60 ELSE - + COUNT ( * ) END ) ) + - + SUM ( DISTINCT + - 91 ) * + - 84 ) THEN NULL WHEN - 68 + 56 THEN + + 48 * - - AVG ( DISTINCT - 8 ) WHEN + 83 THEN NULL END )
----
127
1

query I rowsort
SELECT DISTINCT 66 + - 60
----
6

query I rowsort
SELECT ALL 1 - + - 83 AS col0
----
84

query I rowsort
SELECT DISTINCT 59 * + - 75 * - + 18 AS col0
----
79650

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT 65 + - - MAX( DISTINCT + + NULLIF ( - 27, 3 ) )
----
38

skipif mysql # not compatible
query I rowsort label-4951
SELECT 65 + - - MAX ( DISTINCT + + NULLIF ( - 27, 3 ) )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4952
SELECT CASE 6 WHEN 41 THEN NULL WHEN - + 32 / - MAX( ALL 67 ) / + 1 + + + 36 * - ( - + 21 ) THEN 97 ELSE NULL END * 61 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT CASE 6 WHEN 41 THEN NULL WHEN - + 32 / - MAX ( ALL 67 ) / + 1 + + + 36 * - ( - + 21 ) THEN 97 ELSE NULL END * 61 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT 4 * + - SUM( + + 82 )
----
-328

skipif mysql # not compatible
query I rowsort label-4953
SELECT 4 * + - SUM ( + + 82 )
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT ALL MAX( DISTINCT - 43 ) * - COUNT( * ) * - 4
----
-172

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL MAX ( DISTINCT - 43 ) * - COUNT ( * ) * - 4
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT ( 19 ) + + COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4955
SELECT ( 19 ) + + COUNT ( * ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT 13 + MIN( DISTINCT 96 )
----
109

skipif mysql # not compatible
query I rowsort label-4956
SELECT 13 + MIN ( DISTINCT 96 )
----
109

query I rowsort
SELECT ALL + 6 - - 7 * + 22
----
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4958
SELECT CAST( + - 26 AS SIGNED ) * 17 * 80 AS col0
----
-35360

skipif mysql # not compatible
query I rowsort label-4958
SELECT CAST ( + - 26 AS INTEGER ) * 17 * 80 AS col0
----
-35360

query I rowsort
SELECT 29 * - - 72
----
2088

query I rowsort
SELECT 0 + - 81 + + - 45 * + 51
----
-2376

onlyif mysql # DIV for integer division: 
query I rowsort label-4961
SELECT ALL + 32 DIV 24 + + 76 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL + 32 / 24 + + 76 AS col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4962
SELECT DISTINCT + + 84 DIV - 71 + - 24 - + - 55 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT + + 84 / - 71 + - 24 - + - 55 AS col2
----
30

query II rowsort
SELECT - ( + 62 ), - 86 AS col1
----
-62
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT COUNT( * ) * + - 45 * + 54 AS col2
----
-2430

skipif mysql # not compatible
query I rowsort label-4964
SELECT COUNT ( * ) * + - 45 * + 54 AS col2
----
-2430

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT + COUNT( * ) + + 30 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-4965
SELECT + COUNT ( * ) + + 30 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT + 76 * - - 30 * NULLIF ( - - ( - 16 ), MAX( 25 ) * 62 * + 83 * 49 + 28 ) AS col0
----
-36480

skipif mysql # not compatible
query I rowsort label-4966
SELECT + 76 * - - 30 * NULLIF ( - - ( - 16 ), MAX ( 25 ) * 62 * + 83 * 49 + 28 ) AS col0
----
-36480

onlyif mysql # aggregate syntax: 
query II rowsort label-4967
SELECT 93 + - 87 * + COUNT( DISTINCT + 9 ), COALESCE ( + 42, - + COUNT( * ) - + 39 ) AS col2
----
6
42

skipif mysql # not compatible
query II rowsort label-4967
SELECT 93 + - 87 * + COUNT ( DISTINCT + 9 ), COALESCE ( + 42, - + COUNT ( * ) - + 39 ) AS col2
----
6
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT ALL + 80 + MIN( + - 38 )
----
42

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL + 80 + MIN ( + - 38 )
----
42

query I rowsort
SELECT NULLIF ( ( - 1 ), + + 54 )
----
-1

query I rowsort
SELECT ALL - - 42 + + 76 * 57
----
4374

onlyif mysql # aggregate syntax: 
query II rowsort label-4971
SELECT ALL + ( + - COUNT( * ) ) * 62 + + 77 col1, 90 - + 34
----
15
56

skipif mysql # not compatible
query II rowsort label-4971
SELECT ALL + ( + - COUNT ( * ) ) * 62 + + 77 col1, 90 - + 34
----
15
56

query I rowsort
SELECT ALL + 19 + + 71
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT SUM( ALL 96 ) * + + 63 + + 92 * + + 66 col2
----
12120

skipif mysql # not compatible
query I rowsort label-4973
SELECT SUM ( ALL 96 ) * + + 63 + + 92 * + + 66 col2
----
12120

onlyif mysql # DIV for integer division: 
query I rowsort label-4974
SELECT ( + + 68 ) DIV 42
----
1

skipif mysql # not compatible
query I rowsort label-4974
SELECT ( + + 68 ) / 42
----
1

query I rowsort
SELECT ALL 61 + + 93 * + + 83 * + - 25 AS col2
----
-192914

query I rowsort
SELECT + 8 * + - 63 - 43
----
-547

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT ALL - MAX( + 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL - MAX ( + 31 )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4978
SELECT DISTINCT - 46 / + - 88 * - - 34 * - - CASE - - CAST( - - CASE - 94 WHEN - + 20 THEN + COUNT( * ) ELSE NULL END AS SIGNED ) WHEN 3 THEN - - 8 * - CASE 32 WHEN - + 39 THEN NULL WHEN - - 17 / + - 38 THEN - 22 * - CAST( NULL AS DECIMAL ) END ELSE NULL END / + + CAST( + 31 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT - 46 / + - 88 * - - 34 * - - CASE - - CAST ( - - CASE - 94 WHEN - + 20 THEN + COUNT ( * ) ELSE NULL END AS INTEGER ) WHEN 3 THEN - - 8 * - CASE 32 WHEN - + 39 THEN NULL WHEN - - 17 / + - 38 THEN - 22 * - CAST ( NULL AS REAL ) END ELSE NULL END / + + CAST ( + 31 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 37 - + 73 col1
----
-110

query I rowsort
SELECT 85 * - 57
----
-4845

query I rowsort
SELECT DISTINCT 60 * 14
----
840

query I rowsort
SELECT ALL 18 * + + 98 AS col2
----
1764

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT 4 - + 55 + + ( ( 66 ) ) + - 86 * COUNT( * ) * 90 AS col0
----
-7725

skipif mysql # not compatible
query I rowsort label-4983
SELECT 4 - + 55 + + ( ( 66 ) ) + - 86 * COUNT ( * ) * 90 AS col0
----
-7725

query I rowsort
SELECT 10 + 43
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT - MAX( DISTINCT + ( 78 ) )
----
-78

skipif mysql # not compatible
query I rowsort label-4985
SELECT - MAX ( DISTINCT + ( 78 ) )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-4986
SELECT ALL 47 DIV + + 53
----
0

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL 47 / + + 53
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4987
SELECT 94 DIV - 40 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4987
SELECT 94 / - 40 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4988
SELECT ( ( 15 ) ) + CAST( NULL AS SIGNED ) * NULLIF ( + - 94, + COUNT( * ) ) - 35 * - - 42 + - 62 * - - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4988
SELECT ( ( 15 ) ) + CAST ( NULL AS INTEGER ) * NULLIF ( + - 94, + COUNT ( * ) ) - 35 * - - 42 + - 62 * - - 33
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4989
SELECT DISTINCT 33, MAX( - 28 ) AS col0
----
33
-28

skipif mysql # not compatible
query II rowsort label-4989
SELECT DISTINCT 33, MAX ( - 28 ) AS col0
----
33
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT COUNT( * ) + MIN( - 77 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-4990
SELECT COUNT ( * ) + MIN ( - 77 ) AS col0
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4991
SELECT DISTINCT + ( ( + COUNT( * ) ) ) * + ( 71 ) + - + COUNT( * ) DIV - 29 + 52 + 82 * 93 AS col2
----
7749

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT + ( ( + COUNT ( * ) ) ) * + ( 71 ) + - + COUNT ( * ) / - 29 + 52 + 82 * 93 AS col2
----
7749

query II rowsort
SELECT DISTINCT 27 AS col1, + 9 * 31
----
27
279

query I rowsort
SELECT + 33 * + - 24 AS col0
----
-792

query II rowsort
SELECT - - 72, + 58 AS col2
----
72
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4995
SELECT 62 * CAST( - - AVG ( DISTINCT + 79 ) AS SIGNED ) AS col0
----
4898

skipif mysql # not compatible
query I rowsort label-4995
SELECT 62 * CAST ( - - AVG ( DISTINCT + 79 ) AS INTEGER ) AS col0
----
4898

query I rowsort
SELECT DISTINCT + - 19 + - 21
----
-40

query II rowsort
SELECT DISTINCT - 81 + + + 81 * + ( - - 46 ) * + - 31 AS col1, - 11 AS col1
----
-115587
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT DISTINCT + COALESCE ( + + 82, + + 1 * + COUNT( * ) + + 29, + 3 + - 61 - - 42 ) + 73 col0
----
155

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT + COALESCE ( + + 82, + + 1 * + COUNT ( * ) + + 29, + 3 + - 61 - - 42 ) + 73 col0
----
155

query I rowsort
SELECT DISTINCT + - 44 + + - 47 AS col0
----
-91

query II rowsort
SELECT - 40 AS col0, - 47 + 82 AS col0
----
-40
35

onlyif mysql # aggregate syntax: 
query II rowsort label-5001
SELECT ALL + + COUNT( + 41 ) + + COALESCE ( + + 65, COALESCE ( + - 9, - 90 * - 0 ) ) AS col2, 45
----
66
45

skipif mysql # not compatible
query II rowsort label-5001
SELECT ALL + + COUNT ( + 41 ) + + COALESCE ( + + 65, COALESCE ( + - 9, - 90 * - 0 ) ) AS col2, 45
----
66
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5002
SELECT 93 * + 75 * + 33 + 69 + 96 DIV + - 74 col1
----
230243

skipif mysql # not compatible
query I rowsort label-5002
SELECT 93 * + 75 * + 33 + 69 + 96 / + - 74 col1
----
230243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5003
SELECT - + 67 DIV 18 + - - 66 + - - 13 + + + ( - + COUNT( - + 12 ) )
----
75

skipif mysql # not compatible
query I rowsort label-5003
SELECT - + 67 / 18 + - - 66 + - - 13 + + + ( - + COUNT ( - + 12 ) )
----
75

query I rowsort
SELECT - 46 * + 82 AS col0
----
-3772

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT + - COUNT( + - 16 )
----
-1

skipif mysql # not compatible
query I rowsort label-5005
SELECT + - COUNT ( + - 16 )
----
-1

query I rowsort
SELECT - 99 + - - 58
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT 41 * 9 + + COUNT( * ) + + 4 * + COUNT( * )
----
374

skipif mysql # not compatible
query I rowsort label-5007
SELECT 41 * 9 + + COUNT ( * ) + + 4 * + COUNT ( * )
----
374

query I rowsort
SELECT ALL 60 * + 17 - + - 71 AS col0
----
1091

query I rowsort
SELECT DISTINCT + 50 * + 8 AS col0
----
400

query I rowsort
SELECT ALL - 20 * + + 0 * + - 83 - + 46 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT - 13 * + - COUNT( * ) * 70
----
910

skipif mysql # not compatible
query I rowsort label-5011
SELECT - 13 * + - COUNT ( * ) * 70
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT ALL + COALESCE ( - COUNT( * ), - 51 * - NULLIF ( - 39, 80 ) + - + 24 + + CASE - + 94 WHEN - 79 * - + 97 - + - 72 + 59 THEN + 28 ELSE NULL END - + 31 * 63 - - 53 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL + COALESCE ( - COUNT ( * ), - 51 * - NULLIF ( - 39, 80 ) + - + 24 + + CASE - + 94 WHEN - 79 * - + 97 - + - 72 + 59 THEN + 28 ELSE NULL END - + 31 * 63 - - 53 ) AS col2
----
-1

query I rowsort
SELECT - 89 + + - 7 AS col0
----
-96

query I rowsort
SELECT DISTINCT + ( ( + 36 ) ) AS col2
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5015
SELECT ALL 15 * ( - 88 ) - + 54 DIV - 48 AS col1
----
-1319

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL 15 * ( - 88 ) - + 54 / - 48 AS col1
----
-1319

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT - 77 * - COUNT( ALL + 34 )
----
77

skipif mysql # not compatible
query I rowsort label-5016
SELECT - 77 * - COUNT ( ALL + 34 )
----
77

query I rowsort
SELECT + 83 * 51
----
4233

query I rowsort
SELECT ALL 41 * + 83 * + + 15 AS col0
----
51045

query I rowsort
SELECT - 47 * - 68
----
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-5020
SELECT ALL - 97 DIV + 79 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL - 97 / + 79 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT DISTINCT 58 * - 85 * - + COUNT( * ) * MAX( + NULLIF ( + 95, + ( 52 ) ) ) col2
----
468350

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT 58 * - 85 * - + COUNT ( * ) * MAX ( + NULLIF ( + 95, + ( 52 ) ) ) col2
----
468350

query II rowsort
SELECT ALL 35 AS col2, + 71
----
35
71

query I rowsort
SELECT ALL 5 * - 43 AS col1
----
-215

query I rowsort
SELECT DISTINCT ( - 20 ) + + + 55
----
35

query II rowsort
SELECT 73 AS col1, - 69 AS col2
----
73
-69

query I rowsort
SELECT - 31 * - 9 AS col2
----
279

onlyif mysql # aggregate syntax: 
query II rowsort label-5027
SELECT COUNT( * ) AS col0, NULLIF ( + 50, - 71 ) + CASE + + COUNT( * ) WHEN - 42 * + - 25 THEN 65 END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5027
SELECT COUNT ( * ) AS col0, NULLIF ( + 50, - 71 ) + CASE + + COUNT ( * ) WHEN - 42 * + - 25 THEN 65 END
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5028
SELECT ALL 71 + COALESCE ( + 86, + 77, 11 * + MAX( DISTINCT - 80 ) + - CAST( - - 57 AS SIGNED ) ) + - - 6
----
163

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL 71 + COALESCE ( + 86, + 77, 11 * + MAX ( DISTINCT - 80 ) + - CAST ( - - 57 AS INTEGER ) ) + - - 6
----
163

query II rowsort
SELECT - - 87, + ( 24 ) * + 66 col2
----
87
1584

onlyif mysql # DIV for integer division: 
query I rowsort label-5030
SELECT + 14 DIV 55 DIV + 41 + 51 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-5030
SELECT + 14 / 55 / + 41 + 51 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT + - 32 + - + NULLIF ( + 88, + - 46 - - + ( - + 51 ) * - 23 ) + MIN( + 30 ) - - 39
----
-51

skipif mysql # not compatible
query I rowsort label-5031
SELECT + - 32 + - + NULLIF ( + 88, + - 46 - - + ( - + 51 ) * - 23 ) + MIN ( + 30 ) - - 39
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-5032
SELECT DISTINCT + 21 DIV + 21
----
1

skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT + 21 / + 21
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT ALL + 63 + + - 60 + + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL + 63 + + - 60 + + - COUNT ( * )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5034
SELECT + + CASE - ( + 48 ) WHEN 30 THEN CAST( 0 AS SIGNED ) + - 25 - - 41 / - + 71 + + 5 WHEN - - 87 * - 20 THEN + - 38 ELSE NULL END + COALESCE ( CAST( NULL AS SIGNED ), - COUNT( ALL 10 ) + + 75 ) + + - CAST( NULL AS SIGNED ) + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-5034
SELECT + + CASE - ( + 48 ) WHEN 30 THEN CAST ( 0 AS INTEGER ) + - 25 - - 41 / - + 71 + + 5 WHEN - - 87 * - 20 THEN + - 38 ELSE NULL END + COALESCE ( CAST ( NULL AS INTEGER ), - COUNT ( ALL 10 ) + + 75 ) + + - CAST ( NULL AS INTEGER ) + 1
----
NULL

query I rowsort
SELECT ALL - 52 + + 33 AS col2
----
-19

query I rowsort
SELECT + - 83 + - 82 AS col1
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT ALL + 77 + - MIN( - 32 ) * - + 64 + - 56
----
-2027

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL + 77 + - MIN ( - 32 ) * - + 64 + - 56
----
-2027

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5038
SELECT ALL - 97 + + COALESCE ( SUM( 32 ), + CAST( 48 AS SIGNED ), - COUNT( * ) - - 97 ) col1
----
-65

skipif mysql # not compatible
query I rowsort label-5038
SELECT ALL - 97 + + COALESCE ( SUM ( 32 ), + CAST ( 48 AS INTEGER ), - COUNT ( * ) - - 97 ) col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5039
SELECT + 3 + + 24 + - 41 + 30 * CASE 28 WHEN 30 THEN NULL ELSE + CAST( NULL AS DECIMAL ) END * - - COUNT( * ) + + 11 / + + ( + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT + 3 + + 24 + - 41 + 30 * CASE 28 WHEN 30 THEN NULL ELSE + CAST ( NULL AS REAL ) END * - - COUNT ( * ) + + 11 / + + ( + COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT + 17 + + - 66 col1
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-5041
SELECT DISTINCT ( + 78 ) col0, + COALESCE ( - + 40, - 70 * - NULLIF ( - + 25, - NULLIF ( - 20, NULLIF ( - - SUM( 73 ), - 37 * 98 + 20 ) ) - 84 ) ) + - - 50
----
78
10

skipif mysql # not compatible
query II rowsort label-5041
SELECT DISTINCT ( + 78 ) col0, + COALESCE ( - + 40, - 70 * - NULLIF ( - + 25, - NULLIF ( - 20, NULLIF ( - - SUM ( 73 ), - 37 * 98 + 20 ) ) - 84 ) ) + - - 50
----
78
10

query I rowsort
SELECT ALL 0 - - 6
----
6

query II rowsort
SELECT - - 81 col0, 26 AS col2
----
81
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT - 44 + - 40 * - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-5044
SELECT - 44 + - 40 * - COUNT ( * )
----
-4

query II rowsort
SELECT - - 12 AS col1, + 18 AS col1
----
12
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT ALL 58 * + - COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL 58 * + - COUNT ( * ) AS col2
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5047
SELECT ALL CASE + 60 WHEN COUNT( 45 ) * NULLIF ( 47, 11 ) * - + 57 THEN NULL ELSE - + 5 END DIV 35 - + 89 AS col1, + 32 * - 49 + SUM( - 5 ) AS col1
----
-89
-1573

skipif mysql # not compatible
query II rowsort label-5047
SELECT ALL CASE + 60 WHEN COUNT ( 45 ) * NULLIF ( 47, 11 ) * - + 57 THEN NULL ELSE - + 5 END / 35 - + 89 AS col1, + 32 * - 49 + SUM ( - 5 ) AS col1
----
-89
-1573

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5048
SELECT CAST( AVG ( + 7 ) AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-5048
SELECT CAST ( AVG ( + 7 ) AS INTEGER )
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5049
SELECT ALL 0 DIV 61 DIV 1 - + 18 * COUNT( * ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL 0 / 61 / 1 - + 18 * COUNT ( * ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT - MIN( DISTINCT 22 ) * - 33
----
726

skipif mysql # not compatible
query I rowsort label-5050
SELECT - MIN ( DISTINCT 22 ) * - 33
----
726

query II rowsort
SELECT ALL - 73 * + 18 AS col0, 71
----
-1314
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT - NULLIF ( - + 77, - 42 ) DIV - 24 col2
----
-3

skipif mysql # not compatible
query I rowsort label-5052
SELECT - NULLIF ( - + 77, - 42 ) / - 24 col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5053
SELECT CAST( - 25 AS SIGNED ) col0
----
-25

skipif mysql # not compatible
query I rowsort label-5053
SELECT CAST ( - 25 AS INTEGER ) col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT ALL + MIN( ALL - 24 ) * + + MAX( - 97 )
----
2328

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL + MIN ( ALL - 24 ) * + + MAX ( - 97 )
----
2328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5055
SELECT + CASE + 12 WHEN - 41 + + - 9 / - CAST( + 41 AS SIGNED ) + + 29 THEN - 10 + 82 ELSE NULL END / + 56 + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5055
SELECT + CASE + 12 WHEN - 41 + + - 9 / - CAST ( + 41 AS INTEGER ) + + 29 THEN - 10 + 82 ELSE NULL END / + 56 + + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT ALL - COUNT( * ) * + - 63 * + 30 AS col0
----
1890

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL - COUNT ( * ) * + - 63 * + 30 AS col0
----
1890

query I rowsort
SELECT ( + + 37 ) AS col2
----
37

query II rowsort
SELECT DISTINCT + CASE + 3 WHEN - - 44 THEN - 9 + + - 81 END, 24 AS col1
----
NULL
24

query I rowsort
SELECT ALL - 5 * - 35 + - 16 AS col0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT COALESCE ( + - CASE - 20 WHEN + - 57 THEN NULL ELSE - MAX( ALL 67 ) * - 33 + - 14 END, + 52 + 68 )
----
-2197

skipif mysql # not compatible
query I rowsort label-5060
SELECT COALESCE ( + - CASE - 20 WHEN + - 57 THEN NULL ELSE - MAX ( ALL 67 ) * - 33 + - 14 END, + 52 + 68 )
----
-2197

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT CASE - - COUNT( * ) WHEN 97 THEN - NULLIF ( - 39, - + 26 * - 94 ) + - - 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5061
SELECT CASE - - COUNT ( * ) WHEN 97 THEN - NULLIF ( - 39, - + 26 * - 94 ) + - - 78 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5062
SELECT ALL - CAST( - + MAX( ALL 95 ) AS SIGNED ) * + + 11
----
1045

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL - CAST ( - + MAX ( ALL 95 ) AS INTEGER ) * + + 11
----
1045

onlyif mysql # aggregate syntax: 
query II rowsort label-5063
SELECT - + 87 * + COUNT( * ) AS col1, 29 AS col0
----
-87
29

skipif mysql # not compatible
query II rowsort label-5063
SELECT - + 87 * + COUNT ( * ) AS col1, 29 AS col0
----
-87
29

onlyif mysql # aggregate syntax: 
query II rowsort label-5064
SELECT DISTINCT - COUNT( * ) * - 95 * - 71 * + + 78 + 17 + + 23 * + + COUNT( * ), - 86 AS col2
----
-526070
-86

skipif mysql # not compatible
query II rowsort label-5064
SELECT DISTINCT - COUNT ( * ) * - 95 * - 71 * + + 78 + 17 + + 23 * + + COUNT ( * ), - 86 AS col2
----
-526070
-86

query I rowsort
SELECT DISTINCT 5 + + + 30
----
35

query II rowsort
SELECT ALL - 43 * + 67 AS col2, + 19 + + + 38
----
-2881
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5067
SELECT ALL + + 23 * 80 - 57 + - ( 66 ) + - 4 - + + 12 + - + 77 * 4 DIV + 16 + - COUNT( * )
----
1681

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL + + 23 * 80 - 57 + - ( 66 ) + - 4 - + + 12 + - + 77 * 4 / + 16 + - COUNT ( * )
----
1681

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT ALL - 57 * NULLIF ( + 10, COUNT( * ) ) AS col1
----
-570

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL - 57 * NULLIF ( + 10, COUNT ( * ) ) AS col1
----
-570

query I rowsort
SELECT - - NULLIF ( 79, - 75 )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5070
SELECT ALL + 16 DIV 6 * + - 69
----
-138

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL + 16 / 6 * + - 69
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT 27 - - ( 23 ) + - CASE - COUNT( * ) WHEN - 73 + + + 24 THEN + + AVG ( ALL + - 50 ) WHEN - NULLIF ( - - 19, - 80 + + 41 * 83 ) THEN NULL ELSE NULL END + + - 91 + + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-5071
SELECT 27 - - ( 23 ) + - CASE - COUNT ( * ) WHEN - 73 + + + 24 THEN + + AVG ( ALL + - 50 ) WHEN - NULLIF ( - - 19, - 80 + + 41 * 83 ) THEN NULL ELSE NULL END + + - 91 + + - 39
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5072
SELECT ALL + COUNT( * ) - + CAST( - 60 AS SIGNED ) AS col2, - 86 AS col0
----
61
-86

skipif mysql # not compatible
query II rowsort label-5072
SELECT ALL + COUNT ( * ) - + CAST ( - 60 AS INTEGER ) AS col2, - 86 AS col0
----
61
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL NULLIF ( COUNT( * ), 85 ) - - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL NULLIF ( COUNT ( * ), 85 ) - - - COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5074
SELECT CAST( - COALESCE ( + 40, - + 81 * 37 / + - COUNT( * ) ) AS SIGNED ) - ( + 13 ) col1
----
-53

skipif mysql # not compatible
query I rowsort label-5074
SELECT CAST ( - COALESCE ( + 40, - + 81 * 37 / + - COUNT ( * ) ) AS INTEGER ) - ( + 13 ) col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT SUM( ALL + 39 ) * - + 70 col0
----
-2730

skipif mysql # not compatible
query I rowsort label-5075
SELECT SUM ( ALL + 39 ) * - + 70 col0
----
-2730

query I rowsort
SELECT ALL 78 * + COALESCE ( + 49, - 96 - - 97, - 62 ) AS col1
----
3822

query I rowsort
SELECT ( + ( + - 0 ) ) * 57 + - 82 * + + 47 + - 7 AS col0
----
-3861

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5078
SELECT COUNT( * ) - - 48 + + + 3 DIV - 88 * 92 DIV + 74 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-5078
SELECT COUNT ( * ) - - 48 + + + 3 / - 88 * 92 / + 74 AS col2
----
49

query I rowsort
SELECT ALL 95 * - 44 AS col0
----
-4180

onlyif mysql # DIV for integer division: 
query I rowsort label-5080
SELECT NULLIF ( 43, 63 ) DIV - - 58 + - ( - 71 )
----
71

skipif mysql # not compatible
query I rowsort label-5080
SELECT NULLIF ( 43, 63 ) / - - 58 + - ( - 71 )
----
71

query II rowsort
SELECT + 1, - 63 * 34 AS col1
----
1
-2142

query I rowsort
SELECT DISTINCT 30 * - + 34
----
-1020

query I rowsort
SELECT ALL 24 + + 87
----
111

query I rowsort
SELECT DISTINCT 94 * + ( 68 ) * - 78 * + NULLIF ( - - NULLIF ( + 85, - + 56 ), 96 ) AS col1
----
-42378960

query I rowsort
SELECT - 1 * 55 * - 67 + - 35 AS col1
----
3650

query I rowsort
SELECT 22 + 93 * + ( 87 ) + + 5 + 39 AS col0
----
8157

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL 88 + + COUNT( ALL + 25 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL 88 + + COUNT ( ALL + 25 ) AS col2
----
89

query I rowsort
SELECT ( + 26 ) * - 74
----
-1924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5089
SELECT 38 + + CAST( NULL AS SIGNED ) - + 3 * + - 76 * - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT 38 + + CAST ( NULL AS INTEGER ) - + 3 * + - 76 * - 3
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5090
SELECT 45 DIV + + COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-5090
SELECT 45 / + + COUNT ( * ) AS col1
----
45

query I rowsort
SELECT DISTINCT + 25 * 8 AS col1
----
200

query I rowsort
SELECT ALL - ( + 90 ) + - + 75 AS col0
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT DISTINCT 6 + - - NULLIF ( NULLIF ( + 92, + + NULLIF ( + 78, + CAST( NULL AS SIGNED ) ) ), + - 67 * + + 55 * - + 30 )
----
98

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT 6 + - - NULLIF ( NULLIF ( + 92, + + NULLIF ( + 78, + CAST ( NULL AS INTEGER ) ) ), + - 67 * + + 55 * - + 30 )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5094
SELECT + + CAST( + 82 AS SIGNED ) col2
----
82

skipif mysql # not compatible
query I rowsort label-5094
SELECT + + CAST ( + 82 AS INTEGER ) col2
----
82

query II rowsort
SELECT ALL 96, 58 AS col0
----
96
58

query I rowsort
SELECT ALL + 3 - + 50 AS col0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5097
SELECT 95 - - 7 + 64 DIV 20
----
105

skipif mysql # not compatible
query I rowsort label-5097
SELECT 95 - - 7 + 64 / 20
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-5098
SELECT - 77 * - 54 * + 66 DIV + 1
----
274428

skipif mysql # not compatible
query I rowsort label-5098
SELECT - 77 * - 54 * + 66 / + 1
----
274428

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5099
SELECT NULLIF ( 10, 76 ) + + 44 + 5 + + 53 * - - CAST( 6 AS SIGNED ) DIV 40 DIV + + 12
----
59

skipif mysql # not compatible
query I rowsort label-5099
SELECT NULLIF ( 10, 76 ) + + 44 + 5 + + 53 * - - CAST ( 6 AS INTEGER ) / 40 / + + 12
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5100
SELECT DISTINCT + 69 - - + 64 DIV - 53
----
68

skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT + 69 - - + 64 / - 53
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT MAX( ALL 97 )
----
97

skipif mysql # not compatible
query I rowsort label-5101
SELECT MAX ( ALL 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT COUNT( * ) + - - COUNT( * ) - 93
----
-91

skipif mysql # not compatible
query I rowsort label-5102
SELECT COUNT ( * ) + - - COUNT ( * ) - 93
----
-91

query I rowsort
SELECT + 43 * - 39 col2
----
-1677

query I rowsort
SELECT DISTINCT + 9 - 17 * - + 26 * + - ( 13 ) + ( + 23 )
----
-5714

onlyif mysql # aggregate syntax: 
query II rowsort label-5105
SELECT ALL 53 AS col0, COUNT( * ) * + 95
----
53
95

skipif mysql # not compatible
query II rowsort label-5105
SELECT ALL 53 AS col0, COUNT ( * ) * + 95
----
53
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT 95 + - - COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-5106
SELECT 95 + - - COUNT ( * ) AS col1
----
96

query I rowsort
SELECT DISTINCT + - 78 * - - 2
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT DISTINCT + - 53 * - COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5108
SELECT DISTINCT + - 53 * - COUNT ( * ) AS col2
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5109
SELECT 34 DIV 24 DIV + + ( - MAX( - 93 ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5109
SELECT 34 / 24 / + + ( - MAX ( - 93 ) ) col0
----
0

query I rowsort
SELECT 21 * 60 * - 85
----
-107100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5111
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) * 61 * ( - - 49 ) - 47 / + 95 / 35
----
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) * 61 * ( - - 49 ) - 47 / + 95 / 35
----
NULL

query I rowsort
SELECT ALL 48 + - 37
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5113
SELECT 94 * - - COALESCE ( - COUNT( * ), ( 32 ) DIV 84 + - - 45, - NULLIF ( - CASE COALESCE ( + COALESCE ( - 22, - + COUNT( 57 ), + AVG ( 65 ) ), 18 + 88 ) WHEN 0 THEN NULL ELSE - COUNT( * ) END, 26 ) ) * - - 99 - + 81 + 64 - ( + 93 ) AS col0
----
-9416

skipif mysql # not compatible
query I rowsort label-5113
SELECT 94 * - - COALESCE ( - COUNT ( * ), ( 32 ) / 84 + - - 45, - NULLIF ( - CASE COALESCE ( + COALESCE ( - 22, - + COUNT ( 57 ), + AVG ( 65 ) ), 18 + 88 ) WHEN 0 THEN NULL ELSE - COUNT ( * ) END, 26 ) ) * - - 99 - + 81 + 64 - ( + 93 ) AS col0
----
-9416

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT DISTINCT + 28 * - MIN( ALL + - ( - 86 ) ) + + ( - 8 )
----
-2416

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT + 28 * - MIN ( ALL + - ( - 86 ) ) + + ( - 8 )
----
-2416

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5115
SELECT DISTINCT 72 * + + CAST( NULL AS DECIMAL ) * - 34 * 17 + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT 72 * + + CAST ( NULL AS REAL ) * - 34 * 17 + 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT ALL - 95 * COUNT( * ) + + 96 * - 44
----
-4319

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL - 95 * COUNT ( * ) + + 96 * - 44
----
-4319

onlyif mysql # aggregate syntax: 
query II rowsort label-5117
SELECT ALL + COUNT( * ) * 96 + 51 - + 68, - COUNT( * ) * - 92 * - + COUNT( * ) + - + COUNT( * ) AS col0
----
79
-93

skipif mysql # not compatible
query II rowsort label-5117
SELECT ALL + COUNT ( * ) * 96 + 51 - + 68, - COUNT ( * ) * - 92 * - + COUNT ( * ) + - + COUNT ( * ) AS col0
----
79
-93

query I rowsort
SELECT ( 2 ) * - 66 AS col2
----
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-5119
SELECT SUM( - 51 ) AS col0, - 96
----
-51
-96

skipif mysql # not compatible
query II rowsort label-5119
SELECT SUM ( - 51 ) AS col0, - 96
----
-51
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT ALL - 18 * - + MIN( 39 ) + - 97 + - SUM( - 36 ) AS col0
----
641

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL - 18 * - + MIN ( 39 ) + - 97 + - SUM ( - 36 ) AS col0
----
641

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5121
SELECT 48 * + COALESCE ( + MIN( - 84 ), 9 + - 27 DIV + 52 ) - - ( COUNT( * ) ), - 41 AS col1
----
-4031
-41

skipif mysql # not compatible
query II rowsort label-5121
SELECT 48 * + COALESCE ( + MIN ( - 84 ), 9 + - 27 / + 52 ) - - ( COUNT ( * ) ), - 41 AS col1
----
-4031
-41

query I rowsort
SELECT - 21 * + - ( 86 ) * - + 10 - + - 77 + 42
----
-17941

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT + NULLIF ( + - COUNT( 38 ), 83 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5123
SELECT + NULLIF ( + - COUNT ( 38 ), 83 ) AS col1
----
-1

query I rowsort
SELECT ALL - 65 * 22
----
-1430

query I rowsort
SELECT - + 30 * - - 12 + 51 + + + 25
----
-284

query I rowsort
SELECT - 70 + 46
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5127
SELECT DISTINCT COALESCE ( 91, - + CAST( + - 43 AS SIGNED ) * + 37 - + CASE - 56 WHEN + 90 THEN NULL WHEN - 56 THEN - CAST( NULL AS SIGNED ) * - 82 * COUNT( * ) * - MAX( - - 96 ) + - NULLIF ( - + COALESCE ( + 53, + ( 58 ) ), - 36 ) END, SUM( 98 ) ) - + 60 + - 67 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT COALESCE ( 91, - + CAST ( + - 43 AS INTEGER ) * + 37 - + CASE - 56 WHEN + 90 THEN NULL WHEN - 56 THEN - CAST ( NULL AS INTEGER ) * - 82 * COUNT ( * ) * - MAX ( - - 96 ) + - NULLIF ( - + COALESCE ( + 53, + ( 58 ) ), - 36 ) END, SUM ( 98 ) ) - + 60 + - 67 AS col1
----
-36

query I rowsort
SELECT ALL + ( CASE - - 92 WHEN 1 THEN + 49 WHEN 15 THEN + 41 + 21 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT + COUNT( * ) * + SUM( 68 )
----
68

skipif mysql # not compatible
query I rowsort label-5129
SELECT + COUNT ( * ) * + SUM ( 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT + COUNT( * ) * + + CASE - NULLIF ( 86, - 13 ) WHEN - - 63 THEN NULL WHEN - + ( 58 ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5130
SELECT + COUNT ( * ) * + + CASE - NULLIF ( 86, - 13 ) WHEN - - 63 THEN NULL WHEN - + ( 58 ) THEN + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT DISTINCT 28 * CASE COUNT( DISTINCT - 56 ) WHEN COUNT( * ) THEN NULL WHEN 17 * + 50 / + 67 + + - 40 * - + COUNT( * ) THEN - 18 ELSE NULL END * + COUNT( DISTINCT - ( 75 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT 28 * CASE COUNT ( DISTINCT - 56 ) WHEN COUNT ( * ) THEN NULL WHEN 17 * + 50 / + 67 + + - 40 * - + COUNT ( * ) THEN - 18 ELSE NULL END * + COUNT ( DISTINCT - ( 75 ) ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5132
SELECT - - COALESCE ( 45, + COUNT( * ) DIV + 18 ) * + - 54 * + - 93 AS col1
----
225990

skipif mysql # not compatible
query I rowsort label-5132
SELECT - - COALESCE ( 45, + COUNT ( * ) / + 18 ) * + - 54 * + - 93 AS col1
----
225990

query I rowsort
SELECT ALL - 14 * + - 4 - - + 4 * 80
----
376

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT - - MAX( ALL + ( + - 54 ) ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-5134
SELECT - - MAX ( ALL + ( + - 54 ) ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT + ( - NULLIF ( - 86, - COUNT( * ) - - COALESCE ( - + 42, COALESCE ( 43, - 61, 92 ) + + + 17 * + + 87 ) ) ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-5135
SELECT + ( - NULLIF ( - 86, - COUNT ( * ) - - COALESCE ( - + 42, COALESCE ( 43, - 61, 92 ) + + + 17 * + + 87 ) ) ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT + + 33 + + - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-5136
SELECT + + 33 + + - COUNT ( * )
----
32

query I rowsort
SELECT ( + - 65 ) AS col1
----
-65

query I rowsort
SELECT - 43 * + + 42 * - + 63 AS col0
----
113778

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5139
SELECT - CAST( + 29 AS SIGNED ) - - - 81 + + - 69 DIV + ( 89 )
----
-110

skipif mysql # not compatible
query I rowsort label-5139
SELECT - CAST ( + 29 AS INTEGER ) - - - 81 + + - 69 / + ( 89 )
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5140
SELECT ALL MAX( + CAST( + 26 AS SIGNED ) ) col0
----
26

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL MAX ( + CAST ( + 26 AS INTEGER ) ) col0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5141
SELECT - 30 + + 47 - - COUNT( * ) DIV 80 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5141
SELECT - 30 + + 47 - - COUNT ( * ) / 80 AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5142
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL + 15 + 46
----
61

query I rowsort
SELECT ALL 77 * 68
----
5236

query I rowsort
SELECT - 94 + 51
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-5146
SELECT - 0 - + 40 DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-5146
SELECT - 0 - + 40 / 59
----
0

query I rowsort
SELECT ALL - 43 * + 11
----
-473

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT + 77 - - ( - + COUNT( * ) ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-5148
SELECT + 77 - - ( - + COUNT ( * ) ) AS col2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5149
SELECT 89 DIV - - 5 + + + 10 + - + 46 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-5149
SELECT 89 / - - 5 + + + 10 + - + 46 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT 52 * 97 + + + 17 + ( + 65 ) + - - 90 * - COALESCE ( NULLIF ( + CASE - + COUNT( * ) WHEN 33 THEN + + 47 ELSE NULL END, - - 86 + + + 39 ), - 40, + 67 ) col1
----
8726

skipif mysql # not compatible
query I rowsort label-5150
SELECT 52 * 97 + + + 17 + ( + 65 ) + - - 90 * - COALESCE ( NULLIF ( + CASE - + COUNT ( * ) WHEN 33 THEN + + 47 ELSE NULL END, - - 86 + + + 39 ), - 40, + 67 ) col1
----
8726

query I rowsort
SELECT + 70 * + ( 94 )
----
6580

query I rowsort
SELECT - 41 + - + ( + 6 ) - 7 * - - 9
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT ALL + MIN( DISTINCT 99 ) * + + 84 - - 46
----
8362

skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL + MIN ( DISTINCT 99 ) * + + 84 - - 46
----
8362

query I rowsort
SELECT 53 * 39 + - 76
----
1991

query I rowsort
SELECT + 34 * - 42 AS col0
----
-1428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5156
SELECT ALL + MIN( ALL + 4 ) * 0 * - 93 + - ( + MAX( - CAST( NULL AS SIGNED ) ) ) - ( 49 ) + - 34 / - CAST( 45 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL + MIN ( ALL + 4 ) * 0 * - 93 + - ( + MAX ( - CAST ( NULL AS INTEGER ) ) ) - ( 49 ) + - 34 / - CAST ( 45 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5157
SELECT + CASE + 17 WHEN + 76 + + COALESCE ( - 31, + 4 ) THEN - + CAST( NULL AS SIGNED ) + - ( + 75 ) WHEN - 21 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5157
SELECT + CASE + 17 WHEN + 76 + + COALESCE ( - 31, + 4 ) THEN - + CAST ( NULL AS INTEGER ) + - ( + 75 ) WHEN - 21 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + + COALESCE ( - 60, + 86 )
----
-60

query II rowsort
SELECT + + 79 AS col2, 31
----
79
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT + 59 + - 34 + + COUNT( * ) + - 45
----
-19

skipif mysql # not compatible
query I rowsort label-5160
SELECT + 59 + - 34 + + COUNT ( * ) + - 45
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT ALL 28 * - 92 + + 59 * SUM( - 90 ) + - + 25 AS col2
----
-7911

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL 28 * - 92 + + 59 * SUM ( - 90 ) + - + 25 AS col2
----
-7911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5162
SELECT - 98 * - + 6 * - + 77 + + - 95 / 77 + + CASE COALESCE ( - SUM( ALL + 0 ), NULLIF ( + 13, - 10 ) / - ( + + 84 ) + 35 + - 68 * + 7, - 33 * - 34 * - 37 * COUNT( * ) * - 17 + + 39 ) WHEN + 57 THEN + 42 * - 92 * + - 58 * 63 + + 1 END + + + 82 - 69 * CASE - + ( - + 43 ) WHEN + 53 THEN NULL WHEN - COUNT( * ) THEN - 6 * + ( - COUNT( * ) ) * CAST( - 27 AS SIGNED ) + - 83 ELSE NULL END * + 69 / - CASE + 96 WHEN + COUNT( * ) THEN - 22 END * ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT - 98 * - + 6 * - + 77 + + - 95 / 77 + + CASE COALESCE ( - SUM ( ALL + 0 ), NULLIF ( + 13, - 10 ) / - ( + + 84 ) + 35 + - 68 * + 7, - 33 * - 34 * - 37 * COUNT ( * ) * - 17 + + 39 ) WHEN + 57 THEN + 42 * - 92 * + - 58 * 63 + + 1 END + + + 82 - 69 * CASE - + ( - + 43 ) WHEN + 53 THEN NULL WHEN - COUNT ( * ) THEN - 6 * + ( - COUNT ( * ) ) * CAST ( - 27 AS INTEGER ) + - 83 ELSE NULL END * + 69 / - CASE + 96 WHEN + COUNT ( * ) THEN - 22 END * ( + COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL 55 * ( 39 ) AS col0
----
2145

onlyif mysql # DIV for integer division: 
query I rowsort label-5164
SELECT + + 48 DIV + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5164
SELECT + + 48 / + 98 AS col1
----
0

query I rowsort
SELECT - NULLIF ( - - 40, + - 82 ) * - 29 + - 29 AS col2
----
1131

onlyif mysql # DIV for integer division: 
query I rowsort label-5166
SELECT + 28 DIV + - 17 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5166
SELECT + 28 / + - 17 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5167
SELECT - 97 + - 81 - + 45 * + 66 DIV 86 DIV + NULLIF ( + + CASE - 88 WHEN + MIN( DISTINCT - 93 ) THEN COUNT( - 49 ) * - + 90 WHEN - 96 THEN 30 DIV - 31 * ( 16 ) + + 56 + + - 42 ELSE - - ( ( - NULLIF ( + 46, MIN( DISTINCT - - 72 ) ) ) ) END, - 23 - NULLIF ( - - 29, - COUNT( * ) ) + ( + 81 ) ) + 65 * - ( 3 ) + SUM( DISTINCT + 32 ) * + 57 AS col1, + 85 + + COUNT( * ) - + 91 AS col0
----
1451
-5

skipif mysql # not compatible
query II rowsort label-5167
SELECT - 97 + - 81 - + 45 * + 66 / 86 / + NULLIF ( + + CASE - 88 WHEN + MIN ( DISTINCT - 93 ) THEN COUNT ( - 49 ) * - + 90 WHEN - 96 THEN 30 / - 31 * ( 16 ) + + 56 + + - 42 ELSE - - ( ( - NULLIF ( + 46, MIN ( DISTINCT - - 72 ) ) ) ) END, - 23 - NULLIF ( - - 29, - COUNT ( * ) ) + ( + 81 ) ) + 65 * - ( 3 ) + SUM ( DISTINCT + 32 ) * + 57 AS col1, + 85 + + COUNT ( * ) - + 91 AS col0
----
1451
-5

query I rowsort
SELECT - ( 39 ) * + 81 * - 49 col2
----
154791

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT ALL + COUNT( * ) + + + 50 + + + CASE + 90 WHEN + + 16 THEN - - 73 / - 8 * 46 * + + 61 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL + COUNT ( * ) + + + 50 + + + CASE + 90 WHEN + + 16 THEN - - 73 / - 8 * 46 * + + 61 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT DISTINCT + CASE + - 41 WHEN 26 + - - AVG ( DISTINCT + 62 ) THEN - COUNT( ALL - 35 ) * ( - + COUNT( * ) ) ELSE 96 END * 44 - 63 AS col1
----
4161

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT + CASE + - 41 WHEN 26 + - - AVG ( DISTINCT + 62 ) THEN - COUNT ( ALL - 35 ) * ( - + COUNT ( * ) ) ELSE 96 END * 44 - 63 AS col1
----
4161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5171
SELECT ALL + 56 * + + COUNT( * ) * - + NULLIF ( + - 11, + COUNT( * ) * + - COUNT( * ) * + CASE + CAST( + 86 AS SIGNED ) WHEN + - AVG ( DISTINCT + - 93 ) THEN - 62 ELSE + 94 END + + + 2 * - NULLIF ( + 61, + - 34 ) - + 34 / ( 27 ) )
----
616

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL + 56 * + + COUNT ( * ) * - + NULLIF ( + - 11, + COUNT ( * ) * + - COUNT ( * ) * + CASE + CAST ( + 86 AS INTEGER ) WHEN + - AVG ( DISTINCT + - 93 ) THEN - 62 ELSE + 94 END + + + 2 * - NULLIF ( + 61, + - 34 ) - + 34 / ( 27 ) )
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT + 7 * + ( + 22 ) * - COUNT( * ) AS col0
----
-154

skipif mysql # not compatible
query I rowsort label-5172
SELECT + 7 * + ( + 22 ) * - COUNT ( * ) AS col0
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT ALL COALESCE ( - 75, - 39 ) + - 15 + - 23 + + + 35 + + COUNT( DISTINCT - 18 ) * + + COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL COALESCE ( - 75, - 39 ) + - 15 + - 23 + + + 35 + + COUNT ( DISTINCT - 18 ) * + + COUNT ( * ) AS col1
----
-77

query I rowsort
SELECT DISTINCT 71 + - 0 AS col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5175
SELECT - CAST( - 42 AS SIGNED ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5175
SELECT - CAST ( - 42 AS INTEGER ) AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5176
SELECT - 1 + + NULLIF ( + COALESCE ( + - 76, - CAST( - 44 AS SIGNED ) DIV - 46 + - - ( CASE 57 WHEN - MIN( ALL - 28 ) + + - COUNT( * ) THEN + - 19 * - 23 WHEN 65 THEN NULL ELSE NULL END ) ), + 86 * - 43 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-5176
SELECT - 1 + + NULLIF ( + COALESCE ( + - 76, - CAST ( - 44 AS INTEGER ) / - 46 + - - ( CASE 57 WHEN - MIN ( ALL - 28 ) + + - COUNT ( * ) THEN + - 19 * - 23 WHEN 65 THEN NULL ELSE NULL END ) ), + 86 * - 43 ) AS col1
----
-77

query I rowsort
SELECT ALL COALESCE ( + + 90, + - 75 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT - 77 + - SUM( ALL - 46 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-5178
SELECT - 77 + - SUM ( ALL - 46 ) AS col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5179
SELECT ALL CASE - 72 WHEN + 80 * - 26 + + + CAST( NULL AS DECIMAL ) THEN NULL WHEN - COUNT( * ) / + 91 THEN - AVG ( ALL - 68 ) END AS col2, - 37 + 84
----
NULL
47

skipif mysql # not compatible
query II rowsort label-5179
SELECT ALL CASE - 72 WHEN + 80 * - 26 + + + CAST ( NULL AS REAL ) THEN NULL WHEN - COUNT ( * ) / + 91 THEN - AVG ( ALL - 68 ) END AS col2, - 37 + 84
----
NULL
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5180
SELECT 98 AS col1, NULLIF ( + 75, + 55 ) + CASE - + SUM( ALL 33 ) WHEN + - 36 THEN NULL WHEN - 71 THEN + + COUNT( * ) ELSE 63 END AS col0
----
98
138

skipif mysql # not compatible
query II rowsort label-5180
SELECT 98 AS col1, NULLIF ( + 75, + 55 ) + CASE - + SUM ( ALL 33 ) WHEN + - 36 THEN NULL WHEN - 71 THEN + + COUNT ( * ) ELSE 63 END AS col0
----
98
138

query II rowsort
SELECT ALL ( 58 ) AS col0, - 26 AS col0
----
58
-26

query I rowsort
SELECT - 41 * + + 88 AS col0
----
-3608

query II rowsort
SELECT DISTINCT - 70 AS col2, + 29 AS col2
----
-70
29

query I rowsort
SELECT ALL - 94 * - 28 AS col2
----
2632

query II rowsort
SELECT 22, - 58 AS col2
----
22
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5186
SELECT ALL - CAST( NULL AS DECIMAL ) / + COUNT( * ) / COUNT( * ) * 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL - CAST ( NULL AS REAL ) / + COUNT ( * ) / COUNT ( * ) * 49 AS col1
----
NULL

query I rowsort
SELECT 88 * + 9 + + - 85 * 77
----
-5753

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT + SUM( ALL + ( - 73 ) ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-5188
SELECT + SUM ( ALL + ( - 73 ) ) AS col1
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5189
SELECT ALL - 32 DIV - MIN( - + 24 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL - 32 / - MIN ( - + 24 ) AS col2
----
-1

query I rowsort
SELECT 1 * - ( - 61 )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-5191
SELECT ALL + 88 DIV + 69 + + 96
----
97

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL + 88 / + 69 + + 96
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT + 26 * + MAX( - 84 ) + 7 * + 17 AS col1
----
-2065

skipif mysql # not compatible
query I rowsort label-5192
SELECT + 26 * + MAX ( - 84 ) + 7 * + 17 AS col1
----
-2065

onlyif mysql # aggregate syntax: 
query III rowsort label-5193
SELECT + - 40 AS col1, + 72, - COALESCE ( - ( - ( - COUNT( * ) ) ), - + CASE COUNT( * ) WHEN + 8 THEN NULL ELSE - COALESCE ( + 89, 58 * - NULLIF ( - - 73, - 19 ) ) * + 71 * - 19 + + - 85 END ) + + 34 AS col0
----
-40
72
35

skipif mysql # not compatible
query III rowsort label-5193
SELECT + - 40 AS col1, + 72, - COALESCE ( - ( - ( - COUNT ( * ) ) ), - + CASE COUNT ( * ) WHEN + 8 THEN NULL ELSE - COALESCE ( + 89, 58 * - NULLIF ( - - 73, - 19 ) ) * + 71 * - 19 + + - 85 END ) + + 34 AS col0
----
-40
72
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5194
SELECT ALL - - CAST( NULL AS SIGNED ) AS col0, 56 + + + 3 AS col1
----
NULL
59

skipif mysql # not compatible
query II rowsort label-5194
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col0, 56 + + + 3 AS col1
----
NULL
59

query I rowsort
SELECT - 98 * - 53
----
5194

onlyif mysql # aggregate syntax: 
query II rowsort label-5196
SELECT 70 + - COUNT( * ) - - + 14 * 94, + 65 AS col1
----
1385
65

skipif mysql # not compatible
query II rowsort label-5196
SELECT 70 + - COUNT ( * ) - - + 14 * 94, + 65 AS col1
----
1385
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5197
SELECT - + 27 * + 17 * 3 - CAST( NULL AS DECIMAL ) - + ( - COUNT( * ) ) * 84 * 6 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5197
SELECT - + 27 * + 17 * 3 - CAST ( NULL AS REAL ) - + ( - COUNT ( * ) ) * 84 * 6 col1
----
NULL

query I rowsort
SELECT + CASE 39 WHEN + - ( - 74 ) THEN + 61 + + - 68 - - ( 3 ) * - + 59 * 55 WHEN - 37 - - 30 THEN NULL WHEN 12 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5199
SELECT + + COALESCE ( + SUM( DISTINCT + 66 ), + 98 * - + 15 * 6 + - COALESCE ( CAST( 72 AS SIGNED ), + + CASE WHEN NULL > NULLIF ( - + 15, + CAST( + ( + + 27 ) AS SIGNED ) ) THEN + 41 DIV ( + - 12 ) END ) * 37 )
----
66

skipif mysql # not compatible
query I rowsort label-5199
SELECT + + COALESCE ( + SUM ( DISTINCT + 66 ), + 98 * - + 15 * 6 + - COALESCE ( CAST ( 72 AS INTEGER ), + + CASE WHEN NULL > NULLIF ( - + 15, + CAST ( + ( + + 27 ) AS INTEGER ) ) THEN + 41 / ( + - 12 ) END ) * 37 )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5200
SELECT ALL + COUNT( * ) + - 68 DIV + 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5200
SELECT ALL + COUNT ( * ) + - 68 / + 39 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT - SUM( + 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-5201
SELECT - SUM ( + 11 ) AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5202
SELECT ALL CAST( 68 AS SIGNED ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL CAST ( 68 AS INTEGER ) AS col2
----
68

query I rowsort
SELECT ALL + 45 + - + 46 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT ALL COUNT( * ) + - + 32 col0
----
-31

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL COUNT ( * ) + - + 32 col0
----
-31

query I rowsort
SELECT 3 + + 81 * - + 70 * + - 19 + - + 81 AS col2
----
107652

onlyif mysql # DIV for integer division: 
query I rowsort label-5206
SELECT COALESCE ( 16, + NULLIF ( + CASE - - 77 WHEN 20 * 8 THEN - - 3 * 18 ELSE NULL END, 32 ) ) DIV + ( + 27 ) * - 58
----
0

skipif mysql # not compatible
query I rowsort label-5206
SELECT COALESCE ( 16, + NULLIF ( + CASE - - 77 WHEN 20 * 8 THEN - - 3 * 18 ELSE NULL END, 32 ) ) / + ( + 27 ) * - 58
----
0

query I rowsort
SELECT ALL 59 - - - 58 * - 56 AS col0
----
3307

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5208
SELECT NULLIF ( + - 17, - + 45 + MIN( 50 ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT NULLIF ( + - 17, - + 45 + MIN ( 50 ) ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5209
SELECT ALL COUNT( * ) DIV + 57, 38 DIV + + ( - 77 ) AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-5209
SELECT ALL COUNT ( * ) / + 57, 38 / + + ( - 77 ) AS col2
----
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5210
SELECT NULLIF ( + 59, + MIN( ALL + 22 ) ) - + - COUNT( * ) + - 73 * - + 59 AS col0, 47
----
4367
47

skipif mysql # not compatible
query II rowsort label-5210
SELECT NULLIF ( + 59, + MIN ( ALL + 22 ) ) - + - COUNT ( * ) + - 73 * - + 59 AS col0, 47
----
4367
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5211
SELECT 28 + - 58 DIV - COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-5211
SELECT 28 + - 58 / - COUNT ( * ) AS col0
----
86

query I rowsort
SELECT 63 - 24 * 57 AS col1
----
-1305

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5213
SELECT - 46 DIV - MAX( ALL 45 ) + 45
----
46

skipif mysql # not compatible
query I rowsort label-5213
SELECT - 46 / - MAX ( ALL 45 ) + 45
----
46

query I rowsort
SELECT - 70 * - - COALESCE ( - 71, + 5 ) + + 34 + 21
----
5025

query I rowsort
SELECT ALL 50 * - 81 AS col2
----
-4050

query I rowsort
SELECT ALL - + 54 col0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5217
SELECT ALL - - 86 + + - CASE - ( CAST( NULL AS DECIMAL ) ) WHEN - + MIN( ALL + - 34 ) THEN + 27 WHEN - COUNT( * ) THEN + MIN( ALL - 8 ) * + + 4 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL - - 86 + + - CASE - ( CAST ( NULL AS REAL ) ) WHEN - + MIN ( ALL + - 34 ) THEN + 27 WHEN - COUNT ( * ) THEN + MIN ( ALL - 8 ) * + + 4 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5218
SELECT 98 * + 13 + 43 * COALESCE ( + 97, + - 4 + + 96 ) DIV 62 + + 73
----
1414

skipif mysql # not compatible
query I rowsort label-5218
SELECT 98 * + 13 + 43 * COALESCE ( + 97, + - 4 + + 96 ) / 62 + + 73
----
1414

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT 16 * 83 + COUNT( DISTINCT - 71 ) + + 63 + + + 7 AS col1
----
1399

skipif mysql # not compatible
query I rowsort label-5219
SELECT 16 * 83 + COUNT ( DISTINCT - 71 ) + + 63 + + + 7 AS col1
----
1399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5220
SELECT - 90 / - - CAST( NULL AS SIGNED ) + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5220
SELECT - 90 / - - CAST ( NULL AS INTEGER ) + + 18
----
NULL

query I rowsort
SELECT ALL - 1 + - - 84
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5222
SELECT MIN( DISTINCT - 50 ) DIV - 79 - + 35 * + - 16 + ( + 20 ) AS col2, 7 * 17 col2
----
580
119

skipif mysql # not compatible
query II rowsort label-5222
SELECT MIN ( DISTINCT - 50 ) / - 79 - + 35 * + - 16 + ( + 20 ) AS col2, 7 * 17 col2
----
580
119

onlyif mysql # aggregate syntax: 
query II rowsort label-5223
SELECT + NULLIF ( + - 72, - COALESCE ( MAX( - 6 ), 42 ) / COUNT( * ) * 89 + - - 83 * - 57 * CASE - + COUNT( * ) WHEN - - NULLIF ( + 3, + - 85 - + - 13 - + 99 * 33 * - - 41 * - 7 ) THEN NULL WHEN + - 3 + + COUNT( * ) THEN + - MAX( + 50 ) END * + ( + + COUNT( * ) ) * - - 33 + + 28 ), - 13 col0
----
-72
-13

skipif mysql # not compatible
query II rowsort label-5223
SELECT + NULLIF ( + - 72, - COALESCE ( MAX ( - 6 ), 42 ) / COUNT ( * ) * 89 + - - 83 * - 57 * CASE - + COUNT ( * ) WHEN - - NULLIF ( + 3, + - 85 - + - 13 - + 99 * 33 * - - 41 * - 7 ) THEN NULL WHEN + - 3 + + COUNT ( * ) THEN + - MAX ( + 50 ) END * + ( + + COUNT ( * ) ) * - - 33 + + 28 ), - 13 col0
----
-72
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT DISTINCT - - 15 + + - 32 - + 75 - 98 + - - 26 + 30 * + + COUNT( * ) * + + MAX( ALL 38 )
----
976

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT - - 15 + + - 32 - + 75 - 98 + - - 26 + 30 * + + COUNT ( * ) * + + MAX ( ALL 38 )
----
976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5225
SELECT 64 + + - MAX( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5225
SELECT 64 + + - MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5226
SELECT ALL - - 65 + - + ( + + 27 ), COUNT( * ) AS col1
----
38
1

skipif mysql # not compatible
query II rowsort label-5226
SELECT ALL - - 65 + - + ( + + 27 ), COUNT ( * ) AS col1
----
38
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5227
SELECT - 46 + - + 35 AS col1, COUNT( * )
----
-81
1

skipif mysql # not compatible
query II rowsort label-5227
SELECT - 46 + - + 35 AS col1, COUNT ( * )
----
-81
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5228
SELECT ALL - CAST( + CASE + NULLIF ( - 7, 58 + + - 91 * - 2 + - 94 ) WHEN 26 THEN - - ( + 38 ) + + SUM( + + 89 ) WHEN + - 86 THEN - 77 WHEN + - 32 * - 7 * + 57 THEN NULL ELSE NULL END AS SIGNED ) + - 46 * 8 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL - CAST ( + CASE + NULLIF ( - 7, 58 + + - 91 * - 2 + - 94 ) WHEN 26 THEN - - ( + 38 ) + + SUM ( + + 89 ) WHEN + - 86 THEN - 77 WHEN + - 32 * - 7 * + 57 THEN NULL ELSE NULL END AS INTEGER ) + - 46 * 8 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5229
SELECT 29 + + 31 + - + 30, COUNT( * ) AS col0
----
30
1

skipif mysql # not compatible
query II rowsort label-5229
SELECT 29 + + 31 + - + 30, COUNT ( * ) AS col0
----
30
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5230
SELECT 53 AS col0, COUNT( * )
----
53
1

skipif mysql # not compatible
query II rowsort label-5230
SELECT 53 AS col0, COUNT ( * )
----
53
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5231
SELECT DISTINCT COALESCE ( + 11, - 14 + 23 * CAST( NULL AS SIGNED ), 84 + + 88 + + - 4 ), 60 AS col1
----
11
60

skipif mysql # not compatible
query II rowsort label-5231
SELECT DISTINCT COALESCE ( + 11, - 14 + 23 * CAST ( NULL AS INTEGER ), 84 + + 88 + + - 4 ), 60 AS col1
----
11
60

query I rowsort
SELECT ALL + ( + ( - - 84 ) ) - 11 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT COUNT( * ) + + 80 - + 82 col1
----
-1

skipif mysql # not compatible
query I rowsort label-5233
SELECT COUNT ( * ) + + 80 - + 82 col1
----
-1

query I rowsort
SELECT DISTINCT CASE 73 WHEN + + 32 THEN 97 * - + 66 + 86 END * 77 + + 8 col1
----
NULL

query I rowsort
SELECT - 0 * + 72 AS col0
----
0

query I rowsort
SELECT + 18 + + 2 + - 75 + 92 * + 43 AS col0
----
3901

query I rowsort
SELECT ALL + 21 * + 84
----
1764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5238
SELECT - 64 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5238
SELECT - 64 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5239
SELECT + MAX( 37 ) * + + 71 AS col2, + COUNT( * )
----
2627
1

skipif mysql # not compatible
query II rowsort label-5239
SELECT + MAX ( 37 ) * + + 71 AS col2, + COUNT ( * )
----
2627
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5240
SELECT + 64 + - CASE 72 WHEN - + 43 THEN - ( - - COUNT( * ) ) WHEN + + ( + 6 ) + - 1 + - + NULLIF ( + - ( + 74 ), + COUNT( * ) ) THEN NULL END * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5240
SELECT + 64 + - CASE 72 WHEN - + 43 THEN - ( - - COUNT ( * ) ) WHEN + + ( + 6 ) + - 1 + - + NULLIF ( + - ( + 74 ), + COUNT ( * ) ) THEN NULL END * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 53, 23 col0
----
53
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT + COUNT( * ) * - ( 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5242
SELECT + COUNT ( * ) * - ( 0 ) AS col2
----
0

query I rowsort
SELECT ALL 47 * - - 14 + + 67 + + - 89 + - 6
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT + MAX( + 21 ) * 88 AS col0
----
1848

skipif mysql # not compatible
query I rowsort label-5244
SELECT + MAX ( + 21 ) * 88 AS col0
----
1848

query I rowsort
SELECT ALL + 55 * 15 + - 27 AS col2
----
798

query I rowsort
SELECT + 5 * + + 85
----
425

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT ALL + COUNT( * ) * MIN( ALL - 11 ) + + 22 + 62 * - - CASE + - 93 WHEN COUNT( * ) + + 23 THEN NULLIF ( + - 84, 86 * + 34 ) + - 94 WHEN 73 THEN + + 83 * + COUNT( * ) + + 26 * + COALESCE ( 82, 11, + - CASE 39 WHEN - 0 THEN NULL ELSE - COUNT( * ) + + - 9 END * AVG ( ALL 90 ) ) / 6 + 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL + COUNT ( * ) * MIN ( ALL - 11 ) + + 22 + 62 * - - CASE + - 93 WHEN COUNT ( * ) + + 23 THEN NULLIF ( + - 84, 86 * + 34 ) + - 94 WHEN 73 THEN + + 83 * + COUNT ( * ) + + 26 * + COALESCE ( 82, 11, + - CASE 39 WHEN - 0 THEN NULL ELSE - COUNT ( * ) + + - 9 END * AVG ( ALL 90 ) ) / 6 + 72 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5248
SELECT + + CAST( + AVG ( + 37 ) AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-5248
SELECT + + CAST ( + AVG ( + 37 ) AS INTEGER )
----
37

query II rowsort
SELECT + + 64 AS col0, 92 AS col0
----
64
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5250
SELECT - - 86 * - - 76 + + + 78 + - + CAST( + 70 AS SIGNED ) - 96 + + 73 * - COUNT( * ) * + - 11 AS col2
----
7251

skipif mysql # not compatible
query I rowsort label-5250
SELECT - - 86 * - - 76 + + + 78 + - + CAST ( + 70 AS INTEGER ) - 96 + + 73 * - COUNT ( * ) * + - 11 AS col2
----
7251

query I rowsort
SELECT - + 47 * + - 38 + 91 * + - 96 + - - 62 * 34 AS col2
----
-4842

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT ALL - 54 * - 28 + + - 23 * - COUNT( * ) + COUNT( * ) + + 15 * - 26 AS col1
----
1146

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL - 54 * - 28 + + - 23 * - COUNT ( * ) + COUNT ( * ) + + 15 * - 26 AS col1
----
1146

onlyif mysql # aggregate syntax: 
query II rowsort label-5253
SELECT - 18 AS col1, + 42 * - + NULLIF ( - 8, - COALESCE ( COALESCE ( 71, - - 49 ), - 77, - + 83 * - COUNT( * ), - 90 * - 49 ) ) * - - 60 * - COUNT( * ) AS col0
----
-18
-20160

skipif mysql # not compatible
query II rowsort label-5253
SELECT - 18 AS col1, + 42 * - + NULLIF ( - 8, - COALESCE ( COALESCE ( 71, - - 49 ), - 77, - + 83 * - COUNT ( * ), - 90 * - 49 ) ) * - - 60 * - COUNT ( * ) AS col0
----
-18
-20160

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT DISTINCT ( - 32 ) * + - COUNT( * ) + + + 79 + - - 35 AS col1
----
146

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT ( - 32 ) * + - COUNT ( * ) + + + 79 + - - 35 AS col1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT ALL + MIN( 67 ) col1
----
67

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL + MIN ( 67 ) col1
----
67

query I rowsort
SELECT + NULLIF ( + 91, + 38 + - 51 ) AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5257
SELECT ALL + COUNT( * ) * + + 61 + + + 51 + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
113

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL + COUNT ( * ) * + + 61 + + + 51 + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5258
SELECT + + ( - 94 ) * - 66 * NULLIF ( - + 0, 25 + + + COUNT( * ) * - CAST( - - 47 AS SIGNED ) * + CAST( + - 13 AS DECIMAL ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5258
SELECT + + ( - 94 ) * - 66 * NULLIF ( - + 0, 25 + + + COUNT ( * ) * - CAST ( - - 47 AS INTEGER ) * + CAST ( + - 13 AS REAL ) ) AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5259
SELECT - - 59 * - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5259
SELECT - - 59 * - CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT ALL + 54 * - - 74
----
3996

query II rowsort
SELECT DISTINCT + + 18 AS col2, - 29
----
18
-29

query II rowsort
SELECT 90 * + 52 + 20, - ( - 41 ) AS col1
----
4700
41

query I rowsort
SELECT - 83 * + 15 - + 17 + + 82
----
-1180

onlyif mysql # aggregate syntax: 
query II rowsort label-5264
SELECT ALL - 64 * COUNT( + - 19 ) - - + ( - - 56 ) AS col1, - 91 + - + 69 + - 17 - - 10 + - - COUNT( * ) AS col0
----
-8
-166

skipif mysql # not compatible
query II rowsort label-5264
SELECT ALL - 64 * COUNT ( + - 19 ) - - + ( - - 56 ) AS col1, - 91 + - + 69 + - 17 - - 10 + - - COUNT ( * ) AS col0
----
-8
-166

query II rowsort
SELECT DISTINCT ( - + 88 ) AS col1, + ( - 11 ) + + + 29 * - 48
----
-88
-1403

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT - 18 * ( - SUM( + 27 ) )
----
486

skipif mysql # not compatible
query I rowsort label-5266
SELECT - 18 * ( - SUM ( + 27 ) )
----
486

onlyif mysql # DIV for integer division: 
query I rowsort label-5267
SELECT DISTINCT - 53 DIV + + 24
----
-2

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT - 53 / + + 24
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5268
SELECT - 65 DIV + 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5268
SELECT - 65 / + 93 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5269
SELECT ALL - ( + 86 ) DIV + + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL - ( + 86 ) / + + 97 AS col0
----
0

query I rowsort
SELECT - 82 + - + 86
----
-168

query I rowsort
SELECT - 58 + + ( - 65 ) AS col2
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT - COALESCE ( + COUNT( ALL - NULLIF ( + 90, - 77 ) ), 48 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5272
SELECT - COALESCE ( + COUNT ( ALL - NULLIF ( + 90, - 77 ) ), 48 ) AS col1
----
-1

query I rowsort
SELECT - 52 - 17 * 61
----
-1089

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT - NULLIF ( + + 83, + - 27 ) + - SUM( ALL + 99 ) AS col2
----
-182

skipif mysql # not compatible
query I rowsort label-5274
SELECT - NULLIF ( + + 83, + - 27 ) + - SUM ( ALL + 99 ) AS col2
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT + MAX( DISTINCT 46 ) * + 11 AS col2
----
506

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT + MAX ( DISTINCT 46 ) * + 11 AS col2
----
506

query I rowsort
SELECT DISTINCT - + 65 + - 49
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5277
SELECT ALL + 70 + + 89 * + NULLIF ( 39, - COUNT( * ) + - 81 ) + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL + 70 + + 89 * + NULLIF ( 39, - COUNT ( * ) + - 81 ) + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5278
SELECT ALL - COUNT( * ) + + 79 AS col1, - 14 + 36 + + NULLIF ( - 98, - 71 )
----
78
-76

skipif mysql # not compatible
query II rowsort label-5278
SELECT ALL - COUNT ( * ) + + 79 AS col1, - 14 + 36 + + NULLIF ( - 98, - 71 )
----
78
-76

query I rowsort
SELECT - - 95 + 1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5280
SELECT + 12 - AVG ( + 65 ) / + CAST( 48 AS SIGNED ) * - + CASE - 75 WHEN + ( + 97 ) THEN 28 / + - 65 END + + - 57 * 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5280
SELECT + 12 - AVG ( + 65 ) / + CAST ( 48 AS INTEGER ) * - + CASE - 75 WHEN + ( + 97 ) THEN 28 / + - 65 END + + - 57 * 69 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5281
SELECT ALL 2 / 54 + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL 2 / 54 + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5282
SELECT DISTINCT + 76 / + 98 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT + 76 / + 98 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 92 + ( 44 )
----
136

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5284
SELECT ALL - 49 DIV - ( - - CAST( + 69 AS SIGNED ) ) - + - CAST( - 69 AS SIGNED ) * + 97 AS col1, CAST( NULL AS SIGNED ) DIV - 8 * + 28
----
-6693
NULL

skipif mysql # not compatible
query II rowsort label-5284
SELECT ALL - 49 / - ( - - CAST ( + 69 AS INTEGER ) ) - + - CAST ( - 69 AS INTEGER ) * + 97 AS col1, CAST ( NULL AS INTEGER ) / - 8 * + 28
----
-6693
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL COALESCE ( + + ( + COUNT( * ) ), + MAX( ALL - 72 ), + 88, 53 ) * - 76
----
-76

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL COALESCE ( + + ( + COUNT ( * ) ), + MAX ( ALL - 72 ), + 88, 53 ) * - 76
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT - 31 * - 80 * + - 74 + - ( COUNT( * ) ) * 84 - + + 99
----
-183703

skipif mysql # not compatible
query I rowsort label-5286
SELECT - 31 * - 80 * + - 74 + - ( COUNT ( * ) ) * 84 - + + 99
----
-183703

query I rowsort
SELECT ALL + 69 * - 82 AS col2
----
-5658

query I rowsort
SELECT + + 88 * - 10 + - 45 AS col1
----
-925

query I rowsort
SELECT + ( + 8 ) + - + 40
----
-32

query II rowsort
SELECT + 81 + + 77, - 0 + + + NULLIF ( + - 74, + 22 + 51 ) * 49 AS col1
----
158
-3626

query II rowsort
SELECT + 16 * + ( - COALESCE ( - 73, + ( - 1 ) ) ) * 10 + - ( - 76 ) * 53, 59 AS col1
----
15708
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT - 79 * + 73 + + COALESCE ( 72, - CASE + - 39 WHEN + + 33 THEN + - 36 * + 53 WHEN + + 12 THEN NULL ELSE - + 69 + ( + COUNT( * ) ) - - COUNT( * ) END ) AS col0
----
-5695

skipif mysql # not compatible
query I rowsort label-5292
SELECT - 79 * + 73 + + COALESCE ( 72, - CASE + - 39 WHEN + + 33 THEN + - 36 * + 53 WHEN + + 12 THEN NULL ELSE - + 69 + ( + COUNT ( * ) ) - - COUNT ( * ) END ) AS col0
----
-5695

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5293
SELECT NULLIF ( - 34, - + 95 ) + - + 33 * 31 / + + CAST( NULL AS DECIMAL ) AS col2, + 93
----
NULL
93

skipif mysql # not compatible
query II rowsort label-5293
SELECT NULLIF ( - 34, - + 95 ) + - + 33 * 31 / + + CAST ( NULL AS REAL ) AS col2, + 93
----
NULL
93

query I rowsort
SELECT 48 + + 20 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT 38 * - COALESCE ( + 91, - COUNT( * ) )
----
-3458

skipif mysql # not compatible
query I rowsort label-5295
SELECT 38 * - COALESCE ( + 91, - COUNT ( * ) )
----
-3458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5296
SELECT CASE - CAST( NULL AS SIGNED ) WHEN - ( COALESCE ( COUNT( * ), + + 13 * + MAX( 12 ) * 10 + - COUNT( 44 ) / + AVG ( DISTINCT + 5 ) ) ) - + COUNT( 42 ) * COUNT( * ) + 72 + + ( + 25 ) THEN NULL WHEN - 20 THEN NULL ELSE 58 END * 66 * - + 43 + 82 AS col0
----
-164522

skipif mysql # not compatible
query I rowsort label-5296
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN - ( COALESCE ( COUNT ( * ), + + 13 * + MAX ( 12 ) * 10 + - COUNT ( 44 ) / + AVG ( DISTINCT + 5 ) ) ) - + COUNT ( 42 ) * COUNT ( * ) + 72 + + ( + 25 ) THEN NULL WHEN - 20 THEN NULL ELSE 58 END * 66 * - + 43 + 82 AS col0
----
-164522

query I rowsort
SELECT DISTINCT - 49 + - - 4 * 27 * - 82 * - 83 + - + 64
----
734935

onlyif mysql # aggregate syntax: 
query II rowsort label-5298
SELECT DISTINCT 99 + - + 46 - - - COUNT( * ) * - MAX( - 70 ), 89 + + MAX( ALL + 56 ) + COUNT( * ) + - 11 * + COUNT( * ) AS col0
----
-17
135

skipif mysql # not compatible
query II rowsort label-5298
SELECT DISTINCT 99 + - + 46 - - - COUNT ( * ) * - MAX ( - 70 ), 89 + + MAX ( ALL + 56 ) + COUNT ( * ) + - 11 * + COUNT ( * ) AS col0
----
-17
135

query I rowsort
SELECT ALL - 31 + + 20 + - 78 AS col2
----
-89

query II rowsort
SELECT 63 + - ( 99 ), + 28 + + - 90 AS col0
----
-36
-62

query I rowsort
SELECT ALL 34 + - 63 * - 54
----
3436

query I rowsort
SELECT ALL 93 * + 57
----
5301

query I rowsort
SELECT ALL + 59 + + 52
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5304
SELECT ALL - COUNT( * ) DIV - + 96
----
0

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL - COUNT ( * ) / - + 96
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5305
SELECT 24, + ( + - CAST( NULL AS SIGNED ) ) AS col0, + 35 DIV - 35 AS col0
----
24
NULL
-1

skipif mysql # not compatible
query III rowsort label-5305
SELECT 24, + ( + - CAST ( NULL AS INTEGER ) ) AS col0, + 35 / - 35 AS col0
----
24
NULL
-1

query I rowsort
SELECT ALL - 32 + - 40 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT COUNT( ALL + 97 ) * 26 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-5307
SELECT COUNT ( ALL + 97 ) * 26 AS col0
----
26

query I rowsort
SELECT 88 * + 68 AS col0
----
5984

query I rowsort
SELECT 62 * - 70
----
-4340

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT SUM( ALL 57 ) + - 27
----
30

skipif mysql # not compatible
query I rowsort label-5310
SELECT SUM ( ALL 57 ) + - 27
----
30

query I rowsort
SELECT 17 + 23 AS col1
----
40

query I rowsort
SELECT DISTINCT + 14 - 21 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT DISTINCT - COUNT( * ) * + 47 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT - COUNT ( * ) * + 47 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT DISTINCT - COUNT( * ) * - NULLIF ( + 89 * 56, 73 * - 6 ) AS col2
----
4984

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT - COUNT ( * ) * - NULLIF ( + 89 * 56, 73 * - 6 ) AS col2
----
4984

query I rowsort
SELECT 13 * 64
----
832

onlyif mysql # DIV for integer division: 
query I rowsort label-5316
SELECT 32 DIV - 9
----
-3

skipif mysql # not compatible
query I rowsort label-5316
SELECT 32 / - 9
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT COUNT( * ) * + 26 + + 97
----
123

skipif mysql # not compatible
query I rowsort label-5317
SELECT COUNT ( * ) * + 26 + + 97
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5318
SELECT - MIN( ALL - 64 ) DIV 16 + COALESCE ( 19, + 82 DIV - 44 )
----
23

skipif mysql # not compatible
query I rowsort label-5318
SELECT - MIN ( ALL - 64 ) / 16 + COALESCE ( 19, + 82 / - 44 )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-5319
SELECT 22 DIV 87 col2
----
0

skipif mysql # not compatible
query I rowsort label-5319
SELECT 22 / 87 col2
----
0

query I rowsort
SELECT 29 * 21
----
609

query I rowsort
SELECT - 75 * 7 - - 59
----
-466

query I rowsort
SELECT 41 + + 32
----
73

query I rowsort
SELECT ALL 89 * 68 AS col0
----
6052

query I rowsort
SELECT DISTINCT 48 * + 63 AS col2
----
3024

query I rowsort
SELECT 19 * 44 AS col2
----
836

query I rowsort
SELECT 31 + 85 AS col1
----
116

query I rowsort
SELECT DISTINCT 88 + 28 AS col2
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5328
SELECT ALL 47 + 22 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL 47 + 22 * CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT 58 * - 87 AS col2
----
-5046

query I rowsort
SELECT DISTINCT 82 + + 53 AS col2
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5331
SELECT ( 28 ) * + 83 + 44 DIV + COUNT( * )
----
2368

skipif mysql # not compatible
query I rowsort label-5331
SELECT ( 28 ) * + 83 + 44 / + COUNT ( * )
----
2368

query I rowsort
SELECT 72 * 29 AS col0
----
2088

query I rowsort
SELECT ALL - 27 + 2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5334
SELECT DISTINCT - 18 * + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT - 18 * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 62 + 11 AS col2
----
73

query I rowsort
SELECT ALL + 43 * 48 AS col2
----
2064

query I rowsort
SELECT 85 + 16
----
101

query I rowsort
SELECT + 38 + 88 AS col0
----
126

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5339
SELECT ALL - - CAST( NULL AS DECIMAL ) - - NULLIF ( + 86, 80 + - SUM( - 89 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL - - CAST ( NULL AS REAL ) - - NULLIF ( + 86, 80 + - SUM ( - 89 ) )
----
NULL

query I rowsort
SELECT + COALESCE ( + 46, 5 ) + 44 * + 18
----
838

query I rowsort
SELECT ALL 16 * - 90
----
-1440

query I rowsort
SELECT 8 + 26 AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5343
SELECT ALL + 49 * - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL + 49 * - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT DISTINCT COUNT( - 28 )
----
1

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT COUNT ( - 28 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5345
SELECT ALL + 27 DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL + 27 / 65
----
0

query I rowsort
SELECT 85 * - 15
----
-1275

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT - 87 + 20 * - COUNT( * )
----
-107

skipif mysql # not compatible
query I rowsort label-5347
SELECT - 87 + 20 * - COUNT ( * )
----
-107

query I rowsort
SELECT 88 + 69 AS col1
----
157

query I rowsort
SELECT + 96 * 16
----
1536

query I rowsort
SELECT 34 + + 79 AS col1
----
113

query I rowsort
SELECT 77 + - 9 AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5352
SELECT ALL + 66 DIV 8
----
8

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL + 66 / 8
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5353
SELECT MIN( ALL CAST( NULL AS SIGNED ) ) / 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT MIN ( ALL CAST ( NULL AS INTEGER ) ) / 36
----
NULL

query I rowsort
SELECT - 64 * 95 + - 91
----
-6171

query I rowsort
SELECT + 63 * - 79 AS col1
----
-4977

query I rowsort
SELECT - 32 * - COALESCE ( 98, 54 * + 39 + 73 ) col0
----
3136

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT - COUNT( DISTINCT + 33 ) * + 28 + 52 * - ( 62 * 77 )
----
-248276

skipif mysql # not compatible
query I rowsort label-5357
SELECT - COUNT ( DISTINCT + 33 ) * + 28 + 52 * - ( 62 * 77 )
----
-248276

query I rowsort
SELECT ALL - 66 * + 85
----
-5610

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT - 19 * ( NULLIF ( + 45, 74 * 69 ) ) * COUNT( * )
----
-855

skipif mysql # not compatible
query I rowsort label-5359
SELECT - 19 * ( NULLIF ( + 45, 74 * 69 ) ) * COUNT ( * )
----
-855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5360
SELECT DISTINCT - COALESCE ( - - 1, 57 * 83 ) * 74 + - CAST( 57 AS SIGNED )
----
-131

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT - COALESCE ( - - 1, 57 * 83 ) * 74 + - CAST ( 57 AS INTEGER )
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT ALL + 5 * + 33 + MIN( + 0 )
----
165

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL + 5 * + 33 + MIN ( + 0 )
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT NULLIF ( + 94, - COUNT( * ) )
----
94

skipif mysql # not compatible
query I rowsort label-5362
SELECT NULLIF ( + 94, - COUNT ( * ) )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT - 83 + - COUNT( * ) + 32 * 0 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-5363
SELECT - 83 + - COUNT ( * ) + 32 * 0 AS col2
----
-84

query I rowsort
SELECT + ( ( 4 ) ) + - 34 * 28
----
-948

query I rowsort
SELECT DISTINCT 39 * ( 64 ) + + 16 AS col2
----
2512

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT + 64 * + 41 + COALESCE ( 86, + SUM( + 53 ), 6 + - 58 * - 44 )
----
2710

skipif mysql # not compatible
query I rowsort label-5366
SELECT + 64 * + 41 + COALESCE ( 86, + SUM ( + 53 ), 6 + - 58 * - 44 )
----
2710

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT ALL 14 * + - COUNT( 37 ) * + 68 + + 24
----
-928

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL 14 * + - COUNT ( 37 ) * + 68 + + 24
----
-928

query I rowsort
SELECT ALL 82 * - + ( + 76 ) + - 95 * + 97 AS col2
----
-15447

onlyif mysql # DIV for integer division: 
query I rowsort label-5369
SELECT 31 * - 92 + + 86 DIV - 74
----
-2853

skipif mysql # not compatible
query I rowsort label-5369
SELECT 31 * - 92 + + 86 / - 74
----
-2853

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT ALL 99 * - COUNT( * ) * + 86 col0
----
-8514

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL 99 * - COUNT ( * ) * + 86 col0
----
-8514

query I rowsort
SELECT ALL 76 * - 85
----
-6460

query I rowsort
SELECT - 93 * + 3 * - 23
----
6417

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT - CASE 2 WHEN 10 THEN 71 + + COALESCE ( + ( 3 ), + 99 + + CASE + 68 WHEN - 87 / - 83 + ( - 61 ) THEN NULL WHEN - 38 * COUNT( * ) THEN NULL ELSE COUNT( * ) END ) WHEN - 29 THEN - 26 + 67 WHEN 99 THEN NULL END * 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT - CASE 2 WHEN 10 THEN 71 + + COALESCE ( + ( 3 ), + 99 + + CASE + 68 WHEN - 87 / - 83 + ( - 61 ) THEN NULL WHEN - 38 * COUNT ( * ) THEN NULL ELSE COUNT ( * ) END ) WHEN - 29 THEN - 26 + 67 WHEN 99 THEN NULL END * 98 AS col0
----
NULL

query I rowsort
SELECT + ( + 34 ) * 25 AS col1
----
850

query I rowsort
SELECT ALL 40 * 11
----
440

query I rowsort
SELECT + 51 + - 67 * + 81
----
-5376

query I rowsort
SELECT DISTINCT - 64 - 69
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT + + 58 * COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-5378
SELECT + + 58 * COUNT ( * )
----
58

query I rowsort
SELECT ALL ( + - 44 ) * - 22
----
968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5380
SELECT ALL COALESCE ( ( 19 ), - 0 * - CASE - 67 DIV 91 WHEN 34 - - COUNT( * ) THEN ( NULLIF ( 11, 33 ) ) * MAX( + 48 ) + ( - COUNT( * ) ) END + 37 DIV + 87, 25 * 86 )
----
19

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL COALESCE ( ( 19 ), - 0 * - CASE - 67 / 91 WHEN 34 - - COUNT ( * ) THEN ( NULLIF ( 11, 33 ) ) * MAX ( + 48 ) + ( - COUNT ( * ) ) END + 37 / + 87, 25 * 86 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT ALL + - 33 * CASE 71 WHEN + 89 THEN - COUNT( * ) END + 58 * 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL + - 33 * CASE 71 WHEN + 89 THEN - COUNT ( * ) END + 58 * 86 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT + ( + COUNT( * ) ) * + 71 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-5382
SELECT + ( + COUNT ( * ) ) * + 71 AS col0
----
71

query I rowsort
SELECT + - 76 * + - 29
----
2204

query I rowsort
SELECT - + ( + 19 ) col1
----
-19

query I rowsort
SELECT ALL - 37 * 25 + - ( 36 )
----
-961

query I rowsort
SELECT + - 32 * 52 AS col1
----
-1664

query I rowsort
SELECT - 17 * - 25
----
425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5388
SELECT + SUM( - ( + 11 ) ) * + CASE + 68 * + CAST( NULL AS SIGNED ) + - 5 WHEN - ( - 81 ) - 1 THEN 48 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5388
SELECT + SUM ( - ( + 11 ) ) * + CASE + 68 * + CAST ( NULL AS INTEGER ) + - 5 WHEN - ( - 81 ) - 1 THEN 48 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5389
SELECT - + 49 DIV - 23 + 4
----
6

skipif mysql # not compatible
query I rowsort label-5389
SELECT - + 49 / - 23 + 4
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5390
SELECT ALL + + COUNT( * ) DIV + 30 + 22 col1
----
22

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL + + COUNT ( * ) / + 30 + 22 col1
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-5391
SELECT DISTINCT + 16 DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT + 16 / + 56
----
0

query I rowsort
SELECT - CASE 7 WHEN + 48 - + 36 * - 21 THEN NULL WHEN + 88 THEN - 24 ELSE NULL END / - 16 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT + 42 + COUNT( * ) + + 77 + ( 19 )
----
139

skipif mysql # not compatible
query I rowsort label-5393
SELECT + 42 + COUNT ( * ) + + 77 + ( 19 )
----
139

query I rowsort
SELECT - 79 * - 44 + 22
----
3498

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5395
SELECT - CAST( NULL AS SIGNED ) * + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5395
SELECT - CAST ( NULL AS INTEGER ) * + + 68
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5396
SELECT ALL 10 DIV + 14 * + 99 + + ( - 92 ) col1
----
-92

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL 10 / + 14 * + 99 + + ( - 92 ) col1
----
-92

query II rowsort
SELECT DISTINCT + 95 AS col2, 21
----
95
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5398
SELECT ( + - ( - - 83 ) ) DIV 64 - + 71
----
-72

skipif mysql # not compatible
query I rowsort label-5398
SELECT ( + - ( - - 83 ) ) / 64 - + 71
----
-72

query II rowsort
SELECT + 11 AS col1, + 13 AS col0
----
11
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT ALL COUNT( * ) * + - ( + + 11 ) * - 65 + - 57 AS col2
----
658

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL COUNT ( * ) * + - ( + + 11 ) * - 65 + - 57 AS col2
----
658

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT COUNT( * ) * - + 57 + + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-5401
SELECT COUNT ( * ) * - + 57 + + COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-5402
SELECT + 22 AS col0, + COUNT( * ) AS col0
----
22
1

skipif mysql # not compatible
query II rowsort label-5402
SELECT + 22 AS col0, + COUNT ( * ) AS col0
----
22
1

query I rowsort
SELECT NULLIF ( 59, - 73 )
----
59

query I rowsort
SELECT - 34 * 44
----
-1496

query I rowsort
SELECT + CASE 25 WHEN - + 24 THEN 76 END
----
NULL

query I rowsort
SELECT NULLIF ( - + 60, 10 / - 79 ) AS col1
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-5407
SELECT - + 46 - + + 10 + + 58 + ( - 72 ) DIV 45 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5407
SELECT - + 46 - + + 10 + + 58 + ( - 72 ) / 45 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT - 20 * + 89 * + COUNT( * ) col2
----
-1780

skipif mysql # not compatible
query I rowsort label-5408
SELECT - 20 * + 89 * + COUNT ( * ) col2
----
-1780

query I rowsort
SELECT - + ( + + 85 )
----
-85

query II rowsort
SELECT ALL - 35, - 27 AS col0
----
-35
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-5411
SELECT DISTINCT + 32 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT + 32 / 45
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT + - 21 * - + 72 - + ( - 89 ) DIV + 40
----
1514

skipif mysql # not compatible
query I rowsort label-5412
SELECT + - 21 * - + 72 - + ( - 89 ) / + 40
----
1514

onlyif mysql # DIV for integer division: 
query I rowsort label-5413
SELECT - + 10 + - + 17 + + - ( + 82 ) DIV 47 * - 47
----
20

skipif mysql # not compatible
query I rowsort label-5413
SELECT - + 10 + - + 17 + + - ( + 82 ) / 47 * - 47
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT + 60 * COUNT( * ) + 43 * COUNT( * ) - 21
----
82

skipif mysql # not compatible
query I rowsort label-5414
SELECT + 60 * COUNT ( * ) + 43 * COUNT ( * ) - 21
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT DISTINCT - - SUM( DISTINCT + + ( + ( - 49 ) ) ) * AVG ( ( - CASE + 73 WHEN + 7 THEN 92 END ) / 29 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT - - SUM ( DISTINCT + + ( + ( - 49 ) ) ) * AVG ( ( - CASE + 73 WHEN + 7 THEN 92 END ) / 29 ) AS col2
----
NULL

query II rowsort
SELECT ALL - 27, + 47 * ( 58 ) * + 64 AS col1
----
-27
174464

query I rowsort
SELECT - 9 + + 62 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT - 22 + + 62 * 38 * + COUNT( - 22 ) AS col0
----
2334

skipif mysql # not compatible
query I rowsort label-5418
SELECT - 22 + + 62 * 38 * + COUNT ( - 22 ) AS col0
----
2334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5419
SELECT - CASE - + 96 WHEN - 13 THEN NULL WHEN 7 * + 33 THEN 11 WHEN + 43 + 92 THEN 92 * + 0 ELSE ( CAST( 76 AS SIGNED ) ) * + COUNT( * ) END * COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-5419
SELECT - CASE - + 96 WHEN - 13 THEN NULL WHEN 7 * + 33 THEN 11 WHEN + 43 + 92 THEN 92 * + 0 ELSE ( CAST ( 76 AS INTEGER ) ) * + COUNT ( * ) END * COUNT ( * )
----
-76

query I rowsort
SELECT 63 * + 69 * 30 * - 54 AS col0
----
-7042140

query I rowsort
SELECT 94 + + - 82 AS col0
----
12

query I rowsort
SELECT DISTINCT + 47 + ( - 91 ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT ALL - 25 + + - COUNT( * ) + 83
----
57

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL - 25 + + - COUNT ( * ) + 83
----
57

query I rowsort
SELECT ALL + 14 + - 50 AS col0
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5425
SELECT 32 + - COUNT( * ) + + COUNT( * ) DIV + 55 * + 74
----
31

skipif mysql # not compatible
query I rowsort label-5425
SELECT 32 + - COUNT ( * ) + + COUNT ( * ) / + 55 * + 74
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT CASE - - 16 WHEN + 67 THEN ( + 16 ) WHEN 81 THEN MAX( 34 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5426
SELECT CASE - - 16 WHEN + 67 THEN ( + 16 ) WHEN 81 THEN MAX ( 34 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5427
SELECT ALL CAST( NULL AS SIGNED ) + + + 68, + 68 AS col0
----
NULL
68

skipif mysql # not compatible
query II rowsort label-5427
SELECT ALL CAST ( NULL AS INTEGER ) + + + 68, + 68 AS col0
----
NULL
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT NULLIF ( - + 37, + + COUNT( * ) * + 40 ) * 85 AS col2
----
-3145

skipif mysql # not compatible
query I rowsort label-5428
SELECT NULLIF ( - + 37, + + COUNT ( * ) * + 40 ) * 85 AS col2
----
-3145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5429
SELECT CAST( + NULLIF ( - - ( + 57 ), + 11 - - 30 ) AS SIGNED ) + - 15 * + 47
----
-648

skipif mysql # not compatible
query I rowsort label-5429
SELECT CAST ( + NULLIF ( - - ( + 57 ), + 11 - - 30 ) AS INTEGER ) + - 15 * + 47
----
-648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5430
SELECT DISTINCT 71 + ( + 60 ) - + 30 + 99 * + CAST( 59 AS SIGNED ) AS col2
----
5942

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT 71 + ( + 60 ) - + 30 + 99 * + CAST ( 59 AS INTEGER ) AS col2
----
5942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5431
SELECT CAST( + - 6 AS SIGNED ) * + 92
----
-552

skipif mysql # not compatible
query I rowsort label-5431
SELECT CAST ( + - 6 AS INTEGER ) * + 92
----
-552

query I rowsort
SELECT ALL - NULLIF ( + 43, + 69 * - 11 ) AS col0
----
-43

query I rowsort
SELECT DISTINCT 35 - + 94 + + 41 AS col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5434
SELECT CASE - - 11 WHEN - + COUNT( * ) * + - CAST( NULL AS SIGNED ) * + 74 THEN 19 * - CAST( 59 / - COUNT( * ) AS SIGNED ) ELSE - 25 END * + COUNT( * ) + 53
----
28

skipif mysql # not compatible
query I rowsort label-5434
SELECT CASE - - 11 WHEN - + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * + 74 THEN 19 * - CAST ( 59 / - COUNT ( * ) AS INTEGER ) ELSE - 25 END * + COUNT ( * ) + 53
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5435
SELECT CASE + 84 WHEN ( 73 ) THEN NULL ELSE 0 + - AVG ( - 8 + + 27 ) END * CASE 80 WHEN + 29 + 60 * - CAST( 0 AS SIGNED ) THEN 79 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5435
SELECT CASE + 84 WHEN ( 73 ) THEN NULL ELSE 0 + - AVG ( - 8 + + 27 ) END * CASE 80 WHEN + 29 + 60 * - CAST ( 0 AS INTEGER ) THEN 79 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT 1 + NULLIF ( - - 89, - 17 + - SUM( 35 ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-5436
SELECT 1 + NULLIF ( - - 89, - 17 + - SUM ( 35 ) ) AS col2
----
90

query I rowsort
SELECT 72 * 52 * - - 2 AS col0
----
7488

onlyif mysql # DIV for integer division: 
query I rowsort label-5438
SELECT ALL - 68 DIV + 34
----
-2

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL - 68 / + 34
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5439
SELECT CAST( + + 10 AS SIGNED ) * ( - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5439
SELECT CAST ( + + 10 AS INTEGER ) * ( - 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT + 79 * + COUNT( DISTINCT + + 37 ) + - 47
----
32

skipif mysql # not compatible
query I rowsort label-5440
SELECT + 79 * + COUNT ( DISTINCT + + 37 ) + - 47
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT CASE - 9 WHEN 34 THEN 24 WHEN + COUNT( * ) * - 22 THEN 83 END + ( 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5441
SELECT CASE - 9 WHEN 34 THEN 24 WHEN + COUNT ( * ) * - 22 THEN 83 END + ( 12 )
----
NULL

query I rowsort
SELECT ALL + - 16 * - 28 * 91
----
40768

query I rowsort
SELECT DISTINCT + - 99 * - 2
----
198

query I rowsort
SELECT - 49 + + 23 - + 3 + + ( 90 ) AS col2
----
61

query I rowsort
SELECT 52 * + + 95
----
4940

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT ALL + + 49 * - - ( - + 20 ) * 63 * ( 83 * 19 ) + + COUNT( * )
----
-97363979

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL + + 49 * - - ( - + 20 ) * 63 * ( 83 * 19 ) + + COUNT ( * )
----
-97363979

query I rowsort
SELECT 40 * + + 31
----
1240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5448
SELECT - + 72 * + + 60 + + NULLIF ( + + 39, 93 ) + 71 + COUNT( * ) DIV + 37
----
-4210

skipif mysql # not compatible
query I rowsort label-5448
SELECT - + 72 * + + 60 + + NULLIF ( + + 39, 93 ) + 71 + COUNT ( * ) / + 37
----
-4210

query I rowsort
SELECT 29 + + 94 * - 93
----
-8713

onlyif mysql # aggregate syntax: 
query II rowsort label-5450
SELECT SUM( + 13 ), ( 2 ) * 3 AS col1
----
13
6

skipif mysql # not compatible
query II rowsort label-5450
SELECT SUM ( + 13 ), ( 2 ) * 3 AS col1
----
13
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5451
SELECT ALL - + 57 + - CAST( 23 AS SIGNED ) * + NULLIF ( COALESCE ( 45, 8, + 11 * - 94 ), + COUNT( * ) / + NULLIF ( + ( COALESCE ( 83, - COUNT( * ) * 17, - 3 * 68 ) ), 74 * 0 ) )
----
-1092

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL - + 57 + - CAST ( 23 AS INTEGER ) * + NULLIF ( COALESCE ( 45, 8, + 11 * - 94 ), + COUNT ( * ) / + NULLIF ( + ( COALESCE ( 83, - COUNT ( * ) * 17, - 3 * 68 ) ), 74 * 0 ) )
----
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT 63 * - COUNT( * ) + + NULLIF ( + - 72, 77 * 79 ) - + NULLIF ( 48, - 63 + + CASE - 84 WHEN ( 54 ) - 19 THEN NULL ELSE 67 END * 8 ) AS col0
----
-183

skipif mysql # not compatible
query I rowsort label-5452
SELECT 63 * - COUNT ( * ) + + NULLIF ( + - 72, 77 * 79 ) - + NULLIF ( 48, - 63 + + CASE - 84 WHEN ( 54 ) - 19 THEN NULL ELSE 67 END * 8 ) AS col0
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT NULLIF ( - - 63, COALESCE ( + COUNT( * ), 13 * + 95, 15 ) * 59 )
----
63

skipif mysql # not compatible
query I rowsort label-5453
SELECT NULLIF ( - - 63, COALESCE ( + COUNT ( * ), 13 * + 95, 15 ) * 59 )
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5454
SELECT ALL + + 61 + NULLIF ( 25, + COUNT( * ) ) DIV + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL + + 61 + NULLIF ( 25, + COUNT ( * ) ) / + COUNT ( * )
----
86

query I rowsort
SELECT ALL + + 44 + - 73 + + 43 * 54 * 12 AS col0
----
27835

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5456
SELECT + 56 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5456
SELECT + 56 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 95 + 67 AS col2
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5458
SELECT ( + CASE + - 42 WHEN - + ( 51 ) - + CAST( + 93 - ( + CAST( NULL AS SIGNED ) + + COALESCE ( NULLIF ( MIN( DISTINCT 43 ), - MIN( ALL - 30 ) + + 7 ), 74, 4 * + 19 ) * - 59 ) AS SIGNED ) THEN COUNT( * ) * - 6 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5458
SELECT ( + CASE + - 42 WHEN - + ( 51 ) - + CAST ( + 93 - ( + CAST ( NULL AS INTEGER ) + + COALESCE ( NULLIF ( MIN ( DISTINCT 43 ), - MIN ( ALL - 30 ) + + 7 ), 74, 4 * + 19 ) * - 59 ) AS INTEGER ) THEN COUNT ( * ) * - 6 END ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5459
SELECT DISTINCT - - 32 DIV - + 55, - 72 col1
----
0
-72

skipif mysql # not compatible
query II rowsort label-5459
SELECT DISTINCT - - 32 / - + 55, - 72 col1
----
0
-72

query I rowsort
SELECT 78 * + 86
----
6708

query I rowsort
SELECT ( 50 ) * - + 32
----
-1600

query I rowsort
SELECT ALL - 17 * - 13
----
221

query I rowsort
SELECT 57 - + + 54 + 54 AS col0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-5464
SELECT 65 AS col0, - 50 * 68 * CASE - 56 WHEN 40 THEN ( COUNT( * ) ) * 60 WHEN 22 THEN NULL END - 80
----
65
NULL

skipif mysql # not compatible
query II rowsort label-5464
SELECT 65 AS col0, - 50 * 68 * CASE - 56 WHEN 40 THEN ( COUNT ( * ) ) * 60 WHEN 22 THEN NULL END - 80
----
65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT MIN( DISTINCT + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-5465
SELECT MIN ( DISTINCT + 57 )
----
57

query I rowsort
SELECT 92 * - + 92
----
-8464

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT MAX( 4 ) + - + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-5467
SELECT MAX ( 4 ) + - + COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT SUM( ALL + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-5468
SELECT SUM ( ALL + 59 )
----
59

query I rowsort
SELECT ALL 57 * + + 8 - + 20
----
436

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5470
SELECT 82 * - CAST( - 82 AS SIGNED )
----
6724

skipif mysql # not compatible
query I rowsort label-5470
SELECT 82 * - CAST ( - 82 AS INTEGER )
----
6724

onlyif mysql # DIV for integer division: 
query I rowsort label-5471
SELECT ALL 28 DIV 58
----
0

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL 28 / 58
----
0

query I rowsort
SELECT DISTINCT 46 * - 71 * + ( - - 96 )
----
-313536

query I rowsort
SELECT 7 * - + 44
----
-308

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5474
SELECT ALL 94 + + 33 DIV + 86 + + - 9 + + COUNT( * ) - + 59 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL 94 + + 33 / + 86 + + - 9 + + COUNT ( * ) - + 59 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT + SUM( DISTINCT + 76 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-5475
SELECT + SUM ( DISTINCT + 76 ) AS col0
----
76

query I rowsort
SELECT 8 * + ( 35 ) AS col2
----
280

query I rowsort
SELECT + 47 * + + 22 * 54
----
55836

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5478
SELECT DISTINCT + 83 DIV + + COALESCE ( + 21, - CAST( NULL AS SIGNED ) * - 90, 54 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5478
SELECT DISTINCT + 83 / + + COALESCE ( + 21, - CAST ( NULL AS INTEGER ) * - 90, 54 ) AS col1
----
3

query I rowsort
SELECT + + NULLIF ( - ( 57 ), - - 60 ) * + ( 58 ) AS col0
----
-3306

onlyif mysql # DIV for integer division: 
query I rowsort label-5480
SELECT ALL - 50 DIV + 23
----
-2

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL - 50 / + 23
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT DISTINCT COUNT( DISTINCT + 46 ) + ( 7 ) + + 90 * + 10
----
908

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT COUNT ( DISTINCT + 46 ) + ( 7 ) + + 90 * + 10
----
908

query II rowsort
SELECT - 27 * - + 55 - 39, + 94 AS col0
----
1446
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT ALL + - COALESCE ( + 68, - COUNT( * ) * - - 55 * - + COUNT( * ) * 96 + - 35, SUM( ALL 94 ) ) + 21
----
-47

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL + - COALESCE ( + 68, - COUNT ( * ) * - - 55 * - + COUNT ( * ) * 96 + - 35, SUM ( ALL 94 ) ) + 21
----
-47

query II rowsort
SELECT + 18 AS col1, - ( - 67 ) AS col1
----
18
67

query I rowsort
SELECT + 93 + + + 82
----
175

query I rowsort
SELECT - + 87 - - + 12 AS col0
----
-75

query I rowsort
SELECT + + 17 + - 88 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT - - COUNT( * ) - - - 99
----
-98

skipif mysql # not compatible
query I rowsort label-5488
SELECT - - COUNT ( * ) - - - 99
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5489
SELECT ALL + COUNT( * ) + - 36 + CAST( + 48 AS SIGNED ) * - 64
----
-3107

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL + COUNT ( * ) + - 36 + CAST ( + 48 AS INTEGER ) * - 64
----
-3107

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5490
SELECT - - 43 + + CAST( NULL AS DECIMAL ) + - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5490
SELECT - - 43 + + CAST ( NULL AS REAL ) + - 82 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT - COUNT( ALL + + 81 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5491
SELECT - COUNT ( ALL + + 81 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5492
SELECT DISTINCT - NULLIF ( COUNT( * ), - 22 * 89 + + COUNT( * ) + - 90 ) - 11 DIV NULLIF ( COUNT( * ), NULLIF ( CASE MIN( 50 ) WHEN 63 THEN - 77 + ( CAST( + 20 AS SIGNED ) ) WHEN - 48 THEN CASE WHEN ( - COUNT( * ) ) IN ( 66 * + 70 ) THEN + 87 END END, + 10 DIV - SUM( - 93 ) ) * + 13 )
----
-12

skipif mysql # not compatible
query I rowsort label-5492
SELECT DISTINCT - NULLIF ( COUNT ( * ), - 22 * 89 + + COUNT ( * ) + - 90 ) - 11 / NULLIF ( COUNT ( * ), NULLIF ( CASE MIN ( 50 ) WHEN 63 THEN - 77 + ( CAST ( + 20 AS INTEGER ) ) WHEN - 48 THEN CASE WHEN ( - COUNT ( * ) ) IN ( 66 * + 70 ) THEN + 87 END END, + 10 / - SUM ( - 93 ) ) * + 13 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT ALL COUNT( - 87 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL COUNT ( - 87 ) AS col2
----
1

query I rowsort
SELECT - 89 + + 72 + + - 53
----
-70

query I rowsort
SELECT ALL - 13 - 60 col2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5496
SELECT - CAST( 32 AS SIGNED ) + + MAX( DISTINCT 54 ) * - NULLIF ( - 29, + COALESCE ( 5, - 77 - - 30 ) * 70 )
----
1534

skipif mysql # not compatible
query I rowsort label-5496
SELECT - CAST ( 32 AS INTEGER ) + + MAX ( DISTINCT 54 ) * - NULLIF ( - 29, + COALESCE ( 5, - 77 - - 30 ) * 70 )
----
1534

query II rowsort
SELECT - 97 col1, 5 AS col1
----
-97
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT ALL - 86 DIV + 49 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL - 86 / + 49 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-5499
SELECT 13 AS col1, NULLIF ( + CASE + 5 WHEN + - 16 THEN NULL ELSE 7 DIV + 60 - 87 * - 26 END, 88 ) AS col2
----
13
2262

skipif mysql # not compatible
query II rowsort label-5499
SELECT 13 AS col1, NULLIF ( + CASE + 5 WHEN + - 16 THEN NULL ELSE 7 / + 60 - 87 * - 26 END, 88 ) AS col2
----
13
2262

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5500
SELECT - CASE - + CAST( + 3 AS DECIMAL ) WHEN 11 * 28 + + 85 + - 31 THEN - 12 + - 65 WHEN + 67 THEN NULL END / + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-5500
SELECT - CASE - + CAST ( + 3 AS REAL ) WHEN 11 * 28 + + 85 + - 31 THEN - 12 + - 65 WHEN + 67 THEN NULL END / + 49
----
NULL

query II rowsort
SELECT - 4 AS col1, - 35
----
-4
-35

query I rowsort
SELECT ALL - 14 * + 25
----
-350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5503
SELECT - NULLIF ( - 15, - + COUNT( * ) + + + NULLIF ( 80, - 17 ) ) DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-5503
SELECT - NULLIF ( - 15, - + COUNT ( * ) + + + NULLIF ( 80, - 17 ) ) / - 95
----
0

query I rowsort
SELECT DISTINCT + 69 * 83 col0
----
5727

query II rowsort
SELECT ALL - 14 * + ( + ( + 68 ) ), 56 AS col1
----
-952
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5506
SELECT ( + CASE 81 WHEN + - 24 THEN NULL WHEN + COUNT( * ) THEN + CAST( ( 22 ) AS SIGNED ) + 40 * 53 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5506
SELECT ( + CASE 81 WHEN + - 24 THEN NULL WHEN + COUNT ( * ) THEN + CAST ( ( 22 ) AS INTEGER ) + 40 * 53 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5507
SELECT CAST( NULL AS SIGNED ) / COUNT( * ) + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5507
SELECT CAST ( NULL AS INTEGER ) / COUNT ( * ) + + 8
----
NULL

query I rowsort
SELECT ( + COALESCE ( + 67, - + 55 ) )
----
67

query II rowsort
SELECT 58 AS col1, + 93 + - 41 AS col2
----
58
52

query I rowsort
SELECT - + COALESCE ( + 41, + 3 ) + + 47
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT DISTINCT + 6 * 71 * CASE + + 98 WHEN - + 68 / + + 11 - 83 THEN NULL ELSE - 36 - + COUNT( DISTINCT + 85 ) END + + COALESCE ( 41, - 28 )
----
-15721

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT + 6 * 71 * CASE + + 98 WHEN - + 68 / + + 11 - 83 THEN NULL ELSE - 36 - + COUNT ( DISTINCT + 85 ) END + + COALESCE ( 41, - 28 )
----
-15721

query I rowsort
SELECT ALL - 54 * + 34 AS col0
----
-1836

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT ALL COUNT( ALL + 71 ) * - - ( + ( - 49 ) ) - - 11 + + COUNT( * ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL COUNT ( ALL + 71 ) * - - ( + ( - 49 ) ) - - 11 + + COUNT ( * ) col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5514
SELECT + COUNT( * ) + + ( - ( 15 ) ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5514
SELECT + COUNT ( * ) + + ( - ( 15 ) ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT DISTINCT - 60 * 73 * + - ( COUNT( * ) ) - COUNT( * )
----
4379

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT - 60 * 73 * + - ( COUNT ( * ) ) - COUNT ( * )
----
4379

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT + - SUM( DISTINCT 7 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5516
SELECT + - SUM ( DISTINCT 7 ) AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5517
SELECT + ( 45 ) * CAST( NULL AS SIGNED ) * + 66, + 21 * - ( + 95 ) * 50 AS col0
----
NULL
-99750

skipif mysql # not compatible
query II rowsort label-5517
SELECT + ( 45 ) * CAST ( NULL AS INTEGER ) * + 66, + 21 * - ( + 95 ) * 50 AS col0
----
NULL
-99750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5518
SELECT ALL + CASE + - 53 WHEN - - CAST( + SUM( DISTINCT - 56 ) AS SIGNED ) THEN NULL ELSE - CASE + 54 WHEN 98 THEN NULL WHEN + COUNT( * ) THEN - 19 / + 36 END * + 7 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL + CASE + - 53 WHEN - - CAST ( + SUM ( DISTINCT - 56 ) AS INTEGER ) THEN NULL ELSE - CASE + 54 WHEN 98 THEN NULL WHEN + COUNT ( * ) THEN - 19 / + 36 END * + 7 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5519
SELECT + + 21 DIV + 30
----
0

skipif mysql # not compatible
query I rowsort label-5519
SELECT + + 21 / + 30
----
0

query III rowsort
SELECT 82, + 23 - - ( - 52 ) AS col1, 32 AS col1
----
82
-29
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5521
SELECT - 85 * - ( + 58 ) - - 2 + 93 DIV 15 AS col2
----
4938

skipif mysql # not compatible
query I rowsort label-5521
SELECT - 85 * - ( + 58 ) - - 2 + 93 / 15 AS col2
----
4938

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT ALL - 76 * + COUNT( * ) - + 24 col1
----
-100

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL - 76 * + COUNT ( * ) - + 24 col1
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-5523
SELECT ALL + 77 DIV - 62 col1
----
-1

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL + 77 / - 62 col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5524
SELECT - 74 + - NULLIF ( - - 81, + 75 * + 31 - ( CAST( NULL AS SIGNED ) ) * 18 ) * COUNT( * ) AS col2
----
-155

skipif mysql # not compatible
query I rowsort label-5524
SELECT - 74 + - NULLIF ( - - 81, + 75 * + 31 - ( CAST ( NULL AS INTEGER ) ) * 18 ) * COUNT ( * ) AS col2
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT DISTINCT + - COUNT( * ) * - 75 - + + 79
----
-4

skipif mysql # not compatible
query I rowsort label-5525
SELECT DISTINCT + - COUNT ( * ) * - 75 - + + 79
----
-4

query II rowsort
SELECT ALL 69 col0, 58 * 50
----
69
2900

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5527
SELECT + CAST( NULL AS DECIMAL ) * ( - + SUM( - NULLIF ( + 46, - 69 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5527
SELECT + CAST ( NULL AS REAL ) * ( - + SUM ( - NULLIF ( + 46, - 69 ) ) ) AS col0
----
NULL

query II rowsort
SELECT ALL 92, + 94 AS col2
----
92
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT COUNT( DISTINCT ( ( + 38 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5529
SELECT COUNT ( DISTINCT ( ( + 38 ) ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5530
SELECT ALL ( - CAST( - ( - 94 ) AS SIGNED ) ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL ( - CAST ( - ( - 94 ) AS INTEGER ) ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT + 77 - - - COUNT( * ) * - 42 AS col1
----
119

skipif mysql # not compatible
query I rowsort label-5531
SELECT + 77 - - - COUNT ( * ) * - 42 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT - MIN( ALL - 90 ) * 83 AS col2
----
7470

skipif mysql # not compatible
query I rowsort label-5532
SELECT - MIN ( ALL - 90 ) * 83 AS col2
----
7470

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT ALL MAX( - - NULLIF ( - 94, - + 77 * + 34 ) )
----
-94

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL MAX ( - - NULLIF ( - 94, - + 77 * + 34 ) )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT DISTINCT 70 * MIN( ALL + 67 )
----
4690

skipif mysql # not compatible
query I rowsort label-5534
SELECT DISTINCT 70 * MIN ( ALL + 67 )
----
4690

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5535
SELECT ALL CAST( 27 AS SIGNED ) AS col2, 37 + 90 + + 63 * + COALESCE ( + 69, 21 ) AS col0
----
27
4474

skipif mysql # not compatible
query II rowsort label-5535
SELECT ALL CAST ( 27 AS INTEGER ) AS col2, 37 + 90 + + 63 * + COALESCE ( + 69, 21 ) AS col0
----
27
4474

query I rowsort
SELECT DISTINCT NULLIF ( - 62, 97 )
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-5537
SELECT DISTINCT + 37 DIV + 76 * + - 19
----
0

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT + 37 / + 76 * + - 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT ALL - COALESCE ( - SUM( DISTINCT + 41 ), CASE - + 77 WHEN - 50 THEN - 33 WHEN + 79 + + 1 THEN 73 WHEN - 1 * ( 78 ) THEN NULL ELSE NULL END + + 16 * 2 ) + 14 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL - COALESCE ( - SUM ( DISTINCT + 41 ), CASE - + 77 WHEN - 50 THEN - 33 WHEN + 79 + + 1 THEN 73 WHEN - 1 * ( 78 ) THEN NULL ELSE NULL END + + 16 * 2 ) + 14 AS col2
----
55

query II rowsort
SELECT - ( 25 ) * - 81, 31 * 21 + 20 AS col2
----
2025
671

query I rowsort
SELECT 97 * - - NULLIF ( 42, + 10 * 35 )
----
4074

onlyif mysql # DIV for integer division: 
query I rowsort label-5541
SELECT 11 * 11 + - 18 * 44 DIV + ( - ( 99 ) ) AS col2
----
129

skipif mysql # not compatible
query I rowsort label-5541
SELECT 11 * 11 + - 18 * 44 / + ( - ( 99 ) ) AS col2
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5542
SELECT - 92 DIV - 64 * + COUNT( * ) - - 41 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-5542
SELECT - 92 / - 64 * + COUNT ( * ) - - 41 AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5543
SELECT ALL + - CAST( NULL AS SIGNED ) * + + 24 / + 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL + - CAST ( NULL AS INTEGER ) * + + 24 / + 53 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT ALL - 13 + + 26 * - COUNT( ALL 18 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL - 13 + + 26 * - COUNT ( ALL 18 ) AS col2
----
-39

query I rowsort
SELECT DISTINCT + 55 * 80 AS col0
----
4400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5546
SELECT DISTINCT - - COUNT( * ) + + 88 AS col2, + 99 DIV 45
----
89
2

skipif mysql # not compatible
query II rowsort label-5546
SELECT DISTINCT - - COUNT ( * ) + + 88 AS col2, + 99 / 45
----
89
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5547
SELECT ALL + 22 * + + COUNT( * ), - 23 AS col0
----
22
-23

skipif mysql # not compatible
query II rowsort label-5547
SELECT ALL + 22 * + + COUNT ( * ), - 23 AS col0
----
22
-23

query I rowsort
SELECT DISTINCT - 64 * + - 63
----
4032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5549
SELECT + + ( - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5549
SELECT + + ( - CAST ( NULL AS INTEGER ) ) col0
----
NULL

query II rowsort
SELECT 94 + + 21, - 73 AS col2
----
115
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5551
SELECT COALESCE ( 37, 65 ) * 44 * NULLIF ( - 2, - 77 + 56 ) + - 95 DIV - COALESCE ( COUNT( * ) * 47, - COUNT( * ) - NULLIF ( + 0 + - 78, 88 * - CASE - 30 * CASE WHEN ( COALESCE ( + 1, - 76 DIV + CASE + 77 * - 60 WHEN + 33 THEN 57 * 81 WHEN 50 * COUNT( * ) THEN NULL ELSE NULL END ) ) IS NULL THEN NULL WHEN 26 * 29 BETWEEN + 5 DIV 48 AND 37 THEN 60 WHEN - 91 < NULLIF ( 59, ( + 54 ) * + 34 ) THEN NULL ELSE NULL END WHEN + COALESCE ( COUNT( * ), MAX( 94 ) ) THEN - COUNT( * ) END ) DIV - 98, CAST( - COUNT( * ) AS SIGNED ) * 79 ) + - 86
----
-3340

skipif mysql # not compatible
query I rowsort label-5551
SELECT COALESCE ( 37, 65 ) * 44 * NULLIF ( - 2, - 77 + 56 ) + - 95 / - COALESCE ( COUNT ( * ) * 47, - COUNT ( * ) - NULLIF ( + 0 + - 78, 88 * - CASE - 30 * CASE WHEN ( COALESCE ( + 1, - 76 / + CASE + 77 * - 60 WHEN + 33 THEN 57 * 81 WHEN 50 * COUNT ( * ) THEN NULL ELSE NULL END ) ) IS NULL THEN NULL WHEN 26 * 29 BETWEEN + 5 / 48 AND 37 THEN 60 WHEN - 91 < NULLIF ( 59, ( + 54 ) * + 34 ) THEN NULL ELSE NULL END WHEN + COALESCE ( COUNT ( * ), MAX ( 94 ) ) THEN - COUNT ( * ) END ) / - 98, CAST ( - COUNT ( * ) AS INTEGER ) * 79 ) + - 86
----
-3340

query I rowsort
SELECT DISTINCT + - 96 - + 1 col2
----
-97

query I rowsort
SELECT DISTINCT - + ( + - ( ( - 50 ) ) )
----
-50

query I rowsort
SELECT ALL 42 * 21 * + 90
----
79380

query I rowsort
SELECT 63 - + - 44
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT 55 * 95 + - 75 + - + COUNT( * ) AS col1
----
5149

skipif mysql # not compatible
query I rowsort label-5556
SELECT 55 * 95 + - 75 + - + COUNT ( * ) AS col1
----
5149

query I rowsort
SELECT ALL 72 * + + ( - 69 )
----
-4968

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT COUNT( * ) + - COALESCE ( + 48, MAX( - 44 ) + 78 ) + COUNT( * ) * + SUM( ( + 74 ) ) + 30
----
57

skipif mysql # not compatible
query I rowsort label-5558
SELECT COUNT ( * ) + - COALESCE ( + 48, MAX ( - 44 ) + 78 ) + COUNT ( * ) * + SUM ( ( + 74 ) ) + 30
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5559
SELECT ( - 15 ) DIV 48 + + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5559
SELECT ( - 15 ) / 48 + + - COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5560
SELECT CAST( - - CASE WHEN NULL <> NULL OR + - 49 NOT BETWEEN + 97 / + 96 AND COUNT( * ) + - 63 * 33 THEN NULL WHEN 64 * MIN( - 76 ) >= ( 54 ) THEN 19 * 49 + + COUNT( * ) * 99 END AS DECIMAL ) / + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5560
SELECT CAST ( - - CASE WHEN NULL <> NULL OR + - 49 NOT BETWEEN + 97 / + 96 AND COUNT ( * ) + - 63 * 33 THEN NULL WHEN 64 * MIN ( - 76 ) >= ( 54 ) THEN 19 * 49 + + COUNT ( * ) * 99 END AS REAL ) / + 85
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5561
SELECT ( - - 89 ) DIV - 54, 14 * + + COALESCE ( + NULLIF ( - 84, + 41 DIV - ( + 63 ) + - 40 ), - 84 * + 76 ) AS col1
----
-1
-1176

skipif mysql # not compatible
query II rowsort label-5561
SELECT ( - - 89 ) / - 54, 14 * + + COALESCE ( + NULLIF ( - 84, + 41 / - ( + 63 ) + - 40 ), - 84 * + 76 ) AS col1
----
-1
-1176

query I rowsort
SELECT ALL 94 + - 30 col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5563
SELECT ALL 6 DIV + + 36
----
0

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL 6 / + + 36
----
0

query II rowsort
SELECT DISTINCT 56, 31 AS col1
----
56
31

query I rowsort
SELECT DISTINCT 23 + + 33 AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5566
SELECT 10 + + + COUNT( * ) + 19 + COALESCE ( - + 74, + 58 / - COALESCE ( + 47, + CAST( NULL AS SIGNED ) ) ) + ( - CASE - MIN( - 10 ) WHEN + 58 THEN NULL WHEN 88 THEN 74 + + COUNT( * ) END - AVG ( 88 + - 38 ) * - 13 ) * + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5566
SELECT 10 + + + COUNT ( * ) + 19 + COALESCE ( - + 74, + 58 / - COALESCE ( + 47, + CAST ( NULL AS INTEGER ) ) ) + ( - CASE - MIN ( - 10 ) WHEN + 58 THEN NULL WHEN 88 THEN 74 + + COUNT ( * ) END - AVG ( 88 + - 38 ) * - 13 ) * + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL 58 + 44 + 46 - - MIN( DISTINCT 29 ) * + 28 * - 35 AS col1
----
-28272

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL 58 + 44 + 46 - - MIN ( DISTINCT 29 ) * + 28 * - 35 AS col1
----
-28272

onlyif mysql # aggregate syntax: 
query II rowsort label-5568
SELECT ALL CASE + - 11 WHEN 70 THEN + COUNT( * ) END * + - ( + 45 ) AS col2, - 18 + 11
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-5568
SELECT ALL CASE + - 11 WHEN 70 THEN + COUNT ( * ) END * + - ( + 45 ) AS col2, - 18 + 11
----
NULL
-7

query I rowsort
SELECT 36 + 91
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5570
SELECT DISTINCT - SUM( ALL + CAST( NULL AS SIGNED ) ) + - 63, - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5570
SELECT DISTINCT - SUM ( ALL + CAST ( NULL AS INTEGER ) ) + - 63, - CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT DISTINCT 57 + - 45 AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5572
SELECT ALL - 26 * - - COUNT( * ) * - - 86 * - COALESCE ( + + 50, + - 16 * 60 ) - - COALESCE ( CAST( - 85 AS SIGNED ), - 6 DIV 94, 26 + - 84 )
----
111715

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL - 26 * - - COUNT ( * ) * - - 86 * - COALESCE ( + + 50, + - 16 * 60 ) - - COALESCE ( CAST ( - 85 AS INTEGER ), - 6 / 94, 26 + - 84 )
----
111715

query I rowsort
SELECT ALL - 62 + + 30 AS col2
----
-32

query I rowsort
SELECT ALL - + ( 44 ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-5575
SELECT DISTINCT - COUNT( * ), 98 AS col2
----
-1
98

skipif mysql # not compatible
query II rowsort label-5575
SELECT DISTINCT - COUNT ( * ), 98 AS col2
----
-1
98

query I rowsort
SELECT DISTINCT 49 + - + 15
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5577
SELECT ALL + 71 * - 8 + 66 + ( - 90 ) * + + 20 * - CAST( - ( - COUNT( * ) ) AS SIGNED )
----
1298

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL + 71 * - 8 + 66 + ( - 90 ) * + + 20 * - CAST ( - ( - COUNT ( * ) ) AS INTEGER )
----
1298

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT MAX( 64 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-5578
SELECT MAX ( 64 ) AS col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5579
SELECT ALL - + 35 - COUNT( * ) + + 45 DIV 72 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL - + 35 - COUNT ( * ) + + 45 / 72 AS col0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5580
SELECT 63 + ( - - 96 ) - + ( 60 ) * - CAST( NULL AS SIGNED ) * + 71 + - CASE - 96 WHEN + ( - 16 ) THEN + 43 ELSE NULL END + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5580
SELECT 63 + ( - - 96 ) - + ( 60 ) * - CAST ( NULL AS INTEGER ) * + 71 + - CASE - 96 WHEN + ( - 16 ) THEN + 43 ELSE NULL END + 29 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5581
SELECT COUNT( * ) * 4 + + CASE 37 WHEN 72 THEN - + 65 * + 62 - + - 16 * SUM( ALL - 82 + 96 ) WHEN 0 * - CAST( - 90 AS SIGNED ) THEN NULL END - - 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5581
SELECT COUNT ( * ) * 4 + + CASE 37 WHEN 72 THEN - + 65 * + 62 - + - 16 * SUM ( ALL - 82 + 96 ) WHEN 0 * - CAST ( - 90 AS INTEGER ) THEN NULL END - - 74 AS col0
----
NULL

query I rowsort
SELECT - ( + ( + 96 ) ) * - 63
----
6048

query I rowsort
SELECT DISTINCT - 77 * + 38 AS col0
----
-2926

query I rowsort
SELECT ALL + 19 * - 32
----
-608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5585
SELECT DISTINCT - COALESCE ( + - CAST( + + 68 AS SIGNED ), 44 + + 66, + - 48 )
----
68

skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT - COALESCE ( + - CAST ( + + 68 AS INTEGER ), 44 + + 66, + - 48 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT + 0 * + - ( - - MIN( DISTINCT - ( - - 38 ) ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5586
SELECT + 0 * + - ( - - MIN ( DISTINCT - ( - - 38 ) ) ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5587
SELECT ALL - ( - NULLIF ( 4, 31 + + CAST( NULL AS SIGNED ) + + - CAST( + 17 AS SIGNED ) ) )
----
4

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL - ( - NULLIF ( 4, 31 + + CAST ( NULL AS INTEGER ) + + - CAST ( + 17 AS INTEGER ) ) )
----
4

query I rowsort
SELECT + 67 * + 90 AS col0
----
6030

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT 70 * ( - SUM( DISTINCT + 33 ) )
----
-2310

skipif mysql # not compatible
query I rowsort label-5589
SELECT 70 * ( - SUM ( DISTINCT + 33 ) )
----
-2310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5590
SELECT 54 * CAST( NULL AS SIGNED ) + - MAX( - 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5590
SELECT 54 * CAST ( NULL AS INTEGER ) + - MAX ( - 16 )
----
NULL

query I rowsort
SELECT ALL - 28 + 18 + 89 AS col1
----
79

query I rowsort
SELECT DISTINCT ( - + 56 ) + + + 3
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT ALL 58 + + - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL 58 + + - COUNT ( * )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT - 40 - COUNT( * ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-5594
SELECT - 40 - COUNT ( * ) AS col0
----
-41

query I rowsort
SELECT + 46 * - + 42 AS col1
----
-1932

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT + COUNT( * ) + - + ( - + 73 ) + - CASE + ( COUNT( * ) ) WHEN - + 98 THEN + 85 * - 35 + 18 END * + 78 / 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5596
SELECT + COUNT ( * ) + - + ( - + 73 ) + - CASE + ( COUNT ( * ) ) WHEN - + 98 THEN + 85 * - 35 + 18 END * + 78 / 74 AS col0
----
NULL

query I rowsort
SELECT + 10 * + - 73 col1
----
-730

onlyif mysql # DIV for integer division: 
query I rowsort label-5598
SELECT + 86 - + + 33 DIV - 17 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-5598
SELECT + 86 - + + 33 / - 17 AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5599
SELECT DISTINCT + + 12 * - + COUNT( * ) * + + 80 + - 33 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT + + 12 * - + COUNT ( * ) * + + 80 + - 33 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 52 - - + ( - - 74 ) + 32 AS col2, - 32
----
158
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5601
SELECT - 87 DIV 48 + - 60 * - COUNT( * ) + - 51 * - 37 + - 28 + + + COUNT( * ) + + 91 - ( + 30 ) AS col2
----
1980

skipif mysql # not compatible
query I rowsort label-5601
SELECT - 87 / 48 + - 60 * - COUNT ( * ) + - 51 * - 37 + - 28 + + + COUNT ( * ) + + 91 - ( + 30 ) AS col2
----
1980

query I rowsort
SELECT DISTINCT 79 * - - 49
----
3871

onlyif mysql # DIV for integer division: 
query I rowsort label-5603
SELECT 70 DIV - 7 - + 92 AS col0
----
-102

skipif mysql # not compatible
query I rowsort label-5603
SELECT 70 / - 7 - + 92 AS col0
----
-102

query I rowsort
SELECT + + 59 * - + 84 + - 96
----
-5052

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5605
SELECT DISTINCT 36 * 60 * CASE + 6 WHEN 74 THEN NULL WHEN - 15 / - 18 + + CAST( NULL AS DECIMAL ) THEN NULL WHEN + 82 THEN - 16 + 23 END + - 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT 36 * 60 * CASE + 6 WHEN 74 THEN NULL WHEN - 15 / - 18 + + CAST ( NULL AS REAL ) THEN NULL WHEN + 82 THEN - 16 + 23 END + - 39 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 21 * + ( - 54 )
----
1134

query I rowsort
SELECT DISTINCT + ( - - 28 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT + + COUNT( * ) - CASE 8 WHEN - - 54 THEN - + ( 9 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5608
SELECT + + COUNT ( * ) - CASE 8 WHEN - - 54 THEN - + ( 9 ) END AS col2
----
NULL

query I rowsort
SELECT 32 * - + 32 + - + 61 + 61 - - + 20 AS col0
----
-1004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5610
SELECT DISTINCT + CAST( - AVG ( + 38 ) AS SIGNED ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-5610
SELECT DISTINCT + CAST ( - AVG ( + 38 ) AS INTEGER ) AS col2
----
-38

query II rowsort
SELECT - 77 + - - ( 99 ), - 54 AS col2
----
22
-54

query I rowsort
SELECT ALL 31 * + - 98 + - + 62 + + NULLIF ( + + 89, 92 ) * - - 39 + + - 48
----
323

query I rowsort
SELECT DISTINCT + 69 * + 97
----
6693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5614
SELECT - 53 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5614
SELECT - 53 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 64 + - 93 + - 27 + 71 * - + 17 * - - 80 * - ( 69 ) + 9
----
6662465

query I rowsort
SELECT ALL ( + - ( 32 ) ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT - COALESCE ( - MIN( ALL + 31 ), 1 ) + - - 17 - - 63 col1
----
111

skipif mysql # not compatible
query I rowsort label-5617
SELECT - COALESCE ( - MIN ( ALL + 31 ), 1 ) + - - 17 - - 63 col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT - 17 + + COUNT( * ) * + 65 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-5618
SELECT - 17 + + COUNT ( * ) * + 65 AS col1
----
48

query I rowsort
SELECT + 23 - + 37 * + - 94
----
3501

query I rowsort
SELECT DISTINCT NULLIF ( + 11, + - 77 + + 92 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT ALL COALESCE ( 63, + - 14 * COUNT( * ), - COUNT( * ), - + 91 ) - + COALESCE ( - + ( - - ( ( 6 ) ) ), ( 1 ), - COUNT( * ) * - 68 + - 69 )
----
69

skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL COALESCE ( 63, + - 14 * COUNT ( * ), - COUNT ( * ), - + 91 ) - + COALESCE ( - + ( - - ( ( 6 ) ) ), ( 1 ), - COUNT ( * ) * - 68 + - 69 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5622
SELECT - 10 + - NULLIF ( + COUNT( * ), - CAST( NULL AS SIGNED ) )
----
-11

skipif mysql # not compatible
query I rowsort label-5622
SELECT - 10 + - NULLIF ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) )
----
-11

query I rowsort
SELECT DISTINCT + 79 - + 83
----
-4

query I rowsort
SELECT ALL 98 * - 25
----
-2450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5625
SELECT DISTINCT - 16 * - + MIN( + - CAST( 38 AS SIGNED ) )
----
-608

skipif mysql # not compatible
query I rowsort label-5625
SELECT DISTINCT - 16 * - + MIN ( + - CAST ( 38 AS INTEGER ) )
----
-608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5626
SELECT + CASE - - MAX( DISTINCT 24 ) WHEN + - 98 DIV CAST( NULL AS SIGNED ) DIV + 26 THEN NULL ELSE - 52 END + + 84 + CASE 33 WHEN 4 DIV + 42 - + 20 THEN - 56 + COALESCE ( 38, 45 ) WHEN + 91 THEN NULL ELSE 75 END DIV + 61 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-5626
SELECT + CASE - - MAX ( DISTINCT 24 ) WHEN + - 98 / CAST ( NULL AS INTEGER ) / + 26 THEN NULL ELSE - 52 END + + 84 + CASE 33 WHEN 4 / + 42 - + 20 THEN - 56 + COALESCE ( 38, 45 ) WHEN + 91 THEN NULL ELSE 75 END / + 61 AS col2
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5627
SELECT - ( - CAST( NULL AS DECIMAL ) ) / - 71 AS col0, 14
----
NULL
14

skipif mysql # not compatible
query II rowsort label-5627
SELECT - ( - CAST ( NULL AS REAL ) ) / - 71 AS col0, 14
----
NULL
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5628
SELECT + + 49 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5628
SELECT + + 49 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 43 * 62 + + + 23
----
-2643

query I rowsort
SELECT - - 38 + - 69 + + 32 + - - 27 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT - NULLIF ( ( - COUNT( * ) ), + 84 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5631
SELECT - NULLIF ( ( - COUNT ( * ) ), + 84 ) AS col1
----
1

query I rowsort
SELECT - + 63 + - 60
----
-123

query I rowsort
SELECT ALL + CASE 68 WHEN + - 83 THEN NULL ELSE + + 36 END
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5634
SELECT + 55 * - 95 + + 66 / + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5634
SELECT + 55 * - 95 + + 66 / + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT ALL COUNT( * ) * - ( + + ( + 3 ) ) * COUNT( * ) col1
----
-3

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL COUNT ( * ) * - ( + + ( + 3 ) ) * COUNT ( * ) col1
----
-3

query I rowsort
SELECT + 78 + + - 50
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5637
SELECT ALL + 17 DIV - 33
----
0

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL + 17 / - 33
----
0

query I rowsort
SELECT ALL + - ( - 79 ) AS col1
----
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5639
SELECT 36 / - AVG ( 21 ) * - - CAST( NULL AS DECIMAL ) + + ( + 41 ) + - 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT 36 / - AVG ( 21 ) * - - CAST ( NULL AS REAL ) + + ( + 41 ) + - 96 AS col0
----
NULL

query I rowsort
SELECT - COALESCE ( - 74, - 16 ) AS col1
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5641
SELECT ALL + NULLIF ( + + 11, - 66 - + 44 ) DIV - 15 + 64 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL + NULLIF ( + + 11, - 66 - + 44 ) / - 15 + 64 AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5642
SELECT - COUNT( * ) + - 94 * + + CAST( ( + 44 ) AS SIGNED ) * ( - 42 )
----
173711

skipif mysql # not compatible
query I rowsort label-5642
SELECT - COUNT ( * ) + - 94 * + + CAST ( ( + 44 ) AS INTEGER ) * ( - 42 )
----
173711

query II rowsort
SELECT + ( - ( + 58 ) ) AS col0, 71 * + 69 + - 17 AS col2
----
-58
4882

onlyif mysql # DIV for integer division: 
query I rowsort label-5644
SELECT ALL 72 DIV - + 47 + 80
----
79

skipif mysql # not compatible
query I rowsort label-5644
SELECT ALL 72 / - + 47 + 80
----
79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5645
SELECT + 33 * CAST( - 82 AS SIGNED ) * + 69 * + 76 * - - 65 + + 67 DIV + 49
----
-922367159

skipif mysql # not compatible
query I rowsort label-5645
SELECT + 33 * CAST ( - 82 AS INTEGER ) * + 69 * + 76 * - - 65 + + 67 / + 49
----
-922367159

onlyif mysql # aggregate syntax: 
query II rowsort label-5646
SELECT DISTINCT + MAX( DISTINCT + + 74 ), 47 AS col2
----
74
47

skipif mysql # not compatible
query II rowsort label-5646
SELECT DISTINCT + MAX ( DISTINCT + + 74 ), 47 AS col2
----
74
47

query I rowsort
SELECT DISTINCT 83 * + + 95 + - 25
----
7860

query I rowsort
SELECT ALL 52 * - + 87 + + 17
----
-4507

query I rowsort
SELECT + 77 + - 91
----
-14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5650
SELECT ALL CAST( + - 30 AS SIGNED ) * - + 76 * + + 17 + + 85 + + - 83 DIV + + 46 AS col1
----
38844

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL CAST ( + - 30 AS INTEGER ) * - + 76 * + + 17 + + 85 + + - 83 / + + 46 AS col1
----
38844

query I rowsort
SELECT 17 * + + NULLIF ( + - 40, + 28 ) AS col1
----
-680

onlyif mysql # aggregate syntax: 
query II rowsort label-5652
SELECT DISTINCT - 52 AS col0, 76 * COALESCE ( 29, + 23 * - 94 - - 93 + + SUM( + + 96 ), 7 + + ( 47 ) + - 74 ) AS col2
----
-52
2204

skipif mysql # not compatible
query II rowsort label-5652
SELECT DISTINCT - 52 AS col0, 76 * COALESCE ( 29, + 23 * - 94 - - 93 + + SUM ( + + 96 ), 7 + + ( 47 ) + - 74 ) AS col2
----
-52
2204

query I rowsort
SELECT ALL - CASE + ( + - 51 ) WHEN - + 66 THEN + - 85 ELSE 50 END
----
-50

query II rowsort
SELECT 91 AS col1, + 71 AS col0
----
91
71

query I rowsort
SELECT ALL + 92 - + 68
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5656
SELECT DISTINCT 40 DIV + COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-5656
SELECT DISTINCT 40 / + COUNT ( * ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-5657
SELECT ALL 10, + COUNT( * ) AS col1
----
10
1

skipif mysql # not compatible
query II rowsort label-5657
SELECT ALL 10, + COUNT ( * ) AS col1
----
10
1

query I rowsort
SELECT DISTINCT - 20 * + 14
----
-280

onlyif mysql # DIV for integer division: 
query II rowsort label-5659
SELECT 26 DIV - 59 AS col2, 18 + + ( - 85 )
----
0
-67

skipif mysql # not compatible
query II rowsort label-5659
SELECT 26 / - 59 AS col2, 18 + + ( - 85 )
----
0
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT ALL COUNT( ALL - 47 ) - 23
----
-22

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL COUNT ( ALL - 47 ) - 23
----
-22

query II rowsort
SELECT DISTINCT 73 AS col0, 83 * + 31 AS col0
----
73
2573

query I rowsort
SELECT DISTINCT - ( 21 ) * + - 79 * + ( - + 50 ) AS col0
----
-82950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5663
SELECT CAST( NULL AS SIGNED ) - + 96 - - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5663
SELECT CAST ( NULL AS INTEGER ) - + 96 - - 27 AS col1
----
NULL

query II rowsort
SELECT 34 AS col2, - 57
----
34
-57

query I rowsort
SELECT - 12 * + 34 col1
----
-408

query II rowsort
SELECT DISTINCT + 2 col0, 52 AS col1
----
2
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5667
SELECT DISTINCT 97 + + - COALESCE ( + 82, + 25 DIV - 66 * 33 + + CAST( NULL AS SIGNED ) + - 2 * + 91 * - - 46 * - 73 * + 58 ) * + 85 AS col2
----
-6873

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT 97 + + - COALESCE ( + 82, + 25 / - 66 * 33 + + CAST ( NULL AS INTEGER ) + - 2 * + 91 * - - 46 * - 73 * + 58 ) * + 85 AS col2
----
-6873

query I rowsort
SELECT 99 - ( + 17 ) * 25
----
-326

onlyif mysql # aggregate syntax: 
query II rowsort label-5669
SELECT DISTINCT 55 AS col2, 6 + + COUNT( * ) AS col0
----
55
7

skipif mysql # not compatible
query II rowsort label-5669
SELECT DISTINCT 55 AS col2, 6 + + COUNT ( * ) AS col0
----
55
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT DISTINCT + 38 + COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-5670
SELECT DISTINCT + 38 + COUNT ( * ) AS col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5671
SELECT - 42 DIV - 85 * - 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5671
SELECT - 42 / - 85 * - 74 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT - NULLIF ( + 63, + - 78 * COUNT( * ) + 32 * + AVG ( DISTINCT 9 ) * - 85 + - NULLIF ( - 53, 9 * CASE 71 + 30 WHEN - 86 THEN NULL WHEN 95 THEN NULL WHEN ( + 85 ) * - 8 THEN NULL ELSE 74 END ) ) * - 96
----
6048

skipif mysql # not compatible
query I rowsort label-5672
SELECT - NULLIF ( + 63, + - 78 * COUNT ( * ) + 32 * + AVG ( DISTINCT 9 ) * - 85 + - NULLIF ( - 53, 9 * CASE 71 + 30 WHEN - 86 THEN NULL WHEN 95 THEN NULL WHEN ( + 85 ) * - 8 THEN NULL ELSE 74 END ) ) * - 96
----
6048

query II rowsort
SELECT - 34 AS col1, + 74
----
-34
74

query I rowsort
SELECT ALL - 35 + - 81
----
-116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5675
SELECT DISTINCT + - 69 + - COUNT( * ) DIV 25 * - + 78
----
-69

skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT + - 69 + - COUNT ( * ) / 25 * - + 78
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-5676
SELECT ALL - 55 DIV 21
----
-2

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL - 55 / 21
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5677
SELECT + 78 DIV - 6 * + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-5677
SELECT + 78 / - 6 * + COUNT ( * )
----
-13

query I rowsort
SELECT DISTINCT + 23 + - + 64 col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5679
SELECT DISTINCT ( 95 ) + - - CAST( 98 AS SIGNED ) + 32
----
225

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT ( 95 ) + - - CAST ( 98 AS INTEGER ) + 32
----
225

query I rowsort
SELECT DISTINCT 89 + + 95 AS col2
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT SUM( ALL - 41 ) + - 62 AS col2
----
-103

skipif mysql # not compatible
query I rowsort label-5681
SELECT SUM ( ALL - 41 ) + - 62 AS col2
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT ALL MAX( + 94 ) * - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL MAX ( + 94 ) * - COUNT ( * )
----
-94

query I rowsort
SELECT - 16 * - 53 + + 78
----
926

query II rowsort
SELECT ALL 29 - + + 31 AS col2, 27 col2
----
-2
27

query I rowsort
SELECT ALL 99 * - 6 * 21 AS col0
----
-12474

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT COUNT( * ) - - 67 - - ( + + 20 )
----
88

skipif mysql # not compatible
query I rowsort label-5686
SELECT COUNT ( * ) - - 67 - - ( + + 20 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT DISTINCT COUNT( * ) * - 9 * 96 AS col2
----
-864

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT COUNT ( * ) * - 9 * 96 AS col2
----
-864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5688
SELECT ALL 93 - + + 44 * CAST( + + 37 AS SIGNED ) * - - COUNT( * ) AS col0
----
-1535

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL 93 - + + 44 * CAST ( + + 37 AS INTEGER ) * - - COUNT ( * ) AS col0
----
-1535

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5689
SELECT ALL + 61 - + 45 * 27 * CAST( NULL AS SIGNED ) + + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL + 61 - + 45 * 27 * CAST ( NULL AS INTEGER ) + + 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT ( + 99 ) * + + MIN( + + 38 )
----
3762

skipif mysql # not compatible
query I rowsort label-5690
SELECT ( + 99 ) * + + MIN ( + + 38 )
----
3762

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT 16 + + COUNT( * ) * - NULLIF ( - + SUM( - 84 ), 71 ) + 35
----
-33

skipif mysql # not compatible
query I rowsort label-5691
SELECT 16 + + COUNT ( * ) * - NULLIF ( - + SUM ( - 84 ), 71 ) + 35
----
-33

query I rowsort
SELECT ( + - 50 ) + 3 AS col1
----
-47

query I rowsort
SELECT ( + - 23 ) * + 59 AS col1
----
-1357

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT + 10 * COUNT( * ) + + + COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-5694
SELECT + 10 * COUNT ( * ) + + + COUNT ( * ) AS col1
----
11

query I rowsort
SELECT 45 * 36 AS col0
----
1620

query I rowsort
SELECT + ( 41 ) + 40
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5697
SELECT ALL - NULLIF ( - 3, - 64 / - ( + 9 ) ) + - - MIN( CAST( NULL AS SIGNED ) ) * - - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL - NULLIF ( - 3, - 64 / - ( + 9 ) ) + - - MIN ( CAST ( NULL AS INTEGER ) ) * - - 80 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT 21 + 47 * 65 + COUNT( * ) + - + 63
----
3014

skipif mysql # not compatible
query I rowsort label-5698
SELECT 21 + 47 * 65 + COUNT ( * ) + - + 63
----
3014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5699
SELECT DISTINCT NULLIF ( - 35, + + NULLIF ( + - 30, - - 37 * - MIN( ALL ( + 7 ) ) ) ) * + CAST( + 11 AS SIGNED ) + + 60 AS col2
----
-325

skipif mysql # not compatible
query I rowsort label-5699
SELECT DISTINCT NULLIF ( - 35, + + NULLIF ( + - 30, - - 37 * - MIN ( ALL ( + 7 ) ) ) ) * + CAST ( + 11 AS INTEGER ) + + 60 AS col2
----
-325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5700
SELECT + CASE + AVG ( DISTINCT + 23 ) WHEN + + 16 + + NULLIF ( - 57, - 40 ) + + - 31 * - 0 THEN 24 WHEN 24 * + + 19 * 21 THEN NULL END + - CAST( 22 - COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5700
SELECT + CASE + AVG ( DISTINCT + 23 ) WHEN + + 16 + + NULLIF ( - 57, - 40 ) + + - 31 * - 0 THEN 24 WHEN 24 * + + 19 * 21 THEN NULL END + - CAST ( 22 - COUNT ( * ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT ALL - 0 + + + ( + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL - 0 + + + ( + + COUNT ( * ) )
----
1

query I rowsort
SELECT ALL + 42 + + 15 - + 42
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT - COUNT( * ) + + - 46 * + ( 35 ) AS col0
----
-1611

skipif mysql # not compatible
query I rowsort label-5703
SELECT - COUNT ( * ) + + - 46 * + ( 35 ) AS col0
----
-1611

query I rowsort
SELECT 93 * + 91 AS col2
----
8463

query I rowsort
SELECT - 0 + - 33
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT ALL + 59 + + + COUNT( * ) + + COUNT( * ) * 39 * 76 AS col1
----
3024

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL + 59 + + + COUNT ( * ) + + COUNT ( * ) * 39 * 76 AS col1
----
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT DISTINCT + 48 + - MIN( ALL ( - 69 ) )
----
117

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT + 48 + - MIN ( ALL ( - 69 ) )
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT ALL - + COUNT( ALL + + 28 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL - + COUNT ( ALL + + 28 ) AS col0
----
-1

query I rowsort
SELECT - 76 + - 24 + - 52 col0
----
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5710
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 41 / CAST( + 53 AS SIGNED ) + + COALESCE ( 8, - - 29 + + 95 - + COUNT( * ) ) + - COALESCE ( + + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ), + 69 ) - 26 * - 51 - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5710
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 41 / CAST ( + 53 AS INTEGER ) + + COALESCE ( 8, - - 29 + + 95 - + COUNT ( * ) ) + - COALESCE ( + + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ), + 69 ) - 26 * - 51 - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT DISTINCT + 19 * + 72 * - COUNT( * ) * 21 col0
----
-28728

skipif mysql # not compatible
query I rowsort label-5711
SELECT DISTINCT + 19 * + 72 * - COUNT ( * ) * 21 col0
----
-28728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5712
SELECT - CAST( NULL AS SIGNED ) * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-5712
SELECT - CAST ( NULL AS INTEGER ) * + 2
----
NULL

query I rowsort
SELECT + 30 * - 77
----
-2310

query I rowsort
SELECT COALESCE ( 3, - NULLIF ( 63, - 32 / - 53 ) ) AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5715
SELECT DISTINCT + ( - + 83 ) * COUNT( * ) - CAST( 87 AS SIGNED ) AS col2
----
-170

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT + ( - + 83 ) * COUNT ( * ) - CAST ( 87 AS INTEGER ) AS col2
----
-170

onlyif mysql # aggregate syntax: 
query II rowsort label-5716
SELECT + 24 + + 11 * - + 59, ( - + COUNT( * ) ) * + COUNT( * ) AS col2
----
-625
-1

skipif mysql # not compatible
query II rowsort label-5716
SELECT + 24 + + 11 * - + 59, ( - + COUNT ( * ) ) * + COUNT ( * ) AS col2
----
-625
-1

query I rowsort
SELECT ALL + 1 * + 74
----
74

query II rowsort
SELECT ALL + 81, 10 col1
----
81
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5719
SELECT - 87 * - 10 + + 75 + - COALESCE ( - - 9, 37 DIV - COUNT( * ) * - - 98 ) + 32
----
968

skipif mysql # not compatible
query I rowsort label-5719
SELECT - 87 * - 10 + + 75 + - COALESCE ( - - 9, 37 / - COUNT ( * ) * - - 98 ) + 32
----
968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5720
SELECT - ( - CASE 44 WHEN 38 * 27 THEN NULL WHEN - - MAX( + + ( + 81 ) ) THEN - NULLIF ( + 78, 86 * + CAST( NULL AS SIGNED ) / - + CASE - 38 WHEN - 36 / 54 THEN - MAX( DISTINCT 79 ) + + 43 END + - 50 ) END ) * + 58 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5720
SELECT - ( - CASE 44 WHEN 38 * 27 THEN NULL WHEN - - MAX ( + + ( + 81 ) ) THEN - NULLIF ( + 78, 86 * + CAST ( NULL AS INTEGER ) / - + CASE - 38 WHEN - 36 / 54 THEN - MAX ( DISTINCT 79 ) + + 43 END + - 50 ) END ) * + 58 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + CASE + 79 WHEN + - COALESCE ( + 68, + + ( - 17 ) * - + 21 * - + 46 ) THEN - 3 ELSE - + 58 * + 26 END AS col2
----
-1508

query I rowsort
SELECT - 34 * + + 60 col0
----
-2040

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT + MIN( - + 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-5723
SELECT + MIN ( - + 24 )
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-5724
SELECT + 64, + 82 DIV + 77 + - 74 AS col2
----
64
-73

skipif mysql # not compatible
query II rowsort label-5724
SELECT + 64, + 82 / + 77 + - 74 AS col2
----
64
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT + MAX( COALESCE ( - COALESCE ( - + 75, + - 70 + - - 2 ), + 72 ) ) + SUM( ALL + 88 ) AS col0
----
163

skipif mysql # not compatible
query I rowsort label-5725
SELECT + MAX ( COALESCE ( - COALESCE ( - + 75, + - 70 + - - 2 ), + 72 ) ) + SUM ( ALL + 88 ) AS col0
----
163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5726
SELECT + COALESCE ( 28, 85 * 12 DIV + - SUM( + + 49 ) ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-5726
SELECT + COALESCE ( 28, 85 * 12 / + - SUM ( + + 49 ) ) AS col2
----
28

query I rowsort
SELECT ALL 98 * - - 91 AS col0
----
8918

query I rowsort
SELECT + 4 * + 74 * + 76 AS col0
----
22496

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT + NULLIF ( + MIN( DISTINCT - 51 ), 63 ) + + - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-5729
SELECT + NULLIF ( + MIN ( DISTINCT - 51 ), 63 ) + + - COUNT ( * )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT SUM( + 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-5730
SELECT SUM ( + 41 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-5731
SELECT - COUNT( * ), + 26 AS col0
----
-1
26

skipif mysql # not compatible
query II rowsort label-5731
SELECT - COUNT ( * ), + 26 AS col0
----
-1
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT ALL - COUNT( * ) + - 62 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL - COUNT ( * ) + - 62 AS col1
----
-63

query I rowsort
SELECT ALL - 6 + - 19 AS col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5734
SELECT ALL + 32 + - - 77 + - 50 + + NULLIF ( COUNT( * ), + + 29 * + 71 * + - 85 ) + - 4 DIV + 31 + - 4 AS col1, 74 AS col1
----
56
74

skipif mysql # not compatible
query II rowsort label-5734
SELECT ALL + 32 + - - 77 + - 50 + + NULLIF ( COUNT ( * ), + + 29 * + 71 * + - 85 ) + - 4 / + 31 + - 4 AS col1, 74 AS col1
----
56
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5735
SELECT - - CAST( + + COALESCE ( - 89, 70 / 71 * - - 48 + + - ( - COUNT( + - 96 ) ) ) AS SIGNED ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-5735
SELECT - - CAST ( + + COALESCE ( - 89, 70 / 71 * - - 48 + + - ( - COUNT ( + - 96 ) ) ) AS INTEGER ) AS col2
----
-89

query I rowsort
SELECT ALL 91 * 85 AS col1
----
7735

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5737
SELECT DISTINCT 17, - CAST( NULL AS SIGNED ) + - 93 / + 42 AS col1
----
17
NULL

skipif mysql # not compatible
query II rowsort label-5737
SELECT DISTINCT 17, - CAST ( NULL AS INTEGER ) + - 93 / + 42 AS col1
----
17
NULL

query I rowsort
SELECT DISTINCT 0 + - - 10 AS col0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5739
SELECT DISTINCT 14 + - - 63 + - - NULLIF ( - 28, + 99 * - 21 ) + - 87 + 25 DIV - + 13
----
-39

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT 14 + - - 63 + - - NULLIF ( - 28, + 99 * - 21 ) + - 87 + 25 / - + 13
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT ALL 18 + + - 13 + + - COUNT( * ) * - + ( CASE 19 WHEN + + 38 * + + 26 * - 71 - - 80 THEN + 88 - + 28 * - 48 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL 18 + + - 13 + + - COUNT ( * ) * - + ( CASE 19 WHEN + + 38 * + + 26 * - 71 - - 80 THEN + 88 - + 28 * - 48 END )
----
NULL

query I rowsort
SELECT + 88 - 9 * - + 92 AS col2
----
916

query II rowsort
SELECT - 23, - 62 * 64 * + 76 col1
----
-23
-301568

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5743
SELECT + 1 + 6 + + + 15 * 42 DIV + 72 + - + 82, 33 * - + 69 * - 1 + + - MIN( + 22 ) + - ( 88 ) + + 45 * 91 AS col2
----
-67
6262

skipif mysql # not compatible
query II rowsort label-5743
SELECT + 1 + 6 + + + 15 * 42 / + 72 + - + 82, 33 * - + 69 * - 1 + + - MIN ( + 22 ) + - ( 88 ) + + 45 * 91 AS col2
----
-67
6262

onlyif mysql # DIV for integer division: 
query I rowsort label-5744
SELECT DISTINCT 45 DIV 42 * + + 59 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-5744
SELECT DISTINCT 45 / 42 * + + 59 AS col1
----
59

query I rowsort
SELECT - - 10 * + 0 AS col1
----
0

query I rowsort
SELECT ALL - + COALESCE ( - 24, - + CASE WHEN 17 < 34 / + 26 + - 53 THEN - ( + 13 ) END, 45 - 47 * - 25 - 60 * 80, 52 ) * + 59 AS col1
----
1416

query I rowsort
SELECT + - CASE WHEN NOT NULL <> ( 45 ) THEN NULL ELSE - 95 + + ( 21 ) END - - 31 + + + 97
----
202

query I rowsort
SELECT ALL 43 * + - 16
----
-688

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT + CASE + CASE - + 17 WHEN - 20 THEN + 41 END WHEN + + 9 + - COUNT( * ) / + + 74 THEN + + 42 ELSE + - 81 END col1
----
-81

skipif mysql # not compatible
query I rowsort label-5749
SELECT + CASE + CASE - + 17 WHEN - 20 THEN + 41 END WHEN + + 9 + - COUNT ( * ) / + + 74 THEN + + 42 ELSE + - 81 END col1
----
-81

query I rowsort
SELECT + COALESCE ( 84, 27 ) + 60 AS col0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT - 30 * + ( - COUNT( * ) )
----
30

skipif mysql # not compatible
query I rowsort label-5751
SELECT - 30 * + ( - COUNT ( * ) )
----
30

query I rowsort
SELECT + ( + ( - 2 ) ) AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5753
SELECT + CAST( NULL AS SIGNED ) + + AVG ( + 65 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT + CAST ( NULL AS INTEGER ) + + AVG ( + 65 ) AS col0
----
NULL

query I rowsort
SELECT - 6 * ( - 81 ) col0
----
486

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT ALL + CASE - - MIN( + 85 ) WHEN - 28 THEN NULL WHEN - 46 + - COUNT( * ) THEN - ( - 49 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL + CASE - - MIN ( + 85 ) WHEN - 28 THEN NULL WHEN - 46 + - COUNT ( * ) THEN - ( - 49 ) END
----
NULL

query I rowsort
SELECT ( - ( + + 32 ) )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-5757
SELECT DISTINCT - 48 DIV - + 1 - - + 16
----
64

skipif mysql # not compatible
query I rowsort label-5757
SELECT DISTINCT - 48 / - + 1 - - + 16
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5758
SELECT 79 DIV - 5 + - 14
----
-29

skipif mysql # not compatible
query I rowsort label-5758
SELECT 79 / - 5 + - 14
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT ALL + MIN( 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL + MIN ( 33 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT ALL + SUM( - 64 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL + SUM ( - 64 ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT + 76 + COUNT( * ) + + - COALESCE ( - 54, 60 * + - 88 + + 91 - - COUNT( * ) - + COALESCE ( 57, 34 * + + COUNT( * ) * 4 * + 5 * + 82 ) + 25 * - 51 ) * 2 * + 3
----
401

skipif mysql # not compatible
query I rowsort label-5761
SELECT + 76 + COUNT ( * ) + + - COALESCE ( - 54, 60 * + - 88 + + 91 - - COUNT ( * ) - + COALESCE ( 57, 34 * + + COUNT ( * ) * 4 * + 5 * + 82 ) + 25 * - 51 ) * 2 * + 3
----
401

query I rowsort
SELECT - 34 * - 44 AS col0
----
1496

query I rowsort
SELECT - 40 * - 12 AS col1
----
480

query I rowsort
SELECT - 52 + 41 AS col2
----
-11

query I rowsort
SELECT - 63 * + 24 + + + 47
----
-1465

query I rowsort
SELECT ( + + 25 ) col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5767
SELECT ALL + CASE - 12 WHEN 87 - - 9 THEN - 90 / + + CAST( + NULLIF ( + 1, - COALESCE ( 90, 71 / + COUNT( * ), + 19 * COUNT( * ) ) ) AS SIGNED ) + 42 WHEN - 57 + + 32 THEN - 14 * 54 - 79 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL + CASE - 12 WHEN 87 - - 9 THEN - 90 / + + CAST ( + NULLIF ( + 1, - COALESCE ( 90, 71 / + COUNT ( * ), + 19 * COUNT ( * ) ) ) AS INTEGER ) + 42 WHEN - 57 + + 32 THEN - 14 * 54 - 79 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT + 10 * + ( + COUNT( * ) )
----
10

skipif mysql # not compatible
query I rowsort label-5768
SELECT + 10 * + ( + COUNT ( * ) )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT ALL ( SUM( DISTINCT + 38 ) ) * + 68 * - MAX( ALL - + 69 ) + - ( 29 ) AS col0
----
178267

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL ( SUM ( DISTINCT + 38 ) ) * + 68 * - MAX ( ALL - + 69 ) + - ( 29 ) AS col0
----
178267

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT ALL + CASE + 31 WHEN - + 11 * - 64 THEN MIN( - 9 ) WHEN - ( + COUNT( * ) ) THEN + 36 * - + COUNT( * ) * 33 * + + 19 + + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL + CASE + 31 WHEN - + 11 * - 64 THEN MIN ( - 9 ) WHEN - ( + COUNT ( * ) ) THEN + 36 * - + COUNT ( * ) * 33 * + + 19 + + - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT ALL + COUNT( * ) * + 99 + - 73
----
26

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL + COUNT ( * ) * + 99 + - 73
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5772
SELECT ALL COUNT( * ) DIV 41 * - 21
----
0

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL COUNT ( * ) / 41 * - 21
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT ALL ( + 44 ) * - 4 + - COUNT( * )
----
-177

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL ( + 44 ) * - 4 + - COUNT ( * )
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT + 33 + COUNT( * ) + 67 * + + 13 * + ( - 38 ) * - 46 + + - 97
----
1522445

skipif mysql # not compatible
query I rowsort label-5774
SELECT + 33 + COUNT ( * ) + 67 * + + 13 * + ( - 38 ) * - 46 + + - 97
----
1522445

query I rowsort
SELECT - + 95 + - - 80 AS col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5776
SELECT ALL + 84 * 23 + - CAST( NULL AS SIGNED ) * + + COUNT( * ) * + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5776
SELECT ALL + 84 * 23 + - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * + - 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5777
SELECT - - CAST( NULL AS SIGNED ) + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5777
SELECT - - CAST ( NULL AS INTEGER ) + - COUNT ( * ) col2
----
NULL

query II rowsort
SELECT + - 14 - + - 75, - 14 col2
----
61
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT DISTINCT + MAX( DISTINCT + 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT + MAX ( DISTINCT + 55 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT - + COUNT( * ) + + COUNT( * ) * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5780
SELECT - + COUNT ( * ) + + COUNT ( * ) * + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT ALL + 35 * + + 62 + + + COUNT( * ) - - - 6 * + 3 + + - 52
----
2101

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL + 35 * + + 62 + + + COUNT ( * ) - - - 6 * + 3 + + - 52
----
2101

query I rowsort
SELECT + 22 + - 56
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT ALL - + COALESCE ( + 63, + COUNT( * ) * + 43 * - + COUNT( * ), + 53 ) * - 16 AS col1
----
1008

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL - + COALESCE ( + 63, + COUNT ( * ) * + 43 * - + COUNT ( * ), + 53 ) * - 16 AS col1
----
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT DISTINCT - 15 * - 32 + - MAX( DISTINCT ( 24 ) )
----
456

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT - 15 * - 32 + - MAX ( DISTINCT ( 24 ) )
----
456

query I rowsort
SELECT 99 + + 91
----
190

query I rowsort
SELECT ALL 18 - - 48 * - - 21 * + 97 * + 3 * + 2 AS col2
----
586674

query I rowsort
SELECT - COALESCE ( + 51, + - 50 + - 18 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT - SUM( + + 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-5788
SELECT - SUM ( + + 71 )
----
-71

query I rowsort
SELECT ( + 30 ) + - 34 AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5790
SELECT ALL 12 DIV + + 10 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL 12 / + + 10 AS col2
----
1

query I rowsort
SELECT 1 * 98 AS col1
----
98

query I rowsort
SELECT DISTINCT 30 * - NULLIF ( + 40, + 13 )
----
-1200

query II rowsort
SELECT - 83, + 14 col2
----
-83
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT ALL MIN( DISTINCT - 0 ) * SUM( - + 41 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL MIN ( DISTINCT - 0 ) * SUM ( - + 41 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5795
SELECT COUNT( * ) DIV - + ( + 94 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5795
SELECT COUNT ( * ) / - + ( + 94 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5796
SELECT ALL 77 DIV - - COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL 77 / - - COUNT ( * ) AS col2
----
77

query I rowsort
SELECT - 54 * + + 7 + 7
----
-371

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT ALL ( - 79 ) * COUNT( * ) * 52 AS col1
----
-4108

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL ( - 79 ) * COUNT ( * ) * 52 AS col1
----
-4108

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT ALL COUNT( * ) * 73 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-5799
SELECT ALL COUNT ( * ) * 73 AS col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5800
SELECT 45 DIV - ( ( + 6 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-5800
SELECT 45 / - ( ( + 6 ) )
----
-7

query I rowsort
SELECT 19 - + 26
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-5802
SELECT + 4 AS col1, + ( SUM( - + ( + 58 ) ) ) - - 99 + - + 57
----
4
-16

skipif mysql # not compatible
query II rowsort label-5802
SELECT + 4 AS col1, + ( SUM ( - + ( + 58 ) ) ) - - 99 + - + 57
----
4
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-5803
SELECT ALL - 90, NULLIF ( + MIN( DISTINCT - 9 ), ( + 66 ) * + - 0 * - 26 ) AS col2
----
-90
-9

skipif mysql # not compatible
query II rowsort label-5803
SELECT ALL - 90, NULLIF ( + MIN ( DISTINCT - 9 ), ( + 66 ) * + - 0 * - 26 ) AS col2
----
-90
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5804
SELECT 3 DIV - 46 + 65 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-5804
SELECT 3 / - 46 + 65 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT ALL + 3 + + + ( - COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL + 3 + + + ( - COUNT ( * ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT ALL - 39 + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL - 39 + COUNT ( * )
----
-38

query I rowsort
SELECT DISTINCT - 30 * + + 35
----
-1050

query I rowsort
SELECT ALL - 13 * - 17
----
221

query I rowsort
SELECT ALL - - 78 + 14
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5810
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) + 48 + + 10
----
57

skipif mysql # not compatible
query I rowsort label-5810
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) + 48 + + 10
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT + 86 * + 2 * + + COUNT( + 65 ) + + - 53 + 41
----
160

skipif mysql # not compatible
query I rowsort label-5811
SELECT + 86 * + 2 * + + COUNT ( + 65 ) + + - 53 + 41
----
160

query III rowsort
SELECT + - 99 AS col1, - 66 * - 80 AS col2, - - 35 * - + 74 * + - 85 + - 53
----
-99
5280
220097

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5813
SELECT ALL + 69 - + - 94 + + + 17 * - 61 DIV + COUNT( + 37 ) AS col0
----
-874

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL + 69 - + - 94 + + + 17 * - 61 / + COUNT ( + 37 ) AS col0
----
-874

query I rowsort
SELECT ALL + 63 - - 4 AS col2
----
67

query II rowsort
SELECT - 58, 18 * + 95 * + + 28 + + 11 AS col2
----
-58
47891

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT ALL SUM( DISTINCT - 62 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL SUM ( DISTINCT - 62 ) AS col1
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5817
SELECT ALL - SUM( 23 ) DIV ( 37 )
----
0

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL - SUM ( 23 ) / ( 37 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5818
SELECT DISTINCT CAST( + 95 AS SIGNED ) col1
----
95

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT CAST ( + 95 AS INTEGER ) col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5819
SELECT - + CAST( 45 AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-5819
SELECT - + CAST ( 45 AS INTEGER )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5820
SELECT ALL + 28 DIV 74 * + 66 * COUNT( * ) * - 71 + - ( - - 78 ) - + 18 AS col0, 72 AS col0
----
-96
72

skipif mysql # not compatible
query II rowsort label-5820
SELECT ALL + 28 / 74 * + 66 * COUNT ( * ) * - 71 + - ( - - 78 ) - + 18 AS col0, 72 AS col0
----
-96
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5821
SELECT 55 DIV - + 10
----
-5

skipif mysql # not compatible
query I rowsort label-5821
SELECT 55 / - + 10
----
-5

query I rowsort
SELECT + 86 - 21
----
65

query I rowsort
SELECT ALL + 78 * + 50 + + 46
----
3946

onlyif mysql # DIV for integer division: 
query I rowsort label-5824
SELECT 48 + + 7 DIV - ( - 5 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5824
SELECT 48 + + 7 / - ( - 5 ) AS col0
----
49

onlyif mysql # DIV for integer division: 
query II rowsort label-5825
SELECT DISTINCT + 3 * 89 DIV - 40 AS col0, + 11
----
-6
11

skipif mysql # not compatible
query II rowsort label-5825
SELECT DISTINCT + 3 * 89 / - 40 AS col0, + 11
----
-6
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5826
SELECT + CAST( NULL AS SIGNED ) + - + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5826
SELECT + CAST ( NULL AS INTEGER ) + - + 84
----
NULL

query I rowsort
SELECT 10 * - - 55
----
550

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT ALL MIN( ALL + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL MIN ( ALL + 79 ) AS col0
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-5829
SELECT ALL 83 AS col1, 8 DIV - 37
----
83
0

skipif mysql # not compatible
query II rowsort label-5829
SELECT ALL 83 AS col1, 8 / - 37
----
83
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5830
SELECT ALL 38, CAST( NULL AS SIGNED ) AS col1
----
38
NULL

skipif mysql # not compatible
query II rowsort label-5830
SELECT ALL 38, CAST ( NULL AS INTEGER ) AS col1
----
38
NULL

query I rowsort
SELECT 36 * - 73 AS col2
----
-2628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5832
SELECT ALL SUM( DISTINCT - - 75 ) + + COALESCE ( 16, + 75, - + 62, - - 1 + COUNT( + 75 ) ) AS col1, + 99 * + CAST( 65 AS SIGNED ) + - ( + 82 )
----
91
6353

skipif mysql # not compatible
query II rowsort label-5832
SELECT ALL SUM ( DISTINCT - - 75 ) + + COALESCE ( 16, + 75, - + 62, - - 1 + COUNT ( + 75 ) ) AS col1, + 99 * + CAST ( 65 AS INTEGER ) + - ( + 82 )
----
91
6353

query II rowsort
SELECT - 92, 31 AS col2
----
-92
31

query I rowsort
SELECT 19 + - + 28 AS col1
----
-9

query I rowsort
SELECT 26 * 21 AS col0
----
546

query I rowsort
SELECT ALL 49 * - 84 + CASE + 85 WHEN 2 - - 39 THEN 74 END * + 17 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5837
SELECT ALL 75 * + 34 * 11 * + COUNT( * ), 96 AS col0
----
28050
96

skipif mysql # not compatible
query II rowsort label-5837
SELECT ALL 75 * + 34 * 11 * + COUNT ( * ), 96 AS col0
----
28050
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT MIN( - - 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-5838
SELECT MIN ( - - 98 ) AS col0
----
98

query I rowsort
SELECT DISTINCT 10 * + 53
----
530

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT DISTINCT - 51 * + COUNT( * ) + 2
----
-49

skipif mysql # not compatible
query I rowsort label-5840
SELECT DISTINCT - 51 * + COUNT ( * ) + 2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5841
SELECT ALL + ( - + ( + 41 ) ) * + CAST( + 66 AS SIGNED ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL + ( - + ( + 41 ) ) * + CAST ( + 66 AS INTEGER ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5842
SELECT + SUM( ALL 18 ), 45 * - ( - + 4 ) AS col0
----
18
180

skipif mysql # not compatible
query II rowsort label-5842
SELECT + SUM ( ALL 18 ), 45 * - ( - + 4 ) AS col0
----
18
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5843
SELECT ALL 92 * - ( - 15 ) + + - 71 + + 85 DIV + 5 + COUNT( * ) col0, 22 AS col1
----
1327
22

skipif mysql # not compatible
query II rowsort label-5843
SELECT ALL 92 * - ( - 15 ) + + - 71 + + 85 / + 5 + COUNT ( * ) col0, 22 AS col1
----
1327
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5844
SELECT DISTINCT 74 * - CAST( - + ( - COUNT( * ) ) AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT 74 * - CAST ( - + ( - COUNT ( * ) ) AS INTEGER )
----
-74

query I rowsort
SELECT - 10 - - 9 AS col2
----
-1

query II rowsort
SELECT DISTINCT - 63 AS col2, - 10
----
-63
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT + CASE 82 WHEN + 54 * COUNT( * ) + COUNT( * ) * + 55 * 13 + + COUNT( * ) * + 73 THEN + NULLIF ( + 0, + 84 / 51 / + + 98 ) + + - 87 END * - - 72 + - 73 + - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-5847
SELECT + CASE 82 WHEN + 54 * COUNT ( * ) + COUNT ( * ) * + 55 * 13 + + COUNT ( * ) * + 73 THEN + NULLIF ( + 0, + 84 / 51 / + + 98 ) + + - 87 END * - - 72 + - 73 + - 2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5848
SELECT - CASE - CAST( NULL AS SIGNED ) WHEN 29 THEN - 90 WHEN + ( - - 67 ) * + 24 / + - 24 * - + 41 * + + 12 + - 93 / - COUNT( * ) THEN + - 18 END + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5848
SELECT - CASE - CAST ( NULL AS INTEGER ) WHEN 29 THEN - 90 WHEN + ( - - 67 ) * + 24 / + - 24 * - + 41 * + + 12 + - 93 / - COUNT ( * ) THEN + - 18 END + 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT ALL - 92 - 23 * - + COUNT( * ) + 8
----
-61

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL - 92 - 23 * - + COUNT ( * ) + 8
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT COUNT( * ) + - 2 + - + 77 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-5850
SELECT COUNT ( * ) + - 2 + - + 77 AS col0
----
-78

query I rowsort
SELECT 91 + + 8 + + 73 AS col0
----
172

query I rowsort
SELECT ALL - 32 - - 65
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT - 79 * + + 45 * COUNT( * ) + + 6
----
-3549

skipif mysql # not compatible
query I rowsort label-5853
SELECT - 79 * + + 45 * COUNT ( * ) + + 6
----
-3549

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT ALL COUNT( DISTINCT - - 82 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL COUNT ( DISTINCT - - 82 ) AS col0
----
1

query I rowsort
SELECT + 57 + + 62
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT ALL + + 58 * - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-5856
SELECT ALL + + 58 * - COUNT ( * )
----
-58

query I rowsort
SELECT - 84 + + 27
----
-57

query I rowsort
SELECT - ( + 91 ) + + 52 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-5859
SELECT - COUNT( * ), 80 AS col0
----
-1
80

skipif mysql # not compatible
query II rowsort label-5859
SELECT - COUNT ( * ), 80 AS col0
----
-1
80

query I rowsort
SELECT - - 35 + + 59 * - - 49 AS col0
----
2926

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5861
SELECT ALL + COUNT( * ) + - ( + SUM( + ( - COALESCE ( 46, + + CAST( NULL AS SIGNED ) + + - 65 + - 40 DIV + ( - 66 ) ) ) ) ) * + - 40, + CASE + SUM( 32 ) WHEN - 30 THEN + 57 + 1 * 63 WHEN CAST( - MAX( DISTINCT + 80 ) AS SIGNED ) THEN + 35 END + + 13 * 76 AS col2
----
-1839
NULL

skipif mysql # not compatible
query II rowsort label-5861
SELECT ALL + COUNT ( * ) + - ( + SUM ( + ( - COALESCE ( 46, + + CAST ( NULL AS INTEGER ) + + - 65 + - 40 / + ( - 66 ) ) ) ) ) * + - 40, + CASE + SUM ( 32 ) WHEN - 30 THEN + 57 + 1 * 63 WHEN CAST ( - MAX ( DISTINCT + 80 ) AS INTEGER ) THEN + 35 END + + 13 * 76 AS col2
----
-1839
NULL

query II rowsort
SELECT - 48 + NULLIF ( - ( - COALESCE ( - 62, - 98 + 61, + ( 11 ) ) ), - - 14 ) + 59 * 59 AS col1, 85 + 57 col1
----
3371
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5863
SELECT ALL SUM( ALL - 51 ), - 74 * - COUNT( * ) DIV + 99 + - - 16 col1
----
-51
16

skipif mysql # not compatible
query II rowsort label-5863
SELECT ALL SUM ( ALL - 51 ), - 74 * - COUNT ( * ) / + 99 + - - 16 col1
----
-51
16

query II rowsort
SELECT - 24 + - 78, + 26 AS col0
----
-102
26

query I rowsort
SELECT - 12 * - 84
----
1008

query I rowsort
SELECT ALL + 11 * - 45 * - 0 AS col0
----
0

query I rowsort
SELECT - 29 + 64 - 8 * 55
----
-405

onlyif mysql # DIV for integer division: 
query I rowsort label-5868
SELECT + ( + 63 ) DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-5868
SELECT + ( + 63 ) / + 82
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5869
SELECT DISTINCT + COUNT( * ) + + 1 * + 77 * - + MIN( ALL - + 20 ) * + 90 * + + 39 col0, + 34
----
5405401
34

skipif mysql # not compatible
query II rowsort label-5869
SELECT DISTINCT + COUNT ( * ) + + 1 * + 77 * - + MIN ( ALL - + 20 ) * + 90 * + + 39 col0, + 34
----
5405401
34

query I rowsort
SELECT DISTINCT 34 * - 88 * - 57 AS col2
----
170544

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT + SUM( - + 19 ) + - 87 * + 21 AS col0
----
-1846

skipif mysql # not compatible
query I rowsort label-5871
SELECT + SUM ( - + 19 ) + - 87 * + 21 AS col0
----
-1846

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT ALL + 24 * CASE - 19 WHEN 24 THEN - 41 * + COUNT( * ) + - 72 * + COUNT( * ) WHEN 59 THEN + 3 ELSE NULL END + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5872
SELECT ALL + 24 * CASE - 19 WHEN 24 THEN - 41 * + COUNT ( * ) + - 72 * + COUNT ( * ) WHEN 59 THEN + 3 ELSE NULL END + 66 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5873
SELECT ALL 88 * + + COALESCE ( - CAST( NULL AS SIGNED ), - + COALESCE ( + 92, + COUNT( * ) + - 26 * - 14 ) * + COUNT( * ), - 35 ) - + + 15 * - 24 + + 15 / + - CASE - - AVG ( CAST( NULL AS SIGNED ) ) WHEN + + 22 * 93 + + 59 * 72 THEN MAX( - 45 ) + - CASE COUNT( * ) WHEN ( + ( 88 ) ) THEN NULL WHEN - 43 THEN ( COALESCE ( 89, ( 89 ) ) ) - COALESCE ( 13 + + 70, 53, 72 * + 62 ) ELSE - 10 END WHEN - 16 THEN NULL END * COUNT( * ) + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL 88 * + + COALESCE ( - CAST ( NULL AS INTEGER ), - + COALESCE ( + 92, + COUNT ( * ) + - 26 * - 14 ) * + COUNT ( * ), - 35 ) - + + 15 * - 24 + + 15 / + - CASE - - AVG ( CAST ( NULL AS INTEGER ) ) WHEN + + 22 * 93 + + 59 * 72 THEN MAX ( - 45 ) + - CASE COUNT ( * ) WHEN ( + ( 88 ) ) THEN NULL WHEN - 43 THEN ( COALESCE ( 89, ( 89 ) ) ) - COALESCE ( 13 + + 70, 53, 72 * + 62 ) ELSE - 10 END WHEN - 16 THEN NULL END * COUNT ( * ) + + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT - COUNT( * ) * - 40 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-5874
SELECT - COUNT ( * ) * - 40 AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5875
SELECT + 50 * 44 / + + 97 + - + CASE - ( 40 ) WHEN + CAST( NULL AS SIGNED ) * + + CAST( - 87 AS DECIMAL ) - + COALESCE ( 0, - 53 + 33 + - 75 * 65, + COUNT( * ) * + AVG ( ALL + 76 ) + + 16 - - 14 ) + 34 THEN CAST( NULL AS DECIMAL ) + + 89 END + MAX( - 85 ) * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT + 50 * 44 / + + 97 + - + CASE - ( 40 ) WHEN + CAST ( NULL AS INTEGER ) * + + CAST ( - 87 AS REAL ) - + COALESCE ( 0, - 53 + 33 + - 75 * 65, + COUNT ( * ) * + AVG ( ALL + 76 ) + + 16 - - 14 ) + 34 THEN CAST ( NULL AS REAL ) + + 89 END + MAX ( - 85 ) * 60
----
NULL

query II rowsort
SELECT ( 46 ) AS col0, NULLIF ( + + ( + 22 ), + 54 + 53 ) col2
----
46
22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5877
SELECT - 6 DIV - ( - 70 ) + + CAST( + 65 AS SIGNED ) + 24 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-5877
SELECT - 6 / - ( - 70 ) + + CAST ( + 65 AS INTEGER ) + 24 AS col2
----
89

query I rowsort
SELECT ALL + 21 * 69 col1
----
1449

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5879
SELECT DISTINCT 40 DIV + MIN( 57 )
----
0

skipif mysql # not compatible
query I rowsort label-5879
SELECT DISTINCT 40 / + MIN ( 57 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT + 11 * - CASE + COUNT( 79 ) WHEN + 14 * - 41 * - 46 * + 97 THEN + 68 / 8 * + + 2 / + 7 END + - 38 + - + ( + 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5880
SELECT + 11 * - CASE + COUNT ( 79 ) WHEN + 14 * - 41 * - 46 * + 97 THEN + 68 / 8 * + + 2 / + 7 END + - 38 + - + ( + 62 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5881
SELECT DISTINCT + ( + COUNT( * ) ) * - 64 AS col0, + NULLIF ( + CAST( + 6 AS SIGNED ), 85 + + + 26 ) AS col1
----
-64
6

skipif mysql # not compatible
query II rowsort label-5881
SELECT DISTINCT + ( + COUNT ( * ) ) * - 64 AS col0, + NULLIF ( + CAST ( + 6 AS INTEGER ), 85 + + + 26 ) AS col1
----
-64
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5882
SELECT ALL + - CAST( + 37 AS SIGNED ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL + - CAST ( + 37 AS INTEGER ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-5883
SELECT DISTINCT + CASE MAX( ALL - 97 ) WHEN + 47 THEN NULL ELSE 95 * - 91 + - 93 END AS col0, - COUNT( DISTINCT - + 10 ) - + ( + 59 ) AS col1
----
-8738
-60

skipif mysql # not compatible
query II rowsort label-5883
SELECT DISTINCT + CASE MAX ( ALL - 97 ) WHEN + 47 THEN NULL ELSE 95 * - 91 + - 93 END AS col0, - COUNT ( DISTINCT - + 10 ) - + ( + 59 ) AS col1
----
-8738
-60

query II rowsort
SELECT + + 14 * + ( + 93 ) col2, 96
----
1302
96

query I rowsort
SELECT DISTINCT + 9 * + 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5886
SELECT DISTINCT - 14 * - 67 + 59 AS col2, COUNT( * ) + + 9 * - - 31 * COUNT( * ) * + 19 * + - 71 * - + ( + + 61 ) + - - 56 AS col2
----
997
22958688

skipif mysql # not compatible
query II rowsort label-5886
SELECT DISTINCT - 14 * - 67 + 59 AS col2, COUNT ( * ) + + 9 * - - 31 * COUNT ( * ) * + 19 * + - 71 * - + ( + + 61 ) + - - 56 AS col2
----
997
22958688

query I rowsort
SELECT ALL - ( - + 50 ) * + 55 + - 16
----
2734

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT DISTINCT SUM( + CASE 64 WHEN + - 49 * 88 - + 26 THEN - 19 * 45 + 74 + - 64 WHEN + - ( + 97 ) * - 12 * + + 37 + - 59 THEN NULL ELSE + 23 + + + 14 END ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-5888
SELECT DISTINCT SUM ( + CASE 64 WHEN + - 49 * 88 - + 26 THEN - 19 * 45 + 74 + - 64 WHEN + - ( + 97 ) * - 12 * + + 37 + - 59 THEN NULL ELSE + 23 + + + 14 END ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT - COUNT( * ) * - - 52 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-5889
SELECT - COUNT ( * ) * - - 52 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT + 36 + - 63 + 85 - + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-5890
SELECT + 36 + - 63 + 85 - + COUNT ( * )
----
57

query I rowsort
SELECT ALL ( + 12 ) * - 30 AS col2
----
-360

query I rowsort
SELECT ALL - 89 + - + 99
----
-188

query II rowsort
SELECT - 35 AS col1, 48 col1
----
-35
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5894
SELECT - CAST( NULL AS SIGNED ), + 96 AS col1
----
NULL
96

skipif mysql # not compatible
query II rowsort label-5894
SELECT - CAST ( NULL AS INTEGER ), + 96 AS col1
----
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT - ( - 7 ) * - 33 * + - COUNT( * )
----
231

skipif mysql # not compatible
query I rowsort label-5895
SELECT - ( - 7 ) * - 33 * + - COUNT ( * )
----
231

query I rowsort
SELECT ALL + 16 * - - 88 AS col2
----
1408

query I rowsort
SELECT ALL ( - 81 ) * - - 6
----
-486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5898
SELECT ALL - 53 + + COALESCE ( + COUNT( * ), AVG ( ALL - 82 ) ) * + 30 + - ( CASE + 84 WHEN + 47 / + - CAST( - - 1 AS SIGNED ) THEN - + 88 END ) * + 43 * - + 85 + + CASE - MIN( ALL - 2 ) WHEN 90 THEN NULL ELSE CASE ( 89 ) WHEN 42 THEN NULL WHEN + 35 + + 86 THEN AVG ( DISTINCT - 63 ) END + 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL - 53 + + COALESCE ( + COUNT ( * ), AVG ( ALL - 82 ) ) * + 30 + - ( CASE + 84 WHEN + 47 / + - CAST ( - - 1 AS INTEGER ) THEN - + 88 END ) * + 43 * - + 85 + + CASE - MIN ( ALL - 2 ) WHEN 90 THEN NULL ELSE CASE ( 89 ) WHEN 42 THEN NULL WHEN + 35 + + 86 THEN AVG ( DISTINCT - 63 ) END + 55 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5899
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT DISTINCT COALESCE ( 33, + 90, 0 * + + 81 * + 84 ) + + COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT COALESCE ( 33, + 90, 0 * + + 81 * + 84 ) + + COUNT ( * ) AS col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5901
SELECT ALL CAST( NULL AS SIGNED ) AS col2, 19 col0
----
NULL
19

skipif mysql # not compatible
query II rowsort label-5901
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 19 col0
----
NULL
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT DISTINCT + 26 + - 6 * MIN( 81 )
----
-460

skipif mysql # not compatible
query I rowsort label-5902
SELECT DISTINCT + 26 + - 6 * MIN ( 81 )
----
-460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5903
SELECT - COUNT( * ) + - COUNT( * ) DIV + 35 + + 88 * 60 AS col1
----
5279

skipif mysql # not compatible
query I rowsort label-5903
SELECT - COUNT ( * ) + - COUNT ( * ) / + 35 + + 88 * 60 AS col1
----
5279

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT ALL CASE - 43 WHEN - 0 + COUNT( * ) - - 2 * - - ( 36 ) THEN - ( - - NULLIF ( 19, 23 ) ) * + 6 WHEN 99 + 27 THEN NULL WHEN + - NULLIF ( + COUNT( * ), - 85 ) + + 73 * - 68 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL CASE - 43 WHEN - 0 + COUNT ( * ) - - 2 * - - ( 36 ) THEN - ( - - NULLIF ( 19, 23 ) ) * + 6 WHEN 99 + 27 THEN NULL WHEN + - NULLIF ( + COUNT ( * ), - 85 ) + + 73 * - 68 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 22 * - + 74 AS col1
----
1628

query I rowsort
SELECT - 28 * 72 AS col0
----
-2016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5907
SELECT ALL - 81 DIV + COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL - 81 / + COUNT ( * )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT - COUNT( + 21 ) + + 88 + + + 68 col0
----
155

skipif mysql # not compatible
query I rowsort label-5908
SELECT - COUNT ( + 21 ) + + 88 + + + 68 col0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT - CASE + COUNT( * ) WHEN + 16 * + - COUNT( * ) THEN NULL ELSE - 79 END AS col1
----
79

skipif mysql # not compatible
query I rowsort label-5909
SELECT - CASE + COUNT ( * ) WHEN + 16 * + - COUNT ( * ) THEN NULL ELSE - 79 END AS col1
----
79

query I rowsort
SELECT DISTINCT - 63 * + 52 * 69 AS col1
----
-226044

query I rowsort
SELECT - 45 - - 14 AS col0
----
-31

query I rowsort
SELECT - - 87 * 47 * 1 + 11 * + + 45 AS col2
----
4584

onlyif mysql # DIV for integer division: 
query I rowsort label-5913
SELECT ALL 66 DIV 25 - + 5 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL 66 / 25 - + 5 AS col0
----
-3

query II rowsort
SELECT ALL - 71, - 34 AS col2
----
-71
-34

query I rowsort
SELECT - 16 * + 48
----
-768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5916
SELECT 74 * - + NULLIF ( - - CAST( NULL AS SIGNED ), - - NULLIF ( + AVG ( - - 42 ), - 21 ) ) * + ( - 54 ) + + CASE - - 45 WHEN + - 27 THEN COUNT( * ) END - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5916
SELECT 74 * - + NULLIF ( - - CAST ( NULL AS INTEGER ), - - NULLIF ( + AVG ( - - 42 ), - 21 ) ) * + ( - 54 ) + + CASE - - 45 WHEN + - 27 THEN COUNT ( * ) END - - COUNT ( * )
----
NULL

query I rowsort
SELECT ( 32 ) + + 53 * + + 4
----
244

query II rowsort
SELECT + - 5 AS col0, + 35 + + 15 AS col0
----
-5
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5919
SELECT 35 * + + CAST( NULL AS SIGNED ) + 49 * + 1 * 39 + COALESCE ( - 27, - + 47 * 25 + + - ( 44 ) - ( - + 24 ) * NULLIF ( + 29, - 31 + + 79 ) ) * - + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5919
SELECT 35 * + + CAST ( NULL AS INTEGER ) + 49 * + 1 * 39 + COALESCE ( - 27, - + 47 * 25 + + - ( 44 ) - ( - + 24 ) * NULLIF ( + 29, - 31 + + 79 ) ) * - + 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5920
SELECT - COALESCE ( + - COUNT( * ), + 72 ) * CAST( NULL AS SIGNED ) + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5920
SELECT - COALESCE ( + - COUNT ( * ), + 72 ) * CAST ( NULL AS INTEGER ) + - 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT + COUNT( * ) * - + 28 * - 2 + 5
----
61

skipif mysql # not compatible
query I rowsort label-5921
SELECT + COUNT ( * ) * - + 28 * - 2 + 5
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT ALL + - COUNT( * ) + + 83 / - 91 * ( + + 80 ) * 78 * 54 + + CASE - + 3 WHEN - 87 THEN - 59 * + COALESCE ( - 69, + 42 * ( 84 ) ) END + - + MAX( + 72 ) + - 59 * 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL + - COUNT ( * ) + + 83 / - 91 * ( + + 80 ) * 78 * 54 + + CASE - + 3 WHEN - 87 THEN - 59 * + COALESCE ( - 69, + 42 * ( 84 ) ) END + - + MAX ( + 72 ) + - 59 * 44 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5923
SELECT + 79 DIV + 32
----
2

skipif mysql # not compatible
query I rowsort label-5923
SELECT + 79 / + 32
----
2

query I rowsort
SELECT ALL 19 + 95
----
114

query II rowsort
SELECT - 88 + + 34 - + 28 AS col0, + 15 AS col0
----
-82
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5926
SELECT DISTINCT 76 * - 13 + + - MAX( + 84 ) DIV - MAX( DISTINCT - 70 ) - - 68 + + NULLIF ( + 1, + 47 ) AS col2
----
-920

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT 76 * - 13 + + - MAX ( + 84 ) / - MAX ( DISTINCT - 70 ) - - 68 + + NULLIF ( + 1, + 47 ) AS col2
----
-920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5927
SELECT DISTINCT - CAST( 63 AS SIGNED ) + ( + 78 ) col2
----
15

skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT - CAST ( 63 AS INTEGER ) + ( + 78 ) col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT + MAX( - 20 ) * - 68 * + 23
----
31280

skipif mysql # not compatible
query I rowsort label-5928
SELECT + MAX ( - 20 ) * - 68 * + 23
----
31280

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT - COUNT( - 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-5929
SELECT - COUNT ( - 34 )
----
-1

query I rowsort
SELECT ALL 48 * 63 * + 28 AS col2
----
84672

onlyif mysql # DIV for integer division: 
query I rowsort label-5931
SELECT 29 DIV + 73 * - ( - 89 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5931
SELECT 29 / + 73 * - ( - 89 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5932
SELECT 35 * 47 DIV + - 53
----
-31

skipif mysql # not compatible
query I rowsort label-5932
SELECT 35 * 47 / + - 53
----
-31

query I rowsort
SELECT ALL ( - - 54 ) + + 47 AS col2
----
101

query I rowsort
SELECT ALL - 57 - 96 AS col0
----
-153

query II rowsort
SELECT 89 * + 96 AS col1, - 42 AS col0
----
8544
-42

query I rowsort
SELECT 60 + + 40 AS col0
----
100

query I rowsort
SELECT DISTINCT - 77 * 38
----
-2926

onlyif mysql # aggregate syntax: 
query II rowsort label-5938
SELECT DISTINCT - 68 * + CASE - 43 WHEN - 60 - + 43 / 19 THEN + COUNT( * ) WHEN + 61 THEN NULL ELSE NULL END * + 12 AS col2, 94
----
NULL
94

skipif mysql # not compatible
query II rowsort label-5938
SELECT DISTINCT - 68 * + CASE - 43 WHEN - 60 - + 43 / 19 THEN + COUNT ( * ) WHEN + 61 THEN NULL ELSE NULL END * + 12 AS col2, 94
----
NULL
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5939
SELECT DISTINCT 57 * + - CAST( 58 AS SIGNED )
----
-3306

skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT 57 * + - CAST ( 58 AS INTEGER )
----
-3306

query I rowsort
SELECT 79 * - 76
----
-6004

query I rowsort
SELECT 86 + 13
----
99

query I rowsort
SELECT DISTINCT - 94 * + 16
----
-1504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5943
SELECT + CAST( - 90 AS SIGNED ) + 93 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5943
SELECT + CAST ( - 90 AS INTEGER ) + 93 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT ALL + - SUM( + 63 ) + + 0 * + + 91 * + ( + - ( + - 99 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-5944
SELECT ALL + - SUM ( + 63 ) + + 0 * + + 91 * + ( + - ( + - 99 ) )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT - COALESCE ( - + COUNT( * ), - 28 * - + 77 )
----
1

skipif mysql # not compatible
query I rowsort label-5945
SELECT - COALESCE ( - + COUNT ( * ), - 28 * - + 77 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5946
SELECT + 37 DIV + - 67
----
0

skipif mysql # not compatible
query I rowsort label-5946
SELECT + 37 / + - 67
----
0

query I rowsort
SELECT ALL - - ( + + 57 ) * + 93 * - 57 * + - 89 * + 4
----
107567892

query I rowsort
SELECT DISTINCT + 50 + - 43
----
7

query I rowsort
SELECT ALL + - 76 + ( + 38 )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5950
SELECT DISTINCT - - 13 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT - - 13 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 59 * - 38 AS col1
----
2242

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT DISTINCT - - COUNT( + 77 )
----
1

skipif mysql # not compatible
query I rowsort label-5952
SELECT DISTINCT - - COUNT ( + 77 )
----
1

query II rowsort
SELECT DISTINCT - + 46 * + + 62 col0, + 66 AS col1
----
-2852
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5954
SELECT ALL - - CAST( - 3 AS SIGNED ) + - 60 DIV + ( - + 81 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL - - CAST ( - 3 AS INTEGER ) + - 60 / + ( - + 81 ) AS col1
----
-3

query I rowsort
SELECT - 22 * + NULLIF ( + + 39, 16 * 63 * + 99 )
----
-858

query I rowsort
SELECT ALL 0 + + 93
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5957
SELECT DISTINCT + 71 - - - 98 / + CAST( NULL AS SIGNED ) * + - 29 + - + 77 + - - 67 + + + 53 + 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5957
SELECT DISTINCT + 71 - - - 98 / + CAST ( NULL AS INTEGER ) * + - 29 + - + 77 + - - 67 + + + 53 + 22 col0
----
NULL

query I rowsort
SELECT ALL 94 * + + 99
----
9306

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT ALL COUNT( DISTINCT - - 59 )
----
1

skipif mysql # not compatible
query I rowsort label-5959
SELECT ALL COUNT ( DISTINCT - - 59 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT MIN( - - 11 ) * + 28 * - COUNT( * )
----
-308

skipif mysql # not compatible
query I rowsort label-5960
SELECT MIN ( - - 11 ) * + 28 * - COUNT ( * )
----
-308

query II rowsort
SELECT 77 AS col1, 52 AS col2
----
77
52

query I rowsort
SELECT ALL 93 * + 12
----
1116

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT 54 + - - COUNT( * ) + 48 + 65 * + 11 + - - ( + 23 ) col1
----
841

skipif mysql # not compatible
query I rowsort label-5963
SELECT 54 + - - COUNT ( * ) + 48 + 65 * + 11 + - - ( + 23 ) col1
----
841

query II rowsort
SELECT ALL 9, 62 + - 97 AS col2
----
9
-35

query I rowsort
SELECT 70 * + 98 AS col0
----
6860

query I rowsort
SELECT DISTINCT 16 * + 55
----
880

query II rowsort
SELECT ALL 67 AS col1, + 44
----
67
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5968
SELECT + 45 + - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5968
SELECT + 45 + - CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT - COALESCE ( + 46, - COUNT( * ) )
----
-46

skipif mysql # not compatible
query I rowsort label-5969
SELECT - COALESCE ( + 46, - COUNT ( * ) )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5970
SELECT + CAST( NULL AS SIGNED ) + - 52 * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5970
SELECT + CAST ( NULL AS INTEGER ) + - 52 * + 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT ALL COALESCE ( + 60, + SUM( DISTINCT + ( + - 19 ) ), - - 1 * COUNT( DISTINCT + 11 ) * 92 ) + 67 + + 86 AS col1
----
213

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL COALESCE ( + 60, + SUM ( DISTINCT + ( + - 19 ) ), - - 1 * COUNT ( DISTINCT + 11 ) * 92 ) + 67 + + 86 AS col1
----
213

query I rowsort
SELECT + 94 - - + 66
----
160

query I rowsort
SELECT + 7 * - 47 col0
----
-329

query I rowsort
SELECT + + 35 + - + 64
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT ALL - + COUNT( * ) * + 67 + - + NULLIF ( + 30, + 66 * - - AVG ( ALL - 20 ) / - - 54 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL - + COUNT ( * ) * + 67 + - + NULLIF ( + 30, + 66 * - - AVG ( ALL - 20 ) / - - 54 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT ALL + - 28 * - + COUNT( * ) * 94 * 6 + 34 * + 20
----
16472

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL + - 28 * - + COUNT ( * ) * 94 * 6 + 34 * + 20
----
16472

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT + + COUNT( * ) - 5 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5977
SELECT + + COUNT ( * ) - 5 AS col2
----
-4

query I rowsort
SELECT DISTINCT - 21 * 85 AS col0
----
-1785

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT ALL + + 29 * - 24 + + + 51 + - COUNT( 21 ) * + COUNT( * ) * - 97 + + - 54
----
-602

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL + + 29 * - 24 + + + 51 + - COUNT ( 21 ) * + COUNT ( * ) * - 97 + + - 54
----
-602

query I rowsort
SELECT ALL + 88 * + + 1 AS col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5981
SELECT - 23 DIV - MIN( - ( ( + 16 ) ) ) - + 99 + + - COUNT( * ) * - 56 + - 79
----
-123

skipif mysql # not compatible
query I rowsort label-5981
SELECT - 23 / - MIN ( - ( ( + 16 ) ) ) - + 99 + + - COUNT ( * ) * - 56 + - 79
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT ALL - + COUNT( * ) * 23 + + + MAX( 0 ) + + 21 + - - NULLIF ( + 75, 2 ) * - 12 * + 47 + 39
----
-42263

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL - + COUNT ( * ) * 23 + + + MAX ( 0 ) + + 21 + - - NULLIF ( + 75, 2 ) * - 12 * + 47 + 39
----
-42263

query I rowsort
SELECT + ( + 77 ) + 28 + - 98
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5984
SELECT + 79, COUNT( * ) * + - 22 + - 56 AS col0
----
79
-78

skipif mysql # not compatible
query II rowsort label-5984
SELECT + 79, COUNT ( * ) * + - 22 + - 56 AS col0
----
79
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-5985
SELECT ALL + 6 DIV 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL + 6 / 69 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5986
SELECT + 61 * CAST( NULL AS SIGNED ) * + 28 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5986
SELECT + 61 * CAST ( NULL AS INTEGER ) * + 28 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5987
SELECT ALL + 58 * + + 0 - + CAST( NULL AS DECIMAL ) - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL + 58 * + + 0 - + CAST ( NULL AS REAL ) - 54 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5988
SELECT + NULLIF ( + AVG ( + + CAST( NULL AS SIGNED ) ), + + SUM( ALL + 38 ) + - ( - 61 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5988
SELECT + NULLIF ( + AVG ( + + CAST ( NULL AS INTEGER ) ), + + SUM ( ALL + 38 ) + - ( - 61 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT - MAX( 67 ) + + 79 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-5989
SELECT - MAX ( 67 ) + + 79 AS col2
----
12

query I rowsort
SELECT ALL - 94 * + 23 * 72
----
-155664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5991
SELECT - 59 + + 49 * + MIN( + CAST( NULL AS SIGNED ) ) * 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5991
SELECT - 59 + + 49 * + MIN ( + CAST ( NULL AS INTEGER ) ) * 76 AS col0
----
NULL

query I rowsort
SELECT ALL - 85 * - 75
----
6375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5993
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-5993
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 47
----
NULL

query I rowsort
SELECT ALL - 94 * - + 8 AS col0
----
752

onlyif mysql # aggregate syntax: 
query II rowsort label-5995
SELECT - 97 col0, 34 - + COUNT( * )
----
-97
33

skipif mysql # not compatible
query II rowsort label-5995
SELECT - 97 col0, 34 - + COUNT ( * )
----
-97
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5996
SELECT ALL ( - CAST( + SUM( - + 9 ) AS SIGNED ) ) AS col0, 41 AS col1
----
9
41

skipif mysql # not compatible
query II rowsort label-5996
SELECT ALL ( - CAST ( + SUM ( - + 9 ) AS INTEGER ) ) AS col0, 41 AS col1
----
9
41

query I rowsort
SELECT DISTINCT ( ( - 34 ) )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5998
SELECT ALL + CAST( - + 95 AS SIGNED ) * - 50
----
4750

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL + CAST ( - + 95 AS INTEGER ) * - 50
----
4750

onlyif mysql # aggregate syntax: 
query II rowsort label-5999
SELECT - MAX( DISTINCT 65 ) * - - COUNT( - + 50 ) AS col1, + 91 AS col1
----
-65
91

skipif mysql # not compatible
query II rowsort label-5999
SELECT - MAX ( DISTINCT 65 ) * - - COUNT ( - + 50 ) AS col1, + 91 AS col1
----
-65
91

query II rowsort
SELECT 40, - 91 AS col1
----
40
-91

query I rowsort
SELECT ALL NULLIF ( + 95, - 13 ) col0
----
95

query I rowsort
SELECT + ( + 4 ) * + + 60 * - 1 - 54 AS col0
----
-294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6003
SELECT DISTINCT + 50 + + 94 + + + 87 + - ( MAX( + + 72 ) ) + + 2 * 71 * - COALESCE ( + + COUNT( * ), 74, - CAST( 87 AS SIGNED ) )
----
17

skipif mysql # not compatible
query I rowsort label-6003
SELECT DISTINCT + 50 + + 94 + + + 87 + - ( MAX ( + + 72 ) ) + + 2 * 71 * - COALESCE ( + + COUNT ( * ), 74, - CAST ( 87 AS INTEGER ) )
----
17

query II rowsort
SELECT DISTINCT + ( - 14 ) col2, 33 + + + 7 col1
----
-14
40

query I rowsort
SELECT - 92 + + + 7
----
-85

query I rowsort
SELECT DISTINCT - 11 + - - 40 * - + 85 * 85 + 51 AS col2
----
-288960

query II rowsort
SELECT ALL + 16, 18 AS col1
----
16
18

query I rowsort
SELECT + + 42 + + + ( + 24 ) AS col1
----
66

query I rowsort
SELECT ALL + - ( 16 ) + - 59
----
-75

query I rowsort
SELECT ALL + 3 + + ( + 73 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT CASE 26 WHEN 93 THEN - 23 * - + 94 * + COUNT( * ) + 41 - - SUM( ALL + 53 ) + + - 31 * - 26 WHEN + 26 * 59 * 0 * - 43 / + 43 THEN NULL ELSE + 99 + + - 38 END
----
61

skipif mysql # not compatible
query I rowsort label-6011
SELECT CASE 26 WHEN 93 THEN - 23 * - + 94 * + COUNT ( * ) + 41 - - SUM ( ALL + 53 ) + + - 31 * - 26 WHEN + 26 * 59 * 0 * - 43 / + 43 THEN NULL ELSE + 99 + + - 38 END
----
61

query I rowsort
SELECT + 55 + - + 3
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6013
SELECT ALL + 40 DIV 91 + + - 54 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL + 40 / 91 + + - 54 AS col1
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6014
SELECT + 8 * - 4 DIV + - COUNT( * ) - + NULLIF ( + - 67, 84 ) AS col2, 95 * + - 11
----
99
-1045

skipif mysql # not compatible
query II rowsort label-6014
SELECT + 8 * - 4 / + - COUNT ( * ) - + NULLIF ( + - 67, 84 ) AS col2, 95 * + - 11
----
99
-1045

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT - 88 * 46 + + - 12 * - + COUNT( + - 0 ) col1
----
-4036

skipif mysql # not compatible
query I rowsort label-6015
SELECT - 88 * 46 + + - 12 * - + COUNT ( + - 0 ) col1
----
-4036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6016
SELECT + COUNT( * ) DIV - 99 * 85 * - - 40 + + COALESCE ( - + SUM( - - 14 ), - + 9, - 92 * - CASE + - 83 WHEN + + CAST( NULL AS SIGNED ) THEN - - 38 * - + 21 ELSE NULL END ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-6016
SELECT + COUNT ( * ) / - 99 * 85 * - - 40 + + COALESCE ( - + SUM ( - - 14 ), - + 9, - 92 * - CASE + - 83 WHEN + + CAST ( NULL AS INTEGER ) THEN - - 38 * - + 21 ELSE NULL END ) AS col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-6017
SELECT DISTINCT + 68 DIV 48 + - 0 - - 72 * 43 - 37 + + - 32 - - 99 AS col0
----
3127

skipif mysql # not compatible
query I rowsort label-6017
SELECT DISTINCT + 68 / 48 + - 0 - - 72 * 43 - 37 + + - 32 - - 99 AS col0
----
3127

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6018
SELECT + + NULLIF ( - 42, - + NULLIF ( - COUNT( * ), - + COUNT( ALL - - 0 ) + CASE + 83 WHEN - 16 THEN CAST( + 52 AS DECIMAL ) WHEN - 21 / 80 * - COUNT( * ) THEN - 14 - 98 END ) / - 86 )
----
-42

skipif mysql # not compatible
query I rowsort label-6018
SELECT + + NULLIF ( - 42, - + NULLIF ( - COUNT ( * ), - + COUNT ( ALL - - 0 ) + CASE + 83 WHEN - 16 THEN CAST ( + 52 AS REAL ) WHEN - 21 / 80 * - COUNT ( * ) THEN - 14 - 98 END ) / - 86 )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6019
SELECT + + 31 AS col2, - CASE + + 98 WHEN 69 THEN NULL WHEN CAST( ( 0 ) AS SIGNED ) THEN NULL ELSE + 47 END + - - 92 AS col1
----
31
45

skipif mysql # not compatible
query II rowsort label-6019
SELECT + + 31 AS col2, - CASE + + 98 WHEN 69 THEN NULL WHEN CAST ( ( 0 ) AS INTEGER ) THEN NULL ELSE + 47 END + - - 92 AS col1
----
31
45

query II rowsort
SELECT ALL + - 27 AS col2, NULLIF ( 13, - + 96 ) * 32 AS col1
----
-27
416

query I rowsort
SELECT ( ( 21 ) )
----
21

query I rowsort
SELECT - ( + - 31 ) * - + 66
----
-2046

query I rowsort
SELECT - 37 * + - 19 - + 69 + - 57 * + 96
----
-4838

query I rowsort
SELECT ALL + NULLIF ( - 4, - - 91 * - 65 ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-6025
SELECT ( COUNT( * ) ), - 58 AS col0
----
1
-58

skipif mysql # not compatible
query II rowsort label-6025
SELECT ( COUNT ( * ) ), - 58 AS col0
----
1
-58

query I rowsort
SELECT + ( + 95 ) * 70
----
6650

query I rowsort
SELECT DISTINCT - 18 * 77 AS col0
----
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT ALL + 63 * + CASE - 41 WHEN 10 + MIN( + 98 ) THEN - COALESCE ( COUNT( DISTINCT - NULLIF ( + 1, + 7 ) ), + - 1, - 73 ) WHEN 96 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL + 63 * + CASE - 41 WHEN 10 + MIN ( + 98 ) THEN - COALESCE ( COUNT ( DISTINCT - NULLIF ( + 1, + 7 ) ), + - 1, - 73 ) WHEN 96 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6029
SELECT DISTINCT - 9 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6029
SELECT DISTINCT - 9 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 34 + + - 77
----
-43

query II rowsort
SELECT 79 + - 97, - 34 AS col1
----
-18
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6032
SELECT 88 + CAST( - 33 AS SIGNED ) - 97 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-6032
SELECT 88 + CAST ( - 33 AS INTEGER ) - 97 AS col0
----
-42

query I rowsort
SELECT DISTINCT - 24 + 95 * + 70
----
6626

onlyif mysql # aggregate syntax: 
query II rowsort label-6034
SELECT DISTINCT + 65 + - 61 AS col0, - 43 * - ( + 2 ) * + 20 + - - 4 + + - NULLIF ( - COUNT( * ), + - COUNT( * ) / - + 78 + + - 39 ) AS col2
----
4
1725

skipif mysql # not compatible
query II rowsort label-6034
SELECT DISTINCT + 65 + - 61 AS col0, - 43 * - ( + 2 ) * + 20 + - - 4 + + - NULLIF ( - COUNT ( * ), + - COUNT ( * ) / - + 78 + + - 39 ) AS col2
----
4
1725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6035
SELECT ALL - + COUNT( * ) + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL - + COUNT ( * ) + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6036
SELECT ALL + COUNT( * ) + - 8 * - 76 * - CASE - 51 WHEN - + 38 * - 91 + + 3 - + - 28 - 25 * + - 64 THEN CAST( NULL AS SIGNED ) END * - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL + COUNT ( * ) + - 8 * - 76 * - CASE - 51 WHEN - + 38 * - 91 + + 3 - + - 28 - 25 * + - 64 THEN CAST ( NULL AS INTEGER ) END * - 8
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6037
SELECT + 92 - 8 AS col2, - COUNT( * )
----
84
-1

skipif mysql # not compatible
query II rowsort label-6037
SELECT + 92 - 8 AS col2, - COUNT ( * )
----
84
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6038
SELECT DISTINCT - 39 * + 66 AS col2, COUNT( * ) * + COALESCE ( + 55, - - 32 )
----
-2574
55

skipif mysql # not compatible
query II rowsort label-6038
SELECT DISTINCT - 39 * + 66 AS col2, COUNT ( * ) * + COALESCE ( + 55, - - 32 )
----
-2574
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT + 5 + - + 50 * + 91 + - 92 + COUNT( * ) * - 8 * - 82
----
-3981

skipif mysql # not compatible
query I rowsort label-6039
SELECT + 5 + - + 50 * + 91 + - 92 + COUNT ( * ) * - 8 * - 82
----
-3981

onlyif mysql # aggregate syntax: 
query II rowsort label-6040
SELECT COUNT( * ) * - - 40, COUNT( * ) AS col1
----
40
1

skipif mysql # not compatible
query II rowsort label-6040
SELECT COUNT ( * ) * - - 40, COUNT ( * ) AS col1
----
40
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6041
SELECT ALL + CASE - 46 WHEN + 1 THEN 8 WHEN - 4 THEN - CASE - ( - - 92 ) WHEN - + 41 THEN - + COUNT( * ) + - + 77 + - - 63 END ELSE - + NULLIF ( + CASE + + 15 WHEN 33 * - NULLIF ( + 69, - - ( + + 29 ) ) + ( COALESCE ( - MIN( 9 ), COALESCE ( 61, 3, + 93 ) ) ) THEN NULL WHEN COUNT( 66 ) * - ( - 10 ) THEN 0 + + MIN( - 75 + 98 ) ELSE NULL END, - 66 + + CASE - COUNT( * ) WHEN - ( + 24 ) / - ( - 42 * AVG ( - CAST( ( 69 ) AS SIGNED ) ) ) THEN NULL ELSE SUM( + 75 ) + + NULLIF ( CASE AVG ( DISTINCT 92 ) WHEN + 45 / - 17 THEN 16 ELSE CAST( 5 AS DECIMAL ) END, 38 ) END * 28 ) - + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL + CASE - 46 WHEN + 1 THEN 8 WHEN - 4 THEN - CASE - ( - - 92 ) WHEN - + 41 THEN - + COUNT ( * ) + - + 77 + - - 63 END ELSE - + NULLIF ( + CASE + + 15 WHEN 33 * - NULLIF ( + 69, - - ( + + 29 ) ) + ( COALESCE ( - MIN ( 9 ), COALESCE ( 61, 3, + 93 ) ) ) THEN NULL WHEN COUNT ( 66 ) * - ( - 10 ) THEN 0 + + MIN ( - 75 + 98 ) ELSE NULL END, - 66 + + CASE - COUNT ( * ) WHEN - ( + 24 ) / - ( - 42 * AVG ( - CAST ( ( 69 ) AS INTEGER ) ) ) THEN NULL ELSE SUM ( + 75 ) + + NULLIF ( CASE AVG ( DISTINCT 92 ) WHEN + 45 / - 17 THEN 16 ELSE CAST ( 5 AS REAL ) END, 38 ) END * 28 ) - + 9 END
----
NULL

query I rowsort
SELECT ALL 58 - + 20 * + - 68 AS col1
----
1418

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6043
SELECT ALL - - AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ), ( - 34 ) AS col1
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-6043
SELECT ALL - - AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ), ( - 34 ) AS col1
----
NULL
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6044
SELECT - ( - COALESCE ( + 49, 21 ) ) - - 52 + + - CAST( + 84 AS SIGNED ) - 69 + - 85 * + - COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-6044
SELECT - ( - COALESCE ( + 49, 21 ) ) - - 52 + + - CAST ( + 84 AS INTEGER ) - 69 + - 85 * + - COUNT ( * ) AS col0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6045
SELECT CAST( NULL AS SIGNED ) / - 83 + + + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6045
SELECT CAST ( NULL AS INTEGER ) / - 83 + + + 6 AS col0
----
NULL

query II rowsort
SELECT + 73 AS col1, + 79 AS col2
----
73
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6047
SELECT ALL - 99, COUNT( * ) * - 71 DIV - 74 * + 82 * - CAST( - 79 AS SIGNED ) AS col1
----
-99
0

skipif mysql # not compatible
query II rowsort label-6047
SELECT ALL - 99, COUNT ( * ) * - 71 / - 74 * + 82 * - CAST ( - 79 AS INTEGER ) AS col1
----
-99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT COUNT( * ) + + + 61
----
62

skipif mysql # not compatible
query I rowsort label-6048
SELECT COUNT ( * ) + + + 61
----
62

query I rowsort
SELECT 44 + - + 14 AS col1
----
30

onlyif mysql # DIV for integer division: 
query II rowsort label-6050
SELECT + 30 AS col2, 65 DIV ( - 93 )
----
30
0

skipif mysql # not compatible
query II rowsort label-6050
SELECT + 30 AS col2, 65 / ( - 93 )
----
30
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6051
SELECT CAST( - + 44 AS SIGNED ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6051
SELECT CAST ( - + 44 AS INTEGER ) * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6052
SELECT + 71 * + - 57 + + + 85 DIV + 49
----
-4046

skipif mysql # not compatible
query I rowsort label-6052
SELECT + 71 * + - 57 + + + 85 / + 49
----
-4046

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT ALL MAX( + + 14 ) + 33 + - + 7 + + COALESCE ( + + 19, 2 )
----
59

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL MAX ( + + 14 ) + 33 + - + 7 + + COALESCE ( + + 19, 2 )
----
59

query II rowsort
SELECT DISTINCT 93 + - ( - 36 ) + + + 44 * - 54 + - + 96 AS col0, ( - + 36 )
----
-2343
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT ALL - MIN( DISTINCT - - 92 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL - MIN ( DISTINCT - - 92 ) AS col2
----
-92

query I rowsort
SELECT ALL 28 + ( + - ( - 22 ) ) AS col2
----
50

query II rowsort
SELECT 73 AS col0, + 15 AS col0
----
73
15

query I rowsort
SELECT 24 + + - 85 col2
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6059
SELECT - 18 AS col0, + NULLIF ( + CAST( + - 6 AS SIGNED ), - + 69 + - 18 / - 89 ) AS col2
----
-18
-6

skipif mysql # not compatible
query II rowsort label-6059
SELECT - 18 AS col0, + NULLIF ( + CAST ( + - 6 AS INTEGER ), - + 69 + - 18 / - 89 ) AS col2
----
-18
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT ( + 83 ) * ( COUNT( * ) )
----
83

skipif mysql # not compatible
query I rowsort label-6060
SELECT ( + 83 ) * ( COUNT ( * ) )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6061
SELECT ALL + NULLIF ( CAST( 50 AS SIGNED ), - 59 * + 78 * + 69 + + 54 ) + - COUNT( * ), - 18 AS col0, - 72 AS col0
----
49
-18
-72

skipif mysql # not compatible
query III rowsort label-6061
SELECT ALL + NULLIF ( CAST ( 50 AS INTEGER ), - 59 * + 78 * + 69 + + 54 ) + - COUNT ( * ), - 18 AS col0, - 72 AS col0
----
49
-18
-72

query I rowsort
SELECT ALL - - 42 + + 33
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT 89 * - COUNT( ALL 23 )
----
-89

skipif mysql # not compatible
query I rowsort label-6063
SELECT 89 * - COUNT ( ALL 23 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT 19 + SUM( ALL - 76 ) - COUNT( * ) * - 61 + 51
----
55

skipif mysql # not compatible
query I rowsort label-6064
SELECT 19 + SUM ( ALL - 76 ) - COUNT ( * ) * - 61 + 51
----
55

query I rowsort
SELECT DISTINCT - NULLIF ( + - 27, + + 22 + + AVG ( DISTINCT 78 ) ) - 48
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT ALL + - COUNT( * ) * COUNT( * ) * 64 * - + COALESCE ( + + 55, - + SUM( + + 19 ) )
----
3520

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL + - COUNT ( * ) * COUNT ( * ) * 64 * - + COALESCE ( + + 55, - + SUM ( + + 19 ) )
----
3520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6067
SELECT ALL - - 50 - - - COALESCE ( - 94, - + NULLIF ( + 98, 54 ) * - COUNT( * ) + + 16 + + CAST( NULL AS SIGNED ) ) + - 47 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL - - 50 - - - COALESCE ( - 94, - + NULLIF ( + 98, 54 ) * - COUNT ( * ) + + 16 + + CAST ( NULL AS INTEGER ) ) + - 47 AS col0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6068
SELECT 56, - COUNT( * ) AS col1
----
56
-1

skipif mysql # not compatible
query II rowsort label-6068
SELECT 56, - COUNT ( * ) AS col1
----
56
-1

query I rowsort
SELECT + 81 - + ( 9 )
----
72

query II rowsort
SELECT CASE - - 84 WHEN + + 43 + 80 + - 78 THEN NULL WHEN 9 THEN + - 76 END * 82 AS col2, + 79 + + + 97
----
NULL
176

query I rowsort
SELECT ALL + - 37 * 42 + 91 + 85 + + - 71 * + 93
----
-7981

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6072
SELECT + AVG ( + CAST( COALESCE ( - + 99, + 32 * + + 31 + - 82 + NULLIF ( - - 11, + 53 / 55 * 33 ) * + ( 60 ) * - 78 + + + ( - 90 ), + 33 ) AS SIGNED ) ) + - 37 + - - 3 + - 53 * + 4 * 6 * ( 63 ) * + CASE + 74 WHEN + 61 THEN - 5 ELSE NULL END * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-6072
SELECT + AVG ( + CAST ( COALESCE ( - + 99, + 32 * + + 31 + - 82 + NULLIF ( - - 11, + 53 / 55 * 33 ) * + ( 60 ) * - 78 + + + ( - 90 ), + 33 ) AS INTEGER ) ) + - 37 + - - 3 + - 53 * + 4 * 6 * ( 63 ) * + CASE + 74 WHEN + 61 THEN - 5 ELSE NULL END * 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT 89 + - + COUNT( * ) + + COUNT( * ) * 90
----
178

skipif mysql # not compatible
query I rowsort label-6073
SELECT 89 + - + COUNT ( * ) + + COUNT ( * ) * 90
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT DISTINCT COALESCE ( + MIN( DISTINCT 79 ), 32 * 2 * + 22 * 9 + 69 )
----
79

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT COALESCE ( + MIN ( DISTINCT 79 ), 32 * 2 * + 22 * 9 + 69 )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6075
SELECT ALL + CAST( + NULLIF ( - - COUNT( * ), + 71 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL + CAST ( + NULLIF ( - - COUNT ( * ), + 71 ) AS INTEGER )
----
1

query I rowsort
SELECT 37 * 18 AS col2
----
666

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6077
SELECT DISTINCT - COUNT( * ) DIV ( + COUNT( * ) ) * + 95 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT - COUNT ( * ) / ( + COUNT ( * ) ) * + 95 AS col1
----
-95

query II rowsort
SELECT ALL + 70 AS col0, 61 AS col1
----
70
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6079
SELECT 17 * + + NULLIF ( 38, - ( + 77 ) ) * + 98 + + CASE + - 8 WHEN - 68 THEN + + 49 WHEN - ( + COALESCE ( - + SUM( ALL + 47 ), - CASE - 20 WHEN + 32 THEN NULL WHEN - - ( 81 ) THEN NULL ELSE + - ( - 81 ) * + 30 END ) ) THEN COUNT( - COALESCE ( - 56, + CAST( NULL AS SIGNED ) ) ) END * + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT 17 * + + NULLIF ( 38, - ( + 77 ) ) * + 98 + + CASE + - 8 WHEN - 68 THEN + + 49 WHEN - ( + COALESCE ( - + SUM ( ALL + 47 ), - CASE - 20 WHEN + 32 THEN NULL WHEN - - ( 81 ) THEN NULL ELSE + - ( - 81 ) * + 30 END ) ) THEN COUNT ( - COALESCE ( - 56, + CAST ( NULL AS INTEGER ) ) ) END * + 27 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT + 53 + + + 17 * - - COALESCE ( + COUNT( * ), + + CASE + 35 WHEN + + 13 / - 7 + + + ( + NULLIF ( - + 5, + 3 - 43 * + 60 * + + AVG ( - 43 ) * - 70 * + 94 * + - COUNT( * ) + - NULLIF ( - 37, - 59 / - 6 ) ) ) THEN + COUNT( * ) WHEN 63 * 45 THEN NULL WHEN 33 THEN NULL ELSE NULL END, + 25 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-6080
SELECT + 53 + + + 17 * - - COALESCE ( + COUNT ( * ), + + CASE + 35 WHEN + + 13 / - 7 + + + ( + NULLIF ( - + 5, + 3 - 43 * + 60 * + + AVG ( - 43 ) * - 70 * + 94 * + - COUNT ( * ) + - NULLIF ( - 37, - 59 / - 6 ) ) ) THEN + COUNT ( * ) WHEN 63 * 45 THEN NULL WHEN 33 THEN NULL ELSE NULL END, + 25 ) AS col1
----
70

query I rowsort
SELECT DISTINCT - - 20 * - 49 * - 1 * - 53 AS col2
----
-51940

query I rowsort
SELECT + 4 * - 16 * - 78 + 88
----
5080

query I rowsort
SELECT ALL - 35 * - - 69 AS col2
----
-2415

query I rowsort
SELECT 54 * 30
----
1620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6085
SELECT 63 DIV + 32 + 26 * MAX( DISTINCT + + 59 ) AS col1
----
1535

skipif mysql # not compatible
query I rowsort label-6085
SELECT 63 / + 32 + 26 * MAX ( DISTINCT + + 59 ) AS col1
----
1535

query I rowsort
SELECT DISTINCT + ( - - 9 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT - SUM( - 53 ) * - 30 AS col1
----
-1590

skipif mysql # not compatible
query I rowsort label-6087
SELECT - SUM ( - 53 ) * - 30 AS col1
----
-1590

onlyif mysql # DIV for integer division: 
query I rowsort label-6088
SELECT ALL - 17 * + 66 + + 97 DIV 22 col2
----
-1118

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL - 17 * + 66 + + 97 / 22 col2
----
-1118

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT ALL MAX( ALL - 86 ) * - COUNT( * ) + + 50
----
136

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL MAX ( ALL - 86 ) * - COUNT ( * ) + + 50
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6090
SELECT - COUNT( * ) DIV - + 3 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6090
SELECT - COUNT ( * ) / - + 3 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6091
SELECT MIN( ALL 64 ) AS col0, 68
----
64
68

skipif mysql # not compatible
query II rowsort label-6091
SELECT MIN ( ALL 64 ) AS col0, 68
----
64
68

query I rowsort
SELECT + 99 * + - 76 * - 39 AS col2
----
293436

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT 0 * + MAX( DISTINCT - 88 ) - - + 89 + + - NULLIF ( 75, - 62 * + - 66 )
----
14

skipif mysql # not compatible
query I rowsort label-6093
SELECT 0 * + MAX ( DISTINCT - 88 ) - - + 89 + + - NULLIF ( 75, - 62 * + - 66 )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-6094
SELECT + NULLIF ( 59, 3 * + 34 ) AS col0, 91 * - COALESCE ( - 83, + 27 * - 8 ) - + + MIN( DISTINCT + 96 ) AS col0
----
59
7457

skipif mysql # not compatible
query II rowsort label-6094
SELECT + NULLIF ( 59, 3 * + 34 ) AS col0, 91 * - COALESCE ( - 83, + 27 * - 8 ) - + + MIN ( DISTINCT + 96 ) AS col0
----
59
7457

query I rowsort
SELECT + CASE + 16 WHEN 80 * + ( - 41 ) + - + 51 THEN + - 10 + - 82 * 74 * - 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT SUM( ALL + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-6096
SELECT SUM ( ALL + 53 )
----
53

query I rowsort
SELECT ALL 74 + + + 69
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ALL SUM( - + 85 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL SUM ( - + 85 ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT + - COUNT( ALL 38 ) * + 94 + + + 91
----
-3

skipif mysql # not compatible
query I rowsort label-6099
SELECT + - COUNT ( ALL 38 ) * + 94 + + + 91
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT + - CASE - MIN( - - 89 ) WHEN 35 THEN + MIN( ALL + - 88 ) ELSE NULL END + - 37 + - 73 / - AVG ( DISTINCT - 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6100
SELECT + - CASE - MIN ( - - 89 ) WHEN 35 THEN + MIN ( ALL + - 88 ) ELSE NULL END + - 37 + - 73 / - AVG ( DISTINCT - 77 ) AS col1
----
NULL

query I rowsort
SELECT - 35 * + 20
----
-700

query II rowsort
SELECT DISTINCT ( - 87 ) AS col0, 47
----
-87
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6103
SELECT ALL - 89 DIV 27 * - + 20
----
60

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL - 89 / 27 * - + 20
----
60

query I rowsort
SELECT + 1 / - 44 * + + CASE + 18 WHEN - 20 THEN - 26 + - 44 WHEN + + 92 * 97 + + NULLIF ( + 92, 63 / + 19 ) THEN NULL ELSE NULL END - - 94 * - 13 + 9 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6105
SELECT ALL - 98 * - CASE CAST( NULL AS SIGNED ) WHEN - - CASE - COUNT( * ) WHEN + COUNT( * ) - - ( - - COUNT( * ) ) THEN NULL WHEN - 37 + 90 THEN + 38 - + 27 END THEN NULL WHEN + 66 THEN 12 WHEN + 31 + - - 31 + - - COUNT( DISTINCT - 28 ) THEN NULL END + COALESCE ( + + COUNT( * ), + - 20 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL - 98 * - CASE CAST ( NULL AS INTEGER ) WHEN - - CASE - COUNT ( * ) WHEN + COUNT ( * ) - - ( - - COUNT ( * ) ) THEN NULL WHEN - 37 + 90 THEN + 38 - + 27 END THEN NULL WHEN + 66 THEN 12 WHEN + 31 + - - 31 + - - COUNT ( DISTINCT - 28 ) THEN NULL END + COALESCE ( + + COUNT ( * ), + - 20 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6106
SELECT DISTINCT + COUNT( * ) * + COUNT( - - ( - NULLIF ( 75, - 55 * + ( - 63 ) - + - 95 ) ) ), + 21 AS col2
----
1
21

skipif mysql # not compatible
query II rowsort label-6106
SELECT DISTINCT + COUNT ( * ) * + COUNT ( - - ( - NULLIF ( 75, - 55 * + ( - 63 ) - + - 95 ) ) ), + 21 AS col2
----
1
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6107
SELECT - - 34 + - + 99 + - + 12 - CAST( NULL AS DECIMAL ) + + 43 * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-6107
SELECT - - 34 + - + 99 + - + 12 - CAST ( NULL AS REAL ) + + 43 * 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT ALL + COUNT( * ) * + 22 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-6108
SELECT ALL + COUNT ( * ) * + 22 AS col2
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-6109
SELECT + + ( - 61 ) DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-6109
SELECT + + ( - 61 ) / + 92
----
0

query I rowsort
SELECT - + 17 * - 80
----
1360

query I rowsort
SELECT + 76 - - + 43 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT - - COUNT( * ) * 15 + - 0 - + COUNT( * ) * - 20 col0
----
35

skipif mysql # not compatible
query I rowsort label-6112
SELECT - - COUNT ( * ) * 15 + - 0 - + COUNT ( * ) * - 20 col0
----
35

query I rowsort
SELECT ALL - 37 + - 93
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT + MAX( - 39 ) + + 84
----
45

skipif mysql # not compatible
query I rowsort label-6114
SELECT + MAX ( - 39 ) + + 84
----
45

query I rowsort
SELECT + 3 + - + 64 + + - 80
----
-141

onlyif mysql # aggregate syntax: 
query II rowsort label-6116
SELECT - 77 * - SUM( - 76 ) AS col2, 52 * - 16 AS col0
----
-5852
-832

skipif mysql # not compatible
query II rowsort label-6116
SELECT - 77 * - SUM ( - 76 ) AS col2, 52 * - 16 AS col0
----
-5852
-832

query II rowsort
SELECT + 28 col2, - 80 AS col1
----
28
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-6118
SELECT DISTINCT 19 DIV 86 * + 89 + 88 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT 19 / 86 * + 89 + 88 AS col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6119
SELECT DISTINCT + CAST( + COUNT( + 66 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT + CAST ( + COUNT ( + 66 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6120
SELECT ALL 93 DIV - COUNT( * ) + - - 22 * - 87
----
-2007

skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL 93 / - COUNT ( * ) + - - 22 * - 87
----
-2007

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6121
SELECT + 87 DIV - 84 + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6121
SELECT + 87 / - 84 + - COUNT ( * )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6122
SELECT - ( CAST( 26 AS SIGNED ) ) + - 88 + + - 64 + + 40
----
-138

skipif mysql # not compatible
query I rowsort label-6122
SELECT - ( CAST ( 26 AS INTEGER ) ) + - 88 + + - 64 + + 40
----
-138

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6123
SELECT - 16 * - CAST( + + CASE ( - 29 ) WHEN - MAX( ALL - - COALESCE ( - 91, + 24, 33 ) ) + 53 THEN + 72 END AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6123
SELECT - 16 * - CAST ( + + CASE ( - 29 ) WHEN - MAX ( ALL - - COALESCE ( - 91, + 24, 33 ) ) + 53 THEN + 72 END AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6124
SELECT CAST( NULL AS SIGNED ) * - COALESCE ( - CAST( - COUNT( * ) AS SIGNED ), + SUM( DISTINCT - 8 ), - 60 * - + 14 * + + ( - CAST( NULL AS SIGNED ) ) ) + - 44 + - + 24 * + + 46 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6124
SELECT CAST ( NULL AS INTEGER ) * - COALESCE ( - CAST ( - COUNT ( * ) AS INTEGER ), + SUM ( DISTINCT - 8 ), - 60 * - + 14 * + + ( - CAST ( NULL AS INTEGER ) ) ) + - 44 + - + 24 * + + 46 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6125
SELECT + 93 - - + CAST( + 50 AS SIGNED )
----
143

skipif mysql # not compatible
query I rowsort label-6125
SELECT + 93 - - + CAST ( + 50 AS INTEGER )
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT ALL - ( - + 86 ) * + MAX( - ( - 54 ) ) AS col2
----
4644

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL - ( - + 86 ) * + MAX ( - ( - 54 ) ) AS col2
----
4644

query I rowsort
SELECT - CASE 8 WHEN - 98 * + 39 THEN + 77 WHEN 6 THEN NULL END + + 3 + - 52 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT - 80 * + 44 * - COUNT( * ) AS col0
----
3520

skipif mysql # not compatible
query I rowsort label-6128
SELECT - 80 * + 44 * - COUNT ( * ) AS col0
----
3520

query I rowsort
SELECT NULLIF ( + 85, - + 49 - COALESCE ( - 99, - - 27 ) * + 75 * + + 87 )
----
85

query I rowsort
SELECT ALL - 42 * + 54 AS col0
----
-2268

query III rowsort
SELECT DISTINCT 17 * + 46 - 83 AS col0, - NULLIF ( - + 80, - - 74 * 68 ) * 27, - 72 AS col1
----
699
2160
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6132
SELECT ALL ( + COUNT( * ) ) DIV + CAST( 39 AS SIGNED ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL ( + COUNT ( * ) ) / + CAST ( 39 AS INTEGER ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT ALL - ( + - ( - - 26 ) ) * 44 * + + 83 - - 96 + - 71 * - MIN( 9 ) * + 34 + 61 AS col2
----
116835

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL - ( + - ( - - 26 ) ) * 44 * + + 83 - - 96 + - 71 * - MIN ( 9 ) * + 34 + 61 AS col2
----
116835

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT - COUNT( * ) * + 62 * + + 80
----
-4960

skipif mysql # not compatible
query I rowsort label-6134
SELECT - COUNT ( * ) * + 62 * + + 80
----
-4960

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT - ( + 40 ) * + 3 * 55 * + 37 * 65 + - 94 / - 2 + + CASE WHEN NOT ( - 13 ) BETWEEN 54 + + MIN( ALL - 86 ) AND 78 THEN + COUNT( + 26 ) END * - SUM( ALL 83 ) * COUNT( * ) - + 45 + - - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-6135
SELECT - ( + 40 ) * + 3 * 55 * + 37 * 65 + - 94 / - 2 + + CASE WHEN NOT ( - 13 ) BETWEEN 54 + + MIN ( ALL - 86 ) AND 78 THEN + COUNT ( + 26 ) END * - SUM ( ALL 83 ) * COUNT ( * ) - + 45 + - - 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT - 36 * + + COUNT( + 21 ) * + 32
----
-1152

skipif mysql # not compatible
query I rowsort label-6136
SELECT - 36 * + + COUNT ( + 21 ) * + 32
----
-1152

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT ALL + - MIN( - 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL + - MIN ( - 74 ) AS col0
----
74

query I rowsort
SELECT - + CASE + + 21 WHEN 34 - + 27 * + 61 THEN - - 19 + + 82 WHEN + - 9 THEN - 10 END + + 39
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6139
SELECT + 32 + - + COUNT( * ) DIV - - MIN( + + COALESCE ( + 63, + 91 ) ) + + ( - ( + COUNT( * ) ) ) + 87 AS col2
----
118

skipif mysql # not compatible
query I rowsort label-6139
SELECT + 32 + - + COUNT ( * ) / - - MIN ( + + COALESCE ( + 63, + 91 ) ) + + ( - ( + COUNT ( * ) ) ) + 87 AS col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT - - 87 * - - SUM( ALL + - 54 )
----
-4698

skipif mysql # not compatible
query I rowsort label-6140
SELECT - - 87 * - - SUM ( ALL + - 54 )
----
-4698

query I rowsort
SELECT - + ( 47 ) col2
----
-47

query I rowsort
SELECT DISTINCT - 49 * 98
----
-4802

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT + NULLIF ( + 66, - COUNT( * ) ) + - - 32 - + + 20
----
78

skipif mysql # not compatible
query I rowsort label-6143
SELECT + NULLIF ( + 66, - COUNT ( * ) ) + - - 32 - + + 20
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT DISTINCT - 99 * 25 * - COUNT( * ) * - - 68 AS col1
----
168300

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT - 99 * 25 * - COUNT ( * ) * - - 68 AS col1
----
168300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6145
SELECT + COUNT( * ) DIV + + 70 + + - 89 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-6145
SELECT + COUNT ( * ) / + + 70 + + - 89 AS col0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6146
SELECT ALL CAST( NULL AS DECIMAL ) + 45 * - 16 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6146
SELECT ALL CAST ( NULL AS REAL ) + 45 * - 16 + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6147
SELECT + 74 + - 72 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6147
SELECT + 74 + - 72 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 79 - + 34 + - - 59
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6149
SELECT ALL CAST( NULL AS SIGNED ) / + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL CAST ( NULL AS INTEGER ) / + 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6150
SELECT + - 11 / - + CAST( NULL AS SIGNED ) + - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6150
SELECT + - 11 / - + CAST ( NULL AS INTEGER ) + - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT - 24 AS col1, + 68 * 6 * + NULLIF ( - 32, + 99 )
----
-24
-13056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6152
SELECT ALL - COUNT( * ) + 10 - - MAX( ALL 12 ) DIV - + 7
----
8

skipif mysql # not compatible
query I rowsort label-6152
SELECT ALL - COUNT ( * ) + 10 - - MAX ( ALL 12 ) / - + 7
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6153
SELECT 79 + 82 / + 45 + + 71 * - - CASE + 4 WHEN + + 28 * + COUNT( * ) + 9 - 94 THEN + 48 + + + 37 + - 32 + COALESCE ( + 17, - COUNT( * ) * + - CAST( + AVG ( ALL - 51 ) AS DECIMAL ) ) ELSE NULL END AS col1, - 26 - CASE - 67 WHEN + 81 THEN ( - 11 ) ELSE NULL END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6153
SELECT 79 + 82 / + 45 + + 71 * - - CASE + 4 WHEN + + 28 * + COUNT ( * ) + 9 - 94 THEN + 48 + + + 37 + - 32 + COALESCE ( + 17, - COUNT ( * ) * + - CAST ( + AVG ( ALL - 51 ) AS REAL ) ) ELSE NULL END AS col1, - 26 - CASE - 67 WHEN + 81 THEN ( - 11 ) ELSE NULL END AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6154
SELECT CAST( - 19 AS SIGNED ) + ( - + 5 ) + ( - 90 ) - - - COUNT( * ) * + - ( - 48 ) * + 29
----
-1506

skipif mysql # not compatible
query I rowsort label-6154
SELECT CAST ( - 19 AS INTEGER ) + ( - + 5 ) + ( - 90 ) - - - COUNT ( * ) * + - ( - 48 ) * + 29
----
-1506

onlyif mysql # aggregate syntax: 
query II rowsort label-6155
SELECT - 34 AS col0, + COUNT( * ) AS col0
----
-34
1

skipif mysql # not compatible
query II rowsort label-6155
SELECT - 34 AS col0, + COUNT ( * ) AS col0
----
-34
1

query I rowsort
SELECT 73 * 87 * - 59 + - - 79 * 11 * + 32 AS col2
----
-346901

query II rowsort
SELECT DISTINCT 64 - + - 56 AS col2, 6 + - - ( + 6 ) AS col1
----
120
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6158
SELECT 37 DIV - 74 + + 93 * - CASE - 47 WHEN + COUNT( * ) THEN NULL ELSE + MIN( - 48 ) - - + ( 93 ) * 52 * CAST( 22 AS SIGNED ) END AS col0
----
-9889992

skipif mysql # not compatible
query I rowsort label-6158
SELECT 37 / - 74 + + 93 * - CASE - 47 WHEN + COUNT ( * ) THEN NULL ELSE + MIN ( - 48 ) - - + ( 93 ) * 52 * CAST ( 22 AS INTEGER ) END AS col0
----
-9889992

query II rowsort
SELECT ALL - 63 AS col1, - 63 * ( + 58 ) AS col1
----
-63
-3654

onlyif mysql # aggregate syntax: 
query II rowsort label-6160
SELECT DISTINCT - 75 AS col0, 50 * + - 4 * COUNT( * ) + ( + 1 ) * - 81 AS col2
----
-75
-281

skipif mysql # not compatible
query II rowsort label-6160
SELECT DISTINCT - 75 AS col0, 50 * + - 4 * COUNT ( * ) + ( + 1 ) * - 81 AS col2
----
-75
-281

query I rowsort
SELECT 14 * - 5 * 80 * - ( 38 ) AS col0
----
212800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6162
SELECT DISTINCT + CAST( - COALESCE ( + + 88, - 49 ) AS SIGNED ) * 43
----
-3784

skipif mysql # not compatible
query I rowsort label-6162
SELECT DISTINCT + CAST ( - COALESCE ( + + 88, - 49 ) AS INTEGER ) * 43
----
-3784

query I rowsort
SELECT ( 4 ) * + 48 AS col2
----
192

query I rowsort
SELECT - 38 * + + 3 - + - 88
----
-26

query I rowsort
SELECT 39 * + 57
----
2223

query II rowsort
SELECT ALL - 76 AS col0, + 95 AS col1
----
-76
95

query I rowsort
SELECT ALL + + 31 * + 15 AS col2
----
465

onlyif mysql # DIV for integer division: 
query I rowsort label-6168
SELECT 97 DIV - - 1
----
97

skipif mysql # not compatible
query I rowsort label-6168
SELECT 97 / - - 1
----
97

query I rowsort
SELECT ALL + 11 * 19 col0
----
209

onlyif mysql # DIV for integer division: 
query II rowsort label-6170
SELECT 93 AS col1, - 58 + - 61 - + 9 + - 28 * 48 + - 76 DIV 63 * + - 10 col1
----
93
-1462

skipif mysql # not compatible
query II rowsort label-6170
SELECT 93 AS col1, - 58 + - 61 - + 9 + - 28 * 48 + - 76 / 63 * + - 10 col1
----
93
-1462

query I rowsort
SELECT ALL + 61 * 50 * + COALESCE ( 41, + + 28, + + 80 + + 39 )
----
125050

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT - 92 * - - 92 * MAX( - 53 )
----
448592

skipif mysql # not compatible
query I rowsort label-6172
SELECT - 92 * - - 92 * MAX ( - 53 )
----
448592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6173
SELECT DISTINCT - CAST( + + 29 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-6173
SELECT DISTINCT - CAST ( + + 29 AS INTEGER )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6174
SELECT - 68 * CAST( + 51 AS SIGNED ) * + + COUNT( * ) + - 40
----
-3508

skipif mysql # not compatible
query I rowsort label-6174
SELECT - 68 * CAST ( + 51 AS INTEGER ) * + + COUNT ( * ) + - 40
----
-3508

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT - + CASE + COUNT( * ) WHEN - - 4 + - COUNT( * ) THEN + 93 * - 67 WHEN COUNT( * ) THEN NULL ELSE 91 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6175
SELECT - + CASE + COUNT ( * ) WHEN - - 4 + - COUNT ( * ) THEN + 93 * - 67 WHEN COUNT ( * ) THEN NULL ELSE 91 END AS col0
----
NULL

query I rowsort
SELECT 45 * - + 4 AS col2
----
-180

query I rowsort
SELECT + 42 + 82 - + 91 + ( 97 ) * 75 + - 92 + + 26 AS col1
----
7242

onlyif mysql # aggregate syntax: 
query II rowsort label-6178
SELECT ALL + COUNT( * ), + 74 AS col2
----
1
74

skipif mysql # not compatible
query II rowsort label-6178
SELECT ALL + COUNT ( * ), + 74 AS col2
----
1
74

query I rowsort
SELECT ALL - - 47 + 88 AS col1
----
135

query I rowsort
SELECT ALL 38 + 52 + + + ( + + ( + 99 ) ) * - 39
----
-3771

onlyif mysql # aggregate syntax: 
query II rowsort label-6181
SELECT - COUNT( * ) * 30 + - - 10 - + 63 AS col1, + 21 AS col1
----
-83
21

skipif mysql # not compatible
query II rowsort label-6181
SELECT - COUNT ( * ) * 30 + - - 10 - + 63 AS col1, + 21 AS col1
----
-83
21

query II rowsort
SELECT DISTINCT + 31 + + 42 + + 13 AS col0, 17
----
86
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT DISTINCT COALESCE ( - 75, - ( + + 27 ) + 35 * + 3 ) + + - COUNT( - 63 ) + 23
----
-53

skipif mysql # not compatible
query I rowsort label-6183
SELECT DISTINCT COALESCE ( - 75, - ( + + 27 ) + 35 * + 3 ) + + - COUNT ( - 63 ) + 23
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT CASE - 4 WHEN - 63 / + 77 + - - 14 + - + 58 * + 2 * - + 95 + 41 + - + 29 * + + 30 THEN - 58 * + ( + 9 ) * - - 89 + COUNT( - ( 76 ) ) END + - ( + 21 ) - - + COALESCE ( 63, - + CASE + - 17 WHEN CASE - 25 WHEN + 84 * - 89 THEN + NULLIF ( 79, - 86 * + 32 ) END THEN + 70 WHEN + 0 THEN NULL WHEN 11 * 96 THEN + 16 * + 0 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT CASE - 4 WHEN - 63 / + 77 + - - 14 + - + 58 * + 2 * - + 95 + 41 + - + 29 * + + 30 THEN - 58 * + ( + 9 ) * - - 89 + COUNT ( - ( 76 ) ) END + - ( + 21 ) - - + COALESCE ( 63, - + CASE + - 17 WHEN CASE - 25 WHEN + 84 * - 89 THEN + NULLIF ( 79, - 86 * + 32 ) END THEN + 70 WHEN + 0 THEN NULL WHEN 11 * 96 THEN + 16 * + 0 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT 79 + - - COUNT( * ) - - 12 col2
----
92

skipif mysql # not compatible
query I rowsort label-6185
SELECT 79 + - - COUNT ( * ) - - 12 col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6186
SELECT CAST( NULL AS SIGNED ) * - + MIN( DISTINCT - - 15 ) * + - 8 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6186
SELECT CAST ( NULL AS INTEGER ) * - + MIN ( DISTINCT - - 15 ) * + - 8 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6187
SELECT CASE - - 59 WHEN - - 4 + + + COALESCE ( - CAST( NULL AS SIGNED ), + 15 ) THEN 96 * - 57 WHEN CAST( NULL AS SIGNED ) * - 73 + 1 / + 81 THEN NULL ELSE NULL END + - - CASE + 71 WHEN - + 96 THEN + 73 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6187
SELECT CASE - - 59 WHEN - - 4 + + + COALESCE ( - CAST ( NULL AS INTEGER ), + 15 ) THEN 96 * - 57 WHEN CAST ( NULL AS INTEGER ) * - 73 + 1 / + 81 THEN NULL ELSE NULL END + - - CASE + 71 WHEN - + 96 THEN + 73 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6188
SELECT DISTINCT ( - + 82 ) DIV + + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT ( - + 82 ) / + + 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT DISTINCT 66 * COUNT( * ) - - 40
----
106

skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT 66 * COUNT ( * ) - - 40
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6190
SELECT ALL 63 DIV - + ( + - COUNT( * ) )
----
63

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL 63 / - + ( + - COUNT ( * ) )
----
63

query I rowsort
SELECT 98 * - 23
----
-2254

onlyif mysql # DIV for integer division: 
query I rowsort label-6192
SELECT 79 DIV 6 + 11
----
24

skipif mysql # not compatible
query I rowsort label-6192
SELECT 79 / 6 + 11
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT ALL 15 * - ( COUNT( * ) ) * + SUM( + 13 )
----
-195

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL 15 * - ( COUNT ( * ) ) * + SUM ( + 13 )
----
-195

onlyif mysql # aggregate syntax: 
query II rowsort label-6194
SELECT 4 + - COUNT( * ), - 8 * + + 57 * + + COUNT( * ) AS col0
----
3
-456

skipif mysql # not compatible
query II rowsort label-6194
SELECT 4 + - COUNT ( * ), - 8 * + + 57 * + + COUNT ( * ) AS col0
----
3
-456

query I rowsort
SELECT 49 - + + 62
----
-13

query I rowsort
SELECT ALL + 82 + - - 6 AS col2
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-6197
SELECT DISTINCT 41 + COUNT( * ), + COUNT( * ) AS col1
----
42
1

skipif mysql # not compatible
query II rowsort label-6197
SELECT DISTINCT 41 + COUNT ( * ), + COUNT ( * ) AS col1
----
42
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6198
SELECT + 90 DIV 54 + 36 + 23 * + 8 AS col0, 43 AS col2
----
221
43

skipif mysql # not compatible
query II rowsort label-6198
SELECT + 90 / 54 + 36 + 23 * + 8 AS col0, 43 AS col2
----
221
43

query I rowsort
SELECT DISTINCT + + ( + - 53 ) + - ( + 24 )
----
-77

query I rowsort
SELECT ALL - + 24 + + 92
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6201
SELECT + COUNT( * ) * - - CAST( COALESCE ( 93, SUM( DISTINCT - 29 ), - + CAST( + 16 AS SIGNED ) / + 27 ) AS SIGNED ) / + + CASE + 43 WHEN - - CAST( + + 86 AS SIGNED ) THEN - 28 * - COALESCE ( + 48, + + 63 ) END + + 27 + - 66 - + 91 * + 92 * - COUNT( * ) / NULLIF ( CASE - CAST( NULL AS SIGNED ) WHEN + 93 THEN - - 25 / 60 - - 15 ELSE + 37 * - 24 END, 60 * 97 + ( - 53 ) ) * ( 66 * + 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6201
SELECT + COUNT ( * ) * - - CAST ( COALESCE ( 93, SUM ( DISTINCT - 29 ), - + CAST ( + 16 AS INTEGER ) / + 27 ) AS INTEGER ) / + + CASE + 43 WHEN - - CAST ( + + 86 AS INTEGER ) THEN - 28 * - COALESCE ( + 48, + + 63 ) END + + 27 + - 66 - + 91 * + 92 * - COUNT ( * ) / NULLIF ( CASE - CAST ( NULL AS INTEGER ) WHEN + 93 THEN - - 25 / 60 - - 15 ELSE + 37 * - 24 END, 60 * 97 + ( - 53 ) ) * ( 66 * + 88 )
----
NULL

query I rowsort
SELECT ALL - + COALESCE ( - - 42, - 98 * - - 12, - + 45 * 58 + + - 9 - 22 ) * 83 * - + 79 + + 9
----
275403

query II rowsort
SELECT - 56 + + 73 AS col0, + 58
----
17
58

query I rowsort
SELECT DISTINCT - 17 * - - 98
----
-1666

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6205
SELECT DISTINCT + 58 + 15 / + 1 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6205
SELECT DISTINCT + 58 + 15 / + 1 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT DISTINCT MAX( - + 39 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT MAX ( - + 39 ) AS col1
----
-39

query I rowsort
SELECT - + 3 + - 49 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT - 18 * + COUNT( ALL + 35 ) * 41 + + 77 + - ( 85 ) col2
----
-746

skipif mysql # not compatible
query I rowsort label-6208
SELECT - 18 * + COUNT ( ALL + 35 ) * 41 + + 77 + - ( 85 ) col2
----
-746

query I rowsort
SELECT - 24 + 94 col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT ALL + COUNT( * ) - + 66 + + 4 + - COUNT( ALL 38 ) - - + 93 + + 24 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL + COUNT ( * ) - + 66 + + 4 + - COUNT ( ALL 38 ) - - + 93 + + 24 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT + 17 + - - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-6211
SELECT + 17 + - - COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-6212
SELECT DISTINCT CASE SUM( DISTINCT 12 ) WHEN + 3 THEN - + 43 ELSE 58 + + ( - 87 ) END, + 44 AS col0
----
-29
44

skipif mysql # not compatible
query II rowsort label-6212
SELECT DISTINCT CASE SUM ( DISTINCT 12 ) WHEN + 3 THEN - + 43 ELSE 58 + + ( - 87 ) END, + 44 AS col0
----
-29
44

onlyif mysql # aggregate syntax: 
query II rowsort label-6213
SELECT ALL COUNT( * ), 55 col1
----
1
55

skipif mysql # not compatible
query II rowsort label-6213
SELECT ALL COUNT ( * ), 55 col1
----
1
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT ALL + 19 - + 7 + + 2 * 35 * - 55 * + SUM( - 76 ) AS col2
----
292612

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL + 19 - + 7 + + 2 * 35 * - 55 * + SUM ( - 76 ) AS col2
----
292612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6215
SELECT - 88 AS col0, 82 + - NULLIF ( + 64, CASE + 98 WHEN + 94 + - NULLIF ( - CAST( - - 49 AS SIGNED ), - 25 + - + 69 ) + 70 * + - 14 * + 15 THEN + COALESCE ( - 60, - + 62 * ( - 4 ) * COUNT( - 42 ) + - MAX( DISTINCT + - 28 ) - 89 * - + 77 * - - ( 84 ) ) WHEN + ( + 75 ) THEN NULL ELSE 96 * + ( 43 * COUNT( * ) ) END ) DIV - 16 col0
----
-88
86

skipif mysql # not compatible
query II rowsort label-6215
SELECT - 88 AS col0, 82 + - NULLIF ( + 64, CASE + 98 WHEN + 94 + - NULLIF ( - CAST ( - - 49 AS INTEGER ), - 25 + - + 69 ) + 70 * + - 14 * + 15 THEN + COALESCE ( - 60, - + 62 * ( - 4 ) * COUNT ( - 42 ) + - MAX ( DISTINCT + - 28 ) - 89 * - + 77 * - - ( 84 ) ) WHEN + ( + 75 ) THEN NULL ELSE 96 * + ( 43 * COUNT ( * ) ) END ) / - 16 col0
----
-88
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT ALL ( COUNT( * ) ) * - - 19
----
19

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL ( COUNT ( * ) ) * - - 19
----
19

query I rowsort
SELECT - 81 + 0 col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT - 57 + + 57 * - 84 * - COUNT( * ) * + CASE - - 79 WHEN + + 93 * - - 63 THEN + - 71 + ( - COUNT( ALL ( - 27 ) ) ) + + - COUNT( * ) / + + COUNT( * ) - 13 - + - 67 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6218
SELECT - 57 + + 57 * - 84 * - COUNT ( * ) * + CASE - - 79 WHEN + + 93 * - - 63 THEN + - 71 + ( - COUNT ( ALL ( - 27 ) ) ) + + - COUNT ( * ) / + + COUNT ( * ) - 13 - + - 67 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + 83 * - 12 * + - ( + - 17 ) AS col0, - 74 * + 97 col0
----
-16932
-7178

query II rowsort
SELECT - 53 AS col1, 52 col0
----
-53
52

query II rowsort
SELECT 66 AS col1, + 76
----
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT DISTINCT 74 * - + SUM( DISTINCT 97 ) col0
----
-7178

skipif mysql # not compatible
query I rowsort label-6222
SELECT DISTINCT 74 * - + SUM ( DISTINCT 97 ) col0
----
-7178

query I rowsort
SELECT - 80 * + 21
----
-1680

query I rowsort
SELECT ( + - 15 ) col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6225
SELECT + 29 * - 25 * - CASE + 96 WHEN ( 8 ) THEN NULL WHEN + - ( 18 ) THEN - 33 * + MIN( DISTINCT + 81 ) * - MAX( DISTINCT - + 37 ) - - COUNT( * ) + + 31 * + - 36 * + CAST( NULL AS DECIMAL ) + - 8 + - 38 * + 89 * - CAST( NULL AS DECIMAL ) END + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT + 29 * - 25 * - CASE + 96 WHEN ( 8 ) THEN NULL WHEN + - ( 18 ) THEN - 33 * + MIN ( DISTINCT + 81 ) * - MAX ( DISTINCT - + 37 ) - - COUNT ( * ) + + 31 * + - 36 * + CAST ( NULL AS REAL ) + - 8 + - 38 * + 89 * - CAST ( NULL AS REAL ) END + + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT + + MAX( - - 58 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-6226
SELECT + + MAX ( - - 58 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6227
SELECT ALL + COUNT( * ) AS col1, 42
----
1
42

skipif mysql # not compatible
query II rowsort label-6227
SELECT ALL + COUNT ( * ) AS col1, 42
----
1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT DISTINCT + 39 * 75 + - COUNT( * )
----
2924

skipif mysql # not compatible
query I rowsort label-6228
SELECT DISTINCT + 39 * 75 + - COUNT ( * )
----
2924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6229
SELECT + - 76 * + 85 * + - 5 + 51 DIV + + 35 + MIN( DISTINCT 9 )
----
32310

skipif mysql # not compatible
query I rowsort label-6229
SELECT + - 76 * + 85 * + - 5 + 51 / + + 35 + MIN ( DISTINCT 9 )
----
32310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6230
SELECT ALL - ( - 69 ) * - - 6 + - 67 + 54 + - + 98 * CAST( NULL AS SIGNED ) * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL - ( - 69 ) * - - 6 + - 67 + 54 + - + 98 * CAST ( NULL AS INTEGER ) * 51
----
NULL

query I rowsort
SELECT - 76 * ( - 12 ) + + 25 - - 8 + + 75
----
1020

query II rowsort
SELECT - 51, 26 AS col1
----
-51
26

query II rowsort
SELECT + + 90 - + - 80 + 63 + - 38, 14 AS col0
----
195
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6234
SELECT ALL - COUNT( * ) * 51 + + 84 DIV - 90 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL - COUNT ( * ) * 51 + + 84 / - 90 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-6235
SELECT DISTINCT + + COUNT( * ) AS col2, + 24 * MAX( DISTINCT 40 )
----
1
960

skipif mysql # not compatible
query II rowsort label-6235
SELECT DISTINCT + + COUNT ( * ) AS col2, + 24 * MAX ( DISTINCT 40 )
----
1
960

query I rowsort
SELECT + 13 * - 88 + - ( + 48 ) * + 95 + + 93 + 48 AS col0
----
-5563

query II rowsort
SELECT + - 75 AS col1, 30 + - 16
----
-75
14

query II rowsort
SELECT ALL + + 37, + 43 + + 40 AS col2
----
37
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6239
SELECT - COUNT( * ) * 13 + - 13 DIV - - 61 - + 47 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-6239
SELECT - COUNT ( * ) * 13 + - 13 / - - 61 - + 47 AS col0
----
-60

query II rowsort
SELECT DISTINCT + 80 AS col1, - NULLIF ( - + 53, + 15 ) AS col2
----
80
53

query II rowsort
SELECT DISTINCT - 95 AS col0, - 37
----
-95
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6242
SELECT - CAST( + ( + 41 ) AS SIGNED ), 14 AS col1
----
-41
14

skipif mysql # not compatible
query II rowsort label-6242
SELECT - CAST ( + ( + 41 ) AS INTEGER ), 14 AS col1
----
-41
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6243
SELECT ALL + 65 * - ( CAST( NULL AS SIGNED ) ) * + 9 - COALESCE ( + - 18, 18 + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL + 65 * - ( CAST ( NULL AS INTEGER ) ) * + 9 - COALESCE ( + - 18, 18 + 91 )
----
NULL

query I rowsort
SELECT + 94 * + 47 * 25
----
110450

query I rowsort
SELECT - 0 * - 7 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6246
SELECT + ( - 48 ) + - - ( - + 7 ) + + ( CAST( + 54 AS SIGNED ) ) * + - 51 + - COUNT( ALL + 5 ) * 58 * + 1
----
-2867

skipif mysql # not compatible
query I rowsort label-6246
SELECT + ( - 48 ) + - - ( - + 7 ) + + ( CAST ( + 54 AS INTEGER ) ) * + - 51 + - COUNT ( ALL + 5 ) * 58 * + 1
----
-2867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6247
SELECT - CAST( + 91 AS SIGNED ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-6247
SELECT - CAST ( + 91 AS INTEGER ) AS col0
----
-91

query I rowsort
SELECT ALL 52 - 40 AS col2
----
12

query II rowsort
SELECT ALL - COALESCE ( - 82, + 80 ) * - 26, 10 - - 17 col2
----
-2132
27

query I rowsort
SELECT ALL + 87 - + 79
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-6251
SELECT ALL MIN( 65 ), 37 AS col0
----
65
37

skipif mysql # not compatible
query II rowsort label-6251
SELECT ALL MIN ( 65 ), 37 AS col0
----
65
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6252
SELECT ALL COALESCE ( + + ( - 64 ), + CAST( NULL AS SIGNED ) * - - 33, 45 )
----
-64

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL COALESCE ( + + ( - 64 ), + CAST ( NULL AS INTEGER ) * - - 33, 45 )
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-6253
SELECT - 86 DIV - 67
----
1

skipif mysql # not compatible
query I rowsort label-6253
SELECT - 86 / - 67
----
1

query II rowsort
SELECT - COALESCE ( - 54, + - ( + 33 ) ) AS col2, + 34 AS col0
----
54
34

query I rowsort
SELECT - 74 + - 19
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT ALL - CASE COUNT( * ) WHEN + - 23 * 90 * 31 THEN + + 66 + - 24 + - + 16 WHEN + 77 + AVG ( - + 4 ) - + 19 THEN 76 * + 60 + + COUNT( * ) ELSE NULL END + + + 64 + + - 60 - 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL - CASE COUNT ( * ) WHEN + - 23 * 90 * 31 THEN + + 66 + - 24 + - + 16 WHEN + 77 + AVG ( - + 4 ) - + 19 THEN 76 * + 60 + + COUNT ( * ) ELSE NULL END + + + 64 + + - 60 - 84 AS col0
----
NULL

query I rowsort
SELECT - 50 + - 72
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6258
SELECT - 68 - 53 AS col2, ( MAX( DISTINCT + - CAST( + 86 AS SIGNED ) ) )
----
-121
-86

skipif mysql # not compatible
query II rowsort label-6258
SELECT - 68 - 53 AS col2, ( MAX ( DISTINCT + - CAST ( + 86 AS INTEGER ) ) )
----
-121
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT DISTINCT + CASE + ( - 51 ) WHEN - 26 + - 54 THEN - + MIN( DISTINCT 80 ) WHEN + - 50 * 25 / COALESCE ( - - COUNT( * ), - MAX( 56 ) ) + - 32 THEN COUNT( ALL 84 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT + CASE + ( - 51 ) WHEN - 26 + - 54 THEN - + MIN ( DISTINCT 80 ) WHEN + - 50 * 25 / COALESCE ( - - COUNT ( * ), - MAX ( 56 ) ) + - 32 THEN COUNT ( ALL 84 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6260
SELECT ALL - + 30 DIV + 46 + - ( + 81 ) + - 96
----
-177

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL - + 30 / + 46 + - ( + 81 ) + - 96
----
-177

onlyif mysql # aggregate syntax: 
query II rowsort label-6261
SELECT + 28 * + MAX( DISTINCT + + 97 ) + ( - 16 ) AS col2, 37 AS col0
----
2700
37

skipif mysql # not compatible
query II rowsort label-6261
SELECT + 28 * + MAX ( DISTINCT + + 97 ) + ( - 16 ) AS col2, 37 AS col0
----
2700
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6262
SELECT DISTINCT CAST( - COUNT( ALL ( + 33 ) ) AS SIGNED ) * - 2 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6262
SELECT DISTINCT CAST ( - COUNT ( ALL ( + 33 ) ) AS INTEGER ) * - 2 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6263
SELECT CAST( - - 79 AS SIGNED ) col0
----
79

skipif mysql # not compatible
query I rowsort label-6263
SELECT CAST ( - - 79 AS INTEGER ) col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6264
SELECT DISTINCT - 83 * CASE - - 79 WHEN - + 4 THEN NULL WHEN - + 92 * + CAST( + COUNT( * ) AS DECIMAL ) * + 29 * 85 THEN + + SUM( - 25 ) END + - 55 * 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6264
SELECT DISTINCT - 83 * CASE - - 79 WHEN - + 4 THEN NULL WHEN - + 92 * + CAST ( + COUNT ( * ) AS REAL ) * + 29 * 85 THEN + + SUM ( - 25 ) END + - 55 * 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6265
SELECT - 48 * + + 69 + - 81 + COUNT( * ) + 38, + 75 * + COALESCE ( + - 57, - 60 * 55 - + 19 * + 22 * - 27 ) AS col2
----
-3354
-4275

skipif mysql # not compatible
query II rowsort label-6265
SELECT - 48 * + + 69 + - 81 + COUNT ( * ) + 38, + 75 * + COALESCE ( + - 57, - 60 * 55 - + 19 * + 22 * - 27 ) AS col2
----
-3354
-4275

query I rowsort
SELECT DISTINCT - - 3 col0
----
3

query I rowsort
SELECT ALL + 58 - - 80 - + - 13 AS col2
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-6268
SELECT DISTINCT 87 DIV - ( - - 90 )
----
0

skipif mysql # not compatible
query I rowsort label-6268
SELECT DISTINCT 87 / - ( - - 90 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6269
SELECT DISTINCT COALESCE ( NULLIF ( + 10, - COUNT( - ( 21 ) ) ), 31 ) DIV ( - 86 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT COALESCE ( NULLIF ( + 10, - COUNT ( - ( 21 ) ) ), 31 ) / ( - 86 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT ALL + SUM( - - 57 ) - + 94 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL + SUM ( - - 57 ) - + 94 AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6271
SELECT - + 69 * + + 86 + - COUNT( * ) + 24 * + CAST( NULL AS DECIMAL ) + AVG ( - + ( 82 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6271
SELECT - + 69 * + + 86 + - COUNT ( * ) + 24 * + CAST ( NULL AS REAL ) + AVG ( - + ( 82 ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6272
SELECT 69 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-6272
SELECT 69 / 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT - 1 * + COUNT( * ) + 76 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-6273
SELECT - 1 * + COUNT ( * ) + 76 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT 89 + 4 * + COUNT( ALL ( + 54 ) ) - - + 15
----
108

skipif mysql # not compatible
query I rowsort label-6274
SELECT 89 + 4 * + COUNT ( ALL ( + 54 ) ) - - + 15
----
108

query I rowsort
SELECT DISTINCT 12 * 66 AS col2
----
792

query I rowsort
SELECT ALL 46 * + 10 * - 77
----
-35420

query I rowsort
SELECT 10 * - 87 * - + 35 + + + 68
----
30518

onlyif mysql # aggregate syntax: 
query II rowsort label-6278
SELECT 91 AS col1, MIN( + + ( 83 ) )
----
91
83

skipif mysql # not compatible
query II rowsort label-6278
SELECT 91 AS col1, MIN ( + + ( 83 ) )
----
91
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6279
SELECT CAST( NULL AS SIGNED ) + - MAX( ALL 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6279
SELECT CAST ( NULL AS INTEGER ) + - MAX ( ALL 1 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6280
SELECT 33 + - 36 + - COUNT( * ) * - 26 DIV - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-6280
SELECT 33 + - 36 + - COUNT ( * ) * - 26 / - COUNT ( * )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6281
SELECT ALL CAST( + CASE + 89 WHEN - - 66 + - - COUNT( * ) * 99 THEN 69 / CAST( NULL AS SIGNED ) * + + 85 * COUNT( * ) END AS DECIMAL ) + + CAST( NULL AS SIGNED ) * - NULLIF ( - 9, - - 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL CAST ( + CASE + 89 WHEN - - 66 + - - COUNT ( * ) * 99 THEN 69 / CAST ( NULL AS INTEGER ) * + + 85 * COUNT ( * ) END AS REAL ) + + CAST ( NULL AS INTEGER ) * - NULLIF ( - 9, - - 97 )
----
NULL

query I rowsort
SELECT 49 + + - 70 AS col1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6283
SELECT ALL + CAST( NULL AS SIGNED ) + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL + CAST ( NULL AS INTEGER ) + 9
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6284
SELECT DISTINCT MAX( + 25 ) DIV + 17
----
1

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT MAX ( + 25 ) / + 17
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT ALL 57 + + COUNT( * ) - + 60 + + - 6 + - 3 * - + 87 * - + 39
----
-10187

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL 57 + + COUNT ( * ) - + 60 + + - 6 + - 3 * - + 87 * - + 39
----
-10187

query I rowsort
SELECT ALL + 93 * + + 27 AS col1
----
2511

query II rowsort
SELECT 7 AS col1, - 80
----
7
-80

query I rowsort
SELECT DISTINCT 92 + - + 80 * + + CASE - 31 WHEN 34 THEN - ( - 56 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6289
SELECT ALL - + 92 + - CAST( NULL AS SIGNED ) + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL - + 92 + - CAST ( NULL AS INTEGER ) + + 94
----
NULL

query II rowsort
SELECT 40, - 99 col2
----
40
-99

query I rowsort
SELECT 43 * - - 90 AS col2
----
3870

onlyif mysql # DIV for integer division: 
query I rowsort label-6292
SELECT 43 DIV - 89 + + + 18 + - 45 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-6292
SELECT 43 / - 89 + + + 18 + - 45 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT ALL + - COUNT( * ) - + COUNT( * ) + COUNT( + + 6 ) + MAX( + - 15 ) + - 69
----
-85

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL + - COUNT ( * ) - + COUNT ( * ) + COUNT ( + + 6 ) + MAX ( + - 15 ) + - 69
----
-85

query I rowsort
SELECT 12 * - 75 AS col2
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT DISTINCT - + CASE - 23 WHEN 7 + + + 65 + + 54 + + 87 / - 87 THEN + ( 3 ) WHEN - 20 THEN + 46 WHEN + 61 * + - COUNT( * ) THEN NULL END * - - 48 * - 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6295
SELECT DISTINCT - + CASE - 23 WHEN 7 + + + 65 + + 54 + + 87 / - 87 THEN + ( 3 ) WHEN - 20 THEN + 46 WHEN + 61 * + - COUNT ( * ) THEN NULL END * - - 48 * - 41 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT ALL + 27 - - + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL + 27 - - + COUNT ( * )
----
28

query I rowsort
SELECT - NULLIF ( - 40, - + 38 ) * ( 67 ) - + + 91 AS col2
----
2589

query II rowsort
SELECT + + 51 AS col0, + 72
----
51
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT 46 * + 8 - + 50 - - MIN( ALL 99 ) + 30 * + 13 + - 19
----
788

skipif mysql # not compatible
query I rowsort label-6299
SELECT 46 * + 8 - + 50 - - MIN ( ALL 99 ) + 30 * + 13 + - 19
----
788

query I rowsort
SELECT ALL + 77 * + - 59 AS col1
----
-4543

onlyif mysql # aggregate syntax: 
query II rowsort label-6301
SELECT MAX( ALL 53 ) + 5 AS col2, + 53 AS col1
----
58
53

skipif mysql # not compatible
query II rowsort label-6301
SELECT MAX ( ALL 53 ) + 5 AS col2, + 53 AS col1
----
58
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6302
SELECT CAST( NULL AS SIGNED ) * 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6302
SELECT CAST ( NULL AS INTEGER ) * 14 AS col1
----
NULL

query I rowsort
SELECT + 43 + 10 + + + 79 - 58 * - 78 * - - 51 + + 32 + + 85 AS col0
----
230973

query I rowsort
SELECT DISTINCT + 69 * + ( - - 57 )
----
3933

onlyif mysql # DIV for integer division: 
query I rowsort label-6305
SELECT ALL ( 90 ) DIV 51
----
1

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL ( 90 ) / 51
----
1

query I rowsort
SELECT 24 * + 52 - 60 AS col1
----
1188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6307
SELECT ( 19 ) / + CAST( NULL AS SIGNED ) + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-6307
SELECT ( 19 ) / + CAST ( NULL AS INTEGER ) + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT ALL MIN( DISTINCT + + 22 ) + 47
----
69

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL MIN ( DISTINCT + + 22 ) + 47
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6309
SELECT DISTINCT CAST( 20 AS SIGNED ) + - 78 + + 63 DIV 17 * - - SUM( ALL - 4 ) * - + ( 87 ) + + ( 51 ) AS col1, 3
----
1037
3

skipif mysql # not compatible
query II rowsort label-6309
SELECT DISTINCT CAST ( 20 AS INTEGER ) + - 78 + + 63 / 17 * - - SUM ( ALL - 4 ) * - + ( 87 ) + + ( 51 ) AS col1, 3
----
1037
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6310
SELECT COALESCE ( + COUNT( * ), - 15 - - CASE + 1 WHEN 91 THEN - 6 * - + 83 ELSE - 58 DIV + 40 * - + 70 END ) + - 79
----
-78

skipif mysql # not compatible
query I rowsort label-6310
SELECT COALESCE ( + COUNT ( * ), - 15 - - CASE + 1 WHEN 91 THEN - 6 * - + 83 ELSE - 58 / + 40 * - + 70 END ) + - 79
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-6311
SELECT ( + 70 ) DIV ( 15 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6311
SELECT ( + 70 ) / ( 15 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT ALL MIN( 13 ) + + 78 * - 12 * - 34 * - - COUNT( * ) - - 30 col1
----
31867

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL MIN ( 13 ) + + 78 * - 12 * - 34 * - - COUNT ( * ) - - 30 col1
----
31867

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6313
SELECT DISTINCT 16 + - + 16 - - 24 - + + COUNT( * ) DIV - - 69 * 23 * - 11
----
24

skipif mysql # not compatible
query I rowsort label-6313
SELECT DISTINCT 16 + - + 16 - - 24 - + + COUNT ( * ) / - - 69 * 23 * - 11
----
24

query I rowsort
SELECT ALL 39 + + - 41 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT COUNT( * ) + + 74 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-6315
SELECT COUNT ( * ) + + 74 AS col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6316
SELECT 98, + CASE + 75 WHEN - - 69 THEN - MIN( + + 97 ) * + COUNT( * ) + 41 / - - 49 * + 87 ELSE 22 END col0
----
98
22

skipif mysql # not compatible
query II rowsort label-6316
SELECT 98, + CASE + 75 WHEN - - 69 THEN - MIN ( + + 97 ) * + COUNT ( * ) + 41 / - - 49 * + 87 ELSE 22 END col0
----
98
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6317
SELECT + - 2 + 80 * - 42 * 22 * - 79 - - CASE 63 WHEN - NULLIF ( - CASE - 88 WHEN - CAST( NULL AS SIGNED ) THEN - + MAX( ALL - 97 ) * 2 ELSE NULL END, - ( + - 17 ) * + + 82 ) THEN - 7 * - 18 + - ( - - 58 ) - + 20 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6317
SELECT + - 2 + 80 * - 42 * 22 * - 79 - - CASE 63 WHEN - NULLIF ( - CASE - 88 WHEN - CAST ( NULL AS INTEGER ) THEN - + MAX ( ALL - 97 ) * 2 ELSE NULL END, - ( + - 17 ) * + + 82 ) THEN - 7 * - 18 + - ( - - 58 ) - + 20 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6318
SELECT ALL - SUM( + 53 ) - + 42 + + - NULLIF ( + 89, COALESCE ( - - 81, - MIN( ALL - 43 ) - - 64, - CAST( NULL AS SIGNED ) + 77 ) ) AS col0, + 22 AS col2
----
-184
22

skipif mysql # not compatible
query II rowsort label-6318
SELECT ALL - SUM ( + 53 ) - + 42 + + - NULLIF ( + 89, COALESCE ( - - 81, - MIN ( ALL - 43 ) - - 64, - CAST ( NULL AS INTEGER ) + 77 ) ) AS col0, + 22 AS col2
----
-184
22

onlyif mysql # DIV for integer division: 
query I rowsort label-6319
SELECT ALL ( - 75 ) DIV + 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL ( - 75 ) / + 83 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT + ( - NULLIF ( - 77, 43 + - 99 * - 97 * COUNT( * ) ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-6320
SELECT + ( - NULLIF ( - 77, 43 + - 99 * - 97 * COUNT ( * ) ) ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT 36 * + COALESCE ( 56, + + MAX( - 0 ) + - 98 ) * + 40 * 30 + - 48
----
2419152

skipif mysql # not compatible
query I rowsort label-6321
SELECT 36 * + COALESCE ( 56, + + MAX ( - 0 ) + - 98 ) * + 40 * 30 + - 48
----
2419152

query I rowsort
SELECT + 78 * - 70
----
-5460

query I rowsort
SELECT - - 45 * + 48 col1
----
2160

onlyif mysql # aggregate syntax: 
query II rowsort label-6324
SELECT + + 76 + + COUNT( * ) * + + ( COALESCE ( + - 75, + 74 * + + 36 ) ) AS col2, 80
----
1
80

skipif mysql # not compatible
query II rowsort label-6324
SELECT + + 76 + + COUNT ( * ) * + + ( COALESCE ( + - 75, + 74 * + + 36 ) ) AS col2, 80
----
1
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6325
SELECT 1 * CAST( - 9 AS SIGNED ) + 84 + 27 + - 93 + - 56 - + - 41 + + 14 + COALESCE ( - COALESCE ( 27, - 9 * - COUNT( * ) ), + - 26 * - CAST( NULL AS SIGNED ) + - 19 ) * - 95 * + COUNT( * ) + - - 14 * + NULLIF ( 1, - - CASE - 8 WHEN + + COUNT( * ) + + + 47 - + 52 * - + 35 - + + 46 + - - CASE 91 WHEN + 34 * 2 + + 26 THEN NULL WHEN - 58 + 20 THEN 4 ELSE NULL END THEN NULL ELSE + 13 + 3 END ) DIV CAST( 90 AS SIGNED ) col2
----
2573

skipif mysql # not compatible
query I rowsort label-6325
SELECT 1 * CAST ( - 9 AS INTEGER ) + 84 + 27 + - 93 + - 56 - + - 41 + + 14 + COALESCE ( - COALESCE ( 27, - 9 * - COUNT ( * ) ), + - 26 * - CAST ( NULL AS INTEGER ) + - 19 ) * - 95 * + COUNT ( * ) + - - 14 * + NULLIF ( 1, - - CASE - 8 WHEN + + COUNT ( * ) + + + 47 - + 52 * - + 35 - + + 46 + - - CASE 91 WHEN + 34 * 2 + + 26 THEN NULL WHEN - 58 + 20 THEN 4 ELSE NULL END THEN NULL ELSE + 13 + 3 END ) / CAST ( 90 AS INTEGER ) col2
----
2573

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6326
SELECT + 65 AS col0, CASE 24 WHEN - COALESCE ( + COUNT( * ), + 6 + + 19 * + + 83 * - - 41, + 70 * COUNT( * ) * + 27 / COUNT( * ) - CAST( - 73 AS SIGNED ) ) THEN NULL WHEN + - 58 THEN NULL ELSE + 28 END * + 81 * 51 * 3 + - - 99 + + 34 AS col2
----
65
347137

skipif mysql # not compatible
query II rowsort label-6326
SELECT + 65 AS col0, CASE 24 WHEN - COALESCE ( + COUNT ( * ), + 6 + + 19 * + + 83 * - - 41, + 70 * COUNT ( * ) * + 27 / COUNT ( * ) - CAST ( - 73 AS INTEGER ) ) THEN NULL WHEN + - 58 THEN NULL ELSE + 28 END * + 81 * 51 * 3 + - - 99 + + 34 AS col2
----
65
347137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6327
SELECT ALL + - CAST( 59 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL + - CAST ( 59 AS INTEGER )
----
-59

query I rowsort
SELECT ALL - 88 * + 45 + - + 78 * - 69 + + 21 - ( + 57 ) AS col2
----
1386

query I rowsort
SELECT - 17 + - 74 + - 5 AS col0
----
-96

query I rowsort
SELECT ALL + CASE + 37 WHEN + 20 THEN NULL WHEN 33 + - 22 THEN + - 38 ELSE NULL END
----
NULL

query I rowsort
SELECT - ( 28 ) * - 83
----
2324

query II rowsort
SELECT - 35 * + + 32 AS col1, - 82 AS col0
----
-1120
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT DISTINCT + COUNT( * ) * - CASE + 86 WHEN - - 13 + ( + 23 ) THEN 95 + + 73 ELSE + + 23 END AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT + COUNT ( * ) * - CASE + 86 WHEN - - 13 + ( + 23 ) THEN 95 + + 73 ELSE + + 23 END AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6334
SELECT ALL - CAST( 5 AS SIGNED ) * + 9 + + CASE 49 WHEN - 37 THEN + COUNT( * ) WHEN - 26 + 6 THEN NULL END + - 0 + ( 28 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL - CAST ( 5 AS INTEGER ) * + 9 + + CASE 49 WHEN - 37 THEN + COUNT ( * ) WHEN - 26 + 6 THEN NULL END + - 0 + ( 28 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT + MIN( DISTINCT - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-6335
SELECT + MIN ( DISTINCT - 57 )
----
-57

query II rowsort
SELECT - 99 + - 76 AS col0, + 21 AS col1
----
-175
21

onlyif mysql # aggregate syntax: 
query II rowsort label-6337
SELECT ALL - CASE - 0 WHEN + MAX( ALL + 41 ) + 45 THEN + - 97 WHEN + 64 - - SUM( ALL + 58 ) THEN - 7 + 33 END + - + 5 AS col1, - 43 AS col2
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-6337
SELECT ALL - CASE - 0 WHEN + MAX ( ALL + 41 ) + 45 THEN + - 97 WHEN + 64 - - SUM ( ALL + 58 ) THEN - 7 + 33 END + - + 5 AS col1, - 43 AS col2
----
NULL
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT ALL + COUNT( * ) * ( - CASE + COUNT( * ) WHEN + 62 THEN NULL ELSE 88 END ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-6338
SELECT ALL + COUNT ( * ) * ( - CASE + COUNT ( * ) WHEN + 62 THEN NULL ELSE 88 END ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT DISTINCT - 66 + - COUNT( ALL 10 ) + - 80
----
-147

skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT - 66 + - COUNT ( ALL 10 ) + - 80
----
-147

onlyif mysql # aggregate syntax: 
query II rowsort label-6340
SELECT - MIN( - 42 ) * 71 + 90 + 28 AS col1, 67 AS col0
----
3100
67

skipif mysql # not compatible
query II rowsort label-6340
SELECT - MIN ( - 42 ) * 71 + 90 + 28 AS col1, 67 AS col0
----
3100
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT ALL ( + - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6341
SELECT ALL ( + - COUNT ( * ) ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6342
SELECT + 21 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6342
SELECT + 21 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6343
SELECT DISTINCT - 75 / 90 * - 80 * - ( CASE - + COUNT( * ) WHEN - - 17 / + 38 + - + COUNT( * ) + - 16 + - - SUM( - 79 ) + SUM( - 39 ) + - 48 * + 35 * COALESCE ( + - 21, - CAST( - - 21 AS SIGNED ) ) THEN + 63 / - 10 * 81 ELSE NULL END ) * CAST( + - 8 AS DECIMAL ) AS col2, 16 + + 77
----
NULL
93

skipif mysql # not compatible
query II rowsort label-6343
SELECT DISTINCT - 75 / 90 * - 80 * - ( CASE - + COUNT ( * ) WHEN - - 17 / + 38 + - + COUNT ( * ) + - 16 + - - SUM ( - 79 ) + SUM ( - 39 ) + - 48 * + 35 * COALESCE ( + - 21, - CAST ( - - 21 AS INTEGER ) ) THEN + 63 / - 10 * 81 ELSE NULL END ) * CAST ( + - 8 AS REAL ) AS col2, 16 + + 77
----
NULL
93

query I rowsort
SELECT - 9 * - + 37 * 17 AS col2
----
5661

query II rowsort
SELECT + 74 * + 62 col1, + 0 AS col1
----
4588
0

query I rowsort
SELECT DISTINCT - 54 * - 38 * + 86 AS col0
----
176472

onlyif mysql # aggregate syntax: 
query II rowsort label-6347
SELECT DISTINCT 8 * - - COUNT( * ) AS col1, 97 AS col1
----
8
97

skipif mysql # not compatible
query II rowsort label-6347
SELECT DISTINCT 8 * - - COUNT ( * ) AS col1, 97 AS col1
----
8
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT DISTINCT - - COUNT( 24 ) * - + 86 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT - - COUNT ( 24 ) * - + 86 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT DISTINCT - SUM( - 86 ) col1
----
86

skipif mysql # not compatible
query I rowsort label-6349
SELECT DISTINCT - SUM ( - 86 ) col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT ALL MIN( 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL MIN ( 97 ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6351
SELECT ALL - MAX( ALL - 29 ) * ( + 70 ) * 63 + + + 63 + - + COALESCE ( - - CAST( - + ( COUNT( * ) ) AS SIGNED ), + - CASE + 56 WHEN 31 THEN NULL WHEN - - CASE 51 WHEN CASE - + COALESCE ( + 46, - - 4 + + + 58, + + 68 ) WHEN - COUNT( * ) THEN - - SUM( 84 ) END THEN NULL WHEN + 30 DIV 46 THEN NULL ELSE - + 42 END THEN - + 6 * - + COALESCE ( - 20, - 82 * + 60 ) ELSE NULL END DIV - 28 - CASE - 10 WHEN 75 THEN + 60 WHEN - CAST( NULL AS SIGNED ) + 69 THEN + 14 * COUNT( * ) - CAST( NULL AS SIGNED ) ELSE NULL END ) + 35 DIV 93
----
127954

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL - MAX ( ALL - 29 ) * ( + 70 ) * 63 + + + 63 + - + COALESCE ( - - CAST ( - + ( COUNT ( * ) ) AS INTEGER ), + - CASE + 56 WHEN 31 THEN NULL WHEN - - CASE 51 WHEN CASE - + COALESCE ( + 46, - - 4 + + + 58, + + 68 ) WHEN - COUNT ( * ) THEN - - SUM ( 84 ) END THEN NULL WHEN + 30 / 46 THEN NULL ELSE - + 42 END THEN - + 6 * - + COALESCE ( - 20, - 82 * + 60 ) ELSE NULL END / - 28 - CASE - 10 WHEN 75 THEN + 60 WHEN - CAST ( NULL AS INTEGER ) + 69 THEN + 14 * COUNT ( * ) - CAST ( NULL AS INTEGER ) ELSE NULL END ) + 35 / 93
----
127954

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT + + COUNT( * ) * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6352
SELECT + + COUNT ( * ) * + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT + + COUNT( * ) * - + 62 col1
----
-62

skipif mysql # not compatible
query I rowsort label-6353
SELECT + + COUNT ( * ) * - + 62 col1
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6354
SELECT DISTINCT + + CAST( - MIN( DISTINCT - 90 ) AS SIGNED ) col2
----
90

skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT + + CAST ( - MIN ( DISTINCT - 90 ) AS INTEGER ) col2
----
90

query I rowsort
SELECT + 12 * + 97 * + - 21
----
-24444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6356
SELECT DISTINCT + - COUNT( + 48 ) DIV - COALESCE ( + 47, - - 20 DIV - NULLIF ( - 39, 20 ) + + MIN( 36 ) ) + COUNT( * ) * - COUNT( * ) + - 17 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT + - COUNT ( + 48 ) / - COALESCE ( + 47, - - 20 / - NULLIF ( - 39, 20 ) + + MIN ( 36 ) ) + COUNT ( * ) * - COUNT ( * ) + - 17 AS col2
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6357
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 25 * - + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 25 * - + 58 AS col0
----
NULL

query I rowsort
SELECT ( + + 72 ) AS col1
----
72

query I rowsort
SELECT 60 * + + 77 + + NULLIF ( 4, - 41 )
----
4624

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT ( - SUM( + 45 ) ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-6360
SELECT ( - SUM ( + 45 ) ) AS col1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-6361
SELECT + 99 DIV - + 53 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6361
SELECT + 99 / - + 53 AS col2
----
-1

query I rowsort
SELECT + 58 + + 29
----
87

query I rowsort
SELECT ALL + 73 * - + 58 + - 87
----
-4321

query I rowsort
SELECT - 52 * - 84 * + 5 * - + 77
----
-1681680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6365
SELECT ALL COUNT( * ) * 64 - + 24 * - + 78 + 82 - 72 + + - 71 * + AVG ( ALL 76 ) / 90 + - + 30 / CAST( NULL AS SIGNED ) + + + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL COUNT ( * ) * 64 - + 24 * - + 78 + 82 - 72 + + - 71 * + AVG ( ALL 76 ) / 90 + - + 30 / CAST ( NULL AS INTEGER ) + + + 98 AS col1
----
NULL

query II rowsort
SELECT ALL + 87, 89 AS col1
----
87
89

query I rowsort
SELECT - 80 + - - ( + 78 ) + - 79 AS col0
----
-81

query I rowsort
SELECT - 92 * + 69
----
-6348

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT NULLIF ( - MIN( - 7 ), - 32 * - - 75 * + 88 + + + COUNT( + 95 ) * - 17 )
----
7

skipif mysql # not compatible
query I rowsort label-6369
SELECT NULLIF ( - MIN ( - 7 ), - 32 * - - 75 * + 88 + + + COUNT ( + 95 ) * - 17 )
----
7

query I rowsort
SELECT ALL - 89 * - 0
----
0

query I rowsort
SELECT - 9 - + 44
----
-53

query II rowsort
SELECT - 58, 25 col0
----
-58
25

onlyif mysql # aggregate syntax: 
query II rowsort label-6373
SELECT - 61, + COUNT( * ) * + COUNT( * ) + + COUNT( * ) + - - 42 col0
----
-61
44

skipif mysql # not compatible
query II rowsort label-6373
SELECT - 61, + COUNT ( * ) * + COUNT ( * ) + + COUNT ( * ) + - - 42 col0
----
-61
44

onlyif mysql # aggregate syntax: 
query II rowsort label-6374
SELECT 50 col1, COALESCE ( 3, + CASE COUNT( * ) WHEN - 88 THEN - 79 END ) AS col0
----
50
3

skipif mysql # not compatible
query II rowsort label-6374
SELECT 50 col1, COALESCE ( 3, + CASE COUNT ( * ) WHEN - 88 THEN - 79 END ) AS col0
----
50
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6375
SELECT DISTINCT + 17 - - 99 + - COALESCE ( 79, + - COUNT( * ) * - 72 + - 0, 42 ) * 38 * - - 86 * + 18 + + 43 + - 65 DIV 81 * 16 + 73 * 80 + - 56 + 81 col2
----
-4641072

skipif mysql # not compatible
query I rowsort label-6375
SELECT DISTINCT + 17 - - 99 + - COALESCE ( 79, + - COUNT ( * ) * - 72 + - 0, 42 ) * 38 * - - 86 * + 18 + + 43 + - 65 / 81 * 16 + 73 * 80 + - 56 + 81 col2
----
-4641072

query I rowsort
SELECT ALL - ( + 66 ) * 45 * 31 + - + 28 AS col0
----
-92098

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT ALL + 97 - COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL + 97 - COUNT ( * ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT - COUNT( DISTINCT - 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-6378
SELECT - COUNT ( DISTINCT - 22 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT + 89 - + - COUNT( * ) * + - ( + - 70 ) * + + 56
----
4009

skipif mysql # not compatible
query I rowsort label-6379
SELECT + 89 - + - COUNT ( * ) * + - ( + - 70 ) * + + 56
----
4009

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6380
SELECT - CAST( + + 31 AS SIGNED ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-6380
SELECT - CAST ( + + 31 AS INTEGER ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT + ( 34 ) + + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-6381
SELECT + ( 34 ) + + COUNT ( * )
----
35

query I rowsort
SELECT - 55 + - 85
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT - COUNT( * ) * 24 * + + 8 AS col0
----
-192

skipif mysql # not compatible
query I rowsort label-6383
SELECT - COUNT ( * ) * 24 * + + 8 AS col0
----
-192

query I rowsort
SELECT 2 * 5 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT ALL - 48 * MAX( ( 68 ) )
----
-3264

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL - 48 * MAX ( ( 68 ) )
----
-3264

query I rowsort
SELECT + 18 + - 70
----
-52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6387
SELECT ALL - + CAST( NULL AS DECIMAL ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL - + CAST ( NULL AS REAL ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT ALL + + 51 + + SUM( ALL - - 57 ) + ( + - 27 )
----
81

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL + + 51 + + SUM ( ALL - - 57 ) + ( + - 27 )
----
81

query I rowsort
SELECT DISTINCT - 54 * - - 65
----
-3510

onlyif mysql # DIV for integer division: 
query I rowsort label-6390
SELECT - 47 DIV 72 + + - 67
----
-67

skipif mysql # not compatible
query I rowsort label-6390
SELECT - 47 / 72 + + - 67
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT ALL COUNT( * ) + + + 71 col2
----
72

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL COUNT ( * ) + + + 71 col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT ALL CASE + COUNT( * ) WHEN 90 / - 36 THEN - COUNT( * ) ELSE NULL END + + 99 - - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL CASE + COUNT ( * ) WHEN 90 / - 36 THEN - COUNT ( * ) ELSE NULL END + + 99 - - - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 35 + 19
----
54

query I rowsort
SELECT 17 * + + 95
----
1615

onlyif mysql # aggregate syntax: 
query II rowsort label-6395
SELECT ALL 70 * + - COUNT( * ) * + + 46 * - - 58 AS col0, 47
----
-186760
47

skipif mysql # not compatible
query II rowsort label-6395
SELECT ALL 70 * + - COUNT ( * ) * + + 46 * - - 58 AS col0, 47
----
-186760
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6396
SELECT ALL COALESCE ( - 0, COALESCE ( 96, - 77 + COALESCE ( 17, + + CAST( NULL AS SIGNED ) + + + 98 * - 33 ), + - 30 * + 10 DIV - COUNT( + 51 ) * + CASE + 17 WHEN 72 + + COUNT( * ) THEN - 91 + - 96 ELSE NULL END + - 52 - - - 63 + + 6 + 62 * - 88 DIV 53 + + 28 + 15 * - ( - 12 ) ) + + 68, - + 15 ) + SUM( ALL 19 )
----
19

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL COALESCE ( - 0, COALESCE ( 96, - 77 + COALESCE ( 17, + + CAST ( NULL AS INTEGER ) + + + 98 * - 33 ), + - 30 * + 10 / - COUNT ( + 51 ) * + CASE + 17 WHEN 72 + + COUNT ( * ) THEN - 91 + - 96 ELSE NULL END + - 52 - - - 63 + + 6 + 62 * - 88 / 53 + + 28 + 15 * - ( - 12 ) ) + + 68, - + 15 ) + SUM ( ALL 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT ALL COUNT( * ) * + 73
----
73

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL COUNT ( * ) * + 73
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT DISTINCT SUM( DISTINCT + - 27 ) * - 54 * - 57 * COUNT( * ) * - - MAX( DISTINCT - + 94 ) AS col2
----
7811964

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT SUM ( DISTINCT + - 27 ) * - 54 * - 57 * COUNT ( * ) * - - MAX ( DISTINCT - + 94 ) AS col2
----
7811964

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT ALL CASE 29 WHEN 0 * - 95 * - 33 THEN - 72 + - 88 + - - ( - 84 ) WHEN + MAX( + 50 ) + + 4 * + 43 THEN NULL ELSE NULL END - + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL CASE 29 WHEN 0 * - 95 * - 33 THEN - 72 + - 88 + - - ( - 84 ) WHEN + MAX ( + 50 ) + + 4 * + 43 THEN NULL ELSE NULL END - + 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6400
SELECT COUNT( * ) * - + COUNT( * ), 85 AS col2
----
-1
85

skipif mysql # not compatible
query II rowsort label-6400
SELECT COUNT ( * ) * - + COUNT ( * ), 85 AS col2
----
-1
85

query II rowsort
SELECT 68 * + + 15 AS col0, 20 AS col0
----
1020
20

query II rowsort
SELECT 42 * + + 52, + 13 AS col2
----
2184
13

onlyif mysql # aggregate syntax: 
query II rowsort label-6403
SELECT 48 + - - COUNT( * ) * - + ( - 90 ) * 17 AS col1, ( + - 67 ) col0
----
1578
-67

skipif mysql # not compatible
query II rowsort label-6403
SELECT 48 + - - COUNT ( * ) * - + ( - 90 ) * 17 AS col1, ( + - 67 ) col0
----
1578
-67

query I rowsort
SELECT 67 * - ( 26 )
----
-1742

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6405
SELECT 87 + + ( 74 ) DIV + - 95 col0, + CAST( NULL AS SIGNED )
----
87
NULL

skipif mysql # not compatible
query II rowsort label-6405
SELECT 87 + + ( 74 ) / + - 95 col0, + CAST ( NULL AS INTEGER )
----
87
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6406
SELECT ALL MIN( + - 76 ) AS col2, - 48 AS col1
----
-76
-48

skipif mysql # not compatible
query II rowsort label-6406
SELECT ALL MIN ( + - 76 ) AS col2, - 48 AS col1
----
-76
-48

query I rowsort
SELECT - 87 + + 58 + + + 44 - + + 34
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6408
SELECT - NULLIF ( - MAX( ALL - 7 ), + 41 * - 16 ) + 86 DIV + - CAST( - COUNT( 73 ) AS SIGNED ) + + 21 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-6408
SELECT - NULLIF ( - MAX ( ALL - 7 ), + 41 * - 16 ) + 86 / + - CAST ( - COUNT ( 73 ) AS INTEGER ) + + 21 AS col1
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6409
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 23 * - 72 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6409
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 23 * - 72 col0
----
NULL

query I rowsort
SELECT DISTINCT ( - - 59 ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT ALL + 83 + + 82 - COUNT( * ) AS col1
----
164

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL + 83 + + 82 - COUNT ( * ) AS col1
----
164

query I rowsort
SELECT DISTINCT - 61 + - 50 * + 97
----
-4911

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT - 3 * 2 - 1 + - COUNT( * ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-6413
SELECT - 3 * 2 - 1 + - COUNT ( * ) col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6414
SELECT DISTINCT + + 49 + + CAST( NULL AS SIGNED ) + + + COUNT( ALL - 86 ) * - 77, 34 * COALESCE ( COALESCE ( 66, - 8 ), COUNT( - 75 ), + + COUNT( * ) * 34 * + ( 15 ) - - - 57 ) * 99 * + COUNT( 19 ) - - 34 - + COALESCE ( 76, ( + COUNT( * ) ) + + 49 - 38 ) AS col2
----
NULL
222114

skipif mysql # not compatible
query II rowsort label-6414
SELECT DISTINCT + + 49 + + CAST ( NULL AS INTEGER ) + + + COUNT ( ALL - 86 ) * - 77, 34 * COALESCE ( COALESCE ( 66, - 8 ), COUNT ( - 75 ), + + COUNT ( * ) * 34 * + ( 15 ) - - - 57 ) * 99 * + COUNT ( 19 ) - - 34 - + COALESCE ( 76, ( + COUNT ( * ) ) + + 49 - 38 ) AS col2
----
NULL
222114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6415
SELECT ALL + 67 + CAST( 25 AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL + 67 + CAST ( 25 AS INTEGER )
----
92

query I rowsort
SELECT + 83 - - 23 AS col1
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-6417
SELECT 17 DIV - 29 * - 83 * 48
----
0

skipif mysql # not compatible
query I rowsort label-6417
SELECT 17 / - 29 * - 83 * 48
----
0

query I rowsort
SELECT ALL + ( + 91 ) * 10 + 91 AS col1
----
1001

query I rowsort
SELECT 23 * - + CASE + 81 WHEN - 82 THEN 43 + - + 25 / - + 9 WHEN 17 * 39 * - + 63 + + + 56 THEN 74 * 60 + CASE + NULLIF ( - 40, 11 * 59 + - + 19 ) WHEN 11 THEN - + 56 - + 67 / + - 52 ELSE - 67 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT DISTINCT ( COUNT( * ) ) * + + 80
----
80

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT ( COUNT ( * ) ) * + + 80
----
80

query II rowsort
SELECT ALL - 68 AS col1, + 79
----
-68
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT ALL 96 * - - 13 - COUNT( * ) AS col0
----
1247

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL 96 * - - 13 - COUNT ( * ) AS col0
----
1247

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT - 8 * + + SUM( ALL + 18 ) - 97
----
-241

skipif mysql # not compatible
query I rowsort label-6423
SELECT - 8 * + + SUM ( ALL + 18 ) - 97
----
-241

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6424
SELECT ALL - CAST( - 93 AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-6424
SELECT ALL - CAST ( - 93 AS INTEGER )
----
93

query I rowsort
SELECT 52 * 53 col2
----
2756

query I rowsort
SELECT 23 * + 56
----
1288

query I rowsort
SELECT - 8 * - - 62 + - - 73
----
-423

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT COUNT( DISTINCT - 53 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6428
SELECT COUNT ( DISTINCT - 53 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT COUNT( * ) * - 6 + + 52
----
46

skipif mysql # not compatible
query I rowsort label-6429
SELECT COUNT ( * ) * - 6 + + 52
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6430
SELECT + COUNT( DISTINCT NULLIF ( - 20, 36 ) ) * + - ( - CAST( NULL AS SIGNED ) ) AS col0, + COUNT( * ) + 76 + - - 6
----
NULL
83

skipif mysql # not compatible
query II rowsort label-6430
SELECT + COUNT ( DISTINCT NULLIF ( - 20, 36 ) ) * + - ( - CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( * ) + 76 + - - 6
----
NULL
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6431
SELECT ALL + 87 AS col0, + ( SUM( ALL CAST( NULL AS SIGNED ) ) ) AS col0
----
87
NULL

skipif mysql # not compatible
query II rowsort label-6431
SELECT ALL + 87 AS col0, + ( SUM ( ALL CAST ( NULL AS INTEGER ) ) ) AS col0
----
87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT + COUNT( * ) * - 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-6432
SELECT + COUNT ( * ) * - 40 AS col2
----
-40

query I rowsort
SELECT + 75 + - 46 * 53 AS col0
----
-2363

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6434
SELECT ALL - ( 53 ) + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL - ( 53 ) + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6435
SELECT + - 17 DIV - 86 * - 17 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6435
SELECT + - 17 / - 86 * - 17 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT ALL COUNT( * ) + + - COUNT( * ) + - 79
----
-79

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL COUNT ( * ) + + - COUNT ( * ) + - 79
----
-79

query I rowsort
SELECT ALL + 54 * - + 32 * 7 AS col1
----
-12096

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT + + COALESCE ( - COUNT( * ), - 86 ) * + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6438
SELECT + + COALESCE ( - COUNT ( * ), - 86 ) * + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL - 31 + - ( 37 ) AS col2
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6440
SELECT ALL COUNT( * ) + + COUNT( * ) * + CAST( NULL AS SIGNED ) col1, 64 AS col0
----
NULL
64

skipif mysql # not compatible
query II rowsort label-6440
SELECT ALL COUNT ( * ) + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) col1, 64 AS col0
----
NULL
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT + MIN( - - 66 ) - 50 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6441
SELECT + MIN ( - - 66 ) - 50 AS col0
----
16

query I rowsort
SELECT DISTINCT + ( + 84 ) AS col0
----
84

query I rowsort
SELECT DISTINCT - 29 + 81 col2
----
52

query I rowsort
SELECT ALL - 71 + 55 * - - 0
----
-71

query I rowsort
SELECT + + 91 + 76 AS col2
----
167

query I rowsort
SELECT DISTINCT NULLIF ( - - 25, + 96 )
----
25

query I rowsort
SELECT - + 10 - - 60
----
50

query I rowsort
SELECT DISTINCT + + 46 * - - 88 - + - 33 col0
----
4081

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT ALL - ( MIN( + + 52 ) ) col2
----
-52

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL - ( MIN ( + + 52 ) ) col2
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6450
SELECT - + 41 + - 68 DIV - + NULLIF ( - - COUNT( * ), + CAST( - - 56 AS SIGNED ) ) * 1 col1
----
27

skipif mysql # not compatible
query I rowsort label-6450
SELECT - + 41 + - 68 / - + NULLIF ( - - COUNT ( * ), + CAST ( - - 56 AS INTEGER ) ) * 1 col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT DISTINCT - CASE - 94 WHEN 89 THEN NULL ELSE ( CASE 42 WHEN + 36 + - 20 - 60 - 15 + - 78 + - - 72 * 7 * - 17 THEN NULL WHEN - + 0 * + 55 THEN COUNT( * ) * 81 END ) END * - COUNT( * ) + 8 + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-6451
SELECT DISTINCT - CASE - 94 WHEN 89 THEN NULL ELSE ( CASE 42 WHEN + 36 + - 20 - 60 - 15 + - 78 + - - 72 * 7 * - 17 THEN NULL WHEN - + 0 * + 55 THEN COUNT ( * ) * 81 END ) END * - COUNT ( * ) + 8 + - 77
----
NULL

query I rowsort
SELECT - 53 * + 59 col2
----
-3127

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT DISTINCT + MIN( ALL + 44 ) * + + CASE - + 97 WHEN + + 56 THEN NULL ELSE + 43 END AS col0
----
1892

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT + MIN ( ALL + 44 ) * + + CASE - + 97 WHEN + + 56 THEN NULL ELSE + 43 END AS col0
----
1892

query I rowsort
SELECT - 29 + 80
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-6455
SELECT ALL + 13, + NULLIF ( + 15, + - 43 ) DIV + 36 + - + 97 AS col1
----
13
-97

skipif mysql # not compatible
query II rowsort label-6455
SELECT ALL + 13, + NULLIF ( + 15, + - 43 ) / + 36 + - + 97 AS col1
----
13
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT + ( - MIN( DISTINCT - 85 ) ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-6456
SELECT + ( - MIN ( DISTINCT - 85 ) ) AS col1
----
85

query I rowsort
SELECT - 17 * + 98 * 15 AS col2
----
-24990

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT DISTINCT + 48 DIV 39 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT + 48 / 39 AS col1
----
1

query I rowsort
SELECT ( - + 3 ) AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6460
SELECT + ( - 80 ) DIV COUNT( * ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-6460
SELECT + ( - 80 ) / COUNT ( * ) AS col1
----
-80

query I rowsort
SELECT ALL + 30 * + 56
----
1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6462
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) DIV 8
----
0

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) / 8
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6463
SELECT DISTINCT + 48 DIV + - 7
----
-6

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT + 48 / + - 7
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6464
SELECT - ( 33 ) * + - 45 + - + MIN( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6464
SELECT - ( 33 ) * + - 45 + - + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6465
SELECT - 39 DIV - + 57
----
0

skipif mysql # not compatible
query I rowsort label-6465
SELECT - 39 / - + 57
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6466
SELECT DISTINCT 15 * + ( - 78 ) + - 26 DIV - + 19 AS col0
----
-1169

skipif mysql # not compatible
query I rowsort label-6466
SELECT DISTINCT 15 * + ( - 78 ) + - 26 / - + 19 AS col0
----
-1169

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT DISTINCT 84 * + 6 * + - COUNT( * ) + + 95
----
-409

skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT 84 * + 6 * + - COUNT ( * ) + + 95
----
-409

query II rowsort
SELECT + 11 AS col1, - 25 AS col2
----
11
-25

onlyif mysql # aggregate syntax: 
query III rowsort label-6469
SELECT CASE - 41 WHEN + 47 - - - 91 THEN NULL WHEN MIN( + 91 ) + + + COUNT( * ) THEN NULL ELSE 15 + 77 END, - CASE + 59 WHEN + 65 * 15 - + 14 THEN NULL WHEN - + 14 THEN NULL ELSE - COUNT( * ) + + COUNT( * ) END AS col1, - 93 AS col1
----
92
0
-93

skipif mysql # not compatible
query III rowsort label-6469
SELECT CASE - 41 WHEN + 47 - - - 91 THEN NULL WHEN MIN ( + 91 ) + + + COUNT ( * ) THEN NULL ELSE 15 + 77 END, - CASE + 59 WHEN + 65 * 15 - + 14 THEN NULL WHEN - + 14 THEN NULL ELSE - COUNT ( * ) + + COUNT ( * ) END AS col1, - 93 AS col1
----
92
0
-93

query I rowsort
SELECT ALL - 4 * + 19 * + 39 + + 65 + - 20 AS col2
----
-2919

query II rowsort
SELECT DISTINCT + - 47 AS col2, 80
----
-47
80

query I rowsort
SELECT - 22 + - + 99 + - 68 AS col0
----
-189

query I rowsort
SELECT ALL + - CASE + + 43 WHEN + + 49 THEN - 12 END AS col1
----
NULL

query I rowsort
SELECT ALL + + CASE + 4 WHEN + 76 * 90 * 96 THEN - - 59 ELSE NULL END * 25 + - 51 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6475
SELECT ALL 6, 90 + - COUNT( DISTINCT - 15 ) * + 94 * + - 6 * + + 92 + 69 AS col1
----
6
52047

skipif mysql # not compatible
query II rowsort label-6475
SELECT ALL 6, 90 + - COUNT ( DISTINCT - 15 ) * + 94 * + - 6 * + + 92 + 69 AS col1
----
6
52047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6476
SELECT DISTINCT 57 * - 33 + - + 83 - CASE 65 WHEN + CAST( - + 0 AS SIGNED ) THEN NULL WHEN + MIN( - 88 ) THEN + CAST( - 54 AS SIGNED ) + - - 47 ELSE NULL END + 98 + 74 * - + NULLIF ( COUNT( DISTINCT - 20 ), - COUNT( * ) * + 33 ) * + - COUNT( * ) / + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6476
SELECT DISTINCT 57 * - 33 + - + 83 - CASE 65 WHEN + CAST ( - + 0 AS INTEGER ) THEN NULL WHEN + MIN ( - 88 ) THEN + CAST ( - 54 AS INTEGER ) + - - 47 ELSE NULL END + 98 + 74 * - + NULLIF ( COUNT ( DISTINCT - 20 ), - COUNT ( * ) * + 33 ) * + - COUNT ( * ) / + 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT + 76 * COUNT( ALL 52 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-6477
SELECT + 76 * COUNT ( ALL 52 ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT - MAX( + + 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-6478
SELECT - MAX ( + + 62 )
----
-62

query II rowsort
SELECT + + NULLIF ( 75, - 4 ) + + - 68 AS col1, - 31 AS col2
----
7
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6480
SELECT ALL - - 61 * - CAST( - ( 91 ) AS SIGNED ) * - + 32 - + 78 / + CASE + 67 WHEN + + 29 THEN NULL WHEN - - 40 THEN - CAST( NULL AS SIGNED ) END + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL - - 61 * - CAST ( - ( 91 ) AS INTEGER ) * - + 32 - + 78 / + CASE + 67 WHEN + + 29 THEN NULL WHEN - - 40 THEN - CAST ( NULL AS INTEGER ) END + 32
----
NULL

query II rowsort
SELECT ALL - 24 AS col2, 15 + + - 75 AS col2
----
-24
-60

query I rowsort
SELECT + - 31 + + 17 AS col2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6483
SELECT + 51 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6483
SELECT + 51 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL - 47 AS col2, + 56
----
-47
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6485
SELECT ALL ( + 67 ) - 99 + COUNT( * ) DIV + 24 * 88 * + 23 * - 53 * 4 + + 7
----
-25

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL ( + 67 ) - 99 + COUNT ( * ) / + 24 * 88 * + 23 * - 53 * 4 + + 7
----
-25

query I rowsort
SELECT DISTINCT + 48 * 4 AS col2
----
192

query I rowsort
SELECT ALL 18 - - 29 AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6488
SELECT + - ( + 43 ) DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-6488
SELECT + - ( + 43 ) / - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT ( + - MIN( ( - 0 ) ) ) - + 14 + - ( + - COUNT( * ) ) + 47 * - 83
----
-3914

skipif mysql # not compatible
query I rowsort label-6489
SELECT ( + - MIN ( ( - 0 ) ) ) - + 14 + - ( + - COUNT ( * ) ) + 47 * - 83
----
-3914

query II rowsort
SELECT 68 * + 92 AS col1, 68
----
6256
68

onlyif mysql # DIV for integer division: 
query II rowsort label-6491
SELECT DISTINCT 5 * - 18 col0, - 15 DIV - + 65 AS col2
----
-90
0

skipif mysql # not compatible
query II rowsort label-6491
SELECT DISTINCT 5 * - 18 col0, - 15 / - + 65 AS col2
----
-90
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT 42 - - 34 + - COUNT( * ) * 42
----
34

skipif mysql # not compatible
query I rowsort label-6492
SELECT 42 - - 34 + - COUNT ( * ) * 42
----
34

query I rowsort
SELECT ALL + 44 * + 42 AS col2
----
1848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6494
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) * - 2 * - + 97 AS col2
----
194

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) * - 2 * - + 97 AS col2
----
194

query II rowsort
SELECT ALL + 35 * + 32 AS col1, - 10 AS col2
----
1120
-10

query II rowsort
SELECT 58 * + - 93 AS col1, 56 col0
----
-5394
56

query I rowsort
SELECT ALL 4 + ( - 77 ) AS col2
----
-73

query I rowsort
SELECT DISTINCT 63 + + 4 + + - 23
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT + COUNT( 0 ) * - - 32 + 59 + - - 54 * - - 13 + SUM( ALL 15 ) - - 78 col1
----
886

skipif mysql # not compatible
query I rowsort label-6499
SELECT + COUNT ( 0 ) * - - 32 + 59 + - - 54 * - - 13 + SUM ( ALL 15 ) - - 78 col1
----
886

query I rowsort
SELECT 86 - + 18
----
68

query I rowsort
SELECT 96 * - + 8
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT ALL - COUNT( * ) + - - ( + + ( + 42 ) ) + - 68
----
-27

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL - COUNT ( * ) + - - ( + + ( + 42 ) ) + - 68
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT ALL - - 92 + COUNT( - - 10 ) + + COALESCE ( 29, - 7, - - 88 * + 9 )
----
122

skipif mysql # not compatible
query I rowsort label-6503
SELECT ALL - - 92 + COUNT ( - - 10 ) + + COALESCE ( 29, - 7, - - 88 * + 9 )
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT ALL - + 84 * - + 71 - MAX( + 83 )
----
5881

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL - + 84 * - + 71 - MAX ( + 83 )
----
5881

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT ALL + 31 + - - NULLIF ( - + COUNT( * ), COUNT( 26 ) + - - 57 ) + + NULLIF ( - + 11, - 23 ) * - 7 * + + ( + 64 ) * + 26 AS col0
----
128158

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL + 31 + - - NULLIF ( - + COUNT ( * ), COUNT ( 26 ) + - - 57 ) + + NULLIF ( - + 11, - 23 ) * - 7 * + + ( + 64 ) * + 26 AS col0
----
128158

query I rowsort
SELECT DISTINCT + - 55 + 5 + - 26 * - 61 * - 19
----
-30184

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT - 22 - + COUNT( * ) * + 73
----
-95

skipif mysql # not compatible
query I rowsort label-6507
SELECT - 22 - + COUNT ( * ) * + 73
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT DISTINCT COALESCE ( 79, + - CASE 12 WHEN 82 + MAX( ALL + - 7 ) + 39 / 82 + + 74 / - 33 * - COALESCE ( - 14, - 93 * 61 - - MIN( ALL + 19 ) * - - 45 + + 36 * - 79 ) / + 2 * 20 * - COALESCE ( + COUNT( + - ( + 37 ) ), + + 89 * - + NULLIF ( + COUNT( * ), - - ( - - 47 ) / + - 35 + + 67 * + 81 ) ) + + ( - - 2 ) THEN + - 0 END )
----
79

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT COALESCE ( 79, + - CASE 12 WHEN 82 + MAX ( ALL + - 7 ) + 39 / 82 + + 74 / - 33 * - COALESCE ( - 14, - 93 * 61 - - MIN ( ALL + 19 ) * - - 45 + + 36 * - 79 ) / + 2 * 20 * - COALESCE ( + COUNT ( + - ( + 37 ) ), + + 89 * - + NULLIF ( + COUNT ( * ), - - ( - - 47 ) / + - 35 + + 67 * + 81 ) ) + + ( - - 2 ) THEN + - 0 END )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT 13 + + + ( ( MIN( DISTINCT 4 ) ) ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-6509
SELECT 13 + + + ( ( MIN ( DISTINCT 4 ) ) ) AS col0
----
17

query II rowsort
SELECT ( - 4 ), 6 AS col1
----
-4
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6511
SELECT 72 * 25 DIV - 21 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6511
SELECT 72 * 25 / - 21 AS col2
----
-85

query I rowsort
SELECT DISTINCT + NULLIF ( + 8, ( - 76 ) * 90 ) AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6513
SELECT 51 * + - ( + COALESCE ( COALESCE ( + 56, COUNT( * ), + - 26 * 21 ), CAST( NULL AS SIGNED ) ) )
----
-2856

skipif mysql # not compatible
query I rowsort label-6513
SELECT 51 * + - ( + COALESCE ( COALESCE ( + 56, COUNT ( * ), + - 26 * 21 ), CAST ( NULL AS INTEGER ) ) )
----
-2856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6514
SELECT ALL COALESCE ( - MIN( ALL + 80 ), + 27, + COUNT( * ) * - COUNT( * ) DIV - - 28 )
----
-80

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL COALESCE ( - MIN ( ALL + 80 ), + 27, + COUNT ( * ) * - COUNT ( * ) / - - 28 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT COUNT( + + 94 ) - 44 * - + 66 * - - 35
----
101641

skipif mysql # not compatible
query I rowsort label-6515
SELECT COUNT ( + + 94 ) - 44 * - + 66 * - - 35
----
101641

onlyif mysql # DIV for integer division: 
query I rowsort label-6516
SELECT ALL - - 87 DIV 19 * - 94
----
-376

skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL - - 87 / 19 * - 94
----
-376

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT CASE 64 WHEN 79 * - 8 THEN + + 49 + - CASE + 34 WHEN SUM( 5 ) THEN - + 85 WHEN - 43 + MAX( ( 79 ) ) THEN NULL END - 92 * + + 11 ELSE NULL END + + 12 * 34 + - - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6517
SELECT CASE 64 WHEN 79 * - 8 THEN + + 49 + - CASE + 34 WHEN SUM ( 5 ) THEN - + 85 WHEN - 43 + MAX ( ( 79 ) ) THEN NULL END - 92 * + + 11 ELSE NULL END + + 12 * 34 + - - 21 AS col2
----
NULL

query I rowsort
SELECT 26 * - - 59
----
1534

onlyif mysql # DIV for integer division: 
query I rowsort label-6519
SELECT 68 DIV + + 29
----
2

skipif mysql # not compatible
query I rowsort label-6519
SELECT 68 / + + 29
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6520
SELECT ALL 75, - 46 + + COUNT( * ) * + SUM( ALL + + 41 ) + + 94 AS col2
----
75
89

skipif mysql # not compatible
query II rowsort label-6520
SELECT ALL 75, - 46 + + COUNT ( * ) * + SUM ( ALL + + 41 ) + + 94 AS col2
----
75
89

query I rowsort
SELECT COALESCE ( - 65, - + 68 ) + - 67
----
-132

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6522
SELECT ( - 72 ) - + + 71 / + - CAST( NULL AS DECIMAL ) - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6522
SELECT ( - 72 ) - + + 71 / + - CAST ( NULL AS REAL ) - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT 51 + + + NULLIF ( + - 45, + 6 ) * COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-6523
SELECT 51 + + + NULLIF ( + - 45, + 6 ) * COUNT ( * )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6524
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 93 * + 36 AS col2, 84 AS col1
----
NULL
84

skipif mysql # not compatible
query II rowsort label-6524
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 93 * + 36 AS col2, 84 AS col1
----
NULL
84

onlyif mysql # aggregate syntax: 
query II rowsort label-6525
SELECT ( COUNT( * ) ) + 26 * + 23, 76 AS col2
----
599
76

skipif mysql # not compatible
query II rowsort label-6525
SELECT ( COUNT ( * ) ) + 26 * + 23, 76 AS col2
----
599
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6526
SELECT ALL CAST( NULL AS SIGNED ) + - - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL CAST ( NULL AS INTEGER ) + - - 48 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6527
SELECT 77 AS col0, 85 DIV + - 88
----
77
0

skipif mysql # not compatible
query II rowsort label-6527
SELECT 77 AS col0, 85 / + - 88
----
77
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6528
SELECT COUNT( - 45 ) DIV - + 64
----
0

skipif mysql # not compatible
query I rowsort label-6528
SELECT COUNT ( - 45 ) / - + 64
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6529
SELECT ALL 4 + + + CAST( NULL AS DECIMAL ) + + 24 - + 87 * + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL 4 + + + CAST ( NULL AS REAL ) + + 24 - + 87 * + 33 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 63 + - - 87 AS col0
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-6531
SELECT ALL 22 DIV - 47 col1
----
0

skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL 22 / - 47 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6532
SELECT CASE 31 WHEN 22 THEN + + NULLIF ( - + 18, - 65 + 75 ) WHEN 9 * - COUNT( * ) + + CAST( NULL AS DECIMAL ) + + NULLIF ( - + 46, - 71 ) + + ( + 2 ) + 74 THEN + 60 END * - 53 + + + ( + 38 ) + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6532
SELECT CASE 31 WHEN 22 THEN + + NULLIF ( - + 18, - 65 + 75 ) WHEN 9 * - COUNT ( * ) + + CAST ( NULL AS REAL ) + + NULLIF ( - + 46, - 71 ) + + ( + 2 ) + 74 THEN + 60 END * - 53 + + + ( + 38 ) + 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6533
SELECT + ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) * 99 * + CASE + NULLIF ( COUNT( * ), - + 79 ) WHEN 74 THEN - + 67 END * - 0 + - + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6533
SELECT + ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * 99 * + CASE + NULLIF ( COUNT ( * ), - + 79 ) WHEN 74 THEN - + 67 END * - 0 + - + 73 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6534
SELECT + COUNT( * ) AS col0, + 91 * + 32 * 59 * + 68
----
1
11682944

skipif mysql # not compatible
query II rowsort label-6534
SELECT + COUNT ( * ) AS col0, + 91 * + 32 * 59 * + 68
----
1
11682944

query I rowsort
SELECT DISTINCT 15 + + + 36 AS col2
----
51

query I rowsort
SELECT 5 + - 79
----
-74

query I rowsort
SELECT ALL 50 + + + 2
----
52

query I rowsort
SELECT 76 * + 79
----
6004

query I rowsort
SELECT DISTINCT 82 * + 66 * + 57 * + 71 col2
----
21902364

query I rowsort
SELECT 25 * 95
----
2375

query I rowsort
SELECT DISTINCT NULLIF ( 30, 42 ) - 84 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-6542
SELECT ALL - 15, ( COUNT( * ) ) AS col1
----
-15
1

skipif mysql # not compatible
query II rowsort label-6542
SELECT ALL - 15, ( COUNT ( * ) ) AS col1
----
-15
1

query I rowsort
SELECT - 53 + - - 79
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT 17 * - - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-6544
SELECT 17 * - - COUNT ( * )
----
17

query I rowsort
SELECT 4 * + 14 AS col0
----
56

query I rowsort
SELECT ALL - - COALESCE ( - 15, + 5 ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT COALESCE ( + 35, - 46, - + CASE 67 WHEN + + COUNT( * ) THEN 11 WHEN - 86 * - 28 THEN - + COUNT( * ) END )
----
35

skipif mysql # not compatible
query I rowsort label-6547
SELECT COALESCE ( + 35, - 46, - + CASE 67 WHEN + + COUNT ( * ) THEN 11 WHEN - 86 * - 28 THEN - + COUNT ( * ) END )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT + - COUNT( - - 40 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6548
SELECT + - COUNT ( - - 40 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT + 20 + NULLIF ( - - 74, + - ( + CASE WHEN 29 IS NULL THEN NULL WHEN + 61 IS NOT NULL THEN - COALESCE ( - + ( + COUNT( * ) ), + 19 ) ELSE - 91 + 27 END ) ) - CASE 52 WHEN + + COALESCE ( + 95, + 35 ) THEN - + NULLIF ( + COUNT( + 93 ), + 39 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6549
SELECT + 20 + NULLIF ( - - 74, + - ( + CASE WHEN 29 IS NULL THEN NULL WHEN + 61 IS NOT NULL THEN - COALESCE ( - + ( + COUNT ( * ) ), + 19 ) ELSE - 91 + 27 END ) ) - CASE 52 WHEN + + COALESCE ( + 95, + 35 ) THEN - + NULLIF ( + COUNT ( + 93 ), + 39 ) END
----
NULL

query I rowsort
SELECT 97 - - 60 AS col0
----
157

query I rowsort
SELECT DISTINCT - - 39 * 5
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-6552
SELECT DISTINCT 12 DIV 5 col1
----
2

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT 12 / 5 col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT DISTINCT - COUNT( * ) * 84 col1
----
-84

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT - COUNT ( * ) * 84 col1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-6554
SELECT DISTINCT - 90 DIV - 50
----
1

skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT - 90 / - 50
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT - + COUNT( * ) * + ( + + COUNT( * ) ) + + 30 col1
----
29

skipif mysql # not compatible
query I rowsort label-6555
SELECT - + COUNT ( * ) * + ( + + COUNT ( * ) ) + + 30 col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT DISTINCT + MIN( DISTINCT - 47 ) * - + ( + 78 ) * + 84 + + 73 + + 67
----
308084

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT + MIN ( DISTINCT - 47 ) * - + ( + 78 ) * + 84 + + 73 + + 67
----
308084

onlyif mysql # aggregate syntax: 
query II rowsort label-6557
SELECT ALL - 55 AS col1, + ( - 23 ) * ( + + 20 ) + - COUNT( ALL - - 65 ) col0
----
-55
-461

skipif mysql # not compatible
query II rowsort label-6557
SELECT ALL - 55 AS col1, + ( - 23 ) * ( + + 20 ) + - COUNT ( ALL - - 65 ) col0
----
-55
-461

onlyif mysql # aggregate syntax: 
query II rowsort label-6558
SELECT DISTINCT - + COUNT( * ) * COUNT( - - 83 ), - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-6558
SELECT DISTINCT - + COUNT ( * ) * COUNT ( - - 83 ), - COUNT ( * )
----
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6559
SELECT + 58 * - - 7, - 59 * COUNT( * ) AS col1
----
406
-59

skipif mysql # not compatible
query II rowsort label-6559
SELECT + 58 * - - 7, - 59 * COUNT ( * ) AS col1
----
406
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6560
SELECT DISTINCT CASE - - 59 WHEN - 77 / + - SUM( ALL - + 79 ) + - 15 + + 76 / + 97 THEN CAST( - 87 AS SIGNED ) + - 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT CASE - - 59 WHEN - 77 / + - SUM ( ALL - + 79 ) + - 15 + + 76 / + 97 THEN CAST ( - 87 AS INTEGER ) + - 80 END
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 77, 78 * - 90 / - NULLIF ( - 2, - 81 * - 55 * 95 + 22 + - 64 ) * - + 52 * 11 )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6562
SELECT DISTINCT - CAST( 69 AS SIGNED ) + - ( - 48 )
----
-21

skipif mysql # not compatible
query I rowsort label-6562
SELECT DISTINCT - CAST ( 69 AS INTEGER ) + - ( - 48 )
----
-21

query I rowsort
SELECT DISTINCT 75 + - + 54
----
21

query II rowsort
SELECT DISTINCT 51 + + 70 * - 61 * - + 56 AS col1, - 94 AS col2
----
239171
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6565
SELECT ALL COUNT( * ) + - CAST( + 90 AS SIGNED ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL COUNT ( * ) + - CAST ( + 90 AS INTEGER ) AS col1
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-6566
SELECT ALL - 17 DIV + 39
----
0

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL - 17 / + 39
----
0

query II rowsort
SELECT - 86 * - 94 AS col0, + 12 * - + 72 + + 16 AS col0
----
8084
-848

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT + MIN( - 71 ) * + ( SUM( ALL + 71 ) ) + - COUNT( * ) + + 30 - + COUNT( * ) + - CASE 82 WHEN - 64 + - + 25 THEN - + 23 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6568
SELECT + MIN ( - 71 ) * + ( SUM ( ALL + 71 ) ) + - COUNT ( * ) + + 30 - + COUNT ( * ) + - CASE 82 WHEN - 64 + - + 25 THEN - + 23 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6569
SELECT DISTINCT 16 * + - 0 DIV + ( - - 49 )
----
0

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT 16 * + - 0 / + ( - - 49 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT ALL MIN( - 38 ) + + + 49 * + 77 - + - 91
----
3826

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL MIN ( - 38 ) + + + 49 * + 77 - + - 91
----
3826

query I rowsort
SELECT - NULLIF ( + 61, 54 ) col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT ALL 50 + COUNT( DISTINCT + 8 ) * - COUNT( * ) * - 72 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL 50 + COUNT ( DISTINCT + 8 ) * - COUNT ( * ) * - 72 AS col2
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT - MIN( ALL 6 ) - + 21 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-6573
SELECT - MIN ( ALL 6 ) - + 21 AS col0
----
-27

query I rowsort
SELECT + 62 * 91 AS col2
----
5642

onlyif mysql # DIV for integer division: 
query II rowsort label-6575
SELECT 9 DIV + 42 + - 59 - 92, - 3 col1
----
-151
-3

skipif mysql # not compatible
query II rowsort label-6575
SELECT 9 / + 42 + - 59 - 92, - 3 col1
----
-151
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6576
SELECT DISTINCT - 46 / + COUNT( * ) * + 16 - + COALESCE ( - - CASE + + 52 WHEN - 25 THEN + 42 WHEN + 26 * CAST( + + 5 AS DECIMAL ) * + 97 * + 6 THEN - 94 + 41 END, - 51 ) * + - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + - 50 * + 76 * - SUM( + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6576
SELECT DISTINCT - 46 / + COUNT ( * ) * + 16 - + COALESCE ( - - CASE + + 52 WHEN - 25 THEN + 42 WHEN + 26 * CAST ( + + 5 AS REAL ) * + 97 * + 6 THEN - 94 + 41 END, - 51 ) * + - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - 50 * + 76 * - SUM ( + 66 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT + COUNT( * ) * 34 * + 19 + - 73 + + - 88 AS col1
----
485

skipif mysql # not compatible
query I rowsort label-6577
SELECT + COUNT ( * ) * 34 * + 19 + - 73 + + - 88 AS col1
----
485

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT + NULLIF ( - 51, COUNT( * ) + + 76 * + 39 * - + COUNT( * ) ) - + ( 13 )
----
-64

skipif mysql # not compatible
query I rowsort label-6578
SELECT + NULLIF ( - 51, COUNT ( * ) + + 76 * + 39 * - + COUNT ( * ) ) - + ( 13 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT + ( - + 9 ) * + - COUNT( * ) + + 43 + + - COUNT( DISTINCT + 69 ) + + 18
----
69

skipif mysql # not compatible
query I rowsort label-6579
SELECT + ( - + 9 ) * + - COUNT ( * ) + + 43 + + - COUNT ( DISTINCT + 69 ) + + 18
----
69

query I rowsort
SELECT + - 49 * - 71
----
3479

query I rowsort
SELECT + - ( 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT + COUNT( * ) * - 65 * - - 6 AS col0
----
-390

skipif mysql # not compatible
query I rowsort label-6582
SELECT + COUNT ( * ) * - 65 * - - 6 AS col0
----
-390

query I rowsort
SELECT DISTINCT - 61 * - - 5 AS col0
----
-305

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL + - COUNT( - 93 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL + - COUNT ( - 93 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT DISTINCT + MAX( ALL + 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT + MAX ( ALL + 60 ) AS col2
----
60

query I rowsort
SELECT ALL ( - 99 ) * - - 94 - + + 77 * - 53 AS col1
----
-5225

query I rowsort
SELECT + 98 * - 7
----
-686

query I rowsort
SELECT - - NULLIF ( - 52, - 79 + + 28 ) * + 69 * - 66 + + 5 + - ( + - 78 ) * 81 AS col0
----
243131

query I rowsort
SELECT ALL + - 82 * - + 35 + 46
----
2916

query I rowsort
SELECT + + 31 - - 26 + 63 AS col0
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-6591
SELECT - + NULLIF ( - + 34, + - ( - COALESCE ( 79, + - COUNT( * ) + SUM( + + 51 ), - 90 ) ) + 37 * + 73 * - COALESCE ( - 81, - + 80 * 91 * + 25 + + MAX( + + NULLIF ( - 55, + + 99 ) ) * + 70 / - - ( - AVG ( ALL - 6 ) ), + 33 + + + 79 ) / - 92 ) AS col1, + COUNT( * ) AS col2
----
34
1

skipif mysql # not compatible
query II rowsort label-6591
SELECT - + NULLIF ( - + 34, + - ( - COALESCE ( 79, + - COUNT ( * ) + SUM ( + + 51 ), - 90 ) ) + 37 * + 73 * - COALESCE ( - 81, - + 80 * 91 * + 25 + + MAX ( + + NULLIF ( - 55, + + 99 ) ) * + 70 / - - ( - AVG ( ALL - 6 ) ), + 33 + + + 79 ) / - 92 ) AS col1, + COUNT ( * ) AS col2
----
34
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6592
SELECT DISTINCT + 3 DIV 58
----
0

skipif mysql # not compatible
query I rowsort label-6592
SELECT DISTINCT + 3 / 58
----
0

query I rowsort
SELECT ALL - 48 + + + 38 * + COALESCE ( - - 5, - + 92 )
----
142

query I rowsort
SELECT ALL ( + 30 ) + - 14 AS col0
----
16

query I rowsort
SELECT ALL + 76 + + 10 AS col1
----
86

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6596
SELECT - NULLIF ( NULLIF ( + + 23, - + 13 * - + 77 + + 26 + + + 97 * + CAST( NULL AS DECIMAL ) ), 74 ) - + 67 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6596
SELECT - NULLIF ( NULLIF ( + + 23, - + 13 * - + 77 + + 26 + + + 97 * + CAST ( NULL AS REAL ) ), 74 ) - + 67 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6597
SELECT DISTINCT + 3 DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT + 3 / + 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT ALL - 12 + - + ( + ( - + MIN( - 50 ) ) ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL - 12 + - + ( + ( - + MIN ( - 50 ) ) ) AS col1
----
-62

query II rowsort
SELECT ALL NULLIF ( - 64, 83 ), - 13 AS col0
----
-64
-13

query I rowsort
SELECT ALL + 85 * + 29
----
2465

query I rowsort
SELECT DISTINCT - 31 + - + 31 * + 99 AS col2
----
-3100

query II rowsort
SELECT 40, - 74 col2
----
40
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6603
SELECT - CAST( + ( + CAST( COUNT( 86 ) AS SIGNED ) ) AS SIGNED ) + - 79 * 76 AS col1
----
-6005

skipif mysql # not compatible
query I rowsort label-6603
SELECT - CAST ( + ( + CAST ( COUNT ( 86 ) AS INTEGER ) ) AS INTEGER ) + - 79 * 76 AS col1
----
-6005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6604
SELECT ALL CAST( 34 AS SIGNED ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-6604
SELECT ALL CAST ( 34 AS INTEGER ) AS col0
----
34

query I rowsort
SELECT ALL + 13 - 52 + 25 AS col0
----
-14

query I rowsort
SELECT ALL 21 - - 39 AS col1
----
60

query I rowsort
SELECT ALL ( + 40 ) AS col2
----
40

query I rowsort
SELECT - 3 + - + ( + ( 36 ) )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6609
SELECT ALL CAST( + + NULLIF ( - 80, - CASE - 45 WHEN CAST( NULL AS SIGNED ) + 41 * + AVG ( ALL + 53 ) * + 34 + - 89 + + - 8 THEN - COALESCE ( - ( 68 ), - CASE 33 WHEN + 12 + - + 54 - - + 15 * + - 76 THEN + 76 + + - CAST( + 67 AS SIGNED ) + 44 + 29 * - COALESCE ( + 14, - 96 * + - 21 * + - 97 * 39 * + NULLIF ( + 85, - + 12 ) ) END * + 66 ) END + + 72 + - + 44 * + + 4 * - 78 / + ( 11 ) + 20 ) AS SIGNED ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL CAST ( + + NULLIF ( - 80, - CASE - 45 WHEN CAST ( NULL AS INTEGER ) + 41 * + AVG ( ALL + 53 ) * + 34 + - 89 + + - 8 THEN - COALESCE ( - ( 68 ), - CASE 33 WHEN + 12 + - + 54 - - + 15 * + - 76 THEN + 76 + + - CAST ( + 67 AS INTEGER ) + 44 + 29 * - COALESCE ( + 14, - 96 * + - 21 * + - 97 * 39 * + NULLIF ( + 85, - + 12 ) ) END * + 66 ) END + + 72 + - + 44 * + + 4 * - 78 / + ( 11 ) + 20 ) AS INTEGER ) AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6610
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + 25 * CAST( NULL AS SIGNED ) - - COUNT( * ) - - 91 * + + 75 * + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-6610
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + 25 * CAST ( NULL AS INTEGER ) - - COUNT ( * ) - - 91 * + + 75 * + 81
----
NULL

query I rowsort
SELECT + - CASE + 74 WHEN - AVG ( ALL - 63 ) THEN + 9 WHEN + 63 * + 70 * - ( ( 20 ) ) THEN - 61 * + 97 END
----
NULL

query I rowsort
SELECT ALL + - 98 * + 5 * + - 82 + + 41 + + 20 AS col0
----
40241

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6613
SELECT - + ( + - 18 ) DIV COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-6613
SELECT - + ( + - 18 ) / COUNT ( * )
----
18

query I rowsort
SELECT + - 72 * - 91 AS col0
----
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT + NULLIF ( - 32, - + 33 * MIN( - + 5 ) + 60 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-6615
SELECT + NULLIF ( - 32, - + 33 * MIN ( - + 5 ) + 60 ) AS col1
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6616
SELECT + CAST( - - 18 AS SIGNED ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-6616
SELECT + CAST ( - - 18 AS INTEGER ) AS col2
----
18

query I rowsort
SELECT ALL + 23 * 0 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6618
SELECT + 15 DIV - 37
----
0

skipif mysql # not compatible
query I rowsort label-6618
SELECT + 15 / - 37
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT ALL + - MIN( + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL + - MIN ( + 50 )
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6620
SELECT ALL 73 DIV - + COUNT( * ) + - + COUNT( + - 27 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL 73 / - + COUNT ( * ) + - + COUNT ( + - 27 ) AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6621
SELECT NULLIF ( 65, + AVG ( - + CAST( NULL AS SIGNED ) ) / 20 / + COUNT( * ) * + + 91 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-6621
SELECT NULLIF ( 65, + AVG ( - + CAST ( NULL AS INTEGER ) ) / 20 / + COUNT ( * ) * + + 91 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT COALESCE ( - COUNT( * ), - + 94 + - 67 + + COUNT( * ) ) + + 57
----
56

skipif mysql # not compatible
query I rowsort label-6622
SELECT COALESCE ( - COUNT ( * ), - + 94 + - 67 + + COUNT ( * ) ) + + 57
----
56

query I rowsort
SELECT DISTINCT + 40 + - 7 * ( 62 ) col2
----
-394

query I rowsort
SELECT + + 21 * 3 + + - 39
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT ALL - 65 + 88 + + 42 + - - 91 * - COUNT( + + 43 ) + 29 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL - 65 + 88 + + 42 + - - 91 * - COUNT ( + + 43 ) + 29 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT - - COALESCE ( + ( - - ( + 76 ) ), - + 90 ) * + + SUM( - 38 ) * + + COUNT( * ) + - 82 col1
----
-2970

skipif mysql # not compatible
query I rowsort label-6626
SELECT - - COALESCE ( + ( - - ( + 76 ) ), - + 90 ) * + + SUM ( - 38 ) * + + COUNT ( * ) + - 82 col1
----
-2970

query I rowsort
SELECT 13 + + 77 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT - 34 * - + COUNT( * ) * + 61 - - ( 72 )
----
2146

skipif mysql # not compatible
query I rowsort label-6628
SELECT - 34 * - + COUNT ( * ) * + 61 - - ( 72 )
----
2146

query I rowsort
SELECT ALL 62 * 79
----
4898

query I rowsort
SELECT ALL 11 + - NULLIF ( + 65, - 77 ) AS col1
----
-54

query I rowsort
SELECT 68 + - 9
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-6632
SELECT DISTINCT 20, + COUNT( * ) col1
----
20
1

skipif mysql # not compatible
query II rowsort label-6632
SELECT DISTINCT 20, + COUNT ( * ) col1
----
20
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6633
SELECT + 71 * + - CAST( NULL AS DECIMAL ) + - + ( - AVG ( DISTINCT 36 ) ) + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-6633
SELECT + 71 * + - CAST ( NULL AS REAL ) + - + ( - AVG ( DISTINCT 36 ) ) + 71
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6634
SELECT 96, - 0 - 0 + + - 4 DIV 26 AS col2
----
96
0

skipif mysql # not compatible
query II rowsort label-6634
SELECT 96, - 0 - 0 + + - 4 / 26 AS col2
----
96
0

query II rowsort
SELECT DISTINCT 77, - 79 AS col0
----
77
-79

query I rowsort
SELECT ALL 99 + + 81 * - 72
----
-5733

query II rowsort
SELECT - 82 AS col2, + 25 AS col2
----
-82
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6638
SELECT ALL 75 + + + 43 DIV - - 86 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL 75 + + + 43 / - - 86 AS col0
----
75

query I rowsort
SELECT 2 * - - 25 AS col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-6640
SELECT DISTINCT 43 AS col2, - 1 - NULLIF ( + + ( - COUNT( * ) ), + 97 + 31 ) AS col1
----
43
0

skipif mysql # not compatible
query II rowsort label-6640
SELECT DISTINCT 43 AS col2, - 1 - NULLIF ( + + ( - COUNT ( * ) ), + 97 + 31 ) AS col1
----
43
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT DISTINCT + COUNT( * ) * - + 91
----
-91

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT + COUNT ( * ) * - + 91
----
-91

query II rowsort
SELECT ALL 49 AS col1, 94
----
49
94

query I rowsort
SELECT DISTINCT - NULLIF ( ( 97 ), 44 ) * - 63
----
6111

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT ALL 91 * - MAX( - + 89 ) * + COUNT( * ) AS col2
----
8099

skipif mysql # not compatible
query I rowsort label-6644
SELECT ALL 91 * - MAX ( - + 89 ) * + COUNT ( * ) AS col2
----
8099

query I rowsort
SELECT 82 * 61 AS col2
----
5002

query I rowsort
SELECT ( - 57 ) * + - 90 AS col0
----
5130

query II rowsort
SELECT + 24 * 95 + + - 62 + - 44 AS col0, - 56
----
2174
-56

query I rowsort
SELECT - 64 - 53
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6649
SELECT COUNT( * ) AS col0, CAST( NULL AS SIGNED ) / + 99 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6649
SELECT COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) / + 99 AS col0
----
1
NULL

query II rowsort
SELECT ALL - 43, + 52 AS col2
----
-43
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6651
SELECT 33 * - + CAST( + 97 AS SIGNED ) AS col1
----
-3201

skipif mysql # not compatible
query I rowsort label-6651
SELECT 33 * - + CAST ( + 97 AS INTEGER ) AS col1
----
-3201

onlyif mysql # DIV for integer division: 
query II rowsort label-6652
SELECT ALL - 92 AS col2, + 41 + 86 + - - 90 DIV - - 27
----
-92
130

skipif mysql # not compatible
query II rowsort label-6652
SELECT ALL - 92 AS col2, + 41 + 86 + - - 90 / - - 27
----
-92
130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6653
SELECT DISTINCT - - 65 AS col0, - CAST( 62 AS SIGNED ) + 50
----
65
-12

skipif mysql # not compatible
query II rowsort label-6653
SELECT DISTINCT - - 65 AS col0, - CAST ( 62 AS INTEGER ) + 50
----
65
-12

query I rowsort
SELECT DISTINCT - 30 + - 36 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-6655
SELECT ALL - 82, - COUNT( * ) * - 29 * COALESCE ( + 32, - 19 + COUNT( * ), - + ( + 77 ) ) * 26 AS col1
----
-82
24128

skipif mysql # not compatible
query II rowsort label-6655
SELECT ALL - 82, - COUNT ( * ) * - 29 * COALESCE ( + 32, - 19 + COUNT ( * ), - + ( + 77 ) ) * 26 AS col1
----
-82
24128

query I rowsort
SELECT + NULLIF ( + 56, - + 56 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT ALL - COUNT( DISTINCT - - 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL - COUNT ( DISTINCT - - 51 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT + 57 + + 35 DIV + + 82 col1
----
57

skipif mysql # not compatible
query I rowsort label-6658
SELECT + 57 + + 35 / + + 82 col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6659
SELECT + 74 DIV 63 - + 85 + + 79 col1
----
-5

skipif mysql # not compatible
query I rowsort label-6659
SELECT + 74 / 63 - + 85 + + 79 col1
----
-5

query II rowsort
SELECT 93, 70 * 0 * + + 87 AS col2
----
93
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT DISTINCT - 69 + - SUM( + - 74 )
----
5

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT - 69 + - SUM ( + - 74 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6662
SELECT ALL + 11 + + COUNT( * ) * ( - 27 ), - CAST( NULL AS SIGNED ) * 56 AS col2
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-6662
SELECT ALL + 11 + + COUNT ( * ) * ( - 27 ), - CAST ( NULL AS INTEGER ) * 56 AS col2
----
-16
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6663
SELECT 48 DIV ( - COUNT( * ) )
----
-48

skipif mysql # not compatible
query I rowsort label-6663
SELECT 48 / ( - COUNT ( * ) )
----
-48

query I rowsort
SELECT ALL - - 91 + - 92 * - 52
----
4875

query II rowsort
SELECT + - 51 AS col0, 87
----
-51
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6666
SELECT DISTINCT + - 49 + CAST( - 92 AS SIGNED ) AS col1
----
-141

skipif mysql # not compatible
query I rowsort label-6666
SELECT DISTINCT + - 49 + CAST ( - 92 AS INTEGER ) AS col1
----
-141

query I rowsort
SELECT DISTINCT 50 + + 16
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT ALL 94 + + + 18 - + + 58 - - CASE + 7 WHEN - 70 THEN - - COUNT( * ) + - - 23 END * + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL 94 + + + 18 - + + 58 - - CASE + 7 WHEN - 70 THEN - - COUNT ( * ) + - - 23 END * + 61
----
NULL

query I rowsort
SELECT 71 * - + 91 col2
----
-6461

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6670
SELECT DISTINCT + 30 + - - 92 AS col1, + 85 + + CAST( - - 69 AS SIGNED )
----
122
154

skipif mysql # not compatible
query II rowsort label-6670
SELECT DISTINCT + 30 + - - 92 AS col1, + 85 + + CAST ( - - 69 AS INTEGER )
----
122
154

onlyif mysql # DIV for integer division: 
query I rowsort label-6671
SELECT 51 + + 86 DIV + ( + + 21 ) + 88 AS col2
----
143

skipif mysql # not compatible
query I rowsort label-6671
SELECT 51 + + 86 / + ( + + 21 ) + 88 AS col2
----
143

query I rowsort
SELECT ALL 99 - - + 8
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-6673
SELECT ALL 58 DIV + 66 col0
----
0

skipif mysql # not compatible
query I rowsort label-6673
SELECT ALL 58 / + 66 col0
----
0

query I rowsort
SELECT 61 * - 1
----
-61

query I rowsort
SELECT 67 + - 15 AS col2
----
52

query I rowsort
SELECT ALL + 13 - - 79
----
92

query II rowsort
SELECT 86 + 43 col1, + ( 43 )
----
129
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6678
SELECT ALL 45 - - 92 + + CAST( NULL AS DECIMAL ) * + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL 45 - - 92 + + CAST ( NULL AS REAL ) * + 58 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6679
SELECT 92 DIV - 20 AS col0, CAST( - 79 AS SIGNED ) AS col2
----
-4
-79

skipif mysql # not compatible
query II rowsort label-6679
SELECT 92 / - 20 AS col0, CAST ( - 79 AS INTEGER ) AS col2
----
-4
-79

query I rowsort
SELECT 31 + 61
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6681
SELECT COALESCE ( - 78, + - CAST( - 40 AS SIGNED ) - - 87, + - 68 ) + 34 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-6681
SELECT COALESCE ( - 78, + - CAST ( - 40 AS INTEGER ) - - 87, + - 68 ) + 34 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-6682
SELECT DISTINCT - MAX( - 39 ) AS col1, + ( - 76 ) * - 34
----
39
2584

skipif mysql # not compatible
query II rowsort label-6682
SELECT DISTINCT - MAX ( - 39 ) AS col1, + ( - 76 ) * - 34
----
39
2584

query I rowsort
SELECT 17 + 15 * + + 68 * 49 AS col2
----
49997

query I rowsort
SELECT DISTINCT + + 68 * 38 AS col1
----
2584

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT DISTINCT 76 + - + 16 * - 18 * - MAX( DISTINCT + 34 ) AS col2
----
-9716

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT 76 + - + 16 * - 18 * - MAX ( DISTINCT + 34 ) AS col2
----
-9716

query II rowsort
SELECT DISTINCT - + 49 * - + 79 + 34 AS col0, 66 * - 94 + - 58
----
3905
-6262

query I rowsort
SELECT ALL + - 83 * - - 67 + 61 AS col2
----
-5500

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT - 38 + 81 * - COUNT( * )
----
-119

skipif mysql # not compatible
query I rowsort label-6688
SELECT - 38 + 81 * - COUNT ( * )
----
-119

query I rowsort
SELECT ALL + NULLIF ( - 6, - + 62 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6690
SELECT - + NULLIF ( + 44, 27 + - 75 - + + COUNT( * ) * - COUNT( * ) * 98 * 14 ) + + CAST( - - NULLIF ( + + ( - 6 ), 37 ) AS SIGNED ) DIV + + 57 col1
----
-44

skipif mysql # not compatible
query I rowsort label-6690
SELECT - + NULLIF ( + 44, 27 + - 75 - + + COUNT ( * ) * - COUNT ( * ) * 98 * 14 ) + + CAST ( - - NULLIF ( + + ( - 6 ), 37 ) AS INTEGER ) / + + 57 col1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-6691
SELECT DISTINCT + - 30 * 90 DIV + 45 + 19 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT + - 30 * 90 / + 45 + 19 AS col1
----
-41

query I rowsort
SELECT 68 * 8 + 5 * - 4 + - 64 AS col1
----
460

query I rowsort
SELECT - 4 * - 36 * 0 AS col1
----
0

query I rowsort
SELECT DISTINCT + - ( + 5 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6695
SELECT DISTINCT - + COUNT( * ) * + COALESCE ( COALESCE ( + - COUNT( * ), + 23 * - 54 - + 16 + + 83 + + 58 + - 73 + - 70 DIV - 26 * - 10, 46 ), + CAST( - + 70 AS SIGNED ), CAST( NULL AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT - + COUNT ( * ) * + COALESCE ( COALESCE ( + - COUNT ( * ), + 23 * - 54 - + 16 + + 83 + + 58 + - 73 + - 70 / - 26 * - 10, 46 ), + CAST ( - + 70 AS INTEGER ), CAST ( NULL AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT - 36 + - - MAX( + 94 ) + + - COUNT( DISTINCT - - 7 )
----
57

skipif mysql # not compatible
query I rowsort label-6696
SELECT - 36 + - - MAX ( + 94 ) + + - COUNT ( DISTINCT - - 7 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT DISTINCT 38 * + 83 - 91 * + COUNT( * ) AS col2
----
3063

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT 38 * + 83 - 91 * + COUNT ( * ) AS col2
----
3063

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT - 93 + - NULLIF ( - + COUNT( * ), + - SUM( DISTINCT 46 ) + 54 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-6698
SELECT - 93 + - NULLIF ( - + COUNT ( * ), + - SUM ( DISTINCT 46 ) + 54 ) AS col0
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-6699
SELECT ALL - 81 DIV 43 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL - 81 / 43 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT DISTINCT - 72 * + + COUNT( * ) col2
----
-72

skipif mysql # not compatible
query I rowsort label-6700
SELECT DISTINCT - 72 * + + COUNT ( * ) col2
----
-72

query I rowsort
SELECT - 40 * + 16
----
-640

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT ALL + NULLIF ( MIN( 90 ), - 5 * - 94 )
----
90

skipif mysql # not compatible
query I rowsort label-6702
SELECT ALL + NULLIF ( MIN ( 90 ), - 5 * - 94 )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6703
SELECT DISTINCT + 54 AS col0, CASE SUM( ALL + 2 ) WHEN 29 * - 34 THEN 61 * - 24 - + - 0 ELSE - - CAST( - - COALESCE ( + + CAST( NULL AS SIGNED ), + 82 / - + 42 + + 92 - - 60 - - 96 / - - AVG ( DISTINCT 97 ), - 78, + 85 + - ( + 83 ) + - MAX( DISTINCT 63 ) ) AS SIGNED ) END AS col2
----
54
151

skipif mysql # not compatible
query II rowsort label-6703
SELECT DISTINCT + 54 AS col0, CASE SUM ( ALL + 2 ) WHEN 29 * - 34 THEN 61 * - 24 - + - 0 ELSE - - CAST ( - - COALESCE ( + + CAST ( NULL AS INTEGER ), + 82 / - + 42 + + 92 - - 60 - - 96 / - - AVG ( DISTINCT 97 ), - 78, + 85 + - ( + 83 ) + - MAX ( DISTINCT 63 ) ) AS INTEGER ) END AS col2
----
54
151

query I rowsort
SELECT DISTINCT + ( - + 98 ) col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT COUNT( - 21 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6705
SELECT COUNT ( - 21 ) AS col0
----
1

query I rowsort
SELECT + 4 + + 1 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT ALL ( CASE MIN( 81 ) WHEN 46 + + 29 + + + 62 - + 65 + - + 91 / 43 THEN 13 WHEN - 48 + - SUM( - 41 ) THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL ( CASE MIN ( 81 ) WHEN 46 + + 29 + + + 62 - + 65 + - + 91 / 43 THEN 13 WHEN - 48 + - SUM ( - 41 ) THEN NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT - COUNT( 69 ) * 32 * + 11
----
-352

skipif mysql # not compatible
query I rowsort label-6708
SELECT - COUNT ( 69 ) * 32 * + 11
----
-352

query I rowsort
SELECT - 50 * + 72 AS col2
----
-3600

query I rowsort
SELECT - NULLIF ( + 14, - 30 ) AS col1
----
-14

query II rowsort
SELECT DISTINCT 5 AS col2, 11
----
5
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT ALL ( - COUNT( - + 26 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL ( - COUNT ( - + 26 ) ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6713
SELECT ALL + CAST( NULL AS SIGNED ) * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL + CAST ( NULL AS INTEGER ) * 20
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6714
SELECT COUNT( * ) AS col2, 20 * - 94 AS col2
----
1
-1880

skipif mysql # not compatible
query II rowsort label-6714
SELECT COUNT ( * ) AS col2, 20 * - 94 AS col2
----
1
-1880

query II rowsort
SELECT - - 32 AS col0, - 21 + 76 AS col0
----
32
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6716
SELECT ALL - COUNT( * ) + + CAST( NULL AS SIGNED ) * 36 AS col0, + COALESCE ( + - 17, - 53, - + 51 ) AS col0
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-6716
SELECT ALL - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * 36 AS col0, + COALESCE ( + - 17, - 53, - + 51 ) AS col0
----
NULL
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT ALL 65 * 74 - - - 75 + + - 73 * COUNT( * ) + - 53 AS col1
----
4609

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL 65 * 74 - - - 75 + + - 73 * COUNT ( * ) + - 53 AS col1
----
4609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6718
SELECT + 22 DIV - CAST( - 45 AS SIGNED ) AS col2, COUNT( * ) + - 2 * + CAST( NULL AS SIGNED ) AS col1, 74 + - 14
----
0
NULL
60

skipif mysql # not compatible
query III rowsort label-6718
SELECT + 22 / - CAST ( - 45 AS INTEGER ) AS col2, COUNT ( * ) + - 2 * + CAST ( NULL AS INTEGER ) AS col1, 74 + - 14
----
0
NULL
60

query I rowsort
SELECT ALL + 20 + 65 + - 12 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT + + 14 + - - MAX( + 20 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6720
SELECT + + 14 + - - MAX ( + 20 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-6721
SELECT ALL + COUNT( * ) + - + 45 + 9 + + - 78 * - 0 + 7 col2, - 93 + - 11 * + + 44
----
-28
-577

skipif mysql # not compatible
query II rowsort label-6721
SELECT ALL + COUNT ( * ) + - + 45 + 9 + + - 78 * - 0 + 7 col2, - 93 + - 11 * + + 44
----
-28
-577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6722
SELECT CAST( NULL AS SIGNED ) * - - CASE + COUNT( * ) WHEN + 9 * COUNT( * ) THEN - 47 ELSE NULL END * COUNT( * ) + - + 5 + + 63 + + 84 * CAST( + CAST( + - 5 AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6722
SELECT CAST ( NULL AS INTEGER ) * - - CASE + COUNT ( * ) WHEN + 9 * COUNT ( * ) THEN - 47 ELSE NULL END * COUNT ( * ) + - + 5 + + 63 + + 84 * CAST ( + CAST ( + - 5 AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6723
SELECT ALL - 28 * CAST( NULL AS SIGNED ) + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-6723
SELECT ALL - 28 * CAST ( NULL AS INTEGER ) + + 46
----
NULL

query I rowsort
SELECT + 98 * - 15
----
-1470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6725
SELECT ALL + CAST( - 56 AS SIGNED ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-6725
SELECT ALL + CAST ( - 56 AS INTEGER ) AS col1
----
-56

query I rowsort
SELECT DISTINCT + 95 * - 57 AS col0
----
-5415

query I rowsort
SELECT - 25 - + 59 + - 87 * - 70
----
6006

onlyif mysql # aggregate syntax: 
query II rowsort label-6728
SELECT ALL SUM( + + 53 ) * - 13 AS col1, 27
----
-689
27

skipif mysql # not compatible
query II rowsort label-6728
SELECT ALL SUM ( + + 53 ) * - 13 AS col1, 27
----
-689
27

query I rowsort
SELECT - 38 - - 96 + 37 + + - ( + + ( - 33 ) ) * 15
----
590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6730
SELECT ALL NULLIF ( - + CASE + + 22 WHEN 58 THEN NULL WHEN - - COUNT( * ) * + 23 THEN - 96 - 96 ELSE + + MIN( + 32 ) END, ( + + 19 ) ) DIV + + 62 - + - 39 DIV - SUM( ALL + - CAST( + 94 AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL NULLIF ( - + CASE + + 22 WHEN 58 THEN NULL WHEN - - COUNT ( * ) * + 23 THEN - 96 - 96 ELSE + + MIN ( + 32 ) END, ( + + 19 ) ) / + + 62 - + - 39 / - SUM ( ALL + - CAST ( + 94 AS INTEGER ) ) col2
----
0

query I rowsort
SELECT + ( - 90 ) col0
----
-90

query I rowsort
SELECT ALL - 85 * - - 91
----
-7735

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6733
SELECT + SUM( DISTINCT - 0 ) DIV + + 21 + + 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-6733
SELECT + SUM ( DISTINCT - 0 ) / + + 21 + + 62 AS col0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-6734
SELECT - 46 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-6734
SELECT - 46 / + 62
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6735
SELECT + 17 + - CAST( - 70 AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-6735
SELECT + 17 + - CAST ( - 70 AS INTEGER )
----
87

query II rowsort
SELECT ( 7 ), + 4 col0
----
7
4

query I rowsort
SELECT - 86 * - 8
----
688

query I rowsort
SELECT - 63 + 43 + 34
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6739
SELECT - CAST( - - COUNT( * ) AS SIGNED ) + - 95 * - - SUM( ALL - 71 ) * 98 AS col0
----
661009

skipif mysql # not compatible
query I rowsort label-6739
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) + - 95 * - - SUM ( ALL - 71 ) * 98 AS col0
----
661009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6740
SELECT ALL + 5 * + 62 + - 43 + - 74 - + 0 + 55 DIV COUNT( * ), - 82 * + ( - + CAST( 2 AS SIGNED ) ) * - 51 AS col2
----
248
-8364

skipif mysql # not compatible
query II rowsort label-6740
SELECT ALL + 5 * + 62 + - 43 + - 74 - + 0 + 55 / COUNT ( * ), - 82 * + ( - + CAST ( 2 AS INTEGER ) ) * - 51 AS col2
----
248
-8364

onlyif mysql # DIV for integer division: 
query I rowsort label-6741
SELECT - 68 + + 20 DIV + 58
----
-68

skipif mysql # not compatible
query I rowsort label-6741
SELECT - 68 + + 20 / + 58
----
-68

query II rowsort
SELECT - 74 - 88, + 95 col1
----
-162
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6743
SELECT 24 * + + 62 + - 61 DIV NULLIF ( - + 86, + 24 )
----
1488

skipif mysql # not compatible
query I rowsort label-6743
SELECT 24 * + + 62 + - 61 / NULLIF ( - + 86, + 24 )
----
1488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6744
SELECT ALL + 33 * + 50 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL + 33 * + 50 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6745
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) + + - 52 + - COALESCE ( + COUNT( * ), - - COUNT( * ), + + CASE + 42 WHEN + - 97 - - 39 + + + 88 + + ( - - 86 ) THEN - 28 + - COUNT( * ) * + 54 WHEN ( + 67 ) THEN + CAST( + + 6 AS SIGNED ) DIV - + 55 END * + 54 ) DIV 50 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-6745
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) + + - 52 + - COALESCE ( + COUNT ( * ), - - COUNT ( * ), + + CASE + 42 WHEN + - 97 - - 39 + + + 88 + + ( - - 86 ) THEN - 28 + - COUNT ( * ) * + 54 WHEN ( + 67 ) THEN + CAST ( + + 6 AS INTEGER ) / - + 55 END * + 54 ) / 50 AS col1
----
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6746
SELECT ALL - 39 * CAST( NULL AS DECIMAL ) + + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL - 39 * CAST ( NULL AS REAL ) + + + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT - MAX( 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-6747
SELECT - MAX ( 13 ) AS col0
----
-13

query I rowsort
SELECT - 57 + - + 44 * - 66
----
2847

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT ALL - COUNT( * ) * - NULLIF ( - NULLIF ( - 95, - 73 / 86 + + - 50 ), 31 ) + - 32
----
63

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL - COUNT ( * ) * - NULLIF ( - NULLIF ( - 95, - 73 / 86 + + - 50 ), 31 ) + - 32
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6750
SELECT DISTINCT + 69 * - CAST( - COUNT( * ) AS SIGNED ) + 77 AS col2, - 49 + + + 83
----
146
34

skipif mysql # not compatible
query II rowsort label-6750
SELECT DISTINCT + 69 * - CAST ( - COUNT ( * ) AS INTEGER ) + 77 AS col2, - 49 + + + 83
----
146
34

onlyif mysql # DIV for integer division: 
query I rowsort label-6751
SELECT - 10 DIV + 7
----
-1

skipif mysql # not compatible
query I rowsort label-6751
SELECT - 10 / + 7
----
-1

query I rowsort
SELECT 77 + 23 + + - 53 * - - ( + - 49 ) + + 42 col1
----
2739

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT ALL + - COUNT( * ) + ( + 10 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL + - COUNT ( * ) + ( + 10 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT - SUM( + 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-6754
SELECT - SUM ( + 68 )
----
-68

query I rowsort
SELECT ( - ( - 97 ) )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6756
SELECT + 93 + - COUNT( * ) + + 41 * + CAST( COALESCE ( - - COUNT( * ), + 36, + 32 - + + 79 ) AS SIGNED )
----
133

skipif mysql # not compatible
query I rowsort label-6756
SELECT + 93 + - COUNT ( * ) + + 41 * + CAST ( COALESCE ( - - COUNT ( * ), + 36, + 32 - + + 79 ) AS INTEGER )
----
133

query I rowsort
SELECT ALL + 24 + 5 + + ( + - 61 ) AS col2
----
-32

query I rowsort
SELECT ( 41 ) + + 39 + + + 93 * 3 col0
----
359

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6759
SELECT - 16 * 85 + CAST( NULL AS SIGNED ) + 18 * ( 3 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6759
SELECT - 16 * 85 + CAST ( NULL AS INTEGER ) + 18 * ( 3 ) AS col0
----
NULL

query I rowsort
SELECT + 59 + 36
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT DISTINCT + MAX( ALL + 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-6761
SELECT DISTINCT + MAX ( ALL + 60 ) AS col0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6762
SELECT DISTINCT - MAX( + - 85 ), COALESCE ( + 39, - 76 DIV + - 82, + 50 ) + + - COUNT( * ) AS col2
----
85
38

skipif mysql # not compatible
query II rowsort label-6762
SELECT DISTINCT - MAX ( + - 85 ), COALESCE ( + 39, - 76 / + - 82, + 50 ) + + - COUNT ( * ) AS col2
----
85
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT ALL COUNT( * ) - + + 6 * + 11 - - + 6 + - 26 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL COUNT ( * ) - + + 6 * + 11 - - + 6 + - 26 AS col2
----
-85

query I rowsort
SELECT DISTINCT + + 29 - - 44 AS col0
----
73

query I rowsort
SELECT - 9 + + 27 AS col0
----
18

query I rowsort
SELECT ( + 81 ) * + - 73 AS col0
----
-5913

query I rowsort
SELECT + NULLIF ( - ( 68 ), - - 88 ) * 99
----
-6732

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6768
SELECT ALL COUNT( * ) DIV + 11
----
0

skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL COUNT ( * ) / + 11
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6769
SELECT + COUNT( * ) * + 16 * + + COUNT( * ) DIV ( - + 79 ) + - - ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6769
SELECT + COUNT ( * ) * + 16 * + + COUNT ( * ) / ( - + 79 ) + - - ( COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT DISTINCT CASE + COUNT( * ) WHEN 77 THEN + - 8 END * - + 18 / ( - 6 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6770
SELECT DISTINCT CASE + COUNT ( * ) WHEN 77 THEN + - 8 END * - + 18 / ( - 6 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6771
SELECT DISTINCT 75 DIV 63 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6771
SELECT DISTINCT 75 / 63 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6772
SELECT DISTINCT - 38, 48 * - ( - - CASE 40 WHEN - COUNT( * ) + + 69 + - 49 + - 27 + - 93 * + COALESCE ( + COALESCE ( 19, 64 * + 87 + + 79 ), + 25 ) * + 47 / 13 THEN NULL WHEN + COUNT( * ) THEN 38 ELSE NULL END ) + - 79 * 2 * - COUNT( * ) * + 83 + 99 AS col0
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-6772
SELECT DISTINCT - 38, 48 * - ( - - CASE 40 WHEN - COUNT ( * ) + + 69 + - 49 + - 27 + - 93 * + COALESCE ( + COALESCE ( 19, 64 * + 87 + + 79 ), + 25 ) * + 47 / 13 THEN NULL WHEN + COUNT ( * ) THEN 38 ELSE NULL END ) + - 79 * 2 * - COUNT ( * ) * + 83 + 99 AS col0
----
-38
NULL

query I rowsort
SELECT 86 * - 73 * - + 68
----
426904

query I rowsort
SELECT DISTINCT 4 * + 63
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6775
SELECT CAST( NULL AS SIGNED ) * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-6775
SELECT CAST ( NULL AS INTEGER ) * - 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT COUNT( * ) * 23 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-6776
SELECT COUNT ( * ) * 23 AS col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6777
SELECT DISTINCT - NULLIF ( + COALESCE ( COALESCE ( + 20, - 61 * - COALESCE ( 44, + 23 + ( - 57 ), + - 20 ) + + COUNT( * ) + 90 ), + 60 ), 24 / - 50 ) + - COALESCE ( - - COUNT( * ), + MIN( + 95 ), CAST( NULL AS SIGNED ) * 82 * - 16 * + 25 ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-6777
SELECT DISTINCT - NULLIF ( + COALESCE ( COALESCE ( + 20, - 61 * - COALESCE ( 44, + 23 + ( - 57 ), + - 20 ) + + COUNT ( * ) + 90 ), + 60 ), 24 / - 50 ) + - COALESCE ( - - COUNT ( * ), + MIN ( + 95 ), CAST ( NULL AS INTEGER ) * 82 * - 16 * + 25 ) col2
----
-21

query I rowsort
SELECT ALL - ( + + 73 )
----
-73

query I rowsort
SELECT ALL 26 + + 22 * - - 72 AS col1
----
1610

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT ALL - COUNT( - 31 )
----
-1

skipif mysql # not compatible
query I rowsort label-6780
SELECT ALL - COUNT ( - 31 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6781
SELECT + 54, COUNT( * ) AS col0
----
54
1

skipif mysql # not compatible
query II rowsort label-6781
SELECT + 54, COUNT ( * ) AS col0
----
54
1

query I rowsort
SELECT ALL + 92 + + + 6 AS col0
----
98

query I rowsort
SELECT 37 * + 60
----
2220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6784
SELECT CASE - - NULLIF ( + 23, + 71 ) WHEN 8 THEN 56 WHEN + + COUNT( ALL CAST( - 41 AS SIGNED ) ) * - 80 THEN NULL END * - ( - 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6784
SELECT CASE - - NULLIF ( + 23, + 71 ) WHEN 8 THEN 56 WHEN + + COUNT ( ALL CAST ( - 41 AS INTEGER ) ) * - 80 THEN NULL END * - ( - 96 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6785
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) - - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6785
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) - - 29
----
NULL

query I rowsort
SELECT DISTINCT - - 82 - 83 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT DISTINCT + 50 * SUM( DISTINCT - 96 ) * + 45 + + - 37 AS col0
----
-216037

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT + 50 * SUM ( DISTINCT - 96 ) * + 45 + + - 37 AS col0
----
-216037

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT - MIN( DISTINCT + 98 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-6788
SELECT - MIN ( DISTINCT + 98 ) AS col2
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-6789
SELECT DISTINCT - 59 - - 2 DIV 19
----
-59

skipif mysql # not compatible
query I rowsort label-6789
SELECT DISTINCT - 59 - - 2 / 19
----
-59

query I rowsort
SELECT ALL + 1 * 64 * ( - 72 ) AS col2
----
-4608

query I rowsort
SELECT 43 + - 8 AS col1
----
35

query I rowsort
SELECT + COALESCE ( 1, - 79 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6793
SELECT - 16 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6793
SELECT - 16 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6794
SELECT ALL - + COUNT( * ) DIV + + 92 + 56 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL - + COUNT ( * ) / + + 92 + 56 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT 20 - + - 49 + + 90 + 80 + - 50 * + NULLIF ( MIN( DISTINCT + 11 ), 44 ) * + 70 - + 25 * + - MAX( - 82 )
----
-40311

skipif mysql # not compatible
query I rowsort label-6795
SELECT 20 - + - 49 + + 90 + 80 + - 50 * + NULLIF ( MIN ( DISTINCT + 11 ), 44 ) * + 70 - + 25 * + - MAX ( - 82 )
----
-40311

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT - 73 + + + 36 * MIN( DISTINCT - 35 )
----
-1333

skipif mysql # not compatible
query I rowsort label-6796
SELECT - 73 + + + 36 * MIN ( DISTINCT - 35 )
----
-1333

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6797
SELECT ALL 29 * - - ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL 29 * - - ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 50 * 57 * - 75 AS col0
----
-213750

query II rowsort
SELECT ALL - 41 col2, 64
----
-41
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6800
SELECT COUNT( * ), 9 - + + 5 AS col2
----
1
4

skipif mysql # not compatible
query II rowsort label-6800
SELECT COUNT ( * ), 9 - + + 5 AS col2
----
1
4

query I rowsort
SELECT ALL + 66 * 62 + + 68 AS col0
----
4160

query II rowsort
SELECT + 31 AS col0, + 35 + + 22
----
31
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6803
SELECT ALL - 33 * - + 74 * CAST( NULL AS SIGNED ) + + + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL - 33 * - + 74 * CAST ( NULL AS INTEGER ) + + + COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6804
SELECT DISTINCT CAST( - 30 AS SIGNED ) * + 27 + + 5
----
-805

skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT CAST ( - 30 AS INTEGER ) * + 27 + + 5
----
-805

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT 14 + 19 + - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-6805
SELECT 14 + 19 + - COUNT ( * )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6806
SELECT DISTINCT + 34 * - - 36 * - - 60 * - CAST( - 58 AS SIGNED ) * - COUNT( * ) + + - COUNT( * ) - + 1
----
-4259522

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT + 34 * - - 36 * - - 60 * - CAST ( - 58 AS INTEGER ) * - COUNT ( * ) + + - COUNT ( * ) - + 1
----
-4259522

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT COUNT( ( 24 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6807
SELECT COUNT ( ( 24 ) ) AS col0
----
1

query I rowsort
SELECT ALL 9 + - + ( - 50 ) * 52
----
2609

onlyif mysql # DIV for integer division: 
query I rowsort label-6809
SELECT DISTINCT 20 DIV - - ( + 55 )
----
0

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT 20 / - - ( + 55 )
----
0

query II rowsort
SELECT + + 61 col2, - 52
----
61
-52

query I rowsort
SELECT ALL 31 - + + 98 + 16 * 65 AS col1
----
973

query I rowsort
SELECT + 1 + - - 3 * + - 38
----
-113

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6813
SELECT + CAST( NULL AS DECIMAL ) + - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6813
SELECT + CAST ( NULL AS REAL ) + - 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT ALL + 21 * + 2 + SUM( DISTINCT - 24 ) * + + ( - 57 ) AS col1
----
1410

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL + 21 * + 2 + SUM ( DISTINCT - 24 ) * + + ( - 57 ) AS col1
----
1410

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT DISTINCT 16 - - COUNT( * ) + - - COUNT( ALL 47 ) * + + MIN( + 66 ) * + 49 AS col0
----
3251

skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT 16 - - COUNT ( * ) + - - COUNT ( ALL 47 ) * + + MIN ( + 66 ) * + 49 AS col0
----
3251

query I rowsort
SELECT ALL + COALESCE ( 43, 23 - - 7 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT - + COUNT( * ) + - 34 * 13 * 63
----
-27847

skipif mysql # not compatible
query I rowsort label-6817
SELECT - + COUNT ( * ) + - 34 * 13 * 63
----
-27847

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6818
SELECT ALL + CAST( NULL AS SIGNED ), - 13 AS col2
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-6818
SELECT ALL + CAST ( NULL AS INTEGER ), - 13 AS col2
----
NULL
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT + COUNT( * ) * + 9
----
9

skipif mysql # not compatible
query I rowsort label-6819
SELECT + COUNT ( * ) * + 9
----
9

query II rowsort
SELECT - - 86, 50 * ( 62 ) AS col1
----
86
3100

query I rowsort
SELECT - 5 + 42 + 98 AS col2
----
135

query I rowsort
SELECT DISTINCT + CASE - 41 WHEN - + 37 THEN - 50 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6823
SELECT DISTINCT + CAST( ( - - MAX( ALL 17 ) ) AS SIGNED ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-6823
SELECT DISTINCT + CAST ( ( - - MAX ( ALL 17 ) ) AS INTEGER ) AS col1
----
17

query I rowsort
SELECT ALL NULLIF ( - ( + - ( - + 8 ) ), + 15 )
----
-8

query II rowsort
SELECT - 27 AS col0, 40
----
-27
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT - - ( ( + 84 ) ) * MIN( ALL + + 69 )
----
5796

skipif mysql # not compatible
query I rowsort label-6826
SELECT - - ( ( + 84 ) ) * MIN ( ALL + + 69 )
----
5796

query I rowsort
SELECT ALL + 45 * + 57 AS col0
----
2565

query I rowsort
SELECT DISTINCT - 91 + - + 40
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT ALL + ( - 58 ) + - COUNT( * ) * + 39 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-6829
SELECT ALL + ( - 58 ) + - COUNT ( * ) * + 39 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-6830
SELECT - 87 + 60 + 48 * + 89 * 55 AS col2, - ( COUNT( * ) ) col1
----
234933
-1

skipif mysql # not compatible
query II rowsort label-6830
SELECT - 87 + 60 + 48 * + 89 * 55 AS col2, - ( COUNT ( * ) ) col1
----
234933
-1

query I rowsort
SELECT ALL CASE - 95 WHEN - 97 * 7 + + - 79 THEN 85 ELSE - 43 * 53 END AS col0
----
-2279

query I rowsort
SELECT DISTINCT - 9 + + - 18 * 8 * - 40 AS col2
----
5751

query I rowsort
SELECT - 64 + - - ( - - 6 )
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6834
SELECT - 81 DIV - 50 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6834
SELECT - 81 / - 50 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6835
SELECT DISTINCT + COALESCE ( CASE 30 WHEN + + 74 - - - COUNT( * ) + + 43 + 8 * - 16 * + + 99 DIV + 57 * - - 46 THEN - 46 WHEN - 29 THEN NULL ELSE NULL END, CAST( NULL AS SIGNED ), - 21 ) DIV + + 70 + - 84 + + - 84 DIV COUNT( * ) * - 49 + + NULLIF ( + 88, 50 ) * 76 + + + 74 AS col2
----
10794

skipif mysql # not compatible
query I rowsort label-6835
SELECT DISTINCT + COALESCE ( CASE 30 WHEN + + 74 - - - COUNT ( * ) + + 43 + 8 * - 16 * + + 99 / + 57 * - - 46 THEN - 46 WHEN - 29 THEN NULL ELSE NULL END, CAST ( NULL AS INTEGER ), - 21 ) / + + 70 + - 84 + + - 84 / COUNT ( * ) * - 49 + + NULLIF ( + 88, 50 ) * 76 + + + 74 AS col2
----
10794

query I rowsort
SELECT ( ( - - 81 ) ) AS col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6837
SELECT - 28 * + 69 * - 60 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6837
SELECT - 28 * + 69 * - 60 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6838
SELECT DISTINCT MIN( + 33 ) * 50 + + CASE - + 10 WHEN COUNT( * ) THEN NULL WHEN + 89 + 21 - - COUNT( * ) THEN + - 41 + - - 89 + - 57 + + + 36 * - 54 * + - 89 DIV 43 * + 1 ELSE - - 67 * 9 END AS col2
----
2253

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT MIN ( + 33 ) * 50 + + CASE - + 10 WHEN COUNT ( * ) THEN NULL WHEN + 89 + 21 - - COUNT ( * ) THEN + - 41 + - - 89 + - 57 + + + 36 * - 54 * + - 89 / 43 * + 1 ELSE - - 67 * 9 END AS col2
----
2253

query I rowsort
SELECT ALL - 7 * 25 + + 32 * + 33
----
881

query II rowsort
SELECT DISTINCT + ( + 7 ), 15 * + 62 AS col1
----
7
930

onlyif mysql # DIV for integer division: 
query I rowsort label-6841
SELECT 92 DIV 2 + 69 * + 79 AS col0
----
5497

skipif mysql # not compatible
query I rowsort label-6841
SELECT 92 / 2 + 69 * + 79 AS col0
----
5497

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT ALL + ( + MIN( - ( 93 ) ) ) * - + 81 AS col0
----
7533

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL + ( + MIN ( - ( 93 ) ) ) * - + 81 AS col0
----
7533

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT DISTINCT + CASE - - 69 WHEN 3 - COUNT( * ) + - - 12 THEN + 91 + - - 68 WHEN - - 74 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT + CASE - - 69 WHEN 3 - COUNT ( * ) + - - 12 THEN + 91 + - - 68 WHEN - - 74 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 97 * - + 77 - 24 AS col1
----
7445

query I rowsort
SELECT - 38 * NULLIF ( + 19, - - 76 ) AS col2
----
-722

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT ALL + CASE + CASE - ( 71 ) WHEN ( 63 ) * + 82 * - ( + 96 ) / - + MAX( ALL + 88 ) * - - COUNT( * ) + - 69 * - + 94 * 37 * 29 / + ( 57 ) THEN + + 8 END WHEN - 7 THEN NULL WHEN + 48 THEN 30 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL + CASE + CASE - ( 71 ) WHEN ( 63 ) * + 82 * - ( + 96 ) / - + MAX ( ALL + 88 ) * - - COUNT ( * ) + - 69 * - + 94 * 37 * 29 / + ( 57 ) THEN + + 8 END WHEN - 7 THEN NULL WHEN + 48 THEN 30 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6847
SELECT ALL 65 DIV 49 * + 94 * + + 98
----
9212

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL 65 / 49 * + 94 * + + 98
----
9212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6848
SELECT + - 6 DIV + MIN( ALL - 15 ) + 5 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6848
SELECT + - 6 / + MIN ( ALL - 15 ) + 5 AS col0
----
5

query I rowsort
SELECT - 92 * + 57 * 78 + - 86 AS col2
----
-409118

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT + - 4 - - + MIN( ALL - 4 ) + 9 * - COUNT( * ) + - 52 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-6850
SELECT + - 4 - - + MIN ( ALL - 4 ) + 9 * - COUNT ( * ) + - 52 AS col2
----
-69

query II rowsort
SELECT ALL + 49 * + - 35 AS col2, + 62 AS col0
----
-1715
62

query I rowsort
SELECT ALL + ( - + 21 ) AS col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6853
SELECT + + 79 DIV + NULLIF ( - 36, - COUNT( DISTINCT COALESCE ( - 78, - 80 ) ) * - 1 + 27 + 59 * 32 + - 13 + - 55 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6853
SELECT + + 79 / + NULLIF ( - 36, - COUNT ( DISTINCT COALESCE ( - 78, - 80 ) ) * - 1 + 27 + 59 * 32 + - 13 + - 55 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT + + ( - 35 ) * - - 77 + COUNT( * ) AS col2
----
-2694

skipif mysql # not compatible
query I rowsort label-6854
SELECT + + ( - 35 ) * - - 77 + COUNT ( * ) AS col2
----
-2694

query I rowsort
SELECT + ( + + 19 ) + 29 + + + ( - - 26 )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6856
SELECT 10 AS col2, + 54 - + CAST( NULL AS SIGNED )
----
10
NULL

skipif mysql # not compatible
query II rowsort label-6856
SELECT 10 AS col2, + 54 - + CAST ( NULL AS INTEGER )
----
10
NULL

query I rowsort
SELECT - 40 * 12
----
-480

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6858
SELECT DISTINCT CASE - - 70 WHEN - 22 * - - 60 + + + 62 THEN + 5 WHEN + ( 91 ) * - 35 - - 87 THEN + 20 ELSE - + 36 * - - 0 * 57 + - CAST( NULL AS DECIMAL ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6858
SELECT DISTINCT CASE - - 70 WHEN - 22 * - - 60 + + + 62 THEN + 5 WHEN + ( 91 ) * - 35 - - 87 THEN + 20 ELSE - + 36 * - - 0 * 57 + - CAST ( NULL AS REAL ) END AS col2
----
NULL

query I rowsort
SELECT + 28 + + + 69
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6860
SELECT DISTINCT - CAST( ( + - ( 56 ) ) AS SIGNED ) + - 66
----
-10

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT - CAST ( ( + - ( 56 ) ) AS INTEGER ) + - 66
----
-10

query I rowsort
SELECT ALL 10 + + 25
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT DISTINCT - MAX( ALL - 46 ) + + COALESCE ( - 0, - + 9 * 18 * + - 69 + - + 78 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT - MAX ( ALL - 46 ) + + COALESCE ( - 0, - + 9 * 18 * + - 69 + - + 78 ) AS col1
----
46

query II rowsort
SELECT + 84, + 31 - - 57 AS col1
----
84
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT COUNT( * ) + ( + 21 )
----
22

skipif mysql # not compatible
query I rowsort label-6864
SELECT COUNT ( * ) + ( + 21 )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6865
SELECT DISTINCT - CAST( - ( - COUNT( * ) ) AS SIGNED ) - - - SUM( DISTINCT - 78 ) * + 76 col0
----
5927

skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT - CAST ( - ( - COUNT ( * ) ) AS INTEGER ) - - - SUM ( DISTINCT - 78 ) * + 76 col0
----
5927

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT ALL - COUNT( * ) - - + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL - COUNT ( * ) - - + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT 30 * + 42
----
1260

query I rowsort
SELECT 65 * 92 * - 55 col1
----
-328900

onlyif mysql # DIV for integer division: 
query I rowsort label-6869
SELECT DISTINCT + - 62 DIV + - 86 col1
----
0

skipif mysql # not compatible
query I rowsort label-6869
SELECT DISTINCT + - 62 / + - 86 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6870
SELECT ALL + - ( - ( + - COALESCE ( + - 44, - - 38 + AVG ( - - 80 ) + + - 39 + + CAST( NULL AS SIGNED ) + - 65 + + 43 * - 62 DIV - + 56 DIV 21 * 86 ) ) ) DIV 29 + - - COUNT( * ) - - 81 * - + MIN( + 47 )
----
-3805

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL + - ( - ( + - COALESCE ( + - 44, - - 38 + AVG ( - - 80 ) + + - 39 + + CAST ( NULL AS INTEGER ) + - 65 + + 43 * - 62 / - + 56 / 21 * 86 ) ) ) / 29 + - - COUNT ( * ) - - 81 * - + MIN ( + 47 )
----
-3805

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT - 10 * - COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-6871
SELECT - 10 * - COUNT ( * ) AS col2
----
10

query I rowsort
SELECT ALL + 74 * 51
----
3774

query I rowsort
SELECT ALL 54 * + 44 + + - 10 * 31 * - 19 * + 84
----
497136

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT + 33 - COALESCE ( + COUNT( * ), + - MAX( ALL + + 47 ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6874
SELECT + 33 - COALESCE ( + COUNT ( * ), + - MAX ( ALL + + 47 ) ) AS col2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6875
SELECT - 76 + + SUM( ALL + + CAST( NULL AS SIGNED ) ) + - - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6875
SELECT - 76 + + SUM ( ALL + + CAST ( NULL AS INTEGER ) ) + - - 28
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6876
SELECT COUNT( * ) * + CAST( - - 96 AS SIGNED ) + + - 84
----
12

skipif mysql # not compatible
query I rowsort label-6876
SELECT COUNT ( * ) * + CAST ( - - 96 AS INTEGER ) + + - 84
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6877
SELECT + CAST( - - 25 AS SIGNED ) * + + COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-6877
SELECT + CAST ( - - 25 AS INTEGER ) * + + COUNT ( * ) AS col2
----
25

query I rowsort
SELECT + 99 + + 95 + 67 AS col0
----
261

query II rowsort
SELECT + 21 AS col1, + 61 + + 9 AS col0
----
21
70

query I rowsort
SELECT 18 + + 37 + - 39 + + 54
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-6881
SELECT - - 64 AS col2, NULLIF ( + 45, - 55 ) DIV - - 22 AS col1
----
64
2

skipif mysql # not compatible
query II rowsort label-6881
SELECT - - 64 AS col2, NULLIF ( + 45, - 55 ) / - - 22 AS col1
----
64
2

query I rowsort
SELECT ALL - 28 + + 1 col0
----
-27

query I rowsort
SELECT - 92 * 49 + + + 49
----
-4459

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6884
SELECT - CASE 84 WHEN - NULLIF ( + COUNT( * ), + ( + ( - - 34 ) ) + ( + + 30 ) ) * + 29 THEN COUNT( * ) DIV - 50 WHEN MAX( DISTINCT - + 63 ) THEN NULL ELSE 48 END AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-6884
SELECT - CASE 84 WHEN - NULLIF ( + COUNT ( * ), + ( + ( - - 34 ) ) + ( + + 30 ) ) * + 29 THEN COUNT ( * ) / - 50 WHEN MAX ( DISTINCT - + 63 ) THEN NULL ELSE 48 END AS col1
----
-48

query I rowsort
SELECT DISTINCT ( - - 15 ) + 36 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT NULLIF ( + COUNT( * ), 0 ) + - + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6886
SELECT NULLIF ( + COUNT ( * ), 0 ) + - + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT DISTINCT + MAX( - 69 ) + 90 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-6887
SELECT DISTINCT + MAX ( - 69 ) + 90 AS col2
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6888
SELECT NULLIF ( - 5, + 83 ) DIV 23 * - SUM( DISTINCT + - 18 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6888
SELECT NULLIF ( - 5, + 83 ) / 23 * - SUM ( DISTINCT + - 18 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT ALL COUNT( * ) - - 28 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL COUNT ( * ) - - 28 AS col2
----
29

query I rowsort
SELECT DISTINCT 69 * 38
----
2622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6891
SELECT ALL 92 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL 92 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 4 * 96 * - + 70 AS col0
----
-26880

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT COUNT( * ) * - + ( + 31 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-6893
SELECT COUNT ( * ) * - + ( + 31 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-6894
SELECT COUNT( + - 26 ), + 34 + - 81 col1
----
1
-47

skipif mysql # not compatible
query II rowsort label-6894
SELECT COUNT ( + - 26 ), + 34 + - 81 col1
----
1
-47

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6895
SELECT CAST( NULL AS SIGNED ) + - CAST( - 56 AS DECIMAL ) + - 78 + - - 14 + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-6895
SELECT CAST ( NULL AS INTEGER ) + - CAST ( - 56 AS REAL ) + - 78 + - - 14 + + 64
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6896
SELECT DISTINCT CASE 9 WHEN 84 THEN + - CASE - - 47 WHEN - 70 THEN - 58 WHEN - + 67 THEN COUNT( * ) * + 65 + + 77 / COUNT( * ) ELSE NULL END * - + 78 + - NULLIF ( - 17, 37 - - + 5 + - 99 ) ELSE NULL END / - 33 * COALESCE ( - 87, - - COUNT( * ) * + - MAX( + 33 ) ) / - - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT CASE 9 WHEN 84 THEN + - CASE - - 47 WHEN - 70 THEN - 58 WHEN - + 67 THEN COUNT ( * ) * + 65 + + 77 / COUNT ( * ) ELSE NULL END * - + 78 + - NULLIF ( - 17, 37 - - + 5 + - 99 ) ELSE NULL END / - 33 * COALESCE ( - 87, - - COUNT ( * ) * + - MAX ( + 33 ) ) / - - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6897
SELECT ALL - + ( - COUNT( * ) ) AS col2, 34 DIV + + 92
----
1
0

skipif mysql # not compatible
query II rowsort label-6897
SELECT ALL - + ( - COUNT ( * ) ) AS col2, 34 / + + 92
----
1
0

query I rowsort
SELECT ALL - ( - - 73 ) * 27 + 72 AS col1
----
-1899

query I rowsort
SELECT 25 * + 19 AS col2
----
475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6900
SELECT + - 90 DIV COUNT( * ) + - 53 AS col2
----
-143

skipif mysql # not compatible
query I rowsort label-6900
SELECT + - 90 / COUNT ( * ) + - 53 AS col2
----
-143

query I rowsort
SELECT ALL - + ( - + 98 ) col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6902
SELECT + 74 / - 0 * + + ( 10 ) * - 96 * ( CASE 69 WHEN + 60 + + 5 * - 51 THEN 43 * - - 91 + - - ( - ( 20 ) ) * + - CAST( NULL AS SIGNED ) + + + 20 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6902
SELECT + 74 / - 0 * + + ( 10 ) * - 96 * ( CASE 69 WHEN + 60 + + 5 * - 51 THEN 43 * - - 91 + - - ( - ( 20 ) ) * + - CAST ( NULL AS INTEGER ) + + + 20 END )
----
NULL

query I rowsort
SELECT + 57 * - - 82 AS col1
----
4674

query I rowsort
SELECT ALL - + 5 + - 80 + + + 45 + + 6 + 22 + - 2 * - + 59 * 40 * + - 3
----
-14172

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6905
SELECT ALL + - 93 + + CAST( NULL AS SIGNED ), + 41 AS col1
----
NULL
41

skipif mysql # not compatible
query II rowsort label-6905
SELECT ALL + - 93 + + CAST ( NULL AS INTEGER ), + 41 AS col1
----
NULL
41

onlyif mysql # DIV for integer division: 
query I rowsort label-6906
SELECT DISTINCT + 90 DIV - - 60 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT + 90 / - - 60 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6907
SELECT ALL - NULLIF ( + 21, - - 55 ) + NULLIF ( - 73, - 69 ) + - COUNT( + + ( - 9 ) ), 55 AS col2
----
-95
55

skipif mysql # not compatible
query II rowsort label-6907
SELECT ALL - NULLIF ( + 21, - - 55 ) + NULLIF ( - 73, - 69 ) + - COUNT ( + + ( - 9 ) ), 55 AS col2
----
-95
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT + NULLIF ( + + 20, - COUNT( * ) )
----
20

skipif mysql # not compatible
query I rowsort label-6908
SELECT + NULLIF ( + + 20, - COUNT ( * ) )
----
20

query I rowsort
SELECT DISTINCT - + 63 + - ( - - 45 ) AS col1
----
-108

query II rowsort
SELECT + 90 * - + 21, ( - 40 ) AS col1
----
-1890
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6911
SELECT ALL + + 13 + + MIN( ALL CAST( NULL AS SIGNED ) ) * - + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL + + 13 + + MIN ( ALL CAST ( NULL AS INTEGER ) ) * - + 11
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6912
SELECT DISTINCT SUM( - 27 ) AS col0, ( + SUM( + 35 ) ) * + NULLIF ( 57, - - COUNT( * ) ) AS col2
----
-27
1995

skipif mysql # not compatible
query II rowsort label-6912
SELECT DISTINCT SUM ( - 27 ) AS col0, ( + SUM ( + 35 ) ) * + NULLIF ( 57, - - COUNT ( * ) ) AS col2
----
-27
1995

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6913
SELECT - ( 30 ), + ( + CAST( NULL AS DECIMAL ) ) AS col0
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-6913
SELECT - ( 30 ), + ( + CAST ( NULL AS REAL ) ) AS col0
----
-30
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6914
SELECT 43 - 71 col2, CAST( + - 39 AS SIGNED ) col0
----
-28
-39

skipif mysql # not compatible
query II rowsort label-6914
SELECT 43 - 71 col2, CAST ( + - 39 AS INTEGER ) col0
----
-28
-39

query II rowsort
SELECT DISTINCT COALESCE ( + - 7, + 4 * - 11 * - - 84 ) AS col2, 40 AS col2
----
-7
40

query I rowsort
SELECT 5 * 25 * + + ( - 27 ) * - 16 * + + 71
----
3834000

query I rowsort
SELECT ALL + 5 + 78 col2
----
83

query I rowsort
SELECT + 98 * 6
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT ALL COALESCE ( MIN( + + 91 ), - CASE - 79 WHEN - 43 * + + 0 THEN + 32 + + MAX( COALESCE ( + + 59, 76 ) ) END, COUNT( DISTINCT + 22 ) + - + 70 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL COALESCE ( MIN ( + + 91 ), - CASE - 79 WHEN - 43 * + + 0 THEN + 32 + + MAX ( COALESCE ( + + 59, 76 ) ) END, COUNT ( DISTINCT + 22 ) + - + 70 ) AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6920
SELECT - 69 + COUNT( * ) + NULLIF ( - - CASE + - CAST( + - 7 AS DECIMAL ) WHEN + + 92 * + CASE + 46 WHEN - 1 * - ( COALESCE ( - ( + 74 ), - - 61 ) ) THEN + 59 - + 43 WHEN - 4 * + 41 - 15 * + 57 THEN 65 / - - 3 * - - 62 WHEN + + MAX( DISTINCT - 97 ) + 38 * + + 97 / - + 94 + + 87 THEN NULL END + - 48 THEN - 26 * + - 80 * + 55 * NULLIF ( + NULLIF ( - COUNT( * ), 26 ), - + 2 * + 39 * - COUNT( * ) * 68 / 7 * - + 35 / + CAST( NULL AS SIGNED ) ) - 71 ELSE + COUNT( * ) END, + - 91 ) + 16 * - + 98 * - 46 * 65 AS col0
----
4688253

skipif mysql # not compatible
query I rowsort label-6920
SELECT - 69 + COUNT ( * ) + NULLIF ( - - CASE + - CAST ( + - 7 AS REAL ) WHEN + + 92 * + CASE + 46 WHEN - 1 * - ( COALESCE ( - ( + 74 ), - - 61 ) ) THEN + 59 - + 43 WHEN - 4 * + 41 - 15 * + 57 THEN 65 / - - 3 * - - 62 WHEN + + MAX ( DISTINCT - 97 ) + 38 * + + 97 / - + 94 + + 87 THEN NULL END + - 48 THEN - 26 * + - 80 * + 55 * NULLIF ( + NULLIF ( - COUNT ( * ), 26 ), - + 2 * + 39 * - COUNT ( * ) * 68 / 7 * - + 35 / + CAST ( NULL AS INTEGER ) ) - 71 ELSE + COUNT ( * ) END, + - 91 ) + 16 * - + 98 * - 46 * 65 AS col0
----
4688253

query I rowsort
SELECT + 75 - + 6 + - 33 * 80 AS col2
----
-2571

query I rowsort
SELECT - 62 * - 78 AS col0
----
4836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6923
SELECT ALL 9 * + 95 * - + MIN( - 78 ) * + + CAST( + + SUM( ALL - 64 ) AS SIGNED )
----
-4268160

skipif mysql # not compatible
query I rowsort label-6923
SELECT ALL 9 * + 95 * - + MIN ( - 78 ) * + + CAST ( + + SUM ( ALL - 64 ) AS INTEGER )
----
-4268160

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT + COUNT( * ) + + NULLIF ( - 28, - + ( + NULLIF ( + 87, + - MIN( ALL - + 19 ) * - 88 + - 69 * + + 35 - SUM( + 31 ) * 22 ) ) - - + 74 ) + - 12 + 99 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-6924
SELECT + COUNT ( * ) + + NULLIF ( - 28, - + ( + NULLIF ( + 87, + - MIN ( ALL - + 19 ) * - 88 + - 69 * + + 35 - SUM ( + 31 ) * 22 ) ) - - + 74 ) + - 12 + 99 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT ALL + 43 * - COUNT( + 86 )
----
-43

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL + 43 * - COUNT ( + 86 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT + COALESCE ( - 84, + + COUNT( * ) * - - ( 44 ) ) * + CASE - + 21 WHEN - MAX( DISTINCT 14 ) * + + 42 + - - 71 THEN 20 ELSE NULL END + + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-6926
SELECT + COALESCE ( - 84, + + COUNT ( * ) * - - ( 44 ) ) * + CASE - + 21 WHEN - MAX ( DISTINCT 14 ) * + + 42 + - - 71 THEN 20 ELSE NULL END + + + 92
----
NULL

query I rowsort
SELECT + 91 + - 95 + - + 8 AS col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-6928
SELECT + 85 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-6928
SELECT + 85 / + 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT - 96 * + COUNT( * ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-6929
SELECT - 96 * + COUNT ( * ) AS col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6930
SELECT + CASE + 99 WHEN - 52 + - MAX( + 83 ) * - NULLIF ( + COALESCE ( + 13, - COUNT( * ), 25 - + COALESCE ( 17, 15 ) * CASE 92 WHEN 24 THEN - CAST( COUNT( * ) AS SIGNED ) * ( - COUNT( ALL 49 ) * ( - 12 - ( - 3 ) ) ) ELSE NULL END ), 7 * CAST( + 16 AS SIGNED ) ) THEN 32 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6930
SELECT + CASE + 99 WHEN - 52 + - MAX ( + 83 ) * - NULLIF ( + COALESCE ( + 13, - COUNT ( * ), 25 - + COALESCE ( 17, 15 ) * CASE 92 WHEN 24 THEN - CAST ( COUNT ( * ) AS INTEGER ) * ( - COUNT ( ALL 49 ) * ( - 12 - ( - 3 ) ) ) ELSE NULL END ), 7 * CAST ( + 16 AS INTEGER ) ) THEN 32 END AS col0
----
NULL

query I rowsort
SELECT + CASE 93 WHEN 75 THEN NULL ELSE - 34 END * - 99
----
3366

query I rowsort
SELECT + 37 + + 87 AS col2
----
124

query I rowsort
SELECT CASE 21 WHEN - 5 THEN - COALESCE ( 10, 82 / + 62, 39 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 66 - 91
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT COALESCE ( - 14, - COUNT( * ) + 75, COUNT( * ) * ( - 24 ) ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-6935
SELECT COALESCE ( - 14, - COUNT ( * ) + 75, COUNT ( * ) * ( - 24 ) ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT ALL 38 * - 66 + + COUNT( * ) AS col1
----
-2507

skipif mysql # not compatible
query I rowsort label-6936
SELECT ALL 38 * - 66 + + COUNT ( * ) AS col1
----
-2507

query I rowsort
SELECT ALL 63 * - 49 + + 61 * + 91 AS col0
----
2464

query I rowsort
SELECT ALL 75 * + CASE - 16 WHEN 36 / - 46 - 48 THEN NULL ELSE - 9 END + 50 AS col0
----
-625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6939
SELECT + CAST( NULL AS SIGNED ) - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6939
SELECT + CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - 89 - - 70
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT ALL COUNT( * ) * + 61 + 76
----
137

skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL COUNT ( * ) * + 61 + 76
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-6942
SELECT - 65 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-6942
SELECT - 65 / 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT MIN( ALL 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-6943
SELECT MIN ( ALL 91 ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT + CASE + 28 WHEN 89 THEN NULL WHEN 24 * + NULLIF ( + ( + 20 ), COUNT( * ) * 71 ) THEN + 59 + 51 END + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT + CASE + 28 WHEN 89 THEN NULL WHEN 24 * + NULLIF ( + ( + 20 ), COUNT ( * ) * 71 ) THEN + 59 + 51 END + 31 AS col0
----
NULL

query I rowsort
SELECT + 11 * 27
----
297

query I rowsort
SELECT ALL 61 * 35 - 81
----
2054

query I rowsort
SELECT - 55 * - 2 + 66 * 84 AS col1
----
5654

query I rowsort
SELECT ALL - ( 31 ) * 3 - 96 * 29 AS col1
----
-2877

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT ALL - ( - 44 ) * COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL - ( - 44 ) * COUNT ( * )
----
44

query I rowsort
SELECT - 81 + 55 * - NULLIF ( 66, + 49 + - NULLIF ( 29, 47 ) )
----
-3711

onlyif mysql # DIV for integer division: 
query I rowsort label-6951
SELECT ALL - COALESCE ( + ( ( + 36 ) ), + 57 * 87 ) DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL - COALESCE ( + ( ( + 36 ) ), + 57 * 87 ) / 97 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6952
SELECT - CAST( + 33 AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-6952
SELECT - CAST ( + 33 AS INTEGER )
----
-33

query I rowsort
SELECT - 75 + 99
----
24

query I rowsort
SELECT + 87 * 14
----
1218

query I rowsort
SELECT - 51 + + 15 AS col0
----
-36

query I rowsort
SELECT DISTINCT + 56 * + 61
----
3416

query I rowsort
SELECT - 21 * 76
----
-1596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6958
SELECT - COALESCE ( 25, + 92 + + 77 ) + CAST( NULL AS SIGNED ) * - 73 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6958
SELECT - COALESCE ( 25, + 92 + + 77 ) + CAST ( NULL AS INTEGER ) * - 73 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6959
SELECT DISTINCT CAST( 68 AS SIGNED ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-6959
SELECT DISTINCT CAST ( 68 AS INTEGER ) AS col1
----
68

query I rowsort
SELECT ALL - ( 3 ) + 53 AS col1
----
50

query I rowsort
SELECT - 55 * + NULLIF ( + 88, 4 )
----
-4840

onlyif mysql # DIV for integer division: 
query I rowsort label-6962
SELECT - 73 DIV - 29
----
2

skipif mysql # not compatible
query I rowsort label-6962
SELECT - 73 / - 29
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6963
SELECT + 79 + NULLIF ( 1 + - SUM( - CAST( - CAST( 49 AS SIGNED ) AS SIGNED ) ) * SUM( DISTINCT 72 * CAST( NULL AS SIGNED ) ), + 33 - 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6963
SELECT + 79 + NULLIF ( 1 + - SUM ( - CAST ( - CAST ( 49 AS INTEGER ) AS INTEGER ) ) * SUM ( DISTINCT 72 * CAST ( NULL AS INTEGER ) ), + 33 - 25 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6964
SELECT DISTINCT - 84 DIV - 4 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-6964
SELECT DISTINCT - 84 / - 4 AS col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6965
SELECT ALL 14 DIV 99 + 40 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL 14 / 99 + 40 AS col2
----
40

query I rowsort
SELECT - - 46 + 66 AS col0
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6967
SELECT ALL + MAX( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL + MAX ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6968
SELECT DISTINCT - - 84 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6968
SELECT DISTINCT - - 84 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT ALL - MAX( ALL 97 ) * 20
----
-1940

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL - MAX ( ALL 97 ) * 20
----
-1940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6970
SELECT DISTINCT + 38 DIV + 74 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6970
SELECT DISTINCT + 38 / + 74 + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT + 15 + - 25 AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6972
SELECT DISTINCT CAST( NULL AS DECIMAL ) / 40 + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT CAST ( NULL AS REAL ) / 40 + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + 28 + 45 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT - - COUNT( * ) * 30 + - 20 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-6974
SELECT - - COUNT ( * ) * 30 + - 20 AS col2
----
10

query I rowsort
SELECT + - ( - 32 ) * - 67
----
-2144

query I rowsort
SELECT DISTINCT + 37 * 34 - 29 AS col2
----
1229

query I rowsort
SELECT ALL - + CASE AVG ( 45 ) WHEN + 40 THEN 84 + + 45 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT DISTINCT 46 * + COUNT( * ) * 35
----
1610

skipif mysql # not compatible
query I rowsort label-6978
SELECT DISTINCT 46 * + COUNT ( * ) * 35
----
1610

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT 59 * - 92 * MIN( DISTINCT ( + 27 ) * + 75 ) AS col0
----
-10991700

skipif mysql # not compatible
query I rowsort label-6979
SELECT 59 * - 92 * MIN ( DISTINCT ( + 27 ) * + 75 ) AS col0
----
-10991700

query I rowsort
SELECT 79 * + 2 * - ( 25 ) - 36 AS col1
----
-3986

query I rowsort
SELECT ALL 45 * + 6 AS col0
----
270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6982
SELECT CAST( NULL AS SIGNED ) - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6982
SELECT CAST ( NULL AS INTEGER ) - 2 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 71 + + + 5 + - 56 * + 40 AS col0
----
-2306

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6984
SELECT DISTINCT COUNT( * ) DIV + NULLIF ( 79, 89 + + COUNT( * ) * 63 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT COUNT ( * ) / + NULLIF ( 79, 89 + + COUNT ( * ) * 63 ) col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6985
SELECT CAST( NULL AS SIGNED ) * + CAST( 58 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6985
SELECT CAST ( NULL AS INTEGER ) * + CAST ( 58 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT COUNT( * ) + 88 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-6986
SELECT COUNT ( * ) + 88 AS col2
----
89

query I rowsort
SELECT 74 - + 84 AS col0
----
-10

query I rowsort
SELECT ALL - 80 * - 14 AS col0
----
1120

query I rowsort
SELECT DISTINCT + 26 + 14 + + 5
----
45

query I rowsort
SELECT ALL - 8 + - 59 + + NULLIF ( 37 + 24, + 62 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT ALL + 53 + + CASE - 0 WHEN 35 * + SUM( ALL + ( 66 ) ) THEN - 98 + 56 END - 88 * - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL + 53 + + CASE - 0 WHEN 35 * + SUM ( ALL + ( 66 ) ) THEN - 98 + 56 END - 88 * - 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT MIN( ALL + - 18 ) + + ( 42 ) * + 22
----
906

skipif mysql # not compatible
query I rowsort label-6992
SELECT MIN ( ALL + - 18 ) + + ( 42 ) * + 22
----
906

query I rowsort
SELECT DISTINCT 15 * 83 AS col2
----
1245

query I rowsort
SELECT + 54 + + 71 AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT ALL - COUNT( + 56 ) + 76 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL - COUNT ( + 56 ) + 76 AS col2
----
75

query I rowsort
SELECT ALL 16 + - 79 AS col2
----
-63

query I rowsort
SELECT 39 * + - 7 col1
----
-273

onlyif mysql # DIV for integer division: 
query I rowsort label-6998
SELECT - 98 DIV - - 95 + 91 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-6998
SELECT - 98 / - - 95 + 91 AS col1
----
90

query I rowsort
SELECT + COALESCE ( - - 63, 86 ) AS col0
----
63

query I rowsort
SELECT - 17 + + 56 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT SUM( ALL 47 )
----
47

skipif mysql # not compatible
query I rowsort label-7001
SELECT SUM ( ALL 47 )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7002
SELECT ALL - - CAST( NULL AS SIGNED ) * + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL - - CAST ( NULL AS INTEGER ) * + 55
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7003
SELECT DISTINCT - 51 DIV - + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-7003
SELECT DISTINCT - 51 / - + COUNT ( * )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7004
SELECT DISTINCT COALESCE ( - + COUNT( * ), + COUNT( * ) * ( - CAST( NULL AS SIGNED ) DIV 84 ) ) * COALESCE ( - 93, + 5 + + ( 34 ) ) col1
----
93

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT COALESCE ( - + COUNT ( * ), + COUNT ( * ) * ( - CAST ( NULL AS INTEGER ) / 84 ) ) * COALESCE ( - 93, + 5 + + ( 34 ) ) col1
----
93

query I rowsort
SELECT ALL + 29 * 10 AS col0
----
290

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT - MAX( + 24 ) * COUNT( * ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-7006
SELECT - MAX ( + 24 ) * COUNT ( * ) AS col1
----
-24

query I rowsort
SELECT ALL - + 15 * + 32
----
-480

query I rowsort
SELECT DISTINCT - + 2 * - 57 * - 16
----
-1824

query I rowsort
SELECT - ( 30 ) * 54 + + 78 AS col0
----
-1542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7010
SELECT 83 * + + CAST( - + 12 AS SIGNED ) + 2 * + 16
----
-964

skipif mysql # not compatible
query I rowsort label-7010
SELECT 83 * + + CAST ( - + 12 AS INTEGER ) + 2 * + 16
----
-964

query II rowsort
SELECT ALL - 95, 24 * + 60 col0
----
-95
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT COUNT( * ) + - 65 + - 49 AS col2
----
-113

skipif mysql # not compatible
query I rowsort label-7012
SELECT COUNT ( * ) + - 65 + - 49 AS col2
----
-113

query I rowsort
SELECT ALL - ( + + 72 ) AS col1
----
-72

query II rowsort
SELECT ALL - 69, + 18 AS col0
----
-69
18

query I rowsort
SELECT DISTINCT + NULLIF ( 6, + 64 ) + 16
----
22

query I rowsort
SELECT ALL 27 * 88 * - 78 AS col0
----
-185328

query I rowsort
SELECT ALL 86 + + - 83 + 97 + 6 * 88 * 27 AS col0
----
14356

query I rowsort
SELECT COALESCE ( 68, - - 54 ) + 70
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT ALL ( - CASE - - COUNT( * ) WHEN + 77 THEN - 12 * + 73 END ) + + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL ( - CASE - - COUNT ( * ) WHEN + 77 THEN - 12 * + 73 END ) + + 53 AS col2
----
NULL

query II rowsort
SELECT - 80 AS col1, ( + 17 ) AS col0
----
-80
17

query I rowsort
SELECT ALL 80 + + - 33 * - ( 60 )
----
2060

query II rowsort
SELECT 83, 31 AS col0
----
83
31

query I rowsort
SELECT ALL 91 * - 98
----
-8918

query I rowsort
SELECT DISTINCT 26 * - - 99
----
2574

onlyif mysql # DIV for integer division: 
query I rowsort label-7025
SELECT 49 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-7025
SELECT 49 / 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT 93 + + COUNT( DISTINCT - - 55 ) + 91
----
185

skipif mysql # not compatible
query I rowsort label-7026
SELECT 93 + + COUNT ( DISTINCT - - 55 ) + 91
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT ALL COUNT( * ) + + 69 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL COUNT ( * ) + + 69 AS col2
----
70

query I rowsort
SELECT DISTINCT 90 * + 21 * - + 29
----
-54810

query I rowsort
SELECT DISTINCT 49 + + 72 AS col1
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7030
SELECT ALL + + 59 DIV + MIN( ALL - ( + 61 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL + + 59 / + MIN ( ALL - ( + 61 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT - 52 * + 89 * COUNT( * ) AS col1
----
-4628

skipif mysql # not compatible
query I rowsort label-7031
SELECT - 52 * + 89 * COUNT ( * ) AS col1
----
-4628

query I rowsort
SELECT ALL 22 - - ( 41 ) * 98
----
4040

query I rowsort
SELECT DISTINCT CASE 4 WHEN - 55 THEN NULL WHEN - COALESCE ( 15, - ( 16 ) + 18 ) - + 52 THEN NULL WHEN + 46 THEN 24 ELSE NULL END
----
NULL

query I rowsort
SELECT 64 - + + 41 AS col2
----
23

query I rowsort
SELECT + 74 * + - 15 * + 90 AS col0
----
-99900

onlyif mysql # DIV for integer division: 
query I rowsort label-7036
SELECT ( 64 ) + + 94 DIV 66
----
65

skipif mysql # not compatible
query I rowsort label-7036
SELECT ( 64 ) + + 94 / 66
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7037
SELECT - CAST( NULL AS SIGNED ), - COUNT( * ) * 37 AS col2
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-7037
SELECT - CAST ( NULL AS INTEGER ), - COUNT ( * ) * 37 AS col2
----
NULL
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7038
SELECT + 58 DIV - NULLIF ( - 91, 34 * 51 + COUNT( * ) ) + 67
----
67

skipif mysql # not compatible
query I rowsort label-7038
SELECT + 58 / - NULLIF ( - 91, 34 * 51 + COUNT ( * ) ) + 67
----
67

query I rowsort
SELECT ALL - - NULLIF ( - 12, - + 86 - + 29 * + NULLIF ( 2 + - 16 / 59, 39 / + COALESCE ( 48 * 62, + 11 + 19, + 67 * 60 ) ) )
----
-12

query I rowsort
SELECT DISTINCT - ( - + 22 )
----
22

query I rowsort
SELECT ALL 33 * + 95 col2
----
3135

query II rowsort
SELECT + 42, 14 AS col1
----
42
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT ALL - + NULLIF ( - 33, - 61 ) * COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL - + NULLIF ( - 33, - 61 ) * COUNT ( * ) AS col1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7044
SELECT DISTINCT + CAST( 54 AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-7044
SELECT DISTINCT + CAST ( 54 AS INTEGER )
----
54

query I rowsort
SELECT - + 86 + + + 62 AS col2
----
-24

query I rowsort
SELECT - - 17 * - 59 * 48
----
-48144

query I rowsort
SELECT - 52 + + 97 * - 64
----
-6260

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT ALL + CASE - - ( + - ( - COUNT( * ) ) ) WHEN 16 THEN + 10 * + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL + CASE - - ( + - ( - COUNT ( * ) ) ) WHEN 16 THEN + 10 * + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT ALL 23 * + - NULLIF ( SUM( ALL - - 51 ), 76 * 68 + 81 * + 64 ) + 16 AS col1
----
-1157

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL 23 * + - NULLIF ( SUM ( ALL - - 51 ), 76 * 68 + 81 * + 64 ) + 16 AS col1
----
-1157

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT DISTINCT + CASE ( - + 0 ) WHEN + + 13 THEN NULL WHEN 59 * MAX( - COALESCE ( - 18, - 15 ) ) THEN - 26 + 35 END * 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT + CASE ( - + 0 ) WHEN + + 13 THEN NULL WHEN 59 * MAX ( - COALESCE ( - 18, - 15 ) ) THEN - 26 + 35 END * 20 AS col1
----
NULL

query I rowsort
SELECT ALL - 25 * - + 65 AS col0
----
1625

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT MAX( DISTINCT + 65 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-7052
SELECT MAX ( DISTINCT + 65 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT DISTINCT 85 + - ( + COALESCE ( + ( + 84 ), - 45, - SUM( ALL 96 ) + - 21 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7053
SELECT DISTINCT 85 + - ( + COALESCE ( + ( + 84 ), - 45, - SUM ( ALL 96 ) + - 21 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT ALL 44 + - ( + COUNT( ALL + 53 ) )
----
43

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL 44 + - ( + COUNT ( ALL + 53 ) )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT - COALESCE ( + COUNT( * ), - 14 + - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7055
SELECT - COALESCE ( + COUNT ( * ), - 14 + - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7056
SELECT 53 * 55 - - 65 + ( 18 ) DIV + 28
----
2980

skipif mysql # not compatible
query I rowsort label-7056
SELECT 53 * 55 - - 65 + ( 18 ) / + 28
----
2980

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7057
SELECT ALL CASE + COUNT( * ) WHEN - CAST( NULL AS DECIMAL ) THEN + ( + 25 ) * + 94 WHEN SUM( ALL - 98 ) - COUNT( * ) / COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL CASE + COUNT ( * ) WHEN - CAST ( NULL AS REAL ) THEN + ( + 25 ) * + 94 WHEN SUM ( ALL - 98 ) - COUNT ( * ) / COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT - 8 + + 25 AS col2, + 38
----
17
38

query I rowsort
SELECT ALL + 53 - + 16 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT DISTINCT 73 * - + COUNT( * ) col0
----
-73

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT 73 * - + COUNT ( * ) col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT ALL + 90 - COUNT( + ( + 9 ) )
----
89

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL + 90 - COUNT ( + ( + 9 ) )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT - - COUNT( * ) + 76 col2
----
77

skipif mysql # not compatible
query I rowsort label-7062
SELECT - - COUNT ( * ) + 76 col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT - + MIN( + 90 ) col0
----
-90

skipif mysql # not compatible
query I rowsort label-7063
SELECT - + MIN ( + 90 ) col0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7064
SELECT ALL - NULLIF ( - 80, - 34 + - NULLIF ( 75, ( 62 ) ) + - 55 * - 58 / - CAST( NULL AS SIGNED ) )
----
80

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL - NULLIF ( - 80, - 34 + - NULLIF ( 75, ( 62 ) ) + - 55 * - 58 / - CAST ( NULL AS INTEGER ) )
----
80

query II rowsort
SELECT + + 34 - 44 AS col1, - 10 AS col2
----
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT + 12 * + SUM( + ( 43 ) )
----
516

skipif mysql # not compatible
query I rowsort label-7066
SELECT + 12 * + SUM ( + ( 43 ) )
----
516

query I rowsort
SELECT ALL 55 - + + 20 AS col0
----
35

query I rowsort
SELECT + 39 + + CASE WHEN NOT - 31 > ( NULL ) THEN - 92 + + 32 END + 30 * 45 col0
----
NULL

query I rowsort
SELECT + - 57 * - 25
----
1425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7070
SELECT DISTINCT + 51 * - 30 DIV + COUNT( * ) + + 7
----
-1523

skipif mysql # not compatible
query I rowsort label-7070
SELECT DISTINCT + 51 * - 30 / + COUNT ( * ) + + 7
----
-1523

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT ALL + MAX( DISTINCT + - 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL + MAX ( DISTINCT + - 49 ) AS col0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-7072
SELECT + - 7 DIV - + ( - + 88 )
----
0

skipif mysql # not compatible
query I rowsort label-7072
SELECT + - 7 / - + ( - + 88 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7073
SELECT 21 DIV - + 52 + + 57 DIV - 38 - 15 * ( 73 ) AS col2
----
-1096

skipif mysql # not compatible
query I rowsort label-7073
SELECT 21 / - + 52 + + 57 / - 38 - 15 * ( 73 ) AS col2
----
-1096

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT - - 57 + - MIN( ALL - - 50 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7074
SELECT - - 57 + - MIN ( ALL - - 50 ) AS col1
----
7

onlyif mysql # DIV for integer division: 
query II rowsort label-7075
SELECT + 41 DIV 30 AS col2, ( - 26 )
----
1
-26

skipif mysql # not compatible
query II rowsort label-7075
SELECT + 41 / 30 AS col2, ( - 26 )
----
1
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7076
SELECT - COUNT( * ) / - CASE + + COUNT( * ) WHEN - - 44 * 11 THEN 89 ELSE 92 * MAX( ALL + 75 ) + 80 * CASE 64 / 79 WHEN + ( + 73 ) THEN - CASE + COALESCE ( 64, - 86, - 48 - - MIN( - CAST( NULL AS SIGNED ) ) ) WHEN + 41 THEN - CASE 20 WHEN - 17 THEN - 13 * + 48 - + 64 END WHEN + COUNT( * ) THEN + 34 * 10 END WHEN ( 46 ) / 6 THEN NULL WHEN + 85 * 30 THEN NULL ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7076
SELECT - COUNT ( * ) / - CASE + + COUNT ( * ) WHEN - - 44 * 11 THEN 89 ELSE 92 * MAX ( ALL + 75 ) + 80 * CASE 64 / 79 WHEN + ( + 73 ) THEN - CASE + COALESCE ( 64, - 86, - 48 - - MIN ( - CAST ( NULL AS INTEGER ) ) ) WHEN + 41 THEN - CASE 20 WHEN - 17 THEN - 13 * + 48 - + 64 END WHEN + COUNT ( * ) THEN + 34 * 10 END WHEN ( 46 ) / 6 THEN NULL WHEN + 85 * 30 THEN NULL ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7077
SELECT ALL + - NULLIF ( - + 56, - + 1 + - 44 ) DIV - COUNT( * ) + 64 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL + - NULLIF ( - + 56, - + 1 + - 44 ) / - COUNT ( * ) + 64 AS col0
----
8

query I rowsort
SELECT ALL + 77 * + 57
----
4389

onlyif mysql # aggregate syntax: 
query II rowsort label-7079
SELECT - COUNT( * ) * + + 15, NULLIF ( - 7, + 41 + 26 * ( - 85 + + 15 ) ) + 18 AS col1
----
-15
11

skipif mysql # not compatible
query II rowsort label-7079
SELECT - COUNT ( * ) * + + 15, NULLIF ( - 7, + 41 + 26 * ( - 85 + + 15 ) ) + 18 AS col1
----
-15
11

query I rowsort
SELECT DISTINCT + 11 * + 84 AS col1
----
924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7081
SELECT ALL 44 DIV + - 75 * 86 * 94 + 71 + 85 * COUNT( * ) * - 37
----
-3074

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL 44 / + - 75 * 86 * 94 + 71 + 85 * COUNT ( * ) * - 37
----
-3074

query I rowsort
SELECT 20 * - - 23 * + + ( - 41 ) * + 75 + - ( 23 )
----
-1414523

onlyif mysql # DIV for integer division: 
query I rowsort label-7083
SELECT ALL - ( + 40 ) DIV + ( - 29 ) + + 0 + + 68 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL - ( + 40 ) / + ( - 29 ) + + 0 + + 68 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT ALL CASE 76 WHEN - MIN( + 48 ) + 54 THEN NULL WHEN + ( - ( - COUNT( * ) ) ) THEN NULL ELSE - 30 END * - 43
----
1290

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL CASE 76 WHEN - MIN ( + 48 ) + 54 THEN NULL WHEN + ( - ( - COUNT ( * ) ) ) THEN NULL ELSE - 30 END * - 43
----
1290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7085
SELECT ALL 88 * + - MAX( + 84 ) + + CAST( NULL AS SIGNED ) * - 29 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL 88 * + - MAX ( + 84 ) + + CAST ( NULL AS INTEGER ) * - 29 * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7086
SELECT 21 * - + 16 + - 42 + + CAST( NULL AS DECIMAL ) * - + MAX( + 18 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7086
SELECT 21 * - + 16 + - 42 + + CAST ( NULL AS REAL ) * - + MAX ( + 18 ) AS col1
----
NULL

query I rowsort
SELECT - 86 - ( - 8 )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7088
SELECT ALL + COALESCE ( + + 24, + 51, - 63 * + MAX( DISTINCT CAST( 28 AS SIGNED ) ) ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL + COALESCE ( + + 24, + 51, - 63 * + MAX ( DISTINCT CAST ( 28 AS INTEGER ) ) ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT + 12 * + + SUM( DISTINCT - - 47 ) + - 40 + + 88 * - ( + 36 * - 71 + NULLIF ( 99, 75 - - 51 ) ) AS col1
----
216740

skipif mysql # not compatible
query I rowsort label-7089
SELECT + 12 * + + SUM ( DISTINCT - - 47 ) + - 40 + + 88 * - ( + 36 * - 71 + NULLIF ( 99, 75 - - 51 ) ) AS col1
----
216740

query I rowsort
SELECT NULLIF ( + 87, + 25 )
----
87

query I rowsort
SELECT - 50 + + 85 * 53 * + 54 * 0 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-7092
SELECT + COUNT( * ) AS col1, 50 * - CASE - 66 WHEN 37 THEN - 48 + 25 END col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7092
SELECT + COUNT ( * ) AS col1, 50 * - CASE - 66 WHEN 37 THEN - 48 + 25 END col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT DISTINCT + COUNT( * ) * 25 - - + 32 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT + COUNT ( * ) * 25 - - + 32 AS col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-7094
SELECT DISTINCT + 76 DIV + - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT + 76 / + - 78 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7095
SELECT ALL 68 * + 29 - - + 87 + + CAST( NULL AS SIGNED ) + 24 + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7095
SELECT ALL 68 * + 29 - - + 87 + + CAST ( NULL AS INTEGER ) + 24 + 96
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7096
SELECT DISTINCT + 67 DIV 6 col0
----
11

skipif mysql # not compatible
query I rowsort label-7096
SELECT DISTINCT + 67 / 6 col0
----
11

query I rowsort
SELECT ALL - 49 * + 76 AS col1
----
-3724

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7098
SELECT ALL CAST( - 29 AS SIGNED ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-7098
SELECT ALL CAST ( - 29 AS INTEGER ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT DISTINCT + 16 * + + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-7099
SELECT DISTINCT + 16 * + + COUNT ( * )
----
16

query I rowsort
SELECT - 9 * - - 11 * ( 39 )
----
-3861

onlyif mysql # DIV for integer division: 
query I rowsort label-7101
SELECT + 32 + - - 22 - - + 39 DIV + 73
----
54

skipif mysql # not compatible
query I rowsort label-7101
SELECT + 32 + - - 22 - - + 39 / + 73
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT + 45 + + - CASE - ( 11 ) WHEN - 28 / 23 THEN - 61 * - COUNT( * ) + - ( COUNT( * ) + - 8 * 43 ) WHEN + AVG ( ( NULLIF ( - 85, - ( + 76 ) + + 31 ) ) ) * + 79 THEN NULL WHEN 70 + 70 THEN NULL ELSE 62 - - 68 END
----
-85

skipif mysql # not compatible
query I rowsort label-7102
SELECT + 45 + + - CASE - ( 11 ) WHEN - 28 / 23 THEN - 61 * - COUNT ( * ) + - ( COUNT ( * ) + - 8 * 43 ) WHEN + AVG ( ( NULLIF ( - 85, - ( + 76 ) + + 31 ) ) ) * + 79 THEN NULL WHEN 70 + 70 THEN NULL ELSE 62 - - 68 END
----
-85

query I rowsort
SELECT DISTINCT 85 * + 33 * 48 - - - 22 col2
----
134618

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT + COUNT( * ) - - 82 + + ( + + 37 ) + + 58 + + 5 * + 47 * - 14
----
-3112

skipif mysql # not compatible
query I rowsort label-7104
SELECT + COUNT ( * ) - - 82 + + ( + + 37 ) + + 58 + + 5 * + 47 * - 14
----
-3112

query I rowsort
SELECT - 12 * - 88 + + 14
----
1070

query I rowsort
SELECT - 95 + - 55 AS col2
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7107
SELECT DISTINCT - CAST( + 35 AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT - CAST ( + 35 AS INTEGER )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT DISTINCT - 37 + 51 * - 53 + + + MIN( ALL + 81 ) AS col2
----
-2659

skipif mysql # not compatible
query I rowsort label-7108
SELECT DISTINCT - 37 + 51 * - 53 + + + MIN ( ALL + 81 ) AS col2
----
-2659

query II rowsort
SELECT 70 AS col2, + 81
----
70
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT ALL COUNT( * ) + 92 * COUNT( * ) * + + 48
----
4417

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL COUNT ( * ) + 92 * COUNT ( * ) * + + 48
----
4417

query I rowsort
SELECT ALL 81 * + + 25 col2
----
2025

query I rowsort
SELECT ALL 5 + 45 AS col1
----
50

query I rowsort
SELECT 68 * NULLIF ( + - 22, + 31 ) col2
----
-1496

query I rowsort
SELECT DISTINCT 10 + 7 - 65
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT + 46 * - 94 * COUNT( * ) + - - 74 * 71 - SUM( + 4 ) - 92 col1
----
834

skipif mysql # not compatible
query I rowsort label-7115
SELECT + 46 * - 94 * COUNT ( * ) + - - 74 * 71 - SUM ( + 4 ) - 92 col1
----
834

query I rowsort
SELECT ( + 34 ) * - 57 AS col2
----
-1938

onlyif mysql # aggregate syntax: 
query II rowsort label-7117
SELECT 58 * - 9, COUNT( * ) * + - 18 col0
----
-522
-18

skipif mysql # not compatible
query II rowsort label-7117
SELECT 58 * - 9, COUNT ( * ) * + - 18 col0
----
-522
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-7118
SELECT DISTINCT - 97 AS col1, COUNT( * )
----
-97
1

skipif mysql # not compatible
query II rowsort label-7118
SELECT DISTINCT - 97 AS col1, COUNT ( * )
----
-97
1

query II rowsort
SELECT DISTINCT 26 * - 86 AS col1, 76
----
-2236
76

onlyif mysql # DIV for integer division: 
query I rowsort label-7120
SELECT ALL 61 * - + 93 DIV 1 col2
----
-5673

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL 61 * - + 93 / 1 col2
----
-5673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7121
SELECT CAST( + - 12 AS SIGNED ) + - MIN( + NULLIF ( - 72, - 67 ) ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-7121
SELECT CAST ( + - 12 AS INTEGER ) + - MIN ( + NULLIF ( - 72, - 67 ) ) AS col1
----
60

query I rowsort
SELECT 99 * + + 26
----
2574

onlyif mysql # aggregate syntax: 
query II rowsort label-7123
SELECT DISTINCT - 67 AS col2, COALESCE ( + + 89, - + 63 + - - SUM( - 29 ), 37 * 74 ) AS col0
----
-67
89

skipif mysql # not compatible
query II rowsort label-7123
SELECT DISTINCT - 67 AS col2, COALESCE ( + + 89, - + 63 + - - SUM ( - 29 ), 37 * 74 ) AS col0
----
-67
89

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7124
SELECT ALL CAST( NULL AS DECIMAL ), 27 + + 66 col0
----
NULL
93

skipif mysql # not compatible
query II rowsort label-7124
SELECT ALL CAST ( NULL AS REAL ), 27 + + 66 col0
----
NULL
93

query I rowsort
SELECT + ( - 18 ) - - 86 AS col1
----
68

query I rowsort
SELECT DISTINCT - ( ( 95 ) ) + - - 92
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7127
SELECT - + 62, + 38 - COUNT( * ) AS col1
----
-62
37

skipif mysql # not compatible
query II rowsort label-7127
SELECT - + 62, + 38 - COUNT ( * ) AS col1
----
-62
37

query II rowsort
SELECT ALL - - 6 + - + 18, 84 AS col1
----
-12
84

query II rowsort
SELECT - - 8 col0, - 63
----
8
-63

query I rowsort
SELECT 10 + ( - + 9 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7131
SELECT ALL + + 93 * + - 57 + + + 52 + 16 + 12 + + 76 / CAST( - 72 + - ( CAST( NULL AS DECIMAL ) ) * + COUNT( * ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL + + 93 * + - 57 + + + 52 + 16 + 12 + + 76 / CAST ( - 72 + - ( CAST ( NULL AS REAL ) ) * + COUNT ( * ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7132
SELECT + CAST( - - 57 AS SIGNED ) * + SUM( DISTINCT + 56 ) AS col0, 28 * + 85 * + 51 col0
----
3192
121380

skipif mysql # not compatible
query II rowsort label-7132
SELECT + CAST ( - - 57 AS INTEGER ) * + SUM ( DISTINCT + 56 ) AS col0, 28 * + 85 * + 51 col0
----
3192
121380

query II rowsort
SELECT - 33 AS col2, + 13
----
-33
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7134
SELECT ALL - + 80 + + - 25 * - CAST( NULL AS SIGNED ) + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL - + 80 + + - 25 * - CAST ( NULL AS INTEGER ) + - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT DISTINCT - + 64 + - - MIN( ALL - + 59 ) + COUNT( * )
----
-122

skipif mysql # not compatible
query I rowsort label-7135
SELECT DISTINCT - + 64 + - - MIN ( ALL - + 59 ) + COUNT ( * )
----
-122

query I rowsort
SELECT ALL + + 1 * + 56
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT - 46 * - MAX( + + 71 ) AS col0
----
3266

skipif mysql # not compatible
query I rowsort label-7137
SELECT - 46 * - MAX ( + + 71 ) AS col0
----
3266

query I rowsort
SELECT ALL + + 88 + - 14
----
74

query I rowsort
SELECT 30 + 22 * - 96 * + + 74 * 7
----
-1093986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7140
SELECT 65 * - 50 / 87 * + CAST( NULL AS SIGNED ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7140
SELECT 65 * - 50 / 87 * + CAST ( NULL AS INTEGER ) * - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7141
SELECT ALL 79 * CASE ( + + 73 ) WHEN - 79 * 32 THEN - 84 * 51 WHEN NULLIF ( 43, - ( + 26 ) ) THEN CAST( NULL AS SIGNED ) + 31 * 84 END / 52 - + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL 79 * CASE ( + + 73 ) WHEN - 79 * 32 THEN - 84 * 51 WHEN NULLIF ( 43, - ( + 26 ) ) THEN CAST ( NULL AS INTEGER ) + 31 * 84 END / 52 - + 64
----
NULL

query I rowsort
SELECT ALL 28 * - 17 AS col0
----
-476

query I rowsort
SELECT DISTINCT 63 * + 30 * - 72 col0
----
-136080

query I rowsort
SELECT ALL - 67 * + 92
----
-6164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7145
SELECT 94 / NULLIF ( + - MIN( + - CAST( NULL AS SIGNED ) ), ( + + COUNT( * ) ) ) * CASE ( + MIN( ALL + CAST( NULL AS SIGNED ) ) ) WHEN 82 * 48 THEN NULL ELSE 16 * AVG ( - 90 ) + - COALESCE ( - 77 - + COUNT( * ), 85 ) * 64 END + + 0 * NULLIF ( 50 * + CAST( NULL AS SIGNED ) + + 14, + 86 ) + ( - 73 + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7145
SELECT 94 / NULLIF ( + - MIN ( + - CAST ( NULL AS INTEGER ) ), ( + + COUNT ( * ) ) ) * CASE ( + MIN ( ALL + CAST ( NULL AS INTEGER ) ) ) WHEN 82 * 48 THEN NULL ELSE 16 * AVG ( - 90 ) + - COALESCE ( - 77 - + COUNT ( * ), 85 ) * 64 END + + 0 * NULLIF ( 50 * + CAST ( NULL AS INTEGER ) + + 14, + 86 ) + ( - 73 + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT COUNT( DISTINCT - - COALESCE ( + 69, 41, + ( + - 18 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7146
SELECT COUNT ( DISTINCT - - COALESCE ( + 69, 41, + ( + - 18 ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT MIN( ALL - 12 ) * + 14 col1
----
-168

skipif mysql # not compatible
query I rowsort label-7147
SELECT MIN ( ALL - 12 ) * + 14 col1
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT COUNT( * ) - - 79 * COALESCE ( + ( + COUNT( * ) ), - COUNT( * ) ) * - 33 + 16
----
-2590

skipif mysql # not compatible
query I rowsort label-7148
SELECT COUNT ( * ) - - 79 * COALESCE ( + ( + COUNT ( * ) ), - COUNT ( * ) ) * - 33 + 16
----
-2590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7149
SELECT CASE + 64 WHEN - 68 + + + 77 THEN + + 39 / + 18 + - CASE - 5 WHEN 19 THEN NULL WHEN 91 THEN COUNT( * ) + 87 WHEN - 24 * SUM( ALL + 34 ) THEN NULL ELSE CASE COALESCE ( - 13, - 95 ) WHEN 40 THEN + MIN( ALL - 70 ) - 81 WHEN CAST( NULL AS SIGNED ) THEN + 1 * + 12 ELSE NULL END + COALESCE ( + 89, + 88 * 28 + 56, 76 / + 50 ) END * ( - 14 ) + - ( + COALESCE ( 76, 37 + 61 * 41, + 62 + - 46 * + COALESCE ( 26 + 67, + CAST( NULL AS SIGNED ), + 56 ), - COUNT( * ) * - 90 ) ) WHEN 36 / + COUNT( * ) THEN CASE ( + 75 ) WHEN + 5 * - 47 THEN 13 WHEN 75 + CAST( NULL AS SIGNED ) THEN NULL END + 71 * - MIN( DISTINCT + 65 * CASE + 39 / + 24 WHEN - 5 THEN - 57 * 84 END + - 75 ) WHEN 88 THEN NULL ELSE NULL END + + ( MIN( - 59 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7149
SELECT CASE + 64 WHEN - 68 + + + 77 THEN + + 39 / + 18 + - CASE - 5 WHEN 19 THEN NULL WHEN 91 THEN COUNT ( * ) + 87 WHEN - 24 * SUM ( ALL + 34 ) THEN NULL ELSE CASE COALESCE ( - 13, - 95 ) WHEN 40 THEN + MIN ( ALL - 70 ) - 81 WHEN CAST ( NULL AS INTEGER ) THEN + 1 * + 12 ELSE NULL END + COALESCE ( + 89, + 88 * 28 + 56, 76 / + 50 ) END * ( - 14 ) + - ( + COALESCE ( 76, 37 + 61 * 41, + 62 + - 46 * + COALESCE ( 26 + 67, + CAST ( NULL AS INTEGER ), + 56 ), - COUNT ( * ) * - 90 ) ) WHEN 36 / + COUNT ( * ) THEN CASE ( + 75 ) WHEN + 5 * - 47 THEN 13 WHEN 75 + CAST ( NULL AS INTEGER ) THEN NULL END + 71 * - MIN ( DISTINCT + 65 * CASE + 39 / + 24 WHEN - 5 THEN - 57 * 84 END + - 75 ) WHEN 88 THEN NULL ELSE NULL END + + ( MIN ( - 59 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7150
SELECT ( 94 ) * - + 94 * + COUNT( * ) * - CAST( NULL AS SIGNED ) + - + 68 * 39 * 55 - + 46 * + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7150
SELECT ( 94 ) * - + 94 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - + 68 * 39 * 55 - + 46 * + 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT MAX( DISTINCT - 47 ) * 96
----
-4512

skipif mysql # not compatible
query I rowsort label-7151
SELECT MAX ( DISTINCT - 47 ) * 96
----
-4512

query I rowsort
SELECT 32 * - + 46 + 36
----
-1436

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT MAX( DISTINCT + + 79 ) + + - 15 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-7153
SELECT MAX ( DISTINCT + + 79 ) + + - 15 AS col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7154
SELECT 5 DIV COUNT( * ), 19 - ( + 98 ) AS col0
----
5
-79

skipif mysql # not compatible
query II rowsort label-7154
SELECT 5 / COUNT ( * ), 19 - ( + 98 ) AS col0
----
5
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-7155
SELECT DISTINCT 17 * COUNT( * ) col2, COUNT( * ) AS col1
----
17
1

skipif mysql # not compatible
query II rowsort label-7155
SELECT DISTINCT 17 * COUNT ( * ) col2, COUNT ( * ) AS col1
----
17
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7156
SELECT ALL + 66 * 0 DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-7156
SELECT ALL + 66 * 0 / - 45
----
0

query I rowsort
SELECT + 91 + + 85 AS col1
----
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7158
SELECT ALL + - CASE + + 46 WHEN AVG ( + 35 ) + - 73 * + CAST( 67 AS SIGNED ) / 55 + CASE 27 WHEN - 8 * - ( + 22 ) THEN + COALESCE ( 13, + 78 ) / + COUNT( * ) - NULLIF ( 99, - COALESCE ( + 48, - 35, + 53 ) ) WHEN 92 + 65 THEN NULL WHEN + 43 * 3 + 34 * + 45 THEN NULL WHEN 45 THEN NULL ELSE + 15 + 26 * 66 END THEN - 6 * 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7158
SELECT ALL + - CASE + + 46 WHEN AVG ( + 35 ) + - 73 * + CAST ( 67 AS INTEGER ) / 55 + CASE 27 WHEN - 8 * - ( + 22 ) THEN + COALESCE ( 13, + 78 ) / + COUNT ( * ) - NULLIF ( 99, - COALESCE ( + 48, - 35, + 53 ) ) WHEN 92 + 65 THEN NULL WHEN + 43 * 3 + 34 * + 45 THEN NULL WHEN 45 THEN NULL ELSE + 15 + 26 * 66 END THEN - 6 * 47 END
----
NULL

query I rowsort
SELECT DISTINCT + 22 * + - 80 AS col0
----
-1760

query I rowsort
SELECT DISTINCT + 64 + 8
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT CASE + - COUNT( DISTINCT ( - + 65 ) ) WHEN - MAX( ALL + + 77 ) * + 0 THEN ( 89 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7161
SELECT CASE + - COUNT ( DISTINCT ( - + 65 ) ) WHEN - MAX ( ALL + + 77 ) * + 0 THEN ( 89 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT ALL COUNT( * ) + - 18 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL COUNT ( * ) + - 18 AS col0
----
-17

query II rowsort
SELECT DISTINCT 6 + 76, 82 + - - 28 AS col0
----
82
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7164
SELECT ALL + NULLIF ( + 30, + CAST( + 37 AS SIGNED ) )
----
30

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL + NULLIF ( + 30, + CAST ( + 37 AS INTEGER ) )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7165
SELECT - - CAST( - + COALESCE ( - 3, COUNT( * ) ) AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-7165
SELECT - - CAST ( - + COALESCE ( - 3, COUNT ( * ) ) AS INTEGER )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT + - ( + 9 ) * - 56 + + + MAX( - COALESCE ( + 68, 14 * + 99, 3 ) ) + + 54 * 7
----
814

skipif mysql # not compatible
query I rowsort label-7166
SELECT + - ( + 9 ) * - 56 + + + MAX ( - COALESCE ( + 68, 14 * + 99, 3 ) ) + + 54 * 7
----
814

query I rowsort
SELECT - - 45 + - + 5 * + 71
----
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT - NULLIF ( + COUNT( * ), - 48 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7168
SELECT - NULLIF ( + COUNT ( * ), - 48 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - + 28 + 10 AS col1
----
-18

query I rowsort
SELECT - 21 * + 31
----
-651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7171
SELECT DISTINCT - CASE - CAST( - 31 AS SIGNED ) WHEN - + 96 * + COALESCE ( - 50, + 5 ) / 50 THEN NULL WHEN - COUNT( ALL + CAST( 21 AS SIGNED ) ) / 42 THEN 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT - CASE - CAST ( - 31 AS INTEGER ) WHEN - + 96 * + COALESCE ( - 50, + 5 ) / 50 THEN NULL WHEN - COUNT ( ALL + CAST ( 21 AS INTEGER ) ) / 42 THEN 75 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT DISTINCT - - COUNT( * ) + 94 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-7172
SELECT DISTINCT - - COUNT ( * ) + 94 AS col1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7173
SELECT DISTINCT - 46 DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-7173
SELECT DISTINCT - 46 / 60
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7174
SELECT ALL - - 86 + 60 + + + 59 + - + 1 * + - 59 * - - 85 * 57 / + CAST( CAST( NULL AS DECIMAL ) / 62 AS SIGNED ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7174
SELECT ALL - - 86 + 60 + + + 59 + - + 1 * + - 59 * - - 85 * 57 / + CAST ( CAST ( NULL AS REAL ) / 62 AS INTEGER ) * + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - + 18 * - 88
----
1584

query I rowsort
SELECT + 40 - + 76
----
-36

query I rowsort
SELECT ALL - 98 * - + ( + ( - - 83 ) ) AS col2
----
8134

query I rowsort
SELECT - 63 + - 78 AS col1
----
-141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7179
SELECT - COALESCE ( - - 91, - + 2 DIV - 18 + + COUNT( * ) ) DIV 37 * + 70
----
-140

skipif mysql # not compatible
query I rowsort label-7179
SELECT - COALESCE ( - - 91, - + 2 / - 18 + + COUNT ( * ) ) / 37 * + 70
----
-140

query I rowsort
SELECT ALL CASE + 34 WHEN - 0 THEN 71 WHEN - - 57 * - 34 THEN - - 57 * - + 34 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT - COUNT( * ) * + - MAX( DISTINCT 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-7181
SELECT - COUNT ( * ) * + - MAX ( DISTINCT 63 ) AS col1
----
63

query I rowsort
SELECT - COALESCE ( + 37, - 45 ) + + 26 + + - 70
----
-81

query I rowsort
SELECT ALL ( - 84 ) col1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-7184
SELECT DISTINCT + 8 DIV + + 34 col1
----
0

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT + 8 / + + 34 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7185
SELECT + ( 18 ) * - - CAST( + COUNT( + + 80 ) AS SIGNED ) - - - 36 * + - 5
----
198

skipif mysql # not compatible
query I rowsort label-7185
SELECT + ( 18 ) * - - CAST ( + COUNT ( + + 80 ) AS INTEGER ) - - - 36 * + - 5
----
198

query I rowsort
SELECT ALL + COALESCE ( - 36, + - 89 + - 53 )
----
-36

query I rowsort
SELECT DISTINCT 62 * - 38 - 47 AS col2
----
-2403

query I rowsort
SELECT + 32 * + 84 AS col1
----
2688

query I rowsort
SELECT ALL - 36 * + - 95 AS col0
----
3420

query I rowsort
SELECT - 44 * + + 58 AS col1
----
-2552

onlyif mysql # aggregate syntax: 
query II rowsort label-7191
SELECT ALL + 48, COUNT( * ) - + + 15 + 3 AS col0
----
48
-11

skipif mysql # not compatible
query II rowsort label-7191
SELECT ALL + 48, COUNT ( * ) - + + 15 + 3 AS col0
----
48
-11

query II rowsort
SELECT + 92 AS col2, 67
----
92
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7193
SELECT + CASE - CAST( - COUNT( * ) AS SIGNED ) WHEN + 54 THEN 48 WHEN 54 + 92 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7193
SELECT + CASE - CAST ( - COUNT ( * ) AS INTEGER ) WHEN + 54 THEN 48 WHEN 54 + 92 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 27 * + 49 * + 87
----
115101

query I rowsort
SELECT DISTINCT - + NULLIF ( COALESCE ( - 29, + 7 ), - + 31 ) * - + 43 + 76 * 62 col1
----
3465

query I rowsort
SELECT ALL + - 65 * + 53 * - 64 + - 99 * 91 AS col1
----
211471

query II rowsort
SELECT DISTINCT - + 99 * + 28 + - 91 AS col2, 7 * + 15 AS col1
----
-2863
105

query I rowsort
SELECT - - 54 + + - 61 AS col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7199
SELECT ALL + 85 DIV COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL + 85 / COUNT ( * ) AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7200
SELECT CAST( NULL AS SIGNED ) * + 9 * - 6 + + 48 AS col1, - 38
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-7200
SELECT CAST ( NULL AS INTEGER ) * + 9 * - 6 + + 48 AS col1, - 38
----
NULL
-38

query I rowsort
SELECT ALL - 43 * + 80 + 47 + 81 * + 78 * 87 col2
----
546273

query I rowsort
SELECT ALL + 36 * - 86 + 59 AS col0
----
-3037

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT + ( + 47 ) - + ( + MIN( ALL + 73 ) ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-7203
SELECT + ( + 47 ) - + ( + MIN ( ALL + 73 ) ) AS col2
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-7204
SELECT ALL 75 DIV 6 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL 75 / 6 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT DISTINCT NULLIF ( - ( + - MIN( - 90 ) ), ( - + 25 ) * 6 / 86 + - 9 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-7205
SELECT DISTINCT NULLIF ( - ( + - MIN ( - 90 ) ), ( - + 25 ) * 6 / 86 + - 9 ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT ALL - - 26 * - + ( - COUNT( * ) ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL - - 26 * - + ( - COUNT ( * ) ) AS col2
----
26

query I rowsort
SELECT + ( + - 76 ) + - 60 AS col1
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT + - COUNT( * ) + - 83
----
-84

skipif mysql # not compatible
query I rowsort label-7208
SELECT + - COUNT ( * ) + - 83
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7209
SELECT - 22 - + NULLIF ( + 46, + 67 ) + - 81 / - + CAST( - - 13 AS SIGNED ) + CASE - 45 WHEN - 84 THEN 47 + + 61 END - - COUNT( * ) * CASE - COUNT( * ) WHEN - 23 * + 48 THEN 12 - AVG ( ALL + ( 62 ) + 35 ) WHEN 20 / COUNT( - 78 ) + - 12 * 76 THEN NULL WHEN - 48 THEN NULL END * 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7209
SELECT - 22 - + NULLIF ( + 46, + 67 ) + - 81 / - + CAST ( - - 13 AS INTEGER ) + CASE - 45 WHEN - 84 THEN 47 + + 61 END - - COUNT ( * ) * CASE - COUNT ( * ) WHEN - 23 * + 48 THEN 12 - AVG ( ALL + ( 62 ) + 35 ) WHEN 20 / COUNT ( - 78 ) + - 12 * 76 THEN NULL WHEN - 48 THEN NULL END * 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT ALL + 39 - + - CASE - 31 WHEN - 85 * + 97 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL + 39 - + - CASE - 31 WHEN - 85 * + 97 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 86 + + - 91 AS col1
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-7212
SELECT ALL 86 DIV 36, 98 AS col0
----
2
98

skipif mysql # not compatible
query II rowsort label-7212
SELECT ALL 86 / 36, 98 AS col0
----
2
98

query I rowsort
SELECT + 68 + 63
----
131

query I rowsort
SELECT ALL + 4 * - 59 * 50
----
-11800

query I rowsort
SELECT DISTINCT + ( - 25 ) col1
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-7216
SELECT ALL - 31 + + - 85 + 77 + - 15 DIV ( 52 ) + - - 49 + - - 29 + - + 50 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL - 31 + + - 85 + 77 + - 15 / ( 52 ) + - - 49 + - - 29 + - + 50 AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7217
SELECT 90 + - + 14 + + - 95 * + + 19 * + + CAST( - 26 AS SIGNED ) + + 71 - - + COUNT( * ) * 22 AS col2
----
47099

skipif mysql # not compatible
query I rowsort label-7217
SELECT 90 + - + 14 + + - 95 * + + 19 * + + CAST ( - 26 AS INTEGER ) + + 71 - - + COUNT ( * ) * 22 AS col2
----
47099

query I rowsort
SELECT DISTINCT 44 * + 71 AS col0
----
3124

query I rowsort
SELECT + 57 * - - 51 + + 55
----
2962

query I rowsort
SELECT DISTINCT + 86 + 55 + + 18
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT ( - + 84 ) + + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-7221
SELECT ( - + 84 ) + + COUNT ( * )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT DISTINCT + ( - MIN( ALL + 61 ) ) + - MIN( + 24 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-7222
SELECT DISTINCT + ( - MIN ( ALL + 61 ) ) + - MIN ( + 24 ) AS col1
----
-85

query I rowsort
SELECT 14 + + - 58
----
-44

query I rowsort
SELECT COALESCE ( 11, + 84 ) AS col1
----
11

query I rowsort
SELECT ALL + + 86 + + 41 + 66 * - 19 AS col0
----
-1127

query I rowsort
SELECT 93 + - 42 col0
----
51

query I rowsort
SELECT ALL + 12 * + - 79
----
-948

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT - MAX( - 44 ) * - - 3 + 29 + COUNT( * ) AS col2
----
162

skipif mysql # not compatible
query I rowsort label-7228
SELECT - MAX ( - 44 ) * - - 3 + 29 + COUNT ( * ) AS col2
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT ALL + 62 - + COUNT( * ) * + + COUNT( DISTINCT + 27 ) * - 92
----
154

skipif mysql # not compatible
query I rowsort label-7229
SELECT ALL + 62 - + COUNT ( * ) * + + COUNT ( DISTINCT + 27 ) * - 92
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT - 12 * + - 55 * - + COUNT( * ) col0
----
-660

skipif mysql # not compatible
query I rowsort label-7230
SELECT - 12 * + - 55 * - + COUNT ( * ) col0
----
-660

onlyif mysql # aggregate syntax: 
query II rowsort label-7231
SELECT + MAX( - NULLIF ( - 31, + - 98 ) ) AS col0, + 89
----
31
89

skipif mysql # not compatible
query II rowsort label-7231
SELECT + MAX ( - NULLIF ( - 31, + - 98 ) ) AS col0, + 89
----
31
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT ALL - CASE WHEN NOT 93 <> + + 17 THEN 2 - - 58 * 4 + - CASE WHEN ( - COUNT( * ) ) NOT IN ( 12 ) THEN + 29 * 7 END ELSE 8 END AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL - CASE WHEN NOT 93 <> + + 17 THEN 2 - - 58 * 4 + - CASE WHEN ( - COUNT ( * ) ) NOT IN ( 12 ) THEN + 29 * 7 END ELSE 8 END AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT 1 + COUNT( * ) - 17 * + 89
----
-1511

skipif mysql # not compatible
query I rowsort label-7233
SELECT 1 + COUNT ( * ) - 17 * + 89
----
-1511

query I rowsort
SELECT ALL 5 * 10 AS col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7235
SELECT 58 DIV 24 * - COUNT( * ) * + 12 * - 95 AS col1
----
2280

skipif mysql # not compatible
query I rowsort label-7235
SELECT 58 / 24 * - COUNT ( * ) * + 12 * - 95 AS col1
----
2280

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7236
SELECT ALL - 35 DIV + CAST( + - 85 AS SIGNED ), 91 AS col0
----
0
91

skipif mysql # not compatible
query II rowsort label-7236
SELECT ALL - 35 / + CAST ( + - 85 AS INTEGER ), 91 AS col0
----
0
91

query I rowsort
SELECT DISTINCT 40 * - - 98 col2
----
3920

query I rowsort
SELECT ALL 98 * - ( 45 )
----
-4410

query II rowsort
SELECT DISTINCT 64 AS col1, - 26 AS col0
----
64
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT 19 + + COUNT( * ) - NULLIF ( COUNT( * ), + 62 / - 95 * - 53 * - 27 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-7240
SELECT 19 + + COUNT ( * ) - NULLIF ( COUNT ( * ), + 62 / - 95 * - 53 * - 27 ) AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7241
SELECT ALL NULLIF ( + 76, + CASE - CAST( - 33 AS SIGNED ) WHEN + CASE + 46 WHEN + - 95 * - 30 + + - COALESCE ( - 49, + 21 - 70 / + 79 ) THEN COUNT( * ) + + MAX( ALL - 51 - 61 * 94 ) WHEN 25 THEN NULL END THEN 23 * + 60 WHEN 95 THEN NULL ELSE NULL END ) + + COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL NULLIF ( + 76, + CASE - CAST ( - 33 AS INTEGER ) WHEN + CASE + 46 WHEN + - 95 * - 30 + + - COALESCE ( - 49, + 21 - 70 / + 79 ) THEN COUNT ( * ) + + MAX ( ALL - 51 - 61 * 94 ) WHEN 25 THEN NULL END THEN 23 * + 60 WHEN 95 THEN NULL ELSE NULL END ) + + COUNT ( * ) AS col1
----
77

query I rowsort
SELECT ALL 91 + 79
----
170

query I rowsort
SELECT DISTINCT 61 + + 58 AS col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT - SUM( + - 67 ) * 92 + 47 - + COUNT( DISTINCT 80 )
----
6210

skipif mysql # not compatible
query I rowsort label-7244
SELECT - SUM ( + - 67 ) * 92 + 47 - + COUNT ( DISTINCT 80 )
----
6210

onlyif mysql # DIV for integer division: 
query I rowsort label-7245
SELECT ALL + ( - - 37 ) * - COALESCE ( - + COALESCE ( 24, - - NULLIF ( + 72, + 64 - 90 ) DIV + 21, + 6 ), + 71 * 10 - 30 ) AS col2
----
888

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL + ( - - 37 ) * - COALESCE ( - + COALESCE ( 24, - - NULLIF ( + 72, + 64 - 90 ) / + 21, + 6 ), + 71 * 10 - 30 ) AS col2
----
888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7246
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) + - 96 AS col1, 16 * - COALESCE ( + 62, - - 4 * - + COUNT( + 16 ) * + + 32 ) AS col0
----
NULL
-992

skipif mysql # not compatible
query II rowsort label-7246
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) + - 96 AS col1, 16 * - COALESCE ( + 62, - - 4 * - + COUNT ( + 16 ) * + + 32 ) AS col0
----
NULL
-992

query I rowsort
SELECT ALL 54 * + 4 AS col0
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-7248
SELECT 39 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-7248
SELECT 39 / 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT DISTINCT - + ( + 56 ) * - COUNT( * ) * - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-7249
SELECT DISTINCT - + ( + 56 ) * - COUNT ( * ) * - COUNT ( * )
----
-56

query I rowsort
SELECT ALL - 52 - + 65 + - - 96 col2
----
-21

query I rowsort
SELECT CASE + 44 WHEN + + COALESCE ( 14, - - 79, 20 ) THEN - 32 ELSE NULL END / 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT ALL + 83 * + MIN( DISTINCT 38 ) AS col0
----
3154

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL + 83 * + MIN ( DISTINCT 38 ) AS col0
----
3154

query I rowsort
SELECT DISTINCT 39 * + 15 AS col1
----
585

query II rowsort
SELECT DISTINCT - + 62, 64 * + + 62 AS col1
----
-62
3968

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT 87 + - 39 + MIN( - 98 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-7255
SELECT 87 + - 39 + MIN ( - 98 ) AS col2
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7256
SELECT - 54 + 45 + - - 46 DIV + - CASE - - 8 WHEN 63 * + 57 THEN NULL ELSE + 54 DIV COUNT( * ) END + COUNT( * ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-7256
SELECT - 54 + 45 + - - 46 / + - CASE - - 8 WHEN 63 * + 57 THEN NULL ELSE + 54 / COUNT ( * ) END + COUNT ( * ) AS col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7257
SELECT - + COALESCE ( + + NULLIF ( - MAX( DISTINCT + 77 ), + CASE 86 WHEN - - CASE - ( + - 57 ) WHEN CASE 96 WHEN 69 - + 47 THEN 43 + - 23 END THEN - 55 ELSE NULL END + - CAST( + 56 AS SIGNED ) THEN 30 ELSE - 83 + 41 * + CAST( - 24 AS SIGNED ) END ), - 15 ) * - 9 + + 68 AS col1
----
-625

skipif mysql # not compatible
query I rowsort label-7257
SELECT - + COALESCE ( + + NULLIF ( - MAX ( DISTINCT + 77 ), + CASE 86 WHEN - - CASE - ( + - 57 ) WHEN CASE 96 WHEN 69 - + 47 THEN 43 + - 23 END THEN - 55 ELSE NULL END + - CAST ( + 56 AS INTEGER ) THEN 30 ELSE - 83 + 41 * + CAST ( - 24 AS INTEGER ) END ), - 15 ) * - 9 + + 68 AS col1
----
-625

query I rowsort
SELECT ALL + + 67 * 52 col1
----
3484

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT + COUNT( * ) * COALESCE ( + NULLIF ( + 64, 58 - AVG ( + 15 ) ), + COUNT( * ) * - 76 + 96 ) + 72 AS col0
----
136

skipif mysql # not compatible
query I rowsort label-7259
SELECT + COUNT ( * ) * COALESCE ( + NULLIF ( + 64, 58 - AVG ( + 15 ) ), + COUNT ( * ) * - 76 + 96 ) + 72 AS col0
----
136

query I rowsort
SELECT - - CASE - 21 WHEN + 70 THEN NULL WHEN + 0 THEN 19 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7261
SELECT ALL NULLIF ( 72, - 34 ) AS col1, - 69 + + 58 + CAST( - 79 AS SIGNED ) AS col2
----
72
-90

skipif mysql # not compatible
query II rowsort label-7261
SELECT ALL NULLIF ( 72, - 34 ) AS col1, - 69 + + 58 + CAST ( - 79 AS INTEGER ) AS col2
----
72
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7262
SELECT DISTINCT + 6 * ( 98 ) * + + 85 / 91 * + NULLIF ( 15, 80 / CASE 41 WHEN 69 THEN CASE 95 WHEN 8 THEN NULL WHEN + 82 * + 61 THEN - COUNT( * ) * + ( - CASE - CAST( NULL AS SIGNED ) WHEN 93 THEN - MAX( ALL + 53 ) WHEN COALESCE ( - 36, + 48 * 75 + + 85 ) THEN NULL ELSE NULL END * 49 ) + 74 * + COUNT( * ) END * - ( MIN( DISTINCT - 39 ) ) - - SUM( DISTINCT 38 ) ELSE NULL END ) * 20 + CAST( NULL AS SIGNED ) * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-7262
SELECT DISTINCT + 6 * ( 98 ) * + + 85 / 91 * + NULLIF ( 15, 80 / CASE 41 WHEN 69 THEN CASE 95 WHEN 8 THEN NULL WHEN + 82 * + 61 THEN - COUNT ( * ) * + ( - CASE - CAST ( NULL AS INTEGER ) WHEN 93 THEN - MAX ( ALL + 53 ) WHEN COALESCE ( - 36, + 48 * 75 + + 85 ) THEN NULL ELSE NULL END * 49 ) + 74 * + COUNT ( * ) END * - ( MIN ( DISTINCT - 39 ) ) - - SUM ( DISTINCT 38 ) ELSE NULL END ) * 20 + CAST ( NULL AS INTEGER ) * 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT 74 * + 13 * - COUNT( * )
----
-962

skipif mysql # not compatible
query I rowsort label-7263
SELECT 74 * + 13 * - COUNT ( * )
----
-962

query I rowsort
SELECT DISTINCT - 30 * + 63 * + 32 * - 22
----
1330560

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT DISTINCT MAX( DISTINCT - + 90 ) + + ( - + NULLIF ( - + 74, + COALESCE ( - ( + COUNT( ALL - 39 ) ), + - 67 ) ) )
----
-16

skipif mysql # not compatible
query I rowsort label-7265
SELECT DISTINCT MAX ( DISTINCT - + 90 ) + + ( - + NULLIF ( - + 74, + COALESCE ( - ( + COUNT ( ALL - 39 ) ), + - 67 ) ) )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT 58 + + 90 * COUNT( * ) * - 65 AS col0
----
-5792

skipif mysql # not compatible
query I rowsort label-7266
SELECT 58 + + 90 * COUNT ( * ) * - 65 AS col0
----
-5792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7267
SELECT - 12 AS col0, COALESCE ( - COUNT( * ), 38 ) * + 94 + + 69 + + 0 * 15 * - CAST( 95 AS SIGNED ) * + MIN( ALL - 98 ) * 86 + - 24 AS col2
----
-12
-49

skipif mysql # not compatible
query II rowsort label-7267
SELECT - 12 AS col0, COALESCE ( - COUNT ( * ), 38 ) * + 94 + + 69 + + 0 * 15 * - CAST ( 95 AS INTEGER ) * + MIN ( ALL - 98 ) * 86 + - 24 AS col2
----
-12
-49

query I rowsort
SELECT ALL NULLIF ( - 96, + + 25 * - 58 * + 72 )
----
-96

query I rowsort
SELECT 64 * + 71 AS col2
----
4544

query I rowsort
SELECT 67 + 52
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT NULLIF ( + 12, + COUNT( * ) ) - - SUM( DISTINCT - - 81 ) col2
----
93

skipif mysql # not compatible
query I rowsort label-7271
SELECT NULLIF ( + 12, + COUNT ( * ) ) - - SUM ( DISTINCT - - 81 ) col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-7272
SELECT 35 AS col0, COUNT( * ) + 97 AS col0
----
35
98

skipif mysql # not compatible
query II rowsort label-7272
SELECT 35 AS col0, COUNT ( * ) + 97 AS col0
----
35
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7273
SELECT ALL 15 DIV + + CAST( 41 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7273
SELECT ALL 15 / + + CAST ( 41 AS INTEGER ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7274
SELECT + 27 DIV + 57 * + + 1
----
0

skipif mysql # not compatible
query I rowsort label-7274
SELECT + 27 / + 57 * + + 1
----
0

query I rowsort
SELECT ALL NULLIF ( - 48, - 51 + - + 76 ) + + - 85 AS col0
----
-133

query II rowsort
SELECT DISTINCT + 32 + 97 - + 77 + + - 32, + 44 AS col2
----
20
44

query I rowsort
SELECT ALL 85 * + 63 * - 10 col2
----
-53550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7278
SELECT + 91 DIV COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-7278
SELECT + 91 / COUNT ( * ) AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7279
SELECT ALL - CASE + CAST( + 71 AS SIGNED ) WHEN + 78 THEN - COUNT( * ) * - 56 * - 43 + + 29 WHEN + COALESCE ( 38, + AVG ( ALL 52 ) ) * + ( ( - 54 ) + - 23 * + 22 ) + 36 THEN ( - 90 ) * SUM( ALL 4 * + 80 ) END + 64 * 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL - CASE + CAST ( + 71 AS INTEGER ) WHEN + 78 THEN - COUNT ( * ) * - 56 * - 43 + + 29 WHEN + COALESCE ( 38, + AVG ( ALL 52 ) ) * + ( ( - 54 ) + - 23 * + 22 ) + 36 THEN ( - 90 ) * SUM ( ALL 4 * + 80 ) END + 64 * 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7280
SELECT 45, - 41 + + - COUNT( * ) AS col0
----
45
-42

skipif mysql # not compatible
query II rowsort label-7280
SELECT 45, - 41 + + - COUNT ( * ) AS col0
----
45
-42

query I rowsort
SELECT - NULLIF ( + 53, 27 ) AS col2
----
-53

query II rowsort
SELECT ALL 45 AS col1, + NULLIF ( - 14, 74 )
----
45
-14

query I rowsort
SELECT + CASE 77 WHEN 87 - - 58 THEN 88 WHEN + 41 * + 19 * + 22 * - 22 / - + 50 + - + 25 THEN NULL WHEN - 87 / 51 + + 36 THEN 75 + 9 ELSE NULL END + 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT - NULLIF ( - ( 28 ), + COUNT( * ) + + 80 * - COUNT( * ) + + NULLIF ( + 27, - ( - + 92 ) ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7284
SELECT - NULLIF ( - ( 28 ), + COUNT ( * ) + + 80 * - COUNT ( * ) + + NULLIF ( + 27, - ( - + 92 ) ) ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT + CASE - 99 WHEN + + COUNT( * ) THEN NULL WHEN + - 12 * 48 * + - 19 THEN - - 25 * + + COUNT( * ) + - 77 ELSE - 80 END AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-7285
SELECT + CASE - 99 WHEN + + COUNT ( * ) THEN NULL WHEN + - 12 * 48 * + - 19 THEN - - 25 * + + COUNT ( * ) + - 77 ELSE - 80 END AS col2
----
-80

query I rowsort
SELECT + - 67 + - 63
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7287
SELECT ALL - + CAST( NULL AS SIGNED ) * + 61 - CASE - 28 WHEN - 30 THEN NULL WHEN 34 + + 0 * - + CAST( NULL AS SIGNED ) THEN - - 48 * - + 93 + + 96 ELSE NULL END * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL - + CAST ( NULL AS INTEGER ) * + 61 - CASE - 28 WHEN - 30 THEN NULL WHEN 34 + + 0 * - + CAST ( NULL AS INTEGER ) THEN - - 48 * - + 93 + + 96 ELSE NULL END * - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT ALL + SUM( ALL 80 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL + SUM ( ALL 80 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT - MIN( + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-7289
SELECT - MIN ( + 9 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT - MAX( ALL 10 ) * + 46 * - + COALESCE ( - + 35, + 1 ) + - - COUNT( * ) - 33
----
-16132

skipif mysql # not compatible
query I rowsort label-7290
SELECT - MAX ( ALL 10 ) * + 46 * - + COALESCE ( - + 35, + 1 ) + - - COUNT ( * ) - 33
----
-16132

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7291
SELECT + - 17 * COUNT( * ), - 73 DIV - COALESCE ( + - 19, - 71, + 44 ) AS col1
----
-17
-3

skipif mysql # not compatible
query II rowsort label-7291
SELECT + - 17 * COUNT ( * ), - 73 / - COALESCE ( + - 19, - 71, + 44 ) AS col1
----
-17
-3

query I rowsort
SELECT ALL + COALESCE ( + 65, + 92 ) col2
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-7293
SELECT + 11 * COUNT( * ) + 81 + - + COALESCE ( - + 20, + 63 ) AS col1, 80 AS col1
----
112
80

skipif mysql # not compatible
query II rowsort label-7293
SELECT + 11 * COUNT ( * ) + 81 + - + COALESCE ( - + 20, + 63 ) AS col1, 80 AS col1
----
112
80

query I rowsort
SELECT + 72 + 86
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT ALL - 29 * + CASE + + 58 WHEN - NULLIF ( - 1, - COALESCE ( + 22, + - 31 * - MAX( - 78 ) + + 72 ) ) + 33 THEN NULL WHEN + 71 THEN + 65 END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT ALL - 29 * + CASE + + 58 WHEN - NULLIF ( - 1, - COALESCE ( + 22, + - 31 * - MAX ( - 78 ) + + 72 ) ) + 33 THEN NULL WHEN + 71 THEN + 65 END + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7296
SELECT ALL - MAX( DISTINCT - - ( - + 59 ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7296
SELECT ALL - MAX ( DISTINCT - - ( - + 59 ) ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT + - CASE NULLIF ( 77, - 47 / - 15 - 81 + - COALESCE ( + + 73, - 10 * - 2 * MAX( 85 ) - - 45 ) ) WHEN 21 * CASE + 0 WHEN 9 * - 45 + 99 * 68 THEN - 16 - - 32 * - 94 WHEN 24 THEN NULL END THEN ( 68 ) * + 74 + NULLIF ( - 1 - + 45 * + COUNT( * ), 72 * + 1 ) * 44 WHEN + ( COUNT( * ) ) + - 32 * + 79 THEN AVG ( DISTINCT 70 ) + + 39 END / + COUNT( DISTINCT - 39 * - 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7297
SELECT + - CASE NULLIF ( 77, - 47 / - 15 - 81 + - COALESCE ( + + 73, - 10 * - 2 * MAX ( 85 ) - - 45 ) ) WHEN 21 * CASE + 0 WHEN 9 * - 45 + 99 * 68 THEN - 16 - - 32 * - 94 WHEN 24 THEN NULL END THEN ( 68 ) * + 74 + NULLIF ( - 1 - + 45 * + COUNT ( * ), 72 * + 1 ) * 44 WHEN + ( COUNT ( * ) ) + - 32 * + 79 THEN AVG ( DISTINCT 70 ) + + 39 END / + COUNT ( DISTINCT - 39 * - 67 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7298
SELECT - 71, + NULLIF ( - COUNT( * ), + + 82 * - CAST( - 24 AS SIGNED ) * + 15 + + 30 ) + - 7 * 71 + - ( 39 ) AS col0
----
-71
-537

skipif mysql # not compatible
query II rowsort label-7298
SELECT - 71, + NULLIF ( - COUNT ( * ), + + 82 * - CAST ( - 24 AS INTEGER ) * + 15 + + 30 ) + - 7 * 71 + - ( 39 ) AS col0
----
-71
-537

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7299
SELECT ALL + COUNT( * ) * - + 63 * - COALESCE ( 17, COUNT( * ) + - 91 * - - 80 * COUNT( * ) ) * + MAX( ALL - - 12 ) DIV 2 - 34 + ( 15 - 68 * + MIN( ALL + 89 - 99 ) ) + 16 AS col1
----
7103

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL + COUNT ( * ) * - + 63 * - COALESCE ( 17, COUNT ( * ) + - 91 * - - 80 * COUNT ( * ) ) * + MAX ( ALL - - 12 ) / 2 - 34 + ( 15 - 68 * + MIN ( ALL + 89 - 99 ) ) + 16 AS col1
----
7103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7300
SELECT - 97 DIV COUNT( * ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-7300
SELECT - 97 / COUNT ( * ) AS col1
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7301
SELECT DISTINCT - 0 * - + 51 * - 88 + AVG ( ( - 48 ) ) * + CASE - 14 WHEN + ( + 98 ) THEN + MAX( DISTINCT - COALESCE ( 48, - CAST( + 46 AS SIGNED ) ) ) END - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT - 0 * - + 51 * - 88 + AVG ( ( - 48 ) ) * + CASE - 14 WHEN + ( + 98 ) THEN + MAX ( DISTINCT - COALESCE ( 48, - CAST ( + 46 AS INTEGER ) ) ) END - 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT - 51 * 50 * - COUNT( * ) * + 14 AS col0
----
35700

skipif mysql # not compatible
query I rowsort label-7302
SELECT - 51 * 50 * - COUNT ( * ) * + 14 AS col0
----
35700

query I rowsort
SELECT DISTINCT - 99 + + 33 AS col0
----
-66

query I rowsort
SELECT ALL + 45 + + 44 * - + 25
----
-1055

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT DISTINCT - MIN( ALL + + 8 ) * - - 18 * 74 AS col2
----
-10656

skipif mysql # not compatible
query I rowsort label-7305
SELECT DISTINCT - MIN ( ALL + + 8 ) * - - 18 * 74 AS col2
----
-10656

query I rowsort
SELECT ALL - 18 + 11
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT ALL - 73 * MIN( - 85 )
----
6205

skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL - 73 * MIN ( - 85 )
----
6205

query I rowsort
SELECT - 15 + + - 43
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT - 91 + COALESCE ( + 87, 39 + + 36 + - 37 * + - 22 + - - 42, + 39 * 79 * 77 - - - COUNT( * ) ) * NULLIF ( 7 - + 99, - 36 )
----
-8095

skipif mysql # not compatible
query I rowsort label-7309
SELECT - 91 + COALESCE ( + 87, 39 + + 36 + - 37 * + - 22 + - - 42, + 39 * 79 * 77 - - - COUNT ( * ) ) * NULLIF ( 7 - + 99, - 36 )
----
-8095

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT DISTINCT ( - 39 ) + + 74 - - NULLIF ( + COUNT( * ), - 40 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-7310
SELECT DISTINCT ( - 39 ) + + 74 - - NULLIF ( + COUNT ( * ), - 40 ) AS col2
----
36

query II rowsort
SELECT DISTINCT ( + 68 ) AS col1, - 96 * 21 AS col1
----
68
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT ALL - SUM( DISTINCT + 71 ) * + 23 * ( - 91 ) AS col0
----
148603

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL - SUM ( DISTINCT + 71 ) * + 23 * ( - 91 ) AS col0
----
148603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7313
SELECT - CAST( NULL AS SIGNED ) - + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-7313
SELECT - CAST ( NULL AS INTEGER ) - + 86
----
NULL

query II rowsort
SELECT ALL ( 66 ) AS col1, 78 AS col0
----
66
78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7315
SELECT DISTINCT + NULLIF ( 26, - CASE + 43 WHEN + - 80 + - - 22 DIV + + CAST( AVG ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) THEN ( + 47 ) - - 35 * 31 ELSE NULL END ) - - COALESCE ( - 16, 4 + - 70 DIV 73 ) col1
----
10

skipif mysql # not compatible
query I rowsort label-7315
SELECT DISTINCT + NULLIF ( 26, - CASE + 43 WHEN + - 80 + - - 22 / + + CAST ( AVG ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) THEN ( + 47 ) - - 35 * 31 ELSE NULL END ) - - COALESCE ( - 16, 4 + - 70 / 73 ) col1
----
10

query I rowsort
SELECT + 37 + + 43 - + 75 * - - 69
----
-5095

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT ALL - COUNT( * ) - 68 + 8 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL - COUNT ( * ) - 68 + 8 AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7318
SELECT DISTINCT MAX( ALL - + CAST( + + 90 AS SIGNED ) ) DIV + 46 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7318
SELECT DISTINCT MAX ( ALL - + CAST ( + + 90 AS INTEGER ) ) / + 46 AS col0
----
-1

query I rowsort
SELECT - 33 * - 31
----
1023

query I rowsort
SELECT ALL 73 * 88 col0
----
6424

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT + - MIN( DISTINCT + 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-7321
SELECT + - MIN ( DISTINCT + 56 )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7322
SELECT ALL + CAST( NULL AS SIGNED ) * - 40 - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL + CAST ( NULL AS INTEGER ) * - 40 - 33
----
NULL

query I rowsort
SELECT + + ( + 84 ) * 3
----
252

query I rowsort
SELECT ALL + 0 * + 67
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7325
SELECT DISTINCT + - MIN( - + 65 ), + 19 * + SUM( + + 20 ) - COALESCE ( - 57, - + 90, - 12 ) AS col1
----
65
437

skipif mysql # not compatible
query II rowsort label-7325
SELECT DISTINCT + - MIN ( - + 65 ), + 19 * + SUM ( + + 20 ) - COALESCE ( - 57, - + 90, - 12 ) AS col1
----
65
437

query II rowsort
SELECT ALL 62 * + + 54 AS col1, - 48 col1
----
3348
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT + + COUNT( * ) * + 58 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-7327
SELECT + + COUNT ( * ) * + 58 AS col2
----
58

query I rowsort
SELECT + 85 * - + 10 * + 84
----
-71400

query II rowsort
SELECT ALL - 68 * - 64 AS col2, ( + - 24 ) + ( - 29 ) * 26
----
4352
-778

query I rowsort
SELECT + - 93 + + 31
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT + COUNT( * ) + - 22 * - - COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-7331
SELECT + COUNT ( * ) + - 22 * - - COUNT ( * )
----
-21

query I rowsort
SELECT - 34 * 40 AS col1
----
-1360

query I rowsort
SELECT ALL 40 * - 44 AS col2
----
-1760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7334
SELECT 86 * - + 61 + CAST( + 99 AS SIGNED ) + 6 * + 44 AS col2
----
-4883

skipif mysql # not compatible
query I rowsort label-7334
SELECT 86 * - + 61 + CAST ( + 99 AS INTEGER ) + 6 * + 44 AS col2
----
-4883

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT ALL 16 + - COUNT( + - 1 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL 16 + - COUNT ( + - 1 ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT DISTINCT MIN( ALL - 93 ) * - - 33 AS col1
----
-3069

skipif mysql # not compatible
query I rowsort label-7336
SELECT DISTINCT MIN ( ALL - 93 ) * - - 33 AS col1
----
-3069

query I rowsort
SELECT DISTINCT 45 + - + 93 AS col2
----
-48

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7338
SELECT ALL - CASE - 70 WHEN CASE + - CAST( NULL AS SIGNED ) WHEN 26 + - 66 * 76 + - 41 THEN + + 12 WHEN - 80 + + 36 THEN + - 19 + - 4 - + 65 * - 62 END THEN CAST( NULL AS DECIMAL ) END + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7338
SELECT ALL - CASE - 70 WHEN CASE + - CAST ( NULL AS INTEGER ) WHEN 26 + - 66 * 76 + - 41 THEN + + 12 WHEN - 80 + + 36 THEN + - 19 + - 4 - + 65 * - 62 END THEN CAST ( NULL AS REAL ) END + + 81
----
NULL

query I rowsort
SELECT 2 + 67 * + + 7 AS col0
----
471

query I rowsort
SELECT ALL 80 * 96 * + + ( - 84 ) AS col2
----
-645120

query I rowsort
SELECT 12 + - 72 * - 32
----
2316

query I rowsort
SELECT 18 * + - 29
----
-522

query II rowsort
SELECT - 79 AS col0, + 31 * - 0 AS col0
----
-79
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7344
SELECT 92 + + - ( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1, 56
----
NULL
56

skipif mysql # not compatible
query II rowsort label-7344
SELECT 92 + + - ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1, 56
----
NULL
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7345
SELECT - 33 AS col0, - 14 * + COUNT( * ) * - COUNT( * ) AS col2
----
-33
14

skipif mysql # not compatible
query II rowsort label-7345
SELECT - 33 AS col0, - 14 * + COUNT ( * ) * - COUNT ( * ) AS col2
----
-33
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7346
SELECT CAST( NULL AS SIGNED ) + + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-7346
SELECT CAST ( NULL AS INTEGER ) + + + 4
----
NULL

query I rowsort
SELECT ALL - 51 * - 27 AS col1
----
1377

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT ALL - 42 * COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL - 42 * COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT 24 - - COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-7349
SELECT 24 - - COUNT ( * ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-7350
SELECT ALL 98 col1, COUNT( * ) AS col1
----
98
1

skipif mysql # not compatible
query II rowsort label-7350
SELECT ALL 98 col1, COUNT ( * ) AS col1
----
98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT - 31 + + - MIN( 2 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-7351
SELECT - 31 + + - MIN ( 2 ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT ALL + 95 * - - 49 * - COUNT( * )
----
-4655

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL + 95 * - - 49 * - COUNT ( * )
----
-4655

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT - 7 + - - COUNT( * ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-7353
SELECT - 7 + - - COUNT ( * ) AS col1
----
-6

query I rowsort
SELECT 83 - + 17
----
66

query I rowsort
SELECT 16 + 72 - 31 + + + 54 AS col1
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-7356
SELECT - 34 DIV + + 49
----
0

skipif mysql # not compatible
query I rowsort label-7356
SELECT - 34 / + + 49
----
0

query I rowsort
SELECT ALL 73 + + - 85 - + 46 * + + 44 * + 47
----
-95140

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT + - COUNT( 86 ) * SUM( ALL 26 ) * + 43 + + COUNT( * ) AS col0
----
-1117

skipif mysql # not compatible
query I rowsort label-7358
SELECT + - COUNT ( 86 ) * SUM ( ALL 26 ) * + 43 + + COUNT ( * ) AS col0
----
-1117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7359
SELECT 83 DIV + 38 + - 56 + - + 10 DIV + + 82 + - SUM( DISTINCT - 95 ) + + 84 col0
----
125

skipif mysql # not compatible
query I rowsort label-7359
SELECT 83 / + 38 + - 56 + - + 10 / + + 82 + - SUM ( DISTINCT - 95 ) + + 84 col0
----
125

query I rowsort
SELECT ALL - 77 + - 95 AS col0
----
-172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7361
SELECT ALL - 97 + + 18 * 94 DIV - COUNT( * ) AS col0
----
-1789

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL - 97 + + 18 * 94 / - COUNT ( * ) AS col0
----
-1789

query I rowsort
SELECT ALL - 38 * - - 18 AS col1
----
-684

query I rowsort
SELECT + 83 + + + 51
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT ALL - 27 + - - 85 + + + COUNT( - 28 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL - 27 + - - 85 + + + COUNT ( - 28 ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT DISTINCT + + COUNT( * ) + 44 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-7365
SELECT DISTINCT + + COUNT ( * ) + 44 AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7366
SELECT + CAST( + + COALESCE ( + - COUNT( + 49 ), + - 25, - COALESCE ( + 72, CASE - 84 WHEN + - 42 THEN NULL ELSE + - 27 + - 55 * CAST( NULL AS SIGNED ) END * 73, CAST( NULL AS SIGNED ) ) * - 83 + + 96 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7366
SELECT + CAST ( + + COALESCE ( + - COUNT ( + 49 ), + - 25, - COALESCE ( + 72, CASE - 84 WHEN + - 42 THEN NULL ELSE + - 27 + - 55 * CAST ( NULL AS INTEGER ) END * 73, CAST ( NULL AS INTEGER ) ) * - 83 + + 96 ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7367
SELECT DISTINCT - 94 + CAST( 64 AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-7367
SELECT DISTINCT - 94 + CAST ( 64 AS INTEGER )
----
-30

query I rowsort
SELECT ALL 92 + 41
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7369
SELECT DISTINCT ( CAST( - 60 AS SIGNED ) ) * + - 90 * 89 AS col1
----
480600

skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT ( CAST ( - 60 AS INTEGER ) ) * + - 90 * 89 AS col1
----
480600

query I rowsort
SELECT ( 77 ) * - 58 * - + 85 * ( - 11 ) AS col1
----
-4175710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7371
SELECT DISTINCT CASE 9 WHEN - 82 * - 97 + - + 3 + + 98 / - 67 * + 9 + - - 59 * + 19 - - 81 THEN 25 - - + COUNT( * ) WHEN - 39 * + 89 THEN NULL WHEN - 41 * 76 + + COALESCE ( - CASE 38 WHEN 64 * + 35 THEN - 87 ELSE NULL END, 50, - CAST( NULL AS SIGNED ) * COUNT( * ) - 8 ) THEN NULL ELSE NULL END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT CASE 9 WHEN - 82 * - 97 + - + 3 + + 98 / - 67 * + 9 + - - 59 * + 19 - - 81 THEN 25 - - + COUNT ( * ) WHEN - 39 * + 89 THEN NULL WHEN - 41 * 76 + + COALESCE ( - CASE 38 WHEN 64 * + 35 THEN - 87 ELSE NULL END, 50, - CAST ( NULL AS INTEGER ) * COUNT ( * ) - 8 ) THEN NULL ELSE NULL END * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7372
SELECT DISTINCT ( - 97 ) * COUNT( ALL + + NULLIF ( - ( - + 23 ), + 35 * - - CAST( + 86 AS SIGNED ) ) ) * 58 - + ( 70 ) * + CASE - + 69 WHEN MIN( ALL 5 ) + - 82 THEN NULL WHEN - 9 THEN NULL WHEN 69 - - 67 THEN + 41 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7372
SELECT DISTINCT ( - 97 ) * COUNT ( ALL + + NULLIF ( - ( - + 23 ), + 35 * - - CAST ( + 86 AS INTEGER ) ) ) * 58 - + ( 70 ) * + CASE - + 69 WHEN MIN ( ALL 5 ) + - 82 THEN NULL WHEN - 9 THEN NULL WHEN 69 - - 67 THEN + 41 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT ( + COUNT( - 12 ) ) * - - 97 + 52 AS col1
----
149

skipif mysql # not compatible
query I rowsort label-7373
SELECT ( + COUNT ( - 12 ) ) * - - 97 + 52 AS col1
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7374
SELECT ALL CAST( NULL AS SIGNED ) * + + 87, 76 AS col0
----
NULL
76

skipif mysql # not compatible
query II rowsort label-7374
SELECT ALL CAST ( NULL AS INTEGER ) * + + 87, 76 AS col0
----
NULL
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT COUNT( * ) + - + 37
----
-36

skipif mysql # not compatible
query I rowsort label-7375
SELECT COUNT ( * ) + - + 37
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-7376
SELECT - MAX( DISTINCT - 73 ) col1, COUNT( * ) - + - 34 AS col2
----
73
35

skipif mysql # not compatible
query II rowsort label-7376
SELECT - MAX ( DISTINCT - 73 ) col1, COUNT ( * ) - + - 34 AS col2
----
73
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7377
SELECT ALL ( - ( - - 76 ) ) * - CAST( 44 AS SIGNED )
----
3344

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL ( - ( - - 76 ) ) * - CAST ( 44 AS INTEGER )
----
3344

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT - 38 * - 17 * + + MAX( - - 21 )
----
13566

skipif mysql # not compatible
query I rowsort label-7378
SELECT - 38 * - 17 * + + MAX ( - - 21 )
----
13566

query I rowsort
SELECT - 65 - + ( - 60 ) * + 19 AS col1
----
1075

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT - COUNT( * ) * - 14 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7380
SELECT - COUNT ( * ) * - 14 AS col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7381
SELECT SUM( ALL CAST( NULL AS SIGNED ) ) + 27 + + + SUM( DISTINCT - - 82 ) * - CASE - - 74 WHEN 25 * 73 THEN 60 + CAST( NULL AS SIGNED ) WHEN - - COALESCE ( 65, - 7 ) + + AVG ( DISTINCT - 50 ) THEN NULL WHEN ( + CAST( + 55 AS SIGNED ) ) + 79 * - ( + 67 ) THEN ( 71 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7381
SELECT SUM ( ALL CAST ( NULL AS INTEGER ) ) + 27 + + + SUM ( DISTINCT - - 82 ) * - CASE - - 74 WHEN 25 * 73 THEN 60 + CAST ( NULL AS INTEGER ) WHEN - - COALESCE ( 65, - 7 ) + + AVG ( DISTINCT - 50 ) THEN NULL WHEN ( + CAST ( + 55 AS INTEGER ) ) + 79 * - ( + 67 ) THEN ( 71 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT DISTINCT + 34 + + 39 + - ( + - COUNT( 12 ) ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT + 34 + + 39 + - ( + - COUNT ( 12 ) ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT + MIN( + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-7383
SELECT + MIN ( + 31 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT ALL - 59 * - 36 + 66 * + MAX( - 94 ) AS col0
----
-4080

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL - 59 * - 36 + 66 * + MAX ( - 94 ) AS col0
----
-4080

query I rowsort
SELECT 56 - - 99 - + - 65
----
220

query I rowsort
SELECT 0 * - 2 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT ALL + 73 * - - COUNT( ALL + 43 ) * - - COUNT( * ) + - 92
----
-19

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL + 73 * - - COUNT ( ALL + 43 ) * - - COUNT ( * ) + - 92
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7388
SELECT + - 96 DIV + 17 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-7388
SELECT + - 96 / + 17 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT - - MAX( + 37 ) * COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-7389
SELECT - - MAX ( + 37 ) * COUNT ( * )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7390
SELECT ALL + ( + 26 ) * CAST( NULL AS SIGNED ) + + 60 - - AVG ( + 20 ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL + ( + 26 ) * CAST ( NULL AS INTEGER ) + + 60 - - AVG ( + 20 ) * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7391
SELECT + CASE + - COUNT( - 89 ) WHEN + 84 THEN NULL WHEN + + 86 THEN 49 * + + NULLIF ( + SUM( DISTINCT 75 ), + COALESCE ( - - 7, ( + SUM( DISTINCT + - ( + - 80 ) ) ) / - 93, - 44 + 82 ) * + NULLIF ( COUNT( * ), + ( + ( MAX( - 76 ) ) ) * COUNT( * ) + CAST( - 70 - 5 AS SIGNED ) ) ) + 51 END / + 16 - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7391
SELECT + CASE + - COUNT ( - 89 ) WHEN + 84 THEN NULL WHEN + + 86 THEN 49 * + + NULLIF ( + SUM ( DISTINCT 75 ), + COALESCE ( - - 7, ( + SUM ( DISTINCT + - ( + - 80 ) ) ) / - 93, - 44 + 82 ) * + NULLIF ( COUNT ( * ), + ( + ( MAX ( - 76 ) ) ) * COUNT ( * ) + CAST ( - 70 - 5 AS INTEGER ) ) ) + 51 END / + 16 - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT ALL 86 * COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-7392
SELECT ALL 86 * COUNT ( * )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7393
SELECT ALL COALESCE ( - 87, 12 DIV - 69 ) * - 0 * - - 62 + - 47
----
-47

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL COALESCE ( - 87, 12 / - 69 ) * - 0 * - - 62 + - 47
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT SUM( - 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-7394
SELECT SUM ( - 24 ) AS col2
----
-24

query I rowsort
SELECT - 39 + + 79 AS col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7396
SELECT + 44 DIV - - COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7396
SELECT + 44 / - - COUNT ( * ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-7397
SELECT COUNT( * ), 25 col0
----
1
25

skipif mysql # not compatible
query II rowsort label-7397
SELECT COUNT ( * ), 25 col0
----
1
25

query I rowsort
SELECT - 15 + 71 + 58 col0
----
114

query I rowsort
SELECT - 32 * + 29 AS col2
----
-928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7400
SELECT - CAST( - 32 AS SIGNED ) * 21 + 98 + - + 69
----
701

skipif mysql # not compatible
query I rowsort label-7400
SELECT - CAST ( - 32 AS INTEGER ) * 21 + 98 + - + 69
----
701

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7401
SELECT DISTINCT COALESCE ( + COALESCE ( + 49, - + COUNT( * ) * - 4 ), - COALESCE ( - 28, + 45 * + 65 * + COUNT( * ) - + 17 + + + 86 + - SUM( ALL CAST( NULL AS SIGNED ) ) DIV 91 * + 74 ), 59, SUM( ALL 34 ) ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-7401
SELECT DISTINCT COALESCE ( + COALESCE ( + 49, - + COUNT ( * ) * - 4 ), - COALESCE ( - 28, + 45 * + 65 * + COUNT ( * ) - + 17 + + + 86 + - SUM ( ALL CAST ( NULL AS INTEGER ) ) / 91 * + 74 ), 59, SUM ( ALL 34 ) ) AS col1
----
49

query I rowsort
SELECT + 61 + - 91 AS col1
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-7403
SELECT DISTINCT 31 DIV + COALESCE ( + - 32, + + 0 ) * - 80 * - 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT 31 / + COALESCE ( + - 32, + + 0 ) * - 80 * - 85 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7404
SELECT DISTINCT - 46 DIV 17
----
-2

skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT - 46 / 17
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7405
SELECT - ( - CAST( CASE - 63 WHEN AVG ( ALL - ( + 13 ) ) * + + MAX( ALL + 64 ) + + 18 - + 94 + - + 51 THEN NULL ELSE + 35 END AS SIGNED ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-7405
SELECT - ( - CAST ( CASE - 63 WHEN AVG ( ALL - ( + 13 ) ) * + + MAX ( ALL + 64 ) + + 18 - + 94 + - + 51 THEN NULL ELSE + 35 END AS INTEGER ) ) AS col1
----
35

query I rowsort
SELECT ALL + 12 * - 66 * - 92
----
72864

query I rowsort
SELECT ALL - 96 + 58
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-7408
SELECT DISTINCT - ( 40 ) + - COUNT( * ) col0, - COUNT( * ) AS col1
----
-41
-1

skipif mysql # not compatible
query II rowsort label-7408
SELECT DISTINCT - ( 40 ) + - COUNT ( * ) col0, - COUNT ( * ) AS col1
----
-41
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT DISTINCT - NULLIF ( - 44, - 46 ) + - COUNT( + - ( 96 ) ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT - NULLIF ( - 44, - 46 ) + - COUNT ( + - ( 96 ) ) AS col1
----
43

query I rowsort
SELECT DISTINCT 12 + + 52 + 11 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT + COUNT( + 94 ) * + - 61
----
-61

skipif mysql # not compatible
query I rowsort label-7411
SELECT + COUNT ( + 94 ) * + - 61
----
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-7412
SELECT + + 80 + 85 * + + 22 AS col1, 83 DIV + + 31
----
1950
2

skipif mysql # not compatible
query II rowsort label-7412
SELECT + + 80 + 85 * + + 22 AS col1, 83 / + + 31
----
1950
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT - + COUNT( ALL - - 0 ) - - + 63 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-7413
SELECT - + COUNT ( ALL - - 0 ) - - + 63 AS col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7414
SELECT DISTINCT + 69 DIV - 48 - - 41 + + 79 + - COUNT( * ) + 12 * - - 59 + - 48 AS col2, - 73 * + 48 AS col1
----
778
-3504

skipif mysql # not compatible
query II rowsort label-7414
SELECT DISTINCT + 69 / - 48 - - 41 + + 79 + - COUNT ( * ) + 12 * - - 59 + - 48 AS col2, - 73 * + 48 AS col1
----
778
-3504

onlyif mysql # aggregate syntax: 
query II rowsort label-7415
SELECT ALL NULLIF ( + - NULLIF ( + - 28, - COUNT( * ) ), - + 15 ), 71 AS col0
----
28
71

skipif mysql # not compatible
query II rowsort label-7415
SELECT ALL NULLIF ( + - NULLIF ( + - 28, - COUNT ( * ) ), - + 15 ), 71 AS col0
----
28
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT ALL + MIN( + + ( - 89 ) ) col1
----
-89

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL + MIN ( + + ( - 89 ) ) col1
----
-89

query I rowsort
SELECT DISTINCT + - ( - 13 ) AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7418
SELECT ALL 1 / - CASE + CASE COUNT( * ) WHEN COUNT( * ) + - ( + 92 ) THEN NULL ELSE - NULLIF ( + 78, + + 30 + 54 + - 49 + - 30 * - + ( 96 ) ) END WHEN 24 - 92 * - 44 THEN NULL WHEN + 34 THEN NULL WHEN - 82 THEN - CAST( 23 AS SIGNED ) END - - COUNT( * ) - - ( + COUNT( - 19 ) + - 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL 1 / - CASE + CASE COUNT ( * ) WHEN COUNT ( * ) + - ( + 92 ) THEN NULL ELSE - NULLIF ( + 78, + + 30 + 54 + - 49 + - 30 * - + ( 96 ) ) END WHEN 24 - 92 * - 44 THEN NULL WHEN + 34 THEN NULL WHEN - 82 THEN - CAST ( 23 AS INTEGER ) END - - COUNT ( * ) - - ( + COUNT ( - 19 ) + - 95 )
----
NULL

query II rowsort
SELECT + - 47 * + - 70 + + 49 AS col2, ( 87 ) AS col1
----
3339
87

query II rowsort
SELECT DISTINCT + 35, 26 AS col1
----
35
26

query I rowsort
SELECT ALL 57 * - ( - COALESCE ( + 1, 93 + 36 - - - 91 ) )
----
57

query I rowsort
SELECT - 45 + + 41 + + 22 * - - 30
----
656

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT ALL + MIN( DISTINCT - + 71 ) col2
----
-71

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL + MIN ( DISTINCT - + 71 ) col2
----
-71

query I rowsort
SELECT - 33 * + 7
----
-231

onlyif mysql # DIV for integer division: 
query I rowsort label-7425
SELECT - 37 * 84 DIV 89 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-7425
SELECT - 37 * 84 / 89 AS col0
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7426
SELECT ALL - MAX( 18 ) DIV + 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL - MAX ( 18 ) / + 93 AS col0
----
0

query I rowsort
SELECT NULLIF ( - - 38, - 46 )
----
38

query I rowsort
SELECT NULLIF ( 48, - 62 + + + 44 - + + 42 )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7429
SELECT DISTINCT ( - 26 ) * - COALESCE ( + 54, CAST( NULL AS SIGNED ) * - ( - - 70 ) ) + + 11 AS col0
----
1415

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT ( - 26 ) * - COALESCE ( + 54, CAST ( NULL AS INTEGER ) * - ( - - 70 ) ) + + 11 AS col0
----
1415

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT - ( MIN( + + 29 ) ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-7430
SELECT - ( MIN ( + + 29 ) ) AS col0
----
-29

query II rowsort
SELECT + 17, 39 * 44 + - + 87 AS col1
----
17
1629

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT - MIN( 60 ) + - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-7432
SELECT - MIN ( 60 ) + - COUNT ( * )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7433
SELECT ALL - MAX( DISTINCT - 34 ), CAST( + 94 AS SIGNED ) - + 95 AS col2
----
34
-1

skipif mysql # not compatible
query II rowsort label-7433
SELECT ALL - MAX ( DISTINCT - 34 ), CAST ( + 94 AS INTEGER ) - + 95 AS col2
----
34
-1

query II rowsort
SELECT - - 60, 73 * - 28 + + + 41 AS col2
----
60
-2003

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT - CASE 86 WHEN + SUM( DISTINCT - 86 ) THEN NULL WHEN 71 * + COALESCE ( - 18, + COUNT( DISTINCT - 24 ) + 13 * + - 11 ) * 82 THEN NULL ELSE - 57 END AS col0
----
57

skipif mysql # not compatible
query I rowsort label-7435
SELECT - CASE 86 WHEN + SUM ( DISTINCT - 86 ) THEN NULL WHEN 71 * + COALESCE ( - 18, + COUNT ( DISTINCT - 24 ) + 13 * + - 11 ) * 82 THEN NULL ELSE - 57 END AS col0
----
57

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7436
SELECT + CAST( NULL AS DECIMAL ), + 54 + - 64 col1
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-7436
SELECT + CAST ( NULL AS REAL ), + 54 + - 64 col1
----
NULL
-10

query I rowsort
SELECT + - 4 + 64
----
60

query II rowsort
SELECT DISTINCT - 81, - 74 * - 45 AS col1
----
-81
3330

onlyif mysql # aggregate syntax: 
query II rowsort label-7439
SELECT - 74, SUM( DISTINCT 32 ) AS col0
----
-74
32

skipif mysql # not compatible
query II rowsort label-7439
SELECT - 74, SUM ( DISTINCT 32 ) AS col0
----
-74
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7440
SELECT - CAST( 6 AS SIGNED ) + + 99 * + ( 19 ) AS col2
----
1875

skipif mysql # not compatible
query I rowsort label-7440
SELECT - CAST ( 6 AS INTEGER ) + + 99 * + ( 19 ) AS col2
----
1875

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT ALL COUNT( * ) - - + 95
----
96

skipif mysql # not compatible
query I rowsort label-7441
SELECT ALL COUNT ( * ) - - + 95
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT ALL + COUNT( + 33 ) * 45
----
45

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL + COUNT ( + 33 ) * 45
----
45

query I rowsort
SELECT - 16 * + ( - 25 )
----
400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7444
SELECT ALL - + ( MAX( - + 54 ) ) DIV - 75 AS col1, - 29 * + COUNT( * ) + - 1 + + - COUNT( * )
----
0
-31

skipif mysql # not compatible
query II rowsort label-7444
SELECT ALL - + ( MAX ( - + 54 ) ) / - 75 AS col1, - 29 * + COUNT ( * ) + - 1 + + - COUNT ( * )
----
0
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT DISTINCT + 46 * COUNT( * ) + 52
----
98

skipif mysql # not compatible
query I rowsort label-7445
SELECT DISTINCT + 46 * COUNT ( * ) + 52
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT COUNT( * ) * + ( + + ( + 46 ) )
----
46

skipif mysql # not compatible
query I rowsort label-7446
SELECT COUNT ( * ) * + ( + + ( + 46 ) )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7447
SELECT ( COUNT( * ) ) DIV + 16
----
0

skipif mysql # not compatible
query I rowsort label-7447
SELECT ( COUNT ( * ) ) / + 16
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7448
SELECT ALL COUNT( * ) DIV + 16
----
0

skipif mysql # not compatible
query I rowsort label-7448
SELECT ALL COUNT ( * ) / + 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT COUNT( * ) * ( - + 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7449
SELECT COUNT ( * ) * ( - + 4 ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT 12 * + - MAX( DISTINCT 50 )
----
-600

skipif mysql # not compatible
query I rowsort label-7450
SELECT 12 * + - MAX ( DISTINCT 50 )
----
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT DISTINCT - SUM( DISTINCT - 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT - SUM ( DISTINCT - 62 ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT ( + - 28 ) - + + 11 + - - COUNT( * ) * - 19
----
-58

skipif mysql # not compatible
query I rowsort label-7452
SELECT ( + - 28 ) - + + 11 + - - COUNT ( * ) * - 19
----
-58

query I rowsort
SELECT ALL - 97 + + ( 95 ) AS col2
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7454
SELECT 43 * + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7454
SELECT 43 * + CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT DISTINCT - 79 + 0
----
-79

query I rowsort
SELECT - 74 * - 50 + + 38
----
3738

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT ALL - SUM( DISTINCT 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL - SUM ( DISTINCT 43 )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-7458
SELECT COUNT( * ) + - 20, + ( + 97 ) col2
----
-19
97

skipif mysql # not compatible
query II rowsort label-7458
SELECT COUNT ( * ) + - 20, + ( + 97 ) col2
----
-19
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7459
SELECT DISTINCT + 16 + + 43 + - COALESCE ( + 1, + COUNT( * ) ) + - COALESCE ( 33, - + 91 * + - 12 + COUNT( * ) + + + 41 + - + 40, + + COUNT( * ) * 67 + - + 23 + - 70 + + COALESCE ( 4, 46, 11 + + COUNT( * ) DIV 11 ) ) + 5 * 45 AS col2
----
250

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT + 16 + + 43 + - COALESCE ( + 1, + COUNT ( * ) ) + - COALESCE ( 33, - + 91 * + - 12 + COUNT ( * ) + + + 41 + - + 40, + + COUNT ( * ) * 67 + - + 23 + - 70 + + COALESCE ( 4, 46, 11 + + COUNT ( * ) / 11 ) ) + 5 * 45 AS col2
----
250

query I rowsort
SELECT DISTINCT - ( + + ( - 17 ) )
----
17

query II rowsort
SELECT DISTINCT 45 + + 53 AS col1, 70 AS col0
----
98
70

query I rowsort
SELECT - 84 + - ( - 83 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT - + COUNT( ALL + 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-7463
SELECT - + COUNT ( ALL + 8 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT DISTINCT - - ( - 15 ) + + - 52 * + MAX( ALL - 99 )
----
5133

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT - - ( - 15 ) + + - 52 * + MAX ( ALL - 99 )
----
5133

query I rowsort
SELECT ALL + - 34 + - ( + + 20 )
----
-54

query I rowsort
SELECT DISTINCT + 13 + + 96 col1
----
109

query II rowsort
SELECT - NULLIF ( + 13, + + 4 ) AS col2, 23
----
-13
23

onlyif mysql # aggregate syntax: 
query II rowsort label-7468
SELECT - CASE 40 WHEN 87 + + 43 THEN NULL ELSE + ( 7 ) * ( - 2 ) * 86 + - 70 END + + ( - 25 ) col2, - CASE + 14 WHEN - 28 THEN NULL WHEN + 42 THEN CASE ( 15 ) WHEN MAX( 44 ) THEN COUNT( + 35 ) END END - 74 col2
----
1249
NULL

skipif mysql # not compatible
query II rowsort label-7468
SELECT - CASE 40 WHEN 87 + + 43 THEN NULL ELSE + ( 7 ) * ( - 2 ) * 86 + - 70 END + + ( - 25 ) col2, - CASE + 14 WHEN - 28 THEN NULL WHEN + 42 THEN CASE ( 15 ) WHEN MAX ( 44 ) THEN COUNT ( + 35 ) END END - 74 col2
----
1249
NULL

query I rowsort
SELECT + 34 * - + 95 + - 14 AS col1
----
-3244

query I rowsort
SELECT ALL + 69 * + 52 + - 17 AS col2
----
3571

onlyif mysql # aggregate syntax: 
query II rowsort label-7471
SELECT DISTINCT - 11 * - 46, COUNT( * ) AS col0
----
506
1

skipif mysql # not compatible
query II rowsort label-7471
SELECT DISTINCT - 11 * - 46, COUNT ( * ) AS col0
----
506
1

query I rowsort
SELECT DISTINCT + + 9 - 23
----
-14

query I rowsort
SELECT ALL - 78 * - 20
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT COUNT( * ) * 34 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-7474
SELECT COUNT ( * ) * 34 AS col1
----
34

query I rowsort
SELECT + 23 + 10 AS col1
----
33

query I rowsort
SELECT - 76 + 48 AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7477
SELECT 93 + + - CAST( NULL AS SIGNED ) * - 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7477
SELECT 93 + + - CAST ( NULL AS INTEGER ) * - 95 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT COUNT( * ) - 26 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-7478
SELECT COUNT ( * ) - 26 AS col1
----
-25

query I rowsort
SELECT 2 + + 33
----
35

query II rowsort
SELECT 38 - 41 + 73, 42 col2
----
70
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT 12 * + ( + + COUNT( * ) )
----
12

skipif mysql # not compatible
query I rowsort label-7481
SELECT 12 * + ( + + COUNT ( * ) )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT ALL COALESCE ( + - 70, - 15, - 28 ) * + + 37 + - COUNT( * ) * - 92 + 66 AS col2
----
-2432

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL COALESCE ( + - 70, - 15, - 28 ) * + + 37 + - COUNT ( * ) * - 92 + 66 AS col2
----
-2432

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT COUNT( * ) + + ( + NULLIF ( - 59, - 39 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-7483
SELECT COUNT ( * ) + + ( + NULLIF ( - 59, - 39 ) )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT DISTINCT COALESCE ( - NULLIF ( - CASE + 27 WHEN - + 15 THEN - 9 END, + MIN( DISTINCT + 72 ) ), + - 63 + + 56, - 22 ) * 90 AS col1
----
-630

skipif mysql # not compatible
query I rowsort label-7484
SELECT DISTINCT COALESCE ( - NULLIF ( - CASE + 27 WHEN - + 15 THEN - 9 END, + MIN ( DISTINCT + 72 ) ), + - 63 + + 56, - 22 ) * 90 AS col1
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT DISTINCT - 16 * - + 93 * - - 71 + + - COUNT( * ) + + + 80 AS col0
----
105727

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT - 16 * - + 93 * - - 71 + + - COUNT ( * ) + + + 80 AS col0
----
105727

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7486
SELECT - 71 DIV + + 69 + + 37 - + + ( + COUNT( * ) ) * + - 60 + 97 - - NULLIF ( + 91, - 73 * + COUNT( * ) )
----
284

skipif mysql # not compatible
query I rowsort label-7486
SELECT - 71 / + + 69 + + 37 - + + ( + COUNT ( * ) ) * + - 60 + 97 - - NULLIF ( + 91, - 73 * + COUNT ( * ) )
----
284

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT + MIN( ALL 54 )
----
54

skipif mysql # not compatible
query I rowsort label-7487
SELECT + MIN ( ALL 54 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT 47 + - + CASE + 55 WHEN - 13 THEN - + COUNT( * ) * + CASE - 98 WHEN + 96 THEN + + 50 WHEN COUNT( * ) - + - 3 THEN NULL ELSE + - 86 - + - 93 END + 75 + - 5 WHEN + AVG ( + + 40 ) * + COUNT( * ) + NULLIF ( + 85, + 97 ) THEN 90 * 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT 47 + - + CASE + 55 WHEN - 13 THEN - + COUNT ( * ) * + CASE - 98 WHEN + 96 THEN + + 50 WHEN COUNT ( * ) - + - 3 THEN NULL ELSE + - 86 - + - 93 END + 75 + - 5 WHEN + AVG ( + + 40 ) * + COUNT ( * ) + NULLIF ( + 85, + 97 ) THEN 90 * 99 END
----
NULL

query II rowsort
SELECT ALL - 88 AS col2, 43 * + - 46
----
-88
-1978

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT NULLIF ( + 0, 2 ) * + ( + 83 ) - CASE - + ( + 73 ) WHEN - 27 THEN + + 40 + - - 25 WHEN + - 59 THEN NULL ELSE - - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-7490
SELECT NULLIF ( + 0, 2 ) * + ( + 83 ) - CASE - + ( + 73 ) WHEN - 27 THEN + + 40 + - - 25 WHEN + - 59 THEN NULL ELSE - - COUNT ( * ) END
----
-1

query II rowsort
SELECT ALL - 1 AS col1, 53 * - - 2
----
-1
106

query I rowsort
SELECT 37 * + 95 * - + 47
----
-165205

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7493
SELECT 29 * - COALESCE ( + ( - 98 ), + + 65 - + CAST( NULL AS SIGNED ) * 36 DIV + + 58 * - 85, 65 ) + - 49 DIV 84 AS col0
----
2842

skipif mysql # not compatible
query I rowsort label-7493
SELECT 29 * - COALESCE ( + ( - 98 ), + + 65 - + CAST ( NULL AS INTEGER ) * 36 / + + 58 * - 85, 65 ) + - 49 / 84 AS col0
----
2842

onlyif mysql # aggregate syntax: 
query II rowsort label-7494
SELECT + 38 AS col1, MIN( DISTINCT + - 37 ) AS col0
----
38
-37

skipif mysql # not compatible
query II rowsort label-7494
SELECT + 38 AS col1, MIN ( DISTINCT + - 37 ) AS col0
----
38
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-7495
SELECT 82 + - - 58 * - - MAX( DISTINCT - 46 ) AS col2, + 73 * - 42 AS col2
----
-2586
-3066

skipif mysql # not compatible
query II rowsort label-7495
SELECT 82 + - - 58 * - - MAX ( DISTINCT - 46 ) AS col2, + 73 * - 42 AS col2
----
-2586
-3066

query I rowsort
SELECT ALL - NULLIF ( 56, 78 * 16 ) AS col1
----
-56

query I rowsort
SELECT ALL - 34 * + - 29 AS col2
----
986

query I rowsort
SELECT 51 + - 73
----
-22

query I rowsort
SELECT ALL - 64 - - 2
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-7500
SELECT - 79, + COUNT( * ) AS col1
----
-79
1

skipif mysql # not compatible
query II rowsort label-7500
SELECT - 79, + COUNT ( * ) AS col1
----
-79
1

query I rowsort
SELECT 0 - + 5 AS col2
----
-5

query I rowsort
SELECT - 5 * + + 34 AS col2
----
-170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7503
SELECT - 11 * + CAST( + 22 AS SIGNED ) - - 4 AS col1
----
-238

skipif mysql # not compatible
query I rowsort label-7503
SELECT - 11 * + CAST ( + 22 AS INTEGER ) - - 4 AS col1
----
-238

query II rowsort
SELECT - 86 col2, - 26 col0
----
-86
-26

query I rowsort
SELECT - + 87 + - - 59
----
-28

query I rowsort
SELECT DISTINCT ( + 2 ) AS col0
----
2

query I rowsort
SELECT + - 18 * + 49 - 84 * - 50 col1
----
3318

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT - - 12 + + - MIN( - - 12 ) + - + COUNT( DISTINCT + - 19 ) + + 65 + 96 + 4 + + 13 * ( - + 47 ) + - 17 AS col0
----
-464

skipif mysql # not compatible
query I rowsort label-7508
SELECT - - 12 + + - MIN ( - - 12 ) + - + COUNT ( DISTINCT + - 19 ) + + 65 + 96 + 4 + + 13 * ( - + 47 ) + - 17 AS col0
----
-464

query I rowsort
SELECT ALL - - 19 - - 17 col0
----
36

query II rowsort
SELECT + 86 AS col0, COALESCE ( - 44, + 32 ) AS col0
----
86
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7511
SELECT ALL + - 6 DIV MAX( + 55 ) * COUNT( * ) AS col1, 94 DIV 92, + - ( - - 49 ) + + 26 AS col0
----
0
1
-23

skipif mysql # not compatible
query III rowsort label-7511
SELECT ALL + - 6 / MAX ( + 55 ) * COUNT ( * ) AS col1, 94 / 92, + - ( - - 49 ) + + 26 AS col0
----
0
1
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT - COUNT( * ) + - SUM( ALL - 20 ) - - COUNT( * ) * 26 + + 75 * - 16 AS col1
----
-1155

skipif mysql # not compatible
query I rowsort label-7512
SELECT - COUNT ( * ) + - SUM ( ALL - 20 ) - - COUNT ( * ) * 26 + + 75 * - 16 AS col1
----
-1155

query I rowsort
SELECT DISTINCT + - 81 * - + 47 AS col1
----
3807

onlyif mysql # DIV for integer division: 
query I rowsort label-7514
SELECT DISTINCT + 30 DIV - 17 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7514
SELECT DISTINCT + 30 / - 17 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7515
SELECT - 34 DIV + 8 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-7515
SELECT - 34 / + 8 AS col0
----
-4

query II rowsort
SELECT ALL - 23 * + 84, 94 AS col2
----
-1932
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT + 98 + - ( + NULLIF ( + COALESCE ( - + 78, - 27 * ( COUNT( * ) ) ), - + COUNT( * ) ) ) * + - COALESCE ( + 96, - 85 * - - 30, 65 * - 62 + + 93 ) * - - COALESCE ( 36, - ( + 84 ), - 2 * - ( - 50 ) + - 0, 65 )
----
-269470

skipif mysql # not compatible
query I rowsort label-7517
SELECT + 98 + - ( + NULLIF ( + COALESCE ( - + 78, - 27 * ( COUNT ( * ) ) ), - + COUNT ( * ) ) ) * + - COALESCE ( + 96, - 85 * - - 30, 65 * - 62 + + 93 ) * - - COALESCE ( 36, - ( + 84 ), - 2 * - ( - 50 ) + - 0, 65 )
----
-269470

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT DISTINCT + NULLIF ( + 33, 19 ) * - 43 * - MAX( DISTINCT + + 88 )
----
124872

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT + NULLIF ( + 33, 19 ) * - 43 * - MAX ( DISTINCT + + 88 )
----
124872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7519
SELECT ALL + ( 67 ) + 87 * - CAST( NULL AS SIGNED ) AS col0, 48 * MIN( DISTINCT 44 ) + + - 85
----
NULL
2027

skipif mysql # not compatible
query II rowsort label-7519
SELECT ALL + ( 67 ) + 87 * - CAST ( NULL AS INTEGER ) AS col0, 48 * MIN ( DISTINCT 44 ) + + - 85
----
NULL
2027

query I rowsort
SELECT ALL 56 + - 79 + + 3 + - + 96 + + + 65 col1
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7521
SELECT - COUNT( * ) * 55 * - + COALESCE ( 16, - 20 * 49 * + CASE 28 WHEN - + 15 THEN - 72 ELSE NULL END + - + CAST( - 27 AS SIGNED ) ) AS col2
----
880

skipif mysql # not compatible
query I rowsort label-7521
SELECT - COUNT ( * ) * 55 * - + COALESCE ( 16, - 20 * 49 * + CASE 28 WHEN - + 15 THEN - 72 ELSE NULL END + - + CAST ( - 27 AS INTEGER ) ) AS col2
----
880

query I rowsort
SELECT ALL - 39 * - 42 + 44 AS col1
----
1682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7523
SELECT - 26 + - 72 * + CASE + 42 WHEN COUNT( 68 ) THEN - 85 + 56 * 92 * - 4 - 34 END + NULLIF ( + - 4, + 70 ) * - CAST( COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7523
SELECT - 26 + - 72 * + CASE + 42 WHEN COUNT ( 68 ) THEN - 85 + 56 * 92 * - 4 - 34 END + NULLIF ( + - 4, + 70 ) * - CAST ( COUNT ( * ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7524
SELECT - COUNT( * ) DIV 91, - COUNT( * ) * COUNT( * ) col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-7524
SELECT - COUNT ( * ) / 91, - COUNT ( * ) * COUNT ( * ) col0
----
0
-1

query I rowsort
SELECT + ( - 56 ) * 18 + + ( + 31 ) AS col0
----
-977

query I rowsort
SELECT ALL 66 * + 62 + + 57
----
4149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7527
SELECT ALL + CAST( + 6 AS SIGNED ) * - + MIN( DISTINCT 83 )
----
-498

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL + CAST ( + 6 AS INTEGER ) * - + MIN ( DISTINCT 83 )
----
-498

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT DISTINCT + COUNT( * ) * - + 24 * 73 - 60 + - 83 + + MIN( + 13 ) - + 40 * - ( - ( ( + - 14 ) ) ) * ( - 79 ) AS col1
----
-46122

skipif mysql # not compatible
query I rowsort label-7528
SELECT DISTINCT + COUNT ( * ) * - + 24 * 73 - 60 + - 83 + + MIN ( + 13 ) - + 40 * - ( - ( ( + - 14 ) ) ) * ( - 79 ) AS col1
----
-46122

query II rowsort
SELECT DISTINCT 45 * - + 8 * - 27 * - 57 AS col1, - 84
----
-554040
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT - COUNT( * ) + - - 22 + + COUNT( * ) * - + 57 * + 55 col2
----
-3114

skipif mysql # not compatible
query I rowsort label-7530
SELECT - COUNT ( * ) + - - 22 + + COUNT ( * ) * - + 57 * + 55 col2
----
-3114

query I rowsort
SELECT ALL + - ( - 44 ) AS col0
----
44

query I rowsort
SELECT + + 58 - 79 AS col2
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7533
SELECT ALL + SUM( ALL 31 ) DIV + 77 * - 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL + SUM ( ALL 31 ) / + 77 * - 63 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7534
SELECT + + COALESCE ( + 60, - 29, COALESCE ( - 94, + 60 ) ) DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-7534
SELECT + + COALESCE ( + 60, - 29, COALESCE ( - 94, + 60 ) ) / - 87
----
0

query I rowsort
SELECT + - 42 * + + 72 * 92
----
-278208

query I rowsort
SELECT + - 72 * - - 32 AS col2
----
-2304

query I rowsort
SELECT + + ( 38 ) + + 35 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT DISTINCT + 28 * MIN( + 69 ) AS col2
----
1932

skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT + 28 * MIN ( + 69 ) AS col2
----
1932

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7539
SELECT + - COUNT( * ) + - - 94 DIV - 15
----
-7

skipif mysql # not compatible
query I rowsort label-7539
SELECT + - COUNT ( * ) + - - 94 / - 15
----
-7

query I rowsort
SELECT ALL + - 79 * + 67
----
-5293

query I rowsort
SELECT ALL 75 * + 37 + - - 18 AS col2
----
2793

query II rowsort
SELECT + + 95 + - - 66 AS col2, 10
----
161
10

query I rowsort
SELECT + - COALESCE ( + 81, + 64 * 0 ) + + 17 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT - ( + MIN( ALL 73 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-7544
SELECT - ( + MIN ( ALL 73 ) )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT DISTINCT + ( - COALESCE ( - 11, - - COUNT( * ) + - - 66, - 23 ) )
----
11

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT + ( - COALESCE ( - 11, - - COUNT ( * ) + - - 66, - 23 ) )
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7546
SELECT + + COUNT( * ) + 70 + - 44 DIV + - 29 * - COUNT( + ( 71 ) ) DIV - COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-7546
SELECT + + COUNT ( * ) + 70 + - 44 / + - 29 * - COUNT ( + ( 71 ) ) / - COUNT ( * ) AS col0
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7547
SELECT - - COUNT( * ) * - - COUNT( * ) + - ( + + CASE 32 WHEN + - 2 + COUNT( * ) THEN - 33 * + + COUNT( * ) + 81 + + + 4 ELSE - + ( + + 81 ) END ) DIV - 33 * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7547
SELECT - - COUNT ( * ) * - - COUNT ( * ) + - ( + + CASE 32 WHEN + - 2 + COUNT ( * ) THEN - 33 * + + COUNT ( * ) + 81 + + + 4 ELSE - + ( + + 81 ) END ) / - 33 * + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT - - CASE 65 WHEN + 10 + - CASE 38 WHEN + - 6 THEN + AVG ( 2 ) WHEN NULLIF ( + - 50, + + 84 / + 72 * + 57 - - 83 + + 72 + 18 ) THEN NULL ELSE + 75 END THEN - 78 WHEN - - 92 * + 74 - - 89 / - CASE 48 * 37 WHEN - 26 THEN 50 END THEN COUNT( * ) ELSE - 70 END + - ( 21 )
----
-91

skipif mysql # not compatible
query I rowsort label-7548
SELECT - - CASE 65 WHEN + 10 + - CASE 38 WHEN + - 6 THEN + AVG ( 2 ) WHEN NULLIF ( + - 50, + + 84 / + 72 * + 57 - - 83 + + 72 + 18 ) THEN NULL ELSE + 75 END THEN - 78 WHEN - - 92 * + 74 - - 89 / - CASE 48 * 37 WHEN - 26 THEN 50 END THEN COUNT ( * ) ELSE - 70 END + - ( 21 )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7549
SELECT DISTINCT CASE + + CAST( + + 20 AS SIGNED ) WHEN 60 THEN - ( - 38 ) END + + - 90 / - ( + 49 ) * + + COUNT( * ) + + 81 + - 93 * - COUNT( * ) + - + COUNT( * ) + - COUNT( * ) + + 43 * - 97 + - + 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT CASE + + CAST ( + + 20 AS INTEGER ) WHEN 60 THEN - ( - 38 ) END + + - 90 / - ( + 49 ) * + + COUNT ( * ) + + 81 + - 93 * - COUNT ( * ) + - + COUNT ( * ) + - COUNT ( * ) + + 43 * - 97 + - + 95 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7550
SELECT ALL - CAST( + + 23 AS SIGNED ) + - + 71 + - 84 AS col1
----
-178

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL - CAST ( + + 23 AS INTEGER ) + - + 71 + - 84 AS col1
----
-178

query I rowsort
SELECT + 86 + 75 AS col2
----
161

query I rowsort
SELECT ALL 92 + 5 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT ALL SUM( ALL 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7553
SELECT ALL SUM ( ALL 24 ) AS col0
----
24

query I rowsort
SELECT - 62 + - 5 AS col0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7555
SELECT ALL + 92 + + 97 - - 5 * - 58 - + 49 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL + 92 + + 97 - - 5 * - 58 - + 49 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT ALL - MIN( 58 ) + 8 + 42 - + MAX( + 39 ) * - 26 + 76
----
1082

skipif mysql # not compatible
query I rowsort label-7556
SELECT ALL - MIN ( 58 ) + 8 + 42 - + MAX ( + 39 ) * - 26 + 76
----
1082

query I rowsort
SELECT + 50 + - 59 col1
----
-9

query I rowsort
SELECT - 56 * + - 36 col2
----
2016

query I rowsort
SELECT ALL ( + 13 ) col2
----
13

query I rowsort
SELECT - 3 + - ( 45 )
----
-48

query I rowsort
SELECT - 20 * - + ( 19 )
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT ALL + COUNT( ( 54 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL + COUNT ( ( 54 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT DISTINCT - 35 / CASE + CASE - 87 WHEN - 25 THEN + 27 * - - 8 * - COUNT( * ) END WHEN + 35 THEN + - 94 END - - + 78 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7563
SELECT DISTINCT - 35 / CASE + CASE - 87 WHEN - 25 THEN + 27 * - - 8 * - COUNT ( * ) END WHEN + 35 THEN + - 94 END - - + 78 + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + ( + 21 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT ALL + 75 * - - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL + 75 * - - COUNT ( * )
----
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7566
SELECT + 24 DIV + 23 + 83 AS col1, 98 * CAST( NULL AS SIGNED )
----
84
NULL

skipif mysql # not compatible
query II rowsort label-7566
SELECT + 24 / + 23 + 83 AS col1, 98 * CAST ( NULL AS INTEGER )
----
84
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7567
SELECT ALL + 42 AS col1, ( - MAX( ALL + 54 ) ) AS col2
----
42
-54

skipif mysql # not compatible
query II rowsort label-7567
SELECT ALL + 42 AS col1, ( - MAX ( ALL + 54 ) ) AS col2
----
42
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7568
SELECT - CAST( 15 AS SIGNED ) * + - 3
----
45

skipif mysql # not compatible
query I rowsort label-7568
SELECT - CAST ( 15 AS INTEGER ) * + - 3
----
45

query I rowsort
SELECT DISTINCT + ( - - 40 )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7570
SELECT ALL - CAST( - 95 AS SIGNED ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL - CAST ( - 95 AS INTEGER ) AS col2
----
95

query I rowsort
SELECT + 26 * - 3 AS col0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7572
SELECT - - MIN( - - COALESCE ( + 6, 15 ) ) * 15 * - + COUNT( DISTINCT - 16 ) + - 3 + - 54 + 46 AS col0, CASE ( COUNT( * ) ) WHEN + CAST( - + 25 AS DECIMAL ) / + COUNT( * ) THEN - + COUNT( * ) + - 55 WHEN - 0 THEN NULL ELSE NULL END
----
-101
NULL

skipif mysql # not compatible
query II rowsort label-7572
SELECT - - MIN ( - - COALESCE ( + 6, 15 ) ) * 15 * - + COUNT ( DISTINCT - 16 ) + - 3 + - 54 + 46 AS col0, CASE ( COUNT ( * ) ) WHEN + CAST ( - + 25 AS REAL ) / + COUNT ( * ) THEN - + COUNT ( * ) + - 55 WHEN - 0 THEN NULL ELSE NULL END
----
-101
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT DISTINCT - - 65 * + 45 - - COUNT( DISTINCT + + 37 ) AS col0
----
2926

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT - - 65 * + 45 - - COUNT ( DISTINCT + + 37 ) AS col0
----
2926

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT DISTINCT - - SUM( + 18 ) col0
----
18

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT - - SUM ( + 18 ) col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT ALL 92 * - - 38 * - 4 * - COUNT( * )
----
13984

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL 92 * - - 38 * - 4 * - COUNT ( * )
----
13984

query I rowsort
SELECT DISTINCT - - 73 * + 62
----
4526

query I rowsort
SELECT 99 * + - 33 AS col1
----
-3267

query I rowsort
SELECT ALL - NULLIF ( + 13, 79 + 0 * 44 ) + + 86
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT COUNT( * ) - - - 85 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-7579
SELECT COUNT ( * ) - - - 85 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT - COUNT( * ) + + - 92 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-7580
SELECT - COUNT ( * ) + + - 92 AS col0
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-7581
SELECT DISTINCT - 47 DIV - + 48
----
0

skipif mysql # not compatible
query I rowsort label-7581
SELECT DISTINCT - 47 / - + 48
----
0

query I rowsort
SELECT ALL 8 + + 75 col1
----
83

query I rowsort
SELECT ( - 77 ) - 54 + + ( - 0 ) AS col1
----
-131

query I rowsort
SELECT 37 * - 55
----
-2035

query I rowsort
SELECT DISTINCT 4 + + 89 - 9 AS col1
----
84

query I rowsort
SELECT 27 * - 81 * + 0
----
0

query I rowsort
SELECT 63 + + 11
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT DISTINCT 38 + - COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT 38 + - COUNT ( * ) AS col2
----
37

query I rowsort
SELECT 72 + - 97 AS col2
----
-25

query I rowsort
SELECT 53 * + 5 AS col1
----
265

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT ALL 3 * + + MAX( 83 ) AS col2
----
249

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL 3 * + + MAX ( 83 ) AS col2
----
249

query I rowsort
SELECT DISTINCT - 16 - + 68
----
-84

query II rowsort
SELECT ALL 79, 87 col0
----
79
87

query II rowsort
SELECT DISTINCT 81, + 76 AS col2
----
81
76

query I rowsort
SELECT ALL - 98 - + 34
----
-132

query I rowsort
SELECT 78 * + 75 AS col2
----
5850

query I rowsort
SELECT ALL - 86 * + 17 AS col1
----
-1462

onlyif mysql # DIV for integer division: 
query I rowsort label-7598
SELECT - COALESCE ( 34, + 93, + + 96 DIV 7 DIV - + 96 ) DIV + 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7598
SELECT - COALESCE ( 34, + 93, + + 96 / 7 / - + 96 ) / + 68 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT ( - MIN( + 71 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-7599
SELECT ( - MIN ( + 71 ) )
----
-71

query II rowsort
SELECT ALL - + 7, - 65 * + 52 AS col1
----
-7
-3380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7601
SELECT - 51 - + CAST( + + 59 AS SIGNED ) col2
----
-110

skipif mysql # not compatible
query I rowsort label-7601
SELECT - 51 - + CAST ( + + 59 AS INTEGER ) col2
----
-110

query II rowsort
SELECT ALL - + 90, + 34 + - + 18 AS col0
----
-90
16

query I rowsort
SELECT + 60 * + ( 85 )
----
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT DISTINCT - COUNT( * ) + 24 * + 48 AS col1
----
1151

skipif mysql # not compatible
query I rowsort label-7604
SELECT DISTINCT - COUNT ( * ) + 24 * + 48 AS col1
----
1151

query I rowsort
SELECT ALL - ( 38 ) col2
----
-38

query I rowsort
SELECT 13 * - + 46
----
-598

query I rowsort
SELECT ALL - 1 + - 44 - - - 34 + - ( 97 )
----
-176

query I rowsort
SELECT + 17 + - + 92 AS col0
----
-75

query II rowsort
SELECT - 26 * + - 94 AS col0, + 72 + 28 col1
----
2444
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7610
SELECT - CAST( NULL AS SIGNED ) - - CASE - 14 WHEN 80 THEN - - 24 * 15 * - 57 + + 6 + + 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7610
SELECT - CAST ( NULL AS INTEGER ) - - CASE - 14 WHEN 80 THEN - - 24 * 15 * - 57 + + 6 + + 4 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7611
SELECT 25, 58 DIV + 5 AS col1
----
25
11

skipif mysql # not compatible
query II rowsort label-7611
SELECT 25, 58 / + 5 AS col1
----
25
11

query I rowsort
SELECT 36 - 66 AS col1
----
-30

query I rowsort
SELECT ALL + 60 + 38
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7614
SELECT + + COUNT( * ) AS col2, + CAST( 76 AS SIGNED ) AS col1
----
1
76

skipif mysql # not compatible
query II rowsort label-7614
SELECT + + COUNT ( * ) AS col2, + CAST ( 76 AS INTEGER ) AS col1
----
1
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7615
SELECT ALL + 68 * - ( CAST( NULL AS SIGNED ) ) + + 27 AS col1, 1 * + + 78 * + 55 AS col0
----
NULL
4290

skipif mysql # not compatible
query II rowsort label-7615
SELECT ALL + 68 * - ( CAST ( NULL AS INTEGER ) ) + + 27 AS col1, 1 * + + 78 * + 55 AS col0
----
NULL
4290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7616
SELECT 18 + - COALESCE ( - 61, - + 78 + - 0 + + CASE CAST( NULL AS SIGNED ) WHEN + COUNT( * ) * - + 43 * - 35 + - 17 THEN + 61 * 95 DIV + 41 ELSE - 68 END DIV + - NULLIF ( + 6, + + 18 ) * + - COUNT( * ), 41 ) * MAX( + - 79 )
----
-4801

skipif mysql # not compatible
query I rowsort label-7616
SELECT 18 + - COALESCE ( - 61, - + 78 + - 0 + + CASE CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) * - + 43 * - 35 + - 17 THEN + 61 * 95 / + 41 ELSE - 68 END / + - NULLIF ( + 6, + + 18 ) * + - COUNT ( * ), 41 ) * MAX ( + - 79 )
----
-4801

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT COUNT( * ) * + - 39
----
-39

skipif mysql # not compatible
query I rowsort label-7617
SELECT COUNT ( * ) * + - 39
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-7618
SELECT ALL 91 DIV 39 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL 91 / 39 AS col1
----
2

query II rowsort
SELECT 62 + - - 77, 37 + - 11 AS col2
----
139
26

query I rowsort
SELECT - 37 + - ( 45 ) + - 19 AS col2
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT + COUNT( * ) - + CASE - 57 WHEN + 60 / - 57 THEN NULL WHEN - 94 * 20 THEN 6 * + - 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7621
SELECT + COUNT ( * ) - + CASE - 57 WHEN + 60 / - 57 THEN NULL WHEN - 94 * 20 THEN 6 * + - 39 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7622
SELECT DISTINCT 49 * - 23, NULLIF ( + COUNT( ALL - ( + NULLIF ( + + 13, 32 ) ) ), 89 ) AS col0
----
-1127
1

skipif mysql # not compatible
query II rowsort label-7622
SELECT DISTINCT 49 * - 23, NULLIF ( + COUNT ( ALL - ( + NULLIF ( + + 13, 32 ) ) ), 89 ) AS col0
----
-1127
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7623
SELECT + CAST( NULL AS SIGNED ) + 28 * - - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-7623
SELECT + CAST ( NULL AS INTEGER ) + 28 * - - 78
----
NULL

query I rowsort
SELECT ALL 84 * + 28 col1
----
2352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7625
SELECT + SUM( CAST( NULL AS SIGNED ) ) * 77 / + MAX( DISTINCT - 62 ) AS col2, 18 AS col0
----
NULL
18

skipif mysql # not compatible
query II rowsort label-7625
SELECT + SUM ( CAST ( NULL AS INTEGER ) ) * 77 / + MAX ( DISTINCT - 62 ) AS col2, 18 AS col0
----
NULL
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT + 96 + - COUNT( + 92 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-7626
SELECT + 96 + - COUNT ( + 92 ) AS col2
----
95

query I rowsort
SELECT ALL + COALESCE ( - - 26, 45 ) AS col1
----
26

query I rowsort
SELECT ALL 96 * + - 21 AS col2
----
-2016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7629
SELECT ALL + + NULLIF ( 52, + 8 / COUNT( * ) * - 90 + + 92 * 47 + - + COUNT( * ) * 65 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL + + NULLIF ( 52, + 8 / COUNT ( * ) * - 90 + + 92 * 47 + - + COUNT ( * ) * 65 ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ALL - - ( - COUNT( * ) ) * - + 43 + - 67 + 28 + 72 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL - - ( - COUNT ( * ) ) * - + 43 + - 67 + 28 + 72 AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7631
SELECT ALL - 68 * + + 64 + CAST( NULL AS SIGNED ) * AVG ( DISTINCT + + ( + 55 ) ) + + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL - 68 * + + 64 + CAST ( NULL AS INTEGER ) * AVG ( DISTINCT + + ( + 55 ) ) + + 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7632
SELECT COALESCE ( - 63, MIN( - - 32 ) DIV SUM( + 18 ) * - COUNT( * ) + + 7 ) * + 35 + + 28 AS col1, - ( + 62 ) + - - 82 AS col2
----
-2177
20

skipif mysql # not compatible
query II rowsort label-7632
SELECT COALESCE ( - 63, MIN ( - - 32 ) / SUM ( + 18 ) * - COUNT ( * ) + + 7 ) * + 35 + + 28 AS col1, - ( + 62 ) + - - 82 AS col2
----
-2177
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT + MIN( + - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-7633
SELECT + MIN ( + - 27 )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7634
SELECT ALL + + ( + 74 ) * - CAST( NULL AS SIGNED ) + - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL + + ( + 74 ) * - CAST ( NULL AS INTEGER ) + - 85 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7635
SELECT SUM( + 93 ), 51 AS col2
----
93
51

skipif mysql # not compatible
query II rowsort label-7635
SELECT SUM ( + 93 ), 51 AS col2
----
93
51

query I rowsort
SELECT + COALESCE ( - 80, 75 )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7637
SELECT ALL + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT - + 34 * + 88
----
-2992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7639
SELECT ALL - 38 * 9 - + 15 + + + 20 + + 30 - + ( CAST( + 7 AS SIGNED ) ) * - - 86 * + 36 + ( 54 ) + - - 68 AS col2
----
-21857

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL - 38 * 9 - + 15 + + + 20 + + 30 - + ( CAST ( + 7 AS INTEGER ) ) * - - 86 * + 36 + ( 54 ) + - - 68 AS col2
----
-21857

query I rowsort
SELECT + 10 - - 19 AS col0
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-7641
SELECT COUNT( * ) AS col2, 58
----
1
58

skipif mysql # not compatible
query II rowsort label-7641
SELECT COUNT ( * ) AS col2, 58
----
1
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT - ( + 27 ) + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-7642
SELECT - ( + 27 ) + COUNT ( * )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT - SUM( 36 ) * ( + + ( 29 ) )
----
-1044

skipif mysql # not compatible
query I rowsort label-7643
SELECT - SUM ( 36 ) * ( + + ( 29 ) )
----
-1044

query I rowsort
SELECT DISTINCT NULLIF ( - 25, 40 + 46 + 0 + - + 68 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT ALL CASE COUNT( * ) WHEN - - 93 + + + 33 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL CASE COUNT ( * ) WHEN - - 93 + + + 33 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7646
SELECT DISTINCT SUM( + NULLIF ( + 79, - ( COALESCE ( + 6, 1 ) ) + 67 ) ) AS col1, ( - COUNT( * ) )
----
79
-1

skipif mysql # not compatible
query II rowsort label-7646
SELECT DISTINCT SUM ( + NULLIF ( + 79, - ( COALESCE ( + 6, 1 ) ) + 67 ) ) AS col1, ( - COUNT ( * ) )
----
79
-1

query I rowsort
SELECT ALL + 16 - - + 58 AS col2
----
74

query I rowsort
SELECT DISTINCT COALESCE ( - 93, + 7 * ( - + 24 ), - 37 * - 90 + - - 1 ) AS col2
----
-93

query I rowsort
SELECT - 32 - + - 56
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7650
SELECT ALL + 16 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL + 16 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7651
SELECT - COUNT( * ) DIV - MIN( DISTINCT - CASE - 93 WHEN - 48 THEN NULL ELSE - - 36 + 38 END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7651
SELECT - COUNT ( * ) / - MIN ( DISTINCT - CASE - 93 WHEN - 48 THEN NULL ELSE - - 36 + 38 END ) AS col2
----
0

query I rowsort
SELECT - ( ( 70 ) ) * + - 63 + + - NULLIF ( - 17, - 94 )
----
4427

query I rowsort
SELECT DISTINCT + 98 * - - 87 col0
----
8526

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT + COUNT( * ) + 71 * + 66 + - 57 AS col2
----
4630

skipif mysql # not compatible
query I rowsort label-7654
SELECT + COUNT ( * ) + 71 * + 66 + - 57 AS col2
----
4630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7655
SELECT - ( + CAST( NULL AS SIGNED ) ) * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-7655
SELECT - ( + CAST ( NULL AS INTEGER ) ) * - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT + 96 * 39 * - COALESCE ( + - 0, - COUNT( * ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-7656
SELECT + 96 * 39 * - COALESCE ( + - 0, - COUNT ( * ) ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT - SUM( - + 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-7657
SELECT - SUM ( - + 10 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT - COUNT( ALL 18 ) * - + COUNT( * ) + - 85 + 21
----
-63

skipif mysql # not compatible
query I rowsort label-7658
SELECT - COUNT ( ALL 18 ) * - + COUNT ( * ) + - 85 + 21
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7659
SELECT DISTINCT COALESCE ( - - COUNT( * ), - 4 * - - 66 + - MAX( ALL - + 31 ) + + 63 * 61 DIV ( 19 ) + + 33 * - ( 30 ) * - CASE + 62 WHEN - 55 DIV - + 93 + - + 2 THEN + - 5 WHEN + ( - MAX( DISTINCT - ( + 22 ) ) ) THEN NULL END * - 31 + 67 ) DIV - 3 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7659
SELECT DISTINCT COALESCE ( - - COUNT ( * ), - 4 * - - 66 + - MAX ( ALL - + 31 ) + + 63 * 61 / ( 19 ) + + 33 * - ( 30 ) * - CASE + 62 WHEN - 55 / - + 93 + - + 2 THEN + - 5 WHEN + ( - MAX ( DISTINCT - ( + 22 ) ) ) THEN NULL END * - 31 + 67 ) / - 3 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7660
SELECT 49 AS col0, + COUNT( ALL - - 29 ) col0
----
49
1

skipif mysql # not compatible
query II rowsort label-7660
SELECT 49 AS col0, + COUNT ( ALL - - 29 ) col0
----
49
1

query I rowsort
SELECT ALL ( - - 20 )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7662
SELECT DISTINCT - CAST( COALESCE ( - 67, + 24, + 62, + 21 + 35 ) AS SIGNED ) + - 71 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7662
SELECT DISTINCT - CAST ( COALESCE ( - 67, + 24, + 62, + 21 + 35 ) AS INTEGER ) + - 71 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT ALL + - 28 + + - MIN( 2 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL + - 28 + + - MIN ( 2 ) AS col1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7664
SELECT - 86 + - SUM( 96 ) AS col1, 98 DIV + 60
----
-182
1

skipif mysql # not compatible
query II rowsort label-7664
SELECT - 86 + - SUM ( 96 ) AS col1, 98 / + 60
----
-182
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT + COUNT( ALL - 31 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7665
SELECT + COUNT ( ALL - 31 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7666
SELECT 4 DIV - 51 + 26 * + 14 * 65 AS col2
----
23660

skipif mysql # not compatible
query I rowsort label-7666
SELECT 4 / - 51 + 26 * + 14 * 65 AS col2
----
23660

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT MIN( DISTINCT - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-7667
SELECT MIN ( DISTINCT - 27 )
----
-27

query I rowsort
SELECT + + ( - - 33 )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-7669
SELECT DISTINCT + 27 DIV - 79 - - 53 col0
----
53

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT + 27 / - 79 - - 53 col0
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7670
SELECT ALL - MIN( - 97 ) DIV - 12 - + 34
----
-42

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL - MIN ( - 97 ) / - 12 - + 34
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT + COUNT( * ) * + 29 * - 54 * + 29
----
-45414

skipif mysql # not compatible
query I rowsort label-7671
SELECT + COUNT ( * ) * + 29 * - 54 * + 29
----
-45414

query I rowsort
SELECT + 71 * 52 AS col1
----
3692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7673
SELECT + COUNT( 99 ) + - 98 / + ( CAST( NULL AS SIGNED ) ) col0, + 47 col0
----
NULL
47

skipif mysql # not compatible
query II rowsort label-7673
SELECT + COUNT ( 99 ) + - 98 / + ( CAST ( NULL AS INTEGER ) ) col0, + 47 col0
----
NULL
47

query I rowsort
SELECT - ( + + NULLIF ( 1, + ( - 68 ) ) ) - + 37 * + 80 + - 9
----
-2970

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7675
SELECT + COUNT( * ) * + - 38 AS col2, + 7 DIV + - 43
----
-38
0

skipif mysql # not compatible
query II rowsort label-7675
SELECT + COUNT ( * ) * + - 38 AS col2, + 7 / + - 43
----
-38
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7676
SELECT + CAST( + - 80 AS SIGNED ), ( - MAX( ALL 51 ) ) AS col1
----
-80
-51

skipif mysql # not compatible
query II rowsort label-7676
SELECT + CAST ( + - 80 AS INTEGER ), ( - MAX ( ALL 51 ) ) AS col1
----
-80
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7677
SELECT + 56 DIV 7
----
8

skipif mysql # not compatible
query I rowsort label-7677
SELECT + 56 / 7
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-7678
SELECT DISTINCT 80 * + 83 * - ( 55 ) AS col1, 5 * - COUNT( * ) + 9
----
-365200
4

skipif mysql # not compatible
query II rowsort label-7678
SELECT DISTINCT 80 * + 83 * - ( 55 ) AS col1, 5 * - COUNT ( * ) + 9
----
-365200
4

query I rowsort
SELECT DISTINCT 73 * 4 * + 71
----
20732

query I rowsort
SELECT 52 + - 29 col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7681
SELECT 71 + - COUNT( - + CAST( NULL AS DECIMAL ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-7681
SELECT 71 + - COUNT ( - + CAST ( NULL AS REAL ) ) AS col1
----
71

query I rowsort
SELECT ALL 72 + + 47 AS col0
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7683
SELECT 87 + + + 35 * + + 33 * + + CAST( + 73 AS SIGNED )
----
84402

skipif mysql # not compatible
query I rowsort label-7683
SELECT 87 + + + 35 * + + 33 * + + CAST ( + 73 AS INTEGER )
----
84402

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT ALL - COUNT( * ) + - 56 + + 99
----
42

skipif mysql # not compatible
query I rowsort label-7684
SELECT ALL - COUNT ( * ) + - 56 + + 99
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT 97 + COUNT( * ) * + + 9 + + - 96
----
10

skipif mysql # not compatible
query I rowsort label-7685
SELECT 97 + COUNT ( * ) * + + 9 + + - 96
----
10

query I rowsort
SELECT 73 + - + 73 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7687
SELECT 60 * + COUNT( * ) AS col2, MIN( DISTINCT - + 90 ) * + CAST( NULL AS DECIMAL ) + 37
----
60
NULL

skipif mysql # not compatible
query II rowsort label-7687
SELECT 60 * + COUNT ( * ) AS col2, MIN ( DISTINCT - + 90 ) * + CAST ( NULL AS REAL ) + 37
----
60
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7688
SELECT + 70 + + 60 DIV + 60 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-7688
SELECT + 70 + + 60 / + 60 AS col0
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7689
SELECT 50 + - - 69 - + CASE COALESCE ( - - 4, + - 79 ) WHEN - ( + - MAX( - + 79 ) ) THEN NULL WHEN + 33 + - + 93 + + + 28 THEN - - 43 + 89 + MAX( + - 50 ) + + CAST( NULL AS SIGNED ) * - - 77 * 51 + + 53 * + + CAST( NULL AS SIGNED ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7689
SELECT 50 + - - 69 - + CASE COALESCE ( - - 4, + - 79 ) WHEN - ( + - MAX ( - + 79 ) ) THEN NULL WHEN + 33 + - + 93 + + + 28 THEN - - 43 + 89 + MAX ( + - 50 ) + + CAST ( NULL AS INTEGER ) * - - 77 * 51 + + 53 * + + CAST ( NULL AS INTEGER ) ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7690
SELECT COUNT( - 61 ) DIV - + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7690
SELECT COUNT ( - 61 ) / - + 72 AS col2
----
0

query I rowsort
SELECT 42 + 58 AS col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT ALL + COUNT( * ) + - - 51 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL + COUNT ( * ) + - - 51 AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7693
SELECT ALL - + CASE - 97 WHEN - - ( - 82 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN + COUNT( * ) ELSE 96 END
----
-96

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL - + CASE - 97 WHEN - - ( - 82 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) ELSE 96 END
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7694
SELECT ALL 59 DIV ( ( 48 ) ) * 9 - 60 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL 59 / ( ( 48 ) ) * 9 - 60 AS col0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7695
SELECT - 17 DIV + + 91 + - 22 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-7695
SELECT - 17 / + + 91 + - 22 AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7696
SELECT ALL + 61 - + - COALESCE ( + COUNT( - 48 ), + 96 DIV - + 10 + 72 + COUNT( ALL + 82 ), - CAST( NULL AS SIGNED ) - - 45 )
----
62

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL + 61 - + - COALESCE ( + COUNT ( - 48 ), + 96 / - + 10 + 72 + COUNT ( ALL + 82 ), - CAST ( NULL AS INTEGER ) - - 45 )
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-7697
SELECT + - MIN( DISTINCT + 90 ) AS col0, + 13 AS col1
----
-90
13

skipif mysql # not compatible
query II rowsort label-7697
SELECT + - MIN ( DISTINCT + 90 ) AS col0, + 13 AS col1
----
-90
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT COUNT( * ) * 61 * 74 AS col1
----
4514

skipif mysql # not compatible
query I rowsort label-7698
SELECT COUNT ( * ) * 61 * 74 AS col1
----
4514

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7699
SELECT CASE - - 49 WHEN 36 THEN - + 1 + CAST( NULL AS SIGNED ) * - 0 + - 41 + - + 92 WHEN - - 6 THEN 12 WHEN 9 THEN 33 - + - 76 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7699
SELECT CASE - - 49 WHEN 36 THEN - + 1 + CAST ( NULL AS INTEGER ) * - 0 + - 41 + - + 92 WHEN - - 6 THEN 12 WHEN 9 THEN 33 - + - 76 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7700
SELECT CAST( NULL AS SIGNED ) * 14 + - AVG ( DISTINCT + 83 ), 45 - - CAST( + 61 AS SIGNED ) * + ( - 45 ) * + + 63 * + 41 col2
----
NULL
-7090290

skipif mysql # not compatible
query II rowsort label-7700
SELECT CAST ( NULL AS INTEGER ) * 14 + - AVG ( DISTINCT + 83 ), 45 - - CAST ( + 61 AS INTEGER ) * + ( - 45 ) * + + 63 * + 41 col2
----
NULL
-7090290

query II rowsort
SELECT ALL 75 * 83 * - 44 AS col1, + 19 + - - 31 * 98
----
-273900
3057

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7702
SELECT ALL + CAST( NULL AS SIGNED ) * - 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL + CAST ( NULL AS INTEGER ) * - 96 AS col1
----
NULL

query II rowsort
SELECT ALL - 27 AS col1, - 96
----
-27
-96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7704
SELECT + 61 AS col2, CAST( - 62 AS SIGNED ) DIV 9 + 57
----
61
51

skipif mysql # not compatible
query II rowsort label-7704
SELECT + 61 AS col2, CAST ( - 62 AS INTEGER ) / 9 + 57
----
61
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT ALL 32 + + + 2 * - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-7705
SELECT ALL 32 + + + 2 * - COUNT ( * )
----
30

query I rowsort
SELECT 62 * 64 AS col1
----
3968

query I rowsort
SELECT 7 + + 73 * - - 5 AS col1
----
372

query I rowsort
SELECT ALL 73 + + - 48
----
25

query I rowsort
SELECT DISTINCT 31 + + 0
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-7710
SELECT ALL + MIN( + - 88 ) + - - 31, 82 + 71 + 83 AS col0
----
-57
236

skipif mysql # not compatible
query II rowsort label-7710
SELECT ALL + MIN ( + - 88 ) + - - 31, 82 + 71 + 83 AS col0
----
-57
236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7711
SELECT CAST( + - 5 AS SIGNED ) * 74 - + - 95 AS col1
----
-275

skipif mysql # not compatible
query I rowsort label-7711
SELECT CAST ( + - 5 AS INTEGER ) * 74 - + - 95 AS col1
----
-275

query I rowsort
SELECT ALL 66 + 81
----
147

query I rowsort
SELECT ALL 25 * - + 76 col1
----
-1900

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT MIN( - 92 ) - + 68
----
-160

skipif mysql # not compatible
query I rowsort label-7714
SELECT MIN ( - 92 ) - + 68
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT ALL - 17 * + + SUM( DISTINCT + 74 )
----
-1258

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL - 17 * + + SUM ( DISTINCT + 74 )
----
-1258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7716
SELECT CASE - ( - 83 ) WHEN - 41 / CASE 51 WHEN - 43 THEN 44 * + - COUNT( * ) ELSE NULL END + CAST( NULL AS SIGNED ) / 93 THEN - 1 ELSE NULL END * + + MAX( + - CAST( - + 60 AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7716
SELECT CASE - ( - 83 ) WHEN - 41 / CASE 51 WHEN - 43 THEN 44 * + - COUNT ( * ) ELSE NULL END + CAST ( NULL AS INTEGER ) / 93 THEN - 1 ELSE NULL END * + + MAX ( + - CAST ( - + 60 AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT DISTINCT + 84 + - - 28
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7718
SELECT COUNT( - CAST( NULL AS SIGNED ) ) * - 59 col1
----
0

skipif mysql # not compatible
query I rowsort label-7718
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) * - 59 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT DISTINCT - 34 * CASE + 18 WHEN + 40 THEN + 85 * + 49 ELSE - 22 * - 78 + + + COUNT( * ) END col1
----
-58378

skipif mysql # not compatible
query I rowsort label-7719
SELECT DISTINCT - 34 * CASE + 18 WHEN + 40 THEN + 85 * + 49 ELSE - 22 * - 78 + + + COUNT ( * ) END col1
----
-58378

onlyif mysql # DIV for integer division: 
query I rowsort label-7720
SELECT DISTINCT - NULLIF ( - NULLIF ( - 73, - 82 ), + + 95 ) - - 14 - ( + - 22 ) + - + 24 DIV 19 * + 92
----
-129

skipif mysql # not compatible
query I rowsort label-7720
SELECT DISTINCT - NULLIF ( - NULLIF ( - 73, - 82 ), + + 95 ) - - 14 - ( + - 22 ) + - + 24 / 19 * + 92
----
-129

query I rowsort
SELECT DISTINCT + + 23 - - 60 + - COALESCE ( - + 97, - - 34 ) * - + 65 + 35 AS col0
----
-6187

query I rowsort
SELECT ALL - - 94 * + + ( + 90 ) AS col2
----
8460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7723
SELECT 86 DIV COUNT( * ) - + 45 + - NULLIF ( + 73, + 76 + - + MIN( - + 59 ) ) + + 15 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-7723
SELECT 86 / COUNT ( * ) - + 45 + - NULLIF ( + 73, + 76 + - + MIN ( - + 59 ) ) + + 15 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT ALL - 80 * COUNT( ( + 84 ) ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL - 80 * COUNT ( ( + 84 ) ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT MIN( ALL + 85 ) + + COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-7725
SELECT MIN ( ALL + 85 ) + + COUNT ( * ) AS col1
----
86

query I rowsort
SELECT ALL - ( - 34 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT - COUNT( * ) + + 15 + - 94
----
-80

skipif mysql # not compatible
query I rowsort label-7727
SELECT - COUNT ( * ) + + 15 + - 94
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-7728
SELECT ALL - 84 DIV + - 40
----
2

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL - 84 / + - 40
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7729
SELECT 57 * + COUNT( + 78 ) + COALESCE ( COUNT( * ), - 83, + 38 - - 2 ) + - 62 * 95 * CAST( NULL AS DECIMAL ), 46 AS col2
----
NULL
46

skipif mysql # not compatible
query II rowsort label-7729
SELECT 57 * + COUNT ( + 78 ) + COALESCE ( COUNT ( * ), - 83, + 38 - - 2 ) + - 62 * 95 * CAST ( NULL AS REAL ), 46 AS col2
----
NULL
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT ALL 7 * - 94 + + + ( 13 ) + - ( ( - ( - 40 ) ) ) * - COUNT( * ) + + + 30 AS col2
----
-575

skipif mysql # not compatible
query I rowsort label-7730
SELECT ALL 7 * - 94 + + + ( 13 ) + - ( ( - ( - 40 ) ) ) * - COUNT ( * ) + + + 30 AS col2
----
-575

query I rowsort
SELECT - 38 * - - 10 AS col1
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT - MAX( DISTINCT + 76 ) + - ( - 51 ) col2
----
-25

skipif mysql # not compatible
query I rowsort label-7732
SELECT - MAX ( DISTINCT + 76 ) + - ( - 51 ) col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT + COUNT( - 97 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7733
SELECT + COUNT ( - 97 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7734
SELECT COUNT( * ) AS col0, 33 + 41 AS col2
----
1
74

skipif mysql # not compatible
query II rowsort label-7734
SELECT COUNT ( * ) AS col0, 33 + 41 AS col2
----
1
74

query I rowsort
SELECT DISTINCT 50 * + 48 + + - 25
----
2375

onlyif mysql # aggregate syntax: 
query II rowsort label-7736
SELECT COUNT( * ), 10 col0
----
1
10

skipif mysql # not compatible
query II rowsort label-7736
SELECT COUNT ( * ), 10 col0
----
1
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT ALL COUNT( * ) * - 51 + - 95
----
-146

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL COUNT ( * ) * - 51 + - 95
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT DISTINCT 20 * + 2 * - + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-7738
SELECT DISTINCT 20 * + 2 * - + COUNT ( * )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7739
SELECT + COUNT( DISTINCT - 64 ) AS col1, - 23 + - CASE - + COUNT( * ) WHEN - 84 * - CAST( NULL AS SIGNED ) * + 87 / + 78 + - + 32 THEN + 27 ELSE NULL END + 99 * - - 12 + - COUNT( * ) + + ( - 26 ) * 34
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7739
SELECT + COUNT ( DISTINCT - 64 ) AS col1, - 23 + - CASE - + COUNT ( * ) WHEN - 84 * - CAST ( NULL AS INTEGER ) * + 87 / + 78 + - + 32 THEN + 27 ELSE NULL END + 99 * - - 12 + - COUNT ( * ) + + ( - 26 ) * 34
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT DISTINCT + 40 + + + ( - 92 ) + + 46 * COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-7740
SELECT DISTINCT + 40 + + + ( - 92 ) + + 46 * COUNT ( * )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7741
SELECT ALL - 85 * + CAST( - 39 AS SIGNED )
----
3315

skipif mysql # not compatible
query I rowsort label-7741
SELECT ALL - 85 * + CAST ( - 39 AS INTEGER )
----
3315

query I rowsort
SELECT + 61 * 41 * - 37
----
-92537

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT + 20 + 99 + + 6 + + + 81 * + 43 * - + COUNT( * )
----
-3358

skipif mysql # not compatible
query I rowsort label-7743
SELECT + 20 + 99 + + 6 + + + 81 * + 43 * - + COUNT ( * )
----
-3358

onlyif mysql # aggregate syntax: 
query II rowsort label-7744
SELECT DISTINCT 31, + 8 * - 59 * + + SUM( + + 56 ) AS col1
----
31
-26432

skipif mysql # not compatible
query II rowsort label-7744
SELECT DISTINCT 31, + 8 * - 59 * + + SUM ( + + 56 ) AS col1
----
31
-26432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7745
SELECT - ( + 19 ) + - 47 * - + MIN( + COALESCE ( - 14, + 40 * - - 29 * - 7, + ( - CAST( NULL AS SIGNED ) ) ) ) + + - 38
----
-715

skipif mysql # not compatible
query I rowsort label-7745
SELECT - ( + 19 ) + - 47 * - + MIN ( + COALESCE ( - 14, + 40 * - - 29 * - 7, + ( - CAST ( NULL AS INTEGER ) ) ) ) + + - 38
----
-715

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7746
SELECT - NULLIF ( + 30, - ( 36 ) * + - 55 + - + SUM( - 17 ) ), 98 DIV 92 + - ( - - 14 ) col0
----
-30
-13

skipif mysql # not compatible
query II rowsort label-7746
SELECT - NULLIF ( + 30, - ( 36 ) * + - 55 + - + SUM ( - 17 ) ), 98 / 92 + - ( - - 14 ) col0
----
-30
-13

query I rowsort
SELECT + 31 - 2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT + CASE - 44 WHEN - 75 + - 6 THEN + COUNT( * ) + + - 94 ELSE - 73 + 12 * 79 END + + 90 AS col0
----
965

skipif mysql # not compatible
query I rowsort label-7748
SELECT + CASE - 44 WHEN - 75 + - 6 THEN + COUNT ( * ) + + - 94 ELSE - 73 + 12 * 79 END + + 90 AS col0
----
965

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT DISTINCT COUNT( * ) - + 74 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT COUNT ( * ) - + 74 AS col0
----
-73

query II rowsort
SELECT - - 82 AS col1, ( - ( + 68 ) ) AS col0
----
82
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT + + 0 + MIN( DISTINCT - + 20 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-7751
SELECT + + 0 + MIN ( DISTINCT - + 20 ) AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7752
SELECT + 93 / - ( - + MIN( + CAST( - 28 AS SIGNED ) ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7752
SELECT + 93 / - ( - + MIN ( + CAST ( - 28 AS INTEGER ) ) ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 25 + - ( + 22 )
----
-47

query I rowsort
SELECT ALL + 61 * + 95 AS col0
----
5795

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7755
SELECT 11, + 11, + 46 + 67 + - + ( 59 ) + 57 * - - CAST( NULL AS SIGNED ) * - 8 - - + 68 col0
----
11
11
NULL

skipif mysql # not compatible
query III rowsort label-7755
SELECT 11, + 11, + 46 + 67 + - + ( 59 ) + 57 * - - CAST ( NULL AS INTEGER ) * - 8 - - + 68 col0
----
11
11
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7756
SELECT - 24 * 40 DIV 52
----
-18

skipif mysql # not compatible
query I rowsort label-7756
SELECT - 24 * 40 / 52
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-7757
SELECT - ( + 84 ) + + 34 * - 70 * - - COUNT( * ) * + - 97 AS col0, + 52
----
230776
52

skipif mysql # not compatible
query II rowsort label-7757
SELECT - ( + 84 ) + + 34 * - 70 * - - COUNT ( * ) * + - 97 AS col0, + 52
----
230776
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT - + COUNT( * ) * + - 47 * 10 AS col2
----
470

skipif mysql # not compatible
query I rowsort label-7758
SELECT - + COUNT ( * ) * + - 47 * 10 AS col2
----
470

query I rowsort
SELECT - 51 + - + 99 + - 95 * - + 17 * + ( 96 ) AS col0
----
154890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7760
SELECT + - 73 * + CASE - - COUNT( * ) WHEN + 93 * - ( - 23 ) THEN - 26 * + + CASE + 84 WHEN 90 THEN NULL WHEN + 92 THEN + 19 END * CAST( NULL AS SIGNED ) + COUNT( * ) + 12 / - ( + 33 ) + + 97 * + 77 * + - COUNT( * ) - + + MIN( DISTINCT 44 ) - + ( - 62 ) * + 94 + + COUNT( * ) + + COUNT( * ) * CASE + 85 WHEN + COALESCE ( + 66, - MAX( - 22 ) ) * 17 THEN NULL ELSE 79 + + 23 * - 93 END - + 77 END / COUNT( * ) + 36 * - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT + - 73 * + CASE - - COUNT ( * ) WHEN + 93 * - ( - 23 ) THEN - 26 * + + CASE + 84 WHEN 90 THEN NULL WHEN + 92 THEN + 19 END * CAST ( NULL AS INTEGER ) + COUNT ( * ) + 12 / - ( + 33 ) + + 97 * + 77 * + - COUNT ( * ) - + + MIN ( DISTINCT 44 ) - + ( - 62 ) * + 94 + + COUNT ( * ) + + COUNT ( * ) * CASE + 85 WHEN + COALESCE ( + 66, - MAX ( - 22 ) ) * 17 THEN NULL ELSE 79 + + 23 * - 93 END - + 77 END / COUNT ( * ) + 36 * - 7 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7761
SELECT DISTINCT - 48, - CAST( NULL AS SIGNED ) + + + 47 * 0 AS col0
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-7761
SELECT DISTINCT - 48, - CAST ( NULL AS INTEGER ) + + + 47 * 0 AS col0
----
-48
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7762
SELECT ALL - COUNT( * ) * - 32 DIV - + 64 * - - 98 * + 21 + - 8
----
-8

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL - COUNT ( * ) * - 32 / - + 64 * - - 98 * + 21 + - 8
----
-8

query I rowsort
SELECT ALL + CASE + 97 WHEN 84 / + 59 * + 64 + + + 90 * + - 28 + + 0 THEN NULL ELSE - - ( - 54 ) END AS col0
----
-54

query I rowsort
SELECT DISTINCT - 96 * - 66
----
6336

onlyif mysql # DIV for integer division: 
query I rowsort label-7765
SELECT DISTINCT 98 DIV + ( - - NULLIF ( + 52, + - 88 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7765
SELECT DISTINCT 98 / + ( - - NULLIF ( + 52, + - 88 ) ) AS col0
----
1

query I rowsort
SELECT 53 * + 8 * - 68 - 45
----
-28877

query II rowsort
SELECT ( + 40 ) AS col1, + 85 AS col2
----
40
85

onlyif mysql # DIV for integer division: 
query II rowsort label-7768
SELECT ALL + COALESCE ( 50, + 20, 50 DIV - 68 ) col1, 81 AS col1
----
50
81

skipif mysql # not compatible
query II rowsort label-7768
SELECT ALL + COALESCE ( 50, + 20, 50 / - 68 ) col1, 81 AS col1
----
50
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7769
SELECT ALL CAST( - + 44 AS SIGNED ) * - + 56 + 65 AS col0
----
2529

skipif mysql # not compatible
query I rowsort label-7769
SELECT ALL CAST ( - + 44 AS INTEGER ) * - + 56 + 65 AS col0
----
2529

query I rowsort
SELECT ALL - 95 * + 93 * - 94 + 44
----
830534

query I rowsort
SELECT ALL + NULLIF ( - 30, + ( + 14 ) ) AS col2
----
-30

query II rowsort
SELECT - ( - 68 ) + + 12 AS col2, 37 AS col1
----
80
37

query I rowsort
SELECT COALESCE ( - 59, 23 ) AS col0
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7774
SELECT COALESCE ( - 20, 42 * - + 49 * 19 DIV 33 DIV 32 * - 77 + + COUNT( * ) + - 30 * 4 * - + 41 + - + 15, ( ( - 29 ) ) )
----
-20

skipif mysql # not compatible
query I rowsort label-7774
SELECT COALESCE ( - 20, 42 * - + 49 * 19 / 33 / 32 * - 77 + + COUNT ( * ) + - 30 * 4 * - + 41 + - + 15, ( ( - 29 ) ) )
----
-20

query I rowsort
SELECT COALESCE ( - 42, + + 49 ) AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7776
SELECT CAST( NULL AS SIGNED ) * 66 - - + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-7776
SELECT CAST ( NULL AS INTEGER ) * 66 - - + 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT + 90 * - COUNT( * ) col1
----
-90

skipif mysql # not compatible
query I rowsort label-7777
SELECT + 90 * - COUNT ( * ) col1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7778
SELECT + 7 + + 64 - CAST( NULL AS SIGNED ) * - 73 * - - ( + CAST( + 45 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7778
SELECT + 7 + + 64 - CAST ( NULL AS INTEGER ) * - 73 * - - ( + CAST ( + 45 AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7779
SELECT DISTINCT CASE + ( + + CAST( + 64 AS SIGNED ) ) WHEN + - 57 THEN NULL WHEN - + 34 / 87 THEN + 0 + - - 58 ELSE SUM( - 7 ) END * + - 89 * 39 AS col1
----
24297

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT CASE + ( + + CAST ( + 64 AS INTEGER ) ) WHEN + - 57 THEN NULL WHEN - + 34 / 87 THEN + 0 + - - 58 ELSE SUM ( - 7 ) END * + - 89 * 39 AS col1
----
24297

onlyif mysql # aggregate syntax: 
query II rowsort label-7780
SELECT - - COUNT( * ) * + 97 AS col1, + 30 * 99 * + 32 AS col2
----
97
95040

skipif mysql # not compatible
query II rowsort label-7780
SELECT - - COUNT ( * ) * + 97 AS col1, + 30 * 99 * + 32 AS col2
----
97
95040

query I rowsort
SELECT DISTINCT + 82 * 19 - 98 AS col0
----
1460

query II rowsort
SELECT DISTINCT + + 52 * + 74, - 16 col2
----
3848
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7783
SELECT + COUNT( * ) * - 0 * + 1 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-7783
SELECT + COUNT ( * ) * - 0 * + 1 / 97
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7784
SELECT - COALESCE ( + COUNT( * ), - - ( 51 ) + + SUM( + + 41 ) + + 22 DIV + CAST( 20 AS SIGNED ) * - + CAST( NULL AS SIGNED ) + + COALESCE ( + 33, 18 + + - 73 * + 30, + COUNT( * ), 17 + + - 0 ) * + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7784
SELECT - COALESCE ( + COUNT ( * ), - - ( 51 ) + + SUM ( + + 41 ) + + 22 / + CAST ( 20 AS INTEGER ) * - + CAST ( NULL AS INTEGER ) + + COALESCE ( + 33, 18 + + - 73 * + 30, + COUNT ( * ), 17 + + - 0 ) * + COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7785
SELECT + COUNT( * ) DIV 6 * - 89 * COUNT( * ) * - + 12 col1
----
0

skipif mysql # not compatible
query I rowsort label-7785
SELECT + COUNT ( * ) / 6 * - 89 * COUNT ( * ) * - + 12 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT + + COUNT( * ) * + MAX( + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7786
SELECT + + COUNT ( * ) * + MAX ( + 0 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7787
SELECT DISTINCT 14 + - 82 + CAST( - - 21 AS SIGNED ) / - CAST( NULL AS SIGNED ) * + + 3 * - 58 + - 54 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT 14 + - 82 + CAST ( - - 21 AS INTEGER ) / - CAST ( NULL AS INTEGER ) * + + 3 * - 58 + - 54 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7788
SELECT + + MIN( ALL - 38 ) DIV + - 29 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7788
SELECT + + MIN ( ALL - 38 ) / + - 29 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT ALL + 58 + MIN( DISTINCT + 48 ) col1
----
106

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL + 58 + MIN ( DISTINCT + 48 ) col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT 76 - - COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7790
SELECT 76 - - COUNT ( * ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT DISTINCT 81 + + COUNT( * ) - + 88
----
-6

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT 81 + + COUNT ( * ) - + 88
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7792
SELECT - 29 DIV 24 * + - 77 * NULLIF ( 10, + 45 ) + 97 * - 41 AS col1
----
-3207

skipif mysql # not compatible
query I rowsort label-7792
SELECT - 29 / 24 * + - 77 * NULLIF ( 10, + 45 ) + 97 * - 41 AS col1
----
-3207

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT 55 + + - SUM( 60 ) * COUNT( * ) * - - 11 - - 22 AS col2
----
-583

skipif mysql # not compatible
query I rowsort label-7793
SELECT 55 + + - SUM ( 60 ) * COUNT ( * ) * - - 11 - - 22 AS col2
----
-583

onlyif mysql # aggregate syntax: 
query II rowsort label-7794
SELECT - 91 AS col1, SUM( DISTINCT - 83 )
----
-91
-83

skipif mysql # not compatible
query II rowsort label-7794
SELECT - 91 AS col1, SUM ( DISTINCT - 83 )
----
-91
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-7795
SELECT COUNT( + 53 ) * COUNT( * ) col2, + 80 AS col0
----
1
80

skipif mysql # not compatible
query II rowsort label-7795
SELECT COUNT ( + 53 ) * COUNT ( * ) col2, + 80 AS col0
----
1
80

onlyif mysql # aggregate syntax: 
query II rowsort label-7796
SELECT COUNT( ALL + - 44 ) + - 96 col2, 77
----
-95
77

skipif mysql # not compatible
query II rowsort label-7796
SELECT COUNT ( ALL + - 44 ) + - 96 col2, 77
----
-95
77

query I rowsort
SELECT ALL 56 + + + 23 * - 43 col2
----
-933

query II rowsort
SELECT ALL - 16 AS col0, - 89 col0
----
-16
-89

query I rowsort
SELECT 90 + + + 10 AS col1
----
100

onlyif mysql # DIV for integer division: 
query II rowsort label-7800
SELECT DISTINCT - 29, + 88 DIV + + 27 AS col1
----
-29
3

skipif mysql # not compatible
query II rowsort label-7800
SELECT DISTINCT - 29, + 88 / + + 27 AS col1
----
-29
3

query I rowsort
SELECT DISTINCT 67 + - 12 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT ALL COUNT( * ) * - 48
----
-48

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL COUNT ( * ) * - 48
----
-48

query I rowsort
SELECT ALL 2 - - 16 AS col0
----
18

query II rowsort
SELECT + 22 AS col1, - 44 AS col1
----
22
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-7805
SELECT ( - COUNT( + 87 ) ) + 27 + 65 + 72, + 3 AS col2
----
163
3

skipif mysql # not compatible
query II rowsort label-7805
SELECT ( - COUNT ( + 87 ) ) + 27 + 65 + 72, + 3 AS col2
----
163
3

query I rowsort
SELECT 25 * + COALESCE ( + + 74, - 91 - + 97 + 91 ) AS col2
----
1850

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT ALL + ( 30 ) * + COUNT( * ) * + 16 + - COUNT( * ) AS col0
----
479

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL + ( 30 ) * + COUNT ( * ) * + 16 + - COUNT ( * ) AS col0
----
479

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ( + COUNT( * ) ) * + 92 + - 83 + 58 + ( + - 31 ) - + MIN( 2 ) / + 43 + - CASE + + 48 WHEN COUNT( * ) THEN - + 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7808
SELECT ( + COUNT ( * ) ) * + 92 + - 83 + 58 + ( + - 31 ) - + MIN ( 2 ) / + 43 + - CASE + + 48 WHEN COUNT ( * ) THEN - + 21 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT 35 + + 27 + - 11 * - - 45 + - COUNT( + 76 ) * + - 32 + - 93 + 90 AS col2
----
-404

skipif mysql # not compatible
query I rowsort label-7809
SELECT 35 + + 27 + - 11 * - - 45 + - COUNT ( + 76 ) * + - 32 + - 93 + 90 AS col2
----
-404

onlyif mysql # aggregate syntax: 
query II rowsort label-7810
SELECT ALL - 77 AS col1, - 59 + + 56 + - + SUM( + 38 ) col1
----
-77
-41

skipif mysql # not compatible
query II rowsort label-7810
SELECT ALL - 77 AS col1, - 59 + + 56 + - + SUM ( + 38 ) col1
----
-77
-41

query I rowsort
SELECT DISTINCT 1 * - 97
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7812
SELECT - + 85 * - - MAX( + CAST( NULL AS SIGNED ) ) - 43 - 85 * + + 72 - - 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7812
SELECT - + 85 * - - MAX ( + CAST ( NULL AS INTEGER ) ) - 43 - 85 * + + 72 - - 63 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT + 61 * 68 + + 83 * + 71 + + COUNT( * ) * + 52 * - 49
----
7493

skipif mysql # not compatible
query I rowsort label-7813
SELECT + 61 * 68 + + 83 * + 71 + + COUNT ( * ) * + 52 * - 49
----
7493

query I rowsort
SELECT ALL - - 31 col2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT 42 * - - 26 * + + ( + + 15 ) + 0 DIV - + 20 * 8 AS col1
----
16380

skipif mysql # not compatible
query I rowsort label-7815
SELECT 42 * - - 26 * + + ( + + 15 ) + 0 / - + 20 * 8 AS col1
----
16380

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7816
SELECT ALL - COALESCE ( - ( + - CAST( NULL AS SIGNED ) ), - 7 * + 12 - + + 98 ) DIV + 25
----
7

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL - COALESCE ( - ( + - CAST ( NULL AS INTEGER ) ), - 7 * + 12 - + + 98 ) / + 25
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT + 23 + - 92 - - ( - COUNT( * ) ) + + + 13 * - 53
----
-759

skipif mysql # not compatible
query I rowsort label-7817
SELECT + 23 + - 92 - - ( - COUNT ( * ) ) + + + 13 * - 53
----
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT - CASE 23 WHEN - - 15 THEN NULL WHEN - 26 * + - 76 THEN - 60 * - 8 + - - 81 WHEN + + 83 THEN NULL ELSE NULL END * COUNT( * ) * - COUNT( * ) * - + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-7818
SELECT - CASE 23 WHEN - - 15 THEN NULL WHEN - 26 * + - 76 THEN - 60 * - 8 + - - 81 WHEN + + 83 THEN NULL ELSE NULL END * COUNT ( * ) * - COUNT ( * ) * - + 60
----
NULL

query I rowsort
SELECT - - 49 * + + 48 * + 11 + + 17 AS col0
----
25889

query I rowsort
SELECT + 6 - - 72
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT 22 + - + COALESCE ( + 80, MAX( + 51 ), - 40 ) + 91 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-7821
SELECT 22 + - + COALESCE ( + 80, MAX ( + 51 ), - 40 ) + 91 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT - + MAX( + 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-7822
SELECT - + MAX ( + 17 ) AS col1
----
-17

query I rowsort
SELECT ALL + + 75 + + 19
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT - 73 + + 99 + - - COUNT( * ) * MAX( + 44 )
----
70

skipif mysql # not compatible
query I rowsort label-7824
SELECT - 73 + + 99 + - - COUNT ( * ) * MAX ( + 44 )
----
70

query I rowsort
SELECT DISTINCT + 51 * - + 93 AS col0
----
-4743

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7826
SELECT - 86 + + 55 + 0 * - 12 + 37 + - 26 + + NULLIF ( + 4, - COUNT( ALL 79 ) * - 49 ) * + 95 DIV - + 87
----
-24

skipif mysql # not compatible
query I rowsort label-7826
SELECT - 86 + + 55 + 0 * - 12 + 37 + - 26 + + NULLIF ( + 4, - COUNT ( ALL 79 ) * - 49 ) * + 95 / - + 87
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-7827
SELECT ALL + 1 + - - 24 DIV + - 15
----
0

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL + 1 + - - 24 / + - 15
----
0

query II rowsort
SELECT - 50 AS col0, 80
----
-50
80

query I rowsort
SELECT - 13 + 64 col0
----
51

query I rowsort
SELECT ALL - + 95 + + - 16 AS col1
----
-111

query I rowsort
SELECT 70 * - + 71
----
-4970

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT + 36 + - COUNT( * ) * + 13
----
23

skipif mysql # not compatible
query I rowsort label-7832
SELECT + 36 + - COUNT ( * ) * + 13
----
23

query I rowsort
SELECT 81 * + + 49
----
3969

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT ALL MAX( - ( - 66 ) )
----
66

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL MAX ( - ( - 66 ) )
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7835
SELECT ALL MIN( ALL + CAST( - 29 AS SIGNED ) ) * - + 21 AS col2
----
609

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL MIN ( ALL + CAST ( - 29 AS INTEGER ) ) * - + 21 AS col2
----
609

query I rowsort
SELECT ALL 26 - - - 51 AS col2
----
-25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7837
SELECT 71 * 91 / + + 19 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7837
SELECT 71 * 91 / + + 19 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7838
SELECT SUM( + 30 ), 39 * - 45 + 10 * - 44 col0
----
30
-2195

skipif mysql # not compatible
query II rowsort label-7838
SELECT SUM ( + 30 ), 39 * - 45 + 10 * - 44 col0
----
30
-2195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7839
SELECT + 63 * + COALESCE ( - + 61, + - ( + + MAX( 60 ) ) + - CAST( + 63 AS SIGNED ) + - + CAST( + 6 AS SIGNED ) ) - COUNT( * ) AS col0
----
-3844

skipif mysql # not compatible
query I rowsort label-7839
SELECT + 63 * + COALESCE ( - + 61, + - ( + + MAX ( 60 ) ) + - CAST ( + 63 AS INTEGER ) + - + CAST ( + 6 AS INTEGER ) ) - COUNT ( * ) AS col0
----
-3844

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT SUM( - - 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-7840
SELECT SUM ( - - 93 ) AS col2
----
93

query I rowsort
SELECT 32 + + 58 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT ALL - COUNT( 31 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL - COUNT ( 31 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7843
SELECT MAX( CAST( - + 59 AS SIGNED ) )
----
-59

skipif mysql # not compatible
query I rowsort label-7843
SELECT MAX ( CAST ( - + 59 AS INTEGER ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT COUNT( * ) + + 89 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-7844
SELECT COUNT ( * ) + + 89 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT ALL + MIN( ALL - 57 ) * + 6
----
-342

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL + MIN ( ALL - 57 ) * + 6
----
-342

onlyif mysql # DIV for integer division: 
query II rowsort label-7846
SELECT - 62 * 74 + - - 53 + - 76, - 73 DIV + 50 AS col1
----
-4611
-1

skipif mysql # not compatible
query II rowsort label-7846
SELECT - 62 * 74 + - - 53 + - 76, - 73 / + 50 AS col1
----
-4611
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7847
SELECT + ( 27 ) AS col0, ( - - CASE + 53 WHEN COUNT( ALL - 24 ) / 54 + 44 + 56 * 75 + + 68 * - 9 THEN COUNT( * ) * - 48 END ) AS col1
----
27
NULL

skipif mysql # not compatible
query II rowsort label-7847
SELECT + ( 27 ) AS col0, ( - - CASE + 53 WHEN COUNT ( ALL - 24 ) / 54 + 44 + 56 * 75 + + 68 * - 9 THEN COUNT ( * ) * - 48 END ) AS col1
----
27
NULL

query I rowsort
SELECT ALL ( + + 98 ) * + + 29
----
2842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7849
SELECT + + ( + NULLIF ( COUNT( * ), - - 53 + + + 57 / 93 + + + COALESCE ( 5, - + 36, + ( - - AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) ) + + 21 ) + + + 12 / + 66 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7849
SELECT + + ( + NULLIF ( COUNT ( * ), - - 53 + + + 57 / 93 + + + COALESCE ( 5, - + 36, + ( - - AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) ) + + 21 ) + + + 12 / + 66 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7850
SELECT 57 DIV + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7850
SELECT 57 / + 85 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT + CASE - 46 WHEN + AVG ( - 99 ) * - 46 + + + CASE 61 WHEN - COUNT( * ) - + 82 / - MAX( - 97 ) THEN NULL WHEN + 26 + - - COUNT( DISTINCT - - 69 ) * + - 77 THEN + 3 * 91 * - COUNT( * ) + + - 81 END + + 24 - - CASE COUNT( * ) WHEN + + 36 THEN + COALESCE ( + 43, - 75 - - CASE - 92 WHEN + COUNT( * ) / 93 THEN - 47 END, 88 ) * + 16 - + COUNT( * ) * 6 ELSE NULL END THEN 41 / + 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7851
SELECT + CASE - 46 WHEN + AVG ( - 99 ) * - 46 + + + CASE 61 WHEN - COUNT ( * ) - + 82 / - MAX ( - 97 ) THEN NULL WHEN + 26 + - - COUNT ( DISTINCT - - 69 ) * + - 77 THEN + 3 * 91 * - COUNT ( * ) + + - 81 END + + 24 - - CASE COUNT ( * ) WHEN + + 36 THEN + COALESCE ( + 43, - 75 - - CASE - 92 WHEN + COUNT ( * ) / 93 THEN - 47 END, 88 ) * + 16 - + COUNT ( * ) * 6 ELSE NULL END THEN 41 / + 42 END
----
NULL

query I rowsort
SELECT ALL - ( + - 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT MIN( ALL - + 59 ) * - ( - 38 ) * - 77 * COUNT( * )
----
172634

skipif mysql # not compatible
query I rowsort label-7853
SELECT MIN ( ALL - + 59 ) * - ( - 38 ) * - 77 * COUNT ( * )
----
172634

query I rowsort
SELECT DISTINCT + 80 * + 31 * + 45 AS col0
----
111600

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT ALL 31 + COUNT( * ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL 31 + COUNT ( * ) AS col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7856
SELECT DISTINCT - 64 + - - COUNT( * ) DIV + 73 * - 17 + - SUM( DISTINCT - ( 95 ) )
----
31

skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT - 64 + - - COUNT ( * ) / + 73 * - 17 + - SUM ( DISTINCT - ( 95 ) )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT + - MIN( ALL 92 ) - + 97 + ( - 90 )
----
-279

skipif mysql # not compatible
query I rowsort label-7857
SELECT + - MIN ( ALL 92 ) - + 97 + ( - 90 )
----
-279

query I rowsort
SELECT - + 92 * - 42 * - + 22
----
-85008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7859
SELECT ALL - + ( - - 2 ) / - - CAST( NULL AS SIGNED ) + - ( MIN( - 35 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL - + ( - - 2 ) / - - CAST ( NULL AS INTEGER ) + - ( MIN ( - 35 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7860
SELECT DISTINCT - NULLIF ( - + 57, + - 17 * CAST( NULL AS SIGNED ) ) + 82
----
139

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT - NULLIF ( - + 57, + - 17 * CAST ( NULL AS INTEGER ) ) + 82
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT DISTINCT MIN( + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT MIN ( + 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT ALL - MAX( - 40 ) - - - 70
----
-30

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL - MAX ( - 40 ) - - - 70
----
-30

query I rowsort
SELECT ALL + 67 * + 52
----
3484

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7864
SELECT DISTINCT - 12 - - - 58 DIV MIN( ALL + 33 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-7864
SELECT DISTINCT - 12 - - - 58 / MIN ( ALL + 33 ) AS col2
----
-13

query II rowsort
SELECT ALL 0 AS col2, 81 * - 94 * - - 20 * - - 18 AS col0
----
0
-2741040

query I rowsort
SELECT DISTINCT - 49 * 1
----
-49

query I rowsort
SELECT ALL + 95 - + - 32 + - ( - 16 ) AS col2
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7868
SELECT DISTINCT - COUNT( * ) * 20 DIV 31, + 80 * + + CASE + + COUNT( DISTINCT + + ( + 96 ) ) WHEN - 39 THEN + CAST( + CASE ( - COUNT( * ) ) WHEN + 74 THEN + 90 * - 95 WHEN + 12 THEN NULL WHEN + 32 THEN + 20 ELSE - 47 - + + 13 END AS SIGNED ) END * + + 12 col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7868
SELECT DISTINCT - COUNT ( * ) * 20 / 31, + 80 * + + CASE + + COUNT ( DISTINCT + + ( + 96 ) ) WHEN - 39 THEN + CAST ( + CASE ( - COUNT ( * ) ) WHEN + 74 THEN + 90 * - 95 WHEN + 12 THEN NULL WHEN + 32 THEN + 20 ELSE - 47 - + + 13 END AS INTEGER ) END * + + 12 col0
----
0
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7869
SELECT - COUNT( * ), 29 DIV + 30 AS col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-7869
SELECT - COUNT ( * ), 29 / + 30 AS col1
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7870
SELECT - 9 + + - 82 + + - COUNT( - 45 ) - - 67 + + + 65 DIV + + ( - 14 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-7870
SELECT - 9 + + - 82 + + - COUNT ( - 45 ) - - 67 + + + 65 / + + ( - 14 ) AS col2
----
-29

query I rowsort
SELECT + 14 * - + 73
----
-1022

query I rowsort
SELECT ALL ( + 74 ) col2
----
74

query I rowsort
SELECT + 67 - + 28 col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT + 55 * - - COUNT( DISTINCT + 28 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-7874
SELECT + 55 * - - COUNT ( DISTINCT + 28 ) AS col2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-7875
SELECT DISTINCT - 5 DIV + 10 * - 17
----
0

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT - 5 / + 10 * - 17
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT ALL COUNT( * ) * + - 34
----
-34

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL COUNT ( * ) * + - 34
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT DISTINCT 72 * - COUNT( - 27 )
----
-72

skipif mysql # not compatible
query I rowsort label-7877
SELECT DISTINCT 72 * - COUNT ( - 27 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT DISTINCT COUNT( * ) * 35 * + 98
----
3430

skipif mysql # not compatible
query I rowsort label-7878
SELECT DISTINCT COUNT ( * ) * 35 * + 98
----
3430

query I rowsort
SELECT ALL + - COALESCE ( + 7, - 55 ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT + 19 * + 40 * - MAX( ALL - 15 ) * + NULLIF ( 97, + COUNT( * ) + + + 1 + - MAX( - - 83 ) )
----
1105800

skipif mysql # not compatible
query I rowsort label-7880
SELECT + 19 * + 40 * - MAX ( ALL - 15 ) * + NULLIF ( 97, + COUNT ( * ) + + + 1 + - MAX ( - - 83 ) )
----
1105800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7881
SELECT + 88 * MAX( DISTINCT - + 59 ) - + CAST( - - AVG ( + 25 ) AS SIGNED ) + - 94 + + - ( + 16 ) + - 15 DIV - + 43 + 53 col2
----
-5274

skipif mysql # not compatible
query I rowsort label-7881
SELECT + 88 * MAX ( DISTINCT - + 59 ) - + CAST ( - - AVG ( + 25 ) AS INTEGER ) + - 94 + + - ( + 16 ) + - 15 / - + 43 + 53 col2
----
-5274

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT DISTINCT CASE + 72 WHEN 73 THEN NULL WHEN + 81 * 86 * - 76 THEN + 63 END * + - 68 + COUNT( * ) * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT CASE + 72 WHEN 73 THEN NULL WHEN + 81 * 86 * - 76 THEN + 63 END * + - 68 + COUNT ( * ) * 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT ALL + + COALESCE ( - NULLIF ( 38, + ( 32 ) + + - 33 * + 51 ), + 92 + + ( COUNT( * ) ) ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL + + COALESCE ( - NULLIF ( 38, + ( 32 ) + + - 33 * + 51 ), + 92 + + ( COUNT ( * ) ) ) AS col1
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7884
SELECT DISTINCT - NULLIF ( - 95, - - NULLIF ( + 24, ( COUNT( * ) ) * + 17 ) * - NULLIF ( + 12, 77 ) ) * + 53 + + CAST( + 92 AS SIGNED ) + 87 DIV + + 3 AS col2, CAST( NULL AS SIGNED ) * 81
----
5156
NULL

skipif mysql # not compatible
query II rowsort label-7884
SELECT DISTINCT - NULLIF ( - 95, - - NULLIF ( + 24, ( COUNT ( * ) ) * + 17 ) * - NULLIF ( + 12, 77 ) ) * + 53 + + CAST ( + 92 AS INTEGER ) + 87 / + + 3 AS col2, CAST ( NULL AS INTEGER ) * 81
----
5156
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7885
SELECT ALL + + 99 AS col2, - MAX( 23 )
----
99
-23

skipif mysql # not compatible
query II rowsort label-7885
SELECT ALL + + 99 AS col2, - MAX ( 23 )
----
99
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-7886
SELECT - NULLIF ( - - 32, + 54 ) AS col2, 81 + MIN( 20 )
----
-32
101

skipif mysql # not compatible
query II rowsort label-7886
SELECT - NULLIF ( - - 32, + 54 ) AS col2, 81 + MIN ( 20 )
----
-32
101

query I rowsort
SELECT ALL + + NULLIF ( - 15, NULLIF ( + 56, - + 59 * - 84 - 30 ) )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7888
SELECT + ( + COUNT( ALL - ( - + ( 68 ) ) ) ) + + + CAST( NULL AS SIGNED ) * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7888
SELECT + ( + COUNT ( ALL - ( - + ( 68 ) ) ) ) + + + CAST ( NULL AS INTEGER ) * + 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7889
SELECT ( + CAST( COUNT( * ) AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7889
SELECT ( + CAST ( COUNT ( * ) AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7890
SELECT + 20 * ( + MIN( - - 71 ) ) + + COUNT( * ) + - COUNT( ALL + + 51 ) + ( - ( + ( COUNT( * ) ) ) ) DIV - COALESCE ( 32, + 96 ) AS col0
----
1420

skipif mysql # not compatible
query I rowsort label-7890
SELECT + 20 * ( + MIN ( - - 71 ) ) + + COUNT ( * ) + - COUNT ( ALL + + 51 ) + ( - ( + ( COUNT ( * ) ) ) ) / - COALESCE ( 32, + 96 ) AS col0
----
1420

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT - COUNT( * ) - - 53 + + 81 col2
----
133

skipif mysql # not compatible
query I rowsort label-7891
SELECT - COUNT ( * ) - - 53 + + 81 col2
----
133

query I rowsort
SELECT - NULLIF ( - 53, NULLIF ( + 29, + + 2 * 84 ) ) * + ( 22 ) AS col0
----
1166

query I rowsort
SELECT + NULLIF ( + 78, - 1 ) + + 67 * 77 AS col0
----
5237

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT - 18 - + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-7894
SELECT - 18 - + COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT ALL - COUNT( * ) - + 68
----
-69

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL - COUNT ( * ) - + 68
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7896
SELECT + - NULLIF ( - + 68, - + 94 ) * MAX( ALL + ( + ( + 24 ) ) ) * - - 90 * 42 + - 61 AS col1, + COUNT( ALL 53 ) DIV 96 DIV + + 76 * - COUNT( * ) * - 76 AS col1
----
6168899
0

skipif mysql # not compatible
query II rowsort label-7896
SELECT + - NULLIF ( - + 68, - + 94 ) * MAX ( ALL + ( + ( + 24 ) ) ) * - - 90 * 42 + - 61 AS col1, + COUNT ( ALL 53 ) / 96 / + + 76 * - COUNT ( * ) * - 76 AS col1
----
6168899
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7897
SELECT DISTINCT - 8 * + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7897
SELECT DISTINCT - 8 * + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT + + 38 + + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-7898
SELECT + + 38 + + COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT + COUNT( * ) * - - 61 * + 36
----
2196

skipif mysql # not compatible
query I rowsort label-7899
SELECT + COUNT ( * ) * - - 61 * + 36
----
2196

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT ALL 33 * COUNT( * ) * 87 * + 22 AS col2
----
63162

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL 33 * COUNT ( * ) * 87 * + 22 AS col2
----
63162

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT DISTINCT MAX( DISTINCT + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT MAX ( DISTINCT + 49 )
----
49

query I rowsort
SELECT ALL 51 - - 19
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-7903
SELECT ALL ( + 71 ) col1, COUNT( * ) + + - 82 AS col1
----
71
-81

skipif mysql # not compatible
query II rowsort label-7903
SELECT ALL ( + 71 ) col1, COUNT ( * ) + + - 82 AS col1
----
71
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT ALL MAX( - + 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL MAX ( - + 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT + ( COUNT( * ) ) * 97
----
97

skipif mysql # not compatible
query I rowsort label-7905
SELECT + ( COUNT ( * ) ) * 97
----
97

query II rowsort
SELECT - 0, 78 AS col2
----
0
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7907
SELECT - CAST( + - 94 AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-7907
SELECT - CAST ( + - 94 AS INTEGER )
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7908
SELECT - 15 DIV - 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7908
SELECT - 15 / - 20 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7909
SELECT - 3 * + 58, + COUNT( * ) AS col0
----
-174
1

skipif mysql # not compatible
query II rowsort label-7909
SELECT - 3 * + 58, + COUNT ( * ) AS col0
----
-174
1

query I rowsort
SELECT DISTINCT ( - ( + 87 ) ) col1
----
-87

query II rowsort
SELECT 12 AS col0, + 87 AS col1
----
12
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7912
SELECT DISTINCT CAST( - 51 AS SIGNED )
----
-51

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT CAST ( - 51 AS INTEGER )
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7913
SELECT ALL - ( - - CAST( NULL AS DECIMAL ) ) * 27 - + 81 / NULLIF ( - - 18, + 45 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL - ( - - CAST ( NULL AS REAL ) ) * 27 - + 81 / NULLIF ( - - 18, + 45 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - 60, NULLIF ( - 32, 36 ) ) * - 56 AS col1
----
-3360

query I rowsort
SELECT ALL - 1 * - 80 AS col0
----
80

query I rowsort
SELECT - 25 * + 76
----
-1900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7917
SELECT ALL + CAST( 88 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL + CAST ( 88 AS INTEGER )
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-7918
SELECT + - 40 AS col2, COUNT( * )
----
-40
1

skipif mysql # not compatible
query II rowsort label-7918
SELECT + - 40 AS col2, COUNT ( * )
----
-40
1

query I rowsort
SELECT + - NULLIF ( + + 62, ( + 72 ) )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7920
SELECT + - COALESCE ( - ( - 19 ), - - ( ( + 18 ) ), + CASE - 71 WHEN - COALESCE ( - CASE - - NULLIF ( + COUNT( * ), + 88 - - + 52 + ( + 59 ) ) WHEN - 33 + 35 THEN NULL WHEN + 8 THEN 40 WHEN 25 THEN NULL END, ( SUM( - 49 ) ), + 0 ) THEN 51 END * + COUNT( + 17 ), 54 * - ( + 69 ) + COUNT( * ) ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7920
SELECT + - COALESCE ( - ( - 19 ), - - ( ( + 18 ) ), + CASE - 71 WHEN - COALESCE ( - CASE - - NULLIF ( + COUNT ( * ), + 88 - - + 52 + ( + 59 ) ) WHEN - 33 + 35 THEN NULL WHEN + 8 THEN 40 WHEN 25 THEN NULL END, ( SUM ( - 49 ) ), + 0 ) THEN 51 END * + COUNT ( + 17 ), 54 * - ( + 69 ) + COUNT ( * ) ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT ALL + COALESCE ( + 57, MIN( DISTINCT + 36 ) * - 81 + - + 30 + - 59 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL + COALESCE ( + 57, MIN ( DISTINCT + 36 ) * - 81 + - + 30 + - 59 ) AS col0
----
57

query II rowsort
SELECT - 95, - 41 AS col2
----
-95
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT ALL - 75 * + + COUNT( * ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL - 75 * + + COUNT ( * ) AS col0
----
-75

query I rowsort
SELECT DISTINCT + 64 + + - 2 AS col2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7925
SELECT ALL + 30 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL + 30 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 99 * - 9 + - 77
----
-968

onlyif mysql # DIV for integer division: 
query I rowsort label-7927
SELECT - 5 DIV ( + - 72 ) + 60
----
60

skipif mysql # not compatible
query I rowsort label-7927
SELECT - 5 / ( + - 72 ) + 60
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7928
SELECT + 79 AS col2, + CAST( NULL AS SIGNED ) + + 2 - 47
----
79
NULL

skipif mysql # not compatible
query II rowsort label-7928
SELECT + 79 AS col2, + CAST ( NULL AS INTEGER ) + + 2 - 47
----
79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT ALL COUNT( * ) * 6
----
6

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL COUNT ( * ) * 6
----
6

query II rowsort
SELECT + 89 + + 99, - 70 col0
----
188
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT DISTINCT - COUNT( * ) - - COUNT( ALL + 13 )
----
0

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT - COUNT ( * ) - - COUNT ( ALL + 13 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT CASE - 76 WHEN - + 47 + - 39 THEN + 43 + + - COUNT( - + 69 ) ELSE NULL END + + 15 + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-7932
SELECT CASE - 76 WHEN - + 47 + - 39 THEN + 43 + + - COUNT ( - + 69 ) ELSE NULL END + + 15 + + 71
----
NULL

query I rowsort
SELECT ALL + 48 - - - 74
----
-26

query II rowsort
SELECT + 2 AS col0, - 19 + 77 * 70 * 5 - - 89 * - 76 AS col2
----
2
20167

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT ALL - 79 * + SUM( DISTINCT - 32 ) AS col0
----
2528

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL - 79 * + SUM ( DISTINCT - 32 ) AS col0
----
2528

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT ALL ( MAX( + 25 ) ) col2
----
25

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL ( MAX ( + 25 ) ) col2
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-7937
SELECT - 86, - 57 + COUNT( * ) + + ( + 92 ) AS col1
----
-86
36

skipif mysql # not compatible
query II rowsort label-7937
SELECT - 86, - 57 + COUNT ( * ) + + ( + 92 ) AS col1
----
-86
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT ALL 80 * - SUM( DISTINCT - 2 ) AS col2
----
160

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL 80 * - SUM ( DISTINCT - 2 ) AS col2
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT COUNT( DISTINCT - 35 ) + 78 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-7939
SELECT COUNT ( DISTINCT - 35 ) + 78 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT ALL COUNT( DISTINCT + 19 ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL COUNT ( DISTINCT + 19 ) * - COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT COALESCE ( - 37, + + 65 ) * + 10 * + - 6
----
2220

query I rowsort
SELECT COALESCE ( - + 53, + 21 ) - 84
----
-137

onlyif mysql # DIV for integer division: 
query I rowsort label-7943
SELECT 35 * 52 DIV 6 col2
----
303

skipif mysql # not compatible
query I rowsort label-7943
SELECT 35 * 52 / 6 col2
----
303

query I rowsort
SELECT DISTINCT ( - + 8 ) + - 31 AS col2
----
-39

query I rowsort
SELECT ALL 90 + + - 35 + - ( 91 ) AS col2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7946
SELECT ALL + ( + - 4 ) + - - CAST( NULL AS SIGNED ) + ( + + 29 ) * 53 * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL + ( + - 4 ) + - - CAST ( NULL AS INTEGER ) + ( + + 29 ) * 53 * 82
----
NULL

query II rowsort
SELECT - 49 * + 93 * - 10 + - ( - 66 ) AS col1, 6 AS col2
----
45636
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7948
SELECT ALL + CAST( NULL AS SIGNED ) / - - MAX( + 97 ) * ( - 79 ) / - CASE 74 WHEN COALESCE ( 27, - 46 ) + - + 2 THEN NULL WHEN - NULLIF ( - + 80, - 49 ) THEN - - 74 * + + 73 * - COALESCE ( - 65, 62, 17 + + ( + ( + ( COUNT( * ) ) ) ) * + 98, - 38, + - ( - - 89 ) + + + NULLIF ( 65, - + 4 ) * 66 / 69 ) END + + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL + CAST ( NULL AS INTEGER ) / - - MAX ( + 97 ) * ( - 79 ) / - CASE 74 WHEN COALESCE ( 27, - 46 ) + - + 2 THEN NULL WHEN - NULLIF ( - + 80, - 49 ) THEN - - 74 * + + 73 * - COALESCE ( - 65, 62, 17 + + ( + ( + ( COUNT ( * ) ) ) ) * + 98, - 38, + - ( - - 89 ) + + + NULLIF ( 65, - + 4 ) * 66 / 69 ) END + + 86 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT ALL - + COUNT( * ) + - 92 * + 13
----
-1197

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL - + COUNT ( * ) + - 92 * + 13
----
-1197

onlyif mysql # aggregate syntax: 
query II rowsort label-7950
SELECT ALL - 26 + + 98 AS col1, COUNT( * ) + 47 AS col0
----
72
48

skipif mysql # not compatible
query II rowsort label-7950
SELECT ALL - 26 + + 98 AS col1, COUNT ( * ) + 47 AS col0
----
72
48

onlyif mysql # DIV for integer division: 
query I rowsort label-7951
SELECT ALL - + 66 + + + 6 * 87 * + + 78 + - 60 DIV + - 25 + 44 AS col1
----
40696

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL - + 66 + + + 6 * 87 * + + 78 + - 60 / + - 25 + 44 AS col1
----
40696

query I rowsort
SELECT 34 + - 62 AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7953
SELECT ALL + CAST( NULL AS SIGNED ) * + 73 * + AVG ( ALL + + 79 ) * 43 + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL + CAST ( NULL AS INTEGER ) * + 73 * + AVG ( ALL + + 79 ) * 43 + 58
----
NULL

query I rowsort
SELECT + 70 * - 41 + + 72 + + 73 * 63 AS col0
----
1801

query I rowsort
SELECT DISTINCT + - 99 * + 40 + - + 0
----
-3960

query I rowsort
SELECT ALL - + NULLIF ( + 24, 43 - 31 ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT 14 * + - MIN( ALL + 99 ) + + + 43 AS col2
----
-1343

skipif mysql # not compatible
query I rowsort label-7957
SELECT 14 * + - MIN ( ALL + 99 ) + + + 43 AS col2
----
-1343

query II rowsort
SELECT + 64 * + - 10 AS col0, 85
----
-640
85

query I rowsort
SELECT DISTINCT + - 24 - + 18 * + 78
----
-1428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7960
SELECT ALL + ( + CASE 34 WHEN NULLIF ( + 90, 28 ) THEN NULL WHEN COUNT( * ) THEN + + 88 * + 46 + - 5 - 73 - - + CAST( + + 22 AS SIGNED ) * + CAST( - 13 AS DECIMAL ) * + 56 + + 18 + CAST( MIN( DISTINCT - 10 ) AS SIGNED ) - + CAST( NULL AS SIGNED ) * 36 * 42 * + 7 END ) / - 48 AS col2, + 87
----
NULL
87

skipif mysql # not compatible
query II rowsort label-7960
SELECT ALL + ( + CASE 34 WHEN NULLIF ( + 90, 28 ) THEN NULL WHEN COUNT ( * ) THEN + + 88 * + 46 + - 5 - 73 - - + CAST ( + + 22 AS INTEGER ) * + CAST ( - 13 AS REAL ) * + 56 + + 18 + CAST ( MIN ( DISTINCT - 10 ) AS INTEGER ) - + CAST ( NULL AS INTEGER ) * 36 * 42 * + 7 END ) / - 48 AS col2, + 87
----
NULL
87

query I rowsort
SELECT + 30 * 29 + - - 9
----
879

query I rowsort
SELECT - ( + 96 ) - + 57 AS col1
----
-153

query I rowsort
SELECT 22 * - + 83 + + ( 51 ) + - 9 AS col1
----
-1784

onlyif mysql # DIV for integer division: 
query I rowsort label-7964
SELECT ALL + + 81 DIV 19 col1
----
4

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL + + 81 / 19 col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7965
SELECT DISTINCT + 90 * - - COUNT( DISTINCT - 55 ) AS col0, 68
----
90
68

skipif mysql # not compatible
query II rowsort label-7965
SELECT DISTINCT + 90 * - - COUNT ( DISTINCT - 55 ) AS col0, 68
----
90
68

query I rowsort
SELECT 81 + + - 31
----
50

query I rowsort
SELECT 16 - + 44
----
-28

query I rowsort
SELECT ( - - ( - 33 ) ) - - - 49 * - - 12
----
-621

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7969
SELECT 0 + - MAX( DISTINCT CAST( NULL AS DECIMAL ) ) * - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7969
SELECT 0 + - MAX ( DISTINCT CAST ( NULL AS REAL ) ) * - 82 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7970
SELECT ALL + 36 + 54 DIV - + COALESCE ( - 63, + + 22, + 52 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL + 36 + 54 / - + COALESCE ( - 63, + + 22, + 52 ) AS col0
----
36

query I rowsort
SELECT DISTINCT + 18 + - + 0 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT DISTINCT 85 + COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT 85 + COUNT ( * ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT COUNT( * ) * - + COALESCE ( - COUNT( * ), - 46 ) * + 45 * - 4
----
-180

skipif mysql # not compatible
query I rowsort label-7973
SELECT COUNT ( * ) * - + COALESCE ( - COUNT ( * ), - 46 ) * + 45 * - 4
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT 60 + + + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-7974
SELECT 60 + + + COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-7975
SELECT ALL ( COUNT( * ) ) + + 51 AS col2, + ( COUNT( * ) ) * - 50 AS col1
----
52
-50

skipif mysql # not compatible
query II rowsort label-7975
SELECT ALL ( COUNT ( * ) ) + + 51 AS col2, + ( COUNT ( * ) ) * - 50 AS col1
----
52
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT ALL COUNT( * ) + + - 78 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-7976
SELECT ALL COUNT ( * ) + + - 78 AS col1
----
-77

query I rowsort
SELECT ALL 29 + 44
----
73

query II rowsort
SELECT - 7 AS col0, 46 * - 1
----
-7
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7979
SELECT ALL + 75 + - 73 + + 24 / - 75 * - CAST( NULL AS SIGNED ) * + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL + 75 + - 73 + + 24 / - 75 * - CAST ( NULL AS INTEGER ) * + 38 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT + 26 * CASE + 40 WHEN - 26 THEN - ( - 89 ) + - + 86 WHEN ( - 77 ) THEN - COUNT( ALL 95 ) END - - ( 39 ) * + - 14 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT + 26 * CASE + 40 WHEN - 26 THEN - ( - 89 ) + - + 86 WHEN ( - 77 ) THEN - COUNT ( ALL 95 ) END - - ( 39 ) * + - 14 col2
----
NULL

query II rowsort
SELECT + 13, 59 AS col1
----
13
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7982
SELECT + COUNT( * ) DIV 53 - - - 59 - - MIN( DISTINCT + + 72 ) + - 96 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-7982
SELECT + COUNT ( * ) / 53 - - - 59 - - MIN ( DISTINCT + + 72 ) + - 96 AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7983
SELECT - - NULLIF ( + - 52, - - CAST( NULLIF ( 55, - - 70 + SUM( DISTINCT + 77 ) * - 14 ) AS SIGNED ) / + 67 + - 49 - - 89 ) * + + 53 AS col0, COUNT( * ) AS col0
----
-2756
1

skipif mysql # not compatible
query II rowsort label-7983
SELECT - - NULLIF ( + - 52, - - CAST ( NULLIF ( 55, - - 70 + SUM ( DISTINCT + 77 ) * - 14 ) AS INTEGER ) / + 67 + - 49 - - 89 ) * + + 53 AS col0, COUNT ( * ) AS col0
----
-2756
1

query I rowsort
SELECT DISTINCT - - 59 * + 65 + - 49 - - + COALESCE ( + - 51, 15, 99 )
----
3735

onlyif mysql # DIV for integer division: 
query I rowsort label-7985
SELECT ALL + 53 DIV + 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL + 53 / + 62 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT DISTINCT + SUM( DISTINCT + 20 ) * - 99
----
-1980

skipif mysql # not compatible
query I rowsort label-7986
SELECT DISTINCT + SUM ( DISTINCT + 20 ) * - 99
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT ALL + - MAX( - 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL + - MAX ( - 68 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7988
SELECT ALL + - COALESCE ( + COUNT( * ), - 86 + - ( - + 72 ) ) * 17 AS col0, - 99
----
-17
-99

skipif mysql # not compatible
query II rowsort label-7988
SELECT ALL + - COALESCE ( + COUNT ( * ), - 86 + - ( - + 72 ) ) * 17 AS col0, - 99
----
-17
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT - COUNT( * ) * - 32 * + + SUM( ALL 31 ) * - 41 AS col2
----
-40672

skipif mysql # not compatible
query I rowsort label-7989
SELECT - COUNT ( * ) * - 32 * + + SUM ( ALL 31 ) * - 41 AS col2
----
-40672

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT MIN( + 85 ) * - + MAX( + + 39 ) - ( 72 ) - 37 * - - 73 + + 8 + + - 86 - MIN( - - 23 ) AS col0
----
-6189

skipif mysql # not compatible
query I rowsort label-7990
SELECT MIN ( + 85 ) * - + MAX ( + + 39 ) - ( 72 ) - 37 * - - 73 + + 8 + + - 86 - MIN ( - - 23 ) AS col0
----
-6189

query I rowsort
SELECT DISTINCT + 29 * - + 27 AS col1
----
-783

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT + + COUNT( * ) * 74
----
74

skipif mysql # not compatible
query I rowsort label-7992
SELECT + + COUNT ( * ) * 74
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7993
SELECT - + NULLIF ( - - CAST( - - 87 AS SIGNED ), + + 61 ) * 63 * - 14 AS col0
----
76734

skipif mysql # not compatible
query I rowsort label-7993
SELECT - + NULLIF ( - - CAST ( - - 87 AS INTEGER ), + + 61 ) * 63 * - 14 AS col0
----
76734

query I rowsort
SELECT ALL + 96 * 37 + - 91
----
3461

query I rowsort
SELECT - 92 + + + 41 AS col2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7996
SELECT ALL + CAST( - SUM( 52 ) AS SIGNED ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL + CAST ( - SUM ( 52 ) AS INTEGER ) AS col0
----
-52

query II rowsort
SELECT - 62 * 69 AS col1, 19 + + 95
----
-4278
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT ALL - COUNT( * ) + - - 0 + + 62 + - + 81 * 73 * - 84 + - ( - 29 ) AS col0
----
496782

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL - COUNT ( * ) + - - 0 + + 62 + - + 81 * 73 * - 84 + - ( - 29 ) AS col0
----
496782

query I rowsort
SELECT DISTINCT - 50 + 83 - - + ( + 51 ) + COALESCE ( - + 52, + + 72 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT ALL + 5 + + - 26 + - - COUNT( - 27 ) + + 69 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL + 5 + + - 26 + - - COUNT ( - 27 ) + + 69 AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8001
SELECT ALL - CAST( NULL AS DECIMAL ) + COALESCE ( 72, + COUNT( * ) * - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL - CAST ( NULL AS REAL ) + COALESCE ( 72, + COUNT ( * ) * - 29 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT - 96 - + MIN( - 87 )
----
-9

skipif mysql # not compatible
query I rowsort label-8002
SELECT - 96 - + MIN ( - 87 )
----
-9

query I rowsort
SELECT + 2 * - 15 AS col2
----
-30

query I rowsort
SELECT - 72 + - 4
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT ALL ( - 58 ) * - SUM( + 58 ) - - + 18
----
3382

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL ( - 58 ) * - SUM ( + 58 ) - - + 18
----
3382

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8006
SELECT DISTINCT 1 + - 31 * + CAST( + 91 AS SIGNED ) + - 37 + 21 AS col2
----
-2836

skipif mysql # not compatible
query I rowsort label-8006
SELECT DISTINCT 1 + - 31 * + CAST ( + 91 AS INTEGER ) + - 37 + 21 AS col2
----
-2836

query I rowsort
SELECT DISTINCT + 88 + 8 AS col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8008
SELECT ALL 36 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL 36 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 18 - + 62 - - 82 AS col2
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-8010
SELECT - + COUNT( * ) + - 64 + - 62 * + 73, ( + + NULLIF ( - 66, 62 ) ) AS col2
----
-4591
-66

skipif mysql # not compatible
query II rowsort label-8010
SELECT - + COUNT ( * ) + - 64 + - 62 * + 73, ( + + NULLIF ( - 66, 62 ) ) AS col2
----
-4591
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-8011
SELECT ALL + COALESCE ( - COUNT( * ), + COUNT( - 11 ) ) - + 55 * 18 + - 78 * 97 - 97 AS col0, + 15
----
-8654
15

skipif mysql # not compatible
query II rowsort label-8011
SELECT ALL + COALESCE ( - COUNT ( * ), + COUNT ( - 11 ) ) - + 55 * 18 + - 78 * 97 - 97 AS col0, + 15
----
-8654
15

query I rowsort
SELECT - + 12 * + 83 AS col1
----
-996

query I rowsort
SELECT ALL 16 * + 17 * 91 AS col2
----
24752

query II rowsort
SELECT + 85 * + 2 + 82 * 35 AS col1, - 51 col0
----
3040
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT ALL + - COUNT( - 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL + - COUNT ( - 25 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8016
SELECT + 49 DIV 40 - + - 78 DIV + SUM( ALL 85 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8016
SELECT + 49 / 40 - + - 78 / + SUM ( ALL 85 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT - 81 * + + 66 + - - 13 + + ( - MAX( DISTINCT - - 66 ) )
----
-5399

skipif mysql # not compatible
query I rowsort label-8017
SELECT - 81 * + + 66 + - - 13 + + ( - MAX ( DISTINCT - - 66 ) )
----
-5399

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8018
SELECT ALL COALESCE ( NULLIF ( + CAST( NULL AS SIGNED ), + 89 ), - + 80, + 56 ) DIV + 21
----
-3

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL COALESCE ( NULLIF ( + CAST ( NULL AS INTEGER ), + 89 ), - + 80, + 56 ) / + 21
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8019
SELECT - 82 * + CAST( COUNT( * ) AS SIGNED ) DIV 86 + - 20 + + + COUNT( * ) * - 41 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-8019
SELECT - 82 * + CAST ( COUNT ( * ) AS INTEGER ) / 86 + - 20 + + + COUNT ( * ) * - 41 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT DISTINCT + SUM( - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT + SUM ( - 56 )
----
-56

query I rowsort
SELECT DISTINCT + ( + + 85 ) * - 83 AS col1
----
-7055

onlyif mysql # aggregate syntax: 
query II rowsort label-8022
SELECT DISTINCT + COUNT( * ) * - + 76 + COUNT( * ) AS col1, + 22
----
-75
22

skipif mysql # not compatible
query II rowsort label-8022
SELECT DISTINCT + COUNT ( * ) * - + 76 + COUNT ( * ) AS col1, + 22
----
-75
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT DISTINCT + MIN( + + NULLIF ( + 15, + 37 ) )
----
15

skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT + MIN ( + + NULLIF ( + 15, + 37 ) )
----
15

query I rowsort
SELECT - 9 + + + 25 AS col0
----
16

query I rowsort
SELECT ALL - 73 * + 86 + 78 AS col2
----
-6200

query I rowsort
SELECT + 20 + + 2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT - COUNT( * ) - + COALESCE ( + ( 46 ), - 4 ) + + 93 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8027
SELECT - COUNT ( * ) - + COALESCE ( + ( 46 ), - 4 ) + + 93 AS col0
----
46

query I rowsort
SELECT ALL ( - + 35 )
----
-35

query I rowsort
SELECT + 73 + + 7 AS col0
----
80

query I rowsort
SELECT - 78 - - ( - 47 )
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT ALL + 74 - - + COUNT( * ) * + 40 + - 74 col1
----
40

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL + 74 - - + COUNT ( * ) * + 40 + - 74 col1
----
40

query II rowsort
SELECT 13 AS col1, 53
----
13
53

query II rowsort
SELECT DISTINCT 72 AS col2, 24 AS col1
----
72
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT ALL - 11 DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL - 11 / - 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT 50 + - 28 + + - CASE - COUNT( * ) WHEN - - 28 + + 42 THEN - - 26 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8035
SELECT 50 + - 28 + + - CASE - COUNT ( * ) WHEN - - 28 + + 42 THEN - - 26 + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT DISTINCT - 2 * SUM( 90 ) AS col1
----
-180

skipif mysql # not compatible
query I rowsort label-8036
SELECT DISTINCT - 2 * SUM ( 90 ) AS col1
----
-180

query I rowsort
SELECT 60 + + 88 AS col0
----
148

query I rowsort
SELECT 34 * + + 80
----
2720

onlyif mysql # DIV for integer division: 
query I rowsort label-8039
SELECT ALL - 11 DIV 15
----
0

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL - 11 / 15
----
0

query I rowsort
SELECT DISTINCT - + 92 - 27
----
-119

query I rowsort
SELECT ALL - 97 * + - 97 AS col1
----
9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8042
SELECT CASE WHEN NOT NULL BETWEEN + 24 AND - ( + - 28 ) THEN NULL WHEN + COUNT( * ) = 24 + - - ( - + 13 ) THEN NULL ELSE - COUNT( * ) - - COUNT( * ) * - 9 * 96 END DIV MIN( ALL - 94 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-8042
SELECT CASE WHEN NOT NULL BETWEEN + 24 AND - ( + - 28 ) THEN NULL WHEN + COUNT ( * ) = 24 + - - ( - + 13 ) THEN NULL ELSE - COUNT ( * ) - - COUNT ( * ) * - 9 * 96 END / MIN ( ALL - 94 ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT ALL - 12 * - 18 + MIN( + - 53 ) col2
----
163

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL - 12 * - 18 + MIN ( + - 53 ) col2
----
163

onlyif mysql # aggregate syntax: 
query II rowsort label-8044
SELECT ALL 15 AS col1, - COUNT( * ) + + - 92 * - 24 AS col0
----
15
2207

skipif mysql # not compatible
query II rowsort label-8044
SELECT ALL 15 AS col1, - COUNT ( * ) + + - 92 * - 24 AS col0
----
15
2207

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT + 83 * NULLIF ( 72, + 43 ) * + - MAX( + 85 )
----
-507960

skipif mysql # not compatible
query I rowsort label-8045
SELECT + 83 * NULLIF ( 72, + 43 ) * + - MAX ( + 85 )
----
-507960

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT DISTINCT + MAX( ALL 26 )
----
26

skipif mysql # not compatible
query I rowsort label-8046
SELECT DISTINCT + MAX ( ALL 26 )
----
26

query II rowsort
SELECT DISTINCT - 48 col0, 95 AS col2
----
-48
95

onlyif mysql # aggregate syntax: 
query II rowsort label-8048
SELECT - 50 * + 55 + - + ( - MIN( DISTINCT - 40 ) ) AS col0, + 58
----
-2790
58

skipif mysql # not compatible
query II rowsort label-8048
SELECT - 50 * + 55 + - + ( - MIN ( DISTINCT - 40 ) ) AS col0, + 58
----
-2790
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8049
SELECT + 46 / + 49 * - + CAST( NULL AS SIGNED ) * ( + 82 ) + ( + - 56 ) + - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8049
SELECT + 46 / + 49 * - + CAST ( NULL AS INTEGER ) * ( + 82 ) + ( + - 56 ) + - 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT ALL - - 37 + + + 69 - + MAX( + 94 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL - - 37 + + + 69 - + MAX ( + 94 ) AS col0
----
12

query I rowsort
SELECT 90 * + 71 / + 19 * - CASE - + 19 WHEN + 39 / + 54 THEN NULLIF ( 63, - + 42 ) * - 35 ELSE NULL END - + + 96 AS col1
----
NULL

query I rowsort
SELECT ALL 16 * + 90 * - 91
----
-131040

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8053
SELECT COALESCE ( + - 51, - 13, - - 37 + 82 * - + CAST( NULL AS SIGNED ) DIV - - 26 ) * 38 + + 82 - ( + 64 ) AS col0
----
-1920

skipif mysql # not compatible
query I rowsort label-8053
SELECT COALESCE ( + - 51, - 13, - - 37 + 82 * - + CAST ( NULL AS INTEGER ) / - - 26 ) * 38 + + 82 - ( + 64 ) AS col0
----
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT ( + ( - - 31 ) ) + COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8054
SELECT ( + ( - - 31 ) ) + COUNT ( * ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT DISTINCT 34 + - 81 + COUNT( * ) + + 51
----
5

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT 34 + - 81 + COUNT ( * ) + + 51
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT ALL + COUNT( * ) * + - 56 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL + COUNT ( * ) * + - 56 AS col1
----
-56

query I rowsort
SELECT 16 + - COALESCE ( - 37, + 61 ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT ALL - MAX( ALL + + ( - 26 ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8058
SELECT ALL - MAX ( ALL + + ( - 26 ) ) AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8059
SELECT ALL NULLIF ( + - 63, COUNT( * ) * - COUNT( + 11 ) * + CAST( NULL AS SIGNED ) * 24 * + 21 ) + - - COUNT( * ) + - 6 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL NULLIF ( + - 63, COUNT ( * ) * - COUNT ( + 11 ) * + CAST ( NULL AS INTEGER ) * 24 * + 21 ) + - - COUNT ( * ) + - 6 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT ALL COUNT( * ) + + 4 col0
----
5

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL COUNT ( * ) + + 4 col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT 6 * - ( COUNT( * ) )
----
-6

skipif mysql # not compatible
query I rowsort label-8061
SELECT 6 * - ( COUNT ( * ) )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8062
SELECT 90, + CASE - - COALESCE ( 57, + + 81 + 78 * 39 ) WHEN 14 THEN NULL WHEN - 27 * 44 * - - COUNT( ALL 8 ) * 56 + + 85 + - 85 THEN - CASE + + NULLIF ( - 87, - 21 + NULLIF ( + 73, - 6 ) ) WHEN + CAST( NULL AS DECIMAL ) - + - 48 / + 99 THEN + 77 END ELSE NULL END * 51 AS col0
----
90
NULL

skipif mysql # not compatible
query II rowsort label-8062
SELECT 90, + CASE - - COALESCE ( 57, + + 81 + 78 * 39 ) WHEN 14 THEN NULL WHEN - 27 * 44 * - - COUNT ( ALL 8 ) * 56 + + 85 + - 85 THEN - CASE + + NULLIF ( - 87, - 21 + NULLIF ( + 73, - 6 ) ) WHEN + CAST ( NULL AS REAL ) - + - 48 / + 99 THEN + 77 END ELSE NULL END * 51 AS col0
----
90
NULL

query I rowsort
SELECT 15 * - + ( - - 66 )
----
-990

query II rowsort
SELECT DISTINCT - 86, 13 * 83 AS col2
----
-86
1079

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT 60 + + 78 - + 34 * + COUNT( - + 31 ) AS col0
----
104

skipif mysql # not compatible
query I rowsort label-8065
SELECT 60 + + 78 - + 34 * + COUNT ( - + 31 ) AS col0
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8066
SELECT + 10 AS col1, 21 / - NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) ) / + 75
----
10
NULL

skipif mysql # not compatible
query II rowsort label-8066
SELECT + 10 AS col1, 21 / - NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) / + 75
----
10
NULL

query I rowsort
SELECT 41 * - 34
----
-1394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8068
SELECT NULLIF ( 44, - COUNT( * ) + + - CAST( NULL AS SIGNED ) / - + 60 ) * + 69 AS col1
----
3036

skipif mysql # not compatible
query I rowsort label-8068
SELECT NULLIF ( 44, - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) / - + 60 ) * + 69 AS col1
----
3036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8069
SELECT ALL NULLIF ( COALESCE ( CAST( NULL AS SIGNED ), MAX( DISTINCT - 17 ) * - 50 ), - + 19 ) DIV 82 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL NULLIF ( COALESCE ( CAST ( NULL AS INTEGER ), MAX ( DISTINCT - 17 ) * - 50 ), - + 19 ) / 82 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8070
SELECT ALL - 15 * 68 * + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col2, 83
----
0
83

skipif mysql # not compatible
query II rowsort label-8070
SELECT ALL - 15 * 68 * + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2, 83
----
0
83

query I rowsort
SELECT ALL 25 - 8 AS col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8072
SELECT 31 * + 38 * + + 55 * - - CAST( + 86 AS SIGNED ) col0
----
5571940

skipif mysql # not compatible
query I rowsort label-8072
SELECT 31 * + 38 * + + 55 * - - CAST ( + 86 AS INTEGER ) col0
----
5571940

query II rowsort
SELECT - 78 AS col0, - 44
----
-78
-44

query I rowsort
SELECT 79 * + 38
----
3002

query I rowsort
SELECT ALL - + ( + + 39 ) * + + 58 + + 52 AS col0
----
-2210

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT ALL + SUM( 56 )
----
56

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL + SUM ( 56 )
----
56

query II rowsort
SELECT + COALESCE ( + 74, - 50 + + - 38 + + - 19 * - 66 * 15 ) AS col0, COALESCE ( - 42, - 18, - - 64 )
----
74
-42

query I rowsort
SELECT DISTINCT 19 * - + 49
----
-931

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8079
SELECT ALL CAST( - + 69 AS SIGNED ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL CAST ( - + 69 AS INTEGER ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT ALL - MAX( ALL + 50 ) + - 36 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL - MAX ( ALL + 50 ) + - 36 AS col1
----
-86

query I rowsort
SELECT DISTINCT + COALESCE ( + + 36, - 67 * - 32 * + 79 + + 87 ) AS col2
----
36

query I rowsort
SELECT ALL + + 39 + 22
----
61

query I rowsort
SELECT - 8 + 85 - - 68
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8084
SELECT ALL - CAST( NULL AS SIGNED ) + - 85 * - + 78 * + COUNT( * ) * - - 55 + - + 53, + 99 AS col2
----
NULL
99

skipif mysql # not compatible
query II rowsort label-8084
SELECT ALL - CAST ( NULL AS INTEGER ) + - 85 * - + 78 * + COUNT ( * ) * - - 55 + - + 53, + 99 AS col2
----
NULL
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8085
SELECT ALL - - CAST( NULL AS SIGNED ) + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL - - CAST ( NULL AS INTEGER ) + 46 AS col2
----
NULL

query I rowsort
SELECT 83 + + 74 AS col0
----
157

query I rowsort
SELECT ALL + 8 * - ( + 42 ) AS col0
----
-336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8088
SELECT COUNT( * ) DIV - + 4 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8088
SELECT COUNT ( * ) / - + 4 AS col1
----
0

query I rowsort
SELECT + 74 + + 38
----
112

query II rowsort
SELECT + 39, 22 AS col0
----
39
22

query I rowsort
SELECT DISTINCT + ( - 55 ) * 79 + + 99 AS col1
----
-4246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8092
SELECT ALL - CAST( + 65 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL - CAST ( + 65 AS INTEGER )
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-8093
SELECT COUNT( 52 ), - 95 AS col1
----
1
-95

skipif mysql # not compatible
query II rowsort label-8093
SELECT COUNT ( 52 ), - 95 AS col1
----
1
-95

query I rowsort
SELECT ALL + 1 * - 5 - - + 98
----
93

query II rowsort
SELECT 9 * - 20 AS col1, 3
----
-180
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT + MIN( ALL - 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-8096
SELECT + MIN ( ALL - 32 ) AS col1
----
-32

query I rowsort
SELECT - 73 + - 82 * + ( + 77 )
----
-6387

query I rowsort
SELECT DISTINCT + 19 * - 45 - - 55 AS col1
----
-800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8099
SELECT - 49 + - ( - COUNT( * ) ) DIV + 5
----
-49

skipif mysql # not compatible
query I rowsort label-8099
SELECT - 49 + - ( - COUNT ( * ) ) / + 5
----
-49

query II rowsort
SELECT ALL 61 * 68, 10 AS col1
----
4148
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8101
SELECT DISTINCT 79 * 58 * - + MIN( ALL + CAST( + 23 AS SIGNED ) ) AS col2
----
-105386

skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT 79 * 58 * - + MIN ( ALL + CAST ( + 23 AS INTEGER ) ) AS col2
----
-105386

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT 10 * 97 + + MAX( + 17 )
----
987

skipif mysql # not compatible
query I rowsort label-8102
SELECT 10 * 97 + + MAX ( + 17 )
----
987

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8103
SELECT + 42 * + - NULLIF ( + 9, + + CAST( - 49 AS DECIMAL ) ) + - 95 + - NULLIF ( SUM( DISTINCT 6 ), - 95 * 85 ) * 0 AS col2
----
-473

skipif mysql # not compatible
query I rowsort label-8103
SELECT + 42 * + - NULLIF ( + 9, + + CAST ( - 49 AS REAL ) ) + - 95 + - NULLIF ( SUM ( DISTINCT 6 ), - 95 * 85 ) * 0 AS col2
----
-473

query I rowsort
SELECT + 96 + - - 75 * - 59
----
-4329

query I rowsort
SELECT - 7 + - 25
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT + MIN( DISTINCT + 80 ) + - 29
----
51

skipif mysql # not compatible
query I rowsort label-8106
SELECT + MIN ( DISTINCT + 80 ) + - 29
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-8107
SELECT DISTINCT ( 40 ) AS col1, 1 DIV + 76 + + 35
----
40
35

skipif mysql # not compatible
query II rowsort label-8107
SELECT DISTINCT ( 40 ) AS col1, 1 / + 76 + + 35
----
40
35

query I rowsort
SELECT ALL 82 * + + ( - 94 )
----
-7708

onlyif mysql # DIV for integer division: 
query I rowsort label-8109
SELECT ALL 26 + - 74 DIV + 96 + 3 * + 65 AS col2
----
221

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL 26 + - 74 / + 96 + 3 * + 65 AS col2
----
221

query I rowsort
SELECT DISTINCT + 37 + - 91 - 23 AS col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8111
SELECT ALL - 73 * + 21 - CAST( NULL AS SIGNED ), + 19 AS col0
----
NULL
19

skipif mysql # not compatible
query II rowsort label-8111
SELECT ALL - 73 * + 21 - CAST ( NULL AS INTEGER ), + 19 AS col0
----
NULL
19

query I rowsort
SELECT ALL + 15 + + 56 AS col1
----
71

query I rowsort
SELECT ALL - 4 + + ( 14 ) * + + 56
----
780

query I rowsort
SELECT DISTINCT 53 * - 25 AS col1
----
-1325

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT ALL - ( COUNT( ALL - 7 ) ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL - ( COUNT ( ALL - 7 ) ) * - COUNT ( * )
----
1

query I rowsort
SELECT ALL + 54 + + 83 col1
----
137

query I rowsort
SELECT - - 28 col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT ALL COUNT( * ) * + 13 * + ( 97 ) * + 51
----
64311

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL COUNT ( * ) * + 13 * + ( 97 ) * + 51
----
64311

query I rowsort
SELECT ALL - - 7 + + 58 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT ALL + - SUM( 74 ) * + 10
----
-740

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL + - SUM ( 74 ) * + 10
----
-740

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT - + 91 + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-8121
SELECT - + 91 + COUNT ( * )
----
-90

query I rowsort
SELECT + 80 * + 59
----
4720

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT - MIN( DISTINCT 14 ) * + 68 AS col0
----
-952

skipif mysql # not compatible
query I rowsort label-8123
SELECT - MIN ( DISTINCT 14 ) * + 68 AS col0
----
-952

onlyif mysql # DIV for integer division: 
query I rowsort label-8124
SELECT 23 DIV - 23 - + 51 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-8124
SELECT 23 / - 23 - + 51 AS col1
----
-52

query I rowsort
SELECT ( - - 14 ) col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8126
SELECT DISTINCT + 96 * + + CAST( ( - 23 ) AS SIGNED ) AS col2
----
-2208

skipif mysql # not compatible
query I rowsort label-8126
SELECT DISTINCT + 96 * + + CAST ( ( - 23 ) AS INTEGER ) AS col2
----
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT - MIN( - 49 ) * + 76
----
3724

skipif mysql # not compatible
query I rowsort label-8127
SELECT - MIN ( - 49 ) * + 76
----
3724

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT ALL - COUNT( * ) * 69 * + COUNT( * ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL - COUNT ( * ) * 69 * + COUNT ( * ) AS col0
----
-69

query II rowsort
SELECT ALL 13 * 54 - 26 AS col2, + 14 AS col0
----
676
14

query I rowsort
SELECT - 26 * - 73 AS col1
----
1898

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT ALL + NULLIF ( - 23, COUNT( * ) * 84 - + - 44 )
----
-23

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL + NULLIF ( - 23, COUNT ( * ) * 84 - + - 44 )
----
-23

query I rowsort
SELECT ( + + NULLIF ( + 95, 25 + - 0 ) ) AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8133
SELECT DISTINCT + COUNT( * ) * + 80 DIV + ( + 81 ) * 37
----
0

skipif mysql # not compatible
query I rowsort label-8133
SELECT DISTINCT + COUNT ( * ) * + 80 / + ( + 81 ) * 37
----
0

query I rowsort
SELECT ( - + CASE WHEN NOT - 19 IS NOT NULL THEN + + ( - 81 ) * AVG ( + + 2 ) END ) AS col0
----
NULL

query I rowsort
SELECT COALESCE ( + 90, - 91 * - ( + 11 ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT CASE + COUNT( * ) WHEN - 91 THEN NULL ELSE - 40 + + 99 END AS col2
----
59

skipif mysql # not compatible
query I rowsort label-8136
SELECT CASE + COUNT ( * ) WHEN - 91 THEN NULL ELSE - 40 + + 99 END AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8137
SELECT NULLIF ( - CAST( - 73 AS SIGNED ), + 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8137
SELECT NULLIF ( - CAST ( - 73 AS INTEGER ), + 73 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8138
SELECT + ( + 72 ) * + NULLIF ( + 41, + 38 * + - CAST( - 0 AS SIGNED ) * ( SUM( - 95 ) ) + 37 + + 97 + 38 * + 60 / 98 + - 30 + + + 70 * + 76 * 71 * + - 91 - 74 ) AS col1
----
2952

skipif mysql # not compatible
query I rowsort label-8138
SELECT + ( + 72 ) * + NULLIF ( + 41, + 38 * + - CAST ( - 0 AS INTEGER ) * ( SUM ( - 95 ) ) + 37 + + 97 + 38 * + 60 / 98 + - 30 + + + 70 * + 76 * 71 * + - 91 - 74 ) AS col1
----
2952

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT - CASE 9 WHEN - 30 THEN + 34 ELSE 28 + + - 60 - - 3 END * - 67 + COUNT( * ) * + 60 AS col2
----
-1883

skipif mysql # not compatible
query I rowsort label-8139
SELECT - CASE 9 WHEN - 30 THEN + 34 ELSE 28 + + - 60 - - 3 END * - 67 + COUNT ( * ) * + 60 AS col2
----
-1883

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8140
SELECT ALL 72 * - 35 * + + 15 * - COALESCE ( - CASE - - 54 WHEN ( - 80 ) * + COUNT( * ) * - COUNT( DISTINCT + 15 ) + - 97 * 81 - + + 78 THEN 70 ELSE 57 END, 32 * 91 DIV - 99, - COALESCE ( - - CAST( NULL AS SIGNED ), + ( 4 ) ) ) AS col0, CAST( NULL AS SIGNED ) + 37 AS col0
----
-2154600
NULL

skipif mysql # not compatible
query II rowsort label-8140
SELECT ALL 72 * - 35 * + + 15 * - COALESCE ( - CASE - - 54 WHEN ( - 80 ) * + COUNT ( * ) * - COUNT ( DISTINCT + 15 ) + - 97 * 81 - + + 78 THEN 70 ELSE 57 END, 32 * 91 / - 99, - COALESCE ( - - CAST ( NULL AS INTEGER ), + ( 4 ) ) ) AS col0, CAST ( NULL AS INTEGER ) + 37 AS col0
----
-2154600
NULL

query I rowsort
SELECT ALL 31 * + + 8 * + 97 + 54
----
24110

onlyif mysql # aggregate syntax: 
query II rowsort label-8142
SELECT + COUNT( * ) AS col1, + COALESCE ( - - 34, - CASE + 66 WHEN - 17 THEN NULL ELSE + 14 END )
----
1
34

skipif mysql # not compatible
query II rowsort label-8142
SELECT + COUNT ( * ) AS col1, + COALESCE ( - - 34, - CASE + 66 WHEN - 17 THEN NULL ELSE + 14 END )
----
1
34

query I rowsort
SELECT ALL + 13 * - 84 + - 75
----
-1167

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT + - NULLIF ( - 32, - - COUNT( * ) + - + 83 ) * 39
----
1248

skipif mysql # not compatible
query I rowsort label-8144
SELECT + - NULLIF ( - 32, - - COUNT ( * ) + - + 83 ) * 39
----
1248

query I rowsort
SELECT ALL - 91 * - NULLIF ( 39, + 2 ) + 22 AS col1
----
3571

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT DISTINCT + 75 * + + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-8146
SELECT DISTINCT + 75 * + + COUNT ( * )
----
75

query I rowsort
SELECT DISTINCT 18 * + 37 * + + 52 + 59 * + 92
----
40060

query I rowsort
SELECT - + 52 + - 34 + + 20
----
-66

query I rowsort
SELECT + NULLIF ( + + 3, 1 + - + AVG ( DISTINCT + 45 ) ) + - 23 * - - 62 + + + 1
----
-1422

query I rowsort
SELECT + 56 + + 91 AS col2
----
147

query I rowsort
SELECT ALL + 23 + - - 96 * + + 49 AS col0
----
4727

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT DISTINCT 0 * - + COUNT( + 78 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT 0 * - + COUNT ( + 78 ) col0
----
0

query I rowsort
SELECT DISTINCT - ( - + 9 ) AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8154
SELECT + - CAST( NULL AS SIGNED ) - + COALESCE ( 28, + 99 ) / 99 + 59 col1, 84 * + 8 AS col2
----
NULL
672

skipif mysql # not compatible
query II rowsort label-8154
SELECT + - CAST ( NULL AS INTEGER ) - + COALESCE ( 28, + 99 ) / 99 + 59 col1, 84 * + 8 AS col2
----
NULL
672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8155
SELECT ALL - 31 DIV + 21 + + 78 * CAST( COUNT( * ) AS SIGNED ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL - 31 / + 21 + + 78 * CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
77

query I rowsort
SELECT ALL + 67 * + 37
----
2479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8157
SELECT + + COUNT( + 85 ) + - - CAST( NULL AS SIGNED ) / 11 + AVG ( 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8157
SELECT + + COUNT ( + 85 ) + - - CAST ( NULL AS INTEGER ) / 11 + AVG ( 52 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT DISTINCT - SUM( ALL - 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-8158
SELECT DISTINCT - SUM ( ALL - 89 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT ALL 71 * MIN( DISTINCT + 19 ) + - + ( - + ( - COUNT( * ) ) ) + + 74
----
1422

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL 71 * MIN ( DISTINCT + 19 ) + - + ( - + ( - COUNT ( * ) ) ) + + 74
----
1422

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT + - COUNT( DISTINCT - 43 ) + - 3 - + + 70 + 29
----
-45

skipif mysql # not compatible
query I rowsort label-8160
SELECT + - COUNT ( DISTINCT - 43 ) + - 3 - + + 70 + 29
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-8161
SELECT - - 12, 78 * - - 7 * - + COUNT( * ) AS col2
----
12
-546

skipif mysql # not compatible
query II rowsort label-8161
SELECT - - 12, 78 * - - 7 * - + COUNT ( * ) AS col2
----
12
-546

query I rowsort
SELECT ALL ( - - 79 ) * + 29 AS col2
----
2291

query I rowsort
SELECT 54 * + + 9
----
486

query I rowsort
SELECT DISTINCT - NULLIF ( - 44, + - 14 ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT 53 + + - SUM( ALL + 59 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-8165
SELECT 53 + + - SUM ( ALL + 59 ) AS col1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8166
SELECT 34 DIV + - 94
----
0

skipif mysql # not compatible
query I rowsort label-8166
SELECT 34 / + - 94
----
0

query I rowsort
SELECT 69 * - + 61
----
-4209

onlyif mysql # DIV for integer division: 
query I rowsort label-8168
SELECT ALL 2 DIV - + 65
----
0

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL 2 / - + 65
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8169
SELECT 59 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8169
SELECT 59 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 45 * + 89 + ( 50 ) AS col2
----
4055

query I rowsort
SELECT ALL 42 + ( + 19 ) AS col1
----
61

query I rowsort
SELECT DISTINCT 1 + + 50 + 11
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8173
SELECT ALL - 21 + - COUNT( * ) DIV - 91 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL - 21 + - COUNT ( * ) / - 91 AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8174
SELECT ALL - 48 + COALESCE ( + + 26, NULLIF ( - + 97, SUM( - - 49 ) ) - - - 46 + - - CAST( - 56 AS SIGNED ) + - 11 DIV COUNT( * ) - - - 37 )
----
-22

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL - 48 + COALESCE ( + + 26, NULLIF ( - + 97, SUM ( - - 49 ) ) - - - 46 + - - CAST ( - 56 AS INTEGER ) + - 11 / COUNT ( * ) - - - 37 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT ALL + 78 * - AVG ( - 22 ) * + CASE + 65 WHEN - 42 + COUNT( * ) THEN - 84 END * + 16 * + 64 * - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL + 78 * - AVG ( - 22 ) * + CASE + 65 WHEN - 42 + COUNT ( * ) THEN - 84 END * + 16 * + 64 * - 60 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT NULLIF ( 30, - + COUNT( * ) ) + - 4
----
26

skipif mysql # not compatible
query I rowsort label-8176
SELECT NULLIF ( 30, - + COUNT ( * ) ) + - 4
----
26

query I rowsort
SELECT 89 * - 1
----
-89

query I rowsort
SELECT - 83 + 77
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8179
SELECT ALL + 21 + - 81 - - 89 - NULLIF ( - CAST( NULL AS SIGNED ), + - 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL + 21 + - 81 - - 89 - NULLIF ( - CAST ( NULL AS INTEGER ), + - 52 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT - COUNT( 94 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8180
SELECT - COUNT ( 94 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8181
SELECT ALL MAX( 3 ) AS col0, + 95 AS col0
----
3
95

skipif mysql # not compatible
query II rowsort label-8181
SELECT ALL MAX ( 3 ) AS col0, + 95 AS col0
----
3
95

query II rowsort
SELECT DISTINCT + 93 - 1 + - ( NULLIF ( - 3, - 49 + - + 97 + + - 93 ) ) * 25 * - 53 + + 95 + - CASE + 44 WHEN 92 THEN - 23 END * + 23 * - - 20 + + 71 + + - 62 AS col2, 44 AS col1
----
NULL
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT DISTINCT MAX( 32 ) * - 39 AS col2
----
-1248

skipif mysql # not compatible
query I rowsort label-8183
SELECT DISTINCT MAX ( 32 ) * - 39 AS col2
----
-1248

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8184
SELECT ALL NULLIF ( COUNT( * ), - + NULLIF ( + 22, + + CAST( + 35 AS DECIMAL ) * + 0 / - - ( + 70 ) * MAX( DISTINCT - 65 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL NULLIF ( COUNT ( * ), - + NULLIF ( + 22, + + CAST ( + 35 AS REAL ) * + 0 / - - ( + 70 ) * MAX ( DISTINCT - 65 ) ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8185
SELECT CASE + - 96 WHEN - CAST( NULL AS SIGNED ) * + 35 THEN + MIN( - ( + 77 ) ) END + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8185
SELECT CASE + - 96 WHEN - CAST ( NULL AS INTEGER ) * + 35 THEN + MIN ( - ( + 77 ) ) END + COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8186
SELECT DISTINCT - - 61 * - + CAST( - 23 AS SIGNED ) AS col0
----
1403

skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT - - 61 * - + CAST ( - 23 AS INTEGER ) AS col0
----
1403

query I rowsort
SELECT + 77 + + - 64 * 9
----
-499

query I rowsort
SELECT - 16 * - + 19 + 39 AS col0
----
343

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT - 86 * - + 76 - - - COUNT( * ) AS col2
----
6535

skipif mysql # not compatible
query I rowsort label-8189
SELECT - 86 * - + 76 - - - COUNT ( * ) AS col2
----
6535

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT DISTINCT - + COUNT( * ) * 73 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-8190
SELECT DISTINCT - + COUNT ( * ) * 73 AS col0
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8191
SELECT 27 + 67 + + + ( COUNT( * ) ) DIV - 84
----
94

skipif mysql # not compatible
query I rowsort label-8191
SELECT 27 + 67 + + + ( COUNT ( * ) ) / - 84
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8192
SELECT DISTINCT 3 DIV - + 44
----
0

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT 3 / - + 44
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8193
SELECT 44 DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-8193
SELECT 44 / + 59
----
0

query I rowsort
SELECT ALL 38 * - 65
----
-2470

query I rowsort
SELECT DISTINCT 56 * 4 AS col2
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT SUM( DISTINCT 86 ) * - 36
----
-3096

skipif mysql # not compatible
query I rowsort label-8196
SELECT SUM ( DISTINCT 86 ) * - 36
----
-3096

onlyif mysql # DIV for integer division: 
query I rowsort label-8197
SELECT ALL 2 + 56 + + 49 + 78 DIV 27 DIV - 17
----
107

skipif mysql # not compatible
query I rowsort label-8197
SELECT ALL 2 + 56 + + 49 + 78 / 27 / - 17
----
107

query I rowsort
SELECT ALL 61 * - + 50 AS col0
----
-3050

query II rowsort
SELECT 50 * + 71 * + 41, 3 AS col0
----
145550
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8200
SELECT + COUNT( * ) DIV + COALESCE ( + 45, - 80 ) - + SUM( DISTINCT - NULLIF ( + 15, + 0 * 10 ) ) + ( + 33 ) DIV COUNT( * ) * - 48 AS col0
----
-1569

skipif mysql # not compatible
query I rowsort label-8200
SELECT + COUNT ( * ) / + COALESCE ( + 45, - 80 ) - + SUM ( DISTINCT - NULLIF ( + 15, + 0 * 10 ) ) + ( + 33 ) / COUNT ( * ) * - 48 AS col0
----
-1569

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8201
SELECT ALL ( - - 88 ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL ( - - 88 ) + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 60 * - ( 49 ) AS col1
----
-2940

query I rowsort
SELECT ALL + 89 + - 71 + + 81
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8204
SELECT + 45 AS col2, MAX( DISTINCT - - CAST( + + 11 AS DECIMAL ) ) * - - 79 + - 39 / 84 / - MAX( 84 ) / + CASE - + COALESCE ( - COUNT( * ), 59, - - 31 + + 75 + + 0 * + COUNT( * ) ) WHEN ( - 27 ) THEN 66 * 8 - + - 82 + + CAST( - 24 AS SIGNED ) * - MIN( + + 24 ) ELSE NULL END * - 59 + - - ( - - 66 ) / + 77 * + 71 + - 65 AS col0
----
45
NULL

skipif mysql # not compatible
query II rowsort label-8204
SELECT + 45 AS col2, MAX ( DISTINCT - - CAST ( + + 11 AS REAL ) ) * - - 79 + - 39 / 84 / - MAX ( 84 ) / + CASE - + COALESCE ( - COUNT ( * ), 59, - - 31 + + 75 + + 0 * + COUNT ( * ) ) WHEN ( - 27 ) THEN 66 * 8 - + - 82 + + CAST ( - 24 AS INTEGER ) * - MIN ( + + 24 ) ELSE NULL END * - 59 + - - ( - - 66 ) / + 77 * + 71 + - 65 AS col0
----
45
NULL

query I rowsort
SELECT ALL NULLIF ( - + 50, - 73 * 58 * ( - 18 ) ) + - 6 * + + 61 + + 15 AS col2
----
-401

query I rowsort
SELECT DISTINCT ( - 14 ) + + - 55
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-8207
SELECT + 98 DIV 58 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8207
SELECT + 98 / 58 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8208
SELECT + 68 * CAST( - 96 AS SIGNED ) + - 73 + - + 92 + - + 12 * - COALESCE ( - - 93, 89, - 67 * + 78 * - 51 * + 16 ) * - + 7 AS col2
----
-14505

skipif mysql # not compatible
query I rowsort label-8208
SELECT + 68 * CAST ( - 96 AS INTEGER ) + - 73 + - + 92 + - + 12 * - COALESCE ( - - 93, 89, - 67 * + 78 * - 51 * + 16 ) * - + 7 AS col2
----
-14505

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT ALL - - 63 * - + SUM( ALL - + 74 ) - 74 * 72
----
-666

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL - - 63 * - + SUM ( ALL - + 74 ) - 74 * 72
----
-666

onlyif mysql # aggregate syntax: 
query II rowsort label-8210
SELECT ALL - + COUNT( * ) AS col2, 78 + + + ( 47 ) AS col1
----
-1
125

skipif mysql # not compatible
query II rowsort label-8210
SELECT ALL - + COUNT ( * ) AS col2, 78 + + + ( 47 ) AS col1
----
-1
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT ALL + COUNT( 68 ) - - COALESCE ( 12, - 34 ) - 42 * - 35 AS col1
----
1483

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL + COUNT ( 68 ) - - COALESCE ( 12, - 34 ) - 42 * - 35 AS col1
----
1483

query I rowsort
SELECT DISTINCT - 34 * - 34 * + - ( - 64 ) AS col2
----
73984

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT + 13 * - 97 + + COUNT( * ) - + ( 37 ) + 56
----
-1241

skipif mysql # not compatible
query I rowsort label-8213
SELECT + 13 * - 97 + + COUNT ( * ) - + ( 37 ) + 56
----
-1241

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT + 14 + - + MAX( - - 92 )
----
-78

skipif mysql # not compatible
query I rowsort label-8214
SELECT + 14 + - + MAX ( - - 92 )
----
-78

query I rowsort
SELECT + 84 * ( ( 65 ) ) AS col0
----
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT - + 60 + - 11 - - - MIN( DISTINCT 48 ) - 0 * - - 5
----
-119

skipif mysql # not compatible
query I rowsort label-8216
SELECT - + 60 + - 11 - - - MIN ( DISTINCT 48 ) - 0 * - - 5
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT - - MAX( ALL - 52 ) + + + 58 * - ( + 19 ) AS col1
----
-1154

skipif mysql # not compatible
query I rowsort label-8217
SELECT - - MAX ( ALL - 52 ) + + + 58 * - ( + 19 ) AS col1
----
-1154

query II rowsort
SELECT - 50 * - + ( 6 ) AS col1, ( 50 ) AS col2
----
300
50

query I rowsort
SELECT - + 10 + - 79 AS col0
----
-89

query I rowsort
SELECT ALL CASE - 61 WHEN - 43 THEN + + 96 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT ALL 97 * - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL 97 * - COUNT ( * )
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8222
SELECT - 3 + - - COUNT( * ) col0, 41 AS col2
----
-2
41

skipif mysql # not compatible
query II rowsort label-8222
SELECT - 3 + - - COUNT ( * ) col0, 41 AS col2
----
-2
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT ALL 15 * - NULLIF ( + - COUNT( * ), 70 - + + 54 )
----
15

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL 15 * - NULLIF ( + - COUNT ( * ), 70 - + + 54 )
----
15

query I rowsort
SELECT - 21 * 30 * + + 78 * - - 10
----
-491400

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT DISTINCT - 83 + + - COUNT( * ) - - 86 + 78 * - 20 col1
----
-1558

skipif mysql # not compatible
query I rowsort label-8225
SELECT DISTINCT - 83 + + - COUNT ( * ) - - 86 + 78 * - 20 col1
----
-1558

query II rowsort
SELECT 53 col1, 59
----
53
59

query II rowsort
SELECT ALL - 65 + + - 37, - 22 - - 40 + + 71 AS col1
----
-102
89

query I rowsort
SELECT - 67 + - + ( + 18 ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT - SUM( DISTINCT - ( - 28 ) ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-8229
SELECT - SUM ( DISTINCT - ( - 28 ) ) AS col1
----
-28

query I rowsort
SELECT - 85 * 30 col1
----
-2550

query I rowsort
SELECT ALL + 66 + - ( + + 42 ) AS col1
----
24

query I rowsort
SELECT ALL 25 * - 96 + + 90 AS col1
----
-2310

onlyif mysql # aggregate syntax: 
query II rowsort label-8233
SELECT + COUNT( * ) AS col0, COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-8233
SELECT + COUNT ( * ) AS col0, COUNT ( * ) AS col2
----
1
1

query I rowsort
SELECT + 31 * 1 AS col1
----
31

query I rowsort
SELECT + ( - 74 ) + - 78 + 90
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8236
SELECT ( 7 ) AS col0, 30 DIV + + 99 * + 23 * - + COUNT( * )
----
7
0

skipif mysql # not compatible
query II rowsort label-8236
SELECT ( 7 ) AS col0, 30 / + + 99 * + 23 * - + COUNT ( * )
----
7
0

query I rowsort
SELECT ( + - ( + 55 ) ) AS col2
----
-55

query I rowsort
SELECT ALL 62 * + - 97 + 97
----
-5917

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8239
SELECT + ( - COALESCE ( - + COUNT( * ), - 18 DIV + 35 + + - 23 * - + 71, + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8239
SELECT + ( - COALESCE ( - + COUNT ( * ), - 18 / + 35 + + - 23 * - + 71, + COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8240
SELECT + COALESCE ( - 21, - AVG ( ALL 93 ) * - 26 + 4 * - 70, 8 * 99 + COUNT( * ) - 84 ) DIV - 2 + - 99
----
-89

skipif mysql # not compatible
query I rowsort label-8240
SELECT + COALESCE ( - 21, - AVG ( ALL 93 ) * - 26 + 4 * - 70, 8 * 99 + COUNT ( * ) - 84 ) / - 2 + - 99
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8241
SELECT - + 0 * + 34 - 86 DIV - COALESCE ( 63, - - 9, + - 69 ) col1, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-8241
SELECT - + 0 * + 34 - 86 / - COALESCE ( 63, - - 9, + - 69 ) col1, COUNT ( * ) AS col1
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8242
SELECT DISTINCT + - 22 AS col1, + CASE COALESCE ( - ( - - 2 ), + COUNT( * ) ) WHEN + 4 * - CASE 7 WHEN + 75 THEN + + 17 END THEN - 75 / + CAST( + COUNT( * ) AS DECIMAL ) + 40 + - 28 END AS col1
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-8242
SELECT DISTINCT + - 22 AS col1, + CASE COALESCE ( - ( - - 2 ), + COUNT ( * ) ) WHEN + 4 * - CASE 7 WHEN + 75 THEN + + 17 END THEN - 75 / + CAST ( + COUNT ( * ) AS REAL ) + 40 + - 28 END AS col1
----
-22
NULL

query I rowsort
SELECT ALL - 96 * - + 52 + 87 * - COALESCE ( + 88, - 3 )
----
-2664

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT ALL - 85 * 99 - + + ( + CASE - 83 WHEN + + 53 * + NULLIF ( - 80, + AVG ( ALL + 34 ) * - 88 / - 78 + + 50 + 9 + - - 81 * + 57 ) - - 80 THEN + 3 WHEN + + MAX( ( - + 58 ) ) * 6 * - 1 * - - NULLIF ( 51, + + 39 + + 90 + - COUNT( * ) * + ( - - 70 ) ) * COUNT( * ) THEN - 82 * + 73 - 36 END ) + 14 + + + 48 * - 51 * 62 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8244
SELECT ALL - 85 * 99 - + + ( + CASE - 83 WHEN + + 53 * + NULLIF ( - 80, + AVG ( ALL + 34 ) * - 88 / - 78 + + 50 + 9 + - - 81 * + 57 ) - - 80 THEN + 3 WHEN + + MAX ( ( - + 58 ) ) * 6 * - 1 * - - NULLIF ( 51, + + 39 + + 90 + - COUNT ( * ) * + ( - - 70 ) ) * COUNT ( * ) THEN - 82 * + 73 - 36 END ) + 14 + + + 48 * - 51 * 62 col1
----
NULL

query I rowsort
SELECT DISTINCT 82 * - - 76 - 37
----
6195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8246
SELECT + 18 + SUM( + CAST( NULL AS SIGNED ) ) * + + 93 * - CAST( NULL AS SIGNED ) * + ( + + 11 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8246
SELECT + 18 + SUM ( + CAST ( NULL AS INTEGER ) ) * + + 93 * - CAST ( NULL AS INTEGER ) * + ( + + 11 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT + 23 * + SUM( DISTINCT + 78 ) AS col0
----
1794

skipif mysql # not compatible
query I rowsort label-8247
SELECT + 23 * + SUM ( DISTINCT + 78 ) AS col0
----
1794

query I rowsort
SELECT ALL 92 * - 64 + - + NULLIF ( 37, 50 ) col1
----
-5925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8249
SELECT DISTINCT + + CAST( 75 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT + + CAST ( 75 AS INTEGER )
----
75

query II rowsort
SELECT ALL + + 15, 31 AS col1
----
15
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8251
SELECT - - 58 DIV + 8 AS col2, COALESCE ( + - CASE + - 20 WHEN - 85 DIV - 72 THEN - - NULLIF ( - COUNT( * ), + ( + CAST( ( - 78 ) AS DECIMAL ) ) + - COUNT( * ) + 88 ) * - + 32 END, - COUNT( * ) - + + 0 ) col2
----
7
-1

skipif mysql # not compatible
query II rowsort label-8251
SELECT - - 58 / + 8 AS col2, COALESCE ( + - CASE + - 20 WHEN - 85 / - 72 THEN - - NULLIF ( - COUNT ( * ), + ( + CAST ( ( - 78 ) AS REAL ) ) + - COUNT ( * ) + 88 ) * - + 32 END, - COUNT ( * ) - + + 0 ) col2
----
7
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8252
SELECT DISTINCT 38 DIV - - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-8252
SELECT DISTINCT 38 / - - COUNT ( * )
----
38

query I rowsort
SELECT ALL + - 94 * - 15 * + 15 AS col1
----
21150

query I rowsort
SELECT + + 14 * - - 23 * + 30 AS col2
----
9660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8255
SELECT ALL 95 DIV + ( + COUNT( * ) ) + - 4
----
91

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL 95 / + ( + COUNT ( * ) ) + - 4
----
91

query I rowsort
SELECT DISTINCT + ( + ( - 46 ) ) + 22 AS col2
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-8257
SELECT 35 AS col0, + 80 DIV + + 3
----
35
26

skipif mysql # not compatible
query II rowsort label-8257
SELECT 35 AS col0, + 80 / + + 3
----
35
26

query II rowsort
SELECT ALL 88 AS col1, 43
----
88
43

query I rowsort
SELECT ALL 22 + 30 AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8260
SELECT - COALESCE ( - + CAST( - 60 AS SIGNED ), 28, 14 ) * + + 22 + + NULLIF ( + CAST( NULL AS SIGNED ), - 98 ) - 91 - + COUNT( * ) * 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8260
SELECT - COALESCE ( - + CAST ( - 60 AS INTEGER ), 28, 14 ) * + + 22 + + NULLIF ( + CAST ( NULL AS INTEGER ), - 98 ) - 91 - + COUNT ( * ) * 0 AS col0
----
NULL

query I rowsort
SELECT + 74 * - 27 AS col2
----
-1998

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8262
SELECT - CAST( - NULLIF ( 61, 64 / - MIN( - 76 ) * AVG ( + 18 ) * - - ( 90 ) + 6 ) AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-8262
SELECT - CAST ( - NULLIF ( 61, 64 / - MIN ( - 76 ) * AVG ( + 18 ) * - - ( 90 ) + 6 ) AS INTEGER )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8263
SELECT - CASE CASE - + COUNT( * ) WHEN - 67 THEN - COUNT( * ) * 53 WHEN 22 THEN 80 * - + CASE - 65 WHEN 0 THEN NULL WHEN + - 95 * 31 THEN 81 - + COALESCE ( + 67, + - 8 + COUNT( * ) ) ELSE + 64 + 86 END * - - 62 + - SUM( + 96 ) * - ( + MAX( - - 93 ) ) * 59 - - - CASE 3 WHEN 24 THEN - 30 + - 75 WHEN 33 THEN NULL ELSE NULL END ELSE NULL END WHEN + + 41 THEN + + NULLIF ( 60, + 30 + - 3 ) END + - CAST( 98 AS SIGNED ) * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-8263
SELECT - CASE CASE - + COUNT ( * ) WHEN - 67 THEN - COUNT ( * ) * 53 WHEN 22 THEN 80 * - + CASE - 65 WHEN 0 THEN NULL WHEN + - 95 * 31 THEN 81 - + COALESCE ( + 67, + - 8 + COUNT ( * ) ) ELSE + 64 + 86 END * - - 62 + - SUM ( + 96 ) * - ( + MAX ( - - 93 ) ) * 59 - - - CASE 3 WHEN 24 THEN - 30 + - 75 WHEN 33 THEN NULL ELSE NULL END ELSE NULL END WHEN + + 41 THEN + + NULLIF ( 60, + 30 + - 3 ) END + - CAST ( 98 AS INTEGER ) * - 31
----
NULL

query I rowsort
SELECT - 44 * 87
----
-3828

query I rowsort
SELECT DISTINCT + 52 + - 68 - - 86 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT ALL + 34 + - + COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL + 34 + - + COUNT ( * ) AS col1
----
33

query I rowsort
SELECT DISTINCT NULLIF ( + 83, - 60 ) col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8268
SELECT DISTINCT COUNT( * ) * 2 AS col1, - CASE - CASE - + 89 WHEN - + ( CAST( NULL AS DECIMAL ) ) THEN - - 33 WHEN 60 THEN - ( + 17 ) + ( + COALESCE ( + 27, + + 23 * CASE + 59 WHEN + + 45 THEN - 22 END ) ) END WHEN - 95 * + 62 + 88 THEN + - COUNT( * ) WHEN - - 91 / - 50 + - CAST( - 4 AS DECIMAL ) + - 67 THEN NULL WHEN 83 + + 94 - 82 * + ( - 32 ) * 69 * 8 * COUNT( * ) * - 51 THEN - + 96 ELSE NULL END * + - 65 + + 76 AS col1
----
2
NULL

skipif mysql # not compatible
query II rowsort label-8268
SELECT DISTINCT COUNT ( * ) * 2 AS col1, - CASE - CASE - + 89 WHEN - + ( CAST ( NULL AS REAL ) ) THEN - - 33 WHEN 60 THEN - ( + 17 ) + ( + COALESCE ( + 27, + + 23 * CASE + 59 WHEN + + 45 THEN - 22 END ) ) END WHEN - 95 * + 62 + 88 THEN + - COUNT ( * ) WHEN - - 91 / - 50 + - CAST ( - 4 AS REAL ) + - 67 THEN NULL WHEN 83 + + 94 - 82 * + ( - 32 ) * 69 * 8 * COUNT ( * ) * - 51 THEN - + 96 ELSE NULL END * + - 65 + + 76 AS col1
----
2
NULL

query I rowsort
SELECT - 7 + 83
----
76

query I rowsort
SELECT ALL - 89 + + 52 + - 79 AS col2
----
-116

query I rowsort
SELECT ALL + 35 - + 53
----
-18

query I rowsort
SELECT DISTINCT + 17 * - COALESCE ( + 13, - 42 * + 95 * - - 40 ) * + - 88
----
19448

query I rowsort
SELECT + 77 + - + 32 AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8274
SELECT ALL + CAST( CASE + 1 WHEN - 86 THEN + CAST( NULL AS SIGNED ) * - ( 35 ) + 77 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL + CAST ( CASE + 1 WHEN - 86 THEN + CAST ( NULL AS INTEGER ) * - ( 35 ) + 77 END AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT + ( COUNT( DISTINCT + 1 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8275
SELECT + ( COUNT ( DISTINCT + 1 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT - COUNT( * ) / - + CASE - ( + - COALESCE ( + + 76, 62 + + 98 ) ) WHEN - 39 / - 85 THEN COALESCE ( + ( 31 ), + + MIN( ALL + + 88 ) * + - 37 * 50 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8276
SELECT - COUNT ( * ) / - + CASE - ( + - COALESCE ( + + 76, 62 + + 98 ) ) WHEN - 39 / - 85 THEN COALESCE ( + ( 31 ), + + MIN ( ALL + + 88 ) * + - 37 * 50 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8277
SELECT + COUNT( * ) * + 64, ( + 84 ) + + 52 * - - 90 AS col1
----
64
4764

skipif mysql # not compatible
query II rowsort label-8277
SELECT + COUNT ( * ) * + 64, ( + 84 ) + + 52 * - - 90 AS col1
----
64
4764

query I rowsort
SELECT + + ( - 8 ) col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT - + 88 * - + 89 - COUNT( * ) AS col0
----
7831

skipif mysql # not compatible
query I rowsort label-8279
SELECT - + 88 * - + 89 - COUNT ( * ) AS col0
----
7831

query I rowsort
SELECT ( - + 46 ) * 26 - + ( 37 )
----
-1233

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT ALL COUNT( * ) * - 2 * + - SUM( - 98 ) col0
----
-196

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL COUNT ( * ) * - 2 * + - SUM ( - 98 ) col0
----
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-8282
SELECT DISTINCT + 90 + - 43 DIV + - 68 - - 17 * - 8 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-8282
SELECT DISTINCT + 90 + - 43 / + - 68 - - 17 * - 8 AS col0
----
-46

query I rowsort
SELECT - + 29 * 88 + 71 col1
----
-2481

query I rowsort
SELECT 5 * - 60 + - 47 AS col0
----
-347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8285
SELECT - 35 AS col2, - 22 DIV - COALESCE ( + 13, CAST( - - COUNT( * ) AS SIGNED ) ) + + 75
----
-35
76

skipif mysql # not compatible
query II rowsort label-8285
SELECT - 35 AS col2, - 22 / - COALESCE ( + 13, CAST ( - - COUNT ( * ) AS INTEGER ) ) + + 75
----
-35
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT 44 + 94 * - MAX( - 28 ) AS col0
----
2676

skipif mysql # not compatible
query I rowsort label-8286
SELECT 44 + 94 * - MAX ( - 28 ) AS col0
----
2676

query I rowsort
SELECT ALL 38 + - 12 * + 25 AS col0
----
-262

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT ( - 75 ) + - COUNT( * ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-8288
SELECT ( - 75 ) + - COUNT ( * ) col1
----
-76

query II rowsort
SELECT 78 AS col2, 62 * + - 82
----
78
-5084

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8290
SELECT 78 * + MAX( DISTINCT - 6 ) AS col0, CASE - - 51 WHEN 80 THEN ( AVG ( ALL - ( - - 35 ) ) ) * - 87 WHEN + CAST( NULL AS SIGNED ) + - COALESCE ( - - 7, 77 * - - ( + CAST( + 35 AS SIGNED ) ) - + 28 ) THEN + + 88 END AS col2
----
-468
NULL

skipif mysql # not compatible
query II rowsort label-8290
SELECT 78 * + MAX ( DISTINCT - 6 ) AS col0, CASE - - 51 WHEN 80 THEN ( AVG ( ALL - ( - - 35 ) ) ) * - 87 WHEN + CAST ( NULL AS INTEGER ) + - COALESCE ( - - 7, 77 * - - ( + CAST ( + 35 AS INTEGER ) ) - + 28 ) THEN + + 88 END AS col2
----
-468
NULL

query II rowsort
SELECT DISTINCT 56, - 4 AS col1
----
56
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8292
SELECT DISTINCT 37 - - 27 + + - CAST( NULL AS DECIMAL ) + + + COUNT( * ) - - COALESCE ( + + CAST( NULL AS SIGNED ), + 77 ) + 15 * - CASE - 36 WHEN + + 70 THEN NULL WHEN + 78 THEN 28 WHEN - 79 * 65 + 27 * + 65 * 25 THEN NULL ELSE 86 * + 55 * + CASE - 2 WHEN - - COALESCE ( - + 87, CAST( - + 61 AS SIGNED ) / + + ( 73 ) * - 63, - - 93 + + COUNT( * ) ) + 42 THEN - 20 * 7 * - 94 + + - 36 END * - 72 * CAST( NULL AS SIGNED ) + + + COUNT( * ) * + 68 + - 14 END * + + 77 - - 94 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT 37 - - 27 + + - CAST ( NULL AS REAL ) + + + COUNT ( * ) - - COALESCE ( + + CAST ( NULL AS INTEGER ), + 77 ) + 15 * - CASE - 36 WHEN + + 70 THEN NULL WHEN + 78 THEN 28 WHEN - 79 * 65 + 27 * + 65 * 25 THEN NULL ELSE 86 * + 55 * + CASE - 2 WHEN - - COALESCE ( - + 87, CAST ( - + 61 AS INTEGER ) / + + ( 73 ) * - 63, - - 93 + + COUNT ( * ) ) + 42 THEN - 20 * 7 * - 94 + + - 36 END * - 72 * CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * + 68 + - 14 END * + + 77 - - 94 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT 98 + + MIN( DISTINCT - + ( + 8 ) ) - + 74
----
16

skipif mysql # not compatible
query I rowsort label-8293
SELECT 98 + + MIN ( DISTINCT - + ( + 8 ) ) - + 74
----
16

query I rowsort
SELECT ALL 72 - + 58
----
14

query I rowsort
SELECT 68 * + 59 AS col2
----
4012

query I rowsort
SELECT 4 * - NULLIF ( - 27, 71 )
----
108

query I rowsort
SELECT ( + 52 ) * - 19 AS col0
----
-988

query II rowsort
SELECT 13 * + CASE 4 WHEN + - 97 THEN 52 / + + 94 END AS col1, - 73 AS col1
----
NULL
-73

query II rowsort
SELECT 94 col2, - 32 AS col1
----
94
-32

query II rowsort
SELECT 2, - 89 AS col1
----
2
-89

query II rowsort
SELECT DISTINCT 28 AS col2, 40 AS col2
----
28
40

onlyif mysql # aggregate syntax: 
query II rowsort label-8302
SELECT DISTINCT 30, 53 + COUNT( * ) AS col1
----
30
54

skipif mysql # not compatible
query II rowsort label-8302
SELECT DISTINCT 30, 53 + COUNT ( * ) AS col1
----
30
54

query I rowsort
SELECT DISTINCT - - ( + + 37 )
----
37

query I rowsort
SELECT + 44 * 20
----
880

query I rowsort
SELECT 78 * - 44 AS col1
----
-3432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8306
SELECT ALL - COALESCE ( + 88, + 59 * + COUNT( * ) DIV - - ( 60 ) * - + SUM( - 42 ) + - + 79 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL - COALESCE ( + 88, + 59 * + COUNT ( * ) / - - ( 60 ) * - + SUM ( - 42 ) + - + 79 ) AS col2
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT + - ( - ( - + CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8307
SELECT + - ( - ( - + CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT COALESCE ( 70, + 78, 16 )
----
70

query I rowsort
SELECT - 36 - + + 20
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-8310
SELECT 71 DIV - 64
----
-1

skipif mysql # not compatible
query I rowsort label-8310
SELECT 71 / - 64
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8311
SELECT 58 + - - 89 * 31 AS col0, MAX( - 94 ) * - MIN( + 42 )
----
2817
3948

skipif mysql # not compatible
query II rowsort label-8311
SELECT 58 + - - 89 * 31 AS col0, MAX ( - 94 ) * - MIN ( + 42 )
----
2817
3948

query I rowsort
SELECT - 94 + + 5 col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT ALL + COUNT( DISTINCT + + ( - 76 ) ) + 38 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL + COUNT ( DISTINCT + + ( - 76 ) ) + 38 AS col2
----
39

query I rowsort
SELECT DISTINCT - CASE - 8 WHEN 97 THEN + + 30 * 55 * + - 2 / 99 + + 21 + 67 WHEN 54 THEN - 89 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8315
SELECT ALL - + CAST( NULL AS SIGNED ) + - 77 + - + 59 - - - 92 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL - + CAST ( NULL AS INTEGER ) + - 77 + - + 59 - - - 92 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8316
SELECT + 93 * 90 + - + COUNT( * ) AS col2, ( - + 86 )
----
8369
-86

skipif mysql # not compatible
query II rowsort label-8316
SELECT + 93 * 90 + - + COUNT ( * ) AS col2, ( - + 86 )
----
8369
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT + 6 * + COUNT( * ) + + 15 * - 63 + + - 51 AS col2
----
-990

skipif mysql # not compatible
query I rowsort label-8317
SELECT + 6 * + COUNT ( * ) + + 15 * - 63 + + - 51 AS col2
----
-990

query I rowsort
SELECT ALL + + 97 + 78 + + - 70 AS col0
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-8319
SELECT - 83 * - ( 78 ) AS col1, - COUNT( * )
----
6474
-1

skipif mysql # not compatible
query II rowsort label-8319
SELECT - 83 * - ( 78 ) AS col1, - COUNT ( * )
----
6474
-1

query II rowsort
SELECT + - 76 AS col2, 0 + 88 + - 69 * - 24 * + + 46 + + 90 AS col2
----
-76
76354

query I rowsort
SELECT 19 + - 31 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT DISTINCT COUNT( - 84 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8322
SELECT DISTINCT COUNT ( - 84 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT ALL COUNT( * ) + + - 57 + - 90 AS col0
----
-146

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL COUNT ( * ) + + - 57 + - 90 AS col0
----
-146

query I rowsort
SELECT ALL + 61 * - + 4 AS col2
----
-244

query I rowsort
SELECT 59 * - 81
----
-4779

query I rowsort
SELECT 78 - + 16 * 23 AS col2
----
-290

query I rowsort
SELECT 13 * - 34 * + 60
----
-26520

query II rowsort
SELECT 84 + + 99 * + - 91 * - 27, 34 * + 6 AS col1
----
243327
204

query I rowsort
SELECT DISTINCT 83 * + 88 AS col1
----
7304

query I rowsort
SELECT ALL 18 * + - ( - 75 )
----
1350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8331
SELECT 3 DIV - SUM( ALL - + 62 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8331
SELECT 3 / - SUM ( ALL - + 62 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8332
SELECT ALL 30 DIV + 27 AS col1, 24
----
1
24

skipif mysql # not compatible
query II rowsort label-8332
SELECT ALL 30 / + 27 AS col1, 24
----
1
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8333
SELECT 4 DIV 18 col1
----
0

skipif mysql # not compatible
query I rowsort label-8333
SELECT 4 / 18 col1
----
0

query I rowsort
SELECT 47 + 22 * - 42 AS col0
----
-877

onlyif mysql # DIV for integer division: 
query I rowsort label-8335
SELECT ALL + + 13 * - 18 + - 12 + + 58 DIV + 82 + + - 77
----
-323

skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL + + 13 * - 18 + - 12 + + 58 / + 82 + + - 77
----
-323

query II rowsort
SELECT + + ( 2 ) * 30 * + + 93 AS col1, + 20
----
5580
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT DISTINCT - 72 * + 39 * 79 - + COUNT( * ) + + 16 * - - 3 * - NULLIF ( 72, - ( - 88 ) ) + - - 17
----
-225272

skipif mysql # not compatible
query I rowsort label-8337
SELECT DISTINCT - 72 * + 39 * 79 - + COUNT ( * ) + + 16 * - - 3 * - NULLIF ( 72, - ( - 88 ) ) + - - 17
----
-225272

query I rowsort
SELECT ALL - - 63 * - - 14 + - 2 + - - 90
----
970

query I rowsort
SELECT NULLIF ( + 43, - - 68 + 18 )
----
43

query I rowsort
SELECT - - ( + 33 ) - + 99 AS col2
----
-66

query I rowsort
SELECT - - 69 * + - 81 AS col1
----
-5589

query I rowsort
SELECT DISTINCT - 56 * 21 + + + COALESCE ( 91, - + 23 )
----
-1085

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT DISTINCT COUNT( * ) * COUNT( * ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8343
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * - COUNT ( * )
----
-1

query I rowsort
SELECT - 38 * - + 93
----
3534

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT ALL + NULLIF ( 96, - CASE 81 WHEN COUNT( DISTINCT 76 ) THEN NULL WHEN + + 53 THEN 11 END * NULLIF ( - COUNT( ALL - 85 ), - 69 + + SUM( 32 ) + - - SUM( DISTINCT + 69 ) ) )
----
96

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL + NULLIF ( 96, - CASE 81 WHEN COUNT ( DISTINCT 76 ) THEN NULL WHEN + + 53 THEN 11 END * NULLIF ( - COUNT ( ALL - 85 ), - 69 + + SUM ( 32 ) + - - SUM ( DISTINCT + 69 ) ) )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL 85 * - 11 * + 48 * + COUNT( * )
----
-44880

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL 85 * - 11 * + 48 * + COUNT ( * )
----
-44880

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT ALL - 3 - COALESCE ( + 70, + + ( + COUNT( * ) ) ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL - 3 - COALESCE ( + 70, + + ( + COUNT ( * ) ) ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT - 2 * - 12 * COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8348
SELECT - 2 * - 12 * COUNT ( * ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT - ( + 41 ) + + + ( + COUNT( * ) )
----
-40

skipif mysql # not compatible
query I rowsort label-8349
SELECT - ( + 41 ) + + + ( + COUNT ( * ) )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8350
SELECT DISTINCT ( CASE + + 75 WHEN 9 * CAST( NULL AS SIGNED ) + + - 75 THEN NULL ELSE 87 + 61 END )
----
148

skipif mysql # not compatible
query I rowsort label-8350
SELECT DISTINCT ( CASE + + 75 WHEN 9 * CAST ( NULL AS INTEGER ) + + - 75 THEN NULL ELSE 87 + 61 END )
----
148

query I rowsort
SELECT ALL + 76 * 61 AS col1
----
4636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8352
SELECT - CASE + 17 WHEN - - CAST( NULL AS SIGNED ) THEN NULL ELSE + CASE + NULLIF ( 38, + 95 + - - 66 + + NULLIF ( + - 68, - - 31 * - + 46 + + 50 * - 81 - - 15 + - MIN( - 34 ) ) * - - CAST( + + 24 AS SIGNED ) ) WHEN COUNT( DISTINCT 11 ) + + CASE + 16 WHEN - COUNT( * ) * - - 10 THEN - 98 * 70 + + + 32 + + ( + - 39 ) * + - 25 END THEN - 53 END + 36 * - 18 END + + ( - + 14 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8352
SELECT - CASE + 17 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL ELSE + CASE + NULLIF ( 38, + 95 + - - 66 + + NULLIF ( + - 68, - - 31 * - + 46 + + 50 * - 81 - - 15 + - MIN ( - 34 ) ) * - - CAST ( + + 24 AS INTEGER ) ) WHEN COUNT ( DISTINCT 11 ) + + CASE + 16 WHEN - COUNT ( * ) * - - 10 THEN - 98 * 70 + + + 32 + + ( + - 39 ) * + - 25 END THEN - 53 END + 36 * - 18 END + + ( - + 14 ) AS col0
----
NULL

query I rowsort
SELECT ALL 43 * 85 AS col2
----
3655

query I rowsort
SELECT - 48 * - - 70 AS col0
----
-3360

query I rowsort
SELECT ALL NULLIF ( 98, - 76 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT ALL - COUNT( * ) * - 80 col1
----
80

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL - COUNT ( * ) * - 80 col1
----
80

query II rowsort
SELECT + 18 * 30 * + 78, 75 AS col1
----
42120
75

query I rowsort
SELECT + 77 + 60 + + 73 * 77 * 44 + + + 43
----
247504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8359
SELECT + 87 + CAST( NULL AS SIGNED ) + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8359
SELECT + 87 + CAST ( NULL AS INTEGER ) + + 87
----
NULL

query III rowsort
SELECT - - NULLIF ( + + 78, - + 20 ) AS col2, 87 - - ( - 0 ) AS col0, 8 AS col2
----
78
87
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8361
SELECT + + ( - 44 ) DIV + 58 - 94 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-8361
SELECT + + ( - 44 ) / + 58 - 94 AS col1
----
-94

query I rowsort
SELECT ALL - 86 + 25 AS col0
----
-61

query I rowsort
SELECT - - 80 + 55 + + 43 - 95 * + 15 * + 19
----
-26897

query I rowsort
SELECT + + 47 * + 73 + + - 26
----
3405

query I rowsort
SELECT ALL 32 + - 61
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT 39 * 33 - 1 + COUNT( * ) AS col1
----
1287

skipif mysql # not compatible
query I rowsort label-8366
SELECT 39 * 33 - 1 + COUNT ( * ) AS col1
----
1287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8367
SELECT DISTINCT - - 84 / - CAST( NULL AS SIGNED ) + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT - - 84 / - CAST ( NULL AS INTEGER ) + - 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT + - MIN( ALL - 6 )
----
6

skipif mysql # not compatible
query I rowsort label-8368
SELECT + - MIN ( ALL - 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT CASE - COUNT( * ) WHEN 19 THEN - 72 WHEN COUNT( * ) / + 5 * - 47 THEN - - 44 WHEN 17 - 81 + 48 * + - 42 THEN NULL END * + COUNT( * ) + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-8369
SELECT CASE - COUNT ( * ) WHEN 19 THEN - 72 WHEN COUNT ( * ) / + 5 * - 47 THEN - - 44 WHEN 17 - 81 + 48 * + - 42 THEN NULL END * + COUNT ( * ) + + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT + - MAX( - 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-8370
SELECT + - MAX ( - 93 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ALL + COALESCE ( - 78, + COUNT( * ) + + 49 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL + COALESCE ( - 78, + COUNT ( * ) + + 49 ) AS col2
----
-78

query I rowsort
SELECT + NULLIF ( + 88, - NULLIF ( + - 22, 66 ) )
----
88

query I rowsort
SELECT + - ( - 33 ) + - + NULLIF ( - 46, ( 18 ) )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8374
SELECT ALL - 67 DIV + + 99 + + 1 - - - ( + 35 ) DIV + + COUNT( * ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL - 67 / + + 99 + + 1 - - - ( + 35 ) / + + COUNT ( * ) AS col1
----
-34

query I rowsort
SELECT ALL + + ( + 83 )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8376
SELECT + + MIN( DISTINCT - 48 ) + - CAST( NULL AS SIGNED ) * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-8376
SELECT + + MIN ( DISTINCT - 48 ) + - CAST ( NULL AS INTEGER ) * 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT DISTINCT + COALESCE ( 92, + 48 * 54, + CASE COALESCE ( 32, + COUNT( * ) ) WHEN ( 90 ) * 82 THEN - + 77 + COUNT( * ) ELSE NULL END + 22 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-8377
SELECT DISTINCT + COALESCE ( 92, + 48 * 54, + CASE COALESCE ( 32, + COUNT ( * ) ) WHEN ( 90 ) * 82 THEN - + 77 + COUNT ( * ) ELSE NULL END + 22 ) AS col1
----
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8378
SELECT ALL - 7 * + COALESCE ( + 51, - 76 + - CAST( NULL AS SIGNED ), - - 92 DIV - 96 DIV + 84 + CAST( NULL AS SIGNED ) ) AS col2
----
-357

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL - 7 * + COALESCE ( + 51, - 76 + - CAST ( NULL AS INTEGER ), - - 92 / - 96 / + 84 + CAST ( NULL AS INTEGER ) ) AS col2
----
-357

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT + 49 * + 63 * - 77 * + COALESCE ( - - ( - - 70 ), + MAX( DISTINCT + 53 ) ) + - + 81 col1
----
-16639011

skipif mysql # not compatible
query I rowsort label-8379
SELECT + 49 * + 63 * - 77 * + COALESCE ( - - ( - - 70 ), + MAX ( DISTINCT + 53 ) ) + - + 81 col1
----
-16639011

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8380
SELECT ( - - 15 ) AS col1, CAST( NULL AS DECIMAL )
----
15
NULL

skipif mysql # not compatible
query II rowsort label-8380
SELECT ( - - 15 ) AS col1, CAST ( NULL AS REAL )
----
15
NULL

query I rowsort
SELECT + 61 * - - 9 col1
----
549

query I rowsort
SELECT - 85 * - 71
----
6035

query II rowsort
SELECT ALL + ( - 82 ), NULLIF ( + - 90, + + CASE + + 33 WHEN + 60 THEN 30 WHEN - + 61 - 10 THEN NULL ELSE + 72 END ) col2
----
-82
-90

query I rowsort
SELECT NULLIF ( + - 56, - ( 51 ) ) col2
----
-56

query I rowsort
SELECT COALESCE ( - COALESCE ( + - 66, - + 67, - 70 + + - 63 ), 2 * - 96 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT - NULLIF ( + 68, + ( + COUNT( * ) ) + COALESCE ( + 77, 5 ) / - - 40 * 45 + COUNT( + + 92 ) + + + 61 + + 47 ) * - 28 AS col1
----
1904

skipif mysql # not compatible
query I rowsort label-8386
SELECT - NULLIF ( + 68, + ( + COUNT ( * ) ) + COALESCE ( + 77, 5 ) / - - 40 * 45 + COUNT ( + + 92 ) + + + 61 + + 47 ) * - 28 AS col1
----
1904

onlyif mysql # aggregate syntax: 
query II rowsort label-8387
SELECT DISTINCT 54 * - 81 AS col2, + COUNT( * ) AS col0
----
-4374
1

skipif mysql # not compatible
query II rowsort label-8387
SELECT DISTINCT 54 * - 81 AS col2, + COUNT ( * ) AS col0
----
-4374
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT ALL NULLIF ( + - COUNT( + 4 ), + + NULLIF ( 78, + 18 ) + + 93 + - + 64 / COUNT( * ) + - 24 * + 21 / + COUNT( ALL + 44 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL NULLIF ( + - COUNT ( + 4 ), + + NULLIF ( 78, + 18 ) + + 93 + - + 64 / COUNT ( * ) + - 24 * + 21 / + COUNT ( ALL + 44 ) ) col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8389
SELECT ALL + CAST( NULL AS SIGNED ) / + - ( + - COALESCE ( + - COALESCE ( + ( + + 0 ), + 53 / + CASE - + 82 WHEN + NULLIF ( - 31, 71 / + COUNT( * ) * + COUNT( * ) * + + 42 + + 46 * - 97 + + COALESCE ( + 21, + - 18 ) + ( + CAST( NULL AS SIGNED ) ) ) THEN + 20 END ), - 29 - - 10, 31 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL + CAST ( NULL AS INTEGER ) / + - ( + - COALESCE ( + - COALESCE ( + ( + + 0 ), + 53 / + CASE - + 82 WHEN + NULLIF ( - 31, 71 / + COUNT ( * ) * + COUNT ( * ) * + + 42 + + 46 * - 97 + + COALESCE ( + 21, + - 18 ) + ( + CAST ( NULL AS INTEGER ) ) ) THEN + 20 END ), - 29 - - 10, 31 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8390
SELECT ALL ( CAST( - ( - 49 ) AS SIGNED ) )
----
49

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL ( CAST ( - ( - 49 ) AS INTEGER ) )
----
49

query I rowsort
SELECT DISTINCT - 0 + + 68
----
68

query II rowsort
SELECT 12 AS col0, + 53
----
12
53

query II rowsort
SELECT 47 AS col2, + 77 * + 74 * 1
----
47
5698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8394
SELECT ALL - + COUNT( * ) + - 8 DIV - + 5
----
0

skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL - + COUNT ( * ) + - 8 / - + 5
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8395
SELECT CAST( NULL AS SIGNED ) - + - 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8395
SELECT CAST ( NULL AS INTEGER ) - + - 43 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8396
SELECT + COUNT( * ) * - + COALESCE ( - 19, - 60 + - + 97, + - COUNT( * ), + + 79 ) AS col0, + 78 + + - 94 + - 72 * 94 * + 92 + 49
----
19
-622623

skipif mysql # not compatible
query II rowsort label-8396
SELECT + COUNT ( * ) * - + COALESCE ( - 19, - 60 + - + 97, + - COUNT ( * ), + + 79 ) AS col0, + 78 + + - 94 + - 72 * 94 * + 92 + 49
----
19
-622623

query I rowsort
SELECT ALL - 96 + - - 26 AS col0
----
-70

query II rowsort
SELECT 34, 9 col1
----
34
9

query I rowsort
SELECT ALL - 74 + - 99 AS col1
----
-173

query I rowsort
SELECT DISTINCT - - 66 + + 75
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT ALL - NULLIF ( + 11, COUNT( * ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL - NULLIF ( + 11, COUNT ( * ) ) AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8402
SELECT 33 + 54 - - + 1 * + - ( AVG ( 4 ) ) / - - 46 + SUM( DISTINCT - - CAST( NULL AS DECIMAL ) ) - - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-8402
SELECT 33 + 54 - - + 1 * + - ( AVG ( 4 ) ) / - - 46 + SUM ( DISTINCT - - CAST ( NULL AS REAL ) ) - - 75
----
NULL

query I rowsort
SELECT ALL + - 91 + + + 50
----
-41

query I rowsort
SELECT 51 * - + ( + - ( - 28 ) ) AS col2
----
-1428

query I rowsort
SELECT ALL - 97 * 84 - + - 24 col1
----
-8124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8406
SELECT - 14 col0, - 68 * + - CAST( + - SUM( ALL 20 ) AS SIGNED ) + + COUNT( * ) * - - 24 DIV COUNT( - ( - 44 ) ) - + 96
----
-14
-1432

skipif mysql # not compatible
query II rowsort label-8406
SELECT - 14 col0, - 68 * + - CAST ( + - SUM ( ALL 20 ) AS INTEGER ) + + COUNT ( * ) * - - 24 / COUNT ( - ( - 44 ) ) - + 96
----
-14
-1432

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT ALL - 86 * + - 38 * - + COUNT( * ) AS col0
----
-3268

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL - 86 * + - 38 * - + COUNT ( * ) AS col0
----
-3268

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8408
SELECT CAST( 11 AS SIGNED ) * - - 8, - 70 AS col2
----
88
-70

skipif mysql # not compatible
query II rowsort label-8408
SELECT CAST ( 11 AS INTEGER ) * - - 8, - 70 AS col2
----
88
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8409
SELECT ALL SUM( ALL - 49 ) * MIN( ALL 28 ) + - 10 * - - CAST( + + COUNT( * ) AS SIGNED ) + - 94 AS col0
----
-1476

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL SUM ( ALL - 49 ) * MIN ( ALL 28 ) + - 10 * - - CAST ( + + COUNT ( * ) AS INTEGER ) + - 94 AS col0
----
-1476

onlyif mysql # DIV for integer division: 
query I rowsort label-8410
SELECT 17 DIV + 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8410
SELECT 17 / + 74 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8411
SELECT CASE + - CASE - SUM( + 5 ) WHEN + 89 THEN NULL WHEN + ( - COUNT( ALL + 25 ) ) THEN NULL ELSE COUNT( * ) END WHEN + + 72 * + - 0 THEN + 85 WHEN + 24 + + 83 THEN + - ( 71 ) END * + 49 AS col2, 30 AS col1
----
NULL
30

skipif mysql # not compatible
query II rowsort label-8411
SELECT CASE + - CASE - SUM ( + 5 ) WHEN + 89 THEN NULL WHEN + ( - COUNT ( ALL + 25 ) ) THEN NULL ELSE COUNT ( * ) END WHEN + + 72 * + - 0 THEN + 85 WHEN + 24 + + 83 THEN + - ( 71 ) END * + 49 AS col2, 30 AS col1
----
NULL
30

query I rowsort
SELECT ALL 14 + - NULLIF ( + 48, + 16 )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8413
SELECT ALL - CAST( NULL AS SIGNED ) + + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL - CAST ( NULL AS INTEGER ) + + 18 AS col2
----
NULL

query I rowsort
SELECT 13 - + 21 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-8415
SELECT ALL COUNT( DISTINCT + 95 ) + + 42 - + SUM( DISTINCT + 3 ) * + 24 * - 79 AS col1, 50
----
5731
50

skipif mysql # not compatible
query II rowsort label-8415
SELECT ALL COUNT ( DISTINCT + 95 ) + + 42 - + SUM ( DISTINCT + 3 ) * + 24 * - 79 AS col1, 50
----
5731
50

query I rowsort
SELECT 23 - - 6
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8417
SELECT 97 + + 83 + - 19 * + CAST( NULL AS SIGNED ) * - - 42 + 85 * 59 * - + 2 * NULLIF ( - 68, 8 ) * 65 / NULLIF ( - - ( - NULLIF ( 54, - - 32 / 85 + + 9 + - + NULLIF ( - 15, + MIN( - ( - 60 ) ) ) ) ), + 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8417
SELECT 97 + + 83 + - 19 * + CAST ( NULL AS INTEGER ) * - - 42 + 85 * 59 * - + 2 * NULLIF ( - 68, 8 ) * 65 / NULLIF ( - - ( - NULLIF ( 54, - - 32 / 85 + + 9 + - + NULLIF ( - 15, + MIN ( - ( - 60 ) ) ) ) ), + 5 )
----
NULL

query I rowsort
SELECT ALL 60 + - 88
----
-28

query I rowsort
SELECT 42 * + ( - 22 ) AS col0
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ( 41 ) + + MIN( + 99 ) * + 53 + + 33 + 98 * + 58 * + - 76 col2
----
-426663

skipif mysql # not compatible
query I rowsort label-8420
SELECT ( 41 ) + + MIN ( + 99 ) * + 53 + + 33 + 98 * + 58 * + - 76 col2
----
-426663

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT DISTINCT CASE ( - 23 ) WHEN + - 36 THEN NULL WHEN + 44 * - 90 + - + COUNT( * ) * + 21 + 16 THEN 37 * - 77 / - + 93 WHEN + - 96 THEN NULL END + - 66 - - + 31 * - 63 + NULLIF ( + 0, - 90 * + + 19 + + + 75 + - + 6 * 44 * + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT CASE ( - 23 ) WHEN + - 36 THEN NULL WHEN + 44 * - 90 + - + COUNT ( * ) * + 21 + 16 THEN 37 * - 77 / - + 93 WHEN + - 96 THEN NULL END + - 66 - - + 31 * - 63 + NULLIF ( + 0, - 90 * + + 19 + + + 75 + - + 6 * 44 * + COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 5 + - 58
----
-53

query I rowsort
SELECT ALL - 45 + + 69
----
24

query I rowsort
SELECT 71 + + 26 + + ( + + 72 ) AS col0
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT + 71 + + COUNT( * ) * COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-8425
SELECT + 71 + + COUNT ( * ) * COUNT ( * ) AS col1
----
72

query II rowsort
SELECT + 11 * + + 87 AS col0, ( - - 66 ) * - 65 AS col0
----
957
-4290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8427
SELECT ALL - COALESCE ( + + 77, - 8 * - 87 * - + 75 * MIN( DISTINCT + 98 ) ) DIV - ( - + 29 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL - COALESCE ( + + 77, - 8 * - 87 * - + 75 * MIN ( DISTINCT + 98 ) ) / - ( - + 29 ) AS col0
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-8428
SELECT - 38 DIV 59 * ( - - 17 ) + + 96 col2, + 14
----
96
14

skipif mysql # not compatible
query II rowsort label-8428
SELECT - 38 / 59 * ( - - 17 ) + + 96 col2, + 14
----
96
14

query I rowsort
SELECT ALL - ( + + 33 ) * 8
----
-264

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8430
SELECT 27 + 84 * - 7 * 13 * + + 90 AS col0, - MIN( - - 27 ) DIV - - 49 * - NULLIF ( 50, + 63 * + 90 + + 75 )
----
-687933
0

skipif mysql # not compatible
query II rowsort label-8430
SELECT 27 + 84 * - 7 * 13 * + + 90 AS col0, - MIN ( - - 27 ) / - - 49 * - NULLIF ( 50, + 63 * + 90 + + 75 )
----
-687933
0

query I rowsort
SELECT + ( 49 ) * + 4 col1
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT ALL + - COUNT( - 12 ) * - 38 - - - 11
----
27

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL + - COUNT ( - 12 ) * - 38 - - - 11
----
27

query II rowsort
SELECT + 29 AS col2, + 28
----
29
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT MAX( DISTINCT + + 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-8434
SELECT MAX ( DISTINCT + + 44 ) AS col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8435
SELECT ALL - COUNT( * ) AS col2, + MAX( - ( + 33 ) ) * - COUNT( ALL - 89 ) DIV 90 + - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-8435
SELECT ALL - COUNT ( * ) AS col2, + MAX ( - ( + 33 ) ) * - COUNT ( ALL - 89 ) / 90 + - COUNT ( * )
----
-1
-1

query I rowsort
SELECT 72 * - 7 AS col2
----
-504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT NULLIF ( - NULLIF ( 33, + 40 ), - + 91 * - CAST( NULL AS SIGNED ) * 64 + - - 73 * + 17 * + + NULLIF ( + CAST( NULL AS SIGNED ), - 27 ) + - 48 ) * 15 + 83 + - 12 * + 18
----
-628

skipif mysql # not compatible
query I rowsort label-8437
SELECT NULLIF ( - NULLIF ( 33, + 40 ), - + 91 * - CAST ( NULL AS INTEGER ) * 64 + - - 73 * + 17 * + + NULLIF ( + CAST ( NULL AS INTEGER ), - 27 ) + - 48 ) * 15 + 83 + - 12 * + 18
----
-628

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT ALL - MIN( - + 29 ) * 68 * + 67 + - - COUNT( * ) AS col2
----
132125

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL - MIN ( - + 29 ) * 68 * + 67 + - - COUNT ( * ) AS col2
----
132125

onlyif mysql # DIV for integer division: 
query I rowsort label-8439
SELECT DISTINCT - 72 DIV - 56
----
1

skipif mysql # not compatible
query I rowsort label-8439
SELECT DISTINCT - 72 / - 56
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT - 96 * - 85 + - + COUNT( * ) AS col2
----
8159

skipif mysql # not compatible
query I rowsort label-8440
SELECT - 96 * - 85 + - + COUNT ( * ) AS col2
----
8159

onlyif mysql # DIV for integer division: 
query I rowsort label-8441
SELECT - 72 DIV - 14 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8441
SELECT - 72 / - 14 AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8442
SELECT 81 * 82 + + - 11 * 73 DIV - 29 col0
----
6669

skipif mysql # not compatible
query I rowsort label-8442
SELECT 81 * 82 + + - 11 * 73 / - 29 col0
----
6669

onlyif mysql # aggregate syntax: 
query II rowsort label-8443
SELECT COUNT( * ), 39 * - - ( 61 ) * 75 * 65 + COALESCE ( COUNT( * ), - 58, + + 44 - - 85 ) AS col0
----
1
11597626

skipif mysql # not compatible
query II rowsort label-8443
SELECT COUNT ( * ), 39 * - - ( 61 ) * 75 * 65 + COALESCE ( COUNT ( * ), - 58, + + 44 - - 85 ) AS col0
----
1
11597626

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT + 54 + COUNT( + + 3 ) col2
----
55

skipif mysql # not compatible
query I rowsort label-8444
SELECT + 54 + COUNT ( + + 3 ) col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT SUM( + 93 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-8445
SELECT SUM ( + 93 ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT + NULLIF ( - - 15, - + COUNT( * ) * - - 19 + 8 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-8446
SELECT + NULLIF ( - - 15, - + COUNT ( * ) * - - 19 + 8 ) AS col0
----
15

query I rowsort
SELECT + 42 * - 24
----
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT + 48 + - COALESCE ( SUM( ALL 54 ), - 35 * 74 )
----
-6

skipif mysql # not compatible
query I rowsort label-8448
SELECT + 48 + - COALESCE ( SUM ( ALL 54 ), - 35 * 74 )
----
-6

query I rowsort
SELECT DISTINCT 65 + + COALESCE ( 20, - 13 - - 18 + + + 64 + - 67 ) AS col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8450
SELECT ALL COALESCE ( + 21, 8 + + COUNT( * ), - - 44 * - 42, + MAX( ALL + + ( ( 34 ) ) ) ) + CASE - - 20 WHEN + + ( + 79 ) * 65 THEN + COUNT( * ) * + + 18 DIV - + MIN( + 35 ) ELSE - + SUM( + + 37 ) END col1, 54 col2
----
-16
54

skipif mysql # not compatible
query II rowsort label-8450
SELECT ALL COALESCE ( + 21, 8 + + COUNT ( * ), - - 44 * - 42, + MAX ( ALL + + ( ( 34 ) ) ) ) + CASE - - 20 WHEN + + ( + 79 ) * 65 THEN + COUNT ( * ) * + + 18 / - + MIN ( + 35 ) ELSE - + SUM ( + + 37 ) END col1, 54 col2
----
-16
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8451
SELECT DISTINCT 25 AS col0, CAST( NULL AS SIGNED ) * + ( - - 10 ) AS col1
----
25
NULL

skipif mysql # not compatible
query II rowsort label-8451
SELECT DISTINCT 25 AS col0, CAST ( NULL AS INTEGER ) * + ( - - 10 ) AS col1
----
25
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8452
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + 25
----
NULL

query I rowsort
SELECT + + 68 * 54
----
3672

query I rowsort
SELECT + 51 + + - 31
----
20

query III rowsort
SELECT - - 85 AS col0, CASE + 63 WHEN + 94 * + + 50 THEN + 69 ELSE NULL END AS col1, - 43 col1
----
85
NULL
-43

query I rowsort
SELECT - 65 + - 84
----
-149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8457
SELECT ALL CAST( NULL AS SIGNED ) - - 25 * + + COUNT( * ) * 9 AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8457
SELECT ALL CAST ( NULL AS INTEGER ) - - 25 * + + COUNT ( * ) * 9 AS col2, COUNT ( * )
----
NULL
1

query I rowsort
SELECT - 78 * 74 col1
----
-5772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8459
SELECT DISTINCT - + MIN( ALL + 76 ) * CAST( NULL AS SIGNED ) AS col0, ( - 74 ) + + COUNT( * ) AS col1
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-8459
SELECT DISTINCT - + MIN ( ALL + 76 ) * CAST ( NULL AS INTEGER ) AS col0, ( - 74 ) + + COUNT ( * ) AS col1
----
NULL
-73

query I rowsort
SELECT + 36 - + 46 * - 49 AS col0
----
2290

query I rowsort
SELECT ALL - 52 - + 56 AS col2
----
-108

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8462
SELECT DISTINCT + 70, - 16 * 27 DIV COUNT( * ) + - + ( + + 94 ) AS col0
----
70
-526

skipif mysql # not compatible
query II rowsort label-8462
SELECT DISTINCT + 70, - 16 * 27 / COUNT ( * ) + - + ( + + 94 ) AS col0
----
70
-526

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT DISTINCT 23 * - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT 23 * - COUNT ( * )
----
-23

query I rowsort
SELECT - 67 + + 40
----
-27

query I rowsort
SELECT + 11 * - 76
----
-836

onlyif mysql # aggregate syntax: 
query II rowsort label-8466
SELECT - CASE - - 59 WHEN COUNT( * ) THEN NULL ELSE - 12 + - - 50 END + - 0 AS col0, + 9 AS col0
----
-38
9

skipif mysql # not compatible
query II rowsort label-8466
SELECT - CASE - - 59 WHEN COUNT ( * ) THEN NULL ELSE - 12 + - - 50 END + - 0 AS col0, + 9 AS col0
----
-38
9

query I rowsort
SELECT + COALESCE ( ( 52 ), 74 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT DISTINCT - ( + + MAX( + - 15 ) ) col0
----
15

skipif mysql # not compatible
query I rowsort label-8468
SELECT DISTINCT - ( + + MAX ( + - 15 ) ) col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8469
SELECT - 62 + 95 * - CASE + + 43 WHEN + SUM( - 60 ) THEN - - COUNT( * ) * NULLIF ( 14, + 72 ) - + CAST( - 69 AS SIGNED ) WHEN - 16 * + 77 * - 33 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8469
SELECT - 62 + 95 * - CASE + + 43 WHEN + SUM ( - 60 ) THEN - - COUNT ( * ) * NULLIF ( 14, + 72 ) - + CAST ( - 69 AS INTEGER ) WHEN - 16 * + 77 * - 33 THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8470
SELECT DISTINCT + 55 DIV + - 27 + + 30
----
28

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT + 55 / + - 27 + + 30
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8471
SELECT ALL - 58 DIV + 61 DIV - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL - 58 / + 61 / - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT ALL - 22 * - 98 * + + MAX( ALL + 74 ) + COUNT( 39 ) + - 28 + - - 24 + - 38 + 81 * - 77 * - COALESCE ( + 9, - + 43 ) * - - 76
----
4425611

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL - 22 * - 98 * + + MAX ( ALL + 74 ) + COUNT ( 39 ) + - 28 + - - 24 + - 38 + 81 * - 77 * - COALESCE ( + 9, - + 43 ) * - - 76
----
4425611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8473
SELECT ALL + CASE - 43 WHEN + ( 83 ) THEN + - 39 WHEN 40 - - 14 THEN NULL ELSE NULL END * - COUNT( * ) + - + CASE + 23 WHEN + + 12 THEN - 41 ELSE + 67 * - 70 * CAST( + + 30 AS SIGNED ) + - 10 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL + CASE - 43 WHEN + ( 83 ) THEN + - 39 WHEN 40 - - 14 THEN NULL ELSE NULL END * - COUNT ( * ) + - + CASE + 23 WHEN + + 12 THEN - 41 ELSE + 67 * - 70 * CAST ( + + 30 AS INTEGER ) + - 10 END AS col2
----
NULL

query I rowsort
SELECT ( + - 86 ) AS col0
----
-86

query I rowsort
SELECT DISTINCT - COALESCE ( - 78, ( - + 60 ) ) * 69 + + - ( - 65 )
----
5447

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT ALL + 45 * - 76 + - 43 * + MIN( + 90 )
----
-7290

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL + 45 * - 76 + - 43 * + MIN ( + 90 )
----
-7290

query I rowsort
SELECT - 42 - - + 79 + + 20 * - 71 AS col2
----
-1383

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT ALL - NULLIF ( - COUNT( * ), 25 ) * 84 + + + 85 + - NULLIF ( + 18, 83 * - COUNT( * ) * + - COUNT( * ) + - 91 - - 78 * + - MAX( ALL - - 89 ) )
----
151

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL - NULLIF ( - COUNT ( * ), 25 ) * 84 + + + 85 + - NULLIF ( + 18, 83 * - COUNT ( * ) * + - COUNT ( * ) + - 91 - - 78 * + - MAX ( ALL - - 89 ) )
----
151

query I rowsort
SELECT ALL 4 * - 53 - - NULLIF ( 79, 48 * + 89 )
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT + MAX( + - 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-8480
SELECT + MAX ( + - 51 ) AS col1
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8481
SELECT ALL - ( 90 ) DIV + 19 DIV COUNT( + 0 )
----
-4

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL - ( 90 ) / + 19 / COUNT ( + 0 )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8482
SELECT + 26 - - CAST( NULL AS SIGNED ) / 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8482
SELECT + 26 - - CAST ( NULL AS INTEGER ) / 43 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT - 13 * SUM( 15 ) + - COUNT( * ) - COUNT( - - ( + - 35 ) ) AS col1
----
-197

skipif mysql # not compatible
query I rowsort label-8483
SELECT - 13 * SUM ( 15 ) + - COUNT ( * ) - COUNT ( - - ( + - 35 ) ) AS col1
----
-197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8484
SELECT - + CAST( NULL AS SIGNED ) + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-8484
SELECT - + CAST ( NULL AS INTEGER ) + - 38
----
NULL

query I rowsort
SELECT + + 31 * + 79
----
2449

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT + - 62 + 86 + COUNT( * ) + + + 93 * - 97 col0
----
-8996

skipif mysql # not compatible
query I rowsort label-8486
SELECT + - 62 + 86 + COUNT ( * ) + + + 93 * - 97 col0
----
-8996

query I rowsort
SELECT + + 87 + 73 + + - 59
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8488
SELECT ALL CAST( - - ( + 63 ) AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL CAST ( - - ( + 63 ) AS INTEGER )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT DISTINCT - - 55 * - 43 * + COUNT( * ) AS col1
----
-2365

skipif mysql # not compatible
query I rowsort label-8489
SELECT DISTINCT - - 55 * - 43 * + COUNT ( * ) AS col1
----
-2365

onlyif mysql # DIV for integer division: 
query I rowsort label-8490
SELECT + 43 * - - 5 * + 71 + + 0 - - 33 DIV 65 DIV 77
----
15265

skipif mysql # not compatible
query I rowsort label-8490
SELECT + 43 * - - 5 * + 71 + + 0 - - 33 / 65 / 77
----
15265

query II rowsort
SELECT + 95 + + 72, 59 + + 59 + - - 8 * 46 AS col1
----
167
486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8492
SELECT + NULLIF ( - CASE 96 WHEN + 29 THEN + 93 + - CASE - COALESCE ( + COUNT( * ), + 94 * - MIN( DISTINCT 98 ) ) WHEN + + CAST( NULL AS SIGNED ) THEN 3 * - 30 WHEN - - MAX( - 36 ) THEN NULL END + + - ( + - ( + 68 ) ) * 65 WHEN - MAX( - 90 ) * 58 - 18 THEN - 49 * - ( + 59 ) ELSE + 99 * - + 3 END, - - 5 )
----
297

skipif mysql # not compatible
query I rowsort label-8492
SELECT + NULLIF ( - CASE 96 WHEN + 29 THEN + 93 + - CASE - COALESCE ( + COUNT ( * ), + 94 * - MIN ( DISTINCT 98 ) ) WHEN + + CAST ( NULL AS INTEGER ) THEN 3 * - 30 WHEN - - MAX ( - 36 ) THEN NULL END + + - ( + - ( + 68 ) ) * 65 WHEN - MAX ( - 90 ) * 58 - 18 THEN - 49 * - ( + 59 ) ELSE + 99 * - + 3 END, - - 5 )
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT DISTINCT - MAX( DISTINCT - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-8493
SELECT DISTINCT - MAX ( DISTINCT - 34 )
----
34

query I rowsort
SELECT + + 35 * - 98 AS col0
----
-3430

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8495
SELECT - COALESCE ( + 62, + - 91 * + AVG ( DISTINCT + 17 ) DIV + - 32 * 77 + - - 8 - - - SUM( + + 16 ) * + 14 )
----
-62

skipif mysql # not compatible
query I rowsort label-8495
SELECT - COALESCE ( + 62, + - 91 * + AVG ( DISTINCT + 17 ) / + - 32 * 77 + - - 8 - - - SUM ( + + 16 ) * + 14 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT ALL - NULLIF ( + SUM( DISTINCT + 4 ), COUNT( * ) * + 44 ) + + + COUNT( - 78 ) * 66 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL - NULLIF ( + SUM ( DISTINCT + 4 ), COUNT ( * ) * + 44 ) + + + COUNT ( - 78 ) * 66 AS col0
----
62

query I rowsort
SELECT + + 44 + - ( 22 )
----
22

query I rowsort
SELECT + 32 + 31 AS col0
----
63

query I rowsort
SELECT DISTINCT - 44 + + ( 19 ) + + 60
----
35

query I rowsort
SELECT ALL 14 + - NULLIF ( + 85, + + 24 )
----
-71

query I rowsort
SELECT + 26 - - 56 + 42 - + 21 * - 56 AS col0
----
1300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8502
SELECT DISTINCT CASE 27 WHEN 82 THEN NULL WHEN ( 54 ) THEN NULL ELSE - + 19 * - - 91 + - + 59 END / - 31 + - AVG ( ALL - ( + - 46 ) ) / 30 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8502
SELECT DISTINCT CASE 27 WHEN 82 THEN NULL WHEN ( 54 ) THEN NULL ELSE - + 19 * - - 91 + - + 59 END / - 31 + - AVG ( ALL - ( + - 46 ) ) / 30 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8503
SELECT 23 + + MIN( DISTINCT - - 33 ) AS col2, - 33 + ( + CASE - CAST( NULL AS SIGNED ) WHEN 87 + 81 THEN + - ( + 67 ) / - 64 WHEN 34 / 34 / 75 THEN 78 * + 53 + + COUNT( * ) + + 46 + - + 87 * - 98 END ) + + NULLIF ( + 52, + CASE + 1 WHEN + 68 - - AVG ( 59 ) THEN NULL WHEN - 43 THEN 58 ELSE NULL END ) AS col2
----
56
NULL

skipif mysql # not compatible
query II rowsort label-8503
SELECT 23 + + MIN ( DISTINCT - - 33 ) AS col2, - 33 + ( + CASE - CAST ( NULL AS INTEGER ) WHEN 87 + 81 THEN + - ( + 67 ) / - 64 WHEN 34 / 34 / 75 THEN 78 * + 53 + + COUNT ( * ) + + 46 + - + 87 * - 98 END ) + + NULLIF ( + 52, + CASE + 1 WHEN + 68 - - AVG ( 59 ) THEN NULL WHEN - 43 THEN 58 ELSE NULL END ) AS col2
----
56
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8504
SELECT CAST( - 24 AS SIGNED ) + + + 33 + ( 18 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8504
SELECT CAST ( - 24 AS INTEGER ) + + + 33 + ( 18 ) AS col1
----
27

query I rowsort
SELECT 39 * - 60
----
-2340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8506
SELECT DISTINCT + ( + SUM( - 32 ) ) DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-8506
SELECT DISTINCT + ( + SUM ( - 32 ) ) / 36
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8507
SELECT 18 DIV - ( - 99 ) + + 62 + - ( + NULLIF ( - 11, + 45 ) ) * - + NULLIF ( - 90, + 13 )
----
1052

skipif mysql # not compatible
query I rowsort label-8507
SELECT 18 / - ( - 99 ) + + 62 + - ( + NULLIF ( - 11, + 45 ) ) * - + NULLIF ( - 90, + 13 )
----
1052

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT 82 * COUNT( * ) - + ( 8 )
----
74

skipif mysql # not compatible
query I rowsort label-8508
SELECT 82 * COUNT ( * ) - + ( 8 )
----
74

query I rowsort
SELECT 22 + + 24 + + 76 AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT ALL + MAX( ALL 59 ) - - 47 - + COUNT( * ) - - 26 * + 6
----
261

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL + MAX ( ALL 59 ) - - 47 - + COUNT ( * ) - - 26 * + 6
----
261

onlyif mysql # DIV for integer division: 
query II rowsort label-8511
SELECT 29 * 87 DIV - - 58 AS col1, 97
----
43
97

skipif mysql # not compatible
query II rowsort label-8511
SELECT 29 * 87 / - - 58 AS col1, 97
----
43
97

query I rowsort
SELECT 38 + 91 AS col1
----
129

query I rowsort
SELECT DISTINCT - 10 * + 29 AS col2
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT ALL - ( COUNT( * ) ) - - 92 * 78
----
7175

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL - ( COUNT ( * ) ) - - 92 * 78
----
7175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8515
SELECT 63 * - CAST( 14 AS SIGNED ) AS col1
----
-882

skipif mysql # not compatible
query I rowsort label-8515
SELECT 63 * - CAST ( 14 AS INTEGER ) AS col1
----
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT MIN( DISTINCT 24 ) + ( - 22 )
----
2

skipif mysql # not compatible
query I rowsort label-8516
SELECT MIN ( DISTINCT 24 ) + ( - 22 )
----
2

query I rowsort
SELECT 76 * 47
----
3572

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT ALL - COUNT( * ) * COUNT( ALL - 30 * + 32 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8518
SELECT ALL - COUNT ( * ) * COUNT ( ALL - 30 * + 32 ) AS col2
----
-1

query I rowsort
SELECT 66 * - 94
----
-6204

query I rowsort
SELECT ALL 10 * 12 AS col2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-8521
SELECT DISTINCT + 75 DIV - 3
----
-25

skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT + 75 / - 3
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT 88 + 60 * COUNT( * )
----
148

skipif mysql # not compatible
query I rowsort label-8522
SELECT 88 + 60 * COUNT ( * )
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT MIN( DISTINCT + 79 ) * - 20 col0
----
-1580

skipif mysql # not compatible
query I rowsort label-8523
SELECT MIN ( DISTINCT + 79 ) * - 20 col0
----
-1580

query I rowsort
SELECT ALL + 57 * - 70 AS col0
----
-3990

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT DISTINCT COUNT( * ) + 20
----
21

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT COUNT ( * ) + 20
----
21

query I rowsort
SELECT ALL + 58 * 90
----
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT DISTINCT - 3 * + CASE 68 WHEN 77 * COUNT( * ) - - 28 THEN NULL ELSE + 10 END
----
-30

skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT - 3 * + CASE 68 WHEN 77 * COUNT ( * ) - - 28 THEN NULL ELSE + 10 END
----
-30

query I rowsort
SELECT DISTINCT NULLIF ( + 82, 3 / 18 ) + 20 AS col2
----
102

query I rowsort
SELECT ALL - 85 + 85
----
0

query I rowsort
SELECT DISTINCT + 31 + 22 col0
----
53

query I rowsort
SELECT COALESCE ( 46, + ( 30 ), 9 ) * + 88
----
4048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8532
SELECT ALL ( - NULLIF ( - CAST( CAST( ( - COUNT( * ) ) AS SIGNED ) AS SIGNED ), 68 ) ) + + 65 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL ( - NULLIF ( - CAST ( CAST ( ( - COUNT ( * ) ) AS INTEGER ) AS INTEGER ), 68 ) ) + + 65 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT ALL COUNT( * ) * 32 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-8533
SELECT ALL COUNT ( * ) * 32 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT MIN( 58 ) col1
----
58

skipif mysql # not compatible
query I rowsort label-8534
SELECT MIN ( 58 ) col1
----
58

query I rowsort
SELECT ALL 49 - - 93
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT DISTINCT MIN( ALL - 58 ) * - 1
----
58

skipif mysql # not compatible
query I rowsort label-8536
SELECT DISTINCT MIN ( ALL - 58 ) * - 1
----
58

query I rowsort
SELECT ALL 31 - 11 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT MIN( - 97 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-8538
SELECT MIN ( - 97 ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT DISTINCT 60 - - MIN( + 20 )
----
80

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT 60 - - MIN ( + 20 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT DISTINCT NULLIF ( - 79, 68 - COALESCE ( 64, 54 / - SUM( DISTINCT + 90 * - 26 ) - - ( + 73 ) ) / - COUNT( * ) ) * 11
----
-869

skipif mysql # not compatible
query I rowsort label-8540
SELECT DISTINCT NULLIF ( - 79, 68 - COALESCE ( 64, 54 / - SUM ( DISTINCT + 90 * - 26 ) - - ( + 73 ) ) / - COUNT ( * ) ) * 11
----
-869

query I rowsort
SELECT ALL 95 - + 54 * 81 AS col1
----
-4279

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT DISTINCT - COUNT( ALL 50 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT - COUNT ( ALL 50 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8543
SELECT 38 - ( 48 ) * CAST( + 21 AS SIGNED ) AS col1
----
-970

skipif mysql # not compatible
query I rowsort label-8543
SELECT 38 - ( 48 ) * CAST ( + 21 AS INTEGER ) AS col1
----
-970

query I rowsort
SELECT 71 + 19 AS col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8545
SELECT DISTINCT + 98 DIV 89 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8545
SELECT DISTINCT + 98 / 89 AS col2
----
1

query I rowsort
SELECT + 98 * 15
----
1470

onlyif mysql # DIV for integer division: 
query I rowsort label-8547
SELECT - 2 DIV + 27
----
0

skipif mysql # not compatible
query I rowsort label-8547
SELECT - 2 / + 27
----
0

query I rowsort
SELECT ALL 72 + - ( 93 ) AS col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8549
SELECT ALL - CAST( + 25 AS SIGNED ) col1
----
-25

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL - CAST ( + 25 AS INTEGER ) col1
----
-25

query I rowsort
SELECT 40 - 33
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8551
SELECT ALL - CAST( 51 AS SIGNED ) * 70 AS col2
----
-3570

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL - CAST ( 51 AS INTEGER ) * 70 AS col2
----
-3570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8552
SELECT COUNT( * ) * + 61 + + 12 DIV CAST( - 51 * - 58 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-8552
SELECT COUNT ( * ) * + 61 + + 12 / CAST ( - 51 * - 58 AS INTEGER )
----
61

query I rowsort
SELECT + NULLIF ( - 23, - 31 ) + - 68
----
-91

query I rowsort
SELECT DISTINCT + - 87 * 17
----
-1479

query I rowsort
SELECT ALL - 82 + - 90 AS col2
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT - NULLIF ( - 42, - AVG ( ALL 51 ) ) + - NULLIF ( - NULLIF ( + 91, - COUNT( * ) ), 87 * + 60 )
----
133

skipif mysql # not compatible
query I rowsort label-8556
SELECT - NULLIF ( - 42, - AVG ( ALL 51 ) ) + - NULLIF ( - NULLIF ( + 91, - COUNT ( * ) ), 87 * + 60 )
----
133

query I rowsort
SELECT DISTINCT + 80 * - 47
----
-3760

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT ALL - COUNT( * ) + - SUM( DISTINCT 76 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-8558
SELECT ALL - COUNT ( * ) + - SUM ( DISTINCT 76 ) AS col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8559
SELECT - CASE - CAST( 51 AS SIGNED ) WHEN + 32 THEN - COUNT( ALL + 13 ) WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8559
SELECT - CASE - CAST ( 51 AS INTEGER ) WHEN + 32 THEN - COUNT ( ALL + 13 ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT ALL COUNT( ALL 72 )
----
1

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL COUNT ( ALL 72 )
----
1

query I rowsort
SELECT ALL - - 83 + - 9 AS col2
----
74

query I rowsort
SELECT - 62 + - - 18 * + 82 col1
----
1414

onlyif mysql # DIV for integer division: 
query I rowsort label-8563
SELECT + 38 + - + 76 - 18 DIV + 93
----
-38

skipif mysql # not compatible
query I rowsort label-8563
SELECT + 38 + - + 76 - 18 / + 93
----
-38

query I rowsort
SELECT DISTINCT + 9 * - ( + 25 )
----
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-8565
SELECT ALL COALESCE ( + 75, - 51, + CASE 71 WHEN + 81 + + 75 THEN 96 DIV CASE + 91 WHEN 94 * 21 - + 77 * + 16 THEN + 31 WHEN 17 THEN NULL WHEN 11 + 26 THEN - 70 END ELSE NULL END ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL COALESCE ( + 75, - 51, + CASE 71 WHEN + 81 + + 75 THEN 96 / CASE + 91 WHEN 94 * 21 - + 77 * + 16 THEN + 31 WHEN 17 THEN NULL WHEN 11 + 26 THEN - 70 END ELSE NULL END ) AS col2
----
75

query I rowsort
SELECT - 67 + + 3
----
-64

query I rowsort
SELECT - 26 * - + 99 col0
----
2574

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT + COUNT( * ) * 29 * + 18
----
522

skipif mysql # not compatible
query I rowsort label-8568
SELECT + COUNT ( * ) * 29 * + 18
----
522

query I rowsort
SELECT - 43 + 89 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT - 2 * + COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8570
SELECT - 2 * + COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT DISTINCT + COUNT( * ) * + + 58
----
58

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT + COUNT ( * ) * + + 58
----
58

query I rowsort
SELECT ALL - 55 * + 4
----
-220

query I rowsort
SELECT + 96 * + 45 AS col2
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT ALL COALESCE ( CASE + CASE - NULLIF ( - MIN( ALL - 91 ), + MIN( ALL 32 ) + - 14 / + 22 ) WHEN 73 THEN - 14 WHEN - 8 THEN + 68 END WHEN - 15 * ( + 81 ) THEN + 93 ELSE NULL END, 13 * - 8 )
----
-104

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL COALESCE ( CASE + CASE - NULLIF ( - MIN ( ALL - 91 ), + MIN ( ALL 32 ) + - 14 / + 22 ) WHEN 73 THEN - 14 WHEN - 8 THEN + 68 END WHEN - 15 * ( + 81 ) THEN + 93 ELSE NULL END, 13 * - 8 )
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT DISTINCT COALESCE ( CASE - 76 WHEN 55 THEN 58 * 17 + + 15 WHEN COUNT( * ) * - COUNT( * ) THEN 57 ELSE NULL END, 30 )
----
30

skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT COALESCE ( CASE - 76 WHEN 55 THEN 58 * 17 + + 15 WHEN COUNT ( * ) * - COUNT ( * ) THEN 57 ELSE NULL END, 30 )
----
30

query I rowsort
SELECT + 65 + + + 58 col2
----
123

query I rowsort
SELECT 19 * + ( 91 ) + 25 AS col2
----
1754

query I rowsort
SELECT - 36 * - 92 AS col0
----
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT + 16 * - 32 * COUNT( * ) + - 79 * + 40
----
-3672

skipif mysql # not compatible
query I rowsort label-8579
SELECT + 16 * - 32 * COUNT ( * ) + - 79 * + 40
----
-3672

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT - COUNT( * ) * + ( 47 ) + - 17
----
-64

skipif mysql # not compatible
query I rowsort label-8580
SELECT - COUNT ( * ) * + ( 47 ) + - 17
----
-64

query I rowsort
SELECT + COALESCE ( + 92, 90 ) col0
----
92

query I rowsort
SELECT + - ( + 74 ) * + 57 col0
----
-4218

query I rowsort
SELECT ALL - ( - + 32 ) * + 64 + 88 AS col1
----
2136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8584
SELECT + + COALESCE ( + 37, 78 * + CASE 15 * MAX( 47 ) WHEN + 47 THEN NULL WHEN + 71 + 85 THEN 26 ELSE + ( 48 ) END, NULLIF ( + 67, 73 / - CASE + 94 / 84 WHEN - 6 * CAST( 81 AS DECIMAL ) THEN + AVG ( DISTINCT 22 ) WHEN - CAST( - 24 AS SIGNED ) * 39 THEN NULL WHEN + 32 THEN NULL ELSE 24 END ) * - 93 - + 64, 48 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-8584
SELECT + + COALESCE ( + 37, 78 * + CASE 15 * MAX ( 47 ) WHEN + 47 THEN NULL WHEN + 71 + 85 THEN 26 ELSE + ( 48 ) END, NULLIF ( + 67, 73 / - CASE + 94 / 84 WHEN - 6 * CAST ( 81 AS REAL ) THEN + AVG ( DISTINCT 22 ) WHEN - CAST ( - 24 AS INTEGER ) * 39 THEN NULL WHEN + 32 THEN NULL ELSE 24 END ) * - 93 - + 64, 48 ) AS col1
----
37

query I rowsort
SELECT ALL + 2 * + 31 * - 91 + 4 + 27 col0
----
-5611

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT DISTINCT + 66 * + + COUNT( * ) + + 15
----
81

skipif mysql # not compatible
query I rowsort label-8586
SELECT DISTINCT + 66 * + + COUNT ( * ) + + 15
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT + + 14 * NULLIF ( - 29, + COUNT( + 66 ) ) AS col1
----
-406

skipif mysql # not compatible
query I rowsort label-8587
SELECT + + 14 * NULLIF ( - 29, + COUNT ( + 66 ) ) AS col1
----
-406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8588
SELECT DISTINCT 85 * 55 - + CASE ( CAST( NULL AS SIGNED ) ) + 46 WHEN 34 THEN 45 / 74 WHEN + 81 - + 52 THEN NULL ELSE NULL END + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-8588
SELECT DISTINCT 85 * 55 - + CASE ( CAST ( NULL AS INTEGER ) ) + 46 WHEN 34 THEN 45 / 74 WHEN + 81 - + 52 THEN NULL ELSE NULL END + - 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT ALL 22 * 90 * ( COUNT( * ) ) + + CASE 15 WHEN - 55 THEN NULL WHEN 83 + 49 / 63 THEN NULL ELSE 15 + COUNT( * ) END AS col0
----
1996

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL 22 * 90 * ( COUNT ( * ) ) + + CASE 15 WHEN - 55 THEN NULL WHEN 83 + 49 / 63 THEN NULL ELSE 15 + COUNT ( * ) END AS col0
----
1996

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT DISTINCT 72 * + COUNT( * ) * ( 44 ) - 29 + COUNT( * )
----
3140

skipif mysql # not compatible
query I rowsort label-8590
SELECT DISTINCT 72 * + COUNT ( * ) * ( 44 ) - 29 + COUNT ( * )
----
3140

query I rowsort
SELECT ALL ( - 7 ) * 90 + - 55 col1
----
-685

query I rowsort
SELECT + - 82 * + 31 + + 49 * 52 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT + - COUNT( * ) + - 87
----
-88

skipif mysql # not compatible
query I rowsort label-8593
SELECT + - COUNT ( * ) + - 87
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-8594
SELECT DISTINCT COUNT( * ) col1, + 23 col1
----
1
23

skipif mysql # not compatible
query II rowsort label-8594
SELECT DISTINCT COUNT ( * ) col1, + 23 col1
----
1
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8595
SELECT + CAST( 84 AS SIGNED ) * + 11
----
924

skipif mysql # not compatible
query I rowsort label-8595
SELECT + CAST ( 84 AS INTEGER ) * + 11
----
924

query I rowsort
SELECT - 26 - 89 AS col1
----
-115

query I rowsort
SELECT - 2 - - - 33
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT DISTINCT CASE - 16 WHEN + COUNT( * ) * + ( + 76 * 11 ) THEN 5 * 84 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT CASE - 16 WHEN + COUNT ( * ) * + ( + 76 * 11 ) THEN 5 * 84 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT CASE - - 45 WHEN + 70 THEN NULL ELSE + 37 END
----
37

query I rowsort
SELECT ALL COALESCE ( + 21, + 22 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT - 48 - + 57 + + - 66 + ( + 49 ) * + COUNT( * ) AS col0
----
-122

skipif mysql # not compatible
query I rowsort label-8601
SELECT - 48 - + 57 + + - 66 + ( + 49 ) * + COUNT ( * ) AS col0
----
-122

query I rowsort
SELECT ALL ( - CASE + - AVG ( ALL 93 ) WHEN 97 * 72 THEN ( 13 ) WHEN + 28 * + COALESCE ( - 21 * 58, 86 ) THEN + 89 END ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 78 * - 45
----
3510

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT - 77 - + MAX( 82 ) * - 19
----
1481

skipif mysql # not compatible
query I rowsort label-8604
SELECT - 77 - + MAX ( 82 ) * - 19
----
1481

onlyif mysql # DIV for integer division: 
query I rowsort label-8605
SELECT - 36 DIV + 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8605
SELECT - 36 / + 70 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT + 42 * - COUNT( * ) * + 30 * 31
----
-39060

skipif mysql # not compatible
query I rowsort label-8606
SELECT + 42 * - COUNT ( * ) * + 30 * 31
----
-39060

query I rowsort
SELECT ALL - 60 * + - 23 AS col2
----
1380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8608
SELECT DISTINCT CAST( 74 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-8608
SELECT DISTINCT CAST ( 74 AS INTEGER )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8609
SELECT ALL - ( + + 28 ) DIV - 29 * - 99 + 69 + 41
----
110

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL - ( + + 28 ) / - 29 * - 99 + 69 + 41
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT - - 29 * - + 65 - COUNT( * ) + - 44
----
-1930

skipif mysql # not compatible
query I rowsort label-8610
SELECT - - 29 * - + 65 - COUNT ( * ) + - 44
----
-1930

query I rowsort
SELECT ALL + - ( - - 41 ) col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8612
SELECT ALL + COUNT( * ) / + + MAX( - - CAST( NULL AS SIGNED ) ) + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL + COUNT ( * ) / + + MAX ( - - CAST ( NULL AS INTEGER ) ) + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT 43 * + 96 + 12 + + COUNT( * ) * + COUNT( * ) AS col0
----
4141

skipif mysql # not compatible
query I rowsort label-8613
SELECT 43 * + 96 + 12 + + COUNT ( * ) * + COUNT ( * ) AS col0
----
4141

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT + 93 * + 43 * + - ( COUNT( * ) ) * 55 AS col2
----
-219945

skipif mysql # not compatible
query I rowsort label-8614
SELECT + 93 * + 43 * + - ( COUNT ( * ) ) * 55 AS col2
----
-219945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8615
SELECT - COALESCE ( - CASE + - 52 WHEN - 69 - 4 DIV - 46 THEN NULL WHEN NULLIF ( 3, + 76 ) + - NULLIF ( CAST( 69 AS SIGNED ), + 47 + + COUNT( * ) ) THEN + COUNT( * ) * + MAX( ALL 52 ) + + ( 27 + + 20 ) END, COALESCE ( COUNT( * ), - 23 ) DIV 60, + 90 ) + - 69
----
-69

skipif mysql # not compatible
query I rowsort label-8615
SELECT - COALESCE ( - CASE + - 52 WHEN - 69 - 4 / - 46 THEN NULL WHEN NULLIF ( 3, + 76 ) + - NULLIF ( CAST ( 69 AS INTEGER ), + 47 + + COUNT ( * ) ) THEN + COUNT ( * ) * + MAX ( ALL 52 ) + + ( 27 + + 20 ) END, COALESCE ( COUNT ( * ), - 23 ) / 60, + 90 ) + - 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT + - ( - ( + COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8616
SELECT + - ( - ( + COUNT ( * ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT - - SUM( ALL - + 62 ) + 40
----
-22

skipif mysql # not compatible
query I rowsort label-8617
SELECT - - SUM ( ALL - + 62 ) + 40
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8618
SELECT DISTINCT 41 DIV - COUNT( * ) + - 0
----
-41

skipif mysql # not compatible
query I rowsort label-8618
SELECT DISTINCT 41 / - COUNT ( * ) + - 0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT ALL - 91 * + 2 * + 4 * COUNT( * )
----
-728

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL - 91 * + 2 * + 4 * COUNT ( * )
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT DISTINCT + - COUNT( DISTINCT + + 71 )
----
-1

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT + - COUNT ( DISTINCT + + 71 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8621
SELECT ALL + 25 * 49 * + ( 87 ) * - CAST( NULL AS DECIMAL ) + 59 / 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL + 25 * 49 * + ( 87 ) * - CAST ( NULL AS REAL ) + 59 / 69 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT + + 52 + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-8622
SELECT + + 52 + COUNT ( * )
----
53

query I rowsort
SELECT ALL 39 - - 44 * + - 73 * + 65 AS col2
----
-208741

query I rowsort
SELECT ALL 79 * 1 + + 35 + 86 * - 44 AS col1
----
-3670

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8625
SELECT + COUNT( * ) * - 31 * - COUNT( * ) + + 80 DIV 40
----
33

skipif mysql # not compatible
query I rowsort label-8625
SELECT + COUNT ( * ) * - 31 * - COUNT ( * ) + + 80 / 40
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8626
SELECT - ( - + MAX( - 49 ) ) + + 14 DIV - 4
----
-52

skipif mysql # not compatible
query I rowsort label-8626
SELECT - ( - + MAX ( - 49 ) ) + + 14 / - 4
----
-52

query II rowsort
SELECT + - 59 AS col2, - 30 + 5
----
-59
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8628
SELECT CAST( 40 AS SIGNED ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-8628
SELECT CAST ( 40 AS INTEGER ) AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8629
SELECT DISTINCT - + 1, - ( + COUNT( * ) ) * + COALESCE ( ( 6 ) + 73, 1 ) + COALESCE ( 83 + ( COUNT( * ) + + 22 ), - 5 * + 21 + - 34 ) DIV + CAST( - COALESCE ( 1, + 13, 1 * + 75 ) AS SIGNED ) AS col2
----
-1
-185

skipif mysql # not compatible
query II rowsort label-8629
SELECT DISTINCT - + 1, - ( + COUNT ( * ) ) * + COALESCE ( ( 6 ) + 73, 1 ) + COALESCE ( 83 + ( COUNT ( * ) + + 22 ), - 5 * + 21 + - 34 ) / + CAST ( - COALESCE ( 1, + 13, 1 * + 75 ) AS INTEGER ) AS col2
----
-1
-185

query I rowsort
SELECT ALL 6 - - NULLIF ( - - 88, + 51 )
----
94

query I rowsort
SELECT NULLIF ( 51, 28 * ( 42 ) ) * + 79 AS col2
----
4029

query I rowsort
SELECT - 41 * + 58 + - 56
----
-2434

query I rowsort
SELECT NULLIF ( + 82, + 26 ) + - 28 AS col2
----
54

query I rowsort
SELECT 16 + + + ( - 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT COUNT( * ) * 88 col0
----
88

skipif mysql # not compatible
query I rowsort label-8635
SELECT COUNT ( * ) * 88 col0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8636
SELECT DISTINCT 43 / + NULLIF ( + 19, - 42 ) / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8636
SELECT DISTINCT 43 / + NULLIF ( + 19, - 42 ) / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL + 91 * + 0 AS col1, 80
----
0
80

query I rowsort
SELECT ALL - 37 * - 67 * 49
----
121471

onlyif mysql # DIV for integer division: 
query I rowsort label-8639
SELECT COALESCE ( - 84, - 60 ) DIV ( - 70 )
----
1

skipif mysql # not compatible
query I rowsort label-8639
SELECT COALESCE ( - 84, - 60 ) / ( - 70 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT ALL SUM( + 87 ) * - 47 AS col0
----
-4089

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL SUM ( + 87 ) * - 47 AS col0
----
-4089

query I rowsort
SELECT 48 * + 33
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT 51 + NULLIF ( - - 13, - CASE - 2 WHEN 71 + 92 THEN 95 WHEN - 43 THEN NULL WHEN COUNT( - 48 ) THEN NULL END ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-8642
SELECT 51 + NULLIF ( - - 13, - CASE - 2 WHEN 71 + 92 THEN 95 WHEN - 43 THEN NULL WHEN COUNT ( - 48 ) THEN NULL END ) AS col0
----
64

query I rowsort
SELECT ALL 72 * + - 31 AS col1
----
-2232

query I rowsort
SELECT DISTINCT CASE 23 WHEN - - 98 THEN - 92 * 27 WHEN 81 THEN 22 * - 99 END + + 15 AS col1
----
NULL

query I rowsort
SELECT ALL 36 + 61 AS col1
----
97

query I rowsort
SELECT 57 + 59
----
116

query I rowsort
SELECT ALL ( 92 ) + - 95
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8648
SELECT DISTINCT 71 + + 90 + + - 75 + SUM( 26 ) DIV ( 43 ) DIV 37 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT 71 + + 90 + + - 75 + SUM ( 26 ) / ( 43 ) / 37 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT ALL - COUNT( * ) + + + 25
----
24

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL - COUNT ( * ) + + + 25
----
24

query I rowsort
SELECT 73 + - + ( + + 5 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8651
SELECT ALL - 86 + - COALESCE ( + + COUNT( * ), - 81 * CASE + COUNT( ALL - 37 ) WHEN COUNT( * ) THEN NULL ELSE + MIN( CAST( NULL AS SIGNED ) ) DIV 9 END ) - 21 * 92 AS col0
----
-2019

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL - 86 + - COALESCE ( + + COUNT ( * ), - 81 * CASE + COUNT ( ALL - 37 ) WHEN COUNT ( * ) THEN NULL ELSE + MIN ( CAST ( NULL AS INTEGER ) ) / 9 END ) - 21 * 92 AS col0
----
-2019

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT + COUNT( * ) * - + 54
----
-54

skipif mysql # not compatible
query I rowsort label-8652
SELECT + COUNT ( * ) * - + 54
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8653
SELECT DISTINCT - CAST( + - COUNT( * ) AS SIGNED ) + - 93 * 85 + 37 AS col0
----
-7867

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER ) + - 93 * 85 + 37 AS col0
----
-7867

query I rowsort
SELECT ALL - - 39 - + + 33 * - 13 + + 62 AS col2
----
530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8655
SELECT DISTINCT + COUNT( ( 4 ) ) * CASE 33 WHEN - 16 * + 28 THEN + 96 DIV - SUM( 84 ) ELSE 38 - + NULLIF ( 42, - 77 ) * + COALESCE ( + 78 * 47, 14 ) END
----
-153934

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT + COUNT ( ( 4 ) ) * CASE 33 WHEN - 16 * + 28 THEN + 96 / - SUM ( 84 ) ELSE 38 - + NULLIF ( 42, - 77 ) * + COALESCE ( + 78 * 47, 14 ) END
----
-153934

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT ALL COUNT( * ) - - 71 * + CASE 86 WHEN + 96 - + 32 THEN + 94 WHEN 43 - 25 THEN 95 WHEN + 77 THEN NULL END * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL COUNT ( * ) - - 71 * + CASE 86 WHEN + 96 - + 32 THEN + 94 WHEN 43 - 25 THEN 95 WHEN + 77 THEN NULL END * 79
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8657
SELECT ALL - + SUM( + 35 ), + COUNT( * ) col0
----
-35
1

skipif mysql # not compatible
query II rowsort label-8657
SELECT ALL - + SUM ( + 35 ), + COUNT ( * ) col0
----
-35
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8658
SELECT 90 * - 44 + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8658
SELECT 90 * - 44 + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8659
SELECT + CAST( 69 AS SIGNED ) AS col2, 61 AS col0
----
69
61

skipif mysql # not compatible
query II rowsort label-8659
SELECT + CAST ( 69 AS INTEGER ) AS col2, 61 AS col0
----
69
61

query I rowsort
SELECT + + ( + 83 ) AS col2
----
83

query I rowsort
SELECT NULLIF ( 37, + 20 ) col0
----
37

query I rowsort
SELECT DISTINCT - + ( + 27 ) AS col2
----
-27

query I rowsort
SELECT DISTINCT 73 * + 11
----
803

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT DISTINCT - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query II rowsort
SELECT - 89, 14 + - - 21 AS col1
----
-89
35

query I rowsort
SELECT ( + 75 ) + - 72 * - ( 73 )
----
5331

onlyif mysql # aggregate syntax: 
query II rowsort label-8667
SELECT DISTINCT 91 AS col2, 8 + - COUNT( DISTINCT - 6 ) + - + 36 * - 94 * 25 AS col1
----
91
84607

skipif mysql # not compatible
query II rowsort label-8667
SELECT DISTINCT 91 AS col2, 8 + - COUNT ( DISTINCT - 6 ) + - + 36 * - 94 * 25 AS col1
----
91
84607

onlyif mysql # aggregate syntax: 
query II rowsort label-8668
SELECT 55 AS col2, NULLIF ( 71, - 92 / + COUNT( * ) * + 78 - - 22 + 11 ) * - NULLIF ( - 86, - 27 )
----
55
6106

skipif mysql # not compatible
query II rowsort label-8668
SELECT 55 AS col2, NULLIF ( 71, - 92 / + COUNT ( * ) * + 78 - - 22 + 11 ) * - NULLIF ( - 86, - 27 )
----
55
6106

query II rowsort
SELECT 90 AS col0, + 5
----
90
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT COUNT( * ) - - + 80
----
81

skipif mysql # not compatible
query I rowsort label-8670
SELECT COUNT ( * ) - - + 80
----
81

query I rowsort
SELECT ALL 25 + - ( + 23 )
----
2

query I rowsort
SELECT 57 * NULLIF ( + 49, + 81 + - 22 + 85 * ( + 19 * 96 ) ) AS col2
----
2793

onlyif mysql # DIV for integer division: 
query I rowsort label-8673
SELECT ALL 89 DIV + 8
----
11

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL 89 / + 8
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8674
SELECT ( - CAST( + ( COUNT( * ) ) AS SIGNED ) ) * - 33 + ( - 66 - - 69 )
----
36

skipif mysql # not compatible
query I rowsort label-8674
SELECT ( - CAST ( + ( COUNT ( * ) ) AS INTEGER ) ) * - 33 + ( - 66 - - 69 )
----
36

query I rowsort
SELECT DISTINCT 24 + + 91 AS col1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT - CASE - 57 WHEN + - 22 * - 16 + + MIN( DISTINCT 74 ) THEN 41 + - COUNT( * ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8676
SELECT - CASE - 57 WHEN + - 22 * - 16 + + MIN ( DISTINCT 74 ) THEN 41 + - COUNT ( * ) ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8677
SELECT - - CAST( + + 49 AS SIGNED ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-8677
SELECT - - CAST ( + + 49 AS INTEGER ) AS col2
----
49

query I rowsort
SELECT ALL 45 + + + 87
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT - 15 - + + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-8679
SELECT - 15 - + + COUNT ( * )
----
-16

query I rowsort
SELECT - NULLIF ( 96, - 34 * + 28 + + 57 + 96 ) * + 19 col2
----
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT DISTINCT - SUM( 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-8681
SELECT DISTINCT - SUM ( 80 ) AS col0
----
-80

query I rowsort
SELECT DISTINCT - 13 * + 42 AS col1
----
-546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8683
SELECT DISTINCT 53 * SUM( + + 62 ) - - + CAST( + 49 AS SIGNED ) AS col0
----
3335

skipif mysql # not compatible
query I rowsort label-8683
SELECT DISTINCT 53 * SUM ( + + 62 ) - - + CAST ( + 49 AS INTEGER ) AS col0
----
3335

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT DISTINCT COUNT( * ) * - - 29
----
29

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT COUNT ( * ) * - - 29
----
29

query I rowsort
SELECT - + 69 * - 74 AS col2
----
5106

query II rowsort
SELECT DISTINCT + 60, - 51 * + 37 + - 50 + + CASE - 64 WHEN 75 + 89 THEN NULL ELSE + 4 END AS col0
----
60
-1933

onlyif mysql # aggregate syntax: 
query II rowsort label-8687
SELECT ALL + COUNT( * ) AS col0, - MIN( - - 29 )
----
1
-29

skipif mysql # not compatible
query II rowsort label-8687
SELECT ALL + COUNT ( * ) AS col0, - MIN ( - - 29 )
----
1
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT ALL + - 50 * + 15 * 51 * - COUNT( * ) - - + ( SUM( ALL + 50 ) ) + MIN( - 53 ) * 45 AS col0
----
35915

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL + - 50 * + 15 * 51 * - COUNT ( * ) - - + ( SUM ( ALL + 50 ) ) + MIN ( - 53 ) * 45 AS col0
----
35915

query I rowsort
SELECT + 31 * + 79 AS col0
----
2449

query I rowsort
SELECT + - 50 + - 96 AS col0
----
-146

query I rowsort
SELECT + ( + 17 ) col1
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8692
SELECT - 15 DIV - + ( + COALESCE ( 52, + 41 * 0 ) ) * 91 + + 49 + 59 col2
----
108

skipif mysql # not compatible
query I rowsort label-8692
SELECT - 15 / - + ( + COALESCE ( 52, + 41 * 0 ) ) * 91 + + 49 + 59 col2
----
108

query I rowsort
SELECT - 58 + - 70 AS col1
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-8694
SELECT - 27 DIV - - 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8694
SELECT - 27 / - - 84 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8695
SELECT DISTINCT + 37 * - 1 * + 72 * + COALESCE ( + + 25, COUNT( * ), COUNT( * ) + + ( + 75 - - COALESCE ( + 51, 65 * CAST( COUNT( * ) * 48 AS SIGNED ), 97 ) ) )
----
-66600

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT + 37 * - 1 * + 72 * + COALESCE ( + + 25, COUNT ( * ), COUNT ( * ) + + ( + 75 - - COALESCE ( + 51, 65 * CAST ( COUNT ( * ) * 48 AS INTEGER ), 97 ) ) )
----
-66600

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT DISTINCT + + 69 * + + MAX( 91 ) * - 89 AS col1
----
-558831

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT + + 69 * + + MAX ( 91 ) * - 89 AS col1
----
-558831

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT DISTINCT - COUNT( * ) * + 56
----
-56

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT - COUNT ( * ) * + 56
----
-56

query I rowsort
SELECT ALL + 64 * + 51 AS col2
----
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT ALL + 76 * + 34 + SUM( DISTINCT + - 71 ) AS col1
----
2513

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL + 76 * + 34 + SUM ( DISTINCT + - 71 ) AS col1
----
2513

query I rowsort
SELECT - 73 + + 24 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT - 85 * - CASE + + COUNT( * ) WHEN + 41 + - 42 THEN NULL WHEN 84 THEN NULL ELSE 41 * 33 END AS col0
----
115005

skipif mysql # not compatible
query I rowsort label-8701
SELECT - 85 * - CASE + + COUNT ( * ) WHEN + 41 + - 42 THEN NULL WHEN 84 THEN NULL ELSE 41 * 33 END AS col0
----
115005

query I rowsort
SELECT - 43 * 23
----
-989

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT + CASE + COUNT( * ) WHEN 53 THEN - COALESCE ( + 4, 58 * 20, + 59 / COUNT( * ) ) ELSE NULL END / - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT + CASE + COUNT ( * ) WHEN 53 THEN - COALESCE ( + 4, 58 * 20, + 59 / COUNT ( * ) ) ELSE NULL END / - 19
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8704
SELECT DISTINCT + CAST( 57 AS SIGNED ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT + CAST ( 57 AS INTEGER ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT DISTINCT 84 + - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT 84 + - COUNT ( * )
----
83

query I rowsort
SELECT - 89 + 7
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8707
SELECT ALL + CAST( + 92 AS SIGNED ) + - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL + CAST ( + 92 AS INTEGER ) + - COUNT ( * )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8708
SELECT DISTINCT 19 + - - ( CASE - 89 WHEN + 18 * - 85 THEN NULL ELSE - 90 + + COUNT( * ) END ) + + 29 DIV - 17 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-8708
SELECT DISTINCT 19 + - - ( CASE - 89 WHEN + 18 * - 85 THEN NULL ELSE - 90 + + COUNT ( * ) END ) + + 29 / - 17 AS col0
----
-71

query I rowsort
SELECT DISTINCT + 47 + + 95 + - 71
----
71

query I rowsort
SELECT ALL 83 + 88
----
171

onlyif mysql # aggregate syntax: 
query II rowsort label-8711
SELECT ALL 18, + COUNT( * ) * 73 AS col0
----
18
73

skipif mysql # not compatible
query II rowsort label-8711
SELECT ALL 18, + COUNT ( * ) * 73 AS col0
----
18
73

query II rowsort
SELECT - 19 AS col0, 60 AS col0
----
-19
60

query II rowsort
SELECT 75, + 43 col2
----
75
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8714
SELECT + 12 + + CAST( NULL AS SIGNED ) * - - CAST( + 68 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8714
SELECT + 12 + + CAST ( NULL AS INTEGER ) * - - CAST ( + 68 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT + - 59 - MAX( - 84 ) * NULLIF ( NULLIF ( - - COUNT( * ), - ( 34 ) * 5 + + MAX( 42 + 36 ) ), + 55 ) + 91
----
116

skipif mysql # not compatible
query I rowsort label-8715
SELECT + - 59 - MAX ( - 84 ) * NULLIF ( NULLIF ( - - COUNT ( * ), - ( 34 ) * 5 + + MAX ( 42 + 36 ) ), + 55 ) + 91
----
116

query I rowsort
SELECT ALL + ( - 80 ) - + + 31 AS col0
----
-111

onlyif mysql # aggregate syntax: 
query III rowsort label-8717
SELECT DISTINCT 8 AS col1, 66 AS col1, + COUNT( * )
----
8
66
1

skipif mysql # not compatible
query III rowsort label-8717
SELECT DISTINCT 8 AS col1, 66 AS col1, + COUNT ( * )
----
8
66
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT ALL - COUNT( * ) * - NULLIF ( - 26, + + COALESCE ( - + 49, + CASE - 33 WHEN + 16 + + 95 * 52 THEN - 0 * - 79 WHEN - 70 + + 21 THEN 68 / - 90 ELSE 93 + 76 END ) * 53 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL - COUNT ( * ) * - NULLIF ( - 26, + + COALESCE ( - + 49, + CASE - 33 WHEN + 16 + + 95 * 52 THEN - 0 * - 79 WHEN - 70 + + 21 THEN 68 / - 90 ELSE 93 + 76 END ) * 53 ) AS col0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-8719
SELECT DISTINCT 18 DIV - 89 + 25 + + + 53 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-8719
SELECT DISTINCT 18 / - 89 + 25 + + + 53 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT + - 54 * + + 11 * + COUNT( * )
----
-594

skipif mysql # not compatible
query I rowsort label-8720
SELECT + - 54 * + + 11 * + COUNT ( * )
----
-594

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8721
SELECT + NULLIF ( + - 77, + - COUNT( * ) ) DIV 49 * + 99 + - 69 AS col1
----
-168

skipif mysql # not compatible
query I rowsort label-8721
SELECT + NULLIF ( + - 77, + - COUNT ( * ) ) / 49 * + 99 + - 69 AS col1
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-8722
SELECT + 89 + - NULLIF ( + - 21, + COALESCE ( - 35, + 92, 84 * - 24, 55 ) ) DIV + 36 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-8722
SELECT + 89 + - NULLIF ( + - 21, + COALESCE ( - 35, + 92, 84 * - 24, 55 ) ) / + 36 AS col1
----
89

query II rowsort
SELECT + + 11, ( + 88 ) col0
----
11
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT DISTINCT - ( 39 ) * + - 83 * - 24 * - MIN( - 2 ) * 82 AS col1
----
-12740832

skipif mysql # not compatible
query I rowsort label-8724
SELECT DISTINCT - ( 39 ) * + - 83 * - 24 * - MIN ( - 2 ) * 82 AS col1
----
-12740832

query II rowsort
SELECT ALL + 13 col1, 82
----
13
82

query II rowsort
SELECT ALL + + 12 AS col1, - 41 - + 19 + + 58
----
12
-2

query I rowsort
SELECT ALL - 8 * - + NULLIF ( - 17, + - 50 * + + 59 * + 81 + 64 ) + 89 * 32 AS col2
----
2712

query I rowsort
SELECT + + 97 * - - 43 AS col0
----
4171

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT DISTINCT COALESCE ( 5, MIN( - - 89 ), + COUNT( * ) ) * + 89 * + MIN( 33 ) + + 1 * 13 AS col2
----
14698

skipif mysql # not compatible
query I rowsort label-8729
SELECT DISTINCT COALESCE ( 5, MIN ( - - 89 ), + COUNT ( * ) ) * + 89 * + MIN ( 33 ) + + 1 * 13 AS col2
----
14698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8730
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, - 10 + + CAST( NULL AS SIGNED ) + + 98 / + ( + + CASE + 50 WHEN + 58 - 49 THEN NULL WHEN - 67 * MAX( DISTINCT 86 ) + 40 THEN 56 + - 17 ELSE NULL END ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8730
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, - 10 + + CAST ( NULL AS INTEGER ) + + 98 / + ( + + CASE + 50 WHEN + 58 - 49 THEN NULL WHEN - 67 * MAX ( DISTINCT 86 ) + 40 THEN 56 + - 17 ELSE NULL END ) AS col0
----
NULL
NULL

query I rowsort
SELECT ( - ( - 12 ) ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT ( + - MAX( ALL + - 26 ) ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-8732
SELECT ( + - MAX ( ALL + - 26 ) ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT + 20 * - COUNT( * ) * + 74 AS col2
----
-1480

skipif mysql # not compatible
query I rowsort label-8733
SELECT + 20 * - COUNT ( * ) * + 74 AS col2
----
-1480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8734
SELECT - COALESCE ( COUNT( * ), 67 + + + 86 - + 78, + 67 + 65 + CAST( NULL AS SIGNED ) * 73 * 83 ) * 68 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-8734
SELECT - COALESCE ( COUNT ( * ), 67 + + + 86 - + 78, + 67 + 65 + CAST ( NULL AS INTEGER ) * 73 * 83 ) * 68 AS col2
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8735
SELECT COALESCE ( COUNT( * ), 9 DIV + 22 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8735
SELECT COALESCE ( COUNT ( * ), 9 / + 22 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8736
SELECT ALL + 33 * - COUNT( * ) DIV MAX( 68 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL + 33 * - COUNT ( * ) / MAX ( 68 ) AS col0
----
0

query I rowsort
SELECT ALL 34 * 82 + - 72 AS col1
----
2716

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8738
SELECT 33 * + - COUNT( * ) DIV + COALESCE ( - 70, 86 ) + - 1 col1
----
-1

skipif mysql # not compatible
query I rowsort label-8738
SELECT 33 * + - COUNT ( * ) / + COALESCE ( - 70, 86 ) + - 1 col1
----
-1

query I rowsort
SELECT ALL + 89 * 39 + + + 89 - 8 col1
----
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT COALESCE ( + COUNT( * ), + MAX( + 82 ) * - - NULLIF ( - - 89, 11 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8740
SELECT COALESCE ( + COUNT ( * ), + MAX ( + 82 ) * - - NULLIF ( - - 89, 11 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT ALL + 33 * - NULLIF ( + 45, 97 * + 86 + COUNT( * ) + - 56 + + 19 * - 95 ) AS col0
----
-1485

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL + 33 * - NULLIF ( + 45, 97 * + 86 + COUNT ( * ) + - 56 + + 19 * - 95 ) AS col0
----
-1485

query I rowsort
SELECT DISTINCT 46 * - ( - 3 ) + 59
----
197

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8743
SELECT ALL CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT - ( COUNT( * ) ) + + + 37 - - + 59
----
95

skipif mysql # not compatible
query I rowsort label-8744
SELECT - ( COUNT ( * ) ) + + + 37 - - + 59
----
95

query II rowsort
SELECT - 24 * 67, ( NULLIF ( - 54, + + ( + 76 ) * + 53 ) ) AS col1
----
-1608
-54

query I rowsort
SELECT ALL ( + - 78 ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-8747
SELECT DISTINCT 49 - - - COUNT( * ) AS col2, - 72 * + COUNT( * ) * + - 21
----
48
1512

skipif mysql # not compatible
query II rowsort label-8747
SELECT DISTINCT 49 - - - COUNT ( * ) AS col2, - 72 * + COUNT ( * ) * + - 21
----
48
1512

query I rowsort
SELECT ALL - 74 * - 81 + + + NULLIF ( 78, + AVG ( ALL - + ( + + 55 ) ) )
----
6072

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8749
SELECT ALL + 63 * 85 col1, CAST( NULL AS SIGNED )
----
5355
NULL

skipif mysql # not compatible
query II rowsort label-8749
SELECT ALL + 63 * 85 col1, CAST ( NULL AS INTEGER )
----
5355
NULL

query I rowsort
SELECT DISTINCT + - 19 * - 7 AS col0
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT NULLIF ( - 15, - 76 * 48 * 27 - - COALESCE ( - MIN( 74 ), - 32 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-8751
SELECT NULLIF ( - 15, - 76 * 48 * 27 - - COALESCE ( - MIN ( 74 ), - 32 ) )
----
-15

query I rowsort
SELECT ALL + 14 * + + 17
----
238

query I rowsort
SELECT 49 * 20 AS col0
----
980

query I rowsort
SELECT CASE - 55 WHEN - + ( - 18 ) THEN NULL ELSE + 60 END - - 88 AS col2
----
148

query I rowsort
SELECT ALL - + 77 * - + 90 + + 73 AS col0
----
7003

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8756
SELECT ( - - 23 ) * + - COUNT( * ) * 1 - - 87 DIV - 81 * - - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-8756
SELECT ( - - 23 ) * + - COUNT ( * ) * 1 - - 87 / - 81 * - - COUNT ( * )
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-8757
SELECT ALL 36 + - 5 DIV + 64 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL 36 + - 5 / + 64 AS col0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-8758
SELECT DISTINCT - 29 + 0 col0, 0 + - - MAX( DISTINCT - + 93 ) AS col2
----
-29
-93

skipif mysql # not compatible
query II rowsort label-8758
SELECT DISTINCT - 29 + 0 col0, 0 + - - MAX ( DISTINCT - + 93 ) AS col2
----
-29
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-8759
SELECT ALL 45 DIV + 26 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL 45 / + 26 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8760
SELECT - - 7 DIV + 48 + + + 33 + + - 29 + - 39 * 75 + - NULLIF ( 71, 90 * + 62 ) + 81 DIV + COUNT( * ) + COALESCE ( - 69, - 39 * - 56 )
----
-2980

skipif mysql # not compatible
query I rowsort label-8760
SELECT - - 7 / + 48 + + + 33 + + - 29 + - 39 * 75 + - NULLIF ( 71, 90 * + 62 ) + 81 / + COUNT ( * ) + COALESCE ( - 69, - 39 * - 56 )
----
-2980

query I rowsort
SELECT DISTINCT 14 * 81 AS col0
----
1134

query I rowsort
SELECT 32 + - 17
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT COALESCE ( NULLIF ( - - 80, + SUM( + - 40 ) / + AVG ( 15 ) ), - 95 + 47 * 56, + 89, + ( CASE + 91 WHEN 42 / MIN( 74 ) THEN - COUNT( * ) + 96 WHEN COUNT( * ) THEN NULL ELSE + 50 END ) ) * + 17 + 54
----
1414

skipif mysql # not compatible
query I rowsort label-8763
SELECT COALESCE ( NULLIF ( - - 80, + SUM ( + - 40 ) / + AVG ( 15 ) ), - 95 + 47 * 56, + 89, + ( CASE + 91 WHEN 42 / MIN ( 74 ) THEN - COUNT ( * ) + 96 WHEN COUNT ( * ) THEN NULL ELSE + 50 END ) ) * + 17 + 54
----
1414

query II rowsort
SELECT DISTINCT - 34, - 91 AS col0
----
-34
-91

query II rowsort
SELECT 71 AS col1, 30 - - - 98
----
71
-68

query I rowsort
SELECT 86 + 84
----
170

query I rowsort
SELECT 56 * - 88
----
-4928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8768
SELECT 87 AS col0, - COUNT( * ) / + + CAST( NULL AS SIGNED ) * - 59 * - + 79 * CASE - CASE + ( 93 ) WHEN COUNT( * ) - - 51 THEN - 58 ELSE NULL END WHEN 53 + CAST( NULL AS SIGNED ) THEN NULL ELSE 45 END AS col1
----
87
NULL

skipif mysql # not compatible
query II rowsort label-8768
SELECT 87 AS col0, - COUNT ( * ) / + + CAST ( NULL AS INTEGER ) * - 59 * - + 79 * CASE - CASE + ( 93 ) WHEN COUNT ( * ) - - 51 THEN - 58 ELSE NULL END WHEN 53 + CAST ( NULL AS INTEGER ) THEN NULL ELSE 45 END AS col1
----
87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT + 4 * 69 + - SUM( ALL 26 ) * + 23
----
-322

skipif mysql # not compatible
query I rowsort label-8769
SELECT + 4 * 69 + - SUM ( ALL 26 ) * + 23
----
-322

onlyif mysql # DIV for integer division: 
query I rowsort label-8770
SELECT 75 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-8770
SELECT 75 / + 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8771
SELECT ALL 6 DIV - 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL 6 / - 94 AS col0
----
0

query I rowsort
SELECT DISTINCT 41 * + + 75
----
3075

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT ALL + COUNT( * ) * COUNT( - 61 )
----
1

skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL + COUNT ( * ) * COUNT ( - 61 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8774
SELECT 38 DIV 13 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8774
SELECT 38 / 13 AS col0
----
2

query I rowsort
SELECT 69 - - + 57
----
126

query II rowsort
SELECT DISTINCT + 12, + 0 AS col0
----
12
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT + 58 * - COUNT( * ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-8777
SELECT + 58 * - COUNT ( * ) AS col1
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8778
SELECT ALL - 26 DIV 35
----
0

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL - 26 / 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT COUNT( * ) + - - 93 col1
----
94

skipif mysql # not compatible
query I rowsort label-8779
SELECT COUNT ( * ) + - - 93 col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8780
SELECT COALESCE ( + SUM( - + 75 ), COUNT( * ) + + 3 + - + COALESCE ( + ( - - 97 ), - 97 + + 34, 26 * - 82 + - CAST( 67 AS SIGNED ), - 81 + - 47 ) DIV + 55 ) * + 82
----
-6150

skipif mysql # not compatible
query I rowsort label-8780
SELECT COALESCE ( + SUM ( - + 75 ), COUNT ( * ) + + 3 + - + COALESCE ( + ( - - 97 ), - 97 + + 34, 26 * - 82 + - CAST ( 67 AS INTEGER ), - 81 + - 47 ) / + 55 ) * + 82
----
-6150

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT 94 + - COUNT( * ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-8781
SELECT 94 + - COUNT ( * ) AS col1
----
93

query I rowsort
SELECT DISTINCT + ( + 14 ) + - 86 - + + ( - 13 )
----
-59

query II rowsort
SELECT ALL - - 41 * + 28 * + 86, + 37 * 45 col2
----
98728
1665

query I rowsort
SELECT 86 + 40 * - + 25
----
-914

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT ALL - - 25 + - COUNT( * ) + + 60
----
84

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL - - 25 + - COUNT ( * ) + + 60
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8786
SELECT DISTINCT + 33 + COALESCE ( + + 98, - COUNT( * ) - - 52 + - 82 - + CAST( - 96 AS SIGNED ) * + 57 ) * 49
----
4835

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT + 33 + COALESCE ( + + 98, - COUNT ( * ) - - 52 + - 82 - + CAST ( - 96 AS INTEGER ) * + 57 ) * 49
----
4835

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT DISTINCT - 69 * + - CASE COUNT( * ) WHEN - - 43 THEN 80 END * + + 37 / - 41 * + 3 * + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT - 69 * + - CASE COUNT ( * ) WHEN - - 43 THEN 80 END * + + 37 / - 41 * + 3 * + 49
----
NULL

query I rowsort
SELECT ALL 90 + + 93
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8789
SELECT SUM( + 4 ) + + MIN( 52 ) + - CAST( NULL AS SIGNED ) + 0 + - 74 + + CAST( 53 AS SIGNED ) * - ( + CASE - ( CAST( 19 AS SIGNED ) ) WHEN - 12 THEN NULL ELSE + CAST( 7 AS SIGNED ) END / ( 2 ) ) * 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8789
SELECT SUM ( + 4 ) + + MIN ( 52 ) + - CAST ( NULL AS INTEGER ) + 0 + - 74 + + CAST ( 53 AS INTEGER ) * - ( + CASE - ( CAST ( 19 AS INTEGER ) ) WHEN - 12 THEN NULL ELSE + CAST ( 7 AS INTEGER ) END / ( 2 ) ) * 45 AS col2
----
NULL

query I rowsort
SELECT + 74 + + 61 AS col1
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-8791
SELECT DISTINCT - - COUNT( * ) AS col0, + COUNT( + - 95 ) * + NULLIF ( - 74, - + MAX( - 14 ) )
----
1
-74

skipif mysql # not compatible
query II rowsort label-8791
SELECT DISTINCT - - COUNT ( * ) AS col0, + COUNT ( + - 95 ) * + NULLIF ( - 74, - + MAX ( - 14 ) )
----
1
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT CASE 40 WHEN + AVG ( DISTINCT + 78 ) THEN - MIN( + - 72 ) WHEN - 21 THEN NULL END + ( - SUM( ALL - 60 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8792
SELECT CASE 40 WHEN + AVG ( DISTINCT + 78 ) THEN - MIN ( + - 72 ) WHEN - 21 THEN NULL END + ( - SUM ( ALL - 60 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8793
SELECT 51 * - MAX( DISTINCT 98 ) * - - ( + - CAST( NULL AS SIGNED ) ) + - COUNT( * ) * + + ( + 95 ) + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8793
SELECT 51 * - MAX ( DISTINCT 98 ) * - - ( + - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) * + + ( + 95 ) + + 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT ALL 89 * + COUNT( * ) * + COALESCE ( + 36, + COALESCE ( 0, 65 + + 65 ) * COUNT( * ) - ( - 79 ) ) + 83 AS col0
----
3287

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL 89 * + COUNT ( * ) * + COALESCE ( + 36, + COALESCE ( 0, 65 + + 65 ) * COUNT ( * ) - ( - 79 ) ) + 83 AS col0
----
3287

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT 41 * COUNT( * ) * + - 99 col1
----
-4059

skipif mysql # not compatible
query I rowsort label-8795
SELECT 41 * COUNT ( * ) * + - 99 col1
----
-4059

onlyif mysql # aggregate syntax: 
query III rowsort label-8796
SELECT DISTINCT - ( - 45 ) col0, - COUNT( * ) + + 16 * + - 3 col2, + 58
----
45
-49
58

skipif mysql # not compatible
query III rowsort label-8796
SELECT DISTINCT - ( - 45 ) col0, - COUNT ( * ) + + 16 * + - 3 col2, + 58
----
45
-49
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT COUNT( ALL - 60 )
----
1

skipif mysql # not compatible
query I rowsort label-8797
SELECT COUNT ( ALL - 60 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT DISTINCT - CAST( NULLIF ( 18, - + NULLIF ( - 31, 81 ) + + 33 - - + ( - 56 ) / 79 ) AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-8798
SELECT DISTINCT - CAST ( NULLIF ( 18, - + NULLIF ( - 31, 81 ) + + 33 - - + ( - 56 ) / 79 ) AS INTEGER )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8799
SELECT DISTINCT - ( + 74 ) * + COUNT( 14 ) + AVG ( - CAST( NULL AS SIGNED ) ) - - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8799
SELECT DISTINCT - ( + 74 ) * + COUNT ( 14 ) + AVG ( - CAST ( NULL AS INTEGER ) ) - - 8
----
NULL

query I rowsort
SELECT DISTINCT 96 * + 90
----
8640

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT DISTINCT 1 * + 1 - - COUNT( * ) * + 50 + 81 * + 5
----
456

skipif mysql # not compatible
query I rowsort label-8801
SELECT DISTINCT 1 * + 1 - - COUNT ( * ) * + 50 + 81 * + 5
----
456

onlyif mysql # DIV for integer division: 
query I rowsort label-8802
SELECT DISTINCT 25 DIV - - 51 * - 13
----
0

skipif mysql # not compatible
query I rowsort label-8802
SELECT DISTINCT 25 / - - 51 * - 13
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8803
SELECT 56 * 97 DIV - - 87
----
62

skipif mysql # not compatible
query I rowsort label-8803
SELECT 56 * 97 / - - 87
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT 1 * + 0 * - - SUM( 19 )
----
0

skipif mysql # not compatible
query I rowsort label-8804
SELECT 1 * + 0 * - - SUM ( 19 )
----
0

query I rowsort
SELECT + 0 * + 10 - 76
----
-76

query I rowsort
SELECT + 94 * + 64 * ( - 5 ) AS col1
----
-30080

onlyif mysql # aggregate syntax: 
query II rowsort label-8807
SELECT ALL 0 * + 79 AS col0, MAX( 63 ) AS col1
----
0
63

skipif mysql # not compatible
query II rowsort label-8807
SELECT ALL 0 * + 79 AS col0, MAX ( 63 ) AS col1
----
0
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT ALL - MIN( 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL - MIN ( 15 ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT + 50 + + + 49 + - ( + + 40 ) + - COUNT( * ) + - 18 * - + 72 + 1 * - + 49
----
1305

skipif mysql # not compatible
query I rowsort label-8809
SELECT + 50 + + + 49 + - ( + + 40 ) + - COUNT ( * ) + - 18 * - + 72 + 1 * - + 49
----
1305

query I rowsort
SELECT + + 52 - ( + 89 ) + - 49 * + 50 col1
----
-2487

onlyif mysql # aggregate syntax: 
query II rowsort label-8811
SELECT ALL + ( + 70 ) AS col0, + COALESCE ( + 74, + 4, + + COUNT( * ), + 97 ) * - + 35
----
70
-2590

skipif mysql # not compatible
query II rowsort label-8811
SELECT ALL + ( + 70 ) AS col0, + COALESCE ( + 74, + 4, + + COUNT ( * ), + 97 ) * - + 35
----
70
-2590

query II rowsort
SELECT - ( 52 ) AS col1, - 25 * 59 + + 73 + + + 37 + - - 11
----
-52
-1354

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8813
SELECT - 55 DIV + + MIN( DISTINCT 71 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8813
SELECT - 55 / + + MIN ( DISTINCT 71 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT + 95 * + - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-8814
SELECT + 95 * + - COUNT ( * )
----
-95

query I rowsort
SELECT DISTINCT + 53 + - - 33 + - 28
----
58

query I rowsort
SELECT DISTINCT + 73 + - 2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8817
SELECT ALL + - 77 + MAX( - - 6 ) + - 49 * + 57 + - COALESCE ( + + 57, 4 DIV + + 95, 47 + + 14 ) * ( NULLIF ( 42, CASE - COUNT( * ) WHEN COUNT( * ) * - CAST( + 40 AS SIGNED ) THEN NULL ELSE 90 END * 16 ) )
----
-5258

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL + - 77 + MAX ( - - 6 ) + - 49 * + 57 + - COALESCE ( + + 57, 4 / + + 95, 47 + + 14 ) * ( NULLIF ( 42, CASE - COUNT ( * ) WHEN COUNT ( * ) * - CAST ( + 40 AS INTEGER ) THEN NULL ELSE 90 END * 16 ) )
----
-5258

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8818
SELECT ALL - 29 + - + COUNT( * ) DIV - 31 * - + 65 * - 82
----
-29

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL - 29 + - + COUNT ( * ) / - 31 * - + 65 * - 82
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-8819
SELECT - ( - 11 ) AS col1, + COUNT( * )
----
11
1

skipif mysql # not compatible
query II rowsort label-8819
SELECT - ( - 11 ) AS col1, + COUNT ( * )
----
11
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8820
SELECT + ( + 77 ) * + CASE - CASE 82 WHEN + - 44 THEN - 2 + - - 13 * + ( - CAST( - 63 AS SIGNED ) ) ELSE + AVG ( 99 ) / 29 END WHEN 96 + 73 THEN 26 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8820
SELECT + ( + 77 ) * + CASE - CASE 82 WHEN + - 44 THEN - 2 + - - 13 * + ( - CAST ( - 63 AS INTEGER ) ) ELSE + AVG ( 99 ) / 29 END WHEN 96 + 73 THEN 26 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8821
SELECT ALL - 79 + - + COUNT( * ) DIV + 67 + - MIN( DISTINCT + + 89 ) AS col1
----
-168

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL - 79 + - + COUNT ( * ) / + 67 + - MIN ( DISTINCT + + 89 ) AS col1
----
-168

query I rowsort
SELECT - 11 - 60 + - 42 - - 88 * - 37 + - 96
----
-3465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8823
SELECT ALL - CAST( NULL AS SIGNED ) - - 54 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL - CAST ( NULL AS INTEGER ) - - 54 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8824
SELECT DISTINCT - 1 * - - 12 DIV 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT - 1 * - - 12 / 88 AS col0
----
0

query I rowsort
SELECT ALL + COALESCE ( - 91, + 9 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT 84 * + + ( + 51 ) + - + COALESCE ( + 56, 4 ) + - - 46 - + 9 * - - SUM( DISTINCT - + 82 )
----
5012

skipif mysql # not compatible
query I rowsort label-8826
SELECT 84 * + + ( + 51 ) + - + COALESCE ( + 56, 4 ) + - - 46 - + 9 * - - SUM ( DISTINCT - + 82 )
----
5012

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8827
SELECT - MIN( DISTINCT - + 37 ) - + 43 DIV + ( - + 59 )
----
37

skipif mysql # not compatible
query I rowsort label-8827
SELECT - MIN ( DISTINCT - + 37 ) - + 43 / + ( - + 59 )
----
37

query I rowsort
SELECT ALL - 11 * + - 54
----
594

query I rowsort
SELECT - 72 * - - 90 AS col2
----
-6480

onlyif mysql # DIV for integer division: 
query I rowsort label-8830
SELECT + 78 DIV + ( ( + 65 ) ) + + 95 + - 29
----
67

skipif mysql # not compatible
query I rowsort label-8830
SELECT + 78 / + ( ( + 65 ) ) + + 95 + - 29
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT + COUNT( - 38 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8831
SELECT + COUNT ( - 38 ) AS col0
----
1

query I rowsort
SELECT ALL - 84 * 12
----
-1008

query I rowsort
SELECT + 30 * - 47 col2
----
-1410

query I rowsort
SELECT NULLIF ( + - 84, + 41 )
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8835
SELECT + 34 * - 65 + MAX( + 80 ) * - 12 AS col2, + 71 DIV - - COUNT( * ) AS col2
----
-3170
71

skipif mysql # not compatible
query II rowsort label-8835
SELECT + 34 * - 65 + MAX ( + 80 ) * - 12 AS col2, + 71 / - - COUNT ( * ) AS col2
----
-3170
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT ALL + COALESCE ( + COUNT( * ), - ( + 42 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL + COALESCE ( + COUNT ( * ), - ( + 42 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8837
SELECT - 53 + - 31 + COALESCE ( 50, - + COUNT( * ) * + - 2 ) + 70 + - 99 AS col1, 19
----
-63
19

skipif mysql # not compatible
query II rowsort label-8837
SELECT - 53 + - 31 + COALESCE ( 50, - + COUNT ( * ) * + - 2 ) + 70 + - 99 AS col1, 19
----
-63
19

query I rowsort
SELECT - 82 + + 20 col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT - NULLIF ( - - 70, + 52 * - 64 + + MIN( ALL - 81 ) ) * - + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-8839
SELECT - NULLIF ( - - 70, + 52 * - 64 + + MIN ( ALL - 81 ) ) * - + COUNT ( * )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8840
SELECT + 47 + - 5 + 66 DIV - 73 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-8840
SELECT + 47 + - 5 + 66 / - 73 AS col2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-8841
SELECT + 10 col1, - ( - 72 ) * - - COUNT( * )
----
10
72

skipif mysql # not compatible
query II rowsort label-8841
SELECT + 10 col1, - ( - 72 ) * - - COUNT ( * )
----
10
72

query II rowsort
SELECT + 26 * - ( + 56 ) AS col0, - 88 AS col1
----
-1456
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT ALL - + 64 * + ( + 54 ) + - 71 + - + 82 + + MAX( + 6 ) AS col0
----
-3603

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL - + 64 * + ( + 54 ) + - 71 + - + 82 + + MAX ( + 6 ) AS col0
----
-3603

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT DISTINCT + 68 * + MIN( + - 18 ) * 61
----
-74664

skipif mysql # not compatible
query I rowsort label-8844
SELECT DISTINCT + 68 * + MIN ( + - 18 ) * 61
----
-74664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8845
SELECT + - CAST( NULL AS SIGNED ) * - + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT + - CAST ( NULL AS INTEGER ) * - + 2 AS col2
----
NULL

query I rowsort
SELECT ALL - - 45 * - 10 + - 25 AS col1
----
-475

query I rowsort
SELECT - + ( + + 89 )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8848
SELECT ALL - 44 + ( + 36 ) + - 9 + + + COUNT( * ) * - + CASE - 55 WHEN COUNT( * ) * - ( + CASE + CAST( 55 AS SIGNED ) WHEN + 92 + + 5 * 31 THEN CASE 90 WHEN 9 * 70 THEN NULL WHEN + 23 + - 29 * 58 THEN 33 END ELSE NULL END ) + + COUNT( * ) + + CAST( - SUM( ALL 43 ) AS SIGNED ) * + 43 THEN - COUNT( * ) ELSE - 82 END * 19 col1
----
1541

skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL - 44 + ( + 36 ) + - 9 + + + COUNT ( * ) * - + CASE - 55 WHEN COUNT ( * ) * - ( + CASE + CAST ( 55 AS INTEGER ) WHEN + 92 + + 5 * 31 THEN CASE 90 WHEN 9 * 70 THEN NULL WHEN + 23 + - 29 * 58 THEN 33 END ELSE NULL END ) + + COUNT ( * ) + + CAST ( - SUM ( ALL 43 ) AS INTEGER ) * + 43 THEN - COUNT ( * ) ELSE - 82 END * 19 col1
----
1541

query I rowsort
SELECT ALL - 85 + + 7 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT - + MAX( DISTINCT + - 47 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-8850
SELECT - + MAX ( DISTINCT + - 47 ) AS col2
----
47

query I rowsort
SELECT ALL + COALESCE ( - - 51, - 21 ) AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8852
SELECT - SUM( + ( 50 ) ) + - CAST( 15 AS SIGNED ), - 84 AS col2
----
-65
-84

skipif mysql # not compatible
query II rowsort label-8852
SELECT - SUM ( + ( 50 ) ) + - CAST ( 15 AS INTEGER ), - 84 AS col2
----
-65
-84

query I rowsort
SELECT + 29 - - - 35
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8854
SELECT DISTINCT - 92 * - 76 + CAST( + COUNT( * ) AS SIGNED ) + - + 63 col0
----
6930

skipif mysql # not compatible
query I rowsort label-8854
SELECT DISTINCT - 92 * - 76 + CAST ( + COUNT ( * ) AS INTEGER ) + - + 63 col0
----
6930

onlyif mysql # aggregate syntax: 
query II rowsort label-8855
SELECT ALL ( - - 91 ) col0, - ( + 34 ) + 79 * - ( 32 ) * - - 78 * 27 + + 45 * - - SUM( ALL 94 ) * - MAX( ALL + 70 + 19 ) + 53 AS col0
----
91
-5700419

skipif mysql # not compatible
query II rowsort label-8855
SELECT ALL ( - - 91 ) col0, - ( + 34 ) + 79 * - ( 32 ) * - - 78 * 27 + + 45 * - - SUM ( ALL 94 ) * - MAX ( ALL + 70 + 19 ) + 53 AS col0
----
91
-5700419

query I rowsort
SELECT - 85 + - - 52 AS col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8857
SELECT ALL 49 * + + CAST( - + 11 AS SIGNED )
----
-539

skipif mysql # not compatible
query I rowsort label-8857
SELECT ALL 49 * + + CAST ( - + 11 AS INTEGER )
----
-539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8858
SELECT 73 AS col1, 84 * 8 * - + 74 - CASE - + 58 WHEN + 96 * CAST( - 77 AS SIGNED ) - + + COUNT( * ) THEN - COUNT( * ) END
----
73
NULL

skipif mysql # not compatible
query II rowsort label-8858
SELECT 73 AS col1, 84 * 8 * - + 74 - CASE - + 58 WHEN + 96 * CAST ( - 77 AS INTEGER ) - + + COUNT ( * ) THEN - COUNT ( * ) END
----
73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT - ( + 40 ) + - ( + COUNT( * ) ) + ( + 94 ) * + 18 + + 15 * - - 96 * - COALESCE ( + 27, 1, - COUNT( * ) * 92 ) AS col2
----
-37229

skipif mysql # not compatible
query I rowsort label-8859
SELECT - ( + 40 ) + - ( + COUNT ( * ) ) + ( + 94 ) * + 18 + + 15 * - - 96 * - COALESCE ( + 27, 1, - COUNT ( * ) * 92 ) AS col2
----
-37229

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT ALL NULLIF ( - 51, + + COUNT( ALL + 50 ) - - 67 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL NULLIF ( - 51, + + COUNT ( ALL + 50 ) - - 67 ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT DISTINCT CASE - + 84 WHEN COUNT( * ) THEN + 49 * + 15 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8861
SELECT DISTINCT CASE - + 84 WHEN COUNT ( * ) THEN + 49 * + 15 END AS col1
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 84, + 32 ) col0
----
84

query II rowsort
SELECT DISTINCT + 34 AS col1, 97 AS col0
----
34
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8864
SELECT ALL + 43 DIV + COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL + 43 / + COUNT ( * ) AS col0
----
43

query I rowsort
SELECT 82 * 57
----
4674

query II rowsort
SELECT 11, + 46 + + 27 - + - 60 + - 10 col2
----
11
123

query I rowsort
SELECT 95 * - 61 AS col0
----
-5795

query II rowsort
SELECT + 12, + ( 54 ) - - 98 AS col2
----
12
152

query II rowsort
SELECT 2, - 42 AS col0
----
2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT DISTINCT - COUNT( * ) + + - 12 + - 19
----
-32

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT - COUNT ( * ) + + - 12 + - 19
----
-32

query I rowsort
SELECT ALL + 54 + + 14
----
68

query II rowsort
SELECT 11 AS col0, 75
----
11
75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8873
SELECT ALL - 56 + - 86 + + 38 + + CAST( NULL AS DECIMAL ), 27 AS col0
----
NULL
27

skipif mysql # not compatible
query II rowsort label-8873
SELECT ALL - 56 + - 86 + + 38 + + CAST ( NULL AS REAL ), 27 AS col0
----
NULL
27

onlyif mysql # aggregate syntax: 
query III rowsort label-8874
SELECT ALL - + 94, - 42 + + + COUNT( ALL - + 39 ) AS col2, + CASE + + 24 WHEN + 5 THEN - 0 * 54 END * 7 AS col2
----
-94
-41
NULL

skipif mysql # not compatible
query III rowsort label-8874
SELECT ALL - + 94, - 42 + + + COUNT ( ALL - + 39 ) AS col2, + CASE + + 24 WHEN + 5 THEN - 0 * 54 END * 7 AS col2
----
-94
-41
NULL

query I rowsort
SELECT - 89 * 2 + + ( + + 60 ) * - 99 AS col1
----
-6118

query II rowsort
SELECT ALL - ( + + 20 ), - 73 * 34 AS col0
----
-20
-2482

query II rowsort
SELECT 60, + 76 AS col0
----
60
76

query I rowsort
SELECT ALL - 95 + 76 col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8879
SELECT DISTINCT - 20 AS col2, + ( 85 ) DIV SUM( - 50 ) AS col0
----
-20
-1

skipif mysql # not compatible
query II rowsort label-8879
SELECT DISTINCT - 20 AS col2, + ( 85 ) / SUM ( - 50 ) AS col0
----
-20
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT ALL ( - 32 ) + 72 * - - COUNT( * ) + + + 23 + + COUNT( 43 ) - - - ( + 47 ) + - 45 * SUM( + 88 )
----
-3943

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL ( - 32 ) + 72 * - - COUNT ( * ) + + + 23 + + COUNT ( 43 ) - - - ( + 47 ) + - 45 * SUM ( + 88 )
----
-3943

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT ALL + COUNT( * ) + + - 94 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL + COUNT ( * ) + + - 94 AS col1
----
-93

query I rowsort
SELECT - 4 * - 76
----
304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8883
SELECT COUNT( * ) + - 48 + - 15 + 43 - - + ( CASE + + COUNT( * ) WHEN - 44 THEN + 86 ELSE + 95 END ) DIV COUNT( * ) col0
----
76

skipif mysql # not compatible
query I rowsort label-8883
SELECT COUNT ( * ) + - 48 + - 15 + 43 - - + ( CASE + + COUNT ( * ) WHEN - 44 THEN + 86 ELSE + 95 END ) / COUNT ( * ) col0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8884
SELECT DISTINCT + - ( ( + - 32 ) ) DIV - + 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8884
SELECT DISTINCT + - ( ( + - 32 ) ) / - + 56 AS col0
----
0

query I rowsort
SELECT ALL - + 5 - - 31 + 1
----
27

query I rowsort
SELECT - 70 * 63 * - + 82
----
361620

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8887
SELECT COALESCE ( - 32, - + CAST( 26 AS SIGNED ) ) DIV 51 * + 78, - 0
----
0
0

skipif mysql # not compatible
query II rowsort label-8887
SELECT COALESCE ( - 32, - + CAST ( 26 AS INTEGER ) ) / 51 * + 78, - 0
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT - + COUNT( ALL 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-8888
SELECT - + COUNT ( ALL 18 )
----
-1

query I rowsort
SELECT ALL + 63 * 97
----
6111

query I rowsort
SELECT ALL + 52 - + 87 + + 30
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ALL + MAX( ALL + + 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL + MAX ( ALL + + 3 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT NULLIF ( + - NULLIF ( + ( COALESCE ( + 41, MIN( ALL ( - 25 ) ) * - COUNT( * ) ) ), + 40 + - COUNT( * ) + 47 ), - 1 * - 0 ) * - COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-8892
SELECT NULLIF ( + - NULLIF ( + ( COALESCE ( + 41, MIN ( ALL ( - 25 ) ) * - COUNT ( * ) ) ), + 40 + - COUNT ( * ) + 47 ), - 1 * - 0 ) * - COUNT ( * ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT ALL 46 - - - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL 46 - - - COUNT ( * )
----
45

query I rowsort
SELECT 18 * - 38
----
-684

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8895
SELECT DISTINCT 91 * + COUNT( * ) * + 41 AS col0, - 3 * + + 90 DIV + + NULLIF ( - + 11, + - ( - 56 ) )
----
3731
24

skipif mysql # not compatible
query II rowsort label-8895
SELECT DISTINCT 91 * + COUNT ( * ) * + 41 AS col0, - 3 * + + 90 / + + NULLIF ( - + 11, + - ( - 56 ) )
----
3731
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8896
SELECT 41 + 27 AS col2, 87 + + - COUNT( * )
----
68
86

skipif mysql # not compatible
query II rowsort label-8896
SELECT 41 + 27 AS col2, 87 + + - COUNT ( * )
----
68
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT MAX( ALL - 2 ) * + 3
----
-6

skipif mysql # not compatible
query I rowsort label-8897
SELECT MAX ( ALL - 2 ) * + 3
----
-6

query I rowsort
SELECT 66 - - + 66 AS col2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT DISTINCT NULLIF ( 93, 9 ) + + MIN( - - 89 ) + - + 43
----
139

skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT NULLIF ( 93, 9 ) + + MIN ( - - 89 ) + - + 43
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8900
SELECT DISTINCT - MAX( DISTINCT + 85 ) AS col0, 56 + - + 45 * + - CAST( 56 AS SIGNED )
----
-85
2576

skipif mysql # not compatible
query II rowsort label-8900
SELECT DISTINCT - MAX ( DISTINCT + 85 ) AS col0, 56 + - + 45 * + - CAST ( 56 AS INTEGER )
----
-85
2576

query I rowsort
SELECT ALL 36 + + 76
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT + 25 * - ( + 18 ) * 62 + - + COUNT( * ) AS col1
----
-27901

skipif mysql # not compatible
query I rowsort label-8902
SELECT + 25 * - ( + 18 ) * 62 + - + COUNT ( * ) AS col1
----
-27901

query I rowsort
SELECT 85 + + 56 + ( + 92 ) AS col2
----
233

query I rowsort
SELECT 58 * + 17 * 82 - 98 col1
----
80754

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT 30 * + ( + COALESCE ( - 50, - - CASE 83 WHEN + 74 THEN + - COUNT( - 2 ) + 62 * + 40 END ) ) AS col0
----
-1500

skipif mysql # not compatible
query I rowsort label-8905
SELECT 30 * + ( + COALESCE ( - 50, - - CASE 83 WHEN + 74 THEN + - COUNT ( - 2 ) + 62 * + 40 END ) ) AS col0
----
-1500

query I rowsort
SELECT ( 84 ) + 68 AS col1
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT ALL - COUNT( * ) + + MAX( ALL + ( 34 ) ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL - COUNT ( * ) + + MAX ( ALL + ( 34 ) ) AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8908
SELECT ALL - 99 + 38 DIV + 51 * - 59 col1
----
-99

skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL - 99 + 38 / + 51 * - 59 col1
----
-99

query I rowsort
SELECT - 99 * + 17 * + 32 + + 82
----
-53774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8910
SELECT ALL - 44 + + 76, COALESCE ( + + CAST( - - NULLIF ( - - 87, + 77 ) AS SIGNED ), - + CAST( NULL AS SIGNED ) + - + COUNT( * ) ) AS col0
----
32
87

skipif mysql # not compatible
query II rowsort label-8910
SELECT ALL - 44 + + 76, COALESCE ( + + CAST ( - - NULLIF ( - - 87, + 77 ) AS INTEGER ), - + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) ) AS col0
----
32
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8911
SELECT + CAST( NULL AS SIGNED ) + 65 * 84 + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8911
SELECT + CAST ( NULL AS INTEGER ) + 65 * 84 + 89 AS col2
----
NULL

query I rowsort
SELECT - 2 + - 15 * 35 + + 36 + 65
----
-426

query I rowsort
SELECT + NULLIF ( 53, 90 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT DISTINCT + - MAX( DISTINCT 38 ) * - - 65 * + NULLIF ( + 2, + - NULLIF ( - - 44, - 86 + 66 + + 75 * - 25 ) ) AS col2
----
-4940

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT + - MAX ( DISTINCT 38 ) * - - 65 * + NULLIF ( + 2, + - NULLIF ( - - 44, - 86 + 66 + + 75 * - 25 ) ) AS col2
----
-4940

query I rowsort
SELECT ALL - - ( 0 ) - 27 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT DISTINCT + + 41 * - 73 + MIN( DISTINCT - 41 ) * - 31 AS col0
----
-1722

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT + + 41 * - 73 + MIN ( DISTINCT - 41 ) * - 31 AS col0
----
-1722

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT + 68 * - SUM( - 2 ) * - - SUM( - 65 )
----
-8840

skipif mysql # not compatible
query I rowsort label-8917
SELECT + 68 * - SUM ( - 2 ) * - - SUM ( - 65 )
----
-8840

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT - COUNT( DISTINCT 47 ) + - 17 * - 68 * + - 91 + + - 48 col2
----
-105245

skipif mysql # not compatible
query I rowsort label-8918
SELECT - COUNT ( DISTINCT 47 ) + - 17 * - 68 * + - 91 + + - 48 col2
----
-105245

query I rowsort
SELECT - 91 + 43 + - - 59
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT + MIN( - 41 ) + + 51 * 72 * - COUNT( * ) AS col1
----
-3713

skipif mysql # not compatible
query I rowsort label-8920
SELECT + MIN ( - 41 ) + + 51 * 72 * - COUNT ( * ) AS col1
----
-3713

query I rowsort
SELECT + 27 + - 49 + + + 88 * - 94
----
-8294

query I rowsort
SELECT 50 * + 35
----
1750

query I rowsort
SELECT 86 + - + 16 * - 46
----
822

onlyif mysql # DIV for integer division: 
query I rowsort label-8924
SELECT ALL - 52 DIV - 90 * 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL - 52 / - 90 * 84 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8925
SELECT 57 + - 51 + + 47 * CASE COUNT( * ) WHEN - 34 THEN NULL WHEN 89 + + 2 THEN + NULLIF ( 57, + 2 ) + COUNT( * ) * + 27 * 66 ELSE + 88 END DIV 54 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-8925
SELECT 57 + - 51 + + 47 * CASE COUNT ( * ) WHEN - 34 THEN NULL WHEN 89 + + 2 THEN + NULLIF ( 57, + 2 ) + COUNT ( * ) * + 27 * 66 ELSE + 88 END / 54 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT DISTINCT - 43 * - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT - 43 * - COUNT ( * )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8927
SELECT DISTINCT COUNT( * ) * - - SUM( CAST( + + 35 AS SIGNED ) ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT COUNT ( * ) * - - SUM ( CAST ( + + 35 AS INTEGER ) ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT ALL 96 + - NULLIF ( + + CASE - + COUNT( * ) WHEN - MIN( - 63 ) THEN - 31 END, 61 * ( 79 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL 96 + - NULLIF ( + + CASE - + COUNT ( * ) WHEN - MIN ( - 63 ) THEN - 31 END, 61 * ( 79 ) )
----
NULL

query I rowsort
SELECT - 2 + 17
----
15

query II rowsort
SELECT ALL - 52 * ( + - 66 ) AS col0, + ( - 80 )
----
3432
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8931
SELECT - CAST( NULLIF ( 21, 12 ) AS SIGNED ) + COALESCE ( 13, 55 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-8931
SELECT - CAST ( NULLIF ( 21, 12 ) AS INTEGER ) + COALESCE ( 13, 55 ) AS col1
----
-8

query I rowsort
SELECT DISTINCT + 80 * - + 76
----
-6080

query I rowsort
SELECT ALL - 26 + - - 28
----
2

query I rowsort
SELECT + 72 + + - 31 col2
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8935
SELECT - CAST( NULL AS SIGNED ) * + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-8935
SELECT - CAST ( NULL AS INTEGER ) * + + 45
----
NULL

query I rowsort
SELECT + 48 + + + 34 * + + 73 + - ( + + 57 ) AS col2
----
2473

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8937
SELECT ALL 54 + CAST( - + 16 AS SIGNED ) * - 21
----
390

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL 54 + CAST ( - + 16 AS INTEGER ) * - 21
----
390

query I rowsort
SELECT + 24 + + 97 + 15 + 13 AS col2
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8939
SELECT ALL COUNT( * ) + 41 DIV + 55 AS col1, 33
----
1
33

skipif mysql # not compatible
query II rowsort label-8939
SELECT ALL COUNT ( * ) + 41 / + 55 AS col1, 33
----
1
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT COALESCE ( - - 46, - ( 24 ) * + - COUNT( * ) + - 57 )
----
46

skipif mysql # not compatible
query I rowsort label-8940
SELECT COALESCE ( - - 46, - ( 24 ) * + - COUNT ( * ) + - 57 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT 63 * - COUNT( * ) + - COUNT( * ) * - + 99 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-8941
SELECT 63 * - COUNT ( * ) + - COUNT ( * ) * - + 99 AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8942
SELECT ALL 23 * - 88 * + CASE + AVG ( ALL 60 ) WHEN - 9 * - CASE + 59 WHEN 42 THEN - 85 WHEN + 29 + 57 THEN - - 27 * 79 WHEN - 75 THEN NULL ELSE NULL END * 8 THEN NULL WHEN - 11 + - COUNT( - 4 ) / + COUNT( - 20 ) THEN 93 ELSE COALESCE ( + CAST( 18 AS SIGNED ), - 84 + - 13 * - 48 ) END * COUNT( * ) AS col1
----
-36432

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL 23 * - 88 * + CASE + AVG ( ALL 60 ) WHEN - 9 * - CASE + 59 WHEN 42 THEN - 85 WHEN + 29 + 57 THEN - - 27 * 79 WHEN - 75 THEN NULL ELSE NULL END * 8 THEN NULL WHEN - 11 + - COUNT ( - 4 ) / + COUNT ( - 20 ) THEN 93 ELSE COALESCE ( + CAST ( 18 AS INTEGER ), - 84 + - 13 * - 48 ) END * COUNT ( * ) AS col1
----
-36432

query I rowsort
SELECT ALL + ( - 94 ) * 59 + + 88 AS col1
----
-5458

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8944
SELECT ALL CAST( NULL AS DECIMAL ) * 12 + + 42 * 23 + + AVG ( DISTINCT + - 35 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8944
SELECT ALL CAST ( NULL AS REAL ) * 12 + + 42 * 23 + + AVG ( DISTINCT + - 35 ) AS col2
----
NULL

query II rowsort
SELECT + + 42 * + 61 * + - 46, + 95 AS col1
----
-117852
95

query I rowsort
SELECT ALL + 37 * NULLIF ( + 83, + 3 ) * + 91
----
279461

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT + + 98 - + SUM( ALL - 22 ) - + 2 * + 76 * - 52 * - 3 AS col1
----
-23592

skipif mysql # not compatible
query I rowsort label-8947
SELECT + + 98 - + SUM ( ALL - 22 ) - + 2 * + 76 * - 52 * - 3 AS col1
----
-23592

onlyif mysql # DIV for integer division: 
query I rowsort label-8948
SELECT + + 93 DIV + - 82 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8948
SELECT + + 93 / + - 82 AS col1
----
-1

query I rowsort
SELECT - COALESCE ( - + 44, - 84 ) AS col2
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8950
SELECT ALL - - 17 * - 21 + CAST( - 12 AS SIGNED ) + - 0 + + + 48 * - 79 * + 46 - 57 AS col0
----
-174858

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL - - 17 * - 21 + CAST ( - 12 AS INTEGER ) + - 0 + + + 48 * - 79 * + 46 - 57 AS col0
----
-174858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8951
SELECT ALL + 42 AS col1, - COALESCE ( + COUNT( * ), CAST( + COUNT( * ) AS SIGNED ) ) + - 56 - + 61
----
42
-118

skipif mysql # not compatible
query II rowsort label-8951
SELECT ALL + 42 AS col1, - COALESCE ( + COUNT ( * ), CAST ( + COUNT ( * ) AS INTEGER ) ) + - 56 - + 61
----
42
-118

query I rowsort
SELECT - 67 * - - 0 - + 83
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8953
SELECT ALL - CAST( NULL AS SIGNED ) / + + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL - CAST ( NULL AS INTEGER ) / + + 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8954
SELECT + 61 * COALESCE ( + + CASE + 85 WHEN - + 51 THEN + + 71 ELSE - - 13 DIV - 45 * - COUNT( * ) * ( - COUNT( * ) ) END, - - 42, + 58 ) + 89 * 65 AS col2
----
5785

skipif mysql # not compatible
query I rowsort label-8954
SELECT + 61 * COALESCE ( + + CASE + 85 WHEN - + 51 THEN + + 71 ELSE - - 13 / - 45 * - COUNT ( * ) * ( - COUNT ( * ) ) END, - - 42, + 58 ) + 89 * 65 AS col2
----
5785

query I rowsort
SELECT + 66 - 7 * - 82 AS col1
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT + + SUM( + - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-8956
SELECT + + SUM ( + - 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT DISTINCT + + ( + - NULLIF ( + 32, + 99 + + - 10 + + - COALESCE ( + 53, + 94 ) - - 55 * + 7 * + 14 * - - ( - COUNT( * ) ) * - 9 ) ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-8957
SELECT DISTINCT + + ( + - NULLIF ( + 32, + 99 + + - 10 + + - COALESCE ( + 53, + 94 ) - - 55 * + 7 * + 14 * - - ( - COUNT ( * ) ) * - 9 ) ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT + + 80 * + - 22 * - ( + 16 ) + + COUNT( * )
----
28161

skipif mysql # not compatible
query I rowsort label-8958
SELECT + + 80 * + - 22 * - ( + 16 ) + + COUNT ( * )
----
28161

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT - - 74 + NULLIF ( - 64, + MAX( ALL - + ( - 52 ) ) ) + - 37 + 64
----
37

skipif mysql # not compatible
query I rowsort label-8959
SELECT - - 74 + NULLIF ( - 64, + MAX ( ALL - + ( - 52 ) ) ) + - 37 + 64
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8960
SELECT - CAST( NULL AS SIGNED ), ( + 22 ) AS col2
----
NULL
22

skipif mysql # not compatible
query II rowsort label-8960
SELECT - CAST ( NULL AS INTEGER ), ( + 22 ) AS col2
----
NULL
22

query I rowsort
SELECT + 8 * COALESCE ( - 64, 0 ) * + 1
----
-512

query I rowsort
SELECT - 14 * - + 62 AS col1
----
868

query II rowsort
SELECT DISTINCT 32 * - - 52 AS col2, - 33 AS col0
----
1664
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT ALL + MAX( DISTINCT 38 ) + 57 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL + MAX ( DISTINCT 38 ) + 57 AS col2
----
95

query I rowsort
SELECT DISTINCT ( - 25 ) AS col2
----
-25

query I rowsort
SELECT DISTINCT + 12 + + 7
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8967
SELECT ALL CAST( - 51 AS SIGNED ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL CAST ( - 51 AS INTEGER ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT DISTINCT - 12 + + COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT - 12 + + COUNT ( * )
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8969
SELECT - COUNT( * ) + - 71 DIV - 13
----
4

skipif mysql # not compatible
query I rowsort label-8969
SELECT - COUNT ( * ) + - 71 / - 13
----
4

query I rowsort
SELECT ALL - 21 + + ( - 37 )
----
-58

query I rowsort
SELECT ALL ( + ( - 85 ) ) AS col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8972
SELECT - MAX( 55 ), - CAST( NULL AS SIGNED ) + - + 73 AS col2
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-8972
SELECT - MAX ( 55 ), - CAST ( NULL AS INTEGER ) + - + 73 AS col2
----
-55
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8973
SELECT - 12 - + + CAST( NULL AS SIGNED ) AS col2, 68 + + + 71 + 41
----
NULL
180

skipif mysql # not compatible
query II rowsort label-8973
SELECT - 12 - + + CAST ( NULL AS INTEGER ) AS col2, 68 + + + 71 + 41
----
NULL
180

onlyif mysql # DIV for integer division: 
query I rowsort label-8974
SELECT ALL + 22 DIV + 14 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL + 22 / + 14 AS col2
----
1

query I rowsort
SELECT ALL - ( - NULLIF ( - - ( 75 ), 76 + - 32 ) ) * 43
----
3225

query I rowsort
SELECT - 88 + + 23 * - ( + - 58 )
----
1246

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8977
SELECT DISTINCT + 4 * 93 DIV - - COALESCE ( COUNT( * ), + - 24 * ( - 24 ) DIV - 72 + - - 46 - - - 52 DIV + 64 * - 50 ) AS col2
----
372

skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT + 4 * 93 / - - COALESCE ( COUNT ( * ), + - 24 * ( - 24 ) / - 72 + - - 46 - - - 52 / + 64 * - 50 ) AS col2
----
372

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT ALL ( + 32 ) - - - 0 - ( COUNT( * ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL ( + 32 ) - - - 0 - ( COUNT ( * ) ) AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8979
SELECT CAST( NULLIF ( 59, - - SUM( - 24 ) / 76 ) AS SIGNED ) col2
----
59

skipif mysql # not compatible
query I rowsort label-8979
SELECT CAST ( NULLIF ( 59, - - SUM ( - 24 ) / 76 ) AS INTEGER ) col2
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8980
SELECT - 28 DIV + 32 + - 35 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-8980
SELECT - 28 / + 32 + - 35 AS col2
----
-35

query I rowsort
SELECT - + 43 * + + 68 - - + 82
----
-2842

query I rowsort
SELECT - + 52 + + 89 * + - 70 AS col1
----
-6282

query I rowsort
SELECT - 23 * + 70
----
-1610

query I rowsort
SELECT + 93 * + 89 AS col2
----
8277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8985
SELECT ALL ( - + COUNT( * ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL ( - + COUNT ( * ) ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT - NULLIF ( SUM( DISTINCT + 42 ), - COUNT( * ) ) * - - 56 + SUM( 0 ) AS col2
----
-2352

skipif mysql # not compatible
query I rowsort label-8986
SELECT - NULLIF ( SUM ( DISTINCT + 42 ), - COUNT ( * ) ) * - - 56 + SUM ( 0 ) AS col2
----
-2352

query I rowsort
SELECT ALL - 75 * + 55 * + - 63 AS col0
----
259875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT + - 70 * + CAST( NULL AS SIGNED ) + + + 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT + - 70 * + CAST ( NULL AS INTEGER ) + + + 52 AS col2
----
NULL

query I rowsort
SELECT + + 99 * - 48 + - 26 AS col2
----
-4778

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8990
SELECT + + ( CASE 20 WHEN - + 98 THEN NULL WHEN - 44 * + 56 THEN NULL WHEN CAST( + 93 AS SIGNED ) * + 63 THEN - 92 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8990
SELECT + + ( CASE 20 WHEN - + 98 THEN NULL WHEN - 44 * + 56 THEN NULL WHEN CAST ( + 93 AS INTEGER ) * + 63 THEN - 92 ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL - 31 * - - 85
----
-2635

query I rowsort
SELECT + + 45 + - 31
----
14

query I rowsort
SELECT + 65 * 38 * 14 + 97 + - 91 * 48
----
30309

query I rowsort
SELECT ALL 92 + + 60 AS col1
----
152

query I rowsort
SELECT + 23 * 23 + - 55 * - 38 + 33
----
2652

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT DISTINCT + COUNT( * ) + - 79 col0
----
-78

skipif mysql # not compatible
query I rowsort label-8996
SELECT DISTINCT + COUNT ( * ) + - 79 col0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8997
SELECT ALL 36 * + 57 AS col0, + ( + - CASE + 4 WHEN + - ( + 97 ) THEN 3 / ( - COUNT( * ) ) * - + 66 + - + CAST( 77 AS SIGNED ) END ) * + + 93
----
2052
NULL

skipif mysql # not compatible
query II rowsort label-8997
SELECT ALL 36 * + 57 AS col0, + ( + - CASE + 4 WHEN + - ( + 97 ) THEN 3 / ( - COUNT ( * ) ) * - + 66 + - + CAST ( 77 AS INTEGER ) END ) * + + 93
----
2052
NULL

query I rowsort
SELECT 76 + - + 0 - 15 col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8999
SELECT ( + CAST( NULL AS SIGNED ) ) * - 22 + + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8999
SELECT ( + CAST ( NULL AS INTEGER ) ) * - 22 + + 58 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9000
SELECT ALL + MIN( DISTINCT + 25 ) DIV COALESCE ( COUNT( * ), + - CAST( NULL AS SIGNED ) ) * 26 + 21 * + 7 DIV 80 DIV - - ( NULLIF ( - 94, + + 62 * 96 ) ) * + CAST( 1 AS SIGNED ) + COUNT( * ) * 38 AS col0
----
688

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL + MIN ( DISTINCT + 25 ) / COALESCE ( COUNT ( * ), + - CAST ( NULL AS INTEGER ) ) * 26 + 21 * + 7 / 80 / - - ( NULLIF ( - 94, + + 62 * 96 ) ) * + CAST ( 1 AS INTEGER ) + COUNT ( * ) * 38 AS col0
----
688

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT ( + ( 53 ) ) + + + CASE + - 13 WHEN + 25 * + + COUNT( * ) + + - 67 + - 89 * + 81 THEN - 25 + ( - 84 ) + ( - 67 ) / + 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9001
SELECT ( + ( 53 ) ) + + + CASE + - 13 WHEN + 25 * + + COUNT ( * ) + + - 67 + - 89 * + 81 THEN - 25 + ( - 84 ) + ( - 67 ) / + 43 END
----
NULL

query I rowsort
SELECT DISTINCT + 80 * 17
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT ALL - NULLIF ( - + MAX( DISTINCT 97 ), + + 26 + - COUNT( * ) + + 47 ) + - 80 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL - NULLIF ( - + MAX ( DISTINCT 97 ), + + 26 + - COUNT ( * ) + + 47 ) + - 80 AS col2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9004
SELECT 4 AS col1, + SUM( + ( + ( 59 ) ) ) * 91
----
4
5369

skipif mysql # not compatible
query II rowsort label-9004
SELECT 4 AS col1, + SUM ( + ( + ( 59 ) ) ) * 91
----
4
5369

query I rowsort
SELECT 11 + 90
----
101

query I rowsort
SELECT ALL 13 * + 58 AS col1
----
754

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT MAX( DISTINCT - - 39 ) + - 65
----
-26

skipif mysql # not compatible
query I rowsort label-9007
SELECT MAX ( DISTINCT - - 39 ) + - 65
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT DISTINCT - COUNT( * ) * - + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9008
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT ALL COUNT( * ) - + ( 33 ) * 37
----
-1220

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL COUNT ( * ) - + ( 33 ) * 37
----
-1220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9010
SELECT ALL 77 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL 77 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9011
SELECT 10 + - ( - + 91 ) + + 10 - + 2 * - 16 + - COUNT( * ) * 90 DIV - 82
----
144

skipif mysql # not compatible
query I rowsort label-9011
SELECT 10 + - ( - + 91 ) + + 10 - + 2 * - 16 + - COUNT ( * ) * 90 / - 82
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT DISTINCT COUNT( * ) * + 47 * + 49 / CASE + - 89 WHEN 34 * - ( 0 ) THEN - - 77 * 64 WHEN + 41 + - 59 * 26 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT COUNT ( * ) * + 47 * + 49 / CASE + - 89 WHEN 34 * - ( 0 ) THEN - - 77 * 64 WHEN + 41 + - 59 * 26 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 45 - 1 AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9014
SELECT 5 + + COUNT( * ) + + 61 + + 13 DIV + 24 * 74 AS col1, 89 + - - NULLIF ( + - 68, + + 19 + + CAST( COUNT( * ) AS SIGNED ) )
----
67
21

skipif mysql # not compatible
query II rowsort label-9014
SELECT 5 + + COUNT ( * ) + + 61 + + 13 / + 24 * 74 AS col1, 89 + - - NULLIF ( + - 68, + + 19 + + CAST ( COUNT ( * ) AS INTEGER ) )
----
67
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT + 77 * + - NULLIF ( - 74, - 7 ) * - - COUNT( * )
----
5698

skipif mysql # not compatible
query I rowsort label-9015
SELECT + 77 * + - NULLIF ( - 74, - 7 ) * - - COUNT ( * )
----
5698

query I rowsort
SELECT + + NULLIF ( ( - 30 ), 9 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT ALL + + 84 * 89 * - - COUNT( * ) AS col1
----
7476

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL + + 84 * 89 * - - COUNT ( * ) AS col1
----
7476

onlyif mysql # DIV for integer division: 
query I rowsort label-9018
SELECT + 43 DIV + - 76
----
0

skipif mysql # not compatible
query I rowsort label-9018
SELECT + 43 / + - 76
----
0

query I rowsort
SELECT DISTINCT + + 67 * + 10
----
670

query I rowsort
SELECT DISTINCT 96 + - 78 AS col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9021
SELECT - - 23 DIV 5 - COALESCE ( - COALESCE ( + 64, 60 * - ( - 4 ) ), + COALESCE ( + + 52, + COUNT( * ) ), 59 * 46 + + + 50 - + COALESCE ( - COUNT( * ), - 17 ) * 17 * + 53, 61 * + 79 ) + 19 col0
----
87

skipif mysql # not compatible
query I rowsort label-9021
SELECT - - 23 / 5 - COALESCE ( - COALESCE ( + 64, 60 * - ( - 4 ) ), + COALESCE ( + + 52, + COUNT ( * ) ), 59 * 46 + + + 50 - + COALESCE ( - COUNT ( * ), - 17 ) * 17 * + 53, 61 * + 79 ) + 19 col0
----
87

query I rowsort
SELECT 10 + ( 18 ) AS col1
----
28

query I rowsort
SELECT + 21 * ( - 9 ) - + - 60 AS col2
----
-129

query I rowsort
SELECT DISTINCT - + 50 + 85
----
35

query I rowsort
SELECT 79 - + 18 AS col2
----
61

query I rowsort
SELECT ALL - 93 + - 26
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT ALL + 39 + - 58 + 37 - 98 + + COUNT( 87 ) * + 62 * 98 AS col0
----
5996

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL + 39 + - 58 + 37 - 98 + + COUNT ( 87 ) * + 62 * 98 AS col0
----
5996

onlyif mysql # DIV for integer division: 
query I rowsort label-9028
SELECT 66 DIV + 53 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9028
SELECT 66 / + 53 AS col1
----
1

query I rowsort
SELECT - 16 * - + 89 - - - 25 * + - 10 col2
----
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT ALL COALESCE ( COUNT( * ), + 73 ) - - 6 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL COALESCE ( COUNT ( * ), + 73 ) - - 6 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT CASE 46 WHEN - 46 + - 4 * - - COUNT( * ) THEN - COUNT( * ) ELSE - 3 END * - 39
----
117

skipif mysql # not compatible
query I rowsort label-9031
SELECT CASE 46 WHEN - 46 + - 4 * - - COUNT ( * ) THEN - COUNT ( * ) ELSE - 3 END * - 39
----
117

query II rowsort
SELECT ALL 40 AS col2, 55
----
40
55

query I rowsort
SELECT ( - 60 ) * + 74 AS col0
----
-4440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9034
SELECT ALL CAST( NULL AS SIGNED ) - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL CAST ( NULL AS INTEGER ) - 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9035
SELECT ALL 49 AS col2, + 82 + - SUM( ALL + 70 ) AS col0
----
49
12

skipif mysql # not compatible
query II rowsort label-9035
SELECT ALL 49 AS col2, + 82 + - SUM ( ALL + 70 ) AS col0
----
49
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9036
SELECT - MAX( DISTINCT 93 ), - 73 DIV 35 AS col1
----
-93
-2

skipif mysql # not compatible
query II rowsort label-9036
SELECT - MAX ( DISTINCT 93 ), - 73 / 35 AS col1
----
-93
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9037
SELECT DISTINCT 30 - + + 39 * + COUNT( * ) - - 53 AS col0, - MAX( - 47 )
----
44
47

skipif mysql # not compatible
query II rowsort label-9037
SELECT DISTINCT 30 - + + 39 * + COUNT ( * ) - - 53 AS col0, - MAX ( - 47 )
----
44
47

query I rowsort
SELECT 0 + 57 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT COUNT( * ) + 61 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9039
SELECT COUNT ( * ) + 61 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT NULLIF ( - MAX( DISTINCT + 19 ), + 48 + 77 ) * - - 67 * - 38 * 93 - - 93
----
4498875

skipif mysql # not compatible
query I rowsort label-9040
SELECT NULLIF ( - MAX ( DISTINCT + 19 ), + 48 + 77 ) * - - 67 * - 38 * 93 - - 93
----
4498875

query I rowsort
SELECT 19 + + 51 AS col2
----
70

query II rowsort
SELECT - 17 AS col1, + 95 col0
----
-17
95

query I rowsort
SELECT - NULLIF ( - 33, - 92 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT 20 * - - COUNT( ALL + 18 ) * + 34 * + - 58 * 43 AS col2
----
-1695920

skipif mysql # not compatible
query I rowsort label-9044
SELECT 20 * - - COUNT ( ALL + 18 ) * + 34 * + - 58 * 43 AS col2
----
-1695920

query I rowsort
SELECT ALL + 25 * + - ( + 66 ) AS col0
----
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT NULLIF ( 11, 55 ) + + SUM( DISTINCT + + NULLIF ( - + 95, 76 * - - 53 ) )
----
-84

skipif mysql # not compatible
query I rowsort label-9046
SELECT NULLIF ( 11, 55 ) + + SUM ( DISTINCT + + NULLIF ( - + 95, 76 * - - 53 ) )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-9047
SELECT CASE - 60 WHEN + 71 * + 32 THEN NULL ELSE 86 END + - - 90 + + 1 + + 9 - + + 95 DIV + 72 + + 70 * + 88 AS col2
----
6345

skipif mysql # not compatible
query I rowsort label-9047
SELECT CASE - 60 WHEN + 71 * + 32 THEN NULL ELSE 86 END + - - 90 + + 1 + + 9 - + + 95 / + 72 + + 70 * + 88 AS col2
----
6345

query I rowsort
SELECT ALL 2 + + CASE - 82 WHEN 53 THEN - 56 WHEN + 53 - + - 61 - - 79 THEN - + 18 ELSE NULL END * - + 90 + + - AVG ( 26 ) * + + 36 col0
----
NULL

query II rowsort
SELECT - 4, - 72 + - 58 + - 59 AS col2
----
-4
-189

query I rowsort
SELECT 84 * + + 40 + - - 3 + 56 AS col0
----
3419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9051
SELECT 76 - 97 + + NULLIF ( - CASE + 75 WHEN - 23 + - 59 * 2 * 93 THEN + - 77 ELSE NULL END, - 62 ) * - ( - CASE - + 54 WHEN + - COUNT( ALL - 0 ) THEN + 33 * 55 END ) - CAST( NULL AS SIGNED ) * + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-9051
SELECT 76 - 97 + + NULLIF ( - CASE + 75 WHEN - 23 + - 59 * 2 * 93 THEN + - 77 ELSE NULL END, - 62 ) * - ( - CASE - + 54 WHEN + - COUNT ( ALL - 0 ) THEN + 33 * 55 END ) - CAST ( NULL AS INTEGER ) * + 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT SUM( DISTINCT + 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-9052
SELECT SUM ( DISTINCT + 51 ) AS col2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9053
SELECT - + 62 DIV - + 76 + - + 74 + ( COUNT( * ) ) * 44 * - - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-9053
SELECT - + 62 / - + 76 + - + 74 + ( COUNT ( * ) ) * 44 * - - COUNT ( * )
----
-30

query I rowsort
SELECT ALL 77 * 63 * + 90 + - + 75
----
436515

query I rowsort
SELECT - - 43 + - 42 * 34
----
-1385

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT ALL - ( - COUNT( * ) ) * - + 92 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL - ( - COUNT ( * ) ) * - + 92 AS col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9057
SELECT DISTINCT - 47 * - - NULLIF ( CAST( NULL AS SIGNED ), - 57 + CAST( NULL AS SIGNED ) ) + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT - 47 * - - NULLIF ( CAST ( NULL AS INTEGER ), - 57 + CAST ( NULL AS INTEGER ) ) + 68
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9058
SELECT + + 79 AS col2, + 31 * + 56 * + - COUNT( * ) DIV + - COUNT( * )
----
79
1736

skipif mysql # not compatible
query II rowsort label-9058
SELECT + + 79 AS col2, + 31 * + 56 * + - COUNT ( * ) / + - COUNT ( * )
----
79
1736

query I rowsort
SELECT - 71 * + 64 - 61 + 90
----
-4515

query I rowsort
SELECT - 67 + 57 + 58 * + - ( 33 ) col2
----
-1924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9061
SELECT - COALESCE ( + 15, - 59 - + 43 + + 29 ) + NULLIF ( + - CAST( + - 22 AS SIGNED ), - - 21 * + - 34 * 73 * 88 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9061
SELECT - COALESCE ( + 15, - 59 - + 43 + + 29 ) + NULLIF ( + - CAST ( + - 22 AS INTEGER ), - - 21 * + - 34 * 73 * 88 ) AS col0
----
7

query I rowsort
SELECT + 8 + - 43 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT ALL + 7 * - MAX( ALL 52 ) - 71
----
-435

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL + 7 * - MAX ( ALL 52 ) - 71
----
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT + MAX( + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-9064
SELECT + MAX ( + 23 )
----
23

query I rowsort
SELECT - 11 * + + 59 * - + 63 + + 93
----
40980

onlyif mysql # aggregate syntax: 
query II rowsort label-9066
SELECT ALL NULLIF ( + COUNT( * ), - 0 * 85 * + 57 ), 76 AS col1
----
1
76

skipif mysql # not compatible
query II rowsort label-9066
SELECT ALL NULLIF ( + COUNT ( * ), - 0 * 85 * + 57 ), 76 AS col1
----
1
76

query II rowsort
SELECT + 65 + + 57 + 73 AS col2, - 40 col0
----
195
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-9068
SELECT DISTINCT ( - COUNT( * ) ), 36 + + 3 AS col2
----
-1
39

skipif mysql # not compatible
query II rowsort label-9068
SELECT DISTINCT ( - COUNT ( * ) ), 36 + + 3 AS col2
----
-1
39

query I rowsort
SELECT + 18 * 51
----
918

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT ALL 24 * - MAX( - 49 ) AS col1
----
1176

skipif mysql # not compatible
query I rowsort label-9070
SELECT ALL 24 * - MAX ( - 49 ) AS col1
----
1176

query I rowsort
SELECT - 30 * 29
----
-870

query I rowsort
SELECT + 35 + + 10
----
45

query I rowsort
SELECT + 23 + - - 9 AS col2
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9074
SELECT + 82 DIV 26 * 61 AS col2
----
183

skipif mysql # not compatible
query I rowsort label-9074
SELECT + 82 / 26 * 61 AS col2
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT + 99 + 84 - + + COUNT( ALL + - 15 ) AS col0
----
182

skipif mysql # not compatible
query I rowsort label-9075
SELECT + 99 + 84 - + + COUNT ( ALL + - 15 ) AS col0
----
182

onlyif mysql # aggregate syntax: 
query II rowsort label-9076
SELECT ALL COUNT( * ) + + 55 AS col2, 21 AS col1
----
56
21

skipif mysql # not compatible
query II rowsort label-9076
SELECT ALL COUNT ( * ) + + 55 AS col2, 21 AS col1
----
56
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9077
SELECT + 16 DIV - 23 * - - 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9077
SELECT + 16 / - 23 * - - 40 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT + + 7 + + - 40 + + + SUM( DISTINCT + 93 )
----
60

skipif mysql # not compatible
query I rowsort label-9078
SELECT + + 7 + + - 40 + + + SUM ( DISTINCT + 93 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT ALL 13 + + + COUNT( * ) col1
----
14

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL 13 + + + COUNT ( * ) col1
----
14

query II rowsort
SELECT - + 58 + + 41 AS col2, - 92 - - 81
----
-17
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9081
SELECT ALL + COUNT( DISTINCT CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9082
SELECT DISTINCT + + 97 DIV - NULLIF ( + - 28, + + COUNT( * ) ) + + 83 + + 87
----
173

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT + + 97 / - NULLIF ( + - 28, + + COUNT ( * ) ) + + 83 + + 87
----
173

query I rowsort
SELECT - + 31 * - 48 AS col1
----
1488

onlyif mysql # aggregate syntax: 
query II rowsort label-9084
SELECT + ( - 51 ) AS col2, COUNT( * ) * + 21 * - 0 * - 94 + 84 + + - 83 * - 15 AS col0
----
-51
1329

skipif mysql # not compatible
query II rowsort label-9084
SELECT + ( - 51 ) AS col2, COUNT ( * ) * + 21 * - 0 * - 94 + 84 + + - 83 * - 15 AS col0
----
-51
1329

query I rowsort
SELECT - 8 * 0 + 42 * + - 96 AS col0
----
-4032

query I rowsort
SELECT ( + 95 ) col2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9087
SELECT ALL + ( - - 21 ) * + - 51 - + 3 + + - 61 + - - 98 * + 15 - - CASE - 94 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + 47 THEN + COALESCE ( + 72, - ( + 29 ), 28 ) ELSE NULL END - + 93 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL + ( - - 21 ) * + - 51 - + 3 + + - 61 + - - 98 * + 15 - - CASE - 94 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + 47 THEN + COALESCE ( + 72, - ( + 29 ), 28 ) ELSE NULL END - + 93 col1
----
NULL

query I rowsort
SELECT + 96 * + 65 AS col0
----
6240

query I rowsort
SELECT - 48 - - 4 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT ALL COUNT( * ) * + - 22 - + - 53
----
31

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL COUNT ( * ) * + - 22 - + - 53
----
31

query I rowsort
SELECT - 66 * 71 AS col1
----
-4686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9092
SELECT ALL + CAST( MIN( - 66 ) AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-9092
SELECT ALL + CAST ( MIN ( - 66 ) AS INTEGER )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT - 42 * ( - + COUNT( * ) ) / + CASE WHEN - 37 IN ( + 19 - + 95, 60, 53 / - - 83 + - 23 + + 77 + - 41 - - 54 + - 34 * + - COUNT( * ) ) THEN + ( + ( 14 ) ) * - 85 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9093
SELECT - 42 * ( - + COUNT ( * ) ) / + CASE WHEN - 37 IN ( + 19 - + 95, 60, 53 / - - 83 + - 23 + + 77 + - 41 - - 54 + - 34 * + - COUNT ( * ) ) THEN + ( + ( 14 ) ) * - 85 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9094
SELECT COALESCE ( CAST( - 90 AS SIGNED ), + 52 + + 24 )
----
-90

skipif mysql # not compatible
query I rowsort label-9094
SELECT COALESCE ( CAST ( - 90 AS INTEGER ), + 52 + + 24 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT + MIN( - 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-9095
SELECT + MIN ( - 75 ) AS col2
----
-75

query II rowsort
SELECT - 6 * + 65 * - 50 * 58 AS col1, + 55 + - 89
----
1131000
-34

query I rowsort
SELECT - 12 * + 89 AS col2
----
-1068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9098
SELECT ALL CAST( + + 78 AS SIGNED ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL CAST ( + + 78 AS INTEGER ) AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9099
SELECT DISTINCT - ( + 50 ) * - ( - - 72 ) + 17 * - + 88 * + - 21 * - + 70 * - COALESCE ( 30, - + CAST( 23 AS SIGNED ) + - 39 * 70 * + 65 + + 5 ) AS col0, - COALESCE ( - 54, NULLIF ( + COUNT( DISTINCT 69 ), 13 * + 35 ) * - 99 )
----
65977200
54

skipif mysql # not compatible
query II rowsort label-9099
SELECT DISTINCT - ( + 50 ) * - ( - - 72 ) + 17 * - + 88 * + - 21 * - + 70 * - COALESCE ( 30, - + CAST ( 23 AS INTEGER ) + - 39 * 70 * + 65 + + 5 ) AS col0, - COALESCE ( - 54, NULLIF ( + COUNT ( DISTINCT 69 ), 13 * + 35 ) * - 99 )
----
65977200
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT ALL COUNT( * ) * 62 + - 61 * - MAX( - 85 )
----
-5123

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL COUNT ( * ) * 62 + - 61 * - MAX ( - 85 )
----
-5123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9101
SELECT - 76 * - MAX( - NULLIF ( 11, + + 60 + 94 ) ) / - CAST( NULL AS SIGNED ) * + - COUNT( * ), 13 col1
----
NULL
13

skipif mysql # not compatible
query II rowsort label-9101
SELECT - 76 * - MAX ( - NULLIF ( 11, + + 60 + 94 ) ) / - CAST ( NULL AS INTEGER ) * + - COUNT ( * ), 13 col1
----
NULL
13

query I rowsort
SELECT DISTINCT 36 + - 92 + - 3 * - 95 * 98
----
27874

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT ALL + 17 + 55 * + + COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL + 17 + 55 * + + COUNT ( * ) AS col0
----
72

query I rowsort
SELECT - COALESCE ( 91, - + 43 + 23, - 85 * - 78 * 73 * 44 )
----
-91

query I rowsort
SELECT ALL - 48 + - 48
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-9106
SELECT - - COUNT( * ) + 13 - + 60 * - 23 AS col1, 2
----
1394
2

skipif mysql # not compatible
query II rowsort label-9106
SELECT - - COUNT ( * ) + 13 - + 60 * - 23 AS col1, 2
----
1394
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT + + 37 * - - ( + + ( - - COUNT( * ) ) ) + - 63 * + + ( - 22 ) AS col0
----
1423

skipif mysql # not compatible
query I rowsort label-9107
SELECT + + 37 * - - ( + + ( - - COUNT ( * ) ) ) + - 63 * + + ( - 22 ) AS col0
----
1423

query I rowsort
SELECT - + 67 + - ( + - 28 ) AS col1
----
-39

query II rowsort
SELECT - 0 AS col2, - 96 * - 25 AS col1
----
0
2400

query I rowsort
SELECT ALL 6 + - 45 * + 57 * + 15
----
-38469

query I rowsort
SELECT + 81 + 43 AS col2
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9112
SELECT 6 DIV + 72 * + SUM( ALL + NULLIF ( - 76, CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9112
SELECT 6 / + 72 * + SUM ( ALL + NULLIF ( - 76, CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9113
SELECT - ( + 40 ) + + CASE - COALESCE ( + 37, - COUNT( * ) ) WHEN + + 81 + - CASE - COALESCE ( - 43, - COUNT( * ) * + - CASE - CAST( NULL AS SIGNED ) WHEN + NULLIF ( - 47, + COUNT( * ) * 4 ) * + 30 - - 3 * COUNT( * ) + 11 THEN 56 * 85 - - 12 WHEN + COUNT( * ) THEN - COUNT( * ) * + 75 END ) WHEN + 52 - 81 THEN - 97 END * 57 THEN NULL WHEN + 25 * + 60 THEN 96 END + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9113
SELECT - ( + 40 ) + + CASE - COALESCE ( + 37, - COUNT ( * ) ) WHEN + + 81 + - CASE - COALESCE ( - 43, - COUNT ( * ) * + - CASE - CAST ( NULL AS INTEGER ) WHEN + NULLIF ( - 47, + COUNT ( * ) * 4 ) * + 30 - - 3 * COUNT ( * ) + 11 THEN 56 * 85 - - 12 WHEN + COUNT ( * ) THEN - COUNT ( * ) * + 75 END ) WHEN + 52 - 81 THEN - 97 END * 57 THEN NULL WHEN + 25 * + 60 THEN 96 END + 59
----
NULL

query II rowsort
SELECT - 84, - ( 2 ) AS col1
----
-84
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT DISTINCT CASE - 34 WHEN 23 * + MAX( DISTINCT + 52 ) THEN - + MAX( ALL - + 49 ) + - + 9 * 1 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT CASE - 34 WHEN 23 * + MAX ( DISTINCT + 52 ) THEN - + MAX ( ALL - + 49 ) + - + 9 * 1 END AS col2
----
NULL

query I rowsort
SELECT ALL - - 5 - + COALESCE ( 76, - 47 + - 36 ) AS col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9117
SELECT DISTINCT 1, - 85 + + + CASE - CAST( 48 AS DECIMAL ) WHEN - + COALESCE ( + + NULLIF ( + 72, 29 ), COUNT( * ) / - 21 ) THEN + + 74 * 95 END AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9117
SELECT DISTINCT 1, - 85 + + + CASE - CAST ( 48 AS REAL ) WHEN - + COALESCE ( + + NULLIF ( + 72, 29 ), COUNT ( * ) / - 21 ) THEN + + 74 * 95 END AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9118
SELECT ALL - 41 - - 25 + COUNT( * ) AS col0, + COUNT( * ) AS col0
----
-15
1

skipif mysql # not compatible
query II rowsort label-9118
SELECT ALL - 41 - - 25 + COUNT ( * ) AS col0, + COUNT ( * ) AS col0
----
-15
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9119
SELECT - + CASE 17 WHEN - 31 * - 18 + - - 91 + COUNT( * ) THEN NULL WHEN + ( - 20 ) * + + AVG ( - 21 ) * - + COUNT( * ) / - + 81 + + CAST( + 88 AS SIGNED ) THEN 97 + + MIN( DISTINCT + 12 ) + + - 42 - 46 * 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9119
SELECT - + CASE 17 WHEN - 31 * - 18 + - - 91 + COUNT ( * ) THEN NULL WHEN + ( - 20 ) * + + AVG ( - 21 ) * - + COUNT ( * ) / - + 81 + + CAST ( + 88 AS INTEGER ) THEN 97 + + MIN ( DISTINCT + 12 ) + + - 42 - 46 * 93 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9120
SELECT + + 31 * - 88 - COUNT( * ) + 40 + + 77 * + COUNT( * ) AS col2, + 66 * - + 36
----
-2612
-2376

skipif mysql # not compatible
query II rowsort label-9120
SELECT + + 31 * - 88 - COUNT ( * ) + 40 + + 77 * + COUNT ( * ) AS col2, + 66 * - + 36
----
-2612
-2376

query I rowsort
SELECT 8 - - 40
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9122
SELECT ALL ( - COUNT( * ) ) - 11 * 44 DIV 55
----
-9

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL ( - COUNT ( * ) ) - 11 * 44 / 55
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT - COUNT( * ) * - - 78 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-9123
SELECT - COUNT ( * ) * - - 78 AS col0
----
-78

query I rowsort
SELECT 4 + 47
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9125
SELECT DISTINCT - MIN( + + 32 ) AS col1, - 34 * + 85 AS col0
----
-32
-2890

skipif mysql # not compatible
query II rowsort label-9125
SELECT DISTINCT - MIN ( + + 32 ) AS col1, - 34 * + 85 AS col0
----
-32
-2890

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT - COUNT( * ) * 16 + - NULLIF ( - 70, - 35 + 71 * 0 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-9126
SELECT - COUNT ( * ) * 16 + - NULLIF ( - 70, - 35 + 71 * 0 ) AS col2
----
54

query I rowsort
SELECT DISTINCT 13 * - - 41 AS col2
----
533

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT COUNT( * ) * + 95 col2
----
95

skipif mysql # not compatible
query I rowsort label-9128
SELECT COUNT ( * ) * + 95 col2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9129
SELECT ALL 48 * + CAST( NULL AS SIGNED ), - MIN( - 84 ) * - 34 + + - 97 AS col1
----
NULL
-2953

skipif mysql # not compatible
query II rowsort label-9129
SELECT ALL 48 * + CAST ( NULL AS INTEGER ), - MIN ( - 84 ) * - 34 + + - 97 AS col1
----
NULL
-2953

query I rowsort
SELECT 0 + 92 AS col2
----
92

query I rowsort
SELECT ( - - 41 ) + 61 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT - 59 * + 69 + - 38 + + - ( - - NULLIF ( + 93, + 63 ) ) * - 29 * + 79 * - + 39 + - 30 + MIN( ALL + + 66 ) col2
----
-8313530

skipif mysql # not compatible
query I rowsort label-9132
SELECT - 59 * + 69 + - 38 + + - ( - - NULLIF ( + 93, + 63 ) ) * - 29 * + 79 * - + 39 + - 30 + MIN ( ALL + + 66 ) col2
----
-8313530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9133
SELECT DISTINCT + COUNT( * ) DIV + 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT + COUNT ( * ) / + 72 AS col1
----
0

query I rowsort
SELECT 37 * - 97 + - 50 AS col2
----
-3639

query I rowsort
SELECT ALL 6 + - 22 AS col0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-9136
SELECT ALL + 1 + 42 DIV + 28 col0
----
2

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL + 1 + 42 / + 28 col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9137
SELECT DISTINCT CASE ( - 63 ) WHEN - - NULLIF ( COUNT( * ), + - 5 + - 44 ) - - - 26 - + 5 + SUM( ALL - CAST( NULL AS DECIMAL ) ) * - 87 THEN + 27 + - 20 ELSE NULL END / + 95 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT CASE ( - 63 ) WHEN - - NULLIF ( COUNT ( * ), + - 5 + - 44 ) - - - 26 - + 5 + SUM ( ALL - CAST ( NULL AS REAL ) ) * - 87 THEN + 27 + - 20 ELSE NULL END / + 95 col0
----
NULL

query I rowsort
SELECT ALL - 37 + - 82
----
-119

query I rowsort
SELECT 61 + 16 AS col0
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9140
SELECT - COUNT( * ) DIV + + ( - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9140
SELECT - COUNT ( * ) / + + ( - + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT 74 + - - CASE - COUNT( * ) WHEN + - 66 * - 84 + - 3 * + 57 THEN NULL ELSE + 59 END AS col2
----
133

skipif mysql # not compatible
query I rowsort label-9141
SELECT 74 + - - CASE - COUNT ( * ) WHEN + - 66 * - 84 + - 3 * + 57 THEN NULL ELSE + 59 END AS col2
----
133

query I rowsort
SELECT + 87 * - 49 * 11 AS col2
----
-46893

query I rowsort
SELECT ALL - + 53 - NULLIF ( - + NULLIF ( + 54, + 14 ), 68 * 22 ) * + + 56
----
2971

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT ALL - NULLIF ( 57, - - 23 + + COUNT( * ) * + COUNT( * ) ) col1
----
-57

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL - NULLIF ( 57, - - 23 + + COUNT ( * ) * + COUNT ( * ) ) col1
----
-57

query I rowsort
SELECT 30 * 13 + + - 13 * 51 + + 71
----
-202

onlyif mysql # aggregate syntax: 
query II rowsort label-9146
SELECT - ( + - NULLIF ( - - ( + COUNT( * ) ), + - ( MIN( - 39 ) ) ) ), 9 + + + 76 AS col0
----
1
85

skipif mysql # not compatible
query II rowsort label-9146
SELECT - ( + - NULLIF ( - - ( + COUNT ( * ) ), + - ( MIN ( - 39 ) ) ) ), 9 + + + 76 AS col0
----
1
85

query I rowsort
SELECT ALL COALESCE ( + 23, - - 18 )
----
23

query I rowsort
SELECT DISTINCT + - 28 * - ( + 11 ) AS col2
----
308

query I rowsort
SELECT ALL + 9 - 34 * + + 42
----
-1419

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9150
SELECT 10 * - + 4 - + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9150
SELECT 10 * - + 4 - + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT SUM( DISTINCT + 10 ) * - 29 AS col1
----
-290

skipif mysql # not compatible
query I rowsort label-9151
SELECT SUM ( DISTINCT + 10 ) * - 29 AS col1
----
-290

query I rowsort
SELECT + NULLIF ( - 51, 35 * - 57 ) - - - 11
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT MAX( 89 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-9153
SELECT MAX ( 89 ) AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9154
SELECT ALL CAST( NULL AS SIGNED ) / + COUNT( DISTINCT + 1 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL CAST ( NULL AS INTEGER ) / + COUNT ( DISTINCT + 1 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9155
SELECT COUNT( * ) * - + CAST( - 5 AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-9155
SELECT COUNT ( * ) * - + CAST ( - 5 AS INTEGER )
----
5

query I rowsort
SELECT 4 + 72
----
76

query I rowsort
SELECT 10 * 75 AS col0
----
750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9158
SELECT CAST( NULL AS SIGNED ) * 43 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9158
SELECT CAST ( NULL AS INTEGER ) * 43 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9159
SELECT ALL CAST( NULL AS SIGNED ) / + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL CAST ( NULL AS INTEGER ) / + 70 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT COUNT( - 58 )
----
1

skipif mysql # not compatible
query I rowsort label-9160
SELECT COUNT ( - 58 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9161
SELECT + 61 DIV COUNT( * ) + 19 * + 51 col0
----
1030

skipif mysql # not compatible
query I rowsort label-9161
SELECT + 61 / COUNT ( * ) + 19 * + 51 col0
----
1030

onlyif mysql # aggregate syntax: 
query II rowsort label-9162
SELECT ALL 94 + - 36 + - 3 * COUNT( ALL + + 24 ) * + - 76 col0, + MIN( + ( + 84 ) )
----
286
84

skipif mysql # not compatible
query II rowsort label-9162
SELECT ALL 94 + - 36 + - 3 * COUNT ( ALL + + 24 ) * + - 76 col0, + MIN ( + ( + 84 ) )
----
286
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT - COUNT( ALL + + 9 ) * - 70 - - 37
----
107

skipif mysql # not compatible
query I rowsort label-9163
SELECT - COUNT ( ALL + + 9 ) * - 70 - - 37
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9164
SELECT DISTINCT 88 + - COALESCE ( + + ( + 70 ), - 78 + - CAST( NULL AS SIGNED ) * - CAST( 36 AS SIGNED ) * + COALESCE ( - + 1, + 12 * + 78 * - + 82 + + 36 + + 89 ) + + - 63 ) + 90 * - 91 AS col0
----
-8172

skipif mysql # not compatible
query I rowsort label-9164
SELECT DISTINCT 88 + - COALESCE ( + + ( + 70 ), - 78 + - CAST ( NULL AS INTEGER ) * - CAST ( 36 AS INTEGER ) * + COALESCE ( - + 1, + 12 * + 78 * - + 82 + + 36 + + 89 ) + + - 63 ) + 90 * - 91 AS col0
----
-8172

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT MIN( DISTINCT - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-9165
SELECT MIN ( DISTINCT - 3 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT ALL CASE - 13 WHEN - 24 THEN + 34 END + + + COUNT( ALL + 88 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL CASE - 13 WHEN - 24 THEN + 34 END + + + COUNT ( ALL + 88 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 93 + + + 51 AS col0
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-9168
SELECT - - 20 DIV 49 + + - 31 * 78 AS col0
----
-2418

skipif mysql # not compatible
query I rowsort label-9168
SELECT - - 20 / 49 + + - 31 * 78 AS col0
----
-2418

query II rowsort
SELECT DISTINCT 57 col2, + 43
----
57
43

query I rowsort
SELECT + + 34 - 1 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT + - MIN( - 2 ) * + - 17 * + - 6
----
204

skipif mysql # not compatible
query I rowsort label-9171
SELECT + - MIN ( - 2 ) * + - 17 * + - 6
----
204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9172
SELECT ALL + 65 DIV COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL + 65 / COUNT ( * ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT ALL + NULLIF ( + + COUNT( * ), + COALESCE ( - + 67, + 22 + + COUNT( 20 ) ) + 22 )
----
1

skipif mysql # not compatible
query I rowsort label-9173
SELECT ALL + NULLIF ( + + COUNT ( * ), + COALESCE ( - + 67, + 22 + + COUNT ( 20 ) ) + 22 )
----
1

query I rowsort
SELECT ALL - 74 - + ( - 50 ) - + - 19 + - 96 - 54 * + 78 * + 71 * 0 * 42 AS col2
----
-101

query I rowsort
SELECT ALL + 15 * - - 46 * 33
----
22770

onlyif mysql # aggregate syntax: 
query II rowsort label-9176
SELECT - 99 * COUNT( ALL 76 ) AS col1, + COALESCE ( + 43, + - 90 ) + 13
----
-99
56

skipif mysql # not compatible
query II rowsort label-9176
SELECT - 99 * COUNT ( ALL 76 ) AS col1, + COALESCE ( + 43, + - 90 ) + 13
----
-99
56

query I rowsort
SELECT ALL 68 * 84 + - 85 AS col0
----
5627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9178
SELECT - ( - 78 ) - - 5 * - 28 + CAST( NULL AS SIGNED ) - - + 99 * 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9178
SELECT - ( - 78 ) - - 5 * - 28 + CAST ( NULL AS INTEGER ) - - + 99 * 58 AS col2
----
NULL

query I rowsort
SELECT + 52 + - 2 AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9180
SELECT ALL - CAST( NULL AS SIGNED ) * - - COUNT( * ) * + - ( + + 84 ) / + COUNT( * ), - 73 col1
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-9180
SELECT ALL - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * + - ( + + 84 ) / + COUNT ( * ), - 73 col1
----
NULL
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT - NULLIF ( + + NULLIF ( 99, + + 96 - - + 88 + 39 + COALESCE ( - 73, 59 / MIN( ALL + 78 ) ) / 86 + 4 ), 14 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9181
SELECT - NULLIF ( + + NULLIF ( 99, + + 96 - - + 88 + 39 + COALESCE ( - 73, 59 / MIN ( ALL + 78 ) ) / 86 + 4 ), 14 ) AS col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9182
SELECT + 65 + CASE COUNT( * ) WHEN + 21 / + 7 + + + 99 + - MAX( ALL + + 64 ) + 68 * ( + + COUNT( * ) ) + - 79 * 12 * + 10 * ( + 34 ) THEN - ( NULLIF ( - 67, + + COUNT( * ) ) ) WHEN CAST( NULL AS SIGNED ) + 56 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9182
SELECT + 65 + CASE COUNT ( * ) WHEN + 21 / + 7 + + + 99 + - MAX ( ALL + + 64 ) + 68 * ( + + COUNT ( * ) ) + - 79 * 12 * + 10 * ( + 34 ) THEN - ( NULLIF ( - 67, + + COUNT ( * ) ) ) WHEN CAST ( NULL AS INTEGER ) + 56 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT - COUNT( + + 55 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9183
SELECT - COUNT ( + + 55 ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9184
SELECT + + ( - COALESCE ( + - COUNT( * ), - + AVG ( + - 58 ) * - - 47, - - 53 ) ) DIV - - 15 + + 39 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-9184
SELECT + + ( - COALESCE ( + - COUNT ( * ), - + AVG ( + - 58 ) * - - 47, - - 53 ) ) / - - 15 + + 39 AS col1
----
39

query I rowsort
SELECT - 79 + - + 88 * - 61 + - - 80
----
5369

query I rowsort
SELECT - - 58 + - 81 AS col2
----
-23

query I rowsort
SELECT ALL - ( - + 35 )
----
35

query I rowsort
SELECT - + 83 + - 87
----
-170

query I rowsort
SELECT ( + 9 ) AS col0
----
9

query I rowsort
SELECT - 49 + 97
----
48

query I rowsort
SELECT - 67 * - 11 AS col2
----
737

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT ALL MIN( DISTINCT 66 )
----
66

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL MIN ( DISTINCT 66 )
----
66

query I rowsort
SELECT ALL - 18 + + 88 AS col1
----
70

query II rowsort
SELECT 1, - 42 AS col0
----
1
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT - COUNT( * ) + - - 13 * - 14 AS col2
----
-183

skipif mysql # not compatible
query I rowsort label-9195
SELECT - COUNT ( * ) + - - 13 * - 14 AS col2
----
-183

onlyif mysql # DIV for integer division: 
query I rowsort label-9196
SELECT - 31 DIV 20 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9196
SELECT - 31 / 20 AS col0
----
-1

query I rowsort
SELECT DISTINCT - 94 * - 25 + 91 col0
----
2441

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT ALL + ( + 32 ) * - + 21 * - - COUNT( * ) AS col0
----
-672

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL + ( + 32 ) * - + 21 * - - COUNT ( * ) AS col0
----
-672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9199
SELECT - COUNT( * ) DIV - - ( + 43 )
----
0

skipif mysql # not compatible
query I rowsort label-9199
SELECT - COUNT ( * ) / - - ( + 43 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT ALL + SUM( ALL + 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL + SUM ( ALL + 11 ) AS col0
----
11

query I rowsort
SELECT DISTINCT + 28 * + 98
----
2744

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT - 94 * - COUNT( * ) + - - 13 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-9202
SELECT - 94 * - COUNT ( * ) + - - 13 AS col2
----
107

query I rowsort
SELECT COALESCE ( 85, + 56 + + + 21 ) col2
----
85

query I rowsort
SELECT - 41 + + 86 AS col1
----
45

query I rowsort
SELECT DISTINCT 88 * - 87 + - + 55
----
-7711

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9206
SELECT ALL 11 DIV + - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL 11 / + - COUNT ( * )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9207
SELECT CASE - 62 WHEN - - 34 THEN NULL ELSE - - 66 * + + MIN( - CAST( NULL AS SIGNED ) ) * COUNT( * ) + - 86 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9207
SELECT CASE - 62 WHEN - - 34 THEN NULL ELSE - - 66 * + + MIN ( - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + - 86 END AS col1
----
NULL

query II rowsort
SELECT + + 68, - 21 col1
----
68
-21

query II rowsort
SELECT ALL + 55 col2, 29 * - 15 * 22 * - 14
----
55
133980

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT + COUNT( ALL 88 ) + - 72
----
-71

skipif mysql # not compatible
query I rowsort label-9210
SELECT + COUNT ( ALL 88 ) + - 72
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-9211
SELECT DISTINCT + + 35 AS col2, COUNT( * )
----
35
1

skipif mysql # not compatible
query II rowsort label-9211
SELECT DISTINCT + + 35 AS col2, COUNT ( * )
----
35
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9212
SELECT ALL 80 AS col0, + CASE + 98 WHEN + 20 THEN + - COUNT( * ) END + 39
----
80
NULL

skipif mysql # not compatible
query II rowsort label-9212
SELECT ALL 80 AS col0, + CASE + 98 WHEN + 20 THEN + - COUNT ( * ) END + 39
----
80
NULL

query II rowsort
SELECT - 91, 46 AS col1
----
-91
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT + SUM( 46 ) * 3
----
138

skipif mysql # not compatible
query I rowsort label-9214
SELECT + SUM ( 46 ) * 3
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT - SUM( - 97 ) col0
----
97

skipif mysql # not compatible
query I rowsort label-9215
SELECT - SUM ( - 97 ) col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT + - 73 + COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-9216
SELECT + - 73 + COUNT ( * ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT + + COUNT( * ) * ( + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-9217
SELECT + + COUNT ( * ) * ( + 98 )
----
98

query I rowsort
SELECT - + 98 + 87
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-9219
SELECT - - 93 AS col2, - 95 + + - COUNT( 75 ) + - SUM( + 7 )
----
93
-103

skipif mysql # not compatible
query II rowsort label-9219
SELECT - - 93 AS col2, - 95 + + - COUNT ( 75 ) + - SUM ( + 7 )
----
93
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-9220
SELECT ALL 9, + COUNT( + 64 ) + + 41 * 31 * - 15 col2
----
9
-19064

skipif mysql # not compatible
query II rowsort label-9220
SELECT ALL 9, + COUNT ( + 64 ) + + 41 * 31 * - 15 col2
----
9
-19064

onlyif mysql # aggregate syntax: 
query II rowsort label-9221
SELECT COUNT( * ), 40 - + + 5 col2
----
1
35

skipif mysql # not compatible
query II rowsort label-9221
SELECT COUNT ( * ), 40 - + + 5 col2
----
1
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9222
SELECT CASE + + CAST( NULL AS DECIMAL ) WHEN - MAX( ALL 56 ) THEN + - 26 - - 23 WHEN - 96 THEN 16 + - + 43 * - 52 * ( 66 ) + 98 * - + 32 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9222
SELECT CASE + + CAST ( NULL AS REAL ) WHEN - MAX ( ALL 56 ) THEN + - 26 - - 23 WHEN - 96 THEN 16 + - + 43 * - 52 * ( 66 ) + 98 * - + 32 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9223
SELECT DISTINCT - - 85 + 87 * + MIN( 70 ) AS col1, - 8 DIV + SUM( - - 20 ) * - 22 + 77 AS col1
----
6175
77

skipif mysql # not compatible
query II rowsort label-9223
SELECT DISTINCT - - 85 + 87 * + MIN ( 70 ) AS col1, - 8 / + SUM ( - - 20 ) * - 22 + 77 AS col1
----
6175
77

query II rowsort
SELECT - ( - - 13 ) AS col2, + 36 AS col2
----
-13
36

query I rowsort
SELECT + 14 * + - 87 * 55 AS col1
----
-66990

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT - 19 * + CASE - 70 WHEN + 48 THEN - + 66 + - 26 + + 5 * 50 * + 80 * - COUNT( * ) WHEN + 69 * - 1 / + + 69 * + ( 54 ) + + 51 + COUNT( * ) + + - 60 * - 75 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9226
SELECT - 19 * + CASE - 70 WHEN + 48 THEN - + 66 + - 26 + + 5 * 50 * + 80 * - COUNT ( * ) WHEN + 69 * - 1 / + + 69 * + ( 54 ) + + 51 + COUNT ( * ) + + - 60 * - 75 THEN NULL END
----
NULL

query III rowsort
SELECT ALL 25 * - 64 AS col2, 59 AS col0, + + 48 * + 38 - - 7
----
-1600
59
1831

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT DISTINCT + ( + 89 ) * + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT + ( + 89 ) * + COUNT ( * )
----
89

query I rowsort
SELECT + 90 * 76
----
6840

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT DISTINCT + 41 + SUM( + 36 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-9230
SELECT DISTINCT + 41 + SUM ( + 36 ) AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9231
SELECT ALL - CAST( 27 AS SIGNED ) + + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL - CAST ( 27 AS INTEGER ) + + COUNT ( * )
----
-26

query I rowsort
SELECT DISTINCT ( - ( + 14 ) ) * 41
----
-574

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT - COUNT( + 61 ) * SUM( ALL 5 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-9233
SELECT - COUNT ( + 61 ) * SUM ( ALL 5 ) AS col1
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-9234
SELECT DISTINCT + 50 DIV 84 + - 70 + 60 + + 7 * + ( + 51 ), + 96 + - 70 * - - 32 AS col1
----
347
-2144

skipif mysql # not compatible
query II rowsort label-9234
SELECT DISTINCT + 50 / 84 + - 70 + 60 + + 7 * + ( + 51 ), + 96 + - 70 * - - 32 AS col1
----
347
-2144

onlyif mysql # DIV for integer division: 
query I rowsort label-9235
SELECT - 53 DIV + ( - ( - 95 ) ) * + - 91 + + - 15 * - 6 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-9235
SELECT - 53 / + ( - ( - 95 ) ) * + - 91 + + - 15 * - 6 AS col0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9236
SELECT - 0 + + CAST( NULL AS SIGNED ), + 89 + + 65 AS col2
----
NULL
154

skipif mysql # not compatible
query II rowsort label-9236
SELECT - 0 + + CAST ( NULL AS INTEGER ), + 89 + + 65 AS col2
----
NULL
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9237
SELECT + 71 DIV - 41 - ( - MAX( DISTINCT + 54 ) ) + + + 26 * - + 6 AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-9237
SELECT + 71 / - 41 - ( - MAX ( DISTINCT + 54 ) ) + + + 26 * - + 6 AS col1
----
-103

query I rowsort
SELECT DISTINCT - 97 * - - 92 AS col2
----
-8924

query I rowsort
SELECT 83 * - 95 * + 44 AS col1
----
-346940

query II rowsort
SELECT 54 * + 96 col2, + 35 AS col1
----
5184
35

query I rowsort
SELECT ALL - 79 * - 19 * - 31 * + 44
----
-2047364

query I rowsort
SELECT ALL + 24 - 46
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT DISTINCT - 70 * - - 79 * + - COUNT( - 68 ) AS col2
----
5530

skipif mysql # not compatible
query I rowsort label-9243
SELECT DISTINCT - 70 * - - 79 * + - COUNT ( - 68 ) AS col2
----
5530

query I rowsort
SELECT 29 + - 70 col1
----
-41

query I rowsort
SELECT ALL - 37 * + 96 + - 97 AS col1
----
-3649

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT + ( + COALESCE ( + 49, - - 35, - + 31 ) ) - + COUNT( * ) * + + 86
----
-37

skipif mysql # not compatible
query I rowsort label-9246
SELECT + ( + COALESCE ( + 49, - - 35, - + 31 ) ) - + COUNT ( * ) * + + 86
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-9247
SELECT + MAX( DISTINCT + 13 ) AS col1, 77
----
13
77

skipif mysql # not compatible
query II rowsort label-9247
SELECT + MAX ( DISTINCT + 13 ) AS col1, 77
----
13
77

query I rowsort
SELECT 39 * 70 + 26 + 79 * 69 * - 34 AS col1
----
-182578

onlyif mysql # aggregate syntax: 
query II rowsort label-9249
SELECT + - COUNT( + + 82 ) AS col2, 48
----
-1
48

skipif mysql # not compatible
query II rowsort label-9249
SELECT + - COUNT ( + + 82 ) AS col2, 48
----
-1
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9250
SELECT - 47 DIV 37
----
-1

skipif mysql # not compatible
query I rowsort label-9250
SELECT - 47 / 37
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9251
SELECT - 17 DIV MAX( + + 3 ) + - 51
----
-56

skipif mysql # not compatible
query I rowsort label-9251
SELECT - 17 / MAX ( + + 3 ) + - 51
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9252
SELECT ALL 87 * + ( - + COUNT( + CAST( + ( + 36 ) AS SIGNED ) ) ) + + - ( 22 ) AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL 87 * + ( - + COUNT ( + CAST ( + ( + 36 ) AS INTEGER ) ) ) + + - ( 22 ) AS col1
----
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9253
SELECT DISTINCT - - COUNT( * ) + COUNT( * ) DIV - + COUNT( * ) + + 58
----
58

skipif mysql # not compatible
query I rowsort label-9253
SELECT DISTINCT - - COUNT ( * ) + COUNT ( * ) / - + COUNT ( * ) + + 58
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT ALL + + MIN( - 19 ) + COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL + + MIN ( - 19 ) + COUNT ( * ) AS col0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9255
SELECT - - CAST( + - 39 AS SIGNED ) AS col2, - CAST( - + 80 AS SIGNED )
----
-39
80

skipif mysql # not compatible
query II rowsort label-9255
SELECT - - CAST ( + - 39 AS INTEGER ) AS col2, - CAST ( - + 80 AS INTEGER )
----
-39
80

query I rowsort
SELECT + 97 * - - 69 * - - 65
----
435045

query II rowsort
SELECT 87 + + - 11 AS col0, 48 * - - 65
----
76
3120

onlyif mysql # aggregate syntax: 
query II rowsort label-9258
SELECT ALL SUM( DISTINCT - - 32 ) * + - 67 AS col0, + 21 * + + COUNT( * ) + + MIN( + - 17 ) + COUNT( * )
----
-2144
5

skipif mysql # not compatible
query II rowsort label-9258
SELECT ALL SUM ( DISTINCT - - 32 ) * + - 67 AS col0, + 21 * + + COUNT ( * ) + + MIN ( + - 17 ) + COUNT ( * )
----
-2144
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9259
SELECT 13 + + CAST( NULL AS SIGNED ) / + COUNT( * ) + - + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9259
SELECT 13 + + CAST ( NULL AS INTEGER ) / + COUNT ( * ) + - + 13
----
NULL

query I rowsort
SELECT 49 * + 88 AS col2
----
4312

query I rowsort
SELECT ALL ( - 67 ) + - 56
----
-123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9262
SELECT DISTINCT COALESCE ( + CASE + - COALESCE ( + 94, + 29 ) WHEN + 92 THEN 72 * + 53 + + 85 DIV + 90 END, - 61 + + 28 DIV MIN( DISTINCT + + 17 ) * + + 38, 97 ) + - - 26 - - - 40 * 81 DIV - 84
----
41

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT COALESCE ( + CASE + - COALESCE ( + 94, + 29 ) WHEN + 92 THEN 72 * + 53 + + 85 / + 90 END, - 61 + + 28 / MIN ( DISTINCT + + 17 ) * + + 38, 97 ) + - - 26 - - - 40 * 81 / - 84
----
41

query I rowsort
SELECT ALL 72 * + + 14 AS col2
----
1008

query II rowsort
SELECT 82, - 44 AS col0
----
82
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9265
SELECT CAST( NULL AS SIGNED ) + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9265
SELECT CAST ( NULL AS INTEGER ) + - 32
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9266
SELECT ALL CAST( NULL AS SIGNED ) - + - MIN( ALL + - 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9266
SELECT ALL CAST ( NULL AS INTEGER ) - + - MIN ( ALL + - 64 )
----
NULL

query II rowsort
SELECT - 87 AS col2, 84 AS col1
----
-87
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9268
SELECT + 98 * - 43 + + CAST( NULL AS DECIMAL ) - + 61 - - 16 * - 49 / - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9268
SELECT + 98 * - 43 + + CAST ( NULL AS REAL ) - + 61 - - 16 * - 49 / - + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 71 * + 4
----
284

query II rowsort
SELECT DISTINCT 29 * ( + 29 ), 47 AS col1
----
841
47

query I rowsort
SELECT 89 * - 8
----
-712

query I rowsort
SELECT 63 * + - 78
----
-4914

onlyif mysql # DIV for integer division: 
query I rowsort label-9273
SELECT ALL 76 * 61 DIV + - 3 AS col2
----
-1545

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL 76 * 61 / + - 3 AS col2
----
-1545

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT DISTINCT 93 * MIN( DISTINCT 80 )
----
7440

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT 93 * MIN ( DISTINCT 80 )
----
7440

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT ALL - COALESCE ( - 81, COUNT( * ) * + 80 * - COUNT( * ) )
----
81

skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL - COALESCE ( - 81, COUNT ( * ) * + 80 * - COUNT ( * ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT ALL - ( + COALESCE ( - + COUNT( + - 59 ), + - 6 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL - ( + COALESCE ( - + COUNT ( + - 59 ), + - 6 ) ) AS col2
----
1

query I rowsort
SELECT ALL - + ( - + 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT + MAX( - 14 ) - + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-9278
SELECT + MAX ( - 14 ) - + COUNT ( * )
----
-15

query I rowsort
SELECT - CASE - 85 WHEN + 33 * + 39 THEN + 5 WHEN - - 51 THEN NULL ELSE + 26 END AS col1
----
-26

query I rowsort
SELECT - 4 + + - 0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT 54 * - COUNT( * ) * - 82 * + 87 AS col2
----
385236

skipif mysql # not compatible
query I rowsort label-9281
SELECT 54 * - COUNT ( * ) * - 82 * + 87 AS col2
----
385236

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT - MAX( + 24 ) * - 71
----
1704

skipif mysql # not compatible
query I rowsort label-9282
SELECT - MAX ( + 24 ) * - 71
----
1704

query I rowsort
SELECT ALL - 26 * - 20 * - 34
----
-17680

query I rowsort
SELECT ALL - 81 * + NULLIF ( 20, + 43 ) AS col2
----
-1620

query I rowsort
SELECT ALL - - 27 + 47
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9286
SELECT ALL - + CAST( 1 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL - + CAST ( 1 AS INTEGER )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9287
SELECT 23 + + CAST( - 71 AS SIGNED ) * + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-9287
SELECT 23 + + CAST ( - 71 AS INTEGER ) * + COUNT ( * )
----
-48

query I rowsort
SELECT ALL + 90 + 78 AS col0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT - NULLIF ( - 88, SUM( DISTINCT + 86 ) ) * + 50
----
4400

skipif mysql # not compatible
query I rowsort label-9289
SELECT - NULLIF ( - 88, SUM ( DISTINCT + 86 ) ) * + 50
----
4400

query I rowsort
SELECT 0 + - 44
----
-44

query I rowsort
SELECT 2 * + 56 AS col0
----
112

query I rowsort
SELECT 30 * ( + 96 ) + 39 - + + 13 AS col2
----
2906

query II rowsort
SELECT - + 48, - 74 - - + 27 col0
----
-48
-47

query I rowsort
SELECT ALL + 86 + 65 + - 57 AS col0
----
94

query I rowsort
SELECT 20 * - 89 col2
----
-1780

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT 29 * + + MIN( - 54 ) AS col1
----
-1566

skipif mysql # not compatible
query I rowsort label-9296
SELECT 29 * + + MIN ( - 54 ) AS col1
----
-1566

query I rowsort
SELECT ALL 31 * + + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT - MIN( ( - - 14 ) ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-9298
SELECT - MIN ( ( - - 14 ) ) AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9299
SELECT ALL 95 * - + 6 * 85 * CASE - + ( - CAST( - 15 AS SIGNED ) ) WHEN 41 * - 90 * - - COUNT( * ) * + + 81 * + - ( - ( - - ( 58 ) ) ) THEN - + 82 WHEN + 81 * + MIN( DISTINCT 72 ) + MAX( DISTINCT + 52 ) / + 65 THEN + 97 + - 23 * - 85 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL 95 * - + 6 * 85 * CASE - + ( - CAST ( - 15 AS INTEGER ) ) WHEN 41 * - 90 * - - COUNT ( * ) * + + 81 * + - ( - ( - - ( 58 ) ) ) THEN - + 82 WHEN + 81 * + MIN ( DISTINCT 72 ) + MAX ( DISTINCT + 52 ) / + 65 THEN + 97 + - 23 * - 85 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 18 * + - 50
----
900

onlyif mysql # aggregate syntax: 
query II rowsort label-9301
SELECT ALL 88 - - + 63, + COALESCE ( 92, + ( + 24 ) - - + 92, - + 45 ) + - 32 + + MAX( - 24 ) AS col1
----
151
36

skipif mysql # not compatible
query II rowsort label-9301
SELECT ALL 88 - - + 63, + COALESCE ( 92, + ( + 24 ) - - + 92, - + 45 ) + - 32 + + MAX ( - 24 ) AS col1
----
151
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT ALL - CASE - - 44 WHEN + 78 THEN + COUNT( * ) ELSE NULL END * - - ( - + 15 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL - CASE - - 44 WHEN + 78 THEN + COUNT ( * ) ELSE NULL END * - - ( - + 15 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT + MAX( ALL ( - 20 ) ) - - 17 + ( 73 ) - - - 23 + 73 * 70 * 24 AS col2
----
122687

skipif mysql # not compatible
query I rowsort label-9303
SELECT + MAX ( ALL ( - 20 ) ) - - 17 + ( 73 ) - - - 23 + 73 * 70 * 24 AS col2
----
122687

query I rowsort
SELECT + 0 * + 54 + 50 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT CASE - 91 WHEN + + 59 THEN - COUNT( * ) ELSE MAX( DISTINCT 14 ) END AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9305
SELECT CASE - 91 WHEN + + 59 THEN - COUNT ( * ) ELSE MAX ( DISTINCT 14 ) END AS col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9306
SELECT DISTINCT 17 * + ( + - 10 ) * + 49 + 80, COUNT( ALL - 91 ) DIV + 70 + - 49 AS col2
----
-8250
-49

skipif mysql # not compatible
query II rowsort label-9306
SELECT DISTINCT 17 * + ( + - 10 ) * + 49 + 80, COUNT ( ALL - 91 ) / + 70 + - 49 AS col2
----
-8250
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9307
SELECT + COALESCE ( - 20, - - 66 ) DIV 28 + - SUM( DISTINCT - 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-9307
SELECT + COALESCE ( - 20, - - 66 ) / 28 + - SUM ( DISTINCT - 43 ) AS col2
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9308
SELECT ALL ( SUM( DISTINCT 9 ) ) DIV - 40 col2, - COUNT( * ) AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-9308
SELECT ALL ( SUM ( DISTINCT 9 ) ) / - 40 col2, - COUNT ( * ) AS col1
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT + 75 * MIN( DISTINCT + + 78 )
----
5850

skipif mysql # not compatible
query I rowsort label-9309
SELECT + 75 * MIN ( DISTINCT + + 78 )
----
5850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9310
SELECT - COALESCE ( + 99, + COALESCE ( COUNT( * ), 27 DIV - 64, + 3 ) DIV + 98 + - 17 ) DIV + - 35 + + 41
----
43

skipif mysql # not compatible
query I rowsort label-9310
SELECT - COALESCE ( + 99, + COALESCE ( COUNT ( * ), 27 / - 64, + 3 ) / + 98 + - 17 ) / + - 35 + + 41
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9311
SELECT - NULLIF ( CASE - 4 WHEN - - 71 THEN NULL ELSE - 20 - + 77 END, + 22 ) / - + 89 - + COUNT( * ) + - CAST( NULL AS SIGNED ) - + 95 + + COUNT( * ) * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-9311
SELECT - NULLIF ( CASE - 4 WHEN - - 71 THEN NULL ELSE - 20 - + 77 END, + 22 ) / - + 89 - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) - + 95 + + COUNT ( * ) * - 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT + 2 / + - 41 - + 17 * + CASE - 61 WHEN - COUNT( * ) THEN NULL WHEN ( + - 46 ) THEN COALESCE ( - + 59, + 7 ) * + 50 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9312
SELECT + 2 / + - 41 - + 17 * + CASE - 61 WHEN - COUNT ( * ) THEN NULL WHEN ( + - 46 ) THEN COALESCE ( - + 59, + 7 ) * + 50 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 46 * - 78 AS col0
----
-3588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT ALL CAST( NULL AS SIGNED ) * - 45 + + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL CAST ( NULL AS INTEGER ) * - 45 + + - 31
----
NULL

query I rowsort
SELECT + + NULLIF ( + + 98, 6 + 57 ) col2
----
98

query I rowsort
SELECT - ( 31 ) * + 14 AS col1
----
-434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9317
SELECT ALL + - CAST( NULL AS SIGNED ) * - 17 + + NULLIF ( COALESCE ( - + CAST( - - 57 AS DECIMAL ), 69, + COUNT( ALL + 53 ) ), + 91 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL + - CAST ( NULL AS INTEGER ) * - 17 + + NULLIF ( COALESCE ( - + CAST ( - - 57 AS REAL ), 69, + COUNT ( ALL + 53 ) ), + 91 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT ALL - 41 * + + 61 + - - ( - 16 ) + + MIN( + 77 )
----
-2440

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL - 41 * + + 61 + - - ( - 16 ) + + MIN ( + 77 )
----
-2440

query I rowsort
SELECT + ( + + 46 ) * - 51
----
-2346

query I rowsort
SELECT - - 59 * 36
----
2124

query I rowsort
SELECT ALL - + 23 * 78 + 39 + - 68
----
-1823

query I rowsort
SELECT - + 73 - - 86 + + 18
----
31

query II rowsort
SELECT DISTINCT NULLIF ( + - 24, + 4 ) * - 68 + - - 83, - 19 AS col2
----
1715
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9324
SELECT ALL - CASE - 5 WHEN + - 78 + + 36 + - - 90 + - + 20 + ( + NULLIF ( - 53, - + 62 + - + 54 * + 86 ) ) * - 69 THEN + - 10 ELSE NULL END - + - ( + CAST( 43 AS SIGNED ) ) * - 91 + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL - CASE - 5 WHEN + - 78 + + 36 + - - 90 + - + 20 + ( + NULLIF ( - 53, - + 62 + - + 54 * + 86 ) ) * - 69 THEN + - 10 ELSE NULL END - + - ( + CAST ( 43 AS INTEGER ) ) * - 91 + 70 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9325
SELECT DISTINCT + 0 * - 38 * + 10 * + CAST( - - 93 AS SIGNED ) AS col2, 41 AS col0
----
0
41

skipif mysql # not compatible
query II rowsort label-9325
SELECT DISTINCT + 0 * - 38 * + 10 * + CAST ( - - 93 AS INTEGER ) AS col2, 41 AS col0
----
0
41

query I rowsort
SELECT DISTINCT ( + 93 ) AS col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9327
SELECT ALL + 55 - - SUM( CASE - 96 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE + 62 END ) AS col1, 35 + NULLIF ( - - 92, - MAX( - 92 ) )
----
117
NULL

skipif mysql # not compatible
query II rowsort label-9327
SELECT ALL + 55 - - SUM ( CASE - 96 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 62 END ) AS col1, 35 + NULLIF ( - - 92, - MAX ( - 92 ) )
----
117
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9328
SELECT DISTINCT + CASE + - CAST( NULL AS SIGNED ) WHEN - MAX( ALL 99 ) * + + COUNT( * ) THEN NULL WHEN - 98 / - COUNT( * ) THEN NULL ELSE COUNT( * ) + ( AVG ( - CAST( NULL AS SIGNED ) ) ) + - - 90 END * - + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT + CASE + - CAST ( NULL AS INTEGER ) WHEN - MAX ( ALL 99 ) * + + COUNT ( * ) THEN NULL WHEN - 98 / - COUNT ( * ) THEN NULL ELSE COUNT ( * ) + ( AVG ( - CAST ( NULL AS INTEGER ) ) ) + - - 90 END * - + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT - 25 + - - ( - + COUNT( * ) )
----
-26

skipif mysql # not compatible
query I rowsort label-9329
SELECT - 25 + - - ( - + COUNT ( * ) )
----
-26

query I rowsort
SELECT - ( + NULLIF ( - 45, - - 90 + - 10 * - 19 ) ) - - 71 AS col2
----
116

query I rowsort
SELECT - 77 + - - 5 col2
----
-72

query I rowsort
SELECT - COALESCE ( + 53, - 47 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9333
SELECT DISTINCT COALESCE ( 32, - CASE + 5 WHEN 9 * - 11 THEN - 96 - + CAST( + 39 AS SIGNED ) - + ( + 30 ) + NULLIF ( - 27, + 94 * - COUNT( * ) ) WHEN + ( - - 97 ) / - 2 + - 70 THEN + 82 + - ( + - CAST( NULL AS SIGNED ) ) * + 4 * + 69 WHEN - 3 THEN + 49 * - 60 END * + 6 + + 95 * 10 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-9333
SELECT DISTINCT COALESCE ( 32, - CASE + 5 WHEN 9 * - 11 THEN - 96 - + CAST ( + 39 AS INTEGER ) - + ( + 30 ) + NULLIF ( - 27, + 94 * - COUNT ( * ) ) WHEN + ( - - 97 ) / - 2 + - 70 THEN + 82 + - ( + - CAST ( NULL AS INTEGER ) ) * + 4 * + 69 WHEN - 3 THEN + 49 * - 60 END * + 6 + + 95 * 10 ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT ALL MAX( - 75 ) * - COUNT( * ) * - 99
----
-7425

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL MAX ( - 75 ) * - COUNT ( * ) * - 99
----
-7425

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9335
SELECT ALL 41 * + - CASE + + 14 WHEN 56 THEN NULL WHEN 39 THEN NULL WHEN 12 THEN NULL ELSE - + 0 + + 77 END col0, + MIN( ( + 50 ) ) DIV + + 7 + + + COUNT( * ) + - - 30 DIV + 91 col0
----
-3157
8

skipif mysql # not compatible
query II rowsort label-9335
SELECT ALL 41 * + - CASE + + 14 WHEN 56 THEN NULL WHEN 39 THEN NULL WHEN 12 THEN NULL ELSE - + 0 + + 77 END col0, + MIN ( ( + 50 ) ) / + + 7 + + + COUNT ( * ) + - - 30 / + 91 col0
----
-3157
8

query I rowsort
SELECT DISTINCT ( + - 89 ) AS col0
----
-89

query I rowsort
SELECT - 23 + + - NULLIF ( 76, - - 93 )
----
-99

query I rowsort
SELECT DISTINCT + 75 * - + 12 AS col1
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT - + MIN( ALL + 27 ) * - + 83 - + COUNT( * ) * - 42 AS col1
----
2283

skipif mysql # not compatible
query I rowsort label-9339
SELECT - + MIN ( ALL + 27 ) * - + 83 - + COUNT ( * ) * - 42 AS col1
----
2283

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9340
SELECT DISTINCT 27 DIV COUNT( * ) + 69 * + 53 * + 24 * + 82 AS col0, + 35
----
7197003
35

skipif mysql # not compatible
query II rowsort label-9340
SELECT DISTINCT 27 / COUNT ( * ) + 69 * + 53 * + 24 * + 82 AS col0, + 35
----
7197003
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9341
SELECT + COALESCE ( - CASE - 95 WHEN 71 - - 93 THEN - 41 * - ( - 39 ) + - 55 END, 6 / - + 41 + - 12 + CAST( NULL AS SIGNED ) ) AS col2, 30 + 20 AS col2
----
NULL
50

skipif mysql # not compatible
query II rowsort label-9341
SELECT + COALESCE ( - CASE - 95 WHEN 71 - - 93 THEN - 41 * - ( - 39 ) + - 55 END, 6 / - + 41 + - 12 + CAST ( NULL AS INTEGER ) ) AS col2, 30 + 20 AS col2
----
NULL
50

query I rowsort
SELECT ALL + + 60 * - 28
----
-1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9343
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 96 + 6 + - ( + COALESCE ( + 21, 14 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 96 + 6 + - ( + COALESCE ( + 21, 14 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT ALL + 1 / + - 34 - - + CASE + 97 WHEN + - 64 + + - 44 + 0 THEN + COUNT( ALL - ( + 24 ) ) END + 35 + - 29 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL + 1 / + - 34 - - + CASE + 97 WHEN + - 64 + + - 44 + 0 THEN + COUNT ( ALL - ( + 24 ) ) END + 35 + - 29 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9345
SELECT ALL + - 64 DIV ( + + COUNT( 84 ) ) * + 63 + 96 + - + 38 * + 76 + + 7 col0
----
-6817

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL + - 64 / ( + + COUNT ( 84 ) ) * + 63 + 96 + - + 38 * + 76 + + 7 col0
----
-6817

onlyif mysql # DIV for integer division: 
query I rowsort label-9346
SELECT DISTINCT + 32 DIV 3 * + ( - 47 ) AS col1
----
-470

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT + 32 / 3 * + ( - 47 ) AS col1
----
-470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9347
SELECT - + CAST( + + 43 AS SIGNED ) + 53
----
10

skipif mysql # not compatible
query I rowsort label-9347
SELECT - + CAST ( + + 43 AS INTEGER ) + 53
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT 63 * + COUNT( * ) - - 63
----
126

skipif mysql # not compatible
query I rowsort label-9348
SELECT 63 * + COUNT ( * ) - - 63
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT + 63 * 20 + CASE + 87 WHEN - - 67 * + 38 THEN NULL WHEN + 17 THEN + NULLIF ( - 20, 11 - - MAX( 1 ) ) END - - ( - - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9349
SELECT + 63 * 20 + CASE + 87 WHEN - - 67 * + 38 THEN NULL WHEN + 17 THEN + NULLIF ( - 20, 11 - - MAX ( 1 ) ) END - - ( - - 49 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9350
SELECT + - 93 + - CAST( - - 88 AS SIGNED ) AS col2, 15 * - 48
----
-181
-720

skipif mysql # not compatible
query II rowsort label-9350
SELECT + - 93 + - CAST ( - - 88 AS INTEGER ) AS col2, 15 * - 48
----
-181
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT ALL - NULLIF ( - ( + + 58 ), + 89 ) * - CASE - AVG ( ALL + 25 ) WHEN + 42 THEN 91 END * COUNT( * ) + 58 + + - 62 + - + ( 96 ) * - 57 / + 20 * AVG ( + 98 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL - NULLIF ( - ( + + 58 ), + 89 ) * - CASE - AVG ( ALL + 25 ) WHEN + 42 THEN 91 END * COUNT ( * ) + 58 + + - 62 + - + ( 96 ) * - 57 / + 20 * AVG ( + 98 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9352
SELECT + - 44 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9352
SELECT + - 44 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9353
SELECT ALL + CAST( NULL AS SIGNED ) * - MAX( + + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL + CAST ( NULL AS INTEGER ) * - MAX ( + + 92 )
----
NULL

query II rowsort
SELECT ALL + - 83 col1, 10
----
-83
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9355
SELECT CASE + 58 WHEN + COUNT( * ) THEN + - 76 * 6 * - NULLIF ( + 65, - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) ) + + ( + + 1 ) END AS col1, - 85 AS col0
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-9355
SELECT CASE + 58 WHEN + COUNT ( * ) THEN + - 76 * 6 * - NULLIF ( + 65, - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) + + ( + + 1 ) END AS col1, - 85 AS col0
----
NULL
-85

query II rowsort
SELECT 71 AS col1, + 9 * NULLIF ( + + 8, + + 21 * 58 - + ( + 38 ) * - + 41 ) - + - 94
----
71
166

query II rowsort
SELECT DISTINCT 77, 25 * 81 * + + 0 AS col1
----
77
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9358
SELECT CAST( NULL AS SIGNED ) * + - 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9358
SELECT CAST ( NULL AS INTEGER ) * + - 4 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9359
SELECT 83 + COUNT( * ) DIV - ( 46 ) AS col0, ( 39 )
----
83
39

skipif mysql # not compatible
query II rowsort label-9359
SELECT 83 + COUNT ( * ) / - ( 46 ) AS col0, ( 39 )
----
83
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9360
SELECT DISTINCT 88 AS col1, + MAX( ALL + CAST( NULL AS SIGNED ) ) + - + CAST( NULL AS SIGNED ) + + 97
----
88
NULL

skipif mysql # not compatible
query II rowsort label-9360
SELECT DISTINCT 88 AS col1, + MAX ( ALL + CAST ( NULL AS INTEGER ) ) + - + CAST ( NULL AS INTEGER ) + + 97
----
88
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9361
SELECT 80 DIV + + 19 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9361
SELECT 80 / + + 19 AS col2
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9362
SELECT 22 AS col0, MAX( ALL + + 94 ) AS col2
----
22
94

skipif mysql # not compatible
query II rowsort label-9362
SELECT 22 AS col0, MAX ( ALL + + 94 ) AS col2
----
22
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9363
SELECT ALL 51, - CAST( 9 AS SIGNED ) AS col1
----
51
-9

skipif mysql # not compatible
query II rowsort label-9363
SELECT ALL 51, - CAST ( 9 AS INTEGER ) AS col1
----
51
-9

query I rowsort
SELECT 63 - - - 75 + - + 28
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-9365
SELECT 69 DIV + 37 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9365
SELECT 69 / + 37 AS col1
----
1

query II rowsort
SELECT 3 col1, - 34 * - 33
----
3
1122

query II rowsort
SELECT - 59, 33 AS col1
----
-59
33

query I rowsort
SELECT 18 * 22 * - 76
----
-30096

query II rowsort
SELECT - + 6 AS col2, - 13 AS col1
----
-6
-13

query I rowsort
SELECT ALL - + 12 + + 6 AS col2
----
-6

query I rowsort
SELECT DISTINCT - + 96 + 72 * - 33 AS col2
----
-2472

query I rowsort
SELECT 98 - + + 43
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9373
SELECT ALL - - CAST( NULL AS SIGNED ) + 80 + + 24 * - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL - - CAST ( NULL AS INTEGER ) + 80 + + 24 * - 29
----
NULL

query II rowsort
SELECT 66, - 31 AS col2
----
66
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9375
SELECT + CAST( - + 92 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-9375
SELECT + CAST ( - + 92 AS INTEGER )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT COUNT( * ) * COUNT( + 53 ) + + + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9376
SELECT COUNT ( * ) * COUNT ( + 53 ) + + + COUNT ( * ) AS col0
----
2

query I rowsort
SELECT DISTINCT - 11 - + 40 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT ALL + 53 * - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL + 53 * - COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT ( + CASE AVG ( 15 ) WHEN COUNT( * ) THEN NULL ELSE 42 + - + 36 END ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9379
SELECT ( + CASE AVG ( 15 ) WHEN COUNT ( * ) THEN NULL ELSE 42 + - + 36 END ) AS col2
----
6

query II rowsort
SELECT ALL - 87 AS col1, 3 * - - 83 - + 4 * - 30 + - 50 col2
----
-87
319

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT + - CASE - COALESCE ( + + 69, - ( - + 4 ) ) WHEN + 8 + 52 - + ( + 48 ) * - - COUNT( * ) THEN - CASE - 4 WHEN - 29 THEN + 79 + + + COUNT( * ) * CASE - COUNT( * ) WHEN + - 31 * - 2 + - 44 + - - MAX( + 85 ) THEN ( - ( - + 14 ) ) WHEN + ( + 3 ) * - 93 THEN - 36 END - COUNT( * ) ELSE NULL END * 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9381
SELECT + - CASE - COALESCE ( + + 69, - ( - + 4 ) ) WHEN + 8 + 52 - + ( + 48 ) * - - COUNT ( * ) THEN - CASE - 4 WHEN - 29 THEN + 79 + + + COUNT ( * ) * CASE - COUNT ( * ) WHEN + - 31 * - 2 + - 44 + - - MAX ( + 85 ) THEN ( - ( - + 14 ) ) WHEN + ( + 3 ) * - 93 THEN - 36 END - COUNT ( * ) ELSE NULL END * 57 END
----
NULL

query I rowsort
SELECT 22 * - 73 AS col0
----
-1606

query I rowsort
SELECT 58 * + 86 * 13
----
64844

onlyif mysql # DIV for integer division: 
query I rowsort label-9384
SELECT ALL 19 DIV + - 16
----
-1

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL 19 / + - 16
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT 28 * - COUNT( * ) + + - 12
----
-40

skipif mysql # not compatible
query I rowsort label-9385
SELECT 28 * - COUNT ( * ) + + - 12
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-9386
SELECT DISTINCT 37 DIV - 13
----
-2

skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT 37 / - 13
----
-2

query I rowsort
SELECT 48 * - + 85
----
-4080

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9388
SELECT CASE - 59 WHEN - 6 THEN - + CAST( - + ( COUNT( * ) ) AS DECIMAL ) WHEN - - ( + - 17 ) THEN NULL WHEN - + 96 * 85 + + 67 + - + 87 + ( - 71 ) * + 19 * - MIN( ALL + + 80 ) + + 85 / + 83 THEN NULL ELSE NULL END * 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9388
SELECT CASE - 59 WHEN - 6 THEN - + CAST ( - + ( COUNT ( * ) ) AS REAL ) WHEN - - ( + - 17 ) THEN NULL WHEN - + 96 * 85 + + 67 + - + 87 + ( - 71 ) * + 19 * - MIN ( ALL + + 80 ) + + 85 / + 83 THEN NULL ELSE NULL END * 90 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9389
SELECT DISTINCT COUNT( * ) * 66 AS col1, - 13 + + 40 + + 30 * + + 85
----
66
2577

skipif mysql # not compatible
query II rowsort label-9389
SELECT DISTINCT COUNT ( * ) * 66 AS col1, - 13 + + 40 + + 30 * + + 85
----
66
2577

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT MIN( DISTINCT + 58 ) + 93 col2
----
151

skipif mysql # not compatible
query I rowsort label-9390
SELECT MIN ( DISTINCT + 58 ) + 93 col2
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-9391
SELECT ALL 59 DIV + - 37
----
-1

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL 59 / + - 37
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT - COUNT( + 5 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9392
SELECT - COUNT ( + 5 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9393
SELECT ALL 6 + - COALESCE ( 97, + 47, - CAST( + ( - 10 ) AS SIGNED ) * ( - - 78 ) ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL 6 + - COALESCE ( 97, + 47, - CAST ( + ( - 10 ) AS INTEGER ) * ( - - 78 ) ) AS col0
----
-91

query I rowsort
SELECT 99 - - 96 - - 35 * - 95 * - ( - 26 ) AS col1
----
-86255

onlyif mysql # DIV for integer division: 
query I rowsort label-9395
SELECT 73 + - ( - 1 ) + - - 66 * - 60 DIV 30 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-9395
SELECT 73 + - ( - 1 ) + - - 66 * - 60 / 30 AS col0
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9396
SELECT ALL 99 + + 41 - 39 DIV SUM( DISTINCT 31 ) * + + 17 * - 64 * + - 20 * + - SUM( DISTINCT 49 ) + COALESCE ( 61, + 90 ), + 92 AS col2
----
1066441
92

skipif mysql # not compatible
query II rowsort label-9396
SELECT ALL 99 + + 41 - 39 / SUM ( DISTINCT 31 ) * + + 17 * - 64 * + - 20 * + - SUM ( DISTINCT 49 ) + COALESCE ( 61, + 90 ), + 92 AS col2
----
1066441
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT 18 + - 45 - 68 * + 96 - COUNT( * ) * + ( - 77 )
----
-6478

skipif mysql # not compatible
query I rowsort label-9397
SELECT 18 + - 45 - 68 * + 96 - COUNT ( * ) * + ( - 77 )
----
-6478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9398
SELECT ALL - 9 + + - 95, CASE COALESCE ( - 92, + + COUNT( * ) * + 99 * - 20, - 41 ) WHEN + 56 * + 54 * + - 29 * + - 56 * 57 THEN - 73 WHEN - CAST( + - 49 AS SIGNED ) THEN NULL END AS col0
----
-104
NULL

skipif mysql # not compatible
query II rowsort label-9398
SELECT ALL - 9 + + - 95, CASE COALESCE ( - 92, + + COUNT ( * ) * + 99 * - 20, - 41 ) WHEN + 56 * + 54 * + - 29 * + - 56 * 57 THEN - 73 WHEN - CAST ( + - 49 AS INTEGER ) THEN NULL END AS col0
----
-104
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT ALL - MIN( DISTINCT 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL - MIN ( DISTINCT 68 )
----
-68

query I rowsort
SELECT 66 + 54 col2
----
120

query I rowsort
SELECT DISTINCT 70 * - + 77 AS col1
----
-5390

query I rowsort
SELECT ALL + COALESCE ( - 36, - 33, + 81 + 18 + 1 * - - 48 ) AS col2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9403
SELECT CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 58 + - 86 AS col0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT + - ( - CASE COUNT( * ) WHEN - 58 THEN - ( - + 51 ) WHEN - 61 + - - 90 + + COUNT( ALL 21 ) * + 97 * + 56 THEN - 3 * 69 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9405
SELECT + - ( - CASE COUNT ( * ) WHEN - 58 THEN - ( - + 51 ) WHEN - 61 + - - 90 + + COUNT ( ALL 21 ) * + 97 * + 56 THEN - 3 * 69 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9406
SELECT DISTINCT - + CASE - CAST( NULL AS SIGNED ) WHEN - MAX( + 77 ) * 75 * 38 + 16 + + 33 THEN + COUNT( * ) WHEN - + 19 THEN NULL ELSE - + 7 + - - 39 * 39 * + + COUNT( * ) END
----
-1514

skipif mysql # not compatible
query I rowsort label-9406
SELECT DISTINCT - + CASE - CAST ( NULL AS INTEGER ) WHEN - MAX ( + 77 ) * 75 * 38 + 16 + + 33 THEN + COUNT ( * ) WHEN - + 19 THEN NULL ELSE - + 7 + - - 39 * 39 * + + COUNT ( * ) END
----
-1514

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9407
SELECT ALL - + COALESCE ( CAST( + 18 AS SIGNED ), - + 25 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL - + COALESCE ( CAST ( + 18 AS INTEGER ), - + 25 ) AS col0
----
-18

onlyif mysql # DIV for integer division: 
query III rowsort label-9408
SELECT 15 DIV 93 AS col0, 10 AS col1, - + 70
----
0
10
-70

skipif mysql # not compatible
query III rowsort label-9408
SELECT 15 / 93 AS col0, 10 AS col1, - + 70
----
0
10
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9409
SELECT + 21 + - 72 AS col2, COUNT( * ) + + MIN( ALL 62 ) + - 26 + + COUNT( * ) DIV - 54 + - - 16 + + + 71 AS col2
----
-51
124

skipif mysql # not compatible
query II rowsort label-9409
SELECT + 21 + - 72 AS col2, COUNT ( * ) + + MIN ( ALL 62 ) + - 26 + + COUNT ( * ) / - 54 + - - 16 + + + 71 AS col2
----
-51
124

query I rowsort
SELECT DISTINCT + - 92 * + 42 AS col0
----
-3864

query I rowsort
SELECT ALL - - 30 * + 69 * - 58 AS col2
----
-120060

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9412
SELECT - 87 + + 7 AS col0, - 74 - 30 - 98 + - 36 * + COUNT( * ) * - COUNT( * ) DIV + + 94
----
-80
-202

skipif mysql # not compatible
query II rowsort label-9412
SELECT - 87 + + 7 AS col0, - 74 - 30 - 98 + - 36 * + COUNT ( * ) * - COUNT ( * ) / + + 94
----
-80
-202

query I rowsort
SELECT - 90 * + 56 * + 6
----
-30240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9414
SELECT + 8 + + + CAST( NULL AS SIGNED ) * 94 - 8 * - 44 + - - 10 + COUNT( * ) * - + 86 / - 32 * + 66 / - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9414
SELECT + 8 + + + CAST ( NULL AS INTEGER ) * 94 - 8 * - 44 + - - 10 + COUNT ( * ) * - + 86 / - 32 * + 66 / - COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT + 68, + 10 AS col2
----
68
10

query I rowsort
SELECT ALL + ( ( 76 ) )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT + ( 34 ) * - + 88 + + + 65 + ( + + COUNT( DISTINCT - 19 ) ) + - COALESCE ( - 32, + 85, CASE + + ( 15 ) WHEN 28 THEN - COUNT( * ) END )
----
-2894

skipif mysql # not compatible
query I rowsort label-9417
SELECT + ( 34 ) * - + 88 + + + 65 + ( + + COUNT ( DISTINCT - 19 ) ) + - COALESCE ( - 32, + 85, CASE + + ( 15 ) WHEN 28 THEN - COUNT ( * ) END )
----
-2894

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT ALL 60 * - 63 + - COUNT( ALL + 34 ) * - + 32
----
-3748

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL 60 * - 63 + - COUNT ( ALL + 34 ) * - + 32
----
-3748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9419
SELECT ALL - CAST( - COUNT( - ( - NULLIF ( + 67, 45 * 54 ) ) ) AS SIGNED ) * - 60 + + 54 DIV + - COUNT( * ) - + 57
----
-171

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL - CAST ( - COUNT ( - ( - NULLIF ( + 67, 45 * 54 ) ) ) AS INTEGER ) * - 60 + + 54 / + - COUNT ( * ) - + 57
----
-171

query I rowsort
SELECT ALL + ( - 6 ) AS col0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-9421
SELECT ALL 18 DIV 23 * - 54 * - - 87
----
0

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL 18 / 23 * - 54 * - - 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9422
SELECT ALL - 34 + - + 27 * - CAST( NULL AS SIGNED ) AS col2, CASE 7 WHEN - - MIN( COALESCE ( + - 16, - 67 + - CAST( NULL AS DECIMAL ) + 36 * - + 47, + 25 + ( 20 ) ) ) * 2 + - - COALESCE ( - 45, + SUM( ALL - 58 ) ) - AVG ( 38 ) * + CAST( NULL AS SIGNED ) THEN NULL WHEN + 58 + + 14 + + - 43 * - 33 THEN 99 ELSE NULL END * + 96 - - 4 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9422
SELECT ALL - 34 + - + 27 * - CAST ( NULL AS INTEGER ) AS col2, CASE 7 WHEN - - MIN ( COALESCE ( + - 16, - 67 + - CAST ( NULL AS REAL ) + 36 * - + 47, + 25 + ( 20 ) ) ) * 2 + - - COALESCE ( - 45, + SUM ( ALL - 58 ) ) - AVG ( 38 ) * + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 58 + + 14 + + - 43 * - 33 THEN 99 ELSE NULL END * + 96 - - 4 AS col2
----
NULL
NULL

query I rowsort
SELECT - 36 * - 13
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT MAX( ALL ( - - 99 ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-9424
SELECT MAX ( ALL ( - - 99 ) ) AS col0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9425
SELECT DISTINCT 65 + + 52 + + + 59 - + 97 * - CAST( NULL AS SIGNED ) + + 41 + - ( 93 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9425
SELECT DISTINCT 65 + + 52 + + + 59 - + 97 * - CAST ( NULL AS INTEGER ) + + 41 + - ( 93 ) AS col1
----
NULL

query I rowsort
SELECT ALL 82 * 27 AS col0
----
2214

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9427
SELECT - SUM( - + 7 ) DIV + 85 + + 45
----
45

skipif mysql # not compatible
query I rowsort label-9427
SELECT - SUM ( - + 7 ) / + 85 + + 45
----
45

query I rowsort
SELECT + 94 + - 76
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-9429
SELECT DISTINCT 17 + + ( + ( - + 81 ) ) DIV 63
----
16

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT 17 + + ( + ( - + 81 ) ) / 63
----
16

query II rowsort
SELECT ALL 76 + - 59 - - + 12, 90 AS col0
----
29
90

query I rowsort
SELECT ALL ( + + 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT ALL SUM( DISTINCT + - 21 ) + + + 87
----
66

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL SUM ( DISTINCT + - 21 ) + + + 87
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9433
SELECT + CASE + 31 WHEN - - COALESCE ( 28, 1, 66 + + ( + 96 ) ) THEN + CAST( NULL AS SIGNED ) * + 92 WHEN 63 + NULLIF ( - + COUNT( * ), - COUNT( * ) * 61 ) THEN NULL END / - 81 AS col0, 36
----
NULL
36

skipif mysql # not compatible
query II rowsort label-9433
SELECT + CASE + 31 WHEN - - COALESCE ( 28, 1, 66 + + ( + 96 ) ) THEN + CAST ( NULL AS INTEGER ) * + 92 WHEN 63 + NULLIF ( - + COUNT ( * ), - COUNT ( * ) * 61 ) THEN NULL END / - 81 AS col0, 36
----
NULL
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9434
SELECT ALL + 98 * - CAST( 81 AS SIGNED )
----
-7938

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL + 98 * - CAST ( 81 AS INTEGER )
----
-7938

query I rowsort
SELECT DISTINCT 23 * + 99 AS col1
----
2277

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT DISTINCT COUNT( * ) * + 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT COUNT ( * ) * + 76 AS col1
----
76

query I rowsort
SELECT DISTINCT 59 * - 58 AS col1
----
-3422

onlyif mysql # DIV for integer division: 
query I rowsort label-9438
SELECT ALL - 78 - + 60 DIV + 48
----
-79

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL - 78 - + 60 / + 48
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT + 33 - + 79 - - - 9 * COUNT( * ) * - 32 * + - 40 AS col0
----
-11566

skipif mysql # not compatible
query I rowsort label-9439
SELECT + 33 - + 79 - - - 9 * COUNT ( * ) * - 32 * + - 40 AS col0
----
-11566

onlyif mysql # DIV for integer division: 
query I rowsort label-9440
SELECT + 46 - + - 15 DIV 82
----
46

skipif mysql # not compatible
query I rowsort label-9440
SELECT + 46 - + - 15 / 82
----
46

query I rowsort
SELECT + COALESCE ( 7, 75 ) * - 14 + + 10 + + 52
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-9442
SELECT + 60 + - 94 + + + 38 - - 54 DIV + - 94 col2
----
4

skipif mysql # not compatible
query I rowsort label-9442
SELECT + 60 + - 94 + + + 38 - - 54 / + - 94 col2
----
4

query II rowsort
SELECT 57 col0, - 30 + + + 6 * + 68 * + 25 AS col1
----
57
10170

query I rowsort
SELECT - + 0 + + + 42 * + + 0 * + 2 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9445
SELECT + 91 AS col2, + CAST( NULL AS SIGNED )
----
91
NULL

skipif mysql # not compatible
query II rowsort label-9445
SELECT + 91 AS col2, + CAST ( NULL AS INTEGER )
----
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT + - COUNT( * ) * - + 69
----
69

skipif mysql # not compatible
query I rowsort label-9446
SELECT + - COUNT ( * ) * - + 69
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9447
SELECT + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9447
SELECT + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - + 14
----
NULL

query II rowsort
SELECT ALL + 58 AS col0, - 93 AS col0
----
58
-93

query I rowsort
SELECT ALL - 70 * - - 5
----
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT DISTINCT + COUNT( * ) * + CASE + - 86 WHEN + COUNT( * ) THEN NULL ELSE 31 END
----
31

skipif mysql # not compatible
query I rowsort label-9450
SELECT DISTINCT + COUNT ( * ) * + CASE + - 86 WHEN + COUNT ( * ) THEN NULL ELSE 31 END
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-9451
SELECT DISTINCT + + COUNT( * ) AS col1, 43 AS col1
----
1
43

skipif mysql # not compatible
query II rowsort label-9451
SELECT DISTINCT + + COUNT ( * ) AS col1, 43 AS col1
----
1
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT + + COUNT( * ) * - 18 + + + 54
----
36

skipif mysql # not compatible
query I rowsort label-9452
SELECT + + COUNT ( * ) * - 18 + + + 54
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9453
SELECT + + CAST( - MAX( + 11 ) AS SIGNED ) * + + 26 + - COUNT( * ) + 83 AS col0
----
-204

skipif mysql # not compatible
query I rowsort label-9453
SELECT + + CAST ( - MAX ( + 11 ) AS INTEGER ) * + + 26 + - COUNT ( * ) + 83 AS col0
----
-204

onlyif mysql # aggregate syntax: 
query II rowsort label-9454
SELECT ( + + COUNT( * ) ), + 67 * + 59 * - 11 AS col0
----
1
-43483

skipif mysql # not compatible
query II rowsort label-9454
SELECT ( + + COUNT ( * ) ), + 67 * + 59 * - 11 AS col0
----
1
-43483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9455
SELECT - CASE 28 WHEN + 62 * - + 46 / - COALESCE ( 30, + - ( - MAX( - 38 ) ) * - - MAX( DISTINCT + + 99 ) ) THEN + 2 * 30 WHEN + + 5 THEN NULL WHEN 53 THEN + COUNT( * ) * 35 * 67 * + NULLIF ( + - COUNT( * ), 94 + + + 69 + 35 + CAST( - COUNT( * ) AS SIGNED ) * - + 65 ) - - 43 ELSE NULL END * + CAST( NULL AS SIGNED ) * 78 + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT - CASE 28 WHEN + 62 * - + 46 / - COALESCE ( 30, + - ( - MAX ( - 38 ) ) * - - MAX ( DISTINCT + + 99 ) ) THEN + 2 * 30 WHEN + + 5 THEN NULL WHEN 53 THEN + COUNT ( * ) * 35 * 67 * + NULLIF ( + - COUNT ( * ), 94 + + + 69 + 35 + CAST ( - COUNT ( * ) AS INTEGER ) * - + 65 ) - - 43 ELSE NULL END * + CAST ( NULL AS INTEGER ) * 78 + 83
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9456
SELECT DISTINCT + MAX( + 16 ) * COALESCE ( + 78, + 1 DIV + 66, NULLIF ( 17, - 75 + - 45 * - - CAST( + ( 95 ) AS DECIMAL ) * + 48 DIV 81 ) + - 89 ) AS col1
----
1248

skipif mysql # not compatible
query I rowsort label-9456
SELECT DISTINCT + MAX ( + 16 ) * COALESCE ( + 78, + 1 / + 66, NULLIF ( 17, - 75 + - 45 * - - CAST ( + ( 95 ) AS REAL ) * + 48 / 81 ) + - 89 ) AS col1
----
1248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9457
SELECT ALL COUNT( * ) * + - 48 DIV 34 DIV 63 + + 51 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL COUNT ( * ) * + - 48 / 34 / 63 + + 51 AS col1
----
51

query I rowsort
SELECT ALL + 75 * + + 71
----
5325

query I rowsort
SELECT ALL 24 * - 72 + + 85
----
-1643

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT DISTINCT + NULLIF ( + - COUNT( * ), - + 61 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9460
SELECT DISTINCT + NULLIF ( + - COUNT ( * ), - + 61 ) col1
----
-1

query I rowsort
SELECT 2 * 95 + - - 5 col2
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9462
SELECT - COUNT( * ) * + 26 DIV + 44
----
0

skipif mysql # not compatible
query I rowsort label-9462
SELECT - COUNT ( * ) * + 26 / + 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT ALL + ( - COUNT( DISTINCT - + 4 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL + ( - COUNT ( DISTINCT - + 4 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT + COUNT( * ) * SUM( + - 88 ) + + + 25
----
-63

skipif mysql # not compatible
query I rowsort label-9464
SELECT + COUNT ( * ) * SUM ( + - 88 ) + + + 25
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT NULLIF ( - 12, + 66 - + MAX( DISTINCT - 18 ) ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-9465
SELECT NULLIF ( - 12, + 66 - + MAX ( DISTINCT - 18 ) ) AS col2
----
-12

query I rowsort
SELECT + NULLIF ( - - ( 46 ), 81 * + ( - + ( - 37 ) ) ) col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ALL + 1 * + 34 + COUNT( * ) + + 22
----
57

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL + 1 * + 34 + COUNT ( * ) + + 22
----
57

query I rowsort
SELECT ALL - 30 * ( - - 26 )
----
-780

query I rowsort
SELECT - 58 - + 85 AS col1
----
-143

query I rowsort
SELECT ALL + 12 * + + 12 * + - 95
----
-13680

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT DISTINCT ( + CASE + COUNT( * ) WHEN + - COALESCE ( ( + 33 ), 52, + 96 ) * + 45 * + 1 + - 3 * + SUM( ALL + 89 ) THEN - 51 + + 40 / + + 87 * 48 ELSE - 81 END ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-9471
SELECT DISTINCT ( + CASE + COUNT ( * ) WHEN + - COALESCE ( ( + 33 ), 52, + 96 ) * + 45 * + 1 + - 3 * + SUM ( ALL + 89 ) THEN - 51 + + 40 / + + 87 * 48 ELSE - 81 END ) AS col1
----
-81

query I rowsort
SELECT - 52 * - 15
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT DISTINCT CASE 82 WHEN - 71 THEN NULL ELSE COUNT( DISTINCT - ( + - 83 ) ) * 51 - - + 18 END * - COUNT( * ) * + 81 AS col2
----
-5589

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT CASE 82 WHEN - 71 THEN NULL ELSE COUNT ( DISTINCT - ( + - 83 ) ) * 51 - - + 18 END * - COUNT ( * ) * + 81 AS col2
----
-5589

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT - COUNT( * ) + + - 88 + - COALESCE ( 49, - 0, + - 7 * + 65, + ( + - 81 ) + - 77 ) * - 84 AS col1
----
4027

skipif mysql # not compatible
query I rowsort label-9474
SELECT - COUNT ( * ) + + - 88 + - COALESCE ( 49, - 0, + - 7 * + 65, + ( + - 81 ) + - 77 ) * - 84 AS col1
----
4027

onlyif mysql # DIV for integer division: 
query I rowsort label-9475
SELECT + 91 * + 17 * + + 25 + + - 37 + 51 DIV - - 78 + + 71
----
38709

skipif mysql # not compatible
query I rowsort label-9475
SELECT + 91 * + 17 * + + 25 + + - 37 + 51 / - - 78 + + 71
----
38709

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT - COUNT( * ) + + 84 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9476
SELECT - COUNT ( * ) + + 84 AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-9477
SELECT ALL + + 26 DIV + + 72
----
0

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL + + 26 / + + 72
----
0

query I rowsort
SELECT - + 10 * 72
----
-720

query I rowsort
SELECT - 44 + + - 65
----
-109

query I rowsort
SELECT + + 46 - - - 90 + 4 * - 78 col2
----
-356

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT MAX( + 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-9481
SELECT MAX ( + 53 ) AS col1
----
53

query I rowsort
SELECT ALL + ( + 62 ) * + 62
----
3844

onlyif mysql # DIV for integer division: 
query I rowsort label-9483
SELECT - + 60 DIV 5 + + 31 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-9483
SELECT - + 60 / 5 + + 31 AS col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-9484
SELECT ALL + + 34 DIV 33 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL + + 34 / 33 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT + - MIN( DISTINCT 60 ) + - ( - 92 ) + 5 * - 41 col2
----
-173

skipif mysql # not compatible
query I rowsort label-9485
SELECT + - MIN ( DISTINCT 60 ) + - ( - 92 ) + 5 * - 41 col2
----
-173

onlyif mysql # aggregate syntax: 
query II rowsort label-9486
SELECT DISTINCT - - COUNT( * ) * - + 76 col1, ( + NULLIF ( 64, - - 33 / 75 + + 17 ) ) + - 61 AS col1
----
-76
3

skipif mysql # not compatible
query II rowsort label-9486
SELECT DISTINCT - - COUNT ( * ) * - + 76 col1, ( + NULLIF ( 64, - - 33 / 75 + + 17 ) ) + - 61 AS col1
----
-76
3

query I rowsort
SELECT DISTINCT - COALESCE ( + + 73, - 50 + - 24, + 18 ) AS col1
----
-73

query I rowsort
SELECT + - ( 43 ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT ALL COUNT( * ) + + + 73
----
74

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL COUNT ( * ) + + + 73
----
74

query I rowsort
SELECT ALL - 89 + - 8 AS col0
----
-97

query I rowsort
SELECT DISTINCT 8 * 56 AS col0
----
448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9492
SELECT DISTINCT ( - - 69 ) + + CAST( + 84 AS SIGNED )
----
153

skipif mysql # not compatible
query I rowsort label-9492
SELECT DISTINCT ( - - 69 ) + + CAST ( + 84 AS INTEGER )
----
153

query II rowsort
SELECT 81 AS col2, 73 AS col0
----
81
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT ( - 56 ) + - COUNT( ALL - 96 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-9494
SELECT ( - 56 ) + - COUNT ( ALL - 96 ) AS col1
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9495
SELECT 6 * + COUNT( * ) + - 46 + - + 33 + + 72 DIV 5 * - - 7 - + 53 * 72 + 69, - COUNT( * ) AS col0
----
-3722
-1

skipif mysql # not compatible
query II rowsort label-9495
SELECT 6 * + COUNT ( * ) + - 46 + - + 33 + + 72 / 5 * - - 7 - + 53 * 72 + 69, - COUNT ( * ) AS col0
----
-3722
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9496
SELECT 34 DIV + + ( - 69 ) + 12 + - - 1 * 28
----
40

skipif mysql # not compatible
query I rowsort label-9496
SELECT 34 / + + ( - 69 ) + 12 + - - 1 * 28
----
40

query I rowsort
SELECT ALL 7 * 71
----
497

query II rowsort
SELECT + 82 * - 29 + - 50, - 51 AS col1
----
-2428
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9499
SELECT 81, + COALESCE ( + 57, - + 77 * NULLIF ( + CAST( + 45 AS SIGNED ), 38 ) * + 49 * 36 * + COUNT( * ) * - + 72 DIV ( 87 ) - + + 52 + - - 74 + + 51 * - 47 DIV + + 64 ) * + 41 AS col0
----
81
2337

skipif mysql # not compatible
query II rowsort label-9499
SELECT 81, + COALESCE ( + 57, - + 77 * NULLIF ( + CAST ( + 45 AS INTEGER ), 38 ) * + 49 * 36 * + COUNT ( * ) * - + 72 / ( 87 ) - + + 52 + - - 74 + + 51 * - 47 / + + 64 ) * + 41 AS col0
----
81
2337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9500
SELECT 8 + + CASE + - 9 WHEN + 6 + + 21 - 64 * - ( + 94 ) / 20 THEN ( 78 ) * + + 64 + + SUM( DISTINCT + 29 ) * 23 + + MAX( ALL - 53 ) WHEN - + 48 + - 27 * - 30 THEN + 90 * - CASE + 9 WHEN + 19 THEN - 98 + - - 17 * + 33 END + + CAST( NULL AS SIGNED ) + + + CAST( - 75 AS SIGNED ) * - 43 WHEN - ( CAST( 68 AS SIGNED ) ) + + 35 * 6 THEN NULL WHEN 9 * + 37 THEN - 33 END + - 85 / 98 / + NULLIF ( CASE 47 WHEN - SUM( DISTINCT 34 ) THEN 37 END + 94 * 92, 7 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9500
SELECT 8 + + CASE + - 9 WHEN + 6 + + 21 - 64 * - ( + 94 ) / 20 THEN ( 78 ) * + + 64 + + SUM ( DISTINCT + 29 ) * 23 + + MAX ( ALL - 53 ) WHEN - + 48 + - 27 * - 30 THEN + 90 * - CASE + 9 WHEN + 19 THEN - 98 + - - 17 * + 33 END + + CAST ( NULL AS INTEGER ) + + + CAST ( - 75 AS INTEGER ) * - 43 WHEN - ( CAST ( 68 AS INTEGER ) ) + + 35 * 6 THEN NULL WHEN 9 * + 37 THEN - 33 END + - 85 / 98 / + NULLIF ( CASE 47 WHEN - SUM ( DISTINCT 34 ) THEN 37 END + 94 * 92, 7 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 34 + - 23
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-9502
SELECT DISTINCT - COUNT( * ), + 2 AS col1
----
-1
2

skipif mysql # not compatible
query II rowsort label-9502
SELECT DISTINCT - COUNT ( * ), + 2 AS col1
----
-1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT DISTINCT - SUM( DISTINCT - 72 ) col1
----
72

skipif mysql # not compatible
query I rowsort label-9503
SELECT DISTINCT - SUM ( DISTINCT - 72 ) col1
----
72

query I rowsort
SELECT ALL + 44 * 23 AS col2
----
1012

query I rowsort
SELECT 8 + 40 + + 52
----
100

query I rowsort
SELECT ALL 41 - - 41 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT 14 * + CASE - 14 WHEN 39 * - 43 * 55 THEN + + 16 * + 31 / + - 49 WHEN COUNT( * ) - + - 79 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9507
SELECT 14 * + CASE - 14 WHEN 39 * - 43 * 55 THEN + + 16 * + 31 / + - 49 WHEN COUNT ( * ) - + - 79 THEN NULL ELSE NULL END AS col2
----
NULL

query III rowsort
SELECT ALL 57 AS col2, 25 * 64 AS col0, 76 * + - 79 * - 17 * - 8
----
57
1600
-816544

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT ALL + MAX( ALL + 51 ) * 94
----
4794

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL + MAX ( ALL + 51 ) * 94
----
4794

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT MIN( ALL 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-9510
SELECT MIN ( ALL 46 ) AS col1
----
46

query I rowsort
SELECT COALESCE ( + + 76, - + 97, 31 ) + + 55
----
131

onlyif mysql # aggregate syntax: 
query II rowsort label-9512
SELECT 29 * 86 + + - 67 AS col1, + 87 * COUNT( * ) AS col2
----
2427
87

skipif mysql # not compatible
query II rowsort label-9512
SELECT 29 * 86 + + - 67 AS col1, + 87 * COUNT ( * ) AS col2
----
2427
87

query I rowsort
SELECT - ( 27 ) * - 43 AS col0
----
1161

query II rowsort
SELECT ALL - 31 AS col2, + 48 * + - 80 AS col2
----
-31
-3840

query I rowsort
SELECT ALL + - 32 * + 52 AS col2
----
-1664

query I rowsort
SELECT ( + + 35 ) - - + 53 * + + 21 AS col1
----
1148

onlyif mysql # aggregate syntax: 
query II rowsort label-9517
SELECT COUNT( * ) * COUNT( * ) + + + 85 + + 95 * + 33 AS col0, + 14 * - 74 AS col0
----
3221
-1036

skipif mysql # not compatible
query II rowsort label-9517
SELECT COUNT ( * ) * COUNT ( * ) + + + 85 + + 95 * + 33 AS col0, + 14 * - 74 AS col0
----
3221
-1036

onlyif mysql # aggregate syntax: 
query II rowsort label-9518
SELECT DISTINCT + - 56 + 0 * + + 42 AS col2, COUNT( * ) * - 22 * + 47 * 2 * + 16 AS col2
----
-56
-33088

skipif mysql # not compatible
query II rowsort label-9518
SELECT DISTINCT + - 56 + 0 * + + 42 AS col2, COUNT ( * ) * - 22 * + 47 * 2 * + 16 AS col2
----
-56
-33088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9519
SELECT ALL + CAST( - 90 AS SIGNED ) * + COUNT( * ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL + CAST ( - 90 AS INTEGER ) * + COUNT ( * ) AS col1
----
-90

query I rowsort
SELECT 67 + 90 AS col1
----
157

query I rowsort
SELECT DISTINCT + 60 * - - COALESCE ( 82, + 37 )
----
4920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9522
SELECT ALL 20 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL 20 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 10, - 25 col1
----
10
-25

query II rowsort
SELECT - 11 AS col1, 95 col2
----
-11
95

query I rowsort
SELECT ALL - 2 + - 10 * - 85 col1
----
848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9526
SELECT ALL + 47 + + + 14 * 7 * - CAST( ( + MIN( - 24 ) ) AS SIGNED )
----
2399

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL + 47 + + + 14 * 7 * - CAST ( ( + MIN ( - 24 ) ) AS INTEGER )
----
2399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9527
SELECT DISTINCT - 93 * + CASE - + 3 WHEN + CAST( NULL AS SIGNED ) * ( COUNT( * ) ) THEN + + 35 + - - 22 WHEN 30 * + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT - 93 * + CASE - + 3 WHEN + CAST ( NULL AS INTEGER ) * ( COUNT ( * ) ) THEN + + 35 + - - 22 WHEN 30 * + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT SUM( DISTINCT - + 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-9528
SELECT SUM ( DISTINCT - + 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT ALL COUNT( * ) - + + 87 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-9529
SELECT ALL COUNT ( * ) - + + 87 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT MAX( DISTINCT 83 ) col0
----
83

skipif mysql # not compatible
query I rowsort label-9530
SELECT MAX ( DISTINCT 83 ) col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT MAX( DISTINCT - 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-9531
SELECT MAX ( DISTINCT - 13 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT + COUNT( ALL + 39 )
----
1

skipif mysql # not compatible
query I rowsort label-9532
SELECT + COUNT ( ALL + 39 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9533
SELECT + COUNT( * ), + 43 col0
----
1
43

skipif mysql # not compatible
query II rowsort label-9533
SELECT + COUNT ( * ), + 43 col0
----
1
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9534
SELECT 24 DIV + 23 col0
----
1

skipif mysql # not compatible
query I rowsort label-9534
SELECT 24 / + 23 col0
----
1

query I rowsort
SELECT 7 + 2 + - 13 AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9536
SELECT 97 DIV 16 + 46 + + 94
----
146

skipif mysql # not compatible
query I rowsort label-9536
SELECT 97 / 16 + 46 + + 94
----
146

query II rowsort
SELECT DISTINCT + 30 AS col2, 84 - 44
----
30
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9538
SELECT ALL - COUNT( * ) DIV - + 73 col2
----
0

skipif mysql # not compatible
query I rowsort label-9538
SELECT ALL - COUNT ( * ) / - + 73 col2
----
0

query II rowsort
SELECT ALL - 33, 43 col0
----
-33
43

query I rowsort
SELECT ALL + + ( + + 85 ) + + 26 + + 83 + 33 AS col1
----
227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9541
SELECT - CASE - + 66 WHEN + 44 THEN - - SUM( 53 ) ELSE NULL END * + - 59 + - CAST( + 12 AS SIGNED ) + 98 + - CASE - - 56 WHEN + 27 THEN + 76 * - + 19 ELSE - - 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT - CASE - + 66 WHEN + 44 THEN - - SUM ( 53 ) ELSE NULL END * + - 59 + - CAST ( + 12 AS INTEGER ) + 98 + - CASE - - 56 WHEN + 27 THEN + 76 * - + 19 ELSE - - 18 END
----
NULL

query I rowsort
SELECT ALL CASE + COALESCE ( - - 68, ( 96 ) * - 22 + + 24 ) WHEN - ( - 59 ) THEN + + 26 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9543
SELECT DISTINCT 36 DIV - COALESCE ( - + 84, + 92 + + - 44 + + + ( + 13 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT 36 / - COALESCE ( - + 84, + 92 + + - 44 + + + ( + 13 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT + + 83 + + 1 * ( - SUM( DISTINCT + 94 ) ) col0
----
-11

skipif mysql # not compatible
query I rowsort label-9544
SELECT + + 83 + + 1 * ( - SUM ( DISTINCT + 94 ) ) col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT ALL - + MAX( ALL + 23 ) * - 53
----
1219

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL - + MAX ( ALL + 23 ) * - 53
----
1219

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9546
SELECT ALL + + 4 + - - ( - + 88 ) DIV COALESCE ( - 38, + COUNT( * ) - + 73 * 43 * + 72 * + 84, 95 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL + + 4 + - - ( - + 88 ) / COALESCE ( - 38, + COUNT ( * ) - + 73 * 43 * + 72 * + 84, 95 ) AS col0
----
6

query I rowsort
SELECT - 98 - + + ( + NULLIF ( + 63, + 46 ) ) AS col1
----
-161

query II rowsort
SELECT - 38, 21 + 15 AS col2
----
-38
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT + COUNT( * ) + 57 - + - 50
----
108

skipif mysql # not compatible
query I rowsort label-9549
SELECT + COUNT ( * ) + 57 - + - 50
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9550
SELECT - 12 + + NULLIF ( 85, + CAST( NULL AS SIGNED ) * - COUNT( * ) * + + 26 * + COUNT( * ) )
----
73

skipif mysql # not compatible
query I rowsort label-9550
SELECT - 12 + + NULLIF ( 85, + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + + 26 * + COUNT ( * ) )
----
73

query I rowsort
SELECT ALL - - 92 + - 52
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-9552
SELECT - - MIN( 4 ) AS col1, - 45
----
4
-45

skipif mysql # not compatible
query II rowsort label-9552
SELECT - - MIN ( 4 ) AS col1, - 45
----
4
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT ALL 25 + + - 84 + + COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL 25 + + - 84 + + COUNT ( * ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT ALL - NULLIF ( + SUM( DISTINCT + - 12 ), - - 30 )
----
12

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL - NULLIF ( + SUM ( DISTINCT + - 12 ), - - 30 )
----
12

query I rowsort
SELECT ALL + - 16 + ( + 56 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT - + ( + 31 ) + + COUNT( * ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9556
SELECT - + ( + 31 ) + + COUNT ( * ) AS col0
----
-30

query I rowsort
SELECT ALL NULLIF ( + ( - + 2 ), + 63 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT - - 92 + + + COUNT( * ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-9558
SELECT - - 92 + + + COUNT ( * ) AS col1
----
93

query II rowsort
SELECT - 37 + - 82 AS col0, - ( + - 29 )
----
-119
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT - COUNT( * ) + 54 + - 56 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9560
SELECT - COUNT ( * ) + 54 + - 56 AS col2
----
-3

query I rowsort
SELECT - 89 + - 87
----
-176

query I rowsort
SELECT ALL 56 * ( + 24 ) - + 15
----
1329

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT DISTINCT - 62 * + + COUNT( * ) * - - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT - 62 * + + COUNT ( * ) * - - COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-9564
SELECT - 42 * - 42, COUNT( * ) col0
----
1764
1

skipif mysql # not compatible
query II rowsort label-9564
SELECT - 42 * - 42, COUNT ( * ) col0
----
1764
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9565
SELECT ALL - 71 * - COUNT( * ) * - - CASE 68 WHEN MAX( DISTINCT - + CASE CAST( NULL AS SIGNED ) WHEN - 60 * + 44 * ( - - 15 ) + 34 THEN + + 28 + + - 92 END ) * - + 76 + 90 THEN - - 15 END * 30 * + MIN( 67 ) * - + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL - 71 * - COUNT ( * ) * - - CASE 68 WHEN MAX ( DISTINCT - + CASE CAST ( NULL AS INTEGER ) WHEN - 60 * + 44 * ( - - 15 ) + 34 THEN + + 28 + + - 92 END ) * - + 76 + 90 THEN - - 15 END * 30 * + MIN ( 67 ) * - + 29 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT - 35 + COUNT( * ) * 87
----
52

skipif mysql # not compatible
query I rowsort label-9566
SELECT - 35 + COUNT ( * ) * 87
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT ALL 67 * - 97 - - - COUNT( * ) * 17
----
-6516

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL 67 * - 97 - - - COUNT ( * ) * 17
----
-6516

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT DISTINCT + MAX( 95 ) * + - 23 AS col1
----
-2185

skipif mysql # not compatible
query I rowsort label-9568
SELECT DISTINCT + MAX ( 95 ) * + - 23 AS col1
----
-2185

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT 72 * COUNT( * ) * + COUNT( * ) + 60
----
132

skipif mysql # not compatible
query I rowsort label-9569
SELECT 72 * COUNT ( * ) * + COUNT ( * ) + 60
----
132

query II rowsort
SELECT + 88 * 80 AS col2, - 3 + - NULLIF ( - - 59, + 35 )
----
7040
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9571
SELECT COALESCE ( + - 3, + + 1 * - CAST( NULL AS SIGNED ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9571
SELECT COALESCE ( + - 3, + + 1 * - CAST ( NULL AS INTEGER ) ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT - 36 / - SUM( + + 86 ) + CASE + - 19 WHEN 21 THEN NULL WHEN - COUNT( ALL - 16 ) * + 6 THEN 97 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9572
SELECT - 36 / - SUM ( + + 86 ) + CASE + - 19 WHEN 21 THEN NULL WHEN - COUNT ( ALL - 16 ) * + 6 THEN 97 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9573
SELECT CASE + 14 WHEN 87 + 12 - - 2 * - COUNT( * ) * + 14 + + 52 THEN NULL ELSE - - 39 DIV ( ( - MIN( ALL + ( 88 ) ) ) ) + 7 END AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9573
SELECT CASE + 14 WHEN 87 + 12 - - 2 * - COUNT ( * ) * + 14 + + 52 THEN NULL ELSE - - 39 / ( ( - MIN ( ALL + ( 88 ) ) ) ) + 7 END AS col2
----
7

query I rowsort
SELECT + 81 + + 5
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9575
SELECT COALESCE ( - + 36, + - COUNT( * ) DIV - 65 )
----
-36

skipif mysql # not compatible
query I rowsort label-9575
SELECT COALESCE ( - + 36, + - COUNT ( * ) / - 65 )
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-9576
SELECT + 52 * - 98 AS col0, COUNT( * ) * 85 - 90 + + 53 AS col1
----
-5096
48

skipif mysql # not compatible
query II rowsort label-9576
SELECT + 52 * - 98 AS col0, COUNT ( * ) * 85 - 90 + + 53 AS col1
----
-5096
48

query I rowsort
SELECT DISTINCT + ( 80 ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT ALL - + COUNT( * ) * - 90 + - MAX( ALL + + 4 )
----
86

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL - + COUNT ( * ) * - 90 + - MAX ( ALL + + 4 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9579
SELECT + - CAST( - MIN( ALL + 60 ) AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-9579
SELECT + - CAST ( - MIN ( ALL + 60 ) AS INTEGER )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT - + SUM( - + 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-9580
SELECT - + SUM ( - + 11 ) AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9581
SELECT - 48 * 87 + + + 66 + - + CAST( NULL AS SIGNED ) + - - 5 * - COALESCE ( 9, COUNT( 74 ), + - 28 ) * COUNT( * ) * + COUNT( * ), 9 AS col2
----
NULL
9

skipif mysql # not compatible
query II rowsort label-9581
SELECT - 48 * 87 + + + 66 + - + CAST ( NULL AS INTEGER ) + - - 5 * - COALESCE ( 9, COUNT ( 74 ), + - 28 ) * COUNT ( * ) * + COUNT ( * ), 9 AS col2
----
NULL
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9582
SELECT ALL ( - CAST( + CAST( + CASE - 14 WHEN 10 / - 51 - - + 43 / 66 THEN NULL WHEN + 83 THEN - 33 END AS SIGNED ) AS SIGNED ) ) * - + COUNT( * ) + - - MAX( ALL - 92 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL ( - CAST ( + CAST ( + CASE - 14 WHEN 10 / - 51 - - + 43 / 66 THEN NULL WHEN + 83 THEN - 33 END AS INTEGER ) AS INTEGER ) ) * - + COUNT ( * ) + - - MAX ( ALL - 92 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( + 47, + 39 ) AS col2
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9584
SELECT + + CAST( NULL AS DECIMAL ) / + + 43 * + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9584
SELECT + + CAST ( NULL AS REAL ) / + + 43 * + 35 AS col1
----
NULL

query I rowsort
SELECT ALL + 11 * + 95 * - 34 AS col2
----
-35530

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT DISTINCT 66 * - - 48 * COUNT( - 51 )
----
3168

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT 66 * - - 48 * COUNT ( - 51 )
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT + MAX( + + 8 ) + + - 31
----
-23

skipif mysql # not compatible
query I rowsort label-9587
SELECT + MAX ( + + 8 ) + + - 31
----
-23

query I rowsort
SELECT + 66 * - 42 * + + 33 * - 81 AS col0
----
7409556

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ALL - COUNT( 39 ) * + + 42 * 72 AS col2
----
-3024

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL - COUNT ( 39 ) * + + 42 * 72 AS col2
----
-3024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9590
SELECT DISTINCT 89 - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9590
SELECT DISTINCT 89 - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT ALL ( + SUM( 81 ) )
----
81

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL ( + SUM ( 81 ) )
----
81

query I rowsort
SELECT DISTINCT + NULLIF ( + + ( - - 23 ), - NULLIF ( - - 71, 63 ) ) - + 7 AS col2
----
16

query I rowsort
SELECT DISTINCT CASE - + 38 WHEN 89 THEN 38 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9594
SELECT DISTINCT + 50 AS col2, - 97 + + COUNT( * ) * + 38 * 52
----
50
1879

skipif mysql # not compatible
query II rowsort label-9594
SELECT DISTINCT + 50 AS col2, - 97 + + COUNT ( * ) * + 38 * 52
----
50
1879

onlyif mysql # DIV for integer division: 
query II rowsort label-9595
SELECT DISTINCT + 56 AS col0, + 68 DIV - 31 AS col0
----
56
-2

skipif mysql # not compatible
query II rowsort label-9595
SELECT DISTINCT + 56 AS col0, + 68 / - 31 AS col0
----
56
-2

query I rowsort
SELECT - 88 * - 34 AS col0
----
2992

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT - COUNT( * ) * + 55 * + ( 97 )
----
-5335

skipif mysql # not compatible
query I rowsort label-9597
SELECT - COUNT ( * ) * + 55 * + ( 97 )
----
-5335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9598
SELECT ALL + CAST( 83 AS SIGNED ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL + CAST ( 83 AS INTEGER ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT ALL - COUNT( * ) * - 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL - COUNT ( * ) * - 53 AS col2
----
53

onlyif mysql # DIV for integer division: 
query II rowsort label-9600
SELECT ALL + 82 DIV - 41 + 84 AS col2, 16 AS col0
----
82
16

skipif mysql # not compatible
query II rowsort label-9600
SELECT ALL + 82 / - 41 + 84 AS col2, 16 AS col0
----
82
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9601
SELECT DISTINCT + NULLIF ( + CAST( NULL AS SIGNED ), + ( - 26 ) ) / + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT + NULLIF ( + CAST ( NULL AS INTEGER ), + ( - 26 ) ) / + 25
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9602
SELECT ALL - COALESCE ( 29, + MAX( + - 43 ) - + 84 ) DIV + 22 - - 78 * - - COUNT( * ) + + MIN( DISTINCT + - 96 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL - COALESCE ( 29, + MAX ( + - 43 ) - + 84 ) / + 22 - - 78 * - - COUNT ( * ) + + MIN ( DISTINCT + - 96 ) AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9603
SELECT ALL + + COUNT( * ) * + - CAST( NULL AS SIGNED ) + - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL + + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + - 36 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 5 * - - 44 * + 24 * + 73 AS col0
----
385440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9605
SELECT ALL - + 12 + CAST( NULL AS SIGNED ) + - - 10 * 78 + + 71 * - 67 * - - 28 + - 20, 79 + CASE - 53 WHEN 37 THEN NULL ELSE - - 5 + - 28 * + - 76 * + - 20 + - 18 * + 89 + + - 34 * AVG ( ALL CAST( NULL AS SIGNED ) ) END / 33 - + COUNT( DISTINCT + 52 ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9605
SELECT ALL - + 12 + CAST ( NULL AS INTEGER ) + - - 10 * 78 + + 71 * - 67 * - - 28 + - 20, 79 + CASE - 53 WHEN 37 THEN NULL ELSE - - 5 + - 28 * + - 76 * + - 20 + - 18 * + 89 + + - 34 * AVG ( ALL CAST ( NULL AS INTEGER ) ) END / 33 - + COUNT ( DISTINCT + 52 ) AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9606
SELECT COUNT( * ) + - NULLIF ( + - 4, - CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9606
SELECT COUNT ( * ) + - NULLIF ( + - 4, - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9607
SELECT + MAX( DISTINCT 77 ) - + + 13, CAST( - - 94 AS SIGNED ) col0
----
64
94

skipif mysql # not compatible
query II rowsort label-9607
SELECT + MAX ( DISTINCT 77 ) - + + 13, CAST ( - - 94 AS INTEGER ) col0
----
64
94

query II rowsort
SELECT + - 65 AS col1, + 2 - 51 col0
----
-65
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9609
SELECT 96 * + ( - COUNT( * ) ), - CAST( - 17 AS SIGNED ) AS col2
----
-96
17

skipif mysql # not compatible
query II rowsort label-9609
SELECT 96 * + ( - COUNT ( * ) ), - CAST ( - 17 AS INTEGER ) AS col2
----
-96
17

query II rowsort
SELECT ALL - 55, + 68 AS col1
----
-55
68

query I rowsort
SELECT + ( 25 ) + 29 + 47
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9612
SELECT + COUNT( - + 11 ) * CASE + COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN + COUNT( * ) END * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-9612
SELECT + COUNT ( - + 11 ) * CASE + COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) END * 70
----
NULL

query II rowsort
SELECT DISTINCT - - 55, + 67 AS col2
----
55
67

query II rowsort
SELECT DISTINCT - 16 col1, - 85 AS col0
----
-16
-85

query I rowsort
SELECT ALL - 6 + 81
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9616
SELECT ALL + ( - + 60 ) * + - ( - ( + 18 ) ) * + 42 + - + 42 - CASE - 89 WHEN - + 65 * ( - ( + 66 ) ) * - - 41 + + - 45 * - - AVG ( ALL - - CAST( NULL AS DECIMAL ) ) * + 16 - 14 THEN 87 END / + - 87 * - CASE 48 WHEN CAST( NULL AS SIGNED ) THEN + + ( COUNT( * ) ) WHEN + 69 THEN 7 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL + ( - + 60 ) * + - ( - ( + 18 ) ) * + 42 + - + 42 - CASE - 89 WHEN - + 65 * ( - ( + 66 ) ) * - - 41 + + - 45 * - - AVG ( ALL - - CAST ( NULL AS REAL ) ) * + 16 - 14 THEN 87 END / + - 87 * - CASE 48 WHEN CAST ( NULL AS INTEGER ) THEN + + ( COUNT ( * ) ) WHEN + 69 THEN 7 END AS col2
----
NULL

query I rowsort
SELECT - 47 + 78
----
31

query I rowsort
SELECT ALL - 20 - - 66 col0
----
46

onlyif mysql # aggregate syntax: 
query III rowsort label-9619
SELECT ALL 86 * - 19 * + COUNT( * ) AS col2, 77 AS col1, 30 + + 81 + + - 97
----
-1634
77
14

skipif mysql # not compatible
query III rowsort label-9619
SELECT ALL 86 * - 19 * + COUNT ( * ) AS col2, 77 AS col1, 30 + + 81 + + - 97
----
-1634
77
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9620
SELECT + 34 AS col0, - 97 * CASE 16 WHEN - 65 THEN NULL WHEN 49 * + 99 THEN NULL WHEN - 69 * - 36 + CAST( NULL AS SIGNED ) THEN NULL ELSE 0 * - - 72 END
----
34
0

skipif mysql # not compatible
query II rowsort label-9620
SELECT + 34 AS col0, - 97 * CASE 16 WHEN - 65 THEN NULL WHEN 49 * + 99 THEN NULL WHEN - 69 * - 36 + CAST ( NULL AS INTEGER ) THEN NULL ELSE 0 * - - 72 END
----
34
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9621
SELECT + + 30 * - 15 + - 20 + - COUNT( * ) * + + NULLIF ( + - 32, - + 8 - 73 ) * - + 10 * + 50 * - + 28 AS col2, - 21 AS col0
----
447530
-21

skipif mysql # not compatible
query II rowsort label-9621
SELECT + + 30 * - 15 + - 20 + - COUNT ( * ) * + + NULLIF ( + - 32, - + 8 - 73 ) * - + 10 * + 50 * - + 28 AS col2, - 21 AS col0
----
447530
-21

query I rowsort
SELECT 55 + - 17
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9623
SELECT - 13 + CAST( NULL AS SIGNED ) - + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-9623
SELECT - 13 + CAST ( NULL AS INTEGER ) - + 49
----
NULL

query I rowsort
SELECT 44 * + + 69 * + 94
----
285384

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT - MAX( - 90 )
----
90

skipif mysql # not compatible
query I rowsort label-9625
SELECT - MAX ( - 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT - COUNT( * ) + - CASE + - 14 WHEN 37 / - 6 * - - 5 THEN NULL WHEN - 18 THEN NULL ELSE NULLIF ( + + 67, + - 82 / + 53 ) END - ( - + 23 ) * + MIN( DISTINCT - 83 )
----
-1977

skipif mysql # not compatible
query I rowsort label-9626
SELECT - COUNT ( * ) + - CASE + - 14 WHEN 37 / - 6 * - - 5 THEN NULL WHEN - 18 THEN NULL ELSE NULLIF ( + + 67, + - 82 / + 53 ) END - ( - + 23 ) * + MIN ( DISTINCT - 83 )
----
-1977

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9627
SELECT + CAST( + + CASE - 43 WHEN - 76 THEN + 51 WHEN + + 98 THEN NULL ELSE ( - 4 ) * - CASE 22 WHEN + 37 THEN NULL WHEN - 35 THEN SUM( DISTINCT 80 ) END END AS DECIMAL ) + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9627
SELECT + CAST ( + + CASE - 43 WHEN - 76 THEN + 51 WHEN + + 98 THEN NULL ELSE ( - 4 ) * - CASE 22 WHEN + 37 THEN NULL WHEN - 35 THEN SUM ( DISTINCT 80 ) END END AS REAL ) + 99
----
NULL

query I rowsort
SELECT ALL - ( - - 81 ) AS col0
----
-81

query I rowsort
SELECT ( + 9 ) + - 64
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT SUM( 50 ) * + 54
----
2700

skipif mysql # not compatible
query I rowsort label-9630
SELECT SUM ( 50 ) * + 54
----
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT ( - SUM( - + ( - ( ( - + 17 ) ) ) ) ) + - - 57 col0
----
74

skipif mysql # not compatible
query I rowsort label-9631
SELECT ( - SUM ( - + ( - ( ( - + 17 ) ) ) ) ) + - - 57 col0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9632
SELECT ( 52 ) * - ( 33 ) + + 45 + + 21 + - + COALESCE ( - - 28, - - 51 * - 2 - - + 93 * 14 ) - - 36 - + COUNT( DISTINCT + 54 ) + 18 * + + COUNT( * ) DIV + 22 * - - 6 * - COUNT( * ) * + 20 AS col2
----
-1643

skipif mysql # not compatible
query I rowsort label-9632
SELECT ( 52 ) * - ( 33 ) + + 45 + + 21 + - + COALESCE ( - - 28, - - 51 * - 2 - - + 93 * 14 ) - - 36 - + COUNT ( DISTINCT + 54 ) + 18 * + + COUNT ( * ) / + 22 * - - 6 * - COUNT ( * ) * + 20 AS col2
----
-1643

query I rowsort
SELECT 11 + - 67
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT 17 * 9 * - + COUNT( * ) * 79
----
-12087

skipif mysql # not compatible
query I rowsort label-9634
SELECT 17 * 9 * - + COUNT ( * ) * 79
----
-12087

query I rowsort
SELECT ( 58 ) + - + 38
----
20

query II rowsort
SELECT 33 * 49 AS col1, 89 * - 26 + - 95 - + 83
----
1617
-2492

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT DISTINCT ( + + COUNT( * ) ) * - NULLIF ( + + 92, + 99 ) * - 82 + - 59 * + 83 / + + 61 + - - 84 + + ( - CASE + 32 WHEN + + ( 41 ) THEN - + COUNT( * ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT ( + + COUNT ( * ) ) * - NULLIF ( + + 92, + 99 ) * - 82 + - 59 * + 83 / + + 61 + - - 84 + + ( - CASE + 32 WHEN + + ( 41 ) THEN - + COUNT ( * ) END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT COUNT( * ) * - - NULLIF ( + 55, 78 + + MAX( ALL 49 ) ) * 61 * + + CASE + 8 WHEN COUNT( * ) THEN - ( + - SUM( 32 ) ) - + 50 WHEN - ( - + 51 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9638
SELECT COUNT ( * ) * - - NULLIF ( + 55, 78 + + MAX ( ALL 49 ) ) * 61 * + + CASE + 8 WHEN COUNT ( * ) THEN - ( + - SUM ( 32 ) ) - + 50 WHEN - ( - + 51 ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT 43 * + - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-9639
SELECT 43 * + - COUNT ( * )
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-9640
SELECT - 65 DIV - 62 + - 30 * - - 19 * + 64 * 3 AS col1
----
-109439

skipif mysql # not compatible
query I rowsort label-9640
SELECT - 65 / - 62 + - 30 * - - 19 * + 64 * 3 AS col1
----
-109439

query I rowsort
SELECT DISTINCT - 36 * 88
----
-3168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9642
SELECT - COUNT( * ) / SUM( ALL - 76 ) + - COUNT( * ) + + 40 + CAST( NULL AS SIGNED ) * MIN( 28 ) * - 65 + COUNT( * ) + + + 7 * 91 * 41 / + 21 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9642
SELECT - COUNT ( * ) / SUM ( ALL - 76 ) + - COUNT ( * ) + + 40 + CAST ( NULL AS INTEGER ) * MIN ( 28 ) * - 65 + COUNT ( * ) + + + 7 * 91 * 41 / + 21 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9643
SELECT DISTINCT ( - + 10 ) + + 92 * + 58 - 59 + 71 - 48 AS col2, CASE 49 WHEN + SUM( - + 45 ) THEN - COUNT( * ) * - COUNT( * ) + + - COUNT( * ) WHEN ( - 34 ) - - 40 + - COUNT( * ) THEN - 71 ELSE NULL END + + 49
----
5290
NULL

skipif mysql # not compatible
query II rowsort label-9643
SELECT DISTINCT ( - + 10 ) + + 92 * + 58 - 59 + 71 - 48 AS col2, CASE 49 WHEN + SUM ( - + 45 ) THEN - COUNT ( * ) * - COUNT ( * ) + + - COUNT ( * ) WHEN ( - 34 ) - - 40 + - COUNT ( * ) THEN - 71 ELSE NULL END + + 49
----
5290
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT ALL COUNT( * ) * - - 88
----
88

skipif mysql # not compatible
query I rowsort label-9644
SELECT ALL COUNT ( * ) * - - 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT DISTINCT MAX( ALL - 48 ) * + 71 AS col0
----
-3408

skipif mysql # not compatible
query I rowsort label-9645
SELECT DISTINCT MAX ( ALL - 48 ) * + 71 AS col0
----
-3408

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT ALL + SUM( 1 ) + 95 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL + SUM ( 1 ) + 95 AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9647
SELECT + 56 * + CAST( + MIN( ALL - 61 ) AS SIGNED ) + - 21 * - ( - + 71 ) AS col0
----
-4907

skipif mysql # not compatible
query I rowsort label-9647
SELECT + 56 * + CAST ( + MIN ( ALL - 61 ) AS INTEGER ) + - 21 * - ( - + 71 ) AS col0
----
-4907

onlyif mysql # aggregate syntax: 
query II rowsort label-9648
SELECT ALL - - 60 + + COUNT( * ) AS col1, - 30
----
61
-30

skipif mysql # not compatible
query II rowsort label-9648
SELECT ALL - - 60 + + COUNT ( * ) AS col1, - 30
----
61
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT COUNT( * ) + - + 23 + 75
----
53

skipif mysql # not compatible
query I rowsort label-9649
SELECT COUNT ( * ) + - + 23 + 75
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9650
SELECT DISTINCT + 57 + + + 39 + - CAST( + COUNT( * ) AS SIGNED ) + + 11 + + 84 + 83 * COUNT( * )
----
273

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT + 57 + + + 39 + - CAST ( + COUNT ( * ) AS INTEGER ) + + 11 + + 84 + 83 * COUNT ( * )
----
273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9651
SELECT + CAST( - 66 AS SIGNED ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-9651
SELECT + CAST ( - 66 AS INTEGER ) AS col1
----
-66

query I rowsort
SELECT DISTINCT + 77 - + + 81 AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9653
SELECT ALL + 66 DIV 14 + - 45
----
-41

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL + 66 / 14 + - 45
----
-41

query I rowsort
SELECT 69 * + - 17 * - + 74 - 3 * + - 52 * - - 15 col2
----
89142

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT ALL + - 5 * MAX( 95 )
----
-475

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL + - 5 * MAX ( 95 )
----
-475

query I rowsort
SELECT DISTINCT - - 43 - + 81 + 51 + - 84 - + 77 * 88 + + - 83 + 91 + - - 12 * - 33 * - 25 * + 13 + - - 12 AS col2
----
121873

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT - - COUNT( + 65 )
----
1

skipif mysql # not compatible
query I rowsort label-9657
SELECT - - COUNT ( + 65 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT + NULLIF ( + ( - + 60 ), + - 40 + 26 - - - ( - - 63 ) / MAX( ALL - 56 ) ) * - MAX( DISTINCT + 42 )
----
2520

skipif mysql # not compatible
query I rowsort label-9658
SELECT + NULLIF ( + ( - + 60 ), + - 40 + 26 - - - ( - - 63 ) / MAX ( ALL - 56 ) ) * - MAX ( DISTINCT + 42 )
----
2520

query I rowsort
SELECT DISTINCT + 81 - + ( + - 10 )
----
91

query II rowsort
SELECT ALL 59 AS col0, - 45 AS col2
----
59
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT ALL MAX( 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL MAX ( 98 ) AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9662
SELECT DISTINCT CASE - + COUNT( * ) WHEN - 53 * 60 + + - 86 + + COUNT( * ) THEN + + CAST( NULL AS SIGNED ) + - 33 END * - - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT DISTINCT CASE - + COUNT ( * ) WHEN - 53 * 60 + + - 86 + + COUNT ( * ) THEN + + CAST ( NULL AS INTEGER ) + - 33 END * - - 32 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT DISTINCT MIN( DISTINCT + - 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT MIN ( DISTINCT + - 17 ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT NULLIF ( - 84, - 68 ) * NULLIF ( + + COUNT( * ), + 74 / MAX( + + 34 ) ) + + 39
----
-45

skipif mysql # not compatible
query I rowsort label-9664
SELECT NULLIF ( - 84, - 68 ) * NULLIF ( + + COUNT ( * ), + 74 / MAX ( + + 34 ) ) + + 39
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT ALL 77 + - + COUNT( * ) * + 80 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL 77 + - + COUNT ( * ) * + 80 AS col0
----
-3

query I rowsort
SELECT 92 + - 14 * - 75 * + + 13 AS col0
----
13742

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9667
SELECT - 28 AS col0, + CAST( NULL AS SIGNED ) col1
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-9667
SELECT - 28 AS col0, + CAST ( NULL AS INTEGER ) col1
----
-28
NULL

query I rowsort
SELECT 33 + + 23 AS col0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9669
SELECT ALL ( - 85 ) + 48 - - COALESCE ( + - 26, - 73, - 12 DIV ( + + COUNT( * ) ) )
----
-63

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL ( - 85 ) + 48 - - COALESCE ( + - 26, - 73, - 12 / ( + + COUNT ( * ) ) )
----
-63

query I rowsort
SELECT DISTINCT + 40 * + 98
----
3920

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT ALL MIN( - 31 ) + + 53 / + 69 + + 40 + - + 17 * + ( CASE + + 72 WHEN + + 70 THEN NULL WHEN - 17 * 66 + - + COUNT( * ) THEN - - 58 + 68 + 83 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL MIN ( - 31 ) + + 53 / + 69 + + 40 + - + 17 * + ( CASE + + 72 WHEN + + 70 THEN NULL WHEN - 17 * 66 + - + COUNT ( * ) THEN - - 58 + 68 + 83 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9672
SELECT ALL CAST( NULL AS SIGNED ) + 32 + + ( + + 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL CAST ( NULL AS INTEGER ) + 32 + + ( + + 31 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT DISTINCT SUM( + ( 81 ) ) + + - 38
----
43

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT SUM ( + ( 81 ) ) + + - 38
----
43

query I rowsort
SELECT + 5 - + 71 AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT + 34 - + 37 + + COUNT( * ) + + 0 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9675
SELECT + 34 - + 37 + + COUNT ( * ) + + 0 AS col0
----
-2

query I rowsort
SELECT + 93 * + - 79
----
-7347

onlyif mysql # DIV for integer division: 
query I rowsort label-9677
SELECT + 10 DIV + 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9677
SELECT + 10 / + 82 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9678
SELECT + + 89 AS col0, NULLIF ( - COUNT( * ), - ( - + 23 ) * + 24 * - 4 + - 9 + - - 45 ) col2
----
89
-1

skipif mysql # not compatible
query II rowsort label-9678
SELECT + + 89 AS col0, NULLIF ( - COUNT ( * ), - ( - + 23 ) * + 24 * - 4 + - 9 + - - 45 ) col2
----
89
-1

query I rowsort
SELECT - 35 * 61 * 92 AS col1
----
-196420

query I rowsort
SELECT - + 61 * - 55
----
3355

query II rowsort
SELECT DISTINCT + 97 * - + ( + 18 ) AS col0, 70 AS col1
----
-1746
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9682
SELECT ALL 33 * 71 - + + 94 AS col1, CAST( NULL AS SIGNED ) AS col0
----
2249
NULL

skipif mysql # not compatible
query II rowsort label-9682
SELECT ALL 33 * 71 - + + 94 AS col1, CAST ( NULL AS INTEGER ) AS col0
----
2249
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9683
SELECT + 88 - 65 + - ( + + 98 ) + COUNT( * ) - - CASE - SUM( DISTINCT + + 94 ) WHEN - + 69 THEN COALESCE ( - COUNT( * ), + 89 * + + 53 ) WHEN + 0 * - 34 THEN NULL ELSE + ( MAX( + 56 ) ) * + 7 * + 77 * MAX( 67 ) END DIV + 37
----
54583

skipif mysql # not compatible
query I rowsort label-9683
SELECT + 88 - 65 + - ( + + 98 ) + COUNT ( * ) - - CASE - SUM ( DISTINCT + + 94 ) WHEN - + 69 THEN COALESCE ( - COUNT ( * ), + 89 * + + 53 ) WHEN + 0 * - 34 THEN NULL ELSE + ( MAX ( + 56 ) ) * + 7 * + 77 * MAX ( 67 ) END / + 37
----
54583

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT + + 59 - - MIN( 16 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-9684
SELECT + + 59 - - MIN ( 16 ) AS col2
----
75

query II rowsort
SELECT DISTINCT + - 20 * 85 * + 87 col2, - 10 * 80
----
-147900
-800

query I rowsort
SELECT DISTINCT 81 * 48 col2
----
3888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9687
SELECT ALL + COALESCE ( + 88, + 76 DIV + + 2 * + + 98 ) * COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL + COALESCE ( + 88, + 76 / + + 2 * + + 98 ) * COUNT ( * )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT - COUNT( * ) * - - 28 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-9688
SELECT - COUNT ( * ) * - - 28 AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9689
SELECT + COALESCE ( - CAST( NULL AS SIGNED ), - + 68, + + 21 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-9689
SELECT + COALESCE ( - CAST ( NULL AS INTEGER ), - + 68, + + 21 ) AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9690
SELECT COUNT( * ) * - CAST( - 20 AS SIGNED ) + 93 * 58 + + 73 - - CASE 54 WHEN 8 + + COUNT( * ) THEN - 34 ELSE 24 END
----
5511

skipif mysql # not compatible
query I rowsort label-9690
SELECT COUNT ( * ) * - CAST ( - 20 AS INTEGER ) + 93 * 58 + + 73 - - CASE 54 WHEN 8 + + COUNT ( * ) THEN - 34 ELSE 24 END
----
5511

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9691
SELECT - AVG ( - CAST( NULL AS SIGNED ) ) - + CAST( NULL AS SIGNED ) AS col2, 17 - + 97 AS col0
----
NULL
-80

skipif mysql # not compatible
query II rowsort label-9691
SELECT - AVG ( - CAST ( NULL AS INTEGER ) ) - + CAST ( NULL AS INTEGER ) AS col2, 17 - + 97 AS col0
----
NULL
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-9692
SELECT ALL + + COUNT( * ) AS col1, - 40
----
1
-40

skipif mysql # not compatible
query II rowsort label-9692
SELECT ALL + + COUNT ( * ) AS col1, - 40
----
1
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9693
SELECT ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9693
SELECT ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9694
SELECT ALL + - 48 AS col0, - 75 + - - COUNT( * ) + 41
----
-48
-33

skipif mysql # not compatible
query II rowsort label-9694
SELECT ALL + - 48 AS col0, - 75 + - - COUNT ( * ) + 41
----
-48
-33

query I rowsort
SELECT ALL + COALESCE ( + 82, + 70 - - 48 * + - 28 + - 12 ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT - - 82 + COALESCE ( ( + + 18 ), + 30, 21 - + 94 ) + COUNT( * ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-9696
SELECT - - 82 + COALESCE ( ( + + 18 ), + 30, 21 - + 94 ) + COUNT ( * ) AS col1
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9697
SELECT DISTINCT - 44 DIV COALESCE ( - + 38, + 4 * + AVG ( + ( + 9 ) ) * COUNT( * ) * + 72 + + CASE WHEN NOT COALESCE ( 70, 97 * - 16, + COUNT( * ) * - - 67 ) IS NULL THEN + 64 + + 29 ELSE NULL END * CASE - COALESCE ( 87, 70 * 8 + - 77 * - 90 ) WHEN 84 * + 3 + 96 - - - 97 THEN NULL WHEN + 60 * COUNT( * ) + - + 79 + - + 84 THEN - 51 * + 40 * ( COUNT( * ) ) END * + 11 + 36 * 86 - 42 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT - 44 / COALESCE ( - + 38, + 4 * + AVG ( + ( + 9 ) ) * COUNT ( * ) * + 72 + + CASE WHEN NOT COALESCE ( 70, 97 * - 16, + COUNT ( * ) * - - 67 ) IS NULL THEN + 64 + + 29 ELSE NULL END * CASE - COALESCE ( 87, 70 * 8 + - 77 * - 90 ) WHEN 84 * + 3 + 96 - - - 97 THEN NULL WHEN + 60 * COUNT ( * ) + - + 79 + - + 84 THEN - 51 * + 40 * ( COUNT ( * ) ) END * + 11 + 36 * 86 - 42 ) AS col2
----
1

query I rowsort
SELECT ALL ( - + 29 )
----
-29

query II rowsort
SELECT ALL - 26 + - 43 col0, + 80 AS col0
----
-69
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT ALL + ( + 15 ) * - + COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL + ( + 15 ) * - + COUNT ( * ) AS col1
----
-15

query I rowsort
SELECT - 59 * - COALESCE ( - ( - COALESCE ( + 12, + 31 ) ), 33, 84 * 41 )
----
708

query I rowsort
SELECT + 65 + - 45 + ( 47 ) - + + 91
----
-24

query II rowsort
SELECT - 26, 35 * - + 46 AS col0
----
-26
-1610

onlyif mysql # DIV for integer division: 
query I rowsort label-9704
SELECT + 83 DIV + 76 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9704
SELECT + 83 / + 76 AS col0
----
1

query I rowsort
SELECT DISTINCT - ( 42 ) + - + 36 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT ALL COUNT( * ) + + - 23 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL COUNT ( * ) + + - 23 AS col2
----
-22

query I rowsort
SELECT ALL 17 * + + 84 AS col0
----
1428

onlyif mysql # aggregate syntax: 
query II rowsort label-9708
SELECT DISTINCT 43, MAX( ALL + 7 ) AS col0
----
43
7

skipif mysql # not compatible
query II rowsort label-9708
SELECT DISTINCT 43, MAX ( ALL + 7 ) AS col0
----
43
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT - 11 + - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-9709
SELECT - 11 + - COUNT ( * )
----
-12

query I rowsort
SELECT - 70 * + 62 AS col1
----
-4340

onlyif mysql # aggregate syntax: 
query II rowsort label-9711
SELECT + 75 * - 29 col1, COUNT( 76 ) + + 32 * - - 3
----
-2175
97

skipif mysql # not compatible
query II rowsort label-9711
SELECT + 75 * - 29 col1, COUNT ( 76 ) + + 32 * - - 3
----
-2175
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL 81 * - 81 * + COUNT( * ) * 12
----
-78732

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL 81 * - 81 * + COUNT ( * ) * 12
----
-78732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9713
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 77
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9714
SELECT ALL - AVG ( DISTINCT CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL - AVG ( DISTINCT CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT + CASE - + COUNT( * ) WHEN - - NULLIF ( - + MIN( - 30 ), + 59 + + 45 ) - + 54 THEN + - 73 WHEN + - 2 THEN NULL ELSE MAX( - ( - - 72 ) ) END * + + 9 * + 64
----
-41472

skipif mysql # not compatible
query I rowsort label-9715
SELECT + CASE - + COUNT ( * ) WHEN - - NULLIF ( - + MIN ( - 30 ), + 59 + + 45 ) - + 54 THEN + - 73 WHEN + - 2 THEN NULL ELSE MAX ( - ( - - 72 ) ) END * + + 9 * + 64
----
-41472

onlyif mysql # DIV for integer division: 
query I rowsort label-9716
SELECT ( + 48 ) DIV - + 53 * 96 DIV 53 + + - 43
----
-43

skipif mysql # not compatible
query I rowsort label-9716
SELECT ( + 48 ) / - + 53 * 96 / 53 + + - 43
----
-43

query I rowsort
SELECT ALL + + NULLIF ( + 17, + 55 )
----
17

query I rowsort
SELECT + + 13 + + - 30 + - 20 AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9719
SELECT ALL + CAST( SUM( - - 34 ) AS SIGNED ) col2
----
34

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL + CAST ( SUM ( - - 34 ) AS INTEGER ) col2
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9720
SELECT ALL - 44 DIV - 4 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL - 44 / - 4 AS col2
----
11

query II rowsort
SELECT + 41 AS col0, - 59
----
41
-59

query I rowsort
SELECT + - ( + - 40 )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9723
SELECT + - 89 * CAST( + 7 AS SIGNED ) + + - 23 + - 80 + + + 31 AS col1, + 89 * - 20 * + 53 AS col2, - 26 + - 70 - - + 65
----
-695
-94340
-31

skipif mysql # not compatible
query III rowsort label-9723
SELECT + - 89 * CAST ( + 7 AS INTEGER ) + + - 23 + - 80 + + + 31 AS col1, + 89 * - 20 * + 53 AS col2, - 26 + - 70 - - + 65
----
-695
-94340
-31

query I rowsort
SELECT + 80 * - + 52 AS col2
----
-4160

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT + COALESCE ( - COUNT( * ), 1, - 35 ) + - 52 col2
----
-53

skipif mysql # not compatible
query I rowsort label-9725
SELECT + COALESCE ( - COUNT ( * ), 1, - 35 ) + - 52 col2
----
-53

query I rowsort
SELECT ALL - 92 * 25 * - - 28
----
-64400

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT ALL + SUM( 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL + SUM ( 6 ) AS col2
----
6

query I rowsort
SELECT ALL - - 35 * - + 61 + 32 + 90 AS col0
----
-2013

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9729
SELECT + - ( CASE - - 97 WHEN + SUM( ALL - 14 ) THEN + - ( - + 9 ) DIV + 27 ELSE + 70 DIV + 42 + MIN( ALL + + 31 ) + CASE 44 WHEN 23 THEN NULL ELSE - 76 END + + 4 END )
----
40

skipif mysql # not compatible
query I rowsort label-9729
SELECT + - ( CASE - - 97 WHEN + SUM ( ALL - 14 ) THEN + - ( - + 9 ) / + 27 ELSE + 70 / + 42 + MIN ( ALL + + 31 ) + CASE 44 WHEN 23 THEN NULL ELSE - 76 END + + 4 END )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9730
SELECT + 17 * + CAST( NULL AS SIGNED ) - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9730
SELECT + 17 * + CAST ( NULL AS INTEGER ) - 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT COALESCE ( + 28, + 88 * - MIN( + 76 ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9731
SELECT COALESCE ( + 28, + 88 * - MIN ( + 76 ) ) AS col0
----
28

query I rowsort
SELECT - 72 * + 64 * 44
----
-202752

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9733
SELECT ALL + 88 * 54 * + 58 * + NULLIF ( - 25, + AVG ( + - CAST( NULL AS DECIMAL ) ) ) + + + 67
----
-6890333

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL + 88 * 54 * + 58 * + NULLIF ( - 25, + AVG ( + - CAST ( NULL AS REAL ) ) ) + + + 67
----
-6890333

query I rowsort
SELECT COALESCE ( + + 2, + 80 )
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-9735
SELECT + 36 DIV - - 54 AS col2, 94 - + 44 - + 26 * 83 + - - 71 AS col1
----
0
-2037

skipif mysql # not compatible
query II rowsort label-9735
SELECT + 36 / - - 54 AS col2, 94 - + 44 - + 26 * 83 + - - 71 AS col1
----
0
-2037

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT ALL - ( + - 89 ) * 52 + + + MAX( 41 ) AS col2
----
4669

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL - ( + - 89 ) * 52 + + + MAX ( 41 ) AS col2
----
4669

query I rowsort
SELECT 33 + 26 * 14
----
397

query I rowsort
SELECT DISTINCT ( + 69 ) + - 80 * - 55 + - 63
----
4406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9739
SELECT ALL 12 + + 38 + + CAST( NULL AS SIGNED ) + + ( 15 ) / + 40 + + 64 + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL 12 + + 38 + + CAST ( NULL AS INTEGER ) + + ( 15 ) / + 40 + + 64 + 87
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9740
SELECT DISTINCT - SUM( ALL - CASE + - ( + - 97 ) WHEN - ( - + CAST( NULL AS SIGNED ) ) THEN + 88 END ) * - MIN( DISTINCT - 33 ) / + 43 - - + ( + 28 ) + ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT - SUM ( ALL - CASE + - ( + - 97 ) WHEN - ( - + CAST ( NULL AS INTEGER ) ) THEN + 88 END ) * - MIN ( DISTINCT - 33 ) / + 43 - - + ( + 28 ) + ( - COUNT ( * ) )
----
NULL

query I rowsort
SELECT 26 + + 45 col2
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9742
SELECT 68 + - - ( 99 ) + + ( - - 57 ) DIV + ( + 45 ) + - MIN( ALL - + NULLIF ( 2, + + 68 ) )
----
170

skipif mysql # not compatible
query I rowsort label-9742
SELECT 68 + - - ( 99 ) + + ( - - 57 ) / + ( + 45 ) + - MIN ( ALL - + NULLIF ( 2, + + 68 ) )
----
170

query I rowsort
SELECT DISTINCT - 50 - - + 73 * + + 44
----
3162

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT ALL + 33 - + + ( COALESCE ( 85, + 58 + - COUNT( * ) ) ) + + SUM( ALL - - COALESCE ( + + 87, - 55 ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL + 33 - + + ( COALESCE ( 85, + 58 + - COUNT ( * ) ) ) + + SUM ( ALL - - COALESCE ( + + 87, - 55 ) ) AS col1
----
35

onlyif mysql # DIV for integer division: 
query II rowsort label-9745
SELECT + 61 DIV 93, COALESCE ( 72, + 29 ) * 98 AS col2
----
0
7056

skipif mysql # not compatible
query II rowsort label-9745
SELECT + 61 / 93, COALESCE ( 72, + 29 ) * 98 AS col2
----
0
7056

query I rowsort
SELECT ( + 75 ) * + - 49 + - + 80 + - 39 * + ( - 80 ) * + 33
----
99205

query I rowsort
SELECT + 88 + - 55 + 13
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9748
SELECT 44 * - COUNT( * ) col0, - 46 AS col0
----
-44
-46

skipif mysql # not compatible
query II rowsort label-9748
SELECT 44 * - COUNT ( * ) col0, - 46 AS col0
----
-44
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9749
SELECT - 11 * + 55 * + - NULLIF ( - CAST( NULL AS SIGNED ), ( 31 ) * 83 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9749
SELECT - 11 * + 55 * + - NULLIF ( - CAST ( NULL AS INTEGER ), ( 31 ) * 83 ) AS col1
----
NULL

query I rowsort
SELECT + - 75 col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT - CASE - 51 WHEN - SUM( ALL 35 ) + + 84 - - - 89 THEN + 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9751
SELECT - CASE - 51 WHEN - SUM ( ALL 35 ) + + 84 - - - 89 THEN + 87 END
----
NULL

query II rowsort
SELECT ALL - - ( 22 ) AS col0, 23 * - 59 + - ( 11 ) * + 25 AS col1
----
22
-1632

onlyif mysql # aggregate syntax: 
query II rowsort label-9753
SELECT ALL COUNT( * ) + + 25, 6 + 48 + - SUM( ALL + 49 ) AS col2
----
26
5

skipif mysql # not compatible
query II rowsort label-9753
SELECT ALL COUNT ( * ) + + 25, 6 + 48 + - SUM ( ALL + 49 ) AS col2
----
26
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9754
SELECT - CAST( NULL AS SIGNED ) * - 10 col0, + COUNT( ALL + CAST( NULL AS SIGNED ) ) * + NULLIF ( + - 22, + + 89 * 70 )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9754
SELECT - CAST ( NULL AS INTEGER ) * - 10 col0, + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * + NULLIF ( + - 22, + + 89 * 70 )
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT 24 + ( + COUNT( * ) ) + - COUNT( * ) + - ( - 85 ) * - 93 * - + 59
----
466419

skipif mysql # not compatible
query I rowsort label-9755
SELECT 24 + ( + COUNT ( * ) ) + - COUNT ( * ) + - ( - 85 ) * - 93 * - + 59
----
466419

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT ALL 10 + COUNT( * ) + - 77 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL 10 + COUNT ( * ) + - 77 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT 99 * + - COUNT( * ) + - 94
----
-193

skipif mysql # not compatible
query I rowsort label-9757
SELECT 99 * + - COUNT ( * ) + - 94
----
-193

query I rowsort
SELECT 63 * + - 21 - - 49
----
-1274

query I rowsort
SELECT ALL 72 + - 21
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9760
SELECT + 13, + COUNT( * ) AS col1
----
13
1

skipif mysql # not compatible
query II rowsort label-9760
SELECT + 13, + COUNT ( * ) AS col1
----
13
1

query II rowsort
SELECT DISTINCT - 43 AS col0, 96 AS col1
----
-43
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9762
SELECT DISTINCT ( - + 97 ) * - ( - COUNT( DISTINCT 22 ) ) * - ( + 94 ) + + - COUNT( ( - 40 ) ) + + + 17 - + 69 DIV COUNT( + - 46 ) AS col2
----
9065

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT ( - + 97 ) * - ( - COUNT ( DISTINCT 22 ) ) * - ( + 94 ) + + - COUNT ( ( - 40 ) ) + + + 17 - + 69 / COUNT ( + - 46 ) AS col2
----
9065

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT DISTINCT COUNT( + 6 ) + + 68
----
69

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT COUNT ( + 6 ) + + 68
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-9764
SELECT ALL 41 * - - 34 * + + 65, CASE ( 21 ) WHEN + + 70 * - 81 + MIN( - 65 ) THEN 72 WHEN + 74 * 28 THEN + COUNT( * ) + 66 WHEN + 54 + - 73 THEN + 24 + 15 + ( - MIN( + 10 ) ) * + CASE + COUNT( * ) WHEN - ( - + 52 ) THEN 10 WHEN + + 46 THEN NULL ELSE - 37 END END AS col2
----
90610
NULL

skipif mysql # not compatible
query II rowsort label-9764
SELECT ALL 41 * - - 34 * + + 65, CASE ( 21 ) WHEN + + 70 * - 81 + MIN ( - 65 ) THEN 72 WHEN + 74 * 28 THEN + COUNT ( * ) + 66 WHEN + 54 + - 73 THEN + 24 + 15 + ( - MIN ( + 10 ) ) * + CASE + COUNT ( * ) WHEN - ( - + 52 ) THEN 10 WHEN + + 46 THEN NULL ELSE - 37 END END AS col2
----
90610
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT ALL COALESCE ( - 29, - COUNT( * ) ) - + - 87 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL COALESCE ( - 29, - COUNT ( * ) ) - + - 87 AS col2
----
58

query I rowsort
SELECT DISTINCT 71 * NULLIF ( + 21, 75 - + 58 ) AS col2
----
1491

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT COUNT( * ) + 80 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9767
SELECT COUNT ( * ) + 80 AS col1
----
81

query I rowsort
SELECT 17 * + 78
----
1326

onlyif mysql # aggregate syntax: 
query II rowsort label-9769
SELECT 5 AS col1, - COUNT( * ) * + + 23 * + MIN( ALL - 32 )
----
5
736

skipif mysql # not compatible
query II rowsort label-9769
SELECT 5 AS col1, - COUNT ( * ) * + + 23 * + MIN ( ALL - 32 )
----
5
736

query II rowsort
SELECT 75 AS col2, 40
----
75
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT 71 + - + COUNT( * ) + 50
----
120

skipif mysql # not compatible
query I rowsort label-9771
SELECT 71 + - + COUNT ( * ) + 50
----
120

query II rowsort
SELECT ALL 1, + 99 + - + 2 AS col2
----
1
97

query I rowsort
SELECT 58 + 31 col0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9774
SELECT ALL + - CAST( NULL AS SIGNED ) * - 89 + + 66 - + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL + - CAST ( NULL AS INTEGER ) * - 89 + + 66 - + 68
----
NULL

query I rowsort
SELECT DISTINCT - 49 * - + 52 * + + 87 AS col1
----
221676

query II rowsort
SELECT + COALESCE ( - 83, - - ( - 35 ) ) + - 89 * 4 AS col0, ( 28 )
----
-439
28

query I rowsort
SELECT ALL + - 46 * - 75 AS col0
----
3450

query I rowsort
SELECT + 35 + + 9 - - ( 84 ) * 25 AS col0
----
2144

query I rowsort
SELECT ALL 31 + + + 77 AS col1
----
108

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9780
SELECT - 71 + + CAST( NULL AS DECIMAL ) + + 72 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9780
SELECT - 71 + + CAST ( NULL AS REAL ) + + 72 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9781
SELECT DISTINCT + + 21 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT + + 21 / + 50
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9782
SELECT ALL - COALESCE ( + 43, - ( 55 ), 88 + + 19 ) * MIN( ALL - - 25 ) + + - COUNT( * ) DIV + + NULLIF ( - - 28, AVG ( + + 83 ) + - + 90 + - COUNT( * ) ) + - 43 AS col1
----
-1118

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL - COALESCE ( + 43, - ( 55 ), 88 + + 19 ) * MIN ( ALL - - 25 ) + + - COUNT ( * ) / + + NULLIF ( - - 28, AVG ( + + 83 ) + - + 90 + - COUNT ( * ) ) + - 43 AS col1
----
-1118

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT ALL - 94 * - - MAX( DISTINCT - + 66 ) + - ( + + 73 )
----
6131

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL - 94 * - - MAX ( DISTINCT - + 66 ) + - ( + + 73 )
----
6131

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9784
SELECT 59 + + + 82 DIV 46, 59 - - - SUM( DISTINCT + NULLIF ( - 71, + - 44 ) ) + - - 76 AS col0
----
60
206

skipif mysql # not compatible
query II rowsort label-9784
SELECT 59 + + + 82 / 46, 59 - - - SUM ( DISTINCT + NULLIF ( - 71, + - 44 ) ) + - - 76 AS col0
----
60
206

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT ALL - COUNT( * ) * 16 + CASE NULLIF ( - 64, + 13 ) WHEN + + 77 THEN NULL ELSE - 11 END AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL - COUNT ( * ) * 16 + CASE NULLIF ( - 64, + 13 ) WHEN + + 77 THEN NULL ELSE - 11 END AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT + 51 * - ( + - COUNT( * ) ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-9786
SELECT + 51 * - ( + - COUNT ( * ) ) AS col2
----
51

query II rowsort
SELECT + - 51, 56 * - 67 AS col1
----
-51
-3752

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT + 78 * + SUM( ALL 52 ) AS col0
----
4056

skipif mysql # not compatible
query I rowsort label-9788
SELECT + 78 * + SUM ( ALL 52 ) AS col0
----
4056

query I rowsort
SELECT 28 + - 92
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9790
SELECT ALL + 34 * - - 42 + 43 + - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) * 62 + - NULLIF ( - - 86, - 93 ), - CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9790
SELECT ALL + 34 * - - 42 + 43 + - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 62 + - NULLIF ( - - 86, - 93 ), - CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9791
SELECT DISTINCT + COUNT( * ) * + 70, - 81 * + 69 AS col0
----
70
-5589

skipif mysql # not compatible
query II rowsort label-9791
SELECT DISTINCT + COUNT ( * ) * + 70, - 81 * + 69 AS col0
----
70
-5589

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT DISTINCT COALESCE ( COUNT( * ), - - 45 * 1 ) * - COUNT( 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-9792
SELECT DISTINCT COALESCE ( COUNT ( * ), - - 45 * 1 ) * - COUNT ( 72 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9793
SELECT DISTINCT + COUNT( * ) * COUNT( * ) * - 34 - 2 DIV - 33 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) * - 34 - 2 / - 33 AS col2
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-9794
SELECT ALL + 95 * 30 DIV + ( - 64 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL + 95 * 30 / + ( - 64 ) AS col0
----
-44

query I rowsort
SELECT DISTINCT 59 - + - 65 * - - 51
----
3374

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9796
SELECT - 77 * - COALESCE ( 83, + NULLIF ( 98, + - 10 * + 99 ) * 9 - - COALESCE ( - - 90, ( - CAST( - 9 AS SIGNED ) ) ) ) * 24 * + 35 col2
----
5368440

skipif mysql # not compatible
query I rowsort label-9796
SELECT - 77 * - COALESCE ( 83, + NULLIF ( 98, + - 10 * + 99 ) * 9 - - COALESCE ( - - 90, ( - CAST ( - 9 AS INTEGER ) ) ) ) * 24 * + 35 col2
----
5368440

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT + MIN( ALL 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9797
SELECT + MIN ( ALL 38 ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-9798
SELECT - SUM( DISTINCT 48 ) * COUNT( * ) - + COUNT( * ) * 74 - 4 * - 18 AS col0, 26 * - - 49 AS col1
----
-50
1274

skipif mysql # not compatible
query II rowsort label-9798
SELECT - SUM ( DISTINCT 48 ) * COUNT ( * ) - + COUNT ( * ) * 74 - 4 * - 18 AS col0, 26 * - - 49 AS col1
----
-50
1274

query I rowsort
SELECT - 70 - + 15 * - 15 AS col0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT + 76 * ( - MIN( + - 26 ) ) * - 32
----
-63232

skipif mysql # not compatible
query I rowsort label-9800
SELECT + 76 * ( - MIN ( + - 26 ) ) * - 32
----
-63232

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT ALL COALESCE ( - MIN( 17 ), + 54 - + - 40 + + ( - 50 ) ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL COALESCE ( - MIN ( 17 ), + 54 - + - 40 + + ( - 50 ) ) AS col0
----
-17

query I rowsort
SELECT + 40 * - ( + + COALESCE ( - 44, - NULLIF ( + 57, + ( - + 21 ) ) ) )
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT + 32 * + 48 - - COUNT( * )
----
1537

skipif mysql # not compatible
query I rowsort label-9803
SELECT + 32 * + 48 - - COUNT ( * )
----
1537

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9804
SELECT - COALESCE ( - - 15, + COUNT( * ) DIV + 0, - 60 DIV 40 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-9804
SELECT - COALESCE ( - - 15, + COUNT ( * ) / + 0, - 60 / 40 ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT ALL MIN( 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL MIN ( 77 ) AS col1
----
77

query I rowsort
SELECT ALL + 20 * - 36
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT + - 56 + + + COUNT( * ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-9807
SELECT + - 56 + + + COUNT ( * ) col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT DISTINCT + CASE - 87 WHEN + + COUNT( * ) THEN - 84 * - MAX( 98 ) - + 64 WHEN - - ( + - 24 ) + - 93 THEN NULL END + 97 + - - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9808
SELECT DISTINCT + CASE - 87 WHEN + + COUNT ( * ) THEN - 84 * - MAX ( 98 ) - + 64 WHEN - - ( + - 24 ) + - 93 THEN NULL END + 97 + - - 24 AS col1
----
NULL

query I rowsort
SELECT + + 81 + + 77 AS col1
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9810
SELECT - + CAST( + 6 AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-9810
SELECT - + CAST ( + 6 AS INTEGER )
----
-6

query II rowsort
SELECT - 2 + 55 AS col2, ( + 8 )
----
53
8

query I rowsort
SELECT DISTINCT + ( - 54 ) + + 12 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL + COUNT( * ) + 13 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL + COUNT ( * ) + 13 AS col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9814
SELECT + - CASE - - COUNT( * ) WHEN - + 98 - COUNT( * ) * + + COUNT( * ) + + + CAST( + ( - 90 ) AS DECIMAL ) - - 21 THEN COUNT( * ) * - SUM( ALL - COALESCE ( 45, - CAST( NULL AS SIGNED ) ) ) + - + 9 END * COUNT( ALL + 17 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9814
SELECT + - CASE - - COUNT ( * ) WHEN - + 98 - COUNT ( * ) * + + COUNT ( * ) + + + CAST ( + ( - 90 ) AS REAL ) - - 21 THEN COUNT ( * ) * - SUM ( ALL - COALESCE ( 45, - CAST ( NULL AS INTEGER ) ) ) + - + 9 END * COUNT ( ALL + 17 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9815
SELECT DISTINCT + 71 + - 17 col0, + CAST( - + 41 AS SIGNED ) col2
----
54
-41

skipif mysql # not compatible
query II rowsort label-9815
SELECT DISTINCT + 71 + - 17 col0, + CAST ( - + 41 AS INTEGER ) col2
----
54
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9816
SELECT DISTINCT - 13 + - + 14 + - + CAST( - 81 AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-9816
SELECT DISTINCT - 13 + - + 14 + - + CAST ( - 81 AS INTEGER )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT ALL + 44 + - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL + 44 + - COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9818
SELECT CASE + 82 WHEN + 45 / + 27 + - 60 THEN NULL WHEN + - COUNT( * ) + + + 88 / - 88 THEN - + 0 / 32 + 60 + - 18 END AS col2, - 95 AS col1
----
NULL
-95

skipif mysql # not compatible
query II rowsort label-9818
SELECT CASE + 82 WHEN + 45 / + 27 + - 60 THEN NULL WHEN + - COUNT ( * ) + + + 88 / - 88 THEN - + 0 / 32 + 60 + - 18 END AS col2, - 95 AS col1
----
NULL
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9819
SELECT DISTINCT - CAST( + - MAX( DISTINCT - 13 ) AS SIGNED ) * - MAX( DISTINCT + + 11 )
----
143

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT - CAST ( + - MAX ( DISTINCT - 13 ) AS INTEGER ) * - MAX ( DISTINCT + + 11 )
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9820
SELECT - CAST( NULL AS SIGNED ) / + + 28 + + 89 * - 40 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9820
SELECT - CAST ( NULL AS INTEGER ) / + + 28 + + 89 * - 40 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 45 * + 81 * + 16 + + + 44
----
58364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9822
SELECT ALL - 36 DIV - MAX( ALL 38 )
----
0

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL - 36 / - MAX ( ALL 38 )
----
0

query I rowsort
SELECT 99 * - - 33 - 28 AS col0
----
3239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9824
SELECT ALL - NULLIF ( - 93, - + 27 ) * CASE - - 3 WHEN + - 86 * - - 62 - - + CAST( COUNT( * ) AS SIGNED ) THEN + 77 / - + 30 * - 88 END - + 89 * NULLIF ( - 29, - 4 ) + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL - NULLIF ( - 93, - + 27 ) * CASE - - 3 WHEN + - 86 * - - 62 - - + CAST ( COUNT ( * ) AS INTEGER ) THEN + 77 / - + 30 * - 88 END - + 89 * NULLIF ( - 29, - 4 ) + - 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT ALL + COUNT( + + 32 )
----
1

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL + COUNT ( + + 32 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT ALL + ( MAX( ALL - 80 ) ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL + ( MAX ( ALL - 80 ) ) AS col0
----
-80

query I rowsort
SELECT NULLIF ( - 71, - 26 )
----
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-9828
SELECT COALESCE ( 90, - 87 * 19, + + 82 DIV + - 88 * + 9 * 92 * - - 32 + + 40 ) AS col1, 75
----
90
75

skipif mysql # not compatible
query II rowsort label-9828
SELECT COALESCE ( 90, - 87 * 19, + + 82 / + - 88 * + 9 * 92 * - - 32 + + 40 ) AS col1, 75
----
90
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9829
SELECT - 3 * - 91 + 13 + - 29 * - - 8 * - COUNT( * ), - 92 AS col2
----
518
-92

skipif mysql # not compatible
query II rowsort label-9829
SELECT - 3 * - 91 + 13 + - 29 * - - 8 * - COUNT ( * ), - 92 AS col2
----
518
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT ALL + CAST( - 60 AS SIGNED ) * + 43 AS col1
----
-2580

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL + CAST ( - 60 AS INTEGER ) * + 43 AS col1
----
-2580

query I rowsort
SELECT 73 * - 2 + - ( - 57 ) + + 53 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-9832
SELECT COUNT( * ) * + 32 - + + 25 AS col0, 74 + + + 87 AS col0
----
7
161

skipif mysql # not compatible
query II rowsort label-9832
SELECT COUNT ( * ) * + 32 - + + 25 AS col0, 74 + + + 87 AS col0
----
7
161

query I rowsort
SELECT DISTINCT + 46 * + 57 col1
----
2622

query I rowsort
SELECT ALL + 73 * + 17 AS col2
----
1241

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT - 17 + + + MAX( ALL 3 )
----
-14

skipif mysql # not compatible
query I rowsort label-9835
SELECT - 17 + + + MAX ( ALL 3 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT ALL + MAX( + + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL + MAX ( + + 25 )
----
25

query I rowsort
SELECT DISTINCT + 46 * 58 AS col1
----
2668

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9838
SELECT + CAST( NULL AS SIGNED ) / - 59 * 32, - 35 AS col0
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-9838
SELECT + CAST ( NULL AS INTEGER ) / - 59 * 32, - 35 AS col0
----
NULL
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9839
SELECT ALL 15 * + - 46 * 99 + NULLIF ( - 76, + COUNT( * ) ) + - COUNT( * ) - 30 DIV - 74 - 87 AS col0
----
-68474

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL 15 * + - 46 * 99 + NULLIF ( - 76, + COUNT ( * ) ) + - COUNT ( * ) - 30 / - 74 - 87 AS col0
----
-68474

onlyif mysql # aggregate syntax: 
query II rowsort label-9840
SELECT - COUNT( * ) * COUNT( * ) - + 23, 25 AS col2
----
-24
25

skipif mysql # not compatible
query II rowsort label-9840
SELECT - COUNT ( * ) * COUNT ( * ) - + 23, 25 AS col2
----
-24
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT + 77 + + COALESCE ( 15, - COUNT( * ) ) col0
----
92

skipif mysql # not compatible
query I rowsort label-9841
SELECT + 77 + + COALESCE ( 15, - COUNT ( * ) ) col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT ALL NULLIF ( 39, + 79 * - 2 + - + 85 * + + 0 ) / - CASE + COALESCE ( + MAX( 35 ), - 32 ) WHEN - 5 THEN - 95 END * + - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL NULLIF ( 39, + 79 * - 2 + - + 85 * + + 0 ) / - CASE + COALESCE ( + MAX ( 35 ), - 32 ) WHEN - 5 THEN - 95 END * + - 27 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9843
SELECT - 17 DIV + 29
----
0

skipif mysql # not compatible
query I rowsort label-9843
SELECT - 17 / + 29
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9844
SELECT + + ( - - 80 ) DIV + 67 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9844
SELECT + + ( - - 80 ) / + 67 AS col1
----
1

query I rowsort
SELECT DISTINCT 65 * - 21 AS col2
----
-1365

query I rowsort
SELECT ALL - 55 + - - 7 AS col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9847
SELECT DISTINCT + - 50 + 62 + 70 + - + CASE 41 WHEN + COUNT( * ) * + 71 - 94 / 19 THEN + - 93 WHEN 80 + 86 THEN + 43 WHEN - 83 THEN - 93 ELSE MAX( - - ( 1 ) ) + - CAST( + CASE 18 WHEN ( + - 45 ) THEN + 80 WHEN - 83 + 58 THEN + 45 END AS SIGNED ) END + ( + - 43 ) * - ( + 21 ) * - + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-9847
SELECT DISTINCT + - 50 + 62 + 70 + - + CASE 41 WHEN + COUNT ( * ) * + 71 - 94 / 19 THEN + - 93 WHEN 80 + 86 THEN + 43 WHEN - 83 THEN - 93 ELSE MAX ( - - ( 1 ) ) + - CAST ( + CASE 18 WHEN ( + - 45 ) THEN + 80 WHEN - 83 + 58 THEN + 45 END AS INTEGER ) END + ( + - 43 ) * - ( + 21 ) * - + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT + - 28 + COUNT( * ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-9848
SELECT + - 28 + COUNT ( * ) AS col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9849
SELECT + + ( 35 ) + + MAX( + 53 ) DIV + COUNT( - 61 ) col0, ( + CAST( NULL AS SIGNED ) ) AS col0
----
88
NULL

skipif mysql # not compatible
query II rowsort label-9849
SELECT + + ( 35 ) + + MAX ( + 53 ) / + COUNT ( - 61 ) col0, ( + CAST ( NULL AS INTEGER ) ) AS col0
----
88
NULL

query I rowsort
SELECT - - COALESCE ( 97, 43 * + - 24 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT + COUNT( - 69 )
----
1

skipif mysql # not compatible
query I rowsort label-9851
SELECT + COUNT ( - 69 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT + - 12 + - 64 * - + 39 + - + COUNT( * ) col1
----
2483

skipif mysql # not compatible
query I rowsort label-9852
SELECT + - 12 + - 64 * - + 39 + - + COUNT ( * ) col1
----
2483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9853
SELECT - 73 AS col0, COUNT( * ) + + CAST( NULL AS SIGNED ) + + 12
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-9853
SELECT - 73 AS col0, COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + 12
----
-73
NULL

query I rowsort
SELECT 99 + - 13 AS col0
----
86

query I rowsort
SELECT + 82 + 93 AS col2
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT - MIN( ALL - + 3 )
----
3

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT - MIN ( ALL - + 3 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9857
SELECT 7 DIV ( 1 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9857
SELECT 7 / ( 1 ) AS col2
----
7

query II rowsort
SELECT + 62, + 41 AS col1
----
62
41

query II rowsort
SELECT + 64, - 42 AS col0
----
64
-42

query I rowsort
SELECT ALL 83 * 26 col2
----
2158

query I rowsort
SELECT ALL + 77 * 90 AS col1
----
6930

query I rowsort
SELECT 71 + 47 + 56
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT ( NULLIF ( 43, + + 12 - COUNT( * ) ) ) * + 31 * 14 col0
----
18662

skipif mysql # not compatible
query I rowsort label-9863
SELECT ( NULLIF ( 43, + + 12 - COUNT ( * ) ) ) * + 31 * 14 col0
----
18662

query I rowsort
SELECT 45 * + 49 col2
----
2205

query I rowsort
SELECT DISTINCT ( - 61 ) * + 44 * 37 + + 76 * + + 32 * + 34
----
-16620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9866
SELECT DISTINCT 40 + - + CAST( + - 80 AS SIGNED ) + - - 64 - - COUNT( * ) DIV - COUNT( * ) + + 40 + - - ( - 44 )
----
179

skipif mysql # not compatible
query I rowsort label-9866
SELECT DISTINCT 40 + - + CAST ( + - 80 AS INTEGER ) + - - 64 - - COUNT ( * ) / - COUNT ( * ) + + 40 + - - ( - 44 )
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT ALL + 42 + - MAX( 63 )
----
-21

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL + 42 + - MAX ( 63 )
----
-21

query I rowsort
SELECT + 23 * 83 - - 71
----
1980

query I rowsort
SELECT 61 - - 0 + + ( - 45 ) + + NULLIF ( - 77, + 23 ) * + 0
----
16

query I rowsort
SELECT - 5 * + + ( + - 66 )
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT 55 * + 9 * 29 * + + COUNT( * ) + - 69
----
14286

skipif mysql # not compatible
query I rowsort label-9871
SELECT 55 * + 9 * 29 * + + COUNT ( * ) + - 69
----
14286

query I rowsort
SELECT DISTINCT - - 27 + - 34 + + 20 AS col2
----
13

query I rowsort
SELECT ALL + 79 + + 72
----
151

query II rowsort
SELECT - 22 AS col1, - 94 AS col1
----
-22
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT - 37 + - + COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-9875
SELECT - 37 + - + COUNT ( * ) AS col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9876
SELECT ( - NULLIF ( + - 52, - + 59 / MAX( + CAST( NULL AS SIGNED ) ) * + SUM( - + CAST( NULL AS SIGNED ) ) + 45 + MIN( 21 ) + + ( - 44 ) + COUNT( * ) * - - 10 ) ) - 7 - 59 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-9876
SELECT ( - NULLIF ( + - 52, - + 59 / MAX ( + CAST ( NULL AS INTEGER ) ) * + SUM ( - + CAST ( NULL AS INTEGER ) ) + 45 + MIN ( 21 ) + + ( - 44 ) + COUNT ( * ) * - - 10 ) ) - 7 - 59 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-9877
SELECT - 6 AS col1, 60 + + + COUNT( * ) - + 44 AS col1
----
-6
17

skipif mysql # not compatible
query II rowsort label-9877
SELECT - 6 AS col1, 60 + + + COUNT ( * ) - + 44 AS col1
----
-6
17

query II rowsort
SELECT - - 67 AS col0, 5
----
67
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT ( + MIN( + 84 ) ) + - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-9879
SELECT ( + MIN ( + 84 ) ) + - COUNT ( * )
----
83

query I rowsort
SELECT ALL - 83 - 86 - + + 32 * 29
----
-1097

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT 37 * - 17 + + COUNT( * )
----
-628

skipif mysql # not compatible
query I rowsort label-9881
SELECT 37 * - 17 + + COUNT ( * )
----
-628

query I rowsort
SELECT ALL + 61 * - + 42 * - + 34 * + 82 * + - 27 AS col1
----
-192857112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9883
SELECT DISTINCT - - 43 DIV MIN( - 5 ) + + 68 DIV - 69 col1
----
-8

skipif mysql # not compatible
query I rowsort label-9883
SELECT DISTINCT - - 43 / MIN ( - 5 ) + + 68 / - 69 col1
----
-8

query II rowsort
SELECT - 13, - 5 * + 26 - - 90 AS col0
----
-13
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9885
SELECT + 71 + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9885
SELECT + 71 + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT ALL + - 68 * + + SUM( - + 73 ) + + + MIN( DISTINCT 62 )
----
5026

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL + - 68 * + + SUM ( - + 73 ) + + + MIN ( DISTINCT 62 )
----
5026

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT COUNT( * ) - - + 42
----
43

skipif mysql # not compatible
query I rowsort label-9887
SELECT COUNT ( * ) - - + 42
----
43

query II rowsort
SELECT 17 - - 38 * 63, - NULLIF ( - + 21, - 77 + 26 * 1 ) AS col0
----
2411
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT DISTINCT 7 * + - MIN( DISTINCT + 97 ) col2
----
-679

skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT 7 * + - MIN ( DISTINCT + 97 ) col2
----
-679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9890
SELECT SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9890
SELECT SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query II rowsort
SELECT 36 * + 71, - ( - 38 ) * + 4 AS col2
----
2556
152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9892
SELECT DISTINCT - ( - 39 ) col0, - CAST( - + 64 AS SIGNED ) col2
----
39
64

skipif mysql # not compatible
query II rowsort label-9892
SELECT DISTINCT - ( - 39 ) col0, - CAST ( - + 64 AS INTEGER ) col2
----
39
64

query I rowsort
SELECT 73 * - 43 - 16
----
-3155

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT ALL 29 * 3 * - 61 * + COUNT( * )
----
-5307

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL 29 * 3 * - 61 * + COUNT ( * )
----
-5307

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9895
SELECT ALL MIN( + - 96 ) + - + CAST( + 83 AS SIGNED ) AS col2
----
-179

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL MIN ( + - 96 ) + - + CAST ( + 83 AS INTEGER ) AS col2
----
-179

query I rowsort
SELECT ALL 99 + 54 - + 53
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT + SUM( 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-9897
SELECT + SUM ( 74 ) AS col0
----
74

query II rowsort
SELECT ALL 93 * ( + 68 ) AS col1, 74
----
6324
74

query I rowsort
SELECT 96 - - + 94 * - ( - - 81 ) AS col1
----
-7518

query II rowsort
SELECT DISTINCT 28 * + 29, - 91 AS col1
----
812
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9901
SELECT MAX( - 93 ) + + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - + 60, - 7 * + - ( - 47 ) + + 83 AS col0
----
NULL
-246

skipif mysql # not compatible
query II rowsort label-9901
SELECT MAX ( - 93 ) + + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - + 60, - 7 * + - ( - 47 ) + + 83 AS col0
----
NULL
-246

query I rowsort
SELECT ALL 40 + 74 col1
----
114

onlyif mysql # aggregate syntax: 
query III rowsort label-9903
SELECT + SUM( ALL - 80 ) col2, 93 AS col1, - 39 AS col2
----
-80
93
-39

skipif mysql # not compatible
query III rowsort label-9903
SELECT + SUM ( ALL - 80 ) col2, 93 AS col1, - 39 AS col2
----
-80
93
-39

query I rowsort
SELECT ALL - - 25 + 7 AS col0
----
32

query I rowsort
SELECT 3 + 31 - + 70 * + 33 * + 89 * - 57 col1
----
11718664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9906
SELECT ALL CAST( NULL AS SIGNED ) - - + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL CAST ( NULL AS INTEGER ) - - + 50 AS col0
----
NULL

query I rowsort
SELECT 28 * 22 + 50
----
666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9908
SELECT DISTINCT - - COUNT( * ) * - + CAST( NULL AS SIGNED ) + - 22 + CASE - ( - + 14 ) WHEN + ( - ( - SUM( DISTINCT - 66 ) ) ) THEN NULL WHEN 23 THEN + + 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT - - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + - 22 + CASE - ( - + 14 ) WHEN + ( - ( - SUM ( DISTINCT - 66 ) ) ) THEN NULL WHEN 23 THEN + + 73 END
----
NULL

query I rowsort
SELECT ALL - 21 * 60
----
-1260

query I rowsort
SELECT DISTINCT - NULLIF ( ( + 13 ), - 93 ) col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT - 64 + - - COUNT( * ) + - - 44 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-9911
SELECT - 64 + - - COUNT ( * ) + - - 44 AS col1
----
-19

query I rowsort
SELECT - 8 * + 44
----
-352

query I rowsort
SELECT - + ( ( - + 98 ) ) * - 84
----
-8232

query I rowsort
SELECT DISTINCT CASE - 35 WHEN 48 THEN - 11 WHEN 42 * + + 23 + 84 - - AVG ( 49 ) THEN 2 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9915
SELECT ALL COALESCE ( + + 63, + + 8 * + COUNT( * ) ) col2, + CASE - 72 WHEN + ( + ( 42 ) ) * + 35 + 78 + MAX( DISTINCT + + 47 ) / COUNT( * ) * + 9 THEN - 79 + - - 14 + + 22 * - - 15 WHEN + - MIN( + 43 ) THEN NULL END AS col1
----
63
NULL

skipif mysql # not compatible
query II rowsort label-9915
SELECT ALL COALESCE ( + + 63, + + 8 * + COUNT ( * ) ) col2, + CASE - 72 WHEN + ( + ( 42 ) ) * + 35 + 78 + MAX ( DISTINCT + + 47 ) / COUNT ( * ) * + 9 THEN - 79 + - - 14 + + 22 * - - 15 WHEN + - MIN ( + 43 ) THEN NULL END AS col1
----
63
NULL

query I rowsort
SELECT + 77 + + + 37 AS col0
----
114

query II rowsort
SELECT 54 AS col1, - 57
----
54
-57

query I rowsort
SELECT - 48 * + + 73 AS col1
----
-3504

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT DISTINCT SUM( ALL + 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-9919
SELECT DISTINCT SUM ( ALL + 72 ) AS col1
----
72

query I rowsort
SELECT - 41 + - - 8
----
-33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9921
SELECT ALL + 14 DIV + CAST( + - 51 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL + 14 / + CAST ( + - 51 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT ( + COUNT( + - 82 ) ) * - - 81 + - 10
----
71

skipif mysql # not compatible
query I rowsort label-9922
SELECT ( + COUNT ( + - 82 ) ) * - - 81 + - 10
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9923
SELECT ALL 60 * + + 18 + COUNT( + 91 ) DIV - 29 * + + 87 AS col0
----
1080

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL 60 * + + 18 + COUNT ( + 91 ) / - 29 * + + 87 AS col0
----
1080

query II rowsort
SELECT ALL + 22 AS col2, + 81 AS col2
----
22
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT - 58 * + COUNT( * ) * 87
----
-5046

skipif mysql # not compatible
query I rowsort label-9925
SELECT - 58 * + COUNT ( * ) * 87
----
-5046

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT NULLIF ( COUNT( * ), - - 88 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9926
SELECT NULLIF ( COUNT ( * ), - - 88 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9927
SELECT DISTINCT CAST( NULL AS SIGNED ) * 59 * 81 + - ( - - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 59 * 81 + - ( - - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT ALL 15 * - 72 + - - COUNT( + 30 )
----
-1079

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL 15 * - 72 + - - COUNT ( + 30 )
----
-1079

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9929
SELECT CASE WHEN NOT NULL > CAST( NULL AS SIGNED ) THEN + + ( - - 83 ) ELSE + 74 * + COALESCE ( - + 2, - 52 ) END
----
-148

skipif mysql # not compatible
query I rowsort label-9929
SELECT CASE WHEN NOT NULL > CAST ( NULL AS INTEGER ) THEN + + ( - - 83 ) ELSE + 74 * + COALESCE ( - + 2, - 52 ) END
----
-148

query II rowsort
SELECT ALL + 57, - 82 AS col1
----
57
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9931
SELECT ALL + CAST( + + COUNT( * ) AS SIGNED ) * - 68 - + 36 * - - CASE - - COUNT( DISTINCT 84 ) WHEN 88 * + COUNT( * ) THEN - + 47 / + 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER ) * - 68 - + 36 * - - CASE - - COUNT ( DISTINCT 84 ) WHEN 88 * + COUNT ( * ) THEN - + 47 / + 65 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9932
SELECT + + 66 * + 82 - - CAST( NULL AS SIGNED ) AS col1, 18 AS col0
----
NULL
18

skipif mysql # not compatible
query II rowsort label-9932
SELECT + + 66 * + 82 - - CAST ( NULL AS INTEGER ) AS col1, 18 AS col0
----
NULL
18

query I rowsort
SELECT ALL - 27 * - 81 * - - 0
----
0

query I rowsort
SELECT + 99 * 82
----
8118

onlyif mysql # DIV for integer division: 
query I rowsort label-9935
SELECT + 26 DIV - 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9935
SELECT + 26 / - 73 AS col1
----
0

query I rowsort
SELECT DISTINCT 0 * - + 3
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9937
SELECT - 53 - COUNT( * ) + - + COUNT( * ) AS col0, + COUNT( * ) * + - 16
----
-55
-16

skipif mysql # not compatible
query II rowsort label-9937
SELECT - 53 - COUNT ( * ) + - + COUNT ( * ) AS col0, + COUNT ( * ) * + - 16
----
-55
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9938
SELECT - - 89 DIV MAX( 66 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9938
SELECT - - 89 / MAX ( 66 ) AS col1
----
1

query II rowsort
SELECT - + 30, + 95 - - 84 col2
----
-30
179

query I rowsort
SELECT + + 20 + - 83 - + 70 AS col1
----
-133

query I rowsort
SELECT - + ( + 11 ) AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9942
SELECT + CAST( NULL AS SIGNED ) * 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9942
SELECT + CAST ( NULL AS INTEGER ) * 67 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9943
SELECT - 85 + - + ( - CAST( NULL AS SIGNED ) ) / CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9943
SELECT - 85 + - + ( - CAST ( NULL AS INTEGER ) ) / CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL - 73 + - 36
----
-109

query II rowsort
SELECT DISTINCT + 1 * + 99, 16 * 83 AS col2
----
99
1328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9946
SELECT ALL - 73 + - - 73 + + - 95 DIV - COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL - 73 + - - 73 + + - 95 / - COUNT ( * ) AS col1
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9947
SELECT + COUNT( * ) - 43 DIV - + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-9947
SELECT + COUNT ( * ) - 43 / - + COUNT ( * ) AS col1
----
44

query I rowsort
SELECT DISTINCT + 1 * 17 * - + 25
----
-425

query I rowsort
SELECT - 82 + + 68
----
-14

query I rowsort
SELECT ALL + ( + 31 ) col0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9951
SELECT + 11 DIV + + 92 + 76 DIV - + 89 * - SUM( 7 ) DIV - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9951
SELECT + 11 / + + 92 + 76 / - + 89 * - SUM ( 7 ) / - + COUNT ( * )
----
0

query II rowsort
SELECT - 34 + + 73 AS col2, 81
----
39
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9953
SELECT DISTINCT + 56 DIV - CAST( - 3 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT + 56 / - CAST ( - 3 AS INTEGER )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9954
SELECT ALL + NULLIF ( + 81, - + NULLIF ( - CAST( + + ( - 19 ) AS SIGNED ), + + 49 + + ( - 37 ) ) ) col2, 87 * - CAST( NULL AS SIGNED ) + - COUNT( * )
----
81
NULL

skipif mysql # not compatible
query II rowsort label-9954
SELECT ALL + NULLIF ( + 81, - + NULLIF ( - CAST ( + + ( - 19 ) AS INTEGER ), + + 49 + + ( - 37 ) ) ) col2, 87 * - CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
81
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9955
SELECT DISTINCT NULLIF ( 54, 5 + COALESCE ( - - COALESCE ( - - 87, + + 81 ), 90 ) + + ( + + MAX( + 38 ) ) / + CAST( - + 70 AS SIGNED ) + + - CAST( 29 AS SIGNED ) * 86 + 32 + COALESCE ( 5, - 26 + SUM( ALL + 61 ), + 25 + + 35 ) / COUNT( * ) / + + 52 ) * + - 15 col0
----
-810

skipif mysql # not compatible
query I rowsort label-9955
SELECT DISTINCT NULLIF ( 54, 5 + COALESCE ( - - COALESCE ( - - 87, + + 81 ), 90 ) + + ( + + MAX ( + 38 ) ) / + CAST ( - + 70 AS INTEGER ) + + - CAST ( 29 AS INTEGER ) * 86 + 32 + COALESCE ( 5, - 26 + SUM ( ALL + 61 ), + 25 + + 35 ) / COUNT ( * ) / + + 52 ) * + - 15 col0
----
-810

onlyif mysql # DIV for integer division: 
query I rowsort label-9956
SELECT DISTINCT + 66 DIV ( + - ( 96 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT + 66 / ( + - ( 96 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT - - COUNT( * ) + 54 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-9957
SELECT - - COUNT ( * ) + 54 AS col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9958
SELECT + 17 * - - COUNT( * ) * - COUNT( * ) DIV - 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9958
SELECT + 17 * - - COUNT ( * ) * - COUNT ( * ) / - 39 AS col2
----
0

query I rowsort
SELECT DISTINCT - CASE + + 89 WHEN + 57 THEN NULL ELSE - - 24 END * - 9 * + 11 AS col0
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT + NULLIF ( - 30, COUNT( + 87 ) ) * + 95 * + + 38 col2
----
-108300

skipif mysql # not compatible
query I rowsort label-9960
SELECT + NULLIF ( - 30, COUNT ( + 87 ) ) * + 95 * + + 38 col2
----
-108300

query I rowsort
SELECT 9 - + 52
----
-43

query I rowsort
SELECT ALL + ( 13 ) * + 78 + + 69 + 49
----
1132

query II rowsort
SELECT ALL - + CASE - 34 WHEN + + 2 THEN - + 83 END AS col1, + 10 AS col2
----
NULL
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9964
SELECT - 33 * + - COUNT( * ) + - COALESCE ( - ( + 27 ), 46 ) + - 78, + 0 DIV + + 25 + - COUNT( * ) AS col1
----
-18
-1

skipif mysql # not compatible
query II rowsort label-9964
SELECT - 33 * + - COUNT ( * ) + - COALESCE ( - ( + 27 ), 46 ) + - 78, + 0 / + + 25 + - COUNT ( * ) AS col1
----
-18
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9965
SELECT COUNT( * ) * - NULLIF ( + 1, 73 ) + + ( - 38 ) * - 45, + 60 * + MIN( + 75 ) col1
----
1709
4500

skipif mysql # not compatible
query II rowsort label-9965
SELECT COUNT ( * ) * - NULLIF ( + 1, 73 ) + + ( - 38 ) * - 45, + 60 * + MIN ( + 75 ) col1
----
1709
4500

query I rowsort
SELECT 99 + + 78
----
177

query I rowsort
SELECT DISTINCT + 22 + 83 AS col2
----
105

query I rowsort
SELECT ALL 30 + + - 26 - 69
----
-65

query II rowsort
SELECT ALL 12, - 16 AS col0
----
12
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9970
SELECT 71 + 18 + + - 50 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9970
SELECT 71 + 18 + + - 50 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 42 + - 60
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9972
SELECT DISTINCT 11 + - + 38 DIV + COUNT( DISTINCT + 73 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT 11 + - + 38 / + COUNT ( DISTINCT + 73 ) AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9973
SELECT ALL 70 + CASE - - ( ( + - 37 ) ) WHEN COUNT( * ) * 9 + + CAST( NULL AS SIGNED ) THEN - 86 WHEN - - 32 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL 70 + CASE - - ( ( + - 37 ) ) WHEN COUNT ( * ) * 9 + + CAST ( NULL AS INTEGER ) THEN - 86 WHEN - - 32 THEN NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9974
SELECT CAST( + 76 AS SIGNED ) + - SUM( ( - 24 ) ) * + SUM( ALL + 33 ) AS col2
----
868

skipif mysql # not compatible
query I rowsort label-9974
SELECT CAST ( + 76 AS INTEGER ) + - SUM ( ( - 24 ) ) * + SUM ( ALL + 33 ) AS col2
----
868

query I rowsort
SELECT DISTINCT 76 - 26 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT ALL + ( 71 ) * + ( 68 ) + - 5 * - + ( + + COUNT( * ) )
----
4833

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL + ( 71 ) * + ( 68 ) + - 5 * - + ( + + COUNT ( * ) )
----
4833

query I rowsort
SELECT 96 + + 76 col0
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT ALL COUNT( * ) - + 83
----
-82

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL COUNT ( * ) - + 83
----
-82

query I rowsort
SELECT 15 * + - 49
----
-735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9980
SELECT DISTINCT - ( - CAST( 32 AS SIGNED ) )
----
32

skipif mysql # not compatible
query I rowsort label-9980
SELECT DISTINCT - ( - CAST ( 32 AS INTEGER ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT DISTINCT - SUM( DISTINCT NULLIF ( 7, - 41 * + 38 * - 42 + + 65 + - - 96 ) ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-9981
SELECT DISTINCT - SUM ( DISTINCT NULLIF ( 7, - 41 * + 38 * - 42 + + 65 + - - 96 ) ) AS col2
----
-7

query I rowsort
SELECT ALL - 44 * + + 73
----
-3212

query I rowsort
SELECT + 8 * 77
----
616

onlyif mysql # DIV for integer division: 
query I rowsort label-9984
SELECT ALL - - 34 DIV - 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL - - 34 / - 43 AS col2
----
0

query I rowsort
SELECT ALL + 42 + + - 25 AS col1
----
17

query I rowsort
SELECT ALL - - 59 + - 87 col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT - ( ( 8 ) ) - 1 + + CAST( + 51 AS SIGNED ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-9987
SELECT - ( ( 8 ) ) - 1 + + CAST ( + 51 AS INTEGER ) AS col2
----
42

query I rowsort
SELECT - 88 + + 76
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT SUM( DISTINCT 7 ) col1
----
7

skipif mysql # not compatible
query I rowsort label-9989
SELECT SUM ( DISTINCT 7 ) col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9990
SELECT ALL - - 67 + + 4 - - 61 - + + NULLIF ( 84, + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) + - - ( + 59 ) * + - 56 * + 74 ) + - COUNT( ALL + - 74 ) - - + 58 DIV - - 20 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL - - 67 + + 4 - - 61 - + + NULLIF ( 84, + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) + - - ( + 59 ) * + - 56 * + 74 ) + - COUNT ( ALL + - 74 ) - - + 58 / - - 20 AS col2
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-9991
SELECT DISTINCT - 77, + SUM( DISTINCT + - ( - - 27 ) ) - MIN( DISTINCT - 52 ) + 85 * - + 54 + - 48 AS col1
----
-77
-4613

skipif mysql # not compatible
query II rowsort label-9991
SELECT DISTINCT - 77, + SUM ( DISTINCT + - ( - - 27 ) ) - MIN ( DISTINCT - 52 ) + 85 * - + 54 + - 48 AS col1
----
-77
-4613

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9992
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - 5 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - 5 col2
----
NULL

query I rowsort
SELECT 45 * + + 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9994
SELECT ALL 77 DIV - - 5 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL 77 / - - 5 AS col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9995
SELECT 51 DIV - - 3
----
17

skipif mysql # not compatible
query I rowsort label-9995
SELECT 51 / - - 3
----
17

query I rowsort
SELECT 55 + - 36 * + 19 AS col2
----
-629

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT - COUNT( ALL 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-9997
SELECT - COUNT ( ALL 78 )
----
-1

query I rowsort
SELECT ALL 29 * + - 76 AS col0
----
-2204

query II rowsort
SELECT 56, + 6 col1
----
56
6

