sqllogictest
Artifact Content
Not logged in

Artifact e0a0cfcf793e7b098dd10b3ec9f973dd6c809501:


hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

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

skipif mysql # not compatible
query II rowsort label-0
SELECT ALL - COUNT ( * ), - COUNT ( * ) * + + COUNT ( * )
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT DISTINCT 90 * MAX( ALL ( + 44 ) ) AS col1
----
3960

skipif mysql # not compatible
query I rowsort label-1
SELECT DISTINCT 90 * MAX ( ALL ( + 44 ) ) AS col1
----
3960

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2
SELECT ALL - 84 * 63 / - - 50 + - 59 + - 22 + + + COUNT( * ) + - 50 * - 72 * CAST( NULL AS DECIMAL ) / - 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL - 84 * 63 / - - 50 + - 59 + - 22 + + + COUNT ( * ) + - 50 * - 72 * CAST ( NULL AS REAL ) / - 56 AS col1
----
NULL

query II rowsort
SELECT + 53, + CASE 67 WHEN + - ( - 32 ) + + 4 * - 43 THEN NULL ELSE + + 41 - - + 70 * 11 END * - - 91 AS col2
----
53
73801

onlyif mysql # aggregate syntax: 
query II rowsort label-4
SELECT ALL - - 57 AS col1, 42 + - + COALESCE ( + 33, + CASE - COUNT( + 58 ) WHEN 10 THEN NULL ELSE + - 81 * + 9 * 39 * + 45 END ) AS col0
----
57
9

skipif mysql # not compatible
query II rowsort label-4
SELECT ALL - - 57 AS col1, 42 + - + COALESCE ( + 33, + CASE - COUNT ( + 58 ) WHEN 10 THEN NULL ELSE + - 81 * + 9 * 39 * + 45 END ) AS col0
----
57
9

query II rowsort
SELECT + - 89, - ( - 20 ) AS col2
----
-89
20

query I rowsort
SELECT + 41 * - 50 AS col0
----
-2050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7
SELECT ALL + + ( - 63 ) * CAST( NULL AS SIGNED ) * - 28 * AVG ( - - 65 ) / - 65 + + 98 * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL + + ( - 63 ) * CAST ( NULL AS INTEGER ) * - 28 * AVG ( - - 65 ) / - 65 + + 98 * + 80
----
NULL

query I rowsort
SELECT ALL - + 38 + - 7 - 21 AS col0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-9
SELECT COUNT( * ) * 69 + + 27 AS col2, - 23 + + COUNT( * ) - 18 col1
----
96
-40

skipif mysql # not compatible
query II rowsort label-9
SELECT COUNT ( * ) * 69 + + 27 AS col2, - 23 + + COUNT ( * ) - 18 col1
----
96
-40

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

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

query I rowsort
SELECT - 77 * NULLIF ( + 92, + 66 / 83 - - - 46 + CASE - AVG ( 97 ) WHEN - 49 THEN 46 + 68 / - - 94 ELSE NULL END ) * + 84 col1
----
-595056

query I rowsort
SELECT ALL + + 25 * + + 27
----
675

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-13
SELECT - - NULLIF ( 26, - - 19 ) DIV COUNT( * ) AS col0, + 85 AS col2
----
26
85

skipif mysql # not compatible
query II rowsort label-13
SELECT - - NULLIF ( 26, - - 19 ) / COUNT ( * ) AS col0, + 85 AS col2
----
26
85

query II rowsort
SELECT NULLIF ( + + 17, + 18 ) AS col0, 93 + + 18
----
17
111

query I rowsort
SELECT ALL + - 13 + 4 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT DISTINCT + 16 + 71 - - + 31 + + ( - COUNT( * ) ) AS col2
----
117

skipif mysql # not compatible
query I rowsort label-16
SELECT DISTINCT + 16 + 71 - - + 31 + + ( - COUNT ( * ) ) AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT - 29 + + 96 * - + SUM( NULLIF ( - - 58, - + 87 * - 78 ) )
----
-5597

skipif mysql # not compatible
query I rowsort label-17
SELECT - 29 + + 96 * - + SUM ( NULLIF ( - - 58, - + 87 * - 78 ) )
----
-5597

query I rowsort
SELECT ALL + 43 + - 72 * + 48 AS col1
----
-3413

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-19
SELECT ALL 17 + ( 47 ) * CAST( 11 AS SIGNED ) + - + 37 * - - 2 AS col0, 62
----
460
62

skipif mysql # not compatible
query II rowsort label-19
SELECT ALL 17 + ( 47 ) * CAST ( 11 AS INTEGER ) + - + 37 * - - 2 AS col0, 62
----
460
62

query I rowsort
SELECT - 23 * - 4
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-21
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 73 + COUNT( * ) * + - 68 * - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-21
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 73 + COUNT ( * ) * + - 68 * - 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-22
SELECT - 94 + 55 DIV + - ( COUNT( * ) ) AS col0, - 44 + 65 * - COUNT( * ) AS col2
----
-149
-109

skipif mysql # not compatible
query II rowsort label-22
SELECT - 94 + 55 / + - ( COUNT ( * ) ) AS col0, - 44 + 65 * - COUNT ( * ) AS col2
----
-149
-109

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

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT - MIN( - + 13 ) * + + ( ( + 58 ) ) - COUNT( * ) col0
----
753

skipif mysql # not compatible
query I rowsort label-24
SELECT - MIN ( - + 13 ) * + + ( ( + 58 ) ) - COUNT ( * ) col0
----
753

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-25
SELECT ALL 75 * + CAST( NULL AS SIGNED ) * ( - + 42 ), + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-25
SELECT ALL 75 * + CAST ( NULL AS INTEGER ) * ( - + 42 ), + CAST ( NULL AS INTEGER )
----
NULL
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT + COALESCE ( + - ( 51 ), 10 * - + 5 - + - 48 ) DIV - + 7 - - + 54 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-28
SELECT + COALESCE ( + - ( 51 ), 10 * - + 5 - + - 48 ) / - + 7 - - + 54 AS col1
----
61

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

skipif mysql # not compatible
query I rowsort label-29
SELECT 72 * + CAST ( NULL AS INTEGER ) + + 43 AS col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-31
SELECT + 86 * - + ( - ( + COUNT( * ) ) ) AS col0, - CAST( - 42 AS SIGNED ) * - 77 + - + 6 + - + 38 + MIN( ALL - + 14 ) + 48 + + COUNT( * ) AS col1
----
86
-3243

skipif mysql # not compatible
query II rowsort label-31
SELECT + 86 * - + ( - ( + COUNT ( * ) ) ) AS col0, - CAST ( - 42 AS INTEGER ) * - 77 + - + 6 + - + 38 + MIN ( ALL - + 14 ) + 48 + + COUNT ( * ) AS col1
----
86
-3243

query I rowsort
SELECT ALL + NULLIF ( - 62, 46 )
----
-62

query I rowsort
SELECT ALL + 72 * - + ( 64 ) AS col2
----
-4608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-34
SELECT + + CAST( - ( - + 46 ) AS SIGNED ) + - 28 - 94 + 97
----
21

skipif mysql # not compatible
query I rowsort label-34
SELECT + + CAST ( - ( - + 46 ) AS INTEGER ) + - 28 - 94 + 97
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-35
SELECT ALL - 61 DIV - - 82 col0
----
0

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL - 61 / - - 82 col0
----
0

query I rowsort
SELECT ALL 51 * + - 32
----
-1632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-37
SELECT + 94 DIV - + 8 * COUNT( + 61 ) + + + ( - - 4 ) * + SUM( + 68 ) + + 38 * + 46 + - + NULLIF ( + NULLIF ( + 88, - MAX( - + 52 ) - 64 ), + 72 ) * 34
----
-983

skipif mysql # not compatible
query I rowsort label-37
SELECT + 94 / - + 8 * COUNT ( + 61 ) + + + ( - - 4 ) * + SUM ( + 68 ) + + 38 * + 46 + - + NULLIF ( + NULLIF ( + 88, - MAX ( - + 52 ) - 64 ), + 72 ) * 34
----
-983

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT 0 * - - 17 + ( - 44 ) / - ( - 82 ) * + 37 + - 3 + + + CASE - - 59 WHEN MIN( ALL - 53 ) THEN + 85 + + 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-38
SELECT 0 * - - 17 + ( - 44 ) / - ( - 82 ) * + 37 + - 3 + + + CASE - - 59 WHEN MIN ( ALL - 53 ) THEN + 85 + + 96 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT + - 42 * MAX( + + 56 ) AS col2
----
-2352

skipif mysql # not compatible
query I rowsort label-39
SELECT + - 42 * MAX ( + + 56 ) AS col2
----
-2352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-40
SELECT DISTINCT + SUM( DISTINCT - 23 ) * AVG ( + CAST( NULL AS SIGNED ) ) + + ( + 97 ) * - 3 + - AVG ( - 60 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-40
SELECT DISTINCT + SUM ( DISTINCT - 23 ) * AVG ( + CAST ( NULL AS INTEGER ) ) + + ( + 97 ) * - 3 + - AVG ( - 60 ) col2
----
NULL

query I rowsort
SELECT - 61 + 4 * - 26 + 98 * 3
----
129

query I rowsort
SELECT + - 65 + - + 54 + + 14 * - - 64 * - + 3 * 6
----
-16247

query I rowsort
SELECT ALL - + 10 * + 38 + 55
----
-325

query I rowsort
SELECT + + 90 + + 31
----
121

query I rowsort
SELECT + 30 * 0 AS col1
----
0

query I rowsort
SELECT ALL - 75 * - 98
----
7350

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

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

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

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

query I rowsort
SELECT + 94 * - 18 AS col0
----
-1692

query II rowsort
SELECT - 0 + + 46 + - 82, 4 + - 89 + + + 71 AS col2
----
-36
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-51
SELECT - 17 AS col2, - 76 - + 9 * + 89 * + + MAX( + 41 ) col0
----
-17
-32917

skipif mysql # not compatible
query II rowsort label-51
SELECT - 17 AS col2, - 76 - + 9 * + 89 * + + MAX ( + 41 ) col0
----
-17
-32917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-52
SELECT - CAST( - MIN( + 22 ) AS SIGNED ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-52
SELECT - CAST ( - MIN ( + 22 ) AS INTEGER ) AS col1
----
22

query I rowsort
SELECT DISTINCT ( + 53 ) - + 40 + + 43 - + 64
----
-8

query I rowsort
SELECT ALL ( - ( - 26 ) ) AS col2
----
26

query I rowsort
SELECT DISTINCT 87 * - - 49
----
4263

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-56
SELECT DISTINCT COALESCE ( 78, 78 * - - ( + + 71 ) - CAST( NULL AS SIGNED ), - 47 ) col2
----
78

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT COALESCE ( 78, 78 * - - ( + + 71 ) - CAST ( NULL AS INTEGER ), - 47 ) col2
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-57
SELECT ALL - 13 DIV 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL - 13 / 71 AS col2
----
0

query I rowsort
SELECT - 34 * - 38 AS col0
----
1292

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT ALL NULLIF ( 44, + COUNT( * ) * - 30 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL NULLIF ( 44, + COUNT ( * ) * - 30 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT - COUNT( * ) - - COUNT( + 43 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-60
SELECT - COUNT ( * ) - - COUNT ( + 43 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-61
SELECT - CAST( NULL AS SIGNED ) * 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-61
SELECT - CAST ( NULL AS INTEGER ) * 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-62
SELECT DISTINCT - 22 DIV 38 * SUM( DISTINCT - 47 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-62
SELECT DISTINCT - 22 / 38 * SUM ( DISTINCT - 47 ) AS col1
----
0

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

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

query I rowsort
SELECT - NULLIF ( 46, + 53 ) + 62 + 81 * - + 20
----
-1604

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-65
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 90 DIV + - 10
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-65
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 90 / + - 10
----
NULL
-9

query I rowsort
SELECT + + 81 + + - 15 + - 30 + + + 37 AS col2
----
73

query II rowsort
SELECT + - 4 AS col1, 53
----
-4
53

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

onlyif mysql # aggregate syntax: 
query II rowsort label-69
SELECT + - 50 AS col0, 8 + - + COUNT( * )
----
-50
7

skipif mysql # not compatible
query II rowsort label-69
SELECT + - 50 AS col0, 8 + - + COUNT ( * )
----
-50
7

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

skipif mysql # not compatible
query I rowsort label-70
SELECT ALL + 61 / + - COUNT ( * ) + 70 + + 7
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT - - CASE - + 3 WHEN - 86 * + 29 THEN NULL WHEN 60 THEN NULL WHEN COUNT( * ) * + 40 THEN - MIN( DISTINCT - 6 ) END * - - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-71
SELECT - - CASE - + 3 WHEN - 86 * + 29 THEN NULL WHEN 60 THEN NULL WHEN COUNT ( * ) * + 40 THEN - MIN ( DISTINCT - 6 ) END * - - 26
----
NULL

query I rowsort
SELECT + - 55 * 49
----
-2695

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-73
SELECT ALL - 49 + 4 + - + CAST( + + ( + 53 ) AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL - 49 + 4 + - + CAST ( + + ( + 53 ) AS INTEGER )
----
-98

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

onlyif mysql # DIV for integer division: 
query I rowsort label-75
SELECT 11 DIV - - 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-75
SELECT 11 / - - 14 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-76
SELECT DISTINCT - 66 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-76
SELECT DISTINCT - 66 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-77
SELECT DISTINCT - 55 DIV - + MIN( ( - 91 ) )
----
0

skipif mysql # not compatible
query I rowsort label-77
SELECT DISTINCT - 55 / - + MIN ( ( - 91 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-78
SELECT 90 DIV 16 + - 84 * - SUM( - 52 ) * - + MAX( ALL 71 ) + COUNT( * )
----
310134

skipif mysql # not compatible
query I rowsort label-78
SELECT 90 / 16 + - 84 * - SUM ( - 52 ) * - + MAX ( ALL 71 ) + COUNT ( * )
----
310134

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT ALL ( + - ( - - 52 ) ) + NULLIF ( + - 94, + 10 ) - - COALESCE ( + 83, COUNT( * ), - + NULLIF ( 44, - - 34 + 14 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL ( + - ( - - 52 ) ) + NULLIF ( + - 94, + 10 ) - - COALESCE ( + 83, COUNT ( * ), - + NULLIF ( 44, - - 34 + 14 ) )
----
-63

query I rowsort
SELECT ALL 8 + 35 * + + 17
----
603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-81
SELECT 80 * ( + 80 ) * - COUNT( DISTINCT + 46 ) + + CAST( + 26 AS SIGNED )
----
-6374

skipif mysql # not compatible
query I rowsort label-81
SELECT 80 * ( + 80 ) * - COUNT ( DISTINCT + 46 ) + + CAST ( + 26 AS INTEGER )
----
-6374

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-82
SELECT + 5, + ( - CAST( NULL AS SIGNED ) ) + + 20 AS col1
----
5
NULL

skipif mysql # not compatible
query II rowsort label-82
SELECT + 5, + ( - CAST ( NULL AS INTEGER ) ) + + 20 AS col1
----
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT COUNT( * ) + ( + + 8 ) + - 60
----
-51

skipif mysql # not compatible
query I rowsort label-83
SELECT COUNT ( * ) + ( + + 8 ) + - 60
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT COUNT( * ) * SUM( ALL 26 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-84
SELECT COUNT ( * ) * SUM ( ALL 26 ) AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-85
SELECT ( + 27 ) + + 84 / + SUM( ALL - 63 ) * CAST( - 25 AS SIGNED ) - CAST( NULL AS SIGNED ) + - - 17 / + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-85
SELECT ( + 27 ) + + 84 / + SUM ( ALL - 63 ) * CAST ( - 25 AS INTEGER ) - CAST ( NULL AS INTEGER ) + - - 17 / + 90
----
NULL

query II rowsort
SELECT - 12 AS col2, 23 * - 63 * - 51
----
-12
73899

query I rowsort
SELECT 35 * - + ( + - NULLIF ( + ( 91 ), - + ( + + 63 ) ) ) AS col1
----
3185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-88
SELECT - 15 AS col0, 10 * - - ( + NULLIF ( + COALESCE ( COUNT( * ), - CAST( + ( + - 91 ) AS SIGNED ) - - 55 + 83 * - + 24, + 72 + - - 45 * + ( + - 68 ) ), - 30 * + 63 ) ) DIV - 82 + 48 + + 26 + - 55 * - CAST( + 15 AS SIGNED ) AS col1
----
-15
899

skipif mysql # not compatible
query II rowsort label-88
SELECT - 15 AS col0, 10 * - - ( + NULLIF ( + COALESCE ( COUNT ( * ), - CAST ( + ( + - 91 ) AS INTEGER ) - - 55 + 83 * - + 24, + 72 + - - 45 * + ( + - 68 ) ), - 30 * + 63 ) ) / - 82 + 48 + + 26 + - 55 * - CAST ( + 15 AS INTEGER ) AS col1
----
-15
899

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-89
SELECT DISTINCT 11 - + + 28 * - CAST( + COUNT( * ) AS SIGNED ) col2
----
39

skipif mysql # not compatible
query I rowsort label-89
SELECT DISTINCT 11 - + + 28 * - CAST ( + COUNT ( * ) AS INTEGER ) col2
----
39

query I rowsort
SELECT 54 + + 5 AS col0
----
59

query II rowsort
SELECT ALL 24 AS col0, + 59 * 54
----
24
3186

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-92
SELECT DISTINCT 75 AS col2, COUNT( ALL 69 ) DIV + 29
----
75
0

skipif mysql # not compatible
query II rowsort label-92
SELECT DISTINCT 75 AS col2, COUNT ( ALL 69 ) / + 29
----
75
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-93
SELECT CAST( + - ( + 65 ) AS SIGNED ) + - - 26 - + 4
----
-43

skipif mysql # not compatible
query I rowsort label-93
SELECT CAST ( + - ( + 65 ) AS INTEGER ) + - - 26 - + 4
----
-43

query II rowsort
SELECT 44 + 53, 23 AS col0
----
97
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-95
SELECT 79 * + 66 * - 51 DIV COUNT( * ) AS col0
----
-265914

skipif mysql # not compatible
query I rowsort label-95
SELECT 79 * + 66 * - 51 / COUNT ( * ) AS col0
----
-265914

query I rowsort
SELECT ( - - 61 ) + - 53
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-97
SELECT 89 - - - 42 AS col2, 62 * + ( - - COUNT( + + 83 ) )
----
47
62

skipif mysql # not compatible
query II rowsort label-97
SELECT 89 - - - 42 AS col2, 62 * + ( - - COUNT ( + + 83 ) )
----
47
62

onlyif mysql # DIV for integer division: 
query II rowsort label-98
SELECT ALL 90, + 10 DIV - 39 AS col0
----
90
0

skipif mysql # not compatible
query II rowsort label-98
SELECT ALL 90, + 10 / - 39 AS col0
----
90
0

onlyif mysql # DIV for integer division: 
query III rowsort label-99
SELECT - 91 AS col2, 28 + + 68 * - 1 col0, - - 87 DIV - 5 - + 3 * 88 col0
----
-91
-40
-281

skipif mysql # not compatible
query III rowsort label-99
SELECT - 91 AS col2, 28 + + 68 * - 1 col0, - - 87 / - 5 - + 3 * 88 col0
----
-91
-40
-281

query I rowsort
SELECT 5 * - 13
----
-65

query I rowsort
SELECT DISTINCT 97 * + 33
----
3201

query II rowsort
SELECT DISTINCT + 72 + + 55 AS col1, - 31
----
127
-31

query I rowsort
SELECT - 71 + 70 AS col1
----
-1

query I rowsort
SELECT ALL 41 * - 80 * - + 6
----
19680

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT DISTINCT + COUNT( * ) + - 21 + + 30
----
10

skipif mysql # not compatible
query I rowsort label-105
SELECT DISTINCT + COUNT ( * ) + - 21 + + 30
----
10

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-107
SELECT 98 + - CAST( 33 AS SIGNED ) col2
----
65

skipif mysql # not compatible
query I rowsort label-107
SELECT 98 + - CAST ( 33 AS INTEGER ) col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT + COUNT( * ) * + CASE - CASE NULLIF ( + + CASE WHEN NULL IS NOT NULL THEN COUNT( * ) ELSE NULL END, - - 22 / + ( + COUNT( * ) ) ) WHEN 47 THEN NULL WHEN + - 92 - - - 93 THEN - 78 ELSE NULL END WHEN 20 THEN + 8 ELSE NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-108
SELECT + COUNT ( * ) * + CASE - CASE NULLIF ( + + CASE WHEN NULL IS NOT NULL THEN COUNT ( * ) ELSE NULL END, - - 22 / + ( + COUNT ( * ) ) ) WHEN 47 THEN NULL WHEN + - 92 - - - 93 THEN - 78 ELSE NULL END WHEN 20 THEN + 8 ELSE NULL END + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-109
SELECT CAST( - NULLIF ( - 80, - + 95 + 12 * + 51 ) AS SIGNED ) * 25 * - - MAX( ALL 18 ) + + 1 + 13 * + 53 AS col0
----
36690

skipif mysql # not compatible
query I rowsort label-109
SELECT CAST ( - NULLIF ( - 80, - + 95 + 12 * + 51 ) AS INTEGER ) * 25 * - - MAX ( ALL 18 ) + + 1 + 13 * + 53 AS col0
----
36690

query I rowsort
SELECT ALL + 78 + + - 30
----
48

query I rowsort
SELECT ALL + 29 + + + 4
----
33

query I rowsort
SELECT 67 + 82
----
149

query I rowsort
SELECT 13 + 88 * + 36 - + + 96 + - ( 78 ) * - + 81
----
9403

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT ALL - - 6 * COUNT( * ) * 40 col2
----
240

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL - - 6 * COUNT ( * ) * 40 col2
----
240

query I rowsort
SELECT ALL + 68 - + 63 AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-116
SELECT DISTINCT - 77 AS col1, 42 / + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) - + 27 - 11
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-116
SELECT DISTINCT - 77 AS col1, 42 / + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) - + 27 - 11
----
-77
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-118
SELECT - 22 * - - CAST( - 88 AS SIGNED ) + - + 30 * - ( - 5 ) + - 20
----
1766

skipif mysql # not compatible
query I rowsort label-118
SELECT - 22 * - - CAST ( - 88 AS INTEGER ) + - + 30 * - ( - 5 ) + - 20
----
1766

onlyif mysql # aggregate syntax: 
query III rowsort label-119
SELECT 35 * - 94 AS col0, - 87, SUM( - - 55 ) AS col1
----
-3290
-87
55

skipif mysql # not compatible
query III rowsort label-119
SELECT 35 * - 94 AS col0, - 87, SUM ( - - 55 ) AS col1
----
-3290
-87
55

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT COUNT( ALL + - 67 ) * - + ( + 3 ) + + 34
----
31

skipif mysql # not compatible
query I rowsort label-120
SELECT COUNT ( ALL + - 67 ) * - + ( + 3 ) + + 34
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT COUNT( * ) * 32 * + + 75 + + ( + - 71 ) - 21 AS col0
----
2308

skipif mysql # not compatible
query I rowsort label-121
SELECT COUNT ( * ) * 32 * + + 75 + + ( + - 71 ) - 21 AS col0
----
2308

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT MIN( DISTINCT 20 ) * + COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-122
SELECT MIN ( DISTINCT 20 ) * + COUNT ( * ) AS col2
----
20

query II rowsort
SELECT DISTINCT 87 * - + 36 AS col2, NULLIF ( 48, - ( 18 ) + + 35 ) + + 91
----
-3132
139

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT ALL 99 * SUM( DISTINCT - 97 )
----
-9603

skipif mysql # not compatible
query I rowsort label-124
SELECT ALL 99 * SUM ( DISTINCT - 97 )
----
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT MAX( ALL 39 ) * - 64 AS col0
----
-2496

skipif mysql # not compatible
query I rowsort label-125
SELECT MAX ( ALL 39 ) * - 64 AS col0
----
-2496

onlyif mysql # aggregate syntax: 
query III rowsort label-126
SELECT ALL 92 * - + MIN( + - 29 ) AS col2, + ( + 39 ) AS col1, - 76 col0
----
2668
39
-76

skipif mysql # not compatible
query III rowsort label-126
SELECT ALL 92 * - + MIN ( + - 29 ) AS col2, + ( + 39 ) AS col1, - 76 col0
----
2668
39
-76

query I rowsort
SELECT 60 * - 45
----
-2700

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT ALL SUM( - 35 ) + - ( 73 )
----
-108

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL SUM ( - 35 ) + - ( 73 )
----
-108

query I rowsort
SELECT ALL 56 * - - 2 AS col2
----
112

query I rowsort
SELECT DISTINCT 15 + - - 83
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-132
SELECT DISTINCT 80 + + 34 + - 47 + - - CAST( COUNT( * ) AS SIGNED ) + + 29 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-132
SELECT DISTINCT 80 + + 34 + - 47 + - - CAST ( COUNT ( * ) AS INTEGER ) + + 29 AS col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-133
SELECT ALL COUNT( * ) + 71 AS col0, - 76 - - CAST( NULL AS SIGNED )
----
72
NULL

skipif mysql # not compatible
query II rowsort label-133
SELECT ALL COUNT ( * ) + 71 AS col0, - 76 - - CAST ( NULL AS INTEGER )
----
72
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-134
SELECT - SUM( ALL + 81 ), - 80 + 61 + + COUNT( * ) * - 17 + - 4 + - ( 84 ) - + 9 * - + ( + COALESCE ( + 24, COUNT( * ) DIV - 17 ) ) * COUNT( * ) AS col0
----
-81
92

skipif mysql # not compatible
query II rowsort label-134
SELECT - SUM ( ALL + 81 ), - 80 + 61 + + COUNT ( * ) * - 17 + - 4 + - ( 84 ) - + 9 * - + ( + COALESCE ( + 24, COUNT ( * ) / - 17 ) ) * COUNT ( * ) AS col0
----
-81
92

query I rowsort
SELECT + COALESCE ( + 6, + 24 ) * - 30 + + 45
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT 82 - + - SUM( + - 78 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-136
SELECT 82 - + - SUM ( + - 78 ) AS col2
----
4

query I rowsort
SELECT - 0 + 1 + + 48 + 7
----
56

query I rowsort
SELECT - + 55 * - 90
----
4950

query II rowsort
SELECT ALL + 49 * - - 18 AS col0, + 95 AS col1
----
882
95

query I rowsort
SELECT + 53 * + 30
----
1590

query I rowsort
SELECT - 27 + + + 83 * - - 14 AS col0
----
1135

query I rowsort
SELECT DISTINCT - 23 * - ( - ( + 64 ) ) + - 63 AS col2
----
-1535

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT + CASE + 12 WHEN + 94 * + 20 * + - 57 THEN NULL WHEN 76 THEN + COUNT( * ) * - 33 * + - 24 END * + 63 + 90 + + - 28 * - - 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-143
SELECT + CASE + 12 WHEN + 94 * + 20 * + - 57 THEN NULL WHEN 76 THEN + COUNT ( * ) * - 33 * + - 24 END * + 63 + 90 + + - 28 * - - 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT ALL + MAX( DISTINCT - 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-144
SELECT ALL + MAX ( DISTINCT - 29 ) AS col2
----
-29

query I rowsort
SELECT ALL + + NULLIF ( 2, - 93 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT DISTINCT + + COUNT( 4 ) * - + 43 * 65 - + 57
----
-2852

skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT + + COUNT ( 4 ) * - + 43 * 65 - + 57
----
-2852

query I rowsort
SELECT ALL + 53 * 96 AS col1
----
5088

query I rowsort
SELECT - 53 * - 36 - + - 11 * 62 AS col0
----
2590

query II rowsort
SELECT ALL + 80 col1, 17 AS col0
----
80
17

query I rowsort
SELECT ALL + 26 * - 41
----
-1066

query I rowsort
SELECT ALL + 53 * - 1
----
-53

query II rowsort
SELECT DISTINCT + 2 AS col1, 39 * - + 89 AS col1
----
2
-3471

onlyif mysql # aggregate syntax: 
query II rowsort label-153
SELECT + 19 AS col2, + COALESCE ( - 63, - 49, 40 + - NULLIF ( COUNT( * ), + - 92 * + 8 ) * 37 - COUNT( * ), - 30 * - + 43 - 72 ) AS col1
----
19
-63

skipif mysql # not compatible
query II rowsort label-153
SELECT + 19 AS col2, + COALESCE ( - 63, - 49, 40 + - NULLIF ( COUNT ( * ), + - 92 * + 8 ) * 37 - COUNT ( * ), - 30 * - + 43 - 72 ) AS col1
----
19
-63

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 9 + 50 col2
----
59

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-159
SELECT - NULLIF ( + 34, + + MAX( + - CAST( NULL AS SIGNED ) ) )
----
-34

skipif mysql # not compatible
query I rowsort label-159
SELECT - NULLIF ( + 34, + + MAX ( + - CAST ( NULL AS INTEGER ) ) )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT ALL COUNT( * ) + - COUNT( * ) + + - ( + COUNT( ALL + + 11 ) ) * + 34 * + 5 AS col0
----
-170

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL COUNT ( * ) + - COUNT ( * ) + + - ( + COUNT ( ALL + + 11 ) ) * + 34 * + 5 AS col0
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT - ( SUM( DISTINCT 28 ) ) + - MAX( DISTINCT - 34 ) * + 13 AS col2
----
414

skipif mysql # not compatible
query I rowsort label-161
SELECT - ( SUM ( DISTINCT 28 ) ) + - MAX ( DISTINCT - 34 ) * + 13 AS col2
----
414

query I rowsort
SELECT DISTINCT - 64 + - + 81
----
-145

query I rowsort
SELECT DISTINCT + 9 + - + 67 AS col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-164
SELECT ALL + 91 + 62 + - 6 DIV + 58
----
153

skipif mysql # not compatible
query I rowsort label-164
SELECT ALL + 91 + 62 + - 6 / + 58
----
153

query I rowsort
SELECT - 1 + 78 col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT - + CASE 24 WHEN COUNT( * ) + 45 * + 64 THEN - 20 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-166
SELECT - + CASE 24 WHEN COUNT ( * ) + 45 * + 64 THEN - 20 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT COALESCE ( 85, - + COUNT( * ), - - 10 ) col1
----
85

skipif mysql # not compatible
query I rowsort label-167
SELECT COALESCE ( 85, - + COUNT ( * ), - - 10 ) col1
----
85

query I rowsort
SELECT DISTINCT + 95 + - COALESCE ( + 15, 53 + + 84 ) + + ( + 98 ) * - + 34 col0
----
-3252

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT + 89 + + COUNT( DISTINCT + + 19 ) + - 13 * + + 35 AS col0
----
-365

skipif mysql # not compatible
query I rowsort label-169
SELECT + 89 + + COUNT ( DISTINCT + + 19 ) + - 13 * + + 35 AS col0
----
-365

query I rowsort
SELECT ALL + 62 + - 98 AS col0
----
-36

query I rowsort
SELECT ALL + 92 * 7
----
644

query I rowsort
SELECT + - 81 - + 62 AS col2
----
-143

query I rowsort
SELECT - NULLIF ( - 27, - 74 * + 94 ) col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-174
SELECT ALL CAST( NULL AS SIGNED ) - + MAX( DISTINCT - 17 ) * - AVG ( - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL CAST ( NULL AS INTEGER ) - + MAX ( DISTINCT - 17 ) * - AVG ( - 91 )
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 31, 28 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT DISTINCT + COUNT( + 40 ) - - COALESCE ( - ( NULLIF ( + 44, - - 64 / + + 86 ) ), - - 59 * + 55 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT + COUNT ( + 40 ) - - COALESCE ( - ( NULLIF ( + 44, - - 64 / + + 86 ) ), - - 59 * + 55 ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT + COUNT( * ) + + 94 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-177
SELECT + COUNT ( * ) + + 94 AS col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-178
SELECT 40 DIV 79 DIV + - 62 * 25 - 11 + - 96
----
-107

skipif mysql # not compatible
query I rowsort label-178
SELECT 40 / 79 / + - 62 * 25 - 11 + - 96
----
-107

onlyif mysql # DIV for integer division: 
query I rowsort label-179
SELECT + 5 * + 6 DIV - - 31
----
0

skipif mysql # not compatible
query I rowsort label-179
SELECT + 5 * + 6 / - - 31
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-180
SELECT + 14 - 58 * 91 AS col0, - ( + NULLIF ( - + 52, + 8 / NULLIF ( + - 53, + ( COUNT( * ) ) - + + 29 ) ) ) * - + COUNT( * ) + + 88 + - + 77
----
-5264
-41

skipif mysql # not compatible
query II rowsort label-180
SELECT + 14 - 58 * 91 AS col0, - ( + NULLIF ( - + 52, + 8 / NULLIF ( + - 53, + ( COUNT ( * ) ) - + + 29 ) ) ) * - + COUNT ( * ) + + 88 + - + 77
----
-5264
-41

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

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

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

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL + 16 / - + CAST ( NULL AS INTEGER ) col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-183
SELECT + + CAST ( NULL AS INTEGER ) + - + 0 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT DISTINCT 88 * + 41 * - - COUNT( * ) AS col2
----
3608

skipif mysql # not compatible
query I rowsort label-184
SELECT DISTINCT 88 * + 41 * - - COUNT ( * ) AS col2
----
3608

onlyif mysql # DIV for integer division: 
query I rowsort label-185
SELECT 58 * + + 66 * + 43 + + 84 + - 83 DIV - 59 AS col1
----
164689

skipif mysql # not compatible
query I rowsort label-185
SELECT 58 * + + 66 * + 43 + + 84 + - 83 / - 59 AS col1
----
164689

query I rowsort
SELECT ALL 23 * + 17 AS col2
----
391

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT + 36 DIV + 98 + 74 col0
----
74

skipif mysql # not compatible
query I rowsort label-187
SELECT + 36 / + 98 + 74 col0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-188
SELECT ALL CAST( NULL AS SIGNED ) * AVG ( DISTINCT - 51 ) + + 20 + 36 * + 48 * + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL CAST ( NULL AS INTEGER ) * AVG ( DISTINCT - 51 ) + + 20 + 36 * + 48 * + - 94
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-189
SELECT + 81 * - CAST( - 77 AS SIGNED ) / ( + - 12 ) + + - 95 * + - CAST( NULL AS SIGNED ) - 51 / + COALESCE ( - - 47, - - 90, - 10 ) * 77 + + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-189
SELECT + 81 * - CAST ( - 77 AS INTEGER ) / ( + - 12 ) + + - 95 * + - CAST ( NULL AS INTEGER ) - 51 / + COALESCE ( - - 47, - - 90, - 10 ) * 77 + + 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT DISTINCT 92 * + 56 * + 24 + + MAX( ALL - 33 )
----
123615

skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT 92 * + 56 * + 24 + + MAX ( ALL - 33 )
----
123615

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT NULLIF ( - MAX( - 46 ), + COALESCE ( - ( - 70 ), 70 * - - 80 ) + - MIN( + - 3 ) )
----
46

skipif mysql # not compatible
query I rowsort label-191
SELECT NULLIF ( - MAX ( - 46 ), + COALESCE ( - ( - 70 ), 70 * - - 80 ) + - MIN ( + - 3 ) )
----
46

query I rowsort
SELECT ALL 98 * ( + + 61 ) + - - 18 + + COALESCE ( 13, - + NULLIF ( + 2, - + 46 / - + 11 ), + 68 ) + + - 53 + 69 AS col0
----
6025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-193
SELECT DISTINCT + COUNT( * ) * + 90 * - 35 + - 30 + - 8 * CAST( SUM( ALL + - 66 ) AS SIGNED )
----
-2652

skipif mysql # not compatible
query I rowsort label-193
SELECT DISTINCT + COUNT ( * ) * + 90 * - 35 + - 30 + - 8 * CAST ( SUM ( ALL + - 66 ) AS INTEGER )
----
-2652

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + 87 * 83
----
7221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-199
SELECT SUM( DISTINCT - 50 ) + - + CAST( NULL AS SIGNED ) * COUNT( * ) AS col2, 84
----
NULL
84

skipif mysql # not compatible
query II rowsort label-199
SELECT SUM ( DISTINCT - 50 ) + - + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2, 84
----
NULL
84

query I rowsort
SELECT DISTINCT - - 75 - - 9
----
84

query II rowsort
SELECT - + ( - 19 ) AS col1, + ( 63 )
----
19
63

onlyif mysql # DIV for integer division: 
query I rowsort label-202
SELECT - 87 DIV - 83 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-202
SELECT - 87 / - 83 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-203
SELECT ALL + CASE ( + ( 20 ) ) WHEN CASE - 57 WHEN - + 78 THEN - 65 + + 30 END / + CASE 29 WHEN + 90 * 51 + - SUM( + 20 ) + 63 THEN + - CASE CASE + COUNT( * ) WHEN + MIN( ALL - - 87 ) * + 66 * + 74 THEN 79 END WHEN - 84 - - + 93 THEN NULL WHEN - - CASE + NULLIF ( + 77, + 9 ) WHEN 16 THEN + 74 / + COUNT( * ) + 85 + + ( - 26 ) + - + 40 * - 38 ELSE NULL END THEN + 49 * 62 + CAST( 30 AS SIGNED ) / - 5 END - - NULLIF ( 62, + 70 + - COUNT( - 49 ) * - 1 ) ELSE + 4 + + 35 END + 6 THEN COUNT( * ) WHEN 0 + + 27 THEN NULL ELSE CASE 86 WHEN NULLIF ( COUNT( - 79 ), - 23 ) * 81 THEN NULL WHEN 87 THEN - 49 - + 26 * - 91 ELSE COUNT( * ) END * - ( 5 * 33 ) END
----
-165

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL + CASE ( + ( 20 ) ) WHEN CASE - 57 WHEN - + 78 THEN - 65 + + 30 END / + CASE 29 WHEN + 90 * 51 + - SUM ( + 20 ) + 63 THEN + - CASE CASE + COUNT ( * ) WHEN + MIN ( ALL - - 87 ) * + 66 * + 74 THEN 79 END WHEN - 84 - - + 93 THEN NULL WHEN - - CASE + NULLIF ( + 77, + 9 ) WHEN 16 THEN + 74 / + COUNT ( * ) + 85 + + ( - 26 ) + - + 40 * - 38 ELSE NULL END THEN + 49 * 62 + CAST ( 30 AS INTEGER ) / - 5 END - - NULLIF ( 62, + 70 + - COUNT ( - 49 ) * - 1 ) ELSE + 4 + + 35 END + 6 THEN COUNT ( * ) WHEN 0 + + 27 THEN NULL ELSE CASE 86 WHEN NULLIF ( COUNT ( - 79 ), - 23 ) * 81 THEN NULL WHEN 87 THEN - 49 - + 26 * - 91 ELSE COUNT ( * ) END * - ( 5 * 33 ) END
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-204
SELECT + 53 DIV - ( + + 99 )
----
0

skipif mysql # not compatible
query I rowsort label-204
SELECT + 53 / - ( + + 99 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-205
SELECT - CASE - + 11 WHEN + 53 THEN + CAST( NULL AS DECIMAL ) + - 80 ELSE NULL END * - 66 * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-205
SELECT - CASE - + 11 WHEN + 53 THEN + CAST ( NULL AS REAL ) + - 80 ELSE NULL END * - 66 * - 27
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-206
SELECT DISTINCT - 39 DIV + 75, - 19 AS col2
----
0
-19

skipif mysql # not compatible
query II rowsort label-206
SELECT DISTINCT - 39 / + 75, - 19 AS col2
----
0
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-207
SELECT ALL - - 32 * + 26 AS col0, NULLIF ( 83, COUNT( * ) ) AS col1
----
832
83

skipif mysql # not compatible
query II rowsort label-207
SELECT ALL - - 32 * + 26 AS col0, NULLIF ( 83, COUNT ( * ) ) AS col1
----
832
83

query I rowsort
SELECT + 29 * 11
----
319

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT ALL - 89 * + COUNT( * ) * + 14 AS col1
----
-1246

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL - 89 * + COUNT ( * ) * + 14 AS col1
----
-1246

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT - - MIN( - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-210
SELECT - - MIN ( - 92 )
----
-92

query I rowsort
SELECT ALL ( - 92 ) AS col1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-212
SELECT ALL - 45 * - COUNT( * ) - - + 69 + + + ( + 58 ) * + 29 * - 32 + - - 19 + - + CASE CAST( NULL AS SIGNED ) WHEN 96 THEN NULL ELSE - 67 * - ( + ( 36 ) ) END * 24 AS col1
----
-111579

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL - 45 * - COUNT ( * ) - - + 69 + + + ( + 58 ) * + 29 * - 32 + - - 19 + - + CASE CAST ( NULL AS INTEGER ) WHEN 96 THEN NULL ELSE - 67 * - ( + ( 36 ) ) END * 24 AS col1
----
-111579

onlyif mysql # aggregate syntax: 
query II rowsort label-213
SELECT DISTINCT + SUM( ( - 37 ) ) * 68 AS col1, - 92
----
-2516
-92

skipif mysql # not compatible
query II rowsort label-213
SELECT DISTINCT + SUM ( ( - 37 ) ) * 68 AS col1, - 92
----
-2516
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT DISTINCT - - 90 + - MIN( + + 74 )
----
16

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT - - 90 + - MIN ( + + 74 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-215
SELECT ALL + + 28 * + + 0 * - COUNT( * ) - + SUM( ALL 92 ) + - + 87 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL + + 28 * + + 0 * - COUNT ( * ) - + SUM ( ALL 92 ) + - + 87 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 71 + - 97
----
-26

query II rowsort
SELECT DISTINCT - 5, - 98 + + - 10 + + 54 AS col1
----
-5
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-218
SELECT 90 DIV - + 32 * + COUNT( * ) - + + 92 * ( - 56 ) AS col2
----
5150

skipif mysql # not compatible
query I rowsort label-218
SELECT 90 / - + 32 * + COUNT ( * ) - + + 92 * ( - 56 ) AS col2
----
5150

query I rowsort
SELECT ALL 76 + + - 28 AS col1
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-220
SELECT 61 col0, + COUNT( DISTINCT - - 86 ) AS col1
----
61
1

skipif mysql # not compatible
query II rowsort label-220
SELECT 61 col0, + COUNT ( DISTINCT - - 86 ) AS col1
----
61
1

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

skipif mysql # not compatible
query I rowsort label-221
SELECT 99 * - COUNT ( * )
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-222
SELECT ALL 70 + 86 DIV NULLIF ( - - 81, + - COUNT( * ) * - 14 + - + 85 + + ( - 81 ) + - 44 ) DIV + - MAX( + 10 ) + - - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL 70 + 86 / NULLIF ( - - 81, + - COUNT ( * ) * - 14 + - + 85 + + ( - 81 ) + - 44 ) / + - MAX ( + 10 ) + - - COUNT ( * )
----
71

query II rowsort
SELECT 69, 77 AS col0
----
69
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT ALL 40 + + - 83 + MIN( ALL 44 ) * + 18 + + ( - 85 ) - - 20
----
684

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL 40 + + - 83 + MIN ( ALL 44 ) * + 18 + + ( - 85 ) - - 20
----
684

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

query I rowsort
SELECT ALL - 64 + - 11 - + 58 AS col1
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT 89 * ( - SUM( DISTINCT - 93 ) ) AS col1
----
8277

skipif mysql # not compatible
query I rowsort label-228
SELECT 89 * ( - SUM ( DISTINCT - 93 ) ) AS col1
----
8277

onlyif mysql # aggregate syntax: 
query II rowsort label-229
SELECT ALL 34 + + - COUNT( * ) + 27 AS col0, 38 AS col2
----
60
38

skipif mysql # not compatible
query II rowsort label-229
SELECT ALL 34 + + - COUNT ( * ) + 27 AS col0, 38 AS col2
----
60
38

onlyif mysql # aggregate syntax: 
query II rowsort label-230
SELECT DISTINCT - 27 AS col2, - MIN( + COALESCE ( 18, - + NULLIF ( 22, + - 47 + + 98 ) ) ) AS col2
----
-27
-18

skipif mysql # not compatible
query II rowsort label-230
SELECT DISTINCT - 27 AS col2, - MIN ( + COALESCE ( 18, - + NULLIF ( 22, + - 47 + + 98 ) ) ) AS col2
----
-27
-18

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

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT - COUNT ( * ) + - 1 AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-232
SELECT 14 - + 28 DIV + 21 + + 16 + - - 3 DIV 67 * - + 33
----
29

skipif mysql # not compatible
query I rowsort label-232
SELECT 14 - + 28 / + 21 + + 16 + - - 3 / 67 * - + 33
----
29

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

skipif mysql # not compatible
query I rowsort label-233
SELECT DISTINCT - SUM ( - - 68 )
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-234
SELECT CAST( - AVG ( - 31 ) AS SIGNED ) + - 33 * + - 74
----
2473

skipif mysql # not compatible
query I rowsort label-234
SELECT CAST ( - AVG ( - 31 ) AS INTEGER ) + - 33 * + - 74
----
2473

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT COUNT( 45 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-235
SELECT COUNT ( 45 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT ALL + + 85 - 7 * COUNT( * ) * + 77 col1
----
-454

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL + + 85 - 7 * COUNT ( * ) * + 77 col1
----
-454

onlyif mysql # DIV for integer division: 
query I rowsort label-237
SELECT + 10 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-237
SELECT + 10 / + 50
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-238
SELECT ALL 80 DIV + 69
----
1

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL 80 / + 69
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT - - MAX( DISTINCT - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-239
SELECT - - MAX ( DISTINCT - 35 )
----
-35

query I rowsort
SELECT DISTINCT + NULLIF ( - 31, + NULLIF ( - 85, + 17 ) ) AS col1
----
-31

query I rowsort
SELECT ALL 7 - 92
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-242
SELECT COUNT( * ) * - 2 - + - 32 AS col1, 52
----
30
52

skipif mysql # not compatible
query II rowsort label-242
SELECT COUNT ( * ) * - 2 - + - 32 AS col1, 52
----
30
52

query I rowsort
SELECT ALL - - 80 * - + 58 * + 91 AS col0
----
-422240

query I rowsort
SELECT 67 + - 89 col1
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-245
SELECT + ( - + MIN( 19 ) ) + + 87 + + 37 AS col2, 65 col1
----
105
65

skipif mysql # not compatible
query II rowsort label-245
SELECT + ( - + MIN ( 19 ) ) + + 87 + + 37 AS col2, 65 col1
----
105
65

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT - 96 * SUM( ALL - 45 ) AS col2
----
4320

skipif mysql # not compatible
query I rowsort label-246
SELECT - 96 * SUM ( ALL - 45 ) AS col2
----
4320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-247
SELECT - COUNT( * ) - COUNT( * ) - - - 41 * CAST( 93 AS SIGNED ) col1, 31 * + 19 * - - 27 * + 3 AS col2
----
-3815
47709

skipif mysql # not compatible
query II rowsort label-247
SELECT - COUNT ( * ) - COUNT ( * ) - - - 41 * CAST ( 93 AS INTEGER ) col1, 31 * + 19 * - - 27 * + 3 AS col2
----
-3815
47709

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT - COUNT( ALL + 21 ) + + 93 - + 91 * + 59 AS col2
----
-5277

skipif mysql # not compatible
query I rowsort label-248
SELECT - COUNT ( ALL + 21 ) + + 93 - + 91 * + 59 AS col2
----
-5277

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

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

query I rowsort
SELECT ALL + 94 + - 57 * - - 54 * 37
----
-113792

onlyif mysql # aggregate syntax: 
query II rowsort label-251
SELECT 44 + + + COUNT( * ) col0, 30 col0
----
45
30

skipif mysql # not compatible
query II rowsort label-251
SELECT 44 + + + COUNT ( * ) col0, 30 col0
----
45
30

query I rowsort
SELECT 80 - + 18
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT ALL + 68 * + ( + MIN( + + ( + 37 ) ) ) AS col2
----
2516

skipif mysql # not compatible
query I rowsort label-253
SELECT ALL + 68 * + ( + MIN ( + + ( + 37 ) ) ) AS col2
----
2516

onlyif mysql # aggregate syntax: 
query II rowsort label-254
SELECT COUNT( * ) AS col0, 40 * + + 50
----
1
2000

skipif mysql # not compatible
query II rowsort label-254
SELECT COUNT ( * ) AS col0, 40 * + + 50
----
1
2000

onlyif mysql # DIV for integer division: 
query I rowsort label-255
SELECT + 28 DIV - 10 + + 75
----
73

skipif mysql # not compatible
query I rowsort label-255
SELECT + 28 / - 10 + + 75
----
73

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

skipif mysql # not compatible
query II rowsort label-256
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, 11
----
NULL
11

query I rowsort
SELECT + 22 * 8 col0
----
176

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-259
SELECT DISTINCT COUNT( * ) * 61 DIV - 45 * + + COUNT( * ) - - 85 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-259
SELECT DISTINCT COUNT ( * ) * 61 / - 45 * + + COUNT ( * ) - - 85 AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-260
SELECT ALL + 97 * - CAST( NULL AS DECIMAL ) - - + COALESCE ( + 62, - + ( + COUNT( * ) ) - - - 66 ) * - NULLIF ( - NULLIF ( + 97, - 28 * - 27 * - 25 ), - 66 * 74 * - 82 * - 78 - - 53 * + COUNT( * ) ) / 2
----
NULL

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL + 97 * - CAST ( NULL AS REAL ) - - + COALESCE ( + 62, - + ( + COUNT ( * ) ) - - - 66 ) * - NULLIF ( - NULLIF ( + 97, - 28 * - 27 * - 25 ), - 66 * 74 * - 82 * - 78 - - 53 * + COUNT ( * ) ) / 2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-261
SELECT MIN ( + + 17 )
----
17

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

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

query II rowsort
SELECT DISTINCT + 53 AS col0, - 68
----
53
-68

query I rowsort
SELECT ALL 78 * - 94 + + 51 AS col0
----
-7281

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT + - 94 + - + 12 - - + MIN( DISTINCT - 69 )
----
-175

skipif mysql # not compatible
query I rowsort label-265
SELECT + - 94 + - + 12 - - + MIN ( DISTINCT - 69 )
----
-175

onlyif mysql # aggregate syntax: 
query II rowsort label-266
SELECT + 59 AS col1, ( + COUNT( * ) ) * + + 78 + 21
----
59
99

skipif mysql # not compatible
query II rowsort label-266
SELECT + 59 AS col1, ( + COUNT ( * ) ) * + + 78 + 21
----
59
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-267
SELECT ALL + + 91, + COALESCE ( CAST( NULL AS SIGNED ), - - 6, 72 + - 98 ) AS col0
----
91
6

skipif mysql # not compatible
query II rowsort label-267
SELECT ALL + + 91, + COALESCE ( CAST ( NULL AS INTEGER ), - - 6, 72 + - 98 ) AS col0
----
91
6

query I rowsort
SELECT + - 50 - + + 97
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-269
SELECT + - 44 DIV 5 * 26 + + + 10 - - 73 AS col1
----
-125

skipif mysql # not compatible
query I rowsort label-269
SELECT + - 44 / 5 * 26 + + + 10 - - 73 AS col1
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT - 32 * + 99 + + - 76 + - 36 * - COUNT( * ) AS col2
----
-3208

skipif mysql # not compatible
query I rowsort label-270
SELECT - 32 * + 99 + + - 76 + - 36 * - COUNT ( * ) AS col2
----
-3208

query II rowsort
SELECT 13, 2 AS col0
----
13
2

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

skipif mysql # not compatible
query II rowsort label-272
SELECT + COUNT ( * ), 83 col0
----
1
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-273
SELECT ALL COALESCE ( + + 13, 56 * + COUNT( DISTINCT - 8 ) * - 10 ) DIV + + 15 * + 92 * - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL COALESCE ( + + 13, 56 * + COUNT ( DISTINCT - 8 ) * - 10 ) / + + 15 * + 92 * - 58 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT ALL - MIN( - - 12 ) + - 12 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL - MIN ( - - 12 ) + - 12 AS col0
----
-24

query I rowsort
SELECT + - 92 + 7 + - 80
----
-165

query I rowsort
SELECT DISTINCT + 87 + - - 70 * - 98 col2
----
-6773

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT DISTINCT + COUNT( * ) + - 8
----
-7

skipif mysql # not compatible
query I rowsort label-277
SELECT DISTINCT + COUNT ( * ) + - 8
----
-7

query I rowsort
SELECT - + ( + 80 ) * + - 69 + - 11 * 74
----
4706

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT ALL + SUM( ALL + 66 ) + 44
----
110

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL + SUM ( ALL + 66 ) + 44
----
110

query I rowsort
SELECT DISTINCT - 4 + 63
----
59

query I rowsort
SELECT + 82 * - - 63 AS col2
----
5166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-282
SELECT DISTINCT CASE - - 34 WHEN + COUNT( * ) * - 48 + + 57 THEN NULL WHEN + CAST( - SUM( ALL - + 28 ) AS SIGNED ) THEN - 89 * - 54 * + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-282
SELECT DISTINCT CASE - - 34 WHEN + COUNT ( * ) * - 48 + + 57 THEN NULL WHEN + CAST ( - SUM ( ALL - + 28 ) AS INTEGER ) THEN - 89 * - 54 * + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 23 + + 63
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT ALL ( + + ( + + CASE - - COUNT( * ) WHEN - 62 + + 32 + - CASE 33 WHEN + 96 THEN - 32 WHEN - 75 / + 92 + - + 62 THEN NULL ELSE NULL END + - + 80 THEN NULL WHEN 85 THEN NULL ELSE + - 15 END ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-284
SELECT ALL ( + + ( + + CASE - - COUNT ( * ) WHEN - 62 + + 32 + - CASE 33 WHEN + 96 THEN - 32 WHEN - 75 / + 92 + - + 62 THEN NULL ELSE NULL END + - + 80 THEN NULL WHEN 85 THEN NULL ELSE + - 15 END ) ) AS col0
----
-15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT ALL + NULLIF ( + + COUNT( * ), + 33 + - 57 + 57 + - 37 - + - SUM( + ( + 36 ) ) * + - MIN( ALL - 83 ) * - 64 * 88 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-286
SELECT ALL + NULLIF ( + + COUNT ( * ), + 33 + - 57 + 57 + - 37 - + - SUM ( + ( + 36 ) ) * + - MIN ( ALL - 83 ) * - 64 * 88 ) AS col0
----
1

query I rowsort
SELECT + 98 * + 69 * 38 - + + 91 * 26 * + - 56
----
389452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-288
SELECT - 22 * - COUNT( ALL CAST( NULL AS SIGNED ) ) * - 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-288
SELECT - 22 * - COUNT ( ALL CAST ( NULL AS INTEGER ) ) * - 37 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-289
SELECT CAST( + - COUNT( * ) AS SIGNED ) / + - 89 * + + CASE + 82 WHEN - 99 + 39 THEN + 36 WHEN - 84 / + - 80 * - + COUNT( * ) - - 16 - ( - 55 ) THEN - + 85 END + 4 * + 5 - + 10 + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-289
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) / + - 89 * + + CASE + 82 WHEN - 99 + 39 THEN + 36 WHEN - 84 / + - 80 * - + COUNT ( * ) - - 16 - ( - 55 ) THEN - + 85 END + 4 * + 5 - + 10 + + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-290
SELECT ( MAX( DISTINCT 46 ) ) AS col0, 52 AS col2
----
46
52

skipif mysql # not compatible
query II rowsort label-290
SELECT ( MAX ( DISTINCT 46 ) ) AS col0, 52 AS col2
----
46
52

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

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

query I rowsort
SELECT ALL + 53 * + ( + 84 ) - - 50
----
4502

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-293
SELECT DISTINCT + ( + + 62 ) * 41 / - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-293
SELECT DISTINCT + ( + + 62 ) * 41 / - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-294
SELECT DISTINCT + 47 * - - CAST( + + 75 AS SIGNED ) * + 34
----
119850

skipif mysql # not compatible
query I rowsort label-294
SELECT DISTINCT + 47 * - - CAST ( + + 75 AS INTEGER ) * + 34
----
119850

query II rowsort
SELECT ALL + 29 * + 16 AS col0, 92 AS col1
----
464
92

query I rowsort
SELECT DISTINCT - 74 * 35 * + 76 AS col1
----
-196840

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT - - 65 - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-297
SELECT - - 65 - COUNT ( * )
----
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT SUM( ALL + 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-299
SELECT SUM ( ALL + 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT + COUNT( * ) - MIN( 23 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-300
SELECT + COUNT ( * ) - MIN ( 23 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT + + CASE 95 WHEN + + 18 * - + ( COUNT( 56 ) ) * + - 10 THEN - 2 END * - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-301
SELECT + + CASE 95 WHEN + + 18 * - + ( COUNT ( 56 ) ) * + - 10 THEN - 2 END * - 27 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 30 * + 42 * + 18 AS col1
----
22680

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT DISTINCT + ( COALESCE ( - - 82, 16, - - COUNT( * ) ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-303
SELECT DISTINCT + ( COALESCE ( - - 82, 16, - - COUNT ( * ) ) ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT ALL 13 * - - MAX( ALL - 97 ) + - NULLIF ( - - ( - ( + + COUNT( * ) ) ), 0 )
----
-1260

skipif mysql # not compatible
query I rowsort label-304
SELECT ALL 13 * - - MAX ( ALL - 97 ) + - NULLIF ( - - ( - ( + + COUNT ( * ) ) ), 0 )
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT ALL MAX( DISTINCT + + 3 ) * - 1 + 18 + - - COUNT( * ) + - - COALESCE ( + - 67, 89 ) + + COALESCE ( + 73, - 79 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL MAX ( DISTINCT + + 3 ) * - 1 + 18 + - - COUNT ( * ) + - - COALESCE ( + - 67, 89 ) + + COALESCE ( + 73, - 79 ) AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-306
SELECT ALL NULLIF ( - 4, - COALESCE ( - - 31, - 17 * - - ( + 20 ) * 37 + + COALESCE ( - 44, + 89, + - 1, - COALESCE ( + 94, + 31 ) + 28 + ( + 89 ) * - 69 ) * 40 + + 96 + + COUNT( * ) + - - CAST( NULL AS DECIMAL ) ) ) col2
----
-4

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL NULLIF ( - 4, - COALESCE ( - - 31, - 17 * - - ( + 20 ) * 37 + + COALESCE ( - 44, + 89, + - 1, - COALESCE ( + 94, + 31 ) + 28 + ( + 89 ) * - 69 ) * 40 + + 96 + + COUNT ( * ) + - - CAST ( NULL AS REAL ) ) ) col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT ALL 14 + - COUNT( + 41 ) col0
----
13

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL 14 + - COUNT ( + 41 ) col0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-308
SELECT - 84 + - COUNT( * ) - + COUNT( * ) - 71 - 33 DIV 12 AS col2
----
-159

skipif mysql # not compatible
query I rowsort label-308
SELECT - 84 + - COUNT ( * ) - + COUNT ( * ) - 71 - 33 / 12 AS col2
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-309
SELECT + CAST( - + 37 AS SIGNED ) + - + 64 - - + COUNT( * ) AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-309
SELECT + CAST ( - + 37 AS INTEGER ) + - + 64 - - + COUNT ( * ) AS col1
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-310
SELECT ALL 70 + - - ( + + 51 ) DIV 71
----
70

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL 70 + - - ( + + 51 ) / 71
----
70

query I rowsort
SELECT + 35 * + 14
----
490

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-312
SELECT + 52 + 13 DIV - + 58 * - + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-312
SELECT + 52 + 13 / - + 58 * - + COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT ALL 58 - - + COUNT( DISTINCT + 60 )
----
59

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL 58 - - + COUNT ( DISTINCT + 60 )
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-314
SELECT DISTINCT 76 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-314
SELECT DISTINCT 76 / - 86
----
0

query I rowsort
SELECT ALL + 59 - + 9 AS col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-316
SELECT 5 - - COALESCE ( CAST( 79 AS SIGNED ), - 56, - 93 ) - 22
----
62

skipif mysql # not compatible
query I rowsort label-316
SELECT 5 - - COALESCE ( CAST ( 79 AS INTEGER ), - 56, - 93 ) - 22
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-317
SELECT CASE - + 76 WHEN + 7 THEN - - 30 END + + - 8 * ( - - 71 ) + COUNT( * ) AS col2, + 34 DIV 84
----
NULL
0

skipif mysql # not compatible
query II rowsort label-317
SELECT CASE - + 76 WHEN + 7 THEN - - 30 END + + - 8 * ( - - 71 ) + COUNT ( * ) AS col2, + 34 / 84
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-318
SELECT DISTINCT - CASE + ( - 33 ) WHEN + 73 * - 17 + - 53 + + COUNT( * ) + - - SUM( DISTINCT + 32 ) + 87 THEN + - 86 + + + 57 + - MIN( - 52 ) * - ( ( - CASE + AVG ( DISTINCT + + 69 ) WHEN 71 THEN - MAX( - 36 ) + - 10 + 71 * - 57 * - AVG ( - CAST( NULL AS SIGNED ) ) ELSE + 80 * 31 + + 42 * - 10 - 6 + - - 8 END ) ) * + COUNT( * ) + + 70 * - 44 - + ( - COUNT( * ) ) + + - 20 * 57 * 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT - CASE + ( - 33 ) WHEN + 73 * - 17 + - 53 + + COUNT ( * ) + - - SUM ( DISTINCT + 32 ) + 87 THEN + - 86 + + + 57 + - MIN ( - 52 ) * - ( ( - CASE + AVG ( DISTINCT + + 69 ) WHEN 71 THEN - MAX ( - 36 ) + - 10 + 71 * - 57 * - AVG ( - CAST ( NULL AS INTEGER ) ) ELSE + 80 * 31 + + 42 * - 10 - 6 + - - 8 END ) ) * + COUNT ( * ) + + 70 * - 44 - + ( - COUNT ( * ) ) + + - 20 * 57 * 29 END
----
NULL

query I rowsort
SELECT ALL - CASE - 47 WHEN - 40 THEN NULL WHEN ( - ( + - 8 ) ) THEN + + AVG ( ALL + - 3 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT ALL - MIN( ALL + 49 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-320
SELECT ALL - MIN ( ALL + 49 ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT - 93 * - NULLIF ( 46, + 54 + + 23 + - - 84 * + 87 + + COUNT( * ) ) + + 96
----
4374

skipif mysql # not compatible
query I rowsort label-321
SELECT - 93 * - NULLIF ( 46, + 54 + + 23 + - - 84 * + 87 + + COUNT ( * ) ) + + 96
----
4374

query I rowsort
SELECT ALL + 97 * - 21
----
-2037

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

skipif mysql # not compatible
query I rowsort label-323
SELECT 29 / + COUNT ( * ) AS col0
----
29

query I rowsort
SELECT 32 + - + 82 AS col1
----
-50

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-326
SELECT + 66 DIV - MIN( DISTINCT 40 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-326
SELECT + 66 / - MIN ( DISTINCT 40 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT - COALESCE ( - - 12, + 55 * 73 + - COUNT( - 56 ) * COUNT( * ) ) + - 80 * + 47
----
-3772

skipif mysql # not compatible
query I rowsort label-327
SELECT - COALESCE ( - - 12, + 55 * 73 + - COUNT ( - 56 ) * COUNT ( * ) ) + - 80 * + 47
----
-3772

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

query I rowsort
SELECT + 49 * 53 + + - 35 AS col1
----
2562

query I rowsort
SELECT DISTINCT + 31 + + + 65 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT ALL - COUNT( DISTINCT 62 ) * + 30
----
-30

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL - COUNT ( DISTINCT 62 ) * + 30
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-332
SELECT ALL + - COUNT( * ) + 47 + + + 82 DIV + + 78 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL + - COUNT ( * ) + 47 + + + 82 / + + 78 AS col1
----
47

query I rowsort
SELECT DISTINCT 41 + 50
----
91

query II rowsort
SELECT ALL - - 46 col2, + 73 + - 58 + - 61
----
46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT - 15 + + COUNT( * ) * + 40 + 7 + 27 * + 29 * 8 AS col2
----
6296

skipif mysql # not compatible
query I rowsort label-335
SELECT - 15 + + COUNT ( * ) * + 40 + 7 + 27 * + 29 * 8 AS col2
----
6296

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT DISTINCT + 70 + - 80 * + 41 + - COUNT( * )
----
-3211

skipif mysql # not compatible
query I rowsort label-336
SELECT DISTINCT + 70 + - 80 * + 41 + - COUNT ( * )
----
-3211

query II rowsort
SELECT ALL - 90 AS col2, - 29 AS col0
----
-90
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT - MAX( - 52 )
----
52

skipif mysql # not compatible
query I rowsort label-338
SELECT - MAX ( - 52 )
----
52

query II rowsort
SELECT ALL 73 col2, 54 * 71
----
73
3834

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

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

query I rowsort
SELECT - 73 - + 13 + 41 + - + 83 AS col1
----
-128

query I rowsort
SELECT 83 - + 87 + - + 87 + 60 * 64
----
3749

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

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

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

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

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

query I rowsort
SELECT ALL + 55 * + 10
----
550

query I rowsort
SELECT 82 - - - 22 AS col0
----
60

query I rowsort
SELECT ALL - 73 * - 30
----
2190

query I rowsort
SELECT ALL 23 * 19
----
437

query I rowsort
SELECT DISTINCT 70 * + 71
----
4970

onlyif mysql # DIV for integer division: 
query I rowsort label-351
SELECT 72 DIV - - 38
----
1

skipif mysql # not compatible
query I rowsort label-351
SELECT 72 / - - 38
----
1

query II rowsort
SELECT 8 * + - 29 * + ( - 83 ) col1, - 86 * - 33 AS col1
----
19256
2838

query I rowsort
SELECT ALL 5 - + ( - 33 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT ( + MAX( ALL 93 ) ) + + - 73
----
20

skipif mysql # not compatible
query I rowsort label-354
SELECT ( + MAX ( ALL 93 ) ) + + - 73
----
20

query I rowsort
SELECT 98 * ( - 93 ) * + 64 * - 84 AS col2
----
48996864

onlyif mysql # aggregate syntax: 
query II rowsort label-356
SELECT DISTINCT 92 * + 39 * + 34 * - 67 AS col0, COUNT( * )
----
-8173464
1

skipif mysql # not compatible
query II rowsort label-356
SELECT DISTINCT 92 * + 39 * + 34 * - 67 AS col0, COUNT ( * )
----
-8173464
1

query I rowsort
SELECT ALL - 74 * - ( - 12 ) AS col1
----
-888

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-359
SELECT ALL 21 DIV 49, - 53 * + - 13 + ( 80 ) AS col1
----
0
769

skipif mysql # not compatible
query II rowsort label-359
SELECT ALL 21 / 49, - 53 * + - 13 + ( 80 ) AS col1
----
0
769

query I rowsort
SELECT ALL ( - + 39 ) + + + 12 AS col1
----
-27

query I rowsort
SELECT ALL ( - + 94 ) * - 64 AS col1
----
6016

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT MIN( DISTINCT - + 40 ) + + 22
----
-18

skipif mysql # not compatible
query I rowsort label-362
SELECT MIN ( DISTINCT - + 40 ) + + 22
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-363
SELECT + - NULLIF ( - ( COUNT( * ) ), 78 ), - 87 + - 35 AS col2
----
1
-122

skipif mysql # not compatible
query II rowsort label-363
SELECT + - NULLIF ( - ( COUNT ( * ) ), 78 ), - 87 + - 35 AS col2
----
1
-122

onlyif mysql # aggregate syntax: 
query II rowsort label-364
SELECT ALL - + MIN( + + 96 ) AS col2, 57 * + 57 + + + COUNT( * ) AS col1
----
-96
3250

skipif mysql # not compatible
query II rowsort label-364
SELECT ALL - + MIN ( + + 96 ) AS col2, 57 * + 57 + + + COUNT ( * ) AS col1
----
-96
3250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-365
SELECT + - CAST( - 88 AS SIGNED ) AS col1, + COUNT( * ) * 30
----
88
30

skipif mysql # not compatible
query II rowsort label-365
SELECT + - CAST ( - 88 AS INTEGER ) AS col1, + COUNT ( * ) * 30
----
88
30

query I rowsort
SELECT + 54 + 43 * - 72
----
-3042

onlyif mysql # DIV for integer division: 
query II rowsort label-367
SELECT 46 * 0 DIV + 46 + + + 43 AS col0, 5
----
43
5

skipif mysql # not compatible
query II rowsort label-367
SELECT 46 * 0 / + 46 + + + 43 AS col0, 5
----
43
5

query I rowsort
SELECT NULLIF ( + 14, 67 * 27 * 3 ) AS col0
----
14

query I rowsort
SELECT DISTINCT - - 21 + 5 * 19 AS col0
----
116

query I rowsort
SELECT ALL - 33 * + - 65
----
2145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-371
SELECT 22 * + + COUNT( * ) - - NULLIF ( ( - 83 ), + - COALESCE ( - - 46, - SUM( ALL - - 7 ), CAST( + 50 AS SIGNED ) + COUNT( * ) ) * + 57 )
----
-61

skipif mysql # not compatible
query I rowsort label-371
SELECT 22 * + + COUNT ( * ) - - NULLIF ( ( - 83 ), + - COALESCE ( - - 46, - SUM ( ALL - - 7 ), CAST ( + 50 AS INTEGER ) + COUNT ( * ) ) * + 57 )
----
-61

query I rowsort
SELECT DISTINCT - ( + NULLIF ( + 51, 93 ) )
----
-51

query I rowsort
SELECT DISTINCT + 99 + + ( + 44 )
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT ALL 74 + - - COUNT( * ) + + + 90 AS col0
----
165

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL 74 + - - COUNT ( * ) + + + 90 AS col0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT DISTINCT - COUNT( + - 10 ) * - 54 * - ( + 64 ) * 20 * + - 2 + 62 col1
----
138302

skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT - COUNT ( + - 10 ) * - 54 * - ( + 64 ) * 20 * + - 2 + 62 col1
----
138302

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT - MAX( DISTINCT + 12 ) * + 15 * 32 * 41 + 84
----
-236076

skipif mysql # not compatible
query I rowsort label-376
SELECT - MAX ( DISTINCT + 12 ) * + 15 * 32 * 41 + 84
----
-236076

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-377
SELECT ALL - + CASE + - COALESCE ( - + 76, + CAST( NULL AS SIGNED ) ) WHEN - 84 THEN 75 * + + 10 - - ( - - 65 ) WHEN 25 * - 57 THEN - 79 + - + COUNT( ALL - 88 ) END / - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL - + CASE + - COALESCE ( - + 76, + CAST ( NULL AS INTEGER ) ) WHEN - 84 THEN 75 * + + 10 - - ( - - 65 ) WHEN 25 * - 57 THEN - 79 + - + COUNT ( ALL - 88 ) END / - 26
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-378
SELECT + 71 + - + 23 DIV COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-378
SELECT + 71 + - + 23 / COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT DISTINCT + + 41 - + COUNT( ALL - 97 )
----
40

skipif mysql # not compatible
query I rowsort label-379
SELECT DISTINCT + + 41 - + COUNT ( ALL - 97 )
----
40

query I rowsort
SELECT 28 * + - 91 * 16 AS col2
----
-40768

query I rowsort
SELECT ALL - 84 * - 2 AS col1
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-382
SELECT ALL + 25 - + 34 - 25 + + 63 DIV - 1 col0
----
-97

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL + 25 - + 34 - 25 + + 63 / - 1 col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT DISTINCT - - NULLIF ( - 40, - 52 ) * + 87 + + + COUNT( * )
----
-3479

skipif mysql # not compatible
query I rowsort label-383
SELECT DISTINCT - - NULLIF ( - 40, - 52 ) * + 87 + + + COUNT ( * )
----
-3479

query I rowsort
SELECT ALL - 77 - - 67
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-385
SELECT 53 AS col0, 32 * 96 + + COUNT( * ) col0
----
53
3073

skipif mysql # not compatible
query II rowsort label-385
SELECT 53 AS col0, 32 * 96 + + COUNT ( * ) col0
----
53
3073

query I rowsort
SELECT + 58 * + 88
----
5104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-387
SELECT ALL COALESCE ( + CAST( NULL AS SIGNED ), + 40 * 4 ) AS col2
----
160

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL COALESCE ( + CAST ( NULL AS INTEGER ), + 40 * 4 ) AS col2
----
160

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

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT - 63 + + - COUNT( * ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-389
SELECT - 63 + + - COUNT ( * ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT DISTINCT MIN( DISTINCT + - 52 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-390
SELECT DISTINCT MIN ( DISTINCT + - 52 ) AS col2
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-391
SELECT ALL NULLIF ( + ( + + CAST( - 63 AS SIGNED ) ), + 10 + - 70 ) AS col2, - 73 * + CASE + ( + - ( 16 ) ) WHEN 85 * - 27 THEN NULL WHEN + + NULLIF ( 11, + - 91 ) + + - 11 THEN - ( - CASE + + 60 WHEN - 33 THEN - 98 WHEN 22 + 12 THEN NULL WHEN - + COUNT( * ) THEN NULL ELSE NULL END ) ELSE + 34 END * + 20 + + COALESCE ( - NULLIF ( + 24, 52 * + CASE - - 30 WHEN - CAST( NULL AS DECIMAL ) + - 99 THEN NULL ELSE + 14 END ), + MIN( + - 48 ) )
----
-63
-49664

skipif mysql # not compatible
query II rowsort label-391
SELECT ALL NULLIF ( + ( + + CAST ( - 63 AS INTEGER ) ), + 10 + - 70 ) AS col2, - 73 * + CASE + ( + - ( 16 ) ) WHEN 85 * - 27 THEN NULL WHEN + + NULLIF ( 11, + - 91 ) + + - 11 THEN - ( - CASE + + 60 WHEN - 33 THEN - 98 WHEN 22 + 12 THEN NULL WHEN - + COUNT ( * ) THEN NULL ELSE NULL END ) ELSE + 34 END * + 20 + + COALESCE ( - NULLIF ( + 24, 52 * + CASE - - 30 WHEN - CAST ( NULL AS REAL ) + - 99 THEN NULL ELSE + 14 END ), + MIN ( + - 48 ) )
----
-63
-49664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-392
SELECT DISTINCT + COUNT( + 59 ) + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - + ( 73 ) * + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT + COUNT ( + 59 ) + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - + ( 73 ) * + - 53
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-394
SELECT DISTINCT - COUNT( * ) + + 60 DIV + + 12
----
4

skipif mysql # not compatible
query I rowsort label-394
SELECT DISTINCT - COUNT ( * ) + + 60 / + + 12
----
4

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

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

query I rowsort
SELECT - 3 + + 59 + + CASE + + 14 WHEN - + ( - AVG ( DISTINCT - 19 ) ) THEN NULL ELSE + 51 + - 0 END * - + 60 * 57 + - - 9 AS col1
----
-174355

query I rowsort
SELECT DISTINCT 15 * - + 48 col0
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT ALL ( + MIN( + 53 ) ) + + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL ( + MIN ( + 53 ) ) + + COUNT ( * )
----
54

query II rowsort
SELECT - 80 + + ( + + 30 ), + 17 col0
----
-50
17

onlyif mysql # DIV for integer division: 
query I rowsort label-400
SELECT + 56 DIV 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-400
SELECT + 56 / 64 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT COUNT( * ) * 51 + + + 45 + 43
----
139

skipif mysql # not compatible
query I rowsort label-401
SELECT COUNT ( * ) * 51 + + + 45 + 43
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-402
SELECT ALL + - 42 * + 93 + 47 * - + COALESCE ( - 41, + - CAST( - + 69 AS SIGNED ) + COUNT( * ), + - 78 ) * + 62
----
115568

skipif mysql # not compatible
query I rowsort label-402
SELECT ALL + - 42 * + 93 + 47 * - + COALESCE ( - 41, + - CAST ( - + 69 AS INTEGER ) + COUNT ( * ), + - 78 ) * + 62
----
115568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-403
SELECT ALL COUNT( * ) * - + 97 + + + 27 + + + COALESCE ( + 31, CAST( NULL AS SIGNED ), - 25 ) + + COUNT( * ) + - - 22 * 70 * - + 77 * + 71 AS col0
----
-8419218

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL COUNT ( * ) * - + 97 + + + 27 + + + COALESCE ( + 31, CAST ( NULL AS INTEGER ), - 25 ) + + COUNT ( * ) + - - 22 * 70 * - + 77 * + 71 AS col0
----
-8419218

query I rowsort
SELECT ALL - 40 * NULLIF ( + 2, + 69 )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-405
SELECT DISTINCT - COUNT( * ) / + 89 + - - 26 + CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) + + + 26 * + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-405
SELECT DISTINCT - COUNT ( * ) / + 89 + - - 26 + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) + + + 26 * + 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT DISTINCT 81 * COUNT( * ) + - - 52 + - COALESCE ( - 63, 79 ) * + + 53 + + CASE + 68 WHEN + COUNT( ALL - 6 ) THEN - - 57 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT 81 * COUNT ( * ) + - - 52 + - COALESCE ( - 63, 79 ) * + + 53 + + CASE + 68 WHEN + COUNT ( ALL - 6 ) THEN - - 57 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-407
SELECT DISTINCT COUNT( DISTINCT - + 94 ) * - 82 * 64 - + - 99, - 82 AS col0
----
-5149
-82

skipif mysql # not compatible
query II rowsort label-407
SELECT DISTINCT COUNT ( DISTINCT - + 94 ) * - 82 * 64 - + - 99, - 82 AS col0
----
-5149
-82

query II rowsort
SELECT ALL + 61 AS col1, - ( + 83 ) AS col1
----
61
-83

query I rowsort
SELECT + 50 + + 61 col2
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-410
SELECT + + 15 * + COUNT( DISTINCT 77 ) AS col0, - 84
----
15
-84

skipif mysql # not compatible
query II rowsort label-410
SELECT + + 15 * + COUNT ( DISTINCT 77 ) AS col0, - 84
----
15
-84

query II rowsort
SELECT + 97 col0, + 57 + + + 5 * - 62 AS col0
----
97
-253

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

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

query I rowsort
SELECT ALL + + COALESCE ( + 45, + 73 * - 60 + - - 97 + + 28 + - + 97 * 58 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT - + 58 + + SUM( - 89 )
----
-147

skipif mysql # not compatible
query I rowsort label-414
SELECT - + 58 + + SUM ( - 89 )
----
-147

query II rowsort
SELECT - ( + 83 ) AS col0, + 66
----
-83
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-416
SELECT + CAST( 87 AS SIGNED ) - MAX( + 74 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-416
SELECT + CAST ( 87 AS INTEGER ) - MAX ( + 74 ) AS col0
----
13

query I rowsort
SELECT - 99 + 31
----
-68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT ALL + NULLIF ( - - 2, 57 + + 47 ) * - ( + SUM( 18 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL + NULLIF ( - - 2, 57 + + 47 ) * - ( + SUM ( 18 ) )
----
-36

query I rowsort
SELECT ALL COALESCE ( 37, - + 31 ) AS col0
----
37

query I rowsort
SELECT - 63 + - 42 AS col1
----
-105

query II rowsort
SELECT - 40 * + 12, - 19 AS col0
----
-480
-19

query I rowsort
SELECT - 16 * + 47 * - 7
----
5264

query I rowsort
SELECT ALL - 1 + - 37 + - - 4
----
-34

query I rowsort
SELECT DISTINCT - 29 * 85 AS col2
----
-2465

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT - COUNT( * ) + 88 + - 12
----
75

skipif mysql # not compatible
query I rowsort label-426
SELECT - COUNT ( * ) + 88 + - 12
----
75

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-428
SELECT DISTINCT - 93 + 64 + - + 39 / + - 52 + + + ( + 81 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT - 93 + 64 + - + 39 / + - 52 + + + ( + 81 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( 50 ) + - 38
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-430
SELECT ALL COALESCE ( COUNT( * ), 39 + 97 - - - CASE + COUNT( * ) WHEN - 15 * - 88 THEN NULL WHEN - + COUNT( * ) THEN + COUNT( * ) * ( + + 12 ) * - 59 END + 93 + - - COUNT( DISTINCT - - 82 ) - + - 22 + - 18 * - 7 * - 15 * COUNT( * ) DIV + 52 * + + 94 + 40 + 49 * + SUM( - - 57 ), 6 )
----
1

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL COALESCE ( COUNT ( * ), 39 + 97 - - - CASE + COUNT ( * ) WHEN - 15 * - 88 THEN NULL WHEN - + COUNT ( * ) THEN + COUNT ( * ) * ( + + 12 ) * - 59 END + 93 + - - COUNT ( DISTINCT - - 82 ) - + - 22 + - 18 * - 7 * - 15 * COUNT ( * ) / + 52 * + + 94 + 40 + 49 * + SUM ( - - 57 ), 6 )
----
1

query I rowsort
SELECT - + 55 * + 89 + 44 AS col2
----
-4851

query I rowsort
SELECT DISTINCT - 44 * - - 31 * 51 AS col2
----
-69564

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT - COALESCE ( - - 21, COUNT( * ) ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-433
SELECT - COALESCE ( - - 21, COUNT ( * ) ) AS col0
----
-21

query I rowsort
SELECT ALL - - 75 + + 17 * - + ( - 40 ) * + + 80 AS col2
----
54475

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT + 82 * + 43 * - + COUNT( * )
----
-3526

skipif mysql # not compatible
query I rowsort label-435
SELECT + 82 * + 43 * - + COUNT ( * )
----
-3526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-436
SELECT DISTINCT + CASE + - 51 WHEN + ( - CAST( - - AVG ( ALL 76 ) AS SIGNED ) ) + + + 95 + + 88 * + 15 THEN + - 30 / - SUM( - 35 ) + - MIN( DISTINCT + NULLIF ( - + 67, + 7 ) ) + - 88 + CASE 58 WHEN - + 36 * - ( + 6 ) THEN NULL WHEN - 49 THEN + 61 + - 6 + 90 * 5 - + COUNT( * ) * - 28 * + - 75 / - + CAST( NULL AS DECIMAL ) ELSE NULL END * - - CAST( - 20 AS SIGNED ) WHEN 53 / SUM( + 51 ) THEN NULL ELSE NULL END * + + MAX( ( - + 90 ) ) - - 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-436
SELECT DISTINCT + CASE + - 51 WHEN + ( - CAST ( - - AVG ( ALL 76 ) AS INTEGER ) ) + + + 95 + + 88 * + 15 THEN + - 30 / - SUM ( - 35 ) + - MIN ( DISTINCT + NULLIF ( - + 67, + 7 ) ) + - 88 + CASE 58 WHEN - + 36 * - ( + 6 ) THEN NULL WHEN - 49 THEN + 61 + - 6 + 90 * 5 - + COUNT ( * ) * - 28 * + - 75 / - + CAST ( NULL AS REAL ) ELSE NULL END * - - CAST ( - 20 AS INTEGER ) WHEN 53 / SUM ( + 51 ) THEN NULL ELSE NULL END * + + MAX ( ( - + 90 ) ) - - 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-437
SELECT - 91 DIV + 41 + - COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-437
SELECT - 91 / + 41 + - COUNT ( * ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT - 39 + - NULLIF ( 8, - 86 * - COUNT( * ) - + 21 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-438
SELECT - 39 + - NULLIF ( 8, - 86 * - COUNT ( * ) - + 21 ) AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-439
SELECT + 9 / 85 * + ( 92 ) * + 44 - - + ( + + COUNT( * ) ) + + + 89 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-439
SELECT + 9 / 85 * + ( 92 ) * + 44 - - + ( + + COUNT ( * ) ) + + + 89 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 48 * 96
----
-4608

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-442
SELECT ALL CASE COUNT( ALL - 91 ) WHEN + + 48 THEN NULL ELSE 41 + + 56 - 12 END DIV + - 87 * + 34 * CASE - + 28 WHEN - 14 THEN NULL WHEN + 9 + + - ( + 65 ) + + + 81 DIV + 21 + - COUNT( ALL - 6 ) + - - 14 THEN 5 WHEN - 61 * - CASE - 89 WHEN - COUNT( * ) * + 9 + + ( + + 12 ) THEN + 65 WHEN - 39 THEN NULL WHEN - - 70 DIV - 57 * - COUNT( * ) * + 26 THEN NULL END THEN NULL ELSE + COALESCE ( + 62, 49 ) + + ( + - 54 ) * + ( - 68 ) END - - - MAX( 20 ) + 19
----
-1

skipif mysql # not compatible
query I rowsort label-442
SELECT ALL CASE COUNT ( ALL - 91 ) WHEN + + 48 THEN NULL ELSE 41 + + 56 - 12 END / + - 87 * + 34 * CASE - + 28 WHEN - 14 THEN NULL WHEN + 9 + + - ( + 65 ) + + + 81 / + 21 + - COUNT ( ALL - 6 ) + - - 14 THEN 5 WHEN - 61 * - CASE - 89 WHEN - COUNT ( * ) * + 9 + + ( + + 12 ) THEN + 65 WHEN - 39 THEN NULL WHEN - - 70 / - 57 * - COUNT ( * ) * + 26 THEN NULL END THEN NULL ELSE + COALESCE ( + 62, 49 ) + + ( + - 54 ) * + ( - 68 ) END - - - MAX ( 20 ) + 19
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-444
SELECT ALL + 67 DIV - 26 + + ( + 2 ) DIV 65 * + + 24 DIV + + 79 + - + 61 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL + 67 / - 26 + + ( + 2 ) / 65 * + + 24 / + + 79 + - + 61 AS col2
----
-63

query II rowsort
SELECT DISTINCT + 86 AS col2, - 0
----
86
0

query I rowsort
SELECT ALL - 98 - + 75 AS col1
----
-173

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

skipif mysql # not compatible
query II rowsort label-447
SELECT + 37 col2, + CAST ( NULL AS INTEGER ) AS col2
----
37
NULL

query I rowsort
SELECT + 2 + 68
----
70

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

skipif mysql # not compatible
query I rowsort label-449
SELECT 35 / COUNT ( * )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT 43 * 62 - - 25 - 12 * 18 + MIN( DISTINCT 97 ) + - 74
----
2498

skipif mysql # not compatible
query I rowsort label-450
SELECT 43 * 62 - - 25 - 12 * 18 + MIN ( DISTINCT 97 ) + - 74
----
2498

query I rowsort
SELECT ( ( + COALESCE ( 99, - + 81 ) ) )
----
99

query I rowsort
SELECT - 22 * - - 66 - 55 AS col0
----
-1507

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT ALL COUNT( * ) * - NULLIF ( + + 52, + - ( + 10 ) ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-453
SELECT ALL COUNT ( * ) * - NULLIF ( + + 52, + - ( + 10 ) ) AS col0
----
-52

query II rowsort
SELECT ALL 52 * - 51 AS col1, + 57 * 33 + - 11
----
-2652
1870

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

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

query I rowsort
SELECT ( - - NULLIF ( + 40, + + 62 ) ) * + ( + 90 ) + + - 81 AS col1
----
3519

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT ALL + 70 + + COALESCE ( + MIN( DISTINCT + 68 ), 99 * 0 )
----
138

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL + 70 + + COALESCE ( + MIN ( DISTINCT + 68 ), 99 * 0 )
----
138

query I rowsort
SELECT ALL 98 + + 3
----
101

query I rowsort
SELECT 4 + 33 AS col1
----
37

query I rowsort
SELECT COALESCE ( + + 35, - 99 * - 95 + - ( + 20 ) + + - 31 + - 33 * - 46 * + - 24 * 90, + 52 ) * + 78 * - 7 col2
----
-19110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-461
SELECT ( + COUNT( - 71 ) ) + + 16 + + - 96 + - ( - 17 ) * - CAST( NULL AS SIGNED ) * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-461
SELECT ( + COUNT ( - 71 ) ) + + 16 + + - 96 + - ( - 17 ) * - CAST ( NULL AS INTEGER ) * - 83
----
NULL

query II rowsort
SELECT 23 + 9 * 40 AS col2, 24
----
383
24

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT ALL - ( - 52 ) + COALESCE ( + - 20, + - COUNT( DISTINCT 90 ) ) + + 49 + 69 + - 88 * + + 4 AS col2
----
-202

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL - ( - 52 ) + COALESCE ( + - 20, + - COUNT ( DISTINCT 90 ) ) + + 49 + 69 + - 88 * + + 4 AS col2
----
-202

query I rowsort
SELECT DISTINCT 97 + - 13 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT 48 + - + COALESCE ( - 21, - 34, NULLIF ( - + 33, - 11 - - + 71 + COUNT( * ) ), CASE - - 77 WHEN - + ( - 85 ) * - - 9 + - - 35 + 98 THEN - 61 * - + 90 * + 37 * + 70 END )
----
69

skipif mysql # not compatible
query I rowsort label-465
SELECT 48 + - + COALESCE ( - 21, - 34, NULLIF ( - + 33, - 11 - - + 71 + COUNT ( * ) ), CASE - - 77 WHEN - + ( - 85 ) * - - 9 + - - 35 + 98 THEN - 61 * - + 90 * + 37 * + 70 END )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-466
SELECT ALL 13 - MAX( ALL + CAST( - 73 AS SIGNED ) ) col2
----
86

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL 13 - MAX ( ALL + CAST ( - 73 AS INTEGER ) ) col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT - MAX( DISTINCT 70 ) + 38 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-467
SELECT - MAX ( DISTINCT 70 ) + 38 AS col2
----
-32

query I rowsort
SELECT - 66 * + 72
----
-4752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-469
SELECT 55 + + 60 + + - 44 * - 84 + + 47 * - 39 DIV + COUNT( * )
----
1978

skipif mysql # not compatible
query I rowsort label-469
SELECT 55 + + 60 + + - 44 * - 84 + + 47 * - 39 / + COUNT ( * )
----
1978

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT COALESCE ( - 24, - NULLIF ( + + COUNT( * ), + 79 * - - ( 93 ) ) + + + 18 ) + + 33 + + 94 col2
----
103

skipif mysql # not compatible
query I rowsort label-471
SELECT COALESCE ( - 24, - NULLIF ( + + COUNT ( * ), + 79 * - - ( 93 ) ) + + + 18 ) + + 33 + + 94 col2
----
103

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

query I rowsort
SELECT + COALESCE ( - 30, - 96 ) AS col0
----
-30

query I rowsort
SELECT + 68 * + - 26 + - 27
----
-1795

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT NULLIF ( - - 79, - - ( - 73 ) * - 22 * - ( + 53 ) + + COUNT( * ) ) * + 3
----
237

skipif mysql # not compatible
query I rowsort label-475
SELECT NULLIF ( - - 79, - - ( - 73 ) * - 22 * - ( + 53 ) + + COUNT ( * ) ) * + 3
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-476
SELECT ALL + 38 * - - 77 AS col2, + 62 / + - CAST( NULL AS SIGNED ) AS col2
----
2926
NULL

skipif mysql # not compatible
query II rowsort label-476
SELECT ALL + 38 * - - 77 AS col2, + 62 / + - CAST ( NULL AS INTEGER ) AS col2
----
2926
NULL

query I rowsort
SELECT + 76 * - 62 + - - 69 + + 30 * + 12 AS col1
----
-4283

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-478
SELECT DISTINCT + 94 * MIN( - COALESCE ( - 31, - 20 ) ) + - 33 + - + 18 DIV + 67
----
2881

skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT + 94 * MIN ( - COALESCE ( - 31, - 20 ) ) + - 33 + - + 18 / + 67
----
2881

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT - 0 * - MIN( - ( + ( - - 98 ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-479
SELECT - 0 * - MIN ( - ( + ( - - 98 ) ) ) AS col2
----
0

query I rowsort
SELECT + 48 + + + 85 + 68 col1
----
201

query I rowsort
SELECT - 56 * - 45 + 64 + + 11 AS col0
----
2595

query II rowsort
SELECT ALL - 62, + 65 AS col0
----
-62
65

query I rowsort
SELECT DISTINCT - 1 + - ( - 17 ) + - + 44 - - 58
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-484
SELECT - COUNT( * ) * + 1 + - - 16 AS col0, - 49 + - - 7 + 80 - + COUNT( * ) * 51 * 77 * + - 19 AS col2
----
15
74651

skipif mysql # not compatible
query II rowsort label-484
SELECT - COUNT ( * ) * + 1 + - - 16 AS col0, - 49 + - - 7 + 80 - + COUNT ( * ) * 51 * 77 * + - 19 AS col2
----
15
74651

onlyif mysql # aggregate syntax: 
query II rowsort label-485
SELECT 17 * - - MAX( DISTINCT - 83 ) AS col2, 62 + 19 + + COUNT( * ) + - 98 * ( - 64 ) * - ( ( 3 ) ) AS col2
----
-1411
-18734

skipif mysql # not compatible
query II rowsort label-485
SELECT 17 * - - MAX ( DISTINCT - 83 ) AS col2, 62 + 19 + + COUNT ( * ) + - 98 * ( - 64 ) * - ( ( 3 ) ) AS col2
----
-1411
-18734

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT 23 + + COUNT( * ) col1
----
24

skipif mysql # not compatible
query I rowsort label-486
SELECT 23 + + COUNT ( * ) col1
----
24

query I rowsort
SELECT DISTINCT 28 + - 54 AS col1
----
-26

query II rowsort
SELECT + 63 col0, - 26
----
63
-26

onlyif mysql # aggregate syntax: 
query III rowsort label-489
SELECT ALL - 68 AS col0, + 10 + + - COUNT( * ) * + 38, - MAX( + 85 ) * + - COUNT( * ) + + 86 AS col2
----
-68
-28
171

skipif mysql # not compatible
query III rowsort label-489
SELECT ALL - 68 AS col0, + 10 + + - COUNT ( * ) * + 38, - MAX ( + 85 ) * + - COUNT ( * ) + + 86 AS col2
----
-68
-28
171

query I rowsort
SELECT 7 - 12 AS col2
----
-5

query I rowsort
SELECT 42 * + - 80 AS col0
----
-3360

query II rowsort
SELECT DISTINCT ( 59 ) + - - 51, + 97 AS col1
----
110
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-493
SELECT CAST( + - 64 AS SIGNED ) + - - 0 + + - 40
----
-104

skipif mysql # not compatible
query I rowsort label-493
SELECT CAST ( + - 64 AS INTEGER ) + - - 0 + + - 40
----
-104

query II rowsort
SELECT ALL 28 AS col2, + 10
----
28
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-495
SELECT DISTINCT 86 * - - CASE + + CASE - 70 WHEN - 24 THEN NULL ELSE 25 END WHEN + 7 THEN - 15 + + 30 ELSE COUNT( * ) - - COUNT( CAST( 87 AS SIGNED ) ) DIV + - COALESCE ( + COUNT( * ), + ( + 77 ), + 31 * 50 - 88 * + 63 ) END AS col1, COUNT( ALL 63 )
----
0
1

skipif mysql # not compatible
query II rowsort label-495
SELECT DISTINCT 86 * - - CASE + + CASE - 70 WHEN - 24 THEN NULL ELSE 25 END WHEN + 7 THEN - 15 + + 30 ELSE COUNT ( * ) - - COUNT ( CAST ( 87 AS INTEGER ) ) / + - COALESCE ( + COUNT ( * ), + ( + 77 ), + 31 * 50 - 88 * + 63 ) END AS col1, COUNT ( ALL 63 )
----
0
1

query I rowsort
SELECT DISTINCT ( + 88 ) * + 88 + - 55
----
7689

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-497
SELECT DISTINCT 56 - - 74 - - - COUNT( * ), + MAX( ALL - - 98 ) + CAST( NULL AS DECIMAL ) AS col0
----
129
NULL

skipif mysql # not compatible
query II rowsort label-497
SELECT DISTINCT 56 - - 74 - - - COUNT ( * ), + MAX ( ALL - - 98 ) + CAST ( NULL AS REAL ) AS col0
----
129
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT - MIN( - 66 )
----
66

skipif mysql # not compatible
query I rowsort label-498
SELECT - MIN ( - 66 )
----
66

query II rowsort
SELECT ALL 39 AS col0, ( 54 ) AS col2
----
39
54

query I rowsort
SELECT 49 * + 5
----
245

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-501
SELECT - - CASE WHEN NOT 65 IS NULL THEN 60 DIV - - 46 + ( - NULLIF ( + COALESCE ( - 34, CAST( + 75 AS SIGNED ), + - 53 ), - 54 ) ) - + + NULLIF ( 62, - + 44 ) * + - 31 + + 27 + - 7 ELSE NULL END
----
1977

skipif mysql # not compatible
query I rowsort label-501
SELECT - - CASE WHEN NOT 65 IS NULL THEN 60 / - - 46 + ( - NULLIF ( + COALESCE ( - 34, CAST ( + 75 AS INTEGER ), + - 53 ), - 54 ) ) - + + NULLIF ( 62, - + 44 ) * + - 31 + + 27 + - 7 ELSE NULL END
----
1977

query I rowsort
SELECT ALL + 92 - - - 96 + + - 89 AS col2
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-503
SELECT + ( + 19 ) * + 0, - CAST( 47 AS SIGNED ) + - 76 - + CASE + CAST( + - 25 AS SIGNED ) WHEN + - COUNT( * ) - + 70 - + ( - COUNT( * ) ) * + 53 THEN NULL WHEN - AVG ( - + 25 ) * + - SUM( ALL 49 ) * - + 61 THEN - 57 * + 14 + - 95 * + 85 + + + 46 + - 59 END - + SUM( DISTINCT 43 ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-503
SELECT + ( + 19 ) * + 0, - CAST ( 47 AS INTEGER ) + - 76 - + CASE + CAST ( + - 25 AS INTEGER ) WHEN + - COUNT ( * ) - + 70 - + ( - COUNT ( * ) ) * + 53 THEN NULL WHEN - AVG ( - + 25 ) * + - SUM ( ALL 49 ) * - + 61 THEN - 57 * + 14 + - 95 * + 85 + + + 46 + - 59 END - + SUM ( DISTINCT 43 ) AS col0
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-504
SELECT DISTINCT + 89 DIV + + 72
----
1

skipif mysql # not compatible
query I rowsort label-504
SELECT DISTINCT + 89 / + + 72
----
1

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

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

skipif mysql # not compatible
query I rowsort label-506
SELECT - 57 * - + ( + + 33 ) * + - COUNT ( * ) AS col1
----
-1881

query II rowsort
SELECT DISTINCT + - 31 AS col2, + 67
----
-31
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-508
SELECT ALL 53 * - 47 + - - 30 * + + 70 DIV - COUNT( * ) AS col2
----
-4591

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL 53 * - 47 + - - 30 * + + 70 / - COUNT ( * ) AS col2
----
-4591

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-509
SELECT 1 DIV COUNT( + 87 ) + - + COUNT( * ) AS col2, - 56 AS col0
----
0
-56

skipif mysql # not compatible
query II rowsort label-509
SELECT 1 / COUNT ( + 87 ) + - + COUNT ( * ) AS col2, - 56 AS col0
----
0
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-510
SELECT + + 85 DIV 8 col0
----
10

skipif mysql # not compatible
query I rowsort label-510
SELECT + + 85 / 8 col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-511
SELECT ALL - 11 * CAST( NULL AS SIGNED ) + - + 29 * 8 * + 4 + - - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL - 11 * CAST ( NULL AS INTEGER ) + - + 29 * 8 * + 4 + - - 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT - 14 * 64 * - 28 - COALESCE ( - 88, 42 ) * COUNT( * )
----
25176

skipif mysql # not compatible
query I rowsort label-512
SELECT - 14 * 64 * - 28 - COALESCE ( - 88, 42 ) * COUNT ( * )
----
25176

query I rowsort
SELECT ALL + NULLIF ( - 74, + NULLIF ( 63, + 54 / + 74 ) )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT - 41 * COUNT( * ) * + 60
----
-2460

skipif mysql # not compatible
query I rowsort label-514
SELECT - 41 * COUNT ( * ) * + 60
----
-2460

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT ALL - COUNT( * ) * + 82 + COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL - COUNT ( * ) * + 82 + COUNT ( * )
----
-81

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

skipif mysql # not compatible
query I rowsort label-516
SELECT ALL - ( - 94 ) * - CAST ( ( - - COUNT ( * ) ) AS INTEGER )
----
-94

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-518
SELECT ALL 4 - + - 55 AS col2, - NULLIF ( + + CAST( - - 97 AS SIGNED ), - + MAX( 68 ) ) + 84
----
59
-13

skipif mysql # not compatible
query II rowsort label-518
SELECT ALL 4 - + - 55 AS col2, - NULLIF ( + + CAST ( - - 97 AS INTEGER ), - + MAX ( 68 ) ) + 84
----
59
-13

query I rowsort
SELECT - 9 * - + 90
----
810

onlyif mysql # DIV for integer division: 
query I rowsort label-520
SELECT ALL COALESCE ( + 19, + + 21 + 19 - - ( + - 40 ) DIV - + 17 * - 43 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL COALESCE ( + 19, + + 21 + 19 - - ( + - 40 ) / - + 17 * - 43 ) AS col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-521
SELECT + 19 * + 72 + MAX( 3 ) * + ( - - CASE - CAST( NULL AS SIGNED ) WHEN + 7 THEN NULL WHEN + NULLIF ( - + 5, + 86 / + + 45 ) THEN + 42 * - 88 END ) AS col1, + ( - 76 ) * 26 * 68 AS col2
----
NULL
-134368

skipif mysql # not compatible
query II rowsort label-521
SELECT + 19 * + 72 + MAX ( 3 ) * + ( - - CASE - CAST ( NULL AS INTEGER ) WHEN + 7 THEN NULL WHEN + NULLIF ( - + 5, + 86 / + + 45 ) THEN + 42 * - 88 END ) AS col1, + ( - 76 ) * 26 * 68 AS col2
----
NULL
-134368

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

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

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

query I rowsort
SELECT - 15 + + + 64 + - 17 * - - 62 AS col1
----
-1005

query II rowsort
SELECT + 79 * + + 51, - ( + 29 ) AS col1
----
4029
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-526
SELECT ALL 85 DIV 16 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL 85 / 16 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT + MIN( 81 ) - - 90
----
171

skipif mysql # not compatible
query I rowsort label-527
SELECT + MIN ( 81 ) - - 90
----
171

query I rowsort
SELECT DISTINCT 18 * + - 39 + + 75 + + 11 * + + 98
----
451

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-529
SELECT + - 57 + - 67 * CAST( + + 34 AS SIGNED ), - 69 AS col0
----
-2335
-69

skipif mysql # not compatible
query II rowsort label-529
SELECT + - 57 + - 67 * CAST ( + + 34 AS INTEGER ), - 69 AS col0
----
-2335
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-530
SELECT + 28 + + 7 - 85 * ( COUNT( * ) ) + + COUNT( ALL - 10 ) + + - COUNT( * ) * - + 99 DIV - COUNT( * )
----
-148

skipif mysql # not compatible
query I rowsort label-530
SELECT + 28 + + 7 - 85 * ( COUNT ( * ) ) + + COUNT ( ALL - 10 ) + + - COUNT ( * ) * - + 99 / - COUNT ( * )
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT ALL MIN( DISTINCT 54 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL MIN ( DISTINCT 54 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-532
SELECT DISTINCT - 69 + CASE + + COUNT( * ) WHEN - + 81 THEN 77 + - + 66 WHEN + 55 * - 64 + + 26 THEN NULL END col1, 14
----
NULL
14

skipif mysql # not compatible
query II rowsort label-532
SELECT DISTINCT - 69 + CASE + + COUNT ( * ) WHEN - + 81 THEN 77 + - + 66 WHEN + 55 * - 64 + + 26 THEN NULL END col1, 14
----
NULL
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-533
SELECT - ( 0 ) AS col0, - 20 * - + COUNT( * ) * - 35 + + CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-533
SELECT - ( 0 ) AS col0, - 20 * - + COUNT ( * ) * - 35 + + CAST ( NULL AS INTEGER )
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-534
SELECT + - 55 * + CASE ( 89 ) WHEN - 88 + 3 THEN - NULLIF ( - 69, - CASE COUNT( * ) WHEN + 69 THEN NULL WHEN MIN( - 93 ) THEN 46 ELSE NULL END ) WHEN ( + CAST( NULL AS SIGNED ) ) * + 45 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-534
SELECT + - 55 * + CASE ( 89 ) WHEN - 88 + 3 THEN - NULLIF ( - 69, - CASE COUNT ( * ) WHEN + 69 THEN NULL WHEN MIN ( - 93 ) THEN 46 ELSE NULL END ) WHEN ( + CAST ( NULL AS INTEGER ) ) * + 45 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-535
SELECT - 91 + - - 37 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-535
SELECT - 91 + - - 37 - + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-537
SELECT ALL - 56 DIV 27 * - SUM( - - 47 ) + COUNT( * ) - + 79 + + - MIN( ALL + 71 ) * 79 * + - 20 col1
----
112196

skipif mysql # not compatible
query I rowsort label-537
SELECT ALL - 56 / 27 * - SUM ( - - 47 ) + COUNT ( * ) - + 79 + + - MIN ( ALL + 71 ) * 79 * + - 20 col1
----
112196

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT DISTINCT + COUNT( DISTINCT + NULLIF ( 22, - 22 * - 50 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-538
SELECT DISTINCT + COUNT ( DISTINCT + NULLIF ( 22, - 22 * - 50 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-539
SELECT ALL - + 39 DIV + + 56 + - + 99 * CASE + - MIN( - 71 ) WHEN + 80 THEN NULL ELSE + + ( 77 ) END col0, + 41
----
-7623
41

skipif mysql # not compatible
query II rowsort label-539
SELECT ALL - + 39 / + + 56 + - + 99 * CASE + - MIN ( - 71 ) WHEN + 80 THEN NULL ELSE + + ( 77 ) END col0, + 41
----
-7623
41

query I rowsort
SELECT + 58 * - 87
----
-5046

onlyif mysql # DIV for integer division: 
query I rowsort label-541
SELECT ALL + 84 DIV - 95 * 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL + 84 / - 95 * 39 AS col0
----
0

query I rowsort
SELECT - 47 * 4 + - 52 + - 93 col0
----
-333

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT ALL + ( MAX( ALL + CASE 20 WHEN - 46 THEN - 35 WHEN - 44 THEN - CASE + 48 WHEN + 55 THEN 36 END + 2 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-543
SELECT ALL + ( MAX ( ALL + CASE 20 WHEN - 46 THEN - 35 WHEN - 44 THEN - CASE + 48 WHEN + 55 THEN 36 END + 2 END ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT DISTINCT + SUM( + 41 ) col2
----
41

skipif mysql # not compatible
query I rowsort label-544
SELECT DISTINCT + SUM ( + 41 ) col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-545
SELECT ALL + MIN( ALL 67 ) DIV + COUNT( * ) + - 83 * - + COUNT( ALL + CAST( NULL AS SIGNED ) ) + + 89 * + - 53 + - - 10 AS col1
----
-4640

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL + MIN ( ALL 67 ) / + COUNT ( * ) + - 83 * - + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) + + 89 * + - 53 + - - 10 AS col1
----
-4640

onlyif mysql # aggregate syntax: 
query II rowsort label-546
SELECT - 93 * + COALESCE ( - 61, - ( 84 ), 83 * + COUNT( * ), - 43 ) AS col0, + 94 AS col1
----
5673
94

skipif mysql # not compatible
query II rowsort label-546
SELECT - 93 * + COALESCE ( - 61, - ( 84 ), 83 * + COUNT ( * ), - 43 ) AS col0, + 94 AS col1
----
5673
94

query I rowsort
SELECT + 64 * + 69
----
4416

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT ALL + MIN( 90 )
----
90

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL + MIN ( 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT - 34 * ( - COUNT( * ) ) * - - 69 - - 24
----
2370

skipif mysql # not compatible
query I rowsort label-550
SELECT - 34 * ( - COUNT ( * ) ) * - - 69 - - 24
----
2370

query I rowsort
SELECT ALL + NULLIF ( - 54, + 6 / + 60 * 71 + + 24 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT DISTINCT - 39 * - COUNT( * ) * 59 AS col2
----
2301

skipif mysql # not compatible
query I rowsort label-552
SELECT DISTINCT - 39 * - COUNT ( * ) * 59 AS col2
----
2301

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT - COUNT( * ) + + - 28 * COUNT( * ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-553
SELECT - COUNT ( * ) + + - 28 * COUNT ( * ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT NULLIF ( - + COUNT( * ), + - COUNT( * ) * 24 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-554
SELECT NULLIF ( - + COUNT ( * ), + - COUNT ( * ) * 24 ) AS col2
----
-1

query I rowsort
SELECT ALL - 21 * - + 76 col2
----
1596

query I rowsort
SELECT - 3 * + 89 AS col2
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT + SUM( ALL 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-557
SELECT + SUM ( ALL 93 ) AS col2
----
93

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

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

query I rowsort
SELECT ALL - 21 * + 56 AS col2
----
-1176

query I rowsort
SELECT - 68 * - 83 * + 62 AS col1
----
349928

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT ( - + 53 ) * 14 + MAX( + 41 ) * ( - 68 ) * COUNT( * ) AS col0
----
-3530

skipif mysql # not compatible
query I rowsort label-561
SELECT ( - + 53 ) * 14 + MAX ( + 41 ) * ( - 68 ) * COUNT ( * ) AS col0
----
-3530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-562
SELECT ALL CAST( - ( ( + NULLIF ( 14, COUNT( * ) + - COUNT( * ) ) ) ) AS SIGNED ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL CAST ( - ( ( + NULLIF ( 14, COUNT ( * ) + - COUNT ( * ) ) ) ) AS INTEGER ) AS col0
----
-14

query I rowsort
SELECT DISTINCT - 31 * 64
----
-1984

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-565
SELECT DISTINCT 49 DIV + CAST( + 55 * - 31 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT 49 / + CAST ( + 55 * - 31 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT + 4 + + 81 AS col2
----
85

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

skipif mysql # not compatible
query I rowsort label-567
SELECT COUNT ( + 18 ) / + ( - 73 * 67 )
----
0

query I rowsort
SELECT 63 - 79
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT ALL COUNT( * ) * - 36 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL COUNT ( * ) * - 36 AS col2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-570
SELECT 82 DIV - 58
----
-1

skipif mysql # not compatible
query I rowsort label-570
SELECT 82 / - 58
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-571
SELECT COALESCE ( + 59, + 81 * + 17 ) DIV ( 77 * 12 )
----
0

skipif mysql # not compatible
query I rowsort label-571
SELECT COALESCE ( + 59, + 81 * + 17 ) / ( 77 * 12 )
----
0

query I rowsort
SELECT ALL 24 * - 50
----
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT ALL 42 + + MAX( DISTINCT 25 ) * + 19
----
517

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL 42 + + MAX ( DISTINCT 25 ) * + 19
----
517

query I rowsort
SELECT 98 - + 93 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT ALL - MIN( ALL - 40 ) * - 17 AS col2
----
-680

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL - MIN ( ALL - 40 ) * - 17 AS col2
----
-680

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

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

query I rowsort
SELECT ALL ( ( 90 ) ) - 71 AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-578
SELECT + CAST( NULL AS SIGNED ) * CASE COUNT( * ) WHEN 70 THEN - 31 * + 60 WHEN ( 1 ) THEN NULL ELSE - 59 * - COALESCE ( 12, MAX( + 44 ) - MAX( + 28 ) ) END + - 73 * + CAST( + 81 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-578
SELECT + CAST ( NULL AS INTEGER ) * CASE COUNT ( * ) WHEN 70 THEN - 31 * + 60 WHEN ( 1 ) THEN NULL ELSE - 59 * - COALESCE ( 12, MAX ( + 44 ) - MAX ( + 28 ) ) END + - 73 * + CAST ( + 81 AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-579
SELECT 24 DIV 22 + 37 DIV - 6
----
-5

skipif mysql # not compatible
query I rowsort label-579
SELECT 24 / 22 + 37 / - 6
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT MAX( 67 ) * + 8 - - 96
----
632

skipif mysql # not compatible
query I rowsort label-580
SELECT MAX ( 67 ) * + 8 - - 96
----
632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-581
SELECT - 24 * NULLIF ( + 97 / - CAST( NULL AS SIGNED ), COUNT( * ) ) + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-581
SELECT - 24 * NULLIF ( + 97 / - CAST ( NULL AS INTEGER ), COUNT ( * ) ) + 8 AS col1
----
NULL

query I rowsort
SELECT ALL ( - 12 ) - 59 * 26
----
-1546

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT NULLIF ( COALESCE ( COUNT( * ), SUM( - 14 ), 17 ), + ( + 7 ) ) * - 22
----
-22

skipif mysql # not compatible
query I rowsort label-583
SELECT NULLIF ( COALESCE ( COUNT ( * ), SUM ( - 14 ), 17 ), + ( + 7 ) ) * - 22
----
-22

query I rowsort
SELECT 25 * + NULLIF ( 28, 34 ) + 51 AS col1
----
751

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-585
SELECT DISTINCT CASE - COUNT( 75 ) WHEN 40 + - 56 / 79 THEN 71 WHEN + 14 * + 52 + CAST( NULL AS SIGNED ) THEN - CASE 91 WHEN + 27 THEN - NULLIF ( - 92, 15 ) ELSE - ( 39 ) / - 62 END WHEN 40 - - 39 * - COUNT( * ) THEN NULL END * 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT CASE - COUNT ( 75 ) WHEN 40 + - 56 / 79 THEN 71 WHEN + 14 * + 52 + CAST ( NULL AS INTEGER ) THEN - CASE 91 WHEN + 27 THEN - NULLIF ( - 92, 15 ) ELSE - ( 39 ) / - 62 END WHEN 40 - - 39 * - COUNT ( * ) THEN NULL END * 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT ( ( - ( + COUNT( * ) ) ) ) + - 39 * 31
----
-1210

skipif mysql # not compatible
query I rowsort label-586
SELECT ( ( - ( + COUNT ( * ) ) ) ) + - 39 * 31
----
-1210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-587
SELECT ALL - COALESCE ( - 0, + NULLIF ( - 54, + 98 + 82 * CAST( - 16 / + 53 AS SIGNED ) ) * 83, COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL - COALESCE ( - 0, + NULLIF ( - 54, + 98 + 82 * CAST ( - 16 / + 53 AS INTEGER ) ) * 83, COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-588
SELECT ( + CASE + 65 WHEN CAST( NULL AS SIGNED ) + - COUNT( * ) THEN NULL WHEN MIN( COALESCE ( - 46, 70 ) ) + - 88 THEN + ( 5 ) * 94 + - 47 ELSE NULL END ) * + 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-588
SELECT ( + CASE + 65 WHEN CAST ( NULL AS INTEGER ) + - COUNT ( * ) THEN NULL WHEN MIN ( COALESCE ( - 46, 70 ) ) + - 88 THEN + ( 5 ) * 94 + - 47 ELSE NULL END ) * + 54 AS col0
----
NULL

query I rowsort
SELECT ALL 68 * + 68 AS col2
----
4624

query I rowsort
SELECT DISTINCT 27 * 27 AS col1
----
729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-591
SELECT - COUNT( * ) * - 30 + CAST( - 38 AS SIGNED ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-591
SELECT - COUNT ( * ) * - 30 + CAST ( - 38 AS INTEGER ) AS col1
----
-8

query I rowsort
SELECT 83 * - 75
----
-6225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-593
SELECT MAX( + 24 ) * COUNT( * ) + + 65 DIV 89
----
24

skipif mysql # not compatible
query I rowsort label-593
SELECT MAX ( + 24 ) * COUNT ( * ) + + 65 / 89
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT MIN( DISTINCT 62 ) * COUNT( * ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-594
SELECT MIN ( DISTINCT 62 ) * COUNT ( * ) AS col2
----
62

query I rowsort
SELECT ALL - 17 + 31 * 68
----
2091

query I rowsort
SELECT ALL - ( - 85 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT DISTINCT - 71 + 67 * - SUM( DISTINCT 2 + 5 )
----
-540

skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT - 71 + 67 * - SUM ( DISTINCT 2 + 5 )
----
-540

query I rowsort
SELECT ALL - + 26 + + 40
----
14

query I rowsort
SELECT - 10 * 22
----
-220

query I rowsort
SELECT - 76 + 53 AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-601
SELECT 24 - - COALESCE ( COUNT( * ), CAST( CAST( 40 AS SIGNED ) AS SIGNED ) * 25 ) * + COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-601
SELECT 24 - - COALESCE ( COUNT ( * ), CAST ( CAST ( 40 AS INTEGER ) AS INTEGER ) * 25 ) * + COUNT ( * ) AS col2
----
25

query I rowsort
SELECT - 90 + 39
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT SUM( DISTINCT - 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-603
SELECT SUM ( DISTINCT - 47 ) AS col2
----
-47

query I rowsort
SELECT DISTINCT + - 17 * + 58
----
-986

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-605
SELECT ALL - MIN( DISTINCT 56 ) DIV + 50 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL - MIN ( DISTINCT 56 ) / + 50 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT - COUNT( * ) + + 46 * 13 AS col0
----
597

skipif mysql # not compatible
query I rowsort label-606
SELECT - COUNT ( * ) + + 46 * 13 AS col0
----
597

query I rowsort
SELECT 42 + + 4 * 6
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT - 92 * - NULLIF ( - 18, ( COUNT( * ) ) * 96 )
----
-1656

skipif mysql # not compatible
query I rowsort label-608
SELECT - 92 * - NULLIF ( - 18, ( COUNT ( * ) ) * 96 )
----
-1656

query I rowsort
SELECT DISTINCT NULLIF ( + 4, 52 * - 93 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-610
SELECT COALESCE ( COALESCE ( - 34, - CAST( NULL AS SIGNED ) * 81 ), + COUNT( * ) ) + + 41
----
7

skipif mysql # not compatible
query I rowsort label-610
SELECT COALESCE ( COALESCE ( - 34, - CAST ( NULL AS INTEGER ) * 81 ), + COUNT ( * ) ) + + 41
----
7

query I rowsort
SELECT 13 * + - 29
----
-377

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

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

query I rowsort
SELECT 23 * - 23
----
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT DISTINCT CASE - - 31 WHEN - 70 * 27 THEN 61 WHEN 98 / - COUNT( * ) THEN NULL ELSE 83 * 16 END * - COUNT( * ) col0
----
-1328

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT CASE - - 31 WHEN - 70 * 27 THEN 61 WHEN 98 / - COUNT ( * ) THEN NULL ELSE 83 * 16 END * - COUNT ( * ) col0
----
-1328

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT DISTINCT 87 * NULLIF ( 31, - COUNT( * ) * - COUNT( * ) ) * COUNT( * ) col1
----
2697

skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT 87 * NULLIF ( 31, - COUNT ( * ) * - COUNT ( * ) ) * COUNT ( * ) col1
----
2697

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

skipif mysql # not compatible
query I rowsort label-616
SELECT MIN ( + - 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT DISTINCT + COUNT( * ) * COALESCE ( COUNT( * ), - 88 * 76 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT + COUNT ( * ) * COALESCE ( COUNT ( * ), - 88 * 76 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-618
SELECT + SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-618
SELECT + SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT CASE - COUNT( 28 ) WHEN - 0 THEN - 44 WHEN 58 THEN - 28 + + 1 * 66 ELSE NULL END * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-619
SELECT CASE - COUNT ( 28 ) WHEN - 0 THEN - 44 WHEN 58 THEN - 28 + + 1 * 66 ELSE NULL END * 51
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-620
SELECT COUNT( * ) + - 91 + 57 DIV - 8 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-620
SELECT COUNT ( * ) + - 91 + 57 / - 8 AS col2
----
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT MAX( ALL - - 70 ) * 70
----
4900

skipif mysql # not compatible
query I rowsort label-622
SELECT MAX ( ALL - - 70 ) * 70
----
4900

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT + MIN( - 56 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-624
SELECT + MIN ( - 56 ) AS col0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-625
SELECT ALL 75 * 23 DIV - 90 + 17
----
-2

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL 75 * 23 / - 90 + 17
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT DISTINCT SUM( - - 25 ) * - 29
----
-725

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT SUM ( - - 25 ) * - 29
----
-725

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

skipif mysql # not compatible
query I rowsort label-627
SELECT DISTINCT 68 * + + COUNT ( * ) + - COUNT ( * ) AS col0
----
67

query I rowsort
SELECT + 94 + - 23 * - 85 col1
----
2049

query I rowsort
SELECT ALL 64 + - - 71 * 41 col0
----
2975

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT ALL 68 + COUNT( * ) + - 11 * 11
----
-52

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL 68 + COUNT ( * ) + - 11 * 11
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-631
SELECT + NULLIF ( + COUNT( * ), NULLIF ( 82, + CASE 65 WHEN - 0 THEN NULL WHEN 74 + SUM( 80 - - 66 ) THEN NULL WHEN 74 THEN + ( 2 ) END + - CAST( NULL AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-631
SELECT + NULLIF ( + COUNT ( * ), NULLIF ( 82, + CASE 65 WHEN - 0 THEN NULL WHEN 74 + SUM ( 80 - - 66 ) THEN NULL WHEN 74 THEN + ( 2 ) END + - CAST ( NULL AS INTEGER ) ) )
----
1

query I rowsort
SELECT + 52 * + 22 AS col2
----
1144

query I rowsort
SELECT ALL + 23 * - + 88 AS col1
----
-2024

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT + COALESCE ( - COUNT( * ), - 43, + MAX( - ( - 74 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-636
SELECT + COALESCE ( - COUNT ( * ), - 43, + MAX ( - ( - 74 ) ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-637
SELECT - 90 * ( 95 ) + - 13 DIV 34 AS col0
----
-8550

skipif mysql # not compatible
query I rowsort label-637
SELECT - 90 * ( 95 ) + - 13 / 34 AS col0
----
-8550

query I rowsort
SELECT ALL - 32 + - 37 * 50 col2
----
-1882

query I rowsort
SELECT ALL - - 94 + + - 59 + - 59 * 12
----
-673

query I rowsort
SELECT ALL + 99 + - 89 + + 8
----
18

query I rowsort
SELECT + 10 * + ( 40 ) - 58
----
342

query I rowsort
SELECT DISTINCT + 49 * + - 40 + 14
----
-1946

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

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

query I rowsort
SELECT - + 10 * + - 97 + 79 AS col0
----
1049

query I rowsort
SELECT DISTINCT + + 89 * 60 AS col1
----
5340

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

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

query I rowsort
SELECT ALL + COALESCE ( + 46, 77 ) * 75
----
3450

query I rowsort
SELECT - 58 * - 11 AS col0
----
638

query I rowsort
SELECT ALL COALESCE ( + 41, - - 97 * 64 )
----
41

query I rowsort
SELECT - 34 - + 79 col0
----
-113

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

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT DISTINCT COALESCE ( + COUNT( + - CASE 5 WHEN 57 * 94 THEN 31 * + 39 END ), 10 + 59 )
----
0

skipif mysql # not compatible
query I rowsort label-652
SELECT DISTINCT COALESCE ( + COUNT ( + - CASE 5 WHEN 57 * 94 THEN 31 * + 39 END ), 10 + 59 )
----
0

query I rowsort
SELECT - 63 * + 26
----
-1638

query I rowsort
SELECT 62 * - 82 + + 95 AS col2
----
-4989

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-655
SELECT ALL - 89 DIV - - COUNT( * ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL - 89 / - - COUNT ( * ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT + COUNT( DISTINCT + 64 ) * + + 21 + - COUNT( * ) - - 44 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-656
SELECT + COUNT ( DISTINCT + 64 ) * + + 21 + - COUNT ( * ) - - 44 AS col0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-657
SELECT - COUNT( - 70 ) * + - COUNT( * ) DIV - 86 + 74 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-657
SELECT - COUNT ( - 70 ) * + - COUNT ( * ) / - 86 + 74 AS col2
----
74

query I rowsort
SELECT DISTINCT 27 * 18 + - 60 AS col2
----
426

query I rowsort
SELECT ALL - 62 * + 13 * + 2 AS col0
----
-1612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-660
SELECT ALL COUNT( * ) * 88 + 89 DIV COUNT( * ) col1
----
177

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL COUNT ( * ) * 88 + 89 / COUNT ( * ) col1
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT DISTINCT 64 * - - CASE - + 93 WHEN - 18 + + 21 THEN - ( - COUNT( * ) ) END + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-661
SELECT DISTINCT 64 * - - CASE - + 93 WHEN - 18 + + 21 THEN - ( - COUNT ( * ) ) END + 87 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-662
SELECT + COUNT( * ) AS col1, 26 * + + 51
----
1
1326

skipif mysql # not compatible
query II rowsort label-662
SELECT + COUNT ( * ) AS col1, 26 * + + 51
----
1
1326

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT ALL 39 * NULLIF ( - 99, - 49 ) + + COUNT( * ) AS col2
----
-3860

skipif mysql # not compatible
query I rowsort label-663
SELECT ALL 39 * NULLIF ( - 99, - 49 ) + + COUNT ( * ) AS col2
----
-3860

query I rowsort
SELECT COALESCE ( - 19, - 23 ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT + - CASE + 6 WHEN + - 42 * 77 + - COUNT( * ) THEN 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-665
SELECT + - CASE + 6 WHEN + - 42 * 77 + - COUNT ( * ) THEN 98 END
----
NULL

query II rowsort
SELECT ALL + 74 AS col2, 34
----
74
34

query I rowsort
SELECT - - 88 * + - 35
----
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT + - 83 * - + 10 + COUNT( 17 )
----
831

skipif mysql # not compatible
query I rowsort label-668
SELECT + - 83 * - + 10 + COUNT ( 17 )
----
831

query I rowsort
SELECT COALESCE ( 76, + 50, - 94 )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-670
SELECT DISTINCT + + 37 AS col0, MIN( + + 62 ) col0
----
37
62

skipif mysql # not compatible
query II rowsort label-670
SELECT DISTINCT + + 37 AS col0, MIN ( + + 62 ) col0
----
37
62

query I rowsort
SELECT + 81 - 29 + ( 8 ) + 43 * + 62 AS col1
----
2726

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT + MAX( DISTINCT 59 ) * - 97 * - 75 + - 53 * + 98 AS col1
----
424031

skipif mysql # not compatible
query I rowsort label-672
SELECT + MAX ( DISTINCT 59 ) * - 97 * - 75 + - 53 * + 98 AS col1
----
424031

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

skipif mysql # not compatible
query I rowsort label-673
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) + + MAX ( ALL - 87 )
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-675
SELECT ALL 50 * - 96 - + - ( + 87 ) + + CAST( 73 AS DECIMAL ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL 50 * - 96 - + - ( + 87 ) + + CAST ( 73 AS REAL ) * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 43 * - 2
----
-86

query I rowsort
SELECT ALL - 96 * + 96 - + 60 AS col1
----
-9276

query I rowsort
SELECT - + 62 * + + 91
----
-5642

query I rowsort
SELECT + - 56 * - 35 col0
----
1960

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT + - COUNT( * ) + - 4 * - + 44 AS col1
----
175

skipif mysql # not compatible
query I rowsort label-680
SELECT + - COUNT ( * ) + - 4 * - + 44 AS col1
----
175

query I rowsort
SELECT 40 * - 59 + 69 - 61
----
-2352

query II rowsort
SELECT 69 AS col2, - CASE 25 WHEN - 50 + + 17 THEN 71 END AS col2
----
69
NULL

query I rowsort
SELECT ALL + 76 * - - 94 * - - 82
----
585808

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-685
SELECT + 88 + + - 31 DIV COALESCE ( 69, - 72 + - 30 ) - + COALESCE ( CAST( NULL AS SIGNED ), 7 * 96 )
----
-584

skipif mysql # not compatible
query I rowsort label-685
SELECT + 88 + + - 31 / COALESCE ( 69, - 72 + - 30 ) - + COALESCE ( CAST ( NULL AS INTEGER ), 7 * 96 )
----
-584

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-686
SELECT DISTINCT - COUNT( * ) AS col1, NULLIF ( + - COUNT( * ), CAST( NULL AS DECIMAL ) - - 3 * 96 ) + + ( + 14 ) DIV + 66 AS col0
----
-1
-1

skipif mysql # not compatible
query II rowsort label-686
SELECT DISTINCT - COUNT ( * ) AS col1, NULLIF ( + - COUNT ( * ), CAST ( NULL AS REAL ) - - 3 * 96 ) + + ( + 14 ) / + 66 AS col0
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT DISTINCT CASE + + AVG ( - 48 ) WHEN + + 31 * 52 THEN - COUNT( * ) * 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-687
SELECT DISTINCT CASE + + AVG ( - 48 ) WHEN + + 31 * 52 THEN - COUNT ( * ) * 40 END
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 59, - + 19 + - 14 )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-689
SELECT + 11 + + + 35 AS col0, ( 1 ) DIV + COUNT( * ) AS col1
----
46
1

skipif mysql # not compatible
query II rowsort label-689
SELECT + 11 + + + 35 AS col0, ( 1 ) / + COUNT ( * ) AS col1
----
46
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-690
SELECT ALL - 93 * - CAST( NULL AS SIGNED ) * 65 / ( 62 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL - 93 * - CAST ( NULL AS INTEGER ) * 65 / ( 62 ) AS col0
----
NULL

query I rowsort
SELECT + 51 * + 43 col0
----
2193

query I rowsort
SELECT - ( - - 81 ) + + ( - - 53 ) AS col1
----
-28

query I rowsort
SELECT ALL + 31 + 46 AS col1
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-694
SELECT 61 DIV 51 * - 36 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-694
SELECT 61 / 51 * - 36 AS col0
----
-36

query I rowsort
SELECT ALL 9 + - 98 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT DISTINCT - COUNT( * ) + + 47 + 32 + + 80 * 75 AS col2
----
6078

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT - COUNT ( * ) + + 47 + 32 + + 80 * 75 AS col2
----
6078

onlyif mysql # DIV for integer division: 
query I rowsort label-697
SELECT 86 DIV - - 61 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-697
SELECT 86 / - - 61 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT COUNT( ( 71 ) ) * - - 77 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-698
SELECT COUNT ( ( 71 ) ) * - - 77 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT 66 - - 57 * COUNT( * ) * - + SUM( DISTINCT - 85 ) + 93 AS col0
----
5004

skipif mysql # not compatible
query I rowsort label-699
SELECT 66 - - 57 * COUNT ( * ) * - + SUM ( DISTINCT - 85 ) + 93 AS col0
----
5004

query I rowsort
SELECT - ( 20 ) + 42 * - 93
----
-3926

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT - 3 * - CASE - + CASE - 49 WHEN ( - 12 ) / + COUNT( * ) THEN 2 END WHEN + 98 * + 90 THEN - 54 * 93 WHEN - 89 THEN + AVG ( 1 ) END / - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-702
SELECT - 3 * - CASE - + CASE - 49 WHEN ( - 12 ) / + COUNT ( * ) THEN 2 END WHEN + 98 * + 90 THEN - 54 * 93 WHEN - 89 THEN + AVG ( 1 ) END / - 18 AS col1
----
NULL

query I rowsort
SELECT - 12 + + - 83 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT 91 * + NULLIF ( + 7, - - 30 * + 48 + + 78 ) * - COUNT( * )
----
-637

skipif mysql # not compatible
query I rowsort label-704
SELECT 91 * + NULLIF ( + 7, - - 30 * + 48 + + 78 ) * - COUNT ( * )
----
-637

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-706
SELECT DISTINCT + 62 / + 25 - + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-706
SELECT DISTINCT + 62 / + 25 - + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT DISTINCT + + 10 - - - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT + + 10 - - - COUNT ( * )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-708
SELECT ALL - - COUNT( * ) * + 68 * COUNT( DISTINCT + + 62 ) - 69 * - MIN( - 10 + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL - - COUNT ( * ) * + 68 * COUNT ( DISTINCT + + 62 ) - 69 * - MIN ( - 10 + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT DISTINCT - + 97 * + SUM( 13 ) - 56 * + 62 AS col2
----
-4733

skipif mysql # not compatible
query I rowsort label-709
SELECT DISTINCT - + 97 * + SUM ( 13 ) - 56 * + 62 AS col2
----
-4733

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

query I rowsort
SELECT + 19 * COALESCE ( 11, - - 90 ) AS col2
----
209

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

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT 94 * + 94 + + 6 + + 88 + MIN( - ( - 79 ) + + 1 )
----
9010

skipif mysql # not compatible
query I rowsort label-713
SELECT 94 * + 94 + + 6 + + 88 + MIN ( - ( - 79 ) + + 1 )
----
9010

query I rowsort
SELECT - ( 6 ) + + 51 + - - 56
----
101

query I rowsort
SELECT - 86 * + 29 * - + 56 AS col1
----
139664

onlyif mysql # DIV for integer division: 
query I rowsort label-716
SELECT DISTINCT 43 * 11 DIV + 64 + + + 73 * + 64 AS col2
----
4679

skipif mysql # not compatible
query I rowsort label-716
SELECT DISTINCT 43 * 11 / + 64 + + + 73 * + 64 AS col2
----
4679

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-717
SELECT ALL - ( + + COUNT( * ) ) DIV - 16 + - 97 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL - ( + + COUNT ( * ) ) / - 16 + - 97 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT COUNT( - - 50 ) * - SUM( ALL - 25 ) * - - 9
----
225

skipif mysql # not compatible
query I rowsort label-718
SELECT COUNT ( - - 50 ) * - SUM ( ALL - 25 ) * - - 9
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT 23 - + + 32 + MAX( DISTINCT - 9 ) * + COUNT( * ) + 58
----
40

skipif mysql # not compatible
query I rowsort label-719
SELECT 23 - + + 32 + MAX ( DISTINCT - 9 ) * + COUNT ( * ) + 58
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-720
SELECT - 53 AS col2, 35 DIV 53 AS col2
----
-53
0

skipif mysql # not compatible
query II rowsort label-720
SELECT - 53 AS col2, 35 / 53 AS col2
----
-53
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-721
SELECT COUNT( * ) * - + 96 DIV 3 DIV CAST( + 7 AS SIGNED ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-721
SELECT COUNT ( * ) * - + 96 / 3 / CAST ( + 7 AS INTEGER ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT 51 * SUM( + 20 )
----
1020

skipif mysql # not compatible
query I rowsort label-722
SELECT 51 * SUM ( + 20 )
----
1020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-723
SELECT ALL 3 + - 51 + - + COUNT( * ) DIV + - 21 + - 21
----
-69

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL 3 + - 51 + - + COUNT ( * ) / + - 21 + - 21
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT DISTINCT - 54 + + - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-724
SELECT DISTINCT - 54 + + - COUNT ( * )
----
-55

query I rowsort
SELECT ALL 56 - + 60 col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT COUNT( * ) / + 25 + - CASE - SUM( ALL + 65 ) WHEN + 53 THEN 78 + - 78 * - 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-726
SELECT COUNT ( * ) / + 25 + - CASE - SUM ( ALL + 65 ) WHEN + 53 THEN 78 + - 78 * - 30 END
----
NULL

query I rowsort
SELECT 2 * - 55 * + 90
----
-9900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-728
SELECT - 31 * - 14 - - + 17 + + SUM( DISTINCT 61 ) DIV 37 * 11 AS col2
----
462

skipif mysql # not compatible
query I rowsort label-728
SELECT - 31 * - 14 - - + 17 + + SUM ( DISTINCT 61 ) / 37 * 11 AS col2
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT ALL - COALESCE ( - 34, + - 96 + 85 * + - COALESCE ( + 57, NULLIF ( 79, 59 * 5 + - 28 ) * COUNT( * ) ), - 75 + + 14 )
----
34

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL - COALESCE ( - 34, + - 96 + 85 * + - COALESCE ( + 57, NULLIF ( 79, 59 * 5 + - 28 ) * COUNT ( * ) ), - 75 + + 14 )
----
34

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-731
SELECT 66 DIV - COUNT( * ) - - COUNT( * ) + - 1 + - NULLIF ( 20, + CAST( CASE + 62 WHEN + COUNT( * ) + + 17 THEN - 95 ELSE NULL END AS SIGNED ) ) DIV 56 * SUM( DISTINCT 6 )
----
-66

skipif mysql # not compatible
query I rowsort label-731
SELECT 66 / - COUNT ( * ) - - COUNT ( * ) + - 1 + - NULLIF ( 20, + CAST ( CASE + 62 WHEN + COUNT ( * ) + + 17 THEN - 95 ELSE NULL END AS INTEGER ) ) / 56 * SUM ( DISTINCT 6 )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-732
SELECT 47 * - SUM( - 98 ) DIV COUNT( * ) + - COUNT( * ) + - 37 col0
----
4568

skipif mysql # not compatible
query I rowsort label-732
SELECT 47 * - SUM ( - 98 ) / COUNT ( * ) + - COUNT ( * ) + - 37 col0
----
4568

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-734
SELECT - 16 DIV + - MIN( - 60 ) + MAX( DISTINCT - 75 ) * 59 + - COALESCE ( + 40 + + 95, 57 + - COALESCE ( - CAST( 81 AS SIGNED ), 41 ), 54 + + 13 * - 65 )
----
-4560

skipif mysql # not compatible
query I rowsort label-734
SELECT - 16 / + - MIN ( - 60 ) + MAX ( DISTINCT - 75 ) * 59 + - COALESCE ( + 40 + + 95, 57 + - COALESCE ( - CAST ( 81 AS INTEGER ), 41 ), 54 + + 13 * - 65 )
----
-4560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-735
SELECT ALL - COUNT( * ) * 94 * + CAST( - + 93 AS SIGNED ) AS col1
----
8742

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL - COUNT ( * ) * 94 * + CAST ( - + 93 AS INTEGER ) AS col1
----
8742

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-737
SELECT ( + - CAST( NULL AS SIGNED ) ) + COUNT( * ) / + 36 * + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-737
SELECT ( + - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) / + 36 * + 50 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT 3 + + + COALESCE ( + 63, - COUNT( * ) ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-738
SELECT 3 + + + COALESCE ( + 63, - COUNT ( * ) ) AS col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-739
SELECT DISTINCT + COUNT( * ) DIV + + 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT + COUNT ( * ) / + + 69 AS col1
----
0

query I rowsort
SELECT + NULLIF ( + 50, - 29 / + 39 + 95 )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-741
SELECT COALESCE ( ( + SUM( DISTINCT + + 96 ) ), + 67 DIV 81, 38 ) DIV + 13 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-741
SELECT COALESCE ( ( + SUM ( DISTINCT + + 96 ) ), + 67 / 81, 38 ) / + 13 AS col0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-742
SELECT DISTINCT + 57 DIV - - 62 * + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT + 57 / - - 62 * + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT - 93 + - + 67
----
-160

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT - COUNT( * ) * + ( + - 76 ) + - - 86 * SUM( + - 24 ) AS col1
----
-1988

skipif mysql # not compatible
query I rowsort label-746
SELECT - COUNT ( * ) * + ( + - 76 ) + - - 86 * SUM ( + - 24 ) AS col1
----
-1988

query I rowsort
SELECT 61 * - 18 AS col0
----
-1098

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT ALL - ( COUNT( * ) ) + - - COALESCE ( - - 48, - MAX( DISTINCT - 49 ), + 57 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL - ( COUNT ( * ) ) + - - COALESCE ( - - 48, - MAX ( DISTINCT - 49 ), + 57 ) AS col2
----
47

query I rowsort
SELECT 32 + + + 67 * - + 73 * 14 + CASE 68 WHEN - 24 THEN - 10 WHEN + 65 * 76 THEN NULL ELSE NULL END * + 42
----
NULL

query I rowsort
SELECT COALESCE ( + + 51, 62 * 75 * 7, 66 ) * + 99 - 9 AS col2
----
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT 42 + NULLIF ( - 29, 27 * 12 * 10 - SUM( 84 ) )
----
13

skipif mysql # not compatible
query I rowsort label-751
SELECT 42 + NULLIF ( - 29, 27 * 12 * 10 - SUM ( 84 ) )
----
13

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

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL NULLIF ( 29, COUNT ( * ) + - - 58 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-753
SELECT + NULLIF ( - 94, - 75 ) + + 90 * - + CAST( - COUNT( * ) AS SIGNED ) + - COUNT( * ) * 79 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-753
SELECT + NULLIF ( - 94, - 75 ) + + 90 * - + CAST ( - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) * 79 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-754
SELECT DISTINCT 58, - COUNT( 4 ) AS col0
----
58
-1

skipif mysql # not compatible
query II rowsort label-754
SELECT DISTINCT 58, - COUNT ( 4 ) AS col0
----
58
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-755
SELECT ALL 16 + - - CAST( NULL AS SIGNED ) + + 73 + + 61 * + - 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL 16 + - - CAST ( NULL AS INTEGER ) + + 73 + + 61 * + - 44 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-756
SELECT - 22 + 39 * + CAST( NULL AS DECIMAL ) * + + 80 * 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-756
SELECT - 22 + 39 * + CAST ( NULL AS REAL ) * + + 80 * 7 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT + CASE + - 91 WHEN - 35 * - COUNT( * ) * + SUM( 15 ) THEN NULL WHEN - 83 THEN 25 ELSE - COALESCE ( + ( + 25 ), 11 * 47 + 80 * - MAX( 5 ) ) END + 46
----
21

skipif mysql # not compatible
query I rowsort label-757
SELECT + CASE + - 91 WHEN - 35 * - COUNT ( * ) * + SUM ( 15 ) THEN NULL WHEN - 83 THEN 25 ELSE - COALESCE ( + ( + 25 ), 11 * 47 + 80 * - MAX ( 5 ) ) END + 46
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT DISTINCT NULLIF ( - 91, 65 * + 24 + - - ( - - ( + ( COUNT( * ) ) ) ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-758
SELECT DISTINCT NULLIF ( - 91, 65 * + 24 + - - ( - - ( + ( COUNT ( * ) ) ) ) ) AS col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-759
SELECT DISTINCT + 58 DIV + 5 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT + 58 / + 5 AS col0
----
11

query I rowsort
SELECT + 68 * + 24
----
1632

query I rowsort
SELECT + 44 + 20 + 56 AS col2
----
120

query II rowsort
SELECT ALL 32, - ( + 42 ) AS col0
----
32
-42

query II rowsort
SELECT 52, 63 AS col2
----
52
63

onlyif mysql # aggregate syntax: 
query II rowsort label-764
SELECT - COUNT( + 11 ) AS col2, + 33 * - 51 + + 64 AS col2
----
-1
-1619

skipif mysql # not compatible
query II rowsort label-764
SELECT - COUNT ( + 11 ) AS col2, + 33 * - 51 + + 64 AS col2
----
-1
-1619

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

query I rowsort
SELECT ALL 8 * - ( - 81 ) + - 34 AS col2
----
614

query II rowsort
SELECT DISTINCT + + 26 AS col1, + 48 + - ( - + 76 ) AS col2
----
26
124

onlyif mysql # aggregate syntax: 
query II rowsort label-768
SELECT DISTINCT + + 31, - 77 + ( + + NULLIF ( CASE WHEN NOT 18 IS NULL THEN NULL ELSE + ( 18 ) - + 17 END, COUNT( * ) ) ) + 72 AS col2
----
31
NULL

skipif mysql # not compatible
query II rowsort label-768
SELECT DISTINCT + + 31, - 77 + ( + + NULLIF ( CASE WHEN NOT 18 IS NULL THEN NULL ELSE + ( 18 ) - + 17 END, COUNT ( * ) ) ) + 72 AS col2
----
31
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-769
SELECT + ( - CAST( - + 37 AS SIGNED ) ) * 30 AS col2
----
1110

skipif mysql # not compatible
query I rowsort label-769
SELECT + ( - CAST ( - + 37 AS INTEGER ) ) * 30 AS col2
----
1110

query I rowsort
SELECT ALL + - COALESCE ( + - 43, - 18 + 87, - 52 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT + 18 - - 65 + NULLIF ( + - 82, - 89 * + 56 + 45 ) + 63 * COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-771
SELECT + 18 - - 65 + NULLIF ( + - 82, - 89 * + 56 + 45 ) + 63 * COUNT ( * ) AS col1
----
64

query III rowsort
SELECT + - 31 col1, - 58 * + 29 + + 24, - + 34 AS col2
----
-31
-1658
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT ALL + 88 * + + 60 + + + COALESCE ( + SUM( 87 ), 57 )
----
5367

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL + 88 * + + 60 + + + COALESCE ( + SUM ( 87 ), 57 )
----
5367

query I rowsort
SELECT + + 83 * - + 17
----
-1411

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT - - 77 + - - 44 + - + 94 * + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-775
SELECT - - 77 + - - 44 + - + 94 * + COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-776
SELECT COUNT( DISTINCT + 66 ) AS col0, - 38 AS col0
----
1
-38

skipif mysql # not compatible
query II rowsort label-776
SELECT COUNT ( DISTINCT + 66 ) AS col0, - 38 AS col0
----
1
-38

query I rowsort
SELECT ALL 38 * 18 + + 72 - + - 47 * 11 * + 13 AS col2
----
7477

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT - + 25 * + COUNT( * ) + - ( + + 94 ) AS col2
----
-119

skipif mysql # not compatible
query I rowsort label-778
SELECT - + 25 * + COUNT ( * ) + - ( + + 94 ) AS col2
----
-119

query I rowsort
SELECT - 81 - + 65
----
-146

onlyif mysql # DIV for integer division: 
query II rowsort label-780
SELECT + 78, + 54 DIV 26 col1
----
78
2

skipif mysql # not compatible
query II rowsort label-780
SELECT + 78, + 54 / 26 col1
----
78
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-781
SELECT ALL + - NULLIF ( - 36, - + 45 ) * - - COUNT( * ) + - - 91 DIV 12 - 83 * 3 + + 94 AS col2
----
-112

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL + - NULLIF ( - 36, - + 45 ) * - - COUNT ( * ) + - - 91 / 12 - 83 * 3 + + 94 AS col2
----
-112

query II rowsort
SELECT - + 51 + 58 AS col1, + NULLIF ( - 35, ( - + 90 ) ) * - 74
----
7
2590

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT DISTINCT + COALESCE ( 74, + NULLIF ( - 13, COUNT( * ) + - 81 - - + 19 + + 80 * - ( - COUNT( * ) ) / + 90 ) ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT + COALESCE ( 74, + NULLIF ( - 13, COUNT ( * ) + - 81 - - + 19 + + 80 * - ( - COUNT ( * ) ) / + 90 ) ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT MIN( + 85 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-784
SELECT MIN ( + 85 ) AS col1
----
85

query I rowsort
SELECT COALESCE ( 5, + 20 ) * + 8 + - + 72 AS col0
----
-32

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-787
SELECT ALL + 44 DIV - 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL + 44 / - 84 AS col1
----
0

query I rowsort
SELECT DISTINCT NULLIF ( 76, + - 35 )
----
76

query II rowsort
SELECT DISTINCT + 79 * 5 + - - 66 * + 74 + 22 AS col0, - 12 * + 96 AS col0
----
5301
-1152

onlyif mysql # DIV for integer division: 
query I rowsort label-790
SELECT DISTINCT 52 DIV - + 90 * 13 * 66
----
0

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT 52 / - + 90 * 13 * 66
----
0

query I rowsort
SELECT ALL + 72 + - 42 col2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-792
SELECT ALL - 44 DIV 59 * + 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL - 44 / 59 * + 60 AS col2
----
0

query I rowsort
SELECT ALL + 72 - + + 22 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT - MAX( DISTINCT - - 34 ) - - 77 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-794
SELECT - MAX ( DISTINCT - - 34 ) - - 77 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT - 62 - + COUNT( * ) * - + 54 + + COALESCE ( - + 20, ( - COALESCE ( 74, 80 ) ) ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-795
SELECT - 62 - + COUNT ( * ) * - + 54 + + COALESCE ( - + 20, ( - COALESCE ( 74, 80 ) ) ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-796
SELECT - NULLIF ( 59, - 2 + 69 ) + - COUNT( * ), - COUNT( * ) * + COUNT( * ) AS col2
----
-60
-1

skipif mysql # not compatible
query II rowsort label-796
SELECT - NULLIF ( 59, - 2 + 69 ) + - COUNT ( * ), - COUNT ( * ) * + COUNT ( * ) AS col2
----
-60
-1

onlyif mysql # DIV for integer division: 
query III rowsort label-797
SELECT - ( + - 14 ) * - + 12 AS col0, + 74 * - + 5 AS col2, + - 31 DIV - COALESCE ( 89, + 62, 3 * 32 ) col0
----
-168
-370
0

skipif mysql # not compatible
query III rowsort label-797
SELECT - ( + - 14 ) * - + 12 AS col0, + 74 * - + 5 AS col2, + - 31 / - COALESCE ( 89, + 62, 3 * 32 ) col0
----
-168
-370
0

query I rowsort
SELECT DISTINCT + 55 - 37 + + + 72
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT ALL NULLIF ( - + 15, 90 - MIN( DISTINCT + + 39 ) + + 15 + - CASE + 31 WHEN + 8 THEN + 45 ELSE + CASE - 56 WHEN + 8 THEN NULL ELSE - 79 END * NULLIF ( + COUNT( * ), + 11 ) END * 36 )
----
-15

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL NULLIF ( - + 15, 90 - MIN ( DISTINCT + + 39 ) + + 15 + - CASE + 31 WHEN + 8 THEN + 45 ELSE + CASE - 56 WHEN + 8 THEN NULL ELSE - 79 END * NULLIF ( + COUNT ( * ), + 11 ) END * 36 )
----
-15

query II rowsort
SELECT - 8 - - 26 AS col1, - 20 AS col1
----
18
-20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT ALL ( + + ( + 26 ) ) * CASE - 85 WHEN + ( + COUNT( * ) ) THEN + 20 * - 99 + COUNT( * ) END * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL ( + + ( + 26 ) ) * CASE - 85 WHEN + ( + COUNT ( * ) ) THEN + 20 * - 99 + COUNT ( * ) END * 23
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-803
SELECT ALL + 84 DIV 62
----
1

skipif mysql # not compatible
query I rowsort label-803
SELECT ALL + 84 / 62
----
1

query I rowsort
SELECT + NULLIF ( + - ( - 39 ), - + 80 ) col2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-805
SELECT - 25 DIV 21
----
-1

skipif mysql # not compatible
query I rowsort label-805
SELECT - 25 / 21
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT DISTINCT + - 71 / 59 * - 24 + - CASE - COUNT( * ) WHEN + 58 THEN + COALESCE ( + 89, 59 - 43 ) * 27 ELSE NULL END + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-806
SELECT DISTINCT + - 71 / 59 * - 24 + - CASE - COUNT ( * ) WHEN + 58 THEN + COALESCE ( + 89, 59 - 43 ) * 27 ELSE NULL END + 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-807
SELECT ALL - 93 DIV + 31 + + NULLIF ( - 12, + NULLIF ( + 77, + + 92 + - 45 ) + 41 * - 29 ) + + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL - 93 / + 31 + + NULLIF ( - 12, + NULLIF ( + 77, + + 92 + - 45 ) + 41 * - 29 ) + + COUNT ( * )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-808
SELECT DISTINCT + CAST( - + 69 AS SIGNED ) DIV + 66 + + - 85 + - COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT + CAST ( - + 69 AS INTEGER ) / + 66 + + - 85 + - COUNT ( * )
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-809
SELECT - + ( - + 35 ) DIV + 52 + + 53 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-809
SELECT - + ( - + 35 ) / + 52 + + 53 AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-810
SELECT ALL + 7 DIV + COUNT( - 89 ) + - 98 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-810
SELECT ALL + 7 / + COUNT ( - 89 ) + - 98 AS col0
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-811
SELECT ALL + 71 DIV + COALESCE ( + COUNT( * ), + NULLIF ( + - 53, + + 73 * 98 ) * - 70 + + SUM( DISTINCT 2 ), + 60 + 82, - 54 + + 19 ) + - 12
----
59

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL + 71 / + COALESCE ( + COUNT ( * ), + NULLIF ( + - 53, + + 73 * 98 ) * - 70 + + SUM ( DISTINCT 2 ), + 60 + 82, - 54 + + 19 ) + - 12
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT + CASE + COUNT( * ) WHEN + 89 * + + 57 * - - 22 + - 64 THEN NULL WHEN 7 THEN ( 62 ) ELSE 99 END
----
99

skipif mysql # not compatible
query I rowsort label-812
SELECT + CASE + COUNT ( * ) WHEN + 89 * + + 57 * - - 22 + - 64 THEN NULL WHEN 7 THEN ( 62 ) ELSE 99 END
----
99

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

query I rowsort
SELECT + 11 * + 75 + 17
----
842

query I rowsort
SELECT ALL 40 - 65 AS col0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-816
SELECT CAST( - - 24 AS SIGNED ) + 80 * + ( + - 60 ) * - + COUNT( * ) AS col1
----
4824

skipif mysql # not compatible
query I rowsort label-816
SELECT CAST ( - - 24 AS INTEGER ) + 80 * + ( + - 60 ) * - + COUNT ( * ) AS col1
----
4824

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-817
SELECT DISTINCT - NULLIF ( 85, - COUNT( * ) + 70 + + 5 + + + 29 * 39 * + 59 + NULLIF ( + COALESCE ( - 25, 48, + CAST( 10 AS DECIMAL ) ), 7 - 57 * CASE - COALESCE ( + 64, + 85 ) WHEN 27 + COUNT( * ) THEN - 39 * 43 WHEN - COUNT( * ) THEN NULL ELSE 61 END ) * + 55 )
----
-85

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT - NULLIF ( 85, - COUNT ( * ) + 70 + + 5 + + + 29 * 39 * + 59 + NULLIF ( + COALESCE ( - 25, 48, + CAST ( 10 AS REAL ) ), 7 - 57 * CASE - COALESCE ( + 64, + 85 ) WHEN 27 + COUNT ( * ) THEN - 39 * 43 WHEN - COUNT ( * ) THEN NULL ELSE 61 END ) * + 55 )
----
-85

query I rowsort
SELECT DISTINCT 46 * - 37
----
-1702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-819
SELECT ( + 88 ) * + 19 * + NULLIF ( + COUNT( * ), - 28 ) + 48 - + 89 DIV 6 AS col2
----
1706

skipif mysql # not compatible
query I rowsort label-819
SELECT ( + 88 ) * + 19 * + NULLIF ( + COUNT ( * ), - 28 ) + 48 - + 89 / 6 AS col2
----
1706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-820
SELECT 57 + - 38 + - COUNT( ALL 7 ) + + ( + + 69 ), CAST( - 81 AS SIGNED ) AS col2
----
87
-81

skipif mysql # not compatible
query II rowsort label-820
SELECT 57 + - 38 + - COUNT ( ALL 7 ) + + ( + + 69 ), CAST ( - 81 AS INTEGER ) AS col2
----
87
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-821
SELECT DISTINCT 65, COUNT( * ) * - 50 AS col2
----
65
-50

skipif mysql # not compatible
query II rowsort label-821
SELECT DISTINCT 65, COUNT ( * ) * - 50 AS col2
----
65
-50

query I rowsort
SELECT 76 + - 81
----
-5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-824
SELECT CAST( - + 27 AS SIGNED ) * - 69
----
1863

skipif mysql # not compatible
query I rowsort label-824
SELECT CAST ( - + 27 AS INTEGER ) * - 69
----
1863

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-825
SELECT ALL 97 DIV - COUNT( - + 31 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL 97 / - COUNT ( - + 31 ) AS col2
----
-97

query I rowsort
SELECT 2 + - 42
----
-40

query I rowsort
SELECT ALL - 69 * + - 66 * - ( - 27 ) * 29
----
3565782

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT DISTINCT 32 * - ( - + 30 ) * + - CASE - + 54 WHEN - + 26 THEN + - 95 * + 55 + NULLIF ( COUNT( * ), 28 ) * COUNT( * ) WHEN 64 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT 32 * - ( - + 30 ) * + - CASE - + 54 WHEN - + 26 THEN + - 95 * + 55 + NULLIF ( COUNT ( * ), 28 ) * COUNT ( * ) WHEN 64 THEN NULL END col2
----
NULL

query I rowsort
SELECT 17 * NULLIF ( 65, - 67 + 83 ) AS col0
----
1105

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT MAX( + 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-831
SELECT MAX ( + 10 ) AS col2
----
10

query I rowsort
SELECT ALL + 21 * + + 20
----
420

query II rowsort
SELECT - 72 AS col0, 97
----
-72
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-834
SELECT - 14 * - + 22 + 80 DIV + COUNT( * ) AS col0
----
388

skipif mysql # not compatible
query I rowsort label-834
SELECT - 14 * - + 22 + 80 / + COUNT ( * ) AS col0
----
388

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT ALL - 72 + ( + COUNT( * ) )
----
-71

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL - 72 + ( + COUNT ( * ) )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-836
SELECT DISTINCT - COALESCE ( + 28, + 62 + SUM( - + 4 ) + + 82 * - + 90 * + - 41, 27 DIV 99 ) DIV - 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-836
SELECT DISTINCT - COALESCE ( + 28, + 62 + SUM ( - + 4 ) + + 82 * - + 90 * + - 41, 27 / 99 ) / - 87 AS col0
----
0

query II rowsort
SELECT DISTINCT - - 11, ( 59 ) AS col2
----
11
59

query I rowsort
SELECT DISTINCT + + 84 + - 94 * ( ( 10 ) ) + - 7 + + CASE 15 WHEN - 19 THEN 17 WHEN - 62 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 36 + COALESCE ( + + ( - + 13 ), 91, - 76 )
----
23

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

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

query I rowsort
SELECT ALL - 45 * - 46 * + 44 AS col0
----
91080

query II rowsort
SELECT DISTINCT - + 60 AS col0, + ( 72 ) AS col0
----
-60
72

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT - - COUNT( * ) * + 77 * + 18 - + SUM( 9 ) * NULLIF ( + 16, + + COUNT( * ) - + 2 ) * - COUNT( * ) col2
----
1530

skipif mysql # not compatible
query I rowsort label-843
SELECT - - COUNT ( * ) * + 77 * + 18 - + SUM ( 9 ) * NULLIF ( + 16, + + COUNT ( * ) - + 2 ) * - COUNT ( * ) col2
----
1530

query II rowsort
SELECT + 63 AS col0, NULLIF ( - 13, - 93 ) + + - 26
----
63
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT ALL + ( + - 57 ) - + ( + ( - - 23 ) ) * - - COUNT( * ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL + ( + - 57 ) - + ( + ( - - 23 ) ) * - - COUNT ( * ) AS col2
----
-80

query I rowsort
SELECT 61 * + 68
----
4148

query I rowsort
SELECT ALL - 44 * - 10
----
440

onlyif mysql # DIV for integer division: 
query I rowsort label-848
SELECT DISTINCT 34 DIV - + 31
----
-1

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT 34 / - + 31
----
-1

query I rowsort
SELECT ( 66 ) + + 67
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT SUM( 19 ) * - + 98
----
-1862

skipif mysql # not compatible
query I rowsort label-850
SELECT SUM ( 19 ) * - + 98
----
-1862

query I rowsort
SELECT ALL 40 - + 90 + + 80 - 49 * - 74
----
3656

query I rowsort
SELECT 2 + 73 * + 11 AS col2
----
805

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT DISTINCT 56 * COUNT( ALL 25 ) * + 66 AS col1
----
3696

skipif mysql # not compatible
query I rowsort label-853
SELECT DISTINCT 56 * COUNT ( ALL 25 ) * + 66 AS col1
----
3696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-854
SELECT ALL 79 + CAST( + 28 AS SIGNED ) * + - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL 79 + CAST ( + 28 AS INTEGER ) * + - COUNT ( * )
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-855
SELECT 30 DIV ( 97 )
----
0

skipif mysql # not compatible
query I rowsort label-855
SELECT 30 / ( 97 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT 93 - + - 22 + 81 * + - CASE 42 WHEN - + 95 THEN - NULLIF ( - - COUNT( * ), 28 ) WHEN COUNT( * ) * 79 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-856
SELECT 93 - + - 22 + 81 * + - CASE 42 WHEN - + 95 THEN - NULLIF ( - - COUNT ( * ), 28 ) WHEN COUNT ( * ) * 79 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-857
SELECT ALL 15 + - + 80 DIV + 42 col2
----
14

skipif mysql # not compatible
query I rowsort label-857
SELECT ALL 15 + - + 80 / + 42 col2
----
14

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

skipif mysql # not compatible
query I rowsort label-858
SELECT - 85 + - COUNT ( * ) / + + COUNT ( * ) + + COUNT ( * )
----
-85

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

skipif mysql # not compatible
query I rowsort label-859
SELECT SUM ( DISTINCT 48 )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-860
SELECT ALL - 1 + + 18 - - 22 + - 57 DIV 54 + - 2 * + 22 * - + 97 AS col0
----
4306

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL - 1 + + 18 - - 22 + - 57 / 54 + - 2 * + 22 * - + 97 AS col0
----
4306

query II rowsort
SELECT ALL ( - 90 ) AS col2, 91 AS col2
----
-90
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT DISTINCT CASE + 36 WHEN + 5 * + 19 THEN 99 + 62 END + ( - COALESCE ( - SUM( ALL - 67 ), 93 * - 85, - 41 ) ) + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT CASE + 36 WHEN + 5 * + 19 THEN 99 + 62 END + ( - COALESCE ( - SUM ( ALL - 67 ), 93 * - 85, - 41 ) ) + + 66
----
NULL

query I rowsort
SELECT ALL - - 61 * - 58
----
-3538

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-865
SELECT + 34 - + COUNT( * ) * 42 + + 56 DIV + 4 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-865
SELECT + 34 - + COUNT ( * ) * 42 + + 56 / + 4 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT ALL - 40 + + 30 * - - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL - 40 + + 30 * - - COUNT ( * )
----
-10

query I rowsort
SELECT ALL - 49 * + - ( + 73 ) + 97
----
3674

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT - COUNT( * ) + - SUM( ALL + 17 )
----
-18

skipif mysql # not compatible
query I rowsort label-868
SELECT - COUNT ( * ) + - SUM ( ALL + 17 )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-869
SELECT + 2 DIV 72 - - 89 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-869
SELECT + 2 / 72 - - 89 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT ALL + 69 * - COUNT( DISTINCT 27 ) - - - 1
----
-70

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL + 69 * - COUNT ( DISTINCT 27 ) - - - 1
----
-70

query I rowsort
SELECT DISTINCT + + ( + 68 )
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-872
SELECT DISTINCT - ( + 8 ) * + - 74 * 31 DIV - COUNT( * ) - - - 32 * + ( 13 )
----
-18768

skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT - ( + 8 ) * + - 74 * 31 / - COUNT ( * ) - - - 32 * + ( 13 )
----
-18768

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT ALL - COUNT( * ) * + COALESCE ( - ( - - CASE + 51 WHEN + 5 - + - 67 THEN 72 END ), + 9 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL - COUNT ( * ) * + COALESCE ( - ( - - CASE + 51 WHEN + 5 - + - 67 THEN 72 END ), + 9 ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT - CASE 39 WHEN - MAX( - COALESCE ( 10, + 69 ) ) THEN + 32 / 16 * - 4 END * 33 * - ( COALESCE ( 7, + 24, 60 * + 81 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-874
SELECT - CASE 39 WHEN - MAX ( - COALESCE ( 10, + 69 ) ) THEN + 32 / 16 * - 4 END * 33 * - ( COALESCE ( 7, + 24, 60 * + 81 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT MIN( + 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-875
SELECT MIN ( + 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT COUNT( * ) * - - NULLIF ( + - 48, - - CASE - + ( + + 80 ) WHEN + 34 + - ( + MAX( - 65 ) ) + 65 THEN ( 70 ) WHEN + 72 THEN NULL ELSE + 76 END ) + + 43
----
-5

skipif mysql # not compatible
query I rowsort label-876
SELECT COUNT ( * ) * - - NULLIF ( + - 48, - - CASE - + ( + + 80 ) WHEN + 34 + - ( + MAX ( - 65 ) ) + 65 THEN ( 70 ) WHEN + 72 THEN NULL ELSE + 76 END ) + + 43
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT - 36 * + - ( + + COUNT( * ) ) + + 38
----
74

skipif mysql # not compatible
query I rowsort label-877
SELECT - 36 * + - ( + + COUNT ( * ) ) + + 38
----
74

query I rowsort
SELECT ALL + 14 * + 77 AS col1
----
1078

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT + 99 * 37 - - 51 * - MIN( 58 )
----
705

skipif mysql # not compatible
query I rowsort label-879
SELECT + 99 * 37 - - 51 * - MIN ( 58 )
----
705

onlyif mysql # aggregate syntax: 
query II rowsort label-880
SELECT - 92 * + MAX( + 73 ), COUNT( DISTINCT + 78 ) AS col2
----
-6716
1

skipif mysql # not compatible
query II rowsort label-880
SELECT - 92 * + MAX ( + 73 ), COUNT ( DISTINCT + 78 ) AS col2
----
-6716
1

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT ALL - COUNT( - 31 ) * + + 86 * + - ( - 84 )
----
-7224

skipif mysql # not compatible
query I rowsort label-881
SELECT ALL - COUNT ( - 31 ) * + + 86 * + - ( - 84 )
----
-7224

query I rowsort
SELECT ALL - 41 * + 53
----
-2173

query II rowsort
SELECT + 86 + - 93 - + - 15 AS col0, 7
----
8
7

query I rowsort
SELECT - 56 * - 24 AS col0
----
1344

query I rowsort
SELECT - 73 + - - 17
----
-56

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-888
SELECT - 50 + SUM( ALL + 99 ) + + ( - 97 ) * - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-888
SELECT - 50 + SUM ( ALL + 99 ) + + ( - 97 ) * - + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT + SUM( ALL + + 71 ) - + 2 + - + 38 * + 91 AS col0
----
-3389

skipif mysql # not compatible
query I rowsort label-889
SELECT + SUM ( ALL + + 71 ) - + 2 + - + 38 * + 91 AS col0
----
-3389

query I rowsort
SELECT - 26 + - - 66
----
40

query I rowsort
SELECT ALL - 5 + + + ( COALESCE ( 76, + - 42 ) ) + + 73
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT ALL + NULLIF ( COUNT( * ), - - 85 + MAX( 82 ) * 4 * - 17 * + 98 - + - 69 ) + - 28 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL + NULLIF ( COUNT ( * ), - - 85 + MAX ( 82 ) * 4 * - 17 * + 98 - + - 69 ) + - 28 AS col0
----
-27

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-894
SELECT DISTINCT 70 + - - CAST( - CAST( + ( + 66 ) AS SIGNED ) AS SIGNED ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-894
SELECT DISTINCT 70 + - - CAST ( - CAST ( + ( + 66 ) AS INTEGER ) AS INTEGER ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT ALL + NULLIF ( 27, ( - 16 ) + MAX( - - 62 ) + - CASE - - 61 WHEN + 19 THEN - - NULLIF ( + 31, ( 91 ) + 81 ) WHEN - 55 THEN NULL END )
----
27

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL + NULLIF ( 27, ( - 16 ) + MAX ( - - 62 ) + - CASE - - 61 WHEN + 19 THEN - - NULLIF ( + 31, ( 91 ) + 81 ) WHEN - 55 THEN NULL END )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT - + MIN( ALL - + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-896
SELECT - + MIN ( ALL - + 14 )
----
14

query I rowsort
SELECT + 32 + + 88 AS col0
----
120

query I rowsort
SELECT + + 84 * - 3
----
-252

query I rowsort
SELECT - NULLIF ( + 13, + 33 * - - ( - 74 ) - - ( 74 ) / + - 17 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT - + COUNT( * ) + - COUNT( * ) + - - 61 * 3 * - 69 + COALESCE ( COUNT( * ), 72 )
----
-12628

skipif mysql # not compatible
query I rowsort label-900
SELECT - + COUNT ( * ) + - COUNT ( * ) + - - 61 * 3 * - 69 + COALESCE ( COUNT ( * ), 72 )
----
-12628

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-901
SELECT ALL ( + 19 ) DIV + 84 * CAST( + 23 AS SIGNED ) DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-901
SELECT ALL ( + 19 ) / + 84 * CAST ( + 23 AS INTEGER ) / - 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT + 44 + + + ( COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-902
SELECT + 44 + + + ( COUNT ( * ) )
----
45

query II rowsort
SELECT + + 71, - 98 AS col0
----
71
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT ( + 81 ) * + - 31 + 45 + SUM( - - 39 ) * + - 19 * + - 70 AS col0
----
49404

skipif mysql # not compatible
query I rowsort label-904
SELECT ( + 81 ) * + - 31 + 45 + SUM ( - - 39 ) * + - 19 * + - 70 AS col0
----
49404

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-906
SELECT ALL + COALESCE ( COUNT( * ), - 36 * + 75 + MIN( - + 68 ), + COALESCE ( + + 73, + + 33 * + - COUNT( * ) * 12, - COUNT( * ) + 87 * + 72 ) * - CAST( NULL AS SIGNED ) + + 6 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL + COALESCE ( COUNT ( * ), - 36 * + 75 + MIN ( - + 68 ), + COALESCE ( + + 73, + + 33 * + - COUNT ( * ) * 12, - COUNT ( * ) + 87 * + 72 ) * - CAST ( NULL AS INTEGER ) + + 6 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-907
SELECT + CAST( - NULLIF ( 67, + - 46 * 49 ) AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-907
SELECT + CAST ( - NULLIF ( 67, + - 46 * 49 ) AS INTEGER )
----
-67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT + COUNT( * ) * + - MAX( DISTINCT ( 3 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-909
SELECT + COUNT ( * ) * + - MAX ( DISTINCT ( 3 ) )
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT DISTINCT 80 * - COUNT( * ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT 80 * - COUNT ( * ) AS col2
----
-80

query II rowsort
SELECT + 57 col2, 30 * - - ( + 5 ) col0
----
57
150

query I rowsort
SELECT - 10 * + 63
----
-630

onlyif mysql # aggregate syntax: 
query II rowsort label-914
SELECT ALL + MIN( ALL + - 78 ) AS col2, 60 AS col1
----
-78
60

skipif mysql # not compatible
query II rowsort label-914
SELECT ALL + MIN ( ALL + - 78 ) AS col2, 60 AS col1
----
-78
60

query I rowsort
SELECT - ( 81 ) * - 86
----
6966

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT NULLIF ( - MIN( - + 35 ), - - ( - + 83 ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-916
SELECT NULLIF ( - MIN ( - + 35 ), - - ( - + 83 ) ) AS col1
----
35

query II rowsort
SELECT + 25, 29 AS col2
----
25
29

query I rowsort
SELECT COALESCE ( - + 30, + + 31 ) col1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-919
SELECT - 26 DIV 14 * - COUNT( * ) DIV - SUM( - 6 ) * 46 AS col0, 59 AS col0
----
0
59

skipif mysql # not compatible
query II rowsort label-919
SELECT - 26 / 14 * - COUNT ( * ) / - SUM ( - 6 ) * 46 AS col0, 59 AS col0
----
0
59

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-920
SELECT ALL CAST( NULL AS DECIMAL ) col2, 49
----
NULL
49

skipif mysql # not compatible
query II rowsort label-920
SELECT ALL CAST ( NULL AS REAL ) col2, 49
----
NULL
49

query I rowsort
SELECT ALL - 1 * - - 63 + 1 + 94 + + + 7 col2
----
39

query I rowsort
SELECT DISTINCT + 12 * + 17 + - 0 AS col0
----
204

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-926
SELECT DISTINCT 56 * + CAST( 73 AS SIGNED ) - + - 57 * + 90
----
9218

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT 56 * + CAST ( 73 AS INTEGER ) - + - 57 * + 90
----
9218

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT MIN( - - 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-927
SELECT MIN ( - - 94 ) AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-928
SELECT - - CASE + CAST( - 52 AS SIGNED ) WHEN + 43 * COUNT( * ) THEN NULL WHEN - - MIN( + ( + 20 ) ) THEN - COUNT( * ) + - 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-928
SELECT - - CASE + CAST ( - 52 AS INTEGER ) WHEN + 43 * COUNT ( * ) THEN NULL WHEN - - MIN ( + ( + 20 ) ) THEN - COUNT ( * ) + - 62 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT ALL - COALESCE ( + MAX( DISTINCT + 68 ), - + 38 )
----
-68

skipif mysql # not compatible
query I rowsort label-929
SELECT ALL - COALESCE ( + MAX ( DISTINCT + 68 ), - + 38 )
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-930
SELECT - + NULLIF ( COUNT( * ), 90 + + 0 - + 24 * 51 * + 43 + + 10 ) - - 70 DIV COUNT( DISTINCT + 48 )
----
69

skipif mysql # not compatible
query I rowsort label-930
SELECT - + NULLIF ( COUNT ( * ), 90 + + 0 - + 24 * 51 * + 43 + + 10 ) - - 70 / COUNT ( DISTINCT + 48 )
----
69

query I rowsort
SELECT + - 13 * - + 78 AS col1
----
1014

query I rowsort
SELECT - NULLIF ( 21, 64 * + 16 )
----
-21

onlyif mysql # aggregate syntax: 
query III rowsort label-933
SELECT ALL COUNT( * ) AS col0, - 71 * + 1 * + 3, 36 + + COUNT( * ) + + ( 77 ) AS col1
----
1
-213
114

skipif mysql # not compatible
query III rowsort label-933
SELECT ALL COUNT ( * ) AS col0, - 71 * + 1 * + 3, 36 + + COUNT ( * ) + + ( 77 ) AS col1
----
1
-213
114

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT COUNT( * ) + MAX( ALL - 94 ) + + 29 * + + 1
----
-64

skipif mysql # not compatible
query I rowsort label-934
SELECT COUNT ( * ) + MAX ( ALL - 94 ) + + 29 * + + 1
----
-64

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT + ( + 39 ) + + - 59 * - 4 * - CAST( + ( + 71 ) AS SIGNED ) * - 36 + - 4 * - 49 + - 70 * + 61 AS col0
----
599181

skipif mysql # not compatible
query I rowsort label-936
SELECT + ( + 39 ) + + - 59 * - 4 * - CAST ( + ( + 71 ) AS INTEGER ) * - 36 + - 4 * - 49 + - 70 * + 61 AS col0
----
599181

onlyif mysql # aggregate syntax: 
query II rowsort label-937
SELECT ALL 19 AS col0, - SUM( DISTINCT 58 ) AS col1
----
19
-58

skipif mysql # not compatible
query II rowsort label-937
SELECT ALL 19 AS col0, - SUM ( DISTINCT 58 ) AS col1
----
19
-58

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

onlyif mysql # DIV for integer division: 
query I rowsort label-939
SELECT DISTINCT - + 72 - - 39 DIV 90 col0
----
-72

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT - + 72 - - 39 / 90 col0
----
-72

query I rowsort
SELECT ALL 45 * - 29 AS col2
----
-1305

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT DISTINCT MAX( ALL - - 59 ) * 72 + - 51 - + COUNT( * )
----
4196

skipif mysql # not compatible
query I rowsort label-941
SELECT DISTINCT MAX ( ALL - - 59 ) * 72 + - 51 - + COUNT ( * )
----
4196

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

skipif mysql # not compatible
query I rowsort label-942
SELECT - COUNT ( * ) + - MAX ( - 32 ) AS col2
----
31

query I rowsort
SELECT + 72 * - 94
----
-6768

query I rowsort
SELECT 71 * - 86
----
-6106

onlyif mysql # DIV for integer division: 
query I rowsort label-945
SELECT ALL - 6 * 2 + - 8 * 50 - 0 DIV - 57
----
-412

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL - 6 * 2 + - 8 * 50 - 0 / - 57
----
-412

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT + ( COALESCE ( - 47, + - 42 * - 33 + - + ( + COUNT( * ) ) ) )
----
-47

skipif mysql # not compatible
query I rowsort label-946
SELECT + ( COALESCE ( - 47, + - 42 * - 33 + - + ( + COUNT ( * ) ) ) )
----
-47

query I rowsort
SELECT ( - 42 ) * - 85
----
3570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-948
SELECT ALL 81 + - - 47 + - 12 + + 14 DIV + - ( + 95 ) * + COUNT( * ) AS col0
----
116

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL 81 + - - 47 + - 12 + + 14 / + - ( + 95 ) * + COUNT ( * ) AS col0
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-949
SELECT ALL 4 + - - 15 - + 83 - - - 93 + - NULLIF ( + 41, - - MAX( ALL 39 ) ) + + - COUNT( * ) * - + 55 + - 13 DIV + - 76
----
-143

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL 4 + - - 15 - + 83 - - - 93 + - NULLIF ( + 41, - - MAX ( ALL 39 ) ) + + - COUNT ( * ) * - + 55 + - 13 / + - 76
----
-143

query I rowsort
SELECT DISTINCT 16 + 35 * + ( + - 54 )
----
-1874

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

query I rowsort
SELECT ALL 68 + 84 * - - 53
----
4520

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT 92 + + - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-953
SELECT 92 + + - COUNT ( * )
----
91

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

skipif mysql # not compatible
query I rowsort label-954
SELECT - 3 * - 99 + ( - COUNT ( * ) ) AS col0
----
296

query I rowsort
SELECT 37 * - 49 * - 92 AS col2
----
166796

onlyif mysql # aggregate syntax: 
query II rowsort label-956
SELECT 88 * + COUNT( * ) + + 70 * + 85 * - NULLIF ( + 84, + + 19 ) AS col0, + COUNT( * )
----
-499712
1

skipif mysql # not compatible
query II rowsort label-956
SELECT 88 * + COUNT ( * ) + + 70 * + 85 * - NULLIF ( + 84, + + 19 ) AS col0, + COUNT ( * )
----
-499712
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-957
SELECT CAST( NULL AS SIGNED ) + + ( 61 ) - + + 51 * 78, 96 AS col1
----
NULL
96

skipif mysql # not compatible
query II rowsort label-957
SELECT CAST ( NULL AS INTEGER ) + + ( 61 ) - + + 51 * 78, 96 AS col1
----
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT ALL COALESCE ( + 98, + MAX( + - ( - 14 ) ), ( + 27 ) * - 98 ) * 58 - + 31
----
5653

skipif mysql # not compatible
query I rowsort label-958
SELECT ALL COALESCE ( + 98, + MAX ( + - ( - 14 ) ), ( + 27 ) * - 98 ) * 58 - + 31
----
5653

query II rowsort
SELECT DISTINCT 67 - + + 21, + 17 AS col2
----
46
17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-960
SELECT DISTINCT COALESCE ( 55, - 34, - CAST( NULL AS SIGNED ) DIV 95 ) * - 66 AS col0
----
-3630

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT COALESCE ( 55, - 34, - CAST ( NULL AS INTEGER ) / 95 ) * - 66 AS col0
----
-3630

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT 36 + + COUNT( * ) * + 9 * - 34
----
-270

skipif mysql # not compatible
query I rowsort label-961
SELECT 36 + + COUNT ( * ) * + 9 * - 34
----
-270

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

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

query I rowsort
SELECT + 87 + - - 43 AS col0
----
130

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-965
SELECT 58 * + - CAST( + + 42 AS SIGNED ) + + - 2 AS col2
----
-2438

skipif mysql # not compatible
query I rowsort label-965
SELECT 58 * + - CAST ( + + 42 AS INTEGER ) + + - 2 AS col2
----
-2438

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-966
SELECT + 40 + 63 + + ( 61 ) + - COUNT( * ) DIV - + 37
----
164

skipif mysql # not compatible
query I rowsort label-966
SELECT + 40 + 63 + + ( 61 ) + - COUNT ( * ) / - + 37
----
164

query I rowsort
SELECT - 53 + 70 * + 25 + + + 88
----
1785

query I rowsort
SELECT - 23 + ( + 78 ) * + + NULLIF ( 37, + 41 )
----
2863

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-970
SELECT ALL - 18 * + - 61, + COALESCE ( - - 77, - 48 + 9 + 12 DIV + ( + + CAST( - 88 AS SIGNED ) ), 57 ) AS col2
----
1098
77

skipif mysql # not compatible
query II rowsort label-970
SELECT ALL - 18 * + - 61, + COALESCE ( - - 77, - 48 + 9 + 12 / + ( + + CAST ( - 88 AS INTEGER ) ), 57 ) AS col2
----
1098
77

query II rowsort
SELECT + 90 + + - 53 AS col1, - 42
----
37
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-972
SELECT ALL - COUNT( * ) * + + 17, + 83 AS col1
----
-17
83

skipif mysql # not compatible
query II rowsort label-972
SELECT ALL - COUNT ( * ) * + + 17, + 83 AS col1
----
-17
83

query I rowsort
SELECT + NULLIF ( + + 23, - 59 ) + + + 87
----
110

query I rowsort
SELECT ALL + - 82 * - 99
----
8118

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT 9 + MIN( DISTINCT - - 50 )
----
59

skipif mysql # not compatible
query I rowsort label-975
SELECT 9 + MIN ( DISTINCT - - 50 )
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-976
SELECT 39 DIV - 44
----
0

skipif mysql # not compatible
query I rowsort label-976
SELECT 39 / - 44
----
0

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

skipif mysql # not compatible
query I rowsort label-977
SELECT COUNT ( ALL - + 99 ) * + 79 * - 24
----
-1896

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT ALL + 33 * SUM( DISTINCT - 10 ) + - 82 col2
----
-412

skipif mysql # not compatible
query I rowsort label-978
SELECT ALL + 33 * SUM ( DISTINCT - 10 ) + - 82 col2
----
-412

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT ALL - SUM( ALL - 35 ) * - - 51 * 25
----
44625

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL - SUM ( ALL - 35 ) * - - 51 * 25
----
44625

onlyif mysql # aggregate syntax: 
query II rowsort label-981
SELECT DISTINCT - NULLIF ( + 37, - + 98 + - 86 ) AS col1, + COUNT( * ) * 70 AS col1
----
-37
70

skipif mysql # not compatible
query II rowsort label-981
SELECT DISTINCT - NULLIF ( + 37, - + 98 + - 86 ) AS col1, + COUNT ( * ) * 70 AS col1
----
-37
70

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT MIN( + - 29 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-982
SELECT MIN ( + - 29 ) AS col1
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-983
SELECT ALL + 40 * - 47 * + - ( - + 54 ) DIV - COUNT( * ) + - NULLIF ( + - ( - - 88 ), + 52 ) * - 1 + 70 + COUNT( * )
----
101503

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL + 40 * - 47 * + - ( - + 54 ) / - COUNT ( * ) + - NULLIF ( + - ( - - 88 ), + 52 ) * - 1 + 70 + COUNT ( * )
----
101503

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT ALL - CASE - + 15 WHEN - 92 THEN NULL WHEN - 84 THEN ( - 85 ) END * - + 40 + + MAX( + 34 ) / + 97 * 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL - CASE - + 15 WHEN - 92 THEN NULL WHEN - 84 THEN ( - 85 ) END * - + 40 + + MAX ( + 34 ) / + 97 * 15 AS col0
----
NULL

query I rowsort
SELECT 95 * + 93 AS col0
----
8835

onlyif mysql # aggregate syntax: 
query II rowsort label-986
SELECT + COUNT( * ), 61 + 36 + - 27 AS col2
----
1
70

skipif mysql # not compatible
query II rowsort label-986
SELECT + COUNT ( * ), 61 + 36 + - 27 AS col2
----
1
70

onlyif mysql # DIV for integer division: 
query I rowsort label-987
SELECT 1 DIV - - 66
----
0

skipif mysql # not compatible
query I rowsort label-987
SELECT 1 / - - 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT DISTINCT + 23 * - 85 * + - 9 * COALESCE ( + 4, - + 68 + + - CASE - 3 WHEN - 23 + - 63 * + COUNT( * ) * - - 88 * + 67 THEN NULL WHEN - SUM( 56 ) + - 65 / 24 THEN 22 ELSE - 64 END, + 16 + + 90 ) + 23
----
70403

skipif mysql # not compatible
query I rowsort label-988
SELECT DISTINCT + 23 * - 85 * + - 9 * COALESCE ( + 4, - + 68 + + - CASE - 3 WHEN - 23 + - 63 * + COUNT ( * ) * - - 88 * + 67 THEN NULL WHEN - SUM ( 56 ) + - 65 / 24 THEN 22 ELSE - 64 END, + 16 + + 90 ) + 23
----
70403

query I rowsort
SELECT - 48 / + - 18 + ( - - NULLIF ( - 6, 1 * - 64 + + 58 ) ) + - 54 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-990
SELECT 27 DIV 26
----
1

skipif mysql # not compatible
query I rowsort label-990
SELECT 27 / 26
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-991
SELECT ALL 61 DIV - 48 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL 61 / - 48 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-992
SELECT ALL 79 DIV - 51 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL 79 / - 51 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT - COUNT( * ) - - + CASE - 80 WHEN 74 THEN - + 57 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-993
SELECT - COUNT ( * ) - - + CASE - 80 WHEN 74 THEN - + 57 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( - - 77, + + 23 ) - - + 53
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-995
SELECT + - 18 DIV + - MAX( ALL + 36 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-995
SELECT + - 18 / + - MAX ( ALL + 36 ) col1
----
0

query I rowsort
SELECT - 98 * ( 68 ) + 38 AS col2
----
-6626

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

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

query II rowsort
SELECT DISTINCT + 67, 54 * 63 - - - 98 AS col2
----
67
3304

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

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL MIN ( 95 )
----
95

query I rowsort
SELECT + + ( + 97 ) - + 28 - - - ( 75 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1001
SELECT ALL - 72 * - CAST( - 17 AS SIGNED ) * + 17
----
-20808

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL - 72 * - CAST ( - 17 AS INTEGER ) * + 17
----
-20808

query I rowsort
SELECT DISTINCT 66 + - - ( + + 74 ) AS col0
----
140

query II rowsort
SELECT + 16 AS col1, 55 * - 51
----
16
-2805

query I rowsort
SELECT ALL - + 67 + 64 col1
----
-3

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1007
SELECT - 81 + - COALESCE ( + 4, - 88, + + 89 DIV - 61 + + + 42 + 78 DIV - - 28 DIV - COALESCE ( - 79, - + COUNT( - 63 ) ) ) + - 38 * 92 col0
----
-3581

skipif mysql # not compatible
query I rowsort label-1007
SELECT - 81 + - COALESCE ( + 4, - 88, + + 89 / - 61 + + + 42 + 78 / - - 28 / - COALESCE ( - 79, - + COUNT ( - 63 ) ) ) + - 38 * 92 col0
----
-3581

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT ALL MIN( DISTINCT - - 91 ) + - 33
----
58

skipif mysql # not compatible
query I rowsort label-1008
SELECT ALL MIN ( DISTINCT - - 91 ) + - 33
----
58

query II rowsort
SELECT DISTINCT - 62 AS col1, - 56 col1
----
-62
-56

query I rowsort
SELECT DISTINCT - 50 + 93 col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-1011
SELECT ALL MAX( ALL - - 73 ) AS col0, - ( + + ( - - 1 ) )
----
73
-1

skipif mysql # not compatible
query II rowsort label-1011
SELECT ALL MAX ( ALL - - 73 ) AS col0, - ( + + ( - - 1 ) )
----
73
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT DISTINCT - 68 + - 0 + COUNT( * ) * COUNT( * ) * - + 78 AS col1
----
-146

skipif mysql # not compatible
query I rowsort label-1012
SELECT DISTINCT - 68 + - 0 + COUNT ( * ) * COUNT ( * ) * - + 78 AS col1
----
-146

query I rowsort
SELECT ALL ( 40 ) AS col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1014
SELECT DISTINCT - CASE + - 86 WHEN 95 / + CAST( NULL AS SIGNED ) * + 74 THEN - 90 WHEN 19 THEN NULL WHEN + - ( - 2 ) + - + SUM( ALL + 42 ) + + + COALESCE ( - - 46, - + NULLIF ( 2, 37 ), 13 + - 0 * - 50 ) + 85 THEN NULL WHEN - 49 THEN NULL END + 93 * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1014
SELECT DISTINCT - CASE + - 86 WHEN 95 / + CAST ( NULL AS INTEGER ) * + 74 THEN - 90 WHEN 19 THEN NULL WHEN + - ( - 2 ) + - + SUM ( ALL + 42 ) + + + COALESCE ( - - 46, - + NULLIF ( 2, 37 ), 13 + - 0 * - 50 ) + 85 THEN NULL WHEN - 49 THEN NULL END + 93 * 19
----
NULL

query I rowsort
SELECT ALL + 96 + ( 79 )
----
175

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

query I rowsort
SELECT - COALESCE ( - - 6, - 72, + 79 ) + + 89
----
83

query I rowsort
SELECT - 39 * - + 40
----
1560

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

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL + COUNT ( * ) / - CAST ( + 6 AS INTEGER ) AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1021
SELECT ALL COUNT( * ) * - 9 - - 33 * - 66 * + 24 + - COUNT( * ) * - - MIN( - 90 ) + + COUNT( * ), - 26 AS col1
----
-52190
-26

skipif mysql # not compatible
query II rowsort label-1021
SELECT ALL COUNT ( * ) * - 9 - - 33 * - 66 * + 24 + - COUNT ( * ) * - - MIN ( - 90 ) + + COUNT ( * ), - 26 AS col1
----
-52190
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT ( + CASE + 20 WHEN + 8 THEN - ( 44 ) * - + 27 + - 26 * 76 / + - 82 + 85 + - COUNT( * ) * + 5 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1022
SELECT ( + CASE + 20 WHEN + 8 THEN - ( 44 ) * - + 27 + - 26 * 76 / + - 82 + 85 + - COUNT ( * ) * + 5 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT - 79 * + MIN( DISTINCT 31 ) AS col2
----
-2449

skipif mysql # not compatible
query I rowsort label-1023
SELECT - 79 * + MIN ( DISTINCT 31 ) AS col2
----
-2449

query II rowsort
SELECT DISTINCT + ( 14 ), + 63 AS col0
----
14
63

onlyif mysql # DIV for integer division: 
query I rowsort label-1025
SELECT - 81 DIV - + 44 + 70 + - + ( + - 17 )
----
88

skipif mysql # not compatible
query I rowsort label-1025
SELECT - 81 / - + 44 + 70 + - + ( + - 17 )
----
88

query I rowsort
SELECT DISTINCT - 43 * + 66 AS col1
----
-2838

query I rowsort
SELECT - 43 * - 98 AS col1
----
4214

query I rowsort
SELECT + 49 * - 66
----
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT DISTINCT + SUM( - - 94 ) * + + NULLIF ( + + 93, - COUNT( * ) + - 96 )
----
8742

skipif mysql # not compatible
query I rowsort label-1029
SELECT DISTINCT + SUM ( - - 94 ) * + + NULLIF ( + + 93, - COUNT ( * ) + - 96 )
----
8742

query I rowsort
SELECT ALL + + CASE + 70 WHEN 90 THEN - NULLIF ( + + 90, + 98 / - + 19 + + - 74 ) * 60 * - + 38 * - 59 + + 2 + - NULLIF ( + 32, - 26 ) ELSE NULL END AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT + 58 + + 30 * MIN( 87 ) * - 61 + + 1 + + 54 AS col2
----
-159097

skipif mysql # not compatible
query I rowsort label-1032
SELECT + 58 + + 30 * MIN ( 87 ) * - 61 + + 1 + + 54 AS col2
----
-159097

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

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

query I rowsort
SELECT DISTINCT 11 * + - 42 * 95 * + 71 AS col0
----
-3116190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1035
SELECT ALL 32 * - + CAST( + - COUNT( * ) AS SIGNED ) + ( + 20 ) + + + 78 * 9 AS col1, + 70 + - COUNT( * ) DIV - - 12 AS col0
----
754
70

skipif mysql # not compatible
query II rowsort label-1035
SELECT ALL 32 * - + CAST ( + - COUNT ( * ) AS INTEGER ) + ( + 20 ) + + + 78 * 9 AS col1, + 70 + - COUNT ( * ) / - - 12 AS col0
----
754
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT ALL + 70 * + + COALESCE ( + + 85, + COUNT( * ), + 85 + 70, - CASE - - 94 WHEN 63 + 60 - - - 55 * + + 63 * + CASE + - 47 WHEN 82 THEN NULL WHEN 18 - 77 THEN 74 * - 55 ELSE NULL END THEN MAX( + 40 ) * - NULLIF ( + 47, - 98 ) WHEN AVG ( ALL NULLIF ( - 72, 10 ) ) THEN NULL END ) + - 76 AS col0
----
5874

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL + 70 * + + COALESCE ( + + 85, + COUNT ( * ), + 85 + 70, - CASE - - 94 WHEN 63 + 60 - - - 55 * + + 63 * + CASE + - 47 WHEN 82 THEN NULL WHEN 18 - 77 THEN 74 * - 55 ELSE NULL END THEN MAX ( + 40 ) * - NULLIF ( + 47, - 98 ) WHEN AVG ( ALL NULLIF ( - 72, 10 ) ) THEN NULL END ) + - 76 AS col0
----
5874

query I rowsort
SELECT + 38 * + COALESCE ( 0, + 76, 7 + - + 29 + 25 ) * + NULLIF ( + 29, - 86 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT ALL + 55 * + 79 + - COUNT( * ) + + 0 + 3
----
4347

skipif mysql # not compatible
query I rowsort label-1038
SELECT ALL + 55 * + 79 + - COUNT ( * ) + + 0 + 3
----
4347

query I rowsort
SELECT - + 49 + - + 2 col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT - COALESCE ( - 19, + COUNT( * ) * - 43, + 52, + 1 ) col0
----
19

skipif mysql # not compatible
query I rowsort label-1040
SELECT - COALESCE ( - 19, + COUNT ( * ) * - 43, + 52, + 1 ) col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT DISTINCT 90 * + COUNT( * ) + - ( - COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-1041
SELECT DISTINCT 90 * + COUNT ( * ) + - ( - COUNT ( * ) )
----
91

query I rowsort
SELECT ALL - 69 + - + 35 + + 70 AS col0
----
-34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT DISTINCT MIN( ALL 27 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT MIN ( ALL 27 ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT + MAX( - 58 ) * + 13 * + - 59 + + 76 + + 22
----
44584

skipif mysql # not compatible
query I rowsort label-1045
SELECT + MAX ( - 58 ) * + 13 * + - 59 + + 76 + + 22
----
44584

query II rowsort
SELECT - 43, 45 AS col2
----
-43
45

onlyif mysql # aggregate syntax: 
query II rowsort label-1047
SELECT DISTINCT COALESCE ( + COUNT( * ), 30 ) AS col2, 56
----
1
56

skipif mysql # not compatible
query II rowsort label-1047
SELECT DISTINCT COALESCE ( + COUNT ( * ), 30 ) AS col2, 56
----
1
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1048
SELECT + 10 DIV + 24 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1048
SELECT + 10 / + 24 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT - 16 + + MIN( - 92 ) * 30
----
-2776

skipif mysql # not compatible
query I rowsort label-1049
SELECT - 16 + + MIN ( - 92 ) * 30
----
-2776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1050
SELECT 95 AS col2, CASE - MAX( DISTINCT - 87 ) WHEN 62 * - 6 + - CASE WHEN 95 IS NOT NULL THEN + - 0 - + + 12 + + + COALESCE ( - 3, - + 5, + COUNT( * ) + 9, - 97 ) END + CAST( NULL AS SIGNED ) * + 19 * ( 23 + 26 * 57 ) THEN 86 END
----
95
NULL

skipif mysql # not compatible
query II rowsort label-1050
SELECT 95 AS col2, CASE - MAX ( DISTINCT - 87 ) WHEN 62 * - 6 + - CASE WHEN 95 IS NOT NULL THEN + - 0 - + + 12 + + + COALESCE ( - 3, - + 5, + COUNT ( * ) + 9, - 97 ) END + CAST ( NULL AS INTEGER ) * + 19 * ( 23 + 26 * 57 ) THEN 86 END
----
95
NULL

query I rowsort
SELECT ALL 92 - - 21 + - 47 + - 86 + + - 36 + - 74 * 52 * - 66 * - + ( - 93 )
----
23618968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1052
SELECT ALL + ( NULLIF ( + ( 90 ), + + 67 ) ) - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL + ( NULLIF ( + ( 90 ), + + 67 ) ) - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 80 * - + 46 AS col1
----
3680

onlyif mysql # aggregate syntax: 
query II rowsort label-1054
SELECT DISTINCT COALESCE ( - - COUNT( * ), COUNT( * ) ), 81 AS col1
----
1
81

skipif mysql # not compatible
query II rowsort label-1054
SELECT DISTINCT COALESCE ( - - COUNT ( * ), COUNT ( * ) ), 81 AS col1
----
1
81

query I rowsort
SELECT DISTINCT + 20 * - + 68 AS col1
----
-1360

onlyif mysql # aggregate syntax: 
query II rowsort label-1056
SELECT ALL + 10 AS col1, CASE WHEN NOT + COUNT( * ) IS NOT NULL THEN + + 12 END + - 82
----
10
NULL

skipif mysql # not compatible
query II rowsort label-1056
SELECT ALL + 10 AS col1, CASE WHEN NOT + COUNT ( * ) IS NOT NULL THEN + + 12 END + - 82
----
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT - 73 + 91 * + 52 - 37 + COUNT( - + 99 )
----
4623

skipif mysql # not compatible
query I rowsort label-1057
SELECT - 73 + 91 * + 52 - 37 + COUNT ( - + 99 )
----
4623

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1058
SELECT CAST( NULL AS SIGNED ) / + COALESCE ( 76, - - 5, 58 + - 75 / - 27 ) * + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1058
SELECT CAST ( NULL AS INTEGER ) / + COALESCE ( 76, - - 5, 58 + - 75 / - 27 ) * + 42 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1059
SELECT 55 * - + 72 * - + CAST( NULL AS SIGNED ) * + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1059
SELECT 55 * - + 72 * - + CAST ( NULL AS INTEGER ) * + 68 AS col0
----
NULL

query I rowsort
SELECT 65 * + ( + - 28 )
----
-1820

onlyif mysql # DIV for integer division: 
query I rowsort label-1061
SELECT DISTINCT + 75 DIV 17
----
4

skipif mysql # not compatible
query I rowsort label-1061
SELECT DISTINCT + 75 / 17
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT - COUNT( - 20 ) * + ( 1 ) - + 91 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-1062
SELECT - COUNT ( - 20 ) * + ( 1 ) - + 91 AS col1
----
-92

query II rowsort
SELECT - 98 col2, 28
----
-98
28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1064
SELECT 45 DIV - CAST( + + 88 AS SIGNED ) + 11 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1064
SELECT 45 / - CAST ( + + 88 AS INTEGER ) + 11 AS col1
----
11

query I rowsort
SELECT ALL - COALESCE ( - - 38, - 70 )
----
-38

query I rowsort
SELECT + ( - + 93 ) * + 3 AS col1
----
-279

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

skipif mysql # not compatible
query I rowsort label-1067
SELECT ALL - - 76 + + COUNT ( * ) AS col1
----
77

query I rowsort
SELECT DISTINCT - 83 * 52
----
-4316

query I rowsort
SELECT DISTINCT - 72 + + + ( - 56 )
----
-128

query I rowsort
SELECT ALL + - 63 + - - 25 AS col0
----
-38

query I rowsort
SELECT - ( + 22 ) * 74 * + ( + 21 ) * + + 61 - 93 AS col2
----
-2085561

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT 15 * - COUNT( * ) + + COUNT( * ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-1072
SELECT 15 * - COUNT ( * ) + + COUNT ( * ) AS col0
----
-14

query I rowsort
SELECT ALL + 39 + + NULLIF ( + 42, - 71 ) AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1074
SELECT + CAST( - MAX( 99 ) AS SIGNED ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-1074
SELECT + CAST ( - MAX ( 99 ) AS INTEGER ) AS col1
----
-99

query II rowsort
SELECT DISTINCT - 35 AS col1, 28
----
-35
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT 94 * 82 - - SUM( + 29 ) AS col1
----
7737

skipif mysql # not compatible
query I rowsort label-1076
SELECT 94 * 82 - - SUM ( + 29 ) AS col1
----
7737

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1077
SELECT + 5 * + - 99 * + + 10 - - + 61 + - 16 * - 74 * + CAST( - 26 AS SIGNED ) - + COUNT( * )
----
-35674

skipif mysql # not compatible
query I rowsort label-1077
SELECT + 5 * + - 99 * + + 10 - - + 61 + - 16 * - 74 * + CAST ( - 26 AS INTEGER ) - + COUNT ( * )
----
-35674

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1078
SELECT ALL 89 + + + 55 DIV + NULLIF ( + CAST( + + ( - 19 ) AS SIGNED ), + NULLIF ( + 97, + 71 ) )
----
87

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL 89 + + + 55 / + NULLIF ( + CAST ( + + ( - 19 ) AS INTEGER ), + NULLIF ( + 97, + 71 ) )
----
87

query II rowsort
SELECT - 12 col2, - 17 - + 52 col2
----
-12
-69

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

query I rowsort
SELECT 66 + - 19
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1082
SELECT 72 AS col2, + 48 * COUNT( * ) col0
----
72
48

skipif mysql # not compatible
query II rowsort label-1082
SELECT 72 AS col2, + 48 * COUNT ( * ) col0
----
72
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT MIN( DISTINCT 6 ) * - 67
----
-402

skipif mysql # not compatible
query I rowsort label-1083
SELECT MIN ( DISTINCT 6 ) * - 67
----
-402

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT ( 57 ) * + COUNT( * ) * 3
----
171

skipif mysql # not compatible
query I rowsort label-1084
SELECT ( 57 ) * + COUNT ( * ) * 3
----
171

query I rowsort
SELECT 95 + - ( + - 32 ) col2
----
127

query I rowsort
SELECT ALL ( - 70 ) * - 94 + + 32 AS col1
----
6612

query I rowsort
SELECT NULLIF ( + ( + 98 ), - 61 + - + 10 ) + 82
----
180

query I rowsort
SELECT ( 63 ) * - 13
----
-819

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

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

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

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

query II rowsort
SELECT - 7, 37 col2
----
-7
37

query II rowsort
SELECT DISTINCT 11 AS col2, - 15 * + 38 - 39
----
11
-609

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

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

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

skipif mysql # not compatible
query I rowsort label-1094
SELECT ( - 55 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 49 + 20
----
69

query II rowsort
SELECT ALL 74, + 28 AS col2
----
74
28

query I rowsort
SELECT ( + - 89 ) * 12
----
-1068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1098
SELECT 39 + - - 76 - MIN( + 93 ) + + 95 * + + 39 * 72 + + COUNT( * ) DIV + + ( - 22 ) * + 5 - - + 80 * - 48 col1
----
262942

skipif mysql # not compatible
query I rowsort label-1098
SELECT 39 + - - 76 - MIN ( + 93 ) + + 95 * + + 39 * 72 + + COUNT ( * ) / + + ( - 22 ) * + 5 - - + 80 * - 48 col1
----
262942

query II rowsort
SELECT DISTINCT - 78 AS col2, - 35 + - 7 AS col2
----
-78
-42

query I rowsort
SELECT ALL - 25 + + 46 * - 79 * - 42 col1
----
152603

query I rowsort
SELECT ALL + 45 * + ( - 18 ) col0
----
-810

query II rowsort
SELECT ALL 87 + 92, 23 * - 61 + 56 col2
----
179
-1347

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT DISTINCT 92 + 12 * + MAX( ALL + + 67 ) AS col2
----
896

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT 92 + 12 * + MAX ( ALL + + 67 ) AS col2
----
896

query I rowsort
SELECT ALL - 43 + - 54 AS col2
----
-97

query II rowsort
SELECT 60 AS col2, - 75 * + 67 col1
----
60
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT + CASE 87 WHEN NULLIF ( + 5, + MAX( + 50 ) - + 5 * + - 25 ) THEN - 13 END / - 76 * 79 + - MAX( ALL + 57 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1106
SELECT + CASE 87 WHEN NULLIF ( + 5, + MAX ( + 50 ) - + 5 * + - 25 ) THEN - 13 END / - 76 * 79 + - MAX ( ALL + 57 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1107
SELECT CAST( 17 AS SIGNED ) + - + 63 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-1107
SELECT CAST ( 17 AS INTEGER ) + - + 63 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT - COALESCE ( + 35, 81 - - NULLIF ( + COUNT( + + 46 ), + 68 + COALESCE ( - 66, - COALESCE ( 47, + AVG ( DISTINCT - - 49 ) + - 97 * - + 45 ), - + COUNT( * ) ) ), COUNT( * ) )
----
-35

skipif mysql # not compatible
query I rowsort label-1108
SELECT - COALESCE ( + 35, 81 - - NULLIF ( + COUNT ( + + 46 ), + 68 + COALESCE ( - 66, - COALESCE ( 47, + AVG ( DISTINCT - - 49 ) + - 97 * - + 45 ), - + COUNT ( * ) ) ), COUNT ( * ) )
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1109
SELECT ALL + 93 + 52 + - 67 - + COALESCE ( + 77, - 12 + + 88 * COALESCE ( + + 0, 76, - 25 DIV 4 + ( COUNT( * ) ) DIV - + 32 * 74 + + 16, 19 * - ( - 9 DIV - 42 ) - + 3 * - 77 ) ) * - 18
----
1464

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL + 93 + 52 + - 67 - + COALESCE ( + 77, - 12 + + 88 * COALESCE ( + + 0, 76, - 25 / 4 + ( COUNT ( * ) ) / - + 32 * 74 + + 16, 19 * - ( - 9 / - 42 ) - + 3 * - 77 ) ) * - 18
----
1464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1110
SELECT - 7 + COALESCE ( + 17, + 48 * 48 ) * + COUNT( * ) + + CAST( 18 AS SIGNED ) + + - 2 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1110
SELECT - 7 + COALESCE ( + 17, + 48 * 48 ) * + COUNT ( * ) + + CAST ( 18 AS INTEGER ) + + - 2 * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( - NULLIF ( + - 62, 44 + + + 81 ) )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1112
SELECT ALL - ( 88 ) AS col0, 59 * + CAST( - SUM( CAST( + 21 AS SIGNED ) ) AS SIGNED )
----
-88
-1239

skipif mysql # not compatible
query II rowsort label-1112
SELECT ALL - ( 88 ) AS col0, 59 * + CAST ( - SUM ( CAST ( + 21 AS INTEGER ) ) AS INTEGER )
----
-88
-1239

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT + 52 * - 47 * + COUNT( DISTINCT + - 83 ) + + - ( + ( 53 ) ) AS col2
----
-2497

skipif mysql # not compatible
query I rowsort label-1113
SELECT + 52 * - 47 * + COUNT ( DISTINCT + - 83 ) + + - ( + ( 53 ) ) AS col2
----
-2497

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT - 90 - MIN( DISTINCT + - 78 )
----
-12

skipif mysql # not compatible
query I rowsort label-1114
SELECT - 90 - MIN ( DISTINCT + - 78 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT ALL - COUNT( * ) + - 27 + - 78 AS col0
----
-106

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL - COUNT ( * ) + - 27 + - 78 AS col0
----
-106

query I rowsort
SELECT + 65 * - 34 * 98 + - - 36 + + 34 AS col1
----
-216510

query I rowsort
SELECT ALL + + 48 + + - 91
----
-43

query II rowsort
SELECT ALL - 11 col0, 49 * 9 + - + 84
----
-11
357

onlyif mysql # DIV for integer division: 
query II rowsort label-1119
SELECT + 84 AS col2, 38 DIV 12
----
84
3

skipif mysql # not compatible
query II rowsort label-1119
SELECT + 84 AS col2, 38 / 12
----
84
3

query I rowsort
SELECT DISTINCT + 99 - + 36 AS col1
----
63

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

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

query I rowsort
SELECT ALL + + 73 * - + 63
----
-4599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1123
SELECT ALL - CASE - 64 WHEN - COUNT( * ) THEN - 36 + + 90 / COALESCE ( + - 22, 54 * + 64, - CAST( - 88 AS SIGNED ) * + 96 + + 72 / + - COUNT( * ) ) + 32 / + - 99 + 70 WHEN ( - 27 ) + + 36 THEN NULL WHEN 13 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL - CASE - 64 WHEN - COUNT ( * ) THEN - 36 + + 90 / COALESCE ( + - 22, 54 * + 64, - CAST ( - 88 AS INTEGER ) * + 96 + + 72 / + - COUNT ( * ) ) + 32 / + - 99 + 70 WHEN ( - 27 ) + + 36 THEN NULL WHEN 13 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1124
SELECT - NULLIF ( - COALESCE ( 92, - - 83 ), + CAST( 67 AS SIGNED ) )
----
92

skipif mysql # not compatible
query I rowsort label-1124
SELECT - NULLIF ( - COALESCE ( 92, - - 83 ), + CAST ( 67 AS INTEGER ) )
----
92

query I rowsort
SELECT DISTINCT + 33 * 43 AS col2
----
1419

query I rowsort
SELECT + 97 + - 41
----
56

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

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

query II rowsort
SELECT 95 * 67 col0, + 16 AS col1
----
6365
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT NULLIF ( 17, 21 ) * - ( - 50 ) * 26 * + COUNT( * ) - COUNT( * ) AS col1
----
22099

skipif mysql # not compatible
query I rowsort label-1129
SELECT NULLIF ( 17, 21 ) * - ( - 50 ) * 26 * + COUNT ( * ) - COUNT ( * ) AS col1
----
22099

onlyif mysql # aggregate syntax: 
query II rowsort label-1130
SELECT ALL COALESCE ( - COUNT( * ), + + 21 * + - COUNT( * ) * 68 + - 24 * - 58 * - - 38 ) AS col0, - 90 * + 5 AS col1
----
-1
-450

skipif mysql # not compatible
query II rowsort label-1130
SELECT ALL COALESCE ( - COUNT ( * ), + + 21 * + - COUNT ( * ) * 68 + - 24 * - 58 * - - 38 ) AS col0, - 90 * + 5 AS col1
----
-1
-450

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

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

query I rowsort
SELECT ALL + 29 * - 72
----
-2088

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1133
SELECT ALL 51 DIV + 28 AS col2, MIN( ALL 74 ) + + - COUNT( * )
----
1
73

skipif mysql # not compatible
query II rowsort label-1133
SELECT ALL 51 / + 28 AS col2, MIN ( ALL 74 ) + + - COUNT ( * )
----
1
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1134
SELECT 10 DIV + + 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1134
SELECT 10 / + + 30 AS col1
----
0

query I rowsort
SELECT 46 * - + 98
----
-4508

query I rowsort
SELECT ALL 15 * + 29 * + 31 * - 96 AS col2
----
-1294560

query I rowsort
SELECT - 21 - 43
----
-64

query II rowsort
SELECT - 38 + - 31 AS col2, 4 AS col1
----
-69
4

query I rowsort
SELECT DISTINCT 50 * + + ( + - 23 ) AS col0
----
-1150

query I rowsort
SELECT ALL 8 * 15 col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT + COUNT( * ) * - 84 * - + 16 * - + 67 * 37 AS col0
----
-3331776

skipif mysql # not compatible
query I rowsort label-1141
SELECT + COUNT ( * ) * - 84 * - + 16 * - + 67 * 37 AS col0
----
-3331776

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT ALL + 30 + - COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL + 30 + - COUNT ( * )
----
29

query I rowsort
SELECT ALL 2 + ( 58 ) AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1144
SELECT DISTINCT COUNT( * ) + 24, + CAST( 56 AS SIGNED ) * 92 - - + ( + - 48 ) col0
----
25
5104

skipif mysql # not compatible
query II rowsort label-1144
SELECT DISTINCT COUNT ( * ) + 24, + CAST ( 56 AS INTEGER ) * 92 - - + ( + - 48 ) col0
----
25
5104

query II rowsort
SELECT ALL + ( - 24 ) AS col2, + ( 5 ) * + + 50
----
-24
250

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT + 38 + + 83 + + COUNT( * ) * + MIN( + 76 )
----
197

skipif mysql # not compatible
query I rowsort label-1146
SELECT + 38 + + 83 + + COUNT ( * ) * + MIN ( + 76 )
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT + MIN( ALL + + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-1147
SELECT + MIN ( ALL + + 46 )
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1148
SELECT ALL 9 * 1 DIV - 17 + + + 34 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL 9 * 1 / - 17 + + + 34 AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1149
SELECT + CAST( 86 AS SIGNED ) * - 56 * 68 AS col0
----
-327488

skipif mysql # not compatible
query I rowsort label-1149
SELECT + CAST ( 86 AS INTEGER ) * - 56 * 68 AS col0
----
-327488

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT + - 58 + + - NULLIF ( COALESCE ( + 29, + + 42, 53 + - COUNT( * ) ), ( + 80 ) ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-1150
SELECT + - 58 + + - NULLIF ( COALESCE ( + 29, + + 42, 53 + - COUNT ( * ) ), ( + 80 ) ) AS col0
----
-87

query I rowsort
SELECT DISTINCT 96 * + ( + 7 ) + + ( + 52 ) * 34
----
2440

query I rowsort
SELECT ALL 48 * - - 14 + + 64
----
736

query I rowsort
SELECT DISTINCT - ( 1 ) * 57
----
-57

query I rowsort
SELECT DISTINCT - 28 * + - ( + 75 ) - - 75
----
2175

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

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

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

skipif mysql # not compatible
query I rowsort label-1156
SELECT + - 57 * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT - 81 * + 11, 73 AS col0
----
-891
73

onlyif mysql # aggregate syntax: 
query II rowsort label-1158
SELECT COUNT( + ( - 66 ) ), 99 * - + ( + 84 ) AS col1
----
1
-8316

skipif mysql # not compatible
query II rowsort label-1158
SELECT COUNT ( + ( - 66 ) ), 99 * - + ( + 84 ) AS col1
----
1
-8316

query I rowsort
SELECT - 28 * + 62
----
-1736

onlyif mysql # DIV for integer division: 
query I rowsort label-1160
SELECT - 4 DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-1160
SELECT - 4 / - 66
----
0

query I rowsort
SELECT - 63 * - + 27 AS col2
----
1701

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT ALL MIN( ALL - 40 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL MIN ( ALL - 40 ) AS col1
----
-40

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

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

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

query I rowsort
SELECT DISTINCT + 88 * 7 AS col0
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT MIN( 22 )
----
22

skipif mysql # not compatible
query I rowsort label-1166
SELECT MIN ( 22 )
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-1167
SELECT - 52, MAX( ALL + 79 ) AS col0
----
-52
79

skipif mysql # not compatible
query II rowsort label-1167
SELECT - 52, MAX ( ALL + 79 ) AS col0
----
-52
79

query I rowsort
SELECT DISTINCT + ( 60 ) + - 49
----
11

query I rowsort
SELECT ALL - CASE ( 65 ) WHEN + + ( - 96 ) THEN + - 59 + 16 WHEN 39 THEN NULL WHEN - 62 THEN NULL ELSE NULL END * 34 AS col1
----
NULL

query I rowsort
SELECT - 21 + 70 + + 76 AS col2
----
125

query I rowsort
SELECT DISTINCT + 16 + + 58
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1172
SELECT ALL - CASE + + 81 WHEN + - COUNT( 78 ) THEN - - CAST( NULL AS SIGNED ) * - - 22 WHEN ( - + 96 ) THEN NULL WHEN 40 THEN + 0 * 51 ELSE NULL END + - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL - CASE + + 81 WHEN + - COUNT ( 78 ) THEN - - CAST ( NULL AS INTEGER ) * - - 22 WHEN ( - + 96 ) THEN NULL WHEN 40 THEN + 0 * 51 ELSE NULL END + - 85 AS col2
----
NULL

query I rowsort
SELECT - 67 + - 92 AS col0
----
-159

query I rowsort
SELECT - 66 * + - 45
----
2970

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1175
SELECT - - COUNT( * ) + COALESCE ( - COALESCE ( 48, + COUNT( * ) ), - - 66 DIV + COUNT( + + 75 ) + + COUNT( * ) + - 23 ) * + SUM( ALL + + 41 ) AS col2
----
-1967

skipif mysql # not compatible
query I rowsort label-1175
SELECT - - COUNT ( * ) + COALESCE ( - COALESCE ( 48, + COUNT ( * ) ), - - 66 / + COUNT ( + + 75 ) + + COUNT ( * ) + - 23 ) * + SUM ( ALL + + 41 ) AS col2
----
-1967

query I rowsort
SELECT DISTINCT + 35 * - 6 + + - 16
----
-226

onlyif mysql # aggregate syntax: 
query II rowsort label-1177
SELECT - 96, - NULLIF ( - - COUNT( * ), 44 ) + - + CASE - AVG ( DISTINCT - ( - ( - 65 ) ) ) WHEN 71 * - 24 THEN + + COUNT( * ) END AS col0
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-1177
SELECT - 96, - NULLIF ( - - COUNT ( * ), 44 ) + - + CASE - AVG ( DISTINCT - ( - ( - 65 ) ) ) WHEN 71 * - 24 THEN + + COUNT ( * ) END AS col0
----
-96
NULL

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

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

query I rowsort
SELECT - NULLIF ( + - 79, - - ( - 54 ) * + 51 )
----
79

query I rowsort
SELECT ALL + + ( ( + + 40 ) ) * - 82
----
-3280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1181
SELECT ALL 14 / - MIN( ALL 42 ) + - - 87 - + 70 * - 73 * - CAST( NULL AS SIGNED ) * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL 14 / - MIN ( ALL 42 ) + - - 87 - + 70 * - 73 * - CAST ( NULL AS INTEGER ) * + 95
----
NULL

query II rowsort
SELECT + 96 AS col2, - 43
----
96
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1183
SELECT + 25 - - + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0, CAST( + 13 AS SIGNED ) * 41 * + + 14 + COUNT( * ) + 80 AS col0
----
NULL
7543

skipif mysql # not compatible
query II rowsort label-1183
SELECT + 25 - - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0, CAST ( + 13 AS INTEGER ) * 41 * + + 14 + COUNT ( * ) + 80 AS col0
----
NULL
7543

onlyif mysql # DIV for integer division: 
query I rowsort label-1184
SELECT DISTINCT + ( - 49 ) DIV - COALESCE ( - 95, 6 + - 60 ) - - 28 + 16 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT + ( - 49 ) / - COALESCE ( - 95, 6 + - 60 ) - - 28 + 16 AS col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1185
SELECT - - 88 * COUNT( * ) + + 56 DIV - 70 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-1185
SELECT - - 88 * COUNT ( * ) + + 56 / - 70 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT ALL 12 * - + CASE - - 34 WHEN + 27 / + + 20 * - COUNT( * ) THEN NULL ELSE - ( + 43 ) - - 50 + - + COUNT( * ) END * + 6 - + - 78 AS col2
----
-354

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL 12 * - + CASE - - 34 WHEN + 27 / + + 20 * - COUNT ( * ) THEN NULL ELSE - ( + 43 ) - - 50 + - + COUNT ( * ) END * + 6 - + - 78 AS col2
----
-354

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

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

query I rowsort
SELECT + - 69 + - - ( - 46 ) * 57 * - 58 * 99
----
15055455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1189
SELECT + - ( - + CAST( + COALESCE ( - - ( + 74 ), 40 + 8 + + 79, + 97 - + 6 * - 4 ) AS SIGNED ) ) - + 11
----
63

skipif mysql # not compatible
query I rowsort label-1189
SELECT + - ( - + CAST ( + COALESCE ( - - ( + 74 ), 40 + 8 + + 79, + 97 - + 6 * - 4 ) AS INTEGER ) ) - + 11
----
63

query I rowsort
SELECT + 79 * + 24 AS col1
----
1896

query I rowsort
SELECT + 6 * - 63 * + - 12 + + 20
----
4556

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT ALL + CASE + 42 WHEN - 73 THEN NULL WHEN + COUNT( * ) THEN - 75 + - 5 * - MIN( ALL + - 5 ) * - COALESCE ( + - 58, - ( + 70 ) ) * - 94 + + + 28 WHEN 33 THEN 50 * - 1 * AVG ( 5 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL + CASE + 42 WHEN - 73 THEN NULL WHEN + COUNT ( * ) THEN - 75 + - 5 * - MIN ( ALL + - 5 ) * - COALESCE ( + - 58, - ( + 70 ) ) * - 94 + + + 28 WHEN 33 THEN 50 * - 1 * AVG ( 5 ) END AS col2
----
NULL

query I rowsort
SELECT + - 20 + 47
----
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT + 63 * 18 * - COUNT( * ) AS col2
----
-1134

skipif mysql # not compatible
query I rowsort label-1195
SELECT + 63 * 18 * - COUNT ( * ) AS col2
----
-1134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1196
SELECT ALL - CAST( - 60 AS SIGNED ) * + + COUNT( * ) DIV + COUNT( - - 87 )
----
60

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL - CAST ( - 60 AS INTEGER ) * + + COUNT ( * ) / + COUNT ( - - 87 )
----
60

query I rowsort
SELECT + 81 + - 77 AS col2
----
4

query I rowsort
SELECT ALL 87 * 89
----
7743

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1199
SELECT DISTINCT COUNT( * ) * + 81 * 14 DIV + ( - + 66 ) col2
----
-17

skipif mysql # not compatible
query I rowsort label-1199
SELECT DISTINCT COUNT ( * ) * + 81 * 14 / + ( - + 66 ) col2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1200
SELECT COUNT( * ) DIV 88 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1200
SELECT COUNT ( * ) / 88 * COUNT ( * ) AS col1
----
0

query I rowsort
SELECT 11 * CASE + - 71 WHEN + 76 THEN + - ( + 10 ) + + 33 + + 30 * 92 * + 36 WHEN 25 THEN NULL END * - 44 + 83 + COALESCE ( + - 17, + - 48 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1202
SELECT ALL COUNT( * ) + + CAST( NULL AS DECIMAL ) + + 74 + - AVG ( + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL COUNT ( * ) + + CAST ( NULL AS REAL ) + + 74 + - AVG ( + 99 )
----
NULL

query I rowsort
SELECT 59 + 60 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT ALL 15 + SUM( 53 ) + 11
----
79

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL 15 + SUM ( 53 ) + 11
----
79

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1206
SELECT ALL + 39 DIV - 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL + 39 / - 69 AS col2
----
0

query I rowsort
SELECT DISTINCT - 66 + - 88
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT ALL + 12 + - COALESCE ( - 12, + 78 ) + + MIN( - 56 ) + + - 71 * 95 * COUNT( + 85 )
----
-6777

skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL + 12 + - COALESCE ( - 12, + 78 ) + + MIN ( - 56 ) + + - 71 * 95 * COUNT ( + 85 )
----
-6777

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1209
SELECT 74 * - 55 * 86 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1209
SELECT 74 * - 55 * 86 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1210
SELECT ALL + 12 + - CASE + ( - 93 ) WHEN + 11 THEN - 39 * - 24 DIV - 95 * - + 49 DIV + ( 7 ) * + 98 ELSE - ( 41 ) * 27 - - COUNT( * ) END - 3 AS col2, 29
----
1115
29

skipif mysql # not compatible
query II rowsort label-1210
SELECT ALL + 12 + - CASE + ( - 93 ) WHEN + 11 THEN - 39 * - 24 / - 95 * - + 49 / + ( 7 ) * + 98 ELSE - ( 41 ) * 27 - - COUNT ( * ) END - 3 AS col2, 29
----
1115
29

query I rowsort
SELECT 38 - + + 23 AS col1
----
15

query I rowsort
SELECT + 34 * 95 AS col0
----
3230

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT ALL - 6 * ( - COUNT( * ) ) * + ( - + 70 )
----
-420

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL - 6 * ( - COUNT ( * ) ) * + ( - + 70 )
----
-420

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

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

query I rowsort
SELECT DISTINCT COALESCE ( - 46, 39 * - 69 + + 46 + + + 22 * - 86 )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1216
SELECT - CAST( NULL AS SIGNED ) + - + 55, ( + 89 ) * + 63 + - SUM( + 65 ) * - NULLIF ( - + COALESCE ( - 0, + 8 - ( + 60 ) ), + 36 + - + 73 ) col1
----
NULL
5607

skipif mysql # not compatible
query II rowsort label-1216
SELECT - CAST ( NULL AS INTEGER ) + - + 55, ( + 89 ) * + 63 + - SUM ( + 65 ) * - NULLIF ( - + COALESCE ( - 0, + 8 - ( + 60 ) ), + 36 + - + 73 ) col1
----
NULL
5607

query I rowsort
SELECT - 27 - - - 59 AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT - COUNT( DISTINCT + 88 ) * + 97
----
-97

skipif mysql # not compatible
query I rowsort label-1218
SELECT - COUNT ( DISTINCT + 88 ) * + 97
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1219
SELECT CASE + CAST( NULL AS SIGNED ) WHEN + 31 THEN + 92 END * - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-1219
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN + 31 THEN + 92 END * - 10
----
NULL

query I rowsort
SELECT DISTINCT + + 99 * 29 + + 18 AS col1
----
2889

onlyif mysql # DIV for integer division: 
query I rowsort label-1221
SELECT ( + + 72 ) DIV 89 * - + ( + 43 ) + + 27
----
27

skipif mysql # not compatible
query I rowsort label-1221
SELECT ( + + 72 ) / 89 * - + ( + 43 ) + + 27
----
27

query I rowsort
SELECT ALL + 29 * + - 14
----
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT + + ( - - CASE + 10 WHEN 22 * 81 - + 89 + - 23 THEN + MIN( DISTINCT - - 79 ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1223
SELECT + + ( - - CASE + 10 WHEN 22 * 81 - + 89 + - 23 THEN + MIN ( DISTINCT - - 79 ) END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1224
SELECT ALL CAST( - + SUM( + ( - + 82 ) ) AS SIGNED ) * 24
----
1968

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL CAST ( - + SUM ( + ( - + 82 ) ) AS INTEGER ) * 24
----
1968

onlyif mysql # aggregate syntax: 
query II rowsort label-1225
SELECT ALL 69 + + + 45 - - COUNT( * ) * - COUNT( * ) AS col1, 98 AS col0
----
113
98

skipif mysql # not compatible
query II rowsort label-1225
SELECT ALL 69 + + + 45 - - COUNT ( * ) * - COUNT ( * ) AS col1, 98 AS col0
----
113
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1226
SELECT COALESCE ( + + 80, COALESCE ( - 85, + - 3 ) * - + 58 + - COUNT( * ) - - - 55 ) * + + CAST( - + COALESCE ( - 15, - - 80 * 94 * + 57 / + + 36 + + + 31, + 32 * + - 33 ) AS SIGNED ) AS col1
----
1200

skipif mysql # not compatible
query I rowsort label-1226
SELECT COALESCE ( + + 80, COALESCE ( - 85, + - 3 ) * - + 58 + - COUNT ( * ) - - - 55 ) * + + CAST ( - + COALESCE ( - 15, - - 80 * 94 * + 57 / + + 36 + + + 31, + 32 * + - 33 ) AS INTEGER ) AS col1
----
1200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1227
SELECT ALL - CAST( - 43 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL - CAST ( - 43 AS INTEGER )
----
43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1228
SELECT DISTINCT + 61 + CAST( NULL AS DECIMAL ) / + - 14 * - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1228
SELECT DISTINCT + 61 + CAST ( NULL AS REAL ) / + - 14 * - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-1229
SELECT 79 AS col2, + 28 + + COUNT( * ), + - 16 col2
----
79
29
-16

skipif mysql # not compatible
query III rowsort label-1229
SELECT 79 AS col2, + 28 + + COUNT ( * ), + - 16 col2
----
79
29
-16

query I rowsort
SELECT ALL 92 + - + 60 + + 18 AS col2
----
50

query I rowsort
SELECT ALL - 43 + - 33
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT DISTINCT 27 + - - 45 + 34 * - MIN( ALL + ( - 54 ) ) - COUNT( * ) * COUNT( * ) * + 81
----
1827

skipif mysql # not compatible
query I rowsort label-1232
SELECT DISTINCT 27 + - - 45 + 34 * - MIN ( ALL + ( - 54 ) ) - COUNT ( * ) * COUNT ( * ) * + 81
----
1827

query I rowsort
SELECT ALL 86 + 69 - + 64
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT CASE + 28 WHEN - AVG ( ALL - 91 ) * + 13 + + + 36 * 95 + - - 61 THEN - + 98 * COUNT( * ) END * - + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-1234
SELECT CASE + 28 WHEN - AVG ( ALL - 91 ) * + 13 + + + 36 * 95 + - - 61 THEN - + 98 * COUNT ( * ) END * - + 32
----
NULL

query I rowsort
SELECT DISTINCT 91 + CASE - + AVG ( + - 40 ) WHEN + - 78 THEN 95 + - 55 ELSE NULL END + - ( 49 ) / + - 60 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT - COUNT( DISTINCT - - 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-1236
SELECT - COUNT ( DISTINCT - - 78 )
----
-1

query I rowsort
SELECT DISTINCT 67 * + 60 AS col1
----
4020

query I rowsort
SELECT ALL 26 - - - 81 * + + 27 * + + 81
----
-177121

query I rowsort
SELECT 54 + - + 4 col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT ( - CASE 17 WHEN + NULLIF ( 11, 26 * + ( COUNT( * ) ) * 89 + + ( - - 40 ) ) THEN + 18 + + + 79 END ) + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-1240
SELECT ( - CASE 17 WHEN + NULLIF ( 11, 26 * + ( COUNT ( * ) ) * 89 + + ( - - 40 ) ) THEN + 18 + + + 79 END ) + + 24
----
NULL

query I rowsort
SELECT DISTINCT 27 * + 55
----
1485

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT ALL COUNT( * ) - - 26 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL COUNT ( * ) - - 26 AS col0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1243
SELECT DISTINCT + + 52 DIV + 39 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT + + 52 / + 39 AS col0
----
1

query I rowsort
SELECT ALL + + 27 - - 18
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1245
SELECT 29 / + NULLIF ( + + CAST( NULL AS SIGNED ), - - ( 89 ) - - 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1245
SELECT 29 / + NULLIF ( + + CAST ( NULL AS INTEGER ), - - ( 89 ) - - 43 )
----
NULL

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

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

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

query I rowsort
SELECT 21 + - 17
----
4

query II rowsort
SELECT - 42 AS col0, ( - 48 )
----
-42
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1250
SELECT ALL + - COALESCE ( + 27, - 46 + + + ( + NULLIF ( - + 42, ( - + CAST( NULL AS SIGNED ) ) ) ) - - 20 * - + 33 ) * - 21 * + + 51 AS col0
----
28917

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL + - COALESCE ( + 27, - 46 + + + ( + NULLIF ( - + 42, ( - + CAST ( NULL AS INTEGER ) ) ) ) - - 20 * - + 33 ) * - 21 * + + 51 AS col0
----
28917

query I rowsort
SELECT 78 * - 43
----
-3354

query II rowsort
SELECT + COALESCE ( - - 20, - 87 ) - + ( - 83 ) AS col1, 81
----
103
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT ALL + 7 * - 24 + - COUNT( ALL + 71 ) + 97 * + + 71
----
6718

skipif mysql # not compatible
query I rowsort label-1253
SELECT ALL + 7 * - 24 + - COUNT ( ALL + 71 ) + 97 * + + 71
----
6718

query I rowsort
SELECT - 38 * - 37 + + 41
----
1447

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT ALL + ( - - 38 ) * 25 * 40 - 82 * COUNT( * ) + + 74 + + + 36
----
38028

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL + ( - - 38 ) * 25 * 40 - 82 * COUNT ( * ) + + 74 + + + 36
----
38028

query I rowsort
SELECT NULLIF ( - 4, + + 43 )
----
-4

query I rowsort
SELECT ALL - 11 * - + 20 + 35 + - - ( - + 49 ) * 64 * 98
----
-307073

query II rowsort
SELECT - 46 + 19 AS col1, + 51 AS col0
----
-27
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1259
SELECT DISTINCT + MIN( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1259
SELECT DISTINCT + MIN ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 10 * + 41 + 41 + - 44
----
-413

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT + ( - 29 ) - + CASE 90 WHEN + 19 / - 39 * - 45 + - - COALESCE ( - 37, 86 / + - 82 + - 37, + 69 ) THEN - + COALESCE ( + COUNT( * ), - - COUNT( - 45 ) * - - 70 ) END - + 49 + + - 9 + + MAX( - 13 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1261
SELECT + ( - 29 ) - + CASE 90 WHEN + 19 / - 39 * - 45 + - - COALESCE ( - 37, 86 / + - 82 + - 37, + 69 ) THEN - + COALESCE ( + COUNT ( * ), - - COUNT ( - 45 ) * - - 70 ) END - + 49 + + - 9 + + MAX ( - 13 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 38 * 87 AS col1
----
3306

onlyif mysql # aggregate syntax: 
query II rowsort label-1263
SELECT ALL + COUNT( * ) AS col0, 70 * + 5 AS col2
----
1
350

skipif mysql # not compatible
query II rowsort label-1263
SELECT ALL + COUNT ( * ) AS col0, 70 * + 5 AS col2
----
1
350

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT COUNT( * ) * - 90 + + + 37 * 8 AS col1
----
206

skipif mysql # not compatible
query I rowsort label-1264
SELECT COUNT ( * ) * - 90 + + + 37 * 8 AS col1
----
206

query I rowsort
SELECT ALL - 34 * + 97 + - 43 + 47
----
-3294

query I rowsort
SELECT ALL 47 * + 73 * 41 + 21
----
140692

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT ALL + CASE - 42 WHEN - 1 - - 6 * + 21 THEN NULL WHEN - COUNT( * ) + - + COUNT( * ) THEN NULL ELSE - 29 END AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL + CASE - 42 WHEN - 1 - - 6 * + 21 THEN NULL WHEN - COUNT ( * ) + - + COUNT ( * ) THEN NULL ELSE - 29 END AS col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1268
SELECT + AVG ( DISTINCT + 98 ) + - - ( + 45 ) + + 18 * + + 60 + - + NULLIF ( + + 76, - 49 ) + 60 + - AVG ( 64 ) + + 2 * ( 30 ) * + - CAST( NULL AS SIGNED ) * + + 13 * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1268
SELECT + AVG ( DISTINCT + 98 ) + - - ( + 45 ) + + 18 * + + 60 + - + NULLIF ( + + 76, - 49 ) + 60 + - AVG ( 64 ) + + 2 * ( 30 ) * + - CAST ( NULL AS INTEGER ) * + + 13 * - 27
----
NULL

query II rowsort
SELECT ALL + 35 AS col2, 65 AS col2
----
35
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT COUNT( * ) * - ( + - 42 ) + - 69
----
-27

skipif mysql # not compatible
query I rowsort label-1270
SELECT COUNT ( * ) * - ( + - 42 ) + - 69
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1271
SELECT ALL 84 * + 54 - NULLIF ( 86, + 5 + - + CAST( - + 96 AS SIGNED ) )
----
4450

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL 84 * + 54 - NULLIF ( 86, + 5 + - + CAST ( - + 96 AS INTEGER ) )
----
4450

query II rowsort
SELECT + 13, 96 AS col1
----
13
96

query I rowsort
SELECT + 78 * - 6 + + 18
----
-450

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1274
SELECT + 14 + CASE - + 2 WHEN 94 * + MIN( ALL + - 77 ) + + 92 + - ( - 28 ) * - 60 * + 61 + - + CAST( - 49 AS DECIMAL ) - - 16 + - - NULLIF ( - 10, 83 ) * + 45 THEN NULL WHEN + 65 THEN + NULLIF ( - - 50, 87 ) ELSE ( + 46 ) + - 43 END
----
17

skipif mysql # not compatible
query I rowsort label-1274
SELECT + 14 + CASE - + 2 WHEN 94 * + MIN ( ALL + - 77 ) + + 92 + - ( - 28 ) * - 60 * + 61 + - + CAST ( - 49 AS REAL ) - - 16 + - - NULLIF ( - 10, 83 ) * + 45 THEN NULL WHEN + 65 THEN + NULLIF ( - - 50, 87 ) ELSE ( + 46 ) + - 43 END
----
17

query I rowsort
SELECT + 26 + - 61 AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1276
SELECT - SUM( DISTINCT + - CAST( - 66 AS SIGNED ) )
----
-66

skipif mysql # not compatible
query I rowsort label-1276
SELECT - SUM ( DISTINCT + - CAST ( - 66 AS INTEGER ) )
----
-66

query I rowsort
SELECT DISTINCT ( - ( - 3 ) ) col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1278
SELECT + 31 AS col0, - MAX( 17 ) * + 91 + 49 + - 41 + 18 - + + 21 * + + ( 30 )
----
31
-2151

skipif mysql # not compatible
query II rowsort label-1278
SELECT + 31 AS col0, - MAX ( 17 ) * + 91 + 49 + - 41 + 18 - + + 21 * + + ( 30 )
----
31
-2151

onlyif mysql # aggregate syntax: 
query II rowsort label-1279
SELECT ALL - 54 AS col1, COUNT( * ) + + 29
----
-54
30

skipif mysql # not compatible
query II rowsort label-1279
SELECT ALL - 54 AS col1, COUNT ( * ) + + 29
----
-54
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT - - SUM( - 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-1280
SELECT - - SUM ( - 67 ) AS col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1281
SELECT ALL + NULLIF ( + + 79, - 89 - - 91 * - - 13 - - CAST( - COUNT( * ) AS SIGNED ) )
----
79

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL + NULLIF ( + + 79, - 89 - - 91 * - - 13 - - CAST ( - COUNT ( * ) AS INTEGER ) )
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT DISTINCT 61 * - COUNT( * ) + - - MAX( 95 ) * - + 34
----
-3291

skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT 61 * - COUNT ( * ) + - - MAX ( 95 ) * - + 34
----
-3291

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT ALL MAX( DISTINCT + - ( + 68 ) ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL MAX ( DISTINCT + - ( + 68 ) ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT ALL - ( NULLIF ( - ( - 69 ), CASE - 60 WHEN 68 / + - 7 THEN - 78 WHEN - + 61 + + 23 - 0 * + - 76 * + COUNT( * ) * + NULLIF ( + 50, + 96 ) / + 71 - - - 5 - - SUM( ( - 61 ) ) THEN + 0 + 78 WHEN + 68 THEN 18 ELSE - ( 72 ) * - SUM( DISTINCT 73 + 55 ) + + COALESCE ( + 73, 57 * COUNT( * ) ) END * + 91 ) ) * + 84 AS col1
----
-5796

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL - ( NULLIF ( - ( - 69 ), CASE - 60 WHEN 68 / + - 7 THEN - 78 WHEN - + 61 + + 23 - 0 * + - 76 * + COUNT ( * ) * + NULLIF ( + 50, + 96 ) / + 71 - - - 5 - - SUM ( ( - 61 ) ) THEN + 0 + 78 WHEN + 68 THEN 18 ELSE - ( 72 ) * - SUM ( DISTINCT 73 + 55 ) + + COALESCE ( + 73, 57 * COUNT ( * ) ) END * + 91 ) ) * + 84 AS col1
----
-5796

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1286
SELECT + COUNT( * ) DIV + 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1286
SELECT + COUNT ( * ) / + 34 AS col1
----
0

query I rowsort
SELECT + ( - 17 ) - - + 38 AS col1
----
21

query I rowsort
SELECT DISTINCT 6 + - NULLIF ( - 23, - 63 ) AS col2
----
29

query I rowsort
SELECT + 75 * 27 AS col1
----
2025

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT ALL COUNT( * ) * 52 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL COUNT ( * ) * 52 AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1291
SELECT ALL - - 82 + 13 * + 81 + + 2 + - - 87 DIV + - 54 AS col0, - COUNT( * ) * - 20 AS col0
----
1136
20

skipif mysql # not compatible
query II rowsort label-1291
SELECT ALL - - 82 + 13 * + 81 + + 2 + - - 87 / + - 54 AS col0, - COUNT ( * ) * - 20 AS col0
----
1136
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1292
SELECT DISTINCT - 80 DIV + 40 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT - 80 / + 40 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1293
SELECT DISTINCT 72 + - + COALESCE ( 11, COUNT( * ) DIV - NULLIF ( - 30, 64 ) + - - 71 + + + CASE - 2 WHEN - 67 THEN 1 * - + COUNT( * ) WHEN - - 46 - - + ( 60 ) + - - 52 THEN - 89 ELSE NULL END * + - 83 * - 51, 86 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT 72 + - + COALESCE ( 11, COUNT ( * ) / - NULLIF ( - 30, 64 ) + - - 71 + + + CASE - 2 WHEN - 67 THEN 1 * - + COUNT ( * ) WHEN - - 46 - - + ( 60 ) + - - 52 THEN - 89 ELSE NULL END * + - 83 * - 51, 86 ) AS col1
----
61

query I rowsort
SELECT - 21 + + 27 * 61 + 72 * + 81
----
7458

query II rowsort
SELECT ALL 90 + 73 AS col0, 10 AS col1
----
163
10

query I rowsort
SELECT + COALESCE ( ( - 53 ), + - 84 ) AS col0
----
-53

query I rowsort
SELECT + 73 * + - 79 * 13 * + 72 * + 23 + 92
----
-124151884

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1298
SELECT CAST( - - 43 AS SIGNED ) AS col2, - 11 + 76 col1
----
43
65

skipif mysql # not compatible
query II rowsort label-1298
SELECT CAST ( - - 43 AS INTEGER ) AS col2, - 11 + 76 col1
----
43
65

query I rowsort
SELECT ALL + 52 * 66 AS col2
----
3432

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1300
SELECT DISTINCT COALESCE ( + 27, + CAST( NULL AS SIGNED ) * 0 * 33 + + 3 + 87, - 77 ) DIV - 69 + + - 99 + + + 38
----
-61

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT COALESCE ( + 27, + CAST ( NULL AS INTEGER ) * 0 * 33 + + 3 + 87, - 77 ) / - 69 + + - 99 + + + 38
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-1301
SELECT ALL 68 DIV 40 + + + 78
----
79

skipif mysql # not compatible
query I rowsort label-1301
SELECT ALL 68 / 40 + + + 78
----
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1302
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 44 / 15
----
NULL

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT CAST ( NULL AS REAL ) * 44 / 15
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1303
SELECT ALL ( + 82 ) DIV 7 - 14 col2
----
-3

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL ( + 82 ) / 7 - 14 col2
----
-3

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

skipif mysql # not compatible
query I rowsort label-1304
SELECT DISTINCT - COUNT ( * ) * + 50 * 1 - 91 / - COUNT ( * ) col0
----
41

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1305
SELECT + CAST( CAST( + 6 AS DECIMAL ) AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-1305
SELECT + CAST ( CAST ( + 6 AS REAL ) AS INTEGER )
----
6

query II rowsort
SELECT ( + - 56 ), 90 * + 8 + 53 + - 42 col1
----
-56
731

query I rowsort
SELECT 81 * 86 - 43 + - - 37
----
6960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1308
SELECT - 38 * - CAST( + ( - 9 ) AS SIGNED )
----
-342

skipif mysql # not compatible
query I rowsort label-1308
SELECT - 38 * - CAST ( + ( - 9 ) AS INTEGER )
----
-342

onlyif mysql # DIV for integer division: 
query I rowsort label-1309
SELECT DISTINCT - 8 DIV + 32
----
0

skipif mysql # not compatible
query I rowsort label-1309
SELECT DISTINCT - 8 / + 32
----
0

query I rowsort
SELECT ALL + NULLIF ( 19, + 41 ) AS col1
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1311
SELECT + CASE - - COUNT( * ) WHEN + ( + 71 ) * 42 THEN NULL ELSE 16 DIV - ( + + 77 ) + - 34 END
----
-34

skipif mysql # not compatible
query I rowsort label-1311
SELECT + CASE - - COUNT ( * ) WHEN + ( + 71 ) * 42 THEN NULL ELSE 16 / - ( + + 77 ) + - 34 END
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT ALL - MAX( - 15 ) * + + 29 * 74
----
32190

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL - MAX ( - 15 ) * + + 29 * 74
----
32190

query I rowsort
SELECT - 85 + 42
----
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-1314
SELECT - 2 DIV 70 AS col1, + 73 + 17
----
0
90

skipif mysql # not compatible
query II rowsort label-1314
SELECT - 2 / 70 AS col1, + 73 + 17
----
0
90

onlyif mysql # DIV for integer division: 
query II rowsort label-1315
SELECT DISTINCT 92 * + 0 AS col2, 35 DIV + + 50
----
0
0

skipif mysql # not compatible
query II rowsort label-1315
SELECT DISTINCT 92 * + 0 AS col2, 35 / + + 50
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT - MIN( ALL 92 ) * + 5 - 96 AS col1
----
-556

skipif mysql # not compatible
query I rowsort label-1316
SELECT - MIN ( ALL 92 ) * + 5 - 96 AS col1
----
-556

onlyif mysql # DIV for integer division: 
query II rowsort label-1317
SELECT - - 94 + + 23 DIV - 40, + COALESCE ( - 7, 84 - - + 29 ) * - 87 * 26 * - 63 + - + 75 * - + 69 AS col1
----
94
-992367

skipif mysql # not compatible
query II rowsort label-1317
SELECT - - 94 + + 23 / - 40, + COALESCE ( - 7, 84 - - + 29 ) * - 87 * 26 * - 63 + - + 75 * - + 69 AS col1
----
94
-992367

onlyif mysql # aggregate syntax: 
query II rowsort label-1318
SELECT ALL + 83 * + COUNT( * ) + - - COUNT( * ) - - 28 * 90 AS col1, 84 AS col1
----
2604
84

skipif mysql # not compatible
query II rowsort label-1318
SELECT ALL + 83 * + COUNT ( * ) + - - COUNT ( * ) - - 28 * 90 AS col1, 84 AS col1
----
2604
84

query I rowsort
SELECT + 72 * 19 + - 74 * 66 col0
----
-3516

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1321
SELECT CAST( + ( + CASE - 7 WHEN 87 THEN 5 + 77 * 51 + - 54 * - + COUNT( * ) WHEN 62 / + 89 * - - 85 / 57 * + COUNT( * ) + + ( NULLIF ( - MAX( ALL - 9 ), - NULLIF ( - + COUNT( * ), - 5 ) ) ) - 18 THEN NULL ELSE - CASE ( 98 ) WHEN - 46 * + NULLIF ( COUNT( * ), 50 ) THEN 64 WHEN + 39 + 18 * + 89 THEN + 90 END END ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1321
SELECT CAST ( + ( + CASE - 7 WHEN 87 THEN 5 + 77 * 51 + - 54 * - + COUNT ( * ) WHEN 62 / + 89 * - - 85 / 57 * + COUNT ( * ) + + ( NULLIF ( - MAX ( ALL - 9 ), - NULLIF ( - + COUNT ( * ), - 5 ) ) ) - 18 THEN NULL ELSE - CASE ( 98 ) WHEN - 46 * + NULLIF ( COUNT ( * ), 50 ) THEN 64 WHEN + 39 + 18 * + 89 THEN + 90 END END ) AS INTEGER ) AS col2
----
NULL

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

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

query I rowsort
SELECT ALL + 67 + 34 * 5 * 74 AS col2
----
12647

query I rowsort
SELECT ALL 22 + + 40 AS col2
----
62

query I rowsort
SELECT 92 * - 54 * ( + 68 ) AS col0
----
-337824

query I rowsort
SELECT COALESCE ( 23, - ( + 5 ) + - + 32 ) AS col1
----
23

query I rowsort
SELECT DISTINCT + ( + ( - 97 ) ) * + 60 AS col0
----
-5820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1328
SELECT COALESCE ( - COUNT( ALL 57 ), - - 53 DIV - - COUNT( * ) ) + + + ( - 57 ) + - 17 col1
----
-75

skipif mysql # not compatible
query I rowsort label-1328
SELECT COALESCE ( - COUNT ( ALL 57 ), - - 53 / - - COUNT ( * ) ) + + + ( - 57 ) + - 17 col1
----
-75

query I rowsort
SELECT - 76 * - + 47 AS col2
----
3572

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1330
SELECT 39 + + 64 DIV + COUNT( * ) AS col0, 7 * + COUNT( DISTINCT + - 62 ) * - MIN( - - 23 ) + 79 AS col2
----
103
-82

skipif mysql # not compatible
query II rowsort label-1330
SELECT 39 + + 64 / + COUNT ( * ) AS col0, 7 * + COUNT ( DISTINCT + - 62 ) * - MIN ( - - 23 ) + 79 AS col2
----
103
-82

query I rowsort
SELECT ALL 10 - + - 86
----
96

query II rowsort
SELECT 76 AS col0, - 15 + 85
----
76
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1333
SELECT ALL - 84 col2, + COUNT( * ) DIV - 11 AS col1
----
-84
0

skipif mysql # not compatible
query II rowsort label-1333
SELECT ALL - 84 col2, + COUNT ( * ) / - 11 AS col1
----
-84
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1334
SELECT SUM( - + CAST( NULL AS SIGNED ) ) + 29 * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-1334
SELECT SUM ( - + CAST ( NULL AS INTEGER ) ) + 29 * 43
----
NULL

query I rowsort
SELECT ALL 74 - - - NULLIF ( - + 86, + 51 * - COALESCE ( + + 82, + 34 + - - 52 ) + + 22 ) + ( 1 ) col0
----
161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1336
SELECT + COUNT( * ) * 70 DIV 50 + + + 82 col2
----
83

skipif mysql # not compatible
query I rowsort label-1336
SELECT + COUNT ( * ) * 70 / 50 + + + 82 col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1337
SELECT 12 / - + CASE + ( - AVG ( ALL + 75 ) ) WHEN 71 THEN 73 * - COUNT( * ) * + 93 + + - CAST( + - 15 AS SIGNED ) - + 75 + - + 73 + 96 + + SUM( - 35 ) / + - 76 END * - + 24 + - 95 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1337
SELECT 12 / - + CASE + ( - AVG ( ALL + 75 ) ) WHEN 71 THEN 73 * - COUNT ( * ) * + 93 + + - CAST ( + - 15 AS INTEGER ) - + 75 + - + 73 + 96 + + SUM ( - 35 ) / + - 76 END * - + 24 + - 95 col1
----
NULL

query II rowsort
SELECT + 53 AS col0, 93 AS col2
----
53
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT MAX( + - 81 ) + - 75 - 0
----
-156

skipif mysql # not compatible
query I rowsort label-1339
SELECT MAX ( + - 81 ) + - 75 - 0
----
-156

query I rowsort
SELECT 93 * + 46
----
4278

query I rowsort
SELECT 0 - + NULLIF ( 58, + + ( 10 ) ) + - 78 * 87 + - 99 + - 56 + + - 97 * - - 59
----
-12722

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1342
SELECT ALL - 3 AS col2, 77 + + - 58 / - 85 + + 97 + - CAST( NULL AS SIGNED ) * - 60
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-1342
SELECT ALL - 3 AS col2, 77 + + - 58 / - 85 + + 97 + - CAST ( NULL AS INTEGER ) * - 60
----
-3
NULL

query I rowsort
SELECT + 69 * + 17 + + 37
----
1210

query I rowsort
SELECT ALL - 95 * - 88 AS col0
----
8360

query I rowsort
SELECT 83 * + - 76
----
-6308

query I rowsort
SELECT ALL 67 * 48 * + + 4 AS col1
----
12864

query I rowsort
SELECT 90 + + 73 * + 45 AS col1
----
3375

query II rowsort
SELECT 8 AS col2, - 81
----
8
-81

query I rowsort
SELECT ALL - ( 24 ) AS col2
----
-24

query I rowsort
SELECT 99 + + + 54 * - 36 * + 68 * + 19 + - - ( + 89 ) * + 38 col0
----
-2508167

onlyif mysql # aggregate syntax: 
query II rowsort label-1351
SELECT + 78 AS col1, - 37 - - ( - + MAX( DISTINCT + 45 ) )
----
78
-82

skipif mysql # not compatible
query II rowsort label-1351
SELECT + 78 AS col1, - 37 - - ( - + MAX ( DISTINCT + 45 ) )
----
78
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1352
SELECT - 24 * + + CAST( - 82 AS SIGNED ) - + 41 + + 95
----
2022

skipif mysql # not compatible
query I rowsort label-1352
SELECT - 24 * + + CAST ( - 82 AS INTEGER ) - + 41 + + 95
----
2022

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1353
SELECT 58 DIV - 78 * + 93 AS col2, - COUNT( * ) col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-1353
SELECT 58 / - 78 * + 93 AS col2, - COUNT ( * ) col1
----
0
-1

query I rowsort
SELECT DISTINCT - 95 + + - 1 * - - 94 + + 14
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT - COALESCE ( - 83, - + 76 * - SUM( + 85 ), - 4 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-1355
SELECT - COALESCE ( - 83, - + 76 * - SUM ( + 85 ), - 4 ) AS col0
----
83

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1358
SELECT ALL - + COUNT( * ) + + - SUM( DISTINCT + - 83 ) AS col2, + 87 * - 64 * - - COUNT( * ) + + + 79 + - ( - + 96 ) AS col1
----
82
-5393

skipif mysql # not compatible
query II rowsort label-1358
SELECT ALL - + COUNT ( * ) + + - SUM ( DISTINCT + - 83 ) AS col2, + 87 * - 64 * - - COUNT ( * ) + + + 79 + - ( - + 96 ) AS col1
----
82
-5393

onlyif mysql # DIV for integer division: 
query II rowsort label-1359
SELECT ( - - 70 ) * + 5 AS col0, - 0 DIV 31
----
350
0

skipif mysql # not compatible
query II rowsort label-1359
SELECT ( - - 70 ) * + 5 AS col0, - 0 / 31
----
350
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT - + MIN( ALL - - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-1360
SELECT - + MIN ( ALL - - 30 )
----
-30

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

query I rowsort
SELECT - 67 * - - ( + 25 )
----
-1675

onlyif mysql # DIV for integer division: 
query I rowsort label-1363
SELECT - 94 DIV ( NULLIF ( + 70, 51 DIV - 64 * - - 6 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1363
SELECT - 94 / ( NULLIF ( + 70, 51 / - 64 * - - 6 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT - MIN( 67 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-1364
SELECT - MIN ( 67 ) AS col2
----
-67

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1366
SELECT 92, - COUNT( * ) + + 27 col1
----
92
26

skipif mysql # not compatible
query II rowsort label-1366
SELECT 92, - COUNT ( * ) + + 27 col1
----
92
26

query II rowsort
SELECT + 60 - + 33 * - 86 AS col2, + 72 AS col0
----
2898
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT DISTINCT - + 94 * + 3 * - COUNT( * ) * 12 * - COUNT( ALL - - 43 ) AS col2
----
-3384

skipif mysql # not compatible
query I rowsort label-1368
SELECT DISTINCT - + 94 * + 3 * - COUNT ( * ) * 12 * - COUNT ( ALL - - 43 ) AS col2
----
-3384

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT DISTINCT 8 - MAX( + + 55 )
----
-47

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT 8 - MAX ( + + 55 )
----
-47

query II rowsort
SELECT DISTINCT 4 * - 32 AS col0, 18 AS col2
----
-128
18

query I rowsort
SELECT DISTINCT + 80 - + + 55
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-1372
SELECT ALL - 25 DIV + ( + + 35 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1372
SELECT ALL - 25 / + ( + + 35 ) col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1373
SELECT DISTINCT 68 * 27 DIV + 86 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT 68 * 27 / + 86 AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1374
SELECT MIN( ALL + - 73 ) AS col1, 68 + + - CAST( + COUNT( DISTINCT 43 ) AS SIGNED ) + + + 20 AS col0
----
-73
87

skipif mysql # not compatible
query II rowsort label-1374
SELECT MIN ( ALL + - 73 ) AS col1, 68 + + - CAST ( + COUNT ( DISTINCT 43 ) AS INTEGER ) + + + 20 AS col0
----
-73
87

query II rowsort
SELECT DISTINCT + 8 * 17 AS col1, - 84 AS col0
----
136
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT 93 * COUNT( * ) col0
----
93

skipif mysql # not compatible
query I rowsort label-1376
SELECT 93 * COUNT ( * ) col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT DISTINCT + 36 * + COUNT( * ) * - ( - ( 3 ) ) AS col2
----
108

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT + 36 * + COUNT ( * ) * - ( - ( 3 ) ) AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT SUM( ALL 21 )
----
21

skipif mysql # not compatible
query I rowsort label-1378
SELECT SUM ( ALL 21 )
----
21

query I rowsort
SELECT ALL + 66 + - + 6 * + - 33 AS col2
----
264

query I rowsort
SELECT 61 * - + 37 - 51 AS col2
----
-2308

onlyif mysql # aggregate syntax: 
query II rowsort label-1381
SELECT ALL - 91 + NULLIF ( - 29, + 22 ), COUNT( * ) col1
----
-120
1

skipif mysql # not compatible
query II rowsort label-1381
SELECT ALL - 91 + NULLIF ( - 29, + 22 ), COUNT ( * ) col1
----
-120
1

query I rowsort
SELECT DISTINCT - ( - 50 ) AS col1
----
50

query I rowsort
SELECT DISTINCT 93 + - COALESCE ( + + 72, - 35 ) * + 43
----
-3003

query I rowsort
SELECT DISTINCT - - ( 21 ) + ( 22 ) col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1385
SELECT DISTINCT + 73 + - 92 + + 84 + - - 60 + + + 66 + + COUNT( * ) + - 19 * + 92 * 94 + + CAST( - 87 AS SIGNED ) * NULLIF ( + 69, + COUNT( * ) + - COUNT( * ) ) * - - 56 col2
----
-500288

skipif mysql # not compatible
query I rowsort label-1385
SELECT DISTINCT + 73 + - 92 + + 84 + - - 60 + + + 66 + + COUNT ( * ) + - 19 * + 92 * 94 + + CAST ( - 87 AS INTEGER ) * NULLIF ( + 69, + COUNT ( * ) + - COUNT ( * ) ) * - - 56 col2
----
-500288

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT ALL + 51 + + - SUM( ALL + 4 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL + 51 + + - SUM ( ALL + 4 ) AS col2
----
47

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

skipif mysql # not compatible
query I rowsort label-1387
SELECT + COUNT ( * ) + + COALESCE ( + + CAST ( NULL AS INTEGER ), - 69 )
----
-68

query I rowsort
SELECT - + ( 69 ) + - + ( - 14 ) AS col2
----
-55

query I rowsort
SELECT ALL + + NULLIF ( + 86, 73 ) - - 13 + + 48
----
147

query I rowsort
SELECT - + 79 * + 78
----
-6162

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT - - COUNT( * ) + + - MAX( ALL + 57 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-1391
SELECT - - COUNT ( * ) + + - MAX ( ALL + 57 ) AS col0
----
-56

query I rowsort
SELECT - + 35 + + - 46
----
-81

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1394
SELECT DISTINCT + 96 - + 46 * + CAST( NULL AS SIGNED ) + - + 12 * - + 84, 27 AS col0
----
NULL
27

skipif mysql # not compatible
query II rowsort label-1394
SELECT DISTINCT + 96 - + 46 * + CAST ( NULL AS INTEGER ) + - + 12 * - + 84, 27 AS col0
----
NULL
27

query I rowsort
SELECT ALL - 21 * + + 11 AS col1
----
-231

query I rowsort
SELECT ALL + 94 * - 37 AS col2
----
-3478

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

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

query I rowsort
SELECT ALL - 21 * + NULLIF ( 77, - 64 )
----
-1617

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT - MIN( + - 75 ) + ( + 78 )
----
153

skipif mysql # not compatible
query I rowsort label-1400
SELECT - MIN ( + - 75 ) + ( + 78 )
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT ALL CASE 1 WHEN NULLIF ( 98, - 96 ) THEN + + 76 * - - 10 WHEN 5 * + MAX( + 14 ) / - - 97 / ( - 73 ) * + 78 - 63 - - 97 THEN - + 23 * + 51 + + + 54 WHEN 13 * + CASE + MAX( DISTINCT - 29 ) WHEN - 45 + + 4 THEN + 24 ELSE 83 * 85 END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1401
SELECT ALL CASE 1 WHEN NULLIF ( 98, - 96 ) THEN + + 76 * - - 10 WHEN 5 * + MAX ( + 14 ) / - - 97 / ( - 73 ) * + 78 - 63 - - 97 THEN - + 23 * + 51 + + + 54 WHEN 13 * + CASE + MAX ( DISTINCT - 29 ) WHEN - 45 + + 4 THEN + 24 ELSE 83 * 85 END THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1402
SELECT ( COALESCE ( COALESCE ( - 45, + COUNT( * ) * + 96 * + + 55 + - MIN( ALL + 13 ) + - + 18 - - - 75, 63 ), + - 82 - - 24 * + + CASE + - 46 WHEN - + 82 THEN - - 7 + 57 WHEN 44 * - 26 THEN NULL ELSE NULL END * - 48, COALESCE ( + - 22, + 44, + CAST( NULL AS SIGNED ) ) + ( - 8 ) * + ( COUNT( * ) * 45 + + 65 ) ) ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-1402
SELECT ( COALESCE ( COALESCE ( - 45, + COUNT ( * ) * + 96 * + + 55 + - MIN ( ALL + 13 ) + - + 18 - - - 75, 63 ), + - 82 - - 24 * + + CASE + - 46 WHEN - + 82 THEN - - 7 + 57 WHEN 44 * - 26 THEN NULL ELSE NULL END * - 48, COALESCE ( + - 22, + 44, + CAST ( NULL AS INTEGER ) ) + ( - 8 ) * + ( COUNT ( * ) * 45 + + 65 ) ) ) col1
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1403
SELECT ALL + 77 * + COALESCE ( 76, 0, - - ( - NULLIF ( ( - 8 ), CASE COUNT( * ) WHEN CASE + 52 WHEN AVG ( ALL 19 ) THEN + - 86 WHEN - COUNT( * ) THEN NULL END THEN 56 * + 12 + 58 END ) ) ) + - 6 * + 68 + - + MAX( + 37 ) + - 34 DIV - - 11
----
5404

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL + 77 * + COALESCE ( 76, 0, - - ( - NULLIF ( ( - 8 ), CASE COUNT ( * ) WHEN CASE + 52 WHEN AVG ( ALL 19 ) THEN + - 86 WHEN - COUNT ( * ) THEN NULL END THEN 56 * + 12 + 58 END ) ) ) + - 6 * + 68 + - + MAX ( + 37 ) + - 34 / - - 11
----
5404

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT - 79 + ( + - 52 ) * MAX( ALL + ( - 18 ) ) + + + COUNT( * ) + 66 + 0 * + 26 / - 27 + - + CASE 23 WHEN 80 - + 4 THEN + + ( + 82 ) ELSE NULL END / AVG ( ALL - 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1404
SELECT - 79 + ( + - 52 ) * MAX ( ALL + ( - 18 ) ) + + + COUNT ( * ) + 66 + 0 * + 26 / - 27 + - + CASE 23 WHEN 80 - + 4 THEN + + ( + 82 ) ELSE NULL END / AVG ( ALL - 38 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT DISTINCT ( + 9 ) * + - COUNT( - + 1 ) + - ( + 57 ) + - 77
----
-143

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT ( + 9 ) * + - COUNT ( - + 1 ) + - ( + 57 ) + - 77
----
-143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1406
SELECT ALL - ( - 88 ) * CAST( - 62 AS SIGNED ) * COUNT( * ) * - 52 + - 29 AS col1
----
283683

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL - ( - 88 ) * CAST ( - 62 AS INTEGER ) * COUNT ( * ) * - 52 + - 29 AS col1
----
283683

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT COALESCE ( - 23, - 37, + 63, - - COUNT( * ) * - 52 ) * + COALESCE ( + - 93, + COUNT( * ), - 39 + + ( - - NULLIF ( 5, + 85 / 72 ) ) * + COUNT( * ) ) - + COUNT( * ) + + 5 + - SUM( DISTINCT 4 ) * + + ( + COUNT( * ) )
----
2139

skipif mysql # not compatible
query I rowsort label-1409
SELECT COALESCE ( - 23, - 37, + 63, - - COUNT ( * ) * - 52 ) * + COALESCE ( + - 93, + COUNT ( * ), - 39 + + ( - - NULLIF ( 5, + 85 / 72 ) ) * + COUNT ( * ) ) - + COUNT ( * ) + + 5 + - SUM ( DISTINCT 4 ) * + + ( + COUNT ( * ) )
----
2139

onlyif mysql # DIV for integer division: 
query I rowsort label-1410
SELECT + NULLIF ( 98, - 47 ) DIV + 44
----
2

skipif mysql # not compatible
query I rowsort label-1410
SELECT + NULLIF ( 98, - 47 ) / + 44
----
2

query I rowsort
SELECT ALL + + 2 * - 99 * 80 * - ( - 75 ) + 37 + - 46 AS col0
----
-1188009

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT + - 49 + + + 11 + COUNT( * ) + 97 + + 61 * + - 1 * 84 AS col2
----
-5064

skipif mysql # not compatible
query I rowsort label-1412
SELECT + - 49 + + + 11 + COUNT ( * ) + 97 + + 61 * + - 1 * 84 AS col2
----
-5064

query I rowsort
SELECT - - 63 * 61 AS col0
----
3843

query I rowsort
SELECT + + 25 + - + 82
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1415
SELECT ALL - 19 DIV + COALESCE ( - 15, - 84 + - 89 * SUM( - 12 ), - 42, + 91 ) * COUNT( * ) + - SUM( DISTINCT + 36 ) + - 57 + 96
----
4

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL - 19 / + COALESCE ( - 15, - 84 + - 89 * SUM ( - 12 ), - 42, + 91 ) * COUNT ( * ) + - SUM ( DISTINCT + 36 ) + - 57 + 96
----
4

query II rowsort
SELECT ALL + 28, - 78 AS col1
----
28
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1417
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) * + + 63 * 28 * + AVG ( ( 98 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT + + CAST ( NULL AS REAL ) * + + 63 * 28 * + AVG ( ( 98 ) ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1419
SELECT - ( + CASE COUNT( * ) WHEN + 80 * + 1 + - - 55 - - 86 + - - COUNT( * ) * - CAST( CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) AS SIGNED ) * COUNT( 53 ) + + 57 * - - 98 THEN - + 15 WHEN - 6 - + 14 THEN 10 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1419
SELECT - ( + CASE COUNT ( * ) WHEN + 80 * + 1 + - - 55 - - 86 + - - COUNT ( * ) * - CAST ( CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) AS INTEGER ) * COUNT ( 53 ) + + 57 * - - 98 THEN - + 15 WHEN - 6 - + 14 THEN 10 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT - 46 + - + 65 - + COUNT( ALL 20 )
----
-112

skipif mysql # not compatible
query I rowsort label-1420
SELECT - 46 + - + 65 - + COUNT ( ALL 20 )
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-1421
SELECT ALL COUNT( * ), 22 + - COUNT( * ) col2
----
1
21

skipif mysql # not compatible
query II rowsort label-1421
SELECT ALL COUNT ( * ), 22 + - COUNT ( * ) col2
----
1
21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1423
SELECT - CAST( - 58 AS SIGNED ) col2, - ( - 15 ) * + - 18 col0
----
58
-270

skipif mysql # not compatible
query II rowsort label-1423
SELECT - CAST ( - 58 AS INTEGER ) col2, - ( - 15 ) * + - 18 col0
----
58
-270

query I rowsort
SELECT + 92 - + 72
----
20

query I rowsort
SELECT - ( - 35 ) * - 57 col1
----
-1995

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

query I rowsort
SELECT ALL - 63 * + ( 8 )
----
-504

query I rowsort
SELECT - 56 * - - 64
----
-3584

query I rowsort
SELECT - 14 - + 84
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT DISTINCT - COUNT( * ) + + 42 + COUNT( * ) col1
----
42

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT - COUNT ( * ) + + 42 + COUNT ( * ) col1
----
42

query I rowsort
SELECT ALL + 91 + + + 94 - + + 62
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-1432
SELECT - 14 AS col0, 17 * - - SUM( ALL - 24 ) * 88
----
-14
-35904

skipif mysql # not compatible
query II rowsort label-1432
SELECT - 14 AS col0, 17 * - - SUM ( ALL - 24 ) * 88
----
-14
-35904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1433
SELECT - 20 DIV - CASE 54 WHEN - COUNT( * ) * + 57 THEN - + 6 DIV - COALESCE ( + 34, - SUM( DISTINCT 47 ) ) WHEN + CAST( + - CASE - 63 WHEN - - 53 * + COUNT( * ) THEN + 57 WHEN + 96 + + 2 THEN - 47 END AS SIGNED ) THEN NULL ELSE + 90 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1433
SELECT - 20 / - CASE 54 WHEN - COUNT ( * ) * + 57 THEN - + 6 / - COALESCE ( + 34, - SUM ( DISTINCT 47 ) ) WHEN + CAST ( + - CASE - 63 WHEN - - 53 * + COUNT ( * ) THEN + 57 WHEN + 96 + + 2 THEN - 47 END AS INTEGER ) THEN NULL ELSE + 90 END AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1434
SELECT DISTINCT - 23 DIV - SUM( 88 ) + - NULLIF ( + + 40, 55 * + 39 + + CAST( NULL AS SIGNED ) * - 73 ) * - - 42 * - COUNT( 58 ) + 14 DIV 72
----
1680

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT - 23 / - SUM ( 88 ) + - NULLIF ( + + 40, 55 * + 39 + + CAST ( NULL AS INTEGER ) * - 73 ) * - - 42 * - COUNT ( 58 ) + 14 / 72
----
1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1435
SELECT DISTINCT - - NULLIF ( - CAST( + 83 AS SIGNED ), + + COUNT( * ) ) col1
----
-83

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT - - NULLIF ( - CAST ( + 83 AS INTEGER ), + + COUNT ( * ) ) col1
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1436
SELECT ALL + CASE ( + - ( - 14 ) ) WHEN - 20 * + ( + COUNT( * ) ) * - - CAST( + 93 AS SIGNED ) THEN NULL WHEN + AVG ( ALL - + CAST( NULL AS SIGNED ) ) THEN NULL ELSE 15 END + - 80
----
-65

skipif mysql # not compatible
query I rowsort label-1436
SELECT ALL + CASE ( + - ( - 14 ) ) WHEN - 20 * + ( + COUNT ( * ) ) * - - CAST ( + 93 AS INTEGER ) THEN NULL WHEN + AVG ( ALL - + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE 15 END + - 80
----
-65

query I rowsort
SELECT ALL + 23 - + 79
----
-56

query I rowsort
SELECT - 86 * - 74 AS col1
----
6364

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1439
SELECT - 55 * MAX( ALL 33 ) DIV MAX( + + 45 ) * + - COUNT( * ) AS col0, 7 + ( 98 ) AS col0
----
40
105

skipif mysql # not compatible
query II rowsort label-1439
SELECT - 55 * MAX ( ALL 33 ) / MAX ( + + 45 ) * + - COUNT ( * ) AS col0, 7 + ( 98 ) AS col0
----
40
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1440
SELECT - CASE + 40 WHEN - - ( - + COUNT( * ) ) + CAST( - 38 AS SIGNED ) THEN - MAX( - 15 ) WHEN - + 94 * + 35 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1440
SELECT - CASE + 40 WHEN - - ( - + COUNT ( * ) ) + CAST ( - 38 AS INTEGER ) THEN - MAX ( - 15 ) WHEN - + 94 * + 35 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1441
SELECT ALL - + NULLIF ( + - 77, - + 94 - - - COUNT( * ) ) AS col1, 8 AS col2
----
77
8

skipif mysql # not compatible
query II rowsort label-1441
SELECT ALL - + NULLIF ( + - 77, - + 94 - - - COUNT ( * ) ) AS col1, 8 AS col2
----
77
8

query I rowsort
SELECT - 13 + + 11
----
-2

query I rowsort
SELECT + 22 * - 66 + + 38
----
-1414

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT MAX( DISTINCT + 62 ) + - MAX( + - 70 ) * - - 39
----
2792

skipif mysql # not compatible
query I rowsort label-1444
SELECT MAX ( DISTINCT + 62 ) + - MAX ( + - 70 ) * - - 39
----
2792

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

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

query I rowsort
SELECT DISTINCT - 29 * + - 6
----
174

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT - 45 * + COUNT( * ) - ( 8 ) - - - 17
----
-70

skipif mysql # not compatible
query I rowsort label-1448
SELECT - 45 * + COUNT ( * ) - ( 8 ) - - - 17
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1449
SELECT CAST( NULL AS SIGNED ) + + CAST( ( - 95 ) AS SIGNED ) + + CAST( - + 3 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1449
SELECT CAST ( NULL AS INTEGER ) + + CAST ( ( - 95 ) AS INTEGER ) + + CAST ( - + 3 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1450
SELECT 22 + - 46 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1450
SELECT 22 + - 46 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1451
SELECT ALL NULLIF ( - COUNT( * ), 95 ) DIV 72 DIV COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL NULLIF ( - COUNT ( * ), 95 ) / 72 / COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1452
SELECT 84 DIV COUNT( * ) * - - 49 col1
----
4116

skipif mysql # not compatible
query I rowsort label-1452
SELECT 84 / COUNT ( * ) * - - 49 col1
----
4116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1453
SELECT DISTINCT COUNT( * ) + + 79, - CAST( + 74 AS SIGNED ) AS col1
----
80
-74

skipif mysql # not compatible
query II rowsort label-1453
SELECT DISTINCT COUNT ( * ) + + 79, - CAST ( + 74 AS INTEGER ) AS col1
----
80
-74

query II rowsort
SELECT ALL - 4 + - 58 AS col2, - 56
----
-62
-56

query I rowsort
SELECT DISTINCT 3 + + + 91 * 98
----
8921

onlyif mysql # DIV for integer division: 
query II rowsort label-1456
SELECT 9 * 65 AS col2, + 70 DIV - 78 AS col0
----
585
0

skipif mysql # not compatible
query II rowsort label-1456
SELECT 9 * 65 AS col2, + 70 / - 78 AS col0
----
585
0

query I rowsort
SELECT ALL 97 + + 56 + - 7
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-1458
SELECT 99 + + - 76 + - ( 80 ) DIV + 18
----
19

skipif mysql # not compatible
query I rowsort label-1458
SELECT 99 + + - 76 + - ( 80 ) / + 18
----
19

query I rowsort
SELECT ALL + ( + 3 ) - + 1
----
2

query I rowsort
SELECT - 4 + - 46
----
-50

query I rowsort
SELECT DISTINCT - ( - + 33 ) * - 73 AS col2
----
-2409

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT - 61 * - COUNT( * ) + - 44 + - 51
----
-34

skipif mysql # not compatible
query I rowsort label-1462
SELECT - 61 * - COUNT ( * ) + - 44 + - 51
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-1463
SELECT + 98 DIV 85 + + 21 + 5 * - 0
----
22

skipif mysql # not compatible
query I rowsort label-1463
SELECT + 98 / 85 + + 21 + 5 * - 0
----
22

query II rowsort
SELECT ALL - - 89 * - + 14 AS col1, - 30
----
-1246
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1465
SELECT + ( + ( 73 ) ) DIV COUNT( * ) + - + 68 col1
----
5

skipif mysql # not compatible
query I rowsort label-1465
SELECT + ( + ( 73 ) ) / COUNT ( * ) + - + 68 col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1466
SELECT ( 66 ) DIV 66
----
1

skipif mysql # not compatible
query I rowsort label-1466
SELECT ( 66 ) / 66
----
1

query I rowsort
SELECT ALL - NULLIF ( - ( - 94 ), - 71 )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1468
SELECT DISTINCT 62 * + 84 * - 5 + - CAST( NULL AS SIGNED ) + - AVG ( DISTINCT - 88 ) * + - 95 + - 4 + - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1468
SELECT DISTINCT 62 * + 84 * - 5 + - CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT - 88 ) * + - 95 + - 4 + - + COUNT ( * ) AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - + NULLIF ( ( - 43 ), - 37 * - 52 * + - 25 + + + 29 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT + MIN( - ( 47 ) ) * 6 * COUNT( * )
----
-282

skipif mysql # not compatible
query I rowsort label-1471
SELECT + MIN ( - ( 47 ) ) * 6 * COUNT ( * )
----
-282

query I rowsort
SELECT ( - 44 ) * 5 - + 47 col0
----
-267

onlyif mysql # DIV for integer division: 
query II rowsort label-1473
SELECT + + 5 * - - 11 + + - 0 + 42 DIV - 12 AS col2, + 24 AS col1
----
52
24

skipif mysql # not compatible
query II rowsort label-1473
SELECT + + 5 * - - 11 + + - 0 + 42 / - 12 AS col2, + 24 AS col1
----
52
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT 37 * - 86 * - + ( - - 32 ) * COUNT( * ) + - - 26 AS col0
----
101850

skipif mysql # not compatible
query I rowsort label-1474
SELECT 37 * - 86 * - + ( - - 32 ) * COUNT ( * ) + - - 26 AS col0
----
101850

query II rowsort
SELECT ALL - 62 * - - ( - + 41 ), + 27 AS col0
----
2542
27

query I rowsort
SELECT 64 + 61 AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT DISTINCT - 90 + + - 68 - - COUNT( ALL - 25 )
----
-157

skipif mysql # not compatible
query I rowsort label-1477
SELECT DISTINCT - 90 + + - 68 - - COUNT ( ALL - 25 )
----
-157

query I rowsort
SELECT ALL + 35 + 1 * + + 7 + - + 9 * + 39 AS col2
----
-309

query I rowsort
SELECT 77 * 69 col2
----
5313

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

query I rowsort
SELECT ALL - 63 * 36
----
-2268

query II rowsort
SELECT ALL 93 AS col1, 19
----
93
19

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1484
SELECT COUNT( * ) + + - COUNT( * ) + - 15 col1, 84 + + 79 AS col0
----
-15
163

skipif mysql # not compatible
query II rowsort label-1484
SELECT COUNT ( * ) + + - COUNT ( * ) + - 15 col1, 84 + + 79 AS col0
----
-15
163

onlyif mysql # aggregate syntax: 
query II rowsort label-1485
SELECT ALL 97 + - - 59 + + 5 AS col0, COUNT( * )
----
161
1

skipif mysql # not compatible
query II rowsort label-1485
SELECT ALL 97 + - - 59 + + 5 AS col0, COUNT ( * )
----
161
1

query I rowsort
SELECT 89 * 89 AS col1
----
7921

onlyif mysql # DIV for integer division: 
query II rowsort label-1487
SELECT 54 col1, - 67 DIV + ( + 72 )
----
54
0

skipif mysql # not compatible
query II rowsort label-1487
SELECT 54 col1, - 67 / + ( + 72 )
----
54
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1488
SELECT ALL + 28 - - + CAST( + CAST( - + 98 AS SIGNED ) AS SIGNED ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL + 28 - - + CAST ( + CAST ( - + 98 AS INTEGER ) AS INTEGER ) AS col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1489
SELECT ALL NULLIF ( + SUM( DISTINCT - 4 ), + 69 ), CAST( - 33 AS SIGNED ) AS col1
----
-4
-33

skipif mysql # not compatible
query II rowsort label-1489
SELECT ALL NULLIF ( + SUM ( DISTINCT - 4 ), + 69 ), CAST ( - 33 AS INTEGER ) AS col1
----
-4
-33

query I rowsort
SELECT ALL 84 - + + 8 AS col0
----
76

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1492
SELECT ALL 69 AS col0, 57 DIV COUNT( * ) AS col0
----
69
57

skipif mysql # not compatible
query II rowsort label-1492
SELECT ALL 69 AS col0, 57 / COUNT ( * ) AS col0
----
69
57

query I rowsort
SELECT DISTINCT 19 - 87 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT + - MIN( ALL - 53 ) - 64 + - 48 * - + 92 - - 11
----
4416

skipif mysql # not compatible
query I rowsort label-1494
SELECT + - MIN ( ALL - 53 ) - 64 + - 48 * - + 92 - - 11
----
4416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1495
SELECT + + COUNT( * ) * - - 53 + + 46 + + + CAST( 87 AS SIGNED ) AS col2
----
186

skipif mysql # not compatible
query I rowsort label-1495
SELECT + + COUNT ( * ) * - - 53 + + 46 + + + CAST ( 87 AS INTEGER ) AS col2
----
186

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1498
SELECT + CAST( + 47 AS SIGNED ) * CASE - CAST( NULL AS SIGNED ) WHEN - 5 THEN + 47 END * + 99 - + + 86 * - 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1498
SELECT + CAST ( + 47 AS INTEGER ) * CASE - CAST ( NULL AS INTEGER ) WHEN - 5 THEN + 47 END * + 99 - + + 86 * - 77 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT ALL - 40 * - 38 * - - MAX( DISTINCT + + 7 ) AS col2
----
10640

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL - 40 * - 38 * - - MAX ( DISTINCT + + 7 ) AS col2
----
10640

query II rowsort
SELECT DISTINCT + 93, 62 AS col0
----
93
62

query I rowsort
SELECT DISTINCT - + 49 * + + 15 col1
----
-735

onlyif mysql # DIV for integer division: 
query II rowsort label-1502
SELECT + 61 + + 42 DIV - + 63, 14 AS col2
----
61
14

skipif mysql # not compatible
query II rowsort label-1502
SELECT + 61 + + 42 / - + 63, 14 AS col2
----
61
14

query I rowsort
SELECT - - 85 * + 8 * + + 44 * 30
----
897600

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT + + 29 * - 61 - - COUNT( * ) * - - 99 + - 21
----
-1691

skipif mysql # not compatible
query I rowsort label-1504
SELECT + + 29 * - 61 - - COUNT ( * ) * - - 99 + - 21
----
-1691

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT ALL - 79 * - 33 + + + 4 + - + MAX( + 19 ) AS col2
----
2592

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL - 79 * - 33 + + + 4 + - + MAX ( + 19 ) AS col2
----
2592

query I rowsort
SELECT - + 50 + - - 28
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1507
SELECT ALL + COUNT( + 40 ) * + + 56 + + - 27 DIV + COUNT( * ) col1
----
29

skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL + COUNT ( + 40 ) * + + 56 + + - 27 / + COUNT ( * ) col1
----
29

query I rowsort
SELECT - ( ( 31 ) ) + + 98 col1
----
67

query I rowsort
SELECT ALL 27 * + + 12 + + + 38 AS col0
----
362

query I rowsort
SELECT ALL 21 * + 39 + - ( + + 43 )
----
776

onlyif mysql # aggregate syntax: 
query II rowsort label-1511
SELECT COUNT( * ) * + 47 * 42 - - 18 AS col2, COUNT( * ) * 64 - - + 84 AS col0
----
1992
148

skipif mysql # not compatible
query II rowsort label-1511
SELECT COUNT ( * ) * + 47 * 42 - - 18 AS col2, COUNT ( * ) * 64 - - + 84 AS col0
----
1992
148

onlyif mysql # DIV for integer division: 
query II rowsort label-1512
SELECT + ( - 41 ) AS col0, 0 DIV - 48 AS col1
----
-41
0

skipif mysql # not compatible
query II rowsort label-1512
SELECT + ( - 41 ) AS col0, 0 / - 48 AS col1
----
-41
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT - 15 + - + COUNT( * ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1513
SELECT - 15 + - + COUNT ( * ) AS col0
----
-16

query I rowsort
SELECT ALL CASE + 8 WHEN + 21 THEN NULL WHEN 68 THEN - - 70 END
----
NULL

query I rowsort
SELECT - 92 + - COALESCE ( + + 96, - + 11 ) * + 18 * 69 AS col2
----
-119324

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

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

query I rowsort
SELECT ALL - 32 * + 36
----
-1152

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

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

query II rowsort
SELECT ALL + 41 - - + 40 AS col0, 7 * - + 57 * - 26 AS col1
----
81
10374

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

skipif mysql # not compatible
query II rowsort label-1520
SELECT ALL ( - COUNT ( * ) ) AS col1, 48 AS col1
----
-1
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1521
SELECT - 25 DIV 7 * + ( COUNT( * ) ) AS col1, 65
----
-3
65

skipif mysql # not compatible
query II rowsort label-1521
SELECT - 25 / 7 * + ( COUNT ( * ) ) AS col1, 65
----
-3
65

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

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

query I rowsort
SELECT - NULLIF ( - - 30, - + 42 ) AS col2
----
-30

query I rowsort
SELECT - 39 + + 52
----
13

query I rowsort
SELECT + - 41 * - 48 AS col2
----
1968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1526
SELECT ALL 82 DIV - 49 DIV + + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1526
SELECT ALL 82 / - 49 / + + COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1527
SELECT - MAX( + 83 ) + + 44 + + 50 + + 57 DIV - 85 - - + 44 + - + 58 DIV 70
----
55

skipif mysql # not compatible
query I rowsort label-1527
SELECT - MAX ( + 83 ) + + 44 + + 50 + + 57 / - 85 - - + 44 + - + 58 / 70
----
55

query I rowsort
SELECT + 22 - NULLIF ( + 94, 91 ) col1
----
-72

query I rowsort
SELECT + 26 * - 95
----
-2470

query I rowsort
SELECT - 66 + + 17 AS col0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-1531
SELECT + 38 * 42 * + 73 + - 10 DIV - 25 AS col1
----
116508

skipif mysql # not compatible
query I rowsort label-1531
SELECT + 38 * 42 * + 73 + - 10 / - 25 AS col1
----
116508

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT + - COALESCE ( + COUNT( * ), MIN( - + 46 ) * 90 + + 77 + + - 26 + - 7 * - 23 * - 16 * + 66, COUNT( * ) * - - 57 ) * 58 * - 24 AS col1
----
1392

skipif mysql # not compatible
query I rowsort label-1532
SELECT + - COALESCE ( + COUNT ( * ), MIN ( - + 46 ) * 90 + + 77 + + - 26 + - 7 * - 23 * - 16 * + 66, COUNT ( * ) * - - 57 ) * 58 * - 24 AS col1
----
1392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1533
SELECT + 51 DIV - - SUM( + ( + ( 7 ) ) ) + + 59 * - 99 + - - 35 - - - 10 + + + 59
----
-5750

skipif mysql # not compatible
query I rowsort label-1533
SELECT + 51 / - - SUM ( + ( + ( 7 ) ) ) + + 59 * - 99 + - - 35 - - - 10 + + + 59
----
-5750

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1534
SELECT + 51 + + COUNT( * ), - 13 * + 88 * + 53 DIV COUNT( * ) AS col2
----
52
-60632

skipif mysql # not compatible
query II rowsort label-1534
SELECT + 51 + + COUNT ( * ), - 13 * + 88 * + 53 / COUNT ( * ) AS col2
----
52
-60632

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL - 90 * + + COUNT( * ) + + 2 * - ( + 60 ) + + 89 AS col1
----
-121

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL - 90 * + + COUNT ( * ) + + 2 * - ( + 60 ) + + 89 AS col1
----
-121

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT ALL + MAX( ALL + 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL + MAX ( ALL + 98 ) AS col1
----
98

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1541
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - COUNT( * ) * + 4 * - 60 * 77 + + ( 27 ) + + MAX( - + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - COUNT ( * ) * + 4 * - 60 * 77 + + ( 27 ) + + MAX ( - + 93 )
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1543
SELECT + ( ( 73 ) ) AS col0, + ( COUNT( * ) ) DIV - 53 * + + 77 col2
----
73
0

skipif mysql # not compatible
query II rowsort label-1543
SELECT + ( ( 73 ) ) AS col0, + ( COUNT ( * ) ) / - 53 * + + 77 col2
----
73
0

query I rowsort
SELECT ALL 91 * 51 + - - ( + 72 ) * 45 AS col0
----
7881

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

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

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

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

query I rowsort
SELECT ALL + 0 * - 26 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT ALL - COUNT( * ) * - 95 * - 80 AS col1
----
-7600

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL - COUNT ( * ) * - 95 * - 80 AS col1
----
-7600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1549
SELECT NULLIF ( - 17, - 8 + - CASE + 57 WHEN + + 54 * - - CASE - CAST( NULL AS SIGNED ) WHEN ( ( + - 68 ) ) THEN NULL ELSE - 16 + + 13 + + + ( 75 ) + + 85 + + + COUNT( * ) / MIN( ALL - 99 ) END - - COUNT( * ) * + 87 THEN - 7 ELSE NULL END )
----
-17

skipif mysql # not compatible
query I rowsort label-1549
SELECT NULLIF ( - 17, - 8 + - CASE + 57 WHEN + + 54 * - - CASE - CAST ( NULL AS INTEGER ) WHEN ( ( + - 68 ) ) THEN NULL ELSE - 16 + + 13 + + + ( 75 ) + + 85 + + + COUNT ( * ) / MIN ( ALL - 99 ) END - - COUNT ( * ) * + 87 THEN - 7 ELSE NULL END )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT DISTINCT COUNT( * ) * 91
----
91

skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT COUNT ( * ) * 91
----
91

query I rowsort
SELECT DISTINCT - 27 - + 61
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1552
SELECT 18 * + - 8 * - 95 DIV - COUNT( * )
----
-13680

skipif mysql # not compatible
query I rowsort label-1552
SELECT 18 * + - 8 * - 95 / - COUNT ( * )
----
-13680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1553
SELECT 34 + CAST( - 54 AS SIGNED ) + + ( + NULLIF ( + 78, - + 95 * - - 83 + + ( - 27 ) ) ) + + CAST( 29 AS SIGNED ) / + COUNT( * ) * CAST( NULL AS SIGNED ) * + - CAST( 72 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1553
SELECT 34 + CAST ( - 54 AS INTEGER ) + + ( + NULLIF ( + 78, - + 95 * - - 83 + + ( - 27 ) ) ) + + CAST ( 29 AS INTEGER ) / + COUNT ( * ) * CAST ( NULL AS INTEGER ) * + - CAST ( 72 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( - 59 ) * - - 1
----
-59

query I rowsort
SELECT 43 + + 73
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-1556
SELECT ALL 23 AS col1, + CASE - COUNT( * ) WHEN - COUNT( * ) + + 79 THEN NULL WHEN - 34 * + 49 THEN NULL ELSE + - 25 + - 1 END * + 41
----
23
-1066

skipif mysql # not compatible
query II rowsort label-1556
SELECT ALL 23 AS col1, + CASE - COUNT ( * ) WHEN - COUNT ( * ) + + 79 THEN NULL WHEN - 34 * + 49 THEN NULL ELSE + - 25 + - 1 END * + 41
----
23
-1066

query I rowsort
SELECT 51 - 8 AS col2
----
43

query I rowsort
SELECT DISTINCT + + ( 40 ) * + COALESCE ( - 15, + 14 - - - 16 + + - 14 ) AS col2
----
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT ALL - COUNT( - 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL - COUNT ( - 35 )
----
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1561
SELECT ALL - 4 + - 11 DIV - - 26
----
-4

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL - 4 + - 11 / - - 26
----
-4

query I rowsort
SELECT ALL + 24 + + + 8 AS col2
----
32

query I rowsort
SELECT DISTINCT + - 78 * + 57
----
-4446

query II rowsort
SELECT ALL - COALESCE ( - + 29, + NULLIF ( 50, 21 ) ), 76 AS col2
----
29
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT DISTINCT - - 65 + - COUNT( * ) + + 71 * - - COUNT( * ) * 87 * 91
----
562171

skipif mysql # not compatible
query I rowsort label-1565
SELECT DISTINCT - - 65 + - COUNT ( * ) + + 71 * - - COUNT ( * ) * 87 * 91
----
562171

query I rowsort
SELECT 84 - - - 6 + 12 * 31 AS col1
----
450

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1567
SELECT + 22 col0, COUNT( ALL 96 ) - - + 25 - - - 6 + COUNT( * ) DIV + 14 + - 0 AS col0
----
22
20

skipif mysql # not compatible
query II rowsort label-1567
SELECT + 22 col0, COUNT ( ALL 96 ) - - + 25 - - - 6 + COUNT ( * ) / + 14 + - 0 AS col0
----
22
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1568
SELECT DISTINCT 1 + + ( + CAST( NULL AS DECIMAL ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1568
SELECT DISTINCT 1 + + ( + CAST ( NULL AS REAL ) ) col2
----
NULL

query I rowsort
SELECT ALL - 97 + + 24 AS col2
----
-73

query I rowsort
SELECT + 88 * + 4 AS col0
----
352

onlyif mysql # aggregate syntax: 
query II rowsort label-1571
SELECT DISTINCT - 51 col2, 56 + + SUM( - 68 ) * + 28 * 86 * + 33
----
-51
-5403496

skipif mysql # not compatible
query II rowsort label-1571
SELECT DISTINCT - 51 col2, 56 + + SUM ( - 68 ) * + 28 * 86 * + 33
----
-51
-5403496

query I rowsort
SELECT DISTINCT 41 * 32 * - 81
----
-106272

query I rowsort
SELECT ALL - 47 + 71 + + 97 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT 42 * MIN( DISTINCT - 93 ) - - 78 + + 94
----
-3734

skipif mysql # not compatible
query I rowsort label-1574
SELECT 42 * MIN ( DISTINCT - 93 ) - - 78 + + 94
----
-3734

onlyif mysql # DIV for integer division: 
query II rowsort label-1575
SELECT ALL - 43 AS col2, + 44 DIV 70
----
-43
0

skipif mysql # not compatible
query II rowsort label-1575
SELECT ALL - 43 AS col2, + 44 / 70
----
-43
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1576
SELECT + 94 * - COUNT( ALL - 89 ) + + CASE - 89 WHEN - - 1 THEN - 66 END, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1576
SELECT + 94 * - COUNT ( ALL - 89 ) + + CASE - 89 WHEN - - 1 THEN - 66 END, COUNT ( * ) AS col2
----
NULL
1

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

skipif mysql # not compatible
query I rowsort label-1577
SELECT + ( 53 ) / - 49 + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT + 32 * + - 6 AS col2
----
-192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1579
SELECT ALL - 73 AS col2, + ( COALESCE ( + + COUNT( * ), 98, - ( + COUNT( - ( 72 ) ) ) ) ) + - 46 * + - CAST( 17 AS SIGNED ) * COUNT( * ) - 10
----
-73
773

skipif mysql # not compatible
query II rowsort label-1579
SELECT ALL - 73 AS col2, + ( COALESCE ( + + COUNT ( * ), 98, - ( + COUNT ( - ( 72 ) ) ) ) ) + - 46 * + - CAST ( 17 AS INTEGER ) * COUNT ( * ) - 10
----
-73
773

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1580
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 67 * + ( - NULLIF ( + 53, + - 90 + - 64 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 67 * + ( - NULLIF ( + 53, + - 90 + - 64 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT - 55 * - 91 * COUNT( * ) + - 20
----
4985

skipif mysql # not compatible
query I rowsort label-1581
SELECT - 55 * - 91 * COUNT ( * ) + - 20
----
4985

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT ALL 62 * - SUM( 88 )
----
-5456

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL 62 * - SUM ( 88 )
----
-5456

onlyif mysql # DIV for integer division: 
query I rowsort label-1583
SELECT DISTINCT 73 DIV - 34
----
-2

skipif mysql # not compatible
query I rowsort label-1583
SELECT DISTINCT 73 / - 34
----
-2

query II rowsort
SELECT + 56, 78 AS col0
----
56
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT 37 + + CASE - 14 WHEN + 26 THEN + - 19 - + CASE + - COUNT( * ) WHEN + 16 THEN - - 90 + - 38 WHEN + - COUNT( * ) * - 99 THEN NULL ELSE - + 95 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1585
SELECT 37 + + CASE - 14 WHEN + 26 THEN + - 19 - + CASE + - COUNT ( * ) WHEN + 16 THEN - - 90 + - 38 WHEN + - COUNT ( * ) * - 99 THEN NULL ELSE - + 95 END END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1586
SELECT 8 / + COUNT ( * )
----
8

query I rowsort
SELECT ALL 26 * + 41 AS col2
----
1066

query II rowsort
SELECT - 64, - 70 col0
----
-64
-70

query I rowsort
SELECT 53 * - + 78
----
-4134

query II rowsort
SELECT ALL 18 AS col0, - 20 AS col0
----
18
-20

query I rowsort
SELECT DISTINCT ( + + 48 ) * 31 AS col2
----
1488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1592
SELECT DISTINCT 71 AS col0, NULLIF ( ( + 18 ), + + 42 ) * - - COALESCE ( + - 60, 42, + + COALESCE ( - 97, - 70, - COALESCE ( ( COALESCE ( + 30, - + CAST( + 76 AS SIGNED ), - CAST( NULL AS SIGNED ) ) ), + 99 ) - + 35 * 49 + + + COUNT( * ) ) )
----
71
-1080

skipif mysql # not compatible
query II rowsort label-1592
SELECT DISTINCT 71 AS col0, NULLIF ( ( + 18 ), + + 42 ) * - - COALESCE ( + - 60, 42, + + COALESCE ( - 97, - 70, - COALESCE ( ( COALESCE ( + 30, - + CAST ( + 76 AS INTEGER ), - CAST ( NULL AS INTEGER ) ) ), + 99 ) - + 35 * 49 + + + COUNT ( * ) ) )
----
71
-1080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1593
SELECT ALL + 33 + CAST( + + 60 AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL + 33 + CAST ( + + 60 AS INTEGER )
----
93

query I rowsort
SELECT ALL - 53 + - 3 * - 53
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-1595
SELECT DISTINCT 40 + CASE - 86 WHEN - 35 - + 48 THEN NULL ELSE + COUNT( * ) * - - 69 + + - 16 - + + 90 END + - CASE - 85 WHEN 98 * + - 63 THEN NULL ELSE - + 9 END, 55 + - 29 col1
----
12
26

skipif mysql # not compatible
query II rowsort label-1595
SELECT DISTINCT 40 + CASE - 86 WHEN - 35 - + 48 THEN NULL ELSE + COUNT ( * ) * - - 69 + + - 16 - + + 90 END + - CASE - 85 WHEN 98 * + - 63 THEN NULL ELSE - + 9 END, 55 + - 29 col1
----
12
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT DISTINCT + SUM( ALL 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT + SUM ( ALL 34 ) AS col2
----
34

query II rowsort
SELECT ALL - - ( + 53 ) + 41 * - + 73 AS col2, - 71
----
-2940
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT 99 + + - 20 + 73 - + - COUNT( * ) * + - 36 - + - 73 * - 71 * + 77 + - 88
----
-399063

skipif mysql # not compatible
query I rowsort label-1598
SELECT 99 + + - 20 + 73 - + - COUNT ( * ) * + - 36 - + - 73 * - 71 * + 77 + - 88
----
-399063

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1600
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 54 * 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1600
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 54 * 32 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT ALL + COUNT( * ) + - - 91 + + - COUNT( * ) * + 12 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL + COUNT ( * ) + - - 91 + + - COUNT ( * ) * + 12 AS col0
----
80

query II rowsort
SELECT ALL - 68 * - 49, 22 AS col1
----
3332
22

query I rowsort
SELECT DISTINCT + 99 - - 43 col2
----
142

query I rowsort
SELECT 68 + + 45
----
113

query II rowsort
SELECT ALL - 27 AS col2, 16 AS col0
----
-27
16

query I rowsort
SELECT 96 * + NULLIF ( - 74, + - 74 + + + 93 ) + 56
----
-7048

query I rowsort
SELECT + 53 * + 19 AS col0
----
1007

query II rowsort
SELECT 22 + 97 AS col2, - 52 * - 3
----
119
156

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1610
SELECT ALL - ( - 20 ) / COUNT( * ) / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL - ( - 20 ) / COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

query I rowsort
SELECT - 33 * - 40
----
1320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1613
SELECT DISTINCT + CAST( - CASE - - 60 WHEN 79 THEN - - 88 * 17 ELSE COUNT( * ) * 61 END AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-1613
SELECT DISTINCT + CAST ( - CASE - - 60 WHEN 79 THEN - - 88 * 17 ELSE COUNT ( * ) * 61 END AS INTEGER )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT DISTINCT - COUNT( * ) * - 8 + + COUNT( * ) - + 98 * - 50 AS col0
----
4909

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT - COUNT ( * ) * - 8 + + COUNT ( * ) - + 98 * - 50 AS col0
----
4909

query I rowsort
SELECT ALL 85 * + COALESCE ( 36, 65, - 94 )
----
3060

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT - 8 + SUM( + 15 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1616
SELECT - 8 + SUM ( + 15 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT + MAX( DISTINCT 70 ) col1
----
70

skipif mysql # not compatible
query I rowsort label-1617
SELECT + MAX ( DISTINCT 70 ) col1
----
70

query I rowsort
SELECT ALL + ( 9 ) + - - 23 * 42 AS col0
----
975

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT ALL - COUNT( DISTINCT - - 8 ) + + - 72 * 0 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL - COUNT ( DISTINCT - - 8 ) + + - 72 * 0 AS col2
----
-1

query I rowsort
SELECT DISTINCT 13 + - 6 * - 51 AS col1
----
319

query I rowsort
SELECT ALL 72 + 15 + + - 8 + - 93 * - - 72 AS col1
----
-6617

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT + COUNT( * ) * + 43 + COUNT( ALL - 32 )
----
44

skipif mysql # not compatible
query I rowsort label-1622
SELECT + COUNT ( * ) * + 43 + COUNT ( ALL - 32 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT + 59 - COALESCE ( + 76, COUNT( * ), - COUNT( * ) )
----
-17

skipif mysql # not compatible
query I rowsort label-1623
SELECT + 59 - COALESCE ( + 76, COUNT ( * ), - COUNT ( * ) )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-1624
SELECT ALL 29 DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL 29 / + 90
----
0

query I rowsort
SELECT + - 58 * + - 22 * + 26 AS col2
----
33176

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT - - COUNT( ALL + 62 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1626
SELECT - - COUNT ( ALL + 62 ) col1
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1628
SELECT DISTINCT 13 * 0 / + 50 - - - CAST( NULL AS SIGNED ) + + MIN( + + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1628
SELECT DISTINCT 13 * 0 / + 50 - - - CAST ( NULL AS INTEGER ) + + MIN ( + + 15 )
----
NULL

query I rowsort
SELECT ALL 18 - 18
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT + - SUM( DISTINCT + 40 ) * - COUNT( DISTINCT - + 67 )
----
40

skipif mysql # not compatible
query I rowsort label-1632
SELECT + - SUM ( DISTINCT + 40 ) * - COUNT ( DISTINCT - + 67 )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1633
SELECT CASE + - 0 WHEN - CAST( NULL AS SIGNED ) THEN + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1633
SELECT CASE + - 0 WHEN - CAST ( NULL AS INTEGER ) THEN + + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1634
SELECT ALL - CASE - 40 WHEN - 70 THEN - 86 + - - CASE + 83 WHEN - 32 THEN NULL ELSE - - COUNT( * ) END + CASE WHEN NOT + 54 IS NOT NULL THEN + 68 ELSE - 52 END * 13 + + - 47 * 75 DIV - - COUNT( * ) ELSE - COUNT( * ) + + 8 * 87 - - 21 + + 49 + + + 40 * - ( COUNT( * ) ) + - 59 * + 23 END, ( - 77 ) * - - ( + + 92 ) col2
----
632
-7084

skipif mysql # not compatible
query II rowsort label-1634
SELECT ALL - CASE - 40 WHEN - 70 THEN - 86 + - - CASE + 83 WHEN - 32 THEN NULL ELSE - - COUNT ( * ) END + CASE WHEN NOT + 54 IS NOT NULL THEN + 68 ELSE - 52 END * 13 + + - 47 * 75 / - - COUNT ( * ) ELSE - COUNT ( * ) + + 8 * 87 - - 21 + + 49 + + + 40 * - ( COUNT ( * ) ) + - 59 * + 23 END, ( - 77 ) * - - ( + + 92 ) col2
----
632
-7084

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1635
SELECT - NULLIF ( - 65, - - 78 ) * + CASE - 5 WHEN + 86 THEN NULL WHEN - ( + 71 ) THEN + 16 * + 22 / - 77 WHEN - - 73 * + COALESCE ( + 78, - 61 * 95 * 52 + MAX( - NULLIF ( 10, - ( ( + 22 ) ) + 46 ) ) + + AVG ( ALL + 74 ) ) THEN - + 33 * - CAST( NULL AS DECIMAL ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1635
SELECT - NULLIF ( - 65, - - 78 ) * + CASE - 5 WHEN + 86 THEN NULL WHEN - ( + 71 ) THEN + 16 * + 22 / - 77 WHEN - - 73 * + COALESCE ( + 78, - 61 * 95 * 52 + MAX ( - NULLIF ( 10, - ( ( + 22 ) ) + 46 ) ) + + AVG ( ALL + 74 ) ) THEN - + 33 * - CAST ( NULL AS REAL ) END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1636
SELECT + ( + 87 ) - + CASE 23 WHEN + COALESCE ( + 60, 75 * + - 7 * 16 ) * + CAST( 66 AS SIGNED ) THEN NULL WHEN + - COUNT( * ) THEN NULL ELSE - 22 * + 62 + + - COUNT( * ) - - 82 END AS col1
----
1370

skipif mysql # not compatible
query I rowsort label-1636
SELECT + ( + 87 ) - + CASE 23 WHEN + COALESCE ( + 60, 75 * + - 7 * 16 ) * + CAST ( 66 AS INTEGER ) THEN NULL WHEN + - COUNT ( * ) THEN NULL ELSE - 22 * + 62 + + - COUNT ( * ) - - 82 END AS col1
----
1370

query I rowsort
SELECT ALL + CASE 51 WHEN + + 51 THEN NULL WHEN 3 + 98 * 37 THEN 68 + 1 + - 69 ELSE + 54 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1638
SELECT ALL 63 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL 63 / + 82
----
0

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

skipif mysql # not compatible
query II rowsort label-1639
SELECT DISTINCT + COUNT ( * ), + 74 AS col2
----
1
74

query I rowsort
SELECT DISTINCT - ( - - ( - NULLIF ( - + 90, + - 50 ) ) ) * - 86 col1
----
7740

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT DISTINCT 98 * + + 49 * + COUNT( + 24 )
----
4802

skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT 98 * + + 49 * + COUNT ( + 24 )
----
4802

query I rowsort
SELECT ALL - 87 * - 9 AS col2
----
783

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1643
SELECT 14 DIV - - 69 - + 79 + COUNT( * ) + + 20
----
-58

skipif mysql # not compatible
query I rowsort label-1643
SELECT 14 / - - 69 - + 79 + COUNT ( * ) + + 20
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1644
SELECT - CAST( NULL AS SIGNED ) * + 76 + - - 51 + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-1644
SELECT - CAST ( NULL AS INTEGER ) * + 76 + - - 51 + 87
----
NULL

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

query I rowsort
SELECT - 79 * + + 39 AS col2
----
-3081

query I rowsort
SELECT DISTINCT + 27 * 30 + + - 10 AS col2
----
800

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1648
SELECT DISTINCT + 75, - 29 + - 69 + + 46 + 63 DIV - MAX( 10 ) AS col0
----
75
-58

skipif mysql # not compatible
query II rowsort label-1648
SELECT DISTINCT + 75, - 29 + - 69 + + 46 + 63 / - MAX ( 10 ) AS col0
----
75
-58

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

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

query I rowsort
SELECT COALESCE ( + 45, - 43 ) AS col0
----
45

query II rowsort
SELECT + 52 * - + 6 + - + 86 AS col1, + 75 AS col1
----
-398
75

onlyif mysql # aggregate syntax: 
query II rowsort label-1652
SELECT 77 AS col1, - COUNT( * ) - + ( + 89 ) + ( - - 95 )
----
77
5

skipif mysql # not compatible
query II rowsort label-1652
SELECT 77 AS col1, - COUNT ( * ) - + ( + 89 ) + ( - - 95 )
----
77
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1653
SELECT ALL - COUNT( * ) AS col0, 53
----
-1
53

skipif mysql # not compatible
query II rowsort label-1653
SELECT ALL - COUNT ( * ) AS col0, 53
----
-1
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT ALL 90 - - COUNT( * ) + - + 94 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL 90 - - COUNT ( * ) + - + 94 AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1655
SELECT + CASE - 47 WHEN + 97 * + 65 THEN CAST( NULL AS SIGNED ) * 17 ELSE NULL END * + + 10 + + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1655
SELECT + CASE - 47 WHEN + 97 * + 65 THEN CAST ( NULL AS INTEGER ) * 17 ELSE NULL END * + + 10 + + 8 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1656
SELECT DISTINCT COUNT ( * ) / 14
----
0

query I rowsort
SELECT + + 85 * + 60 AS col1
----
5100

query I rowsort
SELECT + 35 + - 49 + - 81 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT - 48 + 29 + + NULLIF ( 32, 67 * + - 20 * 73 + COUNT( * ) ) + ( - + 87 ) + - 59 AS col1
----
-133

skipif mysql # not compatible
query I rowsort label-1659
SELECT - 48 + 29 + + NULLIF ( 32, 67 * + - 20 * 73 + COUNT ( * ) ) + ( - + 87 ) + - 59 AS col1
----
-133

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT ALL 63 * - MAX( ALL + 74 ) AS col0
----
-4662

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL 63 * - MAX ( ALL + 74 ) AS col0
----
-4662

query I rowsort
SELECT DISTINCT 22 * + 62
----
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT DISTINCT SUM( DISTINCT 39 ) * + 97
----
3783

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT SUM ( DISTINCT 39 ) * + 97
----
3783

onlyif mysql # aggregate syntax: 
query II rowsort label-1664
SELECT DISTINCT 74 + - + 87, SUM( 1 ) + + + 10 + - 81 + COUNT( * ) * + 30 * - + 30 + 77 col0
----
-13
-893

skipif mysql # not compatible
query II rowsort label-1664
SELECT DISTINCT 74 + - + 87, SUM ( 1 ) + + + 10 + - 81 + COUNT ( * ) * + 30 * - + 30 + 77 col0
----
-13
-893

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

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

query I rowsort
SELECT 47 + - 66 * + 85 col0
----
-5563

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1667
SELECT DISTINCT ( 32 ) + + + COUNT( * ) + + 70 col1, CAST( - + COUNT( * ) AS SIGNED ) / + - CASE - 26 WHEN COUNT( * ) THEN NULL WHEN 36 / - 91 THEN - - CASE - + 48 WHEN 1 * 78 THEN - 36 * + NULLIF ( + + 46, + + ( + 40 ) ) ELSE 11 * - 28 + - 22 + - - 37 END END + + + 38
----
103
NULL

skipif mysql # not compatible
query II rowsort label-1667
SELECT DISTINCT ( 32 ) + + + COUNT ( * ) + + 70 col1, CAST ( - + COUNT ( * ) AS INTEGER ) / + - CASE - 26 WHEN COUNT ( * ) THEN NULL WHEN 36 / - 91 THEN - - CASE - + 48 WHEN 1 * 78 THEN - 36 * + NULLIF ( + + 46, + + ( + 40 ) ) ELSE 11 * - 28 + - 22 + - - 37 END END + + + 38
----
103
NULL

query I rowsort
SELECT ALL - 92 + 83 col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1669
SELECT ALL + 20 + + - CASE + - COUNT( * ) WHEN + + 31 * + + 94 THEN - - COALESCE ( + 21, + 42 * - 65, - 97 / 29 ) * + 15 * - + ( CAST( NULL AS SIGNED ) ) * + 95 + - + 18 + + 2 + 28 * - + ( + + MIN( - 73 ) ) + + + COUNT( * ) END + - CASE - 33 WHEN 18 + + 99 THEN + + 6 + CAST( NULL AS SIGNED ) / - 96 WHEN 56 THEN NULL WHEN + 48 THEN NULL ELSE + 37 * - 63 END * - COUNT( * ) + 48 * 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL + 20 + + - CASE + - COUNT ( * ) WHEN + + 31 * + + 94 THEN - - COALESCE ( + 21, + 42 * - 65, - 97 / 29 ) * + 15 * - + ( CAST ( NULL AS INTEGER ) ) * + 95 + - + 18 + + 2 + 28 * - + ( + + MIN ( - 73 ) ) + + + COUNT ( * ) END + - CASE - 33 WHEN 18 + + 99 THEN + + 6 + CAST ( NULL AS INTEGER ) / - 96 WHEN 56 THEN NULL WHEN + 48 THEN NULL ELSE + 37 * - 63 END * - COUNT ( * ) + 48 * 47 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( - 24 ) + - 41 - + - 90 + + 79 - + 19 * 93 col1
----
-1663

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT DISTINCT - 75 + - COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-1671
SELECT DISTINCT - 75 + - COUNT ( * ) AS col2
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-1672
SELECT ALL + 21 + + 34 DIV - 58 * - ( 91 ) * + 50 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL + 21 + + 34 / - 58 * - ( 91 ) * + 50 AS col2
----
21

query I rowsort
SELECT 74 - + 4 col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT ALL - MAX( + + ( 67 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL - MAX ( + + ( 67 ) )
----
-67

query II rowsort
SELECT 51 * 98 col0, 59 + + 54
----
4998
113

onlyif mysql # DIV for integer division: 
query I rowsort label-1676
SELECT ALL + 69 DIV - 61 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL + 69 / - 61 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1677
SELECT ALL + 78 * - CAST( NULL AS SIGNED ) * - COALESCE ( + + COALESCE ( - 91, + + 27 ), ( + 29 ) - + 81, + + 31 / 24 * + 54, - - COUNT( * ) ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL + 78 * - CAST ( NULL AS INTEGER ) * - COALESCE ( + + COALESCE ( - 91, + + 27 ), ( + 29 ) - + 81, + + 31 / 24 * + 54, - - COUNT ( * ) ) - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 24 * 29
----
-696

query I rowsort
SELECT 12 * - + 82 - 83 AS col2
----
-1067

query I rowsort
SELECT ALL + 17 * - 48
----
-816

query I rowsort
SELECT DISTINCT + 84 * 4
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT 92 * + 80 * + COUNT( * ) * COALESCE ( + ( - 23 ), + ( - MIN( - 87 ) ), 54 ) AS col1
----
-169280

skipif mysql # not compatible
query I rowsort label-1682
SELECT 92 * + 80 * + COUNT ( * ) * COALESCE ( + ( - 23 ), + ( - MIN ( - 87 ) ), 54 ) AS col1
----
-169280

query I rowsort
SELECT ALL + 68 + - - 44
----
112

query II rowsort
SELECT DISTINCT 24 AS col1, 58
----
24
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1685
SELECT DISTINCT ( 29 ) * - COUNT( * ), 31 AS col1
----
-29
31

skipif mysql # not compatible
query II rowsort label-1685
SELECT DISTINCT ( 29 ) * - COUNT ( * ), 31 AS col1
----
-29
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1686
SELECT DISTINCT + CASE + 75 WHEN - NULLIF ( COUNT( * ), + 62 / 51 + - CASE - NULLIF ( + 33, COALESCE ( 2, - 52 ) ) WHEN + ( AVG ( DISTINCT - + 85 ) ) THEN + + COUNT( * ) * + - 96 END + - - 99 ) THEN NULL WHEN + NULLIF ( COUNT( * ), + 59 ) * 5 THEN - 4 END + - - NULLIF ( - 79, - + 20 ) + + + COALESCE ( - AVG ( + + 36 ), + 15, + 92 * - - 54 - - SUM( - CAST( NULL AS SIGNED ) ) * + 50 * - 69 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1686
SELECT DISTINCT + CASE + 75 WHEN - NULLIF ( COUNT ( * ), + 62 / 51 + - CASE - NULLIF ( + 33, COALESCE ( 2, - 52 ) ) WHEN + ( AVG ( DISTINCT - + 85 ) ) THEN + + COUNT ( * ) * + - 96 END + - - 99 ) THEN NULL WHEN + NULLIF ( COUNT ( * ), + 59 ) * 5 THEN - 4 END + - - NULLIF ( - 79, - + 20 ) + + + COALESCE ( - AVG ( + + 36 ), + 15, + 92 * - - 54 - - SUM ( - CAST ( NULL AS INTEGER ) ) * + 50 * - 69 ) col1
----
NULL

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

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

query I rowsort
SELECT ( + 56 ) * 37
----
2072

query I rowsort
SELECT ALL ( - - 79 ) + 81
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT - MIN( DISTINCT 26 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-1690
SELECT - MIN ( DISTINCT 26 ) AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1691
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) + + + 85 + - - 2 + ( 0 ) * + - 46 col1
----
86

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) + + + 85 + - - 2 + ( 0 ) * + - 46 col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT DISTINCT 14 * - 6 * + COUNT( * ) + 22 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT 14 * - 6 * + COUNT ( * ) + 22 AS col1
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1693
SELECT ALL SUM( - - 8 ) * + 14 - + + 72 + - 24 + - 18 * - + 33 DIV - + COUNT( * ) AS col0
----
-578

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL SUM ( - - 8 ) * + 14 - + + 72 + - 24 + - 18 * - + 33 / - + COUNT ( * ) AS col0
----
-578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1694
SELECT ALL - 6 * 39 + - CAST( - COUNT( * ) AS SIGNED )
----
-233

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL - 6 * 39 + - CAST ( - COUNT ( * ) AS INTEGER )
----
-233

onlyif mysql # DIV for integer division: 
query I rowsort label-1695
SELECT DISTINCT - 79 DIV - ( + 3 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT - 79 / - ( + 3 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT COUNT( * ) + + 81 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-1696
SELECT COUNT ( * ) + + 81 AS col1
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1697
SELECT + 7 DIV + 93 - + - 42 + - COUNT( * ) + + 3
----
44

skipif mysql # not compatible
query I rowsort label-1697
SELECT + 7 / + 93 - + - 42 + - COUNT ( * ) + + 3
----
44

query I rowsort
SELECT 72 - 45 AS col2
----
27

query I rowsort
SELECT ALL 96 - 69 + - - 88
----
115

query I rowsort
SELECT + ( - 95 ) * + 56 + + 15
----
-5305

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

skipif mysql # not compatible
query I rowsort label-1701
SELECT 87 * + + COUNT ( * ) * - 0 * 82 AS col1
----
0

query II rowsort
SELECT DISTINCT - COALESCE ( - - 77, - 85 ), + 65 * 3 * - + 78 col0
----
-77
-15210

query I rowsort
SELECT ALL + 65 - + - CASE WHEN - 87 = NULL THEN + 47 * - 72 + + - 79 + 86 * - ( ( - - 41 ) ) ELSE + + 1 END AS col1
----
66

query I rowsort
SELECT + 5 + - + 66 * 76 * 41
----
-205651

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT + 14 * - MIN( - 1 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-1705
SELECT + 14 * - MIN ( - 1 ) AS col0
----
14

query I rowsort
SELECT ALL 84 * - 16 + - 47 + 63 * - 17 AS col1
----
-2462

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

query I rowsort
SELECT ALL 11 * 43 AS col1
----
473

query I rowsort
SELECT - 81 * 67 AS col0
----
-5427

query I rowsort
SELECT + 3 + - 4 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1711
SELECT - + ( - ( + 3 ) ) DIV + - 42
----
0

skipif mysql # not compatible
query I rowsort label-1711
SELECT - + ( - ( + 3 ) ) / + - 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT ALL + NULLIF ( - MIN( ALL 59 ), + ( + + 49 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL + NULLIF ( - MIN ( ALL 59 ), + ( + + 49 ) )
----
-59

query II rowsort
SELECT ALL 21, + 0 AS col2
----
21
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT ALL - - 74 * - + MIN( DISTINCT - + ( - + 83 ) )
----
-6142

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL - - 74 * - + MIN ( DISTINCT - + ( - + 83 ) )
----
-6142

onlyif mysql # aggregate syntax: 
query II rowsort label-1715
SELECT - + 2 / - + CASE 8 WHEN - 93 THEN - COUNT( * ) ELSE NULL END AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1715
SELECT - + 2 / - + CASE 8 WHEN - 93 THEN - COUNT ( * ) ELSE NULL END AS col1, COUNT ( * )
----
NULL
1

query I rowsort
SELECT ALL - 97 + - - 70 AS col1
----
-27

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

skipif mysql # not compatible
query I rowsort label-1717
SELECT DISTINCT + 39 + - ( - + COUNT ( * ) ) AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1718
SELECT DISTINCT - CAST( + 42 AS SIGNED ) * - 42 * ( + 43 )
----
75852

skipif mysql # not compatible
query I rowsort label-1718
SELECT DISTINCT - CAST ( + 42 AS INTEGER ) * - 42 * ( + 43 )
----
75852

query I rowsort
SELECT + ( - 66 ) + + - 2
----
-68

query I rowsort
SELECT ALL + 82 + + 28 * + NULLIF ( - - 6, - 4 ) + 33 col2
----
283

query I rowsort
SELECT - 4 + - 73 - + - 74 + + CASE + - 98 WHEN + 42 THEN + 82 END col1
----
NULL

query I rowsort
SELECT - 15 + + 22 * 47 * - 45 + 37
----
-46508

query I rowsort
SELECT DISTINCT COALESCE ( - 71, - + 23 * + 10 - 68 ) col2
----
-71

query I rowsort
SELECT - 92 + + 84
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT - MIN( DISTINCT - - 10 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-1725
SELECT - MIN ( DISTINCT - - 10 ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT - 68 + MAX( 13 ) + - - 70 * 9
----
575

skipif mysql # not compatible
query I rowsort label-1726
SELECT - 68 + MAX ( 13 ) + - - 70 * 9
----
575

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

skipif mysql # not compatible
query II rowsort label-1727
SELECT DISTINCT COUNT ( * ) AS col0, - 66 AS col2
----
1
-66

query I rowsort
SELECT ALL COALESCE ( + 86, - 92 ) AS col0
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1729
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - - - 27 - - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-1729
SELECT DISTINCT + CAST ( NULL AS REAL ) - - - 27 - - 84
----
NULL

query I rowsort
SELECT DISTINCT + ( + 68 ) * 61 + + 65 + + 72 * 43 - + + 46 + ( - 9 )
----
7254

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT ALL - 46 * + - NULLIF ( - COUNT( * ), 96 ) - + 69
----
-115

skipif mysql # not compatible
query I rowsort label-1731
SELECT ALL - 46 * + - NULLIF ( - COUNT ( * ), 96 ) - + 69
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT ALL + COALESCE ( - 41, + COUNT( * ) ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL + COALESCE ( - 41, + COUNT ( * ) ) AS col0
----
-41

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1734
SELECT + CASE + 33 WHEN + 93 * COUNT( * ) THEN CAST( - 56 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1734
SELECT + CASE + 33 WHEN + 93 * COUNT ( * ) THEN CAST ( - 56 AS INTEGER ) END
----
NULL

query I rowsort
SELECT + 84 * + 30 AS col2
----
2520

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT ALL + NULLIF ( + 22, 19 * + 86 + + 45 ) * + COUNT( * ) - 98 - + COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-1737
SELECT ALL + NULLIF ( + 22, 19 * + 86 + + 45 ) * + COUNT ( * ) - 98 - + COUNT ( * ) AS col1
----
-77

query I rowsort
SELECT DISTINCT - 3 * - - 6 AS col2
----
-18

query I rowsort
SELECT ALL 68 * 81
----
5508

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT ALL 73 * SUM( DISTINCT 64 )
----
4672

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL 73 * SUM ( DISTINCT 64 )
----
4672

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT + COUNT( * ) * - 49 * + 50 AS col2
----
-2450

skipif mysql # not compatible
query I rowsort label-1741
SELECT + COUNT ( * ) * - 49 * + 50 AS col2
----
-2450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1742
SELECT + COUNT( * ) * + COUNT( * ) - CASE - ( + 88 ) WHEN 46 + - + 78 THEN NULL ELSE + 46 END + - 91 * - + 4 + COALESCE ( + ( + 27 ), 43 + + + CASE - + ( + 94 ) WHEN + 95 THEN - - 81 ELSE 76 - - 80 END + 84 - - COUNT( * ) ) DIV - - 40 + + 32
----
351

skipif mysql # not compatible
query I rowsort label-1742
SELECT + COUNT ( * ) * + COUNT ( * ) - CASE - ( + 88 ) WHEN 46 + - + 78 THEN NULL ELSE + 46 END + - 91 * - + 4 + COALESCE ( + ( + 27 ), 43 + + + CASE - + ( + 94 ) WHEN + 95 THEN - - 81 ELSE 76 - - 80 END + 84 - - COUNT ( * ) ) / - - 40 + + 32
----
351

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1744
SELECT + - 42 + - - 14 DIV 82 * + 46 * - + 74 * + CAST( + 76 AS SIGNED ) + + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-1744
SELECT + - 42 + - - 14 / 82 * + 46 * - + 74 * + CAST ( + 76 AS INTEGER ) + + COUNT ( * )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1745
SELECT + + 67 * 69 + COALESCE ( + 52, - 56 * CAST( + 5 AS SIGNED ) + - + ( + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) ) + + 35 + - 43 DIV CAST( NULL AS SIGNED ) ) AS col1
----
4675

skipif mysql # not compatible
query I rowsort label-1745
SELECT + + 67 * 69 + COALESCE ( + 52, - 56 * CAST ( + 5 AS INTEGER ) + - + ( + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) + + 35 + - 43 / CAST ( NULL AS INTEGER ) ) AS col1
----
4675

onlyif mysql # aggregate syntax: 
query II rowsort label-1746
SELECT + + 49 AS col2, - 40 + 72 * + COUNT( * ) AS col1
----
49
32

skipif mysql # not compatible
query II rowsort label-1746
SELECT + + 49 AS col2, - 40 + 72 * + COUNT ( * ) AS col1
----
49
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT DISTINCT - 88 * + - ( - COUNT( * ) ) + + - 62 + 13
----
-137

skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT - 88 * + - ( - COUNT ( * ) ) + + - 62 + 13
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1748
SELECT + 39 * + SUM( DISTINCT - 27 ) * - CAST( + 3 AS SIGNED ) - 87 col1
----
3072

skipif mysql # not compatible
query I rowsort label-1748
SELECT + 39 * + SUM ( DISTINCT - 27 ) * - CAST ( + 3 AS INTEGER ) - 87 col1
----
3072

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

skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT + COALESCE ( COUNT ( * ), + COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT ALL + - MAX( - - 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL + - MAX ( - - 19 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT DISTINCT + + CASE + 22 WHEN 46 * - ( + 79 ) * - 11 + 41 + + 14 THEN - 19 WHEN - 92 * + 69 + + 82 + - + 32 * + COUNT( * ) THEN NULL ELSE NULL END * 12 + 88 * 53 + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT + + CASE + 22 WHEN 46 * - ( + 79 ) * - 11 + 41 + + 14 THEN - 19 WHEN - 92 * + 69 + + 82 + - + 32 * + COUNT ( * ) THEN NULL ELSE NULL END * 12 + 88 * 53 + - 25
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT + - NULLIF ( + MAX( ( NULLIF ( - + 23, 76 * 48 ) ) ), + SUM( - - 71 ) * - MAX( + 43 ) - - COUNT( * ) + - ( - 35 ) * + + NULLIF ( - MIN( ALL - 28 ), 97 / NULLIF ( + 57, - + AVG ( 53 ) ) - - 4 * + + 45 * - ( 12 ) ) ) * - + 27 * + 25 AS col2
----
-15525

skipif mysql # not compatible
query I rowsort label-1753
SELECT + - NULLIF ( + MAX ( ( NULLIF ( - + 23, 76 * 48 ) ) ), + SUM ( - - 71 ) * - MAX ( + 43 ) - - COUNT ( * ) + - ( - 35 ) * + + NULLIF ( - MIN ( ALL - 28 ), 97 / NULLIF ( + 57, - + AVG ( 53 ) ) - - 4 * + + 45 * - ( 12 ) ) ) * - + 27 * + 25 AS col2
----
-15525

query I rowsort
SELECT - - 40 + - 23
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT DISTINCT - 16 * - COUNT( * ) * - 20 + + - 24 + + 18 AS col2
----
-326

skipif mysql # not compatible
query I rowsort label-1755
SELECT DISTINCT - 16 * - COUNT ( * ) * - 20 + + - 24 + + 18 AS col2
----
-326

query II rowsort
SELECT ALL + 65, + 15 AS col1
----
65
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT DISTINCT ( MAX( + + 31 ) ) * - 53 + - 39
----
-1682

skipif mysql # not compatible
query I rowsort label-1757
SELECT DISTINCT ( MAX ( + + 31 ) ) * - 53 + - 39
----
-1682

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

skipif mysql # not compatible
query I rowsort label-1758
SELECT MAX ( + CAST ( + + 48 AS INTEGER ) ) AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1759
SELECT ALL - CAST( NULL AS SIGNED ) + - - 20 col2, 66 * - 6 + - 17 * + COUNT( * ) * + 94
----
NULL
-1994

skipif mysql # not compatible
query II rowsort label-1759
SELECT ALL - CAST ( NULL AS INTEGER ) + - - 20 col2, 66 * - 6 + - 17 * + COUNT ( * ) * + 94
----
NULL
-1994

onlyif mysql # aggregate syntax: 
query II rowsort label-1760
SELECT + 92 * - SUM( DISTINCT + 83 ) AS col2, 84 * + 68 + COUNT( * )
----
-7636
5713

skipif mysql # not compatible
query II rowsort label-1760
SELECT + 92 * - SUM ( DISTINCT + 83 ) AS col2, 84 * + 68 + COUNT ( * )
----
-7636
5713

query I rowsort
SELECT + 68 * 80 AS col1
----
5440

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT ALL 50 + - + ( COUNT( * ) )
----
49

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL 50 + - + ( COUNT ( * ) )
----
49

query I rowsort
SELECT - 62 * - 91
----
5642

onlyif mysql # aggregate syntax: 
query II rowsort label-1764
SELECT DISTINCT - 79 * - 82 AS col2, 72 * - 38 + - ( + 4 ) - - COUNT( * ) * + 91 + + COUNT( * ) * + COUNT( * )
----
6478
-2648

skipif mysql # not compatible
query II rowsort label-1764
SELECT DISTINCT - 79 * - 82 AS col2, 72 * - 38 + - ( + 4 ) - - COUNT ( * ) * + 91 + + COUNT ( * ) * + COUNT ( * )
----
6478
-2648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1765
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1765
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + + 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT ALL CASE 17 WHEN + - ( COUNT( * ) ) - + - 51 THEN 14 * - - 68 + - 41 WHEN 49 THEN - 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL CASE 17 WHEN + - ( COUNT ( * ) ) - + - 51 THEN 14 * - - 68 + - 41 WHEN 49 THEN - 5 END
----
NULL

query I rowsort
SELECT + 26 * + 34 AS col0
----
884

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1768
SELECT - 2 - 57 / - - 24 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1768
SELECT - 2 - 57 / - - 24 - + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 8 * - 5 AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1770
SELECT ALL CAST( ( - 86 ) AS SIGNED ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-1770
SELECT ALL CAST ( ( - 86 ) AS INTEGER ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT ALL - COUNT( * ) * - 84 * 96 * - 38
----
-306432

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL - COUNT ( * ) * - 84 * 96 * - 38
----
-306432

query I rowsort
SELECT DISTINCT + NULLIF ( - 19, - NULLIF ( - 51, - - 53 ) / 13 ) AS col0
----
-19

query I rowsort
SELECT DISTINCT - 17 * - + 60 col2
----
1020

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1774
SELECT ALL + NULLIF ( 65, 73 ), COUNT( * ) * - - 71 + + MAX( ALL - + 91 ) + + + 71 - + - 20 DIV 77 * COUNT( * ) col0
----
65
51

skipif mysql # not compatible
query II rowsort label-1774
SELECT ALL + NULLIF ( 65, 73 ), COUNT ( * ) * - - 71 + + MAX ( ALL - + 91 ) + + + 71 - + - 20 / 77 * COUNT ( * ) col0
----
65
51

query I rowsort
SELECT - 87 * + 29 * - 81
----
204363

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT - ( - - 12 ) * + COUNT( * ) * + 52 + + + 12 - - 12
----
-600

skipif mysql # not compatible
query I rowsort label-1776
SELECT - ( - - 12 ) * + COUNT ( * ) * + 52 + + + 12 - - 12
----
-600

query I rowsort
SELECT - - 51 * + 64 AS col1
----
3264

onlyif mysql # DIV for integer division: 
query I rowsort label-1778
SELECT - 40 + - + 49 DIV 52 * - + 87 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-1778
SELECT - 40 + - + 49 / 52 * - + 87 AS col0
----
-40

query II rowsort
SELECT + - 87 - 67 AS col1, 55 AS col1
----
-154
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT + CASE - 17 WHEN + 85 + + + COALESCE ( - 31, - 66 ) - - COUNT( * ) THEN + 5 WHEN - - 29 + + + COUNT( * ) / + + 33 * - AVG ( - 79 ) * + 93 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1780
SELECT + CASE - 17 WHEN + 85 + + + COALESCE ( - 31, - 66 ) - - COUNT ( * ) THEN + 5 WHEN - - 29 + + + COUNT ( * ) / + + 33 * - AVG ( - 79 ) * + 93 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1781
SELECT DISTINCT + MIN( 36 ) DIV + COUNT( * ) + + - 80 + - 69 * - - 31 col1
----
-2183

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT + MIN ( 36 ) / + COUNT ( * ) + + - 80 + - 69 * - - 31 col1
----
-2183

query I rowsort
SELECT ALL + 32 + - 60 * - 35
----
2132

query I rowsort
SELECT + + 84 * - 96 + - 37 AS col0
----
-8101

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT DISTINCT - - COUNT( * ) + - 87
----
-86

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT - - COUNT ( * ) + - 87
----
-86

query II rowsort
SELECT ALL - + 65 + + 36 AS col2, 82 col1
----
-29
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT ALL + - NULLIF ( + 33, - AVG ( ALL - + 64 ) ) + + ( - 77 ) + + COUNT( * )
----
-109

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL + - NULLIF ( + 33, - AVG ( ALL - + 64 ) ) + + ( - 77 ) + + COUNT ( * )
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT DISTINCT - + SUM( 0 ) + - 14 + 45 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-1787
SELECT DISTINCT - + SUM ( 0 ) + - 14 + 45 AS col2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1788
SELECT + ( - COUNT( * ) ) DIV - COUNT( * ) + + - 94
----
-93

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1789
SELECT COUNT( * ) * 88 + - ( - 42 ) DIV + 38 + - 20
----
69

skipif mysql # not compatible
query I rowsort label-1789
SELECT COUNT ( * ) * 88 + - ( - 42 ) / + 38 + - 20
----
69

query I rowsort
SELECT 21 * - - 61
----
1281

query I rowsort
SELECT 27 + 42 * - 28
----
-1149

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT DISTINCT 80 - + + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT 80 - + + COUNT ( * )
----
79

query II rowsort
SELECT ( 95 ) + 57 AS col2, 23 col2
----
152
23

query I rowsort
SELECT DISTINCT 9 - - 46
----
55

query I rowsort
SELECT ALL - 93 * + + 48 AS col1
----
-4464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1796
SELECT MAX( DISTINCT + + ( - + 74 ) ) + + 28 DIV - 95
----
-74

skipif mysql # not compatible
query I rowsort label-1796
SELECT MAX ( DISTINCT + + ( - + 74 ) ) + + 28 / - 95
----
-74

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

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

query I rowsort
SELECT ALL 97 * - 48 AS col2
----
-4656

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT ALL 84 - + COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL 84 - + COUNT ( * ) AS col2
----
83

query I rowsort
SELECT ALL NULLIF ( - 91, 67 + + 60 ) * ( 68 ) * + 45
----
-278460

onlyif mysql # DIV for integer division: 
query I rowsort label-1801
SELECT ALL + 57 DIV - 58 col2
----
0

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL + 57 / - 58 col2
----
0

query II rowsort
SELECT DISTINCT 60, - 36 * + 33 AS col1
----
60
-1188

query II rowsort
SELECT DISTINCT 63, + 64 AS col1
----
63
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1804
SELECT 81 DIV - 57
----
-1

skipif mysql # not compatible
query I rowsort label-1804
SELECT 81 / - 57
----
-1

query I rowsort
SELECT ALL + 31 * - - 7 * 33
----
7161

query I rowsort
SELECT 87 + + - 67
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1807
SELECT ALL 31 DIV + 67 * + - 89
----
0

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL 31 / + 67 * + - 89
----
0

query I rowsort
SELECT DISTINCT + 53 * + - 23 * + - 68 * - - 49 AS col0
----
4061708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1809
SELECT ALL + + COUNT( * ) + + 16 + - CASE - 60 WHEN + - 63 THEN COUNT( * ) * + COUNT( ALL + - 29 ) WHEN + 64 * - - 31 THEN NULL WHEN MIN( - 75 ) + - + 82 THEN - - 95 * + - 64 - - 98 END + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL + + COUNT ( * ) + + 16 + - CASE - 60 WHEN + - 63 THEN COUNT ( * ) * + COUNT ( ALL + - 29 ) WHEN + 64 * - - 31 THEN NULL WHEN MIN ( - 75 ) + - + 82 THEN - - 95 * + - 64 - - 98 END + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 56 + - 39 AS col0
----
17

query I rowsort
SELECT ALL - - 30 * - NULLIF ( + ( - 96 ), - 44 )
----
2880

query I rowsort
SELECT DISTINCT + 34 + + 58 AS col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1813
SELECT + + 20 AS col1, - 4 * + 8 * - + COUNT( * ) * - + 63 * + + CASE 67 WHEN - - COUNT( * ) THEN NULL WHEN CASE - MIN( ALL - 7 ) WHEN - ( - + CASE - + 85 WHEN - + 68 THEN + 15 END ) THEN + MAX( - 56 ) / - + 94 WHEN + 8 THEN NULL ELSE + 74 * - COUNT( * ) + + - 54 + - - 49 + 50 - COUNT( * ) + - COUNT( - CAST( NULL AS SIGNED ) ) * + 86 * CASE - 11 WHEN + 49 THEN - 95 + 64 * + 67 END + + - 21 END THEN NULL ELSE MAX( + + 46 ) * 89 END col1
----
20
-8253504

skipif mysql # not compatible
query II rowsort label-1813
SELECT + + 20 AS col1, - 4 * + 8 * - + COUNT ( * ) * - + 63 * + + CASE 67 WHEN - - COUNT ( * ) THEN NULL WHEN CASE - MIN ( ALL - 7 ) WHEN - ( - + CASE - + 85 WHEN - + 68 THEN + 15 END ) THEN + MAX ( - 56 ) / - + 94 WHEN + 8 THEN NULL ELSE + 74 * - COUNT ( * ) + + - 54 + - - 49 + 50 - COUNT ( * ) + - COUNT ( - CAST ( NULL AS INTEGER ) ) * + 86 * CASE - 11 WHEN + 49 THEN - 95 + 64 * + 67 END + + - 21 END THEN NULL ELSE MAX ( + + 46 ) * 89 END col1
----
20
-8253504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1814
SELECT DISTINCT + MAX( DISTINCT 32 ) + + - 86 DIV 23 + 91 + - + 33 * + - 53 + - 49 AS col2
----
1820

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT + MAX ( DISTINCT 32 ) + + - 86 / 23 + 91 + - + 33 * + - 53 + - 49 AS col2
----
1820

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1817
SELECT ALL - + 80, 58 * + SUM( 79 ) + + 96 * CASE 86 WHEN - - 53 + 77 - + 12 * + 85 * + 57 THEN COUNT( * ) END + + 77 + - CAST( NULL AS DECIMAL ) * - 41 AS col0
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-1817
SELECT ALL - + 80, 58 * + SUM ( 79 ) + + 96 * CASE 86 WHEN - - 53 + 77 - + 12 * + 85 * + 57 THEN COUNT ( * ) END + + 77 + - CAST ( NULL AS REAL ) * - 41 AS col0
----
-80
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1818
SELECT DISTINCT - 71 AS col1, - 25 * - MAX( ALL + + 32 )
----
-71
800

skipif mysql # not compatible
query II rowsort label-1818
SELECT DISTINCT - 71 AS col1, - 25 * - MAX ( ALL + + 32 )
----
-71
800

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT + 80 * + 38 + COUNT( * )
----
3041

skipif mysql # not compatible
query I rowsort label-1819
SELECT + 80 * + 38 + COUNT ( * )
----
3041

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

skipif mysql # not compatible
query I rowsort label-1820
SELECT + COUNT ( * ) * 6 / + 33
----
0

query I rowsort
SELECT ALL + 18 + - 55
----
-37

query I rowsort
SELECT ALL - 60 + - 10 + - 70 * + + 62
----
-4410

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT ALL + + 88 - + COUNT( ALL - 39 ) * + 89 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL + + 88 - + COUNT ( ALL - 39 ) * + 89 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1825
SELECT - COUNT( ALL 69 ) - - 9 DIV - - 29, 25 AS col0
----
-1
25

skipif mysql # not compatible
query II rowsort label-1825
SELECT - COUNT ( ALL 69 ) - - 9 / - - 29, 25 AS col0
----
-1
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1826
SELECT ALL 30 * + + 67 / CASE - CAST( - COUNT( * ) AS SIGNED ) WHEN SUM( ALL - 23 ) + 38 THEN NULL WHEN - 64 * + 69 THEN NULL ELSE - - 42 + + MAX( DISTINCT 81 ) * + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL 30 * + + 67 / CASE - CAST ( - COUNT ( * ) AS INTEGER ) WHEN SUM ( ALL - 23 ) + 38 THEN NULL WHEN - 64 * + 69 THEN NULL ELSE - - 42 + + MAX ( DISTINCT 81 ) * + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT ALL + 58 DIV 4
----
14

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL + 58 / 4
----
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT DISTINCT 98 * - SUM( 97 ) AS col2
----
-9506

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT 98 * - SUM ( 97 ) AS col2
----
-9506

query I rowsort
SELECT ALL + 6 - 86 * 68
----
-5842

query I rowsort
SELECT + 10 * + + NULLIF ( - 26, + 14 + + 57 ) + 46
----
-214

query I rowsort
SELECT ALL - 34 * + 13
----
-442

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT COUNT( * ) * - - 56 * + MAX( DISTINCT - 11 )
----
-616

skipif mysql # not compatible
query I rowsort label-1834
SELECT COUNT ( * ) * - - 56 * + MAX ( DISTINCT - 11 )
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT ( + + COUNT( * ) ) * - + 54 col1
----
-54

skipif mysql # not compatible
query I rowsort label-1835
SELECT ( + + COUNT ( * ) ) * - + 54 col1
----
-54

query I rowsort
SELECT 46 * + - 96
----
-4416

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

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

query I rowsort
SELECT ALL 26 * + NULLIF ( + 49, + + 59 ) AS col0
----
1274

query I rowsort
SELECT ALL 90 * + 81 AS col0
----
7290

query I rowsort
SELECT ( 22 ) * 28 + + 19 col1
----
635

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT ALL 62 + + 74 + NULLIF ( - 68, - 63 * - 95 + - - SUM( ALL + + ( - 44 ) ) ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL 62 + + 74 + NULLIF ( - 68, - 63 * - 95 + - - SUM ( ALL + + ( - 44 ) ) ) AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1842
SELECT - 5 DIV - - 51 + SUM( + + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-1842
SELECT - 5 / - - 51 + SUM ( + + 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT ALL 89 + COUNT( * ) + + 57 * 2 AS col2
----
204

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL 89 + COUNT ( * ) + + 57 * 2 AS col2
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT + - COUNT( * ) + + MIN( ALL - + 97 )
----
-98

skipif mysql # not compatible
query I rowsort label-1844
SELECT + - COUNT ( * ) + + MIN ( ALL - + 97 )
----
-98

query II rowsort
SELECT - 32 * - 38 + + 7 * - 81 AS col1, - 67 * + 55
----
649
-3685

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT ALL 23 * MAX( - 54 ) + COUNT( * ) + + 63 + - 1 AS col2
----
-1179

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL 23 * MAX ( - 54 ) + COUNT ( * ) + + 63 + - 1 AS col2
----
-1179

onlyif mysql # DIV for integer division: 
query I rowsort label-1847
SELECT + 81 * 37 DIV - + ( 91 )
----
-32

skipif mysql # not compatible
query I rowsort label-1847
SELECT + 81 * 37 / - + ( 91 )
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1848
SELECT + COUNT( * ) DIV + + 55 - - + 74 * 93
----
6882

skipif mysql # not compatible
query I rowsort label-1848
SELECT + COUNT ( * ) / + + 55 - - + 74 * 93
----
6882

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1849
SELECT DISTINCT + 80 DIV ( - + COUNT( * ) ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT + 80 / ( - + COUNT ( * ) ) AS col1
----
-80

query I rowsort
SELECT - 8 - - + 54 - 42 + 0
----
4

query I rowsort
SELECT + 47 * - + 75 + - 38 col0
----
-3563

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1853
SELECT 9 DIV 94 + + 70 + - - COUNT( * ), COALESCE ( - - 6, + SUM( 68 ), + CAST( - 40 AS SIGNED ) ) AS col2
----
71
6

skipif mysql # not compatible
query II rowsort label-1853
SELECT 9 / 94 + + 70 + - - COUNT ( * ), COALESCE ( - - 6, + SUM ( 68 ), + CAST ( - 40 AS INTEGER ) ) AS col2
----
71
6

onlyif mysql # aggregate syntax: 
query II rowsort label-1854
SELECT ALL + + ( + + 49 ) AS col0, - COUNT( DISTINCT - + 9 )
----
49
-1

skipif mysql # not compatible
query II rowsort label-1854
SELECT ALL + + ( + + 49 ) AS col0, - COUNT ( DISTINCT - + 9 )
----
49
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1857
SELECT ALL - - COUNT( + - 17 ) * - 3 - 40 * + - CAST( NULL AS SIGNED ) * + 46 / 43 + + + CAST( NULL AS DECIMAL ) - + 74 AS col0, + MAX( + 5 ) col2
----
NULL
5

skipif mysql # not compatible
query II rowsort label-1857
SELECT ALL - - COUNT ( + - 17 ) * - 3 - 40 * + - CAST ( NULL AS INTEGER ) * + 46 / 43 + + + CAST ( NULL AS REAL ) - + 74 AS col0, + MAX ( + 5 ) col2
----
NULL
5

query I rowsort
SELECT + 9 + - 1 + + 48 AS col1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1859
SELECT ALL + 75 DIV + 74
----
1

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL + 75 / + 74
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1860
SELECT - MAX( 64 ) DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-1860
SELECT - MAX ( 64 ) / + 79
----
0

query II rowsort
SELECT + ( - 45 ) * + 68 AS col2, 82 * - 32 AS col0
----
-3060
-2624

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1863
SELECT DISTINCT + 84 / - 67 * + - MAX( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT + 84 / - 67 * + - MAX ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 48 * + 44
----
2112

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

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

query I rowsort
SELECT DISTINCT - 58 * 54 AS col0
----
-3132

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT + NULLIF ( - 80, + + COALESCE ( COUNT( * ), 68 ) * - 0 ) + 45 + 65 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-1868
SELECT + NULLIF ( - 80, + + COALESCE ( COUNT ( * ), 68 ) * - 0 ) + 45 + 65 AS col0
----
30

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

skipif mysql # not compatible
query II rowsort label-1869
SELECT - COUNT ( * ) col0, 34 AS col0
----
-1
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1870
SELECT ALL - 40 * + CASE + 94 WHEN + 20 THEN 0 - - CAST( NULL AS SIGNED ) - + 4 ELSE 62 END AS col0
----
-2480

skipif mysql # not compatible
query I rowsort label-1870
SELECT ALL - 40 * + CASE + 94 WHEN + 20 THEN 0 - - CAST ( NULL AS INTEGER ) - + 4 ELSE 62 END AS col0
----
-2480

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1871
SELECT - 96 DIV 95 * - COALESCE ( + 1, - 44 * - - 72, - 3 DIV + + 11 ), COUNT( * ) * + - COUNT( ALL 1 ) DIV + 54 * 39 * - + 41 + 43 + - 80 AS col2
----
1
-37

skipif mysql # not compatible
query II rowsort label-1871
SELECT - 96 / 95 * - COALESCE ( + 1, - 44 * - - 72, - 3 / + + 11 ), COUNT ( * ) * + - COUNT ( ALL 1 ) / + 54 * 39 * - + 41 + 43 + - 80 AS col2
----
1
-37

query I rowsort
SELECT + 2 + + 25
----
27

query I rowsort
SELECT ALL - 31 + + 65
----
34

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

query I rowsort
SELECT ALL 84 + - 70 + 91 * - + 49 AS col0
----
-4445

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT + 54 + MAX( ALL - 0 ) - - - 32 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1876
SELECT + 54 + MAX ( ALL - 0 ) - - - 32 AS col1
----
22

query I rowsort
SELECT DISTINCT + 67 + 65
----
132

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT + + 39 + - - 13 + + ( + COALESCE ( + 29, + - COUNT( * ) ) ) + - 64 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-1879
SELECT + + 39 + - - 13 + + ( + COALESCE ( + 29, + - COUNT ( * ) ) ) + - 64 AS col1
----
17

query I rowsort
SELECT ALL + 34 + + + 26 * + 11 * - 70 AS col0
----
-19986

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1881
SELECT DISTINCT 91 + - 24 - - 96 + - 48 + - 70 * + 17 * + 81 * + 44, 4 + + CAST( NULL AS DECIMAL ) + + - 22 + + + CAST( COUNT( ALL - - 4 ) AS DECIMAL ) * + 23 AS col2
----
-4241045
NULL

skipif mysql # not compatible
query II rowsort label-1881
SELECT DISTINCT 91 + - 24 - - 96 + - 48 + - 70 * + 17 * + 81 * + 44, 4 + + CAST ( NULL AS REAL ) + + - 22 + + + CAST ( COUNT ( ALL - - 4 ) AS REAL ) * + 23 AS col2
----
-4241045
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1882
SELECT DISTINCT + 95 * SUM( + CAST( - 57 AS SIGNED ) ) + - ( - - 91 ) AS col0
----
-5506

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT + 95 * SUM ( + CAST ( - 57 AS INTEGER ) ) + - ( - - 91 ) AS col0
----
-5506

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

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

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

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

query I rowsort
SELECT DISTINCT + 51 * 51 - - 2 + + - 93
----
2510

query I rowsort
SELECT + - 13 * + + 46
----
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT + + 7 * - 73 + 45 + + COALESCE ( + - 55, - 11, + COUNT( * ) * + + 93 * + 1 )
----
-521

skipif mysql # not compatible
query I rowsort label-1887
SELECT + + 7 * - 73 + 45 + + COALESCE ( + - 55, - 11, + COUNT ( * ) * + + 93 * + 1 )
----
-521

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1888
SELECT DISTINCT 24 * + COUNT( * ) DIV + 99 * + - 8 + + + 90 + - 82 + - 6 + - + 13 * 29 * - + 85 + COUNT( * ) * - + 3 + 1
----
32045

skipif mysql # not compatible
query I rowsort label-1888
SELECT DISTINCT 24 * + COUNT ( * ) / + 99 * + - 8 + + + 90 + - 82 + - 6 + - + 13 * 29 * - + 85 + COUNT ( * ) * - + 3 + 1
----
32045

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1889
SELECT + 68 + CAST( - + 77 AS SIGNED ) - + 11
----
-20

skipif mysql # not compatible
query I rowsort label-1889
SELECT + 68 + CAST ( - + 77 AS INTEGER ) - + 11
----
-20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1890
SELECT ALL - 27 DIV + - CAST( + 22 AS SIGNED ) - - 57 + - - 24 * + 83
----
2050

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL - 27 / + - CAST ( + 22 AS INTEGER ) - - 57 + - - 24 * + 83
----
2050

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1892
SELECT DISTINCT - 36 DIV + 34
----
-1

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT - 36 / + 34
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1893
SELECT DISTINCT - 19 DIV 22
----
0

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT - 19 / 22
----
0

query I rowsort
SELECT - 20 * + + 55 - - + 85 AS col1
----
-1015

query I rowsort
SELECT + 10 * + NULLIF ( + 15, - 88 )
----
150

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1896
SELECT - 15 + 50 - + - 94 DIV + + 76 AS col1, CAST( NULL AS DECIMAL ) * - 39 + + COUNT( * ) AS col1
----
36
NULL

skipif mysql # not compatible
query II rowsort label-1896
SELECT - 15 + 50 - + - 94 / + + 76 AS col1, CAST ( NULL AS REAL ) * - 39 + + COUNT ( * ) AS col1
----
36
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1897
SELECT ALL + COUNT( * ) AS col1, + CASE - MIN( - 73 ) WHEN + 97 THEN 8 + 21 END * + 50 * MIN( - COALESCE ( + NULLIF ( - 8, + ( - 31 ) ), - 44 - + CASE - 63 WHEN - - 68 * + 26 + + 37 + - 63 - + 75 * 92 THEN - 23 END ) ) * + 52 * + - 33
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1897
SELECT ALL + COUNT ( * ) AS col1, + CASE - MIN ( - 73 ) WHEN + 97 THEN 8 + 21 END * + 50 * MIN ( - COALESCE ( + NULLIF ( - 8, + ( - 31 ) ), - 44 - + CASE - 63 WHEN - - 68 * + 26 + + 37 + - 63 - + 75 * 92 THEN - 23 END ) ) * + 52 * + - 33
----
1
NULL

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

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

query I rowsort
SELECT - 50 * - ( + + 89 )
----
4450

query I rowsort
SELECT ALL 56 * 65 AS col1
----
3640

onlyif mysql # DIV for integer division: 
query I rowsort label-1901
SELECT - 68 DIV + 20
----
-3

skipif mysql # not compatible
query I rowsort label-1901
SELECT - 68 / + 20
----
-3

query I rowsort
SELECT ALL + 71 * 91
----
6461

query II rowsort
SELECT DISTINCT + 62 * + 30 col2, 0
----
1860
0

query I rowsort
SELECT DISTINCT 79 * + + 90 AS col0
----
7110

query II rowsort
SELECT + 96 AS col0, 32 col0
----
96
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1906
SELECT + NULLIF ( - COUNT( * ), + 30 ) * + COUNT( * ) DIV 2
----
0

skipif mysql # not compatible
query I rowsort label-1906
SELECT + NULLIF ( - COUNT ( * ), + 30 ) * + COUNT ( * ) / 2
----
0

query I rowsort
SELECT COALESCE ( 26, 68 + + 23 * - 1 ) AS col2
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1908
SELECT ALL + 99 + - 54 DIV + MAX( ALL + 20 ) col1
----
97

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL + 99 + - 54 / + MAX ( ALL + 20 ) col1
----
97

query II rowsort
SELECT ALL 6, 41 AS col2
----
6
41

query II rowsort
SELECT 8 AS col1, 55 col2
----
8
55

onlyif mysql # aggregate syntax: 
query II rowsort label-1911
SELECT ALL + COUNT( ALL 76 ) + - 7 - - 57 AS col2, - 40
----
51
-40

skipif mysql # not compatible
query II rowsort label-1911
SELECT ALL + COUNT ( ALL 76 ) + - 7 - - 57 AS col2, - 40
----
51
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT ALL 72 + + MIN( - 43 ) - 10
----
19

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL 72 + + MIN ( - 43 ) - 10
----
19

query I rowsort
SELECT ALL - 9 * + 52 * - + 41 AS col0
----
19188

onlyif mysql # DIV for integer division: 
query I rowsort label-1914
SELECT DISTINCT - + 7 DIV + NULLIF ( + 22, 56 ) * 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1914
SELECT DISTINCT - + 7 / + NULLIF ( + 22, 56 ) * 42 AS col1
----
0

query II rowsort
SELECT - 29 AS col0, 21 col1
----
-29
21

query I rowsort
SELECT ALL + 22 - - 87
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1917
SELECT 74 AS col1, SUM( ALL - - 57 ) + + + 89 * COUNT( * ) + - CASE + 50 WHEN - 8 * - 78 + 85 * - CASE + 99 WHEN - 90 THEN 5 END THEN + CAST( NULL AS SIGNED ) ELSE NULL END - + + 61 * - 79 * 30 * 51 AS col1, - + 4 * NULLIF ( 77, - 13 ) + + 40
----
74
NULL
-268

skipif mysql # not compatible
query III rowsort label-1917
SELECT 74 AS col1, SUM ( ALL - - 57 ) + + + 89 * COUNT ( * ) + - CASE + 50 WHEN - 8 * - 78 + 85 * - CASE + 99 WHEN - 90 THEN 5 END THEN + CAST ( NULL AS INTEGER ) ELSE NULL END - + + 61 * - 79 * 30 * 51 AS col1, - + 4 * NULLIF ( 77, - 13 ) + + 40
----
74
NULL
-268

query I rowsort
SELECT 97 - 41
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1919
SELECT DISTINCT 69 DIV - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1919
SELECT DISTINCT 69 / - 78 AS col0
----
0

query I rowsort
SELECT ALL + + 52 - 13 AS col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1921
SELECT 90 + - NULLIF ( - 15, 46 * + AVG ( - CAST( NULL AS SIGNED ) ) + + 99 * 59 ) - - 31 + 3 + - 94 * - 94 + + - 8 * 48
----
8591

skipif mysql # not compatible
query I rowsort label-1921
SELECT 90 + - NULLIF ( - 15, 46 * + AVG ( - CAST ( NULL AS INTEGER ) ) + + 99 * 59 ) - - 31 + 3 + - 94 * - 94 + + - 8 * 48
----
8591

query I rowsort
SELECT - 85 * + 59 * + NULLIF ( + 39, + ( - 14 ) + - 19 ) + - - 6 * + 35
----
-195375

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT ALL 9 * MAX( - 94 )
----
-846

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL 9 * MAX ( - 94 )
----
-846

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

query I rowsort
SELECT 69 + - 99 col0
----
-30

query II rowsort
SELECT DISTINCT - 87 AS col0, 54 * - + 34 * 32 * 2
----
-87
-117504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1927
SELECT ALL + 46 * + 10 + - CASE - 23 WHEN + 12 THEN + + CASE - + 15 WHEN - 94 * + 53 + + ( - + CAST( - 47 AS DECIMAL ) ) THEN 96 + + CAST( NULL AS SIGNED ) WHEN + 61 + - 70 + CAST( + NULLIF ( + 60, + 98 ) AS SIGNED ) THEN + AVG ( DISTINCT + 69 ) * - - COUNT( - ( 47 ) ) / + 95 + - + 59 WHEN - 75 THEN NULL WHEN - 29 THEN NULL ELSE NULL END - - ( + CASE - CASE + 81 WHEN + COALESCE ( + CASE - 35 WHEN - 43 THEN - + COALESCE ( - MIN( + + 18 ), + 47 * 67, + 19 - COUNT( * ) ) - 22 WHEN 72 THEN NULL ELSE - 39 END, COALESCE ( + 65, 36 + AVG ( 26 ), 95 + 87 ), 63 ) + 25 THEN NULL WHEN - COALESCE ( - 37, + MAX( + 80 ) + - SUM( + 63 ), - 10 * - COALESCE ( 31, ( + 31 ) ) ) THEN AVG ( 70 ) END WHEN CAST( ( + COUNT( * ) ) AS SIGNED ) THEN - 6 WHEN 70 THEN NULL ELSE + CASE - 31 WHEN + 51 / 70 THEN - 86 END / - 73 END ) - 36 END * COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL + 46 * + 10 + - CASE - 23 WHEN + 12 THEN + + CASE - + 15 WHEN - 94 * + 53 + + ( - + CAST ( - 47 AS REAL ) ) THEN 96 + + CAST ( NULL AS INTEGER ) WHEN + 61 + - 70 + CAST ( + NULLIF ( + 60, + 98 ) AS INTEGER ) THEN + AVG ( DISTINCT + 69 ) * - - COUNT ( - ( 47 ) ) / + 95 + - + 59 WHEN - 75 THEN NULL WHEN - 29 THEN NULL ELSE NULL END - - ( + CASE - CASE + 81 WHEN + COALESCE ( + CASE - 35 WHEN - 43 THEN - + COALESCE ( - MIN ( + + 18 ), + 47 * 67, + 19 - COUNT ( * ) ) - 22 WHEN 72 THEN NULL ELSE - 39 END, COALESCE ( + 65, 36 + AVG ( 26 ), 95 + 87 ), 63 ) + 25 THEN NULL WHEN - COALESCE ( - 37, + MAX ( + 80 ) + - SUM ( + 63 ), - 10 * - COALESCE ( 31, ( + 31 ) ) ) THEN AVG ( 70 ) END WHEN CAST ( ( + COUNT ( * ) ) AS INTEGER ) THEN - 6 WHEN 70 THEN NULL ELSE + CASE - 31 WHEN + 51 / 70 THEN - 86 END / - 73 END ) - 36 END * COUNT ( * ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1928
SELECT 36 DIV - 76, + 55 AS col0
----
0
55

skipif mysql # not compatible
query II rowsort label-1928
SELECT 36 / - 76, + 55 AS col0
----
0
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT 72 * - COUNT( 19 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-1929
SELECT 72 * - COUNT ( 19 ) AS col2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1930
SELECT + 73 * - 88 / + + 11 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1930
SELECT + 73 * - 88 / + + 11 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 15 * + 65 col2
----
975

query I rowsort
SELECT ALL 74 + + 85 + + - 1 - - 66 AS col0
----
224

query I rowsort
SELECT 56 + - 70 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT 62 * - 60 * - + CASE - + MIN( - + 81 ) WHEN + SUM( DISTINCT - + 71 ) THEN - - 25 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1934
SELECT 62 * - 60 * - + CASE - + MIN ( - + 81 ) WHEN + SUM ( DISTINCT - + 71 ) THEN - - 25 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1935
SELECT ( + 16 ) + - 79 * - + 4 DIV ( 2 ) col1
----
174

skipif mysql # not compatible
query I rowsort label-1935
SELECT ( + 16 ) + - 79 * - + 4 / ( 2 ) col1
----
174

query I rowsort
SELECT ALL 21 + - - 77 AS col1
----
98

query I rowsort
SELECT DISTINCT - COALESCE ( - 39, + ( + 6 ) ) AS col1
----
39

query I rowsort
SELECT DISTINCT 32 + - 79
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1939
SELECT ( + + 98 ) + + CAST( + - 87 AS SIGNED ) col1
----
11

skipif mysql # not compatible
query I rowsort label-1939
SELECT ( + + 98 ) + + CAST ( + - 87 AS INTEGER ) col1
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-1940
SELECT ALL COUNT( * ) + - 32 AS col2, + ( - 53 )
----
-31
-53

skipif mysql # not compatible
query II rowsort label-1940
SELECT ALL COUNT ( * ) + - 32 AS col2, + ( - 53 )
----
-31
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1941
SELECT COUNT( ALL 82 ) + + + NULLIF ( - - CASE CAST( + 9 AS DECIMAL ) WHEN + 40 THEN NULL WHEN - + 21 THEN 62 ELSE NULL END, + 78 ) * + 58 + + CAST( - NULLIF ( - 78, - 9 * + 78 / - 92 + - SUM( - CAST( NULL AS SIGNED ) ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1941
SELECT COUNT ( ALL 82 ) + + + NULLIF ( - - CASE CAST ( + 9 AS REAL ) WHEN + 40 THEN NULL WHEN - + 21 THEN 62 ELSE NULL END, + 78 ) * + 58 + + CAST ( - NULLIF ( - 78, - 9 * + 78 / - 92 + - SUM ( - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1942
SELECT DISTINCT 2 * + - 11 AS col0, - 68 + - + COUNT( * ) col2
----
-22
-69

skipif mysql # not compatible
query II rowsort label-1942
SELECT DISTINCT 2 * + - 11 AS col0, - 68 + - + COUNT ( * ) col2
----
-22
-69

query I rowsort
SELECT ALL 60 * + 26
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT ALL 72 + + - 87 + COUNT( * ) * COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL 72 + + - 87 + COUNT ( * ) * COUNT ( * )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1945
SELECT ALL 24 * ( - - 62 ) * - CASE - 39 WHEN + - CAST( NULL AS SIGNED ) THEN 63 WHEN + 68 / + - 98 + - - 76 THEN - COUNT( * ) + - + 5 END * + 62 * COUNT( * ) + - 32 - + 69 + - ( + 76 ) - + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL 24 * ( - - 62 ) * - CASE - 39 WHEN + - CAST ( NULL AS INTEGER ) THEN 63 WHEN + 68 / + - 98 + - - 76 THEN - COUNT ( * ) + - + 5 END * + 62 * COUNT ( * ) + - 32 - + 69 + - ( + 76 ) - + 55 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 12 * + ( ( + 25 ) ) col0
----
300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1947
SELECT CAST( NULL AS SIGNED ) + - + 92 + CAST( + NULLIF ( ( + - 46 ), + 93 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1947
SELECT CAST ( NULL AS INTEGER ) + - + 92 + CAST ( + NULLIF ( ( + - 46 ), + 93 ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - + 4 - + 29 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT - 0 * NULLIF ( - 82, COALESCE ( + 17, + + COUNT( * ) + - - COUNT( * ) ) ) - + - 80 + 57 AS col2
----
137

skipif mysql # not compatible
query I rowsort label-1949
SELECT - 0 * NULLIF ( - 82, COALESCE ( + 17, + + COUNT ( * ) + - - COUNT ( * ) ) ) - + - 80 + 57 AS col2
----
137

query I rowsort
SELECT + ( - 87 ) * + 33 + + 51
----
-2820

query I rowsort
SELECT 4 * - + 19 AS col2
----
-76

query II rowsort
SELECT ALL - 41 * + 81, + 44 AS col2
----
-3321
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1953
SELECT CAST( - 97 AS SIGNED ) + - SUM( - 49 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-1953
SELECT CAST ( - 97 AS INTEGER ) + - SUM ( - 49 ) AS col1
----
-48

query II rowsort
SELECT ALL - 50 * 75, 15 + 51 AS col2
----
-3750
66

query I rowsort
SELECT - 16 * 75 col2
----
-1200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1956
SELECT DISTINCT - + ( - CAST( 69 AS SIGNED ) ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-1956
SELECT DISTINCT - + ( - CAST ( 69 AS INTEGER ) ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT DISTINCT COUNT( * ) * + 17 * - + COUNT( * ) * - 67 + + 55 AS col1
----
1194

skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT COUNT ( * ) * + 17 * - + COUNT ( * ) * - 67 + + 55 AS col1
----
1194

query I rowsort
SELECT ALL 19 * + 72 + 19
----
1387

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1959
SELECT DISTINCT - ( ( - CASE + ( + 57 ) WHEN + ( + MIN( ALL - + 44 ) ) THEN - CAST( NULL AS DECIMAL ) ELSE NULL END ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1959
SELECT DISTINCT - ( ( - CASE + ( + 57 ) WHEN + ( + MIN ( ALL - + 44 ) ) THEN - CAST ( NULL AS REAL ) ELSE NULL END ) ) col1
----
NULL

query II rowsort
SELECT ALL 87 * - + 24 + 49 AS col1, 32
----
-2039
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1961
SELECT ALL 56 * - + 24 * - 49 + ( 39 ) + COUNT( + 0 ) * - + ( - COUNT( * ) ) + CAST( - 5 AS SIGNED ) AS col1, 45 DIV - COALESCE ( + COUNT( * ), 78 ) + 67 * CASE + + 34 WHEN + 2 + 52 + + - CAST( NULL AS SIGNED ) * - 22 * + + 75 * + COUNT( * ) THEN NULL ELSE - 72 END
----
65891
-4869

skipif mysql # not compatible
query II rowsort label-1961
SELECT ALL 56 * - + 24 * - 49 + ( 39 ) + COUNT ( + 0 ) * - + ( - COUNT ( * ) ) + CAST ( - 5 AS INTEGER ) AS col1, 45 / - COALESCE ( + COUNT ( * ), 78 ) + 67 * CASE + + 34 WHEN + 2 + 52 + + - CAST ( NULL AS INTEGER ) * - 22 * + + 75 * + COUNT ( * ) THEN NULL ELSE - 72 END
----
65891
-4869

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT COALESCE ( + 38, 98 ) * 0 + + SUM( ALL - - 18 ) + - 12 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-1962
SELECT COALESCE ( + 38, 98 ) * 0 + + SUM ( ALL - - 18 ) + - 12 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT 90 * + + NULLIF ( - 48, - + ( + + COUNT( * ) ) )
----
-4320

skipif mysql # not compatible
query I rowsort label-1963
SELECT 90 * + + NULLIF ( - 48, - + ( + + COUNT ( * ) ) )
----
-4320

query I rowsort
SELECT ALL - 44 * + - 32 * + 52 * 40
----
2928640

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

query II rowsort
SELECT ALL + 42 AS col1, - ( 34 ) AS col2
----
42
-34

query I rowsort
SELECT ALL 61 * 30
----
1830

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT MIN( DISTINCT 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-1968
SELECT MIN ( DISTINCT 49 ) AS col0
----
49

query I rowsort
SELECT DISTINCT + 27 * - 10 * 86
----
-23220

query I rowsort
SELECT DISTINCT 54 - ( - 82 ) * 8 AS col1
----
710

query II rowsort
SELECT ALL + 70, 44 AS col2
----
70
44

query I rowsort
SELECT + 19 * + 80 AS col2
----
1520

query I rowsort
SELECT DISTINCT 83 - - 96 AS col1
----
179

query II rowsort
SELECT DISTINCT 67 col1, 40 AS col0
----
67
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1975
SELECT ALL - 97 DIV + 84 * COUNT( * ) col1, 47 AS col1
----
-1
47

skipif mysql # not compatible
query II rowsort label-1975
SELECT ALL - 97 / + 84 * COUNT ( * ) col1, 47 AS col1
----
-1
47

query I rowsort
SELECT + 75 * + + 34
----
2550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1977
SELECT + ( 12 ) DIV + ( + COUNT( * ) ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-1977
SELECT + ( 12 ) / + ( + COUNT ( * ) ) AS col0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1978
SELECT ALL 42 * + COUNT( * ) * 30 * - COALESCE ( + COUNT( ALL 22 ), - 50 DIV - 70 * COUNT( * ) * - 26, - 30 ) - + 31 AS col2
----
-1291

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL 42 * + COUNT ( * ) * 30 * - COALESCE ( + COUNT ( ALL 22 ), - 50 / - 70 * COUNT ( * ) * - 26, - 30 ) - + 31 AS col2
----
-1291

onlyif mysql # aggregate syntax: 
query II rowsort label-1979
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) * - + ( - COUNT( * ) ) AS col1, - 82 * + 98
----
-1
-8036

skipif mysql # not compatible
query II rowsort label-1979
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) * - + ( - COUNT ( * ) ) AS col1, - 82 * + 98
----
-1
-8036

onlyif mysql # aggregate syntax: 
query II rowsort label-1980
SELECT ALL + COUNT( * ) * - 39 + - - 81 * + 54 AS col0, 52 * + 22 + + 35 AS col0
----
4335
1179

skipif mysql # not compatible
query II rowsort label-1980
SELECT ALL + COUNT ( * ) * - 39 + - - 81 * + 54 AS col0, 52 * + 22 + + 35 AS col0
----
4335
1179

onlyif mysql # aggregate syntax: 
query II rowsort label-1981
SELECT ALL - 39 * - 45 + + - ( ( - - COUNT( * ) ) ) + + 22, - 24 AS col0
----
1776
-24

skipif mysql # not compatible
query II rowsort label-1981
SELECT ALL - 39 * - 45 + + - ( ( - - COUNT ( * ) ) ) + + 22, - 24 AS col0
----
1776
-24

query I rowsort
SELECT + 34 * + 72 + 20
----
2468

query I rowsort
SELECT DISTINCT + 12 * 96 AS col2
----
1152

query I rowsort
SELECT - - 1 * 33
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT + NULLIF ( - - MIN( - 34 ), + ( - 63 ) ) + - ( 5 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-1985
SELECT + NULLIF ( - - MIN ( - 34 ), + ( - 63 ) ) + - ( 5 ) AS col1
----
-39

query II rowsort
SELECT + 33, - 75 AS col0
----
33
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT DISTINCT - SUM( 12 ) + + 62 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT - SUM ( 12 ) + + 62 AS col0
----
50

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1989
SELECT ALL - 54 + + ( - 73 ), 68 * COUNT( * ) AS col0
----
-127
68

skipif mysql # not compatible
query II rowsort label-1989
SELECT ALL - 54 + + ( - 73 ), 68 * COUNT ( * ) AS col0
----
-127
68

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

skipif mysql # not compatible
query I rowsort label-1990
SELECT - - COUNT ( * ) + 1 + + - 30 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT ALL + COUNT( + - 64 )
----
1

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL + COUNT ( + - 64 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT DISTINCT 62 + + + NULLIF ( 85, - COUNT( * ) * - 64 )
----
147

skipif mysql # not compatible
query I rowsort label-1992
SELECT DISTINCT 62 + + + NULLIF ( 85, - COUNT ( * ) * - 64 )
----
147

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

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL + 12 * + - COUNT ( * ) AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1994
SELECT ALL 39 / + CASE - + 27 WHEN - SUM( ALL + 70 ) / - COALESCE ( + 96, + 76 + + 16 + - SUM( + - ( + - 7 ) ), - 31 + + + 50 * 57 / - 10, + COALESCE ( - 37, + - CASE - + 70 WHEN - 73 THEN - 82 WHEN + 83 THEN - + 59 - - COUNT( * ) END ) * - 24 * + - CASE - 22 WHEN COUNT( * ) THEN + + ( + CAST( NULL AS DECIMAL ) ) * 62 + - 37 * ( + - ( + 46 ) ) ELSE + CASE - 10 WHEN + ( + 56 ) / - + CAST( - + NULLIF ( - - ( - 33 ), + COUNT( * ) * - 66 ) AS SIGNED ) * COUNT( * ) THEN COUNT( * ) * ( 97 ) ELSE NULL END END ) THEN NULL WHEN COUNT( ALL 62 ) THEN 60 WHEN ( + 23 ) + 43 * 39 THEN 44 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL 39 / + CASE - + 27 WHEN - SUM ( ALL + 70 ) / - COALESCE ( + 96, + 76 + + 16 + - SUM ( + - ( + - 7 ) ), - 31 + + + 50 * 57 / - 10, + COALESCE ( - 37, + - CASE - + 70 WHEN - 73 THEN - 82 WHEN + 83 THEN - + 59 - - COUNT ( * ) END ) * - 24 * + - CASE - 22 WHEN COUNT ( * ) THEN + + ( + CAST ( NULL AS REAL ) ) * 62 + - 37 * ( + - ( + 46 ) ) ELSE + CASE - 10 WHEN + ( + 56 ) / - + CAST ( - + NULLIF ( - - ( - 33 ), + COUNT ( * ) * - 66 ) AS INTEGER ) * COUNT ( * ) THEN COUNT ( * ) * ( 97 ) ELSE NULL END END ) THEN NULL WHEN COUNT ( ALL 62 ) THEN 60 WHEN ( + 23 ) + 43 * 39 THEN 44 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1995
SELECT DISTINCT 27 / 49 * - - COALESCE ( - 37, - 92, + + SUM( ALL 7 ) * - 56 / + 45 ) + - 17 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1995
SELECT DISTINCT 27 / 49 * - - COALESCE ( - 37, - 92, + + SUM ( ALL 7 ) * - 56 / + 45 ) + - 17 * - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT + CASE - 73 WHEN 23 THEN - + CASE COUNT( * ) WHEN 56 THEN - + 44 * 83 ELSE NULL END ELSE 35 END + - 79 * - 40 AS col2
----
3195

skipif mysql # not compatible
query I rowsort label-1997
SELECT + CASE - 73 WHEN 23 THEN - + CASE COUNT ( * ) WHEN 56 THEN - + 44 * 83 ELSE NULL END ELSE 35 END + - 79 * - 40 AS col2
----
3195

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

skipif mysql # not compatible
query I rowsort label-1998
SELECT + COUNT ( * ) / 97 + + 49 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT ALL + 12 * MAX( + - 11 )
----
-132

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL + 12 * MAX ( + - 11 )
----
-132

query I rowsort
SELECT ( ( 5 ) )
----
5

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

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

query I rowsort
SELECT - 26 * + 40 + 1 AS col1
----
-1039

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT ALL COUNT( * ) * ( - 87 ) - - 12 * + + 29
----
261

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL COUNT ( * ) * ( - 87 ) - - 12 * + + 29
----
261

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

skipif mysql # not compatible
query I rowsort label-2005
SELECT - CAST ( NULL AS INTEGER ) * + 41
----
NULL

query I rowsort
SELECT ALL + 13 * - 57
----
-741

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT ALL + MAX( - + 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL + MAX ( - + 91 )
----
-91

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

skipif mysql # not compatible
query I rowsort label-2008
SELECT DISTINCT + COALESCE ( COUNT ( * ), + 0 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT - 95 * - SUM( + NULLIF ( + + 33, + 37 + 63 ) )
----
3135

skipif mysql # not compatible
query I rowsort label-2009
SELECT - 95 * - SUM ( + NULLIF ( + + 33, + 37 + 63 ) )
----
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT + 32 * - COUNT( * ) + + 22 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-2010
SELECT + 32 * - COUNT ( * ) + + 22 AS col2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2011
SELECT NULLIF ( 54, 17 * - - 35 * - + COALESCE ( - - 81, + + 24, + + 76 * + 73 ) * + + MAX( + COALESCE ( - 78, - CAST( NULL AS SIGNED ), NULLIF ( 37, 92 ) * ( + - 90 ) - + NULLIF ( - 30, + - 25 * 43 + 45 ) + - 24 ) ) - - 96 - + 81 ) col1
----
54

skipif mysql # not compatible
query I rowsort label-2011
SELECT NULLIF ( 54, 17 * - - 35 * - + COALESCE ( - - 81, + + 24, + + 76 * + 73 ) * + + MAX ( + COALESCE ( - 78, - CAST ( NULL AS INTEGER ), NULLIF ( 37, 92 ) * ( + - 90 ) - + NULLIF ( - 30, + - 25 * 43 + 45 ) + - 24 ) ) - - 96 - + 81 ) col1
----
54

query I rowsort
SELECT - 73 * 55 AS col2
----
-4015

query I rowsort
SELECT + - 40 * ( - - 82 ) AS col1
----
-3280

query I rowsort
SELECT ALL + 35 * 15 AS col2
----
525

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

skipif mysql # not compatible
query I rowsort label-2015
SELECT - + 29 + - CAST ( - + COUNT ( * ) AS INTEGER )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT + CASE + SUM( DISTINCT - + 35 ) WHEN MAX( ( 37 ) ) THEN - 95 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2016
SELECT + CASE + SUM ( DISTINCT - + 35 ) WHEN MAX ( ( 37 ) ) THEN - 95 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT - - CASE - 35 WHEN - COUNT( * ) THEN 17 + - COUNT( * ) END + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT - - CASE - 35 WHEN - COUNT ( * ) THEN 17 + - COUNT ( * ) END + 58
----
NULL

query I rowsort
SELECT ALL + - ( 1 ) * + - 65
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2019
SELECT DISTINCT COUNT( * ) * - + CAST( + 52 AS SIGNED ) + - + COUNT( DISTINCT - ( + 38 ) ) - - + COUNT( * ) + + 39
----
-13

skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT COUNT ( * ) * - + CAST ( + 52 AS INTEGER ) + - + COUNT ( DISTINCT - ( + 38 ) ) - - + COUNT ( * ) + + 39
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2020
SELECT ALL ( + + 34 ) * + NULLIF ( - + 90, COUNT( * ) ) + + - CAST( - 3 AS SIGNED ) AS col1
----
-3057

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL ( + + 34 ) * + NULLIF ( - + 90, COUNT ( * ) ) + + - CAST ( - 3 AS INTEGER ) AS col1
----
-3057

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2021
SELECT - ( + + COUNT( * ) ) * - - COUNT( * ) + - + CASE + 24 WHEN + + 90 / 45 THEN 94 + - - 15 + + 46 WHEN + + 37 THEN + ( 1 ) - + COALESCE ( + CAST( 77 AS SIGNED ), - 11 * - 41 ) WHEN + 92 THEN NULL ELSE NULL END * MIN( ALL - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2021
SELECT - ( + + COUNT ( * ) ) * - - COUNT ( * ) + - + CASE + 24 WHEN + + 90 / 45 THEN 94 + - - 15 + + 46 WHEN + + 37 THEN + ( 1 ) - + COALESCE ( + CAST ( 77 AS INTEGER ), - 11 * - 41 ) WHEN + 92 THEN NULL ELSE NULL END * MIN ( ALL - 29 )
----
NULL

query I rowsort
SELECT + 45 + + 72
----
117

query I rowsort
SELECT ALL - 58 + + 19
----
-39

query I rowsort
SELECT + - 53 * + - 8 AS col1
----
424

query I rowsort
SELECT DISTINCT 60 + + 33 col0
----
93

query I rowsort
SELECT ALL 65 * + + 60 AS col2
----
3900

query I rowsort
SELECT DISTINCT - ( - 38 ) AS col1
----
38

query II rowsort
SELECT 86 col2, - ( + 44 )
----
86
-44

query I rowsort
SELECT ALL + 16 + 85
----
101

query I rowsort
SELECT ALL 15 * 5
----
75

query I rowsort
SELECT 0 * + 72 * - - 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT ( - COUNT( * ) ) * - COALESCE ( COUNT( * ), - + 78 * COALESCE ( 51, COUNT( * ) ) ) * + 81 + 78 col2
----
159

skipif mysql # not compatible
query I rowsort label-2032
SELECT ( - COUNT ( * ) ) * - COALESCE ( COUNT ( * ), - + 78 * COALESCE ( 51, COUNT ( * ) ) ) * + 81 + 78 col2
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT ALL - 54 - - MAX( + 48 ) * + COUNT( * ) - + 91 - - 30 * - - 1
----
-67

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL - 54 - - MAX ( + 48 ) * + COUNT ( * ) - + 91 - - 30 * - - 1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT MIN( - 49 ) - 78 AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-2034
SELECT MIN ( - 49 ) - 78 AS col0
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT SUM( + + 84 ) + - 4 col1
----
80

skipif mysql # not compatible
query I rowsort label-2035
SELECT SUM ( + + 84 ) + - 4 col1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2036
SELECT CAST( 90 AS SIGNED ) * 27 * + 84 + 76 * 6
----
204576

skipif mysql # not compatible
query I rowsort label-2036
SELECT CAST ( 90 AS INTEGER ) * 27 * + 84 + 76 * 6
----
204576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2037
SELECT 15 / - 63 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT 15 / - 63 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 82 * + 94
----
-7708

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT 86 * - COUNT( * ) * 15 AS col0
----
-1290

skipif mysql # not compatible
query I rowsort label-2039
SELECT 86 * - COUNT ( * ) * 15 AS col0
----
-1290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2040
SELECT 9 DIV - - 5 + + 33 + - COUNT( * ) + - 56 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-2040
SELECT 9 / - - 5 + + 33 + - COUNT ( * ) + - 56 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT ALL - SUM( + 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL - SUM ( + 87 ) AS col2
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2042
SELECT DISTINCT - 64 * - 44 DIV COUNT( * ) AS col1
----
2816

skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT - 64 * - 44 / COUNT ( * ) AS col1
----
2816

query I rowsort
SELECT ALL + ( + 64 ) * + + 49 * - 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2044
SELECT 5 DIV - - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2044
SELECT 5 / - - 83 AS col0
----
0

query I rowsort
SELECT 41 * + - 50
----
-2050

query I rowsort
SELECT ALL + 95 * - 7
----
-665

query I rowsort
SELECT DISTINCT + 36 + + 15
----
51

query I rowsort
SELECT - 39 * + - 70 + 83 + - 80 * 85 AS col0
----
-3987

onlyif mysql # DIV for integer division: 
query I rowsort label-2049
SELECT ALL - 14 DIV NULLIF ( + + 7, - + 79 * + 48 + 75 - - 15 )
----
-2

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL - 14 / NULLIF ( + + 7, - + 79 * + 48 + 75 - - 15 )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT - 94 DIV - 30
----
3

skipif mysql # not compatible
query I rowsort label-2050
SELECT - 94 / - 30
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2051
SELECT ALL - 3 + + COALESCE ( 33, + - 42, + ( - 51 ) + + COUNT( ALL - 94 ) DIV - 28 DIV - COALESCE ( COALESCE ( + - 40, + CAST( NULL AS SIGNED ), 81 ), - SUM( - 57 ) ) ) + - + ( + ( - + COUNT( DISTINCT 49 ) ) ) + 9 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL - 3 + + COALESCE ( 33, + - 42, + ( - 51 ) + + COUNT ( ALL - 94 ) / - 28 / - COALESCE ( COALESCE ( + - 40, + CAST ( NULL AS INTEGER ), 81 ), - SUM ( - 57 ) ) ) + - + ( + ( - + COUNT ( DISTINCT 49 ) ) ) + 9 AS col0
----
40

query I rowsort
SELECT 10 * - ( - + 20 ) AS col0
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2053
SELECT ALL + NULLIF ( CAST( NULL AS SIGNED ), + - NULLIF ( - 4, COUNT( * ) ) * ( + 32 ) + AVG ( DISTINCT 53 ) ) + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL + NULLIF ( CAST ( NULL AS INTEGER ), + - NULLIF ( - 4, COUNT ( * ) ) * ( + 32 ) + AVG ( DISTINCT 53 ) ) + 22
----
NULL

query II rowsort
SELECT - 51 + - ( - - COALESCE ( - 87, 41 ) ) AS col0, 73
----
36
73

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

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

query I rowsort
SELECT 90 * + - 5 * 2
----
-900

query I rowsort
SELECT + 43 * - - 74 col0
----
3182

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

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL - - 30 + + COUNT ( * ) * COUNT ( * ) / - 30 col0
----
30

query I rowsort
SELECT ALL - 18 * - - 37 * - 35 AS col1
----
23310

query II rowsort
SELECT - 84 AS col1, - 87
----
-84
-87

query I rowsort
SELECT ALL + - 38 + 80
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2062
SELECT DISTINCT - 69 * + + 11 * + + CASE - - NULLIF ( - COUNT( * ), - COALESCE ( + COALESCE ( - 24, - 33 * + 80 ), ( + CASE - 88 WHEN - + AVG ( + 11 ) + - + CASE + CAST( NULL AS DECIMAL ) WHEN + 46 THEN NULL ELSE NULLIF ( - 27, + 17 ) + - 99 END / - 63 * - 80 THEN - 13 ELSE + - 77 END ) ) ) WHEN + 16 * - - CAST( - 16 AS SIGNED ) THEN + 47 WHEN + - 17 THEN NULL WHEN CAST( - CASE COUNT( * ) WHEN - 0 THEN - 91 WHEN - SUM( 57 ) THEN NULL ELSE NULL END AS SIGNED ) * - - 62 THEN + 74 / + + ( - - 80 ) * COUNT( * ) + + - 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2062
SELECT DISTINCT - 69 * + + 11 * + + CASE - - NULLIF ( - COUNT ( * ), - COALESCE ( + COALESCE ( - 24, - 33 * + 80 ), ( + CASE - 88 WHEN - + AVG ( + 11 ) + - + CASE + CAST ( NULL AS REAL ) WHEN + 46 THEN NULL ELSE NULLIF ( - 27, + 17 ) + - 99 END / - 63 * - 80 THEN - 13 ELSE + - 77 END ) ) ) WHEN + 16 * - - CAST ( - 16 AS INTEGER ) THEN + 47 WHEN + - 17 THEN NULL WHEN CAST ( - CASE COUNT ( * ) WHEN - 0 THEN - 91 WHEN - SUM ( 57 ) THEN NULL ELSE NULL END AS INTEGER ) * - - 62 THEN + 74 / + + ( - - 80 ) * COUNT ( * ) + + - 29 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2063
SELECT ALL + ( + - 27 ) - + - 42 DIV - MIN( + 66 ) AS col1, + 59
----
-27
59

skipif mysql # not compatible
query II rowsort label-2063
SELECT ALL + ( + - 27 ) - + - 42 / - MIN ( + 66 ) AS col1, + 59
----
-27
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT NULLIF ( + 26, + 44 ) - 30 + SUM( + + 85 ) + 65 AS col1
----
146

skipif mysql # not compatible
query I rowsort label-2064
SELECT NULLIF ( + 26, + 44 ) - 30 + SUM ( + + 85 ) + 65 AS col1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT 55 + - - 56 + - NULLIF ( + + COUNT( * ), - 8 )
----
110

skipif mysql # not compatible
query I rowsort label-2065
SELECT 55 + - - 56 + - NULLIF ( + + COUNT ( * ), - 8 )
----
110

query II rowsort
SELECT 39 col0, - 29 col0
----
39
-29

query I rowsort
SELECT 71 * - - 1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2068
SELECT 7 * - 53 * + CAST( NULL AS SIGNED ) * - AVG ( - 2 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2068
SELECT 7 * - 53 * + CAST ( NULL AS INTEGER ) * - AVG ( - 2 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2069
SELECT DISTINCT MAX( ALL 10 ) AS col1, + COUNT( * ) * - - 63 * + 25
----
10
1575

skipif mysql # not compatible
query II rowsort label-2069
SELECT DISTINCT MAX ( ALL 10 ) AS col1, + COUNT ( * ) * - - 63 * + 25
----
10
1575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2070
SELECT ALL 38 * CASE + COALESCE ( + COUNT( * ), + 37 * - NULLIF ( - MIN( 90 ), + CAST( NULL AS SIGNED ) ) * + ( + AVG ( - 0 ) ) * + ( - 76 ) ) WHEN + + COUNT( - + 42 ) THEN NULL WHEN ( + ( + - 68 ) ) THEN COUNT( * ) / - - 12 + - + 87 END / + CAST( NULL AS SIGNED ) * 43 / + 35 * 45 * + + ( - 8 ) + - - 69 * - 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2070
SELECT ALL 38 * CASE + COALESCE ( + COUNT ( * ), + 37 * - NULLIF ( - MIN ( 90 ), + CAST ( NULL AS INTEGER ) ) * + ( + AVG ( - 0 ) ) * + ( - 76 ) ) WHEN + + COUNT ( - + 42 ) THEN NULL WHEN ( + ( + - 68 ) ) THEN COUNT ( * ) / - - 12 + - + 87 END / + CAST ( NULL AS INTEGER ) * 43 / + 35 * 45 * + + ( - 8 ) + - - 69 * - 0 AS col1
----
NULL

query I rowsort
SELECT 96 * 90 AS col0
----
8640

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT ( + COUNT( * ) ) + 12 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-2072
SELECT ( + COUNT ( * ) ) + 12 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT ( + COUNT( * ) ) * + ( - COUNT( * ) ) + CASE - 90 WHEN - + 71 + + 21 THEN - 10 * 81 + 21 * 88 / - COUNT( * ) / - 47 + - 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2073
SELECT ( + COUNT ( * ) ) * + ( - COUNT ( * ) ) + CASE - 90 WHEN - + 71 + + 21 THEN - 10 * 81 + 21 * 88 / - COUNT ( * ) / - 47 + - 24 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2074
SELECT DISTINCT CASE - CAST( + 95 AS DECIMAL ) WHEN - 25 * + 66 + COUNT( * ) - + 39 THEN - 53 WHEN - 1 * + 67 + 53 THEN + 73 ELSE NULL END * ( COALESCE ( - 99, + 81, - - COALESCE ( ( COUNT( * ) ), - + 87 * 64 + - AVG ( DISTINCT + 9 ) - - + 57 ) + + 65 + 43 ) ) * - COUNT( * ) - CASE - MIN( DISTINCT 44 ) WHEN + - 1 / + - AVG ( + CAST( + - 17 AS SIGNED ) ) THEN NULL WHEN - 55 / + 7 - + NULLIF ( 99, - 88 * - COUNT( * ) ) + - 42 THEN - + 48 * + 98 * + 80 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT CASE - CAST ( + 95 AS REAL ) WHEN - 25 * + 66 + COUNT ( * ) - + 39 THEN - 53 WHEN - 1 * + 67 + 53 THEN + 73 ELSE NULL END * ( COALESCE ( - 99, + 81, - - COALESCE ( ( COUNT ( * ) ), - + 87 * 64 + - AVG ( DISTINCT + 9 ) - - + 57 ) + + 65 + 43 ) ) * - COUNT ( * ) - CASE - MIN ( DISTINCT 44 ) WHEN + - 1 / + - AVG ( + CAST ( + - 17 AS INTEGER ) ) THEN NULL WHEN - 55 / + 7 - + NULLIF ( 99, - 88 * - COUNT ( * ) ) + - 42 THEN - + 48 * + 98 * + 80 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT COUNT( DISTINCT + + 21 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2075
SELECT COUNT ( DISTINCT + + 21 ) col1
----
1

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

skipif mysql # not compatible
query I rowsort label-2076
SELECT 96 * + + COUNT ( DISTINCT - 76 ) AS col0
----
96

query I rowsort
SELECT 31 * - + ( - 38 )
----
1178

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2078
SELECT ALL - 80, COUNT( * ) DIV - 24 AS col2
----
-80
0

skipif mysql # not compatible
query II rowsort label-2078
SELECT ALL - 80, COUNT ( * ) / - 24 AS col2
----
-80
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT DISTINCT 60 + ( - - 64 ) * + COUNT( * ) * + 42 + - 18 AS col0
----
2730

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT 60 + ( - - 64 ) * + COUNT ( * ) * + 42 + - 18 AS col0
----
2730

query I rowsort
SELECT ALL - - ( 77 ) AS col2
----
77

query II rowsort
SELECT 48 AS col1, 82 * - 49
----
48
-4018

query II rowsort
SELECT DISTINCT - 7 AS col0, + 79
----
-7
79

query I rowsort
SELECT ALL - + 70 + + 11 + + 91 AS col2
----
32

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2085
SELECT + - NULLIF ( + COUNT( * ), 43 / + 91 ) AS col0, - 90
----
-1
-90

skipif mysql # not compatible
query II rowsort label-2085
SELECT + - NULLIF ( + COUNT ( * ), 43 / + 91 ) AS col0, - 90
----
-1
-90

query I rowsort
SELECT ALL - + ( 4 ) AS col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2087
SELECT ( - COUNT( * ) ), 3 + - 22 + + 60 * 69 + + + NULLIF ( - + 79, - CAST( - 66 AS SIGNED ) ) AS col0
----
-1
4042

skipif mysql # not compatible
query II rowsort label-2087
SELECT ( - COUNT ( * ) ), 3 + - 22 + + 60 * 69 + + + NULLIF ( - + 79, - CAST ( - 66 AS INTEGER ) ) AS col0
----
-1
4042

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2089
SELECT - MIN( - + 28 ) * + COUNT( * ) DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-2089
SELECT - MIN ( - + 28 ) * + COUNT ( * ) / - 83
----
0

query I rowsort
SELECT DISTINCT + 89 * 18 * - + 81 AS col0
----
-129762

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

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL - 31 + + 51 / + + COUNT ( * ) AS col2
----
20

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

query I rowsort
SELECT ALL - - 90 - + 83
----
7

query I rowsort
SELECT - + COALESCE ( + COALESCE ( 61, + + 99 + + 67 ), - + 21 )
----
-61

query I rowsort
SELECT - + 95 + - - 65
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2096
SELECT - COUNT( ALL - 29 ) * + CASE - CAST( NULL AS SIGNED ) WHEN + + COUNT( * ) * + COUNT( * ) + 52 THEN 62 + + COUNT( * ) * 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2096
SELECT - COUNT ( ALL - 29 ) * + CASE - CAST ( NULL AS INTEGER ) WHEN + + COUNT ( * ) * + COUNT ( * ) + 52 THEN 62 + + COUNT ( * ) * 84 END
----
NULL

query I rowsort
SELECT DISTINCT - 99 * + 78
----
-7722

onlyif mysql # aggregate syntax: 
query II rowsort label-2098
SELECT - 33 * + ( + 57 ) AS col2, MAX( 7 ) * + - 75 AS col0
----
-1881
-525

skipif mysql # not compatible
query II rowsort label-2098
SELECT - 33 * + ( + 57 ) AS col2, MAX ( 7 ) * + - 75 AS col0
----
-1881
-525

query I rowsort
SELECT + 39 + - - 16 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT DISTINCT + 35 - - CASE + + 74 WHEN - 80 THEN NULL WHEN + COUNT( * ) * + - 6 + + 77 + 79 THEN - 86 ELSE NULL END + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT + 35 - - CASE + + 74 WHEN - 80 THEN NULL WHEN + COUNT ( * ) * + - 6 + + 77 + 79 THEN - 86 ELSE NULL END + - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL - MIN( - ( - 26 ) ) * - CASE + 67 WHEN 10 + + - 66 THEN + - AVG ( ALL - 73 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL - MIN ( - ( - 26 ) ) * - CASE + 67 WHEN 10 + + - 66 THEN + - AVG ( ALL - 73 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2102
SELECT ALL CASE - 32 WHEN + 51 * - 37 + + - MIN( - 95 ) + - 22 THEN 3 - - 35 - ( - CASE - COALESCE ( - + 31, - ( + + 17 ), + ( + + COALESCE ( COALESCE ( - CAST( NULL AS SIGNED ), COUNT( ALL COALESCE ( + + 78, + ( + CAST( - + 58 AS SIGNED ) ) ) ) ), - 0 ) ) / - - COUNT( * ) ) WHEN + 85 THEN - COUNT( * ) WHEN COUNT( ALL 80 ) THEN - CAST( - 52 AS DECIMAL ) END ) WHEN + 74 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL CASE - 32 WHEN + 51 * - 37 + + - MIN ( - 95 ) + - 22 THEN 3 - - 35 - ( - CASE - COALESCE ( - + 31, - ( + + 17 ), + ( + + COALESCE ( COALESCE ( - CAST ( NULL AS INTEGER ), COUNT ( ALL COALESCE ( + + 78, + ( + CAST ( - + 58 AS INTEGER ) ) ) ) ), - 0 ) ) / - - COUNT ( * ) ) WHEN + 85 THEN - COUNT ( * ) WHEN COUNT ( ALL 80 ) THEN - CAST ( - 52 AS REAL ) END ) WHEN + 74 THEN NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT CASE - 78 WHEN - 69 THEN - + 22 ELSE - 15 END
----
-15

query I rowsort
SELECT ALL COALESCE ( + ( + 52 ), 87 * - 18 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT - MAX( ALL - 8 ) * 98 + 40 * + 80 AS col2
----
3984

skipif mysql # not compatible
query I rowsort label-2106
SELECT - MAX ( ALL - 8 ) * 98 + 40 * + 80 AS col2
----
3984

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

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

query I rowsort
SELECT + 66 * 83
----
5478

query I rowsort
SELECT + 25 * - + 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2110
SELECT - COUNT( * ) * - + CAST( + COUNT( NULLIF ( + 98, - + 51 ) ) AS SIGNED ) * + 74 - 96
----
-22

skipif mysql # not compatible
query I rowsort label-2110
SELECT - COUNT ( * ) * - + CAST ( + COUNT ( NULLIF ( + 98, - + 51 ) ) AS INTEGER ) * + 74 - 96
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT ALL NULLIF ( - COUNT( * ), + 18 ) * - - 71 * + + COUNT( * ) + + - 2 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL NULLIF ( - COUNT ( * ), + 18 ) * - - 71 * + + COUNT ( * ) + + - 2 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT + 54 + SUM( + 3 ) * + 22
----
120

skipif mysql # not compatible
query I rowsort label-2112
SELECT + 54 + SUM ( + 3 ) * + 22
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT DISTINCT + COUNT( + - 71 ) * + 53 + + - 35 * 10
----
-297

skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT + COUNT ( + - 71 ) * + 53 + + - 35 * 10
----
-297

query I rowsort
SELECT + 30 * - 50
----
-1500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2115
SELECT + 89 DIV - + COALESCE ( MAX( + 4 ), 83 * 32 * - ( 6 ), - 8, 95 * + - 35 - 4 + - + 79 + - + 0 DIV 80 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-2115
SELECT + 89 / - + COALESCE ( MAX ( + 4 ), 83 * 32 * - ( 6 ), - 8, 95 * + - 35 - 4 + - + 79 + - + 0 / 80 ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT DISTINCT - + 22 * 9 + + COUNT( * )
----
-197

skipif mysql # not compatible
query I rowsort label-2116
SELECT DISTINCT - + 22 * 9 + + COUNT ( * )
----
-197

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT ALL 38 * - - COUNT( * ) + 53 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-2117
SELECT ALL 38 * - - COUNT ( * ) + 53 AS col0
----
91

query I rowsort
SELECT COALESCE ( 58, 19, + ( + 7 ) )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT DISTINCT 0 * - 38 - 45 * COUNT( * ) * + 76 AS col2
----
-3420

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT 0 * - 38 - 45 * COUNT ( * ) * + 76 AS col2
----
-3420

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT ALL - COUNT( 72 ) * - + 62 + 50 - + 41 - - 30 + - + 43 + + 88 - - 79 * + + COALESCE ( MAX( + 6 ), 17 + + 35 ) - + COUNT( * ) * + 47 col0
----
573

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL - COUNT ( 72 ) * - + 62 + 50 - + 41 - - 30 + - + 43 + + 88 - - 79 * + + COALESCE ( MAX ( + 6 ), 17 + + 35 ) - + COUNT ( * ) * + 47 col0
----
573

query I rowsort
SELECT - + 41 * + 17
----
-697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2122
SELECT + 85 * - - COUNT( * ) * + - NULLIF ( - + CAST( + 62 AS SIGNED ), - 87 * 67 + + + AVG ( ALL + 90 ) ) AS col2
----
5270

skipif mysql # not compatible
query I rowsort label-2122
SELECT + 85 * - - COUNT ( * ) * + - NULLIF ( - + CAST ( + 62 AS INTEGER ), - 87 * 67 + + + AVG ( ALL + 90 ) ) AS col2
----
5270

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT DISTINCT CASE 87 WHEN + - COUNT( * ) THEN COALESCE ( - 23, + 87 + - COUNT( * ) ) + + - 61 WHEN - 24 + - + 5 THEN - COUNT( * ) * 77 * 1 ELSE + 42 END AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2123
SELECT DISTINCT CASE 87 WHEN + - COUNT ( * ) THEN COALESCE ( - 23, + 87 + - COUNT ( * ) ) + + - 61 WHEN - 24 + - + 5 THEN - COUNT ( * ) * 77 * 1 ELSE + 42 END AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT DISTINCT MAX( DISTINCT - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT MAX ( DISTINCT - 26 )
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-2125
SELECT ALL + 22 DIV + 19 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL + 22 / + 19 AS col0
----
1

query I rowsort
SELECT DISTINCT ( + - 64 )
----
-64

query I rowsort
SELECT - 79 * 69 AS col0
----
-5451

query I rowsort
SELECT + 91 + 5
----
96

query I rowsort
SELECT - 97 - - 12
----
-85

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

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

query I rowsort
SELECT - 73 - - 64 col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT - COUNT( * ) + 75
----
74

skipif mysql # not compatible
query I rowsort label-2132
SELECT - COUNT ( * ) + 75
----
74

query I rowsort
SELECT - 49 * - 17 * - 86
----
-71638

query I rowsort
SELECT DISTINCT ( - + 9 )
----
-9

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2136
SELECT ALL + 60 + - 86 * - + SUM( DISTINCT - - 9 ) * + AVG ( DISTINCT 74 ) + + CAST( NULL AS DECIMAL ) * COUNT( * ) AS col0, 2 AS col1
----
NULL
2

skipif mysql # not compatible
query II rowsort label-2136
SELECT ALL + 60 + - 86 * - + SUM ( DISTINCT - - 9 ) * + AVG ( DISTINCT 74 ) + + CAST ( NULL AS REAL ) * COUNT ( * ) AS col0, 2 AS col1
----
NULL
2

query II rowsort
SELECT ALL 1 + - + 86 * + 51 AS col0, 83 AS col1
----
-4385
83

query II rowsort
SELECT DISTINCT + 8 AS col1, 18 * + ( + 76 ) * - 22
----
8
-30096

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT - SUM( + ( + 67 ) ) * + + 66 AS col2
----
-4422

skipif mysql # not compatible
query I rowsort label-2139
SELECT - SUM ( + ( + 67 ) ) * + + 66 AS col2
----
-4422

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2140
SELECT + - CAST( NULL AS DECIMAL ) / - 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2140
SELECT + - CAST ( NULL AS REAL ) / - 87 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 45 / + CASE 50 WHEN + COALESCE ( + ( - 99 ), - + 74 ) THEN 98 END + + + 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT + + COALESCE ( + + 8, 42, - 62 * - COUNT( * ) - 77 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-2142
SELECT + + COALESCE ( + + 8, 42, - 62 * - COUNT ( * ) - 77 ) AS col1
----
8

query I rowsort
SELECT - - 86 * 89 AS col0
----
7654

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2144
SELECT DISTINCT + ( + + 96 ) DIV 52 * - + 76 + - 42 - - ( COUNT( * ) ) AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-2144
SELECT DISTINCT + ( + + 96 ) / 52 * - + 76 + - 42 - - ( COUNT ( * ) ) AS col1
----
-117

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

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

query II rowsort
SELECT 95 * + 67 + 9 AS col2, + 84
----
6374
84

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

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL + COUNT ( * ) / 72 AS col0
----
0

query II rowsort
SELECT DISTINCT + 93, + ( - 75 ) col2
----
93
-75

query I rowsort
SELECT - 98 - COALESCE ( + 32, - 98, + - 54 )
----
-130

query II rowsort
SELECT + + 57, 15 * + 39 + - - ( ( + ( + 49 ) ) ) + - 88 AS col1
----
57
546

query I rowsort
SELECT + 35 * - 49 + - 55
----
-1770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2152
SELECT + - 35 * - 98 + - - CAST( 98 AS SIGNED ) + 51 - ( + + COUNT( * ) ) * - 31 * 84 AS col2
----
6183

skipif mysql # not compatible
query I rowsort label-2152
SELECT + - 35 * - 98 + - - CAST ( 98 AS INTEGER ) + 51 - ( + + COUNT ( * ) ) * - 31 * 84 AS col2
----
6183

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT ALL - + MIN( + ( 50 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL - + MIN ( + ( 50 ) )
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-2154
SELECT ALL 86 * + + 2 * + 21 AS col0, - COUNT( * ) + + 99 + 43 + ( + + 70 ) * - + 45 AS col2
----
3612
-3009

skipif mysql # not compatible
query II rowsort label-2154
SELECT ALL 86 * + + 2 * + 21 AS col0, - COUNT ( * ) + + 99 + 43 + ( + + 70 ) * - + 45 AS col2
----
3612
-3009

query I rowsort
SELECT + 65 + + 87
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2156
SELECT ALL - CAST( NULL AS SIGNED ), + 17 AS col2
----
NULL
17

skipif mysql # not compatible
query II rowsort label-2156
SELECT ALL - CAST ( NULL AS INTEGER ), + 17 AS col2
----
NULL
17

query I rowsort
SELECT + 78 + 37 + - 39 AS col0
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2158
SELECT + 94 * - - COUNT( * ) * + + 8 * - ( + - 68 ) + 80 * + 3 + - 21 + COUNT( * ) - - 93 DIV + 36 + - 23 - 35 + 59 DIV 45 DIV 99 col2
----
51300

skipif mysql # not compatible
query I rowsort label-2158
SELECT + 94 * - - COUNT ( * ) * + + 8 * - ( + - 68 ) + 80 * + 3 + - 21 + COUNT ( * ) - - 93 / + 36 + - 23 - 35 + 59 / 45 / 99 col2
----
51300

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT 0 + + CASE - 50 WHEN - COUNT( * ) THEN + 21 * - - 96 * 14 + + - 53 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2159
SELECT 0 + + CASE - 50 WHEN - COUNT ( * ) THEN + 21 * - - 96 * 14 + + - 53 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2160
SELECT ( + 89 ) * + COUNT( * ) + 64 / + - 71 + + + CAST( NULL AS SIGNED ) + MIN( ALL - 76 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2160
SELECT ( + 89 ) * + COUNT ( * ) + 64 / + - 71 + + + CAST ( NULL AS INTEGER ) + MIN ( ALL - 76 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2161
SELECT ALL SUM( - CAST( NULL AS SIGNED ) ) + 47 / - + 96, - 72 + + - 48 AS col2
----
NULL
-120

skipif mysql # not compatible
query II rowsort label-2161
SELECT ALL SUM ( - CAST ( NULL AS INTEGER ) ) + 47 / - + 96, - 72 + + - 48 AS col2
----
NULL
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2162
SELECT 25 + - - COUNT( * ) + - CAST( COUNT( * ) AS SIGNED ) AS col1, - 28 * - 22 AS col2
----
25
616

skipif mysql # not compatible
query II rowsort label-2162
SELECT 25 + - - COUNT ( * ) + - CAST ( COUNT ( * ) AS INTEGER ) AS col1, - 28 * - 22 AS col2
----
25
616

query I rowsort
SELECT DISTINCT NULLIF ( - - 67, - 62 ) * 80 * 57 AS col0
----
305520

query I rowsort
SELECT 35 + + + ( + 19 )
----
54

query I rowsort
SELECT DISTINCT ( 65 ) + - 29 + + 3 + + 61 * + 23 * + 83 col1
----
116488

onlyif mysql # DIV for integer division: 
query I rowsort label-2166
SELECT ALL + 1 + + 80 + 63 DIV - 49 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL + 1 + + 80 + 63 / - 49 AS col1
----
80

onlyif mysql # DIV for integer division: 
query II rowsort label-2167
SELECT DISTINCT - 74 DIV - 67, 88 col1
----
1
88

skipif mysql # not compatible
query II rowsort label-2167
SELECT DISTINCT - 74 / - 67, 88 col1
----
1
88

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

query I rowsort
SELECT 15 - + 0 - - + 75 * - 59 AS col0
----
-4410

query I rowsort
SELECT 50 * - + 14 AS col1
----
-700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2171
SELECT COALESCE ( COUNT( - 19 ), - COUNT( * ), - - CAST( NULL AS SIGNED ) ) * MIN( DISTINCT 35 ) * + 57 AS col2
----
1995

skipif mysql # not compatible
query I rowsort label-2171
SELECT COALESCE ( COUNT ( - 19 ), - COUNT ( * ), - - CAST ( NULL AS INTEGER ) ) * MIN ( DISTINCT 35 ) * + 57 AS col2
----
1995

query I rowsort
SELECT 60 * + - 85 * - + 22 * - 25 * 77
----
-215985000

query I rowsort
SELECT + NULLIF ( - 69, + 19 ) AS col1
----
-69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT DISTINCT + + 58 - + + COUNT( * ) - + 78 * + 93 col2
----
-7197

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT + + 58 - + + COUNT ( * ) - + 78 * + 93 col2
----
-7197

query I rowsort
SELECT 79 * + 19 * 67 * + 86
----
8648762

query I rowsort
SELECT + 21 * 71 + 79 + + 0
----
1570

onlyif mysql # DIV for integer division: 
query I rowsort label-2178
SELECT + 96 + - + 34 DIV 40
----
96

skipif mysql # not compatible
query I rowsort label-2178
SELECT + 96 + - + 34 / 40
----
96

query I rowsort
SELECT + - 45 * + + 57 * 79 * - + 39 - + - 44 * + - 67 * + - 39 * - - 60 AS col0
----
14801085

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT ( 67 ) * - SUM( + 65 ) AS col2
----
-4355

skipif mysql # not compatible
query I rowsort label-2180
SELECT ( 67 ) * - SUM ( + 65 ) AS col2
----
-4355

query I rowsort
SELECT - NULLIF ( 0, - 6 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT ALL - - CASE + SUM( ALL + + 92 ) WHEN - + 65 THEN + MAX( 56 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL - - CASE + SUM ( ALL + + 92 ) WHEN - + 65 THEN + MAX ( 56 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2183
SELECT DISTINCT + 69 DIV COALESCE ( - COALESCE ( + 89, ( + 17 ) ), - + 59 * - 10 - - SUM( - + 4 ) + 74 ) + 73 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-2183
SELECT DISTINCT + 69 / COALESCE ( - COALESCE ( + 89, ( + 17 ) ), - + 59 * - 10 - - SUM ( - + 4 ) + 74 ) + 73 AS col0
----
73

query I rowsort
SELECT - 76 * - 43 col0
----
3268

query I rowsort
SELECT ALL 16 * ( + 25 ) * + - 27 col0
----
-10800

query I rowsort
SELECT ALL - - COALESCE ( - 77, 15 + - 62 )
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2187
SELECT 9 DIV + - 30
----
0

skipif mysql # not compatible
query I rowsort label-2187
SELECT 9 / + - 30
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2188
SELECT 80 + - + 8 DIV 37 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-2188
SELECT 80 + - + 8 / 37 AS col0
----
80

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2190
SELECT ALL - 22 * + 97 DIV + 93
----
-22

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL - 22 * + 97 / + 93
----
-22

query I rowsort
SELECT 90 * - 94 AS col1
----
-8460

onlyif mysql # aggregate syntax: 
query II rowsort label-2192
SELECT 70 AS col2, - COUNT( * ) * + 41 * ( - 48 )
----
70
1968

skipif mysql # not compatible
query II rowsort label-2192
SELECT 70 AS col2, - COUNT ( * ) * + 41 * ( - 48 )
----
70
1968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2193
SELECT DISTINCT CASE + 30 WHEN - 66 THEN NULL WHEN CAST( - COUNT( * ) AS SIGNED ) THEN + CAST( NULL AS SIGNED ) WHEN 60 * - + 78 THEN MIN( ALL 81 ) END + + - 31 + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT CASE + 30 WHEN - 66 THEN NULL WHEN CAST ( - COUNT ( * ) AS INTEGER ) THEN + CAST ( NULL AS INTEGER ) WHEN 60 * - + 78 THEN MIN ( ALL 81 ) END + + - 31 + 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT 6 - + - 2 * + + ( + ( ( + COUNT( * ) ) ) ) + - 75
----
-67

skipif mysql # not compatible
query I rowsort label-2194
SELECT 6 - + - 2 * + + ( + ( ( + COUNT ( * ) ) ) ) + - 75
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2195
SELECT 51 AS col0, + CAST( NULL AS SIGNED ) + COUNT( * ), - - 94 * - + MAX( + 18 ) * - COUNT( * ) - + 3 + - - 54 AS col2
----
51
NULL
1743

skipif mysql # not compatible
query III rowsort label-2195
SELECT 51 AS col0, + CAST ( NULL AS INTEGER ) + COUNT ( * ), - - 94 * - + MAX ( + 18 ) * - COUNT ( * ) - + 3 + - - 54 AS col2
----
51
NULL
1743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2196
SELECT ALL ( 20 ) + - MIN( + CAST( - 27 AS SIGNED ) )
----
47

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL ( 20 ) + - MIN ( + CAST ( - 27 AS INTEGER ) )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT - COUNT( * ) * COALESCE ( + COUNT( * ), + + 90 ) - - 22 * - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-2197
SELECT - COUNT ( * ) * COALESCE ( + COUNT ( * ), + + 90 ) - - 22 * - COUNT ( * )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT ALL + 60 + + COALESCE ( + - 50, 55 + + COUNT( * ), 14 * - 77 )
----
10

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL + 60 + + COALESCE ( + - 50, 55 + + COUNT ( * ), 14 * - 77 )
----
10

query I rowsort
SELECT 25 + + 55 + 53
----
133

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2201
SELECT ALL ( + CAST( NULL AS SIGNED ) ) + 30 + 80 + + 8 - + 21 * 85 - + 98 + - - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) + 30 + 80 + + 8 - + 21 * 85 - + 98 + - - 0
----
NULL

query I rowsort
SELECT 15 + + 26 + - 72 AS col2
----
-31

query I rowsort
SELECT 24 + 88 * 29 AS col1
----
2576

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT 60 - + COUNT( DISTINCT 72 )
----
59

skipif mysql # not compatible
query I rowsort label-2204
SELECT 60 - + COUNT ( DISTINCT 72 )
----
59

query I rowsort
SELECT 31 * + 13
----
403

query I rowsort
SELECT - COALESCE ( - + 86, 51 - 71 + + 52 - - + 26 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT - MIN( 83 ) col0
----
-83

skipif mysql # not compatible
query I rowsort label-2207
SELECT - MIN ( 83 ) col0
----
-83

query I rowsort
SELECT 50 + 22 col0
----
72

query I rowsort
SELECT ALL 30 * - ( 94 ) AS col0
----
-2820

query I rowsort
SELECT 56 * 13 AS col1
----
728

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2212
SELECT - 94 DIV + 58
----
-1

skipif mysql # not compatible
query I rowsort label-2212
SELECT - 94 / + 58
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2213
SELECT CASE 84 WHEN NULLIF ( MAX( DISTINCT + COALESCE ( 63, - 51 ) ), 84 * 54 ) + 2 THEN + COUNT( * ) WHEN - CAST( COUNT( * ) AS SIGNED ) THEN 86 + - 55 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2213
SELECT CASE 84 WHEN NULLIF ( MAX ( DISTINCT + COALESCE ( 63, - 51 ) ), 84 * 54 ) + 2 THEN + COUNT ( * ) WHEN - CAST ( COUNT ( * ) AS INTEGER ) THEN 86 + - 55 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2214
SELECT - COUNT( * ) + + CAST( 14 AS SIGNED ) * COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-2214
SELECT - COUNT ( * ) + + CAST ( 14 AS INTEGER ) * COUNT ( * ) AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2215
SELECT CASE SUM( DISTINCT 42 ) WHEN - 96 THEN - 0 + - CAST( NULL AS SIGNED ) WHEN - 36 + ( 2 ) THEN NULL ELSE 98 + + 17 END AS col0
----
115

skipif mysql # not compatible
query I rowsort label-2215
SELECT CASE SUM ( DISTINCT 42 ) WHEN - 96 THEN - 0 + - CAST ( NULL AS INTEGER ) WHEN - 36 + ( 2 ) THEN NULL ELSE 98 + + 17 END AS col0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT + 43 * 51 + + COUNT( 25 + 89 * 56 ) * - 52 AS col0
----
2141

skipif mysql # not compatible
query I rowsort label-2216
SELECT + 43 * 51 + + COUNT ( 25 + 89 * 56 ) * - 52 AS col0
----
2141

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT DISTINCT + SUM( 62 ) * 55
----
3410

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT + SUM ( 62 ) * 55
----
3410

query I rowsort
SELECT DISTINCT ( ( - 94 ) ) * 56 + 34 AS col0
----
-5230

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT ALL - ( COUNT( * ) ) * 81
----
-81

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL - ( COUNT ( * ) ) * 81
----
-81

query I rowsort
SELECT - 4 * + 74
----
-296

query I rowsort
SELECT DISTINCT 36 * 38 + + 94 AS col0
----
1462

query I rowsort
SELECT + ( + 76 ) * 75 + + 3 * - 57 AS col1
----
5529

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2224
SELECT DISTINCT + CASE - CAST( NULL AS SIGNED ) WHEN + 45 THEN NULL WHEN 53 + 5 THEN 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT + CASE - CAST ( NULL AS INTEGER ) WHEN + 45 THEN NULL WHEN 53 + 5 THEN 0 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2225
SELECT - 68 DIV MIN( - 77 )
----
0

skipif mysql # not compatible
query I rowsort label-2225
SELECT - 68 / MIN ( - 77 )
----
0

query I rowsort
SELECT 63 * 10 + - 73 AS col0
----
557

onlyif mysql # DIV for integer division: 
query I rowsort label-2227
SELECT - 10 * 61 + - 58 DIV - 75 AS col1
----
-610

skipif mysql # not compatible
query I rowsort label-2227
SELECT - 10 * 61 + - 58 / - 75 AS col1
----
-610

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT - 62 + SUM( DISTINCT - 37 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-2228
SELECT - 62 + SUM ( DISTINCT - 37 ) AS col0
----
-99

query I rowsort
SELECT - 38 + + ( 60 + 39 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT - 47 * COUNT( * ) + + 19 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-2230
SELECT - 47 * COUNT ( * ) + + 19 AS col1
----
-28

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

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

query I rowsort
SELECT DISTINCT 43 * 63
----
2709

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT DISTINCT + COUNT( * ) - + 60
----
-59

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT + COUNT ( * ) - + 60
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT COUNT( 46 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2234
SELECT COUNT ( 46 ) col1
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2236
SELECT + 36 + + COALESCE ( - 32, + CAST( + MAX( - 14 ) AS SIGNED ), - 69 )
----
4

skipif mysql # not compatible
query I rowsort label-2236
SELECT + 36 + + COALESCE ( - 32, + CAST ( + MAX ( - 14 ) AS INTEGER ), - 69 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT - MIN( - 17 ) col0
----
17

skipif mysql # not compatible
query I rowsort label-2237
SELECT - MIN ( - 17 ) col0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2238
SELECT DISTINCT - + 50 * NULLIF ( CAST( NULL AS SIGNED ) / + 13, - 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT - + 50 * NULLIF ( CAST ( NULL AS INTEGER ) / + 13, - 47 )
----
NULL

query I rowsort
SELECT + - 7 * 24 AS col1
----
-168

query I rowsort
SELECT - - 63 - ( + 60 ) AS col0
----
3

query I rowsort
SELECT - 95 * 87 col0
----
-8265

query I rowsort
SELECT + 78 + + 11 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT + + 80 + + COUNT( 56 ) col0
----
81

skipif mysql # not compatible
query I rowsort label-2243
SELECT + + 80 + + COUNT ( 56 ) col0
----
81

query I rowsort
SELECT + - 8 * + 48 - + 47 * 38
----
-2170

onlyif mysql # DIV for integer division: 
query I rowsort label-2245
SELECT DISTINCT 82 DIV 70 + + 68
----
69

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT 82 / 70 + + 68
----
69

query I rowsort
SELECT + CASE 15 WHEN - 14 THEN + 21 WHEN 93 * 65 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2247
SELECT ALL - - 37 DIV ( + 40 ) + 23 * + 51 col0
----
1173

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL - - 37 / ( + 40 ) + 23 * + 51 col0
----
1173

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT + NULLIF ( 6, 85 - 94 / 11 ) * + CASE COUNT( * ) * - 29 WHEN - 86 / - MIN( + 47 ) THEN NULL ELSE + ( + COUNT( * ) ) + - 72 * 37 END
----
-15978

skipif mysql # not compatible
query I rowsort label-2248
SELECT + NULLIF ( 6, 85 - 94 / 11 ) * + CASE COUNT ( * ) * - 29 WHEN - 86 / - MIN ( + 47 ) THEN NULL ELSE + ( + COUNT ( * ) ) + - 72 * 37 END
----
-15978

query I rowsort
SELECT - + CASE 5 WHEN 43 * + 17 THEN 24 WHEN ( ( ( ( ( - 33 ) ) ) ) ) + ( - 65 ) THEN NULL WHEN 58 THEN NULL END * + ( + 94 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2250
SELECT DISTINCT - - 84 DIV - 46 + 52
----
51

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT - - 84 / - 46 + 52
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT 77 * - ( + 36 ) - COUNT( * )
----
-2773

skipif mysql # not compatible
query I rowsort label-2251
SELECT 77 * - ( + 36 ) - COUNT ( * )
----
-2773

query I rowsort
SELECT ALL + 73 * + + 93 + 3 AS col0
----
6792

query I rowsort
SELECT + 62 * + 30 * 36
----
66960

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

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

query I rowsort
SELECT 78 * + 7 + - 98
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT ALL - 5 * + - NULLIF ( SUM( NULLIF ( 27, 22 + + 26 ) ), 78 * COUNT( * ) ) AS col2
----
135

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL - 5 * + - NULLIF ( SUM ( NULLIF ( 27, 22 + + 26 ) ), 78 * COUNT ( * ) ) AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT ALL - MIN( 46 ) * 34 - - COUNT( * )
----
-1563

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL - MIN ( 46 ) * 34 - - COUNT ( * )
----
-1563

query I rowsort
SELECT DISTINCT - 87 * 77
----
-6699

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2260
SELECT ALL 6 * - ( ( ( - 66 ) ) ) * + CAST( NULL AS SIGNED ) - CASE CAST( NULL AS SIGNED ) WHEN - 28 - - 63 THEN NULL WHEN ( 3 ) + + 93 THEN 89 WHEN 73 * + 52 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL 6 * - ( ( ( - 66 ) ) ) * + CAST ( NULL AS INTEGER ) - CASE CAST ( NULL AS INTEGER ) WHEN - 28 - - 63 THEN NULL WHEN ( 3 ) + + 93 THEN 89 WHEN 73 * + 52 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 61 * + - 38
----
-2318

query I rowsort
SELECT - 67 * + 47 AS col1
----
-3149

query I rowsort
SELECT + 78 + - 5 + 34
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-2264
SELECT - 84 DIV + 50 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2264
SELECT - 84 / + 50 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2265
SELECT COALESCE ( - + 16, - 34 DIV + 17 - + 9, - 67 DIV - 11 ) col2
----
-16

skipif mysql # not compatible
query I rowsort label-2265
SELECT COALESCE ( - + 16, - 34 / + 17 - + 9, - 67 / - 11 ) col2
----
-16

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2267
SELECT + 55 + - 65 + 64 DIV 58 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-2267
SELECT + 55 + - 65 + 64 / 58 AS col1
----
-9

query I rowsort
SELECT COALESCE ( + - 39, 77 ) AS col1
----
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2269
SELECT - 61 * + CAST( NULL AS DECIMAL ) - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2269
SELECT - 61 * + CAST ( NULL AS REAL ) - 37 AS col1
----
NULL

query I rowsort
SELECT ALL + 43 * - 29 col1
----
-1247

onlyif mysql # DIV for integer division: 
query I rowsort label-2271
SELECT 66 DIV 5
----
13

skipif mysql # not compatible
query I rowsort label-2271
SELECT 66 / 5
----
13

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

skipif mysql # not compatible
query I rowsort label-2272
SELECT - - CAST ( - CAST ( - COUNT ( * ) AS REAL ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2273
SELECT - 57 + + 4 * CAST( - 98 AS SIGNED ) AS col0
----
-449

skipif mysql # not compatible
query I rowsort label-2273
SELECT - 57 + + 4 * CAST ( - 98 AS INTEGER ) AS col0
----
-449

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT 88 + 91 + 97 * ( SUM( ALL 71 ) + + 84 ) * 53 AS col0
----
797034

skipif mysql # not compatible
query I rowsort label-2274
SELECT 88 + 91 + 97 * ( SUM ( ALL 71 ) + + 84 ) * 53 AS col0
----
797034

onlyif mysql # DIV for integer division: 
query I rowsort label-2275
SELECT - 40 - + 99 DIV + 91
----
-41

skipif mysql # not compatible
query I rowsort label-2275
SELECT - 40 - + 99 / + 91
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT 34 + MAX( 65 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-2276
SELECT 34 + MAX ( 65 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT 77 - MIN( - 1 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-2277
SELECT 77 - MIN ( - 1 ) AS col2
----
78

query I rowsort
SELECT + 63 * + 34
----
2142

query I rowsort
SELECT 24 + - 35 col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT ALL ( - + COUNT( ALL + 54 ) ) + 5
----
4

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL ( - + COUNT ( ALL + 54 ) ) + 5
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2281
SELECT DISTINCT - CASE - - 35 WHEN 29 THEN - ( + NULLIF ( + COUNT( * ), + COUNT( * ) + + 64 * + 98 ) ) WHEN - 57 * + ( SUM( ALL - 8 ) ) + - NULLIF ( - 99 - CAST( 71 AS DECIMAL ), 83 * 6 - + COUNT( * ) * - COUNT( * ) ) DIV SUM( ALL - 83 - - 95 * - NULLIF ( + 79, + 55 + - 90 ) ) THEN - SUM( + 80 ) WHEN + 35 THEN 83 DIV + 37 + + COUNT( * ) DIV + 64 ELSE + 62 END + 99 * 43 AS col0
----
4255

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT - CASE - - 35 WHEN 29 THEN - ( + NULLIF ( + COUNT ( * ), + COUNT ( * ) + + 64 * + 98 ) ) WHEN - 57 * + ( SUM ( ALL - 8 ) ) + - NULLIF ( - 99 - CAST ( 71 AS REAL ), 83 * 6 - + COUNT ( * ) * - COUNT ( * ) ) / SUM ( ALL - 83 - - 95 * - NULLIF ( + 79, + 55 + - 90 ) ) THEN - SUM ( + 80 ) WHEN + 35 THEN 83 / + 37 + + COUNT ( * ) / + 64 ELSE + 62 END + 99 * 43 AS col0
----
4255

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT ALL MIN( ALL 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL MIN ( ALL 25 ) AS col1
----
25

query I rowsort
SELECT 3 + + 54
----
57

query I rowsort
SELECT ALL + 71 + ( - 73 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2285
SELECT DISTINCT 82 + + 72 - - CAST( NULL AS SIGNED ) * COUNT( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2285
SELECT DISTINCT 82 + + 72 - - CAST ( NULL AS INTEGER ) * COUNT ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT DISTINCT CASE - 49 WHEN - COUNT( ALL 64 ) THEN COUNT( + 96 ) * - 37 WHEN - ( ( + 3 ) ) THEN 11 / - 37 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT CASE - 49 WHEN - COUNT ( ALL 64 ) THEN COUNT ( + 96 ) * - 37 WHEN - ( ( + 3 ) ) THEN 11 / - 37 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2287
SELECT + + CAST( - 60 AS SIGNED ) DIV + ( + 87 ) + - 56 * + COUNT( * ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-2287
SELECT + + CAST ( - 60 AS INTEGER ) / + ( + 87 ) + - 56 * + COUNT ( * ) AS col1
----
-56

query I rowsort
SELECT 13 + - 60
----
-47

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

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

query I rowsort
SELECT DISTINCT + 88 + + 28 AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT ALL 15 + ( - 11 ) + - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL 15 + ( - 11 ) + - COUNT ( * )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2292
SELECT DISTINCT CASE - CAST( NULL AS SIGNED ) WHEN 28 + + 3 THEN - ( 30 ) WHEN 2 THEN NULL ELSE NULL END * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT CASE - CAST ( NULL AS INTEGER ) WHEN 28 + + 3 THEN - ( 30 ) WHEN 2 THEN NULL ELSE NULL END * - 44
----
NULL

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

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

query I rowsort
SELECT COALESCE ( - 67, - + 86, - 45, 9 ) * 25
----
-1675

onlyif mysql # aggregate syntax: 
query II rowsort label-2295
SELECT ALL - 89, - ( + SUM( DISTINCT + 62 ) ) + 47 AS col1
----
-89
-15

skipif mysql # not compatible
query II rowsort label-2295
SELECT ALL - 89, - ( + SUM ( DISTINCT + 62 ) ) + 47 AS col1
----
-89
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2296
SELECT - 2 / - 38 + - ( 5 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2296
SELECT - 2 / - 38 + - ( 5 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT ALL 79 - + 11 + ( + 40 ) * COALESCE ( 84, + SUM( + 30 ) * 17 ) AS col2
----
3428

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL 79 - + 11 + ( + 40 ) * COALESCE ( 84, + SUM ( + 30 ) * 17 ) AS col2
----
3428

query I rowsort
SELECT 1 * 57 + 73
----
130

query I rowsort
SELECT 41 - 25 AS col0
----
16

query I rowsort
SELECT ( + 96 ) * 69 + 88 AS col1
----
6712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2301
SELECT CAST( + MIN( + + 5 ) AS SIGNED ) + 65 * + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-2301
SELECT CAST ( + MIN ( + + 5 ) AS INTEGER ) + 65 * + COUNT ( * )
----
70

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

skipif mysql # not compatible
query II rowsort label-2302
SELECT ALL - 95 AS col1, - COUNT ( * )
----
-95
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2304
SELECT 75 AS col0, + COUNT( ALL - 62 ) AS col1
----
75
1

skipif mysql # not compatible
query II rowsort label-2304
SELECT 75 AS col0, + COUNT ( ALL - 62 ) AS col1
----
75
1

query I rowsort
SELECT 69 + + - 49
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2306
SELECT CAST( NULL AS SIGNED ) + + 43 / + CAST( NULL AS SIGNED ) * 66 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT DISTINCT - COALESCE ( COUNT( * ), NULLIF ( 6, + 60 * - 6 + + 26 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT - COALESCE ( COUNT ( * ), NULLIF ( 6, + 60 * - 6 + + 26 ) )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2308
SELECT 38 * - ( 88 ) + + CAST( NULL AS DECIMAL ) * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-2308
SELECT 38 * - ( 88 ) + + CAST ( NULL AS REAL ) * - 24
----
NULL

query I rowsort
SELECT 69 * - 86 AS col2
----
-5934

onlyif mysql # aggregate syntax: 
query II rowsort label-2310
SELECT 10 col0, 45 + COUNT( * ) + NULLIF ( + 51, + 27 * + 64 - + 32 ) * 81
----
10
4177

skipif mysql # not compatible
query II rowsort label-2310
SELECT 10 col0, 45 + COUNT ( * ) + NULLIF ( + 51, + 27 * + 64 - + 32 ) * 81
----
10
4177

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

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

query I rowsort
SELECT ALL 85 + + 85 AS col0
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT 0 + - COUNT( * ) + - ( + MIN( DISTINCT + 40 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-2313
SELECT 0 + - COUNT ( * ) + - ( + MIN ( DISTINCT + 40 ) )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT + COUNT( * ) + 17 + MIN( DISTINCT - COALESCE ( 21, 13, - 93 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-2314
SELECT + COUNT ( * ) + 17 + MIN ( DISTINCT - COALESCE ( 21, 13, - 93 ) )
----
-3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2316
SELECT - 21, + 91 * COALESCE ( - ( COUNT( + 7 ) ), - 64 * - 94 ) AS col2
----
-21
-91

skipif mysql # not compatible
query II rowsort label-2316
SELECT - 21, + 91 * COALESCE ( - ( COUNT ( + 7 ) ), - 64 * - 94 ) AS col2
----
-21
-91

query I rowsort
SELECT 92 + + 30 + 52 * ( 95 ) * + 73 AS col2
----
360742

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

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

query I rowsort
SELECT ALL + 91 + + - 86 AS col1
----
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT ALL - - 78 + COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL - - 78 + COUNT ( * ) AS col2
----
79

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

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT + - COUNT ( * ) / 67 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2323
SELECT 18 DIV 25
----
0

skipif mysql # not compatible
query I rowsort label-2323
SELECT 18 / 25
----
0

query I rowsort
SELECT ALL + + 65 * + 78 AS col0
----
5070

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT COALESCE ( - ( + + SUM( DISTINCT - 34 ) ), - 58 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-2325
SELECT COALESCE ( - ( + + SUM ( DISTINCT - 34 ) ), - 58 ) AS col0
----
34

query II rowsort
SELECT - - 82 AS col2, 28 AS col2
----
82
28

query I rowsort
SELECT + 63 + + 13 + + + 36
----
112

query I rowsort
SELECT DISTINCT + 17 + + 12 * - 93 - 83
----
-1182

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2330
SELECT DISTINCT - + COUNT( * ) * - - 59 - + 89 DIV 93 - 17 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT - + COUNT ( * ) * - - 59 - + 89 / 93 - 17 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT DISTINCT - 19 * 1 * - 90 - + COUNT( * )
----
1709

skipif mysql # not compatible
query I rowsort label-2331
SELECT DISTINCT - 19 * 1 * - 90 - + COUNT ( * )
----
1709

query I rowsort
SELECT 14 * 37 + - - 12
----
530

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT MAX( - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-2333
SELECT MAX ( - 72 )
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2334
SELECT CASE - 21 WHEN - + CAST( NULL AS SIGNED ) + + - 49 THEN 87 + 41 * + 43 ELSE 41 END * - 6 AS col1
----
-246

skipif mysql # not compatible
query I rowsort label-2334
SELECT CASE - 21 WHEN - + CAST ( NULL AS INTEGER ) + + - 49 THEN 87 + 41 * + 43 ELSE 41 END * - 6 AS col1
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT COUNT( * ) * - - 43 col2
----
43

skipif mysql # not compatible
query I rowsort label-2335
SELECT COUNT ( * ) * - - 43 col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-2336
SELECT COUNT( DISTINCT 5 ) AS col0, + ( CASE + 97 WHEN + 6 * 4 THEN + 71 END ) * + 73 + 33 col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2336
SELECT COUNT ( DISTINCT 5 ) AS col0, + ( CASE + 97 WHEN + 6 * 4 THEN + 71 END ) * + 73 + 33 col1
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2337
SELECT ALL CAST( - 73 AS SIGNED ) * + + ( 39 ) + - ( + MIN( ALL ( ( 14 ) ) ) ) * - ( - 64 ) AS col0
----
-3743

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL CAST ( - 73 AS INTEGER ) * + + ( 39 ) + - ( + MIN ( ALL ( ( 14 ) ) ) ) * - ( - 64 ) AS col0
----
-3743

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2338
SELECT DISTINCT - CAST( 83 AS SIGNED ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT - CAST ( 83 AS INTEGER ) AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2339
SELECT NULLIF ( - 1, - - 80 * + 48 * NULLIF ( - 68, CASE - COUNT( - CAST( + 0 AS SIGNED ) ) WHEN 24 THEN NULL WHEN + 1 THEN COUNT( DISTINCT 22 ) + + COUNT( * ) ELSE 71 END - 76 DIV - COUNT( * ) ) ) DIV 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2339
SELECT NULLIF ( - 1, - - 80 * + 48 * NULLIF ( - 68, CASE - COUNT ( - CAST ( + 0 AS INTEGER ) ) WHEN 24 THEN NULL WHEN + 1 THEN COUNT ( DISTINCT 22 ) + + COUNT ( * ) ELSE 71 END - 76 / - COUNT ( * ) ) ) / 72 AS col2
----
0

query I rowsort
SELECT ALL 19 * 25 * + 29 * 37
----
509675

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT COUNT( ALL - ( - 42 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2341
SELECT COUNT ( ALL - ( - 42 ) )
----
1

query I rowsort
SELECT DISTINCT 54 + - + 93 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT DISTINCT 25 * + - COUNT( * ) * - 94 AS col1
----
2350

skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT 25 * + - COUNT ( * ) * - 94 AS col1
----
2350

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT MIN( DISTINCT - - 69 )
----
69

skipif mysql # not compatible
query I rowsort label-2344
SELECT MIN ( DISTINCT - - 69 )
----
69

query I rowsort
SELECT + 65 + - + NULLIF ( - 25, ( + 1 ) + - 80 * + 7 ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT + - MAX( - 15 ) + + 65 / + + CASE - 85 WHEN 56 + COUNT( * ) THEN + 80 WHEN - NULLIF ( + 91, + 98 ) THEN NULL WHEN - 98 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT + - MAX ( - 15 ) + + 65 / + + CASE - 85 WHEN 56 + COUNT ( * ) THEN + 80 WHEN - NULLIF ( + 91, + 98 ) THEN NULL WHEN - 98 THEN NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT ALL + 95 + + + 42 + + 50 + 91 - - 18 * - 94 * - CAST( 48 AS SIGNED )
----
81494

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL + 95 + + + 42 + + 50 + 91 - - 18 * - 94 * - CAST ( 48 AS INTEGER )
----
81494

query I rowsort
SELECT ALL 19 + - 23
----
-4

query I rowsort
SELECT ALL 58 + - + 6 + - 81
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2351
SELECT + 2 + 36 AS col2, NULLIF ( 60, + 29 ) DIV COUNT( * )
----
38
60

skipif mysql # not compatible
query II rowsort label-2351
SELECT + 2 + 36 AS col2, NULLIF ( 60, + 29 ) / COUNT ( * )
----
38
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT ALL + 24 * - SUM( ALL - + 28 )
----
672

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL + 24 * - SUM ( ALL - + 28 )
----
672

query I rowsort
SELECT DISTINCT + 13 * + 52
----
676

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2355
SELECT ALL - CAST( - + 31 AS SIGNED ) * - 57 * + 66
----
-116622

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL - CAST ( - + 31 AS INTEGER ) * - 57 * + 66
----
-116622

query I rowsort
SELECT + - 74 + - 11
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT - - 69 - COUNT( * ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-2357
SELECT - - 69 - COUNT ( * ) AS col0
----
68

query I rowsort
SELECT - + 94 + - ( - 25 )
----
-69

query I rowsort
SELECT ALL - 88 - - 57 - + 76 * + + 3 * NULLIF ( - 95, 19 - 83 )
----
21629

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT DISTINCT + CASE + NULLIF ( - 23, + - 76 * + 9 ) WHEN + 64 + + 1 THEN NULL ELSE ( - COUNT( * ) ) END - ( + 69 + - 56 ) * SUM( - 14 )
----
181

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT + CASE + NULLIF ( - 23, + - 76 * + 9 ) WHEN + 64 + + 1 THEN NULL ELSE ( - COUNT ( * ) ) END - ( + 69 + - 56 ) * SUM ( - 14 )
----
181

query II rowsort
SELECT - 18 + - 29, + 26 AS col0
----
-47
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2363
SELECT - 32 + + 82 + 47 * - 76 * - CAST( NULL AS SIGNED ) * 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2363
SELECT - 32 + + 82 + 47 * - 76 * - CAST ( NULL AS INTEGER ) * 26 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2364
SELECT ALL - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * - 17, - 43 AS col2
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-2364
SELECT ALL - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * - 17, - 43 AS col2
----
NULL
-43

query I rowsort
SELECT - 91 * 79 col1
----
-7189

onlyif mysql # DIV for integer division: 
query I rowsort label-2366
SELECT - ( - ( + 29 ) ) DIV + + 28 + 32 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-2366
SELECT - ( - ( + 29 ) ) / + + 28 + 32 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT DISTINCT + CASE + 48 WHEN 68 THEN - + 73 + - + 86 WHEN - 64 * AVG ( ALL ( + 92 ) ) THEN NULL WHEN + 45 - - MAX( DISTINCT 94 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2367
SELECT DISTINCT + CASE + 48 WHEN 68 THEN - + 73 + - + 86 WHEN - 64 * AVG ( ALL ( + 92 ) ) THEN NULL WHEN + 45 - - MAX ( DISTINCT 94 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 55 + 84
----
29

query I rowsort
SELECT ALL + 83 * + + 54
----
4482

query I rowsort
SELECT - 32 * 61
----
-1952

query I rowsort
SELECT DISTINCT - ( - 96 ) * + 22 AS col1
----
2112

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2373
SELECT 74 * - 45 + - 98, - 80 DIV 29 AS col0
----
-3428
-2

skipif mysql # not compatible
query II rowsort label-2373
SELECT 74 * - 45 + - 98, - 80 / 29 AS col0
----
-3428
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT ALL + CAST( - 41 AS SIGNED ) * + + 99 AS col2
----
-4059

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL + CAST ( - 41 AS INTEGER ) * + + 99 AS col2
----
-4059

onlyif mysql # DIV for integer division: 
query I rowsort label-2375
SELECT + 55 DIV 30 + + + 50 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-2375
SELECT + 55 / 30 + + + 50 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT DISTINCT + ( - COUNT( - NULLIF ( - 38, + - 56 + 2 / - 26 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT + ( - COUNT ( - NULLIF ( - 38, + - 56 + 2 / - 26 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT ALL 74 * - 76 * - ( + 97 ) + MIN( DISTINCT - 44 )
----
545484

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL 74 * - 76 * - ( + 97 ) + MIN ( DISTINCT - 44 )
----
545484

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

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

query I rowsort
SELECT - 66 * + 78 col1
----
-5148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2380
SELECT ( + + CAST( NULL AS SIGNED ) ) * + 57 + - + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-2380
SELECT ( + + CAST ( NULL AS INTEGER ) ) * + 57 + - + 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT ALL COUNT( * ) * + 9 * - 66 + - - COUNT( * ) AS col2
----
-593

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL COUNT ( * ) * + 9 * - 66 + - - COUNT ( * ) AS col2
----
-593

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2383
SELECT + 11 * + COUNT( * ) + - + CASE - 96 WHEN + 22 THEN NULL WHEN 50 THEN - 81 * + COALESCE ( CASE - 49 WHEN - 90 + - COUNT( * ) * - 86 THEN NULL ELSE + CAST( NULL AS SIGNED ) * 46 END * + 1, 0, + AVG ( + 66 ) * - 26 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2383
SELECT + 11 * + COUNT ( * ) + - + CASE - 96 WHEN + 22 THEN NULL WHEN 50 THEN - 81 * + COALESCE ( CASE - 49 WHEN - 90 + - COUNT ( * ) * - 86 THEN NULL ELSE + CAST ( NULL AS INTEGER ) * 46 END * + 1, 0, + AVG ( + 66 ) * - 26 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2384
SELECT NULLIF ( + - MAX( ALL + 98 ), + 3 * - 52 / 85 - - ( + 39 ) * - CAST( NULL AS SIGNED ) ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-2384
SELECT NULLIF ( + - MAX ( ALL + 98 ), + 3 * - 52 / 85 - - ( + 39 ) * - CAST ( NULL AS INTEGER ) ) AS col2
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2385
SELECT ALL 99 * - CAST( - 42 AS SIGNED ) * - 86 + + 96 + + 69 * 13 AS col0
----
-356595

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL 99 * - CAST ( - 42 AS INTEGER ) * - 86 + + 96 + + 69 * 13 AS col0
----
-356595

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT DISTINCT 36 * - + 28 + - 41 + + - 51 * + SUM( ALL + 85 )
----
-5384

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT 36 * - + 28 + - 41 + + - 51 * + SUM ( ALL + 85 )
----
-5384

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT ALL - + 74 / CASE + + 71 WHEN - 8 THEN NULL WHEN - - 70 THEN + 62 - 80 WHEN 26 + COUNT( * ) * - 25 THEN + 48 END / 59 + - COUNT( * ) * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL - + 74 / CASE + + 71 WHEN - 8 THEN NULL WHEN - - 70 THEN + 62 - 80 WHEN 26 + COUNT ( * ) * - 25 THEN + 48 END / 59 + - COUNT ( * ) * 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2388
SELECT ALL 3 * COALESCE ( - - 95, - 75 * 74 + ( 61 ) * CAST( NULL AS SIGNED ) ) + ( - 72 + + COUNT( * ) * 74 )
----
287

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL 3 * COALESCE ( - - 95, - 75 * 74 + ( 61 ) * CAST ( NULL AS INTEGER ) ) + ( - 72 + + COUNT ( * ) * 74 )
----
287

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT + + COUNT( ALL ( + 30 ) ) * + 25 + 44 + 18 * - 12
----
-147

skipif mysql # not compatible
query I rowsort label-2389
SELECT + + COUNT ( ALL ( + 30 ) ) * + 25 + 44 + 18 * - 12
----
-147

query I rowsort
SELECT ALL 86 * + 64 + - 62 + - + 78 * + - 62 col1
----
10278

query I rowsort
SELECT DISTINCT - 75 * + 70 AS col0
----
-5250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2392
SELECT + - COUNT( * ) AS col2, 87 + + 49 + CAST( NULL AS SIGNED ) + 86 + - 55
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2392
SELECT + - COUNT ( * ) AS col2, 87 + + 49 + CAST ( NULL AS INTEGER ) + 86 + - 55
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2393
SELECT ALL - CASE + + 76 WHEN 41 + - 88 THEN NULL WHEN + AVG ( ALL + 98 ) + + 70 * COALESCE ( 57 * 53, 69 * + 76 - CAST( - COUNT( * ) AS SIGNED ) * 29, 53, + ( 42 ) ) THEN COUNT( ALL + 42 ) * + 30 ELSE + 81 END * + 93 + - 22 AS col2
----
-7555

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL - CASE + + 76 WHEN 41 + - 88 THEN NULL WHEN + AVG ( ALL + 98 ) + + 70 * COALESCE ( 57 * 53, 69 * + 76 - CAST ( - COUNT ( * ) AS INTEGER ) * 29, 53, + ( 42 ) ) THEN COUNT ( ALL + 42 ) * + 30 ELSE + 81 END * + 93 + - 22 AS col2
----
-7555

query I rowsort
SELECT DISTINCT - COALESCE ( ( - 82 ), 38 ) * + - 33 AS col0
----
-2706

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2395
SELECT ALL - ( CAST( NULL AS SIGNED ) ) * + 23 AS col1, 18
----
NULL
18

skipif mysql # not compatible
query II rowsort label-2395
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) * + 23 AS col1, 18
----
NULL
18

query I rowsort
SELECT ( - 95 ) col1
----
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT + 22 + + + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-2398
SELECT + 22 + + + COUNT ( * )
----
23

query I rowsort
SELECT + 62 * + - 34
----
-2108

onlyif mysql # DIV for integer division: 
query I rowsort label-2400
SELECT DISTINCT + 59 DIV - 60 * 95 - + 43
----
-43

skipif mysql # not compatible
query I rowsort label-2400
SELECT DISTINCT + 59 / - 60 * 95 - + 43
----
-43

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

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

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

query I rowsort
SELECT - + NULLIF ( 30, - ( + + 44 ) * + - 42 ) AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2404
SELECT + 38 + - - 43 DIV + + 43 - - NULLIF ( 63, - NULLIF ( - 68, - 65 ) ) col0
----
102

skipif mysql # not compatible
query I rowsort label-2404
SELECT + 38 + - - 43 / + + 43 - - NULLIF ( 63, - NULLIF ( - 68, - 65 ) ) col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT ALL COUNT( ALL 80 )
----
1

skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL COUNT ( ALL 80 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT - MIN( + 22 ) + - 15
----
-37

skipif mysql # not compatible
query I rowsort label-2406
SELECT - MIN ( + 22 ) + - 15
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-2407
SELECT + 32 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-2407
SELECT + 32 / 83
----
0

query I rowsort
SELECT ALL - 42 + - 80
----
-122

query I rowsort
SELECT DISTINCT 55 * + 74 AS col1
----
4070

onlyif mysql # aggregate syntax: 
query II rowsort label-2410
SELECT ALL 77 AS col1, - CASE 56 WHEN MIN( + - ( + 75 ) ) + ( 76 + + 20 ) THEN NULL WHEN - 6 / - 91 THEN - 53 WHEN 16 THEN NULL END * 13 AS col2
----
77
NULL

skipif mysql # not compatible
query II rowsort label-2410
SELECT ALL 77 AS col1, - CASE 56 WHEN MIN ( + - ( + 75 ) ) + ( 76 + + 20 ) THEN NULL WHEN - 6 / - 91 THEN - 53 WHEN 16 THEN NULL END * 13 AS col2
----
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT DISTINCT - 24 + MAX( ALL - ( + 77 ) ) + + 72 * + - 27
----
-2045

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT - 24 + MAX ( ALL - ( + 77 ) ) + + 72 * + - 27
----
-2045

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2412
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2412
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 87 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 25 + - - 20
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2414
SELECT COUNT( * ) DIV + 33 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2414
SELECT COUNT ( * ) / + 33 AS col1
----
0

query I rowsort
SELECT ALL - 7 + ( - ( - 21 ) ) + + ( - 68 )
----
-54

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

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

query II rowsort
SELECT 7 AS col1, - 71 + - + 98 AS col0
----
7
-169

query I rowsort
SELECT ALL + 80 + + 3 + + + 96
----
179

onlyif mysql # DIV for integer division: 
query I rowsort label-2419
SELECT 75 DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-2419
SELECT 75 / 45
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2420
SELECT ALL 42 * MAX( + ( - 28 ) ) AS col0, + 18
----
-1176
18

skipif mysql # not compatible
query II rowsort label-2420
SELECT ALL 42 * MAX ( + ( - 28 ) ) AS col0, + 18
----
-1176
18

query I rowsort
SELECT ALL - 53 * + 45 * - 77 AS col0
----
183645

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

skipif mysql # not compatible
query I rowsort label-2422
SELECT + 57 * + - COUNT ( * ) / + + 61
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2423
SELECT ALL - + 31, + SUM( + ( - 17 ) ) AS col0
----
-31
-17

skipif mysql # not compatible
query II rowsort label-2423
SELECT ALL - + 31, + SUM ( + ( - 17 ) ) AS col0
----
-31
-17

query I rowsort
SELECT DISTINCT - 46 * 77 AS col0
----
-3542

query I rowsort
SELECT ALL + 87 - 77 * - 32 + + 12 AS col0
----
2563

query II rowsort
SELECT 19 AS col2, 25 + - 59 AS col0
----
19
-34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2427
SELECT + + ( + CASE - CAST( + 78 AS DECIMAL ) WHEN - - MAX( + + ( 47 ) ) + - 89 THEN 77 * 67 ELSE - 24 END )
----
-24

skipif mysql # not compatible
query I rowsort label-2427
SELECT + + ( + CASE - CAST ( + 78 AS REAL ) WHEN - - MAX ( + + ( 47 ) ) + - 89 THEN 77 * 67 ELSE - 24 END )
----
-24

query II rowsort
SELECT ALL - 67 AS col1, 5
----
-67
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2429
SELECT - 23 + 57, COUNT( * ) AS col1
----
34
1

skipif mysql # not compatible
query II rowsort label-2429
SELECT - 23 + 57, COUNT ( * ) AS col1
----
34
1

query I rowsort
SELECT 54 * - + 98 * - 88
----
465696

onlyif mysql # aggregate syntax: 
query III rowsort label-2431
SELECT ALL - COUNT( * ) AS col2, + COUNT( * ) AS col2, - + 37
----
-1
1
-37

skipif mysql # not compatible
query III rowsort label-2431
SELECT ALL - COUNT ( * ) AS col2, + COUNT ( * ) AS col2, - + 37
----
-1
1
-37

query I rowsort
SELECT 34 * - - 25
----
850

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2434
SELECT ALL - 2 DIV 29 DIV - 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL - 2 / 29 / - 29 AS col2
----
0

query I rowsort
SELECT ALL + 80 * + 25 col0
----
2000

query I rowsort
SELECT 57 * + 26
----
1482

query I rowsort
SELECT NULLIF ( - 47, - - 58 + - + 52 )
----
-47

query I rowsort
SELECT + 14 + + + 83
----
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT - 67 + - - 2 + SUM( DISTINCT - + 21 ) + + SUM( - - 47 ) * + 57
----
2593

skipif mysql # not compatible
query I rowsort label-2440
SELECT - 67 + - - 2 + SUM ( DISTINCT - + 21 ) + + SUM ( - - 47 ) * + 57
----
2593

query I rowsort
SELECT 95 - - 95
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT 24 * - 65 * + COUNT( * )
----
-1560

skipif mysql # not compatible
query I rowsort label-2442
SELECT 24 * - 65 * + COUNT ( * )
----
-1560

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2444
SELECT ALL 44 + + 61, COUNT( * ) + + - 41 + COUNT( * ) AS col1
----
105
-39

skipif mysql # not compatible
query II rowsort label-2444
SELECT ALL 44 + + 61, COUNT ( * ) + + - 41 + COUNT ( * ) AS col1
----
105
-39

query I rowsort
SELECT ALL 3 + 6
----
9

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

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

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

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL CAST ( NULL AS INTEGER ) + + 11 + 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT 40 + - 50 - COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-2448
SELECT 40 + - 50 - COUNT ( * ) AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2449
SELECT DISTINCT 2 * COALESCE ( + 74, + + 91 * 86 * - 38 * + SUM( DISTINCT 71 ) + + CAST( NULL AS SIGNED ) * 19 + + COALESCE ( 83, 20 * NULLIF ( 43 DIV ( + COUNT( * ) ), 20 ) ) * 16 )
----
148

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT 2 * COALESCE ( + 74, + + 91 * 86 * - 38 * + SUM ( DISTINCT 71 ) + + CAST ( NULL AS INTEGER ) * 19 + + COALESCE ( 83, 20 * NULLIF ( 43 / ( + COUNT ( * ) ), 20 ) ) * 16 )
----
148

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT + COUNT( ALL - - 95 )
----
1

skipif mysql # not compatible
query I rowsort label-2451
SELECT + COUNT ( ALL - - 95 )
----
1

query II rowsort
SELECT ALL 37 * - 71 AS col0, 94
----
-2627
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2453
SELECT ALL - NULLIF ( - + 20, CAST( 69 AS SIGNED ) )
----
20

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL - NULLIF ( - + 20, CAST ( 69 AS INTEGER ) )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-2454
SELECT 12 * + - 80 + 1 * + - 61 * + COUNT( * ) AS col1, - 29
----
-1021
-29

skipif mysql # not compatible
query II rowsort label-2454
SELECT 12 * + - 80 + 1 * + - 61 * + COUNT ( * ) AS col1, - 29
----
-1021
-29

query II rowsort
SELECT DISTINCT 42 + + 93 + + ( - 73 ) * - 18 AS col1, 82 AS col2
----
1449
82

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

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

query I rowsort
SELECT + 3 * - NULLIF ( + 93, - - 49 ) + - + 44 * ( 50 )
----
-2479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2458
SELECT DISTINCT - MAX( ALL - + CAST( + + 49 AS SIGNED ) ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT - MAX ( ALL - + CAST ( + + 49 AS INTEGER ) ) AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2459
SELECT 94 + AVG ( ALL 48 ) / - CAST( NULL AS DECIMAL ) * - ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT 94 + AVG ( ALL 48 ) / - CAST ( NULL AS REAL ) * - ( + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2460
SELECT DISTINCT - 58 - - + CASE + 4 WHEN 92 * - COUNT( + - 66 ) + + 44 - CASE 43 WHEN 41 + + SUM( DISTINCT - CAST( ( 71 ) AS SIGNED ) ) THEN - MAX( 9 ) END THEN 68 WHEN 96 THEN NULL ELSE NULL END + 96 * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT - 58 - - + CASE + 4 WHEN 92 * - COUNT ( + - 66 ) + + 44 - CASE 43 WHEN 41 + + SUM ( DISTINCT - CAST ( ( 71 ) AS INTEGER ) ) THEN - MAX ( 9 ) END THEN 68 WHEN 96 THEN NULL ELSE NULL END + 96 * 84
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2461
SELECT - 99 * - 82 AS col2, COUNT( DISTINCT 63 )
----
8118
1

skipif mysql # not compatible
query II rowsort label-2461
SELECT - 99 * - 82 AS col2, COUNT ( DISTINCT 63 )
----
8118
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2462
SELECT 92 * - - COUNT( * ) col2, + ( + 30 ) AS col2
----
92
30

skipif mysql # not compatible
query II rowsort label-2462
SELECT 92 * - - COUNT ( * ) col2, + ( + 30 ) AS col2
----
92
30

query I rowsort
SELECT DISTINCT + 83 - + + 25 * + + 91
----
-2192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2464
SELECT DISTINCT + COUNT( * ) DIV 19 + + 56 + - 99 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT + COUNT ( * ) / 19 + + 56 + - 99 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT ( - ( - COUNT( * ) ) ) * - 22 - + 57 + 8 + + 69 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2465
SELECT ( - ( - COUNT ( * ) ) ) * - 22 - + 57 + 8 + + 69 AS col0
----
-2

query II rowsort
SELECT ALL + 92 * + + ( - 63 ), - 63 AS col0
----
-5796
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2467
SELECT 72 * 14 DIV ( + COUNT( * ) ) + + + 28 AS col2
----
1036

skipif mysql # not compatible
query I rowsort label-2467
SELECT 72 * 14 / ( + COUNT ( * ) ) + + + 28 AS col2
----
1036

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT - 39 * + 99 + COUNT( * ) * - COUNT( * )
----
-3862

skipif mysql # not compatible
query I rowsort label-2468
SELECT - 39 * + 99 + COUNT ( * ) * - COUNT ( * )
----
-3862

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2469
SELECT DISTINCT COALESCE ( - 82, - 10 ) DIV - + 62 + COUNT( DISTINCT 56 ) + - 19
----
-17

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT COALESCE ( - 82, - 10 ) / - + 62 + COUNT ( DISTINCT 56 ) + - 19
----
-17

query I rowsort
SELECT ALL - 1 * - 48 AS col0
----
48

query I rowsort
SELECT DISTINCT 36 * - 92 * - 45 AS col2
----
149040

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT MAX( 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-2472
SELECT MAX ( 88 ) AS col2
----
88

query I rowsort
SELECT 20 * + 58 * - 1 * - 71 AS col2
----
82360

query I rowsort
SELECT + 30 * - 78 col2
----
-2340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2475
SELECT ALL + 24 + - 87 - + 58 DIV + + 44 + + 89 + + + 23 + - 96 * - - COUNT( ALL 24 ) * 45 AS col0
----
-4272

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL + 24 + - 87 - + 58 / + + 44 + + 89 + + + 23 + - 96 * - - COUNT ( ALL 24 ) * 45 AS col0
----
-4272

query II rowsort
SELECT 29 AS col2, - 32
----
29
-32

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

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL SUM ( - 43 )
----
-43

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

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

query I rowsort
SELECT DISTINCT + 43 + 29 + + 17 + + 21
----
110

query II rowsort
SELECT ALL 20, 71 AS col1
----
20
71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2481
SELECT DISTINCT 55 + 48 DIV 97 * - CAST( - + 45 AS SIGNED ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT 55 + 48 / 97 * - CAST ( - + 45 AS INTEGER ) AS col1
----
55

query I rowsort
SELECT - 73 * - - 57
----
-4161

query II rowsort
SELECT 59, - 72 col0
----
59
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT ALL NULLIF ( 27, - AVG ( ( - + 68 ) ) * + COUNT( * ) )
----
27

skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL NULLIF ( 27, - AVG ( ( - + 68 ) ) * + COUNT ( * ) )
----
27

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

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

query II rowsort
SELECT DISTINCT 36, 82 col1
----
36
82

query I rowsort
SELECT ALL 54 + - + 85
----
-31

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2489
SELECT + CAST( - 11 AS SIGNED ) DIV 94 AS col1, - CASE ( 97 ) WHEN - - COUNT( + NULLIF ( + 59, + 67 * 29 ) ) THEN - ( MIN( COALESCE ( - 31, CAST( + 7 AS SIGNED ) ) ) ) * + 38 WHEN + COUNT( * ) + + 57 THEN COUNT( * ) END
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2489
SELECT + CAST ( - 11 AS INTEGER ) / 94 AS col1, - CASE ( 97 ) WHEN - - COUNT ( + NULLIF ( + 59, + 67 * 29 ) ) THEN - ( MIN ( COALESCE ( - 31, CAST ( + 7 AS INTEGER ) ) ) ) * + 38 WHEN + COUNT ( * ) + + 57 THEN COUNT ( * ) END
----
0
NULL

query I rowsort
SELECT ALL 43 * - 11 * + + 95 - 41
----
-44976

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT ALL COUNT( + 46 ) * - + 38
----
-38

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL COUNT ( + 46 ) * - + 38
----
-38

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

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

query I rowsort
SELECT NULLIF ( + 83, 88 ) AS col1
----
83

query I rowsort
SELECT + NULLIF ( + 6, + 34 ) AS col0
----
6

query I rowsort
SELECT + + 65 * + - 88 + 52 + 56 AS col1
----
-5612

query I rowsort
SELECT + 66 * 66
----
4356

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT + MIN( ALL - 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-2498
SELECT + MIN ( ALL - 93 ) AS col0
----
-93

query I rowsort
SELECT DISTINCT 54 * + - 66 AS col2
----
-3564

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2500
SELECT DISTINCT + 14 col1, + 78 DIV + 82 + 0 - + 52 + - - 63 + ( - 62 ) - + COALESCE ( - COUNT( * ) + 1 DIV - 99, COALESCE ( 1, 64 ), 99 ) DIV COUNT( * ) DIV - 80
----
14
-51

skipif mysql # not compatible
query II rowsort label-2500
SELECT DISTINCT + 14 col1, + 78 / + 82 + 0 - + 52 + - - 63 + ( - 62 ) - + COALESCE ( - COUNT ( * ) + 1 / - 99, COALESCE ( 1, 64 ), 99 ) / COUNT ( * ) / - 80
----
14
-51

query I rowsort
SELECT ALL + 35 * - 18 * + - 32 col0
----
20160

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT CASE + - NULLIF ( + + 93, + COUNT( * ) * + 11 ) WHEN + 29 THEN - 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT CASE + - NULLIF ( + + 93, + COUNT ( * ) * + 11 ) WHEN + 29 THEN - 30 END
----
NULL

query I rowsort
SELECT DISTINCT - 2 * + 85
----
-170

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

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL + + CAST ( NULL AS INTEGER ) / 88 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2507
SELECT + CAST( NULL AS SIGNED ) * - 45 / + 48 + - - 49 + 70 * + 49 * 48 * 68 / + 64 - 57 / 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2507
SELECT + CAST ( NULL AS INTEGER ) * - 45 / + 48 + - - 49 + 70 * + 49 * 48 * 68 / + 64 - 57 / 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT + - COUNT( * ) + - CASE WHEN NOT ( COUNT( * ) ) IS NULL THEN + 40 ELSE NULL END col0
----
-41

skipif mysql # not compatible
query I rowsort label-2508
SELECT + - COUNT ( * ) + - CASE WHEN NOT ( COUNT ( * ) ) IS NULL THEN + 40 ELSE NULL END col0
----
-41

query I rowsort
SELECT - - 9 * 54 AS col2
----
486

query I rowsort
SELECT NULLIF ( - - 0, - 48 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2511
SELECT - 41 * + CASE COUNT( * ) WHEN + 2 THEN + - 20 WHEN + - ( 33 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN NULL END * + 70 + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2511
SELECT - 41 * + CASE COUNT ( * ) WHEN + 2 THEN + - 20 WHEN + - ( 33 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN NULL END * + 70 + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT ALL - - 62 * - COUNT( * ) * - 9 + - - 78 + 18 + + 17 + + 25 - 55 * COUNT( * ) * + 21 * 76 AS col1
----
-87084

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL - - 62 * - COUNT ( * ) * - 9 + - - 78 + 18 + + 17 + + 25 - 55 * COUNT ( * ) * + 21 * 76 AS col1
----
-87084

query II rowsort
SELECT - 99 AS col0, 87
----
-99
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT - COUNT( * ) * + + 56 + + - 64 + - + 22 * - 75
----
1530

skipif mysql # not compatible
query I rowsort label-2514
SELECT - COUNT ( * ) * + + 56 + + - 64 + - + 22 * - 75
----
1530

query I rowsort
SELECT DISTINCT ( CASE NULLIF ( - 15, + + 52 ) WHEN 22 THEN - + 66 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2516
SELECT + COUNT( * ) + - NULLIF ( + 82, + 62 ) * - 69 * + COUNT( * ) - - CAST( - - 88 AS SIGNED )
----
5747

skipif mysql # not compatible
query I rowsort label-2516
SELECT + COUNT ( * ) + - NULLIF ( + 82, + 62 ) * - 69 * + COUNT ( * ) - - CAST ( - - 88 AS INTEGER )
----
5747

query I rowsort
SELECT - ( + 42 ) * - 72
----
3024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2518
SELECT ALL CASE + ( ( 27 ) ) WHEN + COUNT( * ) THEN - 19 / - COUNT( * ) * + 62 / NULLIF ( CASE + COUNT( * ) WHEN 56 THEN 18 END, AVG ( + 2 ) + + MAX( + 81 ) * + CAST( NULL AS SIGNED ) ) WHEN 13 THEN 34 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL CASE + ( ( 27 ) ) WHEN + COUNT ( * ) THEN - 19 / - COUNT ( * ) * + 62 / NULLIF ( CASE + COUNT ( * ) WHEN 56 THEN 18 END, AVG ( + 2 ) + + MAX ( + 81 ) * + CAST ( NULL AS INTEGER ) ) WHEN 13 THEN 34 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - - NULLIF ( 41, - 53 ), + 92 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT DISTINCT + 11 - - ( + + COUNT( * ) )
----
12

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT + 11 - - ( + + COUNT ( * ) )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2521
SELECT - CAST( NULL AS SIGNED ) + + 87 + 33 - COUNT( * ) * - AVG ( ALL + 17 ) + 52 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT - CAST ( NULL AS INTEGER ) + + 87 + 33 - COUNT ( * ) * - AVG ( ALL + 17 ) + 52 col1
----
NULL

query II rowsort
SELECT ALL + 94 - 83, - 92 AS col0
----
11
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-2523
SELECT DISTINCT NULLIF ( + 22, - + 54 + 98 ) col0, - SUM( + 54 )
----
22
-54

skipif mysql # not compatible
query II rowsort label-2523
SELECT DISTINCT NULLIF ( + 22, - + 54 + 98 ) col0, - SUM ( + 54 )
----
22
-54

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2525
SELECT DISTINCT CASE 82 WHEN - 57 * 80 THEN + 36 / - 55 WHEN + COUNT( * ) * CAST( NULL AS SIGNED ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT CASE 82 WHEN - 57 * 80 THEN + 36 / - 55 WHEN + COUNT ( * ) * CAST ( NULL AS INTEGER ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + - 15, - + 46 * + 21 )
----
-15

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

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL + 94 / + CAST ( NULL AS INTEGER ) / + 9
----
NULL

query I rowsort
SELECT DISTINCT - 76 * 79 col0
----
-6004

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2530
SELECT + 42 DIV + + 24 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2530
SELECT + 42 / + + 24 AS col1
----
1

query I rowsort
SELECT - 53 + + 73 + + 72
----
92

query I rowsort
SELECT + - 56 + 9 * - 25 + 93 * 57 * + 91 * 13 AS col0
----
6270802

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT - COUNT( * ) + - - COUNT( * ) + - 78 * 5
----
-390

skipif mysql # not compatible
query I rowsort label-2533
SELECT - COUNT ( * ) + - - COUNT ( * ) + - 78 * 5
----
-390

query I rowsort
SELECT DISTINCT + ( + 0 ) * + + 32
----
0

query I rowsort
SELECT 54 * + 60 + 31 - + 97 - + 31 AS col2
----
3143

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT DISTINCT + NULLIF ( - + 81, 9 DIV + 89 ) DIV - 56 - + ( + + 40 )
----
-39

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT + NULLIF ( - + 81, 9 / + 89 ) / - 56 - + ( + + 40 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2537
SELECT ALL + - CAST( 16 AS SIGNED ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL + - CAST ( 16 AS INTEGER ) AS col1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-2538
SELECT ALL - 15 DIV + - 17 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL - 15 / + - 17 AS col2
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT COALESCE ( + 50, 39 * - 58 + NULLIF ( + MIN( - 84 ), + - MAX( - - 12 ) ) * + 34 ) col2
----
50

skipif mysql # not compatible
query I rowsort label-2541
SELECT COALESCE ( + 50, 39 * - 58 + NULLIF ( + MIN ( - 84 ), + - MAX ( - - 12 ) ) * + 34 ) col2
----
50

query I rowsort
SELECT + + 29 * - - 70 col2
----
2030

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2543
SELECT ALL + 74 DIV + 43 + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL + 74 / + 43 + + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT + 75 + + - 39 - - 56 AS col1
----
92

query I rowsort
SELECT + 33 * - - 21
----
693

query I rowsort
SELECT + 93 * + ( + 88 ) * - 26 - 30 + + 63
----
-212751

query I rowsort
SELECT ALL + + 68 * + 21 + - 4
----
1424

query I rowsort
SELECT DISTINCT - 30 + 46 + 54 AS col1
----
70

query II rowsort
SELECT + 69 * + 69 AS col2, 47
----
4761
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2550
SELECT ALL + 97 + - CASE - - 35 WHEN + 87 THEN NULL WHEN + 39 THEN + - MIN( - CAST( NULL AS DECIMAL ) ) WHEN 55 THEN NULL END * - 74 + + ( - 88 + + 81 ) / - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL + 97 + - CASE - - 35 WHEN + 87 THEN NULL WHEN + 39 THEN + - MIN ( - CAST ( NULL AS REAL ) ) WHEN 55 THEN NULL END * - 74 + + ( - 88 + + 81 ) / - 90
----
NULL

query I rowsort
SELECT DISTINCT - 79 + 77 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT COUNT( * ) - - + 28 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-2552
SELECT COUNT ( * ) - - + 28 AS col0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-2553
SELECT 43 DIV + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2553
SELECT 43 / + 57 AS col0
----
0

query I rowsort
SELECT 79 * - 46
----
-3634

query II rowsort
SELECT - 73 AS col1, - 8 AS col2
----
-73
-8

query I rowsort
SELECT ALL 14 - - 86
----
100

query I rowsort
SELECT 69 * + 26 col1
----
1794

onlyif mysql # DIV for integer division: 
query I rowsort label-2558
SELECT ALL 25 DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL 25 / + 45
----
0

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

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

query I rowsort
SELECT ALL + 89 * + - 40 AS col2
----
-3560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2561
SELECT CAST( + - 28 AS SIGNED ) + + COUNT( * ) + + 44 DIV 36 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-2561
SELECT CAST ( + - 28 AS INTEGER ) + + COUNT ( * ) + + 44 / 36 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT DISTINCT 19 * + CASE 40 WHEN - - COALESCE ( + 89, + 33, + COUNT( 82 ) * + 12 / - 63 ) THEN - 20 - ( ( 93 ) + + 5 * - 91 ) * 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT 19 * + CASE 40 WHEN - - COALESCE ( + 89, + 33, + COUNT ( 82 ) * + 12 / - 63 ) THEN - 20 - ( ( 93 ) + + 5 * - 91 ) * 71 END
----
NULL

query I rowsort
SELECT ALL 78 - - + 74 * + 30 AS col0
----
2298

query I rowsort
SELECT DISTINCT 36 * + COALESCE ( 89, + 25 * + - 18 * - + ( + - 3 ) + - - 16 ) * + 79 AS col2
----
253116

query I rowsort
SELECT 3 * - 97 AS col2
----
-291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2566
SELECT MAX( DISTINCT - + 46 ) + - + 22 + + + COALESCE ( - + COUNT( - 16 ), COUNT( * ) - 29 - CASE - ( - COUNT( + 33 ) ) WHEN 34 THEN - 19 + - 62 ELSE 39 END ) + CAST( NULL AS SIGNED ) * COALESCE ( + 31, - ( 54 ) / 84 + - 42 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2566
SELECT MAX ( DISTINCT - + 46 ) + - + 22 + + + COALESCE ( - + COUNT ( - 16 ), COUNT ( * ) - 29 - CASE - ( - COUNT ( + 33 ) ) WHEN 34 THEN - 19 + - 62 ELSE 39 END ) + CAST ( NULL AS INTEGER ) * COALESCE ( + 31, - ( 54 ) / 84 + - 42 ) AS col0
----
NULL

query I rowsort
SELECT 19 + + 28 + 7 AS col2
----
54

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

query I rowsort
SELECT DISTINCT - + 87 * - 45
----
3915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2570
SELECT ALL - COUNT( * ) * + 50 / CAST( NULL AS SIGNED ) * - CASE + 4 WHEN - + 20 - - ( + COUNT( * ) ) THEN + 68 / + ( ( + 13 ) ) / + 46 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL - COUNT ( * ) * + 50 / CAST ( NULL AS INTEGER ) * - CASE + 4 WHEN - + 20 - - ( + COUNT ( * ) ) THEN + 68 / + ( ( + 13 ) ) / + 46 END AS col2
----
NULL

query I rowsort
SELECT ALL - - 20 + 64 AS col0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-2572
SELECT ALL - CASE - 71 WHEN + COUNT( * ) * - 4 * + ( 93 ) / 57 THEN + 63 END AS col1, COUNT( * ) * ( + 28 )
----
NULL
28

skipif mysql # not compatible
query II rowsort label-2572
SELECT ALL - CASE - 71 WHEN + COUNT ( * ) * - 4 * + ( 93 ) / 57 THEN + 63 END AS col1, COUNT ( * ) * ( + 28 )
----
NULL
28

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

skipif mysql # not compatible
query I rowsort label-2573
SELECT DISTINCT - + 95 * - + COUNT ( * ) AS col2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2574
SELECT + 24 DIV - + 19 + - + COUNT( * ) - 17
----
-19

skipif mysql # not compatible
query I rowsort label-2574
SELECT + 24 / - + 19 + - + COUNT ( * ) - 17
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2575
SELECT + + CASE - 53 WHEN + 49 * - + NULLIF ( - ( + 45 ), - - CAST( NULL AS SIGNED ) * + 58 + - - 53 * - COUNT( * ) ) * + COALESCE ( + 22 * COUNT( * ) + - CAST( + 10 AS SIGNED ), + 48 * - CAST( NULL AS DECIMAL ) ) THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2575
SELECT + + CASE - 53 WHEN + 49 * - + NULLIF ( - ( + 45 ), - - CAST ( NULL AS INTEGER ) * + 58 + - - 53 * - COUNT ( * ) ) * + COALESCE ( + 22 * COUNT ( * ) + - CAST ( + 10 AS INTEGER ), + 48 * - CAST ( NULL AS REAL ) ) THEN - COUNT ( * ) END
----
NULL

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

query I rowsort
SELECT - ( + + 83 ) * + - 71 - - 72
----
5965

query I rowsort
SELECT - 60 * + 34 col1
----
-2040

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2579
SELECT DISTINCT - COUNT( * ) + COUNT( * ) + - NULLIF ( + 54, 21 ) DIV + 98 AS col0, NULLIF ( 32, 58 ) AS col0
----
0
32

skipif mysql # not compatible
query II rowsort label-2579
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) + - NULLIF ( + 54, 21 ) / + 98 AS col0, NULLIF ( 32, 58 ) AS col0
----
0
32

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2581
SELECT COUNT( * ) DIV + - 23 * - 33 + - 97 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-2581
SELECT COUNT ( * ) / + - 23 * - 33 + - 97 AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT 81 * + 86 * 63 - 29 * + COUNT( * ) - + 41
----
438788

skipif mysql # not compatible
query I rowsort label-2582
SELECT 81 * + 86 * 63 - 29 * + COUNT ( * ) - + 41
----
438788

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

query I rowsort
SELECT ALL + + 40 + - NULLIF ( + COALESCE ( + 68, + 52 ), - 56 ) AS col1
----
-28

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

skipif mysql # not compatible
query II rowsort label-2585
SELECT DISTINCT - 54, - ( + - COUNT ( * ) ) AS col2
----
-54
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2587
SELECT 43 + - COUNT( * ) AS col0, NULLIF ( - 36, - 22 * CAST( NULL AS DECIMAL ) - - 45 )
----
42
-36

skipif mysql # not compatible
query II rowsort label-2587
SELECT 43 + - COUNT ( * ) AS col0, NULLIF ( - 36, - 22 * CAST ( NULL AS REAL ) - - 45 )
----
42
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT 53 + - MAX( DISTINCT - - ( 28 ) ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-2588
SELECT 53 + - MAX ( DISTINCT - - ( 28 ) ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT ALL 38 - + - COUNT( * ) * COUNT( * ) * - 78 + - + COALESCE ( 71, 10, - + 5 )
----
-111

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL 38 - + - COUNT ( * ) * COUNT ( * ) * - 78 + - + COALESCE ( 71, 10, - + 5 )
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT + 31 * CASE + 11 WHEN 83 THEN NULL ELSE + COUNT( * ) - - COUNT( * ) END + - 55
----
7

skipif mysql # not compatible
query I rowsort label-2590
SELECT + 31 * CASE + 11 WHEN 83 THEN NULL ELSE + COUNT ( * ) - - COUNT ( * ) END + - 55
----
7

query I rowsort
SELECT ALL - ( - 6 ) col1
----
6

query II rowsort
SELECT + 71 AS col2, + 21
----
71
21

onlyif mysql # aggregate syntax: 
query II rowsort label-2593
SELECT ALL - 3 * + MAX( DISTINCT 8 ) * + 7 AS col1, + 86 * - 13 * + 24 AS col1
----
-168
-26832

skipif mysql # not compatible
query II rowsort label-2593
SELECT ALL - 3 * + MAX ( DISTINCT 8 ) * + 7 AS col1, + 86 * - 13 * + 24 AS col1
----
-168
-26832

query I rowsort
SELECT ALL - 94 * - - 43 AS col1
----
-4042

query I rowsort
SELECT 84 * + 49 * 58 * 82
----
19575696

query I rowsort
SELECT 97 + - - 6 + - ( + 21 ) + + 10 * + - 41 col1
----
-328

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL 24 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT MAX( DISTINCT 75 ) / + - CASE - 42 WHEN + ( + - 90 ) THEN + + NULLIF ( - 62, + 46 / + 69 - AVG ( 17 ) ) + - 82 WHEN 50 THEN 7 WHEN 83 * 95 + 33 THEN + 77 * + 4 + AVG ( + 50 + - 74 ) * + COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT MAX ( DISTINCT 75 ) / + - CASE - 42 WHEN + ( + - 90 ) THEN + + NULLIF ( - 62, + 46 / + 69 - AVG ( 17 ) ) + - 82 WHEN 50 THEN 7 WHEN 83 * 95 + 33 THEN + 77 * + 4 + AVG ( + 50 + - 74 ) * + COUNT ( * ) END col1
----
NULL

query I rowsort
SELECT ALL 95 + 76
----
171

query I rowsort
SELECT ALL 18 + + 57 * + 42 * - ( 35 ) AS col0
----
-83772

query II rowsort
SELECT 9 + - 26, 45 * 77 * 57 * - 64 AS col1
----
-17
-12640320

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT DISTINCT CASE + COUNT( * ) WHEN + - AVG ( DISTINCT - 48 ) * - 45 + 81 * + - ( + 51 ) + + CASE 21 WHEN 24 - - COUNT( * ) THEN NULL ELSE - NULLIF ( COALESCE ( - 25, + NULLIF ( 32, 0 ) ), 41 - 87 ) + - 55 END THEN NULLIF ( 96, 25 + + COUNT( * ) * 87 ) WHEN 5 * - SUM( - 38 / + 24 ) THEN NULL ELSE - 70 + 16 * 16 END + + ( COUNT( * ) + - 82 ) * + 64
----
-4998

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT CASE + COUNT ( * ) WHEN + - AVG ( DISTINCT - 48 ) * - 45 + 81 * + - ( + 51 ) + + CASE 21 WHEN 24 - - COUNT ( * ) THEN NULL ELSE - NULLIF ( COALESCE ( - 25, + NULLIF ( 32, 0 ) ), 41 - 87 ) + - 55 END THEN NULLIF ( 96, 25 + + COUNT ( * ) * 87 ) WHEN 5 * - SUM ( - 38 / + 24 ) THEN NULL ELSE - 70 + 16 * 16 END + + ( COUNT ( * ) + - 82 ) * + 64
----
-4998

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT ALL + NULLIF ( 0, + 65 * - COALESCE ( 71, 80 * - - 59 ) + + 14 ) * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL + NULLIF ( 0, + 65 * - COALESCE ( 71, 80 * - - 59 ) + + 14 ) * COUNT ( * ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2606
SELECT - 8 DIV 23 + - 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-2606
SELECT - 8 / 23 + - 40 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT DISTINCT + 26 + - CASE - AVG ( DISTINCT 71 ) WHEN - - 2 + + 89 THEN - - 11 * - COUNT( ALL + 92 ) + - + 57 + - COUNT( * ) / 90 END + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT + 26 + - CASE - AVG ( DISTINCT 71 ) WHEN - - 2 + + 89 THEN - - 11 * - COUNT ( ALL + 92 ) + - + 57 + - COUNT ( * ) / 90 END + + 2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT + COUNT ( * ) * - - 15 AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2609
SELECT ALL MIN( DISTINCT + CAST( 21 AS SIGNED ) ) + 40 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL MIN ( DISTINCT + CAST ( 21 AS INTEGER ) ) + 40 AS col0
----
61

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

skipif mysql # not compatible
query I rowsort label-2610
SELECT COUNT ( * ) + - MAX ( DISTINCT + - 72 ) AS col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2611
SELECT - 74 + - 67 DIV 76 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-2611
SELECT - 74 + - 67 / 76 AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2612
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) * + 75 + 74 AS col0, ( - - 45 )
----
149
45

skipif mysql # not compatible
query II rowsort label-2612
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) * + 75 + 74 AS col0, ( - - 45 )
----
149
45

query II rowsort
SELECT DISTINCT + 12, - 60 AS col1
----
12
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT DISTINCT + + 75 * - ( - COUNT( * ) ) + - 32
----
43

skipif mysql # not compatible
query I rowsort label-2614
SELECT DISTINCT + + 75 * - ( - COUNT ( * ) ) + - 32
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT ALL + + SUM( + 35 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL + + SUM ( + 35 ) AS col0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-2616
SELECT + - 7 DIV + 49 + + 6 + - + ( - + 20 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-2616
SELECT + - 7 / + 49 + + 6 + - + ( - + 20 ) AS col0
----
26

query I rowsort
SELECT ALL + 93 * + 79 - + - 98 + + + 56
----
7501

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT ALL - 80 * 63 * 89 * COUNT( * ) AS col1
----
-448560

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL - 80 * 63 * 89 * COUNT ( * ) AS col1
----
-448560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2619
SELECT - + 69 * + 42 * + NULLIF ( - 31, + COUNT( * ) + - - 13 + - - 71 * - 12 * - COALESCE ( - ( + CAST( - 75 AS SIGNED ) ), - 49, COUNT( * ) ) * 36 ) AS col0
----
89838

skipif mysql # not compatible
query I rowsort label-2619
SELECT - + 69 * + 42 * + NULLIF ( - 31, + COUNT ( * ) + - - 13 + - - 71 * - 12 * - COALESCE ( - ( + CAST ( - 75 AS INTEGER ) ), - 49, COUNT ( * ) ) * 36 ) AS col0
----
89838

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2621
SELECT - - ( - 52 ) + + COALESCE ( - ( - + COUNT( * ) ), CAST( COALESCE ( - + COALESCE ( + - 19, - 74, + 53 ), - 34 * 78 + - 42 ) AS SIGNED ) * + 64 + 73, 66 ) + 86
----
35

skipif mysql # not compatible
query I rowsort label-2621
SELECT - - ( - 52 ) + + COALESCE ( - ( - + COUNT ( * ) ), CAST ( COALESCE ( - + COALESCE ( + - 19, - 74, + 53 ), - 34 * 78 + - 42 ) AS INTEGER ) * + 64 + 73, 66 ) + 86
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT + MIN( - + 16 ) * 22 - 8 + + COUNT( * ) - + 71 AS col0
----
-430

skipif mysql # not compatible
query I rowsort label-2622
SELECT + MIN ( - + 16 ) * 22 - 8 + + COUNT ( * ) - + 71 AS col0
----
-430

query I rowsort
SELECT ALL 78 * + + 57 - 95 AS col0
----
4351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2624
SELECT DISTINCT + COALESCE ( - COUNT( * ), CAST( NULL AS SIGNED ) + - 72 DIV - + ( - + 38 ), - + 28 * + - 21 + + 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT + COALESCE ( - COUNT ( * ), CAST ( NULL AS INTEGER ) + - 72 / - + ( - + 38 ), - + 28 * + - 21 + + 43 )
----
-1

query I rowsort
SELECT DISTINCT + 80 * + 99
----
7920

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

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

query I rowsort
SELECT ALL + NULLIF ( - 53, + - 36 )
----
-53

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2629
SELECT DISTINCT + 44 DIV + + 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2629
SELECT DISTINCT + 44 / + + 49 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2630
SELECT - CAST( NULL AS SIGNED ) * - 64 * + 90 * + 15 * + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2630
SELECT - CAST ( NULL AS INTEGER ) * - 64 * + 90 * + 15 * + 87 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2631
SELECT ALL + 35 DIV - 50 col0, CASE + MIN( - 61 ) WHEN + 27 THEN COUNT( * ) + + 42 DIV + 9 ELSE NULL END * - 98 + 78 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2631
SELECT ALL + 35 / - 50 col0, CASE + MIN ( - 61 ) WHEN + 27 THEN COUNT ( * ) + + 42 / + 9 ELSE NULL END * - 98 + 78 AS col2
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2632
SELECT - CASE + 69 WHEN - 65 THEN - 50 END - + ( - + 94 ) + + 7 * CASE - 46 WHEN + COUNT( * ) * 8 * + + 40 + - CAST( - NULLIF ( - 89, 82 ) AS SIGNED ) + 60 THEN - 68 * - 3 END * CAST( 92 * + COUNT( * ) AS SIGNED ) * 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2632
SELECT - CASE + 69 WHEN - 65 THEN - 50 END - + ( - + 94 ) + + 7 * CASE - 46 WHEN + COUNT ( * ) * 8 * + + 40 + - CAST ( - NULLIF ( - 89, 82 ) AS INTEGER ) + 60 THEN - 68 * - 3 END * CAST ( 92 * + COUNT ( * ) AS INTEGER ) * 81 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2633
SELECT MAX ( + 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT DISTINCT ( - CASE + - 8 WHEN + - 29 / 7 THEN - MIN( + 54 ) WHEN - COUNT( * ) + - + COUNT( * ) - + 48 * - 64 * + + 40 THEN NULL END ) + 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT ( - CASE + - 8 WHEN + - 29 / 7 THEN - MIN ( + 54 ) WHEN - COUNT ( * ) + - + COUNT ( * ) - + 48 * - 64 * + + 40 THEN NULL END ) + 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ALL COUNT( * ) + 86
----
87

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL COUNT ( * ) + 86
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT ALL 77 + + 98 - + - COUNT( * ) + + + COALESCE ( + 23, 35, 51 + + - MIN( DISTINCT + 16 ) * - 24 ) * COUNT( * ) * 53 AS col0
----
1395

skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL 77 + + 98 - + - COUNT ( * ) + + + COALESCE ( + 23, 35, 51 + + - MIN ( DISTINCT + 16 ) * - 24 ) * COUNT ( * ) * 53 AS col0
----
1395

query I rowsort
SELECT + 83 - - 63
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-2638
SELECT DISTINCT + 45 + 37 * + - 85 - + 11 DIV + 99 * + 3 * 72
----
-3100

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT + 45 + 37 * + - 85 - + 11 / + 99 * + 3 * 72
----
-3100

query II rowsort
SELECT ALL 80 + - - 75 col0, + 62 col0
----
155
62

query II rowsort
SELECT + - 42 * + 56 col1, + 73 + + 61 AS col0
----
-2352
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2641
SELECT - COALESCE ( - 81, CAST( NULL AS SIGNED ) * + + MAX( DISTINCT 31 ) + 83, - 23 - + 84 * + CAST( NULL AS SIGNED ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-2641
SELECT - COALESCE ( - 81, CAST ( NULL AS INTEGER ) * + + MAX ( DISTINCT 31 ) + 83, - 23 - + 84 * + CAST ( NULL AS INTEGER ) ) AS col1
----
81

query I rowsort
SELECT + + 25 + 89 * 73 AS col0
----
6522

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

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

query I rowsort
SELECT ALL 25 + + 84 + - - 2 * 73
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT ALL 39 * + + 36 * - - COUNT( * ) AS col2
----
1404

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL 39 * + + 36 * - - COUNT ( * ) AS col2
----
1404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2646
SELECT + ( + - CAST( NULL AS SIGNED ) ) / - 60 - - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2646
SELECT + ( + - CAST ( NULL AS INTEGER ) ) / - 60 - - 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT ALL 78 - + 87 * - COUNT( * ) AS col0
----
165

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL 78 - + 87 * - COUNT ( * ) AS col0
----
165

query I rowsort
SELECT DISTINCT - NULLIF ( 6, - 9 ) * - 46 + 50 AS col0
----
326

query I rowsort
SELECT DISTINCT + 68 * + 59 AS col1
----
4012

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT ALL + 9 * + + SUM( ALL - 97 )
----
-873

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL + 9 * + + SUM ( ALL - 97 )
----
-873

onlyif mysql # DIV for integer division: 
query I rowsort label-2651
SELECT - + 31 DIV + ( + + 90 ) - 48 - - ( 57 ) col2
----
9

skipif mysql # not compatible
query I rowsort label-2651
SELECT - + 31 / + ( + + 90 ) - 48 - - ( 57 ) col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2652
SELECT + - 98 DIV + 10 col0
----
-9

skipif mysql # not compatible
query I rowsort label-2652
SELECT + - 98 / + 10 col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT MIN( + 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-2653
SELECT MIN ( + 57 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT + - CASE + + CASE - + 3 WHEN + 45 + - COUNT( * ) THEN - 13 END WHEN + + 1 THEN - COUNT( + 30 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2654
SELECT + - CASE + + CASE - + 3 WHEN + 45 + - COUNT ( * ) THEN - 13 END WHEN + + 1 THEN - COUNT ( + 30 ) ELSE NULL END
----
NULL

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

query I rowsort
SELECT + - 80 * + 23
----
-1840

query II rowsort
SELECT DISTINCT + 1 AS col2, + 31 / 24 / + CASE + + 58 WHEN + + 24 THEN NULL WHEN + - 1 THEN - + NULLIF ( - 38, 14 * 77 * - + 32 - + + 0 * 13 ) ELSE NULL END
----
1
NULL

query I rowsort
SELECT - 97 - 40
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT SUM( DISTINCT + 33 ) * + + 11 * - 71 * - 57 + - + 39
----
1469022

skipif mysql # not compatible
query I rowsort label-2659
SELECT SUM ( DISTINCT + 33 ) * + + 11 * - 71 * - 57 + - + 39
----
1469022

query I rowsort
SELECT - 25 * - - 54 * - - 96 AS col1
----
-129600

query I rowsort
SELECT + ( + 30 ) + 13 * - 22 + - 81
----
-337

query I rowsort
SELECT ALL + 31 * - + 8 col1
----
-248

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT - 19 - + - NULLIF ( - - 8, - 24 - + 78 / + 75 - 12 + - + 34 + - COUNT( + + 98 ) + 89 * - 88 / 61 + 97 / - 57 * 88 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-2663
SELECT - 19 - + - NULLIF ( - - 8, - 24 - + 78 / + 75 - 12 + - + 34 + - COUNT ( + + 98 ) + 89 * - 88 / 61 + 97 / - 57 * 88 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT NULLIF ( - - 63, - NULLIF ( + 92, - COUNT( * ) * - 63 + - 54 ) ) col2
----
63

skipif mysql # not compatible
query I rowsort label-2664
SELECT NULLIF ( - - 63, - NULLIF ( + 92, - COUNT ( * ) * - 63 + - 54 ) ) col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2665
SELECT + ( 14 ) * + ( - CAST( - COUNT( * ) AS SIGNED ) ) + + - NULLIF ( - 37, - + CASE COUNT( * ) WHEN + 67 * 10 + - + 9 THEN NULL WHEN + MIN( 74 ) THEN NULL ELSE 59 * - 59 + - 56 END ) * 16 + - COALESCE ( + COUNT( * ), - 69 + 35, 80 )
----
605

skipif mysql # not compatible
query I rowsort label-2665
SELECT + ( 14 ) * + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) + + - NULLIF ( - 37, - + CASE COUNT ( * ) WHEN + 67 * 10 + - + 9 THEN NULL WHEN + MIN ( 74 ) THEN NULL ELSE 59 * - 59 + - 56 END ) * 16 + - COALESCE ( + COUNT ( * ), - 69 + 35, 80 )
----
605

query I rowsort
SELECT ALL + 31 * 41
----
1271

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2667
SELECT ALL + 77 * - COALESCE ( - 65, 34 DIV + COUNT( * ) ) + - 43
----
4962

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL + 77 * - COALESCE ( - 65, 34 / + COUNT ( * ) ) + - 43
----
4962

query I rowsort
SELECT - 83 + + 66 AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2669
SELECT ALL NULLIF ( 43, - COALESCE ( - CAST( + 76 AS SIGNED ), - 33 * 98 + - + 27, - + 13 * + 19 * - + 84 + - COALESCE ( + 56, 82 / 42, - 82 ) + CAST( NULL AS SIGNED ) * 28, COUNT( * ) ) + - 52 * - ( + 90 ) )
----
43

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL NULLIF ( 43, - COALESCE ( - CAST ( + 76 AS INTEGER ), - 33 * 98 + - + 27, - + 13 * + 19 * - + 84 + - COALESCE ( + 56, 82 / 42, - 82 ) + CAST ( NULL AS INTEGER ) * 28, COUNT ( * ) ) + - 52 * - ( + 90 ) )
----
43

query I rowsort
SELECT ALL 71 * + 16
----
1136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2671
SELECT ALL - 0 * 71 + CAST( NULL AS SIGNED ) AS col0, 0 + + + CASE + 94 WHEN + 89 * + + CAST( 35 AS SIGNED ) THEN - 28 END * - COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2671
SELECT ALL - 0 * 71 + CAST ( NULL AS INTEGER ) AS col0, 0 + + + CASE + 94 WHEN + 89 * + + CAST ( 35 AS INTEGER ) THEN - 28 END * - COUNT ( * )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT - COUNT( * ) + 25 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-2672
SELECT - COUNT ( * ) + 25 AS col2
----
24

query II rowsort
SELECT 71 AS col2, 73 AS col1
----
71
73

query I rowsort
SELECT 91 + - + 76
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2675
SELECT 15, - NULLIF ( - - 38, - + CASE - 67 WHEN - 63 THEN - - 34 WHEN - + MAX( DISTINCT - 24 ) THEN - 40 + - COUNT( * ) ELSE - COUNT( * ) END ) DIV + - 15 - + CASE 77 WHEN - 47 THEN NULL ELSE - 79 END AS col0
----
15
81

skipif mysql # not compatible
query II rowsort label-2675
SELECT 15, - NULLIF ( - - 38, - + CASE - 67 WHEN - 63 THEN - - 34 WHEN - + MAX ( DISTINCT - 24 ) THEN - 40 + - COUNT ( * ) ELSE - COUNT ( * ) END ) / + - 15 - + CASE 77 WHEN - 47 THEN NULL ELSE - 79 END AS col0
----
15
81

query I rowsort
SELECT ALL COALESCE ( - - 49, + 36 * - - 61 + - ( + + 48 ) + + 59 * - 66 * - - 95 ) * - 69 * + - 42
----
142002

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT ALL ( - CASE WHEN COUNT( * ) IS NOT NULL THEN NULL ELSE + - NULLIF ( 5, + 2 + - 20 ) END ) - - + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL ( - CASE WHEN COUNT ( * ) IS NOT NULL THEN NULL ELSE + - NULLIF ( 5, + 2 + - 20 ) END ) - - + 26
----
NULL

query I rowsort
SELECT + 92 + 53 AS col1
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT 70 * - 63 * - - 61 + + SUM( DISTINCT + + 48 ) AS col2
----
-268962

skipif mysql # not compatible
query I rowsort label-2679
SELECT 70 * - 63 * - - 61 + + SUM ( DISTINCT + + 48 ) AS col2
----
-268962

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT ALL + MAX( + + 0 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL + MAX ( + + 0 ) col1
----
0

query I rowsort
SELECT - - NULLIF ( + - 98, - 34 * - + ( 91 ) )
----
-98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT + 59 + - - CASE COUNT( * ) WHEN - 32 + + 18 THEN 50 * - 0 + 31 WHEN + 21 THEN - SUM( ALL 14 ) - + + 48 + CASE + AVG ( 3 ) WHEN - 30 THEN - 44 WHEN - ( ( + 78 ) ) THEN NULL END + - COALESCE ( 69, 19 ) END - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-2683
SELECT + 59 + - - CASE COUNT ( * ) WHEN - 32 + + 18 THEN 50 * - 0 + 31 WHEN + 21 THEN - SUM ( ALL 14 ) - + + 48 + CASE + AVG ( 3 ) WHEN - 30 THEN - 44 WHEN - ( ( + 78 ) ) THEN NULL END + - COALESCE ( 69, 19 ) END - 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT ( - + 67 ) * NULLIF ( - 37, - + COUNT( * ) ) col1
----
2479

skipif mysql # not compatible
query I rowsort label-2684
SELECT ( - + 67 ) * NULLIF ( - 37, - + COUNT ( * ) ) col1
----
2479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2685
SELECT 80 + - NULLIF ( + - 0, 10 + - + 42 + CASE + + 19 WHEN + 51 * - 19 * 90 - + 31 / + - 74 THEN NULL WHEN + 76 + 22 THEN NULL ELSE CAST( NULL AS SIGNED ) + + 13 * 12 END * + COUNT( * ) / 49 ) - + 48 * 3 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-2685
SELECT 80 + - NULLIF ( + - 0, 10 + - + 42 + CASE + + 19 WHEN + 51 * - 19 * 90 - + 31 / + - 74 THEN NULL WHEN + 76 + 22 THEN NULL ELSE CAST ( NULL AS INTEGER ) + + 13 * 12 END * + COUNT ( * ) / 49 ) - + 48 * 3 AS col2
----
-64

query I rowsort
SELECT - 42 - 82 AS col0
----
-124

query I rowsort
SELECT DISTINCT 12 - - - 74 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-2688
SELECT - 53, + ( + + 22 ) * + 45 * - + COUNT( ALL - - 11 ) + - + 7 col0
----
-53
-997

skipif mysql # not compatible
query II rowsort label-2688
SELECT - 53, + ( + + 22 ) * + 45 * - + COUNT ( ALL - - 11 ) + - + 7 col0
----
-53
-997

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

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

query I rowsort
SELECT + 9 + - 82 * - 51
----
4191

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2692
SELECT ( 19 ) DIV + 58 + - 49 * 28 + + - 18 AS col2
----
-1390

skipif mysql # not compatible
query I rowsort label-2692
SELECT ( 19 ) / + 58 + - 49 * 28 + + - 18 AS col2
----
-1390

query II rowsort
SELECT ALL 79 * 9 AS col0, 17 AS col0
----
711
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT MIN( - + 85 ) * 19 AS col2
----
-1615

skipif mysql # not compatible
query I rowsort label-2694
SELECT MIN ( - + 85 ) * 19 AS col2
----
-1615

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2695
SELECT ALL 55 + - 72 + - - CAST( NULL AS DECIMAL ) * - + 21 / + 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL 55 + - 72 + - - CAST ( NULL AS REAL ) * - + 21 / + 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT DISTINCT 73 * - - COALESCE ( + + 6, + - 58 * + ( COUNT( * ) ) + 90 + 59 )
----
438

skipif mysql # not compatible
query I rowsort label-2696
SELECT DISTINCT 73 * - - COALESCE ( + + 6, + - 58 * + ( COUNT ( * ) ) + 90 + 59 )
----
438

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT ALL COUNT( * ) + - COUNT( * ) * NULLIF ( 98, 29 + 12 / 33 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL COUNT ( * ) + - COUNT ( * ) * NULLIF ( 98, 29 + 12 / 33 ) AS col2
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2698
SELECT - 18 * + 63 + - - 5 * COALESCE ( + 3, - + COALESCE ( + - SUM( ALL - 23 ), - COALESCE ( COUNT( * ), 42 - - + 48 + - 92 ) DIV NULLIF ( 1, ( - 2 ) ) - - 55 * - 46, + 65 ) ) * COUNT( * ) AS col1
----
-1119

skipif mysql # not compatible
query I rowsort label-2698
SELECT - 18 * + 63 + - - 5 * COALESCE ( + 3, - + COALESCE ( + - SUM ( ALL - 23 ), - COALESCE ( COUNT ( * ), 42 - - + 48 + - 92 ) / NULLIF ( 1, ( - 2 ) ) - - 55 * - 46, + 65 ) ) * COUNT ( * ) AS col1
----
-1119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2699
SELECT DISTINCT NULLIF ( - COUNT( * ), + 72 * - 21 + + ( - - 94 ) ) + - + ( - NULLIF ( + 36, 74 - + + 44 ) ) + + CAST( + - 31 AS SIGNED ) - CASE - 69 WHEN - 61 * COUNT( * ) THEN NULL ELSE + CAST( + 45 AS SIGNED ) END * 26 AS col0
----
-1166

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT NULLIF ( - COUNT ( * ), + 72 * - 21 + + ( - - 94 ) ) + - + ( - NULLIF ( + 36, 74 - + + 44 ) ) + + CAST ( + - 31 AS INTEGER ) - CASE - 69 WHEN - 61 * COUNT ( * ) THEN NULL ELSE + CAST ( + 45 AS INTEGER ) END * 26 AS col0
----
-1166

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2702
SELECT ALL + CAST( NULL AS DECIMAL ) * CASE WHEN NOT NULL = NULL OR + 89 > 39 THEN 88 WHEN NULL IN ( - 2 + CAST( NULL AS SIGNED ), COUNT( * ) ) THEN ( 4 ) * 79 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL + CAST ( NULL AS REAL ) * CASE WHEN NOT NULL = NULL OR + 89 > 39 THEN 88 WHEN NULL IN ( - 2 + CAST ( NULL AS INTEGER ), COUNT ( * ) ) THEN ( 4 ) * 79 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 65 + 83 + 68 * - 71 + - 95
----
-4775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2704
SELECT ALL ( ( + 2 ) ) + - 87 + + NULLIF ( 57, - 79 / + CASE + + 28 WHEN SUM( ALL - - 81 ) THEN NULL WHEN + COUNT( 37 ) THEN NULL WHEN - COUNT( 17 ) * 30 THEN + CAST( + 33 AS SIGNED ) + + 46 ELSE - 71 * 3 END * 19 ) + 71 * 17 AS col1
----
1179

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL ( ( + 2 ) ) + - 87 + + NULLIF ( 57, - 79 / + CASE + + 28 WHEN SUM ( ALL - - 81 ) THEN NULL WHEN + COUNT ( 37 ) THEN NULL WHEN - COUNT ( 17 ) * 30 THEN + CAST ( + 33 AS INTEGER ) + + 46 ELSE - 71 * 3 END * 19 ) + 71 * 17 AS col1
----
1179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT CAST( NULL AS SIGNED ) - - - 29 * - 85 * 82 * + 91 / 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT CAST ( NULL AS INTEGER ) - - - 29 * - 85 * 82 * + 91 / 82 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT 38 * - - SUM( 61 ) * 55 - + 57 + - ( + 85 ) + + 85 AS col2
----
127433

skipif mysql # not compatible
query I rowsort label-2706
SELECT 38 * - - SUM ( 61 ) * 55 - + 57 + - ( + 85 ) + + 85 AS col2
----
127433

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ALL - NULLIF ( 87, - COUNT( * ) ) * - 95 + + COUNT( * ) AS col1
----
8266

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL - NULLIF ( 87, - COUNT ( * ) ) * - 95 + + COUNT ( * ) AS col1
----
8266

query I rowsort
SELECT - 99 * 8 - + 5 AS col0
----
-797

query I rowsort
SELECT DISTINCT - + 36 * + 41 col2
----
-1476

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

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

query I rowsort
SELECT ALL NULLIF ( 98, 44 ) AS col2
----
98

query I rowsort
SELECT ( 86 ) col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2713
SELECT DISTINCT COUNT( * ) * - - ( 6 ) DIV + ( 71 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT COUNT ( * ) * - - ( 6 ) / + ( 71 ) AS col2
----
0

query I rowsort
SELECT 39 - 46 * + 30 + 88
----
-1253

onlyif mysql # DIV for integer division: 
query I rowsort label-2715
SELECT ALL - 54 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL - 54 / - 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT - COUNT( DISTINCT 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-2716
SELECT - COUNT ( DISTINCT 45 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2717
SELECT ALL + - COALESCE ( - 20, MAX( ALL + 18 ) ) - - 21 + - 59 DIV + 32 + - 72 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL + - COALESCE ( - 20, MAX ( ALL + 18 ) ) - - 21 + - 59 / + 32 + - 72 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT NULLIF ( + MAX( + - 4 ), - - 22 * + 86 * - + 40 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2718
SELECT NULLIF ( + MAX ( + - 4 ), - - 22 * + 86 * - + 40 ) AS col2
----
-4

query I rowsort
SELECT 18 + + ( - 78 )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2720
SELECT - 17 DIV - - 86 col2
----
0

skipif mysql # not compatible
query I rowsort label-2720
SELECT - 17 / - - 86 col2
----
0

query I rowsort
SELECT 49 * + + 37 * - + 87 * - + ( - + 13 ) * + - 98 AS col1
----
200949294

query I rowsort
SELECT 95 * - 25 * + 19 col1
----
-45125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2723
SELECT ALL + 2 * - CAST( NULL AS SIGNED ) + NULLIF ( + ( 32 ), + ( - 17 ) ) col0, + 81
----
NULL
81

skipif mysql # not compatible
query II rowsort label-2723
SELECT ALL + 2 * - CAST ( NULL AS INTEGER ) + NULLIF ( + ( 32 ), + ( - 17 ) ) col0, + 81
----
NULL
81

query I rowsort
SELECT DISTINCT + CASE - 29 WHEN - 54 * - 53 * - + 51 - + - 60 THEN + 60 END
----
NULL

query I rowsort
SELECT ALL + 57 * - ( + 78 ) AS col0
----
-4446

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

skipif mysql # not compatible
query I rowsort label-2726
SELECT COUNT ( * ) + + + 57 + + 14 AS col1
----
72

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

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

query I rowsort
SELECT 97 * + - 81 AS col1
----
-7857

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT SUM( + 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-2729
SELECT SUM ( + 97 ) AS col0
----
97

query I rowsort
SELECT ALL 15 * 6 + 65 + 29 + 66 * 23
----
1702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2731
SELECT + 27 * - 12 + + 61 + + 28 DIV + + MIN( - 52 ) + + 38 AS col2
----
-225

skipif mysql # not compatible
query I rowsort label-2731
SELECT + 27 * - 12 + + 61 + + 28 / + + MIN ( - 52 ) + + 38 AS col2
----
-225

query I rowsort
SELECT 23 * - 13 AS col1
----
-299

query I rowsort
SELECT ALL - 89 * - + 54 + 55
----
4861

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT ALL - 39 * COUNT( * ) + + 98 - - + 11
----
70

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL - 39 * COUNT ( * ) + + 98 - - + 11
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2735
SELECT - 77 / + - 35 - + CAST( NULL AS SIGNED ) AS col2, 37 AS col2
----
NULL
37

skipif mysql # not compatible
query II rowsort label-2735
SELECT - 77 / + - 35 - + CAST ( NULL AS INTEGER ) AS col2, 37 AS col2
----
NULL
37

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

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

query I rowsort
SELECT DISTINCT 27 * - 21 + - 1
----
-568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2738
SELECT ALL CAST( 34 AS SIGNED ) * + 28 AS col1
----
952

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL CAST ( 34 AS INTEGER ) * + 28 AS col1
----
952

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT COUNT( + - 51 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2739
SELECT COUNT ( + - 51 ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2740
SELECT 3 + + COALESCE ( 3, - CAST( NULL AS SIGNED ) )
----
6

skipif mysql # not compatible
query I rowsort label-2740
SELECT 3 + + COALESCE ( 3, - CAST ( NULL AS INTEGER ) )
----
6

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2742
SELECT - 38 * + 52 / COUNT( * ) * - + 68 * SUM( DISTINCT - + 39 ) * + 1 + 7 + + CASE 74 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN NULLIF ( - - ( 12 ), - 11 / 64 ) / 21 - - 63 THEN - SUM( 21 ) END - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2742
SELECT - 38 * + 52 / COUNT ( * ) * - + 68 * SUM ( DISTINCT - + 39 ) * + 1 + 7 + + CASE 74 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN NULLIF ( - - ( 12 ), - 11 / 64 ) / 21 - - 63 THEN - SUM ( 21 ) END - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - 32 * + 87 * + - 3 + + 78 AS col2
----
8430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2744
SELECT ALL NULLIF ( - - 31, - + 79 + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) ) - + COALESCE ( + 64, + + 44 + + - 86 * - - COALESCE ( + 19, COUNT( 41 ) ) ) + + 56 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL NULLIF ( - - 31, - + 79 + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) ) - + COALESCE ( + 64, + + 44 + + - 86 * - - COALESCE ( + 19, COUNT ( 41 ) ) ) + + 56 AS col2
----
23

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

skipif mysql # not compatible
query II rowsort label-2745
SELECT ALL 30, COUNT ( * ) AS col1
----
30
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT + + 94 + 32 + - - COUNT( * ) * + + COUNT( * ) + - 76 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-2746
SELECT + + 94 + 32 + - - COUNT ( * ) * + + COUNT ( * ) + - 76 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT DISTINCT - - 8 * - CASE NULLIF ( 31, - 14 - + COUNT( - 34 ) - 57 ) WHEN - 59 THEN - 26 + COUNT( * ) WHEN - ( - 52 ) * - COUNT( * ) THEN NULL ELSE 56 END AS col0
----
-448

skipif mysql # not compatible
query I rowsort label-2747
SELECT DISTINCT - - 8 * - CASE NULLIF ( 31, - 14 - + COUNT ( - 34 ) - 57 ) WHEN - 59 THEN - 26 + COUNT ( * ) WHEN - ( - 52 ) * - COUNT ( * ) THEN NULL ELSE 56 END AS col0
----
-448

query I rowsort
SELECT + 18 * 52 * 46 * - NULLIF ( 36, + 31 ) + + 28 AS col2
----
-1549988

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT DISTINCT + MIN( DISTINCT ( 67 ) ) * - 67 * 15 * + 96 AS col2
----
-6464160

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT + MIN ( DISTINCT ( 67 ) ) * - 67 * 15 * + 96 AS col2
----
-6464160

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT + - 17 + + - 8 * + COUNT( * ) + 86 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-2750
SELECT + - 17 + + - 8 * + COUNT ( * ) + 86 AS col2
----
61

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2752
SELECT + + COUNT( * ) * + - 64 DIV - + 69 * + 78 + + + ( 82 )
----
82

skipif mysql # not compatible
query I rowsort label-2752
SELECT + + COUNT ( * ) * + - 64 / - + 69 * + 78 + + + ( 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT - + 36 * + - COUNT( * ) * + + 70 AS col0
----
2520

skipif mysql # not compatible
query I rowsort label-2753
SELECT - + 36 * + - COUNT ( * ) * + + 70 AS col0
----
2520

query I rowsort
SELECT DISTINCT 33 * + 12
----
396

query II rowsort
SELECT ALL 26 AS col2, 18
----
26
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2756
SELECT + 43 + + 25 DIV + 54 col1
----
43

skipif mysql # not compatible
query I rowsort label-2756
SELECT + 43 + + 25 / + 54 col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2757
SELECT + SUM( - NULLIF ( - 2, + 3 ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2757
SELECT + SUM ( - NULLIF ( - 2, + 3 ) ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL NULLIF ( 6, + 79 ) AS col0
----
6

query I rowsort
SELECT - 38 + - 15 AS col1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2760
SELECT - 2 * - 67 AS col0, + CAST( NULL AS SIGNED ) AS col2
----
134
NULL

skipif mysql # not compatible
query II rowsort label-2760
SELECT - 2 * - 67 AS col0, + CAST ( NULL AS INTEGER ) AS col2
----
134
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT DISTINCT - COUNT( * ) + - 72
----
-73

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT - COUNT ( * ) + - 72
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2762
SELECT ALL - ( - 45 ) DIV - 70 * 74 - - COUNT( * ) + + - COALESCE ( + - 5, 54 * + 32 * 83 * 50 - 78 ) * 34 + 2
----
173

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL - ( - 45 ) / - 70 * 74 - - COUNT ( * ) + + - COALESCE ( + - 5, 54 * + 32 * 83 * 50 - 78 ) * 34 + 2
----
173

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT 72 * 9 + + - COUNT( * ) AS col0
----
647

skipif mysql # not compatible
query I rowsort label-2765
SELECT 72 * 9 + + - COUNT ( * ) AS col0
----
647

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2766
SELECT ALL + CAST( - 32 AS SIGNED ), 72 AS col0
----
-32
72

skipif mysql # not compatible
query II rowsort label-2766
SELECT ALL + CAST ( - 32 AS INTEGER ), 72 AS col0
----
-32
72

query I rowsort
SELECT - 10 * + 75 + - - 89 * 33 - 98
----
2089

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2768
SELECT ALL + 87 AS col2, CAST( NULL AS SIGNED ) col1
----
87
NULL

skipif mysql # not compatible
query II rowsort label-2768
SELECT ALL + 87 AS col2, CAST ( NULL AS INTEGER ) col1
----
87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ALL + 18 * - + 41 - - - 20 + 87 + + - COUNT( DISTINCT + NULLIF ( - + 59, + 66 ) ) AS col2
----
-672

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL + 18 * - + 41 - - - 20 + 87 + + - COUNT ( DISTINCT + NULLIF ( - + 59, + 66 ) ) AS col2
----
-672

query I rowsort
SELECT - 78 * 84
----
-6552

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT DISTINCT - COALESCE ( - 18, - 1 ) * SUM( ALL 35 )
----
630

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT - COALESCE ( - 18, - 1 ) * SUM ( ALL 35 )
----
630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2772
SELECT + SUM( DISTINCT - - 83 ) + - 66 - - - COALESCE ( - 14, + - MIN( DISTINCT 25 ), 33 DIV 96 * - 78 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-2772
SELECT + SUM ( DISTINCT - - 83 ) + - 66 - - - COALESCE ( - 14, + - MIN ( DISTINCT 25 ), 33 / 96 * - 78 ) AS col2
----
31

query I rowsort
SELECT - 42 * 65 AS col0
----
-2730

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT + 72 * + - 54 + + COUNT( * )
----
-3887

skipif mysql # not compatible
query I rowsort label-2774
SELECT + 72 * + - 54 + + COUNT ( * )
----
-3887

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT ALL - 2 * + COUNT( * ) - + 5 * - - ( - 44 ) AS col1
----
218

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL - 2 * + COUNT ( * ) - + 5 * - - ( - 44 ) AS col1
----
218

query I rowsort
SELECT COALESCE ( - + ( - 55 ), - - 89 ) AS col0
----
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT ALL + COUNT( DISTINCT 82 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL + COUNT ( DISTINCT 82 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2779
SELECT - 94 DIV - 69
----
1

skipif mysql # not compatible
query I rowsort label-2779
SELECT - 94 / - 69
----
1

query II rowsort
SELECT ALL 76 * - 85 AS col2, ( + 51 ) * - 91 + 16 AS col1
----
-6460
-4625

query I rowsort
SELECT 6 * - 8 + - 67
----
-115

query I rowsort
SELECT ALL + + 52 * - 84
----
-4368

query II rowsort
SELECT 40 AS col1, + 99 + - - 34
----
40
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2784
SELECT + + COUNT( * ) DIV ( - 30 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2784
SELECT + + COUNT ( * ) / ( - 30 ) AS col1
----
0

query I rowsort
SELECT ALL + 51 * 69 AS col1
----
3519

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT - 68 * + COUNT( * ) * - MAX( + - 4 ) * - 92 - 51 * 81 * - ( + 32 ) AS col2
----
157216

skipif mysql # not compatible
query I rowsort label-2786
SELECT - 68 * + COUNT ( * ) * - MAX ( + - 4 ) * - 92 - 51 * 81 * - ( + 32 ) AS col2
----
157216

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT - MIN( DISTINCT - - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-2787
SELECT - MIN ( DISTINCT - - 84 )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-2788
SELECT + - 71 DIV + 7 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-2788
SELECT + - 71 / + 7 AS col0
----
-10

query I rowsort
SELECT + 8 + COALESCE ( + ( + - 18 ), + 63 ) AS col1
----
-10

query I rowsort
SELECT ALL - COALESCE ( - - 94, - 78 ) AS col0
----
-94

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

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

query I rowsort
SELECT DISTINCT 85 * - ( 9 ) + - - 59 + - - 7
----
-699

query I rowsort
SELECT ALL 5 + + 40 + + + 38
----
83

query I rowsort
SELECT DISTINCT + 52 + 2 + - - NULLIF ( - ( + - 22 ), + 22 * - 15 )
----
76

query I rowsort
SELECT ALL + ( 30 ) + + 46 AS col1
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2796
SELECT + - CASE + + 33 WHEN + + 22 THEN - 59 WHEN 83 THEN 92 ELSE 36 END DIV + + 21
----
-1

skipif mysql # not compatible
query I rowsort label-2796
SELECT + - CASE + + 33 WHEN + + 22 THEN - 59 WHEN 83 THEN 92 ELSE 36 END / + + 21
----
-1

query I rowsort
SELECT DISTINCT 50 + + - 10 + - 3 AS col2
----
37

query I rowsort
SELECT DISTINCT 55 + + 92 * - + ( - 78 ) * 52 * - 77 AS col2
----
-28732649

query II rowsort
SELECT ALL ( 33 ) col1, 21 * + 90 + - - 98 col0
----
33
1988

onlyif mysql # aggregate syntax: 
query II rowsort label-2800
SELECT ALL MIN( - 21 ), COUNT( DISTINCT + + 49 ) * - 45 AS col2
----
-21
-45

skipif mysql # not compatible
query II rowsort label-2800
SELECT ALL MIN ( - 21 ), COUNT ( DISTINCT + + 49 ) * - 45 AS col2
----
-21
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2801
SELECT + COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) DIV + - CASE - COALESCE ( + CAST( NULL AS SIGNED ), + + 45, - 97 + 52 ) WHEN + 77 * 32 + + 31 + SUM( + ( + + ( - 47 ) ) ) THEN + 97 ELSE + 82 END - - 54 * + 83
----
4482

skipif mysql # not compatible
query I rowsort label-2801
SELECT + COUNT ( DISTINCT CAST ( NULL AS REAL ) ) / + - CASE - COALESCE ( + CAST ( NULL AS INTEGER ), + + 45, - 97 + 52 ) WHEN + 77 * 32 + + 31 + SUM ( + ( + + ( - 47 ) ) ) THEN + 97 ELSE + 82 END - - 54 * + 83
----
4482

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

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

query I rowsort
SELECT + 48 + + ( 22 ) + + 26 * + - 42 * - 99 AS col1
----
108178

query II rowsort
SELECT - 54 * + 1, + 3 AS col2
----
-54
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2805
SELECT ALL + 50 DIV + 49
----
1

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL + 50 / + 49
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2806
SELECT - 81 * + - COUNT( - 11 ) * - 23 + - CAST( + CASE + 33 WHEN - + CAST( NULL AS SIGNED ) * - - 83 / - - COUNT( * ) + + + 59 - - COUNT( * ) - - 26 THEN - COUNT( * ) WHEN - + 65 * 0 THEN + COALESCE ( 15, 90 + COALESCE ( 3, 24 + 6 ) ) / - 7 + - COUNT( * ) END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2806
SELECT - 81 * + - COUNT ( - 11 ) * - 23 + - CAST ( + CASE + 33 WHEN - + CAST ( NULL AS INTEGER ) * - - 83 / - - COUNT ( * ) + + + 59 - - COUNT ( * ) - - 26 THEN - COUNT ( * ) WHEN - + 65 * 0 THEN + COALESCE ( 15, 90 + COALESCE ( 3, 24 + 6 ) ) / - 7 + - COUNT ( * ) END AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT ALL + COUNT( * ) - - 96 + - 8
----
89

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL + COUNT ( * ) - - 96 + - 8
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT 28 * + COUNT( 12 ) * - MAX( + 86 )
----
-2408

skipif mysql # not compatible
query I rowsort label-2808
SELECT 28 * + COUNT ( 12 ) * - MAX ( + 86 )
----
-2408

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT DISTINCT - MIN( ALL - 16 ) * MAX( DISTINCT - 51 ) AS col0
----
-816

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT - MIN ( ALL - 16 ) * MAX ( DISTINCT - 51 ) AS col0
----
-816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2810
SELECT - CAST( NULL AS SIGNED ) / 79 * 57 - + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT - CAST ( NULL AS INTEGER ) / 79 * 57 - + 9
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2811
SELECT ALL + ( + 80 ) * NULLIF ( ( + COUNT( * ) ), - + ( + 18 ) ) DIV 39 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL + ( + 80 ) * NULLIF ( ( + COUNT ( * ) ), - + ( + 18 ) ) / 39 AS col1
----
2

query I rowsort
SELECT - 61 * 73 * 40
----
-178120

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

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

query I rowsort
SELECT ( + - 64 ) + + 8 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-2815
SELECT 55 * 42 * + - COUNT( * ) * + 85 - + - COUNT( * ) AS col2, 38
----
-196349
38

skipif mysql # not compatible
query II rowsort label-2815
SELECT 55 * 42 * + - COUNT ( * ) * + 85 - + - COUNT ( * ) AS col2, 38
----
-196349
38

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2817
SELECT COALESCE ( + + COUNT( * ), - 4 DIV 21 * - 36 * + CAST( NULL AS SIGNED ) ) - - 3
----
4

skipif mysql # not compatible
query I rowsort label-2817
SELECT COALESCE ( + + COUNT ( * ), - 4 / 21 * - 36 * + CAST ( NULL AS INTEGER ) ) - - 3
----
4

query I rowsort
SELECT + 41 * 92 + ( - 24 ) col1
----
3748

query I rowsort
SELECT ALL 76 + 37 AS col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT - 64 + COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-2820
SELECT - 64 + COUNT ( * ) AS col0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-2821
SELECT ALL + 70 DIV 66 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL + 70 / 66 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT + SUM( DISTINCT ( - 78 ) ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-2822
SELECT + SUM ( DISTINCT ( - 78 ) ) AS col0
----
-78

query I rowsort
SELECT - ( 30 ) + - + 64
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2824
SELECT DISTINCT + 37 * - - 94 + + 36 DIV + 16
----
3480

skipif mysql # not compatible
query I rowsort label-2824
SELECT DISTINCT + 37 * - - 94 + + 36 / + 16
----
3480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2825
SELECT ALL - COALESCE ( - 5, - CAST( NULL AS SIGNED ) + 25, - - 28 ) + ( 52 ) + - - 13 + - 65 + - 40 * - COUNT( * ) * 88 + - ( + - 88 ) + 28 + + + 97 + 71 * + COUNT( * )
----
3809

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL - COALESCE ( - 5, - CAST ( NULL AS INTEGER ) + 25, - - 28 ) + ( 52 ) + - - 13 + - 65 + - 40 * - COUNT ( * ) * 88 + - ( + - 88 ) + 28 + + + 97 + 71 * + COUNT ( * )
----
3809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2826
SELECT CASE - 56 WHEN + + 96 + + - COUNT( * ) + - 65 + - + 62 + + 21 * - - 12 * 56 THEN NULL WHEN + 61 THEN NULL WHEN + 22 * - - ( + CASE 6 WHEN SUM( ALL + 29 ) THEN - - 42 WHEN - 58 * 67 THEN NULL END ) + + 56 THEN NULL ELSE CAST( NULL AS SIGNED ) / + 90 END * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2826
SELECT CASE - 56 WHEN + + 96 + + - COUNT ( * ) + - 65 + - + 62 + + 21 * - - 12 * 56 THEN NULL WHEN + 61 THEN NULL WHEN + 22 * - - ( + CASE 6 WHEN SUM ( ALL + 29 ) THEN - - 42 WHEN - 58 * 67 THEN NULL END ) + + 56 THEN NULL ELSE CAST ( NULL AS INTEGER ) / + 90 END * + 90
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2827
SELECT + COUNT ( * ) * COUNT ( * ) + - - 34 + + 93 AS col0
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-2828
SELECT 93 DIV 22 * - 48 col1
----
-192

skipif mysql # not compatible
query I rowsort label-2828
SELECT 93 / 22 * - 48 col1
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT DISTINCT 78 + 35 + + COUNT( * ) col2
----
114

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT 78 + 35 + + COUNT ( * ) col2
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2830
SELECT ALL 85 + + 14 + - 53 + + 47 + - + 28 * 37 - + + ( - 48 ) * + CASE - 18 WHEN 35 THEN NULL WHEN 68 * + 70 * 40 THEN + CAST( NULL AS SIGNED ) * - + 76 - - - ( + 45 ) + + 93 ELSE 1 END
----
-895

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL 85 + + 14 + - 53 + + 47 + - + 28 * 37 - + + ( - 48 ) * + CASE - 18 WHEN 35 THEN NULL WHEN 68 * + 70 * 40 THEN + CAST ( NULL AS INTEGER ) * - + 76 - - - ( + 45 ) + + 93 ELSE 1 END
----
-895

query II rowsort
SELECT - 5 AS col0, 8 * 23 * + - 88 * - - 26
----
-5
-420992

query I rowsort
SELECT DISTINCT - 72 - - 88
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-2833
SELECT ALL 62 col1, COUNT( * ) + - 24 * 11 + 72 * + - 70 AS col0
----
62
-5303

skipif mysql # not compatible
query II rowsort label-2833
SELECT ALL 62 col1, COUNT ( * ) + - 24 * 11 + 72 * + - 70 AS col0
----
62
-5303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2834
SELECT COALESCE ( - - 75, - + NULLIF ( - CASE + 93 WHEN - + ( + COUNT( * ) ) + + - 22 * 74 THEN NULL WHEN + + CASE 17 WHEN + - ( - 31 ) THEN - - 70 / + ( + - 17 ) END + + CAST( NULL AS SIGNED ) * - CAST( 73 AS SIGNED ) / - 77 + CAST( NULL AS SIGNED ) THEN + MAX( DISTINCT ( - 1 ) ) * 9 END, + 55 * - ( - 88 ) ) * ( 74 * + 94 + ( - CASE 68 WHEN - 22 - - 84 THEN 88 * 24 WHEN + NULLIF ( COUNT( * ), + 85 + + 58 * + 43 ) THEN NULL END + 98 * ( CASE + 7 WHEN + 98 THEN + 18 * 28 END * - 81 ) ) ) - 41 ) + 91
----
166

skipif mysql # not compatible
query I rowsort label-2834
SELECT COALESCE ( - - 75, - + NULLIF ( - CASE + 93 WHEN - + ( + COUNT ( * ) ) + + - 22 * 74 THEN NULL WHEN + + CASE 17 WHEN + - ( - 31 ) THEN - - 70 / + ( + - 17 ) END + + CAST ( NULL AS INTEGER ) * - CAST ( 73 AS INTEGER ) / - 77 + CAST ( NULL AS INTEGER ) THEN + MAX ( DISTINCT ( - 1 ) ) * 9 END, + 55 * - ( - 88 ) ) * ( 74 * + 94 + ( - CASE 68 WHEN - 22 - - 84 THEN 88 * 24 WHEN + NULLIF ( COUNT ( * ), + 85 + + 58 * + 43 ) THEN NULL END + 98 * ( CASE + 7 WHEN + 98 THEN + 18 * 28 END * - 81 ) ) ) - 41 ) + 91
----
166

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2835
SELECT 22 + - 88 + + 50 * 77 * - NULLIF ( 69, - + 23 ) + - + 76 + 21 + + - 75 DIV - 66 + - MAX( ALL 9 ) * + 72, 32 AS col1
----
-266418
32

skipif mysql # not compatible
query II rowsort label-2835
SELECT 22 + - 88 + + 50 * 77 * - NULLIF ( 69, - + 23 ) + - + 76 + 21 + + - 75 / - 66 + - MAX ( ALL 9 ) * + 72, 32 AS col1
----
-266418
32

query I rowsort
SELECT 93 + - 99
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT MAX( DISTINCT + + 67 ) * - COUNT( * ) * + + 13 col0
----
-871

skipif mysql # not compatible
query I rowsort label-2837
SELECT MAX ( DISTINCT + + 67 ) * - COUNT ( * ) * + + 13 col0
----
-871

query I rowsort
SELECT ( + 50 ) * + 88
----
4400

query II rowsort
SELECT ALL 73 AS col2, + 89 AS col0
----
73
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT COUNT( * ) + 86 - - 55
----
142

skipif mysql # not compatible
query I rowsort label-2840
SELECT COUNT ( * ) + 86 - - 55
----
142

query I rowsort
SELECT ( 87 ) + - 10
----
77

query I rowsort
SELECT 51 * + + 84 col0
----
4284

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL ( - COALESCE ( 11, MAX( DISTINCT - + 36 ) - + 35 ) ) * - + 44 AS col0
----
484

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL ( - COALESCE ( 11, MAX ( DISTINCT - + 36 ) - + 35 ) ) * - + 44 AS col0
----
484

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2844
SELECT ALL COALESCE ( - + CAST( - 29 AS SIGNED ), + 66 ) DIV + - 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL COALESCE ( - + CAST ( - 29 AS INTEGER ), + 66 ) / + - 78 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2845
SELECT ( 93 ) + + COUNT( * ) AS col0, 21 * + - 22 * + 3 AS col0
----
94
-1386

skipif mysql # not compatible
query II rowsort label-2845
SELECT ( 93 ) + + COUNT ( * ) AS col0, 21 * + - 22 * + 3 AS col0
----
94
-1386

query I rowsort
SELECT DISTINCT ( - + 1 ) * + + 56 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT ALL - COALESCE ( + + 74, - 13, COUNT( * ) ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL - COALESCE ( + + 74, - 13, COUNT ( * ) ) AS col2
----
-74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT DISTINCT - COUNT( CASE 72 WHEN - 13 THEN - + 77 / + 18 + 96 ELSE NULL END )
----
0

skipif mysql # not compatible
query I rowsort label-2849
SELECT DISTINCT - COUNT ( CASE 72 WHEN - 13 THEN - + 77 / + 18 + 96 ELSE NULL END )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2850
SELECT + 45 DIV MIN( 72 ) - - 64 + 41 + + + 35 AS col1
----
140

skipif mysql # not compatible
query I rowsort label-2850
SELECT + 45 / MIN ( 72 ) - - 64 + 41 + + + 35 AS col1
----
140

query I rowsort
SELECT 36 + - - 7
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2852
SELECT + + COUNT( * ) * - - CAST( + COUNT( ( 63 ) ) AS SIGNED ) + + ( + 63 ) + 51 * - 83 + 86 AS col0
----
-4083

skipif mysql # not compatible
query I rowsort label-2852
SELECT + + COUNT ( * ) * - - CAST ( + COUNT ( ( 63 ) ) AS INTEGER ) + + ( + 63 ) + 51 * - 83 + 86 AS col0
----
-4083

query I rowsort
SELECT ALL 81 + - 72 * + ( + 82 )
----
-5823

onlyif mysql # aggregate syntax: 
query II rowsort label-2854
SELECT ALL - COUNT( * ), - 96 * + 87 * + 62 * - + 77 AS col0
----
-1
39872448

skipif mysql # not compatible
query II rowsort label-2854
SELECT ALL - COUNT ( * ), - 96 * + 87 * + 62 * - + 77 AS col0
----
-1
39872448

query I rowsort
SELECT ALL - + 9 + - 55 col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT + - NULLIF ( - COUNT( ALL - - 36 ), - 97 + - 66 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2856
SELECT + - NULLIF ( - COUNT ( ALL - - 36 ), - 97 + - 66 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT DISTINCT + 41 * - 47 * 74 - COUNT( * )
----
-142599

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT + 41 * - 47 * 74 - COUNT ( * )
----
-142599

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT DISTINCT - 83 + MAX( - - 20 ) + 58 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT - 83 + MAX ( - - 20 ) + 58 AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2859
SELECT + - 85 AS col2, - CAST( NULL AS SIGNED ) + - 56
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-2859
SELECT + - 85 AS col2, - CAST ( NULL AS INTEGER ) + - 56
----
-85
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-2860
SELECT ALL - - 17 + - COUNT( * ) * - - 59, 1 * - COUNT( DISTINCT + 40 ) AS col2, - 10 AS col1
----
-42
-1
-10

skipif mysql # not compatible
query III rowsort label-2860
SELECT ALL - - 17 + - COUNT ( * ) * - - 59, 1 * - COUNT ( DISTINCT + 40 ) AS col2, - 10 AS col1
----
-42
-1
-10

query II rowsort
SELECT 44 * 80 - + + 64 AS col0, - 72 + ( - - 56 ) + ( - 75 ) * + 74 + - 29
----
3456
-5595

query I rowsort
SELECT 77 * + 88 AS col1
----
6776

query I rowsort
SELECT ALL + 47 * - + 66
----
-3102

query I rowsort
SELECT ALL - 89 - 93 AS col1
----
-182

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

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

query I rowsort
SELECT ALL - - 29 - - + 53
----
82

query I rowsort
SELECT 16 - - 39
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2868
SELECT DISTINCT - 68 DIV 85 * - SUM( - 21 ) * 83 DIV - ( + COUNT( * ) ) + + 69 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT - 68 / 85 * - SUM ( - 21 ) * 83 / - ( + COUNT ( * ) ) + + 69 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT ALL MIN( ALL 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2869
SELECT ALL MIN ( ALL 38 ) AS col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-2870
SELECT 96 DIV 18 col2
----
5

skipif mysql # not compatible
query I rowsort label-2870
SELECT 96 / 18 col2
----
5

query I rowsort
SELECT 32 * 61 AS col2
----
1952

query I rowsort
SELECT - 8 + + 85 * + 44
----
3732

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT + COUNT( * ) * - CASE - - 71 WHEN 24 * + 42 THEN 54 + + - 54 + 89 * + - 14 * 46 * - 11 ELSE + 5 * + + 99 + CASE + - 9 WHEN + 27 THEN + 88 END + 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT + COUNT ( * ) * - CASE - - 71 WHEN 24 * + 42 THEN 54 + + - 54 + 89 * + - 14 * 46 * - 11 ELSE + 5 * + + 99 + CASE + - 9 WHEN + 27 THEN + 88 END + 52 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT ALL - 51 * + + CASE - 10 WHEN + - 92 + ( - 65 ) THEN NULL WHEN COUNT( * ) - 93 THEN COUNT( * ) * + 28 + 47 - 73 WHEN 37 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL - 51 * + + CASE - 10 WHEN + - 92 + ( - 65 ) THEN NULL WHEN COUNT ( * ) - 93 THEN COUNT ( * ) * + 28 + 47 - 73 WHEN 37 THEN NULL END col0
----
NULL

query I rowsort
SELECT + 77 * 68
----
5236

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT ALL COALESCE ( - 62, 46 * - COUNT( * ), - 84 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL COALESCE ( - 62, 46 * - COUNT ( * ), - 84 ) AS col1
----
-62

query I rowsort
SELECT + COALESCE ( + 75, - 4 * + 60, + 73 + - + 97 ) * + 17 * 7 col2
----
8925

query I rowsort
SELECT - 59 + - 55
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT + CASE + SUM( ALL 90 ) WHEN - + 96 / - + 6 * - + 28 THEN - COUNT( * ) * - + 35 + + - 70 / - 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2880
SELECT + CASE + SUM ( ALL 90 ) WHEN - + 96 / - + 6 * - + 28 THEN - COUNT ( * ) * - + 35 + + - 70 / - 92 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2881
SELECT + COALESCE ( 65, - COUNT( + 84 ) - + 75 * - + 15, - + 42 ), 67 * + COUNT( * ) * - 23 AS col2
----
65
-1541

skipif mysql # not compatible
query II rowsort label-2881
SELECT + COALESCE ( 65, - COUNT ( + 84 ) - + 75 * - + 15, - + 42 ), 67 * + COUNT ( * ) * - 23 AS col2
----
65
-1541

query I rowsort
SELECT + 35 + - 80 + + - CASE + 74 WHEN + - 99 * + 64 + - 38 THEN NULL ELSE + 28 END col1
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-2883
SELECT - ( + 69 ) * - COUNT( * ) + - + 20 + 22 AS col2, 50 * + + 98 AS col2
----
71
4900

skipif mysql # not compatible
query II rowsort label-2883
SELECT - ( + 69 ) * - COUNT ( * ) + - + 20 + 22 AS col2, 50 * + + 98 AS col2
----
71
4900

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT + SUM( - 58 ) * 86
----
-4988

skipif mysql # not compatible
query I rowsort label-2884
SELECT + SUM ( - 58 ) * 86
----
-4988

query I rowsort
SELECT ALL - 95 * + 21 + + 43 + + 10 * - - 43 - + + 2 * - + 69 + - ( + ( + 54 ) )
----
-1438

onlyif mysql # DIV for integer division: 
query II rowsort label-2886
SELECT + + 2 DIV ( - + COALESCE ( - 12, - 49 * + + 39 ) ) + - 64 AS col0, + CASE - AVG ( + + 0 ) WHEN - - 92 + + 1 THEN 10 ELSE NULL END AS col0
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-2886
SELECT + + 2 / ( - + COALESCE ( - 12, - 49 * + + 39 ) ) + - 64 AS col0, + CASE - AVG ( + + 0 ) WHEN - - 92 + + 1 THEN 10 ELSE NULL END AS col0
----
-64
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2887
SELECT ALL + + 8 * 65 + + + COUNT( * ) DIV - COUNT( * ), - ( - + 20 ) AS col1
----
519
20

skipif mysql # not compatible
query II rowsort label-2887
SELECT ALL + + 8 * 65 + + + COUNT ( * ) / - COUNT ( * ), - ( - + 20 ) AS col1
----
519
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT DISTINCT + - 42 * COUNT( * ) + + NULLIF ( - - 24, + 85 ) * + - 97
----
-2370

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT + - 42 * COUNT ( * ) + + NULLIF ( - - 24, + 85 ) * + - 97
----
-2370

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT ALL - 80 * + - COALESCE ( - 95, 47 ) + COUNT( * ) * 18 * 8 + + - CASE 15 WHEN + 50 * - 45 THEN - - SUM( DISTINCT ( + 7 ) ) * + 50 + 16 + - 63 + 89 * - + ( - COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL - 80 * + - COALESCE ( - 95, 47 ) + COUNT ( * ) * 18 * 8 + + - CASE 15 WHEN + 50 * - 45 THEN - - SUM ( DISTINCT ( + 7 ) ) * + 50 + 16 + - 63 + 89 * - + ( - COUNT ( * ) ) ELSE NULL END
----
NULL

query II rowsort
SELECT + - 34 + + 92 AS col1, + 12 col0
----
58
12

query II rowsort
SELECT 48 * + - 96 + + 79 + - + 71, 96 AS col0
----
-4600
96

query I rowsort
SELECT - 55 * 91 * + 77 * 12
----
-4624620

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT + SUM( DISTINCT - 74 ) + + 15 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-2893
SELECT + SUM ( DISTINCT - 74 ) + + 15 AS col1
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-2894
SELECT - 82 - - + ( + + 32 ) + ( + - 96 ) DIV - 27 + + - 17 col1, - 5 AS col2
----
-64
-5

skipif mysql # not compatible
query II rowsort label-2894
SELECT - 82 - - + ( + + 32 ) + ( + - 96 ) / - 27 + + - 17 col1, - 5 AS col2
----
-64
-5

query I rowsort
SELECT + - 82 * - 96 * + + 83
----
653376

query I rowsort
SELECT + 94 * + + 31 + 56 AS col0
----
2970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2897
SELECT DISTINCT 23 * + 24 - - 65 - ( - + CAST( NULL AS SIGNED ) ) + + 14 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT 23 * + 24 - - 65 - ( - + CAST ( NULL AS INTEGER ) ) + + 14 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2898
SELECT - - 32 + NULLIF ( - - 96, + ( - COUNT( * ) ) ) + - ( 56 ) DIV 39 DIV COUNT( * ) + + COUNT( DISTINCT + 55 ) * + 77
----
204

skipif mysql # not compatible
query I rowsort label-2898
SELECT - - 32 + NULLIF ( - - 96, + ( - COUNT ( * ) ) ) + - ( 56 ) / 39 / COUNT ( * ) + + COUNT ( DISTINCT + 55 ) * + 77
----
204

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2900
SELECT + 49 + + SUM( + - 17 ) + + 90 * + CAST( NULL AS SIGNED ) * 32 / + 9 * CASE + ( - 9 ) WHEN + - AVG ( ALL 6 ) THEN NULL WHEN - - 44 THEN + 40 * + 83 / - 11 * - 82 WHEN + + 83 / MIN( - + 92 ) * - COUNT( * ) + 25 / + 20 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2900
SELECT + 49 + + SUM ( + - 17 ) + + 90 * + CAST ( NULL AS INTEGER ) * 32 / + 9 * CASE + ( - 9 ) WHEN + - AVG ( ALL 6 ) THEN NULL WHEN - - 44 THEN + 40 * + 83 / - 11 * - 82 WHEN + + 83 / MIN ( - + 92 ) * - COUNT ( * ) + 25 / + 20 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 25 + + + 74
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2902
SELECT - MAX( - CAST( - 64 AS SIGNED ) ) + 14
----
-50

skipif mysql # not compatible
query I rowsort label-2902
SELECT - MAX ( - CAST ( - 64 AS INTEGER ) ) + 14
----
-50

query I rowsort
SELECT ALL ( + 97 ) AS col0
----
97

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL - 19 + - COUNT ( * ) AS col2
----
-20

query I rowsort
SELECT - 95 + - + 6
----
-101

query I rowsort
SELECT DISTINCT - 10 * + 71 AS col0
----
-710

query I rowsort
SELECT DISTINCT - 37 + + + 22 + - + 87
----
-102

query I rowsort
SELECT - 59 * - + 42 col2
----
2478

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT DISTINCT + 47 * + + 86 * + - MIN( + 86 ) * + + 13 AS col2
----
-4518956

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT + 47 * + + 86 * + - MIN ( + 86 ) * + + 13 AS col2
----
-4518956

query I rowsort
SELECT ALL - 93 * 65 AS col2
----
-6045

onlyif mysql # DIV for integer division: 
query I rowsort label-2913
SELECT - 12 DIV + 33
----
0

skipif mysql # not compatible
query I rowsort label-2913
SELECT - 12 / + 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT + COUNT( * ) + - 63 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-2914
SELECT + COUNT ( * ) + - 63 AS col0
----
-62

query I rowsort
SELECT DISTINCT ( + 71 ) + + 47
----
118

query I rowsort
SELECT ALL + 18 + 33 + - 74
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT - CASE - 91 WHEN + 20 - 34 + SUM( + 51 ) * 48 * 40 * - 90 * + + 97 + - NULLIF ( - 31, + 54 * - 88 ) THEN + 68 + + - 55 + + 50 ELSE 74 END + + + COUNT( * ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-2917
SELECT - CASE - 91 WHEN + 20 - 34 + SUM ( + 51 ) * 48 * 40 * - 90 * + + 97 + - NULLIF ( - 31, + 54 * - 88 ) THEN + 68 + + - 55 + + 50 ELSE 74 END + + + COUNT ( * ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT DISTINCT - ( + COUNT( * ) ) * + 36 + + + 42
----
6

skipif mysql # not compatible
query I rowsort label-2918
SELECT DISTINCT - ( + COUNT ( * ) ) * + 36 + + + 42
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2919
SELECT ALL - 26 DIV 20 DIV + SUM( DISTINCT + ( - 75 ) ) + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL - 26 / 20 / + SUM ( DISTINCT + ( - 75 ) ) + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT + - 69 * 29 * - COUNT( * ) + + - 49 * - COUNT( * ) * + 3 AS col2
----
2148

skipif mysql # not compatible
query I rowsort label-2920
SELECT + - 69 * 29 * - COUNT ( * ) + + - 49 * - COUNT ( * ) * + 3 AS col2
----
2148

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

query II rowsort
SELECT + 34, 66 col0
----
34
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2923
SELECT - - 2 * 14 DIV - - COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-2923
SELECT - - 2 * 14 / - - COUNT ( * ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT + - MAX( DISTINCT + 49 ) + + NULLIF ( + - ( + + 11 ), - + 71 + - COUNT( * ) ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-2924
SELECT + - MAX ( DISTINCT + 49 ) + + NULLIF ( + - ( + + 11 ), - + 71 + - COUNT ( * ) ) AS col2
----
-60

query I rowsort
SELECT ALL - 91 * 78 col0
----
-7098

query I rowsort
SELECT - 34 * + 81 + 40
----
-2714

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT DISTINCT - SUM( ALL + 35 ) * + + 25 AS col0
----
-875

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT - SUM ( ALL + 35 ) * + + 25 AS col0
----
-875

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT + 19 * 81 * + COUNT( + - ( + 99 ) )
----
1539

skipif mysql # not compatible
query I rowsort label-2929
SELECT + 19 * 81 * + COUNT ( + - ( + 99 ) )
----
1539

query I rowsort
SELECT ALL + + CASE + 56 WHEN - - 8 THEN NULL ELSE 3 END
----
3

query I rowsort
SELECT DISTINCT - 98 * - 97 * 75 + + 61 AS col2
----
713011

query II rowsort
SELECT 22, + 23 AS col1
----
22
23

query I rowsort
SELECT - 53 * - 46 - - 57 AS col1
----
2495

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2935
SELECT NULLIF ( 74, + - NULLIF ( + CAST( NULL AS SIGNED ), + 83 ) + - - 5 ) * + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2935
SELECT NULLIF ( 74, + - NULLIF ( + CAST ( NULL AS INTEGER ), + 83 ) + - - 5 ) * + + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 48 + 19 AS col2
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2937
SELECT 22 * 55 * MAX( DISTINCT + 19 ), - 1 * COUNT( * ) AS col2
----
22990
-1

skipif mysql # not compatible
query II rowsort label-2937
SELECT 22 * 55 * MAX ( DISTINCT + 19 ), - 1 * COUNT ( * ) AS col2
----
22990
-1

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

query I rowsort
SELECT ALL + ( + - 81 ) * - 94 AS col2
----
7614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2940
SELECT ALL CASE - 40 WHEN + 70 * + 5 THEN NULL WHEN - NULLIF ( + 17, + 15 ) - + 78 + + CAST( NULL AS SIGNED ) THEN COUNT( * ) * - + COUNT( * ) - - CAST( - 20 AS SIGNED ) + 71 END / 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL CASE - 40 WHEN + 70 * + 5 THEN NULL WHEN - NULLIF ( + 17, + 15 ) - + 78 + + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) * - + COUNT ( * ) - - CAST ( - 20 AS INTEGER ) + 71 END / 27 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT 41 - + COUNT( * ) + - + 62 * - 54 + CASE ( - 23 ) WHEN 48 THEN COUNT( * ) WHEN + COUNT( * ) * - 42 + + 3 THEN NULL WHEN + 22 * + 54 + 20 + - 58 * + COUNT( * ) THEN NULL ELSE + 81 * 18 END * 20
----
32548

skipif mysql # not compatible
query I rowsort label-2941
SELECT 41 - + COUNT ( * ) + - + 62 * - 54 + CASE ( - 23 ) WHEN 48 THEN COUNT ( * ) WHEN + COUNT ( * ) * - 42 + + 3 THEN NULL WHEN + 22 * + 54 + 20 + - 58 * + COUNT ( * ) THEN NULL ELSE + 81 * 18 END * 20
----
32548

query I rowsort
SELECT ALL - 24 + - 67 + + + 59 AS col0
----
-32

query I rowsort
SELECT ALL 78 + + 7
----
85

query II rowsort
SELECT - 80 AS col1, ( 31 ) * - 47 * - 77 * - 33 AS col1
----
-80
-3702237

query II rowsort
SELECT - 82, 40 * + 36 AS col1
----
-82
1440

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2946
SELECT DISTINCT 84 col0, + COALESCE ( + + 53, ( + CAST( NULL AS SIGNED ) ) )
----
84
53

skipif mysql # not compatible
query II rowsort label-2946
SELECT DISTINCT 84 col0, + COALESCE ( + + 53, ( + CAST ( NULL AS INTEGER ) ) )
----
84
53

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

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

query I rowsort
SELECT 73 * 51 AS col0
----
3723

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

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

query I rowsort
SELECT DISTINCT - 6 + - 78 - 26
----
-110

query I rowsort
SELECT 85 - + ( - + 33 ) AS col0
----
118

query I rowsort
SELECT ALL - 88 + - - 64 AS col2
----
-24

query I rowsort
SELECT 63 - - 78
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2954
SELECT ALL 1, - CAST( 72 AS SIGNED ) + CASE - 42 WHEN + CAST( NULL AS SIGNED ) + - MAX( DISTINCT + ( 62 ) ) THEN + 72 / + ( + + 14 ) - + 10 END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2954
SELECT ALL 1, - CAST ( 72 AS INTEGER ) + CASE - 42 WHEN + CAST ( NULL AS INTEGER ) + - MAX ( DISTINCT + ( 62 ) ) THEN + 72 / + ( + + 14 ) - + 10 END AS col1
----
1
NULL

query I rowsort
SELECT DISTINCT + 14 + + + 9
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL + 98 * + CASE + 25 WHEN + + ( 45 ) * + + 71 + + - 67 + + 32 * 55 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL + 98 * + CASE + 25 WHEN + + ( 45 ) * + + 71 + + - 67 + + 32 * 55 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT + + MAX( + 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-2957
SELECT + + MAX ( + 42 ) AS col2
----
42

query II rowsort
SELECT DISTINCT - 34 col2, ( + + 11 ) AS col2
----
-34
11

query I rowsort
SELECT ( + 87 ) + + 92
----
179

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

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

query I rowsort
SELECT ALL - 62 * + 76
----
-4712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT + + 64 / 99 * CAST( NULL AS SIGNED ) + - 10 + 97 / + 43 + - 65 + + 55 * - ( + 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2962
SELECT + + 64 / 99 * CAST ( NULL AS INTEGER ) + - 10 + 97 / + 43 + - 65 + + 55 * - ( + 34 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2963
SELECT + 90 * + + 90 * 53 * + CAST( NULL AS SIGNED ) + CAST( + 91 AS DECIMAL ) AS col1, 13 * - 25
----
NULL
-325

skipif mysql # not compatible
query II rowsort label-2963
SELECT + 90 * + + 90 * 53 * + CAST ( NULL AS INTEGER ) + CAST ( + 91 AS REAL ) AS col1, 13 * - 25
----
NULL
-325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2964
SELECT ALL + CASE - - 17 WHEN + + CASE 87 WHEN 94 THEN 87 END * - COUNT( * ) * + 47 + ( 17 ) + - AVG ( ALL 37 ) - COUNT( * ) + - 31 + + 27 - - + SUM( + + CAST( NULL AS SIGNED ) ) * + MIN( ALL + 71 ) + 24 / 42 + - 61 THEN + 3 * 53 END * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL + CASE - - 17 WHEN + + CASE 87 WHEN 94 THEN 87 END * - COUNT ( * ) * + 47 + ( 17 ) + - AVG ( ALL 37 ) - COUNT ( * ) + - 31 + + 27 - - + SUM ( + + CAST ( NULL AS INTEGER ) ) * + MIN ( ALL + 71 ) + 24 / 42 + - 61 THEN + 3 * 53 END * 86
----
NULL

query I rowsort
SELECT ALL - ( + + 68 ) * + 98 AS col2
----
-6664

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

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

query I rowsort
SELECT ALL - - ( 27 ) AS col0
----
27

query I rowsort
SELECT - 30 + + + 84
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2969
SELECT MIN( - COALESCE ( - + 81, 1 + - CAST( NULL AS SIGNED ) ) )
----
81

skipif mysql # not compatible
query I rowsort label-2969
SELECT MIN ( - COALESCE ( - + 81, 1 + - CAST ( NULL AS INTEGER ) ) )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2970
SELECT + 27 * + 92 - + 95 + - + 23 * - ( + 98 ) - 46 - 58 + + 83 + - SUM( - + 69 ) DIV - 83 + + + CASE - 66 WHEN - COUNT( * ) THEN NULL WHEN - 56 + + + 43 THEN NULL ELSE 15 END AS col0
----
4637

skipif mysql # not compatible
query I rowsort label-2970
SELECT + 27 * + 92 - + 95 + - + 23 * - ( + 98 ) - 46 - 58 + + 83 + - SUM ( - + 69 ) / - 83 + + + CASE - 66 WHEN - COUNT ( * ) THEN NULL WHEN - 56 + + + 43 THEN NULL ELSE 15 END AS col0
----
4637

onlyif mysql # DIV for integer division: 
query I rowsort label-2971
SELECT - 10 DIV + + 65 * + 20 + + 35 + + + 12
----
47

skipif mysql # not compatible
query I rowsort label-2971
SELECT - 10 / + + 65 * + 20 + + 35 + + + 12
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2972
SELECT + CAST( + + 44 AS SIGNED ) * - - 32 + - 98 col2
----
1310

skipif mysql # not compatible
query I rowsort label-2972
SELECT + CAST ( + + 44 AS INTEGER ) * - - 32 + - 98 col2
----
1310

query I rowsort
SELECT - 86 * - - 93 + 12 AS col2
----
-7986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2974
SELECT DISTINCT NULLIF ( + - 77, - CASE WHEN NULL IS NOT NULL THEN - 35 END ) + - - NULLIF ( + 14, NULLIF ( CASE - 85 WHEN - 38 * - 46 THEN + 44 ELSE NULL END, + - CAST( + - COALESCE ( - + 39, + - 92, - 3 * + 87 + - 15, + + 19 ) AS SIGNED ) ) / - 66 ) + - 5 * 32 AS col2
----
-223

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT NULLIF ( + - 77, - CASE WHEN NULL IS NOT NULL THEN - 35 END ) + - - NULLIF ( + 14, NULLIF ( CASE - 85 WHEN - 38 * - 46 THEN + 44 ELSE NULL END, + - CAST ( + - COALESCE ( - + 39, + - 92, - 3 * + 87 + - 15, + + 19 ) AS INTEGER ) ) / - 66 ) + - 5 * 32 AS col2
----
-223

query I rowsort
SELECT DISTINCT ( - - 88 ) * - - 82 + + 71 * - 43
----
4163

onlyif mysql # aggregate syntax: 
query II rowsort label-2976
SELECT DISTINCT + COUNT( * ) + - 3 AS col0, 7 col0
----
-2
7

skipif mysql # not compatible
query II rowsort label-2976
SELECT DISTINCT + COUNT ( * ) + - 3 AS col0, 7 col0
----
-2
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT COALESCE ( - 61, - ( + CASE - + 65 WHEN 33 * - - MIN( 35 ) * - 25 + - - 72 THEN - 3 * - 6 + 17 + 29 + - 89 END ) - + COALESCE ( + 14, - 96 + - 92 ) ) + 78 * + + COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-2977
SELECT COALESCE ( - 61, - ( + CASE - + 65 WHEN 33 * - - MIN ( 35 ) * - 25 + - - 72 THEN - 3 * - 6 + 17 + 29 + - 89 END ) - + COALESCE ( + 14, - 96 + - 92 ) ) + 78 * + + COUNT ( * ) AS col0
----
17

query I rowsort
SELECT DISTINCT ( 69 ) + - 89
----
-20

query I rowsort
SELECT ALL 37 + 60 * + + ( + 90 ) + - + 93
----
5344

onlyif mysql # aggregate syntax: 
query II rowsort label-2980
SELECT - SUM( 4 ) AS col2, 85 * + - 35 * - - 47 col1
----
-4
-139825

skipif mysql # not compatible
query II rowsort label-2980
SELECT - SUM ( 4 ) AS col2, 85 * + - 35 * - - 47 col1
----
-4
-139825

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2981
SELECT 47 + COUNT( DISTINCT - 91 ) AS col1, + 36 + 15 + CAST( NULL AS DECIMAL ) * 65 * - NULLIF ( - 36, - - 29 ) AS col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-2981
SELECT 47 + COUNT ( DISTINCT - 91 ) AS col1, + 36 + 15 + CAST ( NULL AS REAL ) * 65 * - NULLIF ( - 36, - - 29 ) AS col1
----
48
NULL

query I rowsort
SELECT 82 * 90 AS col2
----
7380

query I rowsort
SELECT ALL 24 + 53 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT ALL 0 + - 22 - - - COUNT( * ) - 34 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL 0 + - 22 - - - COUNT ( * ) - 34 AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2985
SELECT CAST( + - 37 AS SIGNED ) + - - MIN( - 92 ) DIV - - 91 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-2985
SELECT CAST ( + - 37 AS INTEGER ) + - - MIN ( - 92 ) / - - 91 AS col0
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-2986
SELECT DISTINCT 29 DIV - - 89
----
0

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT 29 / - - 89
----
0

query I rowsort
SELECT ALL - 16 - 77 + 81 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT - COALESCE ( - 47, - 88 - - + COUNT( * ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-2988
SELECT - COALESCE ( - 47, - 88 - - + COUNT ( * ) ) AS col2
----
47

query II rowsort
SELECT 59 * 17 AS col2, 66 + - COALESCE ( + 89, 28 ) + 47 + + 87
----
1003
111

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2991
SELECT - 21 + - - SUM( + + 13 ), COUNT( * ) + - 71 col2
----
-8
-70

skipif mysql # not compatible
query II rowsort label-2991
SELECT - 21 + - - SUM ( + + 13 ), COUNT ( * ) + - 71 col2
----
-8
-70

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2993
SELECT 0 * - COALESCE ( + 98, - COUNT( * ) DIV - 2, 41 )
----
0

skipif mysql # not compatible
query I rowsort label-2993
SELECT 0 * - COALESCE ( + 98, - COUNT ( * ) / - 2, 41 )
----
0

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

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL - - MAX ( ALL 55 )
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-2995
SELECT ALL + 9 * 57 DIV 95 AS col0, 44
----
5
44

skipif mysql # not compatible
query II rowsort label-2995
SELECT ALL + 9 * 57 / 95 AS col0, 44
----
5
44

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

query I rowsort
SELECT DISTINCT + - NULLIF ( - 98, ( - + 88 ) ) * - 29
----
-2842

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2998
SELECT + CASE - 37 WHEN - + ( + 89 ) + - - COUNT( * ) THEN NULL ELSE + CAST( NULL AS DECIMAL ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2998
SELECT + CASE - 37 WHEN - + ( + 89 ) + - - COUNT ( * ) THEN NULL ELSE + CAST ( NULL AS REAL ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2999
SELECT 79 * + + NULLIF ( - 99, - + 14 * + CAST( NULL AS SIGNED ) ) * + 99 * 36 * + 10 - 22 * + 52
----
-278741584

skipif mysql # not compatible
query I rowsort label-2999
SELECT 79 * + + NULLIF ( - 99, - + 14 * + CAST ( NULL AS INTEGER ) ) * + 99 * 36 * + 10 - 22 * + 52
----
-278741584

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3000
SELECT - - 70 * - - 18 DIV 18 AS col2, CAST( NULL AS SIGNED ) + - - 1 + - + 30 - 27 + + + 76 * + + 43 DIV 11 AS col2
----
70
NULL

skipif mysql # not compatible
query II rowsort label-3000
SELECT - - 70 * - - 18 / 18 AS col2, CAST ( NULL AS INTEGER ) + - - 1 + - + 30 - 27 + + + 76 * + + 43 / 11 AS col2
----
70
NULL

query I rowsort
SELECT ALL + + 54 * + 92 AS col1
----
4968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3002
SELECT ALL - CAST( + + 16 AS SIGNED ) * 75 + 36 + 70 + ( + COUNT( * ) )
----
-1093

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL - CAST ( + + 16 AS INTEGER ) * 75 + 36 + 70 + ( + COUNT ( * ) )
----
-1093

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

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

query I rowsort
SELECT - 94 * + 87 - + 26 AS col2
----
-8204

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT + 87 * + 17 + - + ( 57 ) + - COUNT( DISTINCT + + 32 ) * + 38 * - NULLIF ( + 78, + 59 ) + + 44
----
4430

skipif mysql # not compatible
query I rowsort label-3005
SELECT + 87 * + 17 + - + ( 57 ) + - COUNT ( DISTINCT + + 32 ) * + 38 * - NULLIF ( + 78, + 59 ) + + 44
----
4430

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT ALL - + SUM( ALL + + 62 ) * - 93 + + 26 * + + 46 AS col2
----
6962

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL - + SUM ( ALL + + 62 ) * - 93 + + 26 * + + 46 AS col2
----
6962

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL - 83 * + - 73 + COALESCE ( 89, + COUNT( * ), - + 26 - - - 24 * COUNT( * ) ) + 92 AS col2
----
6240

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL - 83 * + - 73 + COALESCE ( 89, + COUNT ( * ), - + 26 - - - 24 * COUNT ( * ) ) + 92 AS col2
----
6240

query II rowsort
SELECT ALL 82 * - 60 + + 37 + 41 AS col0, 8 AS col1
----
-4842
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT DISTINCT - 66 * + - COUNT( * ) + + 44
----
110

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT - 66 * + - COUNT ( * ) + + 44
----
110

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3011
SELECT COUNT( * ) AS col2, + 11 + - + COUNT( * ) * - NULLIF ( + 58, - + 32 * NULLIF ( + + CAST( - + 23 AS DECIMAL ), 80 ) )
----
1
69

skipif mysql # not compatible
query II rowsort label-3011
SELECT COUNT ( * ) AS col2, + 11 + - + COUNT ( * ) * - NULLIF ( + 58, - + 32 * NULLIF ( + + CAST ( - + 23 AS REAL ), 80 ) )
----
1
69

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

skipif mysql # not compatible
query I rowsort label-3012
SELECT + MIN ( + - 40 )
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-3013
SELECT - 19 - - 37 - - - 72 DIV 28 * 25
----
-32

skipif mysql # not compatible
query I rowsort label-3013
SELECT - 19 - - 37 - - - 72 / 28 * 25
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT MAX( ALL + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-3014
SELECT MAX ( ALL + 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT + ( - ( + 19 ) ) * 80 - COUNT( - + 67 ) * 69
----
-1589

skipif mysql # not compatible
query I rowsort label-3015
SELECT + ( - ( + 19 ) ) * 80 - COUNT ( - + 67 ) * 69
----
-1589

onlyif mysql # aggregate syntax: 
query II rowsort label-3016
SELECT + ( + CASE 2 WHEN - 17 / - COUNT( * ) THEN 64 * - 39 * + 88 * + + 48 + + 11 * 16 + + 56 END ) + + - 22 AS col2, + 25
----
NULL
25

skipif mysql # not compatible
query II rowsort label-3016
SELECT + ( + CASE 2 WHEN - 17 / - COUNT ( * ) THEN 64 * - 39 * + 88 * + + 48 + + 11 * 16 + + 56 END ) + + - 22 AS col2, + 25
----
NULL
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3017
SELECT DISTINCT CASE + + 76 WHEN + 85 * + - COUNT( * ) THEN + + COUNT( 20 ) WHEN - + SUM( ALL CAST( NULL AS SIGNED ) ) THEN + ( + MIN( - - 7 ) ) + 21 / + + 23 + - + 59 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT CASE + + 76 WHEN + 85 * + - COUNT ( * ) THEN + + COUNT ( 20 ) WHEN - + SUM ( ALL CAST ( NULL AS INTEGER ) ) THEN + ( + MIN ( - - 7 ) ) + 21 / + + 23 + - + 59 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL COALESCE ( 52, + ( 50 ), - - CASE 20 WHEN + 48 THEN ( + 70 ) ELSE NULL END, - - 32 )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-3019
SELECT ALL SUM( ALL - 66 ) * 99 + - 4 col1, - ( - 72 ) + - COUNT( * )
----
-6538
71

skipif mysql # not compatible
query II rowsort label-3019
SELECT ALL SUM ( ALL - 66 ) * 99 + - 4 col1, - ( - 72 ) + - COUNT ( * )
----
-6538
71

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

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

query II rowsort
SELECT ALL 43, + 30 AS col1
----
43
30

query I rowsort
SELECT - NULLIF ( - ( - + 84 ), CASE 60 WHEN - 35 THEN NULL ELSE 49 END ) * + 50 AS col0
----
-4200

query II rowsort
SELECT - 36 AS col2, 98 AS col0
----
-36
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3024
SELECT + 10 DIV 30 DIV + 50 * + ( SUM( ALL - 78 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3024
SELECT + 10 / 30 / + 50 * + ( SUM ( ALL - 78 ) ) AS col2
----
0

query I rowsort
SELECT + 49 * ( - - 15 ) col1
----
735

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT ALL + NULLIF ( - - COUNT( * ), + COUNT( * ) ) / - 11 * + + 37 + 44 * + ( - COUNT( * ) ) * - - 6 * + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL + NULLIF ( - - COUNT ( * ), + COUNT ( * ) ) / - 11 * + + 37 + 44 * + ( - COUNT ( * ) ) * - - 6 * + 89 AS col1
----
NULL

query II rowsort
SELECT ALL + 79 AS col0, + 62 - + + 22 AS col1
----
79
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT + - COUNT( * ) - + 40 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-3028
SELECT + - COUNT ( * ) - + 40 AS col1
----
-41

query I rowsort
SELECT ALL + 54 * 37 * + - 37 AS col0
----
-73926

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

skipif mysql # not compatible
query I rowsort label-3030
SELECT + + CAST ( NULL AS INTEGER ) * 22
----
NULL

query I rowsort
SELECT ALL + 79 * - 95 * + - 98 col0
----
735490

query II rowsort
SELECT - ( - ( - 56 ) ), 48 AS col1
----
-56
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3033
SELECT ALL - - NULLIF ( 22, 16 ) DIV - - 19 + - - ( + + 19 ) + 89
----
109

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL - - NULLIF ( 22, 16 ) / - - 19 + - - ( + + 19 ) + 89
----
109

query II rowsort
SELECT - 43 * 36 + - 91 AS col1, 2
----
-1639
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3035
SELECT - - 83 DIV - 36 - - - 52 * 89 + + 87
----
-4543

skipif mysql # not compatible
query I rowsort label-3035
SELECT - - 83 / - 36 - - - 52 * 89 + + 87
----
-4543

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT + MAX( - NULLIF ( - 57, - - 49 * 1 ) ) * - + 56 * 45 + - COUNT( * )
----
-143641

skipif mysql # not compatible
query I rowsort label-3036
SELECT + MAX ( - NULLIF ( - 57, - - 49 * 1 ) ) * - + 56 * 45 + - COUNT ( * )
----
-143641

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3037
SELECT - ( + - 58 ) DIV + + 39 - - - 88 * - + 89 + MIN( DISTINCT - - 83 ) col2
----
7916

skipif mysql # not compatible
query I rowsort label-3037
SELECT - ( + - 58 ) / + + 39 - - - 88 * - + 89 + MIN ( DISTINCT - - 83 ) col2
----
7916

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3038
SELECT ALL + + COUNT( * ) DIV - 84 + - ( - + 20 ) - - - 24 + - - MIN( - CAST( 50 AS SIGNED ) ) + - - COUNT( DISTINCT + 56 ) + - + COUNT( * ) + - COUNT( ( - - 30 ) ) * + 24 * - 91
----
2130

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL + + COUNT ( * ) / - 84 + - ( - + 20 ) - - - 24 + - - MIN ( - CAST ( 50 AS INTEGER ) ) + - - COUNT ( DISTINCT + 56 ) + - + COUNT ( * ) + - COUNT ( ( - - 30 ) ) * + 24 * - 91
----
2130

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3039
SELECT ALL 78 DIV 91 * COUNT( * ) + + - 50 AS col1, SUM( 24 ) AS col1
----
-50
24

skipif mysql # not compatible
query II rowsort label-3039
SELECT ALL 78 / 91 * COUNT ( * ) + + - 50 AS col1, SUM ( 24 ) AS col1
----
-50
24

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3041
SELECT ALL - CASE + COUNT( * ) WHEN CAST( NULL AS DECIMAL ) THEN - 81 ELSE NULL END / - 9 * + - 65 + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL - CASE + COUNT ( * ) WHEN CAST ( NULL AS REAL ) THEN - 81 ELSE NULL END / - 9 * + - 65 + 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3042
SELECT 1 * + 14 + - + ( - - COALESCE ( - COUNT( * ), 42 + - CAST( 50 AS SIGNED ) / - ( - 32 ) ) ) * + + 47 - ( + MIN( ALL - - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3042
SELECT 1 * + 14 + - + ( - - COALESCE ( - COUNT ( * ), 42 + - CAST ( 50 AS INTEGER ) / - ( - 32 ) ) ) * + + 47 - ( + MIN ( ALL - - CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL + 2 * + - 64 * - 99
----
12672

onlyif mysql # aggregate syntax: 
query II rowsort label-3044
SELECT ALL + COUNT( + 60 ) AS col2, COUNT( + - 92 ) * - 38
----
1
-38

skipif mysql # not compatible
query II rowsort label-3044
SELECT ALL + COUNT ( + 60 ) AS col2, COUNT ( + - 92 ) * - 38
----
1
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-3045
SELECT ALL - CASE - + 93 WHEN - COUNT( * ) THEN - 19 ELSE NULL END * + 65, CASE - NULLIF ( + 23, - 85 ) WHEN 69 + + CASE + + 77 WHEN - 41 THEN NULL WHEN COALESCE ( + + 63, - 45, + COALESCE ( - 14, - 5 ) * + - COALESCE ( + + 49, 38 ) ) / 90 THEN NULL WHEN - 37 THEN - ( 39 ) + + 78 END + - 89 * 54 THEN 79 + ( - COUNT( * ) + - 68 * 15 ) END * 85 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3045
SELECT ALL - CASE - + 93 WHEN - COUNT ( * ) THEN - 19 ELSE NULL END * + 65, CASE - NULLIF ( + 23, - 85 ) WHEN 69 + + CASE + + 77 WHEN - 41 THEN NULL WHEN COALESCE ( + + 63, - 45, + COALESCE ( - 14, - 5 ) * + - COALESCE ( + + 49, 38 ) ) / 90 THEN NULL WHEN - 37 THEN - ( 39 ) + + 78 END + - 89 * 54 THEN 79 + ( - COUNT ( * ) + - 68 * 15 ) END * 85 AS col2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3046
SELECT - 65 DIV + 54
----
-1

skipif mysql # not compatible
query I rowsort label-3046
SELECT - 65 / + 54
----
-1

query I rowsort
SELECT ALL + 2 * + 60
----
120

query I rowsort
SELECT COALESCE ( 33, - - 13 )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3049
SELECT DISTINCT ( + - 31 ) AS col1, COUNT( * ) DIV 40 * 52 + + 45
----
-31
45

skipif mysql # not compatible
query II rowsort label-3049
SELECT DISTINCT ( + - 31 ) AS col1, COUNT ( * ) / 40 * 52 + + 45
----
-31
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3050
SELECT - 47 + + CAST( NULL AS DECIMAL ) + + 78 + - + COUNT( * ) * + ( 50 ) * + 27 * 65 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3050
SELECT - 47 + + CAST ( NULL AS REAL ) + + 78 + - + COUNT ( * ) * + ( 50 ) * + 27 * 65 col1
----
NULL

query I rowsort
SELECT - ( 75 ) * - 95 AS col1
----
7125

query I rowsort
SELECT + 11 * 4 AS col1
----
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT ALL + NULLIF ( - COALESCE ( ( - + MIN( DISTINCT 91 ) ), + 64 * + - ( COALESCE ( 66, - 17 ) ), + COUNT( * ) ), + 34 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL + NULLIF ( - COALESCE ( ( - + MIN ( DISTINCT 91 ) ), + 64 * + - ( COALESCE ( 66, - 17 ) ), + COUNT ( * ) ), + 34 ) AS col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3055
SELECT ALL 0 + - ( - MAX( DISTINCT 63 ) ) + - 46 + MIN( ALL - 1 ) + - 64 + - - 25 DIV - 65 + 30
----
-18

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL 0 + - ( - MAX ( DISTINCT 63 ) ) + - 46 + MIN ( ALL - 1 ) + - 64 + - - 25 / - 65 + 30
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3056
SELECT ALL - - 12 * SUM( + 68 ) + + 62 DIV - - 68
----
816

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL - - 12 * SUM ( + 68 ) + + 62 / - - 68
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT + NULLIF ( + ( + - 87 ), 62 * + ( - 57 ) * 22 * + ( CASE - 2 WHEN 80 THEN + 88 + - 21 * + 50 * + CASE - - COUNT( * ) WHEN - - COUNT( - 33 ) THEN - ( + + COUNT( * ) ) * 18 * - - 51 * + - 45 END * + COUNT( * ) + 93 WHEN - 51 THEN NULL END ) + - COUNT( * ) / 84 ) + + ( 34 + 28 )
----
-25

skipif mysql # not compatible
query I rowsort label-3057
SELECT + NULLIF ( + ( + - 87 ), 62 * + ( - 57 ) * 22 * + ( CASE - 2 WHEN 80 THEN + 88 + - 21 * + 50 * + CASE - - COUNT ( * ) WHEN - - COUNT ( - 33 ) THEN - ( + + COUNT ( * ) ) * 18 * - - 51 * + - 45 END * + COUNT ( * ) + 93 WHEN - 51 THEN NULL END ) + - COUNT ( * ) / 84 ) + + ( 34 + 28 )
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-3058
SELECT DISTINCT + 98 DIV + 59 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT + 98 / + 59 AS col2
----
1

query I rowsort
SELECT ALL - 87 + - 83 AS col1
----
-170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3060
SELECT DISTINCT + 29 + 19 * COUNT( * ) + 58 + + CAST( + COUNT( * ) AS SIGNED ) * - COUNT( * ) AS col2
----
105

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT + 29 + 19 * COUNT ( * ) + 58 + + CAST ( + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) AS col2
----
105

query I rowsort
SELECT ALL 29 + - - 47 AS col2
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3062
SELECT ALL 69 + + COUNT( DISTINCT + 90 ) + + + 38 DIV + + 64 + + 40
----
110

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL 69 + + COUNT ( DISTINCT + 90 ) + + + 38 / + + 64 + + 40
----
110

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

skipif mysql # not compatible
query I rowsort label-3063
SELECT DISTINCT COUNT ( * ) / + 45 AS col2
----
0

query II rowsort
SELECT DISTINCT - 93 AS col2, 1 + + 27 + - 34
----
-93
-6

query II rowsort
SELECT ALL 14 - + - 37 + - 18 col1, 64 col2
----
33
64

query I rowsort
SELECT 67 * 7 AS col0
----
469

query I rowsort
SELECT DISTINCT 49 - + 26 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT 57 * - - NULLIF ( + COUNT( * ), - COUNT( - 78 ) + + 64 + + + 44 + ( COUNT( + 49 ) ) * 14 * - NULLIF ( 95, - COUNT( * ) ) )
----
57

skipif mysql # not compatible
query I rowsort label-3068
SELECT 57 * - - NULLIF ( + COUNT ( * ), - COUNT ( - 78 ) + + 64 + + + 44 + ( COUNT ( + 49 ) ) * 14 * - NULLIF ( 95, - COUNT ( * ) ) )
----
57

query I rowsort
SELECT 82 * + - 36 * - + 97 * 8
----
2290752

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3071
SELECT 1 DIV 46 * - 48
----
0

skipif mysql # not compatible
query I rowsort label-3071
SELECT 1 / 46 * - 48
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3073
SELECT - ( - + 59 ) DIV ( - ( - - 62 ) ) + - 84 * ( - - 55 ) + COUNT( * ) AS col1
----
-4619

skipif mysql # not compatible
query I rowsort label-3073
SELECT - ( - + 59 ) / ( - ( - - 62 ) ) + - 84 * ( - - 55 ) + COUNT ( * ) AS col1
----
-4619

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT ALL + MAX( + 28 ) + + 28 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-3074
SELECT ALL + MAX ( + 28 ) + + 28 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT - COUNT( * ) * - 10 + - 16 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-3075
SELECT - COUNT ( * ) * - 10 + - 16 AS col1
----
-6

query I rowsort
SELECT DISTINCT - 76 * - 67 AS col0
----
5092

query I rowsort
SELECT 52 + - 12
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3078
SELECT ALL 10 AS col2, CAST( + 74 AS SIGNED ) + + + 90 AS col0
----
10
164

skipif mysql # not compatible
query II rowsort label-3078
SELECT ALL 10 AS col2, CAST ( + 74 AS INTEGER ) + + + 90 AS col0
----
10
164

query I rowsort
SELECT DISTINCT - 85 + + 43 col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT ALL - + 60 + 17 * - + SUM( - + 89 ) + - - 10 AS col0
----
1463

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL - + 60 + 17 * - + SUM ( - + 89 ) + - - 10 AS col0
----
1463

query I rowsort
SELECT 16 - - - 28
----
-12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT ALL - 91 + 96 * COUNT( * ) + + 98 + + 59 + + 77 * + + 24 * 59 AS col1
----
109194

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL - 91 + 96 * COUNT ( * ) + + 98 + + 59 + + 77 * + + 24 * 59 AS col1
----
109194

query I rowsort
SELECT DISTINCT - - ( 96 ) * + + 40
----
3840

query I rowsort
SELECT 31 * - 42 AS col1
----
-1302

query I rowsort
SELECT ALL + 20 * - 5 AS col0
----
-100

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

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

query I rowsort
SELECT 65 + - + 66 col0
----
-1

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

query I rowsort
SELECT 31 + + 79
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT MAX( + 95 ) * - 14 * + ( 64 ) * - 46 * + 82 - NULLIF ( + + 18, + CASE - - 86 WHEN - + 58 THEN NULL WHEN + 56 THEN + 16 END ) + - 10 * COALESCE ( - 5, - 83 )
----
321072672

skipif mysql # not compatible
query I rowsort label-3091
SELECT MAX ( + 95 ) * - 14 * + ( 64 ) * - 46 * + 82 - NULLIF ( + + 18, + CASE - - 86 WHEN - + 58 THEN NULL WHEN + 56 THEN + 16 END ) + - 10 * COALESCE ( - 5, - 83 )
----
321072672

query I rowsort
SELECT 76 - - ( - 12 )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3093
SELECT + 94 DIV - 31 + - - 95 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-3093
SELECT + 94 / - 31 + - - 95 AS col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3094
SELECT COUNT( - - 69 ) / + 59 + - 98 + + + CAST( NULL AS SIGNED ) - - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3094
SELECT COUNT ( - - 69 ) / + 59 + - 98 + + + CAST ( NULL AS INTEGER ) - - 3 AS col2
----
NULL

query II rowsort
SELECT 60 + 9, 61 AS col2
----
69
61

query I rowsort
SELECT DISTINCT - ( NULLIF ( + 54, + - 23 * - 68 - + NULLIF ( - - 76, 12 ) ) ) AS col0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-3097
SELECT DISTINCT 65 DIV ( - ( CASE + + ( - AVG ( 8 ) ) WHEN 50 + + COALESCE ( - 55, + COALESCE ( + 30, ( 87 ) ) * + + 93 * 16 + + 68 ) * - 32 THEN NULL ELSE - 57 + - 97 END ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT 65 / ( - ( CASE + + ( - AVG ( 8 ) ) WHEN 50 + + COALESCE ( - 55, + COALESCE ( + 30, ( 87 ) ) * + + 93 * 16 + + 68 ) * - 32 THEN NULL ELSE - 57 + - 97 END ) ) AS col2
----
0

query I rowsort
SELECT 92 * ( + - 80 ) col1
----
-7360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3099
SELECT + CASE MAX( + 13 ) WHEN + 11 THEN + + 70 WHEN 2 * - CAST( NULL AS SIGNED ) THEN NULL END * COUNT( * ) * CAST( - + 75 AS DECIMAL ) + - CAST( + - 16 AS DECIMAL ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3099
SELECT + CASE MAX ( + 13 ) WHEN + 11 THEN + + 70 WHEN 2 * - CAST ( NULL AS INTEGER ) THEN NULL END * COUNT ( * ) * CAST ( - + 75 AS REAL ) + - CAST ( + - 16 AS REAL ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3100
SELECT COUNT( ALL - 72 ) col1, + 95 * - + COUNT( ALL - - 2 ) + + 93 AS col1
----
1
-2

skipif mysql # not compatible
query II rowsort label-3100
SELECT COUNT ( ALL - 72 ) col1, + 95 * - + COUNT ( ALL - - 2 ) + + 93 AS col1
----
1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3101
SELECT MAX( DISTINCT CAST( - 77 AS SIGNED ) )
----
-77

skipif mysql # not compatible
query I rowsort label-3101
SELECT MAX ( DISTINCT CAST ( - 77 AS INTEGER ) )
----
-77

query I rowsort
SELECT ALL 94 * 40 col2
----
3760

query I rowsort
SELECT 81 * 1
----
81

query II rowsort
SELECT ALL 6 + 46 AS col0, 91
----
52
91

query I rowsort
SELECT ALL 64 + 41
----
105

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3106
SELECT + COUNT( ALL - CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-3106
SELECT + COUNT ( ALL - CAST ( NULL AS REAL ) )
----
0

query I rowsort
SELECT ALL ( - + 28 ) + + + 11 + - - 36 * + - 92
----
-3329

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT ALL MIN( 71 ) + 57
----
128

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL MIN ( 71 ) + 57
----
128

query I rowsort
SELECT ALL 99 * 70 AS col1
----
6930

query II rowsort
SELECT 42 AS col2, + 40 + - 33
----
42
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT ALL + 56 + - - MIN( ALL - ( 94 ) ) + + 69 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL + 56 + - - MIN ( ALL - ( 94 ) ) + + 69 AS col2
----
31

query I rowsort
SELECT + + 17 - + 11
----
6

query I rowsort
SELECT - 88 - 39 + 77 + + ( + - 3 )
----
-53

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

skipif mysql # not compatible
query I rowsort label-3114
SELECT - - CAST ( NULL AS INTEGER ) * + 75 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3115
SELECT ALL + - 45 * 80 * + + 22 + COUNT( * ) + + - MIN( 51 ) AS col1, - 21 AS col1
----
-79250
-21

skipif mysql # not compatible
query II rowsort label-3115
SELECT ALL + - 45 * 80 * + + 22 + COUNT ( * ) + + - MIN ( 51 ) AS col1, - 21 AS col1
----
-79250
-21

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

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

query I rowsort
SELECT ALL 1 + 45 + - - 58 AS col1
----
104

query I rowsort
SELECT ALL - 40 + + 9
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3119
SELECT - - COUNT( * ) + - + 67 + - - 90 DIV + 1 + 26 + 86
----
136

skipif mysql # not compatible
query I rowsort label-3119
SELECT - - COUNT ( * ) + - + 67 + - - 90 / + 1 + 26 + 86
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT ALL 28 * + + ( + + 30 ) - - ( + - CASE + 11 WHEN - 13 THEN NULL WHEN - 52 THEN + 52 WHEN + 85 * - COUNT( * ) + - + 41 + - 25 THEN NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL 28 * + + ( + + 30 ) - - ( + - CASE + 11 WHEN - 13 THEN NULL WHEN - 52 THEN + 52 WHEN + 85 * - COUNT ( * ) + - + 41 + - 25 THEN NULL END ) col2
----
NULL

query I rowsort
SELECT - + 60 + - 72
----
-132

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3122
SELECT - - MIN( DISTINCT - - 95 ) + - NULLIF ( - 21, ( + COUNT( * ) ) * + CAST( + 44 AS DECIMAL ) + - 67 + + COUNT( * ) + + - COALESCE ( - 61, + 52 * 85 * - - 91 ) + - - 50 * - 25 + - - 32 + 8 * - 26 + + 68 / - - 79 )
----
116

skipif mysql # not compatible
query I rowsort label-3122
SELECT - - MIN ( DISTINCT - - 95 ) + - NULLIF ( - 21, ( + COUNT ( * ) ) * + CAST ( + 44 AS REAL ) + - 67 + + COUNT ( * ) + + - COALESCE ( - 61, + 52 * 85 * - - 91 ) + - - 50 * - 25 + - - 32 + 8 * - 26 + + 68 / - - 79 )
----
116

query I rowsort
SELECT + 21 * - 1 * - + 75
----
1575

query I rowsort
SELECT + + 16 * - + 79 + + 98 AS col1
----
-1166

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3125
SELECT DISTINCT - COUNT( * ) - + NULLIF ( 9, + + 5 ) + + 64 DIV 97 * - 35 + ( - + COUNT( * ) ) AS col0, 70 * - 92 AS col1
----
-11
-6440

skipif mysql # not compatible
query II rowsort label-3125
SELECT DISTINCT - COUNT ( * ) - + NULLIF ( 9, + + 5 ) + + 64 / 97 * - 35 + ( - + COUNT ( * ) ) AS col0, 70 * - 92 AS col1
----
-11
-6440

query I rowsort
SELECT ALL NULLIF ( + 64, - 94 + + 16 )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-3127
SELECT - COUNT( * ) * + 87, - 56 col1
----
-87
-56

skipif mysql # not compatible
query II rowsort label-3127
SELECT - COUNT ( * ) * + 87, - 56 col1
----
-87
-56

query I rowsort
SELECT DISTINCT ( - 38 ) AS col1
----
-38

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

skipif mysql # not compatible
query I rowsort label-3129
SELECT - ( + ( + COUNT ( - 11 ) ) ) * + CAST ( + - 82 AS INTEGER )
----
82

query I rowsort
SELECT ALL + 43 * - + 93
----
-3999

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT 44 * - COUNT( * ) - - COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-3131
SELECT 44 * - COUNT ( * ) - - COUNT ( * ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT NULLIF ( + 15, + COUNT( * ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-3132
SELECT NULLIF ( + 15, + COUNT ( * ) ) AS col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3133
SELECT ALL - COUNT( * ) * 78 DIV + - 21 + + 57 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL - COUNT ( * ) * 78 / + - 21 + + 57 AS col1
----
60

query I rowsort
SELECT + 53 - - + 73
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-3135
SELECT DISTINCT 45 * - - 25 + 22, - ( COUNT( * ) ) AS col1
----
1147
-1

skipif mysql # not compatible
query II rowsort label-3135
SELECT DISTINCT 45 * - - 25 + 22, - ( COUNT ( * ) ) AS col1
----
1147
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT ALL + ( + - 17 ) * + - 74 * - 41 * + 32 - - - COUNT( * ) * + - COUNT( * ) + - + 87
----
-1650582

skipif mysql # not compatible
query I rowsort label-3136
SELECT ALL + ( + - 17 ) * + - 74 * - 41 * + 32 - - - COUNT ( * ) * + - COUNT ( * ) + - + 87
----
-1650582

query I rowsort
SELECT - 80 * 71
----
-5680

onlyif mysql # DIV for integer division: 
query I rowsort label-3138
SELECT - 89 DIV - 62
----
1

skipif mysql # not compatible
query I rowsort label-3138
SELECT - 89 / - 62
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3139
SELECT - + 96 * 29 - CAST( NULL AS SIGNED ) * - 68 / - 65 + - ( - + 24 ) / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3139
SELECT - + 96 * 29 - CAST ( NULL AS INTEGER ) * - 68 / - 65 + - ( - + 24 ) / CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3140
SELECT ALL COUNT( * ) * ( - 18 ) * - 39 - - + CAST( NULL AS SIGNED ) + - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL COUNT ( * ) * ( - 18 ) * - 39 - - + CAST ( NULL AS INTEGER ) + - 17 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT + + COUNT( * ) + + 55 + + 6 * - 97 * 73 * + + 83
----
-3526282

skipif mysql # not compatible
query I rowsort label-3142
SELECT + + COUNT ( * ) + + 55 + + 6 * - 97 * 73 * + + 83
----
-3526282

query I rowsort
SELECT DISTINCT 51 * 27
----
1377

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3144
SELECT ALL + - 82 * - 57 - + + 63 DIV + NULLIF ( - 73, + - CASE 8 WHEN 44 THEN - COUNT( * ) WHEN - CAST( NULL AS DECIMAL ) THEN NULL WHEN 54 + + 12 THEN NULL END * AVG ( - - 26 ) )
----
4674

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL + - 82 * - 57 - + + 63 / + NULLIF ( - 73, + - CASE 8 WHEN 44 THEN - COUNT ( * ) WHEN - CAST ( NULL AS REAL ) THEN NULL WHEN 54 + + 12 THEN NULL END * AVG ( - - 26 ) )
----
4674

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

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

query I rowsort
SELECT + - 64 * - ( + 22 ) AS col0
----
1408

query I rowsort
SELECT + + NULLIF ( - 74, - 22 ) + - 52
----
-126

query I rowsort
SELECT + + ( + + 53 ) * - 7
----
-371

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT - 92 * - - MAX( + + 1 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3150
SELECT - 92 * - - MAX ( + + 1 ) AS col2
----
-92

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

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL 62 / - 8 / + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3152
SELECT - CAST( NULL AS SIGNED ), 12 * - 38 col1
----
NULL
-456

skipif mysql # not compatible
query II rowsort label-3152
SELECT - CAST ( NULL AS INTEGER ), 12 * - 38 col1
----
NULL
-456

query I rowsort
SELECT ALL 55 * - 33
----
-1815

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3154
SELECT + 67 - + CAST( + - 12 AS SIGNED ) DIV - 44 col2, 32 AS col0
----
67
32

skipif mysql # not compatible
query II rowsort label-3154
SELECT + 67 - + CAST ( + - 12 AS INTEGER ) / - 44 col2, 32 AS col0
----
67
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT DISTINCT 90 * + 93 * - COUNT( * ) * + 80
----
-669600

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT 90 * + 93 * - COUNT ( * ) * + 80
----
-669600

query I rowsort
SELECT - ( - 44 ) col0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3157
SELECT + 13 DIV + + 46 col2
----
0

skipif mysql # not compatible
query I rowsort label-3157
SELECT + 13 / + + 46 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT - 19 * COUNT( * ) col1
----
-19

skipif mysql # not compatible
query I rowsort label-3158
SELECT - 19 * COUNT ( * ) col1
----
-19

query I rowsort
SELECT + 31 + + 97 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT - ( + 59 ) * - 65 * + + 81 * + COUNT( * ) col1
----
310635

skipif mysql # not compatible
query I rowsort label-3160
SELECT - ( + 59 ) * - 65 * + + 81 * + COUNT ( * ) col1
----
310635

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT - 13 - + COALESCE ( - 9, - 2 ) * + COALESCE ( + + 2, CASE - - 51 WHEN COUNT( * ) THEN - 40 END ) + + 23 - + - COALESCE ( 18, + + COALESCE ( 63, - 80 ), - COALESCE ( + 52, + - COUNT( * ) ), + 7 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-3161
SELECT - 13 - + COALESCE ( - 9, - 2 ) * + COALESCE ( + + 2, CASE - - 51 WHEN COUNT ( * ) THEN - 40 END ) + + 23 - + - COALESCE ( 18, + + COALESCE ( 63, - 80 ), - COALESCE ( + 52, + - COUNT ( * ) ), + 7 ) AS col0
----
46

query I rowsort
SELECT - 89 - - + 66 AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3163
SELECT + NULLIF ( COUNT( * ), - + 86 + + 71 ) / + - CAST( NULL AS SIGNED ) + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3163
SELECT + NULLIF ( COUNT ( * ), - + 86 + + 71 ) / + - CAST ( NULL AS INTEGER ) + 34
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3164
SELECT ALL + 55 DIV + COUNT( * ) + + + 63 - 36
----
82

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL + 55 / + COUNT ( * ) + + + 63 - 36
----
82

query II rowsort
SELECT + 82 col2, + 54
----
82
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3166
SELECT ALL COUNT( - 62 ) / - ( - 3 ) * - - CAST( NULL AS SIGNED ) + COALESCE ( + - 0, + 85 ) - - + 99 + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL COUNT ( - 62 ) / - ( - 3 ) * - - CAST ( NULL AS INTEGER ) + COALESCE ( + - 0, + 85 ) - - + 99 + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT ALL + SUM( 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL + SUM ( 73 ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3168
SELECT + 93 AS col0, COUNT( * ) * + 49
----
93
49

skipif mysql # not compatible
query II rowsort label-3168
SELECT + 93 AS col0, COUNT ( * ) * + 49
----
93
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3169
SELECT 86 * + COUNT( * ) + - + CASE - 49 WHEN - 89 * - COUNT( * ) + 39 + COUNT( * ) + CAST( NULL AS SIGNED ) + + NULLIF ( - - 31, - + 40 / - COUNT( * ) + - + COUNT( * ) ) * - + 40 THEN + 6 WHEN + 14 * + 27 * + - 90 + 41 + + 67 THEN + 12 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3169
SELECT 86 * + COUNT ( * ) + - + CASE - 49 WHEN - 89 * - COUNT ( * ) + 39 + COUNT ( * ) + CAST ( NULL AS INTEGER ) + + NULLIF ( - - 31, - + 40 / - COUNT ( * ) + - + COUNT ( * ) ) * - + 40 THEN + 6 WHEN + 14 * + 27 * + - 90 + 41 + + 67 THEN + 12 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT ALL - 49 + - 19 + + 46 DIV 1 DIV + 2 - - + 99 + 63 AS col2
----
117

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL - 49 + - 19 + + 46 / 1 / + 2 - - + 99 + 63 AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT DISTINCT + ( + 38 ) * - 78 + + - MAX( - + 18 )
----
-2946

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT + ( + 38 ) * - 78 + + - MAX ( - + 18 )
----
-2946

onlyif mysql # DIV for integer division: 
query II rowsort label-3172
SELECT + 61 + 43 DIV + 76, 84 AS col0
----
61
84

skipif mysql # not compatible
query II rowsort label-3172
SELECT + 61 + 43 / + 76, 84 AS col0
----
61
84

query I rowsort
SELECT DISTINCT - - 11 * 79 + + 7 + - + 37 AS col1
----
839

query I rowsort
SELECT ALL - 15 - - 7
----
-8

query I rowsort
SELECT 60 * - 82
----
-4920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3176
SELECT + CASE COALESCE ( - + 44, + - COUNT( * ) ) WHEN - CAST( NULL AS SIGNED ) * - 4 THEN NULL WHEN - 72 * + 27 THEN - 36 - + + ( - 13 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3176
SELECT + CASE COALESCE ( - + 44, + - COUNT ( * ) ) WHEN - CAST ( NULL AS INTEGER ) * - 4 THEN NULL WHEN - 72 * + 27 THEN - 36 - + + ( - 13 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3177
SELECT - 57 * + 19 + - 34 + - CAST( 97 AS SIGNED ) AS col2
----
-1214

skipif mysql # not compatible
query I rowsort label-3177
SELECT - 57 * + 19 + - 34 + - CAST ( 97 AS INTEGER ) AS col2
----
-1214

onlyif mysql # DIV for integer division: 
query I rowsort label-3178
SELECT + 41 DIV + + 14
----
2

skipif mysql # not compatible
query I rowsort label-3178
SELECT + 41 / + + 14
----
2

query I rowsort
SELECT 40 * - + COALESCE ( 62, 6, + + 47 )
----
-2480

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT - CASE 51 WHEN + 68 * + MIN( DISTINCT - 2 ) THEN - + 40 WHEN - - 22 * - 75 * 67 THEN NULL ELSE 68 END * - 78
----
5304

skipif mysql # not compatible
query I rowsort label-3180
SELECT - CASE 51 WHEN + 68 * + MIN ( DISTINCT - 2 ) THEN - + 40 WHEN - - 22 * - 75 * 67 THEN NULL ELSE 68 END * - 78
----
5304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3181
SELECT - CAST( - + 95 AS SIGNED ) * - ( - 10 )
----
950

skipif mysql # not compatible
query I rowsort label-3181
SELECT - CAST ( - + 95 AS INTEGER ) * - ( - 10 )
----
950

query I rowsort
SELECT 17 + - ( ( - 53 ) ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT + COALESCE ( - - 34, 49 - 3 + + NULLIF ( - COUNT( * ), + + 12 + - + AVG ( + 28 ) ) ) + - + SUM( DISTINCT + - 57 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-3183
SELECT + COALESCE ( - - 34, 49 - 3 + + NULLIF ( - COUNT ( * ), + + 12 + - + AVG ( + 28 ) ) ) + - + SUM ( DISTINCT + - 57 ) AS col1
----
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3184
SELECT CAST( NULL AS DECIMAL ) + + - 60 + + - 35 * + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3184
SELECT CAST ( NULL AS REAL ) + + - 60 + + - 35 * + 25 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 56 * 17 AS col1
----
952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3186
SELECT ALL 37 + + - NULLIF ( + CAST( - 43 AS SIGNED ), 20 + - + 72 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3186
SELECT ALL 37 + + - NULLIF ( + CAST ( - 43 AS INTEGER ), 20 + - + 72 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3187
SELECT 76 + COUNT( * ) * + 83 + + + 73 AS col2, 80 AS col2
----
232
80

skipif mysql # not compatible
query II rowsort label-3187
SELECT 76 + COUNT ( * ) * + 83 + + + 73 AS col2, 80 AS col2
----
232
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT CASE + 29 WHEN NULLIF ( - ( - 66 ), 91 ) THEN - - 81 WHEN + 67 THEN NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3188
SELECT CASE + 29 WHEN NULLIF ( - ( - 66 ), 91 ) THEN - - 81 WHEN + 67 THEN NULL END + - COUNT ( * )
----
NULL

query I rowsort
SELECT 95 * + - 58 AS col0
----
-5510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3190
SELECT 66 * CAST( NULL AS SIGNED ), 43 + 44 * ( - 1 ) * - - 58 * + 40 - - 89 + 72 * 59 + - 15 + CAST( NULL AS SIGNED ) / + COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3190
SELECT 66 * CAST ( NULL AS INTEGER ), 43 + 44 * ( - 1 ) * - - 58 * + 40 - - 89 + 72 * 59 + - 15 + CAST ( NULL AS INTEGER ) / + COUNT ( * )
----
NULL
NULL

query I rowsort
SELECT 1 + + - 53 col2
----
-52

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

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

query I rowsort
SELECT ALL 71 + 65 - - 88 AS col0
----
224

onlyif mysql # DIV for integer division: 
query I rowsort label-3195
SELECT ALL 83 DIV ( - + 5 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL 83 / ( - + 5 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT DISTINCT 0 + + COUNT( * ) + + + 7 * + ( - 11 ) - + - 21
----
-55

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT 0 + + COUNT ( * ) + + + 7 * + ( - 11 ) - + - 21
----
-55

query I rowsort
SELECT ALL - 53 + - 14 AS col2
----
-67

query I rowsort
SELECT ALL 35 + + 3 + - 12
----
26

query I rowsort
SELECT 81 * 2 AS col1
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3200
SELECT 20 * 14 * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), - 85 * + - 65 AS col2
----
NULL
5525

skipif mysql # not compatible
query II rowsort label-3200
SELECT 20 * 14 * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), - 85 * + - 65 AS col2
----
NULL
5525

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT + 55 * + - 71 - 96 - + + COALESCE ( - - 61, - COALESCE ( - - MIN( DISTINCT + 32 ), 66 * - - 13 ) ) * + 23
----
-5404

skipif mysql # not compatible
query I rowsort label-3201
SELECT + 55 * + - 71 - 96 - + + COALESCE ( - - 61, - COALESCE ( - - MIN ( DISTINCT + 32 ), 66 * - - 13 ) ) * + 23
----
-5404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3202
SELECT ALL - CASE COUNT( * ) WHEN COUNT( * ) THEN 31 ELSE CAST( + 24 AS SIGNED ) END
----
-31

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL - CASE COUNT ( * ) WHEN COUNT ( * ) THEN 31 ELSE CAST ( + 24 AS INTEGER ) END
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT 18 * - + MIN( - 47 ) - + 96 - + + 83
----
667

skipif mysql # not compatible
query I rowsort label-3203
SELECT 18 * - + MIN ( - 47 ) - + 96 - + + 83
----
667

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT COUNT( DISTINCT - - 92 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3204
SELECT COUNT ( DISTINCT - - 92 ) AS col1
----
1

query I rowsort
SELECT ALL - NULLIF ( - + 49, + 51 ) - - 31 AS col1
----
80

query I rowsort
SELECT COALESCE ( + - 80, - 77 ) AS col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3207
SELECT ALL - + 25 * - CAST( 6 AS SIGNED )
----
150

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL - + 25 * - CAST ( 6 AS INTEGER )
----
150

query I rowsort
SELECT - 54 * + - 11 - - + 45 * - ( 40 ) AS col1
----
-1206

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT ALL - COUNT( ALL + + 10 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL - COUNT ( ALL + + 10 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3210
SELECT SUM( 19 ) * + SUM( ALL + 45 ) + + + 15 DIV 41 + - + 27 AS col0
----
828

skipif mysql # not compatible
query I rowsort label-3210
SELECT SUM ( 19 ) * + SUM ( ALL + 45 ) + + + 15 / 41 + - + 27 AS col0
----
828

query I rowsort
SELECT ALL - - 33 * - 4
----
-132

query I rowsort
SELECT 75 + - 41 col1
----
34

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

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL - + COUNT ( 43 ) * + 27 AS col2
----
-27

query I rowsort
SELECT - ( + 56 ) * - 90 col2
----
5040

query I rowsort
SELECT ALL - 11 + + 48 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT 85 * + 57 * - COUNT( * ) AS col2
----
-4845

skipif mysql # not compatible
query I rowsort label-3216
SELECT 85 * + 57 * - COUNT ( * ) AS col2
----
-4845

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT 11 * + - 63 * + 47 - + COUNT( * ) * 95 col1
----
-32666

skipif mysql # not compatible
query I rowsort label-3217
SELECT 11 * + - 63 * + 47 - + COUNT ( * ) * 95 col1
----
-32666

onlyif mysql # aggregate syntax: 
query II rowsort label-3218
SELECT ALL + 84 + - COUNT( ALL - 75 ), - 26 col0
----
83
-26

skipif mysql # not compatible
query II rowsort label-3218
SELECT ALL + 84 + - COUNT ( ALL - 75 ), - 26 col0
----
83
-26

query I rowsort
SELECT 66 + - + 55 AS col1
----
11

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

skipif mysql # not compatible
query I rowsort label-3220
SELECT COUNT ( * ) * - 41
----
-41

query I rowsort
SELECT ALL 95 + 48
----
143

query I rowsort
SELECT ALL + 85 + 61 col1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT SUM( + - 30 ) - 97
----
-127

skipif mysql # not compatible
query I rowsort label-3223
SELECT SUM ( + - 30 ) - 97
----
-127

query I rowsort
SELECT ALL - 21 * + 88
----
-1848

query I rowsort
SELECT DISTINCT + 67 + - + 14 AS col1
----
53

query I rowsort
SELECT ALL - 12 * - + 0 * - 60 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT + 30 + + COUNT( + ( 4 ) ) + - 22 * - ( - 3 ) * - 15 * + - CASE + - AVG ( + 88 ) WHEN - MAX( - 51 ) THEN NULL WHEN + 28 / + 65 THEN - 84 * 84 WHEN + 51 THEN NULL END + + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3227
SELECT + 30 + + COUNT ( + ( 4 ) ) + - 22 * - ( - 3 ) * - 15 * + - CASE + - AVG ( + 88 ) WHEN - MAX ( - 51 ) THEN NULL WHEN + 28 / + 65 THEN - 84 * 84 WHEN + 51 THEN NULL END + + - 0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT - COUNT( * ) + 35 * 18
----
629

skipif mysql # not compatible
query I rowsort label-3229
SELECT - COUNT ( * ) + 35 * 18
----
629

query I rowsort
SELECT + 23 * ( - 39 ) AS col0
----
-897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3231
SELECT - CASE ( + 65 ) WHEN - ( + + COUNT( * ) ) - + 23 / 12 + - - CAST( NULL AS SIGNED ) + 90 THEN + + AVG ( - - 28 ) END AS col0, 72 col1
----
NULL
72

skipif mysql # not compatible
query II rowsort label-3231
SELECT - CASE ( + 65 ) WHEN - ( + + COUNT ( * ) ) - + 23 / 12 + - - CAST ( NULL AS INTEGER ) + 90 THEN + + AVG ( - - 28 ) END AS col0, 72 col1
----
NULL
72

query I rowsort
SELECT ALL 99 * 26 * + 83
----
213642

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3233
SELECT ALL + + COALESCE ( + 97, 87 * - CAST( NULL AS SIGNED ) + - + 23 - MIN( ALL 66 ), - 36 )
----
97

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL + + COALESCE ( + 97, 87 * - CAST ( NULL AS INTEGER ) + - + 23 - MIN ( ALL 66 ), - 36 )
----
97

query I rowsort
SELECT ALL + ( 2 ) * 46
----
92

query I rowsort
SELECT + - 76 * + - 89
----
6764

onlyif mysql # aggregate syntax: 
query II rowsort label-3236
SELECT + - 18 + - COUNT( * ) - + 2 * + - 85 * 56 - + 54 + - - COALESCE ( + 58, - COUNT( * ) ) - - ( - + ( - 40 ) ) + + COALESCE ( 69, - COALESCE ( + 35, + 37 ) + - 70 + + 21, 42 ) * + 43 AS col1, - 27
----
12512
-27

skipif mysql # not compatible
query II rowsort label-3236
SELECT + - 18 + - COUNT ( * ) - + 2 * + - 85 * 56 - + 54 + - - COALESCE ( + 58, - COUNT ( * ) ) - - ( - + ( - 40 ) ) + + COALESCE ( 69, - COALESCE ( + 35, + 37 ) + - 70 + + 21, 42 ) * + 43 AS col1, - 27
----
12512
-27

query II rowsort
SELECT + 43, 83 AS col1
----
43
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3238
SELECT ALL - - 47 * - 48 - + 64 + 30 + + 46 * + + CAST( - 34 AS SIGNED ) + 70 * COUNT( * ) + - CASE 0 WHEN + 62 + 85 + 39 THEN + 71 WHEN + 71 THEN + 52 / 71 * - SUM( - 31 ) * + 97 * COUNT( * ) END - + 28 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL - - 47 * - 48 - + 64 + 30 + + 46 * + + CAST ( - 34 AS INTEGER ) + 70 * COUNT ( * ) + - CASE 0 WHEN + 62 + 85 + 39 THEN + 71 WHEN + 71 THEN + 52 / 71 * - SUM ( - 31 ) * + 97 * COUNT ( * ) END - + 28 col1
----
NULL

query I rowsort
SELECT ALL + 3 * 42 + - 87 * 26
----
-2136

onlyif mysql # aggregate syntax: 
query II rowsort label-3240
SELECT ALL + + CASE NULLIF ( - NULLIF ( + 78, - + 86 + + 28 + 55 * - + 93 ), - 73 ) WHEN + 55 * COUNT( * ) + - COUNT( * ) THEN + + COUNT( * ) END AS col0, 43
----
NULL
43

skipif mysql # not compatible
query II rowsort label-3240
SELECT ALL + + CASE NULLIF ( - NULLIF ( + 78, - + 86 + + 28 + 55 * - + 93 ), - 73 ) WHEN + 55 * COUNT ( * ) + - COUNT ( * ) THEN + + COUNT ( * ) END AS col0, 43
----
NULL
43

query I rowsort
SELECT + - 38 * - 33 + + 58 * - 92 * + 42
----
-222858

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3242
SELECT ALL - 36 * COUNT( * ) DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL - 36 * COUNT ( * ) / 93
----
0

query II rowsort
SELECT DISTINCT + - 13 AS col1, - 28 AS col1
----
-13
-28

query I rowsort
SELECT + 32 + - - 47
----
79

query II rowsort
SELECT - 99 col2, ( + + 75 ) AS col1
----
-99
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3246
SELECT 16 * 50 + - 2 * + 52 / - 22 + - + 35 / + - ( + 76 ) / - CAST( NULL AS SIGNED ) + 16 - - 49 * + NULLIF ( + 61, COUNT( * ) * + + 11 + - 65 + + 28 * + 39 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3246
SELECT 16 * 50 + - 2 * + 52 / - 22 + - + 35 / + - ( + 76 ) / - CAST ( NULL AS INTEGER ) + 16 - - 49 * + NULLIF ( + 61, COUNT ( * ) * + + 11 + - 65 + + 28 * + 39 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3247
SELECT - MIN( - 28 ) DIV + + 7
----
4

skipif mysql # not compatible
query I rowsort label-3247
SELECT - MIN ( - 28 ) / + + 7
----
4

query I rowsort
SELECT ALL ( + + 9 ) col0
----
9

query I rowsort
SELECT ALL - 53 + + ( + 59 )
----
6

query I rowsort
SELECT DISTINCT + 98 + - 23
----
75

query I rowsort
SELECT - 54 + - 34 + - 76 AS col1
----
-164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3252
SELECT ALL + 81 + - NULLIF ( + - CASE + 92 WHEN + - 48 THEN 6 / - - 56 * + 77 - 6 + CAST( COUNT( * ) AS SIGNED ) + - 46 + + 84 / 17 * + - 54 + - - CAST( NULL AS SIGNED ) END, + 55 ) / - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL + 81 + - NULLIF ( + - CASE + 92 WHEN + - 48 THEN 6 / - - 56 * + 77 - 6 + CAST ( COUNT ( * ) AS INTEGER ) + - 46 + + 84 / 17 * + - 54 + - - CAST ( NULL AS INTEGER ) END, + 55 ) / - 97
----
NULL

query I rowsort
SELECT - 30 + - 94 * CASE + - 9 WHEN 3 THEN 38 * 15 * + 70 WHEN 25 * + 36 * 55 THEN - + 36 ELSE NULL END
----
NULL

query II rowsort
SELECT 8, 2 AS col1
----
8
2

query I rowsort
SELECT - ( 16 ) * 59 AS col0
----
-944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3256
SELECT - 6 + - 54 DIV - COUNT( * ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-3256
SELECT - 6 + - 54 / - COUNT ( * ) AS col0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3257
SELECT - CAST( NULL AS SIGNED ) / - 23 AS col2, 54 col1
----
NULL
54

skipif mysql # not compatible
query II rowsort label-3257
SELECT - CAST ( NULL AS INTEGER ) / - 23 AS col2, 54 col1
----
NULL
54

query I rowsort
SELECT + 24 * - 74 AS col0
----
-1776

query II rowsort
SELECT - 33, - 76 AS col2
----
-33
-76

query I rowsort
SELECT + 0 + + ( - 82 ) AS col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3261
SELECT ALL CAST( - NULLIF ( + 71, 12 ) AS SIGNED ) - + - 87 * + 27
----
2278

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL CAST ( - NULLIF ( + 71, 12 ) AS INTEGER ) - + - 87 * + 27
----
2278

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT ALL ( + CASE - COUNT( * ) WHEN + 12 / + 5 - + 66 THEN NULL WHEN + 26 THEN + 12 * 46 * MIN( - 97 ) * - COUNT( DISTINCT - - 1 ) WHEN - 61 THEN - 3 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL ( + CASE - COUNT ( * ) WHEN + 12 / + 5 - + 66 THEN NULL WHEN + 26 THEN + 12 * 46 * MIN ( - 97 ) * - COUNT ( DISTINCT - - 1 ) WHEN - 61 THEN - 3 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3263
SELECT ALL COALESCE ( + + 88, 34 * 80 * + 18 * - COUNT( * ) * + 95, - NULLIF ( 3, - COUNT( * ) ) DIV - 95 - + + 6 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL COALESCE ( + + 88, 34 * 80 * + 18 * - COUNT ( * ) * + 95, - NULLIF ( 3, - COUNT ( * ) ) / - 95 - + + 6 ) AS col2
----
88

query II rowsort
SELECT ALL 53 AS col1, 28 AS col2
----
53
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT DISTINCT + + COUNT( - 12 ) * 42
----
42

skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT + + COUNT ( - 12 ) * 42
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3266
SELECT 65 AS col1, + COUNT( * ) * - 68 + - - 57 DIV + 64 AS col2
----
65
-68

skipif mysql # not compatible
query II rowsort label-3266
SELECT 65 AS col1, + COUNT ( * ) * - 68 + - - 57 / + 64 AS col2
----
65
-68

query I rowsort
SELECT + 2 * + 52 AS col0
----
104

query II rowsort
SELECT DISTINCT + 33 AS col1, 73 - + + 47 + + 85 * - - 8 AS col0
----
33
706

onlyif mysql # aggregate syntax: 
query II rowsort label-3269
SELECT - CASE - COUNT( * ) WHEN 21 THEN - COUNT( * ) / 28 * + ( - COUNT( * ) ) END / + + 31 - + 91 col0, - NULLIF ( - + COUNT( - 40 ), - 17 ) * - 44
----
NULL
-44

skipif mysql # not compatible
query II rowsort label-3269
SELECT - CASE - COUNT ( * ) WHEN 21 THEN - COUNT ( * ) / 28 * + ( - COUNT ( * ) ) END / + + 31 - + 91 col0, - NULLIF ( - + COUNT ( - 40 ), - 17 ) * - 44
----
NULL
-44

query II rowsort
SELECT + 26 AS col2, - 41 - + 73
----
26
-114

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3273
SELECT ALL + + 36 DIV - 17 + - - 32 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL + + 36 / - 17 + - - 32 AS col1
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-3274
SELECT DISTINCT + - SUM( 53 ), 19 AS col0
----
-53
19

skipif mysql # not compatible
query II rowsort label-3274
SELECT DISTINCT + - SUM ( 53 ), 19 AS col0
----
-53
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3275
SELECT ALL 66 DIV + 78 + - COUNT( ALL 39 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL 66 / + 78 + - COUNT ( ALL 39 ) AS col0
----
-1

query I rowsort
SELECT + - 48 * + - 70 - + 2 + 65 * - + 24 * 96 + 24 AS col1
----
-146378

query I rowsort
SELECT ALL 74 * + 13 + - + 11 AS col2
----
951

query I rowsort
SELECT + 71 * ( + 14 ) + - 35 AS col0
----
959

query II rowsort
SELECT + 33, + 10 AS col1
----
33
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT DISTINCT 70 * - + 7 + - CASE + MIN( ALL - 6 ) WHEN + NULLIF ( COUNT( * ), - AVG ( + + 96 ) + + 74 ) + - 55 * + - 38 THEN + 19 END / - 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT 70 * - + 7 + - CASE + MIN ( ALL - 6 ) WHEN + NULLIF ( COUNT ( * ), - AVG ( + + 96 ) + + 74 ) + - 55 * + - 38 THEN + 19 END / - 95 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT DISTINCT 38 * + 17 - + 26 * - + 84 + - 4 - - SUM( DISTINCT 69 ) + 41 AS col0
----
2936

skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT 38 * + 17 - + 26 * - + 84 + - 4 - - SUM ( DISTINCT 69 ) + 41 AS col0
----
2936

query I rowsort
SELECT 4 * 26
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT DISTINCT SUM( ALL 6 ) * ( 26 )
----
156

skipif mysql # not compatible
query I rowsort label-3284
SELECT DISTINCT SUM ( ALL 6 ) * ( 26 )
----
156

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

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

query I rowsort
SELECT 29 * + 71 col0
----
2059

query II rowsort
SELECT 19 * 10 AS col2, 68
----
190
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT 26 - 86 * - + MAX( DISTINCT - 24 ) AS col0
----
-2038

skipif mysql # not compatible
query I rowsort label-3288
SELECT 26 - 86 * - + MAX ( DISTINCT - 24 ) AS col0
----
-2038

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3291
SELECT DISTINCT - - COUNT( * ) DIV + - 48 - - MAX( DISTINCT + 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT - - COUNT ( * ) / + - 48 - - MAX ( DISTINCT + 66 ) AS col1
----
66

query I rowsort
SELECT 60 + 47
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3293
SELECT 19 DIV CASE + 52 WHEN NULLIF ( CAST( + - 52 AS SIGNED ), + COUNT( * ) ) THEN - ( + 38 ) ELSE - + COUNT( * ) END AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3293
SELECT 19 / CASE + 52 WHEN NULLIF ( CAST ( + - 52 AS INTEGER ), + COUNT ( * ) ) THEN - ( + 38 ) ELSE - + COUNT ( * ) END AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT - 44 + - COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-3294
SELECT - 44 + - COUNT ( * )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3295
SELECT + 53 DIV - + ( - + 86 ) * + + 81 + COALESCE ( ( + 99 ), - MIN( 96 ) DIV + SUM( + 73 ) )
----
99

skipif mysql # not compatible
query I rowsort label-3295
SELECT + 53 / - + ( - + 86 ) * + + 81 + COALESCE ( ( + 99 ), - MIN ( 96 ) / + SUM ( + 73 ) )
----
99

query I rowsort
SELECT DISTINCT - 94 + - 68 AS col2
----
-162

query II rowsort
SELECT ALL + 35 + - 4, 15 AS col1
----
31
15

query I rowsort
SELECT + + CASE - 88 WHEN - - 91 THEN - - 63 END col2
----
NULL

query I rowsort
SELECT ALL - - 60 + ( + + 69 )
----
129

query I rowsort
SELECT DISTINCT + + 97 + 46 AS col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT + SUM( ALL - - 44 ) + + - 27
----
17

skipif mysql # not compatible
query I rowsort label-3301
SELECT + SUM ( ALL - - 44 ) + + - 27
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-3302
SELECT ALL + - NULLIF ( + - 99, - 25 ) * 16 DIV 33 - - 62
----
110

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL + - NULLIF ( + - 99, - 25 ) * 16 / 33 - - 62
----
110

query I rowsort
SELECT ALL - + ( 89 ) + 63 col2
----
-26

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

skipif mysql # not compatible
query I rowsort label-3304
SELECT + - MAX ( - 52 )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-3305
SELECT + + COUNT( * ) * + 28 + + 94 col1, 76 + - - ( - 29 )
----
122
47

skipif mysql # not compatible
query II rowsort label-3305
SELECT + + COUNT ( * ) * + 28 + + 94 col1, 76 + - - ( - 29 )
----
122
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3306
SELECT DISTINCT - 87 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT - 87 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 83 + - + 35
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3308
SELECT DISTINCT - 80 DIV CASE - AVG ( + 58 ) WHEN - 78 THEN NULL ELSE 34 END AS col1, + 24 + + COUNT( 36 ) * 91
----
-2
115

skipif mysql # not compatible
query II rowsort label-3308
SELECT DISTINCT - 80 / CASE - AVG ( + 58 ) WHEN - 78 THEN NULL ELSE 34 END AS col1, + 24 + + COUNT ( 36 ) * 91
----
-2
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT - COUNT( * ) * + - 55 + 9 * + - 42 + + 20
----
-303

skipif mysql # not compatible
query I rowsort label-3309
SELECT - COUNT ( * ) * + - 55 + 9 * + - 42 + + 20
----
-303

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

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

query I rowsort
SELECT 90 * - 5 + + 52 AS col1
----
-398

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3312
SELECT ALL 36 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL 36 * - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3313
SELECT NULLIF ( - 55, - NULLIF ( - MAX( ALL + ( 98 ) ), - 66 ) ) + - 56 AS col1, 43 * ( - - 6 ) DIV COUNT( ALL + 48 )
----
-111
258

skipif mysql # not compatible
query II rowsort label-3313
SELECT NULLIF ( - 55, - NULLIF ( - MAX ( ALL + ( 98 ) ), - 66 ) ) + - 56 AS col1, 43 * ( - - 6 ) / COUNT ( ALL + 48 )
----
-111
258

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

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

query I rowsort
SELECT 29 * + + 81 * - - 4 AS col0
----
9396

query I rowsort
SELECT 90 * + + 82 + + + CASE + 87 WHEN + ( - + 36 ) THEN NULL WHEN + ( - ( - 4 ) ) * + - 46 THEN NULL WHEN - + 5 THEN - 59 ELSE NULL END col1
----
NULL

query I rowsort
SELECT 36 + + 66 AS col2
----
102

query II rowsort
SELECT DISTINCT 22 AS col2, + 11
----
22
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3319
SELECT 19 DIV + COALESCE ( + - 38, 99 ) * + 27 + - + 57 + - - COUNT( + + 53 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-3319
SELECT 19 / + COALESCE ( + - 38, 99 ) * + 27 + - + 57 + - - COUNT ( + + 53 ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-3320
SELECT ALL 31 col0, + CASE + + 18 WHEN - 30 + - 45 THEN NULL ELSE - 15 END * - - 7 * + 14 + 3 + - 61 + + ( - COUNT( * ) ) AS col2
----
31
-1529

skipif mysql # not compatible
query II rowsort label-3320
SELECT ALL 31 col0, + CASE + + 18 WHEN - 30 + - 45 THEN NULL ELSE - 15 END * - - 7 * + 14 + 3 + - 61 + + ( - COUNT ( * ) ) AS col2
----
31
-1529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3321
SELECT 26 + CAST( - 78 AS SIGNED ) * - 12 AS col2
----
962

skipif mysql # not compatible
query I rowsort label-3321
SELECT 26 + CAST ( - 78 AS INTEGER ) * - 12 AS col2
----
962

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3322
SELECT CAST( NULL AS SIGNED ) * - ( COUNT( * ) ) AS col2, 80
----
NULL
80

skipif mysql # not compatible
query II rowsort label-3322
SELECT CAST ( NULL AS INTEGER ) * - ( COUNT ( * ) ) AS col2, 80
----
NULL
80

query I rowsort
SELECT DISTINCT ( - 28 ) + + 30
----
2

query I rowsort
SELECT 98 * 95
----
9310

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

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

query II rowsort
SELECT DISTINCT + 1 AS col2, 5 * - 24
----
1
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT ALL + 9 * - COUNT( - 2 ) * + 88 * - - 79
----
-62568

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL + 9 * - COUNT ( - 2 ) * + 88 * - - 79
----
-62568

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT ALL - + COALESCE ( - - 34, + + 42 ) + NULLIF ( 8, - - COUNT( * ) * 44 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL - + COALESCE ( - - 34, + + 42 ) + NULLIF ( 8, - - COUNT ( * ) * 44 ) AS col0
----
-26

query I rowsort
SELECT + 42 * - - 70
----
2940

query I rowsort
SELECT ALL + 64 + ( - 4 ) AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3331
SELECT + 11 AS col2, + CASE - SUM( + - 85 ) WHEN + - CAST( 91 AS SIGNED ) THEN - 76 + + 82 ELSE NULL END / - 56
----
11
NULL

skipif mysql # not compatible
query II rowsort label-3331
SELECT + 11 AS col2, + CASE - SUM ( + - 85 ) WHEN + - CAST ( 91 AS INTEGER ) THEN - 76 + + 82 ELSE NULL END / - 56
----
11
NULL

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

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

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

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

query I rowsort
SELECT ALL NULLIF ( - - 50, + + 84 ) + - - 75 + + 78 AS col0
----
203

query I rowsort
SELECT 44 * - - 60 * - - 39
----
102960

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3336
SELECT 75 + - 36 DIV + 67, + NULLIF ( + 72, - CASE 56 WHEN - 11 THEN + ( - 89 ) WHEN - 75 THEN NULL END ) * - COUNT( * ) AS col0
----
75
-72

skipif mysql # not compatible
query II rowsort label-3336
SELECT 75 + - 36 / + 67, + NULLIF ( + 72, - CASE 56 WHEN - 11 THEN + ( - 89 ) WHEN - 75 THEN NULL END ) * - COUNT ( * ) AS col0
----
75
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3337
SELECT ALL 20 * + + 28 + + COUNT( * ) + + 91 + ( + 53 ) * - COALESCE ( + 98, - - CAST( NULL AS SIGNED ) ) * + CASE - + COUNT( * ) WHEN 57 - + 37 THEN + 62 ELSE NULL END / 18 * + 93 AS col1, - 23
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-3337
SELECT ALL 20 * + + 28 + + COUNT ( * ) + + 91 + ( + 53 ) * - COALESCE ( + 98, - - CAST ( NULL AS INTEGER ) ) * + CASE - + COUNT ( * ) WHEN 57 - + 37 THEN + 62 ELSE NULL END / 18 * + 93 AS col1, - 23
----
NULL
-23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT ALL + 76 * - 13 * + COALESCE ( 98, + COUNT( - 41 ) ) + - 46 + - 90
----
-96960

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL + 76 * - 13 * + COALESCE ( 98, + COUNT ( - 41 ) ) + - 46 + - 90
----
-96960

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT 43 * + MAX( + 83 ) * - 38 - + + SUM( + 24 ) AS col0
----
-135646

skipif mysql # not compatible
query I rowsort label-3340
SELECT 43 * + MAX ( + 83 ) * - 38 - + + SUM ( + 24 ) AS col0
----
-135646

onlyif mysql # DIV for integer division: 
query I rowsort label-3341
SELECT ALL - - 7 DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL - - 7 / - 66
----
0

query II rowsort
SELECT + + 0 AS col1, 44
----
0
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3343
SELECT 16 + + ( + 40 ) / - AVG ( - 25 ) - + 27 + + 45 * + + 82 * MAX( - CAST( 31 AS SIGNED ) ) / - AVG ( ALL CAST( NULL AS SIGNED ) ) + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3343
SELECT 16 + + ( + 40 ) / - AVG ( - 25 ) - + 27 + + 45 * + + 82 * MAX ( - CAST ( 31 AS INTEGER ) ) / - AVG ( ALL CAST ( NULL AS INTEGER ) ) + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT DISTINCT - MIN( + 69 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT - MIN ( + 69 ) AS col0
----
-69

query I rowsort
SELECT - 1 * - 30 * 70
----
2100

query I rowsort
SELECT + 7 * + 7 AS col0
----
49

query I rowsort
SELECT ALL + CASE - 37 WHEN - + 30 THEN 56 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT SUM( - + 24 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-3348
SELECT SUM ( - + 24 ) AS col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3349
SELECT ALL + NULLIF ( CAST( NULL AS SIGNED ), 45 * + 79 * ( + COUNT( * ) ) + - COALESCE ( - 48, 35, 47 - + 39 ) + - 41 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL + NULLIF ( CAST ( NULL AS INTEGER ), 45 * + 79 * ( + COUNT ( * ) ) + - COALESCE ( - 48, 35, 47 - + 39 ) + - 41 ) AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT ALL - 32 DIV - 12
----
2

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL - 32 / - 12
----
2

query I rowsort
SELECT - 47 * + 96 + - 87 AS col1
----
-4599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3353
SELECT ALL ( CAST( NULL AS SIGNED ) ) + - 17 + - COUNT( * ) / + - 50 * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL ( CAST ( NULL AS INTEGER ) ) + - 17 + - COUNT ( * ) / + - 50 * + 26
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-3355
SELECT + 93 / + 67
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3356
SELECT - COALESCE ( - 82, 7 * 40 * - 33 + - 72 DIV + - COUNT( * ) ) col0
----
82

skipif mysql # not compatible
query I rowsort label-3356
SELECT - COALESCE ( - 82, 7 * 40 * - 33 + - 72 / + - COUNT ( * ) ) col0
----
82

query I rowsort
SELECT ALL + 79 + - + 68 AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3358
SELECT + + 74 + - - CASE + CAST( - 48 AS SIGNED ) WHEN COUNT( * ) THEN - ( - - 15 ) + 25 + + - 87 ELSE NULL END * - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3358
SELECT + + 74 + - - CASE + CAST ( - 48 AS INTEGER ) WHEN COUNT ( * ) THEN - ( - - 15 ) + 25 + + - 87 ELSE NULL END * - 82 AS col2
----
NULL

query I rowsort
SELECT ALL 96 + - + NULLIF ( + 28, - 49 ) * - 76
----
2224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3360
SELECT DISTINCT + 35 * - CAST( NULL AS SIGNED ) + - - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT + 35 * - CAST ( NULL AS INTEGER ) + - - 39 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3362
SELECT + 49 - 29, CASE + 65 WHEN + COALESCE ( - 57, - NULLIF ( - 64, NULLIF ( 74, 25 / - 17 + - - 28 + 1 + + 36 / - 31 * + + AVG ( ALL 36 ) * - COUNT( * ) * - 37 / - 12 ) + - + 60 + - 94 ), - - 56 ) THEN + CASE + 44 WHEN - 96 + + 87 THEN - 27 + 74 * + 14 WHEN + 58 + COUNT( * ) THEN 38 * + 88 END + + COUNT( * ) END col0
----
20
NULL

skipif mysql # not compatible
query II rowsort label-3362
SELECT + 49 - 29, CASE + 65 WHEN + COALESCE ( - 57, - NULLIF ( - 64, NULLIF ( 74, 25 / - 17 + - - 28 + 1 + + 36 / - 31 * + + AVG ( ALL 36 ) * - COUNT ( * ) * - 37 / - 12 ) + - + 60 + - 94 ), - - 56 ) THEN + CASE + 44 WHEN - 96 + + 87 THEN - 27 + 74 * + 14 WHEN + 58 + COUNT ( * ) THEN 38 * + 88 END + + COUNT ( * ) END col0
----
20
NULL

query II rowsort
SELECT + - 47 * + 19 + 7 * + + 28, - ( 10 ) * - 47 + 29 * - ( + 72 ) * 92 + - 35 - + 2 col2
----
-697
-191663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3364
SELECT - + 83 + + NULLIF ( - - 99, ( ( - ( + 27 ) ) ) * + 79 + - - 16 + COUNT( * ) + - 70 + - CAST( NULL AS SIGNED ) ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3364
SELECT - + 83 + + NULLIF ( - - 99, ( ( - ( + 27 ) ) ) * + 79 + - - 16 + COUNT ( * ) + - 70 + - CAST ( NULL AS INTEGER ) ) AS col2
----
16

query I rowsort
SELECT + + 72 + + - 64 + - - 16 * 88 * + 32 + - 10 - - - 0
----
45054

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3366
SELECT ALL - ( - 13 ) * - COUNT( * ) + + COUNT( - + 90 ) * + + 86 * + 94 + + COUNT( * ) DIV + 28
----
8071

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL - ( - 13 ) * - COUNT ( * ) + + COUNT ( - + 90 ) * + + 86 * + 94 + + COUNT ( * ) / + 28
----
8071

onlyif mysql # DIV for integer division: 
query II rowsort label-3367
SELECT + - 98 + - 2 - + + 69 + - 89 * + - 85 AS col0, + ( - + ( + + 11 ) ) + ( 15 ) + 17 DIV - 25
----
7396
4

skipif mysql # not compatible
query II rowsort label-3367
SELECT + - 98 + - 2 - + + 69 + - 89 * + - 85 AS col0, + ( - + ( + + 11 ) ) + ( 15 ) + 17 / - 25
----
7396
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3368
SELECT ALL 0 DIV + + 96 - + 49 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL 0 / + + 96 - + 49 AS col1
----
-49

query I rowsort
SELECT DISTINCT - 59 * ( 27 ) AS col2
----
-1593

onlyif mysql # aggregate syntax: 
query II rowsort label-3370
SELECT ALL + 26 * - - 19 AS col0, COUNT( * ) + + - 95 col0
----
494
-94

skipif mysql # not compatible
query II rowsort label-3370
SELECT ALL + 26 * - - 19 AS col0, COUNT ( * ) + + - 95 col0
----
494
-94

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( 49, - 12 ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-3373
SELECT ALL + 49 AS col2, COUNT( + - 16 ) + - 22
----
49
-21

skipif mysql # not compatible
query II rowsort label-3373
SELECT ALL + 49 AS col2, COUNT ( + - 16 ) + - 22
----
49
-21

query II rowsort
SELECT ALL + 65 AS col2, - 63 * 8
----
65
-504

onlyif mysql # DIV for integer division: 
query I rowsort label-3375
SELECT 27 DIV 87 * 50 + - 43 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-3375
SELECT 27 / 87 * 50 + - 43 AS col1
----
-43

query II rowsort
SELECT - 71 + 3 + 40 AS col1, COALESCE ( - 28, + 88 + + 50 + - - 70 )
----
-28
-28

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

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL + ( + 55 ) * + - COUNT ( * ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT ALL - COUNT( * ) * 64 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL - COUNT ( * ) * 64 AS col2
----
-64

query I rowsort
SELECT - 48 * 20
----
-960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3380
SELECT ALL + MIN( ALL - - ( 39 ) ) * 61 + - CAST( - 6 AS SIGNED ) * + - 85
----
1869

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL + MIN ( ALL - - ( 39 ) ) * 61 + - CAST ( - 6 AS INTEGER ) * + - 85
----
1869

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

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

query I rowsort
SELECT - 12 * 17 * - - 19
----
-3876

query II rowsort
SELECT ALL - 27 * - 70 + + + 18, - 39 col0
----
1908
-39

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

query I rowsort
SELECT + COALESCE ( + 21, + - 25 ) + + - 96 AS col1
----
-75

query I rowsort
SELECT - 82 * - 84 AS col2
----
6888

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT + MAX( + - 0 ) + - - 3
----
3

skipif mysql # not compatible
query I rowsort label-3387
SELECT + MAX ( + - 0 ) + - - 3
----
3

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

query I rowsort
SELECT ALL 20 * + 81 + 37 AS col0
----
1657

query I rowsort
SELECT ALL 54 * + + 99 + + - 90 + - + 33
----
5223

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT DISTINCT + 15 + + MAX( DISTINCT - 0 )
----
15

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT + 15 + + MAX ( DISTINCT - 0 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT SUM( DISTINCT - NULLIF ( 32, 31 ) ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-3392
SELECT SUM ( DISTINCT - NULLIF ( 32, 31 ) ) AS col2
----
-32

query I rowsort
SELECT + 69 * - 62 AS col0
----
-4278

query I rowsort
SELECT DISTINCT 39 * - 80 AS col0
----
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT ALL MIN( DISTINCT + + 85 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL MIN ( DISTINCT + + 85 ) AS col0
----
85

query I rowsort
SELECT ALL - - 36 * + + 72 * - - 10 col2
----
25920

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

skipif mysql # not compatible
query I rowsort label-3397
SELECT + 63 / + COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT 63 * - 71 * + + ( + - MIN( DISTINCT NULLIF ( 75, ( + - 38 ) * + - 29 ) ) ) + - 43 - + 11 * - - 31 + 13 col0
----
335104

skipif mysql # not compatible
query I rowsort label-3398
SELECT 63 * - 71 * + + ( + - MIN ( DISTINCT NULLIF ( 75, ( + - 38 ) * + - 29 ) ) ) + - 43 - + 11 * - - 31 + 13 col0
----
335104

onlyif mysql # DIV for integer division: 
query I rowsort label-3399
SELECT - 85 + - 76 + + 79 DIV + 40 col1
----
-160

skipif mysql # not compatible
query I rowsort label-3399
SELECT - 85 + - 76 + + 79 / + 40 col1
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT MAX( + 39 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-3400
SELECT MAX ( + 39 ) AS col0
----
39

query II rowsort
SELECT ALL - 49 AS col1, - 20 + 53 AS col2
----
-49
33

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT ALL MAX( + 57 ) * + 96
----
5472

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL MAX ( + 57 ) * + 96
----
5472

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3406
SELECT 40 DIV + 2 + 66 + COUNT( * ) * 23 * - - 24 + 21 + + + COALESCE ( 15, - 63 ) DIV - 42
----
659

skipif mysql # not compatible
query I rowsort label-3406
SELECT 40 / + 2 + 66 + COUNT ( * ) * 23 * - - 24 + 21 + + + COALESCE ( 15, - 63 ) / - 42
----
659

query I rowsort
SELECT DISTINCT 83 + 88 * + + 82 - - - 29
----
7270

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT ALL - MIN( + - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL - MIN ( + - 22 )
----
22

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3411
SELECT DISTINCT 47 + + COUNT( * ) - + 21 DIV 97 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-3411
SELECT DISTINCT 47 + + COUNT ( * ) - + 21 / 97 AS col2
----
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ALL 82 + - + 97 * - COUNT( * )
----
179

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL 82 + - + 97 * - COUNT ( * )
----
179

query I rowsort
SELECT ALL - 32 + + + 48 col0
----
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3415
SELECT ALL + CAST( - - 78 AS SIGNED ) DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL + CAST ( - - 78 AS INTEGER ) / - 96
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT CAST( NULL AS SIGNED ) / + + NULLIF ( + 23, - 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3416
SELECT CAST ( NULL AS INTEGER ) / + + NULLIF ( + 23, - 53 )
----
NULL

query I rowsort
SELECT DISTINCT + 60 + - - 81 AS col2
----
141

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3418
SELECT DISTINCT ( - - 26 ) DIV - CAST( ( + - 92 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT ( - - 26 ) / - CAST ( ( + - 92 ) AS INTEGER )
----
0

query I rowsort
SELECT ALL + 42 * + 9
----
378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3420
SELECT ALL - 77 DIV COUNT( * ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL - 77 / COUNT ( * ) AS col0
----
-77

query III rowsort
SELECT DISTINCT 82 - - + 83 AS col2, - 32 + - + 86, + - 80 * 10 AS col0
----
165
-118
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT DISTINCT + COUNT( NULLIF ( - 85, - 23 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT + COUNT ( NULLIF ( - 85, - 23 ) ) AS col0
----
1

query I rowsort
SELECT ALL + + 88 - - 23 AS col2
----
111

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

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

query II rowsort
SELECT - 29 AS col0, - 66
----
-29
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT + 92 * - + 88 + + COUNT( ALL 52 )
----
-8095

skipif mysql # not compatible
query I rowsort label-3426
SELECT + 92 * - + 88 + + COUNT ( ALL 52 )
----
-8095

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

skipif mysql # not compatible
query II rowsort label-3427
SELECT - - 42 AS col2, CAST ( NULL AS INTEGER ) AS col1
----
42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT ALL + MAX( + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL + MAX ( + 70 )
----
70

query II rowsort
SELECT + 30 AS col1, 76 AS col0
----
30
76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT + 33 * - + MAX( ALL - - ( + 66 ) ) AS col0
----
-2178

skipif mysql # not compatible
query I rowsort label-3431
SELECT + 33 * - + MAX ( ALL - - ( + 66 ) ) AS col0
----
-2178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3432
SELECT DISTINCT 73 * + CAST( NULL AS SIGNED ) * - + 36 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3432
SELECT DISTINCT 73 * + CAST ( NULL AS INTEGER ) * - + 36 + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3433
SELECT DISTINCT + COUNT( * ), + 84 DIV - 1 AS col0
----
1
-84

skipif mysql # not compatible
query II rowsort label-3433
SELECT DISTINCT + COUNT ( * ), + 84 / - 1 AS col0
----
1
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-3434
SELECT ALL + 86 AS col1, 54 DIV + ( 76 ) AS col0
----
86
0

skipif mysql # not compatible
query II rowsort label-3434
SELECT ALL + 86 AS col1, 54 / + ( 76 ) AS col0
----
86
0

query I rowsort
SELECT ALL - 20 * - 92
----
1840

query I rowsort
SELECT - 60 + - - 91 AS col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-3437
SELECT ALL + 9 / + CASE - CASE - + 95 WHEN - 74 THEN NULL ELSE + 27 END WHEN - - 17 + - + ( - + 60 ) * + 19 THEN NULL WHEN - 34 / SUM( DISTINCT - 58 ) THEN 61 * + MIN( - + 55 ) + + 5 END, COUNT( * ) - - 36 AS col2
----
NULL
37

skipif mysql # not compatible
query II rowsort label-3437
SELECT ALL + 9 / + CASE - CASE - + 95 WHEN - 74 THEN NULL ELSE + 27 END WHEN - - 17 + - + ( - + 60 ) * + 19 THEN NULL WHEN - 34 / SUM ( DISTINCT - 58 ) THEN 61 * + MIN ( - + 55 ) + + 5 END, COUNT ( * ) - - 36 AS col2
----
NULL
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3438
SELECT - 0 DIV 79 DIV - - 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3438
SELECT - 0 / 79 / - - 76 AS col2
----
0

query II rowsort
SELECT 91 + 24, 78 * + 2 AS col1
----
115
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3440
SELECT - 9 AS col0, CAST( NULL AS SIGNED ) + 66 / 27 + - 22 * + - MAX( ALL 4 )
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-3440
SELECT - 9 AS col0, CAST ( NULL AS INTEGER ) + 66 / 27 + - 22 * + - MAX ( ALL 4 )
----
-9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT 37 + - COALESCE ( + COUNT( * ), - 48 ) * - 1 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-3441
SELECT 37 + - COALESCE ( + COUNT ( * ), - 48 ) * - 1 AS col0
----
38

query I rowsort
SELECT - 27 + 18 - 39 * - + 59
----
2292

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT COUNT( * ) * + 63 col1
----
63

skipif mysql # not compatible
query I rowsort label-3443
SELECT COUNT ( * ) * + 63 col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3444
SELECT 4 + - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3444
SELECT 4 + - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
3

query I rowsort
SELECT DISTINCT + 18 * - 17 AS col2
----
-306

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3446
SELECT ALL + COUNT( ALL - 88 ) + 51 DIV + + 60 * + + 28 * + + ( - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL + COUNT ( ALL - 88 ) + 51 / + + 60 * + + 28 * + + ( - COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT ALL + 16 * 99 + - + 99
----
1485

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT DISTINCT + COUNT( * ) * NULLIF ( 49, - 97 - + 72 + - - 35 ) + + 74 * 19 * 45 * 99 AS col2
----
6263779

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT + COUNT ( * ) * NULLIF ( 49, - 97 - + 72 + - - 35 ) + + 74 * 19 * 45 * 99 AS col2
----
6263779

onlyif mysql # aggregate syntax: 
query II rowsort label-3449
SELECT ALL 36 + + 52, SUM( ALL - - 15 ) col2
----
88
15

skipif mysql # not compatible
query II rowsort label-3449
SELECT ALL 36 + + 52, SUM ( ALL - - 15 ) col2
----
88
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT NULLIF ( - + 55, + ( + 33 ) + - COUNT( * ) ) * + 56 col0
----
-3080

skipif mysql # not compatible
query I rowsort label-3450
SELECT NULLIF ( - + 55, + ( + 33 ) + - COUNT ( * ) ) * + 56 col0
----
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT - COUNT( * ) * 28 * 10 + + 34 AS col2
----
-246

skipif mysql # not compatible
query I rowsort label-3451
SELECT - COUNT ( * ) * 28 * 10 + + 34 AS col2
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT SUM( DISTINCT 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3452
SELECT SUM ( DISTINCT 82 ) AS col2
----
82

query I rowsort
SELECT - 73 * 74 + - 93
----
-5495

query I rowsort
SELECT 35 + + 59
----
94

query I rowsort
SELECT ALL 53 * + + 14 AS col1
----
742

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT ( + MIN( ALL - 45 ) ) + - ( - + 41 )
----
-4

skipif mysql # not compatible
query I rowsort label-3456
SELECT ( + MIN ( ALL - 45 ) ) + - ( - + 41 )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3457
SELECT DISTINCT CAST( + 95 AS SIGNED ) - + - 28 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT CAST ( + 95 AS INTEGER ) - + - 28 AS col0
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3458
SELECT CAST( - 70 AS SIGNED ) * 64 * 97
----
-434560

skipif mysql # not compatible
query I rowsort label-3458
SELECT CAST ( - 70 AS INTEGER ) * 64 * 97
----
-434560

query I rowsort
SELECT + 57 * + 41 + + + 10 + 25 AS col0
----
2372

onlyif mysql # aggregate syntax: 
query II rowsort label-3460
SELECT - COALESCE ( + 45, COUNT( * ) * - 96 + 94, + + 37 + 30 ) col0, - 98 * 9
----
-45
-882

skipif mysql # not compatible
query II rowsort label-3460
SELECT - COALESCE ( + 45, COUNT ( * ) * - 96 + 94, + + 37 + 30 ) col0, - 98 * 9
----
-45
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT 67 * + 58 * 72 - - + MIN( ALL 30 ) * - + 33 * + - 40 * + 30 * + 83 AS col2
----
98883792

skipif mysql # not compatible
query I rowsort label-3461
SELECT 67 * + 58 * 72 - - + MIN ( ALL 30 ) * - + 33 * + - 40 * + 30 * + 83 AS col2
----
98883792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3462
SELECT - - CASE WHEN NOT - + 21 BETWEEN + + CAST( NULL AS SIGNED ) AND NULL OR NOT + + 78 * ( + 77 ) * - 87 - + - 18 * - 28 * 4 + - + CASE - 1 WHEN + - 80 THEN - 15 WHEN 22 * ( + 38 ) + + - 64 + - CASE + 33 WHEN + - COUNT( * ) THEN - COUNT( ALL ( 6 ) ) END THEN NULL WHEN - 27 + + + 59 * - 87 * + NULLIF ( + 60, + SUM( ALL - 15 ) / + 46 + - 83 ) THEN NULL END + - 89 * 98 IS NULL THEN 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3462
SELECT - - CASE WHEN NOT - + 21 BETWEEN + + CAST ( NULL AS INTEGER ) AND NULL OR NOT + + 78 * ( + 77 ) * - 87 - + - 18 * - 28 * 4 + - + CASE - 1 WHEN + - 80 THEN - 15 WHEN 22 * ( + 38 ) + + - 64 + - CASE + 33 WHEN + - COUNT ( * ) THEN - COUNT ( ALL ( 6 ) ) END THEN NULL WHEN - 27 + + + 59 * - 87 * + NULLIF ( + 60, + SUM ( ALL - 15 ) / + 46 + - 83 ) THEN NULL END + - 89 * 98 IS NULL THEN 73 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3463
SELECT DISTINCT - 32 DIV + 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT - 32 / + 48 AS col0
----
0

query I rowsort
SELECT + + 10 * + 64
----
640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3465
SELECT ALL + 5 DIV - + 93 * NULLIF ( + 29, - 65 * - COUNT( * ) DIV 9 ) + + 72 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL + 5 / - + 93 * NULLIF ( + 29, - 65 * - COUNT ( * ) / 9 ) + + 72 AS col2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT - 18 DIV + - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3466
SELECT - 18 / + - 51 AS col1
----
0

query I rowsort
SELECT DISTINCT - 83 * - 9
----
747

onlyif mysql # aggregate syntax: 
query II rowsort label-3468
SELECT ALL + 24 * + COUNT( * ) AS col0, 25 AS col2
----
24
25

skipif mysql # not compatible
query II rowsort label-3468
SELECT ALL + 24 * + COUNT ( * ) AS col0, 25 AS col2
----
24
25

query I rowsort
SELECT - 45 * + 72
----
-3240

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

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

query I rowsort
SELECT DISTINCT + - 68 * + 24 + - 84
----
-1716

query II rowsort
SELECT ALL - 89 + ( + - 2 ) + + 36 + 20 col2, - 57 AS col2
----
-35
-57

query I rowsort
SELECT - + 9 * + 58 * + + 42
----
-21924

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT DISTINCT + COUNT( * ) + - 55 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT + COUNT ( * ) + - 55 AS col2
----
-54

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3476
SELECT DISTINCT + 86 DIV + 23 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3476
SELECT DISTINCT + 86 / + 23 AS col0
----
3

query I rowsort
SELECT - 95 + 98
----
3

query II rowsort
SELECT 12 AS col0, 95 * - - 10 AS col0
----
12
950

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

skipif mysql # not compatible
query I rowsort label-3479
SELECT - MIN ( + 13 )
----
-13

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

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

query I rowsort
SELECT ALL - 69 * - 34 AS col0
----
2346

onlyif mysql # aggregate syntax: 
query II rowsort label-3482
SELECT ALL + 62 * 50 * COUNT( * ) + - 12 AS col1, + COUNT( * )
----
3088
1

skipif mysql # not compatible
query II rowsort label-3482
SELECT ALL + 62 * 50 * COUNT ( * ) + - 12 AS col1, + COUNT ( * )
----
3088
1

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

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

query II rowsort
SELECT + 70, - 14 AS col1
----
70
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3485
SELECT 14 DIV - 44 + 6 + - 76 * - 5 AS col0
----
386

skipif mysql # not compatible
query I rowsort label-3485
SELECT 14 / - 44 + 6 + - 76 * - 5 AS col0
----
386

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT ALL - 85 * + 98 - + SUM( 52 ) AS col0
----
-8382

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL - 85 * + 98 - + SUM ( 52 ) AS col0
----
-8382

query II rowsort
SELECT DISTINCT + 93 col1, 27 * - 72 + 91 col2
----
93
-1853

query I rowsort
SELECT ALL 12 * + 3 * 9 - + 17 AS col0
----
307

onlyif mysql # DIV for integer division: 
query I rowsort label-3489
SELECT + 11 DIV - 72 * - - 46 * - 26 col2
----
0

skipif mysql # not compatible
query I rowsort label-3489
SELECT + 11 / - 72 * - - 46 * - 26 col2
----
0

query I rowsort
SELECT CASE - + 17 WHEN + 34 + - - 75 THEN - + 9 * + 30 + + 34 END col1
----
NULL

query I rowsort
SELECT + 30 * 69 * - - ( 54 ) - 79
----
111701

query II rowsort
SELECT ALL + 9 AS col0, 63 AS col1
----
9
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT COALESCE ( - + 36, - 78 + - COUNT( * ) ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-3493
SELECT COALESCE ( - + 36, - 78 + - COUNT ( * ) ) AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3494
SELECT + CASE - COUNT( * ) WHEN 5 * - 68 * 22 THEN NULL WHEN 43 + + CAST( NULL AS SIGNED ) THEN NULL ELSE + - 62 END, - 80 AS col1
----
-62
-80

skipif mysql # not compatible
query II rowsort label-3494
SELECT + CASE - COUNT ( * ) WHEN 5 * - 68 * 22 THEN NULL WHEN 43 + + CAST ( NULL AS INTEGER ) THEN NULL ELSE + - 62 END, - 80 AS col1
----
-62
-80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT + COUNT( * ) * + 89 - 28 * + 47 * + - 96 AS col1
----
126425

skipif mysql # not compatible
query I rowsort label-3496
SELECT + COUNT ( * ) * + 89 - 28 * + 47 * + - 96 AS col1
----
126425

query II rowsort
SELECT + - 13 AS col1, + 10 AS col1
----
-13
10

query I rowsort
SELECT DISTINCT - 75 * - - 49 AS col2
----
-3675

query I rowsort
SELECT + + 48 - + 53
----
-5

query II rowsort
SELECT ALL - ( + 44 ) * + 90 AS col1, 17 AS col1
----
-3960
17

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

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

query I rowsort
SELECT + + ( + 87 ) * - - 84
----
7308

query I rowsort
SELECT + + 98 * - + 18 + - 43 * - - 11 AS col1
----
-2237

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT - + MIN( + - 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3504
SELECT - + MIN ( + - 96 ) AS col2
----
96

query I rowsort
SELECT ALL + 18 + + 35 * ( + 25 ) - - 93
----
986

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT DISTINCT 74 + + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT 74 + + COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3508
SELECT + COUNT( * ) + + ( 86 ) * + + COUNT( * ) + - ( - - 8 ), 96 col1
----
79
96

skipif mysql # not compatible
query II rowsort label-3508
SELECT + COUNT ( * ) + + ( 86 ) * + + COUNT ( * ) + - ( - - 8 ), 96 col1
----
79
96

query I rowsort
SELECT DISTINCT - 99 + - + 99 + + 15 + ( 70 ) AS col2
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3510
SELECT DISTINCT + COALESCE ( + 83, COALESCE ( 30, - + ( 12 ) ) ) * - 70 + - - 43 + + ( 10 ) * + 20 + - ( 78 ) * - NULLIF ( - COUNT( * ), + MIN( - + 87 ) - 69 - - - 38 * - + CAST( NULL AS SIGNED ) )
----
-5645

skipif mysql # not compatible
query I rowsort label-3510
SELECT DISTINCT + COALESCE ( + 83, COALESCE ( 30, - + ( 12 ) ) ) * - 70 + - - 43 + + ( 10 ) * + 20 + - ( 78 ) * - NULLIF ( - COUNT ( * ), + MIN ( - + 87 ) - 69 - - - 38 * - + CAST ( NULL AS INTEGER ) )
----
-5645

onlyif mysql # DIV for integer division: 
query I rowsort label-3511
SELECT ALL - 45 + + - ( + ( - + 38 ) ) + 96 DIV + + 64
----
-6

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL - 45 + + - ( + ( - + 38 ) ) + 96 / + + 64
----
-6

query I rowsort
SELECT - 25 + - 57
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-3513
SELECT ALL COUNT( * ) * + + 64 AS col0, 6 + + - ( + 75 ) + 90
----
64
21

skipif mysql # not compatible
query II rowsort label-3513
SELECT ALL COUNT ( * ) * + + 64 AS col0, 6 + + - ( + 75 ) + 90
----
64
21

query I rowsort
SELECT + 95 * - + 89
----
-8455

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT - 1 + - 64 + + 97 + + NULLIF ( + COUNT( * ), + + 68 + - 63 )
----
33

skipif mysql # not compatible
query I rowsort label-3515
SELECT - 1 + - 64 + + 97 + + NULLIF ( + COUNT ( * ), + + 68 + - 63 )
----
33

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3517
SELECT ALL + ( 48 ) + - 6 - - 87 DIV - + 75 + + 68 + NULLIF ( - + 77, - - MIN( DISTINCT + - 48 ) ) - - 1 * 70 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL + ( 48 ) + - 6 - - 87 / - + 75 + + 68 + NULLIF ( - + 77, - - MIN ( DISTINCT + - 48 ) ) - - 1 * 70 AS col2
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3518
SELECT + 65 * CAST( + - 51 AS SIGNED )
----
-3315

skipif mysql # not compatible
query I rowsort label-3518
SELECT + 65 * CAST ( + - 51 AS INTEGER )
----
-3315

query I rowsort
SELECT - 71 * 82 AS col0
----
-5822

query I rowsort
SELECT ALL ( - - 74 ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT DISTINCT 89 * SUM( ALL 20 )
----
1780

skipif mysql # not compatible
query I rowsort label-3521
SELECT DISTINCT 89 * SUM ( ALL 20 )
----
1780

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

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

query I rowsort
SELECT ALL - 38 * + 6 * - - 87 col2
----
-19836

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT ALL + ( - CASE - 66 WHEN + 58 THEN - 72 + + COUNT( - 38 ) ELSE + 53 + + 68 END )
----
-121

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL + ( - CASE - 66 WHEN + 58 THEN - 72 + + COUNT ( - 38 ) ELSE + 53 + + 68 END )
----
-121

query I rowsort
SELECT DISTINCT - 29 * 43 AS col1
----
-1247

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT - 88 + - - 75 * + - MAX( + 23 ) AS col2
----
-1813

skipif mysql # not compatible
query I rowsort label-3526
SELECT - 88 + - - 75 * + - MAX ( + 23 ) AS col2
----
-1813

query I rowsort
SELECT - 5 * + - 71
----
355

query I rowsort
SELECT ALL - 38 * 29 * - + 15 AS col0
----
16530

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT ALL - COUNT( * ) * - 47 * + - ( - - 63 ) * - 46 AS col2
----
136206

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL - COUNT ( * ) * - 47 * + - ( - - 63 ) * - 46 AS col2
----
136206

query I rowsort
SELECT ALL - 38 * - 95 AS col2
----
3610

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

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

query I rowsort
SELECT ALL - 83 + - 31 AS col2
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-3533
SELECT DISTINCT ( + 87 ) DIV + + 11 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT ( + 87 ) / + + 11 AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3534
SELECT ( - 37 ) * + ( + + 45 ) / NULLIF ( - 36, 75 + - 82 + + 19 * + + 83 * - 36 ) + ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT ( - 37 ) * + ( + + 45 ) / NULLIF ( - 36, 75 + - 82 + + 19 * + + 83 * - 36 ) + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3535
SELECT MIN( - 47 ) DIV 46 DIV COUNT( DISTINCT - 69 )
----
-1

skipif mysql # not compatible
query I rowsort label-3535
SELECT MIN ( - 47 ) / 46 / COUNT ( DISTINCT - 69 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3536
SELECT ALL 96 + 4 AS col0, COALESCE ( COUNT( * ), + 33 + 40 * + 27 + + 65, - 59 ) + - 17 AS col2
----
100
-16

skipif mysql # not compatible
query II rowsort label-3536
SELECT ALL 96 + 4 AS col0, COALESCE ( COUNT ( * ), + 33 + 40 * + 27 + + 65, - 59 ) + - 17 AS col2
----
100
-16

query I rowsort
SELECT DISTINCT + 64 + + + 91 * 88
----
8072

query I rowsort
SELECT - 80 * - 36
----
2880

query I rowsort
SELECT 73 + 54
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT DISTINCT - - 85 + + MAX( DISTINCT - 71 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT - - 85 + + MAX ( DISTINCT - 71 ) AS col0
----
14

query I rowsort
SELECT ALL 37 * + 82
----
3034

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT ALL - COUNT( * ) + 25 + 93 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL - COUNT ( * ) + 25 + 93 AS col0
----
117

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT ALL COUNT( ALL + + 4 ) * 24
----
24

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL COUNT ( ALL + + 4 ) * 24
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3545
SELECT DISTINCT ( - 59 ) + - CAST( NULL AS SIGNED ) + + 2 * - - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT ( - 59 ) + - CAST ( NULL AS INTEGER ) + + 2 * - - 33
----
NULL

query I rowsort
SELECT 10 * - 14 AS col2
----
-140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3547
SELECT ALL CAST( NULLIF ( + 24, + 28 ) AS SIGNED ) - 74 AS col0, - 22 * + + CAST( - + 56 AS SIGNED ) AS col2
----
-50
1232

skipif mysql # not compatible
query II rowsort label-3547
SELECT ALL CAST ( NULLIF ( + 24, + 28 ) AS INTEGER ) - 74 AS col0, - 22 * + + CAST ( - + 56 AS INTEGER ) AS col2
----
-50
1232

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3550
SELECT 64 * + - COUNT( * ) * - COALESCE ( + 73, + 83 * - - 56 * - CAST( NULL AS SIGNED ) * - NULLIF ( + 0, 1 + - COUNT( * ) + + + 18 / + 93 ), + 49 ) AS col0
----
4672

skipif mysql # not compatible
query I rowsort label-3550
SELECT 64 * + - COUNT ( * ) * - COALESCE ( + 73, + 83 * - - 56 * - CAST ( NULL AS INTEGER ) * - NULLIF ( + 0, 1 + - COUNT ( * ) + + + 18 / + 93 ), + 49 ) AS col0
----
4672

query I rowsort
SELECT ALL 48 - - 71 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT DISTINCT 12 * - 23 * COUNT( * ) col0
----
-276

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT 12 * - 23 * COUNT ( * ) col0
----
-276

query I rowsort
SELECT ALL + 15 - - 87 AS col2
----
102

query I rowsort
SELECT ALL - 51 * + + 77 AS col1
----
-3927

query I rowsort
SELECT DISTINCT 76 * + 56
----
4256

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3556
SELECT COALESCE ( + 88, - 39 DIV - - 3 ) + - + 91 col2, - CASE - - 23 WHEN + SUM( 95 ) THEN 76 WHEN - 52 - ( 72 ) THEN NULL WHEN - 21 THEN NULL END AS col0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3556
SELECT COALESCE ( + 88, - 39 / - - 3 ) + - + 91 col2, - CASE - - 23 WHEN + SUM ( 95 ) THEN 76 WHEN - 52 - ( 72 ) THEN NULL WHEN - 21 THEN NULL END AS col0
----
-3
NULL

query I rowsort
SELECT ALL 11 * 44 AS col1
----
484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3558
SELECT ALL 70 * - + CAST( NULL AS SIGNED ) * - - 25 / - - SUM( - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL 70 * - + CAST ( NULL AS INTEGER ) * - - 25 / - - SUM ( - 70 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3559
SELECT + 22 DIV 67 DIV - + 81 * + COUNT( * ) * + CASE + 75 WHEN + - 18 THEN NULL ELSE + 55 END + - + 87 - + 11 AS col0, 10 + ( - 96 )
----
-98
-86

skipif mysql # not compatible
query II rowsort label-3559
SELECT + 22 / 67 / - + 81 * + COUNT ( * ) * + CASE + 75 WHEN + - 18 THEN NULL ELSE + 55 END + - + 87 - + 11 AS col0, 10 + ( - 96 )
----
-98
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT ALL - COALESCE ( + 45, + 67 * SUM( DISTINCT - 94 ) + - + 18 + COUNT( * ) )
----
-45

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL - COALESCE ( + 45, + 67 * SUM ( DISTINCT - 94 ) + - + 18 + COUNT ( * ) )
----
-45

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

query I rowsort
SELECT ALL 22 * 80 + - - 56
----
1816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3563
SELECT ALL - 86 + + CAST( 77 AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL - 86 + + CAST ( 77 AS INTEGER )
----
-9

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

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

query I rowsort
SELECT ALL + 53 + + + 51
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3566
SELECT - COUNT( * ) * + 43 - - COUNT( ALL - 34 ) * + ( - ( + NULLIF ( - COALESCE ( + + 45, + 53 + - 89 DIV + - 48 + + COUNT( * ) ), - + 62 + ( AVG ( ALL - 45 ) ) + + 12 * 89 - - 69 ) ) ) - + 43, - 17 AS col1
----
-41
-17

skipif mysql # not compatible
query II rowsort label-3566
SELECT - COUNT ( * ) * + 43 - - COUNT ( ALL - 34 ) * + ( - ( + NULLIF ( - COALESCE ( + + 45, + 53 + - 89 / + - 48 + + COUNT ( * ) ), - + 62 + ( AVG ( ALL - 45 ) ) + + 12 * 89 - - 69 ) ) ) - + 43, - 17 AS col1
----
-41
-17

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

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL + + 62 + - + 10 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3568
SELECT 46 DIV - - MAX( DISTINCT 6 ) - 56 * - 91 - - + 13 AS col1
----
5116

skipif mysql # not compatible
query I rowsort label-3568
SELECT 46 / - - MAX ( DISTINCT 6 ) - 56 * - 91 - - + 13 AS col1
----
5116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3569
SELECT CASE + CAST( NULL AS SIGNED ) WHEN COUNT( * ) / + ( 20 ) + ( 5 ) * - + 9 + + 71 THEN NULL WHEN - + 87 THEN - COUNT( * ) * COUNT( * ) ELSE NULL END - - - AVG ( ALL 81 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) / + ( 20 ) + ( 5 ) * - + 9 + + 71 THEN NULL WHEN - + 87 THEN - COUNT ( * ) * COUNT ( * ) ELSE NULL END - - - AVG ( ALL 81 ) AS col1
----
NULL

query I rowsort
SELECT ( + - 82 ) * - 46
----
3772

query I rowsort
SELECT DISTINCT + 60 * + - 33 col1
----
-1980

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

skipif mysql # not compatible
query II rowsort label-3572
SELECT + + 45 col0, + 30 * ( - COUNT ( * ) )
----
45
-30

query I rowsort
SELECT DISTINCT + - 20 * - 58 AS col0
----
1160

query I rowsort
SELECT 68 - - 33 AS col1
----
101

query I rowsort
SELECT 1 * - 72 - - 7 AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3576
SELECT COUNT( - - CAST( 7 AS SIGNED ) ) * 37 * + - COUNT( * ) * - 85, - 92 AS col2
----
3145
-92

skipif mysql # not compatible
query II rowsort label-3576
SELECT COUNT ( - - CAST ( 7 AS INTEGER ) ) * 37 * + - COUNT ( * ) * - 85, - 92 AS col2
----
3145
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT COUNT( * ) + + - 48 * - - COUNT( * ) + 59 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3577
SELECT COUNT ( * ) + + - 48 * - - COUNT ( * ) + 59 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT + MIN( + 45 ) * - 27 - + + 95
----
-1310

skipif mysql # not compatible
query I rowsort label-3578
SELECT + MIN ( + 45 ) * - 27 - + + 95
----
-1310

query I rowsort
SELECT ALL 36 * - 89 col2
----
-3204

query II rowsort
SELECT 38 + + - 74 AS col0, - 50 - - 53
----
-36
3

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

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

query II rowsort
SELECT 45 * - 7 AS col1, 56
----
-315
56

query I rowsort
SELECT 48 + - - 26
----
74

query II rowsort
SELECT ALL 9, + 17 + 39 AS col2
----
9
56

query I rowsort
SELECT DISTINCT 89 * CASE - 40 WHEN + + 14 THEN 72 WHEN + 6 THEN NULL ELSE + - 78 END * + 16 * - ( - - 99 )
----
10996128

query I rowsort
SELECT ALL + 56 * - 16 AS col0
----
-896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3587
SELECT CASE + 62 WHEN + 31 * + 63 + SUM( DISTINCT + - 21 ) + 88 * - 54 THEN NULL ELSE ( ( - 85 ) ) END + + 32 DIV 6 * - 65 AS col0
----
-410

skipif mysql # not compatible
query I rowsort label-3587
SELECT CASE + 62 WHEN + 31 * + 63 + SUM ( DISTINCT + - 21 ) + 88 * - 54 THEN NULL ELSE ( ( - 85 ) ) END + + 32 / 6 * - 65 AS col0
----
-410

query I rowsort
SELECT 35 * - 88
----
-3080

query I rowsort
SELECT 73 + 70 AS col1
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-3590
SELECT ALL 20, MAX( 20 ) AS col1
----
20
20

skipif mysql # not compatible
query II rowsort label-3590
SELECT ALL 20, MAX ( 20 ) AS col1
----
20
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3591
SELECT - COALESCE ( - MIN( DISTINCT - 95 ), - 93 ) AS col1, CAST( NULL AS SIGNED ) AS col0
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-3591
SELECT - COALESCE ( - MIN ( DISTINCT - 95 ), - 93 ) AS col1, CAST ( NULL AS INTEGER ) AS col0
----
-95
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3592
SELECT + ( CAST( NULL AS SIGNED ) ) * 12 * + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3592
SELECT + ( CAST ( NULL AS INTEGER ) ) * 12 * + - 53
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3593
SELECT DISTINCT 37, - 0 DIV + ( - + 48 ) col1
----
37
0

skipif mysql # not compatible
query II rowsort label-3593
SELECT DISTINCT 37, - 0 / + ( - + 48 ) col1
----
37
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3594
SELECT DISTINCT - CAST( + + ( + COUNT( * ) ) AS SIGNED ) * SUM( ALL - 5 )
----
5

skipif mysql # not compatible
query I rowsort label-3594
SELECT DISTINCT - CAST ( + + ( + COUNT ( * ) ) AS INTEGER ) * SUM ( ALL - 5 )
----
5

query I rowsort
SELECT DISTINCT - ( + 0 ) * + + 18 + 95 AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT ALL COUNT( * ) * + 48 + ( - + 35 )
----
13

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL COUNT ( * ) * + 48 + ( - + 35 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3597
SELECT ALL + 47 col2, 4 * - ( + 8 ) + - 16 + - 42 + SUM( ALL - - 67 ) * ( + CASE - + SUM( + + 41 ) WHEN + - 41 * - - 71 THEN NULL WHEN + COUNT( * ) THEN COUNT( * ) ELSE NULL END ) + - - 52 col2, - - 26 - 94 + - CASE - + 20 WHEN - + CAST( NULL AS SIGNED ) THEN CAST( NULL AS SIGNED ) * - 43 + + - CAST( NULL AS SIGNED ) * - + 3 + + + 13 WHEN - 29 / - 38 + + + CASE 90 WHEN - 41 THEN - 77 * + + COUNT( * ) END THEN NULL END
----
47
NULL
NULL

skipif mysql # not compatible
query III rowsort label-3597
SELECT ALL + 47 col2, 4 * - ( + 8 ) + - 16 + - 42 + SUM ( ALL - - 67 ) * ( + CASE - + SUM ( + + 41 ) WHEN + - 41 * - - 71 THEN NULL WHEN + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END ) + - - 52 col2, - - 26 - 94 + - CASE - + 20 WHEN - + CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS INTEGER ) * - 43 + + - CAST ( NULL AS INTEGER ) * - + 3 + + + 13 WHEN - 29 / - 38 + + + CASE 90 WHEN - 41 THEN - 77 * + + COUNT ( * ) END THEN NULL END
----
47
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3598
SELECT COALESCE ( COALESCE ( + 16, - + 45 DIV 61 ), COUNT( * ) ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3598
SELECT COALESCE ( COALESCE ( + 16, - + 45 / 61 ), COUNT ( * ) ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT DISTINCT - 64 * COUNT( - 67 ) + - + 73 * - 26 + - 13
----
1821

skipif mysql # not compatible
query I rowsort label-3599
SELECT DISTINCT - 64 * COUNT ( - 67 ) + - + 73 * - 26 + - 13
----
1821

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT - 30 * + COUNT( * ) + 37 - - - 26 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3600
SELECT - 30 * + COUNT ( * ) + 37 - - - 26 AS col0
----
-19

query I rowsort
SELECT ALL + + CASE 56 WHEN + 65 + + 81 THEN + - 6 * CASE + 86 WHEN + ( 79 ) THEN NULL ELSE + + 41 + + 76 END * 14 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT + + 25 + + CAST( + 54 AS SIGNED ) + + 60
----
139

skipif mysql # not compatible
query I rowsort label-3602
SELECT + + 25 + + CAST ( + 54 AS INTEGER ) + + 60
----
139

query I rowsort
SELECT ALL + 34 * - 10 + + 2
----
-338

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT ALL - 27 * - 46 * + + CASE COUNT( * ) WHEN - 39 THEN NULL ELSE 66 END - - 6
----
81978

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL - 27 * - 46 * + + CASE COUNT ( * ) WHEN - 39 THEN NULL ELSE 66 END - - 6
----
81978

query I rowsort
SELECT + 55 * ( - - 18 ) AS col0
----
990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3607
SELECT - 25 + + ( - - 24 ) - CAST( 21 AS SIGNED ) * + MIN( 32 ) AS col0
----
-673

skipif mysql # not compatible
query I rowsort label-3607
SELECT - 25 + + ( - - 24 ) - CAST ( 21 AS INTEGER ) * + MIN ( 32 ) AS col0
----
-673

onlyif mysql # DIV for integer division: 
query I rowsort label-3608
SELECT + - 98 DIV - - 36
----
-2

skipif mysql # not compatible
query I rowsort label-3608
SELECT + - 98 / - - 36
----
-2

query I rowsort
SELECT - + 93 * + 63 + - 65 AS col1
----
-5924

query I rowsort
SELECT DISTINCT + 41 * + + ( + 80 ) * + + 10 * + 93 AS col1
----
3050400

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT - 72 + + NULLIF ( + 46, + - MAX( DISTINCT - ( - + 92 ) ) ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3611
SELECT - 72 + + NULLIF ( + 46, + - MAX ( DISTINCT - ( - + 92 ) ) ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT ALL + 23 * - + NULLIF ( - - ( - 86 ), 70 ) * + 29 * COUNT( * ) col2
----
57362

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL + 23 * - + NULLIF ( - - ( - 86 ), 70 ) * + 29 * COUNT ( * ) col2
----
57362

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT DISTINCT NULLIF ( + 28, - CASE + - 63 WHEN - COALESCE ( + 43, - 44 * + + COUNT( * ) + COUNT( * ), - ( - 44 ) * 17 ) * - 26 THEN ( - SUM( - + 21 ) ) ELSE - 41 + + 71 - 90 + + 30 END )
----
28

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT NULLIF ( + 28, - CASE + - 63 WHEN - COALESCE ( + 43, - 44 * + + COUNT ( * ) + COUNT ( * ), - ( - 44 ) * 17 ) * - 26 THEN ( - SUM ( - + 21 ) ) ELSE - 41 + + 71 - 90 + + 30 END )
----
28

query I rowsort
SELECT DISTINCT - NULLIF ( - - 47, + 47 ) * + ( - 24 )
----
NULL

query I rowsort
SELECT - 95 * + 42 col2
----
-3990

onlyif mysql # DIV for integer division: 
query I rowsort label-3616
SELECT - 24 DIV + 84 * - - 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3616
SELECT - 24 / + 84 * - - 57 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3617
SELECT DISTINCT NULLIF ( CAST( - 27 AS SIGNED ), - + 84 + COUNT( * ) )
----
-27

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT NULLIF ( CAST ( - 27 AS INTEGER ), - + 84 + COUNT ( * ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT DISTINCT ( - - ( - COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3618
SELECT DISTINCT ( - - ( - COUNT ( * ) ) ) AS col2
----
-1

query II rowsort
SELECT + 65 * 34 AS col2, 87
----
2210
87

query I rowsort
SELECT - 76 - - + 87 * + 77
----
6623

query II rowsort
SELECT ALL + 25 + 41, - 10 AS col0
----
66
-10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL - 80 + - - 49 + MAX( DISTINCT + 93 ) + 34 * + 31
----
1116

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL - 80 + - - 49 + MAX ( DISTINCT + 93 ) + 34 * + 31
----
1116

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT ALL COALESCE ( SUM( DISTINCT 70 ), - CASE - + 40 WHEN - + 14 * - 5 THEN 24 END ) + - + 75 col2
----
-5

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL COALESCE ( SUM ( DISTINCT 70 ), - CASE - + 40 WHEN - + 14 * - 5 THEN 24 END ) + - + 75 col2
----
-5

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

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

query I rowsort
SELECT ALL - 26 + + + 7
----
-19

query I rowsort
SELECT + + NULLIF ( - + 60, 69 ) AS col2
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3628
SELECT ALL + CAST( - - 79 AS SIGNED ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL + CAST ( - - 79 AS INTEGER ) AS col1
----
79

query I rowsort
SELECT ALL - 65 * - ( 57 )
----
3705

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3630
SELECT ALL + - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col0, 97
----
NULL
97

skipif mysql # not compatible
query II rowsort label-3630
SELECT ALL + - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col0, 97
----
NULL
97

query I rowsort
SELECT ALL + 94 * 51 * - 67 AS col1
----
-321198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3632
SELECT DISTINCT - + 92 DIV 71 - COUNT( ALL + COALESCE ( + 51, - 62 ) ) - 80 + - - 84 * + 76 AS col1
----
6302

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT - + 92 / 71 - COUNT ( ALL + COALESCE ( + 51, - 62 ) ) - 80 + - - 84 * + 76 AS col1
----
6302

query I rowsort
SELECT ALL 70 * ( + + 72 ) AS col0
----
5040

onlyif mysql # DIV for integer division: 
query II rowsort label-3634
SELECT + + 44 * + 48, - COALESCE ( + 93, - - 3 DIV 30 ) * - ( 71 ) + - + 5 col1
----
2112
6598

skipif mysql # not compatible
query II rowsort label-3634
SELECT + + 44 * + 48, - COALESCE ( + 93, - - 3 / 30 ) * - ( 71 ) + - + 5 col1
----
2112
6598

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT + - COUNT( * ) - - 41
----
40

skipif mysql # not compatible
query I rowsort label-3635
SELECT + - COUNT ( * ) - - 41
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT + - 69 * - COALESCE ( + COUNT( * ), - + 89 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-3636
SELECT + - 69 * - COALESCE ( + COUNT ( * ), - + 89 ) AS col2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3637
SELECT ALL - CAST( + 87 AS SIGNED ) * - + 94 + + 13 AS col2
----
8191

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL - CAST ( + 87 AS INTEGER ) * - + 94 + + 13 AS col2
----
8191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3638
SELECT + 62 + + - 47 AS col0, - CAST( NULL AS SIGNED ) + + COUNT( * ) * + COUNT( * ) + - 94 / + + 57
----
15
NULL

skipif mysql # not compatible
query II rowsort label-3638
SELECT + 62 + + - 47 AS col0, - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + COUNT ( * ) + - 94 / + + 57
----
15
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3639
SELECT ALL NULLIF ( 4, + - 73 ) * CAST( NULL AS SIGNED ) * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL NULLIF ( 4, + - 73 ) * CAST ( NULL AS INTEGER ) * - 86
----
NULL

query II rowsort
SELECT ALL + ( + 39 ) AS col0, ( - 18 ) * 7 * COALESCE ( + + 8, 24 ) + + 61
----
39
-947

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3641
SELECT + CAST( NULL AS SIGNED ) AS col2, + 77 DIV + ( + 20 )
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3641
SELECT + CAST ( NULL AS INTEGER ) AS col2, + 77 / + ( + 20 )
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT + COALESCE ( + + ( - ( - - 45 ) ), - - COUNT( * ) - 71 * - COUNT( + 39 ) ) * + 97 AS col2
----
-4365

skipif mysql # not compatible
query I rowsort label-3642
SELECT + COALESCE ( + + ( - ( - - 45 ) ), - - COUNT ( * ) - 71 * - COUNT ( + 39 ) ) * + 97 AS col2
----
-4365

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT + COUNT( DISTINCT - - 50 ) * 76 - - 27 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-3644
SELECT + COUNT ( DISTINCT - - 50 ) * 76 - - 27 AS col1
----
103

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT - 89 + 88 * + COUNT( - 29 )
----
-1

skipif mysql # not compatible
query I rowsort label-3646
SELECT - 89 + 88 * + COUNT ( - 29 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3647
SELECT DISTINCT CASE + - COUNT( * ) WHEN + SUM( ALL - 42 ) THEN 54 WHEN + 29 THEN - + COALESCE ( + + 37, + + 68 ) WHEN - - COUNT( * ) THEN CAST( NULL AS SIGNED ) + - 75 + + COUNT( * ) + ( + - 73 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT CASE + - COUNT ( * ) WHEN + SUM ( ALL - 42 ) THEN 54 WHEN + 29 THEN - + COALESCE ( + + 37, + + 68 ) WHEN - - COUNT ( * ) THEN CAST ( NULL AS INTEGER ) + - 75 + + COUNT ( * ) + ( + - 73 ) END
----
NULL

query II rowsort
SELECT - 61 col2, - 22 + 86 AS col2
----
-61
64

query II rowsort
SELECT ALL 64, 48 AS col1
----
64
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3650
SELECT ALL - 93 + + 90 + + 4 + - 90 + - - COALESCE ( + 27, ( + - 88 ) ) * + 61 + + 70 + - 10 + - ( - + COUNT( * ) ) DIV + + 13
----
1618

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL - 93 + + 90 + + 4 + - 90 + - - COALESCE ( + 27, ( + - 88 ) ) * + 61 + + 70 + - 10 + - ( - + COUNT ( * ) ) / + + 13
----
1618

query II rowsort
SELECT 4, 72 AS col0
----
4
72

query I rowsort
SELECT 73 + CASE - 48 WHEN - + 92 / 58 THEN - 50 WHEN NULLIF ( + 70, - + 70 + - 3 ) THEN NULL END + + 83 * + 70 AS col1
----
NULL

query I rowsort
SELECT ALL + 20 + - + 83 + - 74 AS col0
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT 82 + - COUNT( * ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-3654
SELECT 82 + - COUNT ( * ) AS col1
----
81

query I rowsort
SELECT 89 * 55
----
4895

query I rowsort
SELECT ALL + ( - 84 ) + + 99 + + 33 * - - 91
----
3018

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3657
SELECT 98 + - - 98 * 92 + SUM( + + 19 ) DIV + ( + + MIN( + 24 ) ), + 33 * - + 16 AS col1
----
9114
-528

skipif mysql # not compatible
query II rowsort label-3657
SELECT 98 + - - 98 * 92 + SUM ( + + 19 ) / + ( + + MIN ( + 24 ) ), + 33 * - + 16 AS col1
----
9114
-528

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3658
SELECT CAST( NULL AS DECIMAL ) AS col2, 60
----
NULL
60

skipif mysql # not compatible
query II rowsort label-3658
SELECT CAST ( NULL AS REAL ) AS col2, 60
----
NULL
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3659
SELECT ALL - - 55 / CASE - - 65 WHEN - ( ( - + CAST( + ( - + 15 ) AS SIGNED ) ) ) THEN COUNT( * ) END * COUNT( * ) + + 49 + 92 / 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL - - 55 / CASE - - 65 WHEN - ( ( - + CAST ( + ( - + 15 ) AS INTEGER ) ) ) THEN COUNT ( * ) END * COUNT ( * ) + + 49 + 92 / 4
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3660
SELECT + COALESCE ( 87, 34 ), + NULLIF ( + 88, + 10 ) + COUNT( * ) * + 81 * + COUNT( * ) AS col2
----
87
169

skipif mysql # not compatible
query II rowsort label-3660
SELECT + COALESCE ( 87, 34 ), + NULLIF ( + 88, + 10 ) + COUNT ( * ) * + 81 * + COUNT ( * ) AS col2
----
87
169

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

query I rowsort
SELECT DISTINCT + + 42 - - 70 AS col2
----
112

query I rowsort
SELECT ALL 74 * 11 - - 92 + + + 70 AS col1
----
976

query I rowsort
SELECT ALL - - 0 * - 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT DISTINCT - COALESCE ( + 6, - 41 ) * CASE + COUNT( * ) WHEN - 69 THEN NULL WHEN 76 * + - COUNT( ALL 58 ) THEN + - 81 + + - 35 - + - 33 ELSE NULL END + - + 57 + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT - COALESCE ( + 6, - 41 ) * CASE + COUNT ( * ) WHEN - 69 THEN NULL WHEN 76 * + - COUNT ( ALL 58 ) THEN + - 81 + + - 35 - + - 33 ELSE NULL END + - + 57 + 12
----
NULL

query I rowsort
SELECT - 73 * - 10 col2
----
730

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT ALL - MAX( COALESCE ( + ( - - 74 ), + + 28, + + ( + 22 ) ) )
----
-74

skipif mysql # not compatible
query I rowsort label-3667
SELECT ALL - MAX ( COALESCE ( + ( - - 74 ), + + 28, + + ( + 22 ) ) )
----
-74

query I rowsort
SELECT ( ( 91 ) ) * 23 * + 37 AS col2
----
77441

query I rowsort
SELECT ALL 7 + - - 16 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT + 88 * + - SUM( + + 34 ) + COUNT( ALL + - 83 )
----
-2991

skipif mysql # not compatible
query I rowsort label-3670
SELECT + 88 * + - SUM ( + + 34 ) + COUNT ( ALL + - 83 )
----
-2991

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT COUNT( 30 ) + + 35 + - 91 + - 78 AS col1
----
-133

skipif mysql # not compatible
query I rowsort label-3671
SELECT COUNT ( 30 ) + + 35 + - 91 + - 78 AS col1
----
-133

query I rowsort
SELECT DISTINCT 12 + - - 15 - 30 - - 33 * + + 4 * 5 AS col2
----
657

onlyif mysql # aggregate syntax: 
query II rowsort label-3673
SELECT ALL 47 + + + 62 AS col0, + CASE 85 WHEN ( - - 65 ) / - 25 THEN NULL WHEN - 67 THEN - ( + + 60 ) * - 70 * - 95 - - - COUNT( * ) END - COUNT( DISTINCT - NULLIF ( + ( + 23 ), 29 ) ) + - 52 + CASE - 39 WHEN - - ( MAX( DISTINCT - 62 ) ) - + + 94 THEN - 65 * 28 * - 70 * 65 WHEN - + 58 * + 23 THEN NULL END * + 20
----
109
NULL

skipif mysql # not compatible
query II rowsort label-3673
SELECT ALL 47 + + + 62 AS col0, + CASE 85 WHEN ( - - 65 ) / - 25 THEN NULL WHEN - 67 THEN - ( + + 60 ) * - 70 * - 95 - - - COUNT ( * ) END - COUNT ( DISTINCT - NULLIF ( + ( + 23 ), 29 ) ) + - 52 + CASE - 39 WHEN - - ( MAX ( DISTINCT - 62 ) ) - + + 94 THEN - 65 * 28 * - 70 * 65 WHEN - + 58 * + 23 THEN NULL END * + 20
----
109
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3674
SELECT MIN( 31 ) DIV 47 DIV + + 63
----
0

skipif mysql # not compatible
query I rowsort label-3674
SELECT MIN ( 31 ) / 47 / + + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT DISTINCT 76 + + - 50 + - - COUNT( DISTINCT - 7 ) * 87 + - + 66 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT 76 + + - 50 + - - COUNT ( DISTINCT - 7 ) * 87 + - + 66 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT ALL 41 + - 11 * + - ( MAX( ALL 4 ) ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL 41 + - 11 * + - ( MAX ( ALL 4 ) ) AS col0
----
85

query I rowsort
SELECT DISTINCT 70 + - - 42 - 35 AS col0
----
77

query I rowsort
SELECT 98 * - - 61
----
5978

query I rowsort
SELECT ALL 58 - + 12
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3680
SELECT - CAST( - CASE + 9 WHEN + 44 * + 95 + + 7 + - + 51 THEN + 38 * + + ( + 1 ) * + 67 + 48 WHEN - 94 THEN - 81 * + 0 END AS SIGNED ) * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3680
SELECT - CAST ( - CASE + 9 WHEN + 44 * + 95 + + 7 + - + 51 THEN + 38 * + + ( + 1 ) * + 67 + 48 WHEN - 94 THEN - 81 * + 0 END AS INTEGER ) * - 59
----
NULL

query I rowsort
SELECT - 5 - - - 28
----
-33

query II rowsort
SELECT + 28 * 31 + + 12 + + 39 AS col0, + 99 * - - 94 AS col0
----
919
9306

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3683
SELECT CAST( NULL AS DECIMAL ) + + AVG ( + + 14 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT CAST ( NULL AS REAL ) + + AVG ( + + 14 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3684
SELECT + 55 - COUNT( * ) * MAX( ALL - - 67 ) * + - 72 - + 96 - - COALESCE ( + 15, - ( + - 73 ) ) * 86 * + COUNT( * ) * - + 39 - + 94 * - + COALESCE ( + 22, 69, + 9 * 42 DIV + 65 ) AS col1
----
-43459

skipif mysql # not compatible
query I rowsort label-3684
SELECT + 55 - COUNT ( * ) * MAX ( ALL - - 67 ) * + - 72 - + 96 - - COALESCE ( + 15, - ( + - 73 ) ) * 86 * + COUNT ( * ) * - + 39 - + 94 * - + COALESCE ( + 22, 69, + 9 * 42 / + 65 ) AS col1
----
-43459

query I rowsort
SELECT - 94 * + 56 AS col1
----
-5264

query I rowsort
SELECT 91 * - ( 13 )
----
-1183

query I rowsort
SELECT - + 34 col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT + 89 / CASE + COUNT( * ) WHEN - 90 THEN NULL WHEN 77 THEN - COUNT( * ) + - - 51 END + + + 62 + + AVG ( - + 9 ) * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-3688
SELECT + 89 / CASE + COUNT ( * ) WHEN - 90 THEN NULL WHEN 77 THEN - COUNT ( * ) + - - 51 END + + + 62 + + AVG ( - + 9 ) * 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT + 44 * + 29 * + 6 + - 87 + - - COUNT( * ) * - + 83 + + 42 * - 30 AS col2
----
6226

skipif mysql # not compatible
query I rowsort label-3689
SELECT + 44 * + 29 * + 6 + - 87 + - - COUNT ( * ) * - + 83 + + 42 * - 30 AS col2
----
6226

query I rowsort
SELECT DISTINCT - - 23 * + + 7 AS col2
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT + NULLIF ( - 3, + NULLIF ( 47, + SUM( + 47 ) ) ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3691
SELECT + NULLIF ( - 3, + NULLIF ( 47, + SUM ( + 47 ) ) ) AS col2
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT ALL ( + + 78 ) * - 56 + + COUNT( * ) AS col2
----
-4367

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL ( + + 78 ) * - 56 + + COUNT ( * ) AS col2
----
-4367

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT - 77 - - - ( COUNT( * ) ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-3694
SELECT - 77 - - - ( COUNT ( * ) ) col0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3695
SELECT + COUNT( ALL + - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3695
SELECT + COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3696
SELECT - 54 + - + CASE - + 86 WHEN + 60 THEN NULL WHEN - 79 + - CAST( NULL AS SIGNED ) THEN - + 58 ELSE NULL END * 31 * + ( + 57 ) + 89 / - 55 - 61 + - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3696
SELECT - 54 + - + CASE - + 86 WHEN + 60 THEN NULL WHEN - 79 + - CAST ( NULL AS INTEGER ) THEN - + 58 ELSE NULL END * 31 * + ( + 57 ) + 89 / - 55 - 61 + - 14 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3697
SELECT - NULLIF ( - - 28, 58 * + + COUNT( * ) + + - 12 + - - 89 * + + 50 - - ( - COALESCE ( 23, - + 0 DIV - 54 + COUNT( * ) ) ) ) DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-3697
SELECT - NULLIF ( - - 28, 58 * + + COUNT ( * ) + + - 12 + - - 89 * + + 50 - - ( - COALESCE ( 23, - + 0 / - 54 + COUNT ( * ) ) ) ) / 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT 57 * - 18 * + 93 - - ( + + SUM( DISTINCT - 39 ) ) * COUNT( * )
----
-95457

skipif mysql # not compatible
query I rowsort label-3698
SELECT 57 * - 18 * + 93 - - ( + + SUM ( DISTINCT - 39 ) ) * COUNT ( * )
----
-95457

query I rowsort
SELECT + 2 * + + 32 + + - 16 * + - 84
----
1408

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

skipif mysql # not compatible
query I rowsort label-3700
SELECT DISTINCT COUNT ( * ) / + 10
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3701
SELECT + CAST( 82 AS SIGNED ) + + 96 * - - 46 + + 5 * - ( + SUM( DISTINCT + + 78 ) ) AS col1
----
4108

skipif mysql # not compatible
query I rowsort label-3701
SELECT + CAST ( 82 AS INTEGER ) + + 96 * - - 46 + + 5 * - ( + SUM ( DISTINCT + + 78 ) ) AS col1
----
4108

onlyif mysql # DIV for integer division: 
query I rowsort label-3702
SELECT + 69 DIV + + 60
----
1

skipif mysql # not compatible
query I rowsort label-3702
SELECT + 69 / + + 60
----
1

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

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

query I rowsort
SELECT DISTINCT 68 * - 6 + 73
----
-335

onlyif mysql # aggregate syntax: 
query II rowsort label-3705
SELECT ALL COUNT( * ), + 59 * - + 90 AS col0
----
1
-5310

skipif mysql # not compatible
query II rowsort label-3705
SELECT ALL COUNT ( * ), + 59 * - + 90 AS col0
----
1
-5310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3706
SELECT + 39 + CASE + + 63 WHEN + 75 THEN - + NULLIF ( - - 73, - 38 * CAST( 84 AS SIGNED ) + + COUNT( * ) + + 73 * - - CASE - CASE + 7 WHEN + - 99 - - 7 / + 60 THEN NULL WHEN - 31 THEN - - 99 ELSE NULL END WHEN - 14 THEN - 7 * - 74 + - NULLIF ( - 6, SUM( DISTINCT - 28 ) * 64 ) * + 94 END * + CAST( NULL AS SIGNED ) + - - 99 * - 32 / 1 * - 49 * SUM( - 53 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT + 39 + CASE + + 63 WHEN + 75 THEN - + NULLIF ( - - 73, - 38 * CAST ( 84 AS INTEGER ) + + COUNT ( * ) + + 73 * - - CASE - CASE + 7 WHEN + - 99 - - 7 / + 60 THEN NULL WHEN - 31 THEN - - 99 ELSE NULL END WHEN - 14 THEN - 7 * - 74 + - NULLIF ( - 6, SUM ( DISTINCT - 28 ) * 64 ) * + 94 END * + CAST ( NULL AS INTEGER ) + - - 99 * - 32 / 1 * - 49 * SUM ( - 53 ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3707
SELECT ( MIN( - + 59 ) ), 49 DIV - + 93 + - NULLIF ( - - NULLIF ( + 58, 72 + 21 ), - ( CASE + COUNT( * ) WHEN COALESCE ( 0, + 15 * + + 55 * + ( - + 58 ) * 62 + - 3 + + ( - - COUNT( * ) ), - + 81 ) THEN 24 END ) * ( 64 ) - - 95 * - 84 ) * - + 92 AS col1
----
-59
5336

skipif mysql # not compatible
query II rowsort label-3707
SELECT ( MIN ( - + 59 ) ), 49 / - + 93 + - NULLIF ( - - NULLIF ( + 58, 72 + 21 ), - ( CASE + COUNT ( * ) WHEN COALESCE ( 0, + 15 * + + 55 * + ( - + 58 ) * 62 + - 3 + + ( - - COUNT ( * ) ), - + 81 ) THEN 24 END ) * ( 64 ) - - 95 * - 84 ) * - + 92 AS col1
----
-59
5336

query I rowsort
SELECT DISTINCT NULLIF ( + 87, - 14 )
----
87

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

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

query I rowsort
SELECT - - 26 * - 51
----
-1326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3711
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 98 * 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 98 * 96 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3712
SELECT + - 40 + - CASE - ( - CAST( - - 27 AS SIGNED ) ) WHEN + ( - COUNT( * ) ) THEN NULL ELSE - + 41 END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3712
SELECT + - 40 + - CASE - ( - CAST ( - - 27 AS INTEGER ) ) WHEN + ( - COUNT ( * ) ) THEN NULL ELSE - + 41 END AS col0
----
1

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3715
SELECT DISTINCT + 38 * - - 97 - + + NULLIF ( 46, ( + CAST( NULL AS SIGNED ) ) + - 2 ) * - + 10 col1
----
4146

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT + 38 * - - 97 - + + NULLIF ( 46, ( + CAST ( NULL AS INTEGER ) ) + - 2 ) * - + 10 col1
----
4146

query I rowsort
SELECT ALL - 79 + 95 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT ALL + - 58 + - 14 + - 68 + - COUNT( * ) col0
----
-141

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL + - 58 + - 14 + - 68 + - COUNT ( * ) col0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT + ( + + MIN( ALL ( CASE + - ( + ( - COALESCE ( + 98, + - 98 * 29 ) ) ) WHEN + 80 THEN + + 19 ELSE NULL END ) ) ) / 12 / - - ( + + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3718
SELECT + ( + + MIN ( ALL ( CASE + - ( + ( - COALESCE ( + 98, + - 98 * 29 ) ) ) WHEN + 80 THEN + + 19 ELSE NULL END ) ) ) / 12 / - - ( + + 17 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3719
SELECT ALL 61 DIV + 48 + 19 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL 61 / + 48 + 19 AS col1
----
20

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3722
SELECT DISTINCT - 72 * - 84 * - - 79 * - 80 + 27 + 49 col0, - SUM( + 35 ) * - ( + 78 ) * 73 - + 55 + + 21 + 26 * + 99 * - 4 AS col2
----
-38223284
188960

skipif mysql # not compatible
query II rowsort label-3722
SELECT DISTINCT - 72 * - 84 * - - 79 * - 80 + 27 + 49 col0, - SUM ( + 35 ) * - ( + 78 ) * 73 - + 55 + + 21 + 26 * + 99 * - 4 AS col2
----
-38223284
188960

query I rowsort
SELECT ALL - 34 * - 64 * + 97
----
211072

query I rowsort
SELECT ALL 5 * + 2 * - 28 + - 85 + + 25 + + 26
----
-314

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3725
SELECT ALL - 1 * - COALESCE ( + COUNT( * ), - 32, - 3 DIV - - 49 ) + + 76 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL - 1 * - COALESCE ( + COUNT ( * ), - 32, - 3 / - - 49 ) + + 76 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT NULLIF ( - + 47, + COUNT( * ) ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-3726
SELECT NULLIF ( - + 47, + COUNT ( * ) ) AS col2
----
-47

query I rowsort
SELECT + 94 * + 25 AS col0
----
2350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3728
SELECT CASE 5 WHEN 29 * ( CAST( - CAST( 58 AS SIGNED ) AS SIGNED ) ) + - CAST( ( - - 78 ) AS SIGNED ) * 57 - - - ( - + 56 ) + - 37 + 5 - - 44 * + 30 THEN NULL ELSE + 88 END col2
----
88

skipif mysql # not compatible
query I rowsort label-3728
SELECT CASE 5 WHEN 29 * ( CAST ( - CAST ( 58 AS INTEGER ) AS INTEGER ) ) + - CAST ( ( - - 78 ) AS INTEGER ) * 57 - - - ( - + 56 ) + - 37 + 5 - - 44 * + 30 THEN NULL ELSE + 88 END col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3729
SELECT CASE 88 WHEN CAST( NULL AS SIGNED ) THEN - COUNT( * ) WHEN - 97 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT CASE 88 WHEN CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) WHEN - 97 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT NULLIF ( + + 59, - - COUNT( * ) )
----
59

skipif mysql # not compatible
query I rowsort label-3730
SELECT NULLIF ( + + 59, - - COUNT ( * ) )
----
59

query II rowsort
SELECT DISTINCT - 31 AS col1, + 48
----
-31
48

query I rowsort
SELECT - - 38 * 67 * 32 * - + 30 * - 52
----
127096320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3733
SELECT 34 AS col0, - 28 / - + 22 * - CAST( NULL AS SIGNED ) * + + 77 + - 12 - + 45 * - - 26 AS col2
----
34
NULL

skipif mysql # not compatible
query II rowsort label-3733
SELECT 34 AS col0, - 28 / - + 22 * - CAST ( NULL AS INTEGER ) * + + 77 + - 12 - + 45 * - - 26 AS col2
----
34
NULL

query II rowsort
SELECT - + 10 * - - 92 AS col1, 16
----
-920
16

query I rowsort
SELECT - 54 + - 72 * + - 70
----
4986

query I rowsort
SELECT DISTINCT CASE - 38 WHEN 30 THEN NULL ELSE - 74 END col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT ALL + 66 * + + MAX( - 14 ) * + - 89 AS col1
----
82236

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL + 66 * + + MAX ( - 14 ) * + - 89 AS col1
----
82236

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT - - ( - 81 ) - - - COUNT( * ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-3738
SELECT - - ( - 81 ) - - - COUNT ( * ) AS col2
----
-82

query II rowsort
SELECT + ( + 25 ) col0, 45
----
25
45

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3741
SELECT + 99 * + - CAST( - 98 AS SIGNED ) + - 62 + + COUNT( - 55 )
----
9641

skipif mysql # not compatible
query I rowsort label-3741
SELECT + 99 * + - CAST ( - 98 AS INTEGER ) + - 62 + + COUNT ( - 55 )
----
9641

query I rowsort
SELECT + - 36 + 5
----
-31

query I rowsort
SELECT ALL + - 14 + - 41 + - - 6 * - 56 * + 48 + + 25 * + 54
----
-14833

query I rowsort
SELECT DISTINCT + COALESCE ( + 88, + 9 )
----
88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3745
SELECT ALL + COALESCE ( ( - + 5 ), 75, 27 * - - CAST( + 6 AS SIGNED ) * 95 * 61, + - 59 * + 0 - - 83 + 25 DIV - - 37 * 73 + + 48 ) + - 95
----
-100

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + COALESCE ( ( - + 5 ), 75, 27 * - - CAST ( + 6 AS INTEGER ) * 95 * 61, + - 59 * + 0 - - 83 + 25 / - - 37 * 73 + + 48 ) + - 95
----
-100

query I rowsort
SELECT ALL 70 + + + 56 - + + 75
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3747
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, 37 + + 67 AS col1
----
NULL
104

skipif mysql # not compatible
query II rowsort label-3747
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 37 + + 67 AS col1
----
NULL
104

query I rowsort
SELECT + ( - 43 ) - - ( - 60 )
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-3749
SELECT ALL - 48 + 76 DIV - 57 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL - 48 + 76 / - 57 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT ALL - MAX( DISTINCT - 64 ) + + - 76
----
-12

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL - MAX ( DISTINCT - 64 ) + + - 76
----
-12

query I rowsort
SELECT ( - - 3 ) + - + 80 col0
----
-77

query I rowsort
SELECT ALL 48 * - 56 * + - 12 AS col0
----
32256

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT DISTINCT + COUNT( * ) * + COALESCE ( - - ( - 91 ), 32 * 96 + - 47 + 35, 81 * 67 ) * + 66 * - 14 * ( - - CASE + + 56 WHEN + 64 + ( 95 ) THEN + 65 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT + COUNT ( * ) * + COALESCE ( - - ( - 91 ), 32 * 96 + - 47 + 35, 81 * 67 ) * + 66 * - 14 * ( - - CASE + + 56 WHEN + 64 + ( 95 ) THEN + 65 END ) AS col2
----
NULL

query II rowsort
SELECT ALL - 93 - 10, - 18 AS col2
----
-103
-18

query I rowsort
SELECT + ( 8 ) * 86 + + 64 * - - 69
----
5104

query I rowsort
SELECT 72 * - - 33
----
2376

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3757
SELECT ( - - 76 ) DIV - + 71 - + CASE + + COUNT( * ) WHEN - 5 THEN NULL ELSE + 53 END, 47 AS col0
----
-54
47

skipif mysql # not compatible
query II rowsort label-3757
SELECT ( - - 76 ) / - + 71 - + CASE + + COUNT ( * ) WHEN - 5 THEN NULL ELSE + 53 END, 47 AS col0
----
-54
47

query I rowsort
SELECT ( - 91 ) + + 23 AS col2
----
-68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT - 18 * + COUNT( * ) + - COALESCE ( + 71, - 48, - 39 + - - 7 )
----
-89

skipif mysql # not compatible
query I rowsort label-3760
SELECT - 18 * + COUNT ( * ) + - COALESCE ( + 71, - 48, - 39 + - - 7 )
----
-89

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

query I rowsort
SELECT 14 * 49 * - - 40
----
27440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3763
SELECT 23 - - 57 AS col0, + 27 + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) * - - 52
----
80
27

skipif mysql # not compatible
query II rowsort label-3763
SELECT 23 - - 57 AS col0, + 27 + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - - 52
----
80
27

query I rowsort
SELECT 9 + + ( 3 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT ALL + COUNT( DISTINCT - 45 )
----
1

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL + COUNT ( DISTINCT - 45 )
----
1

query I rowsort
SELECT ( + - 80 ) * + 20
----
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT ALL + 46 + COUNT( DISTINCT - + 3 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL + 46 + COUNT ( DISTINCT - + 3 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT COALESCE ( - + 9, + SUM( - - 23 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-3768
SELECT COALESCE ( - + 9, + SUM ( - - 23 ) )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-3769
SELECT 35 + + + COUNT( * ) AS col0, 79 AS col1
----
36
79

skipif mysql # not compatible
query II rowsort label-3769
SELECT 35 + + + COUNT ( * ) AS col0, 79 AS col1
----
36
79

query I rowsort
SELECT ALL 41 + 74 * - 52
----
-3807

query I rowsort
SELECT + 63 + + 99 * - 78
----
-7659

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3772
SELECT 14 DIV - + SUM( DISTINCT + 67 ) AS col0, 35 * + + 17 AS col2
----
0
595

skipif mysql # not compatible
query II rowsort label-3772
SELECT 14 / - + SUM ( DISTINCT + 67 ) AS col0, 35 * + + 17 AS col2
----
0
595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3773
SELECT 58 + + ( + + 94 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3773
SELECT 58 + + ( + + 94 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3774
SELECT - - COALESCE ( + COALESCE ( + CASE 27 WHEN - + 63 THEN NULL WHEN - - ( - 50 ) + + COUNT( * ) - 98 THEN NULL WHEN ( - 62 ) + + 1 * 52 THEN NULL ELSE 0 * SUM( ALL - ( 22 ) ) DIV + + 21 + 10 END, - 83 ), - 74 + - 15 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-3774
SELECT - - COALESCE ( + COALESCE ( + CASE 27 WHEN - + 63 THEN NULL WHEN - - ( - 50 ) + + COUNT ( * ) - 98 THEN NULL WHEN ( - 62 ) + + 1 * 52 THEN NULL ELSE 0 * SUM ( ALL - ( 22 ) ) / + + 21 + 10 END, - 83 ), - 74 + - 15 ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ( + MIN( 27 ) ) + + 15 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3775
SELECT ( + MIN ( 27 ) ) + + 15 AS col1
----
42

query I rowsort
SELECT ALL + - 86 + - 65
----
-151

query I rowsort
SELECT DISTINCT - 60 * + 97 AS col2
----
-5820

query I rowsort
SELECT - 99 + - 98 * + 59 AS col2
----
-5881

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3779
SELECT 37 * + 13 + + 89 - - COALESCE ( 18, - 66 * + COUNT( * ) * - 30 ) DIV + 31 AS col2
----
570

skipif mysql # not compatible
query I rowsort label-3779
SELECT 37 * + 13 + + 89 - - COALESCE ( 18, - 66 * + COUNT ( * ) * - 30 ) / + 31 AS col2
----
570

query I rowsort
SELECT ALL 43 * 71 * + + 5
----
15265

query I rowsort
SELECT - ( - 84 ) + ( + - 71 ) col2
----
13

query II rowsort
SELECT ALL - ( + 73 ) - + + 52 AS col0, + ( + 40 )
----
-125
40

query I rowsort
SELECT DISTINCT + 88 * + 30
----
2640

onlyif mysql # aggregate syntax: 
query II rowsort label-3784
SELECT COUNT( * ), 18 + 14 AS col0
----
1
32

skipif mysql # not compatible
query II rowsort label-3784
SELECT COUNT ( * ), 18 + 14 AS col0
----
1
32

query I rowsort
SELECT 71 * 83 + 50 AS col1
----
5943

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

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

query I rowsort
SELECT 7 * + 3
----
21

query I rowsort
SELECT ALL 29 * + + 26 * - 57 col1
----
-42978

query I rowsort
SELECT DISTINCT 40 * 60 AS col1
----
2400

query II rowsort
SELECT ALL - 52 AS col1, - 35 + - 39
----
-52
-74

query I rowsort
SELECT DISTINCT COALESCE ( - 93, - - 48 ) + 8 * + 18 * - ( - 77 ) AS col2
----
10995

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

query I rowsort
SELECT - ( 62 ) + + + 48 + + 52 + - 32
----
6

query I rowsort
SELECT NULLIF ( 12, + 50 + - COALESCE ( 56, - 75 * 15, 67 ) * + 36 + - + 63 + + 94 ) AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3795
SELECT 24 DIV 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3795
SELECT 24 / 85 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3796
SELECT 38, - CASE 52 WHEN - + COUNT( * ) + + + AVG ( + - CAST( NULL AS SIGNED ) ) + 53 * - 59 THEN - COUNT( * ) * - 54 ELSE NULL END * + + 43 / + - CAST( NULL AS SIGNED ) AS col2
----
38
NULL

skipif mysql # not compatible
query II rowsort label-3796
SELECT 38, - CASE 52 WHEN - + COUNT ( * ) + + + AVG ( + - CAST ( NULL AS INTEGER ) ) + 53 * - 59 THEN - COUNT ( * ) * - 54 ELSE NULL END * + + 43 / + - CAST ( NULL AS INTEGER ) AS col2
----
38
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3797
SELECT ALL - 64 + + 9 + - - 62 col2, + 38 * CAST( - 32 AS SIGNED ), - 42 col0
----
7
-1216
-42

skipif mysql # not compatible
query III rowsort label-3797
SELECT ALL - 64 + + 9 + - - 62 col2, + 38 * CAST ( - 32 AS INTEGER ), - 42 col0
----
7
-1216
-42

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

skipif mysql # not compatible
query I rowsort label-3798
SELECT + COALESCE ( - COUNT ( * ), + ( + SUM ( - 78 ) ), + 78 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT ALL + + 26 + 64 + - + MIN( ALL 51 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL + + 26 + 64 + - + MIN ( ALL 51 ) AS col1
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3800
SELECT CAST( NULL AS DECIMAL ) * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT CAST ( NULL AS REAL ) * 65
----
NULL

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

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

query II rowsort
SELECT ( 11 ) + - 20 AS col2, + 43 * 5 + - 38 AS col2
----
-9
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3803
SELECT - 31 + + 20 - - 97 * 71 * - + CAST( NULL AS SIGNED ) * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT - 31 + + 20 - - 97 * 71 * - + CAST ( NULL AS INTEGER ) * 36
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3804
SELECT - COUNT( * ) * + 78 DIV + NULLIF ( 70, + + 92 )
----
-1

skipif mysql # not compatible
query I rowsort label-3804
SELECT - COUNT ( * ) * + 78 / + NULLIF ( 70, + + 92 )
----
-1

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

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

query I rowsort
SELECT ALL + 75 - + + 87
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3807
SELECT DISTINCT COALESCE ( - - 60, + + 28 * - COALESCE ( 59, + 61 * CAST( NULL AS SIGNED ), 17 DIV 29 ) + 81 DIV + COUNT( * ) + CAST( 12 AS SIGNED ), + CAST( + + 78 AS SIGNED ), 69 )
----
60

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT COALESCE ( - - 60, + + 28 * - COALESCE ( 59, + 61 * CAST ( NULL AS INTEGER ), 17 / 29 ) + 81 / + COUNT ( * ) + CAST ( 12 AS INTEGER ), + CAST ( + + 78 AS INTEGER ), 69 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT - SUM( DISTINCT + 95 ) * + + 1 + + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-3808
SELECT - SUM ( DISTINCT + 95 ) * + + 1 + + COUNT ( * )
----
-94

query I rowsort
SELECT - 95 * + 21 * - - 55 AS col0
----
-109725

query I rowsort
SELECT DISTINCT NULLIF ( 9, 43 ) AS col2
----
9

query I rowsort
SELECT ALL CASE + 34 WHEN + 50 THEN - 46 + + - 85 END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3812
SELECT - COALESCE ( + 52, + + COALESCE ( - 75, - COALESCE ( + - COALESCE ( - 95, + 98 ), - 86 ) * + 81 - - 52 * 53, + + 98 + 9 + 96, + ( - SUM( 77 ) ) ), 33 ) DIV - 90 col1
----
0

skipif mysql # not compatible
query I rowsort label-3812
SELECT - COALESCE ( + 52, + + COALESCE ( - 75, - COALESCE ( + - COALESCE ( - 95, + 98 ), - 86 ) * + 81 - - 52 * 53, + + 98 + 9 + 96, + ( - SUM ( 77 ) ) ), 33 ) / - 90 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3813
SELECT ALL + COUNT( * ) * + 62, - 13 * + 43 col0
----
62
-559

skipif mysql # not compatible
query II rowsort label-3813
SELECT ALL + COUNT ( * ) * + 62, - 13 * + 43 col0
----
62
-559

query I rowsort
SELECT - 24 + - + ( 76 ) AS col0
----
-100

query I rowsort
SELECT DISTINCT 53 * - 35
----
-1855

query II rowsort
SELECT + 93 * + + 48 AS col1, 88 AS col2
----
4464
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT ALL + COUNT( * ) * - + 17 + + + 7
----
-10

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL + COUNT ( * ) * - + 17 + + + 7
----
-10

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

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

query I rowsort
SELECT ALL + 99 * + 60 + + 39 + - - 94 * - + 32
----
2971

query I rowsort
SELECT - 58 + 78 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT + - SUM( DISTINCT + + 4 ) + + - 42 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-3821
SELECT + - SUM ( DISTINCT + + 4 ) + + - 42 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ALL + 87 * - - MAX( + 40 ) + - 72 + 0 + - 36 + COUNT( * ) - + 70 AS col0
----
3303

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL + 87 * - - MAX ( + 40 ) + - 72 + 0 + - 36 + COUNT ( * ) - + 70 AS col0
----
3303

query I rowsort
SELECT - + 50 * + 29 + - 82 AS col2
----
-1532

query I rowsort
SELECT DISTINCT + 54 * 5 AS col0
----
270

query I rowsort
SELECT DISTINCT - + 2 * 60 * - 2 + - 12 + + 88
----
316

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

skipif mysql # not compatible
query I rowsort label-3826
SELECT + + MIN ( + 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT + 15 * - - 83 + - - 2 + 9 + + - SUM( ALL + - 86 )
----
1342

skipif mysql # not compatible
query I rowsort label-3827
SELECT + 15 * - - 83 + - - 2 + 9 + + - SUM ( ALL + - 86 )
----
1342

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

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

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

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

query I rowsort
SELECT ALL + 91 * 51 * - 62 AS col0
----
-287742

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3832
SELECT ALL + 11 DIV + 60 * 66
----
0

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL + 11 / + 60 * 66
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3833
SELECT + 95 * - ( + - 24 ) + + + ( + 5 ) DIV + - 86 AS col2
----
2280

skipif mysql # not compatible
query I rowsort label-3833
SELECT + 95 * - ( + - 24 ) + + + ( + 5 ) / + - 86 AS col2
----
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT - 8 * + MIN( ALL 81 )
----
-648

skipif mysql # not compatible
query I rowsort label-3834
SELECT - 8 * + MIN ( ALL 81 )
----
-648

query II rowsort
SELECT - 89 AS col1, 12 - - 87
----
-89
99

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

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

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

query I rowsort
SELECT - 36 + - 27 AS col2
----
-63

query I rowsort
SELECT - 65 + + 71 + - ( 17 ) AS col0
----
-11

query I rowsort
SELECT ALL 30 * 69
----
2070

onlyif mysql # aggregate syntax: 
query II rowsort label-3841
SELECT DISTINCT COUNT( * ), 26 * + + 88 AS col0
----
1
2288

skipif mysql # not compatible
query II rowsort label-3841
SELECT DISTINCT COUNT ( * ), 26 * + + 88 AS col0
----
1
2288

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3843
SELECT ALL CAST( NULL AS SIGNED ), CASE - - CAST( - COALESCE ( - COUNT( * ), - 38 ) AS SIGNED ) WHEN + + 8 THEN - 62 WHEN 40 / COUNT( * ) * 51 * + CASE - - 46 WHEN + 60 * + 24 / + + 43 * - 8 THEN - 25 ELSE + 32 END THEN + 54 WHEN 10 * - - 71 + 22 THEN NULL ELSE NULL END * + + 81 * - 36 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3843
SELECT ALL CAST ( NULL AS INTEGER ), CASE - - CAST ( - COALESCE ( - COUNT ( * ), - 38 ) AS INTEGER ) WHEN + + 8 THEN - 62 WHEN 40 / COUNT ( * ) * 51 * + CASE - - 46 WHEN + 60 * + 24 / + + 43 * - 8 THEN - 25 ELSE + 32 END THEN + 54 WHEN 10 * - - 71 + 22 THEN NULL ELSE NULL END * + + 81 * - 36 AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT ALL - 72 + + + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL - 72 + + + COUNT ( * )
----
-71

query I rowsort
SELECT - 11 + - 89 AS col1
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-3846
SELECT DISTINCT ( - MIN( + 90 ) ) AS col2, 76
----
-90
76

skipif mysql # not compatible
query II rowsort label-3846
SELECT DISTINCT ( - MIN ( + 90 ) ) AS col2, 76
----
-90
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3847
SELECT ALL + MAX( ALL - + 94 ) DIV 61 + - 44 + 49 * - COUNT( * ) * + + 9 + - 92 - + COUNT( * ) AS col0
----
-579

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL + MAX ( ALL - + 94 ) / 61 + - 44 + 49 * - COUNT ( * ) * + + 9 + - 92 - + COUNT ( * ) AS col0
----
-579

onlyif mysql # DIV for integer division: 
query I rowsort label-3848
SELECT DISTINCT - 88 DIV + 7 + - + 54 + + - 27 * + 48 * + 72
----
-93378

skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT - 88 / + 7 + - + 54 + + - 27 * + 48 * + 72
----
-93378

query I rowsort
SELECT - 75 * - 31 col2
----
2325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3850
SELECT ALL - 55 DIV 48 + - + COUNT( * ) - - 27 * + 65 + - + ( - - 96 ) + 97
----
1754

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL - 55 / 48 + - + COUNT ( * ) - - 27 * + 65 + - + ( - - 96 ) + 97
----
1754

onlyif mysql # DIV for integer division: 
query I rowsort label-3851
SELECT DISTINCT - 72 DIV 98 + 40 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-3851
SELECT DISTINCT - 72 / 98 + 40 AS col1
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3852
SELECT ALL + 82 DIV + 69
----
1

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL + 82 / + 69
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3853
SELECT - 28 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-3853
SELECT - 28 / 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3854
SELECT ALL 18 DIV ( 98 * ( + 5 ) ) + 59
----
59

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL 18 / ( 98 * ( + 5 ) ) + 59
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3855
SELECT ALL 98 * + CASE + 42 * - 71 WHEN - 86 + + 67 * - CAST( NULL AS SIGNED ) THEN - COUNT( ALL NULLIF ( + 83, - 69 ) ) * + 39 ELSE - COALESCE ( - 24, 37, + 13 + - 29 * 39 ) END
----
2352

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL 98 * + CASE + 42 * - 71 WHEN - 86 + + 67 * - CAST ( NULL AS INTEGER ) THEN - COUNT ( ALL NULLIF ( + 83, - 69 ) ) * + 39 ELSE - COALESCE ( - 24, 37, + 13 + - 29 * 39 ) END
----
2352

onlyif mysql # DIV for integer division: 
query I rowsort label-3856
SELECT ALL - 78 DIV - 38 + 96 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL - 78 / - 38 + 96 AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3857
SELECT ALL 30 / 67 + - ( + AVG ( 34 ) + - 83 * + SUM( - 25 * 73 + 72 ) ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL 30 / 67 + - ( + AVG ( 34 ) + - 83 * + SUM ( - 25 * 73 + 72 ) ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 38 * - 51
----
-1938

query I rowsort
SELECT DISTINCT 91 - + 95 * 16 AS col1
----
-1429

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

query I rowsort
SELECT CASE + 67 WHEN 52 THEN ( + 3 ) * + 16 END * - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT MIN( ALL 7 ) + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-3862
SELECT MIN ( ALL 7 ) + COUNT ( * )
----
8

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

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

query I rowsort
SELECT ALL COALESCE ( 87, 7 * 4 + + 18 ) + 46
----
133

query I rowsort
SELECT ( COALESCE ( 22, 16 ) ) - + 68 AS col2
----
-46

query I rowsort
SELECT DISTINCT 89 * + 60 AS col0
----
5340

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3867
SELECT ALL 82 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL 82 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT ALL - 40 + CASE 95 - 56 WHEN NULLIF ( - 70, 49 ) THEN 63 * + 6 WHEN - MAX( - 49 ) + COUNT( * ) * + 41 THEN NULL WHEN 15 * + 34 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL - 40 + CASE 95 - 56 WHEN NULLIF ( - 70, 49 ) THEN 63 * + 6 WHEN - MAX ( - 49 ) + COUNT ( * ) * + 41 THEN NULL WHEN 15 * + 34 THEN NULL END col2
----
NULL

query I rowsort
SELECT 23 * 49 AS col2
----
1127

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT DISTINCT 17 + NULLIF ( - 51 + - 1 * 89, COUNT( * ) ) * 85 AS col1
----
-11883

skipif mysql # not compatible
query I rowsort label-3870
SELECT DISTINCT 17 + NULLIF ( - 51 + - 1 * 89, COUNT ( * ) ) * 85 AS col1
----
-11883

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3872
SELECT DISTINCT COALESCE ( + COUNT( * ), 84, + NULLIF ( - CAST( + 48 AS SIGNED ), + 37 / 58 ) ) * 7
----
7

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT COALESCE ( + COUNT ( * ), 84, + NULLIF ( - CAST ( + 48 AS INTEGER ), + 37 / 58 ) ) * 7
----
7

query I rowsort
SELECT ( 99 ) * - 51 AS col1
----
-5049

query I rowsort
SELECT 26 + - 73
----
-47

query I rowsort
SELECT DISTINCT CASE WHEN COALESCE ( 20, - 50 ) IS NOT NULL THEN + NULLIF ( ( 23 ), - 83 ) ELSE NULL END * - 33 AS col1
----
-759

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

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

query I rowsort
SELECT ALL 8 * - 88
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT DISTINCT COUNT( * ) - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT COUNT ( * ) - COUNT ( * )
----
0

query I rowsort
SELECT - 65 * 26
----
-1690

onlyif mysql # DIV for integer division: 
query I rowsort label-3880
SELECT - - 12 DIV 62 + 24 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-3880
SELECT - - 12 / 62 + 24 AS col1
----
24

query I rowsort
SELECT 20 * 41 AS col1
----
820

onlyif mysql # DIV for integer division: 
query I rowsort label-3882
SELECT DISTINCT - 94 DIV - 86 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT - 94 / - 86 AS col2
----
1

query I rowsort
SELECT 66 + 70
----
136

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3885
SELECT DISTINCT - 33 DIV + 16 col2
----
-2

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT - 33 / + 16 col2
----
-2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3887
SELECT 35 DIV + 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3887
SELECT 35 / + 43 AS col2
----
0

query I rowsort
SELECT - 81 * 77 AS col2
----
-6237

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT 27 + - COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3890
SELECT 27 + - COUNT ( * ) AS col0
----
26

query I rowsort
SELECT DISTINCT - - 23 + - ( - 60 ) AS col2
----
83

query I rowsort
SELECT 82 + + 27 * 75
----
2107

query I rowsort
SELECT 92 + + 58 AS col0
----
150

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

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

query I rowsort
SELECT DISTINCT - 71 + - + 59 + - ( - 54 ) * 40 AS col2
----
2030

query I rowsort
SELECT ALL + 17 + + 10 - - 72
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3897
SELECT DISTINCT MAX( + 38 ) + + 2 DIV - 91 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT MAX ( + 38 ) + + 2 / - 91 AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3898
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + COUNT( 76 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT CAST ( NULL AS REAL ) + + COUNT ( 76 ) AS col2
----
NULL

query I rowsort
SELECT 88 + + + ( 31 )
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT 27 + - NULLIF ( 43, MIN( ALL 71 ) ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-3900
SELECT 27 + - NULLIF ( 43, MIN ( ALL 71 ) ) AS col2
----
-16

query I rowsort
SELECT ALL 76 * + - 34
----
-2584

onlyif mysql # DIV for integer division: 
query I rowsort label-3902
SELECT 33 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-3902
SELECT 33 / - 64
----
0

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

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

query I rowsort
SELECT DISTINCT 75 * + 62
----
4650

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT ALL NULLIF ( - + COUNT( * ), - COUNT( * ) ) - + CASE - 55 WHEN 19 - COUNT( * ) THEN + 16 WHEN + COUNT( * ) THEN + 76 WHEN + COALESCE ( + 8, 77, 17 ) / - COUNT( * ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL NULLIF ( - + COUNT ( * ), - COUNT ( * ) ) - + CASE - 55 WHEN 19 - COUNT ( * ) THEN + 16 WHEN + COUNT ( * ) THEN + 76 WHEN + COALESCE ( + 8, 77, 17 ) / - COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 93 - + + 89
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3907
SELECT ALL 16 DIV - 60 * 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL 16 / - 60 * 61 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT - CASE - COUNT( * ) WHEN - NULLIF ( 49, 51 ) / COUNT( * ) - - CASE COUNT( * ) WHEN - 87 + COUNT( * ) THEN NULL ELSE - 77 END THEN + 55 + 99 WHEN + CASE ( 54 ) WHEN - 65 THEN NULL WHEN NULLIF ( + 72, CASE - ( 89 ) WHEN + 85 THEN - 59 WHEN 48 + COUNT( + 25 ) THEN NULL ELSE NULL END ) + - 39 * - 40 THEN + 93 * - 64 END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3908
SELECT - CASE - COUNT ( * ) WHEN - NULLIF ( 49, 51 ) / COUNT ( * ) - - CASE COUNT ( * ) WHEN - 87 + COUNT ( * ) THEN NULL ELSE - 77 END THEN + 55 + 99 WHEN + CASE ( 54 ) WHEN - 65 THEN NULL WHEN NULLIF ( + 72, CASE - ( 89 ) WHEN + 85 THEN - 59 WHEN 48 + COUNT ( + 25 ) THEN NULL ELSE NULL END ) + - 39 * - 40 THEN + 93 * - 64 END THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3909
SELECT + + 20 + CASE - 94 WHEN - 18 / 68 + CAST( + ( 14 ) AS SIGNED ) THEN COUNT( * ) * 44 + - MAX( 4 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3909
SELECT + + 20 + CASE - 94 WHEN - 18 / 68 + CAST ( + ( 14 ) AS INTEGER ) THEN COUNT ( * ) * 44 + - MAX ( 4 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 59 + 28 + - ( - 39 ) * 86 AS col1
----
3323

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT DISTINCT + + SUM( DISTINCT + CASE 88 WHEN + 25 / + 49 THEN - 15 + + 79 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT + + SUM ( DISTINCT + CASE 88 WHEN + 25 / + 49 THEN - 15 + + 79 END ) AS col2
----
NULL

query I rowsort
SELECT ALL - + 13 * 21 col0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT - MAX( - - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-3913
SELECT - MAX ( - - 77 )
----
-77

query I rowsort
SELECT ALL + 4 * - 79
----
-316

query I rowsort
SELECT - - 93 * + 78 * 20 + 71 AS col1
----
145151

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT - + 60 * 20 + CASE ( 95 ) + + COUNT( * ) * 54 WHEN 79 THEN - 84 + AVG ( - 78 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3916
SELECT - + 60 * 20 + CASE ( 95 ) + + COUNT ( * ) * 54 WHEN 79 THEN - 84 + AVG ( - 78 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3917
SELECT + - 49 * COALESCE ( 29, 36 + COALESCE ( + CASE + 76 WHEN 28 + 85 THEN 77 WHEN + 23 THEN 19 * - MIN( DISTINCT + 14 * + 62 ) END, - COUNT( * ) ) DIV CAST( NULL AS SIGNED ), 5 DIV - 72 + + 60 ) AS col1
----
-1421

skipif mysql # not compatible
query I rowsort label-3917
SELECT + - 49 * COALESCE ( 29, 36 + COALESCE ( + CASE + 76 WHEN 28 + 85 THEN 77 WHEN + 23 THEN 19 * - MIN ( DISTINCT + 14 * + 62 ) END, - COUNT ( * ) ) / CAST ( NULL AS INTEGER ), 5 / - 72 + + 60 ) AS col1
----
-1421

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT DISTINCT 71 * - 15 + + COUNT( * )
----
-1064

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT 71 * - 15 + + COUNT ( * )
----
-1064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3919
SELECT + - MAX( - 87 ) DIV + COALESCE ( NULLIF ( - 12, COALESCE ( COUNT( * ), COUNT( * ) ) ) DIV - COUNT( * ), - COUNT( * ) )
----
7

skipif mysql # not compatible
query I rowsort label-3919
SELECT + - MAX ( - 87 ) / + COALESCE ( NULLIF ( - 12, COALESCE ( COUNT ( * ), COUNT ( * ) ) ) / - COUNT ( * ), - COUNT ( * ) )
----
7

query I rowsort
SELECT - 2 * - 40 + 15
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT ALL + 7 * - 2 + - SUM( 36 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL + 7 * - 2 + - SUM ( 36 ) AS col1
----
-50

query I rowsort
SELECT 82 * ( 71 ) - - 28 col0
----
5850

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3923
SELECT ALL - 57 * + 96 - - 27 * - 45 + CAST( - CAST( + 16 AS SIGNED ) AS SIGNED ) DIV - 81
----
-6687

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL - 57 * + 96 - - 27 * - 45 + CAST ( - CAST ( + 16 AS INTEGER ) AS INTEGER ) / - 81
----
-6687

query I rowsort
SELECT DISTINCT 79 * 87 * 62 + 39 * 52 AS col0
----
428154

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

query I rowsort
SELECT - 1 * 49
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3927
SELECT DISTINCT + COALESCE ( + + 1, - 83 DIV CASE + MIN( + 89 ) WHEN 49 THEN - 36 END )
----
1

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT + COALESCE ( + + 1, - 83 / CASE + MIN ( + 89 ) WHEN 49 THEN - 36 END )
----
1

query I rowsort
SELECT - 77 * + - 14 * - 48 AS col2
----
-51744

query I rowsort
SELECT ALL + 13 * 89
----
1157

query II rowsort
SELECT - 96 AS col0, ( + - 87 ) * 48
----
-96
-4176

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT - CASE 98 WHEN 21 THEN 35 ELSE NULL END + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3931
SELECT - CASE 98 WHEN 21 THEN 35 ELSE NULL END + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - 71 * + 25 AS col2
----
-1775

query I rowsort
SELECT DISTINCT - 95 * - - 0
----
0

query I rowsort
SELECT - 47 * - 29 AS col1
----
1363

query I rowsort
SELECT ALL + 22 + - CASE - 15 WHEN + 18 / + 19 THEN 33 + + 91 * + 68 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 95 * - 50
----
4750

query I rowsort
SELECT - 87 + 96 col0
----
9

query I rowsort
SELECT ALL 75 - - 81 + + 86
----
242

query I rowsort
SELECT + 81 * + - ( - - 89 )
----
-7209

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3940
SELECT ALL - CAST( 65 AS SIGNED ) DIV ( 94 ) * + 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL - CAST ( 65 AS INTEGER ) / ( 94 ) * + 48 AS col2
----
0

query II rowsort
SELECT 61, 84 AS col2
----
61
84

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

skipif mysql # not compatible
query I rowsort label-3942
SELECT + + COUNT ( * ) + + COUNT ( DISTINCT - 8 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT - 87 * SUM( - 83 ) + - COUNT( * )
----
7220

skipif mysql # not compatible
query I rowsort label-3943
SELECT - 87 * SUM ( - 83 ) + - COUNT ( * )
----
7220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3944
SELECT + 57 * + CAST( 98 AS SIGNED )
----
5586

skipif mysql # not compatible
query I rowsort label-3944
SELECT + 57 * + CAST ( 98 AS INTEGER )
----
5586

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT + - 38 * - + COUNT( - ( + 51 ) )
----
38

skipif mysql # not compatible
query I rowsort label-3946
SELECT + - 38 * - + COUNT ( - ( + 51 ) )
----
38

query I rowsort
SELECT ALL + COALESCE ( - - 75, - 6 * 35 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT DISTINCT + + SUM( ALL - 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT + + SUM ( ALL - 39 ) AS col0
----
-39

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3951
SELECT COUNT( * ) DIV - 61 + - MIN( DISTINCT + 22 ) + + 48 - 34 * 14
----
-450

skipif mysql # not compatible
query I rowsort label-3951
SELECT COUNT ( * ) / - 61 + - MIN ( DISTINCT + 22 ) + + 48 - 34 * 14
----
-450

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT ALL + 83 DIV - - 40 col2
----
2

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL + 83 / - - 40 col2
----
2

query II rowsort
SELECT + + 64 col0, - COALESCE ( - + 20, 16 - 15 ) * + 76 col1
----
64
1520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3954
SELECT ALL SUM( ALL + + 75 ) / + ( 66 ) - - 0 + + ( NULLIF ( + 25, - COUNT( * ) * - 5 ) + 49 * CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL SUM ( ALL + + 75 ) / + ( 66 ) - - 0 + + ( NULLIF ( + 25, - COUNT ( * ) * - 5 ) + 49 * CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT ALL + COALESCE ( - MIN( ALL 73 ), 2 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL + COALESCE ( - MIN ( ALL 73 ), 2 ) AS col2
----
-73

query I rowsort
SELECT - + ( CASE - 7 WHEN - 54 THEN - AVG ( DISTINCT - 18 ) WHEN + 30 * - 22 THEN - 78 * - 95 - 74 END ) * 17 + + 95 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3957
SELECT DISTINCT 66 * + CAST( - - 32 AS SIGNED )
----
2112

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT 66 * + CAST ( - - 32 AS INTEGER )
----
2112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3958
SELECT + 78 + - CAST( NULL AS SIGNED ) + - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3958
SELECT + 78 + - CAST ( NULL AS INTEGER ) + - 37 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT ALL + 72 * + 73 * 82 + + 71 - - COUNT( * ) * 62 col0
----
431125

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL + 72 * + 73 * 82 + + 71 - - COUNT ( * ) * 62 col0
----
431125

query I rowsort
SELECT - 95 * 0 * + + 97 AS col1
----
0

query I rowsort
SELECT ALL 1 * - - 30
----
30

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

query I rowsort
SELECT - 71 + - 52
----
-123

query I rowsort
SELECT ALL + 95 * 5 + - + NULLIF ( + + 63, + 49 / - AVG ( ALL - 24 ) ) + - 51 AS col0
----
361

query I rowsort
SELECT + 59 * ( + 81 )
----
4779

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT NULLIF ( - 93, + ( - COUNT( * ) ) * + NULLIF ( - 75, 33 ) ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3966
SELECT NULLIF ( - 93, + ( - COUNT ( * ) ) * + NULLIF ( - 75, 33 ) ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT 27 * COUNT( * ) + + 24 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3967
SELECT 27 * COUNT ( * ) + + 24 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT CASE - 10 WHEN - 37 * - 81 + 22 THEN + 23 + 52 ELSE SUM( - 68 ) + 43 END
----
-25

skipif mysql # not compatible
query I rowsort label-3968
SELECT CASE - 10 WHEN - 37 * - 81 + 22 THEN + 23 + 52 ELSE SUM ( - 68 ) + 43 END
----
-25

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

query I rowsort
SELECT - 29 * - + 64 * - 16
----
-29696

query I rowsort
SELECT DISTINCT + 9 * + ( + + 32 )
----
288

query I rowsort
SELECT ALL COALESCE ( + ( + + 84 ), - 44, 54 )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT 52 DIV + - ( + + 44 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3973
SELECT 52 / + - ( + + 44 ) AS col2
----
-1

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

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

query I rowsort
SELECT ( + 35 ) + - 34 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT 58 + - COUNT( * ) - + + 41 + - 42 + + 1 * 60 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3976
SELECT 58 + - COUNT ( * ) - + + 41 + - 42 + + 1 * 60 AS col1
----
34

query I rowsort
SELECT DISTINCT + 10 * + 57 * + 80
----
45600

query I rowsort
SELECT + 94 + - - 11
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-3979
SELECT ALL - + 4 * 68 DIV - 78
----
3

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL - + 4 * 68 / - 78
----
3

query I rowsort
SELECT 64 + 99
----
163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3981
SELECT - 21 * - + ( + CASE - - COUNT( * ) WHEN 44 * 31 - 27 THEN - ( - 40 ) + - NULLIF ( + 41 + + 51, + COUNT( * ) ) ELSE COALESCE ( 51, 51 DIV 4, 92 * - ( - 95 ), - 70 ) END ) AS col0
----
1071

skipif mysql # not compatible
query I rowsort label-3981
SELECT - 21 * - + ( + CASE - - COUNT ( * ) WHEN 44 * 31 - 27 THEN - ( - 40 ) + - NULLIF ( + 41 + + 51, + COUNT ( * ) ) ELSE COALESCE ( 51, 51 / 4, 92 * - ( - 95 ), - 70 ) END ) AS col0
----
1071

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3982
SELECT ALL - + CAST( NULL AS SIGNED ) + AVG ( - - 8 ) + + NULLIF ( 52, - CAST( NULL AS SIGNED ) ) * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL - + CAST ( NULL AS INTEGER ) + AVG ( - - 8 ) + + NULLIF ( 52, - CAST ( NULL AS INTEGER ) ) * 3
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 54 + 76 * + 55 AS col2
----
4234

query I rowsort
SELECT ALL - 96 + 38 + + 62 + - 36 - - 3
----
-29

query I rowsort
SELECT COALESCE ( + 41, - - 18 + + 99, + 82 ) + + 26
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3987
SELECT ALL + + 29 + - - 51 - - CAST( + - 84 AS SIGNED ) + - 44
----
-48

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL + + 29 + - - 51 - - CAST ( + - 84 AS INTEGER ) + - 44
----
-48

query I rowsort
SELECT + NULLIF ( + 96, 67 + - 33 ) AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3989
SELECT CASE 43 WHEN - 2 THEN + CAST( NULL AS SIGNED ) END * 85 + + 26 * + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3989
SELECT CASE 43 WHEN - 2 THEN + CAST ( NULL AS INTEGER ) END * 85 + + 26 * + 12 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT ALL COUNT( + 29 ) + - 52 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL COUNT ( + 29 ) + - 52 AS col1
----
-51

query I rowsort
SELECT ALL 20 + + + 4 AS col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3993
SELECT - 59 * 29 * - 44 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3993
SELECT - 59 * 29 * - 44 * + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 44, + 45 AS col2
----
44
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT 22 * - 70 * - - NULLIF ( - - ( COUNT( * ) ), + ( + ( - COUNT( * ) ) ) ) * COALESCE ( + COUNT( * ), - 73 ) - + COUNT( 77 ) * - 2 AS col0
----
-1538

skipif mysql # not compatible
query I rowsort label-3995
SELECT 22 * - 70 * - - NULLIF ( - - ( COUNT ( * ) ), + ( + ( - COUNT ( * ) ) ) ) * COALESCE ( + COUNT ( * ), - 73 ) - + COUNT ( 77 ) * - 2 AS col0
----
-1538

query I rowsort
SELECT ALL COALESCE ( + 87, + 14 ) * 54
----
4698

query I rowsort
SELECT ALL 18 - + 14
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT NULLIF ( + - 77, + COUNT( * ) ) * + 89 - 89 - + 36
----
-6978

skipif mysql # not compatible
query I rowsort label-3998
SELECT NULLIF ( + - 77, + COUNT ( * ) ) * + 89 - 89 - + 36
----
-6978

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT COALESCE ( + + COUNT( * ), + + 37 + + COUNT( * ) ) + + 40
----
41

skipif mysql # not compatible
query I rowsort label-3999
SELECT COALESCE ( + + COUNT ( * ), + + 37 + + COUNT ( * ) ) + + 40
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT + COUNT( * ) * 51 * + - 55 - - - 42 * - - 99
----
-6963

skipif mysql # not compatible
query I rowsort label-4000
SELECT + COUNT ( * ) * 51 * + - 55 - - - 42 * - - 99
----
-6963

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT COALESCE ( + 27, + 29 ) * + MIN( DISTINCT + 8 )
----
216

skipif mysql # not compatible
query I rowsort label-4001
SELECT COALESCE ( + 27, + 29 ) * + MIN ( DISTINCT + 8 )
----
216

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4003
SELECT ( + + 49 ) + + 53 * + 84 * + COALESCE ( 62, - 11 * 68, 7 ) DIV 2 + ( 43 )
----
138104

skipif mysql # not compatible
query I rowsort label-4003
SELECT ( + + 49 ) + + 53 * + 84 * + COALESCE ( 62, - 11 * 68, 7 ) / 2 + ( 43 )
----
138104

onlyif mysql # DIV for integer division: 
query I rowsort label-4004
SELECT ALL + 88 DIV + 28 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL + 88 / + 28 AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4005
SELECT CAST( + + 47 AS SIGNED ) * - ( - - 31 ) + 22 - + 97
----
-1532

skipif mysql # not compatible
query I rowsort label-4005
SELECT CAST ( + + 47 AS INTEGER ) * - ( - - 31 ) + 22 - + 97
----
-1532

onlyif mysql # DIV for integer division: 
query II rowsort label-4006
SELECT ALL + - 6 * + + 83 DIV + 75 col2, - 78
----
-6
-78

skipif mysql # not compatible
query II rowsort label-4006
SELECT ALL + - 6 * + + 83 / + 75 col2, - 78
----
-6
-78

query I rowsort
SELECT ALL 75 + 15 + 13 * - 84 AS col1
----
-1002

query I rowsort
SELECT + 58 * + 95 - + 35 - 0 + - + 28 * 80 * + 27
----
-55005

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT + MIN( + 14 ) col1
----
14

skipif mysql # not compatible
query I rowsort label-4009
SELECT + MIN ( + 14 ) col1
----
14

query II rowsort
SELECT DISTINCT - + 77 + - ( + - 77 ), + 75 col2
----
0
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4011
SELECT + 41 DIV + + 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4011
SELECT + 41 / + + 53 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT - CASE NULLIF ( - COUNT( * ), - 99 ) WHEN 98 * 36 THEN 32 WHEN - 40 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT - CASE NULLIF ( - COUNT ( * ), - 99 ) WHEN 98 * 36 THEN 32 WHEN - 40 THEN NULL ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT 64 + - 55 * 46 AS col1, + 31
----
-2466
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4014
SELECT DISTINCT + + 51 + + CAST( + - 14 AS SIGNED ) + - 97 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT + + 51 + + CAST ( + - 14 AS INTEGER ) + - 97 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT ALL - - 96 * + NULLIF ( 70, + COUNT( * ) + COUNT( * ) + 1 ) + - 82
----
6638

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL - - 96 * + NULLIF ( 70, + COUNT ( * ) + COUNT ( * ) + 1 ) + - 82
----
6638

onlyif mysql # aggregate syntax: 
query II rowsort label-4016
SELECT ALL - - 65 AS col0, COUNT( * ) - - 97
----
65
98

skipif mysql # not compatible
query II rowsort label-4016
SELECT ALL - - 65 AS col0, COUNT ( * ) - - 97
----
65
98

query I rowsort
SELECT NULLIF ( + 88, 35 + + ( + 16 ) / + 38 )
----
88

query I rowsort
SELECT ALL + 29 * - - 99 + - 25 - 45 col0
----
2801

query I rowsort
SELECT 98 * - + 59 * - 9 * 51
----
2653938

query II rowsort
SELECT + 36, + 11 AS col1
----
36
11

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL - COUNT( * ) * + 69 - - 43 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL - COUNT ( * ) * + 69 - - 43 AS col1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4024
SELECT DISTINCT + NULLIF ( + + 84, 28 * + COUNT( * ) ) * - - SUM( DISTINCT 69 ) - + 96 DIV 12 AS col1
----
5788

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT + NULLIF ( + + 84, 28 * + COUNT ( * ) ) * - - SUM ( DISTINCT 69 ) - + 96 / 12 AS col1
----
5788

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4026
SELECT 42 DIV - 37
----
-1

skipif mysql # not compatible
query I rowsort label-4026
SELECT 42 / - 37
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT + 64 + 57 + + COUNT( * ) AS col2
----
122

skipif mysql # not compatible
query I rowsort label-4027
SELECT + 64 + 57 + + COUNT ( * ) AS col2
----
122

query I rowsort
SELECT ALL + CASE + 90 WHEN + 15 / + - 36 THEN 6 WHEN 46 THEN + 56 WHEN + 40 * 45 + - 9 THEN 98 ELSE 45 - - 47 END AS col0
----
92

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

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

query I rowsort
SELECT - 52 * + - 97 AS col0
----
5044

onlyif mysql # DIV for integer division: 
query II rowsort label-4031
SELECT - 70 DIV - 56 AS col2, + 73 - 70 AS col0
----
1
3

skipif mysql # not compatible
query II rowsort label-4031
SELECT - 70 / - 56 AS col2, + 73 - 70 AS col0
----
1
3

query II rowsort
SELECT + 67, + 47 * CASE + - 89 WHEN 95 / + 96 THEN - 34 END AS col2
----
67
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4033
SELECT ALL + 13 AS col2, MAX( 25 )
----
13
25

skipif mysql # not compatible
query II rowsort label-4033
SELECT ALL + 13 AS col2, MAX ( 25 )
----
13
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4034
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), 88 )
----
88

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT + 40 + + + COUNT( ALL + + 18 )
----
41

skipif mysql # not compatible
query I rowsort label-4035
SELECT + 40 + + + COUNT ( ALL + + 18 )
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-4036
SELECT - + COUNT( * ) AS col1, - COUNT( * ) * + 39
----
-1
-39

skipif mysql # not compatible
query II rowsort label-4036
SELECT - + COUNT ( * ) AS col1, - COUNT ( * ) * + 39
----
-1
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT ALL + COALESCE ( - - 46, + 33 ) + + 64 + + + 77 + NULLIF ( + COUNT( * ), - 75 ) * + 59 * 82 AS col1
----
5025

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL + COALESCE ( - - 46, + 33 ) + + 64 + + + 77 + NULLIF ( + COUNT ( * ), - 75 ) * + 59 * 82 AS col1
----
5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4038
SELECT + + 82 - - - COUNT( * ) DIV - NULLIF ( - - 79, - COALESCE ( - 37, CAST( NULL AS SIGNED ) ) * + 30 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-4038
SELECT + + 82 - - - COUNT ( * ) / - NULLIF ( - - 79, - COALESCE ( - 37, CAST ( NULL AS INTEGER ) ) * + 30 ) AS col1
----
82

query II rowsort
SELECT ALL - ( - 62 ) AS col2, - 35 col1
----
62
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4040
SELECT - + CAST( NULL AS DECIMAL ) AS col0, - 26
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-4040
SELECT - + CAST ( NULL AS REAL ) AS col0, - 26
----
NULL
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-4041
SELECT COUNT( * ) AS col2, + 27 - + MAX( + 81 ) + - 6 col0
----
1
-60

skipif mysql # not compatible
query II rowsort label-4041
SELECT COUNT ( * ) AS col2, + 27 - + MAX ( + 81 ) + - 6 col0
----
1
-60

query I rowsort
SELECT - - 27 * - - 32 - + - 84 + 26 + - 63 AS col0
----
911

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT DISTINCT + 93 + - CASE 54 WHEN - 36 * SUM( - 68 ) + + 97 - - NULLIF ( 58, - 86 * 86 ) THEN NULL ELSE - 58 END * + 80
----
4733

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT + 93 + - CASE 54 WHEN - 36 * SUM ( - 68 ) + + 97 - - NULLIF ( 58, - 86 * 86 ) THEN NULL ELSE - 58 END * + 80
----
4733

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT + 92 + MAX( - + 93 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4044
SELECT + 92 + MAX ( - + 93 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + 13 + 77 + 66
----
156

query I rowsort
SELECT + + 49 + 16
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4047
SELECT ALL + COUNT( * ) DIV + - COALESCE ( - ( 7 ), + MIN( ALL - 1 ), + 64 * + 13 )
----
0

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL + COUNT ( * ) / + - COALESCE ( - ( 7 ), + MIN ( ALL - 1 ), + 64 * + 13 )
----
0

query II rowsort
SELECT ALL + 98, - 60 + - + 51 AS col0
----
98
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT DISTINCT 93 - ( + COUNT( * ) )
----
92

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT 93 - ( + COUNT ( * ) )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT - 41 + CASE COUNT( * ) WHEN + + 51 THEN - 83 END + + 8 * + COALESCE ( - 53 * + 41, 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT - 41 + CASE COUNT ( * ) WHEN + + 51 THEN - 83 END + + 8 * + COALESCE ( - 53 * + 41, 3 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4051
SELECT ALL - 78 - + + 50 + 4 * - + 45 + + COALESCE ( 24, + 29 ) - CASE + MAX( ALL + 95 ) - - 12 * - 79 WHEN + 53 THEN NULLIF ( 86, - COUNT( * ) + + CAST( NULL AS SIGNED ) ) / - 17 + + 79 END * + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL - 78 - + + 50 + 4 * - + 45 + + COALESCE ( 24, + 29 ) - CASE + MAX ( ALL + 95 ) - - 12 * - 79 WHEN + 53 THEN NULLIF ( 86, - COUNT ( * ) + + CAST ( NULL AS INTEGER ) ) / - 17 + + 79 END * + 9 AS col1
----
NULL

query I rowsort
SELECT ALL + 19 * 12
----
228

query II rowsort
SELECT DISTINCT + 93, 79 * - 91 AS col0
----
93
-7189

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4054
SELECT + COUNT( ALL 89 ) * 44 DIV + - 62 AS col2, + NULLIF ( - - 25, 40 ) - CASE 11 WHEN - ( + 76 ) THEN 17 WHEN - 83 + - 16 THEN NULL ELSE NULL END AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4054
SELECT + COUNT ( ALL 89 ) * 44 / + - 62 AS col2, + NULLIF ( - - 25, 40 ) - CASE 11 WHEN - ( + 76 ) THEN 17 WHEN - 83 + - 16 THEN NULL ELSE NULL END AS col1
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4055
SELECT + 19 * - CAST( 40 AS SIGNED ) * + SUM( DISTINCT - 38 ) AS col1
----
28880

skipif mysql # not compatible
query I rowsort label-4055
SELECT + 19 * - CAST ( 40 AS INTEGER ) * + SUM ( DISTINCT - 38 ) AS col1
----
28880

query I rowsort
SELECT 31 * 47 + - 98 AS col1
----
1359

query I rowsort
SELECT ALL COALESCE ( NULLIF ( - + 63, - 73 * - + 40 + ( - - 88 ) ), - 81, 6 * - 30 + 52 * + ( 1 + 16 ) ) * 73 AS col1
----
-4599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4058
SELECT ( + CAST( - + 70 AS SIGNED ) ) col2
----
-70

skipif mysql # not compatible
query I rowsort label-4058
SELECT ( + CAST ( - + 70 AS INTEGER ) ) col2
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4059
SELECT ALL + CAST( - 92 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL + CAST ( - 92 AS INTEGER )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT DISTINCT + CASE + 8 WHEN 52 * - 40 * + COUNT( * ) * - - 72 * - COUNT( 13 ) / ( 81 ) THEN + COUNT( * ) + ( + 18 ) * + 17 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT + CASE + 8 WHEN 52 * - 40 * + COUNT ( * ) * - - 72 * - COUNT ( 13 ) / ( 81 ) THEN + COUNT ( * ) + ( + 18 ) * + 17 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT ( + COALESCE ( + COUNT( * ), + - 7 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4061
SELECT ( + COALESCE ( + COUNT ( * ), + - 7 ) )
----
1

query I rowsort
SELECT ALL + ( - + 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT ALL + CASE - 49 WHEN COUNT( - 30 ) THEN + + CASE COUNT( * ) WHEN - 22 THEN NULL WHEN - 33 THEN ( - 19 ) + - 87 * - MAX( - 37 ) ELSE NULL END WHEN 36 * - 98 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL + CASE - 49 WHEN COUNT ( - 30 ) THEN + + CASE COUNT ( * ) WHEN - 22 THEN NULL WHEN - 33 THEN ( - 19 ) + - 87 * - MAX ( - 37 ) ELSE NULL END WHEN 36 * - 98 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT - 29 * + COUNT( * ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4064
SELECT - 29 * + COUNT ( * ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4065
SELECT - 35 * + 31 * + + COUNT( * ), - 3 * + - 30 AS col2
----
-1085
90

skipif mysql # not compatible
query II rowsort label-4065
SELECT - 35 * + 31 * + + COUNT ( * ), - 3 * + - 30 AS col2
----
-1085
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4066
SELECT + 52 DIV 93 DIV NULLIF ( - - NULLIF ( - 92, ( - + 49 ) ), 72 ) DIV - 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4066
SELECT + 52 / 93 / NULLIF ( - - NULLIF ( - 92, ( - + 49 ) ), 72 ) / - 50 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4067
SELECT DISTINCT CASE - COUNT( * ) WHEN - - 97 * - 52 THEN + 11 WHEN ( + NULLIF ( ( COUNT( * ) ), + 89 - 4 ) ) THEN NULL ELSE + MAX( DISTINCT + 53 ) END * CAST( - CAST( NULL AS SIGNED ) + + 53 AS SIGNED ) + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT CASE - COUNT ( * ) WHEN - - 97 * - 52 THEN + 11 WHEN ( + NULLIF ( ( COUNT ( * ) ), + 89 - 4 ) ) THEN NULL ELSE + MAX ( DISTINCT + 53 ) END * CAST ( - CAST ( NULL AS INTEGER ) + + 53 AS INTEGER ) + - 91
----
NULL

query I rowsort
SELECT ALL 27 * - + 88 + + 36 AS col1
----
-2340

query I rowsort
SELECT + 39 * + 85 - - 57 + + + 30
----
3402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4070
SELECT ALL + MAX( DISTINCT ( - CAST( - + 80 AS SIGNED ) ) ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL + MAX ( DISTINCT ( - CAST ( - + 80 AS INTEGER ) ) ) AS col0
----
80

query I rowsort
SELECT DISTINCT + 10 * - 0 * - 18 + - 22 AS col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4072
SELECT DISTINCT 2 * + CAST( + 84 AS SIGNED ) + - - 80 * + 24 * + - 30 AS col1
----
-57432

skipif mysql # not compatible
query I rowsort label-4072
SELECT DISTINCT 2 * + CAST ( + 84 AS INTEGER ) + - - 80 * + 24 * + - 30 AS col1
----
-57432

onlyif mysql # aggregate syntax: 
query II rowsort label-4073
SELECT DISTINCT 95 * - - 10 * COUNT( * ) + + ( + 17 ) AS col2, COUNT( * ) - - - 71 * COUNT( * ) col1
----
967
-70

skipif mysql # not compatible
query II rowsort label-4073
SELECT DISTINCT 95 * - - 10 * COUNT ( * ) + + ( + 17 ) AS col2, COUNT ( * ) - - - 71 * COUNT ( * ) col1
----
967
-70

query I rowsort
SELECT ALL 64 * - 90 + - 25 col2
----
-5785

query I rowsort
SELECT COALESCE ( 91, + 57 )
----
91

query I rowsort
SELECT + + NULLIF ( - - 85, + - 92 ) * - 75 AS col0
----
-6375

query I rowsort
SELECT + 96 + 4 + + 65 + + - 45
----
120

query I rowsort
SELECT ALL + 44 * - 42 * 52 + - 61
----
-96157

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT - MIN( + 33 ) * + - 71 - - COALESCE ( 36, - ( + 42 ), 5 + 92 * - 93 ) AS col2
----
2379

skipif mysql # not compatible
query I rowsort label-4079
SELECT - MIN ( + 33 ) * + - 71 - - COALESCE ( 36, - ( + 42 ), 5 + 92 * - 93 ) AS col2
----
2379

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4080
SELECT - - NULLIF ( 94, - + 21 + COUNT( * ) ) DIV 68 * 17 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4080
SELECT - - NULLIF ( 94, - + 21 + COUNT ( * ) ) / 68 * 17 AS col2
----
17

query I rowsort
SELECT DISTINCT - 23 + + 88
----
65

query II rowsort
SELECT DISTINCT - CASE - 19 WHEN - 0 THEN + + 68 + 94 END, - ( ( - 79 ) ) AS col0
----
NULL
79

query I rowsort
SELECT - COALESCE ( - 74, 84 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT DISTINCT COUNT( + 84 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT COUNT ( + 84 ) AS col0
----
1

query I rowsort
SELECT + 12 * - 15
----
-180

query I rowsort
SELECT + - 27 - 76 + - 97 col0
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT + + ( + COUNT( * ) ) - 36 * + - 92 AS col0
----
3313

skipif mysql # not compatible
query I rowsort label-4087
SELECT + + ( + COUNT ( * ) ) - 36 * + - 92 AS col0
----
3313

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT ALL CASE COUNT( * ) WHEN + 45 / - ( COUNT( * ) ) * 52 + + ( + - 86 ) - + 14 * + 97 THEN NULL WHEN COUNT( * ) THEN NULL WHEN - 76 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL CASE COUNT ( * ) WHEN + 45 / - ( COUNT ( * ) ) * 52 + + ( + - 86 ) - + 14 * + 97 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN - 76 THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4089
SELECT COUNT( * ) DIV - 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4089
SELECT COUNT ( * ) / - 16 AS col2
----
0

query I rowsort
SELECT 64 * - 93 + + COALESCE ( - 59, + + 81 )
----
-6011

query I rowsort
SELECT 52 - + ( 27 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT ALL - MIN( + 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL - MIN ( + 54 )
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4093
SELECT NULLIF ( + COALESCE ( 25, + - 15 + - + 26 * + 57 ), + ( + COUNT( * ) ) ) DIV ( + 10 )
----
2

skipif mysql # not compatible
query I rowsort label-4093
SELECT NULLIF ( + COALESCE ( 25, + - 15 + - + 26 * + 57 ), + ( + COUNT ( * ) ) ) / ( + 10 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4094
SELECT - 61 DIV - - 39 + - - 59 AS col1, SUM( ALL + 97 )
----
58
97

skipif mysql # not compatible
query II rowsort label-4094
SELECT - 61 / - - 39 + - - 59 AS col1, SUM ( ALL + 97 )
----
58
97

query II rowsort
SELECT + 56 AS col2, 79 + + 24
----
56
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT 80 * + COUNT( DISTINCT - + 38 )
----
80

skipif mysql # not compatible
query I rowsort label-4096
SELECT 80 * + COUNT ( DISTINCT - + 38 )
----
80

query I rowsort
SELECT 51 + - 39 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT ALL 29 * + SUM( DISTINCT 97 ) col2
----
2813

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL 29 * + SUM ( DISTINCT 97 ) col2
----
2813

onlyif mysql # DIV for integer division: 
query II rowsort label-4099
SELECT ALL - 22, + 22 + - 76 DIV 47 + + 42 * - 71 AS col0
----
-22
-2961

skipif mysql # not compatible
query II rowsort label-4099
SELECT ALL - 22, + 22 + - 76 / 47 + + 42 * - 71 AS col0
----
-22
-2961

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT DISTINCT 22 + - COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT 22 + - COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT ALL 81 + + + COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL 81 + + + COUNT ( * ) AS col2
----
82

query II rowsort
SELECT + 21 AS col0, + 5 AS col0
----
21
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4103
SELECT DISTINCT - 56 + + + 37 * + MIN( 2 ) * CAST( NULL AS SIGNED ) - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4103
SELECT DISTINCT - 56 + + + 37 * + MIN ( 2 ) * CAST ( NULL AS INTEGER ) - 47
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4104
SELECT DISTINCT - 84 + - + 95 + + - COUNT( * ) DIV + + 76 * SUM( ALL 55 )
----
-179

skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT - 84 + - + 95 + + - COUNT ( * ) / + + 76 * SUM ( ALL 55 )
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL - COALESCE ( COUNT( * ), + ( - + 59 ), 57 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL - COALESCE ( COUNT ( * ), + ( - + 59 ), 57 ) AS col2
----
-1

query I rowsort
SELECT 60 * 75
----
4500

query I rowsort
SELECT ( - - 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT DISTINCT - COUNT( * ) * + 56 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT - COUNT ( * ) * + 56 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT ALL + CASE + 6 WHEN + 28 THEN NULL ELSE + 85 END - + MIN( + 50 )
----
35

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL + CASE + 6 WHEN + 28 THEN NULL ELSE + 85 END - + MIN ( + 50 )
----
35

query I rowsort
SELECT ALL - - 20 - - 80
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT ( COUNT( * ) ) * - 83
----
-83

skipif mysql # not compatible
query I rowsort label-4111
SELECT ( COUNT ( * ) ) * - 83
----
-83

query I rowsort
SELECT ALL - 93 * 89 AS col2
----
-8277

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT ALL - COUNT( DISTINCT 16 ) * + + 97 * + 16 * - 79
----
122608

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL - COUNT ( DISTINCT 16 ) * + + 97 * + 16 * - 79
----
122608

onlyif mysql # DIV for integer division: 
query I rowsort label-4114
SELECT - 60 + + 13 DIV - 72 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-4114
SELECT - 60 + + 13 / - 72 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-4115
SELECT DISTINCT - 77 * + ( + + 17 ) + - - 5 AS col2, + COUNT( * ) * - COUNT( * ) AS col2
----
-1304
-1

skipif mysql # not compatible
query II rowsort label-4115
SELECT DISTINCT - 77 * + ( + + 17 ) + - - 5 AS col2, + COUNT ( * ) * - COUNT ( * ) AS col2
----
-1304
-1

query I rowsort
SELECT ALL + ( - + 92 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT DISTINCT - NULLIF ( - COUNT( DISTINCT 44 ), 8 )
----
1

skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT - NULLIF ( - COUNT ( DISTINCT 44 ), 8 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4118
SELECT ALL + NULLIF ( - - 39, 6 * CAST( - 93 AS SIGNED ) ) - - NULLIF ( 88, 66 )
----
127

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL + NULLIF ( - - 39, 6 * CAST ( - 93 AS INTEGER ) ) - - NULLIF ( 88, 66 )
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT DISTINCT NULLIF ( + 33, 56 * + + MAX( DISTINCT - - 86 ) + NULLIF ( + COUNT( * ), - 75 * + 56 ) ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4119
SELECT DISTINCT NULLIF ( + 33, 56 * + + MAX ( DISTINCT - - 86 ) + NULLIF ( + COUNT ( * ), - 75 * + 56 ) ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT + - 88 * - 98 + + COUNT( * ) col1
----
8625

skipif mysql # not compatible
query I rowsort label-4120
SELECT + - 88 * - 98 + + COUNT ( * ) col1
----
8625

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT ALL + SUM( ALL ( 26 ) )
----
26

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL + SUM ( ALL ( 26 ) )
----
26

query I rowsort
SELECT + 10 + - + 28 + - + 31 * - ( - 19 ) AS col1
----
-607

onlyif mysql # aggregate syntax: 
query II rowsort label-4123
SELECT + SUM( + - 2 ) * + COUNT( * ) AS col0, COUNT( * ) * - + 95 * + + COUNT( - - 41 ) * + + COUNT( * ) AS col0
----
-2
-95

skipif mysql # not compatible
query II rowsort label-4123
SELECT + SUM ( + - 2 ) * + COUNT ( * ) AS col0, COUNT ( * ) * - + 95 * + + COUNT ( - - 41 ) * + + COUNT ( * ) AS col0
----
-2
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT COUNT( * ) + 11 col2
----
12

skipif mysql # not compatible
query I rowsort label-4124
SELECT COUNT ( * ) + 11 col2
----
12

query I rowsort
SELECT 5 * + + 75
----
375

onlyif mysql # DIV for integer division: 
query I rowsort label-4126
SELECT ALL + + 36 DIV - 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL + + 36 / - 54 AS col0
----
0

query I rowsort
SELECT 81 + 12 AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4128
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4129
SELECT ALL - ( + 13 ) + - + 99 - - 32 - - - 81 + + 5 + - 80 DIV SUM( ALL 16 ) DIV - COALESCE ( NULLIF ( 79, 54 + - 86 * ( 49 ) ) * 42, 86, - NULLIF ( 64, + 42 + + ( - COUNT( * ) ) ) * + 17 ) AS col0
----
-156

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL - ( + 13 ) + - + 99 - - 32 - - - 81 + + 5 + - 80 / SUM ( ALL 16 ) / - COALESCE ( NULLIF ( 79, 54 + - 86 * ( 49 ) ) * 42, 86, - NULLIF ( 64, + 42 + + ( - COUNT ( * ) ) ) * + 17 ) AS col0
----
-156

query I rowsort
SELECT DISTINCT - 23 * + + 80
----
-1840

query I rowsort
SELECT ( 32 ) + 73
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-4132
SELECT ALL COUNT( * ) * - 21, 43 AS col0
----
-21
43

skipif mysql # not compatible
query II rowsort label-4132
SELECT ALL COUNT ( * ) * - 21, 43 AS col0
----
-21
43

query II rowsort
SELECT 26 * + - 89 AS col2, - 39 AS col0
----
-2314
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT MIN( - 3 ) + - COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4134
SELECT MIN ( - 3 ) + - COUNT ( * ) AS col0
----
-4

query I rowsort
SELECT DISTINCT 82 + + 86 AS col0
----
168

query II rowsort
SELECT ALL 41 + 14, + 62 + 90 * - ( - 95 ) AS col0
----
55
8612

onlyif mysql # aggregate syntax: 
query II rowsort label-4137
SELECT COUNT( + 20 ), 98 * + + 97 AS col0
----
1
9506

skipif mysql # not compatible
query II rowsort label-4137
SELECT COUNT ( + 20 ), 98 * + + 97 AS col0
----
1
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT MAX( + 22 ) * - ( 11 )
----
-242

skipif mysql # not compatible
query I rowsort label-4138
SELECT MAX ( + 22 ) * - ( 11 )
----
-242

query I rowsort
SELECT ALL 93 + 84
----
177

query I rowsort
SELECT ALL 81 + + 96 AS col0
----
177

query I rowsort
SELECT DISTINCT 40 + - 47 AS col0
----
-7

query I rowsort
SELECT ALL 34 * ( 6 )
----
204

query I rowsort
SELECT DISTINCT 92 + 95 AS col2
----
187

query I rowsort
SELECT ALL + 8 - + 2 + + 72
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT + 72 * 50 - + 5 + + COUNT( * )
----
3596

skipif mysql # not compatible
query I rowsort label-4145
SELECT + 72 * 50 - + 5 + + COUNT ( * )
----
3596

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT DISTINCT + 64 * + COUNT( - + 78 )
----
64

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT + 64 * + COUNT ( - + 78 )
----
64

query I rowsort
SELECT 71 - - 31 AS col0
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4148
SELECT DISTINCT - + COUNT( + CAST( 18 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT - + COUNT ( + CAST ( 18 AS INTEGER ) )
----
-1

query I rowsort
SELECT DISTINCT - + ( 40 ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT + COALESCE ( + 17, + 23 ) * 5 + + - CASE WHEN NOT NULL > NULL THEN + CASE WHEN NOT + 3 IS NULL THEN NULL ELSE ( NULLIF ( NULLIF ( COUNT( * ), - MIN( ALL 2 ) ), - COALESCE ( + MAX( ALL 12 ), 23 * 61, - COUNT( * ) ) ) ) END WHEN NULL < ( COUNT( * ) ) THEN NULL ELSE 17 * 10 END col2
----
-85

skipif mysql # not compatible
query I rowsort label-4150
SELECT + COALESCE ( + 17, + 23 ) * 5 + + - CASE WHEN NOT NULL > NULL THEN + CASE WHEN NOT + 3 IS NULL THEN NULL ELSE ( NULLIF ( NULLIF ( COUNT ( * ), - MIN ( ALL 2 ) ), - COALESCE ( + MAX ( ALL 12 ), 23 * 61, - COUNT ( * ) ) ) ) END WHEN NULL < ( COUNT ( * ) ) THEN NULL ELSE 17 * 10 END col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT CASE - - 0 WHEN - ( - COUNT( * ) ) THEN + + 35 * 0 + COUNT( * ) * 7 * COALESCE ( 89, - 74, + 60 + - 23, + 4 ) + + 15 WHEN - 17 THEN 84 * - 42 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT CASE - - 0 WHEN - ( - COUNT ( * ) ) THEN + + 35 * 0 + COUNT ( * ) * 7 * COALESCE ( 89, - 74, + 60 + - 23, + 4 ) + + 15 WHEN - 17 THEN 84 * - 42 END AS col2
----
NULL

query I rowsort
SELECT ( + 9 ) * - - 74
----
666

query I rowsort
SELECT DISTINCT + ( + 44 ) AS col2
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4154
SELECT 19 + - + 78 * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + 16 AS col0, 86 * + 58 AS col2
----
NULL
4988

skipif mysql # not compatible
query II rowsort label-4154
SELECT 19 + - + 78 * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + 16 AS col0, 86 * + 58 AS col2
----
NULL
4988

query I rowsort
SELECT DISTINCT + 82 + + 8 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT ALL + - COUNT( * ) * + 73 - - 82
----
9

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL + - COUNT ( * ) * + 73 - - 82
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4157
SELECT ALL + 49 + 6 + + + SUM( DISTINCT - 61 ) AS col2, - 51 - 52
----
-6
-103

skipif mysql # not compatible
query II rowsort label-4157
SELECT ALL + 49 + 6 + + + SUM ( DISTINCT - 61 ) AS col2, - 51 - 52
----
-6
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4158
SELECT DISTINCT + COALESCE ( + 23, CAST( 99 AS SIGNED ) DIV MIN( DISTINCT 96 ) + + - 53 * + 49 * 22 + - 68 - 30 * - 96 ) * 39 AS col2
----
897

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT + COALESCE ( + 23, CAST ( 99 AS INTEGER ) / MIN ( DISTINCT 96 ) + + - 53 * + 49 * 22 + - 68 - 30 * - 96 ) * 39 AS col2
----
897

query I rowsort
SELECT ALL - ( + COALESCE ( 32, 24 ) ) + - 62 AS col0
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4160
SELECT - 82 AS col1, + CAST( - + ( - + MAX( DISTINCT 58 ) ) AS SIGNED )
----
-82
58

skipif mysql # not compatible
query II rowsort label-4160
SELECT - 82 AS col1, + CAST ( - + ( - + MAX ( DISTINCT 58 ) ) AS INTEGER )
----
-82
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4161
SELECT - 54 + + 45 + + - 4 + - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + - + ( + 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4161
SELECT - 54 + + 45 + + - 4 + - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + - + ( + 58 )
----
NULL

query I rowsort
SELECT ALL - 1 + 40
----
39

query I rowsort
SELECT - 47 - + 41 col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT DISTINCT NULLIF ( MAX( - ( + 38 ) ), + ( - 10 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-4164
SELECT DISTINCT NULLIF ( MAX ( - ( + 38 ) ), + ( - 10 ) )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT DISTINCT - ( + 38 ) + - 27 + 75 + + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT - ( + 38 ) + - 27 + 75 + + COUNT ( * )
----
11

query II rowsort
SELECT ALL 50, - 45 AS col1
----
50
-45

query I rowsort
SELECT DISTINCT 53 + 70 AS col1
----
123

query I rowsort
SELECT DISTINCT NULLIF ( + ( + ( 18 ) ), 45 ) AS col1
----
18

query I rowsort
SELECT DISTINCT 29 * + - 55
----
-1595

query I rowsort
SELECT ALL + 74 * - 5 AS col0
----
-370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4171
SELECT + 65 * + 52 + 47 + + 90 * CAST( 10 AS SIGNED ) AS col0
----
4327

skipif mysql # not compatible
query I rowsort label-4171
SELECT + 65 * + 52 + 47 + + 90 * CAST ( 10 AS INTEGER ) AS col0
----
4327

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4172
SELECT ALL 96 * + + 82 - - 15 + CAST( NULL AS SIGNED ) - - + 88 + + - 82 * MIN( ALL + COALESCE ( - 56, + 31 + 13 ) ) * + 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL 96 * + + 82 - - 15 + CAST ( NULL AS INTEGER ) - - + 88 + + - 82 * MIN ( ALL + COALESCE ( - 56, + 31 + 13 ) ) * + 1 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4173
SELECT COALESCE ( - 35, + + 48 * - + 26 + - 14 * CAST( NULL AS SIGNED ) - COALESCE ( - - NULLIF ( - - 95, + MIN( - 84 ) * + 95 + + 8 * + 41 ), 50 + COUNT( * ) ) )
----
-35

skipif mysql # not compatible
query I rowsort label-4173
SELECT COALESCE ( - 35, + + 48 * - + 26 + - 14 * CAST ( NULL AS INTEGER ) - COALESCE ( - - NULLIF ( - - 95, + MIN ( - 84 ) * + 95 + + 8 * + 41 ), 50 + COUNT ( * ) ) )
----
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4174
SELECT - 89 * CAST( NULL AS DECIMAL ) + - ( + + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4174
SELECT - 89 * CAST ( NULL AS REAL ) + - ( + + 17 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT ALL 2 * CASE + CASE + 71 WHEN 81 THEN + - COUNT( * ) * COUNT( * ) ELSE NULL END WHEN + COUNT( * ) THEN - 53 END - - + 65 * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL 2 * CASE + CASE + 71 WHEN 81 THEN + - COUNT ( * ) * COUNT ( * ) ELSE NULL END WHEN + COUNT ( * ) THEN - 53 END - - + 65 * 32
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4176
SELECT + 14 DIV - - COALESCE ( + 47, COUNT( * ), - COUNT( * ) * - 23 + - COALESCE ( - + NULLIF ( - COUNT( + + 32 ), 75 DIV 31 ), - MIN( ALL 22 ), COUNT( * ) ) ) + - 45 * 68 AS col0
----
-3060

skipif mysql # not compatible
query I rowsort label-4176
SELECT + 14 / - - COALESCE ( + 47, COUNT ( * ), - COUNT ( * ) * - 23 + - COALESCE ( - + NULLIF ( - COUNT ( + + 32 ), 75 / 31 ), - MIN ( ALL 22 ), COUNT ( * ) ) ) + - 45 * 68 AS col0
----
-3060

query I rowsort
SELECT DISTINCT + 57 * - - 61 AS col2
----
3477

onlyif mysql # DIV for integer division: 
query I rowsort label-4178
SELECT + 44 * + 28 * - 82 + + + 38 DIV + 87 + + 64 AS col2
----
-100960

skipif mysql # not compatible
query I rowsort label-4178
SELECT + 44 * + 28 * - 82 + + + 38 / + 87 + + 64 AS col2
----
-100960

query I rowsort
SELECT + CASE + 68 WHEN - ( - 53 ) * - ( + - 20 ) + 77 THEN - + 38 + 94 * - 1 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4180
SELECT + + NULLIF ( + CASE - 14 WHEN - SUM( + 90 ) - 73 THEN - 55 * + 30 * + 72 + - 76 * + 98 + + AVG ( DISTINCT + 99 + - ( - ( + 20 ) + - 88 * - ( + 24 * CAST( NULL AS SIGNED ) ) ) ) WHEN + 21 + 79 THEN NULL ELSE NULL END, - 8 * 36 ) + CAST( + AVG ( ALL + 33 ) + 86 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4180
SELECT + + NULLIF ( + CASE - 14 WHEN - SUM ( + 90 ) - 73 THEN - 55 * + 30 * + 72 + - 76 * + 98 + + AVG ( DISTINCT + 99 + - ( - ( + 20 ) + - 88 * - ( + 24 * CAST ( NULL AS INTEGER ) ) ) ) WHEN + 21 + 79 THEN NULL ELSE NULL END, - 8 * 36 ) + CAST ( + AVG ( ALL + 33 ) + 86 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 9 + - ( - 96 ) - + - 17 AS col0
----
122

query I rowsort
SELECT ALL 66 * + - 60 AS col2
----
-3960

query I rowsort
SELECT DISTINCT - 3 * + 54
----
-162

query I rowsort
SELECT DISTINCT + 34 * 97 * ( + + 75 ) col1
----
247350

query I rowsort
SELECT + + 64 + - + ( + 78 ) AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4186
SELECT DISTINCT - + 61 * 78 + + - 15 + 83 + 61 * 97 - 52 + - - 36 + + - ( - + 51 ) - COUNT( * ) * COALESCE ( 86 * + 14 + - COALESCE ( 85, 42 ), - 23 ) * + CAST( NULL AS SIGNED ) * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT - + 61 * 78 + + - 15 + 83 + 61 * 97 - 52 + - - 36 + + - ( - + 51 ) - COUNT ( * ) * COALESCE ( 86 * + 14 + - COALESCE ( 85, 42 ), - 23 ) * + CAST ( NULL AS INTEGER ) * 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT DISTINCT COUNT( * ) * - COALESCE ( - 99, 79 )
----
99

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT COUNT ( * ) * - COALESCE ( - 99, 79 )
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4188
SELECT ALL - + 35 + - + 44 - + 43 * + 47 * + + CASE + - 83 WHEN - 11 + - 23 * 27 + 58 + + 80 THEN NULL WHEN + 53 THEN - 8 ELSE + COUNT( * ) + + 98 DIV 84 END col0
----
-4121

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL - + 35 + - + 44 - + 43 * + 47 * + + CASE + - 83 WHEN - 11 + - 23 * 27 + 58 + + 80 THEN NULL WHEN + 53 THEN - 8 ELSE + COUNT ( * ) + + 98 / 84 END col0
----
-4121

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ALL - COUNT( * ) + + - 11
----
-12

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL - COUNT ( * ) + + - 11
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4190
SELECT + - 4 * SUM( + 20 ) col2, + CASE + ( - COUNT( * ) ) WHEN ( 54 ) * - + 61 * 26 THEN 8 WHEN + 47 THEN NULL ELSE 73 DIV MAX( DISTINCT + 42 ) END
----
-80
1

skipif mysql # not compatible
query II rowsort label-4190
SELECT + - 4 * SUM ( + 20 ) col2, + CASE + ( - COUNT ( * ) ) WHEN ( 54 ) * - + 61 * 26 THEN 8 WHEN + 47 THEN NULL ELSE 73 / MAX ( DISTINCT + 42 ) END
----
-80
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT - ( + - COUNT( + + 68 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4191
SELECT - ( + - COUNT ( + + 68 ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4192
SELECT - CAST( + - 62 AS SIGNED ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-4192
SELECT - CAST ( + - 62 AS INTEGER ) AS col1
----
62

query I rowsort
SELECT - ( 8 ) + - 19 * ( + 0 ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT + COUNT( * ) + - 44
----
-43

skipif mysql # not compatible
query I rowsort label-4194
SELECT + COUNT ( * ) + - 44
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4195
SELECT DISTINCT + 60 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT + 60 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4196
SELECT ALL ( - CAST( - 23 AS SIGNED ) )
----
23

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL ( - CAST ( - 23 AS INTEGER ) )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4197
SELECT - 24 + + CAST( NULL AS SIGNED ) + - 49 * MAX( DISTINCT + 1 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT - 24 + + CAST ( NULL AS INTEGER ) + - 49 * MAX ( DISTINCT + 1 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT ALL COUNT( * ) + 40 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL COUNT ( * ) + 40 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT ALL + 42 * - MIN( + 94 ) AS col1
----
-3948

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL + 42 * - MIN ( + 94 ) AS col1
----
-3948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4200
SELECT ALL + 33 + + - 43 * - + CAST( + SUM( ALL + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL + 33 + + - 43 * - + CAST ( + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 60 * - 23 * - 26 AS col0
----
35880

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT ALL - 42 * + - COUNT( - 21 )
----
42

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - 42 * + - COUNT ( - 21 )
----
42

query II rowsort
SELECT 7 AS col1, 44 + 90
----
7
134

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT - ( - 8 ) + - COUNT( * ) + + 92 + 25
----
124

skipif mysql # not compatible
query I rowsort label-4204
SELECT - ( - 8 ) + - COUNT ( * ) + + 92 + 25
----
124

query I rowsort
SELECT ALL + 70 - - 46
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT - 16 * - 60 * - + MIN( DISTINCT - - 47 )
----
-45120

skipif mysql # not compatible
query I rowsort label-4206
SELECT - 16 * - 60 * - + MIN ( DISTINCT - - 47 )
----
-45120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4207
SELECT DISTINCT - 98 DIV - COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT - 98 / - COUNT ( * ) AS col0
----
98

query I rowsort
SELECT ALL + ( - 95 ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-4209
SELECT + 72 AS col1, - CASE + COUNT( ALL + + ( - 53 ) ) WHEN + + AVG ( DISTINCT 28 ) THEN + 55 END AS col0
----
72
NULL

skipif mysql # not compatible
query II rowsort label-4209
SELECT + 72 AS col1, - CASE + COUNT ( ALL + + ( - 53 ) ) WHEN + + AVG ( DISTINCT 28 ) THEN + 55 END AS col0
----
72
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4210
SELECT ALL 80 * - CAST( + + 92 AS SIGNED )
----
-7360

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL 80 * - CAST ( + + 92 AS INTEGER )
----
-7360

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT DISTINCT NULLIF ( - + CASE + 58 WHEN 61 THEN NULL WHEN - 5 THEN + 37 + + 19 END, + COUNT( * ) ) * + 41 * + AVG ( ALL - 16 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT NULLIF ( - + CASE + 58 WHEN 61 THEN NULL WHEN - 5 THEN + 37 + + 19 END, + COUNT ( * ) ) * + 41 * + AVG ( ALL - 16 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4212
SELECT ALL - COALESCE ( + + 65, 46 + + CAST( NULL AS SIGNED ) * - 56 * + 83, + 69 ) * + COALESCE ( - SUM( 28 ), + 82 ) AS col1
----
1820

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL - COALESCE ( + + 65, 46 + + CAST ( NULL AS INTEGER ) * - 56 * + 83, + 69 ) * + COALESCE ( - SUM ( 28 ), + 82 ) AS col1
----
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT ALL + COUNT( * ) * MAX( ALL + ( 36 ) ) + - 1 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL + COUNT ( * ) * MAX ( ALL + ( 36 ) ) + - 1 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT + + COUNT( * ) * - + ( - - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-4214
SELECT + + COUNT ( * ) * - + ( - - 79 )
----
-79

query II rowsort
SELECT ALL + + 14 AS col2, - 84 col0
----
14
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4216
SELECT - - CAST( - 50 AS SIGNED ) + + 98
----
48

skipif mysql # not compatible
query I rowsort label-4216
SELECT - - CAST ( - 50 AS INTEGER ) + + 98
----
48

query I rowsort
SELECT ALL 37 * - 67 AS col1
----
-2479

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4218
SELECT + 76 * + - 71 * - CAST( NULL AS SIGNED ) * - 40 AS col1, 81
----
NULL
81

skipif mysql # not compatible
query II rowsort label-4218
SELECT + 76 * + - 71 * - CAST ( NULL AS INTEGER ) * - 40 AS col1, 81
----
NULL
81

query I rowsort
SELECT + 47 - - 58
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4220
SELECT ALL - CAST( - 34 AS SIGNED ) col1
----
34

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL - CAST ( - 34 AS INTEGER ) col1
----
34

query I rowsort
SELECT ALL 26 + + 98 AS col1
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-4222
SELECT 67 DIV 6 DIV + ( - - 2 ) col2
----
5

skipif mysql # not compatible
query I rowsort label-4222
SELECT 67 / 6 / + ( - - 2 ) col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4223
SELECT + CAST( NULL AS SIGNED ) + + 52 + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT + CAST ( NULL AS INTEGER ) + + 52 + - 80
----
NULL

query I rowsort
SELECT 26 - + 37 - 58 * - + 24
----
1381

onlyif mysql # aggregate syntax: 
query II rowsort label-4225
SELECT - - 56 AS col0, 74 - + MAX( - 78 ) AS col2
----
56
152

skipif mysql # not compatible
query II rowsort label-4225
SELECT - - 56 AS col0, 74 - + MAX ( - 78 ) AS col2
----
56
152

query I rowsort
SELECT DISTINCT + 47 + + 45
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT ALL 66 * - + CASE + 9 WHEN + 78 THEN NULL WHEN 6 + + + 38 THEN + 83 * - - 4 * - MIN( - 2 ) * - NULLIF ( - COUNT( * ), + 97 * AVG ( 45 ) ) + + 47 END + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL 66 * - + CASE + 9 WHEN + 78 THEN NULL WHEN 6 + + + 38 THEN + 83 * - - 4 * - MIN ( - 2 ) * - NULLIF ( - COUNT ( * ), + 97 * AVG ( 45 ) ) + + 47 END + 58
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4228
SELECT 33 AS col2, - 19 AS col0, + 47 / - + MIN( CASE - - 45 WHEN - 8 THEN - ( NULLIF ( + 55, - 10 ) ) WHEN 87 THEN - 93 END ) * + 86 + 41
----
33
-19
NULL

skipif mysql # not compatible
query III rowsort label-4228
SELECT 33 AS col2, - 19 AS col0, + 47 / - + MIN ( CASE - - 45 WHEN - 8 THEN - ( NULLIF ( + 55, - 10 ) ) WHEN 87 THEN - 93 END ) * + 86 + 41
----
33
-19
NULL

query I rowsort
SELECT ( - 68 ) * - - 90 + - 1 AS col1
----
-6121

onlyif mysql # aggregate syntax: 
query II rowsort label-4230
SELECT DISTINCT - 1 - - - MAX( - 25 ), - 63 col2
----
24
-63

skipif mysql # not compatible
query II rowsort label-4230
SELECT DISTINCT - 1 - - - MAX ( - 25 ), - 63 col2
----
24
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4231
SELECT SUM( ALL - + CAST( NULL AS SIGNED ) ) + + + 34 + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4231
SELECT SUM ( ALL - + CAST ( NULL AS INTEGER ) ) + + + 34 + + 18
----
NULL

query I rowsort
SELECT DISTINCT 76 - - + 29 + - + 66 + + 17 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT 80 * + COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-4233
SELECT 80 * + COUNT ( * ) AS col1
----
80

query I rowsort
SELECT ALL - 11 * - 32
----
352

query I rowsort
SELECT DISTINCT 51 * + 67 AS col0
----
3417

query II rowsort
SELECT 5 + - - 22 AS col2, 83 * + 27
----
27
2241

onlyif mysql # aggregate syntax: 
query II rowsort label-4237
SELECT + + ( + - 57 ) * - COUNT( * ) * - - 83 - 16 + + 21 * + 84, - 87 AS col2
----
6479
-87

skipif mysql # not compatible
query II rowsort label-4237
SELECT + + ( + - 57 ) * - COUNT ( * ) * - - 83 - 16 + + 21 * + 84, - 87 AS col2
----
6479
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4238
SELECT - 38 - + 80 * 54 / - + 60 * + - 81 / + + 66 * CAST( NULL AS SIGNED ) AS col0, - 29 AS col2
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-4238
SELECT - 38 - + 80 * 54 / - + 60 * + - 81 / + + 66 * CAST ( NULL AS INTEGER ) AS col0, - 29 AS col2
----
NULL
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-4239
SELECT 5 DIV - - ( + 34 ) + + ( + 66 ) + 96
----
162

skipif mysql # not compatible
query I rowsort label-4239
SELECT 5 / - - ( + 34 ) + + ( + 66 ) + 96
----
162

query I rowsort
SELECT - 77 * + 75 + - - 17 col2
----
-5758

query I rowsort
SELECT ALL - - ( - + ( + + 44 ) )
----
-44

query I rowsort
SELECT DISTINCT - - 44 + - 99 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-4243
SELECT + 4 + + + 55 AS col1, + COUNT( - - 22 ) * - COUNT( DISTINCT - 44 ) AS col2
----
59
-1

skipif mysql # not compatible
query II rowsort label-4243
SELECT + 4 + + + 55 AS col1, + COUNT ( - - 22 ) * - COUNT ( DISTINCT - 44 ) AS col2
----
59
-1

query I rowsort
SELECT ALL - + 93 + + 49
----
-44

query I rowsort
SELECT ALL - + ( + 65 ) AS col1
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4246
SELECT 64 * - + COUNT( * ) * 83 * + 15 + + + SUM( DISTINCT 61 ) - + 59 + 9 + + - 1 DIV - 9 + - 4
----
-79673

skipif mysql # not compatible
query I rowsort label-4246
SELECT 64 * - + COUNT ( * ) * 83 * + 15 + + + SUM ( DISTINCT 61 ) - + 59 + 9 + + - 1 / - 9 + - 4
----
-79673

query I rowsort
SELECT + 45 + 74 + + 73
----
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4248
SELECT 94 + - 74 + - - COUNT( * ) DIV - 81
----
20

skipif mysql # not compatible
query I rowsort label-4248
SELECT 94 + - 74 + - - COUNT ( * ) / - 81
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4249
SELECT ALL - - COUNT( + 98 ) * 52 DIV 35 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL - - COUNT ( + 98 ) * 52 / 35 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - 81 + - MIN( 98 ) AS col2
----
-179

skipif mysql # not compatible
query I rowsort label-4250
SELECT - 81 + - MIN ( 98 ) AS col2
----
-179

query I rowsort
SELECT ALL + NULLIF ( 19, - 78 ) + + 57
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT + NULLIF ( 72, + SUM( - - 13 ) * - 51 + 87 + - 46 * 62 )
----
72

skipif mysql # not compatible
query I rowsort label-4252
SELECT + NULLIF ( 72, + SUM ( - - 13 ) * - 51 + 87 + - 46 * 62 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT DISTINCT 36 - 54 - + MAX( + + 81 ) * + - 84 AS col2
----
6786

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT 36 - 54 - + MAX ( + + 81 ) * + - 84 AS col2
----
6786

onlyif mysql # aggregate syntax: 
query II rowsort label-4254
SELECT DISTINCT COUNT( * ) AS col1, 9
----
1
9

skipif mysql # not compatible
query II rowsort label-4254
SELECT DISTINCT COUNT ( * ) AS col1, 9
----
1
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4255
SELECT ALL 71 / - CAST( CASE 81 WHEN 72 THEN + 76 + 80 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL 71 / - CAST ( CASE 81 WHEN 72 THEN + 76 + 80 END AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT COUNT( * ) - + 94 + 48 * - - 6 AS col1
----
195

skipif mysql # not compatible
query I rowsort label-4256
SELECT COUNT ( * ) - + 94 + 48 * - - 6 AS col1
----
195

query I rowsort
SELECT DISTINCT 76 - + + 91 - 70 + + 94 * - + 99 * - 2
----
18527

query I rowsort
SELECT ALL 35 * 72 AS col2
----
2520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4259
SELECT DISTINCT 70 * - 16 DIV - + COUNT( 9 )
----
1120

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT 70 * - 16 / - + COUNT ( 9 )
----
1120

query I rowsort
SELECT ALL 29 * 41
----
1189

query I rowsort
SELECT 76 + - 67 AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4262
SELECT COUNT( DISTINCT + 69 ) DIV - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4262
SELECT COUNT ( DISTINCT + 69 ) / - 66 AS col0
----
0

query II rowsort
SELECT ALL 58 AS col2, 68
----
58
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4264
SELECT AVG ( CAST( NULL AS SIGNED ) ) + + 72 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT AVG ( CAST ( NULL AS INTEGER ) ) + + 72 col1
----
NULL

query II rowsort
SELECT DISTINCT 61 AS col0, 41 col2
----
61
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT DISTINCT 34 * + + MAX( + + 32 ) AS col1
----
1088

skipif mysql # not compatible
query I rowsort label-4266
SELECT DISTINCT 34 * + + MAX ( + + 32 ) AS col1
----
1088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4267
SELECT ( - - 12 ) DIV + COUNT( - 40 ) - - 34 + ( + - 91 ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-4267
SELECT ( - - 12 ) / + COUNT ( - 40 ) - - 34 + ( + - 91 ) col1
----
-45

query I rowsort
SELECT ( 26 ) + NULLIF ( - 5, - 72 ) AS col0
----
21

query I rowsort
SELECT 14 * 97
----
1358

query II rowsort
SELECT 62, 19 AS col0
----
62
19

query I rowsort
SELECT 21 + + 99 AS col0
----
120

query I rowsort
SELECT + 36 + - 10 AS col2
----
26

query II rowsort
SELECT DISTINCT + 73, 23 AS col0
----
73
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4274
SELECT + MIN( ALL + + ( - CAST( NULL AS DECIMAL ) ) ) AS col1, - 21
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-4274
SELECT + MIN ( ALL + + ( - CAST ( NULL AS REAL ) ) ) AS col1, - 21
----
NULL
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-4275
SELECT ALL - 91 AS col1, ( + COUNT( * ) ) * - - ( - - ( - CASE - ( + - 85 ) WHEN + + 16 * - SUM( ALL 12 ) THEN + + 2 WHEN + 46 * + COUNT( * ) THEN - 64 WHEN COUNT( * ) - - 35 * - 98 THEN - ( - 57 ) * 72 + - ( + COUNT( DISTINCT 27 ) ) * + 76 END ) ) + 69
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-4275
SELECT ALL - 91 AS col1, ( + COUNT ( * ) ) * - - ( - - ( - CASE - ( + - 85 ) WHEN + + 16 * - SUM ( ALL 12 ) THEN + + 2 WHEN + 46 * + COUNT ( * ) THEN - 64 WHEN COUNT ( * ) - - 35 * - 98 THEN - ( - 57 ) * 72 + - ( + COUNT ( DISTINCT 27 ) ) * + 76 END ) ) + 69
----
-91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT ALL + COUNT( * ) * + - COUNT( * ) * 63 + - 60 + 38 + 46 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) * 63 + - 60 + 38 + 46 AS col2
----
-39

query I rowsort
SELECT DISTINCT - - 40 * - 79 * + - 58 + - 2 + - - 99 * + + 25 * + - 0 AS col2
----
183278

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4278
SELECT ALL - 82 * - CAST( NULL AS DECIMAL ) + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL - 82 * - CAST ( NULL AS REAL ) + 59
----
NULL

query I rowsort
SELECT DISTINCT - 71 * + 40 AS col2
----
-2840

onlyif mysql # aggregate syntax: 
query II rowsort label-4280
SELECT DISTINCT + 95 * - COUNT( * ) * - 72 + - 49 - + 10 + - 16, MAX( ALL - - 23 ) AS col1
----
6765
23

skipif mysql # not compatible
query II rowsort label-4280
SELECT DISTINCT + 95 * - COUNT ( * ) * - 72 + - 49 - + 10 + - 16, MAX ( ALL - - 23 ) AS col1
----
6765
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4281
SELECT + 53 DIV + + 54 + - SUM( + 13 ) - 9 - + 8 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-4281
SELECT + 53 / + + 54 + - SUM ( + 13 ) - 9 - + 8 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT SUM( ( - ( 55 ) ) ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4282
SELECT SUM ( ( - ( 55 ) ) ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT + 82 + + MAX( ALL - 68 )
----
14

skipif mysql # not compatible
query I rowsort label-4283
SELECT + 82 + + MAX ( ALL - 68 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT + + ( 48 ) + - 97 * + COUNT( ALL - - ( + 45 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-4284
SELECT + + ( 48 ) + - 97 * + COUNT ( ALL - - ( + 45 ) )
----
-49

query II rowsort
SELECT 87 AS col1, 6 AS col1
----
87
6

query I rowsort
SELECT - 66 * - + 21 - - 2 + - 30 - - ( 73 )
----
1431

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT ALL + + COUNT( ALL 16 )
----
1

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL + + COUNT ( ALL 16 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4288
SELECT ALL + 10 DIV + + 13 * + 72
----
0

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL + 10 / + + 13 * + 72
----
0

query I rowsort
SELECT - 53 * - + 37 AS col0
----
1961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4290
SELECT - COALESCE ( - ( - 50 ), 99 + + COUNT( * ) + + + CAST( - COUNT( * ) AS DECIMAL ) + - + MIN( DISTINCT - 19 ) * + NULLIF ( + - COUNT( * ), + - 51 * 56 + + 11 + ( - 42 ) ) * NULLIF ( - 12, + CAST( NULL AS SIGNED ) + 6 * + 48 ) * - 32, - 47, CAST( 19 AS DECIMAL ) ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT - COALESCE ( - ( - 50 ), 99 + + COUNT ( * ) + + + CAST ( - COUNT ( * ) AS REAL ) + - + MIN ( DISTINCT - 19 ) * + NULLIF ( + - COUNT ( * ), + - 51 * 56 + + 11 + ( - 42 ) ) * NULLIF ( - 12, + CAST ( NULL AS INTEGER ) + 6 * + 48 ) * - 32, - 47, CAST ( 19 AS REAL ) ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4291
SELECT + 55 * + 8 * - 13 - + COUNT( * ) DIV + - 24 + - - COUNT( * )
----
-5719

skipif mysql # not compatible
query I rowsort label-4291
SELECT + 55 * + 8 * - 13 - + COUNT ( * ) / + - 24 + - - COUNT ( * )
----
-5719

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT DISTINCT - 29 * MIN( - 18 ) * + 19 AS col0
----
9918

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT - 29 * MIN ( - 18 ) * + 19 AS col0
----
9918

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT - COUNT( * ) * + - SUM( ALL - + 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-4293
SELECT - COUNT ( * ) * + - SUM ( ALL - + 21 )
----
-21

query I rowsort
SELECT + 23 * + ( - 26 ) col0
----
-598

query I rowsort
SELECT ALL ( + + 12 ) col2
----
12

query I rowsort
SELECT ALL ( + + 3 ) col0
----
3

query I rowsort
SELECT ALL NULLIF ( 25, + - 24 / - ( + 45 ) + 14 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT DISTINCT NULLIF ( 91, - COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT NULLIF ( 91, - COUNT ( * ) )
----
91

query I rowsort
SELECT DISTINCT COALESCE ( - 32, 46 ) + + - 0
----
-32

query I rowsort
SELECT - 75 + - ( - ( - + 8 ) ) AS col2
----
-83

query II rowsort
SELECT DISTINCT ( - 30 ), 55 AS col1
----
-30
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4302
SELECT - ( + CAST( 74 AS SIGNED ) ) + - COUNT( * ) * ( 25 )
----
-99

skipif mysql # not compatible
query I rowsort label-4302
SELECT - ( + CAST ( 74 AS INTEGER ) ) + - COUNT ( * ) * ( 25 )
----
-99

query I rowsort
SELECT + 57 * ( 24 ) AS col1
----
1368

query I rowsort
SELECT - NULLIF ( + 63, + 56 ) AS col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4305
SELECT + - 83 DIV 28 * CAST( + - COUNT( * ) AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-4305
SELECT + - 83 / 28 * CAST ( + - COUNT ( * ) AS INTEGER )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL 3 + - 15 + - 4 + - COUNT( * ) - + 59 * - COUNT( * ) * 24
----
1399

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL 3 + - 15 + - 4 + - COUNT ( * ) - + 59 * - COUNT ( * ) * 24
----
1399

onlyif mysql # DIV for integer division: 
query I rowsort label-4307
SELECT + 73 + + 23 DIV 20 DIV + 60
----
73

skipif mysql # not compatible
query I rowsort label-4307
SELECT + 73 + + 23 / 20 / + 60
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-4308
SELECT ALL + 67 DIV + + 71 DIV 32 * + + 73 - - 31 + + 82
----
113

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL + 67 / + + 71 / 32 * + + 73 - - 31 + + 82
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4309
SELECT DISTINCT - 75 * - 58 + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT - 75 * - 58 + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL 70 + + 48 AS col2, 92 AS col1
----
118
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4311
SELECT + NULLIF ( COUNT( * ), + CAST( NULL AS SIGNED ) * + 20 * + COUNT( * ) + + COALESCE ( + - 17, - 18 + - 32 ) + - ( - - 71 ) ) + ( 0 ) + 9
----
10

skipif mysql # not compatible
query I rowsort label-4311
SELECT + NULLIF ( COUNT ( * ), + CAST ( NULL AS INTEGER ) * + 20 * + COUNT ( * ) + + COALESCE ( + - 17, - 18 + - 32 ) + - ( - - 71 ) ) + ( 0 ) + 9
----
10

query II rowsort
SELECT - - 37 + + 57, + 61 AS col2
----
94
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT + COUNT( * ) * + ( 18 ) * + COALESCE ( - 45, 13, + 78 - - 28 ) * + ( + + 96 ) * + COALESCE ( + 96, 58 ) + - - 56 - + COUNT( * ) AS col1
----
-7464905

skipif mysql # not compatible
query I rowsort label-4313
SELECT + COUNT ( * ) * + ( 18 ) * + COALESCE ( - 45, 13, + 78 - - 28 ) * + ( + + 96 ) * + COALESCE ( + 96, 58 ) + - - 56 - + COUNT ( * ) AS col1
----
-7464905

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4314
SELECT ALL + CAST( + + 38 AS SIGNED ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL + CAST ( + + 38 AS INTEGER ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT + + 34 * - - 78 * + 8 + COUNT( * )
----
21217

skipif mysql # not compatible
query I rowsort label-4315
SELECT + + 34 * - - 78 * + 8 + COUNT ( * )
----
21217

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4316
SELECT - 43 DIV - 49 + - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4316
SELECT - 43 / - 49 + - + COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT + 2 + 47 + + - 68 * 82 * - - 28 AS col2
----
-156079

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT + - 5 * + COUNT( * ) + - 40 + + 22 + - + 65 + - + 68 AS col1
----
-156

skipif mysql # not compatible
query I rowsort label-4318
SELECT + - 5 * + COUNT ( * ) + - 40 + + 22 + - + 65 + - + 68 AS col1
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT + + 4 * + COUNT( * ) * + + MAX( 38 ) * + + 75 * - - 19
----
216600

skipif mysql # not compatible
query I rowsort label-4319
SELECT + + 4 * + COUNT ( * ) * + + MAX ( 38 ) * + + 75 * - - 19
----
216600

onlyif mysql # DIV for integer division: 
query I rowsort label-4320
SELECT DISTINCT 20 * - - 39 DIV + 38 - - 82
----
102

skipif mysql # not compatible
query I rowsort label-4320
SELECT DISTINCT 20 * - - 39 / + 38 - - 82
----
102

query I rowsort
SELECT ALL 59 * 17
----
1003

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4322
SELECT - COUNT( * ) + + 66 DIV - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-4322
SELECT - COUNT ( * ) + + 66 / - COUNT ( * )
----
-67

query I rowsort
SELECT DISTINCT + COALESCE ( 77, - 33 * + - 30 ) AS col1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4324
SELECT + ( SUM( ALL - 16 ) ) DIV - - SUM( ALL - 2 ) col0
----
8

skipif mysql # not compatible
query I rowsort label-4324
SELECT + ( SUM ( ALL - 16 ) ) / - - SUM ( ALL - 2 ) col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT - 23 * - COUNT( ALL - - ( - 23 ) ) col0
----
23

skipif mysql # not compatible
query I rowsort label-4325
SELECT - 23 * - COUNT ( ALL - - ( - 23 ) ) col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT NULLIF ( 24, - NULLIF ( - 62, COALESCE ( - CASE + COUNT( DISTINCT + 81 ) WHEN - ( - + 28 ) * - COUNT( * ) THEN - ( - 76 ) END, 10 * - 42, COUNT( * ) ) * + COUNT( * ) + 56 ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4326
SELECT NULLIF ( 24, - NULLIF ( - 62, COALESCE ( - CASE + COUNT ( DISTINCT + 81 ) WHEN - ( - + 28 ) * - COUNT ( * ) THEN - ( - 76 ) END, 10 * - 42, COUNT ( * ) ) * + COUNT ( * ) + 56 ) ) AS col2
----
24

query I rowsort
SELECT - 87 + 86 + - 84 * + 5
----
-421

query II rowsort
SELECT - 64 * + - 60 * 89 col0, 31 AS col0
----
341760
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4329
SELECT ALL - NULLIF ( + 42, - AVG ( DISTINCT CAST( 79 AS DECIMAL ) ) * - 82 + + + 73 + - 56 ) * + 62 + 35 AS col2
----
-2569

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL - NULLIF ( + 42, - AVG ( DISTINCT CAST ( 79 AS REAL ) ) * - 82 + + + 73 + - 56 ) * + 62 + 35 AS col2
----
-2569

query I rowsort
SELECT - 57 + - + 89 + 1
----
-145

onlyif mysql # aggregate syntax: 
query II rowsort label-4331
SELECT COUNT( * ) AS col0, 17 * 82 AS col1
----
1
1394

skipif mysql # not compatible
query II rowsort label-4331
SELECT COUNT ( * ) AS col0, 17 * 82 AS col1
----
1
1394

query I rowsort
SELECT ALL - 17 + 90
----
73

query I rowsort
SELECT DISTINCT + ( - 0 ) + 90
----
90

query I rowsort
SELECT ALL + 38 * + 68
----
2584

query II rowsort
SELECT DISTINCT - 79 + + + ( 7 ) col2, 41 + NULLIF ( - 78, + NULLIF ( - + 94, - 12 ) ) AS col1
----
-72
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT COUNT( DISTINCT + + 57 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4336
SELECT COUNT ( DISTINCT + + 57 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT ALL - 46 + + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL - 46 + + COUNT ( * )
----
-45

query II rowsort
SELECT DISTINCT 23, + 11 col2
----
23
11

query I rowsort
SELECT ( + 91 ) * - 42 AS col1
----
-3822

query II rowsort
SELECT ALL - 98 AS col1, 10 AS col2
----
-98
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4341
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 53 + - 37 + + 7 DIV + 87
----
NULL
16

skipif mysql # not compatible
query II rowsort label-4341
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 53 + - 37 + + 7 / + 87
----
NULL
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4342
SELECT ALL CAST( NULL AS SIGNED ) - + + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL CAST ( NULL AS INTEGER ) - + + 37 AS col1
----
NULL

query I rowsort
SELECT 77 * - 23 + + COALESCE ( - 14, - - 18 + 72, - 15 ) col2
----
-1785

query I rowsort
SELECT 79 * - 74 + 54 * 94 * - 50
----
-259646

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT ALL + - ( COALESCE ( + 67, - - MIN( 53 ) ) ) * - 26 * 6 + + 26 + + 72
----
10550

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL + - ( COALESCE ( + 67, - - MIN ( 53 ) ) ) * - 26 * 6 + + 26 + + 72
----
10550

query I rowsort
SELECT DISTINCT 88 * + 88 AS col1
----
7744

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT 18 * - MAX( - 55 ) col0
----
990

skipif mysql # not compatible
query I rowsort label-4347
SELECT 18 * - MAX ( - 55 ) col0
----
990

query I rowsort
SELECT ALL - - COALESCE ( - 65, - + 59 ) AS col2
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4349
SELECT 36 * + 85 * - COALESCE ( + - 18, + + 55, 89 ) + COUNT( * ) DIV - 78
----
55080

skipif mysql # not compatible
query I rowsort label-4349
SELECT 36 * + 85 * - COALESCE ( + - 18, + + 55, 89 ) + COUNT ( * ) / - 78
----
55080

query II rowsort
SELECT + 76 AS col0, 24 AS col2
----
76
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4351
SELECT MIN( ALL CAST( NULL AS SIGNED ) ) * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT MIN ( ALL CAST ( NULL AS INTEGER ) ) * 60
----
NULL

query I rowsort
SELECT ( - 75 ) * - 88 AS col2
----
6600

query I rowsort
SELECT DISTINCT 17 + - + 36 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-4354
SELECT + 44 col2, COUNT( * )
----
44
1

skipif mysql # not compatible
query II rowsort label-4354
SELECT + 44 col2, COUNT ( * )
----
44
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4355
SELECT CAST( 41 AS SIGNED ) + - 0
----
41

skipif mysql # not compatible
query I rowsort label-4355
SELECT CAST ( 41 AS INTEGER ) + - 0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT ALL COUNT( ALL COALESCE ( - 92, - 13 ) ) + 13
----
14

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL COUNT ( ALL COALESCE ( - 92, - 13 ) ) + 13
----
14

query I rowsort
SELECT 94 * 23 - - 32 col0
----
2194

query II rowsort
SELECT 78, + 95 + ( + - 51 ) * - 4 AS col0
----
78
299

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4359
SELECT ALL - CAST( NULL AS DECIMAL ) / + 86 * + 73 * + 71 / - - CAST( + - 3 AS SIGNED ) * MAX( + ( - 93 ) ) * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL - CAST ( NULL AS REAL ) / + 86 * + 73 * + 71 / - - CAST ( + - 3 AS INTEGER ) * MAX ( + ( - 93 ) ) * 98
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4360
SELECT 20 DIV + - 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4360
SELECT 20 / + - 68 AS col1
----
0

query I rowsort
SELECT ALL 4 + 88 * - - 73 * + 44
----
282660

query I rowsort
SELECT - - COALESCE ( + 15, ( - + 64 ), 52 )
----
15

query I rowsort
SELECT ALL + - 22 - 19 col1
----
-41

query I rowsort
SELECT - 21 + - 86
----
-107

query I rowsort
SELECT - 91 - - 71 AS col1
----
-20

query I rowsort
SELECT 25 + CASE - 25 WHEN - 59 THEN + 35 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4367
SELECT - 48 + - ( - CASE WHEN NOT + 67 IS NULL THEN NULL WHEN NOT - COUNT( - + 12 ) >= + 24 * - 99 + - - COUNT( * ) THEN + 62 * - CAST( NULL AS SIGNED ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT - 48 + - ( - CASE WHEN NOT + 67 IS NULL THEN NULL WHEN NOT - COUNT ( - + 12 ) >= + 24 * - 99 + - - COUNT ( * ) THEN + 62 * - CAST ( NULL AS INTEGER ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL COALESCE ( - - 73, - COUNT( * ) * 32 + - - 53 + 84 * - 83 * + - 34 )
----
73

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL COALESCE ( - - 73, - COUNT ( * ) * 32 + - - 53 + 84 * - 83 * + - 34 )
----
73

query I rowsort
SELECT + 57 + 85
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-4370
SELECT - 62 * + 53 AS col0, MIN( + - ( 63 ) ) AS col0
----
-3286
-63

skipif mysql # not compatible
query II rowsort label-4370
SELECT - 62 * + 53 AS col0, MIN ( + - ( 63 ) ) AS col0
----
-3286
-63

query I rowsort
SELECT ALL + 65 * - - 19
----
1235

query I rowsort
SELECT + 71 + 65 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT ALL + ( + CASE - 87 WHEN - COALESCE ( + + COUNT( DISTINCT 1 ), - 26 ) * + + 23 + - COALESCE ( + - NULLIF ( 81, - NULLIF ( 46, + 68 ) / - COUNT( * ) + - COUNT( * ) + + 91 / - 32 ), ( - 30 ) ) THEN NULL WHEN + 55 * NULLIF ( NULLIF ( + COUNT( * ), COUNT( * ) * 71 ), + 49 - 20 * 45 ) THEN 90 + 89 ELSE 66 END )
----
66

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL + ( + CASE - 87 WHEN - COALESCE ( + + COUNT ( DISTINCT 1 ), - 26 ) * + + 23 + - COALESCE ( + - NULLIF ( 81, - NULLIF ( 46, + 68 ) / - COUNT ( * ) + - COUNT ( * ) + + 91 / - 32 ), ( - 30 ) ) THEN NULL WHEN + 55 * NULLIF ( NULLIF ( + COUNT ( * ), COUNT ( * ) * 71 ), + 49 - 20 * 45 ) THEN 90 + 89 ELSE 66 END )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4374
SELECT ALL + CAST( - + 64 AS SIGNED ) AS col1, + 2 AS col1
----
-64
2

skipif mysql # not compatible
query II rowsort label-4374
SELECT ALL + CAST ( - + 64 AS INTEGER ) AS col1, + 2 AS col1
----
-64
2

query I rowsort
SELECT + 98 + - + 28
----
70

query II rowsort
SELECT ALL + 27, - 40 + + + 5 AS col2
----
27
-35

query I rowsort
SELECT + NULLIF ( - 0, - 14 ) + - - 56 * 70 AS col2
----
3920

query I rowsort
SELECT - 21 + 94 AS col2
----
73

query I rowsort
SELECT 63 + - + ( - - 12 ) AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4380
SELECT + MAX( DISTINCT 18 ) DIV - 25 + + ( - + 91 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4380
SELECT + MAX ( DISTINCT 18 ) / - 25 + + ( - + 91 ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT - SUM( DISTINCT + + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-4381
SELECT - SUM ( DISTINCT + + 43 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT + COUNT( ALL + NULLIF ( - - 94, 2 + - - 51 ) ) * - - 42 * - 73 * + 11 * 63 + + + NULLIF ( + ( - COUNT( ALL - - 80 ) ), - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4382
SELECT + COUNT ( ALL + NULLIF ( - - 94, 2 + - - 51 ) ) * - - 42 * - 73 * + 11 * 63 + + + NULLIF ( + ( - COUNT ( ALL - - 80 ) ), - COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 70 * 14
----
-980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4384
SELECT ALL CAST( NULL AS SIGNED ) * + 36 * 11 + + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL CAST ( NULL AS INTEGER ) * + 36 * 11 + + + 94
----
NULL

query I rowsort
SELECT 80 + + + 30 AS col2
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4386
SELECT + CASE - + COUNT( * ) WHEN + - 61 - - NULLIF ( 70, - ( CAST( - - 99 AS SIGNED ) ) ) * - + CAST( NULL AS SIGNED ) * + 74 + - CAST( + 3 AS SIGNED ) + - + 40 THEN COUNT( * ) END * 70 * - - 12 + - COALESCE ( 45, + COUNT( * ) * + MAX( DISTINCT 52 ) ) * 4 + - COALESCE ( + 17, ( 50 ), 95, - MIN( 45 ) - 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4386
SELECT + CASE - + COUNT ( * ) WHEN + - 61 - - NULLIF ( 70, - ( CAST ( - - 99 AS INTEGER ) ) ) * - + CAST ( NULL AS INTEGER ) * + 74 + - CAST ( + 3 AS INTEGER ) + - + 40 THEN COUNT ( * ) END * 70 * - - 12 + - COALESCE ( 45, + COUNT ( * ) * + MAX ( DISTINCT 52 ) ) * 4 + - COALESCE ( + 17, ( 50 ), 95, - MIN ( 45 ) - 2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT COUNT( DISTINCT + - 61 )
----
1

skipif mysql # not compatible
query I rowsort label-4387
SELECT COUNT ( DISTINCT + - 61 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4388
SELECT 99 DIV 59 col1
----
1

skipif mysql # not compatible
query I rowsort label-4388
SELECT 99 / 59 col1
----
1

query II rowsort
SELECT DISTINCT + 7 * + + 86 AS col2, 19 * + - 98 * 75
----
602
-139650

onlyif mysql # DIV for integer division: 
query I rowsort label-4390
SELECT ( 92 ) DIV - 10 + + 65
----
56

skipif mysql # not compatible
query I rowsort label-4390
SELECT ( 92 ) / - 10 + + 65
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4391
SELECT MIN( DISTINCT - - ( + 99 ) ) + + ( 34 ) AS col1, + 68 * + 81
----
133
5508

skipif mysql # not compatible
query II rowsort label-4391
SELECT MIN ( DISTINCT - - ( + 99 ) ) + + ( 34 ) AS col1, + 68 * + 81
----
133
5508

query III rowsort
SELECT 21 * - 93, 98 AS col1, - 46 AS col0
----
-1953
98
-46

query I rowsort
SELECT DISTINCT 64 + + 1 * - + 97
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT ALL COUNT( * ) + ( 16 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL COUNT ( * ) + ( 16 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT ALL 99 + + ( + + 51 ) * - 95 + + 93 + COUNT( * ) * - 86
----
-4739

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL 99 + + ( + + 51 ) * - 95 + + 93 + COUNT ( * ) * - 86
----
-4739

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT DISTINCT + COUNT( * ) + + 85 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT + COUNT ( * ) + + 85 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT ALL COUNT( * ) - - - 51
----
-50

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL COUNT ( * ) - - - 51
----
-50

onlyif mysql # aggregate syntax: 
query III rowsort label-4398
SELECT + 74 + + COUNT( * ) AS col2, 6, - + 11 AS col1
----
75
6
-11

skipif mysql # not compatible
query III rowsort label-4398
SELECT + 74 + + COUNT ( * ) AS col2, 6, - + 11 AS col1
----
75
6
-11

query I rowsort
SELECT ALL 86 - + 3 AS col1
----
83

query I rowsort
SELECT DISTINCT 98 * + 21 AS col1
----
2058

query I rowsort
SELECT + + ( - 90 ) + - 39 + 47 AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT COUNT( * ) * + + 89 + + 96 + + CASE 96 WHEN + COUNT( * ) THEN - + 98 + 41 END - 81 * + ( - 57 ) * 44 + 97 * - COALESCE ( - - 88, - 91 * + CASE + 20 WHEN 74 THEN 38 + 61 END ) * + ( CASE - 77 WHEN - 40 + + 10 * - 40 THEN - 10 ELSE NULL END + COUNT( + 71 + 41 ) ) + - 24 * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT COUNT ( * ) * + + 89 + + 96 + + CASE 96 WHEN + COUNT ( * ) THEN - + 98 + 41 END - 81 * + ( - 57 ) * 44 + 97 * - COALESCE ( - - 88, - 91 * + CASE + 20 WHEN 74 THEN 38 + 61 END ) * + ( CASE - 77 WHEN - 40 + + 10 * - 40 THEN - 10 ELSE NULL END + COUNT ( + 71 + 41 ) ) + - 24 * + 46
----
NULL

query I rowsort
SELECT - + 69 + 72
----
3

query I rowsort
SELECT ALL NULLIF ( 86, - + 17 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4405
SELECT + - COUNT( * ) * CASE 39 WHEN - + 50 * + CAST( NULL AS SIGNED ) * 33 - - 31 + - - 18 - 62 THEN 84 WHEN 44 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT + - COUNT ( * ) * CASE 39 WHEN - + 50 * + CAST ( NULL AS INTEGER ) * 33 - - 31 + - - 18 - 62 THEN 84 WHEN 44 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4406
SELECT DISTINCT - 56 DIV + - 49
----
1

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT - 56 / + - 49
----
1

query I rowsort
SELECT - 82 * 46
----
-3772

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL + + 15 * SUM( DISTINCT + 89 )
----
1335

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL + + 15 * SUM ( DISTINCT + 89 )
----
1335

query I rowsort
SELECT - NULLIF ( 83, + 97 )
----
-83

query II rowsort
SELECT + + CASE 58 WHEN + 62 + - 68 THEN 50 * - 72 ELSE 59 END * + 65, + 82 AS col1
----
3835
82

query I rowsort
SELECT - + 67 * 10 + + 68 + - 71
----
-673

query I rowsort
SELECT ALL + ( + 87 ) * - 72 * - 19
----
119016

query II rowsort
SELECT + - 98 * + + 7 AS col0, - 49 AS col1
----
-686
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-4414
SELECT ALL - - 35 + + 49 DIV 89 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL - - 35 + + 49 / 89 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4415
SELECT - CASE COUNT( * ) WHEN + COUNT( * ) + + 99 + + - 33 * + 80 / - CAST( NULL AS DECIMAL ) THEN + 79 * - 60 * - + 99 * + + 78 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4415
SELECT - CASE COUNT ( * ) WHEN + COUNT ( * ) + + 99 + + - 33 * + 80 / - CAST ( NULL AS REAL ) THEN + 79 * - 60 * - + 99 * + + 78 END col0
----
NULL

query I rowsort
SELECT DISTINCT - + 10 + + + 52 + - 38
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT DISTINCT 50 + ( 16 ) + - COUNT( * ) + - + MAX( ALL + 40 ) + 6 + + ( + 39 ) + - + ( - 4 ) * - COUNT( * ) + COALESCE ( - + 79, - - 54 ) - + COUNT( * ) * - 86 * + COUNT( * ) * - 5
----
-443

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT 50 + ( 16 ) + - COUNT ( * ) + - + MAX ( ALL + 40 ) + 6 + + ( + 39 ) + - + ( - 4 ) * - COUNT ( * ) + COALESCE ( - + 79, - - 54 ) - + COUNT ( * ) * - 86 * + COUNT ( * ) * - 5
----
-443

query I rowsort
SELECT ALL + ( - + 57 ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL + ( + COUNT( * ) ) * - 72 + - COUNT( * ) * SUM( DISTINCT 5 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL + ( + COUNT ( * ) ) * - 72 + - COUNT ( * ) * SUM ( DISTINCT 5 ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT - 71 * COALESCE ( - - COALESCE ( + 75, - + COUNT( * ) ), - + MAX( - 82 ) ) * 73 * COUNT( + + 20 )
----
-388725

skipif mysql # not compatible
query I rowsort label-4420
SELECT - 71 * COALESCE ( - - COALESCE ( + 75, - + COUNT ( * ) ), - + MAX ( - 82 ) ) * 73 * COUNT ( + + 20 )
----
-388725

query I rowsort
SELECT ( - CASE 76 WHEN - 68 THEN + 29 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT ALL + COUNT( * ) * + ( - 38 ) * + 56 + + 87 + + - 43 AS col0
----
-2084

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL + COUNT ( * ) * + ( - 38 ) * + 56 + + 87 + + - 43 AS col0
----
-2084

query I rowsort
SELECT ALL + ( + 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT ALL 32 * + - 4 + + COUNT( 93 ) + - COUNT( * )
----
-128

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL 32 * + - 4 + + COUNT ( 93 ) + - COUNT ( * )
----
-128

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4425
SELECT 30 DIV - 65 * 55 + 15 - - CAST( - - ( + 72 ) AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-4425
SELECT 30 / - 65 * 55 + 15 - - CAST ( - - ( + 72 ) AS INTEGER )
----
87

onlyif mysql # aggregate syntax: 
query III rowsort label-4426
SELECT - 41 * + - COUNT( - 38 ) AS col2, 32 - MIN( - 96 ) AS col1, - 94 * + ( + + 24 ) * + MIN( ALL + 20 ) * 18 AS col2
----
41
128
-812160

skipif mysql # not compatible
query III rowsort label-4426
SELECT - 41 * + - COUNT ( - 38 ) AS col2, 32 - MIN ( - 96 ) AS col1, - 94 * + ( + + 24 ) * + MIN ( ALL + 20 ) * 18 AS col2
----
41
128
-812160

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT + MAX( + 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4427
SELECT + MAX ( + 10 ) AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4428
SELECT ALL + CAST( MIN( + 16 ) AS SIGNED ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL + CAST ( MIN ( + 16 ) AS INTEGER ) AS col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4429
SELECT - 0 * + COUNT( * ) + - + 60 DIV COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-4429
SELECT - 0 * + COUNT ( * ) + - + 60 / COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4430
SELECT + 93 DIV + - COUNT( * ) col2
----
-93

skipif mysql # not compatible
query I rowsort label-4430
SELECT + 93 / + - COUNT ( * ) col2
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4431
SELECT ALL + 17 * + 10 * 24 DIV - 15 - - MIN( - ( + 12 ) ) AS col2
----
-284

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL + 17 * + 10 * 24 / - 15 - - MIN ( - ( + 12 ) ) AS col2
----
-284

query I rowsort
SELECT - 5 * + + 91 AS col0
----
-455

query I rowsort
SELECT ALL + 22 * 99 * + 71 * - 83 * 42 col1
----
-539068068

query I rowsort
SELECT DISTINCT 44 * - + 41 - ( + + 19 ) AS col0
----
-1823

query I rowsort
SELECT ALL 93 * - + 36 AS col1
----
-3348

query I rowsort
SELECT - 57 + - 3
----
-60

query I rowsort
SELECT CASE + 82 WHEN - + 44 - - 68 THEN + 8 END AS col0
----
NULL

query I rowsort
SELECT ALL - CASE - ( AVG ( DISTINCT - 31 ) ) WHEN 12 / - + 12 THEN NULL ELSE - 30 END * ( + + 47 )
----
1410

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4439
SELECT + COUNT( * ) DIV - 10 * - 17 * + 64, 28 AS col2
----
0
28

skipif mysql # not compatible
query II rowsort label-4439
SELECT + COUNT ( * ) / - 10 * - 17 * + 64, 28 AS col2
----
0
28

query II rowsort
SELECT - 97, - 24 AS col1
----
-97
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT COUNT( ALL - 25 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4441
SELECT COUNT ( ALL - 25 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4442
SELECT DISTINCT + 27 * + + 95 * - 9, + CAST( - + 98 AS SIGNED ) + - - 44 AS col0
----
-23085
-54

skipif mysql # not compatible
query II rowsort label-4442
SELECT DISTINCT + 27 * + + 95 * - 9, + CAST ( - + 98 AS INTEGER ) + - - 44 AS col0
----
-23085
-54

query II rowsort
SELECT - + 78 col2, ( + 32 )
----
-78
32

query I rowsort
SELECT + 80 * - - 92 * - 69 + + 66 AS col0
----
-507774

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT - + 77 + + - CASE COUNT( * ) WHEN - - 68 - + + 11 - 40 THEN 97 WHEN - 76 THEN NULL END * + 0 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT - + 77 + + - CASE COUNT ( * ) WHEN - - 68 - + + 11 - 40 THEN 97 WHEN - 76 THEN NULL END * + 0 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT + - CASE + 95 WHEN 60 * + 59 / COUNT( * ) THEN 60 + 39 ELSE NULL END - + 35 + - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4446
SELECT + - CASE + 95 WHEN 60 * + 59 / COUNT ( * ) THEN 60 + 39 ELSE NULL END - + 35 + - 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4447
SELECT - COUNT( * ) AS col0, + 56
----
-1
56

skipif mysql # not compatible
query II rowsort label-4447
SELECT - COUNT ( * ) AS col0, + 56
----
-1
56

query I rowsort
SELECT + - 2 + - 24 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT ALL COUNT( ALL - 48 ) + + 61 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL COUNT ( ALL - 48 ) + + 61 AS col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-4450
SELECT - 77 AS col2, + 0 * + COALESCE ( + + 50, - + COUNT( * ) )
----
-77
0

skipif mysql # not compatible
query II rowsort label-4450
SELECT - 77 AS col2, + 0 * + COALESCE ( + + 50, - + COUNT ( * ) )
----
-77
0

query I rowsort
SELECT + + 27 + 43
----
70

query I rowsort
SELECT - - 22 * + 38
----
836

query I rowsort
SELECT + 56 + + ( - 74 ) AS col1
----
-18

query I rowsort
SELECT ALL 99 + 47 AS col1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT + ( + 54 ) + - - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-4455
SELECT + ( + 54 ) + - - COUNT ( * )
----
55

query I rowsort
SELECT ALL + 67 + NULLIF ( 83, - 20 ) + - + 36
----
114

query I rowsort
SELECT + 83 + - + 6 + - - 72
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-4458
SELECT ALL + COALESCE ( + 33, 65 - - 29 + 97 ) DIV + - 62
----
0

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL + COALESCE ( + 33, 65 - - 29 + 97 ) / + - 62
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4459
SELECT + 47 + + - 21 - - CAST( - 97 AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-4459
SELECT + 47 + + - 21 - - CAST ( - 97 AS INTEGER )
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-4460
SELECT - 24 + + 45 * ( + - COUNT( * ) ) AS col2, 41
----
-69
41

skipif mysql # not compatible
query II rowsort label-4460
SELECT - 24 + + 45 * ( + - COUNT ( * ) ) AS col2, 41
----
-69
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4461
SELECT + ( - 94 ) DIV 66 - - 34 * MAX( ALL 78 ) - 14 * + + SUM( - 31 ) AS col0
----
3085

skipif mysql # not compatible
query I rowsort label-4461
SELECT + ( - 94 ) / 66 - - 34 * MAX ( ALL 78 ) - 14 * + + SUM ( - 31 ) AS col0
----
3085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4462
SELECT - 41 + + CAST( NULL AS SIGNED ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4462
SELECT - 41 + + CAST ( NULL AS INTEGER ) * + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4463
SELECT 98 * - + 47 + - 22 * + + COUNT( * ), + 22 AS col1
----
-4628
22

skipif mysql # not compatible
query II rowsort label-4463
SELECT 98 * - + 47 + - 22 * + + COUNT ( * ), + 22 AS col1
----
-4628
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT - SUM( - - 36 ) * + 94 + 58 AS col0
----
-3326

skipif mysql # not compatible
query I rowsort label-4464
SELECT - SUM ( - - 36 ) * + 94 + 58 AS col0
----
-3326

query II rowsort
SELECT ALL - ( 2 ) AS col2, - 82 * - 33 * + 12
----
-2
32472

query I rowsort
SELECT ALL 87 * - ( + + COALESCE ( + ( 17 ), - + 17, - 19 ) ) * + 77
----
-113883

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4467
SELECT DISTINCT + 17 - 50 + - + ( - - COUNT( * ) ) DIV 38
----
-33

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT + 17 - 50 + - + ( - - COUNT ( * ) ) / 38
----
-33

query I rowsort
SELECT NULLIF ( - - 24, + 30 * - 83 * - 36 ) * - - 65 + + + 54 - - - 58 col1
----
1556

query I rowsort
SELECT 40 * + 27 * + 56
----
60480

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT DISTINCT - SUM( - 69 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT - SUM ( - 69 ) AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4471
SELECT + 27 * - 88 * + MAX( ALL - ( CAST( + 5 AS SIGNED ) ) ) + - 49 + + 54
----
11885

skipif mysql # not compatible
query I rowsort label-4471
SELECT + 27 * - 88 * + MAX ( ALL - ( CAST ( + 5 AS INTEGER ) ) ) + - 49 + + 54
----
11885

query I rowsort
SELECT 0 + + 20 AS col0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4473
SELECT DISTINCT - ( + 85 ) * - + CAST( NULL AS SIGNED ) / 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT - ( + 85 ) * - + CAST ( NULL AS INTEGER ) / 35
----
NULL

query I rowsort
SELECT DISTINCT + + 6 * 36
----
216

query I rowsort
SELECT ALL - + 44 + 56 * + 93 * + 91
----
473884

onlyif mysql # aggregate syntax: 
query II rowsort label-4476
SELECT 79 * COUNT( * ) AS col0, ( - 93 )
----
79
-93

skipif mysql # not compatible
query II rowsort label-4476
SELECT 79 * COUNT ( * ) AS col0, ( - 93 )
----
79
-93

query II rowsort
SELECT - 73 + 68 AS col0, + ( 43 ) * - ( - - 53 ) * + 70
----
-5
-159530

query I rowsort
SELECT - 17 * 19 + + 55 * 3 * 69 AS col1
----
11062

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT DISTINCT + COUNT( * ) + - + 23
----
-22

skipif mysql # not compatible
query I rowsort label-4479
SELECT DISTINCT + COUNT ( * ) + - + 23
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-4480
SELECT 49 * + - 87 AS col2, - 18 + - COUNT( * ) * + - 76 + COUNT( * )
----
-4263
59

skipif mysql # not compatible
query II rowsort label-4480
SELECT 49 * + - 87 AS col2, - 18 + - COUNT ( * ) * + - 76 + COUNT ( * )
----
-4263
59

query I rowsort
SELECT ALL + 60 + 1 col0
----
61

query I rowsort
SELECT DISTINCT ( - 22 ) + - 34
----
-56

query I rowsort
SELECT ALL - 21 * + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4484
SELECT ALL + COALESCE ( + + 48, - 96 ) + COUNT( * ) + 32 + + 73 - + - 26, 85 col0
----
180
85

skipif mysql # not compatible
query II rowsort label-4484
SELECT ALL + COALESCE ( + + 48, - 96 ) + COUNT ( * ) + 32 + + 73 - + - 26, 85 col0
----
180
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4485
SELECT ( - 28 ) DIV + 59 + - 78 DIV + 99 + + - SUM( + 63 ) + - 27 * + NULLIF ( - 2, + COUNT( * ) * - 91 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-4485
SELECT ( - 28 ) / + 59 + - 78 / + 99 + + - SUM ( + 63 ) + - 27 * + NULLIF ( - 2, + COUNT ( * ) * - 91 ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT CASE + + 71 WHEN + 43 * - 5 * - 96 + - 78 THEN - COUNT( * ) * + + 82 * + 74 END * 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT CASE + + 71 WHEN + 43 * - 5 * - 96 + - 78 THEN - COUNT ( * ) * + + 82 * + 74 END * 71 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 49 - 53 col1
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4488
SELECT ( + AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) ) - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT ( + AVG ( DISTINCT + CAST ( NULL AS REAL ) ) ) - 47 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4489
SELECT ALL CASE - 21 WHEN ( - 51 ) DIV 60 + - 62 THEN NULL WHEN + 51 THEN + ( 78 ) - - - COALESCE ( + 42, - ( - 2 ) ) + - 62 DIV + + 91 ELSE - 46 END * + 9 col1
----
-414

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL CASE - 21 WHEN ( - 51 ) / 60 + - 62 THEN NULL WHEN + 51 THEN + ( 78 ) - - - COALESCE ( + 42, - ( - 2 ) ) + - 62 / + + 91 ELSE - 46 END * + 9 col1
----
-414

query II rowsort
SELECT 85 AS col2, 10 - + 54 * + ( ( - - 49 ) ) col0
----
85
-2636

query I rowsort
SELECT 11 * + ( - CASE + - 27 WHEN + + 85 THEN NULL ELSE + 93 END ) col2
----
-1023

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4492
SELECT COUNT( * ) + + 44 + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4492
SELECT COUNT ( * ) + + 44 + + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT - 10 * - 15 - - + 20
----
170

query I rowsort
SELECT + 48 * 93 + + 8 AS col1
----
4472

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT 30 DIV + 25
----
1

skipif mysql # not compatible
query I rowsort label-4495
SELECT 30 / + 25
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4496
SELECT 65 DIV - 78 * + 34 DIV NULLIF ( SUM( - CASE + - 79 WHEN 89 THEN NULL ELSE + 24 END ), - 33 + - MIN( DISTINCT + + 41 ) ) * 26 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4496
SELECT 65 / - 78 * + 34 / NULLIF ( SUM ( - CASE + - 79 WHEN 89 THEN NULL ELSE + 24 END ), - 33 + - MIN ( DISTINCT + + 41 ) ) * 26 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT 12 * + COALESCE ( + + 5, - SUM( ALL + + 24 ) * + - 31, 4 * + - 29 + ( 83 ) ) + 1 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4497
SELECT 12 * + COALESCE ( + + 5, - SUM ( ALL + + 24 ) * + - 31, 4 * + - 29 + ( 83 ) ) + 1 AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4498
SELECT DISTINCT CAST( CASE - CASE - + CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN + 69 END WHEN + + 33 THEN + 10 / 89 + + COUNT( DISTINCT + + 20 ) END AS DECIMAL ) + - - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT DISTINCT CAST ( CASE - CASE - + CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN + 69 END WHEN + + 33 THEN + 10 / 89 + + COUNT ( DISTINCT + + 20 ) END AS REAL ) + - - 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4499
SELECT ( 40 ) + + SUM( DISTINCT 22 ) DIV 46 AS col0, CAST( - - 55 AS SIGNED )
----
40
55

skipif mysql # not compatible
query II rowsort label-4499
SELECT ( 40 ) + + SUM ( DISTINCT 22 ) / 46 AS col0, CAST ( - - 55 AS INTEGER )
----
40
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4500
SELECT COUNT( * ) * 96 DIV + ( 42 )
----
2

skipif mysql # not compatible
query I rowsort label-4500
SELECT COUNT ( * ) * 96 / + ( 42 )
----
2

query I rowsort
SELECT ALL 5 + - 80
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT - 74 - + + 85 + MIN( + 45 ) col2
----
-114

skipif mysql # not compatible
query I rowsort label-4502
SELECT - 74 - + + 85 + MIN ( + 45 ) col2
----
-114

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4503
SELECT - 82 AS col0, - CAST( NULL AS DECIMAL ) * - 54 - + 25 + - - 78
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-4503
SELECT - 82 AS col0, - CAST ( NULL AS REAL ) * - 54 - + 25 + - - 78
----
-82
NULL

query II rowsort
SELECT + + 48 AS col1, 48 AS col1
----
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4505
SELECT + 16 AS col0, 81 + + 29 + - CAST( 88 AS SIGNED ) col0
----
16
22

skipif mysql # not compatible
query II rowsort label-4505
SELECT + 16 AS col0, 81 + + 29 + - CAST ( 88 AS INTEGER ) col0
----
16
22

query I rowsort
SELECT DISTINCT - 24 + - 32 * - 25 * 79 AS col0
----
63176

query I rowsort
SELECT 94 * ( 11 ) * + 34
----
35156

onlyif mysql # DIV for integer division: 
query I rowsort label-4508
SELECT ALL - 75 + - - 6 + 79 * 80 DIV - 83
----
-145

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL - 75 + - - 6 + 79 * 80 / - 83
----
-145

query I rowsort
SELECT + 24 - - 68 AS col0
----
92

query I rowsort
SELECT DISTINCT - 83 * 54
----
-4482

onlyif mysql # DIV for integer division: 
query I rowsort label-4511
SELECT DISTINCT - 72 DIV - + ( - 6 ) col1
----
-12

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT - 72 / - + ( - 6 ) col1
----
-12

query I rowsort
SELECT ALL + + 16 + 96
----
112

query I rowsort
SELECT - ( - 16 ) AS col2
----
16

query I rowsort
SELECT ALL - 39 * 1 * - 59 AS col0
----
2301

query I rowsort
SELECT - 4 + + 86
----
82

query I rowsort
SELECT - 74 * 74
----
-5476

query I rowsort
SELECT 43 + 2 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT ALL MIN( - NULLIF ( + + 54, 19 * + - 55 ) ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL MIN ( - NULLIF ( + + 54, 19 * + - 55 ) ) AS col2
----
-54

query I rowsort
SELECT 89 + - 87 AS col2
----
2

query I rowsort
SELECT 24 - 16
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4521
SELECT - 30 DIV + SUM( ALL - + 25 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4521
SELECT - 30 / + SUM ( ALL - + 25 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4522
SELECT DISTINCT - 89 DIV + ( + 61 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT - 89 / + ( + 61 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT ALL CASE - 3 WHEN - 69 THEN MIN( DISTINCT 58 ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL CASE - 3 WHEN - 69 THEN MIN ( DISTINCT 58 ) ELSE NULL END col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4524
SELECT - 6 + + - 21 DIV + 90 - 76 AS col1, + 71 AS col0
----
-82
71

skipif mysql # not compatible
query II rowsort label-4524
SELECT - 6 + + - 21 / + 90 - 76 AS col1, + 71 AS col0
----
-82
71

query I rowsort
SELECT ALL + 62 * - + 7
----
-434

query I rowsort
SELECT - 82 + ( + 25 ) AS col1
----
-57

onlyif mysql # DIV for integer division: 
query II rowsort label-4527
SELECT ALL 39 col0, - 42 DIV - 13
----
39
3

skipif mysql # not compatible
query II rowsort label-4527
SELECT ALL 39 col0, - 42 / - 13
----
39
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT DISTINCT COALESCE ( COUNT( * ), COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT COALESCE ( COUNT ( * ), COUNT ( * ) )
----
1

query I rowsort
SELECT + 34 + 18 AS col2
----
52

query I rowsort
SELECT ALL COALESCE ( + COALESCE ( 10, - 95 ), - 7 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT DISTINCT CASE WHEN NOT NULL IN ( - COUNT( - 54 ), - 75 ) THEN + + 80 + + + 74 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT CASE WHEN NOT NULL IN ( - COUNT ( - 54 ), - 75 ) THEN + + 80 + + + 74 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 40 * + 19 * + - 21
----
15960

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT + MAX( + + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-4533
SELECT + MAX ( + + 54 )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT DISTINCT 94 * CAST( + + 36 AS SIGNED ) * 8 + + 86 + - + 23 + - + 42 - 33 * + 31
----
26070

skipif mysql # not compatible
query I rowsort label-4534
SELECT DISTINCT 94 * CAST ( + + 36 AS INTEGER ) * 8 + + 86 + - + 23 + - + 42 - 33 * + 31
----
26070

query I rowsort
SELECT DISTINCT + ( - + 22 ) AS col1
----
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4536
SELECT ALL - CAST( NULL AS DECIMAL ) * NULLIF ( - - 38, + 41 * - - 74 * 7 * + AVG ( - - 83 ) + + 59 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL - CAST ( NULL AS REAL ) * NULLIF ( - - 38, + 41 * - - 74 * 7 * + AVG ( - - 83 ) + + 59 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4537
SELECT CASE - 44 WHEN + + 53 / - 29 * + 98 + + 46 THEN + 22 + 59 ELSE NULLIF ( CASE + ( COUNT( * ) ) WHEN - 67 + - NULLIF ( - 59, 48 ) THEN NULL WHEN 92 + + + 72 THEN + + 20 WHEN + 30 THEN - 22 + MAX( DISTINCT NULLIF ( 48, + CAST( NULL AS SIGNED ) / 75 ) ) END, 0 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT CASE - 44 WHEN + + 53 / - 29 * + 98 + + 46 THEN + 22 + 59 ELSE NULLIF ( CASE + ( COUNT ( * ) ) WHEN - 67 + - NULLIF ( - 59, 48 ) THEN NULL WHEN 92 + + + 72 THEN + + 20 WHEN + 30 THEN - 22 + MAX ( DISTINCT NULLIF ( 48, + CAST ( NULL AS INTEGER ) / 75 ) ) END, 0 ) END AS col1
----
NULL

query II rowsort
SELECT ALL + 20 AS col0, - NULLIF ( - 28, 38 ) * 39 col2
----
20
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT DISTINCT + - COUNT( * ) * - + 12 + + 4 + - 33 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT + - COUNT ( * ) * - + 12 + + 4 + - 33 AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4540
SELECT ALL MIN( DISTINCT - 80 ) DIV + CAST( - ( + 58 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL MIN ( DISTINCT - 80 ) / + CAST ( - ( + 58 ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4541
SELECT ALL CAST( NULL AS SIGNED ) * - - 13 * - - CASE ( + SUM( DISTINCT 60 ) ) WHEN + + MAX( + 31 ) THEN - 11 ELSE NULL END + - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL CAST ( NULL AS INTEGER ) * - - 13 * - - CASE ( + SUM ( DISTINCT 60 ) ) WHEN + + MAX ( + 31 ) THEN - 11 ELSE NULL END + - 35 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4542
SELECT + + 64 + MIN( DISTINCT - 55 ) + + - COALESCE ( 56, CAST( 23 AS SIGNED ), COUNT( * ) + 39 ) + 20 + - 61 * COUNT( * ) + + 44 DIV + 75 * - 90 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-4542
SELECT + + 64 + MIN ( DISTINCT - 55 ) + + - COALESCE ( 56, CAST ( 23 AS INTEGER ), COUNT ( * ) + 39 ) + 20 + - 61 * COUNT ( * ) + + 44 / + 75 * - 90 AS col1
----
-88

query I rowsort
SELECT + 77 * 73 AS col1
----
5621

query II rowsort
SELECT - 11 col2, 35
----
-11
35

query I rowsort
SELECT - - 84 + - 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT ALL 14 * COUNT( * ) + + 28 + ( + - 10 ) + - 60 * 25 AS col0
----
-1468

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL 14 * COUNT ( * ) + + 28 + ( + - 10 ) + - 60 * 25 AS col0
----
-1468

query II rowsort
SELECT ALL + 99 AS col0, 58 + 41 * - + 73 AS col0
----
99
-2935

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT 23 * - NULLIF ( 78, + + 14 * + COUNT( * ) ) + + + 38 + - ( - 17 ) * - 3 * + - 25
----
-481

skipif mysql # not compatible
query I rowsort label-4548
SELECT 23 * - NULLIF ( 78, + + 14 * + COUNT ( * ) ) + + + 38 + - ( - 17 ) * - 3 * + - 25
----
-481

query I rowsort
SELECT + + 65 - 96 + + 51
----
20

query II rowsort
SELECT + 45 AS col0, 7 col0
----
45
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT - + COUNT( DISTINCT 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-4551
SELECT - + COUNT ( DISTINCT 99 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT + ( + MIN( + + 25 ) ) * 91
----
2275

skipif mysql # not compatible
query I rowsort label-4552
SELECT + ( + MIN ( + + 25 ) ) * 91
----
2275

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT - - COUNT( + 12 ) + + 64 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4553
SELECT - - COUNT ( + 12 ) + + 64 AS col2
----
65

query II rowsort
SELECT - 68 AS col0, + 95 + + 10
----
-68
105

query I rowsort
SELECT + 89 * + 31 AS col2
----
2759

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4556
SELECT ALL - 3 DIV - 22, - COUNT( ALL 10 ) AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-4556
SELECT ALL - 3 / - 22, - COUNT ( ALL 10 ) AS col1
----
0
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4557
SELECT ALL MIN( DISTINCT - ( - CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL MIN ( DISTINCT - ( - CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4558
SELECT ALL - CASE + 83 WHEN - 86 + + 81 THEN - 98 + + COUNT( * ) - - COALESCE ( CAST( NULL AS SIGNED ), + ( - 28 ) ) * + MAX( - - 34 ) + + 55 * - + COUNT( * ) END * + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL - CASE + 83 WHEN - 86 + + 81 THEN - 98 + + COUNT ( * ) - - COALESCE ( CAST ( NULL AS INTEGER ), + ( - 28 ) ) * + MAX ( - - 34 ) + + 55 * - + COUNT ( * ) END * + 50 AS col1
----
NULL

query I rowsort
SELECT + 22 * 60 AS col2
----
1320

onlyif mysql # DIV for integer division: 
query I rowsort label-4560
SELECT ALL + 41 + - 20 DIV + - ( - + 95 ) + - ( + 72 )
----
-31

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL + 41 + - 20 / + - ( - + 95 ) + - ( + 72 )
----
-31

query I rowsort
SELECT - 92 - + 27
----
-119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4562
SELECT ALL - COALESCE ( + + 43, COUNT( 99 ) DIV - + 96, 67 * 20 - - 96 * - SUM( - 57 ) ) + + + 3 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL - COALESCE ( + + 43, COUNT ( 99 ) / - + 96, 67 * 20 - - 96 * - SUM ( - 57 ) ) + + + 3 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT - 86 * - COUNT( DISTINCT - + 55 )
----
86

skipif mysql # not compatible
query I rowsort label-4563
SELECT - 86 * - COUNT ( DISTINCT - + 55 )
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4564
SELECT DISTINCT + NULLIF ( - ( - 59 ), - 73 ) DIV + 2 + - COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT + NULLIF ( - ( - 59 ), - 73 ) / + 2 + - COUNT ( * ) AS col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4565
SELECT ALL + 21 DIV + 22 * - 72 * - NULLIF ( - - COUNT( * ), COUNT( * ) ) + + + 76, 22 - 65 DIV - - 94 + - 79 AS col0
----
NULL
-57

skipif mysql # not compatible
query II rowsort label-4565
SELECT ALL + 21 / + 22 * - 72 * - NULLIF ( - - COUNT ( * ), COUNT ( * ) ) + + + 76, 22 - 65 / - - 94 + - 79 AS col0
----
NULL
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4566
SELECT + 54 DIV 26 + + 45 + - 56 * + 59 * 7 AS col1
----
-23081

skipif mysql # not compatible
query I rowsort label-4566
SELECT + 54 / 26 + + 45 + - 56 * + 59 * 7 AS col1
----
-23081

query I rowsort
SELECT - - 35 + - 90
----
-55

query II rowsort
SELECT + ( 93 ), - 8 col0
----
93
-8

query I rowsort
SELECT + - 78 * 86 + - 17 - + 39
----
-6764

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT DISTINCT + MAX( + + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT + MAX ( + + 7 )
----
7

query II rowsort
SELECT DISTINCT - + 95 * 77 AS col2, + 40
----
-7315
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT DISTINCT + - MAX( DISTINCT 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT + - MAX ( DISTINCT 33 )
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4573
SELECT ALL + 49 * 17 * - 39 * + - 80 * 65 - - 38 + 46 AS col1, + CASE - COUNT( * ) WHEN COUNT( * ) * 36 THEN NULL WHEN 69 THEN NULL ELSE - COUNT( - ( - 59 ) ) + 25 * + ( - 74 ) END + + MAX( DISTINCT - 88 )
----
168932484
-1939

skipif mysql # not compatible
query II rowsort label-4573
SELECT ALL + 49 * 17 * - 39 * + - 80 * 65 - - 38 + 46 AS col1, + CASE - COUNT ( * ) WHEN COUNT ( * ) * 36 THEN NULL WHEN 69 THEN NULL ELSE - COUNT ( - ( - 59 ) ) + 25 * + ( - 74 ) END + + MAX ( DISTINCT - 88 )
----
168932484
-1939

query I rowsort
SELECT ALL + NULLIF ( - - 29, - + 22 - ( ( + + 34 ) ) )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-4575
SELECT + + 13 * - - COUNT( * ) + 36 AS col0, 84
----
49
84

skipif mysql # not compatible
query II rowsort label-4575
SELECT + + 13 * - - COUNT ( * ) + 36 AS col0, 84
----
49
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT + NULLIF ( - + 41, + + COUNT( * ) ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-4576
SELECT + NULLIF ( - + 41, + + COUNT ( * ) ) AS col1
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4577
SELECT DISTINCT COUNT( * ) DIV - COUNT( DISTINCT + 89 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT COUNT ( * ) / - COUNT ( DISTINCT + 89 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT ( - 91 ) * - 61 + - + 82 + - 54 * - COUNT( * )
----
5523

skipif mysql # not compatible
query I rowsort label-4578
SELECT ( - 91 ) * - 61 + - + 82 + - 54 * - COUNT ( * )
----
5523

query I rowsort
SELECT 3 - - 89 AS col1
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4580
SELECT + 27 * + 87 - + 32 DIV 29 + 92 DIV - 82 col0
----
2347

skipif mysql # not compatible
query I rowsort label-4580
SELECT + 27 * + 87 - + 32 / 29 + 92 / - 82 col0
----
2347

onlyif mysql # aggregate syntax: 
query III rowsort label-4581
SELECT ALL 77 AS col0, 21 + COALESCE ( + - MAX( - 45 ), - 2 ) AS col1, + - 34 - + 7 + - + 14 col1
----
77
66
-55

skipif mysql # not compatible
query III rowsort label-4581
SELECT ALL 77 AS col0, 21 + COALESCE ( + - MAX ( - 45 ), - 2 ) AS col1, + - 34 - + 7 + - + 14 col1
----
77
66
-55

query I rowsort
SELECT DISTINCT 23 * 67 AS col0
----
1541

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4583
SELECT 40 - + ( - 78 ) + - 33 + + 62 + + - 41 * CAST( + - 58 AS SIGNED )
----
2525

skipif mysql # not compatible
query I rowsort label-4583
SELECT 40 - + ( - 78 ) + - 33 + + 62 + + - 41 * CAST ( + - 58 AS INTEGER )
----
2525

query I rowsort
SELECT DISTINCT 58 * + + 19 col0
----
1102

query I rowsort
SELECT ALL ( - 82 ) + - - 25
----
-57

query I rowsort
SELECT ( - - 7 ) + + 89 * - 66 + 57 AS col0
----
-5810

query I rowsort
SELECT 49 - - 74
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT COUNT( * ) + 76 * ( - 81 ) col0
----
-6155

skipif mysql # not compatible
query I rowsort label-4588
SELECT COUNT ( * ) + 76 * ( - 81 ) col0
----
-6155

query I rowsort
SELECT 59 - + CASE - 92 WHEN - 76 - + 55 THEN - NULLIF ( - 59, + - 31 ) / 10 ELSE NULL END + - 50 * + 11 + - 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT ALL - 72 + + 69 + SUM( ALL 36 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL - 72 + + 69 + SUM ( ALL 36 ) AS col0
----
33

query I rowsort
SELECT ALL ( 45 ) + - 33 + - 80
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-4592
SELECT 39 + + 69 - + - COALESCE ( + 57, 5 * + + 56, - - 72 ) DIV + 81 * + - 27
----
108

skipif mysql # not compatible
query I rowsort label-4592
SELECT 39 + + 69 - + - COALESCE ( + 57, 5 * + + 56, - - 72 ) / + 81 * + - 27
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4593
SELECT ALL COUNT( 40 ) + 49 DIV + 61 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL COUNT ( 40 ) + 49 / + 61 AS col2
----
1

query I rowsort
SELECT DISTINCT 16 + + 32
----
48

query I rowsort
SELECT ALL - 82 + 35 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT 58 + + 16 + - + COUNT( ALL 50 ) - + 14 + + + 66 + + 94 * 19 + + COUNT( * ) / + 86 * - + CASE - 32 WHEN + 11 THEN + 83 END - - - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-4596
SELECT 58 + + 16 + - + COUNT ( ALL 50 ) - + 14 + + + 66 + + 94 * 19 + + COUNT ( * ) / + 86 * - + CASE - 32 WHEN + 11 THEN + 83 END - - - 11
----
NULL

query I rowsort
SELECT ALL 51 + - - 77
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4598
SELECT 68 + CAST( - 61 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-4598
SELECT 68 + CAST ( - 61 AS INTEGER )
----
7

query I rowsort
SELECT ( - 13 ) * + ( - 57 ) AS col1
----
741

query I rowsort
SELECT 74 * 85 * + + 16 * - + 42
----
-4226880

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT ALL + 37 * + COUNT( + 30 ) col1
----
37

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL + 37 * + COUNT ( + 30 ) col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT - SUM( + 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-4602
SELECT - SUM ( + 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT 13 + 66 + + 53 * + 12 + - + 88 + - COUNT( * ) * + 7 AS col1
----
620

skipif mysql # not compatible
query I rowsort label-4603
SELECT 13 + 66 + + 53 * + 12 + - + 88 + - COUNT ( * ) * + 7 AS col1
----
620

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4604
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT - CAST ( NULL AS REAL ) + - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT - SUM( ( - COALESCE ( + 69, 27 ) ) ) * + 68 + 62 col0
----
4754

skipif mysql # not compatible
query I rowsort label-4605
SELECT - SUM ( ( - COALESCE ( + 69, 27 ) ) ) * + 68 + 62 col0
----
4754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4606
SELECT ALL CAST( NULL AS SIGNED ) * + 83 + CAST( + ( - MIN( + + 73 ) ) AS SIGNED ) * + + 27 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL CAST ( NULL AS INTEGER ) * + 83 + CAST ( + ( - MIN ( + + 73 ) ) AS INTEGER ) * + + 27 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4607
SELECT ALL 42 * - 31 + + - 78 * - CAST( - MAX( DISTINCT + - ( 6 ) ) AS SIGNED ) + + 74 * - 9
----
-1500

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL 42 * - 31 + + - 78 * - CAST ( - MAX ( DISTINCT + - ( 6 ) ) AS INTEGER ) + + 74 * - 9
----
-1500

query I rowsort
SELECT 69 + 93
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT - 9 * + + 34 - - 6 - - + COUNT( * ) + - + ( 91 ) + + 87 AS col0
----
-303

skipif mysql # not compatible
query I rowsort label-4609
SELECT - 9 * + + 34 - - 6 - - + COUNT ( * ) + - + ( 91 ) + + 87 AS col0
----
-303

query I rowsort
SELECT DISTINCT + 93 * + - 17 AS col1
----
-1581

query I rowsort
SELECT NULLIF ( + - 58, - + 22 ) * - - 1
----
-58

query I rowsort
SELECT ALL + 60 * - 71
----
-4260

query II rowsort
SELECT + - 41 AS col1, 53 * 41 AS col0
----
-41
2173

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT ALL - - COUNT( - 36 )
----
1

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL - - COUNT ( - 36 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4615
SELECT 87 / + 74 * - ( + 9 ) / + CAST( NULL AS SIGNED ) * - 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4615
SELECT 87 / + 74 * - ( + 9 ) / + CAST ( NULL AS INTEGER ) * - 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT ALL + NULLIF ( + 62, + + 57 * + - 18 * + - MIN( - + NULLIF ( - 98, - + 2 ) ) + - ( - - 53 ) ) * MIN( + 82 ) AS col2
----
5084

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL + NULLIF ( + 62, + + 57 * + - 18 * + - MIN ( - + NULLIF ( - 98, - + 2 ) ) + - ( - - 53 ) ) * MIN ( + 82 ) AS col2
----
5084

onlyif mysql # aggregate syntax: 
query II rowsort label-4617
SELECT 24 + - - 96 * - + CASE 18 WHEN - 81 / - COUNT( * ) THEN + + 45 ELSE NULL END, - 0 col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4617
SELECT 24 + - - 96 * - + CASE 18 WHEN - 81 / - COUNT ( * ) THEN + + 45 ELSE NULL END, - 0 col2
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4618
SELECT NULLIF ( + - COUNT( * ), 8 * 71 * - - 59 ) DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-4618
SELECT NULLIF ( + - COUNT ( * ), 8 * 71 * - - 59 ) / + 65
----
0

query I rowsort
SELECT 4 * 36 * - 75 AS col1
----
-10800

query I rowsort
SELECT ALL 17 + - + 38
----
-21

query I rowsort
SELECT DISTINCT ( + 27 ) + 9
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4622
SELECT CAST( + + 81 AS SIGNED ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4622
SELECT CAST ( + + 81 AS INTEGER ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4623
SELECT DISTINCT + 68 DIV + - 81
----
0

skipif mysql # not compatible
query I rowsort label-4623
SELECT DISTINCT + 68 / + - 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT ALL - NULLIF ( - COUNT( * ), 32 ) + - - 35 * + - 50
----
-1749

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL - NULLIF ( - COUNT ( * ), 32 ) + - - 35 * + - 50
----
-1749

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4625
SELECT CAST( NULL AS DECIMAL ) / + 80 AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4625
SELECT CAST ( NULL AS REAL ) / + 80 AS col2, COUNT ( * )
----
NULL
1

query I rowsort
SELECT ALL + 41 + 26 * - 69 AS col0
----
-1753

onlyif mysql # aggregate syntax: 
query II rowsort label-4627
SELECT 84 * - ( 20 ) * + 45 * - 77, 83 + - - COUNT( * ) AS col2
----
5821200
84

skipif mysql # not compatible
query II rowsort label-4627
SELECT 84 * - ( 20 ) * + 45 * - 77, 83 + - - COUNT ( * ) AS col2
----
5821200
84

query I rowsort
SELECT ALL 82 - + + 79 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT DISTINCT + 80 - - ( + 32 ) + + + 99 * + COUNT( * ) AS col1
----
211

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT + 80 - - ( + 32 ) + + + 99 * + COUNT ( * ) AS col1
----
211

query I rowsort
SELECT ALL + 16 * + 95
----
1520

query I rowsort
SELECT 7 - - - 75 * - 29
----
2182

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT ALL + MIN( 39 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL + MIN ( 39 ) AS col0
----
39

query I rowsort
SELECT + - ( - 20 ) AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4634
SELECT 84 * - 85 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT 84 * - 85 + + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL 71 * + - 83 * + 99
----
-583407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4636
SELECT + 59 + + MAX( NULLIF ( 97, - 36 + - 21 + + 44 ) ) + CAST( + 25 AS SIGNED )
----
181

skipif mysql # not compatible
query I rowsort label-4636
SELECT + 59 + + MAX ( NULLIF ( 97, - 36 + - 21 + + 44 ) ) + CAST ( + 25 AS INTEGER )
----
181

query I rowsort
SELECT - - 12 * 60 * - 15 * - - 17 - - + 95
----
-183505

query I rowsort
SELECT - - 95 * - 10 * + - 71
----
67450

query I rowsort
SELECT - 42 - 27
----
-69

query II rowsort
SELECT - 82 * 60 col1, + 43 * - - 81 col1
----
-4920
3483

query I rowsort
SELECT ALL + 20 * - 14 AS col1
----
-280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4642
SELECT DISTINCT 56 * - - 52 + + CASE + COUNT( * ) WHEN + 62 THEN - CASE + - ( - - 16 ) WHEN 72 * - 11 THEN - MIN( DISTINCT + + 47 ) + + NULLIF ( + 97, - 84 ) + - 44 + - 28 + COUNT( * ) * COALESCE ( + 13, + 31 * - ( - + CAST( 27 AS SIGNED ) ) + 98 ) * NULLIF ( 43, - SUM( - ( 75 ) ) ) WHEN 61 * + 80 THEN NULL END * - 55 WHEN + COALESCE ( + 61, + ( + 37 ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT 56 * - - 52 + + CASE + COUNT ( * ) WHEN + 62 THEN - CASE + - ( - - 16 ) WHEN 72 * - 11 THEN - MIN ( DISTINCT + + 47 ) + + NULLIF ( + 97, - 84 ) + - 44 + - 28 + COUNT ( * ) * COALESCE ( + 13, + 31 * - ( - + CAST ( 27 AS INTEGER ) ) + 98 ) * NULLIF ( 43, - SUM ( - ( 75 ) ) ) WHEN 61 * + 80 THEN NULL END * - 55 WHEN + COALESCE ( + 61, + ( + 37 ) ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT DISTINCT - COALESCE ( + 78, - 15 + + 50 DIV - + 47 * + 36 + 3 ) * + 99
----
-7722

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT - COALESCE ( + 78, - 15 + + 50 / - + 47 * + 36 + 3 ) * + 99
----
-7722

onlyif mysql # DIV for integer division: 
query I rowsort label-4644
SELECT ALL - - 2 DIV + 67 * 94
----
0

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL - - 2 / + 67 * 94
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4645
SELECT - 31 DIV - + 72 + - 82 * - + 51 AS col0, MIN( + 48 ) AS col2
----
4182
48

skipif mysql # not compatible
query II rowsort label-4645
SELECT - 31 / - + 72 + - 82 * - + 51 AS col0, MIN ( + 48 ) AS col2
----
4182
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT DISTINCT + - CAST( 50 AS SIGNED ) * + 75 + + 22 - + 90 + - 28 + + + ( - 57 )
----
-3903

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT + - CAST ( 50 AS INTEGER ) * + 75 + + 22 - + 90 + - 28 + + + ( - 57 )
----
-3903

onlyif mysql # aggregate syntax: 
query II rowsort label-4647
SELECT ALL - 82 * - 27 + 6 AS col0, NULLIF ( + 20, - NULLIF ( 26, + + COUNT( * ) ) ) * + COUNT( * ) + - + 5 * + 73 AS col2
----
2220
-345

skipif mysql # not compatible
query II rowsort label-4647
SELECT ALL - 82 * - 27 + 6 AS col0, NULLIF ( + 20, - NULLIF ( 26, + + COUNT ( * ) ) ) * + COUNT ( * ) + - + 5 * + 73 AS col2
----
2220
-345

query I rowsort
SELECT - 47 + + ( - + 2 ) + 8 * 33 - 50
----
165

query I rowsort
SELECT - 35 * + 29 + - 9
----
-1024

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT - COUNT( * ) * - 86 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4650
SELECT - COUNT ( * ) * - 86 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT DISTINCT - COUNT( * ) + + + 36 + + - 42
----
-7

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT - COUNT ( * ) + + + 36 + + - 42
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4652
SELECT ALL + CAST( 49 AS SIGNED ) * - 15 + 19 + - + COUNT( * ) DIV + 92 AS col0
----
-716

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL + CAST ( 49 AS INTEGER ) * - 15 + 19 + - + COUNT ( * ) / + 92 AS col0
----
-716

onlyif mysql # aggregate syntax: 
query II rowsort label-4653
SELECT ALL 42, COUNT( * ) AS col2
----
42
1

skipif mysql # not compatible
query II rowsort label-4653
SELECT ALL 42, COUNT ( * ) AS col2
----
42
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT - 70 + ( - COUNT( * ) ) * 7
----
-77

skipif mysql # not compatible
query I rowsort label-4654
SELECT - 70 + ( - COUNT ( * ) ) * 7
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT ALL - ( - - COUNT( * ) ) + - MAX( DISTINCT + 24 )
----
-25

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL - ( - - COUNT ( * ) ) + - MAX ( DISTINCT + 24 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL + SUM( ALL - 9 ) * 91
----
-819

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL + SUM ( ALL - 9 ) * 91
----
-819

query I rowsort
SELECT - 34 + + 95
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4658
SELECT + COUNT( * ) - - 68 + - + 59, + 87 * + 85 AS col2
----
10
7395

skipif mysql # not compatible
query II rowsort label-4658
SELECT + COUNT ( * ) - - 68 + - + 59, + 87 * + 85 AS col2
----
10
7395

query I rowsort
SELECT + 98 * - + 27
----
-2646

query I rowsort
SELECT - 10 + 87
----
77

query I rowsort
SELECT + 16 - 76 + 27 AS col1
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-4662
SELECT ALL 21 DIV 47 * 0
----
0

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL 21 / 47 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT - 27 * + ( + + SUM( ALL + 87 ) )
----
-2349

skipif mysql # not compatible
query I rowsort label-4663
SELECT - 27 * + ( + + SUM ( ALL + 87 ) )
----
-2349

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4664
SELECT + ( - 88 ) + COUNT( * ) + 39 DIV + - 36 + 60 * 99
----
5852

skipif mysql # not compatible
query I rowsort label-4664
SELECT + ( - 88 ) + COUNT ( * ) + 39 / + - 36 + 60 * 99
----
5852

query II rowsort
SELECT DISTINCT 56 * - 52 * NULLIF ( - - 42, - 45 ), 14 + - 65 AS col2
----
-122304
-51

query I rowsort
SELECT + 62 * - - 57 AS col1
----
3534

query I rowsort
SELECT + - 56 + + 77
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-4668
SELECT ALL - 51 DIV 56 * + 71 col1
----
0

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL - 51 / 56 * + 71 col1
----
0

query I rowsort
SELECT ALL 33 - + 9 * - - 71 * + 0 - + 77 - + - ( - 71 ) - 80 AS col0
----
-195

query II rowsort
SELECT DISTINCT - 18 * + 76 * + - 85, - ( + + 86 ) AS col2
----
116280
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT + - 7 + + + MIN( DISTINCT - + 69 )
----
-76

skipif mysql # not compatible
query I rowsort label-4671
SELECT + - 7 + + + MIN ( DISTINCT - + 69 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT ALL + MIN( ALL 30 )
----
30

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL + MIN ( ALL 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT + 0 * + 74 + + COUNT( + COALESCE ( + 6, - 27 + - - 2 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4673
SELECT + 0 * + 74 + + COUNT ( + COALESCE ( + 6, - 27 + - - 2 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT + - COUNT( * ) + + 81
----
80

skipif mysql # not compatible
query I rowsort label-4674
SELECT + - COUNT ( * ) + + 81
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT + COUNT( * ) + + 57 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4675
SELECT + COUNT ( * ) + + 57 AS col0
----
58

query I rowsort
SELECT + 57 * + 66 AS col1
----
3762

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT - - CASE + 82 WHEN - + COUNT( * ) * COUNT( * ) * + 10 THEN NULL ELSE - CASE 62 WHEN + - 86 + - 46 THEN COALESCE ( 19, + 74 ) / - 7 WHEN + COUNT( * ) * - 3 * + + 97 - + + 68 - + 39 * - 75 + - - AVG ( + + 72 ) THEN NULLIF ( + 25, - COUNT( * ) * + 68 + 56 ) ELSE NULL END * + 47 + 29 END * + 31 + 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4677
SELECT - - CASE + 82 WHEN - + COUNT ( * ) * COUNT ( * ) * + 10 THEN NULL ELSE - CASE 62 WHEN + - 86 + - 46 THEN COALESCE ( 19, + 74 ) / - 7 WHEN + COUNT ( * ) * - 3 * + + 97 - + + 68 - + 39 * - 75 + - - AVG ( + + 72 ) THEN NULLIF ( + 25, - COUNT ( * ) * + 68 + 56 ) ELSE NULL END * + 47 + 29 END * + 31 + 49 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT + - SUM( DISTINCT + 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-4678
SELECT + - SUM ( DISTINCT + 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT CASE COALESCE ( - 21, + 15, - + 58 ) WHEN + - COALESCE ( + 63, - - MIN( ALL 51 ) * + + 63 - - - 82 ) / COUNT( * ) THEN - 47 / 71 * + 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4679
SELECT CASE COALESCE ( - 21, + 15, - + 58 ) WHEN + - COALESCE ( + 63, - - MIN ( ALL 51 ) * + + 63 - - - 82 ) / COUNT ( * ) THEN - 47 / 71 * + 53 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT + 89 + + - 61 + + 35 * - - MIN( - 27 ) AS col1
----
-917

skipif mysql # not compatible
query I rowsort label-4680
SELECT + 89 + + - 61 + + 35 * - - MIN ( - 27 ) AS col1
----
-917

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT DISTINCT + COALESCE ( + COUNT( * ), - + 75 * + 64 * 95 )
----
1

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT + COALESCE ( + COUNT ( * ), - + 75 * + 64 * 95 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4682
SELECT - 62 DIV + CAST( + - 2 AS SIGNED ) - 67 + 48 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4682
SELECT - 62 / + CAST ( + - 2 AS INTEGER ) - 67 + 48 AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-4683
SELECT + MIN( 62 ) - + + 57 AS col2, + 53 * 80 + 7 * - - 74 * + + ( + - 9 ) * + 98
----
5
-452636

skipif mysql # not compatible
query II rowsort label-4683
SELECT + MIN ( 62 ) - + + 57 AS col2, + 53 * 80 + 7 * - - 74 * + + ( + - 9 ) * + 98
----
5
-452636

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT + COUNT( - + 75 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4684
SELECT + COUNT ( - + 75 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT 77 * - + COUNT( * ) + + 70 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-4685
SELECT 77 * - + COUNT ( * ) + + 70 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT DISTINCT - COUNT( * ) * - 49 + 26
----
75

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT - COUNT ( * ) * - 49 + 26
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT ALL + COUNT( DISTINCT - 63 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL + COUNT ( DISTINCT - 63 ) AS col1
----
1

query II rowsort
SELECT - NULLIF ( + + 33, 64 + - 35 - + + 38 ) + 62, - 77 col0
----
29
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4689
SELECT + CAST( NULL AS SIGNED ) AS col2, - 31
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-4689
SELECT + CAST ( NULL AS INTEGER ) AS col2, - 31
----
NULL
-31

query I rowsort
SELECT DISTINCT + 45 * 97 * - - 89 + 73 * + - 31 AS col2
----
386222

query I rowsort
SELECT ALL ( + 84 ) * - 25 * - NULLIF ( + 63, + 87 * 56 * - 87 )
----
132300

query I rowsort
SELECT ALL + 45 * - 45 * - + 0 - 43
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4693
SELECT CASE - 28 WHEN + 70 THEN - CAST( NULL AS SIGNED ) + + MIN( DISTINCT - 60 ) WHEN + CAST( NULL AS SIGNED ) / - 9 + - 23 - - + 17 * + COUNT( * ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN NULL END AS col1, - COUNT( ALL - - 63 ) * + + 68
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-4693
SELECT CASE - 28 WHEN + 70 THEN - CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT - 60 ) WHEN + CAST ( NULL AS INTEGER ) / - 9 + - 23 - - + 17 * + COUNT ( * ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN NULL END AS col1, - COUNT ( ALL - - 63 ) * + + 68
----
NULL
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4694
SELECT + 95 AS col0, CAST( CASE + + 79 WHEN + + COUNT( - CASE - NULLIF ( + 80, 8 ) WHEN + 23 + 25 + - - 83 THEN 69 ELSE NULL END ) THEN + 8 ELSE - 65 END AS SIGNED )
----
95
-65

skipif mysql # not compatible
query II rowsort label-4694
SELECT + 95 AS col0, CAST ( CASE + + 79 WHEN + + COUNT ( - CASE - NULLIF ( + 80, 8 ) WHEN + 23 + 25 + - - 83 THEN 69 ELSE NULL END ) THEN + 8 ELSE - 65 END AS INTEGER )
----
95
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL + ( - + MAX( ALL + 1 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL + ( - + MAX ( ALL + 1 ) )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4696
SELECT - CAST( NULL AS DECIMAL ) + - - 89 + - 67 + + AVG ( + 1 ) + - 85 * - + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT - CAST ( NULL AS REAL ) + - - 89 + - 67 + + AVG ( + 1 ) + - 85 * - + 33
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4697
SELECT COUNT( * ) AS col1, + 72 * - CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4697
SELECT COUNT ( * ) AS col1, + 72 * - CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4698
SELECT + 73 * - 86 * 88 * 15 * - CAST( - 25 AS SIGNED ) + + - 88 AS col0, - 98
----
-207174088
-98

skipif mysql # not compatible
query II rowsort label-4698
SELECT + 73 * - 86 * 88 * 15 * - CAST ( - 25 AS INTEGER ) + + - 88 AS col0, - 98
----
-207174088
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4699
SELECT ALL - 24 * + NULLIF ( - + CAST( NULL AS SIGNED ), - 68 * NULLIF ( + + COUNT( * ), - COUNT( * ) ) * - 31 + - 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL - 24 * + NULLIF ( - + CAST ( NULL AS INTEGER ), - 68 * NULLIF ( + + COUNT ( * ), - COUNT ( * ) ) * - 31 + - 89 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4700
SELECT - 92 + + - 29 * + 2 DIV + COUNT( * ) + - 18 * - 36
----
498

skipif mysql # not compatible
query I rowsort label-4700
SELECT - 92 + + - 29 * + 2 / + COUNT ( * ) + - 18 * - 36
----
498

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4701
SELECT DISTINCT + COALESCE ( + 0, + + 81 * + 47 + - CASE - CAST( - 96 AS SIGNED ) WHEN + 37 THEN COUNT( * ) WHEN + COALESCE ( + - CAST( NULL AS DECIMAL ), 98, + - COUNT( * ) - + 76 ) THEN NULL ELSE NULLIF ( + 56, + 79 ) END ) * - 40 - - 57 + + COUNT( - - 20 ) + - COUNT( * ) * - - 61 * + 10 DIV - 2
----
363

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT + COALESCE ( + 0, + + 81 * + 47 + - CASE - CAST ( - 96 AS INTEGER ) WHEN + 37 THEN COUNT ( * ) WHEN + COALESCE ( + - CAST ( NULL AS REAL ), 98, + - COUNT ( * ) - + 76 ) THEN NULL ELSE NULLIF ( + 56, + 79 ) END ) * - 40 - - 57 + + COUNT ( - - 20 ) + - COUNT ( * ) * - - 61 * + 10 / - 2
----
363

query II rowsort
SELECT - 61 AS col2, 81 AS col1
----
-61
81

query II rowsort
SELECT - 64 AS col0, 54
----
-64
54

query I rowsort
SELECT ALL ( 68 ) col2
----
68

query I rowsort
SELECT - 1 - + 42
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL COUNT( - 38 )
----
1

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL COUNT ( - 38 )
----
1

query I rowsort
SELECT - + 50 - - 44
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4708
SELECT ALL - NULLIF ( + 18, + - 14 + + CAST( + + 8 AS SIGNED ) ) + - 27 * + + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL - NULLIF ( + 18, + - 14 + + CAST ( + + 8 AS INTEGER ) ) + - 27 * + + COUNT ( * )
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4709
SELECT DISTINCT - + 69 + 77 DIV - + 36 col2
----
-71

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT - + 69 + 77 / - + 36 col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4710
SELECT - MAX( DISTINCT - - CAST( + 79 AS SIGNED ) ) - 44, 19 * - + 8 * - - 16 AS col1
----
-123
-2432

skipif mysql # not compatible
query II rowsort label-4710
SELECT - MAX ( DISTINCT - - CAST ( + 79 AS INTEGER ) ) - 44, 19 * - + 8 * - - 16 AS col1
----
-123
-2432

onlyif mysql # DIV for integer division: 
query I rowsort label-4711
SELECT + 86 DIV - 72
----
-1

skipif mysql # not compatible
query I rowsort label-4711
SELECT + 86 / - 72
----
-1

query I rowsort
SELECT ALL - 12 + + 69
----
57

query I rowsort
SELECT ALL 60 + + 78
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-4714
SELECT 58 AS col1, 4 * 6 + - COUNT( ALL - + 80 ) AS col1
----
58
23

skipif mysql # not compatible
query II rowsort label-4714
SELECT 58 AS col1, 4 * 6 + - COUNT ( ALL - + 80 ) AS col1
----
58
23

query I rowsort
SELECT 3 * - 78 AS col0
----
-234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4716
SELECT - MAX( - 57 ) DIV + - 1 + - 95 DIV - MAX( - 32 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-4716
SELECT - MAX ( - 57 ) / + - 1 + - 95 / - MAX ( - 32 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query III rowsort label-4717
SELECT + COUNT( * ) AS col1, - 64 AS col0, 64 * - COUNT( * )
----
1
-64
-64

skipif mysql # not compatible
query III rowsort label-4717
SELECT + COUNT ( * ) AS col1, - 64 AS col0, 64 * - COUNT ( * )
----
1
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT MIN( DISTINCT - - 26 ) + ( + 21 )
----
47

skipif mysql # not compatible
query I rowsort label-4718
SELECT MIN ( DISTINCT - - 26 ) + ( + 21 )
----
47

query I rowsort
SELECT DISTINCT 24 * - 49
----
-1176

query I rowsort
SELECT ALL 47 - - 92 AS col1
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4721
SELECT 33 * + 99, + CASE + - 39 WHEN + 28 THEN + 86 ELSE CAST( NULL AS SIGNED ) END / + ( + - 28 ) AS col1
----
3267
NULL

skipif mysql # not compatible
query II rowsort label-4721
SELECT 33 * + 99, + CASE + - 39 WHEN + 28 THEN + 86 ELSE CAST ( NULL AS INTEGER ) END / + ( + - 28 ) AS col1
----
3267
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT MAX( DISTINCT + 69 ) * - 78
----
-5382

skipif mysql # not compatible
query I rowsort label-4722
SELECT MAX ( DISTINCT + 69 ) * - 78
----
-5382

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT 39 + + 68 - + 16 * - + ( - + COUNT( * ) ) * + 32
----
-405

skipif mysql # not compatible
query I rowsort label-4723
SELECT 39 + + 68 - + 16 * - + ( - + COUNT ( * ) ) * + 32
----
-405

onlyif mysql # DIV for integer division: 
query I rowsort label-4724
SELECT 74 DIV 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4724
SELECT 74 / 87 AS col0
----
0

query I rowsort
SELECT DISTINCT 46 * 45 AS col2
----
2070

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT - 88 * COUNT( * ) * + 78 + - COUNT( * )
----
-6865

skipif mysql # not compatible
query I rowsort label-4726
SELECT - 88 * COUNT ( * ) * + 78 + - COUNT ( * )
----
-6865

query I rowsort
SELECT ALL 81 * + + ( 78 ) AS col0
----
6318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4728
SELECT DISTINCT 10 * 73 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT 10 * 73 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT 74 + - 74 DIV + 14
----
69

skipif mysql # not compatible
query I rowsort label-4729
SELECT 74 + - 74 / + 14
----
69

query I rowsort
SELECT ALL 86 * NULLIF ( - 49, + 90 )
----
-4214

onlyif mysql # aggregate syntax: 
query II rowsort label-4731
SELECT DISTINCT 4 * 48 * - - CASE - COUNT( * ) WHEN - + 41 THEN - ( + 18 ) END AS col2, 91 AS col1
----
NULL
91

skipif mysql # not compatible
query II rowsort label-4731
SELECT DISTINCT 4 * 48 * - - CASE - COUNT ( * ) WHEN - + 41 THEN - ( + 18 ) END AS col2, 91 AS col1
----
NULL
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4732
SELECT ALL + COUNT( * ) DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL + COUNT ( * ) / - 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT 64 + + MAX( DISTINCT + - 64 ) + - 77 * + + ( + - 67 ) col1
----
5159

skipif mysql # not compatible
query I rowsort label-4733
SELECT 64 + + MAX ( DISTINCT + - 64 ) + - 77 * + + ( + - 67 ) col1
----
5159

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4734
SELECT - - ( ( + COALESCE ( - 42, - 37, + 29 + - 78 ) ) ) AS col1, COUNT( * ) + - ( 7 ) DIV + 72 * + - 74 + 56 AS col1
----
-42
57

skipif mysql # not compatible
query II rowsort label-4734
SELECT - - ( ( + COALESCE ( - 42, - 37, + 29 + - 78 ) ) ) AS col1, COUNT ( * ) + - ( 7 ) / + 72 * + - 74 + 56 AS col1
----
-42
57

query I rowsort
SELECT + 68 - + 53 * - 4 - 86 AS col0
----
194

onlyif mysql # aggregate syntax: 
query II rowsort label-4736
SELECT + 12 + - COUNT( * ) AS col2, + COUNT( * )
----
11
1

skipif mysql # not compatible
query II rowsort label-4736
SELECT + 12 + - COUNT ( * ) AS col2, + COUNT ( * )
----
11
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT CAST( + 40 AS SIGNED ) + ( + 0 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4737
SELECT CAST ( + 40 AS INTEGER ) + ( + 0 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT DISTINCT - MIN( + 13 ) + - 75
----
-88

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT - MIN ( + 13 ) + - 75
----
-88

query I rowsort
SELECT 61 + - ( 99 )
----
-38

query I rowsort
SELECT DISTINCT + 75 + 75 AS col2
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT COUNT( 46 )
----
1

skipif mysql # not compatible
query I rowsort label-4741
SELECT COUNT ( 46 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4742
SELECT DISTINCT + + 79 + - COUNT( * ) * + 58 + - COUNT( * ) + - 49 DIV + 52 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT + + 79 + - COUNT ( * ) * + 58 + - COUNT ( * ) + - 49 / + 52 AS col0
----
20

query I rowsort
SELECT 18 + - + 36 AS col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4744
SELECT + 42 DIV 19 * - - 99 * - 58 AS col1
----
-11484

skipif mysql # not compatible
query I rowsort label-4744
SELECT + 42 / 19 * - - 99 * - 58 AS col1
----
-11484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4745
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + COALESCE ( - - 4, - + 52 + + 80 + MIN( - 79 ) ) * - 89 * - 53 + + + 32 * - CASE - 49 WHEN 50 * - - 47 + MAX( DISTINCT - 38 ) THEN 12 + 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + COALESCE ( - - 4, - + 52 + + 80 + MIN ( - 79 ) ) * - 89 * - 53 + + + 32 * - CASE - 49 WHEN 50 * - - 47 + MAX ( DISTINCT - 38 ) THEN 12 + 8 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT COUNT( * ) * + - SUM( DISTINCT - 2 ) * + COUNT( * ) * + ( - MIN( - + 15 ) )
----
30

skipif mysql # not compatible
query I rowsort label-4746
SELECT COUNT ( * ) * + - SUM ( DISTINCT - 2 ) * + COUNT ( * ) * + ( - MIN ( - + 15 ) )
----
30

query I rowsort
SELECT ALL 41 * - 4 AS col2
----
-164

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4748
SELECT 87 * - 27 + 91, 40 * + 43 + - COUNT( * ) * - 50 DIV COUNT( * ) * - - 83 col0
----
-2258
5870

skipif mysql # not compatible
query II rowsort label-4748
SELECT 87 * - 27 + 91, 40 * + 43 + - COUNT ( * ) * - 50 / COUNT ( * ) * - - 83 col0
----
-2258
5870

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL - ( - 34 ) * + - 31 + - - COUNT( * ) - 69
----
-1122

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL - ( - 34 ) * + - 31 + - - COUNT ( * ) - 69
----
-1122

onlyif mysql # DIV for integer division: 
query I rowsort label-4750
SELECT 33 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-4750
SELECT 33 / 61
----
0

query II rowsort
SELECT + 83 AS col2, 68 AS col2
----
83
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4752
SELECT SUM( 2 ) * + COUNT( + 36 ) + - NULLIF ( - + 44, + 68 + + + COALESCE ( 41, - - CAST( NULL AS SIGNED ) + - - 94 * 38 * + 20 * ( - 39 ) ) ) + - - 44 DIV - COALESCE ( - - COUNT( * ), - 49, 44, + - 92 * NULLIF ( + MAX( + 3 ), 87 ) DIV - - 77 ) * + CAST( + COUNT( * ) AS SIGNED ) - - 59 * 70
----
4132

skipif mysql # not compatible
query I rowsort label-4752
SELECT SUM ( 2 ) * + COUNT ( + 36 ) + - NULLIF ( - + 44, + 68 + + + COALESCE ( 41, - - CAST ( NULL AS INTEGER ) + - - 94 * 38 * + 20 * ( - 39 ) ) ) + - - 44 / - COALESCE ( - - COUNT ( * ), - 49, 44, + - 92 * NULLIF ( + MAX ( + 3 ), 87 ) / - - 77 ) * + CAST ( + COUNT ( * ) AS INTEGER ) - - 59 * 70
----
4132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4753
SELECT ALL 5 * 28 DIV - MAX( ALL - CAST( - 72 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL 5 * 28 / - MAX ( ALL - CAST ( - 72 AS INTEGER ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4754
SELECT CAST( - - 91 AS SIGNED ) + + 82 * 66 * - CAST( 25 AS SIGNED ) + CASE - 39 WHEN + 5 THEN - 80 ELSE 75 END AS col2, 17 AS col1
----
-135134
17

skipif mysql # not compatible
query II rowsort label-4754
SELECT CAST ( - - 91 AS INTEGER ) + + 82 * 66 * - CAST ( 25 AS INTEGER ) + CASE - 39 WHEN + 5 THEN - 80 ELSE 75 END AS col2, 17 AS col1
----
-135134
17

query I rowsort
SELECT DISTINCT - NULLIF ( - 52, 41 + 97 ) * - 68 col1
----
-3536

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4756
SELECT ALL - 24 * + COUNT( * ) * - CASE + CAST( - + 51 AS DECIMAL ) WHEN COUNT( * ) * + - AVG ( ALL + + 20 ) * - 65 THEN + 58 * 84 * - 1 - - 36 WHEN + - 2 THEN + 40 * + 58 + 63 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - 24 * + COUNT ( * ) * - CASE + CAST ( - + 51 AS REAL ) WHEN COUNT ( * ) * + - AVG ( ALL + + 20 ) * - 65 THEN + 58 * 84 * - 1 - - 36 WHEN + - 2 THEN + 40 * + 58 + 63 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT + SUM( DISTINCT - 2 ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-4757
SELECT + SUM ( DISTINCT - 2 ) col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4758
SELECT ALL 39 + + COUNT( * ) DIV + 40 * COUNT( * ) * + 67 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL 39 + + COUNT ( * ) / + 40 * COUNT ( * ) * + 67 AS col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4759
SELECT DISTINCT 56 DIV - 1
----
-56

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT 56 / - 1
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-4760
SELECT + COUNT( * ) AS col0, 98 AS col0
----
1
98

skipif mysql # not compatible
query II rowsort label-4760
SELECT + COUNT ( * ) AS col0, 98 AS col0
----
1
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4761
SELECT CAST( + 7 AS SIGNED ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4761
SELECT CAST ( + 7 AS INTEGER ) AS col1
----
7

query I rowsort
SELECT - + 95 * + 76 + 74 * ( + - 92 )
----
-14028

onlyif mysql # aggregate syntax: 
query II rowsort label-4763
SELECT - + 53, MAX( - 42 ) AS col0
----
-53
-42

skipif mysql # not compatible
query II rowsort label-4763
SELECT - + 53, MAX ( - 42 ) AS col0
----
-53
-42

query I rowsort
SELECT DISTINCT 84 + + 73
----
157

query I rowsort
SELECT ALL 93 + + 40 * - 38
----
-1427

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4766
SELECT ALL - CAST( NULL AS SIGNED ), + 53 AS col0
----
NULL
53

skipif mysql # not compatible
query II rowsort label-4766
SELECT ALL - CAST ( NULL AS INTEGER ), + 53 AS col0
----
NULL
53

query II rowsort
SELECT - - 7 AS col2, - 59 + + + 42
----
7
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4768
SELECT - + 18 DIV + + 30 * - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4768
SELECT - + 18 / + + 30 * - COUNT ( * ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4769
SELECT ALL + 12 + + 88 DIV - 58
----
11

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL + 12 + + 88 / - 58
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT + 99 - - NULLIF ( COUNT( DISTINCT 37 ), + 64 )
----
100

skipif mysql # not compatible
query I rowsort label-4770
SELECT + 99 - - NULLIF ( COUNT ( DISTINCT 37 ), + 64 )
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4771
SELECT ALL 38 DIV + - 44 * + COUNT( * ) AS col2, 56
----
0
56

skipif mysql # not compatible
query II rowsort label-4771
SELECT ALL 38 / + - 44 * + COUNT ( * ) AS col2, 56
----
0
56

query I rowsort
SELECT + 12 + ( 51 )
----
63

query II rowsort
SELECT - 67 AS col1, 58
----
-67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT DISTINCT ( MAX( + 64 ) )
----
64

skipif mysql # not compatible
query I rowsort label-4774
SELECT DISTINCT ( MAX ( + 64 ) )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT ALL + NULLIF ( - COUNT( * ), 16 * + 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL + NULLIF ( - COUNT ( * ), 16 * + 20 )
----
-1

query I rowsort
SELECT - - 55 col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT - COUNT( * ) - - 93 * - - 29 AS col1
----
2696

skipif mysql # not compatible
query I rowsort label-4777
SELECT - COUNT ( * ) - - 93 * - - 29 AS col1
----
2696

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT ALL + COUNT( * ) - - ( 85 ) - - + 46 + - 90 * + - ( + 81 ) * 17 * + ( + 20 )
----
2478732

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL + COUNT ( * ) - - ( 85 ) - - + 46 + - 90 * + - ( + 81 ) * 17 * + ( + 20 )
----
2478732

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT - COUNT( * ) * - + 18 col0
----
18

skipif mysql # not compatible
query I rowsort label-4779
SELECT - COUNT ( * ) * - + 18 col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT 0 * - COUNT( * ) + - 95 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4780
SELECT 0 * - COUNT ( * ) + - 95 AS col2
----
-95

query I rowsort
SELECT DISTINCT + 9 * - 43 * + 65
----
-25155

onlyif mysql # DIV for integer division: 
query I rowsort label-4782
SELECT - ( + 86 ) DIV + 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4782
SELECT - ( + 86 ) / + 88 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4783
SELECT - COUNT( * ) * - - 48 AS col0, + 26 * - ( - 13 ) + - 97
----
-48
241

skipif mysql # not compatible
query II rowsort label-4783
SELECT - COUNT ( * ) * - - 48 AS col0, + 26 * - ( - 13 ) + - 97
----
-48
241

onlyif mysql # DIV for integer division: 
query II rowsort label-4784
SELECT ALL + 65 DIV 33 AS col0, 45 * + 49 - - 91 AS col0
----
1
2296

skipif mysql # not compatible
query II rowsort label-4784
SELECT ALL + 65 / 33 AS col0, 45 * + 49 - - 91 AS col0
----
1
2296

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT ALL + ( COUNT( ALL - + 52 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL + ( COUNT ( ALL - + 52 ) ) AS col2
----
1

query I rowsort
SELECT - ( + 28 ) * - 59 AS col0
----
1652

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT DISTINCT 42 * COUNT( * ) + - 8 col2
----
34

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT 42 * COUNT ( * ) + - 8 col2
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-4788
SELECT ALL - 65 DIV - 19 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL - 65 / - 19 AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4789
SELECT + 33 DIV - 10 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4789
SELECT + 33 / - 10 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT - 45 + + - COUNT( 22 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-4790
SELECT - 45 + + - COUNT ( 22 ) AS col2
----
-46

query I rowsort
SELECT DISTINCT - 47 * - - 73 AS col2
----
-3431

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4792
SELECT ALL 23 * + CAST( NULL AS SIGNED ) + - NULLIF ( + - 97, + - 45 ) - 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL 23 * + CAST ( NULL AS INTEGER ) + - NULLIF ( + - 97, + - 45 ) - 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT + 35 * COUNT( * ) + - 29
----
6

skipif mysql # not compatible
query I rowsort label-4793
SELECT + 35 * COUNT ( * ) + - 29
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT CASE 8 WHEN - COUNT( DISTINCT - + 71 ) THEN NULL ELSE 79 END
----
79

skipif mysql # not compatible
query I rowsort label-4794
SELECT CASE 8 WHEN - COUNT ( DISTINCT - + 71 ) THEN NULL ELSE 79 END
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4795
SELECT + NULLIF ( SUM( ALL 7 ), - CAST( NULL AS SIGNED ) * 4 )
----
7

skipif mysql # not compatible
query I rowsort label-4795
SELECT + NULLIF ( SUM ( ALL 7 ), - CAST ( NULL AS INTEGER ) * 4 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT CAST( - 74 AS SIGNED ) * - - 20 * - 82 + - 10 + 84 + + 99 + - NULLIF ( - + 88, + 92 ) + + ( - 6 ) + - - 97 * - 8 AS col0
----
120839

skipif mysql # not compatible
query I rowsort label-4796
SELECT CAST ( - 74 AS INTEGER ) * - - 20 * - 82 + - 10 + 84 + + 99 + - NULLIF ( - + 88, + 92 ) + + ( - 6 ) + - - 97 * - 8 AS col0
----
120839

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4797
SELECT CASE + ( + - 72 ) WHEN - COALESCE ( 19, 21 / 95 * 33 * ( - COUNT( * ) ), + + 29 - + CAST( - 42 AS DECIMAL ) ) * 27 * - - 60 - - - 90 + + - CASE 48 WHEN + MAX( DISTINCT + 87 ) + - 29 THEN - 66 * 67 * - 12 * + COUNT( * ) * - COALESCE ( + 28, + - 29 ) + COUNT( * ) WHEN 4 THEN 65 * NULLIF ( + 28, 71 ) ELSE NULL END THEN NULL WHEN - 32 / - 65 THEN NULL WHEN COUNT( * ) * COALESCE ( 92 * 61, 36, 67 ) THEN 49 / - 39 + - MIN( - 20 ) WHEN 69 * 81 THEN 38 + 28 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4797
SELECT CASE + ( + - 72 ) WHEN - COALESCE ( 19, 21 / 95 * 33 * ( - COUNT ( * ) ), + + 29 - + CAST ( - 42 AS REAL ) ) * 27 * - - 60 - - - 90 + + - CASE 48 WHEN + MAX ( DISTINCT + 87 ) + - 29 THEN - 66 * 67 * - 12 * + COUNT ( * ) * - COALESCE ( + 28, + - 29 ) + COUNT ( * ) WHEN 4 THEN 65 * NULLIF ( + 28, 71 ) ELSE NULL END THEN NULL WHEN - 32 / - 65 THEN NULL WHEN COUNT ( * ) * COALESCE ( 92 * 61, 36, 67 ) THEN 49 / - 39 + - MIN ( - 20 ) WHEN 69 * 81 THEN 38 + 28 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4798
SELECT DISTINCT + + COALESCE ( + CASE - + CASE 45 WHEN - 64 - - 69 THEN + 27 END WHEN 9 THEN NULL ELSE - + ( + + COUNT( * ) ) DIV COUNT( ALL - - 21 ) - + 98 END, - 71 ) * 22 col2
----
-2178

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT + + COALESCE ( + CASE - + CASE 45 WHEN - 64 - - 69 THEN + 27 END WHEN 9 THEN NULL ELSE - + ( + + COUNT ( * ) ) / COUNT ( ALL - - 21 ) - + 98 END, - 71 ) * 22 col2
----
-2178

query I rowsort
SELECT ALL + ( - + 66 )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4800
SELECT DISTINCT + + CAST( + 43 AS SIGNED ) * - 57 + + 3 + 26 * - 87 + - 83 * - 95 * 69 AS col1
----
539355

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT + + CAST ( + 43 AS INTEGER ) * - 57 + + 3 + 26 * - 87 + - 83 * - 95 * 69 AS col1
----
539355

query II rowsort
SELECT ALL - 47 * - 1 + + 56 * 85 AS col0, - 17 AS col2
----
4807
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT - MAX( + 93 ) + - + 13 AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-4802
SELECT - MAX ( + 93 ) + - + 13 AS col2
----
-106

query I rowsort
SELECT + 96 + - 51 AS col0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4804
SELECT DISTINCT - 34 * + 66 AS col1, 17 DIV + - COUNT( * ) AS col2
----
-2244
-17

skipif mysql # not compatible
query II rowsort label-4804
SELECT DISTINCT - 34 * + 66 AS col1, 17 / + - COUNT ( * ) AS col2
----
-2244
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT ALL + MAX( DISTINCT 5 ) - - - 71 col2
----
-66

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL + MAX ( DISTINCT 5 ) - - - 71 col2
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4806
SELECT DISTINCT CAST( + - 80 AS SIGNED ) AS col0, - 8
----
-80
-8

skipif mysql # not compatible
query II rowsort label-4806
SELECT DISTINCT CAST ( + - 80 AS INTEGER ) AS col0, - 8
----
-80
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT ALL - 0 - + MIN( ALL + 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL - 0 - + MIN ( ALL + 23 )
----
-23

query I rowsort
SELECT + - 95 * 71 - + 52 + - 57 AS col0
----
-6854

query I rowsort
SELECT DISTINCT 11 * - 11 * + + 31 AS col1
----
-3751

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT DISTINCT 25 * - + ( - - 77 ) * - - COUNT( + + 73 ) AS col0
----
-1925

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT 25 * - + ( - - 77 ) * - - COUNT ( + + 73 ) AS col0
----
-1925

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL COUNT( * ) - 24 - - - 66 + - 14 - + 61 * 97
----
-6020

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL COUNT ( * ) - 24 - - - 66 + - 14 - + 61 * 97
----
-6020

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT DISTINCT - MAX( DISTINCT - 31 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT - MAX ( DISTINCT - 31 ) AS col0
----
31

query I rowsort
SELECT + ( - 20 ) + - + ( 98 ) AS col0
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4814
SELECT - COALESCE ( + 98, + 87 ) * CAST( - ( - 94 ) AS SIGNED ) AS col2
----
-9212

skipif mysql # not compatible
query I rowsort label-4814
SELECT - COALESCE ( + 98, + 87 ) * CAST ( - ( - 94 ) AS INTEGER ) AS col2
----
-9212

query I rowsort
SELECT + 11 + + 62
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4816
SELECT - CAST( - - 79 AS SIGNED ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-4816
SELECT - CAST ( - - 79 AS INTEGER ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT - ( 86 ) + - MIN( 40 )
----
-126

skipif mysql # not compatible
query I rowsort label-4817
SELECT - ( 86 ) + - MIN ( 40 )
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-4818
SELECT DISTINCT 63 DIV + 18 + - + 22 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT 63 / + 18 + - + 22 AS col2
----
-19

query I rowsort
SELECT ALL + 61 * - 54
----
-3294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4820
SELECT - CAST( - 54 AS SIGNED ) + + 58 + + 60 + ( - 16 ) * - 18
----
460

skipif mysql # not compatible
query I rowsort label-4820
SELECT - CAST ( - 54 AS INTEGER ) + + 58 + + 60 + ( - 16 ) * - 18
----
460

query I rowsort
SELECT DISTINCT + 79 * - + 23 AS col2
----
-1817

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT 88 * + - 38 * - ( + SUM( DISTINCT 25 ) ) + + 77 + - - COUNT( ALL + 78 ) * + 97 col1
----
83774

skipif mysql # not compatible
query I rowsort label-4822
SELECT 88 * + - 38 * - ( + SUM ( DISTINCT 25 ) ) + + 77 + - - COUNT ( ALL + 78 ) * + 97 col1
----
83774

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL + 89 + + - 23 * COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL + 89 + + - 23 * COUNT ( * )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4824
SELECT + 12 col2, - 30 + - COUNT( * ) DIV - MIN( ( 10 ) ) AS col1
----
12
-30

skipif mysql # not compatible
query II rowsort label-4824
SELECT + 12 col2, - 30 + - COUNT ( * ) / - MIN ( ( 10 ) ) AS col1
----
12
-30

query I rowsort
SELECT ALL - 62 + - 21 AS col0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT DISTINCT - 89 DIV + + 56 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT - 89 / + + 56 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4827
SELECT DISTINCT - + NULLIF ( - 17, - 9 + + - COUNT( * ) ) + + 13 AS col0, + 97
----
30
97

skipif mysql # not compatible
query II rowsort label-4827
SELECT DISTINCT - + NULLIF ( - 17, - 9 + + - COUNT ( * ) ) + + 13 AS col0, + 97
----
30
97

query I rowsort
SELECT ALL + - 72 + - 9 - + + 49 AS col0
----
-130

query I rowsort
SELECT ALL 45 * - 22 AS col2
----
-990

onlyif mysql # DIV for integer division: 
query I rowsort label-4830
SELECT - 14 DIV + 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4830
SELECT - 14 / + 40 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4831
SELECT ALL - COALESCE ( + ( + COUNT( * ) ), + CAST( NULL AS SIGNED ) ) + - ( COUNT( * ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL - COALESCE ( + ( + COUNT ( * ) ), + CAST ( NULL AS INTEGER ) ) + - ( COUNT ( * ) ) AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4832
SELECT ALL - - COUNT( + CAST( 17 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL - - COUNT ( + CAST ( 17 AS INTEGER ) ) AS col2
----
1

query I rowsort
SELECT DISTINCT - + 60 * 10 AS col2
----
-600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4834
SELECT COALESCE ( + 52, + COUNT( DISTINCT + CAST( 1 AS SIGNED ) ), + 76 ) * COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4834
SELECT COALESCE ( + 52, + COUNT ( DISTINCT + CAST ( 1 AS INTEGER ) ), + 76 ) * COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4835
SELECT ALL - 96 * - 48 + + - COUNT( * ) AS col0, - 11 DIV COUNT( * ) * + COUNT( + 4 )
----
4607
-11

skipif mysql # not compatible
query II rowsort label-4835
SELECT ALL - 96 * - 48 + + - COUNT ( * ) AS col0, - 11 / COUNT ( * ) * + COUNT ( + 4 )
----
4607
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4836
SELECT COUNT( * ) DIV + 42 + - 88 + COUNT( * ) * 33 * + 38 * - ( + 48 ) * 70 AS col1
----
-4213528

skipif mysql # not compatible
query I rowsort label-4836
SELECT COUNT ( * ) / + 42 + - 88 + COUNT ( * ) * 33 * + 38 * - ( + 48 ) * 70 AS col1
----
-4213528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT CAST( 93 AS SIGNED ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4837
SELECT CAST ( 93 AS INTEGER ) AS col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4838
SELECT ALL + COALESCE ( + NULLIF ( + - 60, - CAST( NULL AS SIGNED ) * - - ( - 89 ) ), + + 80 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL + COALESCE ( + NULLIF ( + - 60, - CAST ( NULL AS INTEGER ) * - - ( - 89 ) ), + + 80 ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT 16 - + CASE + 29 WHEN + 33 THEN NULL WHEN - COUNT( * ) THEN - - 59 + + - 3 + 40 / - 11 / + COUNT( * ) / 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4839
SELECT 16 - + CASE + 29 WHEN + 33 THEN NULL WHEN - COUNT ( * ) THEN - - 59 + + - 3 + 40 / - 11 / + COUNT ( * ) / 89 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT DISTINCT COALESCE ( + - 87, + 24 + - - COUNT( - 17 ), - 67 ) col0
----
-87

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT COALESCE ( + - 87, + 24 + - - COUNT ( - 17 ), - 67 ) col0
----
-87

query I rowsort
SELECT DISTINCT + ( - 42 ) * + + 28 + + 85
----
-1091

query I rowsort
SELECT - NULLIF ( - 84, 65 + 69 )
----
84

query I rowsort
SELECT + 97 + + 24
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-4844
SELECT ALL + 78 DIV + 36 + - + 37 * ( + + 46 ) DIV + 43 col1
----
-37

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL + 78 / + 36 + - + 37 * ( + + 46 ) / + 43 col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT DISTINCT 47 * - - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT 47 * - - COUNT ( * )
----
47

query I rowsort
SELECT 52 + + + 15 AS col0
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4847
SELECT - 22 AS col2, - COUNT( * ) col1
----
-22
-1

skipif mysql # not compatible
query II rowsort label-4847
SELECT - 22 AS col2, - COUNT ( * ) col1
----
-22
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4848
SELECT ALL 82 * + CASE 28 WHEN + 66 THEN NULL WHEN - CAST( + + CASE ( + - SUM( DISTINCT 5 ) ) WHEN 10 * + 90 + 39 * + 58 + - 18 THEN NULL WHEN + CAST( NULL AS DECIMAL ) THEN - COUNT( ALL 20 ) ELSE + 3 * - MAX( - 93 ) + + 95 END AS SIGNED ) * - 51 - - 12 THEN - + 95 + 59 + - + 42 ELSE NULL END AS col0, 88 + + ( MIN( 20 ) ) * - 32 AS col0
----
NULL
-552

skipif mysql # not compatible
query II rowsort label-4848
SELECT ALL 82 * + CASE 28 WHEN + 66 THEN NULL WHEN - CAST ( + + CASE ( + - SUM ( DISTINCT 5 ) ) WHEN 10 * + 90 + 39 * + 58 + - 18 THEN NULL WHEN + CAST ( NULL AS REAL ) THEN - COUNT ( ALL 20 ) ELSE + 3 * - MAX ( - 93 ) + + 95 END AS INTEGER ) * - 51 - - 12 THEN - + 95 + 59 + - + 42 ELSE NULL END AS col0, 88 + + ( MIN ( 20 ) ) * - 32 AS col0
----
NULL
-552

onlyif mysql # DIV for integer division: 
query I rowsort label-4849
SELECT 58 DIV - 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4849
SELECT 58 / - 60 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4850
SELECT ALL + COALESCE ( 31, + + 32, - - 88, + 41 - - 5 ) + + + CAST( NULL AS SIGNED ) * CAST( - COALESCE ( + 92, + MIN( + CAST( NULL AS SIGNED ) ), - 25 + 53 ) AS DECIMAL ), 11 - - 93 - NULLIF ( - 91, + 28 * - MAX( ALL - 98 ) + + 40 + ( - COUNT( * ) ) * + 8 + + 45 + + 2 + - 8 + - SUM( - 71 ) + + COUNT( * ) * 56 ) * 68 AS col2
----
NULL
6292

skipif mysql # not compatible
query II rowsort label-4850
SELECT ALL + COALESCE ( 31, + + 32, - - 88, + 41 - - 5 ) + + + CAST ( NULL AS INTEGER ) * CAST ( - COALESCE ( + 92, + MIN ( + CAST ( NULL AS INTEGER ) ), - 25 + 53 ) AS REAL ), 11 - - 93 - NULLIF ( - 91, + 28 * - MAX ( ALL - 98 ) + + 40 + ( - COUNT ( * ) ) * + 8 + + 45 + + 2 + - 8 + - SUM ( - 71 ) + + COUNT ( * ) * 56 ) * 68 AS col2
----
NULL
6292

query I rowsort
SELECT DISTINCT 87 + + 72 AS col0
----
159

query I rowsort
SELECT ALL 46 * - 28
----
-1288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4853
SELECT MIN( DISTINCT 57 ) DIV + 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4853
SELECT MIN ( DISTINCT 57 ) / + 71 AS col1
----
0

query II rowsort
SELECT ALL 22 + 0 AS col0, 0 + 26 AS col1
----
22
26

query II rowsort
SELECT 55 AS col1, - 8 + 15 + + + 72
----
55
79

query II rowsort
SELECT 90 AS col0, + ( + 49 )
----
90
49

query I rowsort
SELECT 67 * 69
----
4623

onlyif mysql # DIV for integer division: 
query I rowsort label-4858
SELECT ALL 16 DIV 21
----
0

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL 16 / 21
----
0

query I rowsort
SELECT ( - 66 ) + - 55 AS col1
----
-121

query I rowsort
SELECT 19 * 33
----
627

query I rowsort
SELECT DISTINCT 10 + + 83 AS col0
----
93

query I rowsort
SELECT 8 * + - 19 col0
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT DISTINCT 74 + - + 7 * - 90 * + 25 * - + COUNT( * ) + - 20 - - 6 AS col2
----
-15690

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT 74 + - + 7 * - 90 * + 25 * - + COUNT ( * ) + - 20 - - 6 AS col2
----
-15690

query II rowsort
SELECT + 78 col1, 39 * - 51 * 18 AS col1
----
78
-35802

query I rowsort
SELECT ALL + 69 - + - 64 + - + 25 AS col1
----
108

query I rowsort
SELECT ALL - ( + + 8 ) * + 45 * 6 * 76 AS col2
----
-164160

query I rowsort
SELECT + 41 * 52 - - 8 AS col1
----
2140

query II rowsort
SELECT 64 AS col0, 25 AS col2
----
64
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT - + 67 * + - 13 + - - 65 * - CAST( - + 20 AS SIGNED )
----
2171

skipif mysql # not compatible
query I rowsort label-4869
SELECT - + 67 * + - 13 + - - 65 * - CAST ( - + 20 AS INTEGER )
----
2171

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT - 35 - + COUNT( * ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4870
SELECT - 35 - + COUNT ( * ) AS col2
----
-36

query I rowsort
SELECT 20 * + 27 + - + 46
----
494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4872
SELECT DISTINCT - CASE 83 WHEN + 14 + CASE - MAX( DISTINCT - + ( - - 22 ) ) WHEN 27 + - ( - + 83 ) + - - 31 + + COUNT( * ) THEN + 21 + + COUNT( ALL - + 99 ) * + 27 WHEN + - CAST( NULL AS DECIMAL ) THEN + CAST( 34 AS SIGNED ) ELSE - 17 END THEN + - 11 WHEN + 5 - + - 99 THEN - + 73 + - 87 * - - SUM( DISTINCT + + 37 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT - CASE 83 WHEN + 14 + CASE - MAX ( DISTINCT - + ( - - 22 ) ) WHEN 27 + - ( - + 83 ) + - - 31 + + COUNT ( * ) THEN + 21 + + COUNT ( ALL - + 99 ) * + 27 WHEN + - CAST ( NULL AS REAL ) THEN + CAST ( 34 AS INTEGER ) ELSE - 17 END THEN + - 11 WHEN + 5 - + - 99 THEN - + 73 + - 87 * - - SUM ( DISTINCT + + 37 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4873
SELECT ALL - - 62 col1, - CAST( NULL AS SIGNED ) + 17 col2
----
62
NULL

skipif mysql # not compatible
query II rowsort label-4873
SELECT ALL - - 62 col1, - CAST ( NULL AS INTEGER ) + 17 col2
----
62
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4874
SELECT DISTINCT - 13 AS col1, + 27 / CAST( NULL AS SIGNED ) * - 13 col2
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-4874
SELECT DISTINCT - 13 AS col1, + 27 / CAST ( NULL AS INTEGER ) * - 13 col2
----
-13
NULL

query I rowsort
SELECT 0 * 20 - + 34 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT ALL - + MAX( - - 22 ) * - COUNT( * ) + - 62
----
-40

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL - + MAX ( - - 22 ) * - COUNT ( * ) + - 62
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT COUNT( * ) + + 33
----
34

skipif mysql # not compatible
query I rowsort label-4877
SELECT COUNT ( * ) + + 33
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL + + 90 * COUNT( * ) col1
----
90

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL + + 90 * COUNT ( * ) col1
----
90

query I rowsort
SELECT 69 + + 74 AS col0
----
143

query I rowsort
SELECT ALL - 49 * 57 * + 65
----
-181545

query I rowsort
SELECT ALL - - 77 * + 92 + + + 78
----
7162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4882
SELECT - CAST( NULL AS SIGNED ) * + COUNT( * ) * - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4882
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT SUM( ALL - 10 ) + - 87 + + 76 * - + 2
----
-249

skipif mysql # not compatible
query I rowsort label-4883
SELECT SUM ( ALL - 10 ) + - 87 + + 76 * - + 2
----
-249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4884
SELECT ALL CASE + SUM( DISTINCT - 98 ) WHEN + - COUNT( * ) THEN - - CAST( + 27 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL CASE + SUM ( DISTINCT - 98 ) WHEN + - COUNT ( * ) THEN - - CAST ( + 27 AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + + 5, + 89 )
----
5

query I rowsort
SELECT 61 * 23
----
1403

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT ALL - NULLIF ( - - 32, + 69 * + 7 ) + CASE CASE 59 WHEN - 89 THEN - 26 ELSE NULL END WHEN - ( + 4 ) THEN - 33 - - MIN( DISTINCT 23 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL - NULLIF ( - - 32, + 69 * + 7 ) + CASE CASE 59 WHEN - 89 THEN - 26 ELSE NULL END WHEN - ( + 4 ) THEN - 33 - - MIN ( DISTINCT 23 ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4888
SELECT DISTINCT + 51 + 65 DIV - 87 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT + 51 + 65 / - 87 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT ALL COUNT( * ) + - 63 + + - ( + 84 ) + - - 11 + + 71 + + + ( 59 )
----
-5

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL COUNT ( * ) + - 63 + + - ( + 84 ) + - - 11 + + 71 + + + ( 59 )
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-4890
SELECT DISTINCT CASE - 89 WHEN - 10 * NULLIF ( + 47, + 16 ) THEN 52 END AS col1, COUNT( + 36 ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4890
SELECT DISTINCT CASE - 89 WHEN - 10 * NULLIF ( + 47, + 16 ) THEN 52 END AS col1, COUNT ( + 36 ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4891
SELECT ALL + COUNT( * ) + - COUNT( * ) * + 4 AS col2, - 85 * - 60 * - ( ( + 69 ) )
----
-3
-351900

skipif mysql # not compatible
query II rowsort label-4891
SELECT ALL + COUNT ( * ) + - COUNT ( * ) * + 4 AS col2, - 85 * - 60 * - ( ( + 69 ) )
----
-3
-351900

query I rowsort
SELECT - ( + 29 ) + ( CASE 18 WHEN - ( + 9 ) THEN NULL WHEN + + 37 * + 79 - ( - 64 ) THEN - 54 END ) + + 50 + - 30 * COALESCE ( 1, - 56 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT ALL 92 * - COUNT( * ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL 92 * - COUNT ( * ) AS col1
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-4894
SELECT + 4 DIV - + 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4894
SELECT + 4 / - + 11 AS col0
----
0

query II rowsort
SELECT + 63 + - + 65, 98 AS col0
----
-2
98

query I rowsort
SELECT + 51 * - 95 col0
----
-4845

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4897
SELECT - COUNT( - - 14 ) DIV - + 29 + 27
----
27

skipif mysql # not compatible
query I rowsort label-4897
SELECT - COUNT ( - - 14 ) / - + 29 + 27
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4898
SELECT DISTINCT 85 * - + 38 DIV - COUNT( DISTINCT - 82 ) - + + 32 + - 36 AS col0
----
3162

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT 85 * - + 38 / - COUNT ( DISTINCT - 82 ) - + + 32 + - 36 AS col0
----
3162

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT DISTINCT + 57 * - COUNT( * ) - + SUM( DISTINCT - 6 ) * - 21 * - 14 AS col1
----
1707

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT + 57 * - COUNT ( * ) - + SUM ( DISTINCT - 6 ) * - 21 * - 14 AS col1
----
1707

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4900
SELECT - ( CAST( NULL AS DECIMAL ) ) * - AVG ( 92 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT - ( CAST ( NULL AS REAL ) ) * - AVG ( 92 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT + - MIN( ALL 63 ) * + SUM( ALL 81 ) AS col0
----
-5103

skipif mysql # not compatible
query I rowsort label-4901
SELECT + - MIN ( ALL 63 ) * + SUM ( ALL 81 ) AS col0
----
-5103

onlyif mysql # DIV for integer division: 
query II rowsort label-4902
SELECT DISTINCT + 96 DIV - 60 AS col2, 51 DIV + ( - - 43 ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-4902
SELECT DISTINCT + 96 / - 60 AS col2, 51 / + ( - - 43 ) AS col1
----
-1
1

query I rowsort
SELECT DISTINCT - - 63 * - - CASE 74 WHEN - 84 THEN + 95 END - + 88 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4904
SELECT ALL SUM( 6 ) DIV COUNT( * ) + + - 58 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL SUM ( 6 ) / COUNT ( * ) + + - 58 AS col0
----
-52

query I rowsort
SELECT - 32 + 5
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4906
SELECT + 76 * - COUNT( * ) - 19 - + - 91 + + 0 + - 69 * - + CAST( NULL AS SIGNED ) AS col0, 22
----
NULL
22

skipif mysql # not compatible
query II rowsort label-4906
SELECT + 76 * - COUNT ( * ) - 19 - + - 91 + + 0 + - 69 * - + CAST ( NULL AS INTEGER ) AS col0, 22
----
NULL
22

query I rowsort
SELECT DISTINCT + - ( 79 ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT + - COUNT( + 69 )
----
-1

skipif mysql # not compatible
query I rowsort label-4908
SELECT + - COUNT ( + 69 )
----
-1

query I rowsort
SELECT DISTINCT + - ( - 58 )
----
58

query I rowsort
SELECT + 52 - - - 2 + + + 66 AS col2
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-4911
SELECT ALL - + 47 * - 7 + + NULLIF ( + ( + 39 ), + 56 * - + 5 * 49 + 77 + + - ( - - 20 ) ) DIV + 20 AS col0
----
330

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL - + 47 * - 7 + + NULLIF ( + ( + 39 ), + 56 * - + 5 * 49 + 77 + + - ( - - 20 ) ) / + 20 AS col0
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT + COUNT( * ) * - 95 - - MAX( ALL + 56 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4912
SELECT + COUNT ( * ) * - 95 - - MAX ( ALL + 56 ) AS col1
----
-39

query I rowsort
SELECT - + 83 * + + 86 + + 50 + + 73 col1
----
-7015

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4914
SELECT + 79 * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT + 79 * + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4915
SELECT - 6 DIV + 76 DIV + COUNT( * ) + - 24
----
-24

skipif mysql # not compatible
query I rowsort label-4915
SELECT - 6 / + 76 / + COUNT ( * ) + - 24
----
-24

query I rowsort
SELECT ALL 76 + - 28 AS col2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-4917
SELECT DISTINCT + 47 DIV - + 56 * 64 * - - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT + 47 / - + 56 * 64 * - - 48 AS col0
----
0

query I rowsort
SELECT DISTINCT - 92 + - + 43 AS col0
----
-135

query I rowsort
SELECT + NULLIF ( + 91, 49 ) * + + 16
----
1456

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT ALL - COUNT( + - 70 ) + + 52 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL - COUNT ( + - 70 ) + + 52 AS col0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4921
SELECT - 5 + + 14 - - SUM( - 9 ) DIV - + 33
----
9

skipif mysql # not compatible
query I rowsort label-4921
SELECT - 5 + + 14 - - SUM ( - 9 ) / - + 33
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4922
SELECT - ( + CAST( + + 75 AS SIGNED ) ) + - - 0 * - + 53 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-4922
SELECT - ( + CAST ( + + 75 AS INTEGER ) ) + - - 0 * - + 53 AS col0
----
-75

query I rowsort
SELECT DISTINCT - 48 * 0
----
0

query I rowsort
SELECT + 63 * - + 97
----
-6111

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT ALL + MIN( DISTINCT + 55 ) - + 47
----
8

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL + MIN ( DISTINCT + 55 ) - + 47
----
8

query I rowsort
SELECT - 3 + + 98 col1
----
95

query I rowsort
SELECT - 91 * - 20 AS col2
----
1820

query I rowsort
SELECT + 97 * + 88 AS col0
----
8536

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT DISTINCT 82 * - 7 * - - 25 + - 96 - - - COUNT( * ) + 62 col0
----
-14385

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT 82 * - 7 * - - 25 + - 96 - - - COUNT ( * ) + 62 col0
----
-14385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4930
SELECT - - NULLIF ( 61, 6 + - - COUNT( * ) + - - 66 * - CAST( 32 AS SIGNED ) / + - 72 * - - 51 ) * + 86 * 33
----
173118

skipif mysql # not compatible
query I rowsort label-4930
SELECT - - NULLIF ( 61, 6 + - - COUNT ( * ) + - - 66 * - CAST ( 32 AS INTEGER ) / + - 72 * - - 51 ) * + 86 * 33
----
173118

query II rowsort
SELECT ALL - 17 * - 34 + + + 93 AS col1, 0
----
671
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT + - 11 - + 35 + + SUM( + 1 ) + - + 78 * + - SUM( ALL 64 ) * 60 AS col2
----
299475

skipif mysql # not compatible
query I rowsort label-4932
SELECT + - 11 - + 35 + + SUM ( + 1 ) + - + 78 * + - SUM ( ALL 64 ) * 60 AS col2
----
299475

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT ALL + CASE COUNT( * ) WHEN COUNT( * ) THEN - 35 END
----
-35

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL + CASE COUNT ( * ) WHEN COUNT ( * ) THEN - 35 END
----
-35

query I rowsort
SELECT ALL + 73 * - 38
----
-2774

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT ALL + MAX( ALL + ( - 66 ) ) col2
----
-66

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL + MAX ( ALL + ( - 66 ) ) col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4936
SELECT + 97 * - - CAST( NULL AS SIGNED ) + + NULLIF ( + + 1, - 98 * + CAST( NULL AS SIGNED ) ) AS col1, SUM( DISTINCT - ( 76 ) )
----
NULL
-76

skipif mysql # not compatible
query II rowsort label-4936
SELECT + 97 * - - CAST ( NULL AS INTEGER ) + + NULLIF ( + + 1, - 98 * + CAST ( NULL AS INTEGER ) ) AS col1, SUM ( DISTINCT - ( 76 ) )
----
NULL
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT ALL MIN( ALL 70 ) * 90 AS col1
----
6300

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL MIN ( ALL 70 ) * 90 AS col1
----
6300

query I rowsort
SELECT - + 93 * 83
----
-7719

query II rowsort
SELECT - 98 AS col0, + 18 AS col0
----
-98
18

query I rowsort
SELECT ALL - + 69 * 10 * - - 70 + - - 91 - - 83
----
-48126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4941
SELECT 71 DIV + - COUNT( * ) - - 85 + - 94 + - MAX( + - 17 ) * - 35
----
-675

skipif mysql # not compatible
query I rowsort label-4941
SELECT 71 / + - COUNT ( * ) - - 85 + - 94 + - MAX ( + - 17 ) * - 35
----
-675

query I rowsort
SELECT DISTINCT - + 83 * - 86 + + + 71
----
7209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4943
SELECT ALL - 0 * 19 * + + COUNT( * ) + 59 * - 52 * - - CAST( - 20 AS SIGNED ) AS col2
----
61360

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL - 0 * 19 * + + COUNT ( * ) + 59 * - 52 * - - CAST ( - 20 AS INTEGER ) AS col2
----
61360

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT + - 35 + - 69 + + MIN( DISTINCT - 24 ) AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-4944
SELECT + - 35 + - 69 + + MIN ( DISTINCT - 24 ) AS col2
----
-128

query II rowsort
SELECT ALL + + 73 AS col1, 88 + - 31 col2
----
73
57

query I rowsort
SELECT + + 60 + 14 + - + 82 - 15
----
-23

query I rowsort
SELECT ALL + 33 * 31
----
1023

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT DISTINCT 64 + + 1 + + COUNT( * ) * 18 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT 64 + + 1 + + COUNT ( * ) * 18 AS col2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4949
SELECT 96 + - 61 DIV + 95 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4949
SELECT 96 + - 61 / + 95 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT ALL 99 + + COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL 99 + + COUNT ( * )
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4951
SELECT CASE ( CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) ) WHEN + 17 / 41 THEN NULL ELSE + COALESCE ( - - 18, - 21 + - COUNT( ALL - COALESCE ( ( + + 95 ), + - 12 ) ) - + - 81 + 58 * - 4 ) END * 51 AS col0
----
918

skipif mysql # not compatible
query I rowsort label-4951
SELECT CASE ( CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) ) WHEN + 17 / 41 THEN NULL ELSE + COALESCE ( - - 18, - 21 + - COUNT ( ALL - COALESCE ( ( + + 95 ), + - 12 ) ) - + - 81 + 58 * - 4 ) END * 51 AS col0
----
918

onlyif mysql # DIV for integer division: 
query I rowsort label-4952
SELECT 3 * 6 DIV 7 * + 78
----
156

skipif mysql # not compatible
query I rowsort label-4952
SELECT 3 * 6 / 7 * + 78
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4953
SELECT ALL COUNT( * ) * - CAST( 92 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL COUNT ( * ) * - CAST ( 92 AS INTEGER )
----
-92

query I rowsort
SELECT 12 + - 2 AS col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4955
SELECT ALL 63 - + - 7 + - 90 + - 35 + - + 89 AS col2, COUNT( * ) AS col0
----
-144
1

skipif mysql # not compatible
query II rowsort label-4955
SELECT ALL 63 - + - 7 + - 90 + - 35 + - + 89 AS col2, COUNT ( * ) AS col0
----
-144
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4956
SELECT CAST( 15 AS SIGNED ) * 42 AS col1
----
630

skipif mysql # not compatible
query I rowsort label-4956
SELECT CAST ( 15 AS INTEGER ) * 42 AS col1
----
630

onlyif mysql # DIV for integer division: 
query I rowsort label-4957
SELECT DISTINCT + 89 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT + 89 / - 98
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4958
SELECT 12 DIV COALESCE ( + 38, ( + 19 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4958
SELECT 12 / COALESCE ( + 38, ( + 19 ) )
----
0

query II rowsort
SELECT 18 * 59 * 96 * 97 AS col0, - 4 AS col2
----
9889344
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4960
SELECT DISTINCT 51 DIV - COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT 51 / - COUNT ( * )
----
-51

query II rowsort
SELECT ALL - 71 * + - 56 AS col1, - 50
----
3976
-50

query I rowsort
SELECT 8 + + 39 AS col1
----
47

query I rowsort
SELECT ALL + ( - 29 ) * - 48 AS col2
----
1392

onlyif mysql # aggregate syntax: 
query II rowsort label-4964
SELECT - - ( 92 ) col1, - SUM( DISTINCT + 61 )
----
92
-61

skipif mysql # not compatible
query II rowsort label-4964
SELECT - - ( 92 ) col1, - SUM ( DISTINCT + 61 )
----
92
-61

query I rowsort
SELECT ALL + 77 * - 49 AS col1
----
-3773

query I rowsort
SELECT DISTINCT - 19 + + - NULLIF ( - - 94, - - 53 )
----
-113

query I rowsort
SELECT ALL - 36 + + - 23 + 17
----
-42

query I rowsort
SELECT ( + - 48 ) AS col1
----
-48

query I rowsort
SELECT 25 * - 35 + + - 76 + + - 75 AS col1
----
-1026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4970
SELECT ALL 14 + - CAST( NULL AS SIGNED ) * + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL 14 + - CAST ( NULL AS INTEGER ) * + 55
----
NULL

query I rowsort
SELECT DISTINCT - - ( 63 ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT DISTINCT + COUNT( * ) + - ( - ( + COUNT( * ) ) ) + - - 86 * + 48
----
4130

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT + COUNT ( * ) + - ( - ( + COUNT ( * ) ) ) + - - 86 * + 48
----
4130

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4973
SELECT DISTINCT - - CASE 96 WHEN - 52 + + NULLIF ( + - COUNT( * ), - + 3 ) + + + CAST( NULL AS DECIMAL ) * + - 93 * 60 THEN NULL ELSE - NULLIF ( MAX( ALL - - 3 ), COUNT( * ) * + - 20 ) END * - + COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4973
SELECT DISTINCT - - CASE 96 WHEN - 52 + + NULLIF ( + - COUNT ( * ), - + 3 ) + + + CAST ( NULL AS REAL ) * + - 93 * 60 THEN NULL ELSE - NULLIF ( MAX ( ALL - - 3 ), COUNT ( * ) * + - 20 ) END * - + COUNT ( * ) AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4974
SELECT 74 * - - 40 - + + MAX( - + 5 ) - - - 81 * + 85 DIV + 5
----
1588

skipif mysql # not compatible
query I rowsort label-4974
SELECT 74 * - - 40 - + + MAX ( - + 5 ) - - - 81 * + 85 / + 5
----
1588

query I rowsort
SELECT 3 * 95
----
285

query II rowsort
SELECT + 71, + 91 AS col2
----
71
91

query II rowsort
SELECT 48 col0, ( - 53 ) AS col0
----
48
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4978
SELECT ( CAST( COUNT( * ) AS SIGNED ) ) * + 66 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4978
SELECT ( CAST ( COUNT ( * ) AS INTEGER ) ) * + 66 AS col1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4979
SELECT ALL 70 - - 98 DIV + 94
----
71

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL 70 - - 98 / + 94
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-4980
SELECT 93 DIV - + 27
----
-3

skipif mysql # not compatible
query I rowsort label-4980
SELECT 93 / - + 27
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4981
SELECT ALL ( + - 94 ) * 76 + COALESCE ( - + 47, - - 48, - - 28 * + 76 ) + + 79 * 36 DIV + 82
----
-7157

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL ( + - 94 ) * 76 + COALESCE ( - + 47, - - 48, - - 28 * + 76 ) + + 79 * 36 / + 82
----
-7157

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT ALL NULLIF ( 40, COUNT( * ) * + + 94 + - - COUNT( * ) ) * COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL NULLIF ( 40, COUNT ( * ) * + + 94 + - - COUNT ( * ) ) * COUNT ( * ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT CASE 59 WHEN - + 92 THEN NULL WHEN + 39 * + 20 THEN - 18 + - + ( + 12 ) WHEN ( 53 ) + - + 89 + - - 24 THEN - - 78 ELSE NULL END * - 63 * + 79 * - 28 - COALESCE ( MIN( DISTINCT + ( - ( 61 ) ) ), - + MIN( - 54 ) ) * - 4 / - + 70 / 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4983
SELECT CASE 59 WHEN - + 92 THEN NULL WHEN + 39 * + 20 THEN - 18 + - + ( + 12 ) WHEN ( 53 ) + - + 89 + - - 24 THEN - - 78 ELSE NULL END * - 63 * + 79 * - 28 - COALESCE ( MIN ( DISTINCT + ( - ( 61 ) ) ), - + MIN ( - 54 ) ) * - 4 / - + 70 / 70
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4984
SELECT - COUNT( * ), 79 AS col0
----
-1
79

skipif mysql # not compatible
query II rowsort label-4984
SELECT - COUNT ( * ), 79 AS col0
----
-1
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT COUNT( * ) + + ( - + 71 ) col1
----
-70

skipif mysql # not compatible
query I rowsort label-4985
SELECT COUNT ( * ) + + ( - + 71 ) col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT - MAX( DISTINCT + 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-4986
SELECT - MAX ( DISTINCT + 11 ) AS col0
----
-11

query I rowsort
SELECT ALL 62 * + ( - COALESCE ( + + 77, - + 77 + - - 5 ) ) AS col2
----
-4774

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT 11 + - - 71 * 79 + COUNT( * ) AS col0
----
5621

skipif mysql # not compatible
query I rowsort label-4988
SELECT 11 + - - 71 * 79 + COUNT ( * ) AS col0
----
5621

query I rowsort
SELECT 18 * - - 83
----
1494

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT 53 + MIN( 50 )
----
103

skipif mysql # not compatible
query I rowsort label-4990
SELECT 53 + MIN ( 50 )
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4991
SELECT DISTINCT 10 col0, - CAST( NULL AS SIGNED ) AS col0
----
10
NULL

skipif mysql # not compatible
query II rowsort label-4991
SELECT DISTINCT 10 col0, - CAST ( NULL AS INTEGER ) AS col0
----
10
NULL

query I rowsort
SELECT DISTINCT 9 * + 14 * 8 * - 11
----
-11088

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT DISTINCT + ( SUM( - 65 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT + ( SUM ( - 65 ) )
----
-65

query I rowsort
SELECT ALL - + 23 + + 96 AS col0
----
73

query I rowsort
SELECT DISTINCT - 89 + - 23
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT ALL + COUNT( * ) + 99 + + + 5
----
105

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL + COUNT ( * ) + 99 + + + 5
----
105

query II rowsort
SELECT DISTINCT + 25, 33 * 77 * + 1 + 50 AS col1
----
25
2591

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT 34 * 0 + + SUM( ALL + 58 ) + + - 55 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4998
SELECT 34 * 0 + + SUM ( ALL + 58 ) + + - 55 AS col2
----
3

query I rowsort
SELECT DISTINCT - + 6 * - 90 * + 3 + 72 AS col2
----
1692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5000
SELECT CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * - 37, 98 * + COUNT( 45 ) col0
----
NULL
98

skipif mysql # not compatible
query II rowsort label-5000
SELECT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - 37, 98 * + COUNT ( 45 ) col0
----
NULL
98

query II rowsort
SELECT - 94 AS col0, + 71 - 24 + - 98 AS col1
----
-94
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5002
SELECT + 6 * + ( COUNT( * ) ), - 43 / + COUNT( * ) - - NULLIF ( - - CASE - 29 WHEN - 8 THEN NULL WHEN + 5 THEN + COALESCE ( 85, COUNT( * ) + + CAST( 78 AS SIGNED ) * - 21 * 8 ) * CAST( NULL AS SIGNED ) - + - 78 * - - 22 - - 89 END, CAST( NULL AS SIGNED ) ) + + - 52 / - 37 AS col2
----
6
NULL

skipif mysql # not compatible
query II rowsort label-5002
SELECT + 6 * + ( COUNT ( * ) ), - 43 / + COUNT ( * ) - - NULLIF ( - - CASE - 29 WHEN - 8 THEN NULL WHEN + 5 THEN + COALESCE ( 85, COUNT ( * ) + + CAST ( 78 AS INTEGER ) * - 21 * 8 ) * CAST ( NULL AS INTEGER ) - + - 78 * - - 22 - - 89 END, CAST ( NULL AS INTEGER ) ) + + - 52 / - 37 AS col2
----
6
NULL

query I rowsort
SELECT DISTINCT 93 * 97 * - 51 + - ( - - 60 ) + - 90 AS col0
----
-460221

query I rowsort
SELECT ALL + + 68 * - - 55
----
3740

query I rowsort
SELECT ALL ( + 64 ) * - 65 AS col1
----
-4160

onlyif mysql # aggregate syntax: 
query II rowsort label-5006
SELECT DISTINCT - - COUNT( * ) * + 13 * 37 AS col2, - 65 + + + 91 + + + 61
----
481
87

skipif mysql # not compatible
query II rowsort label-5006
SELECT DISTINCT - - COUNT ( * ) * + 13 * 37 AS col2, - 65 + + + 91 + + + 61
----
481
87

query I rowsort
SELECT + NULLIF ( - ( 78 ), 80 / + + 5 + 23 + 10 ) AS col2
----
-78

query II rowsort
SELECT - - 33 + + 52 - + 92 AS col1, + 4 + - - 89 + 37
----
-7
130

query I rowsort
SELECT - 17 - - 6 AS col2
----
-11

query I rowsort
SELECT DISTINCT + NULLIF ( 36, + ( + 72 ) ) AS col2
----
36

onlyif mysql # DIV for integer division: 
query II rowsort label-5011
SELECT ALL + 41 AS col0, COALESCE ( + 88, 79, - + 29 DIV - 85 + - - 39 ) + - 44 AS col1
----
41
44

skipif mysql # not compatible
query II rowsort label-5011
SELECT ALL + 41 AS col0, COALESCE ( + 88, 79, - + 29 / - 85 + - - 39 ) + - 44 AS col1
----
41
44

query I rowsort
SELECT + 88 - + CASE - + 30 WHEN + + 40 * + - 39 + + ( + - 92 ) THEN NULL WHEN + 60 THEN + 64 + 0 + + 58 ELSE - 55 END col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT - ( - COUNT( * ) ) + - + 26 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-5013
SELECT - ( - COUNT ( * ) ) + - + 26 AS col0
----
-25

query I rowsort
SELECT - 52 + - 2
----
-54

query I rowsort
SELECT DISTINCT 64 * + + 73
----
4672

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT DISTINCT - COUNT( + + 76 ) * - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT - COUNT ( + + 76 ) * - COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5017
SELECT ALL + ( 55 ) AS col2, - ( - CAST( NULL AS SIGNED ) ) AS col2
----
55
NULL

skipif mysql # not compatible
query II rowsort label-5017
SELECT ALL + ( 55 ) AS col2, - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT - MIN( 6 ) * 62 AS col2
----
-372

skipif mysql # not compatible
query I rowsort label-5018
SELECT - MIN ( 6 ) * 62 AS col2
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT 16 * + 66 * + 46 + - COUNT( * )
----
48575

skipif mysql # not compatible
query I rowsort label-5019
SELECT 16 * + 66 * + 46 + - COUNT ( * )
----
48575

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT ALL - 80 * + - 84 * + + SUM( ALL - + 32 ) AS col0
----
-215040

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL - 80 * + - 84 * + + SUM ( ALL - + 32 ) AS col0
----
-215040

query I rowsort
SELECT DISTINCT ( + 9 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5022
SELECT 33 AS col2, + CASE - - ( + 54 ) WHEN + 78 THEN + ( CAST( + COUNT( * ) AS SIGNED ) ) ELSE + ( 21 ) + - + 24 END - - - 8 + 71 * + COALESCE ( 85, - COUNT( 98 ) ) + + - CAST( NULL AS SIGNED ) / - 37
----
33
NULL

skipif mysql # not compatible
query II rowsort label-5022
SELECT 33 AS col2, + CASE - - ( + 54 ) WHEN + 78 THEN + ( CAST ( + COUNT ( * ) AS INTEGER ) ) ELSE + ( 21 ) + - + 24 END - - - 8 + 71 * + COALESCE ( 85, - COUNT ( 98 ) ) + + - CAST ( NULL AS INTEGER ) / - 37
----
33
NULL

query I rowsort
SELECT - 10 + - 42 + - 48
----
-100

query I rowsort
SELECT - 68 * 9 AS col1
----
-612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5025
SELECT - 86 DIV + ( + COUNT( NULLIF ( + 14, - - 8 + 81 ) ) ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-5025
SELECT - 86 / + ( + COUNT ( NULLIF ( + 14, - - 8 + 81 ) ) ) AS col2
----
-86

query I rowsort
SELECT ALL ( - - 55 ) AS col1
----
55

query I rowsort
SELECT ALL + 54 + + 46 AS col2
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-5028
SELECT DISTINCT 11, COUNT( DISTINCT - 16 ) * - 0 - 5 AS col2
----
11
-5

skipif mysql # not compatible
query II rowsort label-5028
SELECT DISTINCT 11, COUNT ( DISTINCT - 16 ) * - 0 - 5 AS col2
----
11
-5

query I rowsort
SELECT ALL 50 + - - 90 AS col0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT DISTINCT + 19 + COALESCE ( - + COUNT( * ), - + 60, + ( 1 ) ) + 14
----
32

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT + 19 + COALESCE ( - + COUNT ( * ), - + 60, + ( 1 ) ) + 14
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT ALL CASE + 79 WHEN + 20 THEN + - COUNT( DISTINCT + 22 ) + + 47 WHEN 39 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL CASE + 79 WHEN + 20 THEN + - COUNT ( DISTINCT + 22 ) + + 47 WHEN 39 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + - 49 * + ( + 51 ) + - 3
----
-2502

query I rowsort
SELECT ALL - 85 + - + 88
----
-173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5034
SELECT + - 5 - - + CAST( + 24 AS SIGNED ) - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5034
SELECT + - 5 - - + CAST ( + 24 AS INTEGER ) - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5035
SELECT + COUNT( * ) + 74 + - 63 + - 12 * + + CAST( NULL AS SIGNED ) / + - ( - 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5035
SELECT + COUNT ( * ) + 74 + - 63 + - 12 * + + CAST ( NULL AS INTEGER ) / + - ( - 45 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5036
SELECT + 86 + - - 62 + + 1 DIV + - 86
----
148

skipif mysql # not compatible
query I rowsort label-5036
SELECT + 86 + - - 62 + + 1 / + - 86
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT ALL - 3 + COUNT( * ) * COUNT( * ) * + SUM( DISTINCT - - 76 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL - 3 + COUNT ( * ) * COUNT ( * ) * + SUM ( DISTINCT - - 76 ) AS col2
----
73

query II rowsort
SELECT ALL 28, - 98 AS col0
----
28
-98

query I rowsort
SELECT ALL 13 * + 96 AS col2
----
1248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5040
SELECT DISTINCT - MIN( DISTINCT - 43 ) DIV 7 + + 55 + 87 + ( + COUNT( * ) ) * 97 * - + 4 * - COUNT( * ) * + 59 AS col1
----
23040

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT - MIN ( DISTINCT - 43 ) / 7 + + 55 + 87 + ( + COUNT ( * ) ) * 97 * - + 4 * - COUNT ( * ) * + 59 AS col1
----
23040

query II rowsort
SELECT - 89, 30 AS col1
----
-89
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT + - NULLIF ( COUNT( * ), + - COUNT( * ) + COUNT( DISTINCT - 22 ) ) + + SUM( - 13 ) + 29
----
15

skipif mysql # not compatible
query I rowsort label-5042
SELECT + - NULLIF ( COUNT ( * ), + - COUNT ( * ) + COUNT ( DISTINCT - 22 ) ) + + SUM ( - 13 ) + 29
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5043
SELECT + ( + 70 ) * - 50 + + + CAST( NULL AS SIGNED ) + - + CAST( + + ( - - 5 ) AS SIGNED ) * - - NULLIF ( - 19, 76 + - 5 ) + + 71 + - 63 * + - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT + ( + 70 ) * - 50 + + + CAST ( NULL AS INTEGER ) + - + CAST ( + + ( - - 5 ) AS INTEGER ) * - - NULLIF ( - 19, 76 + - 5 ) + + 71 + - 63 * + - 8 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5044
SELECT DISTINCT 58 DIV + - 14
----
-4

skipif mysql # not compatible
query I rowsort label-5044
SELECT DISTINCT 58 / + - 14
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT + 7 * + - 44 + - 89 * + - MIN( DISTINCT 25 ) + + 21 + - - 38 * + COUNT( * )
----
1976

skipif mysql # not compatible
query I rowsort label-5045
SELECT + 7 * + - 44 + - 89 * + - MIN ( DISTINCT 25 ) + + 21 + - - 38 * + COUNT ( * )
----
1976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5046
SELECT - + 23 * + COUNT( * ) * - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5046
SELECT - + 23 * + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT ALL + + 36 * + + 23 / + - NULLIF ( - CASE - 14 WHEN 50 THEN - 60 / + 31 WHEN - + 18 * COUNT( * ) THEN - 32 END, - COUNT( * ) + 33 ) * + + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL + + 36 * + + 23 / + - NULLIF ( - CASE - 14 WHEN 50 THEN - 60 / + 31 WHEN - + 18 * COUNT ( * ) THEN - 32 END, - COUNT ( * ) + 33 ) * + + 29 AS col1
----
NULL

query II rowsort
SELECT + 96 AS col0, + 51 + + 71
----
96
122

query I rowsort
SELECT ALL + 23 * - ( + 47 ) * - - 11 + + 49 * 57 - + 59 AS col1
----
-9157

onlyif mysql # DIV for integer division: 
query I rowsort label-5050
SELECT DISTINCT 6 DIV + 48 AS col0
----
0

sk