sqllogictest
Artifact Content
Not logged in

Artifact eb34e29711451c616173d1c45f36cd013807815d:


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 #