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

skipif mysql # not compatible
query I rowsort label-5050
SELECT DISTINCT 6 / + 48 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5051
SELECT ALL - COUNT( * ) * + 88 AS col0, 12 + + CASE - 58 WHEN AVG ( ALL + 97 ) THEN NULL WHEN 99 * + 42 THEN - - 19 WHEN - + 40 + + 99 THEN NULL END + 87 + + 13 + + + 54 * + - CASE - 22 WHEN + 44 THEN + + 7 ELSE CAST( NULL AS SIGNED ) - 53 + - - 92 + + CASE CAST( 67 AS SIGNED ) WHEN + + 85 THEN NULL ELSE 79 + + NULLIF ( - + 57, - 73 * + 17 ) END END AS col1
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-5051
SELECT ALL - COUNT ( * ) * + 88 AS col0, 12 + + CASE - 58 WHEN AVG ( ALL + 97 ) THEN NULL WHEN 99 * + 42 THEN - - 19 WHEN - + 40 + + 99 THEN NULL END + 87 + + 13 + + + 54 * + - CASE - 22 WHEN + 44 THEN + + 7 ELSE CAST ( NULL AS INTEGER ) - 53 + - - 92 + + CASE CAST ( 67 AS INTEGER ) WHEN + + 85 THEN NULL ELSE 79 + + NULLIF ( - + 57, - 73 * + 17 ) END END AS col1
----
-88
NULL

query I rowsort
SELECT - 76 * + 84
----
-6384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5053
SELECT ALL 41 * - CASE - COUNT( * ) WHEN - 63 - 54 THEN NULL WHEN - NULLIF ( 13, + ( + 37 ) / 86 * + + MAX( - + CAST( NULL AS SIGNED ) ) * + 79 + 3 ) THEN + + 24 / + + COUNT( * ) * + 47 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL 41 * - CASE - COUNT ( * ) WHEN - 63 - 54 THEN NULL WHEN - NULLIF ( 13, + ( + 37 ) / 86 * + + MAX ( - + CAST ( NULL AS INTEGER ) ) * + 79 + 3 ) THEN + + 24 / + + COUNT ( * ) * + 47 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT DISTINCT 99 * + 54, 21 AS col1
----
5346
21

onlyif mysql # DIV for integer division: 
query II rowsort label-5055
SELECT DISTINCT + ( 6 ), 94 + - 92 DIV 77 DIV + - 1 AS col0
----
6
95

skipif mysql # not compatible
query II rowsort label-5055
SELECT DISTINCT + ( 6 ), 94 + - 92 / 77 / + - 1 AS col0
----
6
95

query I rowsort
SELECT ALL - 12 * + - 58
----
696

query I rowsort
SELECT DISTINCT + CASE WHEN 96 >= NULL THEN + 49 * ( - + 61 ) END AS col1
----
NULL

query I rowsort
SELECT COALESCE ( + 29, - 4 ) AS col0
----
29

query I rowsort
SELECT + 9 * + 11 - + 39 * + 1 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT DISTINCT + CASE 57 WHEN - 39 THEN + NULLIF ( - 17, - SUM( - 61 ) ) - - + 9 WHEN - ( - COUNT( * ) ) * - - SUM( DISTINCT - 4 ) + - 21 * - 46 + + COUNT( * ) + AVG ( DISTINCT + 9 ) + - 20 THEN - 67 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT + CASE 57 WHEN - 39 THEN + NULLIF ( - 17, - SUM ( - 61 ) ) - - + 9 WHEN - ( - COUNT ( * ) ) * - - SUM ( DISTINCT - 4 ) + - 21 * - 46 + + COUNT ( * ) + AVG ( DISTINCT + 9 ) + - 20 THEN - 67 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT ALL + 92 * + + COUNT( * ) + - 1
----
91

skipif mysql # not compatible
query I rowsort label-5061
SELECT ALL + 92 * + + COUNT ( * ) + - 1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT ALL + 42 * - 67 * - COUNT( * ) + - 75 AS col0
----
2739

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL + 42 * - 67 * - COUNT ( * ) + - 75 AS col0
----
2739

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT COALESCE ( + 0, - COUNT( * ) + - 72 * 59 * + + 93 )
----
0

skipif mysql # not compatible
query I rowsort label-5063
SELECT COALESCE ( + 0, - COUNT ( * ) + - 72 * 59 * + + 93 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT + MIN( ALL + - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-5064
SELECT + MIN ( ALL + - 45 )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5065
SELECT COALESCE ( - 83, + CAST( NULL AS SIGNED ), - MIN( 96 ) + + 48 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-5065
SELECT COALESCE ( - 83, + CAST ( NULL AS INTEGER ), - MIN ( 96 ) + + 48 ) AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5066
SELECT DISTINCT + SUM( ALL 24 ) * + 47 + + CAST( NULL AS SIGNED ) - - + 0 - + + 84 * - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT + SUM ( ALL 24 ) * + 47 + + CAST ( NULL AS INTEGER ) - - + 0 - + + 84 * - 81 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 82 * - 2 + + 64 AS col2
----
-100

query I rowsort
SELECT ALL 65 * - 75 + - 66
----
-4941

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5069
SELECT - CASE - + 61 WHEN - - CASE 48 WHEN - + 29 * + 67 / - ( + MIN( DISTINCT 98 ) ) * - 93 - + 73 THEN 50 ELSE NULL END + - 81 + + 22 THEN 12 / - 74 + + 77 WHEN 90 THEN + + 19 * + CAST( CASE CASE - + COUNT( * ) WHEN - - COUNT( * ) THEN NULL WHEN + COALESCE ( + 77, + 13 ) THEN - 84 ELSE 32 END WHEN - COUNT( * ) THEN - 54 ELSE + 71 - - + NULLIF ( - - 26, - - SUM( ALL - - 55 ) * + - 0 ) + + 94 * COUNT( * ) END AS SIGNED ) * + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT - CASE - + 61 WHEN - - CASE 48 WHEN - + 29 * + 67 / - ( + MIN ( DISTINCT 98 ) ) * - 93 - + 73 THEN 50 ELSE NULL END + - 81 + + 22 THEN 12 / - 74 + + 77 WHEN 90 THEN + + 19 * + CAST ( CASE CASE - + COUNT ( * ) WHEN - - COUNT ( * ) THEN NULL WHEN + COALESCE ( + 77, + 13 ) THEN - 84 ELSE 32 END WHEN - COUNT ( * ) THEN - 54 ELSE + 71 - - + NULLIF ( - - 26, - - SUM ( ALL - - 55 ) * + - 0 ) + + 94 * COUNT ( * ) END AS INTEGER ) * + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 56 * - 77 col2
----
-4312

query I rowsort
SELECT - 91 + + + 34 - - NULLIF ( 48, 51 ) AS col1
----
-9

query I rowsort
SELECT + ( - NULLIF ( + 66, - 39 ) ) * - + 30 * + - 36 * + 4 AS col1
----
-285120

query I rowsort
SELECT - 5 + + + 98 * - 69 - - 4 + - + 53 col1
----
-6816

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT + 74 - + COUNT( * ) * - + COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-5074
SELECT + 74 - + COUNT ( * ) * - + COUNT ( * ) AS col0
----
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT ALL + 74 - 93 + + COUNT( * ) * + - 64 - NULLIF ( COUNT( - 15 ), + CASE - - ( + 32 ) WHEN - 22 THEN COUNT( * ) ELSE NULL END ) + + 29 * + + 61
----
1685

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL + 74 - 93 + + COUNT ( * ) * + - 64 - NULLIF ( COUNT ( - 15 ), + CASE - - ( + 32 ) WHEN - 22 THEN COUNT ( * ) ELSE NULL END ) + + 29 * + + 61
----
1685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5077
SELECT - + 68 * + 81 * - COUNT( DISTINCT CAST( - + 49 AS SIGNED ) )
----
5508

skipif mysql # not compatible
query I rowsort label-5077
SELECT - + 68 * + 81 * - COUNT ( DISTINCT CAST ( - + 49 AS INTEGER ) )
----
5508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5078
SELECT ALL - SUM( ALL 54 ) DIV - 13 col1
----
4

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL - SUM ( ALL 54 ) / - 13 col1
----
4

query I rowsort
SELECT DISTINCT + 46 - + 5 + - 27 AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5080
SELECT CAST( - CAST( + 60 AS SIGNED ) AS SIGNED ) + + 0 * - COUNT( * ) * 56 col0
----
-60

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

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

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

query I rowsort
SELECT ALL ( - - 96 ) * - 99 - + ( 58 )
----
-9562

query II rowsort
SELECT + 76 * - 92 + - - 0, - 97 AS col1
----
-6992
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5084
SELECT + 88 DIV - - 92 + 99 * 89 * - ( + 39 ) + + 50 AS col2
----
-343579

skipif mysql # not compatible
query I rowsort label-5084
SELECT + 88 / - - 92 + 99 * 89 * - ( + 39 ) + + 50 AS col2
----
-343579

query I rowsort
SELECT + 43 * - + 89 col0
----
-3827

query II rowsort
SELECT ALL + 61 * - 18, 98 * 58 * + + 26 AS col0
----
-1098
147784

query II rowsort
SELECT 72, 6 * + + 93 AS col2
----
72
558

query I rowsort
SELECT DISTINCT 0 * - 33
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5089
SELECT NULLIF ( + 77, + - COALESCE ( NULLIF ( + CAST( - COUNT( * ) AS SIGNED ), - ( + ( 57 ) ) ), + 44, 59 ) ) / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT NULLIF ( + 77, + - COALESCE ( NULLIF ( + CAST ( - COUNT ( * ) AS INTEGER ), - ( + ( 57 ) ) ), + 44, 59 ) ) / - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5090
SELECT ALL + 52 DIV - 49 col0
----
-1

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL + 52 / - 49 col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5091
SELECT - 6 * + CASE 64 WHEN - 59 * + CASE + - 5 WHEN - + 69 * + COUNT( * ) * - + COALESCE ( 37, ( + + NULLIF ( + ( - COALESCE ( COUNT( ALL + 32 ), + + 22 / + SUM( - 96 ) + + CAST( NULL AS SIGNED ) * - + 5 * + 25 * + + 44 ) ), - 41 - - - 86 + + + 39 + ( - 49 ) ) ) ) * 6 THEN NULL WHEN + + COUNT( DISTINCT + 17 ) * 0 THEN NULL WHEN - + ( + 42 ) THEN NULL ELSE - ( + COUNT( * ) ) * - + NULLIF ( + + 92, - 93 ) + - CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) END * 60 THEN NULL WHEN ( - 90 ) + COUNT( * ) THEN + 75 ELSE NULL END + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5091
SELECT - 6 * + CASE 64 WHEN - 59 * + CASE + - 5 WHEN - + 69 * + COUNT ( * ) * - + COALESCE ( 37, ( + + NULLIF ( + ( - COALESCE ( COUNT ( ALL + 32 ), + + 22 / + SUM ( - 96 ) + + CAST ( NULL AS INTEGER ) * - + 5 * + 25 * + + 44 ) ), - 41 - - - 86 + + + 39 + ( - 49 ) ) ) ) * 6 THEN NULL WHEN + + COUNT ( DISTINCT + 17 ) * 0 THEN NULL WHEN - + ( + 42 ) THEN NULL ELSE - ( + COUNT ( * ) ) * - + NULLIF ( + + 92, - 93 ) + - CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) END * 60 THEN NULL WHEN ( - 90 ) + COUNT ( * ) THEN + 75 ELSE NULL END + COUNT ( * ) AS col2
----
NULL

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

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

query I rowsort
SELECT 92 + + 25
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5094
SELECT - 43 * - - 90 + - 67 AS col2, COALESCE ( 41, - + ( + 24 ) + ( 82 ) ) * - ( ( 92 ) ) + - 48 * - ( - 8 ) * + 86 * - 53 - CAST( - 29 AS SIGNED ) + - 75 - ( + - 85 ) + - - 65 AS col1
----
-3937
1746604

skipif mysql # not compatible
query II rowsort label-5094
SELECT - 43 * - - 90 + - 67 AS col2, COALESCE ( 41, - + ( + 24 ) + ( 82 ) ) * - ( ( 92 ) ) + - 48 * - ( - 8 ) * + 86 * - 53 - CAST ( - 29 AS INTEGER ) + - 75 - ( + - 85 ) + - - 65 AS col1
----
-3937
1746604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5095
SELECT 37 - - - COUNT( * ) DIV + 74 + 25 * + 57 * - - 1
----
1462

skipif mysql # not compatible
query I rowsort label-5095
SELECT 37 - - - COUNT ( * ) / + 74 + 25 * + 57 * - - 1
----
1462

query I rowsort
SELECT 53 * - 64 * + 35 + - 84 AS col0
----
-118804

query I rowsort
SELECT 47 - - - 19
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5098
SELECT ALL - 82 col0, CAST( COALESCE ( - 47, 14 ) AS SIGNED )
----
-82
-47

skipif mysql # not compatible
query II rowsort label-5098
SELECT ALL - 82 col0, CAST ( COALESCE ( - 47, 14 ) AS INTEGER )
----
-82
-47

query I rowsort
SELECT DISTINCT 92 + - 21
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5100
SELECT ALL CASE - 63 WHEN + NULLIF ( + 55, - 39 / 84 * + CASE - 31 WHEN - - COUNT( * ) THEN - + COUNT( * ) * - 89 + + CASE + 7 WHEN + 61 THEN NULL ELSE + - CAST( + 37 AS SIGNED ) + - + 93 END - - 35 * - 92 + + 86 * 21 * - 52 - - + 7 / 13 * + COUNT( DISTINCT 53 ) + + 74 + + 28 / 28 WHEN MIN( DISTINCT - - 26 ) * - - 5 THEN NULL ELSE - + 32 + - 65 END * - 48 ) + 11 + 68 THEN NULL WHEN - COUNT( * ) * COUNT( * ) THEN + 20 END + - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL CASE - 63 WHEN + NULLIF ( + 55, - 39 / 84 * + CASE - 31 WHEN - - COUNT ( * ) THEN - + COUNT ( * ) * - 89 + + CASE + 7 WHEN + 61 THEN NULL ELSE + - CAST ( + 37 AS INTEGER ) + - + 93 END - - 35 * - 92 + + 86 * 21 * - 52 - - + 7 / 13 * + COUNT ( DISTINCT 53 ) + + 74 + + 28 / 28 WHEN MIN ( DISTINCT - - 26 ) * - - 5 THEN NULL ELSE - + 32 + - 65 END * - 48 ) + 11 + 68 THEN NULL WHEN - COUNT ( * ) * COUNT ( * ) THEN + 20 END + - 59 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL - 54 + 25
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5103
SELECT 37 + - 96 - - + COUNT( DISTINCT - - 64 ) + 81 * + 11 * - 91 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5103
SELECT 37 + - 96 - - + COUNT ( DISTINCT - - 64 ) + 81 * + 11 * - 91 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5104
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) * - - ( - 31 ) * - - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - - ( - 31 ) * - - 89
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5105
SELECT ALL - 90 + 72 DIV + 73 AS col0, - 76
----
-90
-76

skipif mysql # not compatible
query II rowsort label-5105
SELECT ALL - 90 + 72 / + 73 AS col0, - 76
----
-90
-76

query I rowsort
SELECT 46 + 30
----
76

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5108
SELECT ALL 61 AS col1, SUM( ALL 19 ) AS col0
----
61
19

skipif mysql # not compatible
query II rowsort label-5108
SELECT ALL 61 AS col1, SUM ( ALL 19 ) AS col0
----
61
19

query I rowsort
SELECT ALL - 69 + - 27 - 53 + + 76 * + - 29 * 13
----
-28801

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT NULLIF ( - COUNT( * ), + 71 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5110
SELECT NULLIF ( - COUNT ( * ), + 71 ) col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5111
SELECT + CAST( - COUNT( * ) AS SIGNED ) + - - MAX( DISTINCT + - CAST( + 47 AS SIGNED ) )
----
-48

skipif mysql # not compatible
query I rowsort label-5111
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) + - - MAX ( DISTINCT + - CAST ( + 47 AS INTEGER ) )
----
-48

query II rowsort
SELECT - + 82 AS col1, 37 - + - 12
----
-82
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT ALL - COUNT( * ) - + - 66 * 87 - + + 24
----
5717

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL - COUNT ( * ) - + - 66 * 87 - + + 24
----
5717

query I rowsort
SELECT ALL + - 61 * + + 45 * - 75
----
205875

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5115
SELECT + 25 * 13 DIV + 83 col2, - COUNT( * )
----
3
-1

skipif mysql # not compatible
query II rowsort label-5115
SELECT + 25 * 13 / + 83 col2, - COUNT ( * )
----
3
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5116
SELECT ALL + 17 DIV 21 + + CAST( - - 10 AS SIGNED ) + + 31
----
41

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL + 17 / 21 + + CAST ( - - 10 AS INTEGER ) + + 31
----
41

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

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

query I rowsort
SELECT DISTINCT + + 95 * + 32
----
3040

onlyif mysql # DIV for integer division: 
query I rowsort label-5119
SELECT - 91 DIV + - 32 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5119
SELECT - 91 / + - 32 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT ALL + 51 * COALESCE ( + 94, + + COUNT( * ) ) + COALESCE ( 17, 94 )
----
4811

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL + 51 * COALESCE ( + 94, + + COUNT ( * ) ) + COALESCE ( 17, 94 )
----
4811

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT COUNT( 12 )
----
1

skipif mysql # not compatible
query I rowsort label-5121
SELECT COUNT ( 12 )
----
1

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

query I rowsort
SELECT 75 + 94 * - - 83 - - 67
----
7944

query I rowsort
SELECT + 41 * - 26 AS col2
----
-1066

onlyif mysql # DIV for integer division: 
query I rowsort label-5125
SELECT - + 42 DIV - - 22 + 14
----
13

skipif mysql # not compatible
query I rowsort label-5125
SELECT - + 42 / - - 22 + 14
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5126
SELECT DISTINCT - 98, CAST( NULL AS SIGNED ) AS col1
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-5126
SELECT DISTINCT - 98, CAST ( NULL AS INTEGER ) AS col1
----
-98
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5127
SELECT ALL - 57 DIV - 10 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL - 57 / - 10 AS col0
----
5

query I rowsort
SELECT 86 * + + 85
----
7310

query I rowsort
SELECT NULLIF ( + 46, - 39 ) * - 39 col1
----
-1794

query I rowsort
SELECT ALL + 85 + - 18 AS col2
----
67

query II rowsort
SELECT ALL 87 + + 69 AS col0, - 51
----
156
-51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5133
SELECT - ( - - COUNT( * ) ) / - SUM( ALL 99 ) / - 26 + CAST( NULL AS SIGNED ) + + 35 AS col2, 48 * + ( 50 )
----
NULL
2400

skipif mysql # not compatible
query II rowsort label-5133
SELECT - ( - - COUNT ( * ) ) / - SUM ( ALL 99 ) / - 26 + CAST ( NULL AS INTEGER ) + + 35 AS col2, 48 * + ( 50 )
----
NULL
2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5134
SELECT DISTINCT CAST( - 39 AS SIGNED ) + - 58 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-5134
SELECT DISTINCT CAST ( - 39 AS INTEGER ) + - 58 AS col1
----
-97

query I rowsort
SELECT DISTINCT + 67 + ( + 26 )
----
93

query II rowsort
SELECT ALL 33 + - - 99 AS col1, 48
----
132
48

query I rowsort
SELECT ( 28 ) * + 87 + 31
----
2467

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

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

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

skipif mysql # not compatible
query I rowsort label-5139
SELECT MIN ( + 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT 86 * - 31 * + 50 * - - COUNT( * ) - 13 AS col1
----
-133313

skipif mysql # not compatible
query I rowsort label-5140
SELECT 86 * - 31 * + 50 * - - COUNT ( * ) - 13 AS col1
----
-133313

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5141
SELECT MIN( 62 ) DIV + + 90 + MIN( + - 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-5141
SELECT MIN ( 62 ) / + + 90 + MIN ( + - 80 )
----
-80

query I rowsort
SELECT ALL 13 * 14 + + - 94 col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT DISTINCT COUNT( * ) * + CASE + 76 WHEN + 5 THEN NULL WHEN - + 70 THEN - 1 + + 56 ELSE - COUNT( * ) END * + 81 + - 41 AS col2
----
-122

skipif mysql # not compatible
query I rowsort label-5143
SELECT DISTINCT COUNT ( * ) * + CASE + 76 WHEN + 5 THEN NULL WHEN - + 70 THEN - 1 + + 56 ELSE - COUNT ( * ) END * + 81 + - 41 AS col2
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5144
SELECT ALL + COUNT( * ) * + + CAST( NULL AS SIGNED ) * 32 / - 33 - - 61 - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * 32 / - 33 - - 61 - 88
----
NULL

query I rowsort
SELECT ALL ( - 56 ) * - + 98 AS col0
----
5488

query II rowsort
SELECT ALL + 55 * - 1 col0, 48 AS col0
----
-55
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5147
SELECT - - COALESCE ( 38, - CASE - 48 WHEN - - 93 + - CAST( - - 78 AS SIGNED ) * ( - MAX( ALL 30 ) ) THEN - AVG ( + 27 ) DIV - COUNT( * ) DIV + 34 * + 8 - - + 76 + + 62 * + CASE - COUNT( * ) WHEN - + 6 THEN + CASE COALESCE ( + 17, + 96 * - 29 ) WHEN 11 - + CAST( NULL AS SIGNED ) + + 13 * - - 70 DIV - 91 DIV + 90 DIV - 52 + 40 * - 51 * + 32 + - + 43 * + ( 0 ) THEN NULL WHEN - 46 * 20 THEN NULL WHEN - 65 THEN 3 ELSE NULL END WHEN - 79 THEN - 48 ELSE NULL END ELSE NULL END DIV - COUNT( DISTINCT 26 ) )
----
38

skipif mysql # not compatible
query I rowsort label-5147
SELECT - - COALESCE ( 38, - CASE - 48 WHEN - - 93 + - CAST ( - - 78 AS INTEGER ) * ( - MAX ( ALL 30 ) ) THEN - AVG ( + 27 ) / - COUNT ( * ) / + 34 * + 8 - - + 76 + + 62 * + CASE - COUNT ( * ) WHEN - + 6 THEN + CASE COALESCE ( + 17, + 96 * - 29 ) WHEN 11 - + CAST ( NULL AS INTEGER ) + + 13 * - - 70 / - 91 / + 90 / - 52 + 40 * - 51 * + 32 + - + 43 * + ( 0 ) THEN NULL WHEN - 46 * 20 THEN NULL WHEN - 65 THEN 3 ELSE NULL END WHEN - 79 THEN - 48 ELSE NULL END ELSE NULL END / - COUNT ( DISTINCT 26 ) )
----
38

query I rowsort
SELECT + ( + + NULLIF ( + - 43, + 16 ) ) AS col1
----
-43

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

skipif mysql # not compatible
query I rowsort label-5149
SELECT + - ( CAST ( NULL AS INTEGER ) ) + 12 + - 35 AS col2
----
NULL

query I rowsort
SELECT - - 11 * 74 + + 42 AS col1
----
856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5151
SELECT ALL + CASE - 53 WHEN + + ( - - CAST( NULL AS SIGNED ) ) / + 65 THEN NULL WHEN 23 THEN 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL + CASE - 53 WHEN + + ( - - CAST ( NULL AS INTEGER ) ) / + 65 THEN NULL WHEN 23 THEN 7 ELSE NULL END
----
NULL

query I rowsort
SELECT + 98 * 78 AS col1
----
7644

query I rowsort
SELECT + + 41 + - ( + 6 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT ALL - + 17 + - ( + COUNT( * ) )
----
-18

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL - + 17 + - ( + COUNT ( * ) )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT - + 34 * NULLIF ( COUNT( * ), - 24 * + + 14 + - 36 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-5155
SELECT - + 34 * NULLIF ( COUNT ( * ), - 24 * + + 14 + - 36 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-5156
SELECT DISTINCT - 11 + - ( - - 4 ) * + 8 + + 49 AS col2, COUNT( * ) - COUNT( * )
----
6
0

skipif mysql # not compatible
query II rowsort label-5156
SELECT DISTINCT - 11 + - ( - - 4 ) * + 8 + + 49 AS col2, COUNT ( * ) - COUNT ( * )
----
6
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5157
SELECT - CASE + CAST( NULL AS SIGNED ) WHEN CAST( NULL AS SIGNED ) THEN 94 WHEN 34 + + + COUNT( * ) THEN + MAX( - + CAST( + 64 AS DECIMAL ) ) * + 20 ELSE - - 21 * - 15 END + 79 * + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5157
SELECT - CASE + CAST ( NULL AS INTEGER ) WHEN CAST ( NULL AS INTEGER ) THEN 94 WHEN 34 + + + COUNT ( * ) THEN + MAX ( - + CAST ( + 64 AS REAL ) ) * + 20 ELSE - - 21 * - 15 END + 79 * + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5158
SELECT - 5 DIV + 18 * - 78
----
0

skipif mysql # not compatible
query I rowsort label-5158
SELECT - 5 / + 18 * - 78
----
0

query I rowsort
SELECT ALL - 53 + - + 15 AS col0
----
-68

query I rowsort
SELECT - 17 + + 19
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT - 93 + + 99 * - + 13 + 85 + - 65 + + - ( 98 ) + + + COUNT( * ) - + + 51 * + 87 * 8 + 89 col1
----
-36864

skipif mysql # not compatible
query I rowsort label-5161
SELECT - 93 + + 99 * - + 13 + 85 + - 65 + + - ( 98 ) + + + COUNT ( * ) - + + 51 * + 87 * 8 + 89 col1
----
-36864

query I rowsort
SELECT - 52 * + - 86
----
4472

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT ALL COUNT( * ) * 7 + 15
----
22

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL COUNT ( * ) * 7 + 15
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-5166
SELECT - 39 + - 52 + - 11 DIV + 38 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-5166
SELECT - 39 + - 52 + - 11 / + 38 AS col0
----
-91

query I rowsort
SELECT DISTINCT 51 * + 18 AS col0
----
918

query I rowsort
SELECT + 92 + - + 72 AS col1
----
20

query I rowsort
SELECT ALL + ( + + 37 ) * + - 83 - 80 col2
----
-3151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5170
SELECT - 3 + 99 + - 98 + CASE - 18 WHEN + COALESCE ( 48, + ( - 38 ) ) * - + 86 * - 98 THEN NULL WHEN 51 THEN + CASE + - SUM( ALL + 51 ) WHEN CAST( NULL AS SIGNED ) THEN 0 WHEN 14 THEN NULL WHEN + 15 - COUNT( * ) THEN NULL ELSE NULL END END * + CAST( NULL AS SIGNED ) * + 64 * + ( 98 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5170
SELECT - 3 + 99 + - 98 + CASE - 18 WHEN + COALESCE ( 48, + ( - 38 ) ) * - + 86 * - 98 THEN NULL WHEN 51 THEN + CASE + - SUM ( ALL + 51 ) WHEN CAST ( NULL AS INTEGER ) THEN 0 WHEN 14 THEN NULL WHEN + 15 - COUNT ( * ) THEN NULL ELSE NULL END END * + CAST ( NULL AS INTEGER ) * + 64 * + ( 98 ) AS col0
----
NULL

query I rowsort
SELECT ALL 91 * 30 AS col2
----
2730

query I rowsort
SELECT - 2 * + - 43 + + 26 AS col1
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5173
SELECT DISTINCT 26 * + COUNT( DISTINCT + 97 ), + ( - + ( + 64 ) ) DIV 45 AS col2
----
26
-1

skipif mysql # not compatible
query II rowsort label-5173
SELECT DISTINCT 26 * + COUNT ( DISTINCT + 97 ), + ( - + ( + 64 ) ) / 45 AS col2
----
26
-1

query II rowsort
SELECT ALL + 68, - 17 + + 8 AS col2
----
68
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5175
SELECT - + 95 DIV - - 59
----
-1

skipif mysql # not compatible
query I rowsort label-5175
SELECT - + 95 / - - 59
----
-1

query I rowsort
SELECT + + 89 * + 68 + + + ( - ( + 59 ) ) * - 58
----
9474

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT + 98 * COUNT( * ) * - 26 + + + 92 AS col2
----
-2456

skipif mysql # not compatible
query I rowsort label-5177
SELECT + 98 * COUNT ( * ) * - 26 + + + 92 AS col2
----
-2456

onlyif mysql # DIV for integer division: 
query I rowsort label-5178
SELECT ALL 13 DIV 53 + NULLIF ( - + 96, + 80 + + ( - + 28 ) * - 17 ) * + 84
----
-8064

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL 13 / 53 + NULLIF ( - + 96, + 80 + + ( - + 28 ) * - 17 ) * + 84
----
-8064

query I rowsort
SELECT + 83 + ( + 23 ) + + 29 + - 16 + + 79 AS col1
----
198

query I rowsort
SELECT DISTINCT + 43 + + 7 * 89 col1
----
666

query I rowsort
SELECT ALL 40 * - 60 + + + 81 - - 98
----
-2221

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT ALL - 74 * - 64 + COUNT( * ) * + + CASE 80 WHEN - + 20 * - ( - 80 ) - - 98 THEN ( - MAX( - 98 ) ) * + 71 / - 87 - 49 + - 61 + 4 END / + - 70 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL - 74 * - 64 + COUNT ( * ) * + + CASE 80 WHEN - + 20 * - ( - 80 ) - - 98 THEN ( - MAX ( - 98 ) ) * + 71 / - 87 - 49 + - 61 + 4 END / + - 70 col1
----
NULL

query I rowsort
SELECT + - 88 + - 85 AS col2
----
-173

query I rowsort
SELECT DISTINCT 2 + + 71 + - 3 * - - 43 * 84
----
-10763

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT - + COUNT( * ) + 65 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5185
SELECT - + COUNT ( * ) + 65 AS col0
----
64

query I rowsort
SELECT ALL + 49 + + + 46 + + ( 36 ) col0
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5187
SELECT DISTINCT 99 AS col1, CASE - 10 WHEN 33 THEN + MAX( ALL - COALESCE ( + + CAST( + - 82 AS SIGNED ), - - 75 * - + 77 + + + 86 * - 32 ) ) ELSE NULL END * ( 14 ) * + 61
----
99
NULL

skipif mysql # not compatible
query II rowsort label-5187
SELECT DISTINCT 99 AS col1, CASE - 10 WHEN 33 THEN + MAX ( ALL - COALESCE ( + + CAST ( + - 82 AS INTEGER ), - - 75 * - + 77 + + + 86 * - 32 ) ) ELSE NULL END * ( 14 ) * + 61
----
99
NULL

query I rowsort
SELECT + 52 - 72 * 37 AS col0
----
-2612

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

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT - 40 + ( + CAST ( NULL AS INTEGER ) ) / + + 67
----
NULL

query I rowsort
SELECT ALL 34 + - 79
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-5191
SELECT ALL - COALESCE ( - 53, COALESCE ( 94, - + 13 * 5 + - 23 ) * COUNT( * ) ) + 40 AS col0, + 92
----
93
92

skipif mysql # not compatible
query II rowsort label-5191
SELECT ALL - COALESCE ( - 53, COALESCE ( 94, - + 13 * 5 + - 23 ) * COUNT ( * ) ) + 40 AS col0, + 92
----
93
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT - 64 + - 78 + 84 * + + 71 * + COUNT( * ) AS col1
----
5822

skipif mysql # not compatible
query I rowsort label-5192
SELECT - 64 + - 78 + 84 * + + 71 * + COUNT ( * ) AS col1
----
5822

onlyif mysql # DIV for integer division: 
query I rowsort label-5193
SELECT - 80 DIV ( - + 75 ) + 20
----
21

skipif mysql # not compatible
query I rowsort label-5193
SELECT - 80 / ( - + 75 ) + 20
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-5194
SELECT + 28 * - + 72 AS col1, COUNT( * ) + 52 AS col0
----
-2016
53

skipif mysql # not compatible
query II rowsort label-5194
SELECT + 28 * - + 72 AS col1, COUNT ( * ) + 52 AS col0
----
-2016
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5195
SELECT DISTINCT + 40 / CAST( NULL AS SIGNED ) * - MAX( ALL + + 6 ) - MAX( ALL 57 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5195
SELECT DISTINCT + 40 / CAST ( NULL AS INTEGER ) * - MAX ( ALL + + 6 ) - MAX ( ALL 57 ) AS col1
----
NULL

query I rowsort
SELECT + 63 * + 6 AS col1
----
378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5197
SELECT - 68 * - CAST( - SUM( ALL + 68 ) AS SIGNED )
----
-4624

skipif mysql # not compatible
query I rowsort label-5197
SELECT - 68 * - CAST ( - SUM ( ALL + 68 ) AS INTEGER )
----
-4624

onlyif mysql # aggregate syntax: 
query II rowsort label-5198
SELECT DISTINCT + COUNT( * ), + 4 * - 45 AS col1
----
1
-180

skipif mysql # not compatible
query II rowsort label-5198
SELECT DISTINCT + COUNT ( * ), + 4 * - 45 AS col1
----
1
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5199
SELECT DISTINCT + 5 * + CAST( - 1 AS SIGNED ) AS col0
----
-5

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5200
SELECT ALL + 60 DIV - 74 AS col0, - 4 AS col1
----
0
-4

skipif mysql # not compatible
query II rowsort label-5200
SELECT ALL + 60 / - 74 AS col0, - 4 AS col1
----
0
-4

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

query I rowsort
SELECT + 91 * - 97 AS col2
----
-8827

onlyif mysql # DIV for integer division: 
query I rowsort label-5203
SELECT ALL + NULLIF ( + - 42, - 49 ) DIV + - 40 - + 77 + - 11 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL + NULLIF ( + - 42, - 49 ) / + - 40 - + 77 + - 11 AS col2
----
-87

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

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

query II rowsort
SELECT + + 19, + 44 AS col2
----
19
44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5206
SELECT + + COALESCE ( - 96, 76 - - 48 * - - 11 DIV - AVG ( ALL - COALESCE ( CAST( NULL AS SIGNED ), + + 45 * + 36, + 7 ) ) ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-5206
SELECT + + COALESCE ( - 96, 76 - - 48 * - - 11 / - AVG ( ALL - COALESCE ( CAST ( NULL AS INTEGER ), + + 45 * + 36, + 7 ) ) ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT 52 + - + COALESCE ( + + 68, + ( + - COALESCE ( - 90, - 28 * 8 - - + COUNT( * ) ) ) * + 0, + NULLIF ( 22, - MAX( DISTINCT 48 ) * + 35 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-5207
SELECT 52 + - + COALESCE ( + + 68, + ( + - COALESCE ( - 90, - 28 * 8 - - + COUNT ( * ) ) ) * + 0, + NULLIF ( 22, - MAX ( DISTINCT 48 ) * + 35 ) )
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-5208
SELECT ALL - MIN( ALL + 20 ) + + - 78 * - - 43 AS col2, 30
----
-3374
30

skipif mysql # not compatible
query II rowsort label-5208
SELECT ALL - MIN ( ALL + 20 ) + + - 78 * - - 43 AS col2, 30
----
-3374
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT DISTINCT - 72 + - - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT - 72 + - - COUNT ( * )
----
-71

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5211
SELECT ALL 87 AS col1, + CAST( NULL AS SIGNED ) AS col0
----
87
NULL

skipif mysql # not compatible
query II rowsort label-5211
SELECT ALL 87 AS col1, + CAST ( NULL AS INTEGER ) AS col0
----
87
NULL

query I rowsort
SELECT ALL - ( + - 81 ) + 84
----
165

query I rowsort
SELECT - 16 * - 18 * 80 * 55
----
1267200

query I rowsort
SELECT DISTINCT - + 33 + + 96 AS col2
----
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5215
SELECT ALL + ( - 42 ) + + - COALESCE ( + - 54, + 68 ) / - CAST( NULL AS DECIMAL ) / + 17 / - 59 * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL + ( - 42 ) + + - COALESCE ( + - 54, + 68 ) / - CAST ( NULL AS REAL ) / + 17 / - 59 * - 59
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5217
SELECT + CAST( + - ( + 32 ) AS SIGNED ) DIV - 10
----
3

skipif mysql # not compatible
query I rowsort label-5217
SELECT + CAST ( + - ( + 32 ) AS INTEGER ) / - 10
----
3

query II rowsort
SELECT - + 44 col1, - 13
----
-44
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT DISTINCT NULLIF ( + 66, + COUNT( * ) ) * + + 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT NULLIF ( + 66, + COUNT ( * ) ) * + + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT DISTINCT 82 + - 24 * + - COUNT( * )
----
106

skipif mysql # not compatible
query I rowsort label-5220
SELECT DISTINCT 82 + - 24 * + - COUNT ( * )
----
106

query I rowsort
SELECT ALL ( - 84 ) + + + COALESCE ( + + ( - 35 ), 8 ) + 49 + + 91
----
21

query I rowsort
SELECT ALL 17 - + 70 + 90
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5223
SELECT ( - 43 ) + - + MIN( + 52 ) * - 99 / 62 - - MAX( - 61 ) - - 52 + + CAST( NULL AS SIGNED ) * + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5223
SELECT ( - 43 ) + - + MIN ( + 52 ) * - 99 / 62 - - MAX ( - 61 ) - - 52 + + CAST ( NULL AS INTEGER ) * + - 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT ALL ( MIN( DISTINCT 23 ) ) * NULLIF ( + 91, - 98 * COUNT( + 36 ) + - - 35 + + - COUNT( * ) - + + COUNT( * ) ) col2
----
2093

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL ( MIN ( DISTINCT 23 ) ) * NULLIF ( + 91, - 98 * COUNT ( + 36 ) + - - 35 + + - COUNT ( * ) - + + COUNT ( * ) ) col2
----
2093

query I rowsort
SELECT 75 * - 20 AS col1
----
-1500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5226
SELECT DISTINCT CAST( NULL AS SIGNED ) - - 67 AS col2, + 53 * 35 DIV - SUM( + 29 ) AS col0
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-5226
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 67 AS col2, + 53 * 35 / - SUM ( + 29 ) AS col0
----
NULL
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT + 6 * NULLIF ( + 51, 47 ) * - - 46 + + - ( - MAX( DISTINCT - - 33 ) ) AS col1
----
14109

skipif mysql # not compatible
query I rowsort label-5227
SELECT + 6 * NULLIF ( + 51, 47 ) * - - 46 + + - ( - MAX ( DISTINCT - - 33 ) ) AS col1
----
14109

query I rowsort
SELECT DISTINCT + 55 * - 39 AS col2
----
-2145

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT 98 * + COUNT( * ) * - - CASE + 61 WHEN 59 + + MIN( ALL + 7 ) THEN NULL ELSE + - MIN( + ( + 4 ) ) END AS col2
----
-392

skipif mysql # not compatible
query I rowsort label-5229
SELECT 98 * + COUNT ( * ) * - - CASE + 61 WHEN 59 + + MIN ( ALL + 7 ) THEN NULL ELSE + - MIN ( + ( + 4 ) ) END AS col2
----
-392

onlyif mysql # DIV for integer division: 
query I rowsort label-5230
SELECT 41 + - 72 DIV + ( + - 31 )
----
43

skipif mysql # not compatible
query I rowsort label-5230
SELECT 41 + - 72 / + ( + - 31 )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5231
SELECT 29 + COALESCE ( + - 46, - 54 + + 60 + - - 27 + - CAST( + 32 AS SIGNED ) * - 51 ) + + 50 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-5231
SELECT 29 + COALESCE ( + - 46, - 54 + + 60 + - - 27 + - CAST ( + 32 AS INTEGER ) * - 51 ) + + 50 AS col2
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5232
SELECT + + COUNT( DISTINCT 41 ) AS col1, 7 * MIN( ALL + ( 71 ) )
----
1
497

skipif mysql # not compatible
query II rowsort label-5232
SELECT + + COUNT ( DISTINCT 41 ) AS col1, 7 * MIN ( ALL + ( 71 ) )
----
1
497

query I rowsort
SELECT ALL - - 23 + + 96 AS col1
----
119

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

query I rowsort
SELECT DISTINCT - + 81 + - 86 * - + ( - - 96 ) col2
----
8175

onlyif mysql # aggregate syntax: 
query II rowsort label-5236
SELECT ALL - 82 + 66, COUNT( * ) AS col2
----
-16
1

skipif mysql # not compatible
query II rowsort label-5236
SELECT ALL - 82 + 66, COUNT ( * ) AS col2
----
-16
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5237
SELECT DISTINCT + - 68 / - CAST( NULL AS DECIMAL ) * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT + - 68 / - CAST ( NULL AS REAL ) * 58
----
NULL

query I rowsort
SELECT + 67 + + + 80
----
147

query I rowsort
SELECT 69 * - - 16
----
1104

query I rowsort
SELECT + 81 + + ( - 20 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT ALL NULLIF ( COUNT( * ), - CASE MAX( ALL + + 31 ) WHEN - + 57 THEN - 47 ELSE - 3 END )
----
1

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL NULLIF ( COUNT ( * ), - CASE MAX ( ALL + + 31 ) WHEN - + 57 THEN - 47 ELSE - 3 END )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5242
SELECT 31 * NULLIF ( COALESCE ( + - 13, + + 71 * - 83 + 12, - 12 ), + 96 ) DIV 17 * + 26 * + ( - 64 ) * + + 49 * - + ( + 47 ) AS col0
----
-88140416

skipif mysql # not compatible
query I rowsort label-5242
SELECT 31 * NULLIF ( COALESCE ( + - 13, + + 71 * - 83 + 12, - 12 ), + 96 ) / 17 * + 26 * + ( - 64 ) * + + 49 * - + ( + 47 ) AS col0
----
-88140416

query I rowsort
SELECT ALL + ( 97 ) - + + 21 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT 21 * + COUNT( * ) * - 75
----
-1575

skipif mysql # not compatible
query I rowsort label-5244
SELECT 21 * + COUNT ( * ) * - 75
----
-1575

onlyif mysql # DIV for integer division: 
query I rowsort label-5245
SELECT DISTINCT 34 DIV - + ( - 11 ) col2
----
3

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT 34 / - + ( - 11 ) col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5246
SELECT ( 50 ) DIV - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5246
SELECT ( 50 ) / - 75 AS col2
----
0

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

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

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

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

query I rowsort
SELECT ALL COALESCE ( + 98, + 56 + + 65 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5250
SELECT + ( + NULLIF ( 75, 55 * + - 79 + - + 4 * CASE + - 21 WHEN MAX( + 24 ) THEN COUNT( * ) END DIV + ( 39 ) + - 63 ) ) DIV - + NULLIF ( - CAST( + 7 AS SIGNED ), - 60 ) + + 20 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5250
SELECT + ( + NULLIF ( 75, 55 * + - 79 + - + 4 * CASE + - 21 WHEN MAX ( + 24 ) THEN COUNT ( * ) END / + ( 39 ) + - 63 ) ) / - + NULLIF ( - CAST ( + 7 AS INTEGER ), - 60 ) + + 20 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT + ( + COUNT( * ) ) * + - NULLIF ( + 51, + 97 * + - 90 )
----
-51

skipif mysql # not compatible
query I rowsort label-5251
SELECT + ( + COUNT ( * ) ) * + - NULLIF ( + 51, + 97 * + - 90 )
----
-51

query I rowsort
SELECT ALL 67 * ( - + 62 ) AS col0
----
-4154

onlyif mysql # DIV for integer division: 
query I rowsort label-5253
SELECT + 73 DIV 3
----
24

skipif mysql # not compatible
query I rowsort label-5253
SELECT + 73 / 3
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5254
SELECT + 79 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5254
SELECT + 79 / - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 91 * + - 0 AS col2
----
0

query I rowsort
SELECT + NULLIF ( - 52, + COALESCE ( - 85, - 9, - - ( 30 ) ) ) AS col2
----
-52

query I rowsort
SELECT + - COALESCE ( + 71, - + COALESCE ( - 0, - 3 ) ) * + ( + - 14 )
----
994

query I rowsort
SELECT + + 33 * - 69
----
-2277

query II rowsort
SELECT ALL + - 51 * - 52 * + + 33 + + - COALESCE ( + 9, - 96 + + 37 ) * + 0 AS col0, 81
----
87516
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT DISTINCT + COUNT( ALL + 6 )
----
1

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT + COUNT ( ALL + 6 )
----
1

query I rowsort
SELECT DISTINCT + 56 * - + 21
----
-1176

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

query I rowsort
SELECT + 8 * + 95 + + 42 + + 40 AS col1
----
842

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

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

query II rowsort
SELECT 76, 0 col0
----
76
0

query I rowsort
SELECT DISTINCT - 95 * - 94 AS col2
----
8930

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT + 95 * - COUNT( * ) * - - SUM( + 31 ) - + 28 * 13 AS col2
----
-3309

skipif mysql # not compatible
query I rowsort label-5267
SELECT + 95 * - COUNT ( * ) * - - SUM ( + 31 ) - + 28 * 13 AS col2
----
-3309

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5268
SELECT + - 56 + + COALESCE ( + + 24, + 98 * - ( - 20 ) * + 76 - - + 60, - 67 + - + COUNT( * ) + - 2 + ( - ( - + NULLIF ( - 48, - 72 ) ) ) * - + 98 ) + - 54 + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5268
SELECT + - 56 + + COALESCE ( + + 24, + 98 * - ( - 20 ) * + 76 - - + 60, - 67 + - + COUNT ( * ) + - 2 + ( - ( - + NULLIF ( - 48, - 72 ) ) ) * - + 98 ) + - 54 + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - - 51 * - 26
----
-1326

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT NULLIF ( + 21, COUNT( * ) * + 51 + + + 58 ) col0
----
21

skipif mysql # not compatible
query I rowsort label-5270
SELECT NULLIF ( + 21, COUNT ( * ) * + 51 + + + 58 ) col0
----
21

query I rowsort
SELECT ALL - 78 * 97 * + - 18 - + - 46 * - 49
----
133934

query I rowsort
SELECT COALESCE ( + + 5, 86, 73 )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5273
SELECT ALL 53 * MAX( ALL - 63 ), COUNT( * ) + MIN( ALL 93 ) col0
----
-3339
94

skipif mysql # not compatible
query II rowsort label-5273
SELECT ALL 53 * MAX ( ALL - 63 ), COUNT ( * ) + MIN ( ALL 93 ) col0
----
-3339
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5274
SELECT - 92 DIV - 66
----
1

skipif mysql # not compatible
query I rowsort label-5274
SELECT - 92 / - 66
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5275
SELECT ALL - - 91 DIV + - 47
----
-1

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL - - 91 / + - 47
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5276
SELECT - CAST( NULL AS SIGNED ) * + ( - 42 ) - + 80 + + ( + 94 ) * + ( - COUNT( * ) ) + + + COUNT( * ) * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT - CAST ( NULL AS INTEGER ) * + ( - 42 ) - + 80 + + ( + 94 ) * + ( - COUNT ( * ) ) + + + COUNT ( * ) * 44
----
NULL

query I rowsort
SELECT - 76 + + 46
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-5278
SELECT + 87 DIV 74
----
1

skipif mysql # not compatible
query I rowsort label-5278
SELECT + 87 / 74
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT DISTINCT ( + + SUM( + - 10 ) ) col1
----
-10

skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT ( + + SUM ( + - 10 ) ) col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT - 40 + - 99 - + COUNT( * ) + - 24
----
-164

skipif mysql # not compatible
query I rowsort label-5280
SELECT - 40 + - 99 - + COUNT ( * ) + - 24
----
-164

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

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

query I rowsort
SELECT ALL + 73 * + 12 * - 74
----
-64824

query I rowsort
SELECT - NULLIF ( 70, - 12 ) * + 79
----
-5530

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT ALL + COUNT( * ) * 7 * 80 AS col2
----
560

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL + COUNT ( * ) * 7 * 80 AS col2
----
560

onlyif mysql # DIV for integer division: 
query I rowsort label-5285
SELECT DISTINCT COALESCE ( - 43, 93 DIV + 9 * + + 75 + 14 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-5285
SELECT DISTINCT COALESCE ( - 43, 93 / + 9 * + + 75 + 14 ) AS col0
----
-43

query I rowsort
SELECT - ( + 51 ) + + + 11 AS col0
----
-40

query II rowsort
SELECT ALL + 73 * 26 AS col2, 49 * - + 40 AS col2
----
1898
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT - CASE - 45 WHEN NULLIF ( + 4, - 7 * 98 / 73 / - ( 48 ) ) THEN 77 + - 53 WHEN + 10 * - 4 * + + 66 * - 80 + + 31 * COUNT( ALL ( 20 ) ) THEN NULL ELSE NULL END * - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5288
SELECT - CASE - 45 WHEN NULLIF ( + 4, - 7 * 98 / 73 / - ( 48 ) ) THEN 77 + - 53 WHEN + 10 * - 4 * + + 66 * - 80 + + 31 * COUNT ( ALL ( 20 ) ) THEN NULL ELSE NULL END * - 97 AS col0
----
NULL

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

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

query I rowsort
SELECT - NULLIF ( 27, - 51 ) + - 42
----
-69

query I rowsort
SELECT ALL + 1 + + 91 * + 40 * - 41 + + 51
----
-149188

query II rowsort
SELECT - 67 + + 19 col1, + 72 AS col1
----
-48
72

query I rowsort
SELECT + 73 * - + 37 * - 73 col2
----
197173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5294
SELECT ALL MIN( - - CAST( NULL AS SIGNED ) ) / - - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL MIN ( - - CAST ( NULL AS INTEGER ) ) / - - 38
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5295
SELECT ALL 52 / + 39 - - 19 * + 36 + 85 * + + CASE + 51 WHEN 83 THEN NULL WHEN + + CAST( NULL AS SIGNED ) THEN + 80 * + + 79 + - + SUM( 31 ) + - COALESCE ( + + 89, + 21, - 94 ) ELSE NULL END * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL 52 / + 39 - - 19 * + 36 + 85 * + + CASE + 51 WHEN 83 THEN NULL WHEN + + CAST ( NULL AS INTEGER ) THEN + 80 * + + 79 + - + SUM ( 31 ) + - COALESCE ( + + 89, + 21, - 94 ) ELSE NULL END * + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT - + 82 * - + AVG ( + CASE + ( + 86 ) WHEN + NULLIF ( + 23, 17 ) THEN - - 14 ELSE NULL END ) * + - 61 + 90 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5297
SELECT ALL - 66 * - 14 / - + 47 + + + 24 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL - 66 * - 14 / - + 47 + + + 24 - + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 60 + 4 AS col0
----
-56

query I rowsort
SELECT + - 96 * + 31
----
-2976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5300
SELECT DISTINCT + + COALESCE ( - - CAST( - 62 AS SIGNED ), - + 16, - ( - ( - COUNT( * ) ) ) )
----
-62

skipif mysql # not compatible
query I rowsort label-5300
SELECT DISTINCT + + COALESCE ( - - CAST ( - 62 AS INTEGER ), - + 16, - ( - ( - COUNT ( * ) ) ) )
----
-62

query I rowsort
SELECT DISTINCT + 38 * - + ( + 46 ) - + ( + 96 ) * 75
----
-8948

query I rowsort
SELECT ALL - 50 * - + 97 * - 23 * + 85
----
-9481750

query I rowsort
SELECT + + ( + + 65 ) + + 77 AS col1
----
142

query I rowsort
SELECT + + 28 * + 45 - 96 AS col1
----
1164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5305
SELECT CASE 30 WHEN + - 97 + - - 4 + + + 65 - 46 - ( - - 77 ) * - 70 * - - 2 * - + 79 - + ( + 50 ) + CAST( NULL AS SIGNED ) THEN + + 95 * 22 - - 61 + 68 * + 23 + 89 + ( 33 ) / + CASE CAST( - ( MIN( - 4 ) ) AS SIGNED ) WHEN - + 70 THEN - - 91 - - + 89 + 11 * 87 * + COALESCE ( - 50, - COUNT( * ) ) * - 45 WHEN - 91 THEN NULL END * - 0 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5305
SELECT CASE 30 WHEN + - 97 + - - 4 + + + 65 - 46 - ( - - 77 ) * - 70 * - - 2 * - + 79 - + ( + 50 ) + CAST ( NULL AS INTEGER ) THEN + + 95 * 22 - - 61 + 68 * + 23 + 89 + ( 33 ) / + CASE CAST ( - ( MIN ( - 4 ) ) AS INTEGER ) WHEN - + 70 THEN - - 91 - - + 89 + 11 * 87 * + COALESCE ( - 50, - COUNT ( * ) ) * - 45 WHEN - 91 THEN NULL END * - 0 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT ALL COUNT( ALL - + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL COUNT ( ALL - + 12 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT CASE + 96 WHEN - - SUM( ALL + 48 ) THEN - 80 * 54 ELSE - COALESCE ( + COUNT( * ), - 79, + 15 + 39 ) * 93 END
----
-93

skipif mysql # not compatible
query I rowsort label-5307
SELECT CASE + 96 WHEN - - SUM ( ALL + 48 ) THEN - 80 * 54 ELSE - COALESCE ( + COUNT ( * ), - 79, + 15 + 39 ) * 93 END
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-5308
SELECT - 70 DIV + ( 36 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5308
SELECT - 70 / + ( 36 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 59 * - 65
----
3835

query II rowsort
SELECT ALL 74 AS col1, 33 + - 2 col1
----
74
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5311
SELECT 56 DIV - MAX( ALL + - 68 ) AS col1, - 26 + COUNT( * )
----
0
-25

skipif mysql # not compatible
query II rowsort label-5311
SELECT 56 / - MAX ( ALL + - 68 ) AS col1, - 26 + COUNT ( * )
----
0
-25

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

query I rowsort
SELECT 72 + + - 64 AS col1
----
8

query I rowsort
SELECT DISTINCT + 87 + - NULLIF ( + - 12, - + 96 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5315
SELECT 92 AS col1, + COALESCE ( - COUNT( * ), + + 49, - 42 ) AS col0
----
92
-1

skipif mysql # not compatible
query II rowsort label-5315
SELECT 92 AS col1, + COALESCE ( - COUNT ( * ), + + 49, - 42 ) AS col0
----
92
-1

query I rowsort
SELECT ALL + 69 + - - 42 + - + 65 + - ( - - 51 ) - - 95 * - 25 AS col2
----
-2380

query I rowsort
SELECT DISTINCT - 15 + - 96 AS col1
----
-111

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5318
SELECT DISTINCT + MIN( DISTINCT - 0 ) + - CAST( NULL AS DECIMAL ) + - 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT + MIN ( DISTINCT - 0 ) + - CAST ( NULL AS REAL ) + - 3 AS col0
----
NULL

query I rowsort
SELECT ALL - 42 * 18
----
-756

query I rowsort
SELECT ALL 50 + - + 23 * + 67 + + - 49 + 35 AS col0
----
-1505

query I rowsort
SELECT + 44 * - - 80
----
3520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5322
SELECT - 11 DIV - - COUNT( * ) - - - 55
----
-66

skipif mysql # not compatible
query I rowsort label-5322
SELECT - 11 / - - COUNT ( * ) - - - 55
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT COUNT( ALL + - 82 ) * + MAX( 54 ) + + 91 * - 48
----
-4314

skipif mysql # not compatible
query I rowsort label-5323
SELECT COUNT ( ALL + - 82 ) * + MAX ( 54 ) + + 91 * - 48
----
-4314

query I rowsort
SELECT 52 * 49 AS col1
----
2548

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5326
SELECT 31 DIV - 34
----
0

skipif mysql # not compatible
query I rowsort label-5326
SELECT 31 / - 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT - MIN( + - 25 ) * - + 14 col2
----
-350

skipif mysql # not compatible
query I rowsort label-5327
SELECT - MIN ( + - 25 ) * - + 14 col2
----
-350

query I rowsort
SELECT DISTINCT + - 7 * + + 36 AS col0
----
-252

query I rowsort
SELECT 21 * + + 48 col1
----
1008

query I rowsort
SELECT + 1 * 70 + 51 AS col2
----
121

query III rowsort
SELECT ALL - 95 AS col0, 94 col0, 79 * + - AVG ( ALL CASE + NULLIF ( 45, - 93 ) WHEN + + ( + - 52 ) THEN 92 + + ( + + 6 ) + - 17 END ) + - + 31 + - - 78 + + + 52 + ( - NULLIF ( - ( - - 67 ), + + 15 ) )
----
-95
94
NULL

query I rowsort
SELECT - 23 * - 6 + - 99 * - - 58
----
-5604

query II rowsort
SELECT + 60 col1, 79
----
60
79

query II rowsort
SELECT ALL - 11 AS col0, + 66
----
-11
66

onlyif mysql # DIV for integer division: 
query II rowsort label-5335
SELECT 67 AS col2, 32 DIV + - 47 * - + 87 col0
----
67
0

skipif mysql # not compatible
query II rowsort label-5335
SELECT 67 AS col2, 32 / + - 47 * - + 87 col0
----
67
0

query I rowsort
SELECT ALL 46 + - - 22 AS col1
----
68

query I rowsort
SELECT ALL 4 + 21 AS col2
----
25

query I rowsort
SELECT 72 * + 58
----
4176

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT ( - 49 ) + ( + COALESCE ( + 52, - 78 ) ) * + SUM( 80 )
----
4111

skipif mysql # not compatible
query I rowsort label-5339
SELECT ( - 49 ) + ( + COALESCE ( + 52, - 78 ) ) * + SUM ( 80 )
----
4111

onlyif mysql # aggregate syntax: 
query II rowsort label-5340
SELECT DISTINCT 32, + 78 - - - 88 + + COALESCE ( + + 94, 90 + - + SUM( 91 ) ) AS col0
----
32
84

skipif mysql # not compatible
query II rowsort label-5340
SELECT DISTINCT 32, + 78 - - - 88 + + COALESCE ( + + 94, 90 + - + SUM ( 91 ) ) AS col0
----
32
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT ALL 10 + MAX( DISTINCT - + 83 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL 10 + MAX ( DISTINCT - + 83 ) AS col1
----
-73

query II rowsort
SELECT - 36 AS col0, 75 * + 42
----
-36
3150

query II rowsort
SELECT 96, + 11 AS col1
----
96
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT 62 * - - SUM( ALL 66 ) AS col2
----
4092

skipif mysql # not compatible
query I rowsort label-5344
SELECT 62 * - - SUM ( ALL 66 ) AS col2
----
4092

query I rowsort
SELECT ( + 20 ) + + - 67 * - 91 AS col2
----
6117

query I rowsort
SELECT ALL 38 * + 97
----
3686

query II rowsort
SELECT 82, ( + + 28 ) * - + ( - ( - ( - 92 ) ) ) * + 70 - - 87 col2
----
82
180407

query I rowsort
SELECT 96 - 32 + + - 56 AS col2
----
8

query II rowsort
SELECT ALL 84, 6 * + 96 AS col0
----
84
576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5350
SELECT + 33 + + MIN( ALL + 52 ) + CASE + 42 WHEN MIN( - 18 ) - + 67 THEN + 58 - - - 0 + + + 50 ELSE NULL END * + 38 * + 35 + - 89 / - 50 * + CAST( NULL AS SIGNED ) + 86 * + 41 * + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5350
SELECT + 33 + + MIN ( ALL + 52 ) + CASE + 42 WHEN MIN ( - 18 ) - + 67 THEN + 58 - - - 0 + + + 50 ELSE NULL END * + 38 * + 35 + - 89 / - 50 * + CAST ( NULL AS INTEGER ) + 86 * + 41 * + COUNT ( * ) col1
----
NULL

query II rowsort
SELECT ALL - 8, COALESCE ( - - 68, - 38 ) AS col0
----
-8
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5352
SELECT 41 - + - 94 - - 87 + - CAST( NULL AS SIGNED ) * - + AVG ( DISTINCT ( 4 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5352
SELECT 41 - + - 94 - - 87 + - CAST ( NULL AS INTEGER ) * - + AVG ( DISTINCT ( 4 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5353
SELECT DISTINCT + + 59 DIV - 2 + + NULLIF ( - COUNT( * ), + AVG ( + + 74 ) ) * 38
----
-67

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT + + 59 / - 2 + + NULLIF ( - COUNT ( * ), + AVG ( + + 74 ) ) * 38
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT + COUNT( * ) + SUM( 46 ) * + - CASE MIN( DISTINCT + 69 ) WHEN 58 THEN NULL ELSE - 2 END AS col0
----
93

skipif mysql # not compatible
query I rowsort label-5354
SELECT + COUNT ( * ) + SUM ( 46 ) * + - CASE MIN ( DISTINCT + 69 ) WHEN 58 THEN NULL ELSE - 2 END AS col0
----
93

query II rowsort
SELECT 70 col1, - 81
----
70
-81

query I rowsort
SELECT 90 + - 52
----
38

query II rowsort
SELECT ALL - + 92 col2, ( + 72 )
----
-92
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5358
SELECT ALL - 83 * - CAST( - 32 AS SIGNED ) + - 87 * + + 2 + - 36 AS col1, 6
----
-2866
6

skipif mysql # not compatible
query II rowsort label-5358
SELECT ALL - 83 * - CAST ( - 32 AS INTEGER ) + - 87 * + + 2 + - 36 AS col1, 6
----
-2866
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT 67 + - - COUNT( DISTINCT + 7 ) + - 84 * - 36 - + - 32 AS col2
----
3124

skipif mysql # not compatible
query I rowsort label-5359
SELECT 67 + - - COUNT ( DISTINCT + 7 ) + - 84 * - 36 - + - 32 AS col2
----
3124

query I rowsort
SELECT 5 + - 56 * 39 AS col2
----
-2179

query I rowsort
SELECT - 41 * - 80 AS col2
----
3280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5362
SELECT ALL + MIN( DISTINCT - - 33 ), CAST( NULL AS SIGNED ) AS col2
----
33
NULL

skipif mysql # not compatible
query II rowsort label-5362
SELECT ALL + MIN ( DISTINCT - - 33 ), CAST ( NULL AS INTEGER ) AS col2
----
33
NULL

query I rowsort
SELECT ALL 5 + - 67 AS col0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-5364
SELECT DISTINCT - 87 + - ( - 39 ) DIV + + ( + + 6 )
----
-81

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT - 87 + - ( - 39 ) / + + ( + + 6 )
----
-81

query I rowsort
SELECT DISTINCT - 69 + 22 * + 50 * - + 25 AS col0
----
-27569

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

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

query I rowsort
SELECT - 68 + - - 67 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5368
SELECT - COUNT( - - 15 ) AS col0, + 99 col0
----
-1
99

skipif mysql # not compatible
query II rowsort label-5368
SELECT - COUNT ( - - 15 ) AS col0, + 99 col0
----
-1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5369
SELECT ALL 91 - + 22 * COUNT( * ), + 34 * + COUNT( * ) AS col2
----
69
34

skipif mysql # not compatible
query II rowsort label-5369
SELECT ALL 91 - + 22 * COUNT ( * ), + 34 * + COUNT ( * ) AS col2
----
69
34

query I rowsort
SELECT + 26 + COALESCE ( - + 81, + 0 ) AS col0
----
-55

query I rowsort
SELECT + - 22 * 26 * - 74
----
42328

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT - + MIN( DISTINCT + 32 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-5372
SELECT - + MIN ( DISTINCT + 32 ) AS col0
----
-32

query I rowsort
SELECT + - 84 * + + 22 col2
----
-1848

query I rowsort
SELECT DISTINCT - 34 * + 66 AS col0
----
-2244

query I rowsort
SELECT + - 23 * + 0 * - 89 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5376
SELECT DISTINCT + ( CAST( + 19 AS SIGNED ) ) AS col2, - 53 + + 90 AS col2, - + ( + - 27 ) + ( COALESCE ( 25, - + COUNT( ALL + 82 ), + 23 DIV COUNT( * ) + + + ( + 62 ) * - MIN( DISTINCT 70 ) DIV + 88 ) ) + + 97 AS col0
----
19
37
149

skipif mysql # not compatible
query III rowsort label-5376
SELECT DISTINCT + ( CAST ( + 19 AS INTEGER ) ) AS col2, - 53 + + 90 AS col2, - + ( + - 27 ) + ( COALESCE ( 25, - + COUNT ( ALL + 82 ), + 23 / COUNT ( * ) + + + ( + 62 ) * - MIN ( DISTINCT 70 ) / + 88 ) ) + + 97 AS col0
----
19
37
149

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT - 56 * + + CASE - 2 WHEN - - 62 THEN NULL WHEN - + ( + SUM( DISTINCT + - 62 ) ) THEN COUNT( * ) * - - 15 * - 3 + 92 WHEN - 31 - - 87 THEN NULL END - + ( + - 18 ) * COUNT( * ) / - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5377
SELECT - 56 * + + CASE - 2 WHEN - - 62 THEN NULL WHEN - + ( + SUM ( DISTINCT + - 62 ) ) THEN COUNT ( * ) * - - 15 * - 3 + 92 WHEN - 31 - - 87 THEN NULL END - + ( + - 18 ) * COUNT ( * ) / - 96
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5378
SELECT ALL + COUNT( * ) DIV + - 91 + 95 + + 52 + 63 AS col2
----
210

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL + COUNT ( * ) / + - 91 + 95 + + 52 + 63 AS col2
----
210

query II rowsort
SELECT + ( - 32 ) col0, - 28 * + - ( + 25 ) - 17
----
-32
683

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT MIN( ALL - 56 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-5380
SELECT MIN ( ALL - 56 ) AS col1
----
-56

query I rowsort
SELECT ALL + 11 * + 53 + - 8 col1
----
575

query I rowsort
SELECT + + 96 * + + 62 + 34 + 42 AS col1
----
6028

query I rowsort
SELECT ALL - + ( + 85 ) * - 33 + + 15 + 84
----
2904

query I rowsort
SELECT NULLIF ( 68, - 85 - - 71 ) AS col2
----
68

query I rowsort
SELECT ALL 14 * - 17 + - + 81 AS col2
----
-319

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5386
SELECT + 10 col2, 52 * - NULLIF ( 86, + + ( ( + + 25 ) ) * + CAST( NULL AS SIGNED ) )
----
10
-4472

skipif mysql # not compatible
query II rowsort label-5386
SELECT + 10 col2, 52 * - NULLIF ( 86, + + ( ( + + 25 ) ) * + CAST ( NULL AS INTEGER ) )
----
10
-4472

onlyif mysql # aggregate syntax: 
query II rowsort label-5387
SELECT DISTINCT 83 * - - COUNT( * ) + + - 51 AS col1, 76
----
32
76

skipif mysql # not compatible
query II rowsort label-5387
SELECT DISTINCT 83 * - - COUNT ( * ) + + - 51 AS col1, 76
----
32
76

query I rowsort
SELECT CASE 99 WHEN - - 41 * + 87 THEN 19 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT MAX( 13 ) * - - 67 + - 24 * 48 + - + 45 AS col0
----
-326

skipif mysql # not compatible
query I rowsort label-5389
SELECT MAX ( 13 ) * - - 67 + - 24 * 48 + - + 45 AS col0
----
-326

query I rowsort
SELECT NULLIF ( 76, 68 )
----
76

query I rowsort
SELECT DISTINCT + NULLIF ( 53, - 43 )
----
53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT + CASE - 38 WHEN - + 53 THEN COALESCE ( - 62, - 20, + + 80 ) * - - 87 * - - ( + 55 ) + 15 WHEN 37 + + + CASE - COUNT( * ) WHEN CASE 86 WHEN + - 10 THEN - 79 WHEN - - 30 THEN - COUNT( * ) * + 9 * 30 WHEN - ( + - 52 ) * 70 + + COUNT( DISTINCT - 65 ) THEN NULL END * COUNT( - + 3 ) - - - 14 THEN - 36 + + + 25 ELSE 47 END * 31 THEN - ( - - AVG ( ALL + - 13 ) ) END * + - 11 + - - AVG ( + 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5393
SELECT + CASE - 38 WHEN - + 53 THEN COALESCE ( - 62, - 20, + + 80 ) * - - 87 * - - ( + 55 ) + 15 WHEN 37 + + + CASE - COUNT ( * ) WHEN CASE 86 WHEN + - 10 THEN - 79 WHEN - - 30 THEN - COUNT ( * ) * + 9 * 30 WHEN - ( + - 52 ) * 70 + + COUNT ( DISTINCT - 65 ) THEN NULL END * COUNT ( - + 3 ) - - - 14 THEN - 36 + + + 25 ELSE 47 END * 31 THEN - ( - - AVG ( ALL + - 13 ) ) END * + - 11 + - - AVG ( + 77 )
----
NULL

query I rowsort
SELECT - 57 * + 83 AS col2
----
-4731

query II rowsort
SELECT ALL + 39, 81 AS col2
----
39
81

query I rowsort
SELECT - 27 + - 82
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT DISTINCT + MIN( - 64 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT + MIN ( - 64 ) AS col0
----
-64

query II rowsort
SELECT ALL - 23 * + 19 - + - 76 AS col2, 28 AS col1
----
-361
28

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5403
SELECT DISTINCT + 93 DIV 40 * 56 * + 74 AS col0
----
8288

skipif mysql # not compatible
query I rowsort label-5403
SELECT DISTINCT + 93 / 40 * 56 * + 74 AS col0
----
8288

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT DISTINCT ( COALESCE ( - COUNT( ALL 64 ), 32 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT ( COALESCE ( - COUNT ( ALL 64 ), 32 ) ) AS col1
----
-1

query I rowsort
SELECT - 85 * - 68
----
5780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5406
SELECT + + COUNT( * ) DIV COUNT( ALL - ( + + CAST( + 53 AS SIGNED ) ) ) AS col0
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5407
SELECT - CAST( - 14 AS SIGNED ) * - 7 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5407
SELECT - CAST ( - 14 AS INTEGER ) * - 7 AS col1
----
-98

query I rowsort
SELECT ALL - 96 * 19 AS col1
----
-1824

query I rowsort
SELECT ALL + 38 * 47 AS col2
----
1786

query I rowsort
SELECT DISTINCT + - 88 * + + 56
----
-4928

query II rowsort
SELECT DISTINCT + 32 col0, 21
----
32
21

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5413
SELECT - - ( + - 89 ) + 50 * - - 71 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5413
SELECT - - ( + - 89 ) + 50 * - - 71 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 63 - 31 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT ALL - 31 + + COUNT( DISTINCT - 22 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL - 31 + + COUNT ( DISTINCT - 22 ) AS col0
----
-30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT ALL - - 33 + + NULLIF ( - 13, + COUNT( * ) ) * + 91 * - 90 * - 45 col1
----
-4791117

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL - - 33 + + NULLIF ( - 13, + COUNT ( * ) ) * + 91 * - 90 * - 45 col1
----
-4791117

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

query I rowsort
SELECT + 29 * 20
----
580

query I rowsort
SELECT DISTINCT 58 + - 23
----
35

query I rowsort
SELECT ALL 93 + 37
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT 46 * + - SUM( 76 ) AS col0
----
-3496

skipif mysql # not compatible
query I rowsort label-5422
SELECT 46 * + - SUM ( 76 ) AS col0
----
-3496

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5423
SELECT 94 + - + COALESCE ( - 52, + 74 + + COALESCE ( + 86, + 99 * - 57 * - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) * + 27 * 36 ) AS col0, + 84 * 99 * - 50
----
146
-415800

skipif mysql # not compatible
query II rowsort label-5423
SELECT 94 + - + COALESCE ( - 52, + 74 + + COALESCE ( + 86, + 99 * - 57 * - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) * + 27 * 36 ) AS col0, + 84 * 99 * - 50
----
146
-415800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5424
SELECT 65 DIV + COALESCE ( 5, - COUNT( * ) * 67 ) col0
----
13

skipif mysql # not compatible
query I rowsort label-5424
SELECT 65 / + COALESCE ( 5, - COUNT ( * ) * 67 ) col0
----
13

query I rowsort
SELECT 0 * - 68 * - 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT DISTINCT + CASE - 24 WHEN + 14 THEN - 99 - + + 25 * + - COUNT( 7 ) ELSE COALESCE ( - 98, - 72 ) END * - + 76 * - - ( + SUM( DISTINCT 2 ) ) + COUNT( * ) AS col1
----
14897

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT + CASE - 24 WHEN + 14 THEN - 99 - + + 25 * + - COUNT ( 7 ) ELSE COALESCE ( - 98, - 72 ) END * - + 76 * - - ( + SUM ( DISTINCT 2 ) ) + COUNT ( * ) AS col1
----
14897

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT ALL + 79 * + COUNT( * ) * + 3 * + 70
----
16590

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL + 79 * + COUNT ( * ) * + 3 * + 70
----
16590

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT DISTINCT COUNT( * ) * + 94 * + + 39
----
3666

skipif mysql # not compatible
query I rowsort label-5428
SELECT DISTINCT COUNT ( * ) * + 94 * + + 39
----
3666

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5430
SELECT 25 * - CAST( 63 AS SIGNED ) col1
----
-1575

skipif mysql # not compatible
query I rowsort label-5430
SELECT 25 * - CAST ( 63 AS INTEGER ) col1
----
-1575

query I rowsort
SELECT 96 + + 72 * 85 * - 80 AS col2
----
-489504

query I rowsort
SELECT ALL NULLIF ( 19, 25 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT DISTINCT - - 23 + + 66 + + 95 * + + COALESCE ( + COUNT( * ), + 82 ) + - 67 * - 78
----
5410

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT - - 23 + + 66 + + 95 * + + COALESCE ( + COUNT ( * ), + 82 ) + - 67 * - 78
----
5410

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5435
SELECT + 11 + - + 17 DIV - 52 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5435
SELECT + 11 + - + 17 / - 52 AS col2
----
11

query I rowsort
SELECT 65 + + 54
----
119

query I rowsort
SELECT ALL - 35 + - 16
----
-51

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5439
SELECT 44 * + + COALESCE ( CAST( NULL AS SIGNED ), - + 32 + 41 )
----
396

skipif mysql # not compatible
query I rowsort label-5439
SELECT 44 * + + COALESCE ( CAST ( NULL AS INTEGER ), - + 32 + 41 )
----
396

query I rowsort
SELECT ALL - 44 + + - COALESCE ( 84, 95 )
----
-128

query I rowsort
SELECT DISTINCT + 33 * - + 48 + + - 69 AS col1
----
-1653

onlyif mysql # aggregate syntax: 
query II rowsort label-5442
SELECT - MAX( 27 ), 41 * - - 61 AS col0
----
-27
2501

skipif mysql # not compatible
query II rowsort label-5442
SELECT - MAX ( 27 ), 41 * - - 61 AS col0
----
-27
2501

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5443
SELECT + NULLIF ( - CASE + - 65 WHEN + 3 * + - 82 THEN NULL WHEN 64 THEN NULL ELSE + - 19 - 53 + - - 41 * - 85 END, - 77 + + CAST( - 90 AS SIGNED ) - + 47 * 55 ) AS col2
----
3557

skipif mysql # not compatible
query I rowsort label-5443
SELECT + NULLIF ( - CASE + - 65 WHEN + 3 * + - 82 THEN NULL WHEN 64 THEN NULL ELSE + - 19 - 53 + - - 41 * - 85 END, - 77 + + CAST ( - 90 AS INTEGER ) - + 47 * 55 ) AS col2
----
3557

query II rowsort
SELECT - + ( + 12 ) col0, 43 AS col2
----
-12
43

query I rowsort
SELECT ALL + 82 - - - 22
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5446
SELECT + 8, ( + + CASE + + CAST( + 13 AS SIGNED ) WHEN + 52 THEN NULL WHEN 93 THEN + 43 + - + COUNT( * ) END ) AS col0
----
8
NULL

skipif mysql # not compatible
query II rowsort label-5446
SELECT + 8, ( + + CASE + + CAST ( + 13 AS INTEGER ) WHEN + 52 THEN NULL WHEN 93 THEN + 43 + - + COUNT ( * ) END ) AS col0
----
8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT MAX( ALL - + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-5447
SELECT MAX ( ALL - + 2 )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5448
SELECT 81 * 78 DIV + 9
----
702

skipif mysql # not compatible
query I rowsort label-5448
SELECT 81 * 78 / + 9
----
702

query I rowsort
SELECT DISTINCT - 10 * - - 90 AS col0
----
-900

query II rowsort
SELECT DISTINCT - 58 AS col1, COALESCE ( + 49, - - 81 ) * - 74 + + - 64 + - 62 * + 69 * - 93 * + - 17 + + 80 - - + 45 * 71 * 89 * + - 23 AS col0
----
-58
-13307293

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

skipif mysql # not compatible
query I rowsort label-5451
SELECT DISTINCT - MAX ( 78 )
----
-78

query I rowsort
SELECT ALL 3 * + 53
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT COUNT( * ) * + COUNT( * ) * - + MAX( - 40 )
----
40

skipif mysql # not compatible
query I rowsort label-5453
SELECT COUNT ( * ) * + COUNT ( * ) * - + MAX ( - 40 )
----
40

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5455
SELECT NULLIF ( - ( - + CAST( NULL AS SIGNED ) ), 81 * + MAX( DISTINCT 21 ) ) / 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT NULLIF ( - ( - + CAST ( NULL AS INTEGER ) ), 81 * + MAX ( DISTINCT 21 ) ) / 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT ALL COUNT( * ) + 57 * - 46
----
-2621

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL COUNT ( * ) + 57 * - 46
----
-2621

query I rowsort
SELECT ALL 96 + 21 * 58
----
1314

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

skipif mysql # not compatible
query I rowsort label-5458
SELECT DISTINCT - SUM ( 76 )
----
-76

query I rowsort
SELECT ALL - 49 + - 92 AS col1
----
-141

query I rowsort
SELECT 44 + 79 * + 65
----
5179

query I rowsort
SELECT ALL 66 * - 70 AS col2
----
-4620

query I rowsort
SELECT ALL + ( + 23 ) + 55 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT + 66 + MIN( ALL + 54 ) AS col1
----
120

skipif mysql # not compatible
query I rowsort label-5463
SELECT + 66 + MIN ( ALL + 54 ) AS col1
----
120

query I rowsort
SELECT + 24 * - 66
----
-1584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5465
SELECT ALL - 86 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL - 86 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - 14 + + 48 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT + MAX( - 31 ) + 46
----
15

skipif mysql # not compatible
query I rowsort label-5468
SELECT + MAX ( - 31 ) + 46
----
15

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5470
SELECT - 58 * - CAST( ( 90 ) AS SIGNED ) col2
----
5220

skipif mysql # not compatible
query I rowsort label-5470
SELECT - 58 * - CAST ( ( 90 ) AS INTEGER ) col2
----
5220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5471
SELECT - CASE 63 WHEN - 58 + 9 * 88 THEN - 13 ELSE + 86 DIV + ( + COUNT( * ) ) END * ( COUNT( * ) )
----
-86

skipif mysql # not compatible
query I rowsort label-5471
SELECT - CASE 63 WHEN - 58 + 9 * 88 THEN - 13 ELSE + 86 / + ( + COUNT ( * ) ) END * ( COUNT ( * ) )
----
-86

query I rowsort
SELECT ALL - 24 * 22 AS col2
----
-528

query I rowsort
SELECT + 58 - + 75 * 0
----
58

query I rowsort
SELECT + 16 * - 66
----
-1056

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT 25 * 55 + + MAX( ( - 17 ) )
----
1358

skipif mysql # not compatible
query I rowsort label-5476
SELECT 25 * 55 + + MAX ( ( - 17 ) )
----
1358

query I rowsort
SELECT - 86 * - 94 AS col1
----
8084

query I rowsort
SELECT + 92 * 7 AS col2
----
644

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT DISTINCT + COUNT( DISTINCT 70 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT + COUNT ( DISTINCT 70 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5480
SELECT + 27 + NULLIF ( 39 + + COUNT( * ) * CASE + 19 + + 69 * MIN( DISTINCT + 40 ) WHEN CAST( NULL AS SIGNED ) * 91 THEN NULL ELSE - 45 END, - ( 95 ) * AVG ( ALL + CAST( - 15 AS SIGNED ) * 73 ) + ( - MAX( DISTINCT - 24 ) ) )
----
21

skipif mysql # not compatible
query I rowsort label-5480
SELECT + 27 + NULLIF ( 39 + + COUNT ( * ) * CASE + 19 + + 69 * MIN ( DISTINCT + 40 ) WHEN CAST ( NULL AS INTEGER ) * 91 THEN NULL ELSE - 45 END, - ( 95 ) * AVG ( ALL + CAST ( - 15 AS INTEGER ) * 73 ) + ( - MAX ( DISTINCT - 24 ) ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT ALL - 14 * 23 + - 12 * + COUNT( * )
----
-334

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL - 14 * 23 + - 12 * + COUNT ( * )
----
-334

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

skipif mysql # not compatible
query I rowsort label-5482
SELECT + 44 + - 27 * - COUNT ( * ) AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5483
SELECT ALL - 20 * - 2 + ( CAST( NULL AS SIGNED ) ) / 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL - 20 * - 2 + ( CAST ( NULL AS INTEGER ) ) / 56 AS col2
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + 50, 27 ) * - 17 + 46 AS col1
----
-804

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5485
SELECT ALL + 2 * NULLIF ( ( + COUNT( * ) ) DIV - 92, + MAX( DISTINCT 81 ) + 71 ) + - 75
----
-75

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL + 2 * NULLIF ( ( + COUNT ( * ) ) / - 92, + MAX ( DISTINCT 81 ) + 71 ) + - 75
----
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT + + COALESCE ( SUM( - 27 ), COUNT( - 72 ) ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-5487
SELECT + + COALESCE ( SUM ( - 27 ), COUNT ( - 72 ) ) AS col0
----
-27

query I rowsort
SELECT ALL + + 67 * - 16 + - 42 * + 93 AS col2
----
-4978

query I rowsort
SELECT + + 88 + + 51
----
139

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

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

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

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

query I rowsort
SELECT DISTINCT + 85 * + 83 AS col2
----
7055

query I rowsort
SELECT + 87 * - 80
----
-6960

query I rowsort
SELECT ALL + 52 * 15 col0
----
780

query I rowsort
SELECT + COALESCE ( - 31, 97 ) * 57 + - 32
----
-1799

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

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

query I rowsort
SELECT DISTINCT - 50 * 57 AS col0
----
-2850

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

skipif mysql # not compatible
query I rowsort label-5498
SELECT - - 22 * - COUNT ( * )
----
-22

query I rowsort
SELECT + NULLIF ( 3, 25 * - 80 )
----
3

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

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

query I rowsort
SELECT DISTINCT CASE - 20 WHEN 12 THEN 49 END
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT ALL CASE + COUNT( * ) WHEN + ( - COUNT( * ) ) * + COUNT( * ) THEN 88 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL CASE + COUNT ( * ) WHEN + ( - COUNT ( * ) ) * + COUNT ( * ) THEN 88 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5505
SELECT + CASE + + CAST( NULL AS SIGNED ) WHEN + ( + COUNT( * ) ) THEN + 74 + - AVG ( DISTINCT + 79 ) END * NULLIF ( 59 * - 97, COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5505
SELECT + CASE + + CAST ( NULL AS INTEGER ) WHEN + ( + COUNT ( * ) ) THEN + 74 + - AVG ( DISTINCT + 79 ) END * NULLIF ( 59 * - 97, COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT - 74 * - - 84 * + 61
----
-379176

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5508
SELECT - CAST( NULL AS DECIMAL ) - + SUM( + 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT - CAST ( NULL AS REAL ) - + SUM ( + 13 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT + MAX( 88 ) col1
----
88

skipif mysql # not compatible
query I rowsort label-5509
SELECT + MAX ( 88 ) col1
----
88

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5511
SELECT - 56 DIV - - 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5511
SELECT - 56 / - - 61 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5512
SELECT ALL 3 DIV + 48 * - COUNT( * ) + COUNT( + 2 + + 58 )
----
1

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL 3 / + 48 * - COUNT ( * ) + COUNT ( + 2 + + 58 )
----
1

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5515
SELECT DISTINCT + ( + + 93 ) DIV + 5 + 83 AS col1
----
101

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT + ( + + 93 ) / + 5 + 83 AS col1
----
101

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5516
SELECT - CAST( NULL AS DECIMAL ) / + 16 - - 45 * - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT - CAST ( NULL AS REAL ) / + 16 - - 45 * - 26 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT + CASE + COUNT( * ) WHEN 28 THEN - ( 28 ) * - 94 WHEN - 95 THEN + COALESCE ( - 0, 68 / + 68 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT + CASE + COUNT ( * ) WHEN 28 THEN - ( 28 ) * - 94 WHEN - 95 THEN + COALESCE ( - 0, 68 / + 68 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT ALL + - 4 + - + MAX( ALL 64 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL + - 4 + - + MAX ( ALL 64 ) AS col1
----
-68

query I rowsort
SELECT + NULLIF ( - 91, - 19 + + 24 ) AS col0
----
-91

query I rowsort
SELECT + ( - 56 ) + - 46 * + 19 AS col0
----
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT ALL + 78 - COUNT( * ) col2
----
77

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL + 78 - COUNT ( * ) col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5522
SELECT ALL - CAST( 47 AS SIGNED ) * ( - COUNT( 19 ) ) col1
----
47

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL - CAST ( 47 AS INTEGER ) * ( - COUNT ( 19 ) ) col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5523
SELECT DISTINCT + + 62 * NULLIF ( ( - 9 ), AVG ( - 67 ) * MAX( DISTINCT + CAST( NULL AS SIGNED ) ) + 33 ) AS col1
----
-558

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT + + 62 * NULLIF ( ( - 9 ), AVG ( - 67 ) * MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 33 ) AS col1
----
-558

query I rowsort
SELECT + + 61 * + + 55 + 54
----
3409

query I rowsort
SELECT ALL + 12 * 76
----
912

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT + COUNT( * ) * NULLIF ( + 83, 20 / ( - 85 ) + 56 * COUNT( * ) ) * + COUNT( DISTINCT - 32 )
----
83

skipif mysql # not compatible
query I rowsort label-5526
SELECT + COUNT ( * ) * NULLIF ( + 83, 20 / ( - 85 ) + 56 * COUNT ( * ) ) * + COUNT ( DISTINCT - 32 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT - - COALESCE ( - + CASE + COUNT( * ) WHEN COUNT( * ) THEN + 96 * + 49 WHEN - 19 + + COUNT( * ) THEN + 71 + + 23 END, 15 + 64 )
----
-4704

skipif mysql # not compatible
query I rowsort label-5527
SELECT - - COALESCE ( - + CASE + COUNT ( * ) WHEN COUNT ( * ) THEN + 96 * + 49 WHEN - 19 + + COUNT ( * ) THEN + 71 + + 23 END, 15 + 64 )
----
-4704

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT + COALESCE ( + + NULLIF ( - 11, + 40 + + 80 / COUNT( * ) ), - 46 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5529
SELECT + COALESCE ( + + NULLIF ( - 11, + 40 + + 80 / COUNT ( * ) ), - 46 ) AS col0
----
-11

query I rowsort
SELECT - 46 + - - 92 AS col0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5531
SELECT MIN( ALL + 48 ) DIV ( + COUNT( + 92 ) * - 32 + 66 * 70 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5531
SELECT MIN ( ALL + 48 ) / ( + COUNT ( + 92 ) * - 32 + 66 * 70 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT + 21 * - + 85 + - ( SUM( DISTINCT - 73 ) ) * + ( 96 + - COUNT( * ) )
----
5150

skipif mysql # not compatible
query I rowsort label-5532
SELECT + 21 * - + 85 + - ( SUM ( DISTINCT - 73 ) ) * + ( 96 + - COUNT ( * ) )
----
5150

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

query I rowsort
SELECT COALESCE ( - 56, + 80 + - 62 ) AS col1
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-5535
SELECT DISTINCT 99 DIV + 97 + - ( - 6 + - 86 )
----
93

skipif mysql # not compatible
query I rowsort label-5535
SELECT DISTINCT 99 / + 97 + - ( - 6 + - 86 )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5536
SELECT 84 DIV 15 DIV - 50 * - 80
----
0

skipif mysql # not compatible
query I rowsort label-5536
SELECT 84 / 15 / - 50 * - 80
----
0

query I rowsort
SELECT ALL 17 * - 50
----
-850

query I rowsort
SELECT 90 - - - 50 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT DISTINCT 28 / + + CASE + - 60 WHEN 58 THEN NULL WHEN - 20 THEN + COALESCE ( 37, + COUNT( * ) ) END * + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT 28 / + + CASE + - 60 WHEN 58 THEN NULL WHEN - 20 THEN + COALESCE ( 37, + COUNT ( * ) ) END * + 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5540
SELECT ALL 61, + 44 + + 17 + - 3 * CASE + 43 WHEN 30 THEN COUNT( * ) ELSE 85 END * + MIN( DISTINCT + 49 ) AS col0
----
61
-12434

skipif mysql # not compatible
query II rowsort label-5540
SELECT ALL 61, + 44 + + 17 + - 3 * CASE + 43 WHEN 30 THEN COUNT ( * ) ELSE 85 END * + MIN ( DISTINCT + 49 ) AS col0
----
61
-12434

onlyif mysql # DIV for integer division: 
query I rowsort label-5541
SELECT COALESCE ( 93, - + 78 DIV + 18 + 7, - 89 * + 46 ) - - 14 AS col0
----
107

skipif mysql # not compatible
query I rowsort label-5541
SELECT COALESCE ( 93, - + 78 / + 18 + 7, - 89 * + 46 ) - - 14 AS col0
----
107

query I rowsort
SELECT 9 + 55 * - ( 43 ) * - COALESCE ( 37 * ( + 6 ) + - 48, + 68 + 23, + 44 ) + 75 AS col0
----
411594

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT 80 + + CASE - ( 21 ) WHEN 30 THEN 74 END / NULLIF ( - COUNT( * ) * + 26, 28 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT 80 + + CASE - ( 21 ) WHEN 30 THEN 74 END / NULLIF ( - COUNT ( * ) * + 26, 28 ) AS col0
----
NULL

query I rowsort
SELECT 19 * + - 29
----
-551

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT ALL SUM( DISTINCT + 59 ) + 97 AS col1
----
156

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL SUM ( DISTINCT + 59 ) + 97 AS col1
----
156

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

skipif mysql # not compatible
query I rowsort label-5546
SELECT 99 + + COUNT ( * ) + + 21 AS col0
----
121

query II rowsort
SELECT ALL 30 AS col1, 70
----
30
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT ALL + 34 + - 65 + - 32 * + COUNT( * ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL + 34 + - 65 + - 32 * + COUNT ( * ) AS col2
----
-63

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5550
SELECT ALL COUNT( * ) + + - 1 + - 62 + NULLIF ( - 92 + 50, - ( CASE + ( 9 ) WHEN - 62 DIV 39 THEN 38 END ) * 51 ) DIV 79
----
-62

skipif mysql # not compatible
query I rowsort label-5550
SELECT ALL COUNT ( * ) + + - 1 + - 62 + NULLIF ( - 92 + 50, - ( CASE + ( 9 ) WHEN - 62 / 39 THEN 38 END ) * 51 ) / 79
----
-62

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

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

query I rowsort
SELECT ALL - 62 + + ( 16 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT 25 + + COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-5553
SELECT 25 + + COUNT ( * ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT ALL - SUM( + 94 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL - SUM ( + 94 ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT - CASE - + 86 WHEN COUNT( * ) THEN + 82 END * - 13 + 16 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT - CASE - + 86 WHEN COUNT ( * ) THEN + 82 END * - 13 + 16 * COUNT ( * ) AS col2
----
NULL

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

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

query I rowsort
SELECT ALL + CASE WHEN 53 IS NULL THEN + 1 / ( - 42 / 95 ) END + 60 AS col0
----
NULL

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5561
SELECT ALL - - 39 * - - COALESCE ( 88, 60 ) * - 72 + - CASE 28 + 92 WHEN 51 THEN - 50 WHEN 35 + 45 * + CASE + COUNT( * ) + 14 / CAST( + 94 * + 42 AS SIGNED ) WHEN + 70 * 37 THEN NULL WHEN - 95 THEN - 94 ELSE NULL END THEN 83 - - 2 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5561
SELECT ALL - - 39 * - - COALESCE ( 88, 60 ) * - 72 + - CASE 28 + 92 WHEN 51 THEN - 50 WHEN 35 + 45 * + CASE + COUNT ( * ) + 14 / CAST ( + 94 * + 42 AS INTEGER ) WHEN + 70 * 37 THEN NULL WHEN - 95 THEN - 94 ELSE NULL END THEN 83 - - 2 ELSE NULL END AS col1
----
NULL

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

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

query II rowsort
SELECT DISTINCT - + 98 AS col2, - 76
----
-98
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-5564
SELECT ALL NULLIF ( 16, - + 9 ) - - 53 DIV + ( 75 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL NULLIF ( 16, - + 9 ) - - 53 / + ( 75 ) AS col2
----
16

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5566
SELECT ALL + ( + ( 64 ) ) - ( 49 ) DIV - COUNT( * ) col1
----
113

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL + ( + ( 64 ) ) - ( 49 ) / - COUNT ( * ) col1
----
113

query I rowsort
SELECT + 55 * + 7
----
385

query I rowsort
SELECT ALL + 16 * + - 74 AS col1
----
-1184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5569
SELECT CASE - 0 WHEN - + 10 - + 46 THEN NULL WHEN - 77 THEN NULL WHEN 11 * + COUNT( * ) THEN 99 WHEN 19 THEN NULL ELSE NULL END / + CAST( + 4 / + 68 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5569
SELECT CASE - 0 WHEN - + 10 - + 46 THEN NULL WHEN - 77 THEN NULL WHEN 11 * + COUNT ( * ) THEN 99 WHEN 19 THEN NULL ELSE NULL END / + CAST ( + 4 / + 68 AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5571
SELECT 34 * + 48 * - COALESCE ( 59, COUNT( DISTINCT CAST( NULL AS SIGNED ) ) ) * + NULLIF ( ( - COALESCE ( MAX( + 0 ), 83 ) ) * - 92, 41 )
----
0

skipif mysql # not compatible
query I rowsort label-5571
SELECT 34 * + 48 * - COALESCE ( 59, COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) ) * + NULLIF ( ( - COALESCE ( MAX ( + 0 ), 83 ) ) * - 92, 41 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT - 44 + + + COUNT( * ) * + - 17
----
-61

skipif mysql # not compatible
query I rowsort label-5573
SELECT - 44 + + + COUNT ( * ) * + - 17
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5574
SELECT ALL + + 84 * + CASE + + 29 WHEN COUNT( * ) THEN COUNT( * ) WHEN - ( ( 47 ) ) THEN + COUNT( * ) ELSE COALESCE ( + 39, - CAST( + 62 AS SIGNED ) * ( + CAST( NULL AS SIGNED ) ) ) * 83 END * 49
----
13323492

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL + + 84 * + CASE + + 29 WHEN COUNT ( * ) THEN COUNT ( * ) WHEN - ( ( 47 ) ) THEN + COUNT ( * ) ELSE COALESCE ( + 39, - CAST ( + 62 AS INTEGER ) * ( + CAST ( NULL AS INTEGER ) ) ) * 83 END * 49
----
13323492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5575
SELECT ALL CAST( - 60 AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL CAST ( - 60 AS INTEGER )
----
-60

query I rowsort
SELECT + ( + 95 ) + - - 22 + - ( - 32 ) AS col0
----
149

query I rowsort
SELECT ALL - 65 * + + 2 * + 37
----
-4810

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT COUNT( * ) - - 28 + - 38 + + 42 + + 43 * - 43 * + ( 2 + 33 )
----
-64682

skipif mysql # not compatible
query I rowsort label-5579
SELECT COUNT ( * ) - - 28 + - 38 + + 42 + + 43 * - 43 * + ( 2 + 33 )
----
-64682

query I rowsort
SELECT DISTINCT - 47 + + 81
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5581
SELECT 19 DIV + - 7
----
-2

skipif mysql # not compatible
query I rowsort label-5581
SELECT 19 / + - 7
----
-2

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

skipif mysql # not compatible
query I rowsort label-5582
SELECT DISTINCT COUNT ( * ) + - 81 / + 81 AS col0
----
0

query I rowsort
SELECT ALL + 93 + + 50 + + 22
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-5584
SELECT ALL 10 DIV 18 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL 10 / 18 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5585
SELECT 9 DIV - 8 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5585
SELECT 9 / - 8 AS col1
----
-1

query I rowsort
SELECT ALL - 30 + + 18 AS col1
----
-12

query I rowsort
SELECT DISTINCT COALESCE ( + - 87, 35 - 32 ) AS col0
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5588
SELECT - MAX( 72 ) AS col1, + 77 DIV 37 * 8 col1
----
-72
16

skipif mysql # not compatible
query II rowsort label-5588
SELECT - MAX ( 72 ) AS col1, + 77 / 37 * 8 col1
----
-72
16

query I rowsort
SELECT 5 * + ( + 83 )
----
415

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5591
SELECT ALL CAST( - - 53 AS SIGNED ) - + 97 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL CAST ( - - 53 AS INTEGER ) - + 97 AS col0
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-5592
SELECT + COALESCE ( - - 99, - 89 DIV 19 * + 59 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-5592
SELECT + COALESCE ( - - 99, - 89 / 19 * + 59 ) AS col1
----
99

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

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

query I rowsort
SELECT ALL - - 48 * - + 19 * + - 31 - + 20 + 58 * + 26 - 49
----
29711

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT ALL + MIN( 68 )
----
68

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL + MIN ( 68 )
----
68

query I rowsort
SELECT - 41 * 86 * 94 + - 60
----
-331504

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5597
SELECT DISTINCT 91 * + CAST( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS DECIMAL ) * 30 + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT 91 * + CAST ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS REAL ) * 30 + 99
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT + - ( 0 ) + - 56 * + 3 * COUNT( * ) AS col2
----
-168

skipif mysql # not compatible
query I rowsort label-5599
SELECT + - ( 0 ) + - 56 * + 3 * COUNT ( * ) AS col2
----
-168

query I rowsort
SELECT - - 76 - 7 AS col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5601
SELECT + 6 DIV - - 10 AS col0, ( + CASE - COUNT( + 16 ) WHEN - 15 + COUNT( * ) * 72 THEN NULL WHEN - 60 THEN NULL WHEN + 97 THEN NULL WHEN - CAST( NULL AS SIGNED ) * CAST( 16 AS SIGNED ) THEN - 29 END )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5601
SELECT + 6 / - - 10 AS col0, ( + CASE - COUNT ( + 16 ) WHEN - 15 + COUNT ( * ) * 72 THEN NULL WHEN - 60 THEN NULL WHEN + 97 THEN NULL WHEN - CAST ( NULL AS INTEGER ) * CAST ( 16 AS INTEGER ) THEN - 29 END )
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT + 49 * COUNT( ALL + 58 ) * + 63 * 96 + + 71 + - 74
----
296349

skipif mysql # not compatible
query I rowsort label-5602
SELECT + 49 * COUNT ( ALL + 58 ) * + 63 * 96 + + 71 + - 74
----
296349

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

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

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

query I rowsort
SELECT + 33 + - 25
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5606
SELECT ALL 3 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL 3 / 66
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5607
SELECT - - COUNT( * ) * SUM( CAST( NULL AS SIGNED ) ) + + MIN( DISTINCT 55 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5607
SELECT - - COUNT ( * ) * SUM ( CAST ( NULL AS INTEGER ) ) + + MIN ( DISTINCT 55 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( - - COALESCE ( - ( + - 21 ), + CASE WHEN NULL NOT IN ( - 44 ) THEN NULLIF ( COALESCE ( + 22, 9 + 26 ), + 61 ) ELSE NULL END + - 31 * 66 ) ) AS col1
----
21

query I rowsort
SELECT DISTINCT NULLIF ( 81, - 44 * - + ( + ( 22 ) ) / - 96 + 39 * + 2 ) * 80 AS col1
----
6480

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT + + SUM( DISTINCT + 8 ) col0
----
8

skipif mysql # not compatible
query I rowsort label-5610
SELECT + + SUM ( DISTINCT + 8 ) col0
----
8

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

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

query I rowsort
SELECT DISTINCT + - 90 + + 63 + 44 AS col1
----
17

query II rowsort
SELECT DISTINCT + - 27 + - 17, 30 col1
----
-44
30

query I rowsort
SELECT + 70 * + 15 AS col1
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT ALL - MIN( + 21 ) + - 24
----
-45

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL - MIN ( + 21 ) + - 24
----
-45

query I rowsort
SELECT ALL + 6 + + 27 AS col2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5617
SELECT DISTINCT COALESCE ( + 66, - COUNT( * ) * - 11 + - + CAST( NULL AS SIGNED ) DIV - 9, + ( - 32 ) )
----
66

skipif mysql # not compatible
query I rowsort label-5617
SELECT DISTINCT COALESCE ( + 66, - COUNT ( * ) * - 11 + - + CAST ( NULL AS INTEGER ) / - 9, + ( - 32 ) )
----
66

query I rowsort
SELECT - CASE + 35 WHEN 64 * 27 + - - 53 + + 13 THEN 73 ELSE 28 END + 96
----
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5619
SELECT - 39 + - COUNT( * ) * - 12 / - + 20 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5619
SELECT - 39 + - COUNT ( * ) * - 12 / - + 20 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT ALL MAX( + NULLIF ( + 24, - 52 ) )
----
24

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL MAX ( + NULLIF ( + 24, - 52 ) )
----
24

query I rowsort
SELECT - 16 + 20 + + - ( - 86 ) * 58 col1
----
4992

query I rowsort
SELECT ALL + 62 + - + 45 AS col0
----
17

query I rowsort
SELECT DISTINCT CASE 94 WHEN - - 45 THEN 3 - 69 ELSE 3 * - 65 + 2 END AS col2
----
-193

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

skipif mysql # not compatible
query I rowsort label-5624
SELECT - MAX ( ALL - - 66 )
----
-66

query I rowsort
SELECT DISTINCT - 17 + - 22
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT ALL + ( + 83 ) - - 81 + 54 - + - COUNT( ALL - 79 ) * - 50
----
168

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL + ( + 83 ) - - 81 + 54 - + - COUNT ( ALL - 79 ) * - 50
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT + 62 + - MAX( ALL + 11 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-5627
SELECT + 62 + - MAX ( ALL + 11 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT ALL - CASE - - AVG ( 62 ) WHEN - 78 THEN - COUNT( * ) WHEN 63 THEN NULL END - - ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5628
SELECT ALL - CASE - - AVG ( 62 ) WHEN - 78 THEN - COUNT ( * ) WHEN 63 THEN NULL END - - ( - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5629
SELECT - 73 + + COUNT( DISTINCT + 74 ) * + NULLIF ( 63, - COUNT( ALL + 31 ) * + 9 ) DIV 23
----
-71

skipif mysql # not compatible
query I rowsort label-5629
SELECT - 73 + + COUNT ( DISTINCT + 74 ) * + NULLIF ( 63, - COUNT ( ALL + 31 ) * + 9 ) / 23
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-5630
SELECT DISTINCT 94 AS col2, 12 + + SUM( ALL + 23 )
----
94
35

skipif mysql # not compatible
query II rowsort label-5630
SELECT DISTINCT 94 AS col2, 12 + + SUM ( ALL + 23 )
----
94
35

onlyif mysql # aggregate syntax: 
query II rowsort label-5631
SELECT ALL 46 AS col1, 57 * 78 + COALESCE ( COUNT( * ), + 54 + 54 * + 51 ) AS col2
----
46
4447

skipif mysql # not compatible
query II rowsort label-5631
SELECT ALL 46 AS col1, 57 * 78 + COALESCE ( COUNT ( * ), + 54 + 54 * + 51 ) AS col2
----
46
4447

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

query I rowsort
SELECT ALL - 99 - + - COALESCE ( - 45, - 39 ) AS col2
----
-144

query I rowsort
SELECT DISTINCT ( - 37 ) AS col1
----
-37

query I rowsort
SELECT - 2 + + 78 * - 19 col2
----
-1484

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5636
SELECT + - 96 * - 60 * + - ( 2 ) + 69 + + CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5636
SELECT + - 96 * - 60 * + - ( 2 ) + 69 + + CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5637
SELECT ALL + CASE - + COALESCE ( 4, + 48 * 59 DIV - ( SUM( - 91 ) ) + 60 - + 5 * COUNT( * ) ) WHEN COUNT( * ) * 83 THEN + 63 + + 17 WHEN - 9 + + 60 THEN + ( + CAST( - 5 AS SIGNED ) ) DIV + 85 ELSE 82 END DIV + 63 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL + CASE - + COALESCE ( 4, + 48 * 59 / - ( SUM ( - 91 ) ) + 60 - + 5 * COUNT ( * ) ) WHEN COUNT ( * ) * 83 THEN + 63 + + 17 WHEN - 9 + + 60 THEN + ( + CAST ( - 5 AS INTEGER ) ) / + 85 ELSE 82 END / + 63 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5638
SELECT + 24 + + + NULLIF ( - COUNT( * ), ( + - 44 ) ) DIV 51
----
24

skipif mysql # not compatible
query I rowsort label-5638
SELECT + 24 + + + NULLIF ( - COUNT ( * ), ( + - 44 ) ) / 51
----
24

query I rowsort
SELECT ALL 63 * + + 40
----
2520

query I rowsort
SELECT - 77 * + 87
----
-6699

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT - MAX( - 95 ) * + 58 * 82 * + COUNT( * ) AS col2
----
451820

skipif mysql # not compatible
query I rowsort label-5641
SELECT - MAX ( - 95 ) * + 58 * 82 * + COUNT ( * ) AS col2
----
451820

onlyif mysql # DIV for integer division: 
query II rowsort label-5642
SELECT 51 AS col0, - 53 - - 72 - 29 DIV - 1 + - 51
----
51
-3

skipif mysql # not compatible
query II rowsort label-5642
SELECT 51 AS col0, - 53 - - 72 - 29 / - 1 + - 51
----
51
-3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5644
SELECT DISTINCT 75 DIV 98 + + - ( 64 ) + + 18
----
-46

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT 75 / 98 + + - ( 64 ) + + 18
----
-46

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

query I rowsort
SELECT + - 95 * - 43
----
4085

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

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

query I rowsort
SELECT ALL - 90 * 10 + + + 61
----
-839

query I rowsort
SELECT ALL + + 81 * + 42 * + + 40 * - 28 + 22 AS col0
----
-3810218

query I rowsort
SELECT + - CASE - + 60 WHEN + AVG ( DISTINCT - 1 ) / 52 THEN 70 ELSE 48 END + 45
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT DISTINCT 88 * 27 + COALESCE ( - COUNT( * ), - 43 + + 19 ) col2
----
2375

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT 88 * 27 + COALESCE ( - COUNT ( * ), - 43 + + 19 ) col2
----
2375

query I rowsort
SELECT - + 12 + + + 22
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5653
SELECT ALL + 4 * - CAST( COUNT( * ) AS SIGNED ) * - ( + COUNT( * ) ) * 52 + + MAX( DISTINCT 33 ) DIV - SUM( DISTINCT 53 ) + CASE + 86 + 47 WHEN - 74 + 24 * + 7 THEN NULL ELSE + 84 END
----
292

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL + 4 * - CAST ( COUNT ( * ) AS INTEGER ) * - ( + COUNT ( * ) ) * 52 + + MAX ( DISTINCT 33 ) / - SUM ( DISTINCT 53 ) + CASE + 86 + 47 WHEN - 74 + 24 * + 7 THEN NULL ELSE + 84 END
----
292

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT ALL + NULLIF ( + COALESCE ( - 90, + - COUNT( * ) + - - 12 + 9 * - MIN( DISTINCT 43 ) * COUNT( * ) ), - 72 ) * - 51 + + 54
----
4644

skipif mysql # not compatible
query I rowsort label-5654
SELECT ALL + NULLIF ( + COALESCE ( - 90, + - COUNT ( * ) + - - 12 + 9 * - MIN ( DISTINCT 43 ) * COUNT ( * ) ), - 72 ) * - 51 + + 54
----
4644

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT + COALESCE ( - 10, - - ( CASE 1 WHEN 42 * - 53 THEN 42 END ) * - 79 ) - - MAX( DISTINCT + 87 )
----
77

skipif mysql # not compatible
query I rowsort label-5655
SELECT + COALESCE ( - 10, - - ( CASE 1 WHEN 42 * - 53 THEN 42 END ) * - 79 ) - - MAX ( DISTINCT + 87 )
----
77

query I rowsort
SELECT ALL + 2 * + 2 AS col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5657
SELECT DISTINCT + 11 * + 2 DIV + + COUNT( * ) + - - COUNT( * ) - 50
----
-27

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT + 11 * + 2 / + + COUNT ( * ) + - - COUNT ( * ) - 50
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5658
SELECT 11 * - 1 * - + CAST( NULL AS SIGNED ) * 75 - - 27 - - 20 / 23 * + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5658
SELECT 11 * - 1 * - + CAST ( NULL AS INTEGER ) * 75 - - 27 - - 20 / 23 * + 32 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5659
SELECT DISTINCT 63 DIV COUNT( * ) AS col1, ( - - SUM( + 61 ) ) DIV 64 + - 17 * + 41 col0
----
63
-697

skipif mysql # not compatible
query II rowsort label-5659
SELECT DISTINCT 63 / COUNT ( * ) AS col1, ( - - SUM ( + 61 ) ) / 64 + - 17 * + 41 col0
----
63
-697

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT ALL - 78 * COUNT( * ) + - 72 AS col2
----
-150

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL - 78 * COUNT ( * ) + - 72 AS col2
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5661
SELECT DISTINCT CAST( 78 AS SIGNED ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-5661
SELECT DISTINCT CAST ( 78 AS INTEGER ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT MAX( DISTINCT 23 ) col1
----
23

skipif mysql # not compatible
query I rowsort label-5662
SELECT MAX ( DISTINCT 23 ) col1
----
23

query I rowsort
SELECT - 86 + + 29
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5664
SELECT ALL CASE CASE 23 WHEN - 11 THEN - + 87 WHEN - - 81 * CASE 46 + - CASE - 62 WHEN + 13 / ( 32 ) THEN 18 / 0 + 5 * + CASE WHEN 10 * COUNT( * ) NOT IN ( + ( 97 ) - + 85 ) THEN + ( - 26 ) + - 45 ELSE + 61 * CAST( NULL AS SIGNED ) END WHEN 71 + 1 * + 84 THEN NULL END WHEN - COUNT( * ) + - 49 THEN + 15 ELSE NULL END THEN + 19 ELSE NULL END WHEN SUM( - 13 ) / 20 + 50 * + 80 THEN SUM( + 14 ) * + MIN( 57 * 49 ) + 18 * ( + COUNT( * ) ) ELSE 36 * 37 END
----
1332

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL CASE CASE 23 WHEN - 11 THEN - + 87 WHEN - - 81 * CASE 46 + - CASE - 62 WHEN + 13 / ( 32 ) THEN 18 / 0 + 5 * + CASE WHEN 10 * COUNT ( * ) NOT IN ( + ( 97 ) - + 85 ) THEN + ( - 26 ) + - 45 ELSE + 61 * CAST ( NULL AS INTEGER ) END WHEN 71 + 1 * + 84 THEN NULL END WHEN - COUNT ( * ) + - 49 THEN + 15 ELSE NULL END THEN + 19 ELSE NULL END WHEN SUM ( - 13 ) / 20 + 50 * + 80 THEN SUM ( + 14 ) * + MIN ( 57 * 49 ) + 18 * ( + COUNT ( * ) ) ELSE 36 * 37 END
----
1332

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT ( - - 83 ) * + 46 + + COUNT( * ) col0
----
3819

skipif mysql # not compatible
query I rowsort label-5665
SELECT ( - - 83 ) * + 46 + + COUNT ( * ) col0
----
3819

query II rowsort
SELECT DISTINCT 32 AS col1, 29 + - - 40 AS col2
----
32
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5667
SELECT DISTINCT 84 col0, 22 DIV - CASE - CAST( NULL AS SIGNED ) WHEN + 42 THEN NULL ELSE ( + COUNT( ( 96 ) ) ) + 71 END
----
84
0

skipif mysql # not compatible
query II rowsort label-5667
SELECT DISTINCT 84 col0, 22 / - CASE - CAST ( NULL AS INTEGER ) WHEN + 42 THEN NULL ELSE ( + COUNT ( ( 96 ) ) ) + 71 END
----
84
0

query I rowsort
SELECT 60 + - + 36
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5669
SELECT ALL 89 AS col2, + CAST( - 83 AS SIGNED ) * + 47 * 49 + ( - COUNT( * ) ) + COUNT( * ) AS col1
----
89
-191149

skipif mysql # not compatible
query II rowsort label-5669
SELECT ALL 89 AS col2, + CAST ( - 83 AS INTEGER ) * + 47 * 49 + ( - COUNT ( * ) ) + COUNT ( * ) AS col1
----
89
-191149

query II rowsort
SELECT 10 AS col0, + 48 * + - 41 * + + 97 + 74 * - 33 AS col2
----
10
-193338

query I rowsort
SELECT ALL - 68 * 2
----
-136

query II rowsort
SELECT - 99 col0, + 44 AS col1
----
-99
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5673
SELECT DISTINCT + - NULLIF ( CAST( - NULLIF ( - + 54, COUNT( * ) ) AS SIGNED ), - 27 ) * CASE + 46 + COUNT( * ) WHEN + 77 THEN 64 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5673
SELECT DISTINCT + - NULLIF ( CAST ( - NULLIF ( - + 54, COUNT ( * ) ) AS INTEGER ), - 27 ) * CASE + 46 + COUNT ( * ) WHEN + 77 THEN 64 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( 32 ) AS col1
----
32

query I rowsort
SELECT 19 + - 25 AS col1
----
-6

query II rowsort
SELECT + 47 AS col1, + 35 AS col2
----
47
35

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

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

query I rowsort
SELECT DISTINCT + 96 * + 79 * 20 + + + 58 + + - 25 * - - 85 * 73
----
-3387

query I rowsort
SELECT + 49 * + - 15
----
-735

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT ALL + + 78 + + + 37 + - - CASE + + 30 WHEN ( CASE 51 WHEN - 39 THEN NULL ELSE + 77 * + 49 END ) THEN NULL ELSE + CASE - 29 WHEN + 16 - - 50 THEN NULL WHEN + 21 * + SUM( - 54 * 29 ) THEN 73 * + ( CASE - 81 WHEN 71 / - ( + 72 ) + 2 THEN - 97 * 13 ELSE 72 * + ( 75 ) END * 76 ) ELSE NULL END END + - COUNT( ALL + 42 ) * - 82 * - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL + + 78 + + + 37 + - - CASE + + 30 WHEN ( CASE 51 WHEN - 39 THEN NULL ELSE + 77 * + 49 END ) THEN NULL ELSE + CASE - 29 WHEN + 16 - - 50 THEN NULL WHEN + 21 * + SUM ( - 54 * 29 ) THEN 73 * + ( CASE - 81 WHEN 71 / - ( + 72 ) + 2 THEN - 97 * 13 ELSE 72 * + ( 75 ) END * 76 ) ELSE NULL END END + - COUNT ( ALL + 42 ) * - 82 * - 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5681
SELECT ALL - 4 + 30 * + CASE + MAX( DISTINCT + - 92 ) WHEN + - COALESCE ( + 30, - ( - 81 ) ) * 40 THEN COUNT( * ) WHEN ( COUNT( * ) ) THEN + 40 + COUNT( * ) WHEN ( + COUNT( + 50 ) ) + - AVG ( 14 ) THEN ( - CAST( COUNT( * ) AS SIGNED ) ) WHEN - 40 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL - 4 + 30 * + CASE + MAX ( DISTINCT + - 92 ) WHEN + - COALESCE ( + 30, - ( - 81 ) ) * 40 THEN COUNT ( * ) WHEN ( COUNT ( * ) ) THEN + 40 + COUNT ( * ) WHEN ( + COUNT ( + 50 ) ) + - AVG ( 14 ) THEN ( - CAST ( COUNT ( * ) AS INTEGER ) ) WHEN - 40 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT 88 + - COUNT( ALL + 29 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-5682
SELECT 88 + - COUNT ( ALL + 29 ) AS col0
----
87

query II rowsort
SELECT ALL - 32 col1, 71 + - 68 * - - 81
----
-32
-5437

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT 19 * COUNT( * ) + 79 + + 33 AS col0
----
131

skipif mysql # not compatible
query I rowsort label-5684
SELECT 19 * COUNT ( * ) + 79 + + 33 AS col0
----
131

query I rowsort
SELECT ALL 54 + - + CASE - - 9 WHEN + 10 + 41 * - 13 THEN NULL WHEN + 49 THEN NULL ELSE 17 * + 49 - ( 71 + 3 ) END
----
-705

onlyif mysql # aggregate syntax: 
query II rowsort label-5686
SELECT DISTINCT - MIN( - ( + 32 ) ) + - 5 AS col0, + 76 * - + 44 AS col2
----
27
-3344

skipif mysql # not compatible
query II rowsort label-5686
SELECT DISTINCT - MIN ( - ( + 32 ) ) + - 5 AS col0, + 76 * - + 44 AS col2
----
27
-3344

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT DISTINCT + 85 + + - CASE - 56 WHEN 39 - - - 60 THEN NULL ELSE COUNT( * ) END AS col1
----
84

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT + 85 + + - CASE - 56 WHEN 39 - - - 60 THEN NULL ELSE COUNT ( * ) END AS col1
----
84

query I rowsort
SELECT 58 - - 82 AS col2
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-5689
SELECT ALL + 52 DIV + - 83
----
0

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL + 52 / + - 83
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5690
SELECT + NULLIF ( + COALESCE ( 78, + - 84, + 92 + 19 + ( - COUNT( * ) ) ), - CAST( ( 78 ) AS SIGNED ) + - 75 )
----
78

skipif mysql # not compatible
query I rowsort label-5690
SELECT + NULLIF ( + COALESCE ( 78, + - 84, + 92 + 19 + ( - COUNT ( * ) ) ), - CAST ( ( 78 ) AS INTEGER ) + - 75 )
----
78

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

skipif mysql # not compatible
query I rowsort label-5691
SELECT + - SUM ( - 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT + 65 + + SUM( + - 87 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-5692
SELECT + 65 + + SUM ( + - 87 ) AS col1
----
-22

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

query I rowsort
SELECT ALL 43 * + - 96 - + + 60 AS col0
----
-4188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5695
SELECT ALL - NULLIF ( 85, + CAST( 3 AS SIGNED ) ) + 45 col2
----
-40

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL - NULLIF ( 85, + CAST ( 3 AS INTEGER ) ) + 45 col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT + 2 * - COUNT( * ) * + 61 + + 25
----
-97

skipif mysql # not compatible
query I rowsort label-5696
SELECT + 2 * - COUNT ( * ) * + 61 + + 25
----
-97

query II rowsort
SELECT + 39 col2, 10 + + 84 AS col2
----
39
94

query I rowsort
SELECT ALL + 43 + + 26 AS col0
----
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT COUNT( DISTINCT + - 92 ) + 89 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-5700
SELECT COUNT ( DISTINCT + - 92 ) + 89 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT NULLIF ( - 73, + 66 * 64 / + COUNT( * ) ) * + CASE - - ( 46 ) WHEN + 89 THEN 64 * - 2 + - 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5701
SELECT NULLIF ( - 73, + 66 * 64 / + COUNT ( * ) ) * + CASE - - ( 46 ) WHEN + 89 THEN 64 * - 2 + - 29 ELSE NULL END
----
NULL

query I rowsort
SELECT 54 * 6
----
324

onlyif mysql # DIV for integer division: 
query I rowsort label-5703
SELECT ALL ( + - NULLIF ( + 32, - 53 + - - 11 + 89 * - + 33 * - 85 ) ) DIV 11 col0
----
-2

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL ( + - NULLIF ( + 32, - 53 + - - 11 + 89 * - + 33 * - 85 ) ) / 11 col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT ( COUNT( * ) ) + 69 * + 66 + 58 AS col0
----
4613

skipif mysql # not compatible
query I rowsort label-5704
SELECT ( COUNT ( * ) ) + 69 * + 66 + 58 AS col0
----
4613

onlyif mysql # DIV for integer division: 
query I rowsort label-5705
SELECT 60 DIV + + 5
----
12

skipif mysql # not compatible
query I rowsort label-5705
SELECT 60 / + + 5
----
12

query I rowsort
SELECT 34 + 42 AS col1
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5707
SELECT ALL ( 78 ) DIV + 54
----
1

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL ( 78 ) / + 54
----
1

query I rowsort
SELECT ALL + 45 * 78
----
3510

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5709
SELECT ALL CAST( NULL AS SIGNED ) * + 44 AS col0, - 29 * 13
----
NULL
-377

skipif mysql # not compatible
query II rowsort label-5709
SELECT ALL CAST ( NULL AS INTEGER ) * + 44 AS col0, - 29 * 13
----
NULL
-377

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

skipif mysql # not compatible
query I rowsort label-5710
SELECT CAST ( NULL AS INTEGER ) * + 0 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5711
SELECT 69 + + 32 * - - ( CAST( NULL AS DECIMAL ) ) * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-5711
SELECT 69 + + 32 * - - ( CAST ( NULL AS REAL ) ) * 58
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 58, + 4, ( - 41 ) )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5713
SELECT COUNT( * ) * + - 77 AS col1, COUNT( - ( 14 ) ) + - + 96 * 41 * 66 + - 88 AS col1
----
-77
-259863

skipif mysql # not compatible
query II rowsort label-5713
SELECT COUNT ( * ) * + - 77 AS col1, COUNT ( - ( 14 ) ) + - + 96 * 41 * 66 + - 88 AS col1
----
-77
-259863

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5714
SELECT 65 + + CASE 7 WHEN CAST( NULL AS SIGNED ) THEN + 61 + 23 + - 34 END * 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5714
SELECT 65 + + CASE 7 WHEN CAST ( NULL AS INTEGER ) THEN + 61 + 23 + - 34 END * 14 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5715
SELECT + CAST( + - 44 AS SIGNED ) DIV ( - - 94 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5715
SELECT + CAST ( + - 44 AS INTEGER ) / ( - - 94 ) AS col1
----
0

query I rowsort
SELECT 24 + + 7 col2
----
31

query I rowsort
SELECT ALL - 8 + - - 69 AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5718
SELECT - 72 + + - CAST( + - 12 AS SIGNED ) + - 30 + - 33 + + - 98
----
-221

skipif mysql # not compatible
query I rowsort label-5718
SELECT - 72 + + - CAST ( + - 12 AS INTEGER ) + - 30 + - 33 + + - 98
----
-221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5719
SELECT ALL CAST( + CASE - COALESCE ( 46, - + 77, - 68 * - - 70 - - 14, 43 * - 77 ) WHEN - 22 * NULLIF ( - 34, + 94 ) THEN 9 * - ( + 41 * AVG ( ALL - CASE 4 WHEN + 37 * - 23 THEN - 54 * - 18 END ) ) - 73 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL CAST ( + CASE - COALESCE ( 46, - + 77, - 68 * - - 70 - - 14, 43 * - 77 ) WHEN - 22 * NULLIF ( - 34, + 94 ) THEN 9 * - ( + 41 * AVG ( ALL - CASE 4 WHEN + 37 * - 23 THEN - 54 * - 18 END ) ) - 73 END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5720
SELECT 57 + NULLIF ( + 12, + ( COALESCE ( NULLIF ( - + 38, - ( AVG ( + 5 ) ) ), - MIN( 75 ) + + 22 ) ) ) + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5720
SELECT 57 + NULLIF ( + 12, + ( COALESCE ( NULLIF ( - + 38, - ( AVG ( + 5 ) ) ), - MIN ( 75 ) + + 22 ) ) ) + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT DISTINCT - 6 + + COUNT( * ) + + + 63 + + 61
----
119

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT - 6 + + COUNT ( * ) + + + 63 + + 61
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT ALL 69 + + + COUNT( * ) + 1
----
71

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL 69 + + + COUNT ( * ) + 1
----
71

query I rowsort
SELECT + 22 + - 50 AS col2
----
-28

query I rowsort
SELECT ALL + 56 * 35
----
1960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT - SUM( ALL - - 65 ) * + CASE - NULLIF ( - - 59, + 14 ) WHEN - 1 THEN - COUNT( * ) WHEN - COUNT( * ) + - 38 THEN NULL ELSE NULL END + MAX( DISTINCT - 79 ) / COUNT( ALL - ( 5 ) * 61 ) + COUNT( * ) * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-5726
SELECT - SUM ( ALL - - 65 ) * + CASE - NULLIF ( - - 59, + 14 ) WHEN - 1 THEN - COUNT ( * ) WHEN - COUNT ( * ) + - 38 THEN NULL ELSE NULL END + MAX ( DISTINCT - 79 ) / COUNT ( ALL - ( 5 ) * 61 ) + COUNT ( * ) * 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5727
SELECT DISTINCT + + 83 * + - CASE 64 WHEN - 28 * + 58 + - - COUNT( ALL - 0 ) / - 56 THEN - 66 + + CASE + 74 + 72 WHEN COUNT( * ) + 61 THEN NULL WHEN + 10 THEN 61 * ( - 83 ) WHEN CAST( NULL AS SIGNED ) + + 29 * NULLIF ( + CAST( NULL AS SIGNED ) * 70, 28 * ( + 13 ) + 19 ) THEN NULL END * + 51 WHEN - 70 * 47 + CAST( NULL AS DECIMAL ) * COUNT( * ) THEN 58 + - 43 WHEN 42 + 39 THEN 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5727
SELECT DISTINCT + + 83 * + - CASE 64 WHEN - 28 * + 58 + - - COUNT ( ALL - 0 ) / - 56 THEN - 66 + + CASE + 74 + 72 WHEN COUNT ( * ) + 61 THEN NULL WHEN + 10 THEN 61 * ( - 83 ) WHEN CAST ( NULL AS INTEGER ) + + 29 * NULLIF ( + CAST ( NULL AS INTEGER ) * 70, 28 * ( + 13 ) + 19 ) THEN NULL END * + 51 WHEN - 70 * 47 + CAST ( NULL AS REAL ) * COUNT ( * ) THEN 58 + - 43 WHEN 42 + 39 THEN 70 END
----
NULL

query I rowsort
SELECT - NULLIF ( - 29, + 49 + 14 * + - 13 )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5729
SELECT - - 53 DIV - + 37 + - 78
----
-79

skipif mysql # not compatible
query I rowsort label-5729
SELECT - - 53 / - + 37 + - 78
----
-79

query I rowsort
SELECT - 88 * 77
----
-6776

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT ALL - 88 * + 32 - + + 4 + 21 + + COUNT( * ) - 30 * 63 * 58 * 53 + - COUNT( * )
----
-5812659

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL - 88 * + 32 - + + 4 + 21 + + COUNT ( * ) - 30 * 63 * 58 * 53 + - COUNT ( * )
----
-5812659

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5732
SELECT DISTINCT + CASE 84 WHEN - 4 THEN NULL WHEN + 21 + + CAST( NULL AS SIGNED ) * 20 THEN NULL ELSE + ( 15 ) + MAX( 57 - 51 ) END * 26 AS col0
----
546

skipif mysql # not compatible
query I rowsort label-5732
SELECT DISTINCT + CASE 84 WHEN - 4 THEN NULL WHEN + 21 + + CAST ( NULL AS INTEGER ) * 20 THEN NULL ELSE + ( 15 ) + MAX ( 57 - 51 ) END * 26 AS col0
----
546

onlyif mysql # aggregate syntax: 
query II rowsort label-5733
SELECT + 55, + ( COUNT( * ) ) * + 21 AS col2
----
55
21

skipif mysql # not compatible
query II rowsort label-5733
SELECT + 55, + ( COUNT ( * ) ) * + 21 AS col2
----
55
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5734
SELECT ALL + 57 * 65 DIV + + 66 - - MAX( 84 ) + CAST( + 68 AS SIGNED )
----
208

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL + 57 * 65 / + + 66 - - MAX ( 84 ) + CAST ( + 68 AS INTEGER )
----
208

onlyif mysql # DIV for integer division: 
query I rowsort label-5735
SELECT 28 DIV - 69 * - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5735
SELECT 28 / - 69 * - 90 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5736
SELECT ALL - CASE WHEN NOT 10 BETWEEN 76 + + - 23 AND ( - COUNT( * ) ) DIV 26 * 65 + 36 * - 89 THEN COALESCE ( + 43, CASE MAX( DISTINCT + 17 ) WHEN 22 + - ( - ( + 25 ) ) THEN + COUNT( * ) END ) ELSE NULL END DIV - 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL - CASE WHEN NOT 10 BETWEEN 76 + + - 23 AND ( - COUNT ( * ) ) / 26 * 65 + 36 * - 89 THEN COALESCE ( + 43, CASE MAX ( DISTINCT + 17 ) WHEN 22 + - ( - ( + 25 ) ) THEN + COUNT ( * ) END ) ELSE NULL END / - 45 AS col1
----
0

query I rowsort
SELECT 99 * - 29 * 74
----
-212454

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT 35 + CASE + 67 WHEN + 79 THEN + 46 * ( - 10 ) WHEN - 31 THEN NULL WHEN COUNT( * ) THEN NULL WHEN - 55 + 16 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5738
SELECT 35 + CASE + 67 WHEN + 79 THEN + 46 * ( - 10 ) WHEN - 31 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN - 55 + 16 THEN NULL END
----
NULL

query I rowsort
SELECT + 45 * 2 AS col1
----
90

query II rowsort
SELECT + 66, 14 col0
----
66
14

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5742
SELECT - 33 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-5742
SELECT - 33 / 81
----
0

query I rowsort
SELECT + 39 * - + ( + - 47 )
----
1833

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5744
SELECT ALL 45 * ( COALESCE ( + COALESCE ( - 24, - 1 DIV + 30 * + COUNT( * ) ), - 6, + ( 36 ) ) )
----
-1080

skipif mysql # not compatible
query I rowsort label-5744
SELECT ALL 45 * ( COALESCE ( + COALESCE ( - 24, - 1 / + 30 * + COUNT ( * ) ), - 6, + ( 36 ) ) )
----
-1080

query I rowsort
SELECT - 9 - 85 AS col2
----
-94

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

query I rowsort
SELECT DISTINCT 38 * + - 35 AS col2
----
-1330

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT DISTINCT + COUNT( - 45 ) * - 82
----
-82

skipif mysql # not compatible
query I rowsort label-5748
SELECT DISTINCT + COUNT ( - 45 ) * - 82
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5749
SELECT ALL COALESCE ( + 76, - - 15 DIV - - 94 )
----
76

skipif mysql # not compatible
query I rowsort label-5749
SELECT ALL COALESCE ( + 76, - - 15 / - - 94 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT DISTINCT + CASE + - 85 WHEN - - 53 THEN - ( - 76 ) END * ( + ( - COUNT( * ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5750
SELECT DISTINCT + CASE + - 85 WHEN - - 53 THEN - ( - 76 ) END * ( + ( - COUNT ( * ) ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5751
SELECT 78, 53 DIV - 76 AS col0
----
78
0

skipif mysql # not compatible
query II rowsort label-5751
SELECT 78, 53 / - 76 AS col0
----
78
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5752
SELECT DISTINCT 96 + + 42 * 48 * 67 * - + CAST( - 56 AS SIGNED ) + + - 79 AS col0
----
7564049

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT 96 + + 42 * 48 * 67 * - + CAST ( - 56 AS INTEGER ) + + - 79 AS col0
----
7564049

query I rowsort
SELECT ALL 55 + 31 + - 56 AS col2
----
30

query I rowsort
SELECT ALL 87 + 77 * - + 94 * + 92 AS col1
----
-665809

query I rowsort
SELECT DISTINCT COALESCE ( - 20, - 76 ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-5756
SELECT DISTINCT - 10 + + 86 * + COALESCE ( + COUNT( * ), - 11 + + 84 ) col0, - 99 * - 57 AS col0
----
76
5643

skipif mysql # not compatible
query II rowsort label-5756
SELECT DISTINCT - 10 + + 86 * + COALESCE ( + COUNT ( * ), - 11 + + 84 ) col0, - 99 * - 57 AS col0
----
76
5643

onlyif mysql # DIV for integer division: 
query I rowsort label-5757
SELECT DISTINCT + 35 DIV + + 5 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5757
SELECT DISTINCT + 35 / + + 5 AS col2
----
7

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

skipif mysql # not compatible
query I rowsort label-5758
SELECT DISTINCT COUNT ( * ) + 81 AS col1
----
82

query I rowsort
SELECT DISTINCT 58 + - 61
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5760
SELECT + + 91 * - CAST( NULL AS DECIMAL ) / + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5760
SELECT + + 91 * - CAST ( NULL AS REAL ) / + - 7
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5761
SELECT + 89, - MAX( 3 ) col0
----
89
-3

skipif mysql # not compatible
query II rowsort label-5761
SELECT + 89, - MAX ( 3 ) col0
----
89
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5762
SELECT - 20 * 65 DIV - + 78 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-5762
SELECT - 20 * 65 / - + 78 AS col2
----
16

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

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

query I rowsort
SELECT + 72 - + 21 col0
----
51

query I rowsort
SELECT - 42 * - 67
----
2814

onlyif mysql # aggregate syntax: 
query II rowsort label-5766
SELECT + 17 AS col1, COUNT( * ) - + SUM( 74 )
----
17
-73

skipif mysql # not compatible
query II rowsort label-5766
SELECT + 17 AS col1, COUNT ( * ) - + SUM ( 74 )
----
17
-73

query I rowsort
SELECT - + 50 * + 13 AS col1
----
-650

query I rowsort
SELECT + CASE + 36 WHEN - 81 * + 87 * - 73 THEN NULL WHEN - 38 THEN + 70 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT + 0 + + + COUNT( * ) + 65 col1
----
66

skipif mysql # not compatible
query I rowsort label-5769
SELECT + 0 + + + COUNT ( * ) + 65 col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT ALL + + MIN( + ( + 62 ) )
----
62

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL + + MIN ( + ( + 62 ) )
----
62

query I rowsort
SELECT ALL - 71 * 85 * - 40 * - 82 AS col2
----
-19794800

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT ALL + CASE 15 WHEN + + CASE + - 92 WHEN - 37 + + 44 + - CASE - 70 WHEN 80 * - 69 THEN NULL WHEN SUM( 25 ) THEN 96 END + - 37 * + 0 THEN + 34 WHEN 28 THEN ( 76 ) END * + 41 THEN NULL ELSE 25 END
----
25

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL + CASE 15 WHEN + + CASE + - 92 WHEN - 37 + + 44 + - CASE - 70 WHEN 80 * - 69 THEN NULL WHEN SUM ( 25 ) THEN 96 END + - 37 * + 0 THEN + 34 WHEN 28 THEN ( 76 ) END * + 41 THEN NULL ELSE 25 END
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5773
SELECT - CASE + 52 WHEN - 32 * COUNT( * ) * 85 + 23 THEN NULL ELSE - 98 + + + SUM( ALL + 83 ) END DIV + 75 - - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5773
SELECT - CASE + 52 WHEN - 32 * COUNT ( * ) * 85 + 23 THEN NULL ELSE - 98 + + + SUM ( ALL + 83 ) END / + 75 - - 0 AS col0
----
0

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

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

query I rowsort
SELECT DISTINCT - 89 * + - 88 AS col1
----
7832

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT 53 * + COUNT( * ) + - MAX( ALL 1 ) * + - 50 + - 19 * 84 * ( + 11 ) * - 55 col1
----
965683

skipif mysql # not compatible
query I rowsort label-5776
SELECT 53 * + COUNT ( * ) + - MAX ( ALL 1 ) * + - 50 + - 19 * 84 * ( + 11 ) * - 55 col1
----
965683

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5777
SELECT - 45 - + 89 AS col2, - CAST( NULL AS SIGNED )
----
-134
NULL

skipif mysql # not compatible
query II rowsort label-5777
SELECT - 45 - + 89 AS col2, - CAST ( NULL AS INTEGER )
----
-134
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5778
SELECT - 63 * 92 AS col2, - 22 * + + COALESCE ( + - COALESCE ( + - 26, + SUM( + 97 ), ( 0 ) + 5, - 10 ), SUM( - 10 ) + 37, 9 * 2 )
----
-5796
-572

skipif mysql # not compatible
query II rowsort label-5778
SELECT - 63 * 92 AS col2, - 22 * + + COALESCE ( + - COALESCE ( + - 26, + SUM ( + 97 ), ( 0 ) + 5, - 10 ), SUM ( - 10 ) + 37, 9 * 2 )
----
-5796
-572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5779
SELECT - 10 + + CAST( - 92 AS SIGNED )
----
-102

skipif mysql # not compatible
query I rowsort label-5779
SELECT - 10 + + CAST ( - 92 AS INTEGER )
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT DISTINCT + SUM( + NULLIF ( + + 60, + 40 + - - 9 ) ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-5780
SELECT DISTINCT + SUM ( + NULLIF ( + + 60, + 40 + - - 9 ) ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT ALL - 72 * - COUNT( + + 40 )
----
72

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL - 72 * - COUNT ( + + 40 )
----
72

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5783
SELECT DISTINCT + CASE + 96 WHEN - + CAST( NULL AS SIGNED ) THEN - 5 ELSE - COUNT( * ) + 73 + ( + + 20 ) + - 87 * 45 * + 64 END
----
-250468

skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT + CASE + 96 WHEN - + CAST ( NULL AS INTEGER ) THEN - 5 ELSE - COUNT ( * ) + 73 + ( + + 20 ) + - 87 * 45 * + 64 END
----
-250468

query I rowsort
SELECT ALL 11 * + - 24 + 3
----
-261

query I rowsort
SELECT - 97 * - 3 * - + COALESCE ( 72, - 50, + 11 * + 46 + + + 23 )
----
-20952

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT + COUNT( * ) + + + 10 + - 95 * - + 18 * - 9
----
-15379

skipif mysql # not compatible
query I rowsort label-5788
SELECT + COUNT ( * ) + + + 10 + - 95 * - + 18 * - 9
----
-15379

query I rowsort
SELECT DISTINCT ( - 44 ) * 36 + + 45 + - 28 + 18
----
-1549

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT COUNT( ALL + - 89 )
----
1

skipif mysql # not compatible
query I rowsort label-5790
SELECT COUNT ( ALL + - 89 )
----
1

query I rowsort
SELECT - ( - 71 ) + 69 * + 91 * - + 12 + - 58 - 38 AS col1
----
-75373

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

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL CASE - 26 WHEN COUNT ( * ) THEN + 8 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + - 54 + + 25
----
-29

query II rowsort
SELECT + - 11 + - 81, 63 AS col2
----
-92
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT ALL 7 + MIN( ALL + - ( - 29 ) )
----
36

skipif mysql # not compatible
query I rowsort label-5795
SELECT ALL 7 + MIN ( ALL + - ( - 29 ) )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT DISTINCT - - COUNT( * ) * 24
----
24

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT - - COUNT ( * ) * 24
----
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT + 90 + + - 21 + - - 8 * - 64 * + COUNT( * )
----
-443

skipif mysql # not compatible
query I rowsort label-5798
SELECT + 90 + + - 21 + - - 8 * - 64 * + COUNT ( * )
----
-443

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT + 17 + + ( COUNT( * ) ) * - 87 - - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-5800
SELECT + 17 + + ( COUNT ( * ) ) * - 87 - - COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT ALL 87 - + 98 * + 75 - + + SUM( ALL - 62 ) * + 42 + - COUNT( * ) + + 61 + 11 * 64 AS col2
----
-3895

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL 87 - + 98 * + 75 - + + SUM ( ALL - 62 ) * + 42 + - COUNT ( * ) + + 61 + 11 * 64 AS col2
----
-3895

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT + + COUNT( + + 76 ) + + 38
----
39

skipif mysql # not compatible
query I rowsort label-5802
SELECT + + COUNT ( + + 76 ) + + 38
----
39

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5804
SELECT ALL + 4 - - CASE - 26 WHEN - ( 60 ) + CAST( + - COUNT( * ) AS SIGNED ) - + MIN( + + 40 ) THEN - MIN( DISTINCT - 48 ) WHEN COUNT( * ) THEN NULL ELSE NULL END * ( - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL + 4 - - CASE - 26 WHEN - ( 60 ) + CAST ( + - COUNT ( * ) AS INTEGER ) - + MIN ( + + 40 ) THEN - MIN ( DISTINCT - 48 ) WHEN COUNT ( * ) THEN NULL ELSE NULL END * ( - 18 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT DISTINCT + 41 * 59 * 86 + - ( + 82 ) + - MIN( - 62 ) + + COUNT( DISTINCT - 12 ) + - 29 * + 70
----
205985

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT + 41 * 59 * 86 + - ( + 82 ) + - MIN ( - 62 ) + + COUNT ( DISTINCT - 12 ) + - 29 * + 70
----
205985

query I rowsort
SELECT ALL 37 - + ( - 71 )
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT - 95 * - 42 + - COUNT( * ) - + ( - 9 ) * 67 + - COUNT( * ) * - - 90 AS col0
----
4502

skipif mysql # not compatible
query I rowsort label-5807
SELECT - 95 * - 42 + - COUNT ( * ) - + ( - 9 ) * 67 + - COUNT ( * ) * - - 90 AS col0
----
4502

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5809
SELECT - COUNT( * ) * 35 + - 71 + + 66 + + 60 + + - 77 * 62 * 60 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT - COUNT ( * ) * 35 + - 71 + + 66 + + 60 + + - 77 * 62 * 60 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5810
SELECT COUNT( * ) DIV - 95 * + MIN( ALL 78 ) * - - ( + 2 ) + + - 93 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-5810
SELECT COUNT ( * ) / - 95 * + MIN ( ALL 78 ) * - - ( + 2 ) + + - 93 AS col1
----
-93

query I rowsort
SELECT 47 + 36
----
83

query I rowsort
SELECT 44 * 14 AS col1
----
616

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

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

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

query I rowsort
SELECT ALL - 22 + + CASE - + 23 WHEN + + 97 THEN - + 13 * 92 / 93 ELSE NULL END
----
NULL

query I rowsort
SELECT 69 + + 23 * - + 57 * 35 AS col2
----
-45816

query I rowsort
SELECT + 63 * ( - ( + 64 ) ) + + 15 AS col2
----
-4017

query I rowsort
SELECT ALL + 77 + + 58
----
135

query I rowsort
SELECT ALL - 23 + + 50
----
27

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

query I rowsort
SELECT 59 * 99
----
5841

query I rowsort
SELECT 62 - - + 16 AS col0
----
78

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

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

query I rowsort
SELECT 40 * - + 26 col1
----
-1040

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT - + SUM( + 45 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-5825
SELECT - + SUM ( + 45 ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT 1 * + NULLIF ( + 61, + NULLIF ( + + 98, + COUNT( * ) * + 90 ) + + ( - 55 ) + - 39 + COUNT( 79 ) * + 94 * 29 ) * 27 + 19 AS col1
----
1666

skipif mysql # not compatible
query I rowsort label-5826
SELECT 1 * + NULLIF ( + 61, + NULLIF ( + + 98, + COUNT ( * ) * + 90 ) + + ( - 55 ) + - 39 + COUNT ( 79 ) * + 94 * 29 ) * 27 + 19 AS col1
----
1666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5827
SELECT ALL + 85 / - + CASE + 99 WHEN + NULLIF ( CAST( NULL AS DECIMAL ), CAST( CAST( 65 AS SIGNED ) AS SIGNED ) ) THEN 63 * - 74 + COUNT( * ) WHEN NULLIF ( ( + 63 ), 54 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL + 85 / - + CASE + 99 WHEN + NULLIF ( CAST ( NULL AS REAL ), CAST ( CAST ( 65 AS INTEGER ) AS INTEGER ) ) THEN 63 * - 74 + COUNT ( * ) WHEN NULLIF ( ( + 63 ), 54 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5828
SELECT DISTINCT 23 AS col2, 96 * - - COUNT( * )
----
23
96

skipif mysql # not compatible
query II rowsort label-5828
SELECT DISTINCT 23 AS col2, 96 * - - COUNT ( * )
----
23
96

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

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

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

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

query I rowsort
SELECT 81 * - NULLIF ( - 40, - 40 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT + 15 * COUNT( * ) + - 5
----
10

skipif mysql # not compatible
query I rowsort label-5832
SELECT + 15 * COUNT ( * ) + - 5
----
10

query I rowsort
SELECT ALL + 44 * - - 72 AS col2
----
3168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5834
SELECT DISTINCT CASE + 55 WHEN - ( 12 ) * - 1 - + - CAST( NULL AS SIGNED ) + 37 / ( - 13 ) THEN NULL WHEN 64 THEN 67 ELSE MAX( - 14 ) END
----
-14

skipif mysql # not compatible
query I rowsort label-5834
SELECT DISTINCT CASE + 55 WHEN - ( 12 ) * - 1 - + - CAST ( NULL AS INTEGER ) + 37 / ( - 13 ) THEN NULL WHEN 64 THEN 67 ELSE MAX ( - 14 ) END
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5835
SELECT ALL - CASE - - 34 WHEN + - CAST( NULL AS SIGNED ) THEN - - 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL - CASE - - 34 WHEN + - CAST ( NULL AS INTEGER ) THEN - - 70 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT ALL - ( - 15 ) * 86 * - - COALESCE ( - - ( + + 79 ), - - 97 ) * - 14 + - CASE - + MAX( DISTINCT - 79 ) WHEN 88 * - 10 - - 34 THEN NULL WHEN 10 THEN - 90 * 71 ELSE COUNT( * ) * - 82 END AS col1
----
-1426658

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL - ( - 15 ) * 86 * - - COALESCE ( - - ( + + 79 ), - - 97 ) * - 14 + - CASE - + MAX ( DISTINCT - 79 ) WHEN 88 * - 10 - - 34 THEN NULL WHEN 10 THEN - 90 * 71 ELSE COUNT ( * ) * - 82 END AS col1
----
-1426658

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT CASE 82 WHEN + 0 THEN NULL WHEN - - 69 THEN NULL WHEN - COALESCE ( 3, 5 ) + + 79 + + 62 / - 89 + 87 THEN - COUNT( * ) END * 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5837
SELECT CASE 82 WHEN + 0 THEN NULL WHEN - - 69 THEN NULL WHEN - COALESCE ( 3, 5 ) + + 79 + + 62 / - 89 + 87 THEN - COUNT ( * ) END * 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT CASE 36 WHEN + SUM( - + 93 ) * - + 0 THEN + CASE - - 77 WHEN + - 96 THEN + 76 + 32 END WHEN NULLIF ( 81, 19 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5838
SELECT CASE 36 WHEN + SUM ( - + 93 ) * - + 0 THEN + CASE - - 77 WHEN + - 96 THEN + 76 + 32 END WHEN NULLIF ( 81, 19 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT 29 + - 72 + COUNT( * ) + - + 27 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-5839
SELECT 29 + - 72 + COUNT ( * ) + - + 27 AS col1
----
-69

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5841
SELECT 18 + + COUNT( * ) + - MIN( ALL - 99 ) AS col2, COALESCE ( - + 59, - NULLIF ( + COUNT( * ), 81 + - CAST( - 93 AS SIGNED ) * 0 ) ) * 39
----
118
-2301

skipif mysql # not compatible
query II rowsort label-5841
SELECT 18 + + COUNT ( * ) + - MIN ( ALL - 99 ) AS col2, COALESCE ( - + 59, - NULLIF ( + COUNT ( * ), 81 + - CAST ( - 93 AS INTEGER ) * 0 ) ) * 39
----
118
-2301

query II rowsort
SELECT ALL 53 AS col0, 80
----
53
80

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5844
SELECT ALL 74 + + 60 + + COUNT( * ) + - 21 * - 73 - + 56 AS col0, + COALESCE ( + ( 36 ), + + 99 - - - MAX( ALL - 6 ) * + 68 )
----
1612
36

skipif mysql # not compatible
query II rowsort label-5844
SELECT ALL 74 + + 60 + + COUNT ( * ) + - 21 * - 73 - + 56 AS col0, + COALESCE ( + ( 36 ), + + 99 - - - MAX ( ALL - 6 ) * + 68 )
----
1612
36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5845
SELECT DISTINCT ( - CASE CAST( NULL AS DECIMAL ) WHEN + 5 THEN - 65 WHEN - 38 + 77 * - 0 THEN + - NULLIF ( + + COUNT( * ), - - ( COALESCE ( 67, 98, - 7 ) ) ) * COUNT( * ) ELSE 30 END ) + + ( MIN( 99 ) ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT ( - CASE CAST ( NULL AS REAL ) WHEN + 5 THEN - 65 WHEN - 38 + 77 * - 0 THEN + - NULLIF ( + + COUNT ( * ), - - ( COALESCE ( 67, 98, - 7 ) ) ) * COUNT ( * ) ELSE 30 END ) + + ( MIN ( 99 ) ) AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5846
SELECT COUNT( * ) + CAST( + + 66 AS SIGNED ) * 80 col2
----
5281

skipif mysql # not compatible
query I rowsort label-5846
SELECT COUNT ( * ) + CAST ( + + 66 AS INTEGER ) * 80 col2
----
5281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5847
SELECT + COUNT( * ) DIV + 44 * - 54 - - + 32 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5847
SELECT + COUNT ( * ) / + 44 * - 54 - - + 32 AS col1
----
32

query I rowsort
SELECT DISTINCT 21 + - 11 AS col1
----
10

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

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

query I rowsort
SELECT ALL 38 * + + 17
----
646

query I rowsort
SELECT ALL 14 + 14 * + + 5
----
84

query II rowsort
SELECT 2 AS col0, - 72 * 7 * + - 53 * + 19 AS col1
----
2
507528

onlyif mysql # DIV for integer division: 
query I rowsort label-5853
SELECT ( - 58 ) DIV - 17
----
3

skipif mysql # not compatible
query I rowsort label-5853
SELECT ( - 58 ) / - 17
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5854
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 59 + + COUNT( 4 ) / + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 59 + + COUNT ( 4 ) / + 78 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT DISTINCT - 10 + COUNT( * ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-5855
SELECT DISTINCT - 10 + COUNT ( * ) col2
----
-9

query II rowsort
SELECT DISTINCT - 10, 23 AS col0
----
-10
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT ALL - MAX( DISTINCT - NULLIF ( + - 18, - 20 + 6 + - ( 3 ) * - + 34 * + + 65 ) ) * - 96 col1
----
1728

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL - MAX ( DISTINCT - NULLIF ( + - 18, - 20 + 6 + - ( 3 ) * - + 34 * + + 65 ) ) * - 96 col1
----
1728

query II rowsort
SELECT ALL - 67, - 13 AS col2
----
-67
-13

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

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

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

skipif mysql # not compatible
query I rowsort label-5860
SELECT ALL + 98 - + + COUNT ( * ) / + 74
----
98

query I rowsort
SELECT 34 + - 77
----
-43

query I rowsort
SELECT - 39 + 58
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT - COUNT( * ) * - 92 + 78
----
170

skipif mysql # not compatible
query I rowsort label-5863
SELECT - COUNT ( * ) * - 92 + 78
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT DISTINCT - 46 * + + COUNT( + 17 ) + - 92
----
-138

skipif mysql # not compatible
query I rowsort label-5864
SELECT DISTINCT - 46 * + + COUNT ( + 17 ) + - 92
----
-138

query I rowsort
SELECT + + 7 * COALESCE ( 60, + 25 * + + 64 ) AS col0
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT - + NULLIF ( - 17, - 94 + - 57 ) + + + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-5866
SELECT - + NULLIF ( - 17, - 94 + - 57 ) + + + COUNT ( * )
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5867
SELECT DISTINCT + 80 DIV + - 52 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5867
SELECT DISTINCT + 80 / + - 52 AS col2
----
-1

query I rowsort
SELECT ALL + COALESCE ( + 90, - ( + + 60 ) )
----
90

query II rowsort
SELECT - + 52 + + - COALESCE ( ( + + 21 ), + 94 + - - 61 ), 39 AS col0
----
-73
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5870
SELECT ALL + 30 * COUNT( * ) + CAST( NULL AS DECIMAL ) * ( - 25 ) - 4 + + - 47 AS col1, - 49 * 23
----
NULL
-1127

skipif mysql # not compatible
query II rowsort label-5870
SELECT ALL + 30 * COUNT ( * ) + CAST ( NULL AS REAL ) * ( - 25 ) - 4 + + - 47 AS col1, - 49 * 23
----
NULL
-1127

query I rowsort
SELECT - 28 * - 34
----
952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5872
SELECT - 87 / - - 35 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5872
SELECT - 87 / - - 35 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 13 + - + 83 * - 53
----
4386

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

query I rowsort
SELECT - 27 * + + 81 * - ( + + 72 ) col1
----
157464

query I rowsort
SELECT ALL 93 * 8 + - 20 AS col2
----
724

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT COALESCE ( + - 11, 55 - - NULLIF ( + - 77, COUNT( * ) ) ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-5877
SELECT COALESCE ( + - 11, 55 - - NULLIF ( + - 77, COUNT ( * ) ) ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT + SUM( DISTINCT 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5878
SELECT + SUM ( DISTINCT 49 ) AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5879
SELECT CASE + 22 WHEN - + COUNT( * ) + 88 * 99 THEN NULL WHEN + 90 THEN NULL ELSE - + CAST( NULL AS SIGNED ) + - 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5879
SELECT CASE + 22 WHEN - + COUNT ( * ) + 88 * 99 THEN NULL WHEN + 90 THEN NULL ELSE - + CAST ( NULL AS INTEGER ) + - 32 END
----
NULL

query I rowsort
SELECT NULLIF ( 69, + 76 ) AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5881
SELECT + CAST( - 16 AS SIGNED ) * + COUNT( * ) * + - COUNT( * ) + + - 6 * 27
----
-146

skipif mysql # not compatible
query I rowsort label-5881
SELECT + CAST ( - 16 AS INTEGER ) * + COUNT ( * ) * + - COUNT ( * ) + + - 6 * 27
----
-146

query I rowsort
SELECT COALESCE ( + 67, 78, - - 95 ) AS col1
----
67

query I rowsort
SELECT DISTINCT ( 89 ) * - NULLIF ( + - ( - 54 ), 42 + - 37 ) - + 89
----
-4895

query II rowsort
SELECT + 57 + + + 68 col0, 10
----
125
10

query I rowsort
SELECT + 14 * + - NULLIF ( - - 80, 15 ) * + ( 29 ) AS col0
----
-32480

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT + - SUM( ALL + 43 ) * + 45 * + + 37 * + COUNT( * ) AS col2
----
-71595

skipif mysql # not compatible
query I rowsort label-5886
SELECT + - SUM ( ALL + 43 ) * + 45 * + + 37 * + COUNT ( * ) AS col2
----
-71595

onlyif mysql # DIV for integer division: 
query I rowsort label-5887
SELECT ALL - ( + 52 ) DIV + - 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL - ( + 52 ) / + - 59 AS col0
----
0

query I rowsort
SELECT + + 22 * - 7 * - 99
----
15246

query I rowsort
SELECT ALL + CASE + + 66 WHEN COALESCE ( - 51, - 59 * - 73 / ( - 49 ) ) THEN NULL WHEN + + 50 / - 50 THEN NULL ELSE + 35 END
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT DISTINCT NULLIF ( - - 3, - CASE - COUNT( * ) WHEN 25 THEN - - 15 * AVG ( - 3 ) WHEN 44 * - + ( - COUNT( * ) ) + MAX( DISTINCT - 46 ) + 77 * 23 THEN - AVG ( 6 ) * + ( + 52 ) ELSE NULL END / + 69 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT NULLIF ( - - 3, - CASE - COUNT ( * ) WHEN 25 THEN - - 15 * AVG ( - 3 ) WHEN 44 * - + ( - COUNT ( * ) ) + MAX ( DISTINCT - 46 ) + 77 * 23 THEN - AVG ( 6 ) * + ( + 52 ) ELSE NULL END / + 69 ) AS col1
----
3

query I rowsort
SELECT + + 62 * - - 45
----
2790

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

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

query I rowsort
SELECT ALL 56 * + 58 AS col1
----
3248

onlyif mysql # DIV for integer division: 
query I rowsort label-5894
SELECT DISTINCT - 34 + - COALESCE ( + 69, + 14 DIV + 87 * 34 )
----
-103

skipif mysql # not compatible
query I rowsort label-5894
SELECT DISTINCT - 34 + - COALESCE ( + 69, + 14 / + 87 * 34 )
----
-103

query I rowsort
SELECT + ( + 48 ) - 86 * - - 66 AS col0
----
-5628

query I rowsort
SELECT + 53 * + 41 AS col1
----
2173

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT ALL - 90 + - + 25 * + NULLIF ( SUM( - - 52 ), - - 66 )
----
-1390

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL - 90 + - + 25 * + NULLIF ( SUM ( - - 52 ), - - 66 )
----
-1390

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT - - SUM( + 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-5898
SELECT - - SUM ( + 69 ) AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5899
SELECT ALL - 54 + + 60 DIV 13 * - - 2 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL - 54 + + 60 / 13 * - - 2 AS col0
----
-46

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

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

query I rowsort
SELECT ALL 69 + - 51 + 40 AS col0
----
58

query I rowsort
SELECT - 81 * + - 97
----
7857

onlyif mysql # DIV for integer division: 
query I rowsort label-5903
SELECT DISTINCT - 81 DIV - 58
----
1

skipif mysql # not compatible
query I rowsort label-5903
SELECT DISTINCT - 81 / - 58
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT + 51 + + + MAX( 39 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-5904
SELECT + 51 + + + MAX ( 39 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT - COUNT( 6 ) - - 0 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5905
SELECT - COUNT ( 6 ) - - 0 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5906
SELECT - 33 DIV - 28 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5906
SELECT - 33 / - 28 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT ALL - 91 + - COUNT( * ) + - 86 + 0 AS col2
----
-178

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL - 91 + - COUNT ( * ) + - 86 + 0 AS col2
----
-178

query I rowsort
SELECT + 45 * - 19 * 1
----
-855

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5909
SELECT DISTINCT - 82 DIV - + 17 * - COUNT( * ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT - 82 / - + 17 * - COUNT ( * ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT - COUNT( * ) + + 28 * ( 54 )
----
1511

skipif mysql # not compatible
query I rowsort label-5910
SELECT - COUNT ( * ) + + 28 * ( 54 )
----
1511

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

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

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

skipif mysql # not compatible
query II rowsort label-5912
SELECT DISTINCT + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT + CASE + + SUM( DISTINCT - + 4 ) WHEN - - 66 * + 20 THEN NULL ELSE + NULLIF ( + 32, + + 97 ) END * - 30 + - - 50 * COUNT( * ) + COUNT( * )
----
-909

skipif mysql # not compatible
query I rowsort label-5913
SELECT + CASE + + SUM ( DISTINCT - + 4 ) WHEN - - 66 * + 20 THEN NULL ELSE + NULLIF ( + 32, + + 97 ) END * - 30 + - - 50 * COUNT ( * ) + COUNT ( * )
----
-909

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5914
SELECT ALL + SUM( DISTINCT 61 ) * + 44 DIV + 11 + + 67 AS col0
----
311

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL + SUM ( DISTINCT 61 ) * + 44 / + 11 + + 67 AS col0
----
311

query I rowsort
SELECT ALL + 19 * 44
----
836

onlyif mysql # aggregate syntax: 
query II rowsort label-5916
SELECT ALL + 17 AS col2, 36 * ( - COUNT( * ) )
----
17
-36

skipif mysql # not compatible
query II rowsort label-5916
SELECT ALL + 17 AS col2, 36 * ( - COUNT ( * ) )
----
17
-36

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5917
SELECT CAST( NULL AS DECIMAL ), 17 + + 55 + + 89 AS col2
----
NULL
161

skipif mysql # not compatible
query II rowsort label-5917
SELECT CAST ( NULL AS REAL ), 17 + + 55 + + 89 AS col2
----
NULL
161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5918
SELECT + 0 DIV - COUNT( - + 62 ) + - + COALESCE ( + 33, - + SUM( 93 ) * + - 64, - - 75 - - 26 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-5918
SELECT + 0 / - COUNT ( - + 62 ) + - + COALESCE ( + 33, - + SUM ( 93 ) * + - 64, - - 75 - - 26 ) AS col1
----
-33

query I rowsort
SELECT ALL + 92 * 51 AS col1
----
4692

query I rowsort
SELECT + 19 + 30
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5921
SELECT - + ( - - 41 ) - + MAX( ALL CAST( + 60 AS SIGNED ) )
----
-101

skipif mysql # not compatible
query I rowsort label-5921
SELECT - + ( - - 41 ) - + MAX ( ALL CAST ( + 60 AS INTEGER ) )
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5922
SELECT - CAST( + CASE + 95 WHEN - 94 THEN - - 2 WHEN 25 THEN NULL END AS SIGNED ) * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5922
SELECT - CAST ( + CASE + 95 WHEN - 94 THEN - - 2 WHEN 25 THEN NULL END AS INTEGER ) * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

query I rowsort
SELECT DISTINCT + - ( + - 8 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5925
SELECT ALL - 46 DIV - 31
----
1

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL - 46 / - 31
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT 86 - ( + COUNT( * ) ) * - 6
----
92

skipif mysql # not compatible
query I rowsort label-5927
SELECT 86 - ( + COUNT ( * ) ) * - 6
----
92

query I rowsort
SELECT ALL 31 * + COALESCE ( - 72, + 93 ) col0
----
-2232

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5929
SELECT - COUNT( * ) DIV + + 68 * + + 45 col1, 9
----
0
9

skipif mysql # not compatible
query II rowsort label-5929
SELECT - COUNT ( * ) / + + 68 * + + 45 col1, 9
----
0
9

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

query I rowsort
SELECT ALL - 5 + + 89 AS col1
----
84

query I rowsort
SELECT 66 + - 88
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-5933
SELECT - + 81, - MAX( + + 67 ) AS col0
----
-81
-67

skipif mysql # not compatible
query II rowsort label-5933
SELECT - + 81, - MAX ( + + 67 ) AS col0
----
-81
-67

query I rowsort
SELECT + 37 + - + 52 col2
----
-15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT DISTINCT 16 + COUNT( + 80 ) + + - 26 * - + 97
----
2539

skipif mysql # not compatible
query I rowsort label-5936
SELECT DISTINCT 16 + COUNT ( + 80 ) + + - 26 * - + 97
----
2539

query I rowsort
SELECT ALL 90 + + + 72 AS col1
----
162

query II rowsort
SELECT - 60 AS col1, 73
----
-60
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT ALL + 70 + MAX( - - 36 )
----
106

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL + 70 + MAX ( - - 36 )
----
106

query I rowsort
SELECT 27 * + + 35
----
945

query I rowsort
SELECT 63 + + + 97 + - 79 * - 58 * 78 AS col1
----
357556

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT 82 + - COUNT( * ) + + 84
----
165

skipif mysql # not compatible
query I rowsort label-5942
SELECT 82 + - COUNT ( * ) + + 84
----
165

query I rowsort
SELECT ALL 15 - - + 57 * + 78
----
4461

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT 53 * + COUNT( * ) * + - 90 col1
----
-4770

skipif mysql # not compatible
query I rowsort label-5944
SELECT 53 * + COUNT ( * ) * + - 90 col1
----
-4770

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT DISTINCT 62 * - NULLIF ( + 73, 29 + COALESCE ( - NULLIF ( + 38, + 77 / - + 93 - - COUNT( * ) ), - 71 + + 68 ) + - ( + 80 ) + ( + 99 ) ) AS col1
----
-4526

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT 62 * - NULLIF ( + 73, 29 + COALESCE ( - NULLIF ( + 38, + 77 / - + 93 - - COUNT ( * ) ), - 71 + + 68 ) + - ( + 80 ) + ( + 99 ) ) AS col1
----
-4526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5946
SELECT DISTINCT 14 - - + COUNT( DISTINCT + + 44 ) * + CAST( - - COUNT( * ) AS SIGNED ) + - 88
----
-73

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT 14 - - + COUNT ( DISTINCT + + 44 ) * + CAST ( - - COUNT ( * ) AS INTEGER ) + - 88
----
-73

query I rowsort
SELECT 4 * + + 65
----
260

onlyif mysql # DIV for integer division: 
query I rowsort label-5948
SELECT ALL - 33 DIV - - 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL - 33 / - - 92 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5949
SELECT 23 DIV 72 * + COALESCE ( - + COUNT( 53 ), 62 ) * ( NULLIF ( + COALESCE ( + 83, 42 ), + 66 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5949
SELECT 23 / 72 * + COALESCE ( - + COUNT ( 53 ), 62 ) * ( NULLIF ( + COALESCE ( + 83, 42 ), + 66 ) ) AS col2
----
0

query I rowsort
SELECT - ( 63 ) + - 19
----
-82

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

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

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

query I rowsort
SELECT ALL 75 + + 20 * CASE - 93 WHEN + + 45 THEN NULL WHEN + 98 THEN - - 32 * + 30 - + 69 ELSE NULL END + - ( + 21 ) / 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5954
SELECT - ( + ( COUNT( * ) ) ) DIV - - 92 * - COALESCE ( - - ( + 46 ), + NULLIF ( - 62, + 44 ) ) + - CASE + + 44 WHEN - 56 * + + 32 + - COUNT( DISTINCT 10 ) THEN NULL WHEN - 47 THEN NULL ELSE 57 END AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-5954
SELECT - ( + ( COUNT ( * ) ) ) / - - 92 * - COALESCE ( - - ( + 46 ), + NULLIF ( - 62, + 44 ) ) + - CASE + + 44 WHEN - 56 * + + 32 + - COUNT ( DISTINCT 10 ) THEN NULL WHEN - 47 THEN NULL ELSE 57 END AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT ALL + + MAX( DISTINCT + 41 ) + - ( 2 ) + + NULLIF ( 83, - COUNT( * ) * - CASE - CASE - 0 WHEN + 43 / + 58 THEN NULL ELSE + 47 END WHEN - 36 / - 29 - 89 THEN NULL ELSE 80 END + 55 ) AS col1
----
122

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL + + MAX ( DISTINCT + 41 ) + - ( 2 ) + + NULLIF ( 83, - COUNT ( * ) * - CASE - CASE - 0 WHEN + 43 / + 58 THEN NULL ELSE + 47 END WHEN - 36 / - 29 - 89 THEN NULL ELSE 80 END + 55 ) AS col1
----
122

query I rowsort
SELECT NULLIF ( - + CASE + - 5 WHEN - 82 * 67 / + 71 * + 62 + + 6 + - ( + 41 ) - - 45 THEN + + 7 + + 34 END, + + 97 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5957
SELECT + COUNT( * ) + 53 DIV - 16 + 26, + 61 AS col2
----
24
61

skipif mysql # not compatible
query II rowsort label-5957
SELECT + COUNT ( * ) + 53 / - 16 + 26, + 61 AS col2
----
24
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT + MIN( - + 47 ) * SUM( DISTINCT - 52 )
----
2444

skipif mysql # not compatible
query I rowsort label-5959
SELECT + MIN ( - + 47 ) * SUM ( DISTINCT - 52 )
----
2444

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT ALL - + 13 + - ( - 76 ) * - + COUNT( ALL - - 24 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL - + 13 + - ( - 76 ) * - + COUNT ( ALL - - 24 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT DISTINCT - COUNT( * ) + - + 91 + - - NULLIF ( + COUNT( - 84 ), - MAX( ALL + + 64 ) ) col2
----
-91

skipif mysql # not compatible
query I rowsort label-5961
SELECT DISTINCT - COUNT ( * ) + - + 91 + - - NULLIF ( + COUNT ( - 84 ), - MAX ( ALL + + 64 ) ) col2
----
-91

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

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

query II rowsort
SELECT ALL - + 21 + 50 AS col1, + 79 col0
----
29
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5964
SELECT DISTINCT - COUNT( 78 ) * + + 88 DIV - + COALESCE ( + + 95, + 13, - 3 ) + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT - COUNT ( 78 ) * + + 88 / - + COALESCE ( + + 95, + 13, - 3 ) + + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5965
SELECT ALL COUNT( 22 ) + + CAST( - + 72 AS SIGNED ), + 70 + + ( MAX( DISTINCT - 31 ) ) DIV + 78 col2
----
-71
70

skipif mysql # not compatible
query II rowsort label-5965
SELECT ALL COUNT ( 22 ) + + CAST ( - + 72 AS INTEGER ), + 70 + + ( MAX ( DISTINCT - 31 ) ) / + 78 col2
----
-71
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5966
SELECT DISTINCT + NULLIF ( 95, + ( + - 28 ) + 23 + 40 + + CASE + 76 WHEN + - 15 THEN - CAST( NULL AS SIGNED ) * + - CASE WHEN ( - 28 ) BETWEEN 87 * + 65 AND + 45 THEN 17 * 26 + 6 WHEN - 93 NOT BETWEEN ( + ( 56 ) / + MAX( ALL - 3 * 62 ) + 35 * SUM( ALL 10 + 54 ) ) AND NULL THEN + COALESCE ( 31, 7 ) * 0 + + 13 ELSE NULL END + 13 WHEN 60 - 98 THEN NULL END + + 46 * 94 )
----
95

skipif mysql # not compatible
query I rowsort label-5966
SELECT DISTINCT + NULLIF ( 95, + ( + - 28 ) + 23 + 40 + + CASE + 76 WHEN + - 15 THEN - CAST ( NULL AS INTEGER ) * + - CASE WHEN ( - 28 ) BETWEEN 87 * + 65 AND + 45 THEN 17 * 26 + 6 WHEN - 93 NOT BETWEEN ( + ( 56 ) / + MAX ( ALL - 3 * 62 ) + 35 * SUM ( ALL 10 + 54 ) ) AND NULL THEN + COALESCE ( 31, 7 ) * 0 + + 13 ELSE NULL END + 13 WHEN 60 - 98 THEN NULL END + + 46 * 94 )
----
95

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

skipif mysql # not compatible
query I rowsort label-5967
SELECT DISTINCT + 81 * + ( 93 ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT 47 * CASE - 10 WHEN - 52 THEN - + 2 + 31 + ( + 71 ) * - CASE + 87 WHEN - + 80 * - 57 THEN + + 26 / + 35 * 54 + - ( 89 + - 31 * + 68 ) END WHEN 92 + + ( - ( - COALESCE ( + COUNT( * ), 1 ) ) ) THEN + 67 WHEN 3 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5968
SELECT 47 * CASE - 10 WHEN - 52 THEN - + 2 + 31 + ( + 71 ) * - CASE + 87 WHEN - + 80 * - 57 THEN + + 26 / + 35 * 54 + - ( 89 + - 31 * + 68 ) END WHEN 92 + + ( - ( - COALESCE ( + COUNT ( * ), 1 ) ) ) THEN + 67 WHEN 3 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 53 - - 94 AS col0
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5970
SELECT CASE + 37 WHEN + + 82 * - 7 + 1 / + CAST( 10 AS SIGNED ) THEN NULL WHEN + + CASE + 89 WHEN + - 74 THEN + - ( - - COUNT( * ) ) WHEN - 56 THEN NULL END THEN COUNT( * ) ELSE NULL END * - - COUNT( 14 ) * 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5970
SELECT CASE + 37 WHEN + + 82 * - 7 + 1 / + CAST ( 10 AS INTEGER ) THEN NULL WHEN + + CASE + 89 WHEN + - 74 THEN + - ( - - COUNT ( * ) ) WHEN - 56 THEN NULL END THEN COUNT ( * ) ELSE NULL END * - - COUNT ( 14 ) * 17 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5971
SELECT ALL 68 DIV 35 DIV - - 49
----
0

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL 68 / 35 / - - 49
----
0

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

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

query I rowsort
SELECT 88 - 37
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT MAX( + 88 ) + + 13 AS col1
----
101

skipif mysql # not compatible
query I rowsort label-5974
SELECT MAX ( + 88 ) + + 13 AS col1
----
101

query II rowsort
SELECT 52 AS col2, - 75 * 79 AS col0
----
52
-5925

query II rowsort
SELECT ALL 88 AS col2, 1 AS col2
----
88
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5977
SELECT ( CASE 25 WHEN - CAST( NULL AS SIGNED ) * + 55 THEN - MAX( - 36 ) END ) + + + 64 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5977
SELECT ( CASE 25 WHEN - CAST ( NULL AS INTEGER ) * + 55 THEN - MAX ( - 36 ) END ) + + + 64 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT - COUNT( - + COALESCE ( - - 79, + 63 + - ( 3 ), 75 / 60 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5978
SELECT - COUNT ( - + COALESCE ( - - 79, + 63 + - ( 3 ), 75 / 60 ) ) AS col0
----
-1

query I rowsort
SELECT - 89 * + - 4
----
356

query II rowsort
SELECT ALL NULLIF ( - - 18, ( + 28 ) ) * 56 + + 34 AS col2, - ( 46 )
----
1042
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT ALL - COUNT( * ) * + 60 + 20
----
-40

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL - COUNT ( * ) * + 60 + 20
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5982
SELECT ALL + COALESCE ( + 95, + + CAST( - CASE 57 WHEN + - 87 THEN NULL ELSE CAST( + 14 AS SIGNED ) END AS SIGNED ) )
----
95

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL + COALESCE ( + 95, + + CAST ( - CASE 57 WHEN + - 87 THEN NULL ELSE CAST ( + 14 AS INTEGER ) END AS INTEGER ) )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5983
SELECT + - COALESCE ( 63, - 99 ) DIV + - 59 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5983
SELECT + - COALESCE ( 63, - 99 ) / + - 59 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5984
SELECT - - 18 * - + COUNT( - 16 ) * - COUNT( * ) - + CAST( + MIN( + - 95 ) AS SIGNED ) + + 19 AS col0
----
132

skipif mysql # not compatible
query I rowsort label-5984
SELECT - - 18 * - + COUNT ( - 16 ) * - COUNT ( * ) - + CAST ( + MIN ( + - 95 ) AS INTEGER ) + + 19 AS col0
----
132

query I rowsort
SELECT DISTINCT + 76 * 93 + NULLIF ( - + ( - 61 ), - 22 + 1 - + 17 * - - 94 )
----
7129

query II rowsort
SELECT ALL + 40 * + + 32 + 99, - 96 AS col1
----
1379
-96

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

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL + - COUNT ( DISTINCT + 14 ) AS col2
----
-1

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

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

query I rowsort
SELECT COALESCE ( + - 88, + - 83 ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT - - COUNT( * ) - - 78 + + - 25 * + 70
----
-1671

skipif mysql # not compatible
query I rowsort label-5990
SELECT - - COUNT ( * ) - - 78 + + - 25 * + 70
----
-1671

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5991
SELECT - + NULLIF ( NULLIF ( MAX( - - CAST( + 63 AS SIGNED ) ), + COUNT( * ) + + CASE - 55 WHEN - 51 THEN NULL WHEN + 91 THEN NULL ELSE - 25 END ), - MIN( - 86 ) ) * + + 61 * + NULLIF ( 70, 22 + 69 ) + 92 DIV 23
----
-269006

skipif mysql # not compatible
query I rowsort label-5991
SELECT - + NULLIF ( NULLIF ( MAX ( - - CAST ( + 63 AS INTEGER ) ), + COUNT ( * ) + + CASE - 55 WHEN - 51 THEN NULL WHEN + 91 THEN NULL ELSE - 25 END ), - MIN ( - 86 ) ) * + + 61 * + NULLIF ( 70, 22 + 69 ) + 92 / 23
----
-269006

query I rowsort
SELECT - 22 + + 81 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT DISTINCT NULLIF ( + 50, - COUNT( * ) + - + 39 )
----
50

skipif mysql # not compatible
query I rowsort label-5993
SELECT DISTINCT NULLIF ( + 50, - COUNT ( * ) + - + 39 )
----
50

query II rowsort
SELECT ALL ( - 85 ) col0, - ( + - 62 ) AS col1
----
-85
62

query I rowsort
SELECT - 74 + + 86
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5996
SELECT ALL NULLIF ( + 46, 83 + COUNT( * ) * - 18 / 50 * - 69 + CAST( NULL AS SIGNED ) + - 0 * + CAST( NULL AS DECIMAL ) )
----
46

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL NULLIF ( + 46, 83 + COUNT ( * ) * - 18 / 50 * - 69 + CAST ( NULL AS INTEGER ) + - 0 * + CAST ( NULL AS REAL ) )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5997
SELECT DISTINCT CASE + COUNT( * ) WHEN - MAX( DISTINCT + CAST( - 32 AS SIGNED ) ) THEN NULL ELSE 99 + + COALESCE ( - COUNT( * ), + - 31 DIV - - COUNT( * ) ) END AS col1
----
98

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT CASE + COUNT ( * ) WHEN - MAX ( DISTINCT + CAST ( - 32 AS INTEGER ) ) THEN NULL ELSE 99 + + COALESCE ( - COUNT ( * ), + - 31 / - - COUNT ( * ) ) END AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT ALL MAX( DISTINCT - 71 ) * - 49 * - 49 AS col0
----
-170471

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL MAX ( DISTINCT - 71 ) * - 49 * - 49 AS col0
----
-170471

query I rowsort
SELECT - ( - 55 ) + - 88
----
-33

query I rowsort
SELECT + 44 + 16 AS col0
----
60

query I rowsort
SELECT ALL + 33 * + 10 * - + NULLIF ( - 94, + - 44 + 41 + 63 * + 88 ) * - 95
----
-2946900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6002
SELECT + 38 DIV - COUNT( * ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-6002
SELECT + 38 / - COUNT ( * ) AS col1
----
-38

query I rowsort
SELECT + 96 + 86 AS col2
----
182

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6004
SELECT DISTINCT - 88 + + CAST( + 57 AS SIGNED ) DIV + 42
----
-87

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT - 88 + + CAST ( + 57 AS INTEGER ) / + 42
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-6005
SELECT + 2 DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-6005
SELECT + 2 / + 68
----
0

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

query I rowsort
SELECT DISTINCT - 28 + 20 AS col2
----
-8

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

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL - 70 + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + - 64 * 33 / - + CASE - COALESCE ( + - 50, - 85 ) WHEN - 19 + - 10 THEN + + 31 END
----
NULL

query I rowsort
SELECT DISTINCT + 0 + - + 9
----
-9

query I rowsort
SELECT - 29 * COALESCE ( 77, ( - 87 ) ) + + + 99 + 42 * 89 + - - 51 + - 91
----
1564

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6012
SELECT ALL - - COUNT( * ) DIV + - COUNT( * ) * - NULLIF ( - ( ( + COUNT( * ) ) ), 61 ) + + 30 + - COUNT( * ) * + ( 47 ) + + - 13 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL - - COUNT ( * ) / + - COUNT ( * ) * - NULLIF ( - ( ( + COUNT ( * ) ) ), 61 ) + + 30 + - COUNT ( * ) * + ( 47 ) + + - 13 AS col0
----
-31

query II rowsort
SELECT 12 AS col0, CASE 72 WHEN + + 63 / 21 THEN + - 82 * 75 * - 5 + + 40 END
----
12
NULL

query I rowsort
SELECT ALL 20 * 14 * 76 * - - 24 AS col0
----
510720

onlyif mysql # aggregate syntax: 
query II rowsort label-6015
SELECT + - 12 + - - 41 AS col0, COUNT( * ) * - 61
----
29
-61

skipif mysql # not compatible
query II rowsort label-6015
SELECT + - 12 + - - 41 AS col0, COUNT ( * ) * - 61
----
29
-61

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

query I rowsort
SELECT + 37 * 91 + 22 AS col2
----
3389

query I rowsort
SELECT - CASE + + 25 WHEN 76 * + 35 * 49 THEN NULL WHEN - + 37 + + 57 THEN NULL WHEN - + 67 * 97 * - 79 THEN + + 67 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6019
SELECT ALL + 0, 10 * - NULLIF ( 69, - + NULLIF ( + 60, + AVG ( + 38 ) ) / - COUNT( * ) ) AS col0
----
0
-690

skipif mysql # not compatible
query II rowsort label-6019
SELECT ALL + 0, 10 * - NULLIF ( 69, - + NULLIF ( + 60, + AVG ( + 38 ) ) / - COUNT ( * ) ) AS col0
----
0
-690

query II rowsort
SELECT + + 43 AS col2, 65 AS col1
----
43
65

query I rowsort
SELECT + 87 * + + 80 - + 85 - + - 15 + - + 80 * 43
----
3450

query I rowsort
SELECT + ( + 5 ) * + 32 * 77 AS col1
----
12320

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6024
SELECT + 92 / - 62 + 10 + - 62 + + 14 * 9 - 55 * 42 / - ( - 42 ) + - CAST( NULL AS SIGNED ) + + 40 / + 51 + + 0 + - ( + + NULLIF ( CASE - 48 WHEN CAST( NULL AS SIGNED ) + + 26 * + 27 THEN MIN( 16 ) - - 32 * ( + 49 ) ELSE 33 END, - COUNT( * ) - COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6024
SELECT + 92 / - 62 + 10 + - 62 + + 14 * 9 - 55 * 42 / - ( - 42 ) + - CAST ( NULL AS INTEGER ) + + 40 / + 51 + + 0 + - ( + + NULLIF ( CASE - 48 WHEN CAST ( NULL AS INTEGER ) + + 26 * + 27 THEN MIN ( 16 ) - - 32 * ( + 49 ) ELSE 33 END, - COUNT ( * ) - COUNT ( * ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6025
SELECT - SUM( + 68 ), 55 * - - 57 AS col2
----
-68
3135

skipif mysql # not compatible
query II rowsort label-6025
SELECT - SUM ( + 68 ), 55 * - - 57 AS col2
----
-68
3135

query II rowsort
SELECT ALL + 36 * - 30, + 81 * + 77 AS col1
----
-1080
6237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6027
SELECT ALL + COUNT( ALL - CAST( NULL AS SIGNED ) ) * + + 58
----
0

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * + + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT - ( - CASE + 88 WHEN 29 / - 86 THEN NULL ELSE - 99 END ) * 32 + COUNT( * ) AS col2
----
-3167

skipif mysql # not compatible
query I rowsort label-6028
SELECT - ( - CASE + 88 WHEN 29 / - 86 THEN NULL ELSE - 99 END ) * 32 + COUNT ( * ) AS col2
----
-3167

query II rowsort
SELECT ALL + 74 * + 46 AS col0, 75 AS col0
----
3404
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6030
SELECT - CAST( 95 AS SIGNED ), 94 AS col0
----
-95
94

skipif mysql # not compatible
query II rowsort label-6030
SELECT - CAST ( 95 AS INTEGER ), 94 AS col0
----
-95
94

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6032
SELECT ALL ( 21 ), 88 * 38 * - + 1 DIV - COUNT( * ) AS col0
----
21
3344

skipif mysql # not compatible
query II rowsort label-6032
SELECT ALL ( 21 ), 88 * 38 * - + 1 / - COUNT ( * ) AS col0
----
21
3344

query II rowsort
SELECT + 32 - - - 34 AS col2, - 0 AS col2
----
-2
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6034
SELECT - 97 * - 0 * + + 87 DIV NULLIF ( - + COUNT( * ), + 21 )
----
0

skipif mysql # not compatible
query I rowsort label-6034
SELECT - 97 * - 0 * + + 87 / NULLIF ( - + COUNT ( * ), + 21 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6035
SELECT - ( 9 ) - + COALESCE ( + 44, 65, + ( ( - 47 ) ) + - COUNT( * ) ) + + CASE COUNT( DISTINCT - 84 ) WHEN + 31 / - COUNT( * ) - + + 20 THEN NULL ELSE 31 + + - 47 END + ( COALESCE ( - 89, + CAST( NULL AS SIGNED ) + ( + 31 + - 96 ) ) )
----
-158

skipif mysql # not compatible
query I rowsort label-6035
SELECT - ( 9 ) - + COALESCE ( + 44, 65, + ( ( - 47 ) ) + - COUNT ( * ) ) + + CASE COUNT ( DISTINCT - 84 ) WHEN + 31 / - COUNT ( * ) - + + 20 THEN NULL ELSE 31 + + - 47 END + ( COALESCE ( - 89, + CAST ( NULL AS INTEGER ) + ( + 31 + - 96 ) ) )
----
-158

onlyif mysql # aggregate syntax: 
query II rowsort label-6036
SELECT - MAX( DISTINCT - COALESCE ( - 22, 26 ) ) - + 41 col0, + 82 * - 20 AS col2
----
-63
-1640

skipif mysql # not compatible
query II rowsort label-6036
SELECT - MAX ( DISTINCT - COALESCE ( - 22, 26 ) ) - + 41 col0, + 82 * - 20 AS col2
----
-63
-1640

query I rowsort
SELECT 6 * + NULLIF ( 86, 0 / 41 * - 69 * - + 86 ) * + 23 AS col0
----
11868

query I rowsort
SELECT 87 + + ( - 98 ) AS col1
----
-11

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6040
SELECT + 29 + ( 95 ) + - NULLIF ( + 77, - 60 * + + COALESCE ( + 36, 4, + 2 ) + + 69 * + - NULLIF ( 99, + CAST( + 48 AS DECIMAL ) - + - COALESCE ( - CASE - 1 WHEN + CAST( + 93 AS DECIMAL ) THEN NULL WHEN - 48 * 50 THEN NULL ELSE 70 END, 11, COALESCE ( 72, + 0 * + COUNT( * ) ) ) + 16 * + 41 * - COUNT( * ) ) )
----
47

skipif mysql # not compatible
query I rowsort label-6040
SELECT + 29 + ( 95 ) + - NULLIF ( + 77, - 60 * + + COALESCE ( + 36, 4, + 2 ) + + 69 * + - NULLIF ( 99, + CAST ( + 48 AS REAL ) - + - COALESCE ( - CASE - 1 WHEN + CAST ( + 93 AS REAL ) THEN NULL WHEN - 48 * 50 THEN NULL ELSE 70 END, 11, COALESCE ( 72, + 0 * + COUNT ( * ) ) ) + 16 * + 41 * - COUNT ( * ) ) )
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT ALL + NULLIF ( - COUNT( * ), - + 47 ) + 66 * - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL + NULLIF ( - COUNT ( * ), - + 47 ) + 66 * - COUNT ( * )
----
-67

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6045
SELECT DISTINCT - 36 - + 46 AS col1, - ( CASE - 56 WHEN 92 THEN 36 WHEN - - CAST( NULL AS SIGNED ) * - 37 + COUNT( * ) * + - 22 * 89 THEN - + 58 ELSE NULL END ) AS col0
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-6045
SELECT DISTINCT - 36 - + 46 AS col1, - ( CASE - 56 WHEN 92 THEN 36 WHEN - - CAST ( NULL AS INTEGER ) * - 37 + COUNT ( * ) * + - 22 * 89 THEN - + 58 ELSE NULL END ) AS col0
----
-82
NULL

query I rowsort
SELECT ALL + 77 - 54 AS col2
----
23

query I rowsort
SELECT ( - NULLIF ( - 17, - 98 ) ) AS col1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6048
SELECT ALL + 97 DIV COUNT( * ) AS col1, - 17 AS col2
----
97
-17

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

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

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

query I rowsort
SELECT - 54 + - 45 + + NULLIF ( - + NULLIF ( - 83, 13 ), + + 12 * + 84 + - + 83 ) AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6051
SELECT ALL COUNT( * ) - - - 36 + + 61 - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL COUNT ( * ) - - - 36 + + 61 - - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT COUNT( * ) * + 95 * 75
----
7125

skipif mysql # not compatible
query I rowsort label-6052
SELECT COUNT ( * ) * + 95 * 75
----
7125

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT COALESCE ( 27, 48 * + ( ( - + 52 ) ) + - - COALESCE ( - 10, COUNT( * ), + COUNT( + 93 ) * - - 72 * + 52 ) ) * - 32 col2
----
-864

skipif mysql # not compatible
query I rowsort label-6053
SELECT COALESCE ( 27, 48 * + ( ( - + 52 ) ) + - - COALESCE ( - 10, COUNT ( * ), + COUNT ( + 93 ) * - - 72 * + 52 ) ) * - 32 col2
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT + COUNT( * ) * + 43 + - ( + 39 ) + + + NULLIF ( - 62, + MIN( ALL + 50 ) * ( + NULLIF ( 36, 63 ) ) + - 36 + 73 + + 43 * - 85 )
----
-58

skipif mysql # not compatible
query I rowsort label-6054
SELECT + COUNT ( * ) * + 43 + - ( + 39 ) + + + NULLIF ( - 62, + MIN ( ALL + 50 ) * ( + NULLIF ( 36, 63 ) ) + - 36 + 73 + + 43 * - 85 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT ALL - ( - CASE - 91 WHEN AVG ( + 52 ) + + ( 26 ) + - 53 + + COUNT( * ) THEN - - 47 WHEN 64 THEN + 43 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL - ( - CASE - 91 WHEN AVG ( + 52 ) + + ( 26 ) + - 53 + + COUNT ( * ) THEN - - 47 WHEN 64 THEN + 43 END ) AS col2
----
NULL

query I rowsort
SELECT ALL + 77 * + 76 AS col0
----
5852

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6057
SELECT + 52 AS col2, NULLIF ( + CAST( NULL AS SIGNED ), 43 ) * + + 91
----
52
NULL

skipif mysql # not compatible
query II rowsort label-6057
SELECT + 52 AS col2, NULLIF ( + CAST ( NULL AS INTEGER ), 43 ) * + + 91
----
52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT CASE 1 WHEN - + COUNT( * ) THEN + COUNT( * ) WHEN + 13 + + 42 * + + 37 THEN NULL ELSE NULL END - + 42 + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6058
SELECT CASE 1 WHEN - + COUNT ( * ) THEN + COUNT ( * ) WHEN + 13 + + 42 * + + 37 THEN NULL ELSE NULL END - + 42 + - 8
----
NULL

query I rowsort
SELECT 62 + + 66 AS col1
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6060
SELECT - 43 * + ( - 51 ) + - 38 + + 31 * + 18 + + 69 / CASE 2 WHEN 75 THEN + 22 WHEN - + 87 + ( + + 13 ) + - - SUM( ALL - - 78 ) THEN NULL ELSE NULL END * 94 + - CAST( NULL AS SIGNED ) * 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT - 43 * + ( - 51 ) + - 38 + + 31 * + 18 + + 69 / CASE 2 WHEN 75 THEN + 22 WHEN - + 87 + ( + + 13 ) + - - SUM ( ALL - - 78 ) THEN NULL ELSE NULL END * 94 + - CAST ( NULL AS INTEGER ) * 80 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT DISTINCT 56 + + + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-6061
SELECT DISTINCT 56 + + + COUNT ( * )
----
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6062
SELECT ALL 91 + - CAST( NULL AS DECIMAL ) + + - 69 + + 49 / + - 40 * 40 * - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL 91 + - CAST ( NULL AS REAL ) + + - 69 + + 49 / + - 40 * 40 * - 72 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6063
SELECT DISTINCT 50 DIV 37 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT 50 / 37 AS col0
----
1

query I rowsort
SELECT 7 + + - 9
----
-2

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

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

query I rowsort
SELECT ( - - 27 ) * - - 20
----
540

query II rowsort
SELECT - 88 col1, 97 * - 35 AS col2
----
-88
-3395

onlyif mysql # DIV for integer division: 
query I rowsort label-6068
SELECT 91 + - - 66 DIV + 78
----
91

skipif mysql # not compatible
query I rowsort label-6068
SELECT 91 + - - 66 / + 78
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT + ( - - COUNT( * ) ) * - 34 * - 70
----
2380

skipif mysql # not compatible
query I rowsort label-6069
SELECT + ( - - COUNT ( * ) ) * - 34 * - 70
----
2380

query I rowsort
SELECT - 10 + + 51
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6071
SELECT DISTINCT 14 - - CASE ( COUNT( DISTINCT CAST( NULL AS SIGNED ) ) ) WHEN + 53 + + 0 THEN 36 WHEN 67 THEN + ( + 25 ) - - 16 + + 78 + ( 81 ) * + NULLIF ( COUNT( * ), - 84 / CAST( 52 AS SIGNED ) ) * CASE - 98 / COUNT( * ) WHEN + 63 * 55 THEN NULL WHEN - 68 THEN NULL ELSE 71 * 70 END ELSE + 37 END
----
51

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT 14 - - CASE ( COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) ) WHEN + 53 + + 0 THEN 36 WHEN 67 THEN + ( + 25 ) - - 16 + + 78 + ( 81 ) * + NULLIF ( COUNT ( * ), - 84 / CAST ( 52 AS INTEGER ) ) * CASE - 98 / COUNT ( * ) WHEN + 63 * 55 THEN NULL WHEN - 68 THEN NULL ELSE 71 * 70 END ELSE + 37 END
----
51

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

query I rowsort
SELECT ALL + 7 - + - 64
----
71

query I rowsort
SELECT - - 1 col2
----
1

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

skipif mysql # not compatible
query I rowsort label-6075
SELECT MAX ( + + 14 )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6076
SELECT ALL + 26 - + CASE MAX( ALL + 11 ) WHEN + 4 * - - 29 + - 63 THEN NULL WHEN - 0 * COUNT( * ) - - + 9 THEN AVG ( - 90 ) * - - CAST( + - COUNT( * ) AS SIGNED ) * + - COUNT( * ) + - 97 END * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL + 26 - + CASE MAX ( ALL + 11 ) WHEN + 4 * - - 29 + - 63 THEN NULL WHEN - 0 * COUNT ( * ) - - + 9 THEN AVG ( - 90 ) * - - CAST ( + - COUNT ( * ) AS INTEGER ) * + - COUNT ( * ) + - 97 END * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 50 - + 38
----
12

query II rowsort
SELECT 93 * - 67 - + 68 - - + 24 * 87 * - - 0 * + ( + 81 ) AS col0, ( - 67 )
----
-6299
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6079
SELECT 81 * CAST( - 99 AS SIGNED )
----
-8019

skipif mysql # not compatible
query I rowsort label-6079
SELECT 81 * CAST ( - 99 AS INTEGER )
----
-8019

query I rowsort
SELECT + 8 + 54 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT ALL - COUNT( DISTINCT - - 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL - COUNT ( DISTINCT - - 24 )
----
-1

query I rowsort
SELECT + CASE - + 78 WHEN - 99 THEN 60 WHEN - AVG ( - 41 ) * + - 82 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT + - NULLIF ( + 55, 17 ) * + + ( 46 ) + MAX( DISTINCT + 47 ) * 15 - + 59 * + + 0 AS col0
----
-1825

skipif mysql # not compatible
query I rowsort label-6083
SELECT + - NULLIF ( + 55, 17 ) * + + ( 46 ) + MAX ( DISTINCT + 47 ) * 15 - + 59 * + + 0 AS col0
----
-1825

onlyif mysql # DIV for integer division: 
query I rowsort label-6084
SELECT 73 DIV + + 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6084
SELECT 73 / + + 75 AS col1
----
0

query I rowsort
SELECT + 35 * + + 15
----
525

query I rowsort
SELECT ALL - + 86 * 83 + + - 27 AS col0
----
-7165

query II rowsort
SELECT + 14 col2, + 3
----
14
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6088
SELECT ( 19 ) DIV - 24 - - - 0 + + MAX( - - 60 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-6088
SELECT ( 19 ) / - 24 - - - 0 + + MAX ( - - 60 ) AS col1
----
60

query I rowsort
SELECT ALL - 30 * - 76
----
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT MIN( ALL - + 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-6090
SELECT MIN ( ALL - + 95 )
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-6091
SELECT 62 DIV 87 * - 16 * - ( + + 24 ) * - - 48 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-6091
SELECT 62 / 87 * - 16 * - ( + + 24 ) * - - 48 / - 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT MIN( ( - + 67 ) ) + 0
----
-67

skipif mysql # not compatible
query I rowsort label-6092
SELECT MIN ( ( - + 67 ) ) + 0
----
-67

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

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL + 1 + - 33 + + COUNT ( * ) AS col1
----
-31

query I rowsort
SELECT 72 * + 67 AS col2
----
4824

query II rowsort
SELECT 7 * + 56 AS col1, + 17 AS col0
----
392
17

query I rowsort
SELECT ALL + 1 + 81 + 15 AS col0
----
97

query I rowsort
SELECT 97 * + 37
----
3589

query I rowsort
SELECT ALL 97 + - 61
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6099
SELECT DISTINCT - 29 * - - COUNT( * ) DIV + - SUM( DISTINCT 52 )
----
0

skipif mysql # not compatible
query I rowsort label-6099
SELECT DISTINCT - 29 * - - COUNT ( * ) / + - SUM ( DISTINCT 52 )
----
0

query I rowsort
SELECT ALL 43 * - 76
----
-3268

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

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

query I rowsort
SELECT ALL ( + 94 ) - + 63
----
31

query I rowsort
SELECT - NULLIF ( - ( + - ( - + 89 ) ), 69 ) AS col0
----
89

query I rowsort
SELECT + 19 - + 78 * 81 + - 57 AS col1
----
-6356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6105
SELECT - CASE 89 WHEN + CASE + COUNT( * ) WHEN - COALESCE ( CAST( - + COUNT( * ) AS SIGNED ), - - 10 ) THEN NULL WHEN + - COALESCE ( - 55, - 11 - + 42 / - 15 ) THEN - 82 * - ( COUNT( * ) ) ELSE + 77 END + 57 + 9 THEN NULL WHEN 30 THEN 81 + - 7 WHEN + ( - 97 ) * 66 + + CAST( NULL AS SIGNED ) THEN + 38 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6105
SELECT - CASE 89 WHEN + CASE + COUNT ( * ) WHEN - COALESCE ( CAST ( - + COUNT ( * ) AS INTEGER ), - - 10 ) THEN NULL WHEN + - COALESCE ( - 55, - 11 - + 42 / - 15 ) THEN - 82 * - ( COUNT ( * ) ) ELSE + 77 END + 57 + 9 THEN NULL WHEN 30 THEN 81 + - 7 WHEN + ( - 97 ) * 66 + + CAST ( NULL AS INTEGER ) THEN + 38 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT + 47 + - COUNT( - 28 ) + - 99 + - 42 * + + COUNT( * ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-6107
SELECT + 47 + - COUNT ( - 28 ) + - 99 + - 42 * + + COUNT ( * ) AS col0
----
-95

query I rowsort
SELECT ALL 86 * - 9 * 68
----
-52632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6109
SELECT DISTINCT + 19 DIV + 21 + + - COALESCE ( NULLIF ( - 42, - 91 * - + 55 + - - COUNT( + 29 ) - - SUM( - 76 ) + + + COUNT( - COALESCE ( + 10, - 4 ) ) * + 54 ), - CAST( 12 AS SIGNED ) )
----
42

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT + 19 / + 21 + + - COALESCE ( NULLIF ( - 42, - 91 * - + 55 + - - COUNT ( + 29 ) - - SUM ( - 76 ) + + + COUNT ( - COALESCE ( + 10, - 4 ) ) * + 54 ), - CAST ( 12 AS INTEGER ) )
----
42

query I rowsort
SELECT + - 50 * 22 col2
----
-1100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6111
SELECT ALL COUNT( * ) * + CASE + - 21 WHEN - - 57 THEN + - 57 * - 22 + 9 + - 92 + 66 / 65 * - 1 + + COUNT( * ) WHEN 65 * + 12 / AVG ( DISTINCT + 59 ) * + - 81 + + 99 THEN NULL END * AVG ( - 21 ) + - 19 * MIN( + ( CAST( 96 AS SIGNED ) ) ) + + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL COUNT ( * ) * + CASE + - 21 WHEN - - 57 THEN + - 57 * - 22 + 9 + - 92 + 66 / 65 * - 1 + + COUNT ( * ) WHEN 65 * + 12 / AVG ( DISTINCT + 59 ) * + - 81 + + 99 THEN NULL END * AVG ( - 21 ) + - 19 * MIN ( + ( CAST ( 96 AS INTEGER ) ) ) + + 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT + + CASE - + 49 WHEN 79 / + + 20 - + + 79 THEN 83 ELSE 78 + - 83 END - COUNT( * ) * 61 * - 27
----
1642

skipif mysql # not compatible
query I rowsort label-6112
SELECT + + CASE - + 49 WHEN 79 / + + 20 - + + 79 THEN 83 ELSE 78 + - 83 END - COUNT ( * ) * 61 * - 27
----
1642

query II rowsort
SELECT + + 64 * - 16, - 52 * + - 78 AS col0
----
-1024
4056

query II rowsort
SELECT + 27 + + 57, - 61 * - 9 AS col2
----
84
549

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT - - 0 - + - MIN( + - 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-6115
SELECT - - 0 - + - MIN ( + - 29 ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT ALL - MIN( ALL 65 ) * - + 77
----
5005

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL - MIN ( ALL 65 ) * - + 77
----
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT + - MIN( - 93 ) * 10
----
930

skipif mysql # not compatible
query I rowsort label-6117
SELECT + - MIN ( - 93 ) * 10
----
930

query I rowsort
SELECT + 72 * 93
----
6696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6119
SELECT - SUM( DISTINCT + 71 ) + CASE + COUNT( - 65 ) WHEN - - 55 THEN + 20 * CASE + AVG ( + 65 ) WHEN + + 80 THEN NULL ELSE - + CAST( + 54 AS SIGNED ) / + CAST( NULL AS DECIMAL ) END / - 18 - - 76 + - + COUNT( * ) WHEN ( + ( - CAST( ( + ( - CASE + CASE 35 WHEN - 53 THEN - 78 / 64 + + 49 * 14 ELSE NULL END WHEN - CASE + COUNT( * ) WHEN 16 + - 17 THEN NULL ELSE 85 END * + CAST( NULL AS SIGNED ) THEN - 76 ELSE NULL END ) ) AS SIGNED ) ) ) * + 58 THEN - NULLIF ( 41, 60 ) END + AVG ( DISTINCT 91 ) * 70 * + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6119
SELECT - SUM ( DISTINCT + 71 ) + CASE + COUNT ( - 65 ) WHEN - - 55 THEN + 20 * CASE + AVG ( + 65 ) WHEN + + 80 THEN NULL ELSE - + CAST ( + 54 AS INTEGER ) / + CAST ( NULL AS REAL ) END / - 18 - - 76 + - + COUNT ( * ) WHEN ( + ( - CAST ( ( + ( - CASE + CASE 35 WHEN - 53 THEN - 78 / 64 + + 49 * 14 ELSE NULL END WHEN - CASE + COUNT ( * ) WHEN 16 + - 17 THEN NULL ELSE 85 END * + CAST ( NULL AS INTEGER ) THEN - 76 ELSE NULL END ) ) AS INTEGER ) ) ) * + 58 THEN - NULLIF ( 41, 60 ) END + AVG ( DISTINCT 91 ) * 70 * + 15 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - ( + - 63 )
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-6121
SELECT + 59 DIV + + 51 + + 25 + 8 * - + 3 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6121
SELECT + 59 / + + 51 + + 25 + 8 * - + 3 AS col0
----
2

query I rowsort
SELECT DISTINCT + 79 * + - 90 + + 48
----
-7062

query I rowsort
SELECT + ( + 21 ) + - - 57
----
78

query I rowsort
SELECT - 4 + - 55
----
-59

query I rowsort
SELECT ALL - 15 * + 2 AS col2
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-6126
SELECT - 21 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-6126
SELECT - 21 / 79
----
0

query I rowsort
SELECT ALL 41 * - 11 + - + 36 AS col2
----
-487

query I rowsort
SELECT DISTINCT + 97 * + - 65
----
-6305

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT + 72 * + COUNT( * ) * + 37 + - 77 + 30 + - 1 * 18 AS col0
----
2599

skipif mysql # not compatible
query I rowsort label-6129
SELECT + 72 * + COUNT ( * ) * + 37 + - 77 + 30 + - 1 * 18 AS col0
----
2599

query I rowsort
SELECT - 55 + - CASE + + ( - NULLIF ( 47, - 5 * 47 ) ) WHEN - 38 THEN + 84 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT ALL + ( - + CASE + + 69 WHEN + - COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN + + 29 ELSE 19 + COALESCE ( + 42, + 9, + SUM( DISTINCT + 86 ) * 51 * + 76 + 8 * - + 49 * + + 17 * + 52 ) END ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL + ( - + CASE + + 69 WHEN + - COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN + + 29 ELSE 19 + COALESCE ( + 42, + 9, + SUM ( DISTINCT + 86 ) * 51 * + 76 + 8 * - + 49 * + + 17 * + 52 ) END ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT 43 * - - COUNT( * ) + 84
----
127

skipif mysql # not compatible
query I rowsort label-6132
SELECT 43 * - - COUNT ( * ) + 84
----
127

query I rowsort
SELECT NULLIF ( + 3, 29 + - 72 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT COALESCE ( + ( - 48 ), COUNT( * ) )
----
-48

skipif mysql # not compatible
query I rowsort label-6134
SELECT COALESCE ( + ( - 48 ), COUNT ( * ) )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6135
SELECT + COUNT( * ) + - AVG ( ALL - 26 ) / - ( - 16 ) + + - ( + CAST( NULL AS SIGNED ) ) + - 74 + NULLIF ( + 16, 3 + 51 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6135
SELECT + COUNT ( * ) + - AVG ( ALL - 26 ) / - ( - 16 ) + + - ( + CAST ( NULL AS INTEGER ) ) + - 74 + NULLIF ( + 16, 3 + 51 ) col1
----
NULL

query I rowsort
SELECT - 19 + - 75 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT + CASE SUM( DISTINCT + - 20 ) WHEN 11 + 18 THEN + 12 ELSE + - 45 END AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-6137
SELECT + CASE SUM ( DISTINCT + - 20 ) WHEN 11 + 18 THEN + 12 ELSE + - 45 END AS col1
----
-45

query I rowsort
SELECT - 96 + - 28 AS col0
----
-124

query I rowsort
SELECT ALL - 46 * - 13 - + - 66
----
664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6140
SELECT - 16 * - - 28 + ( + CASE - - 6 WHEN - NULLIF ( + - COUNT( * ), 32 * - - NULLIF ( 76, + - COUNT( * ) ) ) THEN + + 1 WHEN NULLIF ( + 9, 90 + 58 + + 6 + + - 55 + - 99 / - 33 * CAST( NULL AS SIGNED ) ) THEN 51 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6140
SELECT - 16 * - - 28 + ( + CASE - - 6 WHEN - NULLIF ( + - COUNT ( * ), 32 * - - NULLIF ( 76, + - COUNT ( * ) ) ) THEN + + 1 WHEN NULLIF ( + 9, 90 + 58 + + 6 + + - 55 + - 99 / - 33 * CAST ( NULL AS INTEGER ) ) THEN 51 END )
----
NULL

query II rowsort
SELECT ALL - 95 col1, 6
----
-95
6

query I rowsort
SELECT ALL 75 * 91 AS col2
----
6825

query I rowsort
SELECT ALL - 90 * 16
----
-1440

query I rowsort
SELECT DISTINCT 32 * + 26 AS col1
----
832

onlyif mysql # DIV for integer division: 
query I rowsort label-6145
SELECT - ( + - 73 ) DIV - 71 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6145
SELECT - ( + - 73 ) / - 71 AS col0
----
-1

query I rowsort
SELECT + 90 * - 73
----
-6570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6147
SELECT DISTINCT CASE + - COUNT( 17 ) WHEN - - 23 THEN NULL WHEN - COALESCE ( + 24, + 52 ) THEN + CAST( NULL AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT CASE + - COUNT ( 17 ) WHEN - - 23 THEN NULL WHEN - COALESCE ( + 24, + 52 ) THEN + CAST ( NULL AS INTEGER ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6148
SELECT DISTINCT - 47 + + 68 + - 24 - + ( 83 ) + + + 77 DIV + COUNT( * ) + + + 59 DIV - 96 + - + 54
----
-63

skipif mysql # not compatible
query I rowsort label-6148
SELECT DISTINCT - 47 + + 68 + - 24 - + ( 83 ) + + + 77 / + COUNT ( * ) + + + 59 / - 96 + - + 54
----
-63

query I rowsort
SELECT + + 77 * 56
----
4312

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

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

query I rowsort
SELECT + + 33 - 30 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT - - 53 * - ( + + 50 ) * + 38 + + ( MIN( DISTINCT + - ( 46 ) ) ) AS col2
----
-100746

skipif mysql # not compatible
query I rowsort label-6152
SELECT - - 53 * - ( + + 50 ) * + 38 + + ( MIN ( DISTINCT + - ( 46 ) ) ) AS col2
----
-100746

query I rowsort
SELECT DISTINCT 69 * + 82 AS col0
----
5658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6154
SELECT ALL 38 DIV - + COALESCE ( + + 68, ( + + COUNT( * ) ) ) + - COUNT( - + CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL 38 / - + COALESCE ( + + 68, ( + + COUNT ( * ) ) ) + - COUNT ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT ALL 98 * - 19
----
-1862

query I rowsort
SELECT + COALESCE ( CASE 97 WHEN + 99 - 59 + - 69 THEN 37 END, 15 * 83 ) * - 59 * + 28
----
-2056740

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6157
SELECT ( + + 77 ) * ( - - 72 ) - - COUNT( ALL 0 ) + - 61 AS col2, 47 DIV - CASE 40 WHEN + 76 THEN NULL ELSE - ( + - 88 ) + + ( - ( - ( 53 ) ) ) END AS col1
----
5484
0

skipif mysql # not compatible
query II rowsort label-6157
SELECT ( + + 77 ) * ( - - 72 ) - - COUNT ( ALL 0 ) + - 61 AS col2, 47 / - CASE 40 WHEN + 76 THEN NULL ELSE - ( + - 88 ) + + ( - ( - ( 53 ) ) ) END AS col1
----
5484
0

query II rowsort
SELECT ALL - 26 AS col1, - 6
----
-26
-6

query I rowsort
SELECT DISTINCT 33 * 37
----
1221

query I rowsort
SELECT ALL 92 + + ( - ( + 65 ) ) * 36
----
-2248

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT ALL - MIN( DISTINCT + - 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL - MIN ( DISTINCT + - 88 ) AS col2
----
88

query II rowsort
SELECT 79, - 14 AS col1
----
79
-14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT DISTINCT + SUM( - 57 ) * + 4 + + 70
----
-158

skipif mysql # not compatible
query I rowsort label-6164
SELECT DISTINCT + SUM ( - 57 ) * + 4 + + 70
----
-158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6165
SELECT ALL COUNT( - 57 ) DIV - 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL COUNT ( - 57 ) / - 40 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6166
SELECT 8 AS col0, 64 + - 33 + + CAST( NULL AS SIGNED ) - - + 68 AS col1
----
8
NULL

skipif mysql # not compatible
query II rowsort label-6166
SELECT 8 AS col0, 64 + - 33 + + CAST ( NULL AS INTEGER ) - - + 68 AS col1
----
8
NULL

query I rowsort
SELECT DISTINCT + 39 * - 20
----
-780

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

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

query I rowsort
SELECT 41 * 1
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-6170
SELECT DISTINCT - - 3 AS col1, NULLIF ( - + SUM( + - 59 ), + 16 ) * - COUNT( * ) + 35 - + 25 * SUM( DISTINCT 36 ) col2
----
3
-924

skipif mysql # not compatible
query II rowsort label-6170
SELECT DISTINCT - - 3 AS col1, NULLIF ( - + SUM ( + - 59 ), + 16 ) * - COUNT ( * ) + 35 - + 25 * SUM ( DISTINCT 36 ) col2
----
3
-924

query I rowsort
SELECT ( - 89 ) + 46 + + ( - 26 ) * 54 - + - 58
----
-1389

query I rowsort
SELECT - 95 + + - 33 * - 45 + - + ( + CASE + 69 WHEN - 24 THEN + 14 ELSE - + 68 * + + 73 END )
----
6354

query I rowsort
SELECT 45 * + - ( - 48 ) AS col1
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT ALL + - MIN( ALL + 67 ) + + 63 * - + COUNT( * ) - 60
----
-190

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL + - MIN ( ALL + 67 ) + + 63 * - + COUNT ( * ) - 60
----
-190

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT ALL - COUNT( * ) + - ( - - 72 )
----
-73

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL - COUNT ( * ) + - ( - - 72 )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6177
SELECT + 32 - - - 44 + 24 / + CAST( NULL AS SIGNED ), 85 + 25 AS col2
----
NULL
110

skipif mysql # not compatible
query II rowsort label-6177
SELECT + 32 - - - 44 + 24 / + CAST ( NULL AS INTEGER ), 85 + 25 AS col2
----
NULL
110

query I rowsort
SELECT ALL + COALESCE ( + 20, + 60 )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-6179
SELECT - MIN( 36 ), - 22 * + ( + 10 ) AS col0
----
-36
-220

skipif mysql # not compatible
query II rowsort label-6179
SELECT - MIN ( 36 ), - 22 * + ( + 10 ) AS col0
----
-36
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT DISTINCT - + 63 + NULLIF ( 29, - COUNT( * ) )
----
-34

skipif mysql # not compatible
query I rowsort label-6180
SELECT DISTINCT - + 63 + NULLIF ( 29, - COUNT ( * ) )
----
-34

query I rowsort
SELECT ALL + 18 + - + 6 AS col2
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT COUNT( * ) + - 92 + - 30 + 4 * 98 + 11 AS col1
----
282

skipif mysql # not compatible
query I rowsort label-6183
SELECT COUNT ( * ) + - 92 + - 30 + 4 * 98 + 11 AS col1
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT ALL - + 13 + COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL - + 13 + COUNT ( * ) AS col2
----
-12

query I rowsort
SELECT DISTINCT + + 50 + - 55
----
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT - MIN( + - 88 ) - 64 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6187
SELECT - MIN ( + - 88 ) - 64 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT ALL + 51 * ( 14 ) * - - COUNT( * ) AS col2
----
714

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL + 51 * ( 14 ) * - - COUNT ( * ) AS col2
----
714

query II rowsort
SELECT - 55 AS col2, 13 col1
----
-55
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6190
SELECT COUNT( * ) DIV - - COUNT( * ) AS col0, SUM( + + 53 ) + - 33 + 83 + + 5 + 49 * - + 70 AS col1
----
1
-3322

skipif mysql # not compatible
query II rowsort label-6190
SELECT COUNT ( * ) / - - COUNT ( * ) AS col0, SUM ( + + 53 ) + - 33 + 83 + + 5 + 49 * - + 70 AS col1
----
1
-3322

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT - COUNT( + 98 ) - - 83 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-6191
SELECT - COUNT ( + 98 ) - - 83 AS col1
----
82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT - COUNT( * ) * - 54 col2
----
54

skipif mysql # not compatible
query I rowsort label-6193
SELECT - COUNT ( * ) * - 54 col2
----
54

query I rowsort
SELECT ALL + 15 * + 29
----
435

query I rowsort
SELECT ALL 51 - 55 * - 75 AS col2
----
4176

query I rowsort
SELECT ALL 74 * ( - 87 )
----
-6438

onlyif mysql # DIV for integer division: 
query I rowsort label-6197
SELECT DISTINCT 86 DIV - - 79
----
1

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT 86 / - - 79
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6198
SELECT 90 DIV 80 * + 52
----
52

skipif mysql # not compatible
query I rowsort label-6198
SELECT 90 / 80 * + 52
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT ALL 21 * - - 87 * + - MAX( 56 ) * 52 AS col0
----
-5320224

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL 21 * - - 87 * + - MAX ( 56 ) * 52 AS col0
----
-5320224

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6200
SELECT 97 + COUNT( CAST( - 79 AS DECIMAL ) )
----
98

skipif mysql # not compatible
query I rowsort label-6200
SELECT 97 + COUNT ( CAST ( - 79 AS REAL ) )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6201
SELECT ( 78 ) + - 14 + + 25 DIV 58 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-6201
SELECT ( 78 ) + - 14 + + 25 / 58 AS col2
----
64

query I rowsort
SELECT ALL COALESCE ( - 94, + 27 + - - 53 ) * + 79 AS col0
----
-7426

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT DISTINCT COUNT( * ) * - - 85 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-6203
SELECT DISTINCT COUNT ( * ) * - - 85 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT ( + SUM( DISTINCT + 39 ) ) + - 35 * 95
----
-3286

skipif mysql # not compatible
query I rowsort label-6204
SELECT ( + SUM ( DISTINCT + 39 ) ) + - 35 * 95
----
-3286

query I rowsort
SELECT ALL CASE - + 53 WHEN 72 * + - 2 * - ( - 4 ) THEN 9 + - CASE - + 79 WHEN 36 THEN 9 / - COALESCE ( + 35, + 46 + - 96 ) ELSE NULL END + + 16 * + 37 + + - 92 + + - 39 + 37 ELSE NULL END * + + 88
----
NULL

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

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

query I rowsort
SELECT 51 * - 6 * - 2 AS col1
----
612

query I rowsort
SELECT - 36 + - + 80 AS col1
----
-116

query I rowsort
SELECT DISTINCT + 40 + + - 93 col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT + 63 + - + MAX( 13 )
----
50

skipif mysql # not compatible
query I rowsort label-6210
SELECT + 63 + - + MAX ( 13 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT ALL - 7 + + 17 * + - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL - 7 + + 17 * + - COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT ALL + 38 + + 88 * - COALESCE ( COUNT( * ), + ( - 71 ) * + + 89, 28 )
----
-50

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL + 38 + + 88 * - COALESCE ( COUNT ( * ), + ( - 71 ) * + + 89, 28 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT ALL - ( - + 78 ) + + COUNT( 90 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL - ( - + 78 ) + + COUNT ( 90 ) AS col0
----
79

query I rowsort
SELECT ALL + ( - 83 ) + - 24 * 47
----
-1211

onlyif mysql # DIV for integer division: 
query I rowsort label-6215
SELECT - 96 DIV + 1 - - 65
----
-31

skipif mysql # not compatible
query I rowsort label-6215
SELECT - 96 / + 1 - - 65
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT SUM( DISTINCT 41 ) + - 31 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6216
SELECT SUM ( DISTINCT 41 ) + - 31 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT - 9 * + 83 - + COUNT( DISTINCT 82 )
----
-748

skipif mysql # not compatible
query I rowsort label-6217
SELECT - 9 * + 83 - + COUNT ( DISTINCT 82 )
----
-748

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT - 79 + - 10 + + - COUNT( * ) + - 17 + - + 53 + + + 65 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-6218
SELECT - 79 + - 10 + + - COUNT ( * ) + - 17 + - + 53 + + + 65 AS col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6219
SELECT - CASE - 86 WHEN - 96 + 1 + - + 34 + - 31 THEN NULL WHEN 1 * + COUNT( * ) * 97 THEN COALESCE ( - 68, + 79, - CASE ( - 33 ) WHEN - SUM( + 22 ) + CAST( + - COUNT( * ) AS SIGNED ) THEN AVG ( + - 15 ) + - COUNT( * ) + - 65 END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6219
SELECT - CASE - 86 WHEN - 96 + 1 + - + 34 + - 31 THEN NULL WHEN 1 * + COUNT ( * ) * 97 THEN COALESCE ( - 68, + 79, - CASE ( - 33 ) WHEN - SUM ( + 22 ) + CAST ( + - COUNT ( * ) AS INTEGER ) THEN AVG ( + - 15 ) + - COUNT ( * ) + - 65 END ) END
----
NULL

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

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

query II rowsort
SELECT ALL - ( - 58 ) - - 49 AS col0, 42 AS col2
----
107
42

query II rowsort
SELECT 42 * 8, 45 AS col1
----
336
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6223
SELECT DISTINCT - - 43 - - + 18, SUM( DISTINCT 30 ) DIV 66 + + COUNT( * ) AS col2
----
61
1

skipif mysql # not compatible
query II rowsort label-6223
SELECT DISTINCT - - 43 - - + 18, SUM ( DISTINCT 30 ) / 66 + + COUNT ( * ) AS col2
----
61
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6224
SELECT ALL + + COUNT( + 96 ) * - MIN( + - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL + + COUNT ( + 96 ) * - MIN ( + - CAST ( NULL AS REAL ) ) AS col2
----
NULL

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

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

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

query I rowsort
SELECT ALL 33 - + 76 AS col2
----
-43

query I rowsort
SELECT - 39 * + 23
----
-897

query II rowsort
SELECT 17, - 95 AS col0
----
17
-95

query I rowsort
SELECT + 56 + 98 + + + 60 AS col1
----
214

onlyif mysql # aggregate syntax: 
query II rowsort label-6231
SELECT ALL + 80 col1, ( + ( - - COUNT( ALL 82 ) ) ) AS col1
----
80
1

skipif mysql # not compatible
query II rowsort label-6231
SELECT ALL + 80 col1, ( + ( - - COUNT ( ALL 82 ) ) ) AS col1
----
80
1

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

skipif mysql # not compatible
query I rowsort label-6232
SELECT COALESCE ( COUNT ( * ), + 95 * + 2 )
----
1

query II rowsort
SELECT DISTINCT + 54, + 16 * 11 * + 21 AS col2
----
54
3696

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

query I rowsort
SELECT + 73 * - + 18 * - 41
----
53874

query II rowsort
SELECT DISTINCT + 73 AS col2, + 91
----
73
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT + CASE + NULLIF ( + CASE - ( + ( + 72 ) ) WHEN + 29 THEN 72 / 20 + - 69 - + 67 * + MAX( DISTINCT + + 7 ) + 74 * + 31 * - 44 END, 51 ) WHEN - ( + 7 ) * + 52 + SUM( - 75 ) + - ( ( - 38 ) ) + + 63 THEN 88 / 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6237
SELECT + CASE + NULLIF ( + CASE - ( + ( + 72 ) ) WHEN + 29 THEN 72 / 20 + - 69 - + 67 * + MAX ( DISTINCT + + 7 ) + 74 * + 31 * - 44 END, 51 ) WHEN - ( + 7 ) * + 52 + SUM ( - 75 ) + - ( ( - 38 ) ) + + 63 THEN 88 / 51 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6238
SELECT + 25 DIV - ( - + 76 ) AS col0, CAST( NULL AS SIGNED ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6238
SELECT + 25 / - ( - + 76 ) AS col0, CAST ( NULL AS INTEGER ) AS col0
----
0
NULL

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

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL COUNT ( * ) / COUNT ( * ) * - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT + 43 * + 85 AS col0
----
3655

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT ALL 0 * - 68 + - - 66 * + NULLIF ( - - COUNT( * ), 45 ) + - COUNT( * ) * - 90
----
156

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL 0 * - 68 + - - 66 * + NULLIF ( - - COUNT ( * ), 45 ) + - COUNT ( * ) * - 90
----
156

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6242
SELECT + + 42 DIV CAST( 4 AS SIGNED ) + - 27 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-6242
SELECT + + 42 / CAST ( 4 AS INTEGER ) + - 27 AS col2
----
-17

query I rowsort
SELECT + 87 * 90
----
7830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6244
SELECT ALL - CASE 59 WHEN CAST( NULL AS SIGNED ) THEN - 35 * COALESCE ( + 94, - + 27 + COALESCE ( 94, - - CASE COALESCE ( - 87, + COUNT( * ) ) WHEN + 45 * - NULLIF ( + 20, - 69 + + 64 + 76 + - 81 / - - 84 * + - 68 * + 7 + ( CAST( 88 AS SIGNED ) ) ) * - 63 THEN NULL WHEN - 57 THEN 82 / + ( 22 * + 91 ) ELSE NULL END ), + 18 / 49 ) WHEN - 36 THEN + ( - CASE + 14 WHEN 22 + + 8 THEN NULL WHEN 76 THEN 0 WHEN COUNT( * ) THEN NULL WHEN + COUNT( - 18 ) THEN 15 + ( + NULLIF ( NULLIF ( + 56, - 68 ), COALESCE ( + ( - MIN( + 2 ) ), + 13 ) ) ) ELSE 86 + - AVG ( DISTINCT + 30 ) END ) END * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL - CASE 59 WHEN CAST ( NULL AS INTEGER ) THEN - 35 * COALESCE ( + 94, - + 27 + COALESCE ( 94, - - CASE COALESCE ( - 87, + COUNT ( * ) ) WHEN + 45 * - NULLIF ( + 20, - 69 + + 64 + 76 + - 81 / - - 84 * + - 68 * + 7 + ( CAST ( 88 AS INTEGER ) ) ) * - 63 THEN NULL WHEN - 57 THEN 82 / + ( 22 * + 91 ) ELSE NULL END ), + 18 / 49 ) WHEN - 36 THEN + ( - CASE + 14 WHEN 22 + + 8 THEN NULL WHEN 76 THEN 0 WHEN COUNT ( * ) THEN NULL WHEN + COUNT ( - 18 ) THEN 15 + ( + NULLIF ( NULLIF ( + 56, - 68 ), COALESCE ( + ( - MIN ( + 2 ) ), + 13 ) ) ) ELSE 86 + - AVG ( DISTINCT + 30 ) END ) END * 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT DISTINCT - - COUNT( + - 50 ) * + - NULLIF ( + - 40, - ( 52 ) ) + + 47 + + 27 * 70 * + - 64 AS col1
----
-120873

skipif mysql # not compatible
query I rowsort label-6245
SELECT DISTINCT - - COUNT ( + - 50 ) * + - NULLIF ( + - 40, - ( 52 ) ) + + 47 + + 27 * 70 * + - 64 AS col1
----
-120873

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT ALL + + 20 * - - 0 + - 64 + - + MIN( - 71 ) * - 88 AS col2
----
-6312

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL + + 20 * - - 0 + - 64 + - + MIN ( - 71 ) * - 88 AS col2
----
-6312

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT DISTINCT - 91 * + COUNT( * ) + - - 10
----
-81

skipif mysql # not compatible
query I rowsort label-6247
SELECT DISTINCT - 91 * + COUNT ( * ) + - - 10
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT DISTINCT - ( 21 ) * - + MIN( - 90 ) AS col2
----
-1890

skipif mysql # not compatible
query I rowsort label-6248
SELECT DISTINCT - ( 21 ) * - + MIN ( - 90 ) AS col2
----
-1890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6249
SELECT ALL ( + + 45 ) * - 66 + + + CAST( MAX( + + 35 ) AS SIGNED ) + + CAST( NULL AS SIGNED ) + + NULLIF ( - 52, - + 42 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL ( + + 45 ) * - 66 + + + CAST ( MAX ( + + 35 ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) + + NULLIF ( - 52, - + 42 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6250
SELECT + COUNT( * ) * - 38 - 32, 21 DIV 58 + + 7 AS col0
----
-70
7

skipif mysql # not compatible
query II rowsort label-6250
SELECT + COUNT ( * ) * - 38 - 32, 21 / 58 + + 7 AS col0
----
-70
7

onlyif mysql # aggregate syntax: 
query II rowsort label-6251
SELECT ALL + - 10, - COUNT( * ) * 41 AS col0
----
-10
-41

skipif mysql # not compatible
query II rowsort label-6251
SELECT ALL + - 10, - COUNT ( * ) * 41 AS col0
----
-10
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6252
SELECT + - ( COUNT( * ) ) + NULLIF ( - COUNT( * ), 96 + + CAST( + - 62 AS SIGNED ) ) + 90 DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-6252
SELECT + - ( COUNT ( * ) ) + NULLIF ( - COUNT ( * ), 96 + + CAST ( + - 62 AS INTEGER ) ) + 90 / 43
----
0

query I rowsort
SELECT - NULLIF ( 38, 81 ) AS col2
----
-38

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

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

query I rowsort
SELECT ALL - 35 - - - 96 + - 50 AS col1
----
-181

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

skipif mysql # not compatible
query I rowsort label-6256
SELECT + - 29 * + COUNT ( * ) * + 52 * + 0 / + + 55 + 43
----
43

query I rowsort
SELECT + - 71 + - 10 - + + 65
----
-146

query I rowsort
SELECT + 37 * + + 86 - - 10 - + 92 col2
----
3100

onlyif mysql # DIV for integer division: 
query I rowsort label-6259
SELECT DISTINCT + ( + 66 ) DIV - 53 + - 2 * - 74
----
147

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT + ( + 66 ) / - 53 + - 2 * - 74
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-6260
SELECT ALL 99 - + - 41 + 10, SUM( ALL + + 42 ) AS col1
----
150
42

skipif mysql # not compatible
query II rowsort label-6260
SELECT ALL 99 - + - 41 + 10, SUM ( ALL + + 42 ) AS col1
----
150
42

query I rowsort
SELECT - 43 + - 14 - - 79 + + 55 AS col1
----
77

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

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL MIN ( ALL ( - - 14 ) )
----
14

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT DISTINCT COALESCE ( - SUM( DISTINCT - - 98 ), + + COALESCE ( 48, + 51, + 77, + 14 ), - - 65 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-6265
SELECT DISTINCT COALESCE ( - SUM ( DISTINCT - - 98 ), + + COALESCE ( 48, + 51, + 77, + 14 ), - - 65 ) AS col1
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT ALL + ( + + 90 ) DIV 81 DIV + ( + + NULLIF ( - - 54, 8 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6266
SELECT ALL + ( + + 90 ) / 81 / + ( + + NULLIF ( - - 54, 8 ) )
----
0

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

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

query I rowsort
SELECT - 9 * - 11 AS col0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6269
SELECT DISTINCT + 7 DIV - ( - SUM( DISTINCT - - 25 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT + 7 / - ( - SUM ( DISTINCT - - 25 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT DISTINCT MIN( + NULLIF ( 25, + - 29 - 15 - - + 1 * - + 79 ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT MIN ( + NULLIF ( 25, + - 29 - 15 - - + 1 * - + 79 ) ) AS col2
----
25

query I rowsort
SELECT DISTINCT - 35 + - + 49
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6272
SELECT DISTINCT CAST( - + 35 AS SIGNED ) AS col1, + 9 * 10
----
-35
90

skipif mysql # not compatible
query II rowsort label-6272
SELECT DISTINCT CAST ( - + 35 AS INTEGER ) AS col1, + 9 * 10
----
-35
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6273
SELECT DISTINCT + CASE - 83 WHEN + 28 * + 92 THEN NULL WHEN + CAST( NULL AS DECIMAL ) THEN NULL ELSE 76 + 31 + + 31 END AS col1
----
138

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT + CASE - 83 WHEN + 28 * + 92 THEN NULL WHEN + CAST ( NULL AS REAL ) THEN NULL ELSE 76 + 31 + + 31 END AS col1
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6274
SELECT ALL + SUM( ALL - 29 ) DIV - 17 + COUNT( * ) - + + 7
----
-5

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL + SUM ( ALL - 29 ) / - 17 + COUNT ( * ) - + + 7
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6275
SELECT - 80 / CAST( NULL AS DECIMAL ) + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6275
SELECT - 80 / CAST ( NULL AS REAL ) + + 88
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6276
SELECT DISTINCT - 54 DIV - 74 + 37 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT - 54 / - 74 + 37 AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6277
SELECT CAST( NULLIF ( + - 5, CASE + + COUNT( * ) WHEN + ( + + COUNT( * ) ) + - 56 * 55 * - 60 THEN 22 WHEN + 66 * - 69 * - COUNT( * ) THEN NULL WHEN + + 55 * 99 - 79 THEN - 39 + + 21 ELSE - 63 * + 44 + 53 END * + 35 - 63 * 50 ) AS SIGNED ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-6277
SELECT CAST ( NULLIF ( + - 5, CASE + + COUNT ( * ) WHEN + ( + + COUNT ( * ) ) + - 56 * 55 * - 60 THEN 22 WHEN + 66 * - 69 * - COUNT ( * ) THEN NULL WHEN + + 55 * 99 - 79 THEN - 39 + + 21 ELSE - 63 * + 44 + 53 END * + 35 - 63 * 50 ) AS INTEGER ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6278
SELECT DISTINCT + CASE 65 WHEN - 71 THEN COUNT( * ) WHEN 9 * + + 30 * - + AVG ( ALL + + 57 ) + + 36 THEN AVG ( 64 ) * - 15 + - + 25 - - 51 / ( - + COUNT( * ) ) - + 64 ELSE NULL END AS col2, 88 col2
----
NULL
88

skipif mysql # not compatible
query II rowsort label-6278
SELECT DISTINCT + CASE 65 WHEN - 71 THEN COUNT ( * ) WHEN 9 * + + 30 * - + AVG ( ALL + + 57 ) + + 36 THEN AVG ( 64 ) * - 15 + - + 25 - - 51 / ( - + COUNT ( * ) ) - + 64 ELSE NULL END AS col2, 88 col2
----
NULL
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6279
SELECT ALL - CAST( - + 81 AS SIGNED ) DIV ( + MIN( + - 18 ) ) * - 40 + + 38 AS col0
----
198

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL - CAST ( - + 81 AS INTEGER ) / ( + MIN ( + - 18 ) ) * - 40 + + 38 AS col0
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6280
SELECT 85 * - 82 * - 99 + + 21 + - CAST( NULL AS SIGNED ) + + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6280
SELECT 85 * - 82 * - 99 + + 21 + - CAST ( NULL AS INTEGER ) + + 70 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6281
SELECT - - 25 DIV + COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-6281
SELECT - - 25 / + COUNT ( * ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT + + 19 + SUM( ALL + 11 )
----
30

skipif mysql # not compatible
query I rowsort label-6282
SELECT + + 19 + SUM ( ALL + 11 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT + SUM( - 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-6283
SELECT + SUM ( - 35 ) AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6284
SELECT ALL + COALESCE ( - + 87, + - CAST( NULL AS SIGNED ), COALESCE ( - COUNT( * ), - 33, + - MIN( DISTINCT 28 ) ) )
----
-87

skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL + COALESCE ( - + 87, + - CAST ( NULL AS INTEGER ), COALESCE ( - COUNT ( * ), - 33, + - MIN ( DISTINCT 28 ) ) )
----
-87

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

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

query I rowsort
SELECT 44 * - + 56 + - - 84 * - - ( + - 56 )
----
-7168

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT + ( - CASE 23 WHEN + 67 THEN NULL WHEN + COUNT( + 2 ) THEN ( + + COUNT( * ) ) END ) * + 46 + + - ( + - 78 ) + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-6287
SELECT + ( - CASE 23 WHEN + 67 THEN NULL WHEN + COUNT ( + 2 ) THEN ( + + COUNT ( * ) ) END ) * + 46 + + - ( + - 78 ) + + 32
----
NULL

query II rowsort
SELECT + 61 + 4, - 89 AS col1
----
65
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT DISTINCT + 37 - - 26 * COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT + 37 - - 26 * COUNT ( * )
----
63

query I rowsort
SELECT ALL - 73 * + + 61
----
-4453

query I rowsort
SELECT ALL + + 1 - + + 73 * + 27 AS col0
----
-1970

query I rowsort
SELECT DISTINCT 88 * - 75 col0
----
-6600

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT ALL - COUNT( * ) - - 25 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL - COUNT ( * ) - - 25 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT NULLIF ( 65, 83 ) * - SUM( - 18 )
----
1170

skipif mysql # not compatible
query I rowsort label-6294
SELECT NULLIF ( 65, 83 ) * - SUM ( - 18 )
----
1170

query II rowsort
SELECT - ( + - 32 ), + 68 * 36 AS col0
----
32
2448

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT COUNT( * ) + + - 42 + + 48 col1
----
7

skipif mysql # not compatible
query I rowsort label-6296
SELECT COUNT ( * ) + + - 42 + + 48 col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6297
SELECT 35 + - + CAST( 13 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-6297
SELECT 35 + - + CAST ( 13 AS INTEGER )
----
22

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6299
SELECT DISTINCT COUNT( * ) + 6 - + CAST( NULL AS SIGNED ) * - 55 * 39 AS col1, 28 * + 80 AS col1
----
NULL
2240

skipif mysql # not compatible
query II rowsort label-6299
SELECT DISTINCT COUNT ( * ) + 6 - + CAST ( NULL AS INTEGER ) * - 55 * 39 AS col1, 28 * + 80 AS col1
----
NULL
2240

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6301
SELECT ( + 37 ) * - 57 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6301
SELECT ( + 37 ) * - 57 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT COALESCE ( - 89, + 43, - - 64 ) * - NULLIF ( COUNT( * ), + - 46 / + COALESCE ( - 84, + 30 ) ) * - 18 AS col2
----
-1602

skipif mysql # not compatible
query I rowsort label-6302
SELECT COALESCE ( - 89, + 43, - - 64 ) * - NULLIF ( COUNT ( * ), + - 46 / + COALESCE ( - 84, + 30 ) ) * - 18 AS col2
----
-1602

query I rowsort
SELECT 15 - + 47 AS col0
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6304
SELECT DISTINCT ( - 75 ) + - COUNT( * ) + 96 + + 82 DIV + 37 * + COUNT( * ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT ( - 75 ) + - COUNT ( * ) + 96 + + 82 / + 37 * + COUNT ( * ) AS col0
----
22

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6306
SELECT ALL + 59 DIV + 53 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL + 59 / + 53 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6307
SELECT ALL CAST( CASE - - 1 WHEN + 49 THEN + 19 END AS SIGNED ) + 29 col1, + COALESCE ( 31, - CASE 42 WHEN 26 THEN 0 WHEN + - 46 * - CAST( - 61 AS SIGNED ) THEN + ( - COUNT( * ) ) * - 55 + - 86 ELSE NULL END ) AS col1
----
NULL
31

skipif mysql # not compatible
query II rowsort label-6307
SELECT ALL CAST ( CASE - - 1 WHEN + 49 THEN + 19 END AS INTEGER ) + 29 col1, + COALESCE ( 31, - CASE 42 WHEN 26 THEN 0 WHEN + - 46 * - CAST ( - 61 AS INTEGER ) THEN + ( - COUNT ( * ) ) * - 55 + - 86 ELSE NULL END ) AS col1
----
NULL
31

query I rowsort
SELECT ALL - 29 + - - 20
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT ALL - + MIN( DISTINCT - 71 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL - + MIN ( DISTINCT - 71 ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT DISTINCT + COUNT( * ) - - - COALESCE ( - 69, - 14 ) * - + 96
----
-6623

skipif mysql # not compatible
query I rowsort label-6311
SELECT DISTINCT + COUNT ( * ) - - - COALESCE ( - 69, - 14 ) * - + 96
----
-6623

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT ALL + - ( + 11 ) - 73 * + COUNT( - 27 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL + - ( + 11 ) - 73 * + COUNT ( - 27 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT 88 * - 73 - + 50 - + ( - COUNT( * ) )
----
-6473

skipif mysql # not compatible
query I rowsort label-6314
SELECT 88 * - 73 - + 50 - + ( - COUNT ( * ) )
----
-6473

query I rowsort
SELECT 17 * - - 22 AS col2
----
374

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6319
SELECT - 21 / CAST( NULL AS SIGNED ) + - 2 * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6319
SELECT - 21 / CAST ( NULL AS INTEGER ) + - 2 * 3
----
NULL

query I rowsort
SELECT - 70 * + ( - 87 ) - - - 47 * - + 10 * - - 40 AS col0
----
24890

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

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

query I rowsort
SELECT ALL + 92 * + 92 col2
----
8464

query I rowsort
SELECT 34 * 98 + - 8 * + 26
----
3124

query II rowsort
SELECT 71, - 76 AS col1
----
71
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT DISTINCT COUNT( * ) * + - 97 col0
----
-97

skipif mysql # not compatible
query I rowsort label-6326
SELECT DISTINCT COUNT ( * ) * + - 97 col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT - CASE + 55 WHEN + 3 THEN NULL WHEN + MAX( ALL - ( - 28 ) ) THEN - - 47 ELSE NULL END * + - 18 + ( + 94 ) + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-6327
SELECT - CASE + 55 WHEN + 3 THEN NULL WHEN + MAX ( ALL - ( - 28 ) ) THEN - - 47 ELSE NULL END * + - 18 + ( + 94 ) + - 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT ALL + COALESCE ( + + 13, + ( + 34 ) * - 25 + - 26 * 91 + - COUNT( * ) * + - COUNT( * ) * + COUNT( * ), 64, 95 ) * + + 83
----
1079

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL + COALESCE ( + + 13, + ( + 34 ) * - 25 + - 26 * 91 + - COUNT ( * ) * + - COUNT ( * ) * + COUNT ( * ), 64, 95 ) * + + 83
----
1079

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT ALL CASE + 45 WHEN COUNT( * ) + + + 56 + - 29 * - 10 + + COALESCE ( 73, - 78 * - - AVG ( - 15 ) ) - + 88 THEN ( - 28 ) WHEN 35 * 99 THEN NULL ELSE + + 48 - - - 31 END + - + MIN( DISTINCT - 60 )
----
77

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL CASE + 45 WHEN COUNT ( * ) + + + 56 + - 29 * - 10 + + COALESCE ( 73, - 78 * - - AVG ( - 15 ) ) - + 88 THEN ( - 28 ) WHEN 35 * 99 THEN NULL ELSE + + 48 - - - 31 END + - + MIN ( DISTINCT - 60 )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6330
SELECT COUNT( * ) + - 26 * ( CAST( NULL AS SIGNED ) ), 34 DIV + 41 + 83 AS col1
----
NULL
83

skipif mysql # not compatible
query II rowsort label-6330
SELECT COUNT ( * ) + - 26 * ( CAST ( NULL AS INTEGER ) ), 34 / + 41 + 83 AS col1
----
NULL
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT ALL + SUM( ALL - - 55 ) * 66 AS col0
----
3630

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL + SUM ( ALL - - 55 ) * 66 AS col0
----
3630

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT DISTINCT + CASE 70 WHEN 70 + + + 9 THEN NULL ELSE - 83 END + - - 59 + + - COUNT( * ) * + 36 col2
----
-60

skipif mysql # not compatible
query I rowsort label-6332
SELECT DISTINCT + CASE 70 WHEN 70 + + + 9 THEN NULL ELSE - 83 END + - - 59 + + - COUNT ( * ) * + 36 col2
----
-60

query I rowsort
SELECT ALL 56 + - 51
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT ALL NULLIF ( 29, - 94 ) + + MAX( 3 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL NULLIF ( 29, - 94 ) + + MAX ( 3 ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT COUNT( * ) * - 28 * SUM( - 42 ) AS col1
----
1176

skipif mysql # not compatible
query I rowsort label-6335
SELECT COUNT ( * ) * - 28 * SUM ( - 42 ) AS col1
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT 25 + + 71 * - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-6336
SELECT 25 + + 71 * - COUNT ( * )
----
-46

query I rowsort
SELECT ( - 7 ) + - 95 AS col1
----
-102

query II rowsort
SELECT 1 col0, 90
----
1
90

query I rowsort
SELECT ALL 2 * + + 59
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6340
SELECT DISTINCT ( 73 ) + COUNT( * ) * + CAST( - 86 AS SIGNED ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-6340
SELECT DISTINCT ( 73 ) + COUNT ( * ) * + CAST ( - 86 AS INTEGER ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT DISTINCT 37 + + 86 * COUNT( * ) + - 56 + + 13 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT 37 + + 86 * COUNT ( * ) + - 56 + + 13 AS col0
----
80

query I rowsort
SELECT ( + + 10 ) + + - 51 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT + ( - 27 ) * + 4 - 53 - + 24 - + 29 + - CASE COALESCE ( - 74, - 8 + 75 * COUNT( * ) ) WHEN + 93 * - 80 THEN ( 63 ) ELSE - - 57 END
----
-271

skipif mysql # not compatible
query I rowsort label-6343
SELECT + ( - 27 ) * + 4 - 53 - + 24 - + 29 + - CASE COALESCE ( - 74, - 8 + 75 * COUNT ( * ) ) WHEN + 93 * - 80 THEN ( 63 ) ELSE - - 57 END
----
-271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6344
SELECT DISTINCT - COUNT( * ) col2, NULLIF ( - + CAST( NULL AS SIGNED ), COUNT( * ) * - 41 ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6344
SELECT DISTINCT - COUNT ( * ) col2, NULLIF ( - + CAST ( NULL AS INTEGER ), COUNT ( * ) * - 41 ) AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT 93 + + MAX( DISTINCT 63 ) + + COUNT( * ) AS col0
----
157

skipif mysql # not compatible
query I rowsort label-6345
SELECT 93 + + MAX ( DISTINCT 63 ) + + COUNT ( * ) AS col0
----
157

query I rowsort
SELECT ALL + 64 * - 98 - + + 2
----
-6274

onlyif mysql # aggregate syntax: 
query II rowsort label-6347
SELECT ALL - 96 AS col0, + 63 + COALESCE ( ( - + COUNT( * ) ), + MIN( DISTINCT - 4 ), + 31 + + 12 ) * COUNT( * ) * MAX( DISTINCT + - 37 )
----
-96
100

skipif mysql # not compatible
query II rowsort label-6347
SELECT ALL - 96 AS col0, + 63 + COALESCE ( ( - + COUNT ( * ) ), + MIN ( DISTINCT - 4 ), + 31 + + 12 ) * COUNT ( * ) * MAX ( DISTINCT + - 37 )
----
-96
100

query I rowsort
SELECT + 60 * - + 96 + - - 28
----
-5732

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

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

query I rowsort
SELECT 42 * 62 + - 22 + 26 AS col0
----
2608

query I rowsort
SELECT ALL - 35 * - 86 - 99 - - ( 20 ) * 42 AS col1
----
3751

query II rowsort
SELECT ALL + - 22 AS col0, - 38 AS col2
----
-22
-38

query III rowsort
SELECT DISTINCT + - 61, - 29 + 40 + - 86 col0, + 29 AS col2
----
-61
-75
29

onlyif mysql # aggregate syntax: 
query II rowsort label-6354
SELECT ALL + 52 AS col0, 31 + - + MAX( DISTINCT - CASE + 52 WHEN - - 93 - - 35 THEN 16 + - 67 WHEN + 68 / - - 12 THEN + 45 END )
----
52
NULL

skipif mysql # not compatible
query II rowsort label-6354
SELECT ALL + 52 AS col0, 31 + - + MAX ( DISTINCT - CASE + 52 WHEN - - 93 - - 35 THEN 16 + - 67 WHEN + 68 / - - 12 THEN + 45 END )
----
52
NULL

query I rowsort
SELECT - 19 + - + 61 + + 63
----
-17

query I rowsort
SELECT ALL + 96 * - 2 AS col1
----
-192

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

query II rowsort
SELECT - 76 * + + NULLIF ( - 20, - ( - + 62 ) * + ( + + ( - + 16 ) ) * - - 66 * - - 63 * + 57 ) AS col1, 15 AS col1
----
1520
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6359
SELECT DISTINCT + + 21 + + - CASE - CAST( + 99 AS SIGNED ) WHEN + 66 + - 46 THEN NULL ELSE + 14 * - + 83 END * - CASE + COUNT( + 72 ) WHEN + 9 * 66 * + COALESCE ( 51, - 78 ) THEN - 48 + + - 79 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6359
SELECT DISTINCT + + 21 + + - CASE - CAST ( + 99 AS INTEGER ) WHEN + 66 + - 46 THEN NULL ELSE + 14 * - + 83 END * - CASE + COUNT ( + 72 ) WHEN + 9 * 66 * + COALESCE ( 51, - 78 ) THEN - 48 + + - 79 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6360
SELECT ALL - ( + 76 ) + - 87 * 96 * - 66 + + CAST( NULL AS SIGNED ) - - 54 * - + ( - 61 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL - ( + 76 ) + - 87 * 96 * - 66 + + CAST ( NULL AS INTEGER ) - - 54 * - + ( - 61 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6361
SELECT ALL + 39 + + - ( - CAST( 51 AS SIGNED ) ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL + 39 + + - ( - CAST ( 51 AS INTEGER ) ) AS col0
----
90

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6363
SELECT ALL + 67 + + 25 AS col1, 32 DIV 69 * + + 41 * + + 19
----
92
0

skipif mysql # not compatible
query II rowsort label-6363
SELECT ALL + 67 + + 25 AS col1, 32 / 69 * + + 41 * + + 19
----
92
0

query I rowsort
SELECT ALL - 3 + - + 31 AS col2
----
-34

query II rowsort
SELECT - 21 * - - 28, 81 AS col1
----
-588
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT ALL ( CASE + ( - 56 ) WHEN + 50 THEN + 93 + - 54 * + + COUNT( * ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL ( CASE + ( - 56 ) WHEN + 50 THEN + 93 + - 54 * + + COUNT ( * ) END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT DISTINCT - ( - 25 ) * - 93 + 36 - - MIN( 77 ) * + + ( + 46 )
----
1253

skipif mysql # not compatible
query I rowsort label-6367
SELECT DISTINCT - ( - 25 ) * - 93 + 36 - - MIN ( 77 ) * + + ( + 46 )
----
1253

query I rowsort
SELECT - 90 * + 39 AS col1
----
-3510

query I rowsort
SELECT ALL 2 * + - 49
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT - SUM( DISTINCT - - 45 ) - - 94 - 42 + + 47 * + 44 * - 85 - - 3 AS col1
----
-175770

skipif mysql # not compatible
query I rowsort label-6370
SELECT - SUM ( DISTINCT - - 45 ) - - 94 - 42 + + 47 * + 44 * - 85 - - 3 AS col1
----
-175770

query I rowsort
SELECT DISTINCT - 77 * + 99
----
-7623

onlyif mysql # DIV for integer division: 
query I rowsort label-6372
SELECT + 43 DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-6372
SELECT + 43 / 55
----
0

query I rowsort
SELECT DISTINCT + 13 * - 84 col0
----
-1092

onlyif mysql # aggregate syntax: 
query II rowsort label-6374
SELECT ALL + 4 - 70 AS col2, 40 + + + COUNT( * ) AS col1
----
-66
41

skipif mysql # not compatible
query II rowsort label-6374
SELECT ALL + 4 - 70 AS col2, 40 + + + COUNT ( * ) AS col1
----
-66
41

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6376
SELECT + + 32 + CASE + 34 WHEN - + 99 THEN NULL ELSE 83 + COUNT( * ) + - CAST( NULL AS SIGNED ) END * 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6376
SELECT + + 32 + CASE + 34 WHEN - + 99 THEN NULL ELSE 83 + COUNT ( * ) + - CAST ( NULL AS INTEGER ) END * 55 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT ALL + CASE - - 77 WHEN 61 - - - 26 * - COUNT( * ) * ( + 97 ) * + - 62 THEN + 61 + 79 - 38 - + + 82 + + 50 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL + CASE - - 77 WHEN 61 - - - 26 * - COUNT ( * ) * ( + 97 ) * + - 62 THEN + 61 + 79 - 38 - + + 82 + + 50 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT + - 62 * - COUNT( * ) * + 56
----
3472

skipif mysql # not compatible
query I rowsort label-6378
SELECT + - 62 * - COUNT ( * ) * + 56
----
3472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6379
SELECT + - 57 + + MAX( 86 ) * + - 97 * + 30 * CAST( NULL AS SIGNED ) / - - 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6379
SELECT + - 57 + + MAX ( 86 ) * + - 97 * + 30 * CAST ( NULL AS INTEGER ) / - - 2 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6380
SELECT ALL COALESCE ( 38, 75 * + 55 + - 71 + + 9 + + - COALESCE ( + - COUNT( * ), - NULLIF ( + CAST( + COUNT( * ) AS SIGNED ), COUNT( * ) ), 24 ) * + + 61, + - MAX( 51 ) * 79 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL COALESCE ( 38, 75 * + 55 + - 71 + + 9 + + - COALESCE ( + - COUNT ( * ), - NULLIF ( + CAST ( + COUNT ( * ) AS INTEGER ), COUNT ( * ) ), 24 ) * + + 61, + - MAX ( 51 ) * 79 ) AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6381
SELECT ALL + + SUM( DISTINCT - 14 ), 6 + CAST( SUM( DISTINCT + 14 ) AS SIGNED ) AS col1
----
-14
20

skipif mysql # not compatible
query II rowsort label-6381
SELECT ALL + + SUM ( DISTINCT - 14 ), 6 + CAST ( SUM ( DISTINCT + 14 ) AS INTEGER ) AS col1
----
-14
20

query I rowsort
SELECT DISTINCT + NULLIF ( + - 56, + 83 ) * + 82 AS col2
----
-4592

onlyif mysql # DIV for integer division: 
query I rowsort label-6383
SELECT + - 13 DIV - ( 63 )
----
0

skipif mysql # not compatible
query I rowsort label-6383
SELECT + - 13 / - ( 63 )
----
0

query I rowsort
SELECT DISTINCT + 74 * - - 65 * - + 9 * 21
----
-909090

query I rowsort
SELECT DISTINCT 54 * - - 20 AS col1
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT + 94 * + SUM( - 95 )
----
-8930

skipif mysql # not compatible
query I rowsort label-6386
SELECT + 94 * + SUM ( - 95 )
----
-8930

query I rowsort
SELECT + + 36 * - 35 * - 41 * - 39 AS col2
----
-2014740

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6388
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 89 / + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6388
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 89 / + 47 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6390
SELECT + + 86 / + CAST( NULL AS SIGNED ) + - 24, - 99 AS col2
----
NULL
-99

skipif mysql # not compatible
query II rowsort label-6390
SELECT + + 86 / + CAST ( NULL AS INTEGER ) + - 24, - 99 AS col2
----
NULL
-99

query I rowsort
SELECT - + 81 * + 26 AS col0
----
-2106

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT ALL + 73 * + 16 - - COUNT( * ) + 29 AS col0
----
1198

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL + 73 * + 16 - - COUNT ( * ) + 29 AS col0
----
1198

onlyif mysql # DIV for integer division: 
query I rowsort label-6393
SELECT ALL + 65 * 0 - + 54 DIV - - 44 + - 52
----
-53

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL + 65 * 0 - + 54 / - - 44 + - 52
----
-53

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

query I rowsort
SELECT ALL - ( 93 ) * 18 AS col1
----
-1674

query I rowsort
SELECT NULLIF ( - + 17, NULLIF ( 28, + 23 ) ) col2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6397
SELECT DISTINCT COUNT( ALL - + 28 ) DIV ( + - 82 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT COUNT ( ALL - + 28 ) / ( + - 82 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT ALL - 60 * 55 + - 18 + - ( + MIN( + + 61 ) )
----
-3379

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL - 60 * 55 + - 18 + - ( + MIN ( + + 61 ) )
----
-3379

query I rowsort
SELECT + 21 + - 8
----
13

query II rowsort
SELECT ALL + 86, - 46 AS col0
----
86
-46

query I rowsort
SELECT + 97 + + ( - + 72 ) * - 64 * - 14
----
-64415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6402
SELECT - 3 * CAST( NULL AS SIGNED ) * - 23 AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6402
SELECT - 3 * CAST ( NULL AS INTEGER ) * - 23 AS col1, COUNT ( * )
----
NULL
1

query I rowsort
SELECT - 64 * - 13 + - 84
----
748

query II rowsort
SELECT - 62, + 15 AS col0
----
-62
15

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

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

query I rowsort
SELECT - 67 + + 67
----
0

query I rowsort
SELECT ALL 73 * - 89 col2
----
-6497

onlyif mysql # aggregate syntax: 
query II rowsort label-6408
SELECT ALL ( MAX( - + 30 ) ), 61 * - ( - SUM( ALL 80 ) ) AS col0
----
-30
4880

skipif mysql # not compatible
query II rowsort label-6408
SELECT ALL ( MAX ( - + 30 ) ), 61 * - ( - SUM ( ALL 80 ) ) AS col0
----
-30
4880

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6411
SELECT ALL CAST( - 98 AS SIGNED ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL CAST ( - 98 AS INTEGER ) AS col1
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-6412
SELECT DISTINCT - 46 DIV + 36 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6412
SELECT DISTINCT - 46 / + 36 AS col1
----
-1

query I rowsort
SELECT - + 92 * + CASE + - 82 WHEN + - 72 + ( + 36 ) THEN 67 ELSE 87 END * + - 49 AS col1
----
392196

query I rowsort
SELECT 23 * - 87
----
-2001

query I rowsort
SELECT 54 - + 36 - + + 67 * 70 AS col1
----
-4672

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

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

query II rowsort
SELECT ALL 36, + 12 AS col2
----
36
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6418
SELECT 46 * + 88 + + CAST( 64 AS SIGNED ) * - - 65
----
8208

skipif mysql # not compatible
query I rowsort label-6418
SELECT 46 * + 88 + + CAST ( 64 AS INTEGER ) * - - 65
----
8208

query I rowsort
SELECT ALL - + 55 + - 54 AS col1
----
-109

query I rowsort
SELECT DISTINCT - - 30 * + 37 AS col1
----
1110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6421
SELECT + - COUNT( * ) DIV - + 88 + 40 + - - 85 + + - 40
----
85

skipif mysql # not compatible
query I rowsort label-6421
SELECT + - COUNT ( * ) / - + 88 + 40 + - - 85 + + - 40
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT DISTINCT - - MIN( - - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT - - MIN ( - - 72 )
----
72

query I rowsort
SELECT ( - 75 ) + 60
----
-15

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

skipif mysql # not compatible
query I rowsort label-6424
SELECT MAX ( ALL - 68 )
----
-68

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

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

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

query I rowsort
SELECT ALL - + 88 + - 70 * - + 38 * 1 AS col1
----
2572

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

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

query I rowsort
SELECT DISTINCT - 13 * - + 23 AS col0
----
299

query II rowsort
SELECT ALL - 51, 13 + - 95 AS col0
----
-51
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT DISTINCT ( - - MAX( + - 56 ) ) + + NULLIF ( 38, + COUNT( * ) ) col2
----
-18

skipif mysql # not compatible
query I rowsort label-6431
SELECT DISTINCT ( - - MAX ( + - 56 ) ) + + NULLIF ( 38, + COUNT ( * ) ) col2
----
-18

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

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT COUNT ( DISTINCT + 0 ) * - ( 39 ) AS col1
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6433
SELECT CAST( - 95 AS SIGNED ) + - 89
----
-184

skipif mysql # not compatible
query I rowsort label-6433
SELECT CAST ( - 95 AS INTEGER ) + - 89
----
-184

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

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

query I rowsort
SELECT 70 + 61
----
131

query I rowsort
SELECT ALL 85 - - 17 AS col2
----
102

query I rowsort
SELECT ALL 97 * ( + + 11 )
----
1067

onlyif mysql # DIV for integer division: 
query I rowsort label-6438
SELECT ALL + 31 DIV + 15 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6438
SELECT ALL + 31 / + 15 AS col2
----
2

query I rowsort
SELECT DISTINCT + 13 * 40 col0
----
520

query I rowsort
SELECT 85 * 31 AS col0
----
2635

query II rowsort
SELECT DISTINCT - 59 * - 21, - 24 AS col2
----
1239
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT ALL MIN( + 2 ) * + + 39
----
78

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL MIN ( + 2 ) * + + 39
----
78

query I rowsort
SELECT + 22 + - 67 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT 38 - 95 + + - COUNT( * ) + + CASE - 55 WHEN + 97 THEN NULL ELSE + + 6 END + - - 26
----
-26

skipif mysql # not compatible
query I rowsort label-6444
SELECT 38 - 95 + + - COUNT ( * ) + + CASE - 55 WHEN + 97 THEN NULL ELSE + + 6 END + - - 26
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT - COUNT( + 54 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6445
SELECT - COUNT ( + 54 ) col0
----
-1

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

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

query I rowsort
SELECT ALL + 69 + - 97 AS col2
----
-28

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

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

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

skipif mysql # not compatible
query I rowsort label-6449
SELECT - 15 / COUNT ( * ) col0
----
-15

query I rowsort
SELECT ALL + NULLIF ( + - 39, - 82 + + + 10 * - + 51 ) + + ( 5 ) * 37
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT ALL - - 27 + 88 * + 45 + - - COALESCE ( + - ( 41 ), - - COUNT( * ) + - 34, + + 72 ) + 44
----
3990

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL - - 27 + 88 * + 45 + - - COALESCE ( + - ( 41 ), - - COUNT ( * ) + - 34, + + 72 ) + 44
----
3990

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT ALL + 84 * + + COUNT( * ) + + 85 AS col1
----
169

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL + 84 * + + COUNT ( * ) + + 85 AS col1
----
169

query I rowsort
SELECT + 65 * - + 0 - + 36
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6455
SELECT DISTINCT - - COALESCE ( + ( + 19 ), NULLIF ( - CASE + 96 WHEN + + 29 / - COUNT( 98 ) + ( - 11 ) + + 96 + + 82 / + 24 THEN ( - CAST( - + 17 AS SIGNED ) ) ELSE NULL END, + + COUNT( * ) ) )
----
19

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT - - COALESCE ( + ( + 19 ), NULLIF ( - CASE + 96 WHEN + + 29 / - COUNT ( 98 ) + ( - 11 ) + + 96 + + 82 / + 24 THEN ( - CAST ( - + 17 AS INTEGER ) ) ELSE NULL END, + + COUNT ( * ) ) )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT - COUNT( + 43 ) * - - 44 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-6456
SELECT - COUNT ( + 43 ) * - - 44 AS col1
----
-44

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

query I rowsort
SELECT 51 * 32 * - 19 * + 2
----
-62016

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT COUNT( * ) * + - COALESCE ( + 4, ( 83 ) ) - - 99 + 60 - 63 * - 3 * + 52 * + ( + 91 ) * NULLIF ( 72, 69 * - 10 + + COUNT( * ) ) AS col2
----
64393211

skipif mysql # not compatible
query I rowsort label-6460
SELECT COUNT ( * ) * + - COALESCE ( + 4, ( 83 ) ) - - 99 + 60 - 63 * - 3 * + 52 * + ( + 91 ) * NULLIF ( 72, 69 * - 10 + + COUNT ( * ) ) AS col2
----
64393211

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT ALL - COUNT( DISTINCT 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-6461
SELECT ALL - COUNT ( DISTINCT 24 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6462
SELECT DISTINCT - CASE 64 WHEN - 4 / + + CASE + 7 WHEN - ( 44 ) THEN - 56 ELSE NULL END + AVG ( ALL - + CAST( NULL AS DECIMAL ) ) THEN NULL ELSE + 6 + 24 END
----
-30

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT - CASE 64 WHEN - 4 / + + CASE + 7 WHEN - ( 44 ) THEN - 56 ELSE NULL END + AVG ( ALL - + CAST ( NULL AS REAL ) ) THEN NULL ELSE + 6 + 24 END
----
-30

query I rowsort
SELECT ALL 38 * 34
----
1292

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT MIN( ALL 41 ) col0
----
41

skipif mysql # not compatible
query I rowsort label-6464
SELECT MIN ( ALL 41 ) col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT SUM( + 43 ) * 60 + 33
----
2613

skipif mysql # not compatible
query I rowsort label-6465
SELECT SUM ( + 43 ) * 60 + 33
----
2613

query I rowsort
SELECT DISTINCT 73 * - COALESCE ( 1, - 23 + 99 + 11 * - 39 * 71 * 65 ) AS col1
----
-73

query I rowsort
SELECT 40 + - ( 61 ) + + + 18 AS col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6468
SELECT ALL 2 * - 31 DIV + NULLIF ( + - COUNT( * ), + 41 * - + 2 * + - ( + - COUNT( * ) ) DIV - 70 * 34 + 76 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL 2 * - 31 / + NULLIF ( + - COUNT ( * ), + 41 * - + 2 * + - ( + - COUNT ( * ) ) / - 70 * 34 + 76 ) AS col1
----
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT MAX( + + 82 ) * 37 AS col2
----
3034

skipif mysql # not compatible
query I rowsort label-6470
SELECT MAX ( + + 82 ) * 37 AS col2
----
3034

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT + 84 + SUM( + ( + 39 ) ) + + + 83 * - COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-6471
SELECT + 84 + SUM ( + ( + 39 ) ) + + + 83 * - COUNT ( * ) AS col0
----
40

query II rowsort
SELECT ALL 26, - 18 * - + 38 AS col0
----
26
684

query I rowsort
SELECT + 66 * + ( - 60 ) * + 48 * - 13 * + ( 96 ) AS col1
----
237219840

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

skipif mysql # not compatible
query I rowsort label-6474
SELECT - SUM ( DISTINCT - 23 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6475
SELECT ALL - CAST( + - 10 AS SIGNED ) col1
----
10

skipif mysql # not compatible
query I rowsort label-6475
SELECT ALL - CAST ( + - 10 AS INTEGER ) col1
----
10

query I rowsort
SELECT DISTINCT - 31 + + 89 AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6477
SELECT + NULLIF ( - ( 81 ), MIN( DISTINCT - 65 ) * + 14 + - 49 ) DIV + NULLIF ( + 66, - CAST( - - 66 AS SIGNED ) DIV + NULLIF ( 76, MIN( 87 ) ) + + - 17 + + 9 * 97 DIV + 93 - + 12 + + - 93 * + 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-6477
SELECT + NULLIF ( - ( 81 ), MIN ( DISTINCT - 65 ) * + 14 + - 49 ) / + NULLIF ( + 66, - CAST ( - - 66 AS INTEGER ) / + NULLIF ( 76, MIN ( 87 ) ) + + - 17 + + 9 * 97 / + 93 - + 12 + + - 93 * + 66 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT ALL 16 + - + COUNT( + - 15 )
----
15

skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL 16 + - + COUNT ( + - 15 )
----
15

query I rowsort
SELECT + 86 + - 20
----
66

query I rowsort
SELECT DISTINCT + 96 + - 23
----
73

query I rowsort
SELECT DISTINCT - 37 + 73 AS col1
----
36

query I rowsort
SELECT ALL 43 * - 62
----
-2666

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT MIN( DISTINCT 84 )
----
84

skipif mysql # not compatible
query I rowsort label-6483
SELECT MIN ( DISTINCT 84 )
----
84

query I rowsort
SELECT ALL - - 25 + 0 AS col2
----
25

query I rowsort
SELECT - - CASE + + 82 WHEN + + 32 THEN NULL ELSE + - 99 END AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT ALL + ( ( - MIN( - 95 ) ) ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL + ( ( - MIN ( - 95 ) ) ) AS col1
----
95

query I rowsort
SELECT DISTINCT 1 + 74 AS col2
----
75

query I rowsort
SELECT - + 7 + - 34 AS col0
----
-41

query I rowsort
SELECT DISTINCT 28 * + 46 * - + 65 * - + 79 col0
----
6613880

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT ALL - 22 - - SUM( ALL - 9 ) col1
----
-31

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL - 22 - - SUM ( ALL - 9 ) col1
----
-31

query I rowsort
SELECT + + 63 * 47 col1
----
2961

onlyif mysql # aggregate syntax: 
query II rowsort label-6492
SELECT - 76 * - COUNT( ALL + + 9 ) AS col2, + 52 col0
----
76
52

skipif mysql # not compatible
query II rowsort label-6492
SELECT - 76 * - COUNT ( ALL + + 9 ) AS col2, + 52 col0
----
76
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT + + 52 * - 18 - ( + - 64 ) * + - 64 + - COUNT( ALL - 58 ) - + - 97
----
-4936

skipif mysql # not compatible
query I rowsort label-6493
SELECT + + 52 * - 18 - ( + - 64 ) * + - 64 + - COUNT ( ALL - 58 ) - + - 97
----
-4936

query I rowsort
SELECT ALL - 62 * + 12 - + - 66 + + COALESCE ( + 66, 41 )
----
-612

onlyif mysql # DIV for integer division: 
query I rowsort label-6495
SELECT ALL + ( 81 ) DIV + 49
----
1

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL + ( 81 ) / + 49
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT COUNT( * ) * + 36 + - 54
----
-18

skipif mysql # not compatible
query I rowsort label-6496
SELECT COUNT ( * ) * + 36 + - 54
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6497
SELECT 77 DIV - 21 + + - ( - 85 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-6497
SELECT 77 / - 21 + + - ( - 85 ) AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6498
SELECT ALL - NULLIF ( - 12, 86 + 12 ) * - + NULLIF ( + 56, + - 21 * COUNT( * ) ) + - + AVG ( ALL 14 ) + - - CAST( NULL AS SIGNED ) AS col2, + MIN( 51 )
----
NULL
51

skipif mysql # not compatible
query II rowsort label-6498
SELECT ALL - NULLIF ( - 12, 86 + 12 ) * - + NULLIF ( + 56, + - 21 * COUNT ( * ) ) + - + AVG ( ALL 14 ) + - - CAST ( NULL AS INTEGER ) AS col2, + MIN ( 51 )
----
NULL
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6499
SELECT ALL 21 * - CAST( NULL AS SIGNED ) - + 19 + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL 21 * - CAST ( NULL AS INTEGER ) - + 19 + 28
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6500
SELECT - 62 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-6500
SELECT - 62 / - 63
----
0

query I rowsort
SELECT DISTINCT - 31 * 30
----
-930

query I rowsort
SELECT ALL + 68 * - - 83
----
5644

query I rowsort
SELECT DISTINCT + 59 * + 17 AS col2
----
1003

query II rowsort
SELECT + 16 AS col2, 41
----
16
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT COALESCE ( + COUNT( * ), 42 + - 73 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6505
SELECT COALESCE ( + COUNT ( * ), 42 + - 73 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT + 66 + - COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-6506
SELECT + 66 + - COUNT ( * ) AS col1
----
65

query I rowsort
SELECT NULLIF ( - 99, 22 * ( + - 72 ) + + 59 + 29 ) AS col2
----
-99

query I rowsort
SELECT ALL 63 * 37 + + 73 + - - 12 * - 26
----
2092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6509
SELECT ALL 76 * 67 + + - 95 + + CAST( NULL AS SIGNED ) / - + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL 76 * 67 + + - 95 + + CAST ( NULL AS INTEGER ) / - + 18 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT ALL + 50 * + - COUNT( ALL 15 ) / 44 * 35 + + 96 + COUNT( * ) * 15 + + 31 + - - CASE + COUNT( * ) WHEN + 9 THEN - - 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL + 50 * + - COUNT ( ALL 15 ) / 44 * 35 + + 96 + COUNT ( * ) * 15 + + 31 + - - CASE + COUNT ( * ) WHEN + 9 THEN - - 37 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6512
SELECT ALL + 58 * 70 DIV COUNT( * ) AS col0
----
4060

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL + 58 * 70 / COUNT ( * ) AS col0
----
4060

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

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

query I rowsort
SELECT DISTINCT + 66 + + 92
----
158

onlyif mysql # aggregate syntax: 
query II rowsort label-6515
SELECT COUNT( DISTINCT - 77 ) col1, 92
----
1
92

skipif mysql # not compatible
query II rowsort label-6515
SELECT COUNT ( DISTINCT - 77 ) col1, 92
----
1
92

query I rowsort
SELECT ALL + 59 + - + 68
----
-9

query I rowsort
SELECT + + 53 - - + 71 * 63
----
4526

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

skipif mysql # not compatible
query II rowsort label-6518
SELECT ALL CAST ( NULL AS INTEGER ), + COUNT ( ALL - 92 ) col0
----
NULL
1

query I rowsort
SELECT + - 78 * + 4 * + 25 * 82 AS col0
----
-639600

query II rowsort
SELECT ALL 62, 62
----
62
62

query II rowsort
SELECT - 73, - 24 AS col1
----
-73
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-6522
SELECT + 91 DIV + ( - 85 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6522
SELECT + 91 / + ( - 85 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6523
SELECT ALL 30 DIV + 14
----
2

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL 30 / + 14
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT + + 70 + + CASE - 34 WHEN + 27 THEN 1 + + 73 ELSE NULL END * - 2 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6524
SELECT + + 70 + + CASE - 34 WHEN + 27 THEN 1 + + 73 ELSE NULL END * - 2 * COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 65 - + + 8 col2
----
57

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6527
SELECT ALL - 90 * - 38 * 78 + + 93 DIV - + 75 + - 4, ( - 0 ) AS col0
----
266755
0

skipif mysql # not compatible
query II rowsort label-6527
SELECT ALL - 90 * - 38 * 78 + + 93 / - + 75 + - 4, ( - 0 ) AS col0
----
266755
0

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

query I rowsort
SELECT - - COALESCE ( - COALESCE ( - + 54, 72 ), + - 49 )
----
54

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6532
SELECT - 21 * - - CAST( NULL AS SIGNED ) * 88 * + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6532
SELECT - 21 * - - CAST ( NULL AS INTEGER ) * 88 * + - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT + 32 - - CASE + - COUNT( * ) WHEN - 75 * + 12 + - 17 / - 78 THEN NULL ELSE + + 20 + COUNT( * ) * - 21 * - - 17 END
----
-305

skipif mysql # not compatible
query I rowsort label-6533
SELECT + 32 - - CASE + - COUNT ( * ) WHEN - 75 * + 12 + - 17 / - 78 THEN NULL ELSE + + 20 + COUNT ( * ) * - 21 * - - 17 END
----
-305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6534
SELECT + 60 * COUNT( * ) + - COALESCE ( + CAST( 7 AS SIGNED ), - 19 + + - 84, + 73, - CAST( + 83 AS SIGNED ) ) AS col1, - COUNT( * )
----
53
-1

skipif mysql # not compatible
query II rowsort label-6534
SELECT + 60 * COUNT ( * ) + - COALESCE ( + CAST ( 7 AS INTEGER ), - 19 + + - 84, + 73, - CAST ( + 83 AS INTEGER ) ) AS col1, - COUNT ( * )
----
53
-1

query I rowsort
SELECT 60 * + 51 AS col0
----
3060

query I rowsort
SELECT 95 * - 40 col2
----
-3800

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6537
SELECT ALL - COUNT( * ) DIV + 87 AS col1, 10 AS col2
----
0
10

skipif mysql # not compatible
query II rowsort label-6537
SELECT ALL - COUNT ( * ) / + 87 AS col1, 10 AS col2
----
0
10

query I rowsort
SELECT DISTINCT - 0 + + 93 - - 4 + + 32
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT DISTINCT - COALESCE ( - ( 46 ), - + COUNT( * ) ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-6539
SELECT DISTINCT - COALESCE ( - ( 46 ), - + COUNT ( * ) ) AS col0
----
46

query I rowsort
SELECT ALL - 83 + 96 AS col1
----
13

query II rowsort
SELECT ALL 60 + + 97 AS col0, 92 + - - 77 * - ( - 61 ) AS col2
----
157
4789

query I rowsort
SELECT + 22 * 73 + 43
----
1649

onlyif mysql # DIV for integer division: 
query I rowsort label-6543
SELECT 4 DIV 17
----
0

skipif mysql # not compatible
query I rowsort label-6543
SELECT 4 / 17
----
0

query I rowsort
SELECT ALL - 83 + - 4 * + 80 col1
----
-403

query I rowsort
SELECT 75 + - 18
----
57

query II rowsort
SELECT 10 * 46 AS col0, 48 AS col1
----
460
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6547
SELECT NULLIF ( 25, - COUNT( * ) * + + 81 ) - + 56 + 36 DIV - + 24 + + - 34 + - 12 * + 97
----
-1230

skipif mysql # not compatible
query I rowsort label-6547
SELECT NULLIF ( 25, - COUNT ( * ) * + + 81 ) - + 56 + 36 / - + 24 + + - 34 + - 12 * + 97
----
-1230

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6549
SELECT 48 * + + ( + 4 ) + 3 * 67 - + 8 * + + 33, - 8 * 34 * + 83 * + CAST( NULL AS SIGNED ) * 81 AS col0
----
129
NULL

skipif mysql # not compatible
query II rowsort label-6549
SELECT 48 * + + ( + 4 ) + 3 * 67 - + 8 * + + 33, - 8 * 34 * + 83 * + CAST ( NULL AS INTEGER ) * 81 AS col0
----
129
NULL

query I rowsort
SELECT + 42 - 95 AS col0
----
-53

query I rowsort
SELECT ALL - 37 + + 62
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-6552
SELECT ALL + - MAX( ALL + - 0 ) + 17 + - - 81 * NULLIF ( - 72, + - 63 ) AS col1, - 81
----
-5815
-81

skipif mysql # not compatible
query II rowsort label-6552
SELECT ALL + - MAX ( ALL + - 0 ) + 17 + - - 81 * NULLIF ( - 72, + - 63 ) AS col1, - 81
----
-5815
-81

query I rowsort
SELECT DISTINCT + - 91 - ( - 69 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-6554
SELECT - 9 + + 3 * ( + 49 ) * COALESCE ( - 50, COALESCE ( + + 89, + 23 ) * - - 99 + - - 21, + + COUNT( * ) + + NULLIF ( + + 45, - 53 ) + 73 ) * 41, 26 AS col0
----
-301359
26

skipif mysql # not compatible
query II rowsort label-6554
SELECT - 9 + + 3 * ( + 49 ) * COALESCE ( - 50, COALESCE ( + + 89, + 23 ) * - - 99 + - - 21, + + COUNT ( * ) + + NULLIF ( + + 45, - 53 ) + 73 ) * 41, 26 AS col0
----
-301359
26

query I rowsort
SELECT 84 + + + 89 + - 99
----
74

query I rowsort
SELECT ALL 61 * - + 88 * 37 + 9
----
-198607

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT COUNT( * ) + 31 - - + 79 + + 7 * - COUNT( * ) * + 95
----
-554

skipif mysql # not compatible
query I rowsort label-6557
SELECT COUNT ( * ) + 31 - - + 79 + + 7 * - COUNT ( * ) * + 95
----
-554

query I rowsort
SELECT + 84 + 20
----
104

query II rowsort
SELECT DISTINCT + 94 - - ( - 69 ), ( + 75 ) + + 5 * - ( 87 ) col1
----
25
-360

query I rowsort
SELECT ALL - 36 * + - 9 col2
----
324

onlyif mysql # aggregate syntax: 
query II rowsort label-6561
SELECT ( + 28 ) + - MIN( ALL - 29 ) * + 33, 40 col0
----
985
40

skipif mysql # not compatible
query II rowsort label-6561
SELECT ( + 28 ) + - MIN ( ALL - 29 ) * + 33, 40 col0
----
985
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT - 34 + + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-6562
SELECT - 34 + + COUNT ( * )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-6563
SELECT ALL 15 DIV - + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL 15 / - + 57 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6564
SELECT MAX( DISTINCT + - 33 ) DIV - + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-6564
SELECT MAX ( DISTINCT + - 33 ) / - + COUNT ( * )
----
33

query I rowsort
SELECT ALL 27 + + + 60 AS col1
----
87

query I rowsort
SELECT 41 + - + 88
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6567
SELECT 14 DIV + + 40 + - 61 + + 35 - + 0 DIV - + CASE 19 WHEN + 20 THEN NULL ELSE + - 98 END * - COUNT( + - 92 ) - + 43
----
-69

skipif mysql # not compatible
query I rowsort label-6567
SELECT 14 / + + 40 + - 61 + + 35 - + 0 / - + CASE 19 WHEN + 20 THEN NULL ELSE + - 98 END * - COUNT ( + - 92 ) - + 43
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT 77 * - 62 - ( - + 43 ) + - - SUM( DISTINCT + ( - 0 ) ) AS col1
----
-4731

skipif mysql # not compatible
query I rowsort label-6568
SELECT 77 * - 62 - ( - + 43 ) + - - SUM ( DISTINCT + ( - 0 ) ) AS col1
----
-4731

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6569
SELECT + 6 DIV COALESCE ( CAST( + 94 AS SIGNED ), 25 + + - 45 * - 93 * + 86, 58 ) * + 24 * - 30 + 1 + - 51 * - 8 - + 19
----
390

skipif mysql # not compatible
query I rowsort label-6569
SELECT + 6 / COALESCE ( CAST ( + 94 AS INTEGER ), 25 + + - 45 * - 93 * + 86, 58 ) * + 24 * - 30 + 1 + - 51 * - 8 - + 19
----
390

onlyif mysql # DIV for integer division: 
query I rowsort label-6570
SELECT ALL 55 * 73 * 49 DIV - 42
----
-4684

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL 55 * 73 * 49 / - 42
----
-4684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6571
SELECT DISTINCT 14 + - + COALESCE ( - + 28, + 32, CAST( NULL AS SIGNED ) * - 10 + + 41 ) * + + 53 * 5
----
7434

skipif mysql # not compatible
query I rowsort label-6571
SELECT DISTINCT 14 + - + COALESCE ( - + 28, + 32, CAST ( NULL AS INTEGER ) * - 10 + + 41 ) * + + 53 * 5
----
7434

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6572
SELECT ALL 73 + - - SUM( DISTINCT + 85 ) + + 85 * - NULLIF ( + - 15, 63 ) + - + 55 + + COUNT( * ) DIV - - 59 * ( - 1 )
----
1378

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL 73 + - - SUM ( DISTINCT + 85 ) + + 85 * - NULLIF ( + - 15, 63 ) + - + 55 + + COUNT ( * ) / - - 59 * ( - 1 )
----
1378

query I rowsort
SELECT ALL 19 * 66
----
1254

query I rowsort
SELECT DISTINCT 78 + 45 * + 32 * CASE - + 46 WHEN + ( + 38 ) THEN NULL WHEN + 15 + 11 THEN 27 ELSE - 29 END
----
-41682

query I rowsort
SELECT ALL - 78 + 53 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT ALL COUNT( * ) + - - 35 * + 76 * - + 99 col1
----
-263339

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL COUNT ( * ) + - - 35 * + 76 * - + 99 col1
----
-263339

query II rowsort
SELECT 4 AS col2, - 29 AS col0
----
4
-29

query I rowsort
SELECT 84 * + + 20 AS col1
----
1680

onlyif mysql # aggregate syntax: 
query II rowsort label-6579
SELECT + COUNT( * ) AS col0, + 68 * + 6 + - - CASE + - COUNT( * ) WHEN - 53 - - COUNT( * ) + + - 62 THEN - + 2 ELSE NULL END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6579
SELECT + COUNT ( * ) AS col0, + 68 * + 6 + - - CASE + - COUNT ( * ) WHEN - 53 - - COUNT ( * ) + + - 62 THEN - + 2 ELSE NULL END
----
1
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6581
SELECT - 2 * - COUNT( * ) + - 93 AS col0, 18 - - 25 * + - 80
----
-91
-1982

skipif mysql # not compatible
query II rowsort label-6581
SELECT - 2 * - COUNT ( * ) + - 93 AS col0, 18 - - 25 * + - 80
----
-91
-1982

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6582
SELECT DISTINCT - 8 DIV - NULLIF ( + - COUNT( * ), COUNT( * ) ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT - 8 / - NULLIF ( + - COUNT ( * ), COUNT ( * ) ) AS col2
----
-8

query II rowsort
SELECT DISTINCT - 2, 61 AS col1
----
-2
61

onlyif mysql # aggregate syntax: 
query II rowsort label-6584
SELECT ALL - - 49 col2, COUNT( * ) + - 46 + 17 + - + 79 * - 81 * - + 70
----
49
-447958

skipif mysql # not compatible
query II rowsort label-6584
SELECT ALL - - 49 col2, COUNT ( * ) + - 46 + 17 + - + 79 * - 81 * - + 70
----
49
-447958

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

query I rowsort
SELECT - 93 * 17
----
-1581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6587
SELECT 37 + + CAST( - - 29 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-6587
SELECT 37 + + CAST ( - - 29 AS INTEGER )
----
66

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

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

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

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

query I rowsort
SELECT + 59 - 93 + - 29
----
-63

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6592
SELECT + ( 56 ) DIV - 99 AS col0, 53 * 89
----
0
4717

skipif mysql # not compatible
query II rowsort label-6592
SELECT + ( 56 ) / - 99 AS col0, 53 * 89
----
0
4717

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6593
SELECT - 82 * - CAST( NULL AS SIGNED ) * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6593
SELECT - 82 * - CAST ( NULL AS INTEGER ) * + 86
----
NULL

query II rowsort
SELECT - + 22 AS col1, 6
----
-22
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT 9 * + + COALESCE ( 73, - - 58 * + + COALESCE ( + MAX( DISTINCT + 0 ), - 27, + ( + 9 ) + + 93 ) ) * - + 88 AS col0
----
-57816

skipif mysql # not compatible
query I rowsort label-6595
SELECT 9 * + + COALESCE ( 73, - - 58 * + + COALESCE ( + MAX ( DISTINCT + 0 ), - 27, + ( + 9 ) + + 93 ) ) * - + 88 AS col0
----
-57816

onlyif mysql # aggregate syntax: 
query II rowsort label-6596
SELECT DISTINCT 47 AS col1, MAX( - ( - 71 ) )
----
47
71

skipif mysql # not compatible
query II rowsort label-6596
SELECT DISTINCT 47 AS col1, MAX ( - ( - 71 ) )
----
47
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6597
SELECT - 22 - 90 + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6597
SELECT - 22 - 90 + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 69, 2 ) * 50
----
3450

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6601
SELECT 44 + + COALESCE ( 19, 58, - 18 + + 23 ) + - ( 11 ) + - + COUNT( * ) DIV - - 32 * - 32 col2
----
52

skipif mysql # not compatible
query I rowsort label-6601
SELECT 44 + + COALESCE ( 19, 58, - 18 + + 23 ) + - ( 11 ) + - + COUNT ( * ) / - - 32 * - 32 col2
----
52

query I rowsort
SELECT - 9 * - - 59 * 91 * + 47
----
-2271087

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT + COUNT( * ) + 20 + 96 * - 61
----
-5835

skipif mysql # not compatible
query I rowsort label-6603
SELECT + COUNT ( * ) + 20 + 96 * - 61
----
-5835

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT DISTINCT - 0 + - COUNT( DISTINCT - 53 ) * 93 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT - 0 + - COUNT ( DISTINCT - 53 ) * 93 AS col0
----
-93

query I rowsort
SELECT ALL 73 + + - 82 * - - 29 AS col1
----
-2305

query I rowsort
SELECT DISTINCT + 10 * + + 50 AS col0
----
500

query I rowsort
SELECT ALL NULLIF ( 43, + + 17 )
----
43

query I rowsort
SELECT CASE + 94 WHEN + 19 * + - 36 - + NULLIF ( + + 47, - NULLIF ( - 56, + ( + + 43 ) ) / + + 91 + 51 ) / + + 57 + + 84 + + 17 * 27 + - CASE 64 WHEN - 8 * 89 * 80 + - 85 * + 96 THEN NULL ELSE - + 23 END THEN - 17 * + 2 + ( + - 36 ) END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL COUNT ( * ) / + + 79 * - COUNT ( DISTINCT - 42 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6610
SELECT + ( - + 65 ) DIV - MAX( DISTINCT 26 ) + + 99
----
101

skipif mysql # not compatible
query I rowsort label-6610
SELECT + ( - + 65 ) / - MAX ( DISTINCT 26 ) + + 99
----
101

query I rowsort
SELECT + 49 * 44 * - - 76 AS col2
----
163856

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT ALL 95 * 75 * + CASE - 94 WHEN - COUNT( * ) THEN - + 32 * + - 84 WHEN - 41 THEN 47 / - - COUNT( ALL - ( - 96 ) ) ELSE NULL END + - 64 * - + 53 * + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL 95 * 75 * + CASE - 94 WHEN - COUNT ( * ) THEN - + 32 * + - 84 WHEN - 41 THEN 47 / - - COUNT ( ALL - ( - 96 ) ) ELSE NULL END + - 64 * - + 53 * + 39
----
NULL

query I rowsort
SELECT + NULLIF ( + 87, - 40 * - 55 ) col0
----
87

query II rowsort
SELECT + 13 * - + 67 * + 95 + - - 49, - 60 * - - 49 AS col1
----
-82696
-2940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6615
SELECT ALL NULLIF ( - 26, 24 ) DIV MIN( + 40 )
----
0

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL NULLIF ( - 26, 24 ) / MIN ( + 40 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT CASE - 6 WHEN + - 12 + + - ( - + COUNT( * ) ) + + + 95 + - 47 + - 9 * - 48 + + + 10 * 63 + + 13 * + 8 THEN NULL ELSE - - 71 + - 80 END AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-6617
SELECT CASE - 6 WHEN + - 12 + + - ( - + COUNT ( * ) ) + + + 95 + - 47 + - 9 * - 48 + + + 10 * 63 + + 13 * + 8 THEN NULL ELSE - - 71 + - 80 END AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6618
SELECT + 89 * 60 * CAST( - 34 AS SIGNED )
----
-181560

skipif mysql # not compatible
query I rowsort label-6618
SELECT + 89 * 60 * CAST ( - 34 AS INTEGER )
----
-181560

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6619
SELECT CASE - + 31 WHEN + - 95 THEN + CAST( NULL AS DECIMAL ) WHEN 8 THEN 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6619
SELECT CASE - + 31 WHEN + - 95 THEN + CAST ( NULL AS REAL ) WHEN 8 THEN 14 END
----
NULL

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

query I rowsort
SELECT ALL + 85 * - 87
----
-7395

onlyif mysql # DIV for integer division: 
query I rowsort label-6622
SELECT + 53 * + 82 + + - 62 DIV 7 AS col2
----
4338

skipif mysql # not compatible
query I rowsort label-6622
SELECT + 53 * + 82 + + - 62 / 7 AS col2
----
4338

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-6623
SELECT - 27 - + COUNT( * ) + - 24 DIV COUNT( * ) AS col1, + COUNT( * ) * - 23 + ( - 44 ) * 80 + 58 + + COUNT( ALL + 3 ) - 44 * - - CASE + ( + + 78 ) WHEN + 11 * + - 96 THEN 67 * - 3 + COALESCE ( 95, - 26 ) - 89 + CAST( NULL AS SIGNED ) DIV + COUNT( * ) * - - COUNT( * ) * + CASE - - 21 WHEN 19 * 62 THEN COALESCE ( + 87, - 19 * - 41 + + 1 ) ELSE NULL END * 4 + + 27 * - CAST( NULL AS DECIMAL ) * 76 WHEN + 28 * - 1 THEN NULL END * 18 + + 5 DIV NULLIF ( - 42, 50 + + 13 )
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-6623
SELECT - 27 - + COUNT ( * ) + - 24 / COUNT ( * ) AS col1, + COUNT ( * ) * - 23 + ( - 44 ) * 80 + 58 + + COUNT ( ALL + 3 ) - 44 * - - CASE + ( + + 78 ) WHEN + 11 * + - 96 THEN 67 * - 3 + COALESCE ( 95, - 26 ) - 89 + CAST ( NULL AS INTEGER ) / + COUNT ( * ) * - - COUNT ( * ) * + CASE - - 21 WHEN 19 * 62 THEN COALESCE ( + 87, - 19 * - 41 + + 1 ) ELSE NULL END * 4 + + 27 * - CAST ( NULL AS REAL ) * 76 WHEN + 28 * - 1 THEN NULL END * 18 + + 5 / NULLIF ( - 42, 50 + + 13 )
----
-52
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6624
SELECT - 3 * - - CAST( NULL AS SIGNED ) + NULLIF ( - 14, + ( - + 2 ) - 11 * - 50 ) + 5 / - 80 / + - 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6624
SELECT - 3 * - - CAST ( NULL AS INTEGER ) + NULLIF ( - 14, + ( - + 2 ) - 11 * - 50 ) + 5 / - 80 / + - 19 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6625
SELECT - CAST( NULL AS SIGNED ) - MIN( + 15 ) - + 69 + - 41 * + 32 / 11 / - - ( 85 ) + + 29 - + 68 + - COUNT( * ) + + + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6625
SELECT - CAST ( NULL AS INTEGER ) - MIN ( + 15 ) - + 69 + - 41 * + 32 / 11 / - - ( 85 ) + + 29 - + 68 + - COUNT ( * ) + + + 50 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6626
SELECT ALL COUNT( + 98 ) AS col0, 2 * + 37 AS col1
----
1
74

skipif mysql # not compatible
query II rowsort label-6626
SELECT ALL COUNT ( + 98 ) AS col0, 2 * + 37 AS col1
----
1
74

query I rowsort
SELECT DISTINCT + + 36 * - + 96 col1
----
-3456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6628
SELECT DISTINCT CAST( - 70 AS SIGNED ) + - 60
----
-130

skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT CAST ( - 70 AS INTEGER ) + - 60
----
-130

query I rowsort
SELECT - - 64 + + 54 + - 91 AS col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6630
SELECT ALL + 53 * - - CAST( 6 AS SIGNED )
----
318

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL + 53 * - - CAST ( 6 AS INTEGER )
----
318

query I rowsort
SELECT ALL 85 + 41 AS col0
----
126

query I rowsort
SELECT + 69 + 15 * + 83 + - + 24
----
1290

query I rowsort
SELECT + 73 * 25 AS col1
----
1825

query I rowsort
SELECT ALL + 86 * - 83
----
-7138

query I rowsort
SELECT - 86 + - + 85 + - 36 * 22
----
-963

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

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

query II rowsort
SELECT - 96 AS col1, + 76 AS col0
----
-96
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT ALL + SUM( DISTINCT - - 52 ) + 52 + + 92 + 20 * + COALESCE ( + 70, - + 25, 62 + - SUM( DISTINCT - 93 ) + + 96 ) AS col1
----
1596

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL + SUM ( DISTINCT - - 52 ) + 52 + + 92 + 20 * + COALESCE ( + 70, - + 25, 62 + - SUM ( DISTINCT - 93 ) + + 96 ) AS col1
----
1596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6639
SELECT - CAST( + COALESCE ( + CAST( NULL AS SIGNED ), CAST( - - COUNT( - 22 ) AS SIGNED ), - + 51 ) AS SIGNED ) + 18 + + 66
----
83

skipif mysql # not compatible
query I rowsort label-6639
SELECT - CAST ( + COALESCE ( + CAST ( NULL AS INTEGER ), CAST ( - - COUNT ( - 22 ) AS INTEGER ), - + 51 ) AS INTEGER ) + 18 + + 66
----
83

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

query II rowsort
SELECT DISTINCT - 69 + + + 95 + - - 59 AS col1, 12 col1
----
85
12

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

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

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

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

query I rowsort
SELECT - 32 + 3 + - 73
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT DISTINCT + COUNT( 1 ) + - + 62
----
-61

skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT + COUNT ( 1 ) + - + 62
----
-61

query II rowsort
SELECT 51 * - + 65 + - 16, 66 AS col2
----
-3331
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT ALL + MAX( DISTINCT - 75 ) * + 55 * + 21 AS col1
----
-86625

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL + MAX ( DISTINCT - 75 ) * + 55 * + 21 AS col1
----
-86625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6648
SELECT ALL + COUNT( * ) DIV 18 - + 38 * - COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL + COUNT ( * ) / 18 - + 38 * - COUNT ( * ) AS col2
----
38

query I rowsort
SELECT - 89 * 38 AS col0
----
-3382

query II rowsort
SELECT DISTINCT + 81 AS col2, - 66
----
81
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT + ( - - COUNT( * ) ) + + 66 * SUM( + + 61 ) + + - 89
----
3938

skipif mysql # not compatible
query I rowsort label-6651
SELECT + ( - - COUNT ( * ) ) + + 66 * SUM ( + + 61 ) + + - 89
----
3938

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT + 88 * COUNT( * ) * - + 38 AS col1
----
-3344

skipif mysql # not compatible
query I rowsort label-6652
SELECT + 88 * COUNT ( * ) * - + 38 AS col1
----
-3344

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

skipif mysql # not compatible
query I rowsort label-6653
SELECT + - MIN ( - + 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT + 43 * 25 * - + 83 * NULLIF ( + + 22, - 95 ) * + 93 + - MAX( + - NULLIF ( 14, - 24 ) ) * 25 + - 62 - - - 30 * - 46 * - + 31 col0
----
-182596842

skipif mysql # not compatible
query I rowsort label-6654
SELECT + 43 * 25 * - + 83 * NULLIF ( + + 22, - 95 ) * + 93 + - MAX ( + - NULLIF ( 14, - 24 ) ) * 25 + - 62 - - - 30 * - 46 * - + 31 col0
----
-182596842

query I rowsort
SELECT - - 18 * - 75
----
-1350

query I rowsort
SELECT - 55 * + 66 AS col1
----
-3630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6657
SELECT 54 * - - CAST( NULL AS SIGNED ) + ( - 42 ) * 25 / + - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT 54 * - - CAST ( NULL AS INTEGER ) + ( - 42 ) * 25 / + - 2 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6659
SELECT ALL 59 * - CAST( NULL AS SIGNED ) + AVG ( DISTINCT + + 84 ) + - + MAX( + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL 59 * - CAST ( NULL AS INTEGER ) + AVG ( DISTINCT + + 84 ) + - + MAX ( + 78 )
----
NULL

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

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

query I rowsort
SELECT DISTINCT + - 48 * + 90 + + 51 AS col2
----
-4269

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT + 4 * CASE - - MIN( - 50 ) WHEN COALESCE ( 84, + 25 ) * - + MAX( DISTINCT + + 67 ) THEN 55 ELSE - - CASE WHEN NOT NULL > - 99 THEN + 40 * - 50 END END * - 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6662
SELECT + 4 * CASE - - MIN ( - 50 ) WHEN COALESCE ( 84, + 25 ) * - + MAX ( DISTINCT + + 67 ) THEN 55 ELSE - - CASE WHEN NOT NULL > - 99 THEN + 40 * - 50 END END * - 3 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT COUNT( * ) - + - ( COUNT( * ) ) - 96 * + - 46 + + 93 AS col2
----
4511

skipif mysql # not compatible
query I rowsort label-6664
SELECT COUNT ( * ) - + - ( COUNT ( * ) ) - 96 * + - 46 + + 93 AS col2
----
4511

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT DISTINCT 1 + - 97 - 51 - + 15 * + - MAX( ALL - 26 )
----
-537

skipif mysql # not compatible
query I rowsort label-6665
SELECT DISTINCT 1 + - 97 - 51 - + 15 * + - MAX ( ALL - 26 )
----
-537

query II rowsort
SELECT - 85 AS col2, - 21 * - + 40
----
-85
840

query I rowsort
SELECT 95 + + 19
----
114

query II rowsort
SELECT ALL 98 + + 3 AS col1, 66 * + - ( + 80 ) - - 37
----
101
-5243

query I rowsort
SELECT ALL 56 + + 53 AS col1
----
109

query II rowsort
SELECT ALL 41, - NULLIF ( - 91, + 15 * - - 55 ) + - 92 + + 25 AS col0
----
41
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6671
SELECT CAST( 10 AS SIGNED ) * + 94 * + CAST( - 50 AS SIGNED ) * - MAX( DISTINCT 48 ) * + 44 AS col1
----
99264000

skipif mysql # not compatible
query I rowsort label-6671
SELECT CAST ( 10 AS INTEGER ) * + 94 * + CAST ( - 50 AS INTEGER ) * - MAX ( DISTINCT 48 ) * + 44 AS col1
----
99264000

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT ALL + 55 * 8 * - NULLIF ( + + 30, + COUNT( * ) ) col0
----
-13200

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL + 55 * 8 * - NULLIF ( + + 30, + COUNT ( * ) ) col0
----
-13200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6673
SELECT ALL 62 + + 34 + - 28 * + COUNT( * ) DIV 29 DIV + - 90
----
96

skipif mysql # not compatible
query I rowsort label-6673
SELECT ALL 62 + + 34 + - 28 * + COUNT ( * ) / 29 / + - 90
----
96

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

skipif mysql # not compatible
query II rowsort label-6674
SELECT - 52 AS col0, MAX ( 23 ) AS col2
----
-52
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT ALL + MIN( DISTINCT + ( + 73 ) ) - + ( - 41 )
----
114

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL + MIN ( DISTINCT + ( + 73 ) ) - + ( - 41 )
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT 69 * - NULLIF ( - MIN( + + NULLIF ( - 25, - 59 ) ), + 73 + - - COUNT( DISTINCT + 87 ) + - 98 * + 40 * - + 44 ) AS col2
----
-1725

skipif mysql # not compatible
query I rowsort label-6676
SELECT 69 * - NULLIF ( - MIN ( + + NULLIF ( - 25, - 59 ) ), + 73 + - - COUNT ( DISTINCT + 87 ) + - 98 * + 40 * - + 44 ) AS col2
----
-1725

query I rowsort
SELECT 4 * 1
----
4

query I rowsort
SELECT 11 + - 10
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6679
SELECT 15 AS col0, - CAST( - - 10 AS SIGNED ) + - + 37 col1
----
15
-47

skipif mysql # not compatible
query II rowsort label-6679
SELECT 15 AS col0, - CAST ( - - 10 AS INTEGER ) + - + 37 col1
----
15
-47

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

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

query I rowsort
SELECT 94 * + + ( - 15 )
----
-1410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6682
SELECT ALL 19 AS col2, 89 + 16 + - + NULLIF ( - - 12, - + 38 + + 91 - CAST( - 19 AS SIGNED ) * 33 * 13 + + 52 ) - - + COUNT( * ) * 24 AS col0
----
19
117

skipif mysql # not compatible
query II rowsort label-6682
SELECT ALL 19 AS col2, 89 + 16 + - + NULLIF ( - - 12, - + 38 + + 91 - CAST ( - 19 AS INTEGER ) * 33 * 13 + + 52 ) - - + COUNT ( * ) * 24 AS col0
----
19
117

onlyif mysql # DIV for integer division: 
query I rowsort label-6683
SELECT 0 DIV + 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6683
SELECT 0 / + 61 AS col2
----
0

query I rowsort
SELECT DISTINCT 96 * 71 * NULLIF ( - 56, NULLIF ( - 83, + 62 * - - 65 / + + 70 ) ) * 95 AS col1
----
-36261120

query II rowsort
SELECT ALL 28 AS col0, + 77 + + 51
----
28
128

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

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

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

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

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

query II rowsort
SELECT + 3, + 82 AS col1
----
3
82

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

skipif mysql # not compatible
query I rowsort label-6690
SELECT + COUNT ( * ) / + ( - 35 ) + 47 AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6691
SELECT + CAST( NULL AS SIGNED ) AS col1, COUNT( * ) * + 85 * + - 39 AS col2
----
NULL
-3315

skipif mysql # not compatible
query II rowsort label-6691
SELECT + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * + 85 * + - 39 AS col2
----
NULL
-3315

query II rowsort
SELECT ALL - + 78 AS col0, 75
----
-78
75

query II rowsort
SELECT + - 15, + 80 col0
----
-15
80

query II rowsort
SELECT ALL - - 18 AS col0, - 99 + 13 AS col0
----
18
-86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT ALL 6 + CASE + 3 WHEN - 23 THEN NULL ELSE - COUNT( * ) END
----
5

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL 6 + CASE + 3 WHEN - 23 THEN NULL ELSE - COUNT ( * ) END
----
5

query I rowsort
SELECT - 75 + - - 93 AS col2
----
18

query I rowsort
SELECT - CASE - ( + 85 ) WHEN + 67 THEN NULL ELSE - - 19 END
----
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT ( + 26 ) + + 84 - - COUNT( * ) + - 19
----
92

skipif mysql # not compatible
query I rowsort label-6700
SELECT ( + 26 ) + + 84 - - COUNT ( * ) + - 19
----
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6701
SELECT + 33 AS col0, + 21 * + - CASE AVG ( 68 ) WHEN + - AVG ( - + 87 ) + + - 9 * 58 / - 46 * + - CAST( + - 93 AS DECIMAL ) - - MAX( - - 63 ) + + 93 THEN - - 80 * + MIN( + 74 ) * - 72 - - 82 ELSE + 7 END
----
33
-147

skipif mysql # not compatible
query II rowsort label-6701
SELECT + 33 AS col0, + 21 * + - CASE AVG ( 68 ) WHEN + - AVG ( - + 87 ) + + - 9 * 58 / - 46 * + - CAST ( + - 93 AS REAL ) - - MAX ( - - 63 ) + + 93 THEN - - 80 * + MIN ( + 74 ) * - 72 - - 82 ELSE + 7 END
----
33
-147

query I rowsort
SELECT DISTINCT 4 + 52
----
56

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

skipif mysql # not compatible
query I rowsort label-6703
SELECT 79 + + + 94 * COUNT ( * ) AS col2
----
173

query I rowsort
SELECT ( + 48 ) + 3
----
51

query I rowsort
SELECT 75 + + 27 + - 83
----
19

query II rowsort
SELECT 78 * - - 68 * 40 AS col2, + 8 AS col0
----
212160
8

query I rowsort
SELECT 14 * + + 99 col1
----
1386

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6708
SELECT 85 + - 56 AS col1, 72 * + 40 + + + CAST( NULL AS DECIMAL ) + - + 66 + COUNT( DISTINCT + 91 ) + 89 + 36 / + 52 * - - 93 * 87 / - COALESCE ( 85, COUNT( * ) ) * + - 55
----
29
NULL

skipif mysql # not compatible
query II rowsort label-6708
SELECT 85 + - 56 AS col1, 72 * + 40 + + + CAST ( NULL AS REAL ) + - + 66 + COUNT ( DISTINCT + 91 ) + 89 + 36 / + 52 * - - 93 * 87 / - COALESCE ( 85, COUNT ( * ) ) * + - 55
----
29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT SUM( ALL + 77 ) + 51 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-6709
SELECT SUM ( ALL + 77 ) + 51 AS col2
----
128

query I rowsort
SELECT 4 * 10
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT 10 + - 34 * + 0 * - COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-6711
SELECT 10 + - 34 * + 0 * - COUNT ( * ) AS col1
----
10

query I rowsort
SELECT DISTINCT 78 * - 79 AS col1
----
-6162

query I rowsort
SELECT ( - 8 ) + + + ( + 51 ) AS col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6714
SELECT COALESCE ( + COUNT( * ), - 84 * - COUNT( * ) ) * + 71 * + CAST( - 13 AS SIGNED ) col1
----
-923

skipif mysql # not compatible
query I rowsort label-6714
SELECT COALESCE ( + COUNT ( * ), - 84 * - COUNT ( * ) ) * + 71 * + CAST ( - 13 AS INTEGER ) col1
----
-923

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6715
SELECT 39 + + COUNT( * ) + 34 DIV + 9
----
43

skipif mysql # not compatible
query I rowsort label-6715
SELECT 39 + + COUNT ( * ) + 34 / + 9
----
43

query I rowsort
SELECT + 10 * + - 95 * + 62 + - 56
----
-58956

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT - 23 * 51 - - COUNT( * ) * + 98
----
-1075

skipif mysql # not compatible
query I rowsort label-6717
SELECT - 23 * 51 - - COUNT ( * ) * + 98
----
-1075

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

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

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

query II rowsort
SELECT + NULLIF ( ( - + ( ( - 75 ) ) ), 88 * - 3 ) AS col0, 17 col1
----
75
17

query I rowsort
SELECT - NULLIF ( 33, + 21 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6722
SELECT - CAST( + COUNT( * ) AS SIGNED ) col1, 81
----
-1
81

skipif mysql # not compatible
query II rowsort label-6722
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) col1, 81
----
-1
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6723
SELECT ALL NULLIF ( - - 97, - 52 * - 64 / + COUNT( * ) + - NULLIF ( - - 24, + - 38 ) ) * - 69 + + - 77 * 75 + - 99 + 99 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6723
SELECT ALL NULLIF ( - - 97, - 52 * - 64 / + COUNT ( * ) + - NULLIF ( - - 24, + - 38 ) ) * - 69 + + - 77 * 75 + - 99 + 99 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6724
SELECT + - 91 * + 54 * + - CAST( NULL AS SIGNED ) * 87 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6724
SELECT + - 91 * + 54 * + - CAST ( NULL AS INTEGER ) * 87 col1
----
NULL

query I rowsort
SELECT - 23 + 8
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6726
SELECT ALL 0 * - CAST( 30 AS SIGNED ) - 0 - - 6 + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) * - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL 0 * - CAST ( 30 AS INTEGER ) - 0 - - 6 + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT - MAX( DISTINCT + + 13 ) * + + 51 + - 77 * - 47 AS col1
----
2956

skipif mysql # not compatible
query I rowsort label-6727
SELECT - MAX ( DISTINCT + + 13 ) * + + 51 + - 77 * - 47 AS col1
----
2956

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

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL - + 75 * + 3 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 57 * - 65 - 21
----
3684

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6731
SELECT - COUNT( * ) DIV + 65 * + 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6731
SELECT - COUNT ( * ) / + 65 * + 39 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT ALL - 64 - + 52 + 0 + COUNT( * )
----
-115

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL - 64 - + 52 + 0 + COUNT ( * )
----
-115

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6734
SELECT COUNT( * ) col1, ( - - 12 ) * + 57 col0
----
1
684

skipif mysql # not compatible
query II rowsort label-6734
SELECT COUNT ( * ) col1, ( - - 12 ) * + 57 col0
----
1
684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6735
SELECT ALL CASE + 89 WHEN 64 * + + CASE - 56 WHEN - 88 THEN + + 49 / 0 * - 91 + + NULLIF ( - COUNT( * ), 36 ) + + 41 * 77 * + 30 * + + NULLIF ( - CAST( 81 AS SIGNED ), 5 ) * - ( 7 ) + + 55 END THEN SUM( ALL + - 44 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL CASE + 89 WHEN 64 * + + CASE - 56 WHEN - 88 THEN + + 49 / 0 * - 91 + + NULLIF ( - COUNT ( * ), 36 ) + + 41 * 77 * + 30 * + + NULLIF ( - CAST ( 81 AS INTEGER ), 5 ) * - ( 7 ) + + 55 END THEN SUM ( ALL + - 44 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6736
SELECT ( + ( + COUNT( + ( - CAST( NULL AS SIGNED ) ) ) ) ) * - 20 - + 12 + + 78 * 26, 96 * - + 95 col1
----
2016
-9120

skipif mysql # not compatible
query II rowsort label-6736
SELECT ( + ( + COUNT ( + ( - CAST ( NULL AS INTEGER ) ) ) ) ) * - 20 - + 12 + + 78 * 26, 96 * - + 95 col1
----
2016
-9120

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6738
SELECT DISTINCT + 20 DIV + 6 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6738
SELECT DISTINCT + 20 / + 6 AS col0
----
3

query I rowsort
SELECT + 79 + + 37 * - 84 AS col0
----
-3029

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6741
SELECT DISTINCT CASE CASE - - 74 WHEN COUNT( * ) THEN 4 * - - 60 + + 36 + 28 ELSE ( COALESCE ( - ( - + 8 ), + - 19 ) ) - + CAST( COUNT( * ) AS SIGNED ) END WHEN - COUNT( * ) THEN + 18 * 52 - + + 37 + + 31 + - + 83 ELSE NULL END AS col2, 97 * - 13 * COUNT( * ) * + 50
----
NULL
-63050

skipif mysql # not compatible
query II rowsort label-6741
SELECT DISTINCT CASE CASE - - 74 WHEN COUNT ( * ) THEN 4 * - - 60 + + 36 + 28 ELSE ( COALESCE ( - ( - + 8 ), + - 19 ) ) - + CAST ( COUNT ( * ) AS INTEGER ) END WHEN - COUNT ( * ) THEN + 18 * 52 - + + 37 + + 31 + - + 83 ELSE NULL END AS col2, 97 * - 13 * COUNT ( * ) * + 50
----
NULL
-63050

query I rowsort
SELECT ALL 37 * - 59 AS col2
----
-2183

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT DISTINCT 54 * ( - CASE + MIN( 42 ) WHEN - NULLIF ( + COUNT( - - 63 ), - 95 ) THEN AVG ( + 9 ) * 30 ELSE NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6743
SELECT DISTINCT 54 * ( - CASE + MIN ( 42 ) WHEN - NULLIF ( + COUNT ( - - 63 ), - 95 ) THEN AVG ( + 9 ) * 30 ELSE NULL END ) col2
----
NULL

query I rowsort
SELECT + 95 * + 34 AS col0
----
3230

query I rowsort
SELECT ALL 1 + + 37 AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6746
SELECT ALL NULLIF ( - + 47, + 69 * - MIN( + CAST( NULL AS SIGNED ) ) + + MIN( DISTINCT - ( 52 ) ) * COUNT( * ) * + - 8 ) + - 96 * - 33
----
3121

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL NULLIF ( - + 47, + 69 * - MIN ( + CAST ( NULL AS INTEGER ) ) + + MIN ( DISTINCT - ( 52 ) ) * COUNT ( * ) * + - 8 ) + - 96 * - 33
----
3121

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT ALL + MIN( 99 ) + + COUNT( * ) * - + 70
----
29

skipif mysql # not compatible
query I rowsort label-6747
SELECT ALL + MIN ( 99 ) + + COUNT ( * ) * - + 70
----
29

query I rowsort
SELECT ALL - 86 + - + 16
----
-102

query I rowsort
SELECT ALL 83 * - - 48
----
3984

onlyif mysql # DIV for integer division: 
query I rowsort label-6750
SELECT DISTINCT 22 DIV - + 89 * + 76
----
0

skipif mysql # not compatible
query I rowsort label-6750
SELECT DISTINCT 22 / - + 89 * + 76
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6751
SELECT CAST( 45 AS SIGNED ) DIV - 76 + + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6751
SELECT CAST ( 45 AS INTEGER ) / - 76 + + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT ALL COUNT( * ) * 80 + 27
----
107

skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL COUNT ( * ) * 80 + 27
----
107

query I rowsort
SELECT + 10 + + 88 AS col0
----
98

query I rowsort
SELECT - 93 * 40 AS col1
----
-3720

query II rowsort
SELECT DISTINCT + 72 col1, - 56 + + 36
----
72
-20

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

skipif mysql # not compatible
query I rowsort label-6756
SELECT + 77 / COUNT ( * ) * - CAST ( NULL AS INTEGER ) * 53 + - 85 col1
----
NULL

query I rowsort
SELECT ALL COALESCE ( - + 12, - 27 ) * 72
----
-864

onlyif mysql # DIV for integer division: 
query I rowsort label-6758
SELECT + + 54 DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-6758
SELECT + + 54 / - 58
----
0

query I rowsort
SELECT DISTINCT 18 * + 46 * - - 53 - - + 50
----
43934

query I rowsort
SELECT ALL + 73 * + - 76
----
-5548

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

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

query I rowsort
SELECT COALESCE ( + 58, - 75 ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT ALL + COALESCE ( ( + 63 ), + MIN( DISTINCT - - 59 ) * 13, + + 2 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL + COALESCE ( ( + 63 ), + MIN ( DISTINCT - - 59 ) * 13, + + 2 ) AS col1
----
63

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6765
SELECT NULLIF ( + - 18, + + 51 ) * - 3 + + ( CAST( + 89 AS SIGNED ) ) + + COUNT( DISTINCT + ( 81 ) ) * + 75 * 85 * + 61 * + COUNT( * ) + + 50 AS col2, COUNT( * ) AS col2
----
389068
1

skipif mysql # not compatible
query II rowsort label-6765
SELECT NULLIF ( + - 18, + + 51 ) * - 3 + + ( CAST ( + 89 AS INTEGER ) ) + + COUNT ( DISTINCT + ( 81 ) ) * + 75 * 85 * + 61 * + COUNT ( * ) + + 50 AS col2, COUNT ( * ) AS col2
----
389068
1

query I rowsort
SELECT - 61 - - + 82
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT - 79 * + + MAX( DISTINCT - 8 ) AS col2
----
632

skipif mysql # not compatible
query I rowsort label-6767
SELECT - 79 * + + MAX ( DISTINCT - 8 ) AS col2
----
632

query I rowsort
SELECT ALL + 6 * + + 32 AS col1
----
192

query I rowsort
SELECT - 2 + - - ( 92 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT DISTINCT + COUNT( * ) * + + 37 col2
----
37

skipif mysql # not compatible
query I rowsort label-6770
SELECT DISTINCT + COUNT ( * ) * + + 37 col2
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-6771
SELECT ALL - 98 * + COUNT( * ) * - 92 + + 6 col2, ( - 53 ) * - 39 + 28 AS col1
----
9022
2095

skipif mysql # not compatible
query II rowsort label-6771
SELECT ALL - 98 * + COUNT ( * ) * - 92 + + 6 col2, ( - 53 ) * - 39 + 28 AS col1
----
9022
2095

query I rowsort
SELECT - 31 + 28 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT - MAX( ALL - + 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-6773
SELECT - MAX ( ALL - + 33 ) AS col2
----
33

query I rowsort
SELECT - 7 + + 41
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-6775
SELECT - COUNT( * ) - - 41 AS col0, + 53
----
40
53

skipif mysql # not compatible
query II rowsort label-6775
SELECT - COUNT ( * ) - - 41 AS col0, + 53
----
40
53

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

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

query I rowsort
SELECT - 83 + + + 85 - + 56 * - 76 * - 19 AS col0
----
-80862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6778
SELECT - COALESCE ( 42, 47 * + 26 * 89 - + 14 * - - 19 + - COALESCE ( MIN( ALL - 52 ), 30 ) + - + COUNT( * ) * - 53 + NULLIF ( CAST( NULL AS SIGNED ), + CASE - NULLIF ( - + 25, - 19 + + CASE MAX( DISTINCT - 62 ) WHEN + 88 * + - ( + COUNT( * ) ) DIV + COUNT( * ) * + 56 * - 76 DIV CASE ( - - 97 ) WHEN + MAX( ALL + - 26 ) DIV 67 + - COUNT( * ) - + 61 THEN 20 DIV - - 44 WHEN - 48 * 55 + - 51 THEN - 22 * + 9 + + 79 ELSE NULL END * 21 + - 88 DIV 74 THEN + 16 * + CAST( NULL AS SIGNED ) + ( + 83 ) WHEN 86 THEN NULL END + 23 DIV 78 ) WHEN + 62 * 2 THEN + 82 * + COUNT( * ) ELSE 21 END * + CAST( 44 * - 77 AS SIGNED ) ), COUNT( * ) * 18 + 58 * + 20, - 23 DIV + CAST( NULL AS SIGNED ) ) col1
----
-42

skipif mysql # not compatible
query I rowsort label-6778
SELECT - COALESCE ( 42, 47 * + 26 * 89 - + 14 * - - 19 + - COALESCE ( MIN ( ALL - 52 ), 30 ) + - + COUNT ( * ) * - 53 + NULLIF ( CAST ( NULL AS INTEGER ), + CASE - NULLIF ( - + 25, - 19 + + CASE MAX ( DISTINCT - 62 ) WHEN + 88 * + - ( + COUNT ( * ) ) / + COUNT ( * ) * + 56 * - 76 / CASE ( - - 97 ) WHEN + MAX ( ALL + - 26 ) / 67 + - COUNT ( * ) - + 61 THEN 20 / - - 44 WHEN - 48 * 55 + - 51 THEN - 22 * + 9 + + 79 ELSE NULL END * 21 + - 88 / 74 THEN + 16 * + CAST ( NULL AS INTEGER ) + ( + 83 ) WHEN 86 THEN NULL END + 23 / 78 ) WHEN + 62 * 2 THEN + 82 * + COUNT ( * ) ELSE 21 END * + CAST ( 44 * - 77 AS INTEGER ) ), COUNT ( * ) * 18 + 58 * + 20, - 23 / + CAST ( NULL AS INTEGER ) ) col1
----
-42

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6781
SELECT - NULLIF ( + 39, + + CASE - 30 WHEN + CAST( NULL AS SIGNED ) * - 92 THEN - - 8 + CASE + + CAST( NULL AS SIGNED ) WHEN + MAX( 15 ) THEN NULL WHEN - - 3 THEN - 37 ELSE + - 73 + - 82 + + 49 + 30 * CAST( - 34 AS SIGNED ) / + COUNT( * ) END END )
----
-39

skipif mysql # not compatible
query I rowsort label-6781
SELECT - NULLIF ( + 39, + + CASE - 30 WHEN + CAST ( NULL AS INTEGER ) * - 92 THEN - - 8 + CASE + + CAST ( NULL AS INTEGER ) WHEN + MAX ( 15 ) THEN NULL WHEN - - 3 THEN - 37 ELSE + - 73 + - 82 + + 49 + 30 * CAST ( - 34 AS INTEGER ) / + COUNT ( * ) END END )
----
-39

query I rowsort
SELECT ALL - 90 + + 32 col2
----
-58

query I rowsort
SELECT - - 84 + + 89 AS col2
----
173

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

query I rowsort
SELECT - 28 + + 88 AS col1
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6786
SELECT ALL 67 + 9 DIV - COUNT( * ) col0
----
58

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL 67 + 9 / - COUNT ( * ) col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT ALL - 40 * + COUNT( * ) + 56 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL - 40 * + COUNT ( * ) + 56 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT 59 + ( ( + 92 ) ) - - COUNT( * ) * + MIN( - 56 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-6788
SELECT 59 + ( ( + 92 ) ) - - COUNT ( * ) * + MIN ( - 56 ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT ALL - - 8 + CASE 84 WHEN + 65 THEN NULL WHEN + 61 THEN - - NULLIF ( - MIN( DISTINCT + 13 ), - + COUNT( * ) ) + + 10 ELSE + + COUNT( * ) + + - 35 END
----
-26

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL - - 8 + CASE 84 WHEN + 65 THEN NULL WHEN + 61 THEN - - NULLIF ( - MIN ( DISTINCT + 13 ), - + COUNT ( * ) ) + + 10 ELSE + + COUNT ( * ) + + - 35 END
----
-26

query I rowsort
SELECT DISTINCT - 96 - + 41 * 76 AS col1
----
-3212

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT COUNT( * ) * 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-6791
SELECT COUNT ( * ) * 82 AS col2
----
82

query I rowsort
SELECT DISTINCT - 55 - + + 9 * - + 8
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6793
SELECT DISTINCT + CAST( + CASE - AVG ( - 96 ) WHEN + 31 THEN + + 68 WHEN + - 23 THEN NULL END AS SIGNED ) * + 56 * COALESCE ( - + 10, + - 24 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6793
SELECT DISTINCT + CAST ( + CASE - AVG ( - 96 ) WHEN + 31 THEN + + 68 WHEN + - 23 THEN NULL END AS INTEGER ) * + 56 * COALESCE ( - + 10, + - 24 ) AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6795
SELECT ALL 41 DIV - 96, - 67 AS col1
----
0
-67

skipif mysql # not compatible
query II rowsort label-6795
SELECT ALL 41 / - 96, - 67 AS col1
----
0
-67

query II rowsort
SELECT + 34 AS col1, 95 AS col1
----
34
95

query I rowsort
SELECT ( 29 ) * + + 93 AS col0
----
2697

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6799
SELECT ALL - 74 + - 62 + CAST( NULL AS SIGNED ) * + 99 * - 47 * - CAST( + - 65 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL - 74 + - 62 + CAST ( NULL AS INTEGER ) * + 99 * - 47 * - CAST ( + - 65 AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT DISTINCT - CASE + 20 WHEN + 47 THEN NULL ELSE - - 77 + - COUNT( * ) * + 81 END + + - 17 - + + ( + + 75 )
----
-88

skipif mysql # not compatible
query I rowsort label-6800
SELECT DISTINCT - CASE + 20 WHEN + 47 THEN NULL ELSE - - 77 + - COUNT ( * ) * + 81 END + + - 17 - + + ( + + 75 )
----
-88

query I rowsort
SELECT 29 * - 55 col2
----
-1595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6802
SELECT - NULLIF ( - + CASE + NULLIF ( - - 55, - 48 ) WHEN + + 77 THEN - 71 WHEN + + 72 * - COUNT( * ) THEN NULL END, CAST( + COUNT( * ) AS SIGNED ) + - - 39 + + COALESCE ( 11, 25 ) + - 55 + + 70 + + 90 * + 19 / + 80 * + 91 * 77 ) * - ( + - 38 ) + - 80 * + + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6802
SELECT - NULLIF ( - + CASE + NULLIF ( - - 55, - 48 ) WHEN + + 77 THEN - 71 WHEN + + 72 * - COUNT ( * ) THEN NULL END, CAST ( + COUNT ( * ) AS INTEGER ) + - - 39 + + COALESCE ( 11, 25 ) + - 55 + + 70 + + 90 * + 19 / + 80 * + 91 * 77 ) * - ( + - 38 ) + - 80 * + + 49 AS col0
----
NULL

query I rowsort
SELECT ( 96 ) * 37 AS col1
----
3552

query I rowsort
SELECT 55 + + - 97
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-6805
SELECT - 21 AS col1, + NULLIF ( + + 15, - COUNT( * ) ) * + - 12 AS col1
----
-21
-180

skipif mysql # not compatible
query II rowsort label-6805
SELECT - 21 AS col1, + NULLIF ( + + 15, - COUNT ( * ) ) * + - 12 AS col1
----
-21
-180

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6806
SELECT DISTINCT + 85 * MAX( DISTINCT 96 ) AS col0, + CAST( NULL AS DECIMAL ) AS col0
----
8160
NULL

skipif mysql # not compatible
query II rowsort label-6806
SELECT DISTINCT + 85 * MAX ( DISTINCT 96 ) AS col0, + CAST ( NULL AS REAL ) AS col0
----
8160
NULL

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

query II rowsort
SELECT 2 AS col1, 94 AS col2
----
2
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT 45 * - 49 * - CASE + COUNT( * ) WHEN - 8 * - + 43 THEN - - 55 / - 80 * - 40 WHEN - 27 THEN 28 / - 30 / - 99 / - COUNT( ALL 39 ) / + 5 END * + 97 + 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6809
SELECT 45 * - 49 * - CASE + COUNT ( * ) WHEN - 8 * - + 43 THEN - - 55 / - 80 * - 40 WHEN - 27 THEN 28 / - 30 / - 99 / - COUNT ( ALL 39 ) / + 5 END * + 97 + 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT + 3 - + COUNT( - 48 ) * - CASE + 78 WHEN 99 - - - 60 * + 50 * - 99 THEN - 11 + - COUNT( * ) * + 70 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6810
SELECT + 3 - + COUNT ( - 48 ) * - CASE + 78 WHEN 99 - - - 60 * + 50 * - 99 THEN - 11 + - COUNT ( * ) * + 70 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 92 * 31
----
-2852

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6812
SELECT DISTINCT - + 48 + + CASE - 6 WHEN + 70 * + - COUNT( * ) * 47 * + 61 * + COUNT( * ) + 4 THEN NULL WHEN 24 DIV MAX( DISTINCT - 58 ) + - + 91 THEN NULL ELSE 14 END + NULLIF ( + - COUNT( * ), COUNT( * ) + 39 ) + + - COUNT( * ) DIV ( 20 ) + - 81 + - 31 * SUM( ALL 16 ) - - 73 * + 26
----
1286

skipif mysql # not compatible
query I rowsort label-6812
SELECT DISTINCT - + 48 + + CASE - 6 WHEN + 70 * + - COUNT ( * ) * 47 * + 61 * + COUNT ( * ) + 4 THEN NULL WHEN 24 / MAX ( DISTINCT - 58 ) + - + 91 THEN NULL ELSE 14 END + NULLIF ( + - COUNT ( * ), COUNT ( * ) + 39 ) + + - COUNT ( * ) / ( 20 ) + - 81 + - 31 * SUM ( ALL 16 ) - - 73 * + 26
----
1286

query I rowsort
SELECT ALL + ( - + 13 ) * + 22 + - 66
----
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT + 53 * - ( - COUNT( DISTINCT - ( - 49 ) ) )
----
53

skipif mysql # not compatible
query I rowsort label-6814
SELECT + 53 * - ( - COUNT ( DISTINCT - ( - 49 ) ) )
----
53

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6816
SELECT DISTINCT - - COUNT( * ) DIV 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6816
SELECT DISTINCT - - COUNT ( * ) / 18 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT 84 - - - COUNT( 43 ) + + 80
----
163

skipif mysql # not compatible
query I rowsort label-6817
SELECT 84 - - - COUNT ( 43 ) + + 80
----
163

query I rowsort
SELECT + 19 * - + 76 - + + 46
----
-1490

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT ALL 68 * - SUM( - 97 ) AS col2
----
6596

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL 68 * - SUM ( - 97 ) AS col2
----
6596

onlyif mysql # DIV for integer division: 
query I rowsort label-6820
SELECT DISTINCT - 15 DIV + - 2 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT - 15 / + - 2 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT ALL - MAX( ALL 14 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL - MAX ( ALL 14 ) AS col2
----
-14

query I rowsort
SELECT - 69 * + 91 AS col0
----
-6279

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT ALL + - CASE + ( - 59 ) WHEN 9 + + + COUNT( * ) THEN 9 + - - 60 ELSE NULL END * + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL + - CASE + ( - 59 ) WHEN 9 + + + COUNT ( * ) THEN 9 + - - 60 ELSE NULL END * + 50 AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( + + 81, + 22 + 45 ) * + + 84
----
-6804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6826
SELECT COALESCE ( - 62, + 87 ) * + + 24 / AVG ( DISTINCT + - 89 ) + 85 + + CAST( NULL AS SIGNED ) + 69 * + COUNT( * ) + - 49 / - + 52 / - ( - 31 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6826
SELECT COALESCE ( - 62, + 87 ) * + + 24 / AVG ( DISTINCT + - 89 ) + 85 + + CAST ( NULL AS INTEGER ) + 69 * + COUNT ( * ) + - 49 / - + 52 / - ( - 31 ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT MAX( - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-6827
SELECT MAX ( - 37 )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6828
SELECT + 90, + 46 + COALESCE ( + 24, + 63 * + 34 + - + 45, + 44 * 7, + 76 + - + COALESCE ( 19, - - 26 + - + CASE - CAST( NULL AS SIGNED ) WHEN + - MIN( - 81 ) * - 12 THEN 4 WHEN + 50 THEN NULL END + + 16 * - ( 23 ) ) ) AS col0
----
90
70

skipif mysql # not compatible
query II rowsort label-6828
SELECT + 90, + 46 + COALESCE ( + 24, + 63 * + 34 + - + 45, + 44 * 7, + 76 + - + COALESCE ( 19, - - 26 + - + CASE - CAST ( NULL AS INTEGER ) WHEN + - MIN ( - 81 ) * - 12 THEN 4 WHEN + 50 THEN NULL END + + 16 * - ( 23 ) ) ) AS col0
----
90
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6829
SELECT ALL + 33 * - 18 AS col1, + CAST( + - 19 AS SIGNED )
----
-594
-19

skipif mysql # not compatible
query II rowsort label-6829
SELECT ALL + 33 * - 18 AS col1, + CAST ( + - 19 AS INTEGER )
----
-594
-19

query I rowsort
SELECT 13 + 59 AS col0
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-6831
SELECT DISTINCT + NULLIF ( - CASE WHEN NOT 25 IS NULL THEN + - COUNT( * ) ELSE NULL END, + COUNT( * ) * - 5 + + 68 ) + - 28, 2 + + + 93 AS col0
----
-27
95

skipif mysql # not compatible
query II rowsort label-6831
SELECT DISTINCT + NULLIF ( - CASE WHEN NOT 25 IS NULL THEN + - COUNT ( * ) ELSE NULL END, + COUNT ( * ) * - 5 + + 68 ) + - 28, 2 + + + 93 AS col0
----
-27
95

query I rowsort
SELECT DISTINCT - 61 + 65 + + 55 * + 33 AS col1
----
1819

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6833
SELECT - ( 95 ) * 90 + - ( CAST( + ( + - CAST( - 40 AS DECIMAL ) ) AS SIGNED ) ) + 60 AS col2
----
-8530

skipif mysql # not compatible
query I rowsort label-6833
SELECT - ( 95 ) * 90 + - ( CAST ( + ( + - CAST ( - 40 AS REAL ) ) AS INTEGER ) ) + 60 AS col2
----
-8530

onlyif mysql # DIV for integer division: 
query I rowsort label-6834
SELECT DISTINCT 43 DIV - + 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT 43 / - + 69 AS col1
----
0

query I rowsort
SELECT 13 + + + 97
----
110

query I rowsort
SELECT 48 * - 80 AS col2
----
-3840

query I rowsort
SELECT ALL 78 * + 40
----
3120

onlyif mysql # DIV for integer division: 
query I rowsort label-6838
SELECT 55 DIV + 47 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6838
SELECT 55 / + 47 AS col2
----
1

query I rowsort
SELECT ( + 61 ) + + 36 + - 62 * 88
----
-5359

query I rowsort
SELECT ALL 72 + 5 * ( + 0 ) + + 17 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT ALL 30 + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL 30 + COUNT ( * )
----
31

query I rowsort
SELECT 38 * + 61
----
2318

query I rowsort
SELECT ALL 42 * - 83 AS col1
----
-3486

onlyif mysql # DIV for integer division: 
query I rowsort label-6844
SELECT 45 DIV + 28
----
1

skipif mysql # not compatible
query I rowsort label-6844
SELECT 45 / + 28
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6845
SELECT ALL CAST( NULL AS DECIMAL ) - + + ( - - 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL CAST ( NULL AS REAL ) - + + ( - - 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT + + COALESCE ( COUNT( * ), - 15 ) * + + 86
----
86

skipif mysql # not compatible
query I rowsort label-6846
SELECT + + COALESCE ( COUNT ( * ), - 15 ) * + + 86
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT - COUNT( * ) - + + 48
----
-49

skipif mysql # not compatible
query I rowsort label-6847
SELECT - COUNT ( * ) - + + 48
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6848
SELECT + ( - + CAST( + 58 AS SIGNED ) ) + + ( - 39 ) * CAST( NULL AS SIGNED ) * - - 13 / + ( - + 32 ) * 38 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6848
SELECT + ( - + CAST ( + 58 AS INTEGER ) ) + + ( - 39 ) * CAST ( NULL AS INTEGER ) * - - 13 / + ( - + 32 ) * 38 * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + 90 * + - 44 AS col1
----
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT DISTINCT + CASE + 31 WHEN + 10 * + - ( + 81 ) + - 89 - + CASE 82 WHEN - - 56 + ( - MAX( 35 ) ) + + 71 * - 96 * - MIN( - - 52 ) * + 24 + COUNT( * ) + + - 75 - - + 26 * + 72 * - 13 THEN NULL WHEN 23 THEN NULLIF ( - COUNT( * ), - COUNT( * ) ) ELSE NULL END + 95 THEN - 37 ELSE + + 33 END
----
33

skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT + CASE + 31 WHEN + 10 * + - ( + 81 ) + - 89 - + CASE 82 WHEN - - 56 + ( - MAX ( 35 ) ) + + 71 * - 96 * - MIN ( - - 52 ) * + 24 + COUNT ( * ) + + - 75 - - + 26 * + 72 * - 13 THEN NULL WHEN 23 THEN NULLIF ( - COUNT ( * ), - COUNT ( * ) ) ELSE NULL END + 95 THEN - 37 ELSE + + 33 END
----
33

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6852
SELECT - - 66 + + - CAST( - + 70 AS SIGNED )
----
136

skipif mysql # not compatible
query I rowsort label-6852
SELECT - - 66 + + - CAST ( - + 70 AS INTEGER )
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT - + 92 + + + COUNT( * ) - - ( 93 ) + + NULLIF ( + 27, SUM( ALL + - 42 ) * - COUNT( * ) ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-6853
SELECT - + 92 + + + COUNT ( * ) - - ( 93 ) + + NULLIF ( + 27, SUM ( ALL + - 42 ) * - COUNT ( * ) ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT - - COUNT( * ) + - + 87 * + + 90 * - COUNT( * ) * - 69 AS col2
----
-540269

skipif mysql # not compatible
query I rowsort label-6854
SELECT - - COUNT ( * ) + - + 87 * + + 90 * - COUNT ( * ) * - 69 AS col2
----
-540269

onlyif mysql # aggregate syntax: 
query II rowsort label-6855
SELECT DISTINCT - 50, + 91 + + COUNT( * ) AS col2
----
-50
92

skipif mysql # not compatible
query II rowsort label-6855
SELECT DISTINCT - 50, + 91 + + COUNT ( * ) AS col2
----
-50
92

query I rowsort
SELECT + + 31 * - 12
----
-372

query I rowsort
SELECT - ( - 64 ) + + + 23 * - - 40 + - + 61
----
923

query II rowsort
SELECT ALL - 27, - 30 + 29 AS col1
----
-27
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-6859
SELECT - 20 DIV + + 73 AS col2, 25 * - - 9 * - + 32
----
0
-7200

skipif mysql # not compatible
query II rowsort label-6859
SELECT - 20 / + + 73 AS col2, 25 * - - 9 * - + 32
----
0
-7200

onlyif mysql # DIV for integer division: 
query I rowsort label-6860
SELECT ALL - 9 * 79 DIV - 48 + 69
----
83

skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL - 9 * 79 / - 48 + 69
----
83

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

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

query II rowsort
SELECT ALL 25 * 3 + 33 AS col0, + 29
----
108
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT ALL + COUNT( * ) * + - COUNT( * ) * + CASE - 1 WHEN + + COUNT( * ) THEN + 88 * + 87 WHEN + - 15 THEN NULL WHEN - 35 THEN - NULLIF ( + 58, + 94 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) * + CASE - 1 WHEN + + COUNT ( * ) THEN + 88 * + 87 WHEN + - 15 THEN NULL WHEN - 35 THEN - NULLIF ( + 58, + 94 ) END
----
NULL

query I rowsort
SELECT NULLIF ( 48, - 76 * COALESCE ( - 31, + COALESCE ( AVG ( DISTINCT 19 ), + 36, 32 * - 9 - + 23 * + + 54 ) * - + 72 + + 15 ) + + 64 ) col1
----
48

query II rowsort
SELECT ALL - 2 * + 54, ( 36 ) AS col1
----
-108
36

query I rowsort
SELECT - 43 * - 88 AS col1
----
3784

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

query I rowsort
SELECT ALL 30 * + - 60 - + 66 AS col2
----
-1866

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT COALESCE ( + 21, - 75, + COUNT( * ) * 5 + - 88, 62, + - 85 - - 4 ) col2
----
21

skipif mysql # not compatible
query I rowsort label-6869
SELECT COALESCE ( + 21, - 75, + COUNT ( * ) * 5 + - 88, 62, + - 85 - - 4 ) col2
----
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6870
SELECT ALL 24 DIV CAST( - 24 AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL 24 / CAST ( - 24 AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT + + 47 * - 17 AS col2
----
-799

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT + COUNT( * ) + 4
----
5

skipif mysql # not compatible
query I rowsort label-6872
SELECT + COUNT ( * ) + 4
----
5

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6874
SELECT + 88 * 67 AS col1, + 68 DIV + - 16 * + - 1 AS col0
----
5896
4

skipif mysql # not compatible
query II rowsort label-6874
SELECT + 88 * 67 AS col1, + 68 / + - 16 * + - 1 AS col0
----
5896
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6875
SELECT ALL - COUNT( * ) DIV + 65 * + - 42 * + 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL - COUNT ( * ) / + 65 * + - 42 * + 93 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6876
SELECT + - 21 * CAST( NULL AS SIGNED ) * - + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6876
SELECT + - 21 * CAST ( NULL AS INTEGER ) * - + 37 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL + COUNT ( ALL - + 53 ) AS col1
----
1

query I rowsort
SELECT + + 51 * 52
----
2652

query I rowsort
SELECT + + 46 * + ( + 4 ) * - 3 * COALESCE ( - 27, + 79 ) - - 20 AS col1
----
14924

query I rowsort
SELECT ALL 7 + + ( - - 66 ) + - + 65 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT + COUNT( - + 17 ) * + 93 + + 79 * + + 7
----
646

skipif mysql # not compatible
query I rowsort label-6881
SELECT + COUNT ( - + 17 ) * + 93 + + 79 * + + 7
----
646

query I rowsort
SELECT - 60 * - 90
----
5400

query I rowsort
SELECT ALL - 74 + - 69 AS col1
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT DISTINCT SUM( - + 60 ) + - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-6884
SELECT DISTINCT SUM ( - + 60 ) + - COUNT ( * )
----
-61

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6886
SELECT DISTINCT - CASE ( CAST( + 33 AS SIGNED ) ) WHEN + 10 - + 26 THEN - + 36 + + 14 / - 99 + 3 WHEN - ( - CAST( NULL AS SIGNED ) ) / - - 77 / 32 THEN - 9 / - 47 * - 88 / + - 54 END + - + 19 * + + 42 * + + CASE - SUM( DISTINCT + 80 ) WHEN 11 THEN NULL ELSE - 78 END / - 52 + - COUNT( * ) + 82 * 9 + - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6886
SELECT DISTINCT - CASE ( CAST ( + 33 AS INTEGER ) ) WHEN + 10 - + 26 THEN - + 36 + + 14 / - 99 + 3 WHEN - ( - CAST ( NULL AS INTEGER ) ) / - - 77 / 32 THEN - 9 / - 47 * - 88 / + - 54 END + - + 19 * + + 42 * + + CASE - SUM ( DISTINCT + 80 ) WHEN 11 THEN NULL ELSE - 78 END / - 52 + - COUNT ( * ) + 82 * 9 + - 53 AS col2
----
NULL

query I rowsort
SELECT + ( + CASE + 52 WHEN - + 71 THEN - 26 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6888
SELECT + 91 + + COUNT( DISTINCT + + 73 ) + 58 AS col2, - 3 DIV ( + 26 ) AS col1
----
150
0

skipif mysql # not compatible
query II rowsort label-6888
SELECT + 91 + + COUNT ( DISTINCT + + 73 ) + 58 AS col2, - 3 / ( + 26 ) AS col1
----
150
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6889
SELECT - 97 * - 51 * - CAST( NULL AS SIGNED ) * 68 * - 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6889
SELECT - 97 * - 51 * - CAST ( NULL AS INTEGER ) * 68 * - 12 AS col1
----
NULL

query I rowsort
SELECT ALL + CASE + - 86 WHEN - 74 THEN + 71 * - 59 + 9 + + - 26 + + 62 + + 30 + 13 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6891
SELECT - COUNT ( * ) / - + 85 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6892
SELECT ALL + 72 DIV 57 - + 70
----
-69

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL + 72 / 57 - + 70
----
-69

query I rowsort
SELECT - 61 * - 69
----
4209

onlyif mysql # DIV for integer division: 
query I rowsort label-6894
SELECT DISTINCT + 26 DIV - ( 87 ) * 67
----
0

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT + 26 / - ( 87 ) * 67
----
0

query II rowsort
SELECT ALL + 9, - 7 AS col1
----
9
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-6896
SELECT NULLIF ( COUNT( * ), - - 28 ) * - 12, 48 AS col0
----
-12
48

skipif mysql # not compatible
query II rowsort label-6896
SELECT NULLIF ( COUNT ( * ), - - 28 ) * - 12, 48 AS col0
----
-12
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT 72 + - + COUNT( * ) - 15 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-6897
SELECT 72 + - + COUNT ( * ) - 15 AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6898
SELECT ALL - + 89, 0 DIV - 7 + + 86 + + SUM( ALL + CAST( 18 AS SIGNED ) ) DIV + 72 AS col2
----
-89
86

skipif mysql # not compatible
query II rowsort label-6898
SELECT ALL - + 89, 0 / - 7 + + 86 + + SUM ( ALL + CAST ( 18 AS INTEGER ) ) / + 72 AS col2
----
-89
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6899
SELECT DISTINCT - - 7 * 65 - - ( 93 ) DIV - 78 AS col2
----
454

skipif mysql # not compatible
query I rowsort label-6899
SELECT DISTINCT - - 7 * 65 - - ( 93 ) / - 78 AS col2
----
454

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT COUNT( * ) * + SUM( ALL + ( 51 ) ) + - 53
----
-2

skipif mysql # not compatible
query I rowsort label-6901
SELECT COUNT ( * ) * + SUM ( ALL + ( 51 ) ) + - 53
----
-2

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

skipif mysql # not compatible
query I rowsort label-6902
SELECT DISTINCT + 97 + + COUNT ( * ) AS col0
----
98

query II rowsort
SELECT - + 85, + 5 AS col2
----
-85
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6904
SELECT 28 * 2 - - + 17 + + COUNT( CAST( - COALESCE ( + 86, + - 42 * - 84 ) AS SIGNED ) ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-6904
SELECT 28 * 2 - - + 17 + + COUNT ( CAST ( - COALESCE ( + 86, + - 42 * - 84 ) AS INTEGER ) ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT - 47 + - 22 * + - COALESCE ( + 64, COUNT( * ) - - 21 * 73 * + 59 )
----
1361

skipif mysql # not compatible
query I rowsort label-6905
SELECT - 47 + - 22 * + - COALESCE ( + 64, COUNT ( * ) - - 21 * 73 * + 59 )
----
1361

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT + 31 - 40 * - 88 * - - 33 * - MAX( - 54 ) AS col2
----
6272671

skipif mysql # not compatible
query I rowsort label-6906
SELECT + 31 - 40 * - 88 * - - 33 * - MAX ( - 54 ) AS col2
----
6272671

query I rowsort
SELECT 8 + - 75 col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT MIN( - 9 ) * + - 79 + + MIN( + + 21 )
----
732

skipif mysql # not compatible
query I rowsort label-6908
SELECT MIN ( - 9 ) * + - 79 + + MIN ( + + 21 )
----
732

onlyif mysql # DIV for integer division: 
query I rowsort label-6909
SELECT ALL + 3 + 12 DIV - 23 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL + 3 + 12 / - 23 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT ALL 18 * COALESCE ( - COUNT( * ), + + 32 )
----
-18

skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL 18 * COALESCE ( - COUNT ( * ), + + 32 )
----
-18

query I rowsort
SELECT ALL - NULLIF ( + + 11, 29 - 97 ) + + 70 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT ALL + + SUM( DISTINCT + - 63 ) + + + 64 + + 75
----
76

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL + + SUM ( DISTINCT + - 63 ) + + + 64 + + 75
----
76

query I rowsort
SELECT 77 + 5
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6914
SELECT ( - 20 ) + + + ( 88 ) DIV - 92
----
-20

skipif mysql # not compatible
query I rowsort label-6914
SELECT ( - 20 ) + + + ( 88 ) / - 92
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-6915
SELECT 13 * - + 6 * COALESCE ( + 60, + + 56 ), 96 - ( + COALESCE ( - + 85, - 14 * + COUNT( * ) ) ) AS col2
----
-4680
181

skipif mysql # not compatible
query II rowsort label-6915
SELECT 13 * - + 6 * COALESCE ( + 60, + + 56 ), 96 - ( + COALESCE ( - + 85, - 14 * + COUNT ( * ) ) ) AS col2
----
-4680
181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6916
SELECT DISTINCT COALESCE ( - 55, - + NULLIF ( + 71, + + NULLIF ( + COUNT( * ), 17 * + 37 + NULLIF ( COALESCE ( 18, + - 16 * 85 * - COALESCE ( + 55, 32 ) ), - 31 ) - - 17 - + 12 + NULLIF ( - 68, 63 ) * - - 90 * + 98 * - + 20 + + 32 + - + NULLIF ( + 58, + 94 ) ) ), - 67, + + 5 + + 16 + + 55 * + - 72 DIV 59 ) * + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-6916
SELECT DISTINCT COALESCE ( - 55, - + NULLIF ( + 71, + + NULLIF ( + COUNT ( * ), 17 * + 37 + NULLIF ( COALESCE ( 18, + - 16 * 85 * - COALESCE ( + 55, 32 ) ), - 31 ) - - 17 - + 12 + NULLIF ( - 68, 63 ) * - - 90 * + 98 * - + 20 + + 32 + - + NULLIF ( + 58, + 94 ) ) ), - 67, + + 5 + + 16 + + 55 * + - 72 / 59 ) * + COUNT ( * )
----
-55

query I rowsort
SELECT DISTINCT 84 - - + 17 - 50
----
51

query I rowsort
SELECT ALL + 39 * 86 AS col1
----
3354

query II rowsort
SELECT ALL 19 - + 66 AS col2, + 69 AS col2
----
-47
69

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

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

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

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

query I rowsort
SELECT ( - 52 ) * - + 47 AS col0
----
2444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6923
SELECT DISTINCT + 92 DIV - + COUNT( * ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT + 92 / - + COUNT ( * ) AS col1
----
-92

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

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

query I rowsort
SELECT 5 + + 84 * + 36 AS col2
----
3029

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

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

query I rowsort
SELECT 84 * - 24 AS col0
----
-2016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6928
SELECT COUNT( * ) * - + COUNT( * ) + + + 26 DIV SUM( ALL - - 33 ) * - 79 * + + 34 + - SUM( ALL ( + 42 ) ) - - 69
----
26

skipif mysql # not compatible
query I rowsort label-6928
SELECT COUNT ( * ) * - + COUNT ( * ) + + + 26 / SUM ( ALL - - 33 ) * - 79 * + + 34 + - SUM ( ALL ( + 42 ) ) - - 69
----
26

query I rowsort
SELECT + 45 * + 51 AS col1
----
2295

onlyif mysql # aggregate syntax: 
query II rowsort label-6930
SELECT ALL + + 63 * - + 86 * - - 14 * COUNT( * ) AS col2, + 26
----
-75852
26

skipif mysql # not compatible
query II rowsort label-6930
SELECT ALL + + 63 * - + 86 * - - 14 * COUNT ( * ) AS col2, + 26
----
-75852
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6931
SELECT DISTINCT + + 38 * + 42 / + 68 * CAST( - - COALESCE ( - + CAST( 16 AS SIGNED ), + + 37, 71 * + COALESCE ( 28, - ( - 82 ) * COUNT( ALL + 38 ) + 17 ) * 61 ) AS SIGNED ) * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6931
SELECT DISTINCT + + 38 * + 42 / + 68 * CAST ( - - COALESCE ( - + CAST ( 16 AS INTEGER ), + + 37, 71 * + COALESCE ( 28, - ( - 82 ) * COUNT ( ALL + 38 ) + 17 ) * 61 ) AS INTEGER ) * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6932
SELECT COALESCE ( + 1, + ( + 24 ) ) * COALESCE ( - 28, + ( - - 94 ) * SUM( CAST( NULL AS SIGNED ) ) * + 59 + + - CASE 97 WHEN + 42 + 79 THEN SUM( DISTINCT - + 81 ) * - 67 DIV + + CAST( + NULLIF ( COUNT( * ), + 68 * - 91 ) AS SIGNED ) ELSE - 30 END + + MIN( NULLIF ( - - 75, + 57 + - + ( 42 ) ) ) - 44 DIV - 17 + - + 52 * + 78 DIV 70, - 31 + + COUNT( * ) ) col0
----
-28

skipif mysql # not compatible
query I rowsort label-6932
SELECT COALESCE ( + 1, + ( + 24 ) ) * COALESCE ( - 28, + ( - - 94 ) * SUM ( CAST ( NULL AS INTEGER ) ) * + 59 + + - CASE 97 WHEN + 42 + 79 THEN SUM ( DISTINCT - + 81 ) * - 67 / + + CAST ( + NULLIF ( COUNT ( * ), + 68 * - 91 ) AS INTEGER ) ELSE - 30 END + + MIN ( NULLIF ( - - 75, + 57 + - + ( 42 ) ) ) - 44 / - 17 + - + 52 * + 78 / 70, - 31 + + COUNT ( * ) ) col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT DISTINCT COALESCE ( - 28, + COUNT( * ) )
----
-28

skipif mysql # not compatible
query I rowsort label-6933
SELECT DISTINCT COALESCE ( - 28, + COUNT ( * ) )
----
-28

query I rowsort
SELECT ALL + ( 14 ) * + - 77
----
-1078

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

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

query I rowsort
SELECT ALL + 53 * + 91 * - 47 AS col2
----
-226681

query I rowsort
SELECT NULLIF ( + 57, + 28 ) - 1
----
56

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

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

query I rowsort
SELECT + 14 - + - ( 33 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT ALL + 80 - COUNT( * ) - + - 38 * - + NULLIF ( - - 22, COUNT( * ) ) * ( 42 ) col1
----
-35033

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL + 80 - COUNT ( * ) - + - 38 * - + NULLIF ( - - 22, COUNT ( * ) ) * ( 42 ) col1
----
-35033

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

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

query I rowsort
SELECT + 90 * - 37 AS col2
----
-3330

onlyif mysql # DIV for integer division: 
query I rowsort label-6943
SELECT 81 DIV + 42 + 92 + 78 + + ( 42 ) AS col2
----
213

skipif mysql # not compatible
query I rowsort label-6943
SELECT 81 / + 42 + 92 + 78 + + ( 42 ) AS col2
----
213

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT + SUM( DISTINCT + 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-6945
SELECT + SUM ( DISTINCT + 91 ) AS col2
----
91

query I rowsort
SELECT 54 * + 12 + + 62 AS col2
----
710

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT + 60 - + 71 + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-6947
SELECT + 60 - + 71 + COUNT ( * )
----
-10

query I rowsort
SELECT CASE - 20 WHEN - NULLIF ( 17, - + 57 * + - 28 * - 65 ) THEN NULL ELSE 85 * - 7 END
----
-595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6949
SELECT + 80 DIV - CAST( - 74 AS SIGNED ) + + + 6 + - SUM( DISTINCT - + 7 ) + + 16 col2
----
30

skipif mysql # not compatible
query I rowsort label-6949
SELECT + 80 / - CAST ( - 74 AS INTEGER ) + + + 6 + - SUM ( DISTINCT - + 7 ) + + 16 col2
----
30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT + SUM( + + NULLIF ( - + 74, - 46 ) ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-6951
SELECT + SUM ( + + NULLIF ( - + 74, - 46 ) ) AS col0
----
-74

query I rowsort
SELECT + 24 + 73
----
97

query I rowsort
SELECT ALL 24 * 0 * - + 20
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6954
SELECT 50 * - 60 * ( 78 ) * - 42 + - - CASE - - 72 WHEN + - COUNT( * ) + - 68 THEN NULL WHEN - 75 THEN NULL WHEN - COUNT( * ) * + CAST( + COUNT( * ) AS DECIMAL ) - + - 58 + + 14 THEN - MIN( DISTINCT + 24 ) * + - 86 + - + COALESCE ( + CAST( ( + - ( - 50 ) ) AS SIGNED ), COALESCE ( - + SUM( - 46 ), - 72 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6954
SELECT 50 * - 60 * ( 78 ) * - 42 + - - CASE - - 72 WHEN + - COUNT ( * ) + - 68 THEN NULL WHEN - 75 THEN NULL WHEN - COUNT ( * ) * + CAST ( + COUNT ( * ) AS REAL ) - + - 58 + + 14 THEN - MIN ( DISTINCT + 24 ) * + - 86 + - + COALESCE ( + CAST ( ( + - ( - 50 ) ) AS INTEGER ), COALESCE ( - + SUM ( - 46 ), - 72 ) ) ELSE NULL END
----
NULL

query II rowsort
SELECT + + 65 AS col0, 56
----
65
56

query II rowsort
SELECT + + 64 * - 80 - - COALESCE ( + 57, - ( 50 ) ) AS col2, + 84
----
-5063
84

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

query I rowsort
SELECT - 99 * + 41 + - + 24
----
-4083

onlyif mysql # aggregate syntax: 
query II rowsort label-6959
SELECT ALL + COALESCE ( 41, - COUNT( * ) ) AS col2, MAX( DISTINCT + 75 ) AS col2
----
41
75

skipif mysql # not compatible
query II rowsort label-6959
SELECT ALL + COALESCE ( 41, - COUNT ( * ) ) AS col2, MAX ( DISTINCT + 75 ) AS col2
----
41
75

query II rowsort
SELECT + 10 col0, - 38 + + 1 + + + 86 * - 83
----
10
-7175

query I rowsort
SELECT + - 81 - 76
----
-157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6962
SELECT - + 16 * 47 * - 21 / COUNT( * ) + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6962
SELECT - + 16 * 47 * - 21 / COUNT ( * ) + - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - 84 * + 86 + - 84 AS col1
----
-7308

onlyif mysql # DIV for integer division: 
query I rowsort label-6964
SELECT ALL 53 DIV - 30
----
-1

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL 53 / - 30
----
-1

query I rowsort
SELECT + + 21 + 51 + 86
----
158

query I rowsort
SELECT - + NULLIF ( + 5, + 85 )
----
-5

query I rowsort
SELECT - 74 - - + 5
----
-69

query I rowsort
SELECT ALL - ( - COALESCE ( 17, - 54 ) ) - + 54
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6969
SELECT ALL CASE - 44 WHEN + - 6 THEN 16 + - CAST( NULL AS SIGNED ) END * - - 51 * MIN( DISTINCT + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL CASE - 44 WHEN + - 6 THEN 16 + - CAST ( NULL AS INTEGER ) END * - - 51 * MIN ( DISTINCT + 72 )
----
NULL

query I rowsort
SELECT DISTINCT 9 - + 94 + + - 99 - 76
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT DISTINCT ( + - NULLIF ( - + SUM( ALL + - 87 ), 73 ) ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT ( + - NULLIF ( - + SUM ( ALL + - 87 ), 73 ) ) AS col0
----
-87

query I rowsort
SELECT ALL ( + - 15 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-6973
SELECT - 38 + + 19 AS col1, - COUNT( * ) + 16
----
-19
15

skipif mysql # not compatible
query II rowsort label-6973
SELECT - 38 + + 19 AS col1, - COUNT ( * ) + 16
----
-19
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6974
SELECT - COUNT( - 24 ) * + - 99 DIV + ( CAST( - + 21 AS SIGNED ) ), AVG ( CAST( NULL AS SIGNED ) ) + - 37 col0
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-6974
SELECT - COUNT ( - 24 ) * + - 99 / + ( CAST ( - + 21 AS INTEGER ) ), AVG ( CAST ( NULL AS INTEGER ) ) + - 37 col0
----
-4
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6976
SELECT - COALESCE ( + + 79, CASE - COALESCE ( - + 31, 80 + - 4, COALESCE ( + 93, + 88 * + 20 ) ) WHEN + COUNT( * ) THEN + + CASE - + 45 WHEN - 82 THEN - + 81 ELSE + + 9 END END ) + 86 DIV 24 DIV 95
----
-79

skipif mysql # not compatible
query I rowsort label-6976
SELECT - COALESCE ( + + 79, CASE - COALESCE ( - + 31, 80 + - 4, COALESCE ( + 93, + 88 * + 20 ) ) WHEN + COUNT ( * ) THEN + + CASE - + 45 WHEN - 82 THEN - + 81 ELSE + + 9 END END ) + 86 / 24 / 95
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6977
SELECT ALL CAST( - MAX( 22 ) AS SIGNED ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-6977
SELECT ALL CAST ( - MAX ( 22 ) AS INTEGER ) AS col0
----
-22

query I rowsort
SELECT - 61 * + + 39 * - 93 AS col1
----
221247

query I rowsort
SELECT - 66 * + + 57 AS col1
----
-3762

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

query I rowsort
SELECT - 84 + + 78 col2
----
-6

query I rowsort
SELECT DISTINCT - 95 * + ( + 29 ) AS col2
----
-2755

onlyif mysql # aggregate syntax: 
query II rowsort label-6983
SELECT ALL - COUNT( * ) + + 32 AS col1, + 32 * 36 + 97
----
31
1249

skipif mysql # not compatible
query II rowsort label-6983
SELECT ALL - COUNT ( * ) + + 32 AS col1, + 32 * 36 + 97
----
31
1249

onlyif mysql # DIV for integer division: 
query I rowsort label-6984
SELECT ALL 39 DIV 33 + + + 1 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6984
SELECT ALL 39 / 33 + + + 1 AS col2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6985
SELECT + SUM( - 74 ) AS col2, 17 * - COUNT( * ) + + 57
----
-74
40

skipif mysql # not compatible
query II rowsort label-6985
SELECT + SUM ( - 74 ) AS col2, 17 * - COUNT ( * ) + + 57
----
-74
40

query I rowsort
SELECT ALL + NULLIF ( - 93, - - 93 / - + 97 * - 81 + + + 70 )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6987
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + + 20 + + COUNT( * ) - + + 15 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6987
SELECT DISTINCT CAST ( NULL AS REAL ) / + + 20 + + COUNT ( * ) - + + 15 + - COUNT ( * )
----
NULL

query I rowsort
SELECT + 0 * + 72
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6989
SELECT DISTINCT 50 DIV COUNT( * ) + - - 37 + - 42
----
45

skipif mysql # not compatible
query I rowsort label-6989
SELECT DISTINCT 50 / COUNT ( * ) + - - 37 + - 42
----
45

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6991
SELECT ALL - 84 DIV 51 + - NULLIF ( - MAX( + ( + 54 ) ), + 89 * - 63 + - 45 )
----
53

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL - 84 / 51 + - NULLIF ( - MAX ( + ( + 54 ) ), + 89 * - 63 + - 45 )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6992
SELECT - ( 21 ) - CAST( + 41 AS SIGNED ) col0, + 83 AS col2
----
-62
83

skipif mysql # not compatible
query II rowsort label-6992
SELECT - ( 21 ) - CAST ( + 41 AS INTEGER ) col0, + 83 AS col2
----
-62
83

onlyif mysql # aggregate syntax: 
query II rowsort label-6993
SELECT ALL + 57 col2, + 9 - - 34 * - + COUNT( * ) AS col0
----
57
-25

skipif mysql # not compatible
query II rowsort label-6993
SELECT ALL + 57 col2, + 9 - - 34 * - + COUNT ( * ) AS col0
----
57
-25

query I rowsort
SELECT ALL - + 89 * + + 38 - 39
----
-3421

query I rowsort
SELECT + - 52 * + NULLIF ( - 61, + 14 )
----
3172

onlyif mysql # aggregate syntax: 
query II rowsort label-6996
SELECT DISTINCT + 65, NULLIF ( 80, - COUNT( * ) + - + COUNT( * ) / + + 83 / 46 * + COALESCE ( - - COUNT( * ), - + 68 ) - 82 ) + - 62 AS col1
----
65
18

skipif mysql # not compatible
query II rowsort label-6996
SELECT DISTINCT + 65, NULLIF ( 80, - COUNT ( * ) + - + COUNT ( * ) / + + 83 / 46 * + COALESCE ( - - COUNT ( * ), - + 68 ) - 82 ) + - 62 AS col1
----
65
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6997
SELECT - + 26 * - 11 - + + 73 * - - 31 + CAST( NULL AS SIGNED ) + - 33 * 74 * - 96 + - - 58 * - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6997
SELECT - + 26 * - 11 - + + 73 * - - 31 + CAST ( NULL AS INTEGER ) + - 33 * 74 * - 96 + - - 58 * - 16 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6998
SELECT ALL + + COUNT( * ) AS col1, - 77 - 38 - CASE + 72 WHEN + 47 * - 41 * - - CAST( NULL AS SIGNED ) + 26 - - ( - + 9 ) THEN + - 81 WHEN + 35 * - 35 THEN - 99 * - COALESCE ( ( CAST( + 97 AS SIGNED ) ), COUNT( DISTINCT CAST( - - 65 AS DECIMAL ) ) ) * - COALESCE ( - 79, + 15 * 68 / + 62 + + 78 * - 86 * + - CASE - 62 WHEN 61 / - 42 - + 67 * + 43 THEN NULL ELSE - 93 * 60 * + + 39 + + - 76 END * + - 4 - + - 92 * - - CASE + + 14 WHEN + COUNT( * ) THEN NULL ELSE COUNT( * ) * 63 - + 51 END * + 78 ) + + COUNT( * ) + + 36 WHEN - 95 THEN NULL ELSE NULL END * - COUNT( * )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6998
SELECT ALL + + COUNT ( * ) AS col1, - 77 - 38 - CASE + 72 WHEN + 47 * - 41 * - - CAST ( NULL AS INTEGER ) + 26 - - ( - + 9 ) THEN + - 81 WHEN + 35 * - 35 THEN - 99 * - COALESCE ( ( CAST ( + 97 AS INTEGER ) ), COUNT ( DISTINCT CAST ( - - 65 AS REAL ) ) ) * - COALESCE ( - 79, + 15 * 68 / + 62 + + 78 * - 86 * + - CASE - 62 WHEN 61 / - 42 - + 67 * + 43 THEN NULL ELSE - 93 * 60 * + + 39 + + - 76 END * + - 4 - + - 92 * - - CASE + + 14 WHEN + COUNT ( * ) THEN NULL ELSE COUNT ( * ) * 63 - + 51 END * + 78 ) + + COUNT ( * ) + + 36 WHEN - 95 THEN NULL ELSE NULL END * - COUNT ( * )
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6999
SELECT + COALESCE ( + ( + CAST( 97 AS SIGNED ) ), 47 * - + 47 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-6999
SELECT + COALESCE ( + ( + CAST ( 97 AS INTEGER ) ), 47 * - + 47 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT ALL + + 70 * 75 - - + NULLIF ( + 25, + COUNT( * ) ) AS col2
----
5275

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL + + 70 * 75 - - + NULLIF ( + 25, + COUNT ( * ) ) AS col2
----
5275

query I rowsort
SELECT + - 92 * 74 * 86
----
-585488

query I rowsort
SELECT + + 86 * - ( - 60 ) AS col2
----
5160

query II rowsort
SELECT 24 AS col2, 3 AS col2
----
24
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT - 25 * + 57 + 20 + + - NULLIF ( + 92, + + SUM( ALL - - 61 ) )
----
-1497

skipif mysql # not compatible
query I rowsort label-7004
SELECT - 25 * + 57 + 20 + + - NULLIF ( + 92, + + SUM ( ALL - - 61 ) )
----
-1497

query II rowsort
SELECT ALL 63 AS col0, 30 AS col1
----
63
30

query I rowsort
SELECT ALL NULLIF ( - - 9, 61 ) * 87 * - + 22 + - 52 - 60 * - 9 AS col2
----
-16738

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7008
SELECT DISTINCT - 98 DIV 20 col1
----
-4

skipif mysql # not compatible
query I rowsort label-7008
SELECT DISTINCT - 98 / 20 col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7009
SELECT COUNT( * ) DIV + - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7009
SELECT COUNT ( * ) / + - 88 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT COUNT( * ) * + 98 col0
----
98

skipif mysql # not compatible
query I rowsort label-7010
SELECT COUNT ( * ) * + 98 col0
----
98

query II rowsort
SELECT ALL - 80 * - 37 AS col1, - 31 * 25 col1
----
2960
-775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7012
SELECT DISTINCT COUNT( * ) DIV 55 col1
----
0

skipif mysql # not compatible
query I rowsort label-7012
SELECT DISTINCT COUNT ( * ) / 55 col1
----
0

query I rowsort
SELECT ( - 11 ) - + + 38 AS col2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7014
SELECT COUNT( * ) - ( + 92 ) + + - 1 * - 49 AS col2, - 31 * + + CAST( + + 46 AS SIGNED )
----
-42
-1426

skipif mysql # not compatible
query II rowsort label-7014
SELECT COUNT ( * ) - ( + 92 ) + + - 1 * - 49 AS col2, - 31 * + + CAST ( + + 46 AS INTEGER )
----
-42
-1426

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7015
SELECT ALL + 81 * + COALESCE ( - 56, - 83 ) / + CAST( NULL AS DECIMAL ) / 8 * - CAST( - ( + 78 ) AS SIGNED ) * - + AVG ( DISTINCT + 50 ) + - 74 * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL + 81 * + COALESCE ( - 56, - 83 ) / + CAST ( NULL AS REAL ) / 8 * - CAST ( - ( + 78 ) AS INTEGER ) * - + AVG ( DISTINCT + 50 ) + - 74 * 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT DISTINCT 95 + + COUNT( * ) + COUNT( * ) col1
----
97

skipif mysql # not compatible
query I rowsort label-7016
SELECT DISTINCT 95 + + COUNT ( * ) + COUNT ( * ) col1
----
97

query II rowsort
SELECT ALL - 91 + + 31, - 73 AS col1
----
-60
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-7018
SELECT 73 - - 54, - NULLIF ( COUNT( * ), COUNT( * ) - COUNT( * ) + + - COUNT( * ) ) AS col2
----
127
-1

skipif mysql # not compatible
query II rowsort label-7018
SELECT 73 - - 54, - NULLIF ( COUNT ( * ), COUNT ( * ) - COUNT ( * ) + + - COUNT ( * ) ) AS col2
----
127
-1

query I rowsort
SELECT ALL 30 * - 14 AS col2
----
-420

query I rowsort
SELECT DISTINCT + 46 + 94
----
140

query I rowsort
SELECT ALL - 91 + 45
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT SUM( - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-7022
SELECT SUM ( - 74 )
----
-74

query I rowsort
SELECT + NULLIF ( + - 75, + + 52 - 81 * + 52 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT 47 * + MIN( DISTINCT 15 ) + - MIN( - 72 )
----
777

skipif mysql # not compatible
query I rowsort label-7024
SELECT 47 * + MIN ( DISTINCT 15 ) + - MIN ( - 72 )
----
777

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7025
SELECT + - CASE + 83 WHEN - - CAST( NULL AS SIGNED ) THEN NULL WHEN - - ( 16 ) THEN NULL WHEN + 91 + + + 81 THEN COUNT( * ) + - + 13 - - 25 - - 65 + - + ( 99 ) * 11 + - 75 * + + 45 * - 90 / 25 - - ( + 41 ) END / + 26 * SUM( DISTINCT + - 88 ) * - 53 * - - 42 + - COUNT( * ) + 74 * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7025
SELECT + - CASE + 83 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL WHEN - - ( 16 ) THEN NULL WHEN + 91 + + + 81 THEN COUNT ( * ) + - + 13 - - 25 - - 65 + - + ( 99 ) * 11 + - 75 * + + 45 * - 90 / 25 - - ( + 41 ) END / + 26 * SUM ( DISTINCT + - 88 ) * - 53 * - - 42 + - COUNT ( * ) + 74 * - 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7026
SELECT DISTINCT - NULLIF ( - 78, MAX( - 39 ) + + + CAST( - - MAX( DISTINCT + + 83 ) AS SIGNED ) * 51 ) DIV + - 79 * - 25
----
0

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT - NULLIF ( - 78, MAX ( - 39 ) + + + CAST ( - - MAX ( DISTINCT + + 83 ) AS INTEGER ) * 51 ) / + - 79 * - 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT + COALESCE ( - CASE WHEN NOT - 81 NOT BETWEEN + ( - COUNT( * ) ) * - + 3 * + 75 - + 40 + - NULLIF ( 88, - - COUNT( * ) ) + - - MIN( 64 ) AND NULL THEN NULL ELSE 8 * MIN( ALL 81 ) END, + COALESCE ( 40, 67 + ( - MIN( DISTINCT + 90 ) ) ), + - 82 ) + 74 col2
----
-574

skipif mysql # not compatible
query I rowsort label-7027
SELECT + COALESCE ( - CASE WHEN NOT - 81 NOT BETWEEN + ( - COUNT ( * ) ) * - + 3 * + 75 - + 40 + - NULLIF ( 88, - - COUNT ( * ) ) + - - MIN ( 64 ) AND NULL THEN NULL ELSE 8 * MIN ( ALL 81 ) END, + COALESCE ( 40, 67 + ( - MIN ( DISTINCT + 90 ) ) ), + - 82 ) + 74 col2
----
-574

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT ALL - - 56 * 96 - - COUNT( * ) * + 65 * + + 79 + - 77
----
10434

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL - - 56 * 96 - - COUNT ( * ) * + 65 * + + 79 + - 77
----
10434

query I rowsort
SELECT DISTINCT + 59 * + 17
----
1003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7030
SELECT ALL + - 81 - - CASE + COUNT( * ) WHEN 62 * - + COUNT( * ) THEN - ( - + 14 ) + 32 + + - 88 WHEN - 44 * ( 56 ) * + 80 / 36 THEN NULL END + - 80 + + CAST( COUNT( * ) AS SIGNED ) AS col0, + 85 AS col0
----
NULL
85

skipif mysql # not compatible
query II rowsort label-7030
SELECT ALL + - 81 - - CASE + COUNT ( * ) WHEN 62 * - + COUNT ( * ) THEN - ( - + 14 ) + 32 + + - 88 WHEN - 44 * ( 56 ) * + 80 / 36 THEN NULL END + - 80 + + CAST ( COUNT ( * ) AS INTEGER ) AS col0, + 85 AS col0
----
NULL
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7031
SELECT - - 79 * 91 * - 97 / + - 17 + - CAST( NULL AS DECIMAL ) + - 45 + - + COUNT( * ) + + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7031
SELECT - - 79 * 91 * - 97 / + - 17 + - CAST ( NULL AS REAL ) + - 45 + - + COUNT ( * ) + + 52 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT 0 * ( - CASE COALESCE ( + - 98, 90, + MIN( + - NULLIF ( + 19, + 81 + - + 5 ) ) / - 26 * + - 73 * 65 ) WHEN 98 * + + 19 THEN NULL ELSE 47 END ) + - 51
----
-51

skipif mysql # not compatible
query I rowsort label-7032
SELECT 0 * ( - CASE COALESCE ( + - 98, 90, + MIN ( + - NULLIF ( + 19, + 81 + - + 5 ) ) / - 26 * + - 73 * 65 ) WHEN 98 * + + 19 THEN NULL ELSE 47 END ) + - 51
----
-51

query I rowsort
SELECT - 88 * + 77 + 41 + + 56
----
-6679

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT NULLIF ( - COUNT( * ), - 87 + COUNT( * ) ) + 46 * + + CASE - - ( ( + 81 ) ) WHEN 5 * 57 + 73 THEN NULL WHEN + 68 * - ( - + 90 ) * + 41 THEN - 32 / - 86 - - 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7034
SELECT NULLIF ( - COUNT ( * ), - 87 + COUNT ( * ) ) + 46 * + + CASE - - ( ( + 81 ) ) WHEN 5 * 57 + 73 THEN NULL WHEN + 68 * - ( - + 90 ) * + 41 THEN - 32 / - 86 - - 42 END
----
NULL

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

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

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

query I rowsort
SELECT + 55 * + + 56 * - 66 AS col1
----
-203280

query I rowsort
SELECT DISTINCT 50 * - ( + - 81 ) AS col1
----
4050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7039
SELECT - 13 * - + CAST( NULL AS SIGNED ) * + 60 + COUNT( * ) + + - 98 + COUNT( + + COALESCE ( 40, - 49 + + 50 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7039
SELECT - 13 * - + CAST ( NULL AS INTEGER ) * + 60 + COUNT ( * ) + + - 98 + COUNT ( + + COALESCE ( 40, - 49 + + 50 ) ) AS col2
----
NULL

query I rowsort
SELECT 22 * + 33
----
726

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT ALL MAX( 26 ) + - + 71 + 54 + - 34 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL MAX ( 26 ) + - + 71 + 54 + - 34 AS col0
----
-25

query I rowsort
SELECT 29 + + 13
----
42

query II rowsort
SELECT - 90 col0, 77 + - 20 AS col2
----
-90
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7044
SELECT COALESCE ( + COUNT( * ), + CAST( NULL AS SIGNED ) * - 72 + + 1 ) + 66 AS col0, + 2 DIV MAX( 24 ) AS col2, - 18 col0
----
67
0
-18

skipif mysql # not compatible
query III rowsort label-7044
SELECT COALESCE ( + COUNT ( * ), + CAST ( NULL AS INTEGER ) * - 72 + + 1 ) + 66 AS col0, + 2 / MAX ( 24 ) AS col2, - 18 col0
----
67
0
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7045
SELECT CAST( - 85 AS SIGNED ) - + ( - - 19 )
----
-104

skipif mysql # not compatible
query I rowsort label-7045
SELECT CAST ( - 85 AS INTEGER ) - + ( - - 19 )
----
-104

query I rowsort
SELECT DISTINCT 84 + - 38
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT ALL 43 + COALESCE ( - + 7, + + MAX( + 15 ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL 43 + COALESCE ( - + 7, + + MAX ( + 15 ) ) AS col0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7048
SELECT ALL 13 + + - 0 DIV MAX( ALL + - 95 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL 13 + + - 0 / MAX ( ALL + - 95 ) AS col0
----
13

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

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT + 50 / - COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT DISTINCT 48 + + - 9 * - - COALESCE ( + 21, - + 57, 12 ) + + - COUNT( * )
----
-142

skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT 48 + + - 9 * - - COALESCE ( + 21, - + 57, 12 ) + + - COUNT ( * )
----
-142

query I rowsort
SELECT ALL 7 + + ( - + 84 )
----
-77

query II rowsort
SELECT - 66 AS col0, 96 * - 2
----
-66
-192

query I rowsort
SELECT ALL 83 + + - 66 AS col1
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7054
SELECT DISTINCT 0 DIV + - 35 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7054
SELECT DISTINCT 0 / + - 35 AS col2
----
0

query II rowsort
SELECT ALL 26, 23 * + NULLIF ( + 73, - 87 + 83 + - 2 * + 20 ) AS col1
----
26
1679

query I rowsort
SELECT ALL ( - 95 ) * 68 AS col0
----
-6460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7057
SELECT - CASE CAST( NULL AS DECIMAL ) WHEN - - 7 THEN - 73 * - + 31 / - - 71 * - - 53 / 39 - + 80 WHEN 15 THEN + COUNT( * ) WHEN - COUNT( * ) * 84 + + 94 THEN - + CAST( + 42 AS SIGNED ) + CAST( + 93 AS SIGNED ) + - 20 * - 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7057
SELECT - CASE CAST ( NULL AS REAL ) WHEN - - 7 THEN - 73 * - + 31 / - - 71 * - - 53 / 39 - + 80 WHEN 15 THEN + COUNT ( * ) WHEN - COUNT ( * ) * 84 + + 94 THEN - + CAST ( + 42 AS INTEGER ) + CAST ( + 93 AS INTEGER ) + - 20 * - 26 END
----
NULL

query I rowsort
SELECT + 57 + - 74
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-7059
SELECT DISTINCT - 38, - MIN( - 71 ) * 4 col0
----
-38
284

skipif mysql # not compatible
query II rowsort label-7059
SELECT DISTINCT - 38, - MIN ( - 71 ) * 4 col0
----
-38
284

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

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

query I rowsort
SELECT DISTINCT + 47 * - - 22 col2
----
1034

query I rowsort
SELECT ALL + 61 * - 37 - - 82 * - 64 AS col1
----
-7505

query I rowsort
SELECT 76 * - - 41
----
3116

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

query II rowsort
SELECT ALL - - 65 AS col1, - 74
----
65
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT ALL + COUNT( * ) * + 33 + + 82 * - + ( - 87 ) AS col0
----
7167

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL + COUNT ( * ) * + 33 + + 82 * - + ( - 87 ) AS col0
----
7167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7067
SELECT - - COUNT( * ) DIV 47 * + 37 DIV - + COUNT( * ) * + + 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7067
SELECT - - COUNT ( * ) / 47 * + 37 / - + COUNT ( * ) * + + 47 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7068
SELECT ALL + 3 DIV 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL + 3 / 44 AS col2
----
0

query I rowsort
SELECT - 48 + + 2 AS col0
----
-46

query II rowsort
SELECT ALL + 25 AS col2, - 65 * + 44 AS col2
----
25
-2860

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

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

query I rowsort
SELECT ALL - 12 + + 25 AS col2
----
13

query I rowsort
SELECT ALL + ( + ( - + 18 ) ) * - CASE + - 4 WHEN - AVG ( 81 ) THEN NULL WHEN + + NULLIF ( 43, - 77 ) THEN - + 73 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7074
SELECT - 85 DIV - + NULLIF ( + COALESCE ( + - COUNT( * ), + 37 + - AVG ( 38 ) - - - 7 * + ( + - 82 ) DIV + SUM( DISTINCT - 58 ) ), + 75 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-7074
SELECT - 85 / - + NULLIF ( + COALESCE ( + - COUNT ( * ), + 37 + - AVG ( 38 ) - - - 7 * + ( + - 82 ) / + SUM ( DISTINCT - 58 ) ), + 75 ) AS col2
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7075
SELECT - CASE 88 WHEN 26 THEN NULL ELSE - COALESCE ( + + 95, + COALESCE ( - - SUM( DISTINCT + 17 ), - ( - MIN( ( - 88 ) ) ) + + 64 ) ) DIV - 53 + + 89 + - COUNT( * ) END DIV - 9
----
9

skipif mysql # not compatible
query I rowsort label-7075
SELECT - CASE 88 WHEN 26 THEN NULL ELSE - COALESCE ( + + 95, + COALESCE ( - - SUM ( DISTINCT + 17 ), - ( - MIN ( ( - 88 ) ) ) + + 64 ) ) / - 53 + + 89 + - COUNT ( * ) END / - 9
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7076
SELECT MAX( DISTINCT + + 69 ) col1, 83
----
69
83

skipif mysql # not compatible
query II rowsort label-7076
SELECT MAX ( DISTINCT + + 69 ) col1, 83
----
69
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT ALL - 26 + + COALESCE ( MIN( 81 ), - - 55 ) + - 0
----
55

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL - 26 + + COALESCE ( MIN ( 81 ), - - 55 ) + - 0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT COUNT( ALL + 11 )
----
1

skipif mysql # not compatible
query I rowsort label-7078
SELECT COUNT ( ALL + 11 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT DISTINCT COUNT( DISTINCT 21 )
----
1

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT COUNT ( DISTINCT 21 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7080
SELECT ALL 43 + - CAST( + NULLIF ( - + 67, 90 / + 19 / + + 4 + + COALESCE ( CAST( NULL AS DECIMAL ), - 40, + + COALESCE ( - 41, COUNT( * ) ) ) ) AS SIGNED ) - - + 73
----
183

skipif mysql # not compatible
query I rowsort label-7080
SELECT ALL 43 + - CAST ( + NULLIF ( - + 67, 90 / + 19 / + + 4 + + COALESCE ( CAST ( NULL AS REAL ), - 40, + + COALESCE ( - 41, COUNT ( * ) ) ) ) AS INTEGER ) - - + 73
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT DISTINCT COALESCE ( + 36, 29, - 78 + + 77 * MAX( - 34 ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-7081
SELECT DISTINCT COALESCE ( + 36, 29, - 78 + + 77 * MAX ( - 34 ) ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT ALL NULLIF ( + NULLIF ( - 83, 35 ), - 59 * - COUNT( - 80 ) ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL NULLIF ( + NULLIF ( - 83, 35 ), - 59 * - COUNT ( - 80 ) ) AS col1
----
-83

query I rowsort
SELECT DISTINCT + 9 + + ( 90 ) AS col1
----
99

query I rowsort
SELECT ALL 95 * - + 90 AS col0
----
-8550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7085
SELECT + NULLIF ( + - 6, - 1 * CAST( NULL AS SIGNED ) * - NULLIF ( - 93, - + 52 ) * + - 4 + - 87 ) * + 85 AS col0
----
-510

skipif mysql # not compatible
query I rowsort label-7085
SELECT + NULLIF ( + - 6, - 1 * CAST ( NULL AS INTEGER ) * - NULLIF ( - 93, - + 52 ) * + - 4 + - 87 ) * + 85 AS col0
----
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT ALL + 91 + + SUM( ALL - + 39 ) * + MAX( 80 )
----
-3029

skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL + 91 + + SUM ( ALL - + 39 ) * + MAX ( 80 )
----
-3029

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT - 89 - + 74 + - + COUNT( * ) * + 37 + - - ( COUNT( * ) )
----
-199

skipif mysql # not compatible
query I rowsort label-7087
SELECT - 89 - + 74 + - + COUNT ( * ) * + 37 + - - ( COUNT ( * ) )
----
-199

query I rowsort
SELECT + 71 * + - 81
----
-5751

query I rowsort
SELECT + 42 + - 35 + - 24 * - 36 AS col2
----
871

query I rowsort
SELECT DISTINCT + 74 * + - 8 col1
----
-592

query II rowsort
SELECT DISTINCT ( + 59 ) AS col1, 27
----
59
27

query I rowsort
SELECT + 94 * + 61 + + + 16
----
5750

query II rowsort
SELECT ALL 63 * 17 AS col1, 19 AS col0
----
1071
19

query I rowsort
SELECT DISTINCT - ( - 29 ) AS col1
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-7095
SELECT ALL 51 DIV - - 57 * 45 * 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7095
SELECT ALL 51 / - - 57 * 45 * 57 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7096
SELECT + + 54 DIV - + 97
----
0

skipif mysql # not compatible
query I rowsort label-7096
SELECT + + 54 / - + 97
----
0

query I rowsort
SELECT + 34 + - 2 + 5 AS col0
----
37

query I rowsort
SELECT + - ( 19 ) + + - 99 AS col1
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT + - 73 * + - ( 57 ) * - 45 * - 10 * - - COUNT( * )
----
1872450

skipif mysql # not compatible
query I rowsort label-7099
SELECT + - 73 * + - ( 57 ) * - 45 * - 10 * - - COUNT ( * )
----
1872450

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT + + COUNT( * ) + - NULLIF ( - 24, + 27 * - ( 92 ) * - + 96 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-7100
SELECT + + COUNT ( * ) + - NULLIF ( - 24, + 27 * - ( 92 ) * - + 96 ) AS col1
----
25

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

query I rowsort
SELECT + ( + 30 ) * + ( - 42 ) * + ( + ( - 91 ) )
----
114660

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7103
SELECT DISTINCT + - CASE + - COUNT( * ) WHEN + + 74 + 30 - + COUNT( * ) * - 33 THEN NULL WHEN ( - + 98 ) + - 3 + + 50 - + COUNT( - - 10 ) + - - ( - - 95 ) * - 3 * - 82 THEN + 8 END * - ( + + 0 ) AS col1, 33 DIV + 73 * + 59 col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7103
SELECT DISTINCT + - CASE + - COUNT ( * ) WHEN + + 74 + 30 - + COUNT ( * ) * - 33 THEN NULL WHEN ( - + 98 ) + - 3 + + 50 - + COUNT ( - - 10 ) + - - ( - - 95 ) * - 3 * - 82 THEN + 8 END * - ( + + 0 ) AS col1, 33 / + 73 * + 59 col0
----
NULL
0

query I rowsort
SELECT + 37 + 12 AS col2
----
49

query I rowsort
SELECT ALL + + ( - - 64 ) AS col0
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-7106
SELECT - + 47 * + + 16 * + - ( 41 ) AS col0, 22 DIV 62 AS col0
----
30832
0

skipif mysql # not compatible
query II rowsort label-7106
SELECT - + 47 * + + 16 * + - ( 41 ) AS col0, 22 / 62 AS col0
----
30832
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7107
SELECT DISTINCT - COUNT( * ) * + 47 + 59 + + ( + + 11 ) DIV + + 32 * - + 84 + - 62 * + + 67 + - 69
----
-4211

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT - COUNT ( * ) * + 47 + 59 + + ( + + 11 ) / + + 32 * - + 84 + - 62 * + + 67 + - 69
----
-4211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7108
SELECT CASE + CAST( NULL AS SIGNED ) WHEN + 24 + - 72 THEN NULL WHEN 93 THEN + + COALESCE ( - 37, + COUNT( * ) ) END, 78 AS col1
----
NULL
78

skipif mysql # not compatible
query II rowsort label-7108
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN + 24 + - 72 THEN NULL WHEN 93 THEN + + COALESCE ( - 37, + COUNT ( * ) ) END, 78 AS col1
----
NULL
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT + 55 + MIN( ALL 72 ) AS col1
----
127

skipif mysql # not compatible
query I rowsort label-7109
SELECT + 55 + MIN ( ALL 72 ) AS col1
----
127

query I rowsort
SELECT DISTINCT 36 * + 42 + - 74 * - - 84 + - - 89
----
-4615

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT ALL 11 * + 46 + + ( + COUNT( * ) )
----
507

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL 11 * + 46 + + ( + COUNT ( * ) )
----
507

query I rowsort
SELECT DISTINCT + 50 * + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT DISTINCT 73 * - 49 + - 11 + - - COUNT( * ) + 99 * + ( - 26 )
----
-6161

skipif mysql # not compatible
query I rowsort label-7113
SELECT DISTINCT 73 * - 49 + - 11 + - - COUNT ( * ) + 99 * + ( - 26 )
----
-6161

onlyif mysql # aggregate syntax: 
query II rowsort label-7114
SELECT ALL 79 * - 1 + + + COALESCE ( + ( 41 ), 23 * 89 - 42 * COUNT( * ), + 87 ) col1, ( - ( + 76 ) ) AS col1
----
-38
-76

skipif mysql # not compatible
query II rowsort label-7114
SELECT ALL 79 * - 1 + + + COALESCE ( + ( 41 ), 23 * 89 - 42 * COUNT ( * ), + 87 ) col1, ( - ( + 76 ) ) AS col1
----
-38
-76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT DISTINCT - 50 * - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT - 50 * - COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT - 48 * NULLIF ( - COUNT( * ), + 32 * - + ( + + 46 ) )
----
48

skipif mysql # not compatible
query I rowsort label-7117
SELECT - 48 * NULLIF ( - COUNT ( * ), + 32 * - + ( + + 46 ) )
----
48

query I rowsort
SELECT - 54 * + - 81
----
4374

query I rowsort
SELECT - 71 + + + 89 AS col1
----
18

query I rowsort
SELECT DISTINCT + 87 * + + 61
----
5307

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

query I rowsort
SELECT - 35 + - 50 + - + 76 AS col1
----
-161

query I rowsort
SELECT - 12 + + 69 * ( - ( 74 ) * 58 ) AS col2
----
-296160

query I rowsort
SELECT + 88 + - 58
----
30

query I rowsort
SELECT - NULLIF ( 38, 17 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT + SUM( 47 ) * + 23
----
1081

skipif mysql # not compatible
query I rowsort label-7126
SELECT + SUM ( 47 ) * + 23
----
1081

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7127
SELECT ALL ( + 28 ) * ( + MIN( ALL CAST( NULL AS DECIMAL ) ) * 41 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL ( + 28 ) * ( + MIN ( ALL CAST ( NULL AS REAL ) ) * 41 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( 2 ) * - NULLIF ( 29 * + 42, - 95 )
----
-2436

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT - NULLIF ( - 18, COUNT( * ) ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7129
SELECT - NULLIF ( - 18, COUNT ( * ) ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT - 28 * - MIN( DISTINCT + 13 * - 9 ) AS col0
----
-3276

skipif mysql # not compatible
query I rowsort label-7130
SELECT - 28 * - MIN ( DISTINCT + 13 * - 9 ) AS col0
----
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT + NULLIF ( - 18, 23 * - 59 ) + + COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-7131
SELECT + NULLIF ( - 18, 23 * - 59 ) + + COUNT ( * ) AS col0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7132
SELECT DISTINCT CAST( COALESCE ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ), + 90, 77 * - 61 ) AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-7132
SELECT DISTINCT CAST ( COALESCE ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), + 90, 77 * - 61 ) AS INTEGER )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT ALL - COUNT( * ) * - 36
----
36

skipif mysql # not compatible
query I rowsort label-7133
SELECT ALL - COUNT ( * ) * - 36
----
36

query I rowsort
SELECT ALL + 71 + CASE + 14 WHEN 32 * 84 THEN NULL WHEN + 2 THEN + 0 * - ( + 40 ) + 45 END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7136
SELECT DISTINCT COALESCE ( CASE + 99 WHEN + 20 + 82 * ( 79 ) THEN + ( ( COUNT( * ) ) ) WHEN 27 THEN 47 * 73 + 97 ELSE NULL END, + CAST( NULL AS DECIMAL ) * 12 ) + + 82 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7136
SELECT DISTINCT COALESCE ( CASE + 99 WHEN + 20 + 82 * ( 79 ) THEN + ( ( COUNT ( * ) ) ) WHEN 27 THEN 47 * 73 + 97 ELSE NULL END, + CAST ( NULL AS REAL ) * 12 ) + + 82 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7137
SELECT ALL 74 DIV - 27
----
-2

skipif mysql # not compatible
query I rowsort label-7137
SELECT ALL 74 / - 27
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7138
SELECT 38 DIV - 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7138
SELECT 38 / - 85 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7139
SELECT - 1 DIV - 98 - 32
----
-32

skipif mysql # not compatible
query I rowsort label-7139
SELECT - 1 / - 98 - 32
----
-32

query I rowsort
SELECT 83 + - ( - 27 )
----
110

query I rowsort
SELECT DISTINCT 67 + 65 * 45
----
2992

query I rowsort
SELECT ALL 26 * 34 col0
----
884

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7143
SELECT DISTINCT CAST( 94 AS SIGNED ) + - ( 57 )
----
37

skipif mysql # not compatible
query I rowsort label-7143
SELECT DISTINCT CAST ( 94 AS INTEGER ) + - ( 57 )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7144
SELECT ALL - NULLIF ( + 93, - ( CAST( NULL AS SIGNED ) ) + 32 * 97 )
----
-93

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL - NULLIF ( + 93, - ( CAST ( NULL AS INTEGER ) ) + 32 * 97 )
----
-93

query I rowsort
SELECT DISTINCT 31 - + 65
----
-34

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

query I rowsort
SELECT ALL 66 * + 34
----
2244

query I rowsort
SELECT 63 * - 34
----
-2142

query I rowsort
SELECT 11 * 40
----
440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7150
SELECT ALL - COUNT( * ) DIV + 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL - COUNT ( * ) / + 53 AS col1
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7153
SELECT ALL 18 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL 18 / 92
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7154
SELECT - - CASE 97 WHEN 35 + - CAST( NULLIF ( - 74, ( + CAST( NULL AS SIGNED ) ) + 69 ) AS SIGNED ) / 33 THEN 66 * 62 + - CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN - 4 * 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7154
SELECT - - CASE 97 WHEN 35 + - CAST ( NULLIF ( - 74, ( + CAST ( NULL AS INTEGER ) ) + 69 ) AS INTEGER ) / 33 THEN 66 * 62 + - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN - 4 * 32 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7155
SELECT DISTINCT - + COUNT( * ) * - CAST( - NULLIF ( - 11, - 27 + 75 ) AS SIGNED ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-7155
SELECT DISTINCT - + COUNT ( * ) * - CAST ( - NULLIF ( - 11, - 27 + 75 ) AS INTEGER ) AS col1
----
11

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

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

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

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

query I rowsort
SELECT - 42 + COALESCE ( 34, 6 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT ALL + - ( ( + MIN( ALL - ( 78 ) ) ) ) + 75 AS col0
----
153

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL + - ( ( + MIN ( ALL - ( 78 ) ) ) ) + 75 AS col0
----
153

query I rowsort
SELECT 74 + + 44 * + 10 col1
----
514

query I rowsort
SELECT 20 + + ( 97 + 81 ) * + 80 AS col0
----
14260

onlyif mysql # DIV for integer division: 
query I rowsort label-7162
SELECT ALL - 77 DIV 5
----
-15

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL - 77 / 5
----
-15

query I rowsort
SELECT DISTINCT - - 97 + 23 col1
----
120

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7166
SELECT ALL - 27 + CAST( NULL AS DECIMAL ) * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL - 27 + CAST ( NULL AS REAL ) * - 85
----
NULL

query I rowsort
SELECT NULLIF ( NULLIF ( - 70, - 91 ), 63 ) - 38
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT DISTINCT - COALESCE ( - 47, COUNT( * ) )
----
47

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT - COALESCE ( - 47, COUNT ( * ) )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT ALL - ( COUNT( * ) ) + + 70 * - 70
----
-4901

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL - ( COUNT ( * ) ) + + 70 * - 70
----
-4901

query I rowsort
SELECT 23 + 93 * 14 AS col1
----
1325

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT + + MIN( ALL - 56 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-7171
SELECT + + MIN ( ALL - 56 ) AS col1
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7172
SELECT 13 - CAST( NULL AS SIGNED ) * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-7172
SELECT 13 - CAST ( NULL AS INTEGER ) * 90
----
NULL

query I rowsort
SELECT ALL - 75 * 61
----
-4575

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT ALL SUM( ALL ( 13 ) ) - - ( 65 + - 55 * + 93 ) * CASE + 37 + - 78 WHEN 77 - - 42 THEN 75 + - 2 WHEN + MIN( 95 ) THEN 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7174
SELECT ALL SUM ( ALL ( 13 ) ) - - ( 65 + - 55 * + 93 ) * CASE + 37 + - 78 WHEN 77 - - 42 THEN 75 + - 2 WHEN + MIN ( 95 ) THEN 86 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT COUNT( ALL - 42 )
----
1

skipif mysql # not compatible
query I rowsort label-7175
SELECT COUNT ( ALL - 42 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT SUM( ALL + 94 ) * 93
----
8742

skipif mysql # not compatible
query I rowsort label-7176
SELECT SUM ( ALL + 94 ) * 93
----
8742

query I rowsort
SELECT + 58 * - 12 + 80 * + 37
----
2264

query I rowsort
SELECT DISTINCT 78 - + - 80 * - 64 AS col1
----
-5042

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT MIN( DISTINCT - 29 ) + 44 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-7180
SELECT MIN ( DISTINCT - 29 ) + 44 AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7181
SELECT ALL + 32 DIV - - ( 33 ) * + 29
----
0

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL + 32 / - - ( 33 ) * + 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT DISTINCT COUNT( 54 ) * - 94 col2
----
-94

skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT COUNT ( 54 ) * - 94 col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT ALL 30 * NULLIF ( COUNT( * ), + 18 ) col1
----
30

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL 30 * NULLIF ( COUNT ( * ), + 18 ) col1
----
30

query I rowsort
SELECT 98 + - + 66 * + 21 AS col1
----
-1288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7185
SELECT - 14 * - ( - 81 ) + 50 * CAST( ( - 83 ) * 30 AS SIGNED ) AS col1
----
-125634

skipif mysql # not compatible
query I rowsort label-7185
SELECT - 14 * - ( - 81 ) + 50 * CAST ( ( - 83 ) * 30 AS INTEGER ) AS col1
----
-125634

query I rowsort
SELECT ALL 77 * + 67 AS col1
----
5159

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT 17 + + COUNT( * ) + 38 * 31
----
1196

skipif mysql # not compatible
query I rowsort label-7187
SELECT 17 + + COUNT ( * ) + 38 * 31
----
1196

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

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

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

skipif mysql # not compatible
query I rowsort label-7189
SELECT CAST ( NULL AS INTEGER ) + 45 - 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT - - MAX( DISTINCT ( - 63 ) ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-7190
SELECT - - MAX ( DISTINCT ( - 63 ) ) AS col1
----
-63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT + 40 * + - COUNT( * ) - - 75 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-7192
SELECT + 40 * + - COUNT ( * ) - - 75 AS col1
----
35

query I rowsort
SELECT ALL + 11 + - 77 - - 34 col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-7194
SELECT + - 42 DIV + 57 + + 30 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-7194
SELECT + - 42 / + 57 + + 30 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT ALL - COUNT( * ) + - 14 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL - COUNT ( * ) + - 14 AS col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7196
SELECT ALL - 31 + - NULLIF ( CAST( COALESCE ( 27, 64, + 23 ) AS SIGNED ), - 56 ) * - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL - 31 + - NULLIF ( CAST ( COALESCE ( 27, 64, + 23 ) AS INTEGER ), - 56 ) * - COUNT ( * )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT + MAX( DISTINCT - 48 ) + + 60 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7197
SELECT + MAX ( DISTINCT - 48 ) + + 60 AS col0
----
12

query I rowsort
SELECT ALL + + 7 + + + ( 20 ) + - 26
----
1

query I rowsort
SELECT - 90 + - + 88 * - 92 AS col0
----
8006

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7200
SELECT DISTINCT + ( + 56 ) + - NULLIF ( 48, + CAST( NULL AS DECIMAL ) * + CAST( + 48 AS SIGNED ) + - 21 )
----
8

skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT + ( + 56 ) + - NULLIF ( 48, + CAST ( NULL AS REAL ) * + CAST ( + 48 AS INTEGER ) + - 21 )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7201
SELECT + COUNT( * ) * + 23 DIV + 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7201
SELECT + COUNT ( * ) * + 23 / + 66 AS col0
----
0

query I rowsort
SELECT DISTINCT + 54 * - ( - 49 )
----
2646

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7203
SELECT ALL - AVG ( - 53 ) + - CASE - 55 WHEN + ( - 11 ) THEN 57 WHEN CAST( COUNT( * ) AS SIGNED ) THEN 72 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL - AVG ( - 53 ) + - CASE - 55 WHEN + ( - 11 ) THEN 57 WHEN CAST ( COUNT ( * ) AS INTEGER ) THEN 72 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + ( - 95 ) + + 60 AS col2
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-7205
SELECT - + 15 DIV 16 col1
----
0

skipif mysql # not compatible
query I rowsort label-7205
SELECT - + 15 / 16 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT - + COUNT( * ) + 56 + 55 * - 53 AS col0
----
-2860

skipif mysql # not compatible
query I rowsort label-7206
SELECT - + COUNT ( * ) + 56 + 55 * - 53 AS col0
----
-2860

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT ALL - 35 - + 18 + - COUNT( * ) * - 44
----
-9

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL - 35 - + 18 + - COUNT ( * ) * - 44
----
-9

query I rowsort
SELECT ALL + 55 - 38 + 58 AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7209
SELECT - 6 DIV NULLIF ( 37, + 89 + 98 * CAST( + COUNT( * ) DIV 15 + 33 * MAX( - 60 ) AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-7209
SELECT - 6 / NULLIF ( 37, + 89 + 98 * CAST ( + COUNT ( * ) / 15 + 33 * MAX ( - 60 ) AS REAL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT DISTINCT + COALESCE ( 0, - ( SUM( ALL - 45 ) ), 33 + + COUNT( + 54 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7210
SELECT DISTINCT + COALESCE ( 0, - ( SUM ( ALL - 45 ) ), 33 + + COUNT ( + 54 ) ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7211
SELECT DISTINCT + 18, CAST( NULL AS SIGNED ) / + 39 + 11 AS col1
----
18
NULL

skipif mysql # not compatible
query II rowsort label-7211
SELECT DISTINCT + 18, CAST ( NULL AS INTEGER ) / + 39 + 11 AS col1
----
18
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT COUNT( * ) * 61 - - 14 col2
----
75

skipif mysql # not compatible
query I rowsort label-7214
SELECT COUNT ( * ) * 61 - - 14 col2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7215
SELECT + 54 DIV 7 - 90
----
-83

skipif mysql # not compatible
query I rowsort label-7215
SELECT + 54 / 7 - 90
----
-83

query II rowsort
SELECT + 97 AS col2, + 64 * - + 15 * + 49
----
97
-47040

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7218
SELECT - COALESCE ( COUNT( * ), + MAX( 39 ), + 31, COUNT( * ) DIV COUNT( * ) + 9 ) * 27
----
-27

skipif mysql # not compatible
query I rowsort label-7218
SELECT - COALESCE ( COUNT ( * ), + MAX ( 39 ), + 31, COUNT ( * ) / COUNT ( * ) + 9 ) * 27
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-7219
SELECT DISTINCT + 30 col1, + 60 + - COUNT( * ) AS col2
----
30
59

skipif mysql # not compatible
query II rowsort label-7219
SELECT DISTINCT + 30 col1, + 60 + - COUNT ( * ) AS col2
----
30
59

query I rowsort
SELECT DISTINCT + 28 * 41
----
1148

query II rowsort
SELECT DISTINCT + 49, - ( + + 56 ) AS col0
----
49
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT ALL + 70 * - 62 + + COUNT( * ) * + 98 AS col1
----
-4242

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL + 70 * - 62 + + COUNT ( * ) * + 98 AS col1
----
-4242

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT + NULLIF ( - ( - COALESCE ( 19, 86 ) ), NULLIF ( - 51, COUNT( * ) ) * + 59 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-7224
SELECT + NULLIF ( - ( - COALESCE ( 19, 86 ) ), NULLIF ( - 51, COUNT ( * ) ) * + 59 ) AS col1
----
19

query I rowsort
SELECT ALL + 20 * + 60 * + 25 + CASE - 30 WHEN + 78 + - 53 THEN NULL ELSE 29 END
----
30029

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT SUM( - 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-7226
SELECT SUM ( - 63 )
----
-63

query I rowsort
SELECT - 53 * 19
----
-1007

query I rowsort
SELECT + + NULLIF ( 74, 79 + + 87 ) * + 8
----
592

query I rowsort
SELECT ALL 64 * + 73 * - 56 AS col2
----
-261632

query I rowsort
SELECT + - 46 * - 85 * - 6 * 16
----
-375360

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT ALL - 54 * 31 * - 60 - + COUNT( * ) + - 86 AS col0
----
100353

skipif mysql # not compatible
query I rowsort label-7231
SELECT ALL - 54 * 31 * - 60 - + COUNT ( * ) + - 86 AS col0
----
100353

query I rowsort
SELECT DISTINCT + - 66 * - - ( + 45 ) + 28 * 37 + 98 AS col0
----
-1836

query I rowsort
SELECT + 60 * - 80 AS col0
----
-4800

query I rowsort
SELECT ALL 30 * - 99
----
-2970

query II rowsort
SELECT ALL - 94, 80 * 31 AS col2
----
-94
2480

query I rowsort
SELECT - - 75 * 76 + - 20 + - 33 AS col0
----
5647

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

skipif mysql # not compatible
query II rowsort label-7237
SELECT - + 27 AS col0, + CAST ( NULL AS INTEGER ) col0
----
-27
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7238
SELECT + - 94 + + - COALESCE ( + - NULLIF ( 6, - CASE CAST( NULL AS SIGNED ) WHEN 60 THEN 26 * - AVG ( DISTINCT 63 ) ELSE NULL END * CASE - 10 + - COUNT( * ) WHEN + 89 + - COUNT( * ) THEN 65 END + 38 ), SUM( + 95 ) * - 35 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-7238
SELECT + - 94 + + - COALESCE ( + - NULLIF ( 6, - CASE CAST ( NULL AS INTEGER ) WHEN 60 THEN 26 * - AVG ( DISTINCT 63 ) ELSE NULL END * CASE - 10 + - COUNT ( * ) WHEN + 89 + - COUNT ( * ) THEN 65 END + 38 ), SUM ( + 95 ) * - 35 ) AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7239
SELECT ALL + 25 + MIN( DISTINCT - + 81 ) - - 70 * CAST( 30 * + MIN( ALL - CAST( NULL AS SIGNED ) ) + + 99 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL + 25 + MIN ( DISTINCT - + 81 ) - - 70 * CAST ( 30 * + MIN ( ALL - CAST ( NULL AS INTEGER ) ) + + 99 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7240
SELECT + + 19 + + CAST( NULL AS SIGNED ) * CASE + 6 WHEN - COUNT( * ) THEN 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7240
SELECT + + 19 + + CAST ( NULL AS INTEGER ) * CASE + 6 WHEN - COUNT ( * ) THEN 14 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT + + COUNT( DISTINCT - ( 95 ) ) + + 91 * + 28
----
2549

skipif mysql # not compatible
query I rowsort label-7241
SELECT + + COUNT ( DISTINCT - ( 95 ) ) + + 91 * + 28
----
2549

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT ALL 37 - + + CASE - + 89 WHEN - 94 * - ( 95 ) THEN NULL WHEN 78 THEN - 72 ELSE - 43 END * - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL 37 - + + CASE - + 89 WHEN - 94 * - ( 95 ) THEN NULL WHEN 78 THEN - 72 ELSE - 43 END * - COUNT ( * )
----
-6

query I rowsort
SELECT + 76 * + 84
----
6384

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

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

query I rowsort
SELECT DISTINCT + - 25 * - ( + 58 )
----
1450

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

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

query I rowsort
SELECT + 3 + - 60 - + 53 * + 82
----
-4403

query I rowsort
SELECT ALL + COALESCE ( - + ( - 57 ), - 54 ) * + 37
----
2109

query I rowsort
SELECT DISTINCT 9 * + 13 * - - 21
----
2457

query II rowsort
SELECT - ( - 64 ), NULLIF ( - ( 67 ), - 35 ) AS col1
----
64
-67

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7252
SELECT - 55 DIV 42 * + 44 * + - 31 col2
----
1364

skipif mysql # not compatible
query I rowsort label-7252
SELECT - 55 / 42 * + 44 * + - 31 col2
----
1364

query I rowsort
SELECT ALL + 5 * + 72
----
360

onlyif mysql # DIV for integer division: 
query I rowsort label-7254
SELECT - 31 - + 99 DIV - + 68
----
-30

skipif mysql # not compatible
query I rowsort label-7254
SELECT - 31 - + 99 / - + 68
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7255
SELECT + 88 DIV - COUNT( * ) + 68 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-7255
SELECT + 88 / - COUNT ( * ) + 68 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT ALL 8 * - 22 * - COUNT( * ) AS col2
----
176

skipif mysql # not compatible
query I rowsort label-7256
SELECT ALL 8 * - 22 * - COUNT ( * ) AS col2
----
176

query I rowsort
SELECT DISTINCT 66 * + + 8 AS col1
----
528

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

skipif mysql # not compatible
query I rowsort label-7258
SELECT ALL + COUNT ( - 24 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7259
SELECT DISTINCT - COUNT( 7 ) DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT - COUNT ( 7 ) / + 66
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7260
SELECT DISTINCT COALESCE ( + ( - 58 ), + COUNT( * ) ) DIV - 47 + 76
----
77

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT COALESCE ( + ( - 58 ), + COUNT ( * ) ) / - 47 + 76
----
77

query I rowsort
SELECT - 72 + + + 81
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7262
SELECT DISTINCT 18 / NULLIF ( - + 78, + 50 ) * 16 + 32 / ( ( + CAST( NULL AS SIGNED ) ) + - 73 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7262
SELECT DISTINCT 18 / NULLIF ( - + 78, + 50 ) * 16 + 32 / ( ( + CAST ( NULL AS INTEGER ) ) + - 73 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT ALL + MIN( - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL + MIN ( - 43 )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-7264
SELECT - 65 * 63 AS col1, - COUNT( * ) AS col2
----
-4095
-1

skipif mysql # not compatible
query II rowsort label-7264
SELECT - 65 * 63 AS col1, - COUNT ( * ) AS col2
----
-4095
-1

query I rowsort
SELECT DISTINCT + ( ( - 19 ) ) * - 93 col1
----
1767

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7266
SELECT ALL - NULLIF ( - COUNT( * ), - ( + 72 ) * 9 ) DIV 87 + 18
----
18

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL - NULLIF ( - COUNT ( * ), - ( + 72 ) * 9 ) / 87 + 18
----
18

query II rowsort
SELECT - 53 + - 36, 6 * - 19 * - 37 AS col0
----
-89
4218

query I rowsort
SELECT ALL + 79 * - 49 * ( + + ( - 24 ) )
----
92904

query I rowsort
SELECT 17 + 6
----
23

query I rowsort
SELECT DISTINCT + 53 * - 47 - - + 4 AS col0
----
-2487

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT ALL COUNT( 85 ) + NULLIF ( - 70, + 81 + 58 * 51 )
----
-69

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL COUNT ( 85 ) + NULLIF ( - 70, + 81 + 58 * 51 )
----
-69

query I rowsort
SELECT DISTINCT - 62 + 69 * - 11
----
-821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7273
SELECT CASE 24 WHEN 6 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN 7 DIV 16 + 5 * + COUNT( * ) ELSE + 80 END + 28
----
108

skipif mysql # not compatible
query I rowsort label-7273
SELECT CASE 24 WHEN 6 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 7 / 16 + 5 * + COUNT ( * ) ELSE + 80 END + 28
----
108

query I rowsort
SELECT ALL - - 23 + - - 65 + 34
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7275
SELECT 29 DIV 95 * + 27 DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7275
SELECT 29 / 95 * + 27 / - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7276
SELECT - MIN( - 7 ) + 57 + - 52 + 68 DIV - 88 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-7276
SELECT - MIN ( - 7 ) + 57 + - 52 + 68 / - 88 AS col1
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7277
SELECT DISTINCT 64 DIV 45 DIV - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT 64 / 45 / - COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7278
SELECT 18 + + CASE - - 77 WHEN 5 THEN - CAST( ( 69 ) AS SIGNED ) END + + 91 * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-7278
SELECT 18 + + CASE - - 77 WHEN 5 THEN - CAST ( ( 69 ) AS INTEGER ) END + + 91 * + 82
----
NULL

query I rowsort
SELECT ALL 91 - + 12 AS col0
----
79

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7281
SELECT DISTINCT - + 18 DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7281
SELECT DISTINCT - + 18 / + 82 AS col1
----
0

query II rowsort
SELECT ALL 4 * + 79 col2, - 32 AS col2
----
316
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT DISTINCT + 96 * - MIN( + + 51 )
----
-4896

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT + 96 * - MIN ( + + 51 )
----
-4896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7284
SELECT + ( + NULLIF ( - 45, - + 65 + CASE COUNT( * ) WHEN - 32 THEN - 38 * - 27 + - ( COUNT( * ) ) ELSE - 23 * - ( + ( + 72 ) ) + + 31 * + 14 END * CAST( 76 * CAST( NULL AS SIGNED ) AS SIGNED ) ) )
----
-45

skipif mysql # not compatible
query I rowsort label-7284
SELECT + ( + NULLIF ( - 45, - + 65 + CASE COUNT ( * ) WHEN - 32 THEN - 38 * - 27 + - ( COUNT ( * ) ) ELSE - 23 * - ( + ( + 72 ) ) + + 31 * + 14 END * CAST ( 76 * CAST ( NULL AS INTEGER ) AS INTEGER ) ) )
----
-45

query I rowsort
SELECT ALL - 52 * + - 81 * - - 14
----
58968

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT CASE + NULLIF ( + - 49, + 86 * ( + 95 * + 24 ) ) WHEN 89 - - 23 * - 77 THEN 26 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7286
SELECT CASE + NULLIF ( + - 49, + 86 * ( + 95 * + 24 ) ) WHEN 89 - - 23 * - 77 THEN 26 END * + COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7287
SELECT - 10 * COUNT ( * )
----
-10

query I rowsort
SELECT 73 + 21 AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7289
SELECT ( 74 ) * CASE + 60 WHEN 12 * 78 THEN NULL WHEN 82 THEN NULL ELSE - 51 DIV 10 + 84 END col0
----
5846

skipif mysql # not compatible
query I rowsort label-7289
SELECT ( 74 ) * CASE + 60 WHEN 12 * 78 THEN NULL WHEN 82 THEN NULL ELSE - 51 / 10 + 84 END col0
----
5846

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT ALL + ( 1 ) * - + 25 * - 27 * 39 * NULLIF ( 13, CASE + 73 WHEN COUNT( * ) THEN 55 WHEN CASE 77 WHEN - 59 + + CASE 86 + 57 WHEN 30 + 55 * 37 THEN 43 * 48 + 25 END THEN ( + ( COALESCE ( - 68, - NULLIF ( - 94, 26 ) ) ) ) * COUNT( * ) WHEN + 51 THEN - 33 / - 2 END * + COUNT( * ) THEN NULL ELSE 52 / COALESCE ( COUNT( * ) * 89, + 26 + 82 ) + 25 END * 2 ) AS col2
----
342225

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL + ( 1 ) * - + 25 * - 27 * 39 * NULLIF ( 13, CASE + 73 WHEN COUNT ( * ) THEN 55 WHEN CASE 77 WHEN - 59 + + CASE 86 + 57 WHEN 30 + 55 * 37 THEN 43 * 48 + 25 END THEN ( + ( COALESCE ( - 68, - NULLIF ( - 94, 26 ) ) ) ) * COUNT ( * ) WHEN + 51 THEN - 33 / - 2 END * + COUNT ( * ) THEN NULL ELSE 52 / COALESCE ( COUNT ( * ) * 89, + 26 + 82 ) + 25 END * 2 ) AS col2
----
342225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7291
SELECT DISTINCT 43 AS col0, CAST( NULL AS SIGNED ) * 54
----
43
NULL

skipif mysql # not compatible
query II rowsort label-7291
SELECT DISTINCT 43 AS col0, CAST ( NULL AS INTEGER ) * 54
----
43
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT - 96 * COUNT( * ) + 78 * + 97
----
7470

skipif mysql # not compatible
query I rowsort label-7293
SELECT - 96 * COUNT ( * ) + 78 * + 97
----
7470

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT DISTINCT COUNT( * ) + NULLIF ( 86, + - 41 - + NULLIF ( 63, + COUNT( * ) * ( + MIN( DISTINCT 9 ) ) ) / 85 ) + 78 col2
----
165

skipif mysql # not compatible
query I rowsort label-7294
SELECT DISTINCT COUNT ( * ) + NULLIF ( 86, + - 41 - + NULLIF ( 63, + COUNT ( * ) * ( + MIN ( DISTINCT 9 ) ) ) / 85 ) + 78 col2
----
165

query I rowsort
SELECT - ( - 12 ) * 96 + + 99 AS col2
----
1251

query I rowsort
SELECT ALL 95 + - - 89 AS col0
----
184

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7297
SELECT 71, + ( + ( 26 ) ) * ( 27 ) * CASE + 42 WHEN 18 * + ( - 50 * + ( 58 * - 32 ) ) + - 26 THEN 35 + 5 END + NULLIF ( CAST( - 98 AS SIGNED ), - 63 ) AS col0
----
71
NULL

skipif mysql # not compatible
query II rowsort label-7297
SELECT 71, + ( + ( 26 ) ) * ( 27 ) * CASE + 42 WHEN 18 * + ( - 50 * + ( 58 * - 32 ) ) + - 26 THEN 35 + 5 END + NULLIF ( CAST ( - 98 AS INTEGER ), - 63 ) AS col0
----
71
NULL

query I rowsort
SELECT 98 * - + 77 AS col2
----
-7546

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT ALL - MIN( + 2 ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL - MIN ( + 2 ) col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7300
SELECT DISTINCT - 56 + 90 DIV 50 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-7300
SELECT DISTINCT - 56 + 90 / 50 AS col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7301
SELECT 10 + CAST( - 33 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-7301
SELECT 10 + CAST ( - 33 AS INTEGER )
----
-23

query I rowsort
SELECT 46 * - 87
----
-4002

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT DISTINCT - COUNT( ALL 76 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7303
SELECT DISTINCT - COUNT ( ALL 76 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT ALL NULLIF ( - 21, - 20 ) * MAX( + 66 ) AS col1
----
-1386

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL NULLIF ( - 21, - 20 ) * MAX ( + 66 ) AS col1
----
-1386

query I rowsort
SELECT 72 * - 20
----
-1440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7306
SELECT ALL - + SUM( 69 ) DIV + - 50 + + - 73 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL - + SUM ( 69 ) / + - 50 + + - 73 AS col0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-7307
SELECT + 42 DIV 60 * - + 38 * - 71
----
0

skipif mysql # not compatible
query I rowsort label-7307
SELECT + 42 / 60 * - + 38 * - 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT ALL NULLIF ( + + CASE + 45 WHEN 79 * 70 / 60 THEN NULL WHEN - 0 THEN - 11 END, + COALESCE ( + 24, MIN( DISTINCT 39 ) * 96 ) + 32 ) - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7308
SELECT ALL NULLIF ( + + CASE + 45 WHEN 79 * 70 / 60 THEN NULL WHEN - 0 THEN - 11 END, + COALESCE ( + 24, MIN ( DISTINCT 39 ) * 96 ) + 32 ) - 94
----
NULL

query I rowsort
SELECT ALL + 58 - - 52 * 71
----
3750

query II rowsort
SELECT + 78, - 41 AS col1
----
78
-41

query I rowsort
SELECT NULLIF ( 11, - 49 ) AS col0
----
11

query I rowsort
SELECT 13 * 68
----
884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7313
SELECT DISTINCT - + 57 AS col1, NULLIF ( + NULLIF ( - COUNT( * ), - 86 * 10 + CAST( 42 AS SIGNED ) * 11 ), + COUNT( 10 ) / CAST( NULL AS SIGNED ) + + 87 )
----
-57
-1

skipif mysql # not compatible
query II rowsort label-7313
SELECT DISTINCT - + 57 AS col1, NULLIF ( + NULLIF ( - COUNT ( * ), - 86 * 10 + CAST ( 42 AS INTEGER ) * 11 ), + COUNT ( 10 ) / CAST ( NULL AS INTEGER ) + + 87 )
----
-57
-1

query I rowsort
SELECT ALL COALESCE ( + - 19, 3 ) AS col2
----
-19

query I rowsort
SELECT + 49 * - 59 * - + 94 * - - 55
----
14946470

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT + ( + 26 ) - - 34 * - ( - COUNT( 96 ) )
----
60

skipif mysql # not compatible
query I rowsort label-7316
SELECT + ( + 26 ) - - 34 * - ( - COUNT ( 96 ) )
----
60

onlyif mysql # aggregate syntax: 
query III rowsort label-7317
SELECT DISTINCT 7 AS col2, - 60 * - 6 AS col0, + MAX( ALL - 66 ) + + 94 AS col1
----
7
360
28

skipif mysql # not compatible
query III rowsort label-7317
SELECT DISTINCT 7 AS col2, - 60 * - 6 AS col0, + MAX ( ALL - 66 ) + + 94 AS col1
----
7
360
28

query I rowsort
SELECT DISTINCT - 14 * + 82 * - 14 * 1 * + 9 AS col0
----
144648

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT + 16 + - 91 - + COUNT( * ) - - - 35 AS col0
----
-111

skipif mysql # not compatible
query I rowsort label-7319
SELECT + 16 + - 91 - + COUNT ( * ) - - - 35 AS col0
----
-111

query I rowsort
SELECT - 25 + + - 81
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT 89 / + CASE - COUNT( * ) WHEN + 40 THEN - 36 + - MIN( ALL 78 ) * - COUNT( * ) WHEN 16 THEN + COUNT( * ) END * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT 89 / + CASE - COUNT ( * ) WHEN + 40 THEN - 36 + - MIN ( ALL 78 ) * - COUNT ( * ) WHEN 16 THEN + COUNT ( * ) END * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 92 + 32 + 97 - - 11 AS col0
----
232

onlyif mysql # DIV for integer division: 
query I rowsort label-7323
SELECT ALL - 87 DIV 33
----
-2

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL - 87 / 33
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7324
SELECT 76 + COUNT( * ) AS col2, 63
----
77
63

skipif mysql # not compatible
query II rowsort label-7324
SELECT 76 + COUNT ( * ) AS col2, 63
----
77
63

query I rowsort
SELECT AVG ( ALL + CASE - + 18 WHEN + ( 97 ) * - 1 - + ( NULLIF ( + 27, 90 ) + 55 ) THEN 48 END ) + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT DISTINCT 73 * - + COUNT( * ) col1
----
-73

skipif mysql # not compatible
query I rowsort label-7326
SELECT DISTINCT 73 * - + COUNT ( * ) col1
----
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT ALL ( COUNT( * ) ) + - + 65 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL ( COUNT ( * ) ) + - + 65 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT COALESCE ( - 97, - 52 * + - 97 + 90 + - COUNT( * ) * - 57 + 32 ) + - 25
----
-122

skipif mysql # not compatible
query I rowsort label-7329
SELECT COALESCE ( - 97, - 52 * + - 97 + 90 + - COUNT ( * ) * - 57 + 32 ) + - 25
----
-122

query I rowsort
SELECT ( 36 ) * - + 18 * + - 19 AS col2
----
12312

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT ALL 54 + + MIN( 21 )
----
75

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL 54 + + MIN ( 21 )
----
75

query II rowsort
SELECT - 47 AS col0, + 16 AS col2
----
-47
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT DISTINCT - 22 * - + ( - 61 ) + 77 + 19 * - + CASE COUNT( DISTINCT 38 ) WHEN 91 * + ( - 16 ) THEN - 82 WHEN + 0 THEN NULL ELSE NULL END * - 49 * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-7334
SELECT DISTINCT - 22 * - + ( - 61 ) + 77 + 19 * - + CASE COUNT ( DISTINCT 38 ) WHEN 91 * + ( - 16 ) THEN - 82 WHEN + 0 THEN NULL ELSE NULL END * - 49 * 39
----
NULL

query II rowsort
SELECT DISTINCT + 94 AS col1, - 48
----
94
-48

query I rowsort
SELECT DISTINCT 78 * - 51 - - 76 AS col1
----
-3902

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT + + 9 + + 20 + - - 30 + ( - - COUNT( * ) )
----
60

skipif mysql # not compatible
query I rowsort label-7337
SELECT + + 9 + + 20 + - - 30 + ( - - COUNT ( * ) )
----
60

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

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

query I rowsort
SELECT ALL - 62 * - + 33 - - - 23 AS col1
----
2023

onlyif mysql # aggregate syntax: 
query II rowsort label-7340
SELECT ALL + - 23, - MAX( - - 96 ) * + + 2 * - COUNT( * ) + - 76 AS col0
----
-23
116

skipif mysql # not compatible
query II rowsort label-7340
SELECT ALL + - 23, - MAX ( - - 96 ) * + + 2 * - COUNT ( * ) + - 76 AS col0
----
-23
116

onlyif mysql # DIV for integer division: 
query I rowsort label-7341
SELECT + ( + 29 ) DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-7341
SELECT + ( + 29 ) / 70
----
0

query I rowsort
SELECT - 67 * - 59 * - - 46 col2
----
181838

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT ALL + 37 * + 48 * 75 * + + COUNT( * ) AS col0
----
133200

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL + 37 * + 48 * 75 * + + COUNT ( * ) AS col0
----
133200

query I rowsort
SELECT + - 32 + - 5 AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7345
SELECT + CAST( NULL AS SIGNED ) + - CASE CAST( + 72 AS SIGNED ) WHEN - 99 THEN NULL WHEN + MIN( - 1 ) * + CAST( NULL AS DECIMAL ) THEN 92 * - 93 - 73 ELSE + CAST( NULL AS SIGNED ) * + 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7345
SELECT + CAST ( NULL AS INTEGER ) + - CASE CAST ( + 72 AS INTEGER ) WHEN - 99 THEN NULL WHEN + MIN ( - 1 ) * + CAST ( NULL AS REAL ) THEN 92 * - 93 - 73 ELSE + CAST ( NULL AS INTEGER ) * + 73 END
----
NULL

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

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

query II rowsort
SELECT ALL + 48, 79 AS col1
----
48
79

query I rowsort
SELECT DISTINCT - 18 * 50
----
-900

query II rowsort
SELECT ALL + 25, 17 AS col1
----
25
17

query I rowsort
SELECT - 70 + + 15
----
-55

query II rowsort
SELECT + 75 col1, + 86 + - ( - 27 ) AS col0
----
75
113

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

query I rowsort
SELECT ALL - 36 + - + 53 * - 89 + - + 91
----
4590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7354
SELECT - - 25 + COUNT( * ) * + + 39 + - + 88 * 37 + - ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7354
SELECT - - 25 + COUNT ( * ) * + + 39 + - + 88 * 37 + - ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7355
SELECT DISTINCT - + 38 + COUNT( * ) AS col2, + 15
----
-37
15

skipif mysql # not compatible
query II rowsort label-7355
SELECT DISTINCT - + 38 + COUNT ( * ) AS col2, + 15
----
-37
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT ALL COUNT( ALL + 47 )
----
1

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL COUNT ( ALL + 47 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7357
SELECT DISTINCT 50 + - CASE COUNT( * ) WHEN + ( - - SUM( DISTINCT - - 15 ) ) * 60 - CASE - CAST( NULL AS SIGNED ) WHEN - 8 + 64 * - COUNT( * ) THEN NULL ELSE + 44 END + 35 THEN + ( 33 ) WHEN - ( + 65 ) + 41 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7357
SELECT DISTINCT 50 + - CASE COUNT ( * ) WHEN + ( - - SUM ( DISTINCT - - 15 ) ) * 60 - CASE - CAST ( NULL AS INTEGER ) WHEN - 8 + 64 * - COUNT ( * ) THEN NULL ELSE + 44 END + 35 THEN + ( 33 ) WHEN - ( + 65 ) + 41 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7358
SELECT ALL - 82 + + - 48 + 92 + + - 78 + + - NULLIF ( - - 77, + + AVG ( NULLIF ( + 93, 58 ) ) ) DIV - 91 * + 72
----
-116

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL - 82 + + - 48 + 92 + + - 78 + + - NULLIF ( - - 77, + + AVG ( NULLIF ( + 93, 58 ) ) ) / - 91 * + 72
----
-116

query II rowsort
SELECT DISTINCT ( + 82 ) AS col0, + 91
----
82
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7360
SELECT DISTINCT - 73 + + 0 + CAST( NULL AS SIGNED ) AS col2, - 63 AS col2
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-7360
SELECT DISTINCT - 73 + + 0 + CAST ( NULL AS INTEGER ) AS col2, - 63 AS col2
----
NULL
-63

query I rowsort
SELECT - 73 * ( 74 ) * - - 39 * + 10
----
-2106780

query II rowsort
SELECT ALL ( - 92 ) AS col0, 28
----
-92
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT ALL - 56 + COUNT( * ) + 94 - - 97
----
136

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL - 56 + COUNT ( * ) + 94 - - 97
----
136

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7365
SELECT + 42 * + 2 AS col2, - CAST( NULL AS SIGNED )
----
84
NULL

skipif mysql # not compatible
query II rowsort label-7365
SELECT + 42 * + 2 AS col2, - CAST ( NULL AS INTEGER )
----
84
NULL

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( + - 30, - + 65 * 47 * + 47 ) + + 41 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT ALL NULLIF ( 31, 99 ) - - COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL NULLIF ( 31, 99 ) - - COUNT ( * ) AS col0
----
32

query I rowsort
SELECT ALL ( + COALESCE ( ( + + 8 ), + 53 ) ) * + 82 AS col1
----
656

query I rowsort
SELECT DISTINCT + 39 - + - 91 + 74 + 42 + - ( + 72 ) col2
----
174

onlyif mysql # aggregate syntax: 
query II rowsort label-7371
SELECT ALL 94 * 92 AS col2, + 7 * + 92 + - - 71 + 95 + - ( + CASE - 49 WHEN 76 THEN - SUM( 81 ) + MAX( ALL 85 ) * 33 END ) * COALESCE ( - CASE - MAX( DISTINCT 3 ) WHEN - 10 * 8 THEN + COUNT( * ) * - 88 END, 22 * ( + 42 * 71 ) ) AS col1
----
8648
NULL

skipif mysql # not compatible
query II rowsort label-7371
SELECT ALL 94 * 92 AS col2, + 7 * + 92 + - - 71 + 95 + - ( + CASE - 49 WHEN 76 THEN - SUM ( 81 ) + MAX ( ALL 85 ) * 33 END ) * COALESCE ( - CASE - MAX ( DISTINCT 3 ) WHEN - 10 * 8 THEN + COUNT ( * ) * - 88 END, 22 * ( + 42 * 71 ) ) AS col1
----
8648
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT 12 * 51 + - ( - 37 ) - + 82 * - + NULLIF ( 17, COUNT( * ) ) + + 43 * 26 AS col1
----
3161

skipif mysql # not compatible
query I rowsort label-7372
SELECT 12 * 51 + - ( - 37 ) - + 82 * - + NULLIF ( 17, COUNT ( * ) ) + + 43 * 26 AS col1
----
3161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7373
SELECT + MIN( - - 41 ) DIV + - 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7373
SELECT + MIN ( - - 41 ) / + - 49 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7374
SELECT + MIN( ALL + - 89 ) * + CAST( + AVG ( - - 99 ) AS SIGNED ) * + + 43 + + 89 + ( + 95 )
----
-378689

skipif mysql # not compatible
query I rowsort label-7374
SELECT + MIN ( ALL + - 89 ) * + CAST ( + AVG ( - - 99 ) AS INTEGER ) * + + 43 + + 89 + ( + 95 )
----
-378689

query I rowsort
SELECT - 68 * - - 62 + 96
----
-4120

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

query I rowsort
SELECT + - 86 * + 45 + - - CASE 49 WHEN + - 96 THEN - 31 * 8 END AS col1
----
NULL

query I rowsort
SELECT ALL 71 * 53 AS col2
----
3763

query I rowsort
SELECT + 40 * 77 AS col0
----
3080

onlyif mysql # DIV for integer division: 
query I rowsort label-7380
SELECT DISTINCT + 98 DIV + 57 - - 85 DIV - + 85
----
0

skipif mysql # not compatible
query I rowsort label-7380
SELECT DISTINCT + 98 / + 57 - - 85 / - + 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT ALL - COUNT( * ) * - NULLIF ( + 58, - - 33 ) + 93 * - - 5 + + + 59
----
582

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL - COUNT ( * ) * - NULLIF ( + 58, - - 33 ) + 93 * - - 5 + + + 59
----
582

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT DISTINCT 99 * + + 41 + CASE - COUNT( * ) WHEN + - NULLIF ( + 59, 41 ) * + 81 + + 50 THEN 33 ELSE NULL END + 3 / 25
----
NULL

skipif mysql # not compatible
query I rowsort label-7383
SELECT DISTINCT 99 * + + 41 + CASE - COUNT ( * ) WHEN + - NULLIF ( + 59, 41 ) * + 81 + + 50 THEN 33 ELSE NULL END + 3 / 25
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7384
SELECT ALL + 28 * + - SUM( + 77 ) + - CAST( 1 AS SIGNED ) + 59 * + 90 - - ( + 2 ) * COUNT( * ) AS col1
----
3155

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL + 28 * + - SUM ( + 77 ) + - CAST ( 1 AS INTEGER ) + 59 * + 90 - - ( + 2 ) * COUNT ( * ) AS col1
----
3155

onlyif mysql # DIV for integer division: 
query I rowsort label-7385
SELECT + + 10 DIV - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7385
SELECT + + 10 / - 51 AS col1
----
0

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

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

query I rowsort
SELECT + 97 - + + 62 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT ALL + 93 * - MAX( + 88 ) + - + COUNT( * ) AS col0
----
-8185

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL + 93 * - MAX ( + 88 ) + - + COUNT ( * ) AS col0
----
-8185

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT - 73 / - - ( + CASE + + 92 WHEN + 17 + - + 55 THEN + 66 WHEN 1 + + 27 THEN + SUM( 5 ) + - 57 * ( 0 ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7389
SELECT - 73 / - - ( + CASE + + 92 WHEN + 17 + - + 55 THEN + 66 WHEN 1 + + 27 THEN + SUM ( 5 ) + - 57 * ( 0 ) ELSE NULL END )
----
NULL

query I rowsort
SELECT + ( 58 ) * 91 + 19
----
5297

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7392
SELECT - 49 * ( + + 67 ) DIV - + ( + + 74 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-7392
SELECT - 49 * ( + + 67 ) / - + ( + + 74 ) AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7393
SELECT DISTINCT COALESCE ( - NULLIF ( + 65, - 31 + + COALESCE ( + ( - + CASE COUNT( * ) WHEN + COUNT( * ) * + 83 THEN COUNT( DISTINCT - 24 ) + - 65 ELSE - 38 * 66 - - ( 68 ) END ), 34, + CAST( NULL AS SIGNED ) ) ), + MIN( DISTINCT + 86 ) * + 74 )
----
-65

skipif mysql # not compatible
query I rowsort label-7393
SELECT DISTINCT COALESCE ( - NULLIF ( + 65, - 31 + + COALESCE ( + ( - + CASE COUNT ( * ) WHEN + COUNT ( * ) * + 83 THEN COUNT ( DISTINCT - 24 ) + - 65 ELSE - 38 * 66 - - ( 68 ) END ), 34, + CAST ( NULL AS INTEGER ) ) ), + MIN ( DISTINCT + 86 ) * + 74 )
----
-65

query I rowsort
SELECT ALL + 24 + + 42 - - 87 * - 87
----
-7503

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

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

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

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

query I rowsort
SELECT 45 + - 67 AS col1
----
-22

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

query I rowsort
SELECT 61 * + + 37
----
2257

query II rowsort
SELECT ALL 68 AS col0, 24 + ( 71 )
----
68
95

query I rowsort
SELECT DISTINCT + + 51 - - ( + - ( + + 80 ) ) AS col0
----
-29

query II rowsort
SELECT + 30 AS col2, + 71
----
30
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7403
SELECT ALL + + 1 DIV + CASE - 77 WHEN - + 79 THEN NULL WHEN - - 20 THEN - ( - 96 ) + CASE - 59 WHEN - 71 THEN NULL WHEN 35 THEN CASE ( CASE 82 WHEN - 97 + + 38 THEN NULL ELSE - ( - 60 ) END ) WHEN - ( CASE WHEN NOT NULL < NULL THEN 20 ELSE 79 END ) * 6 THEN - MIN( ALL - 3 ) * 92 + + 26 * ( + 69 ) WHEN 83 THEN NULL ELSE 69 * COUNT( * ) END WHEN 51 * + 88 THEN MIN( + CAST( 21 AS SIGNED ) ) ELSE - 82 END - 52 DIV + 62 ELSE 12 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL + + 1 / + CASE - 77 WHEN - + 79 THEN NULL WHEN - - 20 THEN - ( - 96 ) + CASE - 59 WHEN - 71 THEN NULL WHEN 35 THEN CASE ( CASE 82 WHEN - 97 + + 38 THEN NULL ELSE - ( - 60 ) END ) WHEN - ( CASE WHEN NOT NULL < NULL THEN 20 ELSE 79 END ) * 6 THEN - MIN ( ALL - 3 ) * 92 + + 26 * ( + 69 ) WHEN 83 THEN NULL ELSE 69 * COUNT ( * ) END WHEN 51 * + 88 THEN MIN ( + CAST ( 21 AS INTEGER ) ) ELSE - 82 END - 52 / + 62 ELSE 12 END AS col1
----
0

query I rowsort
SELECT - ( + ( - + NULLIF ( - ( + 58 ), + 6 + - 36 ) ) ) * - 28 AS col2
----
1624

onlyif mysql # aggregate syntax: 
query II rowsort label-7405
SELECT ALL - COUNT( * ) AS col1, 23 + + 52
----
-1
75

skipif mysql # not compatible
query II rowsort label-7405
SELECT ALL - COUNT ( * ) AS col1, 23 + + 52
----
-1
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7406
SELECT ALL - - CASE + - COUNT( * ) WHEN + COUNT( * ) - - CAST( NULL AS SIGNED ) * 56 THEN 62 WHEN + - CAST( NULL AS SIGNED ) THEN + + MIN( - 21 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL - - CASE + - COUNT ( * ) WHEN + COUNT ( * ) - - CAST ( NULL AS INTEGER ) * 56 THEN 62 WHEN + - CAST ( NULL AS INTEGER ) THEN + + MIN ( - 21 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + 74, CASE - 24 WHEN + 7 * + 60 + - ( 68 ) + + 86 THEN - 35 * 56 END )
----
-74

query I rowsort
SELECT + 69 * - 70 * 75 + 0 AS col1
----
-362250

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7410
SELECT + CASE + CAST( + + 81 AS SIGNED ) WHEN 56 * 11 THEN 60 * 15 - 52 / - COUNT( * ) END * 46 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7410
SELECT + CASE + CAST ( + + 81 AS INTEGER ) WHEN 56 * 11 THEN 60 * 15 - 52 / - COUNT ( * ) END * 46 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + 92 AS col0, + 81 AS col1
----
92
81

query I rowsort
SELECT ALL - 94 + + 33 AS col2
----
-61

query II rowsort
SELECT DISTINCT - 85, - 4 AS col0
----
-85
-4

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7416
SELECT DISTINCT - SUM( + + CASE 85 WHEN CAST( NULL AS SIGNED ) * - - NULLIF ( + CASE + 63 WHEN + 38 THEN 23 / NULLIF ( 43, + COALESCE ( - 62, + 52 + + 45, 43 * + 49 ) - ( + 31 ) ) WHEN 43 + - 8 THEN NULL END, + 35 ) + - 76 THEN + 84 ELSE 71 END ) + - CASE 25 WHEN - COUNT( * ) * + CAST( NULL AS DECIMAL ) THEN + 92 * + ( CASE 34 WHEN COUNT( * ) THEN NULL WHEN - 59 * + COUNT( * ) THEN NULL WHEN + COUNT( * ) * + 59 THEN + ( 35 ) WHEN - 27 THEN 67 END ) WHEN 3 THEN NULL END / - 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT DISTINCT - SUM ( + + CASE 85 WHEN CAST ( NULL AS INTEGER ) * - - NULLIF ( + CASE + 63 WHEN + 38 THEN 23 / NULLIF ( 43, + COALESCE ( - 62, + 52 + + 45, 43 * + 49 ) - ( + 31 ) ) WHEN 43 + - 8 THEN NULL END, + 35 ) + - 76 THEN + 84 ELSE 71 END ) + - CASE 25 WHEN - COUNT ( * ) * + CAST ( NULL AS REAL ) THEN + 92 * + ( CASE 34 WHEN COUNT ( * ) THEN NULL WHEN - 59 * + COUNT ( * ) THEN NULL WHEN + COUNT ( * ) * + 59 THEN + ( 35 ) WHEN - 27 THEN 67 END ) WHEN 3 THEN NULL END / - 10 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7417
SELECT DISTINCT + - ( - - NULLIF ( + 45, - + CAST( - + 3 AS SIGNED ) ) ) + - - 30 + + - 46 * + 11 - 34 * 77 AS col2
----
-3139

skipif mysql # not compatible
query I rowsort label-7417
SELECT DISTINCT + - ( - - NULLIF ( + 45, - + CAST ( - + 3 AS INTEGER ) ) ) + - - 30 + + - 46 * + 11 - 34 * 77 AS col2
----
-3139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7418
SELECT DISTINCT - CAST( NULL AS SIGNED ) col2, 45 * - 82 + + MIN( - 69 ) AS col0
----
NULL
-3759

skipif mysql # not compatible
query II rowsort label-7418
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2, 45 * - 82 + + MIN ( - 69 ) AS col0
----
NULL
-3759

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT ALL + 53 + + 32 + + - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL + 53 + + 32 + + - COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT 55 * + - NULLIF ( + + COUNT( * ), + 95 + 24 - + 0 * + 10 + - COUNT( * ) + + - 85 / + 69 ) + + 77
----
22

skipif mysql # not compatible
query I rowsort label-7420
SELECT 55 * + - NULLIF ( + + COUNT ( * ), + 95 + 24 - + 0 * + 10 + - COUNT ( * ) + + - 85 / + 69 ) + + 77
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT SUM( + 29 ) * - - 54 * + 70
----
109620

skipif mysql # not compatible
query I rowsort label-7421
SELECT SUM ( + 29 ) * - - 54 * + 70
----
109620

query I rowsort
SELECT DISTINCT ( + + 0 ) - + + 91 + + + 53 - 65 AS col0
----
-103

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

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL CAST ( NULL AS INTEGER ) * - - 68 AS col0
----
NULL

query I rowsort
SELECT ( - - 18 ) * - 80 - 54
----
-1494

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7426
SELECT COUNT( * ) * - - 44, 59 AS col0
----
44
59

skipif mysql # not compatible
query II rowsort label-7426
SELECT COUNT ( * ) * - - 44, 59 AS col0
----
44
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT - MIN( DISTINCT - 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7427
SELECT - MIN ( DISTINCT - 5 ) AS col0
----
5

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

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

query I rowsort
SELECT 26 - 14 + + - 3
----
9

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

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

query I rowsort
SELECT NULLIF ( + 77, 52 ) - 53 + + - ( + 52 ) AS col1
----
-28

query I rowsort
SELECT ( CASE - 97 WHEN + 78 THEN NULL WHEN + 17 THEN NULL ELSE + 6 END ) * + - 31 AS col2
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT ALL + + 49 + - 15 + + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL + + 49 + - 15 + + COUNT ( * )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7434
SELECT ALL - 0 + ( 34 ) DIV - - ( - - 52 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL - 0 + ( 34 ) / - - ( - - 52 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7435
SELECT DISTINCT 7 * CAST( NULL AS DECIMAL ) * + NULLIF ( - CASE + 14 WHEN + 14 THEN - + CAST( + 76 AS DECIMAL ) / COALESCE ( ( 68 ), COUNT( * ) * SUM( 13 ) ) + + 53 WHEN - 40 THEN + 72 ELSE MIN( - 51 ) + CAST( NULL AS SIGNED ) / - MAX( - 53 + 54 ) END, + 21 * 71 ) * + 87 + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7435
SELECT DISTINCT 7 * CAST ( NULL AS REAL ) * + NULLIF ( - CASE + 14 WHEN + 14 THEN - + CAST ( + 76 AS REAL ) / COALESCE ( ( 68 ), COUNT ( * ) * SUM ( 13 ) ) + + 53 WHEN - 40 THEN + 72 ELSE MIN ( - 51 ) + CAST ( NULL AS INTEGER ) / - MAX ( - 53 + 54 ) END, + 21 * 71 ) * + 87 + 99 AS col0
----
NULL

query I rowsort
SELECT 33 * + 34 * ( - + 65 ) AS col1
----
-72930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7437
SELECT ALL + COALESCE ( NULLIF ( + 37, + - COUNT( * ) ), + - 27, - 58 * - 60 * + COUNT( * ) ) * - 98 + - 98 * ( 34 ) + 61 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL + COALESCE ( NULLIF ( + 37, + - COUNT ( * ) ), + - 27, - 58 * - 60 * + COUNT ( * ) ) * - 98 + - 98 * ( 34 ) + 61 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT ALL + 77 * - 49 + 83 + + 60 * - 85 + - - 67 + + 24 + 22 * + CASE COUNT( * ) WHEN 91 THEN - 70 END + 56 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL + 77 * - 49 + 83 + + 60 * - 85 + - - 67 + + 24 + 22 * + CASE COUNT ( * ) WHEN 91 THEN - 70 END + 56 col1
----
NULL

query I rowsort
SELECT ALL - - 33 col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT - MIN( 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-7440
SELECT - MIN ( 82 )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7441
SELECT + COALESCE ( - 7, + - 66 * 43 * - 32 + - - 48 - 63, COUNT( * ) DIV 40 )
----
-7

skipif mysql # not compatible
query I rowsort label-7441
SELECT + COALESCE ( - 7, + - 66 * 43 * - 32 + - - 48 - 63, COUNT ( * ) / 40 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT + NULLIF ( - 69, - CASE - 49 WHEN - 15 THEN + 19 WHEN - + 52 * + + 66 THEN NULL END * - 22 + 44 - MIN( ALL + 58 ) * COUNT( * ) )
----
-69

skipif mysql # not compatible
query I rowsort label-7442
SELECT + NULLIF ( - 69, - CASE - 49 WHEN - 15 THEN + 19 WHEN - + 52 * + + 66 THEN NULL END * - 22 + 44 - MIN ( ALL + 58 ) * COUNT ( * ) )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-7443
SELECT + 25 DIV + + 1 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-7443
SELECT + 25 / + + 1 AS col1
----
25

query I rowsort
SELECT DISTINCT - 54 * - 17
----
918

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT 92 - 99 * + + COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-7447
SELECT 92 - 99 * + + COUNT ( * ) AS col2
----
-7

query I rowsort
SELECT - 38 - 16 AS col0
----
-54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT DISTINCT - COUNT( * ) - 8
----
-9

skipif mysql # not compatible
query I rowsort label-7450
SELECT DISTINCT - COUNT ( * ) - 8
----
-9

query I rowsort
SELECT + 84 - ( 9 ) col0
----
75

query I rowsort
SELECT - 71 * - ( 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT - MIN( - 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-7453
SELECT - MIN ( - 89 ) AS col0
----
89

query I rowsort
SELECT - 48 + + 17
----
-31

query I rowsort
SELECT + 12 * + 69 * + 29 AS col2
----
24012

query I rowsort
SELECT + 41 * + 33 col2
----
1353

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

query II rowsort
SELECT DISTINCT 16, COALESCE ( - 34, 3, 19 ) AS col0
----
16
-34

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

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

query II rowsort
SELECT ALL 19, - 76 AS col1
----
19
-76

query I rowsort
SELECT - COALESCE ( + 17, 37 * + + 18, - 24 ) col1
----
-17

query I rowsort
SELECT ALL - 93 * + 6
----
-558

onlyif mysql # DIV for integer division: 
query I rowsort label-7463
SELECT + - 54 DIV - - 99 + - 66 col1
----
-66

skipif mysql # not compatible
query I rowsort label-7463
SELECT + - 54 / - - 99 + - 66 col1
----
-66

query I rowsort
SELECT + - ( 7 ) + + 84 AS col2
----
77

query I rowsort
SELECT + 11 + + ( + + 30 ) * + - 92 AS col2
----
-2749

onlyif mysql # DIV for integer division: 
query I rowsort label-7466
SELECT DISTINCT - ( ( 52 ) ) DIV + 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT - ( ( 52 ) ) / + 71 AS col2
----
0

query I rowsort
SELECT + - 47 + + + 35
----
-12

query I rowsort
SELECT DISTINCT + 36 + - 73 AS col0
----
-37

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-7470
SELECT ALL COUNT( * ) DIV + 30 + + 7 * - - 27 + + 37, 1 AS col1, - CASE - - 1 WHEN + COUNT( * ) THEN + 75 * COUNT( * ) WHEN + CAST( + 54 AS DECIMAL ) THEN COUNT( * ) + 80 * 38 END * + 11 col2
----
226
1
-825

skipif mysql # not compatible
query III rowsort label-7470
SELECT ALL COUNT ( * ) / + 30 + + 7 * - - 27 + + 37, 1 AS col1, - CASE - - 1 WHEN + COUNT ( * ) THEN + 75 * COUNT ( * ) WHEN + CAST ( + 54 AS REAL ) THEN COUNT ( * ) + 80 * 38 END * + 11 col2
----
226
1
-825

onlyif mysql # aggregate syntax: 
query II rowsort label-7471
SELECT + 38, + 21 * + + 9 - - 2 + + - 68 + + MAX( - 6 ) AS col1
----
38
117

skipif mysql # not compatible
query II rowsort label-7471
SELECT + 38, + 21 * + + 9 - - 2 + + - 68 + + MAX ( - 6 ) AS col1
----
38
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7472
SELECT ALL - 58 DIV - + COUNT( * ) + - 1 + - 68 - 17 DIV NULLIF ( + 87, - - COALESCE ( + + ( - 32 ), 89 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL - 58 / - + COUNT ( * ) + - 1 + - 68 - 17 / NULLIF ( + 87, - - COALESCE ( + + ( - 32 ), 89 ) )
----
-11

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7475
SELECT ALL + 29 * 16 * + ( - + 66 ) - - COUNT( * ) AS col2, MAX( ALL 83 ) * + CAST( - + COUNT( * ) AS SIGNED )
----
-30623
-83

skipif mysql # not compatible
query II rowsort label-7475
SELECT ALL + 29 * 16 * + ( - + 66 ) - - COUNT ( * ) AS col2, MAX ( ALL 83 ) * + CAST ( - + COUNT ( * ) AS INTEGER )
----
-30623
-83

query I rowsort
SELECT + + 64 * 46 + ( - - 92 )
----
3036

query I rowsort
SELECT + ( - 73 ) * + 65 AS col2
----
-4745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7478
SELECT - COUNT( DISTINCT - + 97 ) * - + CAST( + 27 AS SIGNED ) * - 6 AS col2, + 45 * - MAX( DISTINCT + 8 ) * + 13 + - 99
----
-162
-4779

skipif mysql # not compatible
query II rowsort label-7478
SELECT - COUNT ( DISTINCT - + 97 ) * - + CAST ( + 27 AS INTEGER ) * - 6 AS col2, + 45 * - MAX ( DISTINCT + 8 ) * + 13 + - 99
----
-162
-4779

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

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

query I rowsort
SELECT 56 * - 37 - 62 * - ( 32 ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT - 14 + - COALESCE ( - - COUNT( * ), + - 30 )
----
-15

skipif mysql # not compatible
query I rowsort label-7481
SELECT - 14 + - COALESCE ( - - COUNT ( * ), + - 30 )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-7482
SELECT ALL + COUNT( * ), 85 + - - 69 AS col0
----
1
154

skipif mysql # not compatible
query II rowsort label-7482
SELECT ALL + COUNT ( * ), 85 + - - 69 AS col0
----
1
154

query II rowsort
SELECT DISTINCT + 49 AS col2, - ( + + 51 )
----
49
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7484
SELECT ALL - 93 DIV - 37 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL - 93 / - 37 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT - 8 + - MAX( DISTINCT - - 40 )
----
-48

skipif mysql # not compatible
query I rowsort label-7485
SELECT - 8 + - MAX ( DISTINCT - - 40 )
----
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7486
SELECT - CAST( NULL AS DECIMAL ) * + 54 + 77 + - + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7486
SELECT - CAST ( NULL AS REAL ) * + 54 + 77 + - + 69 AS col2
----
NULL

query I rowsort
SELECT + 54 * - 66 * 61 AS col2
----
-217404

query I rowsort
SELECT - 60 + - 66 AS col0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT NULLIF ( - ( + + 82 ), - COUNT( * ) )
----
-82

skipif mysql # not compatible
query I rowsort label-7489
SELECT NULLIF ( - ( + + 82 ), - COUNT ( * ) )
----
-82

query I rowsort
SELECT - 30 * 93 * 73
----
-203670

query I rowsort
SELECT - COALESCE ( - + 97, + + 96 ) + - 26
----
71

query II rowsort
SELECT DISTINCT + ( + ( 76 ) ) * - 28, 79 AS col1
----
-2128
79

query I rowsort
SELECT - 24 * + 9 AS col2
----
-216

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

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

query I rowsort
SELECT ALL 58 * - - 64 + - + 7
----
3705

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT - MIN( ALL + 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-7496
SELECT - MIN ( ALL + 81 )
----
-81

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

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

query I rowsort
SELECT ALL - 4 + + 35 AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-7499
SELECT - + 81, COUNT( * ) * 68 + + 2 AS col0
----
-81
70

skipif mysql # not compatible
query II rowsort label-7499
SELECT - + 81, COUNT ( * ) * 68 + + 2 AS col0
----
-81
70

query I rowsort
SELECT + + 36 + 71 * + - 71
----
-5005

query I rowsort
SELECT DISTINCT - + 65 + - + 46 col0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT ALL + + COUNT( * ) + - - COUNT( * ) - 65 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL + + COUNT ( * ) + - - COUNT ( * ) - 65 AS col1
----
-63

query I rowsort
SELECT + NULLIF ( + - 26, ( + - AVG ( ALL - + 36 ) ) )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT - + 92 - MAX( + - 15 )
----
-77

skipif mysql # not compatible
query I rowsort label-7504
SELECT - + 92 - MAX ( + - 15 )
----
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT - - 17 - - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-7506
SELECT - - 17 - - COUNT ( * )
----
18

query II rowsort
SELECT DISTINCT + 48 * 89, 63 AS col2
----
4272
63

query I rowsort
SELECT ALL - - 23 + 92
----
115

query II rowsort
SELECT DISTINCT - NULLIF ( + 97, 95 + 93 + + 32 + - - 56 * ( 18 ) - - + 96 ), 65 AS col0
----
-97
65

onlyif mysql # aggregate syntax: 
query II rowsort label-7510
SELECT ALL COUNT( * ) - - 6 AS col1, - MIN( + 66 ) * + 57 - - - 65 * - + 51 * + 49 AS col0
----
7
158673

skipif mysql # not compatible
query II rowsort label-7510
SELECT ALL COUNT ( * ) - - 6 AS col1, - MIN ( + 66 ) * + 57 - - - 65 * - + 51 * + 49 AS col0
----
7
158673

onlyif mysql # aggregate syntax: 
query II rowsort label-7511
SELECT ALL + 86 AS col1, - 96 * - 29 - COUNT( * )
----
86
2783

skipif mysql # not compatible
query II rowsort label-7511
SELECT ALL + 86 AS col1, - 96 * - 29 - COUNT ( * )
----
86
2783

query I rowsort
SELECT DISTINCT + 88 * ( + NULLIF ( 80, - 14 ) ) col0
----
7040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7513
SELECT + CAST( + - 20 AS SIGNED ) - + + 41 + + 15 * 56 + + 92 * 31 * COUNT( * )
----
3631

skipif mysql # not compatible
query I rowsort label-7513
SELECT + CAST ( + - 20 AS INTEGER ) - + + 41 + + 15 * 56 + + 92 * 31 * COUNT ( * )
----
3631

query I rowsort
SELECT - 37 * - + 33 - - 59
----
1280

query II rowsort
SELECT ALL + 62 col2, 88 AS col1
----
62
88

onlyif mysql # aggregate syntax: 
query II rowsort label-7516
SELECT ALL + - CASE - ( + 34 ) WHEN 44 + - 35 THEN 14 END AS col1, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7516
SELECT ALL + - CASE - ( + 34 ) WHEN 44 + - 35 THEN 14 END AS col1, COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT 11 * - 10
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7518
SELECT DISTINCT - + 22 AS col0, + 89 + CAST( NULL AS SIGNED ) + - 67 * + + COALESCE ( CASE + NULLIF ( + + 24, + 1 ) WHEN 52 * - 6 THEN - 8 * 20 END, 61 ) + 45 AS col2
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-7518
SELECT DISTINCT - + 22 AS col0, + 89 + CAST ( NULL AS INTEGER ) + - 67 * + + COALESCE ( CASE + NULLIF ( + + 24, + 1 ) WHEN 52 * - 6 THEN - 8 * 20 END, 61 ) + 45 AS col2
----
-22
NULL

query I rowsort
SELECT 30 * + + COALESCE ( 39, - - 95 )
----
1170

query I rowsort
SELECT 55 * - NULLIF ( - 78, + + 6 ) AS col0
----
4290

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7522
SELECT ALL + 35 + COUNT( * ) DIV + 8 * 48 * - 86 * - - 88 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL + 35 + COUNT ( * ) / + 8 * 48 * - 86 * - - 88 AS col1
----
35

query I rowsort
SELECT - 98 * - 0 * + + 22 + 55 * - + COALESCE ( - + 89, - 50 ) + + - CASE - - 13 WHEN - - NULLIF ( - - 58, 58 + + 52 ) THEN NULL WHEN - 37 THEN - 11 WHEN 26 * + CASE + NULLIF ( 95, - 17 ) * 65 WHEN ( 76 ) THEN - 91 + - 74 ELSE - 83 * 37 + 27 END THEN NULL ELSE NULL END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL 59 + + COUNT ( * ) AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7525
SELECT DISTINCT - 17 + CAST( NULL AS SIGNED ) / CASE NULLIF ( - COUNT( * ), + 92 ) WHEN - 72 * + - 25 + - 61 * 19 THEN NULL WHEN - + COUNT( DISTINCT + 39 ) THEN + COALESCE ( ( COUNT( 9 ) ), - 24 + - 30, - 23 ) * - 23 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7525
SELECT DISTINCT - 17 + CAST ( NULL AS INTEGER ) / CASE NULLIF ( - COUNT ( * ), + 92 ) WHEN - 72 * + - 25 + - 61 * 19 THEN NULL WHEN - + COUNT ( DISTINCT + 39 ) THEN + COALESCE ( ( COUNT ( 9 ) ), - 24 + - 30, - 23 ) * - 23 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 45 * 74
----
3330

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT 42 + + + COALESCE ( - 84, + - 13 + - CASE 82 WHEN - 59 THEN - MAX( + 61 ) WHEN + + MIN( DISTINCT - 48 ) * - - 30 THEN 28 END + + 3, 46 )
----
-42

skipif mysql # not compatible
query I rowsort label-7527
SELECT 42 + + + COALESCE ( - 84, + - 13 + - CASE 82 WHEN - 59 THEN - MAX ( + 61 ) WHEN + + MIN ( DISTINCT - 48 ) * - - 30 THEN 28 END + + 3, 46 )
----
-42

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

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

query I rowsort
SELECT ALL + 10 * - 70 * - + 52
----
36400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7530
SELECT ( - - 50 ) + CASE 9 WHEN + 0 - - 71 + - 62 + COUNT( * ) * + COUNT( * ) + + SUM( 95 ) THEN - 29 - - 82 * 43 WHEN CAST( NULL AS SIGNED ) + + 50 THEN + 2 END / - 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7530
SELECT ( - - 50 ) + CASE 9 WHEN + 0 - - 71 + - 62 + COUNT ( * ) * + COUNT ( * ) + + SUM ( 95 ) THEN - 29 - - 82 * 43 WHEN CAST ( NULL AS INTEGER ) + + 50 THEN + 2 END / - 28 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT + 46 + - ( + 20 ) * - + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-7531
SELECT + 46 + - ( + 20 ) * - + COUNT ( * )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7532
SELECT DISTINCT - 8 * 7 DIV COUNT( * ) + 4 * - COUNT( ALL - 0 )
----
-60

skipif mysql # not compatible
query I rowsort label-7532
SELECT DISTINCT - 8 * 7 / COUNT ( * ) + 4 * - COUNT ( ALL - 0 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT 11 * + - ( + - 73 ) + - 91 + COUNT( * ) AS col1
----
713

skipif mysql # not compatible
query I rowsort label-7533
SELECT 11 * + - ( + - 73 ) + - 91 + COUNT ( * ) AS col1
----
713

query I rowsort
SELECT + 96 + 49 AS col0
----
145

query I rowsort
SELECT + 5 * 36 + + 99
----
279

onlyif mysql # aggregate syntax: 
query II rowsort label-7536
SELECT - MAX( + 67 ), - 60 + - - 97 AS col2
----
-67
37

skipif mysql # not compatible
query II rowsort label-7536
SELECT - MAX ( + 67 ), - 60 + - - 97 AS col2
----
-67
37

query II rowsort
SELECT 67 + - 74 AS col1, 63 * - + 75
----
-7
-4725

query I rowsort
SELECT ALL - - 55 col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-7539
SELECT ALL - 1 AS col2, SUM( - 17 ) col1
----
-1
-17

skipif mysql # not compatible
query II rowsort label-7539
SELECT ALL - 1 AS col2, SUM ( - 17 ) col1
----
-1
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7540
SELECT - 76 DIV - 69 * ( - COUNT( * ) ) + - 55
----
-56

skipif mysql # not compatible
query I rowsort label-7540
SELECT - 76 / - 69 * ( - COUNT ( * ) ) + - 55
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT 46 + - 7 * MAX( - NULLIF ( - 26, - 10 ) ) - - + 97 * - 49 + + - COUNT( * ) AS col2
----
-4890

skipif mysql # not compatible
query I rowsort label-7541
SELECT 46 + - 7 * MAX ( - NULLIF ( - 26, - 10 ) ) - - + 97 * - 49 + + - COUNT ( * ) AS col2
----
-4890

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7542
SELECT CAST( 64 AS SIGNED ) - + 80 AS col0, + 96 AS col2
----
-16
96

skipif mysql # not compatible
query II rowsort label-7542
SELECT CAST ( 64 AS INTEGER ) - + 80 AS col0, + 96 AS col2
----
-16
96

query I rowsort
SELECT ALL 19 + - 78
----
-59

query I rowsort
SELECT ALL 71 * - 6 col2
----
-426

query II rowsort
SELECT + 48 AS col0, 17 col2
----
48
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7546
SELECT ALL CASE - CAST( - - 0 AS SIGNED ) WHEN + - 76 + 82 + + 92 * COALESCE ( - - 0, 95 / - AVG ( DISTINCT + - NULLIF ( + 87, + + 12 + + 91 ) ) ) * 21 THEN NULL WHEN + COUNT( * ) THEN + 74 ELSE NULL END + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL CASE - CAST ( - - 0 AS INTEGER ) WHEN + - 76 + 82 + + 92 * COALESCE ( - - 0, 95 / - AVG ( DISTINCT + - NULLIF ( + 87, + + 12 + + 91 ) ) ) * 21 THEN NULL WHEN + COUNT ( * ) THEN + 74 ELSE NULL END + 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT COUNT( - 51 ) + 73
----
74

skipif mysql # not compatible
query I rowsort label-7547
SELECT COUNT ( - 51 ) + 73
----
74

query I rowsort
SELECT DISTINCT 6 * + - ( - + 87 ) * 71 col2
----
37062

query I rowsort
SELECT ALL - 4 + + 23
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT CASE - 64 WHEN - 82 / - SUM( DISTINCT - ( + - 80 ) ) THEN NULL ELSE 82 END * + + 21 + - + COUNT( * )
----
1721

skipif mysql # not compatible
query I rowsort label-7550
SELECT CASE - 64 WHEN - 82 / - SUM ( DISTINCT - ( + - 80 ) ) THEN NULL ELSE 82 END * + + 21 + - + COUNT ( * )
----
1721

query I rowsort
SELECT ALL 77 + + - 45 AS col0
----
32

query II rowsort
SELECT 57, 15 AS col2
----
57
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT MIN( + 70 ) * + + ( - 11 ) * 29
----
-22330

skipif mysql # not compatible
query I rowsort label-7553
SELECT MIN ( + 70 ) * + + ( - 11 ) * 29
----
-22330

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

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

query II rowsort
SELECT 9, + 16 + - - 89 + + COALESCE ( ( + NULLIF ( - ( + 14 ), + 51 / - 60 ) ), 24 * + COALESCE ( - ( - 63 ), 73 + 11, 18 ) * + 27 + 47 * - 93, + 2 * + COALESCE ( 25, 79 ) ) + + 48 AS col2
----
9
139

query I rowsort
SELECT - 87 + 54 - - - 68
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7557
SELECT DISTINCT - COALESCE ( + COUNT( * ), COUNT( * ) * COUNT( * ) - 86 + + 68 * + CASE + 70 WHEN - CAST( - 95 AS SIGNED ) THEN + 8 + - + 93 + 91 ELSE 71 END )
----
-1

skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT - COALESCE ( + COUNT ( * ), COUNT ( * ) * COUNT ( * ) - 86 + + 68 * + CASE + 70 WHEN - CAST ( - 95 AS INTEGER ) THEN + 8 + - + 93 + 91 ELSE 71 END )
----
-1

query I rowsort
SELECT ALL - + ( - ( + + ( + 2 ) ) ) - 80 - + + 38 col2
----
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-7559
SELECT DISTINCT 32 DIV - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7559
SELECT DISTINCT 32 / - 80 AS col0
----
0

query I rowsort
SELECT - 76 + 47 col2
----
-29

query II rowsort
SELECT 79 col1, - 49 AS col1
----
79
-49

query I rowsort
SELECT - 89 * 65
----
-5785

query I rowsort
SELECT + 33 - + + 3 * 41 * - 74
----
9135

query I rowsort
SELECT - 3 * + + 8 AS col2
----
-24

query I rowsort
SELECT - + 8 * + 98 * - ( - - 70 )
----
54880

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

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

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

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL - 22 + - COUNT ( * ) AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7568
SELECT CAST( NULL AS SIGNED ) AS col0, - CASE + - COUNT( * ) WHEN ( - 87 ) * MIN( ALL - 47 ) THEN NULL ELSE - ( - + 60 ) + - ( + - 73 ) * + CAST( + - 99 AS SIGNED ) DIV - COUNT( * ) END * - 84 AS col0
----
NULL
612108

skipif mysql # not compatible
query II rowsort label-7568
SELECT CAST ( NULL AS INTEGER ) AS col0, - CASE + - COUNT ( * ) WHEN ( - 87 ) * MIN ( ALL - 47 ) THEN NULL ELSE - ( - + 60 ) + - ( + - 73 ) * + CAST ( + - 99 AS INTEGER ) / - COUNT ( * ) END * - 84 AS col0
----
NULL
612108

query I rowsort
SELECT - 44 - - ( ( + - 32 ) ) + + 50
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT - 55 * + + SUM( 7 ) AS col1
----
-385

skipif mysql # not compatible
query I rowsort label-7570
SELECT - 55 * + + SUM ( 7 ) AS col1
----
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT - MAX( + - 81 ) * - 67
----
-5427

skipif mysql # not compatible
query I rowsort label-7571
SELECT - MAX ( + - 81 ) * - 67
----
-5427

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT ( - MAX( ALL + + 47 ) )
----
-47

skipif mysql # not compatible
query I rowsort label-7572
SELECT ( - MAX ( ALL + + 47 ) )
----
-47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT COALESCE ( + 91, - COUNT( * ) ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-7574
SELECT COALESCE ( + 91, - COUNT ( * ) ) AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7575
SELECT ALL + COALESCE ( 78, - - 9 - - 20 * COUNT( * ) ) * + ( 4 ) / + - 69 / 44 * - 58 + 67 - - + 44 + - 44 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL + COALESCE ( 78, - - 9 - - 20 * COUNT ( * ) ) * + ( 4 ) / + - 69 / 44 * - 58 + 67 - - + 44 + - 44 - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7576
SELECT CASE + 35 WHEN + 9 THEN NULL WHEN - - COUNT( * ) THEN NULL ELSE + CAST( - 85 AS SIGNED ) END AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-7576
SELECT CASE + 35 WHEN + 9 THEN NULL WHEN - - COUNT ( * ) THEN NULL ELSE + CAST ( - 85 AS INTEGER ) END AS col0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7577
SELECT CASE + 8 WHEN - 45 * - - SUM( ( 3 ) ) * - ( 72 ) + 2 + 41 THEN NULL WHEN + 70 THEN - 72 + + NULLIF ( - - CAST( NULL AS SIGNED ), 36 ) WHEN ( ( COUNT( * ) ) ) THEN 31 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT CASE + 8 WHEN - 45 * - - SUM ( ( 3 ) ) * - ( 72 ) + 2 + 41 THEN NULL WHEN + 70 THEN - 72 + + NULLIF ( - - CAST ( NULL AS INTEGER ), 36 ) WHEN ( ( COUNT ( * ) ) ) THEN 31 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL - 45 * - - 92
----
-4140

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT NULLIF ( SUM( - 98 ), + + 58 * - COUNT( * ) )
----
-98

skipif mysql # not compatible
query I rowsort label-7580
SELECT NULLIF ( SUM ( - 98 ), + + 58 * - COUNT ( * ) )
----
-98

query I rowsort
SELECT + COALESCE ( + 68, 78, - 73 * + 67 * + 95 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT MAX( ALL - - 34 ) * + + COUNT( * ) * - 34 + 33 - - 93 AS col0
----
-1030

skipif mysql # not compatible
query I rowsort label-7582
SELECT MAX ( ALL - - 34 ) * + + COUNT ( * ) * - 34 + 33 - - 93 AS col0
----
-1030

query I rowsort
SELECT COALESCE ( 45, + 5 * + + 75 + 57 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT + CASE - 99 WHEN + 2 / - COALESCE ( - 68, - 30 + NULLIF ( COUNT( * ), + 97 * - 14 + + - 94 + + + COUNT( * ) + 80 + - 19 ) * ( 59 ) ) + COUNT( - 33 ) THEN NULL WHEN 19 THEN NULL ELSE - 64 + - COUNT( * ) * + 59 END AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-7584
SELECT + CASE - 99 WHEN + 2 / - COALESCE ( - 68, - 30 + NULLIF ( COUNT ( * ), + 97 * - 14 + + - 94 + + + COUNT ( * ) + 80 + - 19 ) * ( 59 ) ) + COUNT ( - 33 ) THEN NULL WHEN 19 THEN NULL ELSE - 64 + - COUNT ( * ) * + 59 END AS col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT - COUNT( * ) + 19 - NULLIF ( - 80, 12 )
----
98

skipif mysql # not compatible
query I rowsort label-7585
SELECT - COUNT ( * ) + 19 - NULLIF ( - 80, 12 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT + CASE + 54 WHEN + MIN( + 95 ) THEN - ( 55 ) / 42 + - - 92 * - ( + - 58 ) - 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7586
SELECT + CASE + 54 WHEN + MIN ( + 95 ) THEN - ( 55 ) / 42 + - - 92 * - ( + - 58 ) - 84 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7587
SELECT + 0 * 28 AS col2, 2 * - 57 * - COUNT( ALL 35 ) AS col0
----
0
114

skipif mysql # not compatible
query II rowsort label-7587
SELECT + 0 * 28 AS col2, 2 * - 57 * - COUNT ( ALL 35 ) AS col0
----
0
114

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7589
SELECT ALL 23 DIV + 39 AS col2, CASE + 76 WHEN + MAX( ALL + 59 ) THEN NULL WHEN + COUNT( 46 ) THEN + 31 ELSE NULL END DIV - 62
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7589
SELECT ALL 23 / + 39 AS col2, CASE + 76 WHEN + MAX ( ALL + 59 ) THEN NULL WHEN + COUNT ( 46 ) THEN + 31 ELSE NULL END / - 62
----
0
NULL

query I rowsort
SELECT + + 14 * + + 14 * - 41 AS col1
----
-8036

query I rowsort
SELECT + - 39 - - ( 54 ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT ALL + MAX( DISTINCT 43 ) * - 57
----
-2451

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL + MAX ( DISTINCT 43 ) * - 57
----
-2451

onlyif mysql # aggregate syntax: 
query II rowsort label-7593
SELECT + ( COUNT( * ) ) - - - 83 + 67, 60 AS col0
----
-15
60

skipif mysql # not compatible
query II rowsort label-7593
SELECT + ( COUNT ( * ) ) - - - 83 + 67, 60 AS col0
----
-15
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7594
SELECT ALL 21 * - + CAST( NULL AS DECIMAL ) * - + 26 * 54 + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL 21 * - + CAST ( NULL AS REAL ) * - + 26 * 54 + - 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT + ( - 5 ) * ( - COALESCE ( 96, + ( - 25 ), COUNT( * ), SUM( DISTINCT + - 93 ) + + 84 ) ) AS col2
----
480

skipif mysql # not compatible
query I rowsort label-7595
SELECT + ( - 5 ) * ( - COALESCE ( 96, + ( - 25 ), COUNT ( * ), SUM ( DISTINCT + - 93 ) + + 84 ) ) AS col2
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT + 60 * + COUNT( * ) + 15
----
75

skipif mysql # not compatible
query I rowsort label-7596
SELECT + 60 * + COUNT ( * ) + 15
----
75

query I rowsort
SELECT ALL 48 * 41 * 92 AS col0
----
181056

query I rowsort
SELECT + - 87 * - + 3 * - 86
----
-22446

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT DISTINCT COALESCE ( + COUNT( * ), + - ( - - 45 ) * + - 67 + + 24 * + COUNT( * ) ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT COALESCE ( + COUNT ( * ), + - ( - - 45 ) * + - 67 + + 24 * + COUNT ( * ) ) * - COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-7600
SELECT ALL ( - COALESCE ( 52, - + 27 ) ) AS col1, 7 DIV - 32
----
-52
0

skipif mysql # not compatible
query II rowsort label-7600
SELECT ALL ( - COALESCE ( 52, - + 27 ) ) AS col1, 7 / - 32
----
-52
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT DISTINCT SUM( + + 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT SUM ( + + 16 ) AS col0
----
16

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

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

query I rowsort
SELECT DISTINCT - 24 + - - 22
----
-2

query I rowsort
SELECT - 94 + 60 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT ALL + COUNT( * ) + 29 - - 70 - + - 95 * + 7
----
765

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL + COUNT ( * ) + 29 - - 70 - + - 95 * + 7
----
765

query I rowsort
SELECT + 49 + 31 * + + 49
----
1568

query I rowsort
SELECT + 25 + + - 5
----
20

query I rowsort
SELECT ALL ( - 97 ) + - + 99 * - 87 * - 8 * + 0 + + 89
----
-8

query II rowsort
SELECT + 35 col2, - 56 + + ( 72 )
----
35
16

query I rowsort
SELECT ( + 82 ) * + 49 * - + 48 + - + 33 col1
----
-192897

onlyif mysql # DIV for integer division: 
query I rowsort label-7611
SELECT + 29 DIV + 43 + - - 26
----
26

skipif mysql # not compatible
query I rowsort label-7611
SELECT + 29 / + 43 + - - 26
----
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT SUM( + 53 ) * + + 12 + + 78 + MAX( DISTINCT - 35 ) - 78 / + - CASE + - MAX( DISTINCT 0 ) WHEN - ( 44 ) * + - 19 / - + CASE - + 56 WHEN + 64 + + 10 * - MAX( ALL 50 * - 78 ) THEN NULL ELSE - 10 END - + 2 THEN NULL WHEN 64 / + 56 THEN + 48 * - 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7613
SELECT SUM ( + 53 ) * + + 12 + + 78 + MAX ( DISTINCT - 35 ) - 78 / + - CASE + - MAX ( DISTINCT 0 ) WHEN - ( 44 ) * + - 19 / - + CASE - + 56 WHEN + 64 + + 10 * - MAX ( ALL 50 * - 78 ) THEN NULL ELSE - 10 END - + 2 THEN NULL WHEN 64 / + 56 THEN + 48 * - 85 END
----
NULL

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

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

query I rowsort
SELECT 4 * + - 49 + - - 71 AS col0
----
-125

query I rowsort
SELECT - 41 - 44 * + 54 AS col1
----
-2417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7617
SELECT + CASE 46 WHEN + - 83 THEN - ( - 7 ) * 63 - + 70 + - 6 + - - 99 * 72 WHEN + CAST( NULL AS SIGNED ) + + 32 THEN - - COALESCE ( + - COUNT( * ), + 33 * + COUNT( * ) + ( COUNT( * ) ) ) + - 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7617
SELECT + CASE 46 WHEN + - 83 THEN - ( - 7 ) * 63 - + 70 + - 6 + - - 99 * 72 WHEN + CAST ( NULL AS INTEGER ) + + 32 THEN - - COALESCE ( + - COUNT ( * ), + 33 * + COUNT ( * ) + ( COUNT ( * ) ) ) + - 53 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT ALL - COUNT( * ) * + 71 * ( + + 59 )
----
-4189

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL - COUNT ( * ) * + 71 * ( + + 59 )
----
-4189

onlyif mysql # aggregate syntax: 
query II rowsort label-7620
SELECT ( + - ( + - 13 ) ) col0, COUNT( + 67 ) + + MAX( + 41 )
----
13
42

skipif mysql # not compatible
query II rowsort label-7620
SELECT ( + - ( + - 13 ) ) col0, COUNT ( + 67 ) + + MAX ( + 41 )
----
13
42

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

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

query I rowsort
SELECT - 5 * - 89 AS col0
----
445

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT + COUNT( ALL + 75 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7623
SELECT + COUNT ( ALL + 75 ) AS col0
----
1

query I rowsort
SELECT 93 * + - 15 + + 45
----
-1350

query I rowsort
SELECT - 49 + - 97 AS col0
----
-146

query I rowsort
SELECT + 58 * 81 AS col1
----
4698

query I rowsort
SELECT DISTINCT - - 47 + - 51 + + + 55 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT - 24 * - 88 + + 55 + + 51 * - COUNT( * ) col2
----
2116

skipif mysql # not compatible
query I rowsort label-7628
SELECT - 24 * - 88 + + 55 + + 51 * - COUNT ( * ) col2
----
2116

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT DISTINCT + ( - - 7 ) + - SUM( ALL + - 15 )
----
22

skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT + ( - - 7 ) + - SUM ( ALL + - 15 )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7630
SELECT ALL - + CAST( + 55 AS SIGNED ) + + 4 * + CASE - 55 WHEN + 55 - - 43 - 24 * - + 25 + - 81 THEN NULL WHEN 56 THEN - + 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL - + CAST ( + 55 AS INTEGER ) + + 4 * + CASE - 55 WHEN + 55 - - 43 - 24 * - + 25 + - 81 THEN NULL WHEN 56 THEN - + 59 END
----
NULL

query II rowsort
SELECT 14 AS col2, - COALESCE ( 57, - + 11 ) col0
----
14
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7632
SELECT ALL 82 + COUNT( * ) + - - CASE - 71 WHEN + 8 + 26 THEN NULL ELSE 74 END * + + 10 * CAST( 99 AS SIGNED ) * + NULLIF ( + COALESCE ( + + 54, + 10 * - 6 DIV 0 ), - ( - 2 ) ) * 92 - + 13 AS col0
----
363955750

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL 82 + COUNT ( * ) + - - CASE - 71 WHEN + 8 + 26 THEN NULL ELSE 74 END * + + 10 * CAST ( 99 AS INTEGER ) * + NULLIF ( + COALESCE ( + + 54, + 10 * - 6 / 0 ), - ( - 2 ) ) * 92 - + 13 AS col0
----
363955750

query II rowsort
SELECT ALL - 55, + 30 AS col2
----
-55
30

query I rowsort
SELECT 14 + + 41 AS col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7635
SELECT DISTINCT 39 * - CAST( NULL AS SIGNED ) + + 24 - + 66 * - MAX( ALL NULLIF ( - ( - - 59 ), + 97 ) ) * 26 + + - 63 * 55 / - COALESCE ( + 25, 86 + COUNT( * ), - 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7635
SELECT DISTINCT 39 * - CAST ( NULL AS INTEGER ) + + 24 - + 66 * - MAX ( ALL NULLIF ( - ( - - 59 ), + 97 ) ) * 26 + + - 63 * 55 / - COALESCE ( + 25, 86 + COUNT ( * ), - 36 )
----
NULL

query I rowsort
SELECT DISTINCT - 95 + 76
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT ALL + ( + COUNT( * ) ) + + - 44 + - - 53 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL + ( + COUNT ( * ) ) + + - 44 + - - 53 AS col0
----
10

query I rowsort
SELECT DISTINCT NULLIF ( + 6, - + 63 * - 1 ) + 38 * + 77 AS col0
----
2932

query I rowsort
SELECT ALL - 17 - - 32
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7640
SELECT MIN( ALL + 74 ) * + + CAST( NULL AS SIGNED ) * - 91 / - + MAX( ALL CAST( - 73 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7640
SELECT MIN ( ALL + 74 ) * + + CAST ( NULL AS INTEGER ) * - 91 / - + MAX ( ALL CAST ( - 73 AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL 34, + 45 AS col1
----
34
45

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7643
SELECT ALL 91, + CAST( 51 AS SIGNED ) AS col0
----
91
51

skipif mysql # not compatible
query II rowsort label-7643
SELECT ALL 91, + CAST ( 51 AS INTEGER ) AS col0
----
91
51

onlyif mysql # DIV for integer division: 
query II rowsort label-7644
SELECT + 92 AS col2, - 81 + - 58 DIV - 12 - - 34 AS col2
----
92
-43

skipif mysql # not compatible
query II rowsort label-7644
SELECT + 92 AS col2, - 81 + - 58 / - 12 - - 34 AS col2
----
92
-43

query I rowsort
SELECT 90 * 48 AS col1
----
4320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7646
SELECT DISTINCT - COALESCE ( + COUNT( * ), + MIN( + - 24 ) DIV + - 19 )
----
-1

skipif mysql # not compatible
query I rowsort label-7646
SELECT DISTINCT - COALESCE ( + COUNT ( * ), + MIN ( + - 24 ) / + - 19 )
----
-1

query I rowsort
SELECT DISTINCT - 0 * - 57 AS col1
----
0

query II rowsort
SELECT + 1 AS col0, - 80
----
1
-80

query I rowsort
SELECT ALL 94 * - 33 AS col1
----
-3102

query I rowsort
SELECT DISTINCT 53 * + - 93
----
-4929

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT 89 * + AVG ( DISTINCT + ( + - CASE - ( + - 19 ) WHEN - - 16 THEN + + ( + + 91 ) * - 15 - + 67 * - + 75 WHEN - - 68 THEN NULL ELSE NULL END ) ) * - 29 / - COUNT( * ) * + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT 89 * + AVG ( DISTINCT + ( + - CASE - ( + - 19 ) WHEN - - 16 THEN + + ( + + 91 ) * - 15 - + 67 * - + 75 WHEN - - 68 THEN NULL ELSE NULL END ) ) * - 29 / - COUNT ( * ) * + 73 AS col0
----
NULL

query I rowsort
SELECT ALL 88 * - 39 AS col2
----
-3432

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT + + 90 * 33 * + 99 + + CASE + 46 WHEN - + 24 * - COUNT( * ) * + 77 * + 4 THEN NULL ELSE 22 END * + - ( + + 93 ) AS col1
----
291984

skipif mysql # not compatible
query I rowsort label-7653
SELECT + + 90 * 33 * + 99 + + CASE + 46 WHEN - + 24 * - COUNT ( * ) * + 77 * + 4 THEN NULL ELSE 22 END * + - ( + + 93 ) AS col1
----
291984

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7655
SELECT NULLIF ( 30, - - 73 * - 95 ) DIV 76 + - 18 + ( 55 ) + COALESCE ( - 44, + NULLIF ( 8, - 63 ), - - 39 ) * + ( + 21 ) * - 62
----
57325

skipif mysql # not compatible
query I rowsort label-7655
SELECT NULLIF ( 30, - - 73 * - 95 ) / 76 + - 18 + ( 55 ) + COALESCE ( - 44, + NULLIF ( 8, - 63 ), - - 39 ) * + ( + 21 ) * - 62
----
57325

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT DISTINCT MAX( NULLIF ( - - 3, + 45 ) ) + - 52 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT MAX ( NULLIF ( - - 3, + 45 ) ) + - 52 AS col2
----
-49

query I rowsort
SELECT ALL 69 + + + 67 * + 37
----
2548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7659
SELECT ALL - CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2, + SUM( DISTINCT - 57 ) AS col1
----
NULL
-57

skipif mysql # not compatible
query II rowsort label-7659
SELECT ALL - CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) AS col2, + SUM ( DISTINCT - 57 ) AS col1
----
NULL
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-7660
SELECT - 65 * - 5 * + 14 + + - 85 DIV 62
----
4549

skipif mysql # not compatible
query I rowsort label-7660
SELECT - 65 * - 5 * + 14 + + - 85 / 62
----
4549

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT ALL + COUNT( * ) + + 31 + 89
----
121

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL + COUNT ( * ) + + 31 + 89
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-7662
SELECT 49 DIV 22 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7662
SELECT 49 / 22 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT ALL 66 + + - 86 + - + CASE + 89 WHEN + + 70 THEN - 19 * + NULLIF ( MIN( ALL + 57 ), - 11 + ( MAX( ( - 27 ) ) ) + 13 ) * - 68 / - 52 WHEN + 43 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL 66 + + - 86 + - + CASE + 89 WHEN + + 70 THEN - 19 * + NULLIF ( MIN ( ALL + 57 ), - 11 + ( MAX ( ( - 27 ) ) ) + 13 ) * - 68 / - 52 WHEN + 43 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT MAX( - 93 ) - - - 95 AS col2
----
-188

skipif mysql # not compatible
query I rowsort label-7664
SELECT MAX ( - 93 ) - - - 95 AS col2
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT ALL - - 44 * + COALESCE ( 33, 67 - MAX( DISTINCT 89 ) ) + - SUM( + - 95 ) * + + 26
----
3922

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL - - 44 * + COALESCE ( 33, 67 - MAX ( DISTINCT 89 ) ) + - SUM ( + - 95 ) * + + 26
----
3922

query I rowsort
SELECT ALL + 57 + - 0 AS col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7667
SELECT - + COUNT( DISTINCT + 94 ) * COUNT( DISTINCT 79 ) + - 22 DIV + 69 - 97 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-7667
SELECT - + COUNT ( DISTINCT + 94 ) * COUNT ( DISTINCT 79 ) + - 22 / + 69 - 97 AS col2
----
-98

query I rowsort
SELECT - + COALESCE ( + 26, 53 )
----
-26

query II rowsort
SELECT 47 AS col2, 63 AS col1
----
47
63

query I rowsort
SELECT + ( - 91 ) + ( - 1 ) + - + 97 + 70 AS col2
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT ALL + - 69 + + COUNT( + ( + + 1 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL + - 69 + + COUNT ( + ( + + 1 ) )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7672
SELECT - CAST( NULL AS SIGNED ) AS col1, - MIN( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7672
SELECT - CAST ( NULL AS INTEGER ) AS col1, - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7673
SELECT NULLIF ( - COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ), 29 + + 20 * ( - 91 ) * 17 + + 66 - + + 20 * + 80 ) + + 65 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-7673
SELECT NULLIF ( - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ), 29 + + 20 * ( - 91 ) * 17 + + 66 - + + 20 * + 80 ) + + 65 AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7674
SELECT DISTINCT - CAST( + - 17 AS SIGNED ) + NULLIF ( 4, + ( + MIN( - CAST( NULL AS SIGNED ) ) ) ) col1
----
21

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT - CAST ( + - 17 AS INTEGER ) + NULLIF ( 4, + ( + MIN ( - CAST ( NULL AS INTEGER ) ) ) ) col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT ALL - CASE + COUNT( * ) WHEN - - 49 THEN NULL WHEN 29 * 61 THEN NULL ELSE - - ( - 96 ) + + - NULLIF ( 15, + 44 ) END - + 31 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL - CASE + COUNT ( * ) WHEN - - 49 THEN NULL WHEN 29 * 61 THEN NULL ELSE - - ( - 96 ) + + - NULLIF ( 15, + 44 ) END - + 31 AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7676
SELECT DISTINCT + 30 DIV + + 45 col1, + SUM( - CAST( NULL AS SIGNED ) ) * - 28 * - + 59 col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7676
SELECT DISTINCT + 30 / + + 45 col1, + SUM ( - CAST ( NULL AS INTEGER ) ) * - 28 * - + 59 col2
----
0
NULL

query I rowsort
SELECT 74 + + - NULLIF ( + - 75, - + 78 )
----
149

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7679
SELECT CASE + 16 WHEN + 7 THEN NULL ELSE - - 51 + + 59 + - ( 86 ) + - 84 + + COUNT( * ) + - + 91 * 5 * + - 13 * - - COUNT( * ) END + + CASE + 57 WHEN + 54 / - - 79 + - ( - 17 ) * - NULLIF ( CASE + 69 WHEN - 31 / CASE WHEN NOT NULL IS NULL THEN NULL ELSE - 15 END + NULLIF ( - 79 + + 73 / COUNT( * ), COALESCE ( ( + 32 ), + 91 * 97, 19 ) ) THEN - COALESCE ( - 56, 71 ) END, CAST( 67 AS SIGNED ) ) THEN 21 WHEN COUNT( 12 ) / - 4 THEN 96 * - 11 END * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-7679
SELECT CASE + 16 WHEN + 7 THEN NULL ELSE - - 51 + + 59 + - ( 86 ) + - 84 + + COUNT ( * ) + - + 91 * 5 * + - 13 * - - COUNT ( * ) END + + CASE + 57 WHEN + 54 / - - 79 + - ( - 17 ) * - NULLIF ( CASE + 69 WHEN - 31 / CASE WHEN NOT NULL IS NULL THEN NULL ELSE - 15 END + NULLIF ( - 79 + + 73 / COUNT ( * ), COALESCE ( ( + 32 ), + 91 * 97, 19 ) ) THEN - COALESCE ( - 56, 71 ) END, CAST ( 67 AS INTEGER ) ) THEN 21 WHEN COUNT ( 12 ) / - 4 THEN 96 * - 11 END * - 67
----
NULL

query I rowsort
SELECT 64 * + 7
----
448

query I rowsort
SELECT ALL - 41 * - 3
----
123

query I rowsort
SELECT ALL CASE + 56 WHEN + 46 THEN 46 + + 59 * + 90 ELSE NULL END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7683
SELECT ( + SUM ( DISTINCT + 89 ) ) + - COUNT ( * )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7684
SELECT DISTINCT 53 * - CAST( NULL AS SIGNED ), - MAX( + 6 ) AS col0
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-7684
SELECT DISTINCT 53 * - CAST ( NULL AS INTEGER ), - MAX ( + 6 ) AS col0
----
NULL
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7685
SELECT + COUNT( DISTINCT 81 ) * + - CASE + 66 WHEN 99 THEN 33 * + - CASE 28 WHEN + + 39 THEN + - COALESCE ( + 60, - CAST( - + 47 AS SIGNED ) ) WHEN + - 17 THEN + 70 / + 44 + - - 90 END ELSE NULL END + - CASE 96 - 91 WHEN - 47 THEN + 66 WHEN CAST( NULL AS DECIMAL ) * 64 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7685
SELECT + COUNT ( DISTINCT 81 ) * + - CASE + 66 WHEN 99 THEN 33 * + - CASE 28 WHEN + + 39 THEN + - COALESCE ( + 60, - CAST ( - + 47 AS INTEGER ) ) WHEN + - 17 THEN + 70 / + 44 + - - 90 END ELSE NULL END + - CASE 96 - 91 WHEN - 47 THEN + 66 WHEN CAST ( NULL AS REAL ) * 64 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7686
SELECT 78 / - - ( - 25 ) * + 45 + + CAST( NULL AS SIGNED ) + - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7686
SELECT 78 / - - ( - 25 ) * + 45 + + CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 35 + - 20 AS col0
----
15

query I rowsort
SELECT ALL - + 35 * 88 + 51 - 98 - + 84 * + - 94 AS col2
----
4769

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7689
SELECT COUNT( * ) * + NULLIF ( + + ( - + 88 ), + 48 ) * 3 * - CAST( NULL AS SIGNED ) * - - 20 + NULLIF ( 84, - NULLIF ( - 88, + - 28 + - 96 ) - + + COUNT( * ) * + - CAST( NULL AS SIGNED ) * - - 31 ) * + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7689
SELECT COUNT ( * ) * + NULLIF ( + + ( - + 88 ), + 48 ) * 3 * - CAST ( NULL AS INTEGER ) * - - 20 + NULLIF ( 84, - NULLIF ( - 88, + - 28 + - 96 ) - + + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * - - 31 ) * + 81 AS col0
----
NULL

query I rowsort
SELECT ALL + 0 * + 1 + + 49 col0
----
49

query I rowsort
SELECT + 84 * 91 AS col1
----
7644

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT + MIN( - ( - + 78 ) ) * - 12 + 29
----
-907

skipif mysql # not compatible
query I rowsort label-7692
SELECT + MIN ( - ( - + 78 ) ) * - 12 + 29
----
-907

query I rowsort
SELECT ALL + 21 * 55 + 21 * - 91
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT DISTINCT + COUNT( * ) * - - 65 + + 33
----
98

skipif mysql # not compatible
query I rowsort label-7694
SELECT DISTINCT + COUNT ( * ) * - - 65 + + 33
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7695
SELECT - 13 * + - 41 + + CAST( NULL AS SIGNED ) + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-7695
SELECT - 13 * + - 41 + + CAST ( NULL AS INTEGER ) + + 8
----
NULL

query I rowsort
SELECT ALL + 86 * - ( + 43 )
----
-3698

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT + + MAX( 72 ) * + 19 AS col2
----
1368

skipif mysql # not compatible
query I rowsort label-7697
SELECT + + MAX ( 72 ) * + 19 AS col2
----
1368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7698
SELECT + 25 * + 30 DIV - - COUNT( * ) + + 3 + 40 * - + 3 AS col0
----
633

skipif mysql # not compatible
query I rowsort label-7698
SELECT + 25 * + 30 / - - COUNT ( * ) + + 3 + 40 * - + 3 AS col0
----
633

query II rowsort
SELECT + ( - + 97 ), 38 AS col0
----
-97
38

onlyif mysql # DIV for integer division: 
query II rowsort label-7700
SELECT ALL - 84 * + - 5 + - ( - 51 ) + + 41 AS col1, 46 DIV + 64 * - 82 AS col0
----
512
0

skipif mysql # not compatible
query II rowsort label-7700
SELECT ALL - 84 * + - 5 + - ( - 51 ) + + 41 AS col1, 46 / + 64 * - 82 AS col0
----
512
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7701
SELECT + + CAST( - NULLIF ( + - 62, + 52 ) AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-7701
SELECT + + CAST ( - NULLIF ( + - 62, + 52 ) AS INTEGER )
----
62

query I rowsort
SELECT + 0 * 72 * + 92 * 40 AS col1
----
0

query I rowsort
SELECT - 69 * ( 48 ) AS col2
----
-3312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7704
SELECT - 8 * + MIN( - CASE - 85 WHEN + - ( + 72 ) + + 1 * 82 + - 69 THEN NULL WHEN 23 THEN + 70 * - 69 ELSE + 74 DIV - + 92 END ) + - 16 + - - 75
----
59

skipif mysql # not compatible
query I rowsort label-7704
SELECT - 8 * + MIN ( - CASE - 85 WHEN + - ( + 72 ) + + 1 * 82 + - 69 THEN NULL WHEN 23 THEN + 70 * - 69 ELSE + 74 / - + 92 END ) + - 16 + - - 75
----
59

query I rowsort
SELECT NULLIF ( + - 95, 19 ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT ALL + MIN( DISTINCT 4 ) - - NULLIF ( + + 14, - 76 * - 25 )
----
18

skipif mysql # not compatible
query I rowsort label-7706
SELECT ALL + MIN ( DISTINCT 4 ) - - NULLIF ( + + 14, - 76 * - 25 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT - COUNT( ALL 61 ) * - 56
----
56

skipif mysql # not compatible
query I rowsort label-7707
SELECT - COUNT ( ALL 61 ) * - 56
----
56

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

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

query II rowsort
SELECT - 20 AS col2, 1 * - 45 * 93
----
-20
-4185

query I rowsort
SELECT DISTINCT + 26 * - 82
----
-2132

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT - COUNT( * ) + - 52 + - + 29 * 47 AS col1
----
-1416

skipif mysql # not compatible
query I rowsort label-7711
SELECT - COUNT ( * ) + - 52 + - + 29 * 47 AS col1
----
-1416

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

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

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

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

query I rowsort
SELECT ALL CASE - 60 WHEN ( - - 18 ) THEN - 34 END AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 79, 36 * 99 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT DISTINCT CASE - ( + COUNT( * ) ) WHEN + - 64 THEN 2 WHEN + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7716
SELECT DISTINCT CASE - ( + COUNT ( * ) ) WHEN + - 64 THEN 2 WHEN + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

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

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

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

query I rowsort
SELECT - 47 - - - 63 + + 0 * - 54 AS col0
----
-110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT - 54 * COUNT( * ) + + 79 + ( - ( + + 76 ) ) * 17 * 33 AS col0
----
-42611

skipif mysql # not compatible
query I rowsort label-7721
SELECT - 54 * COUNT ( * ) + + 79 + ( - ( + + 76 ) ) * 17 * 33 AS col0
----
-42611

onlyif mysql # DIV for integer division: 
query I rowsort label-7722
SELECT ALL 65 DIV + 23 + + + ( - 18 ) + - 62 * - 31 * 13 AS col0
----
24970

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL 65 / + 23 + + + ( - 18 ) + - 62 * - 31 * 13 AS col0
----
24970

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7723
SELECT - + COUNT( * ) DIV + ( 84 ) * 91 - - ( + 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-7723
SELECT - + COUNT ( * ) / + ( 84 ) * 91 - - ( + 51 ) AS col2
----
51

query I rowsort
SELECT DISTINCT 60 * 7 AS col0
----
420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7725
SELECT ALL + + COUNT( * ) * - 34 + ( - + 48 ) + + 77 DIV + NULLIF ( - 56, + 28 ) + + 86
----
3

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL + + COUNT ( * ) * - 34 + ( - + 48 ) + + 77 / + NULLIF ( - 56, + 28 ) + + 86
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT + COUNT( DISTINCT + - 62 ) * - - 77 + + - ( - + COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-7726
SELECT + COUNT ( DISTINCT + - 62 ) * - - 77 + + - ( - + COUNT ( * ) )
----
78

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

query I rowsort
SELECT - + 59 * 34 + 60 + + + 61 + - ( + 74 ) AS col0
----
-1959

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ALL + + 90 * MIN( ALL 60 ) - + + 40 + + ( MIN( - 35 ) ) * - COUNT( * )
----
5395

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL + + 90 * MIN ( ALL 60 ) - + + 40 + + ( MIN ( - 35 ) ) * - COUNT ( * )
----
5395

onlyif mysql # DIV for integer division: 
query I rowsort label-7730
SELECT DISTINCT 72 DIV 42 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT 72 / 42 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7731
SELECT DISTINCT + - MIN( ALL + CASE 59 WHEN + 47 THEN NULL WHEN 18 + + 56 + NULLIF ( ( 61 ), + COALESCE ( - COALESCE ( + CAST( NULL AS SIGNED ), + + 26 - + COALESCE ( + 66, 51 ) ), + ( - 96 ) * + 22 ) + + 51 ) + + 7 * 8 THEN 81 * + 80 - ( 2 ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT + - MIN ( ALL + CASE 59 WHEN + 47 THEN NULL WHEN 18 + + 56 + NULLIF ( ( 61 ), + COALESCE ( - COALESCE ( + CAST ( NULL AS INTEGER ), + + 26 - + COALESCE ( + 66, 51 ) ), + ( - 96 ) * + 22 ) + + 51 ) + + 7 * 8 THEN 81 * + 80 - ( 2 ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT ALL COUNT( * ) * 36 + + 29 - + - 6
----
71

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL COUNT ( * ) * 36 + + 29 - + - 6
----
71

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

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

query II rowsort
SELECT ALL 90 * + ( 58 ) AS col1, - 52 col2
----
5220
-52

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

query I rowsort
SELECT - 31 + + 6 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT ALL COUNT( * ) * 63 - 2 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL COUNT ( * ) * 63 - 2 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT + 13 * - + 33 + + 99 * SUM( ALL + 51 ) AS col2
----
4620

skipif mysql # not compatible
query I rowsort label-7738
SELECT + 13 * - + 33 + + 99 * SUM ( ALL + 51 ) AS col2
----
4620

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

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

query I rowsort
SELECT - ( - 17 ) * - 28 AS col1
----
-476

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7741
SELECT MAX( ALL - 72 ) AS col1, + 88 DIV + NULLIF ( - - COUNT( * ), - 7 + 2 )
----
-72
88

skipif mysql # not compatible
query II rowsort label-7741
SELECT MAX ( ALL - 72 ) AS col1, + 88 / + NULLIF ( - - COUNT ( * ), - 7 + 2 )
----
-72
88

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

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

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

query I rowsort
SELECT DISTINCT + 68 * + ( + ( - 93 ) ) * - 87
----
550188

query I rowsort
SELECT DISTINCT + 96 + 56 * + 73 * - 65 * + 48
----
-12754464

query I rowsort
SELECT DISTINCT - 78 + - - ( - 59 )
----
-137

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

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

query II rowsort
SELECT 31 - + + 79 col1, 27 + + 52 + + 82 * 89 + - + 12
----
-48
7365

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT ALL + COUNT( * ) * + 42 * - ( 28 ) AS col0
----
-1176

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL + COUNT ( * ) * + 42 * - ( 28 ) AS col0
----
-1176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7750
SELECT 5 + + - 7 * - COUNT( ALL - + 23 ) DIV 29 * + NULLIF ( - NULLIF ( - 29, + 89 ), + - 8 * - COUNT( * ) DIV 96 + - + 46 )
----
5

skipif mysql # not compatible
query I rowsort label-7750
SELECT 5 + + - 7 * - COUNT ( ALL - + 23 ) / 29 * + NULLIF ( - NULLIF ( - 29, + 89 ), + - 8 * - COUNT ( * ) / 96 + - + 46 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT ALL + CASE + - 59 WHEN - + 79 / 35 + + 10 * - + COUNT( * ) + 96 THEN + 59 WHEN 53 * + + 42 / + - 74 THEN - + 93 END + + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL + CASE + - 59 WHEN - + 79 / 35 + + 10 * - + COUNT ( * ) + 96 THEN + 59 WHEN 53 * + + 42 / + - 74 THEN - + 93 END + + 16 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7752
SELECT - + ( + COALESCE ( + COUNT( * ), + + 55 DIV + MIN( DISTINCT CASE + 69 WHEN + 34 * 64 * 78 THEN - 3 ELSE - 65 END ) DIV + 80 * 95 + 68 + + - 85 * + ( - - 2 ) * + - ( - 43 ) + - CAST( 44 AS SIGNED ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7752
SELECT - + ( + COALESCE ( + COUNT ( * ), + + 55 / + MIN ( DISTINCT CASE + 69 WHEN + 34 * 64 * 78 THEN - 3 ELSE - 65 END ) / + 80 * 95 + 68 + + - 85 * + ( - - 2 ) * + - ( - 43 ) + - CAST ( 44 AS INTEGER ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT ALL - + COUNT( * ) + + 64 + + + NULLIF ( + 5, NULLIF ( MAX( ALL + 58 ), - + 83 ) ) * - + COUNT( ALL - 65 )
----
58

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL - + COUNT ( * ) + + 64 + + + NULLIF ( + 5, NULLIF ( MAX ( ALL + 58 ), - + 83 ) ) * - + COUNT ( ALL - 65 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT - ( - 94 ) * - SUM( + 74 ) + - 58 * + NULLIF ( + 65, + 45 ) AS col1
----
-10726

skipif mysql # not compatible
query I rowsort label-7754
SELECT - ( - 94 ) * - SUM ( + 74 ) + - 58 * + NULLIF ( + 65, + 45 ) AS col1
----
-10726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7755
SELECT DISTINCT 14 * - - 18 * + CAST( - 55 AS SIGNED ) * - - MIN( - + 24 )
----
332640

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT 14 * - - 18 * + CAST ( - 55 AS INTEGER ) * - - MIN ( - + 24 )
----
332640

query I rowsort
SELECT DISTINCT - 61 + - + 42 AS col0
----
-103

query I rowsort
SELECT ALL + - 25 + + COALESCE ( + 8, + 40 )
----
-17

query I rowsort
SELECT ALL - NULLIF ( + 21, - 9 ) - - 72
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7759
SELECT - COUNT( * ) + - 70 * + NULLIF ( - - 92, + CAST( NULL AS SIGNED ) )
----
-6441

skipif mysql # not compatible
query I rowsort label-7759
SELECT - COUNT ( * ) + - 70 * + NULLIF ( - - 92, + CAST ( NULL AS INTEGER ) )
----
-6441

query II rowsort
SELECT + 24 * 93 AS col2, + 91 + - 87 AS col0
----
2232
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT ALL + + 83 * 41 * + - MIN( 54 ) + + + COUNT( DISTINCT + - 1 ) col1
----
-183761

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL + + 83 * 41 * + - MIN ( 54 ) + + + COUNT ( DISTINCT + - 1 ) col1
----
-183761

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT ALL COALESCE ( - + 99, + COALESCE ( 72, + 48 ), + 62 ) - + ( + ( + + 52 ) ) + COUNT( * )
----
-150

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL COALESCE ( - + 99, + COALESCE ( 72, + 48 ), + 62 ) - + ( + ( + + 52 ) ) + COUNT ( * )
----
-150

query I rowsort
SELECT - 91 * - + ( 30 ) AS col2
----
2730

onlyif mysql # DIV for integer division: 
query I rowsort label-7764
SELECT DISTINCT - 76 * - 78 + - 98 DIV 6
----
5912

skipif mysql # not compatible
query I rowsort label-7764
SELECT DISTINCT - 76 * - 78 + - 98 / 6
----
5912

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT + COUNT( * ) * - 59 - - - 84 + + + 71
----
-72

skipif mysql # not compatible
query I rowsort label-7765
SELECT + COUNT ( * ) * - 59 - - - 84 + + + 71
----
-72

query I rowsort
SELECT + 57 * - 84 * + 55 AS col2
----
-263340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7767
SELECT ALL - - COALESCE ( + COALESCE ( 74, 26, CAST( NULL AS SIGNED ) * + COUNT( * ) ), + 64 * - - 84, + ( - ( - + ( 9 ) ) ) )
----
74

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL - - COALESCE ( + COALESCE ( 74, 26, CAST ( NULL AS INTEGER ) * + COUNT ( * ) ), + 64 * - - 84, + ( - ( - + ( 9 ) ) ) )
----
74

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7770
SELECT 54 - - + 50 + + CAST( - 88 AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-7770
SELECT 54 - - + 50 + + CAST ( - 88 AS INTEGER ) AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-7771
SELECT 90 DIV + 63
----
1

skipif mysql # not compatible
query I rowsort label-7771
SELECT 90 / + 63
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7772
SELECT ALL 31 DIV + + 29 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL 31 / + + 29 AS col0
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7774
SELECT DISTINCT - 0 DIV - + MIN( + + 63 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT - 0 / - + MIN ( + + 63 ) col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7775
SELECT 74 * - CAST( - 75 AS SIGNED ) AS col2
----
5550

skipif mysql # not compatible
query I rowsort label-7775
SELECT 74 * - CAST ( - 75 AS INTEGER ) AS col2
----
5550

query I rowsort
SELECT ALL 84 * - + 99 AS col2
----
-8316

onlyif mysql # DIV for integer division: 
query I rowsort label-7777
SELECT 80 DIV - 44 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7777
SELECT 80 / - 44 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT ALL 95 + - + 4 - 27 * + 41 + - + COUNT( * )
----
-1017

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL 95 + - + 4 - 27 * + 41 + - + COUNT ( * )
----
-1017

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT ALL + CASE - 64 WHEN 10 * + SUM( + + 64 ) + - - ( + - 92 ) + MIN( + 22 ) THEN + - 85 WHEN - 81 + + ( + 83 ) + + 51 * + - 33 THEN - 98 ELSE NULL END + - ( + COALESCE ( - 68, - MAX( ALL - 33 ) ) ) + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT ALL + CASE - 64 WHEN 10 * + SUM ( + + 64 ) + - - ( + - 92 ) + MIN ( + 22 ) THEN + - 85 WHEN - 81 + + ( + 83 ) + + 51 * + - 33 THEN - 98 ELSE NULL END + - ( + COALESCE ( - 68, - MAX ( ALL - 33 ) ) ) + 73
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7781
SELECT 70 DIV - - 75 * - COUNT( 39 )
----
0

skipif mysql # not compatible
query I rowsort label-7781
SELECT 70 / - - 75 * - COUNT ( 39 )
----
0

query I rowsort
SELECT 98 + - - 33
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7783
SELECT DISTINCT - 47 + - 26 - + 3 * 52 + + - COALESCE ( - + 28, + SUM( ALL + 96 ) * + - 27 - - 13 + - 45 ) * - 5 * - + SUM( DISTINCT CAST( NULL AS SIGNED ) ) - + CAST( - ( 77 ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT DISTINCT - 47 + - 26 - + 3 * 52 + + - COALESCE ( - + 28, + SUM ( ALL + 96 ) * + - 27 - - 13 + - 45 ) * - 5 * - + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) - + CAST ( - ( 77 ) AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + 65 + 4 col2
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7785
SELECT ALL - - 2 * + COUNT( * ) * + 46 * + 44 * + 34, - 7 - + ( + + SUM( ALL 5 ) ) AS col0
----
137632
-12

skipif mysql # not compatible
query II rowsort label-7785
SELECT ALL - - 2 * + COUNT ( * ) * + 46 * + 44 * + 34, - 7 - + ( + + SUM ( ALL 5 ) ) AS col0
----
137632
-12

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

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

query I rowsort
SELECT + 30 * - 56 AS col2
----
-1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7788
SELECT + 39 - - + 34 - - + CAST( NULL AS SIGNED ) * + - 48 / 30 * + CASE - 9 WHEN + 89 THEN - CAST( - - 34 AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7788
SELECT + 39 - - + 34 - - + CAST ( NULL AS INTEGER ) * + - 48 / 30 * + CASE - 9 WHEN + 89 THEN - CAST ( - - 34 AS INTEGER ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7789
SELECT DISTINCT - CASE - + MAX( DISTINCT - + 2 ) WHEN + 20 / 16 * + COUNT( * ) THEN + - 54 WHEN + + CAST( NULL AS DECIMAL ) * + 67 + 58 THEN NULL ELSE + + 61 + - - 76 END
----
-137

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT - CASE - + MAX ( DISTINCT - + 2 ) WHEN + 20 / 16 * + COUNT ( * ) THEN + - 54 WHEN + + CAST ( NULL AS REAL ) * + 67 + 58 THEN NULL ELSE + + 61 + - - 76 END
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7790
SELECT + COUNT( * ) DIV - - ( - COUNT( * ) ) - - 35 * + 11 + - MIN( ALL + 21 ) * CASE + 63 WHEN 14 * + 29 DIV - - 18 * - + CASE - CAST( NULL AS SIGNED ) WHEN - CAST( NULL AS SIGNED ) THEN - 4 * - 87 * + AVG ( DISTINCT + 87 ) ELSE + + 98 * - ( 52 ) END THEN NULL ELSE - COUNT( * ) END * 46 col1
----
1350

skipif mysql # not compatible
query I rowsort label-7790
SELECT + COUNT ( * ) / - - ( - COUNT ( * ) ) - - 35 * + 11 + - MIN ( ALL + 21 ) * CASE + 63 WHEN 14 * + 29 / - - 18 * - + CASE - CAST ( NULL AS INTEGER ) WHEN - CAST ( NULL AS INTEGER ) THEN - 4 * - 87 * + AVG ( DISTINCT + 87 ) ELSE + + 98 * - ( 52 ) END THEN NULL ELSE - COUNT ( * ) END * 46 col1
----
1350

onlyif mysql # DIV for integer division: 
query I rowsort label-7791
SELECT 18 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-7791
SELECT 18 / + 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT COUNT( * ) - - MIN( DISTINCT - 75 )
----
-74

skipif mysql # not compatible
query I rowsort label-7792
SELECT COUNT ( * ) - - MIN ( DISTINCT - 75 )
----
-74

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

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL + + COUNT ( * ) / 25 * + - 49
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7794
SELECT DISTINCT - 69 AS col0, NULLIF ( 20, + ( - 80 ) * + COUNT( * ) ) * + MIN( ALL - - 48 ) + + 76
----
-69
1036

skipif mysql # not compatible
query II rowsort label-7794
SELECT DISTINCT - 69 AS col0, NULLIF ( 20, + ( - 80 ) * + COUNT ( * ) ) * + MIN ( ALL - - 48 ) + + 76
----
-69
1036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7795
SELECT CAST( NULL AS SIGNED ) + - + ( 91 ) + - COUNT( + 1 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7795
SELECT CAST ( NULL AS INTEGER ) + - + ( 91 ) + - COUNT ( + 1 ) AS col0
----
NULL

query I rowsort
SELECT 93 * - 84 * + 7 AS col0
----
-54684

query I rowsort
SELECT 64 + + - 68 * + 34 AS col1
----
-2248

query I rowsort
SELECT DISTINCT - COALESCE ( + - 97, + + 55 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT DISTINCT - 13 + - 52 * - - COUNT( * ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT - 13 + - 52 * - - COUNT ( * ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-7800
SELECT DISTINCT - 48, - COUNT( * ) * MIN( - 33 ) AS col1
----
-48
33

skipif mysql # not compatible
query II rowsort label-7800
SELECT DISTINCT - 48, - COUNT ( * ) * MIN ( - 33 ) AS col1
----
-48
33

query I rowsort
SELECT 83 + - 15
----
68

query I rowsort
SELECT ALL - 95 + 12 + 67 + - + 0 * 34 * 86 * 33 * - 90 - 93 - 12
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7803
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, 55
----
NULL
55

skipif mysql # not compatible
query II rowsort label-7803
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 55
----
NULL
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ALL 42 + - COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL 42 + - COUNT ( * ) AS col2
----
41

query II rowsort
SELECT 47 AS col1, 34 AS col0
----
47
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT - CASE + 1 WHEN - ( + 64 ) / + COALESCE ( - - COUNT( * ), 50, - + 88, 87 ) + - - 29 THEN NULL WHEN - 68 * + 94 + 30 * + + 50 + + 99 THEN + 35 WHEN - - 22 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT - CASE + 1 WHEN - ( + 64 ) / + COALESCE ( - - COUNT ( * ), 50, - + 88, 87 ) + - - 29 THEN NULL WHEN - 68 * + 94 + 30 * + + 50 + + 99 THEN + 35 WHEN - - 22 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL MAX( DISTINCT - 67 ) + 82
----
15

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL MAX ( DISTINCT - 67 ) + 82
----
15

query I rowsort
SELECT ALL NULLIF ( - 74, - 12 )
----
-74

query I rowsort
SELECT ALL + 51 + 38 AS col0
----
89

query I rowsort
SELECT ALL 70 * - 89 * 15
----
-93450

query I rowsort
SELECT + 52 * - 42 * 84 AS col2
----
-183456

query II rowsort
SELECT ALL 62 col2, + 79 + - + 54
----
62
25

query I rowsort
SELECT + 70 - + - 40 * 64 + + 92 AS col0
----
2722

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT DISTINCT + 61 - - + 56 + - AVG ( 83 ) * - + 92 + - 40 * + CASE + + MIN( + - 92 ) WHEN COUNT( * ) THEN NULL WHEN - - COALESCE ( - 15, - 54 + ( 85 ) ) / - + 71 * + 30 + 66 THEN - + 40 * 71 * - - 57 + 64 + - 8 END + + 37 * + 60 * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-7815
SELECT DISTINCT + 61 - - + 56 + - AVG ( 83 ) * - + 92 + - 40 * + CASE + + MIN ( + - 92 ) WHEN COUNT ( * ) THEN NULL WHEN - - COALESCE ( - 15, - 54 + ( 85 ) ) / - + 71 * + 30 + 66 THEN - + 40 * 71 * - - 57 + 64 + - 8 END + + 37 * + 60 * 52
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7816
SELECT ALL + 2 * - + NULLIF ( + 42, - COUNT( * ) + + 79 + - 9 + + 83 ) DIV - + 2 col0
----
42

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL + 2 * - + NULLIF ( + 42, - COUNT ( * ) + + 79 + - 9 + + 83 ) / - + 2 col0
----
42

query II rowsort
SELECT ALL 73 AS col2, 31 AS col0
----
73
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7818
SELECT + 23 + NULLIF ( + 0, - - ( COALESCE ( - 4, - - 27 / - CAST( - + COUNT( * ) AS SIGNED ), 48 * + 41 * + + 12 * + ( CASE - - AVG ( 50 ) WHEN 93 / + + ( + + 34 ) THEN - + 96 END ) * + 6, + 42 ) ) * 0 ) + + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7818
SELECT + 23 + NULLIF ( + 0, - - ( COALESCE ( - 4, - - 27 / - CAST ( - + COUNT ( * ) AS INTEGER ), 48 * + 41 * + + 12 * + ( CASE - - AVG ( 50 ) WHEN 93 / + + ( + + 34 ) THEN - + 96 END ) * + 6, + 42 ) ) * 0 ) + + 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT + 37 + COUNT( * ) + + 50
----
88

skipif mysql # not compatible
query I rowsort label-7819
SELECT + 37 + COUNT ( * ) + + 50
----
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT - + 15 + - COUNT( * ) col2
----
-16

skipif mysql # not compatible
query I rowsort label-7821
SELECT - + 15 + - COUNT ( * ) col2
----
-16

query II rowsort
SELECT 14 AS col0, 22
----
14
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT DISTINCT + SUM( DISTINCT + 55 ) * + - 98
----
-5390

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT + SUM ( DISTINCT + 55 ) * + - 98
----
-5390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7824
SELECT ALL + 38 * - ( - 71 ) * + + CAST( + + COUNT( * ) AS SIGNED ) + - - 66 AS col1
----
2764

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL + 38 * - ( - 71 ) * + + CAST ( + + COUNT ( * ) AS INTEGER ) + - - 66 AS col1
----
2764

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7825
SELECT - COUNT( * ) DIV - + 21 + - - 67 DIV - + 53 * - 72 DIV + - 52 + ( 6 ) + COUNT( * ) DIV - SUM( + 66 ) * - + 13 + - 73
----
-68

skipif mysql # not compatible
query I rowsort label-7825
SELECT - COUNT ( * ) / - + 21 + - - 67 / - + 53 * - 72 / + - 52 + ( 6 ) + COUNT ( * ) / - SUM ( + 66 ) * - + 13 + - 73
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT ALL 45 * - 74 + - COUNT( * ) + - 15 * ( - 45 )
----
-2656

skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL 45 * - 74 + - COUNT ( * ) + - 15 * ( - 45 )
----
-2656

query I rowsort
SELECT NULLIF ( - 78, + 9 )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-7828
SELECT - ( - 45 ) DIV - 37 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7828
SELECT - ( - 45 ) / - 37 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT NULLIF ( + - COUNT( * ), + 34 + + 82 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7829
SELECT NULLIF ( + - COUNT ( * ), + 34 + + 82 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7830
SELECT - ( - 14 ) DIV - + 14
----
-1

skipif mysql # not compatible
query I rowsort label-7830
SELECT - ( - 14 ) / - + 14
----
-1

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

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

query I rowsort
SELECT - 95 * - ( + 46 ) AS col2
----
4370

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT CASE - CASE + COALESCE ( COUNT( * ), AVG ( + 77 ) ) WHEN - 83 THEN - 15 WHEN 59 THEN - 61 END WHEN + - 90 THEN + COUNT( * ) * + COUNT( * ) WHEN - 31 + 65 + - + 6 + - 4 * + 10 THEN NULL WHEN + 58 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT CASE - CASE + COALESCE ( COUNT ( * ), AVG ( + 77 ) ) WHEN - 83 THEN - 15 WHEN 59 THEN - 61 END WHEN + - 90 THEN + COUNT ( * ) * + COUNT ( * ) WHEN - 31 + 65 + - + 6 + - 4 * + 10 THEN NULL WHEN + 58 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 78 * + + 77 * 95 - 69 AS col2
----
-570639

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT + 29 - SUM( ALL - 71 ) * + 62
----
4431

skipif mysql # not compatible
query I rowsort label-7836
SELECT + 29 - SUM ( ALL - 71 ) * + 62
----
4431

query I rowsort
SELECT - 40 * - 39
----
1560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7838
SELECT DISTINCT CAST( - + 58 AS SIGNED ) col1, 61 + - 20
----
-58
41

skipif mysql # not compatible
query II rowsort label-7838
SELECT DISTINCT CAST ( - + 58 AS INTEGER ) col1, 61 + - 20
----
-58
41

query II rowsort
SELECT + 82 * + 18 AS col1, 85
----
1476
85

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7841
SELECT ALL + - 76 DIV + 12
----
-6

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL + - 76 / + 12
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7842
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) * - + 47 + - + 67
----
-20

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) * - + 47 + - + 67
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT + - COUNT( * ) * - + 72 * + 62 + + 25 AS col1
----
4489

skipif mysql # not compatible
query I rowsort label-7843
SELECT + - COUNT ( * ) * - + 72 * + 62 + + 25 AS col1
----
4489

query I rowsort
SELECT ALL - 55 * + + 32
----
-1760

onlyif mysql # DIV for integer division: 
query I rowsort label-7845
SELECT - 14 DIV + - 86 * 75 * + 16 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7845
SELECT - 14 / + - 86 * 75 * + 16 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT + 84 * 38 * + COUNT( * ) col0
----
3192

skipif mysql # not compatible
query I rowsort label-7846
SELECT + 84 * 38 * + COUNT ( * ) col0
----
3192

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT + 23 - CASE + 8 WHEN + 25 THEN NULL WHEN - 28 THEN NULL ELSE - - NULLIF ( + COUNT( * ), 59 ) END
----
22

skipif mysql # not compatible
query I rowsort label-7847
SELECT + 23 - CASE + 8 WHEN + 25 THEN NULL WHEN - 28 THEN NULL ELSE - - NULLIF ( + COUNT ( * ), 59 ) END
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7848
SELECT + 28 * + - 92 - CAST( + AVG ( ALL - 54 ) AS SIGNED ) + 42
----
-2480

skipif mysql # not compatible
query I rowsort label-7848
SELECT + 28 * + - 92 - CAST ( + AVG ( ALL - 54 ) AS INTEGER ) + 42
----
-2480

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT + ( + COUNT( * ) ) - 94 - 78
----
-171

skipif mysql # not compatible
query I rowsort label-7849
SELECT + ( + COUNT ( * ) ) - 94 - 78
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7850
SELECT DISTINCT - 98 / + + 97 + + - 18 - - + 2 + 14 * - 32 - + CAST( NULL AS SIGNED ) * 69 - - 41 + + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7850
SELECT DISTINCT - 98 / + + 97 + + - 18 - - + 2 + 14 * - 32 - + CAST ( NULL AS INTEGER ) * 69 - - 41 + + 4 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7851
SELECT ALL 72 DIV - - 33 + + - 91 AS col2, + 14
----
-89
14

skipif mysql # not compatible
query II rowsort label-7851
SELECT ALL 72 / - - 33 + + - 91 AS col2, + 14
----
-89
14

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

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

query I rowsort
SELECT 90 - 30 * 32 + - ( + + 7 )
----
-877

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7855
SELECT + 97 * - 12 * + COUNT( * ) + + CAST( + - 55 AS SIGNED ) AS col1
----
-1219

skipif mysql # not compatible
query I rowsort label-7855
SELECT + 97 * - 12 * + COUNT ( * ) + + CAST ( + - 55 AS INTEGER ) AS col1
----
-1219

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT ( - ( - + MIN( DISTINCT - 56 ) ) ) - - + 18 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-7856
SELECT ( - ( - + MIN ( DISTINCT - 56 ) ) ) - - + 18 AS col1
----
-38

query II rowsort
SELECT + 72 AS col1, ( - 61 ) * 6
----
72
-366

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT 73 + 35 + MIN( + - 10 )
----
98

skipif mysql # not compatible
query I rowsort label-7858
SELECT 73 + 35 + MIN ( + - 10 )
----
98

query I rowsort
SELECT ALL 25 + + - 44 + 14 col0
----
-5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7861
SELECT ALL + 32 + + 26 - - + 83 DIV + + 46 - - + 15
----
74

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL + 32 + + 26 - - + 83 / + + 46 - - + 15
----
74

query I rowsort
SELECT ( + - NULLIF ( + 86, 1 ) ) + - 80 AS col0
----
-166

query I rowsort
SELECT 24 * ( 61 ) AS col2
----
1464

query I rowsort
SELECT DISTINCT 30 * + + 22 AS col0
----
660

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7866
SELECT - MIN( DISTINCT + ( - 75 ) ) * - CAST( + + 91 AS SIGNED ) + 2
----
-6823

skipif mysql # not compatible
query I rowsort label-7866
SELECT - MIN ( DISTINCT + ( - 75 ) ) * - CAST ( + + 91 AS INTEGER ) + 2
----
-6823

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT ALL MAX( DISTINCT - 56 ) - - + 64 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL MAX ( DISTINCT - 56 ) - - + 64 AS col2
----
8

query I rowsort
SELECT 14 * + 64 col2
----
896

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7869
SELECT 18 + - + COALESCE ( + COUNT( * ), - + 74 DIV - + 80, - ( 95 ) - - COUNT( * ) ) AS col2, - 89
----
17
-89

skipif mysql # not compatible
query II rowsort label-7869
SELECT 18 + - + COALESCE ( + COUNT ( * ), - + 74 / - + 80, - ( 95 ) - - COUNT ( * ) ) AS col2, - 89
----
17
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT ALL - COUNT( * ) - - 7
----
6

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT 40 * NULLIF ( - - SUM( 17 ), - 53 - + 25 )
----
680

skipif mysql # not compatible
query I rowsort label-7873
SELECT 40 * NULLIF ( - - SUM ( 17 ), - 53 - + 25 )
----
680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7874
SELECT DISTINCT - MIN( 2 ) DIV + 93 - + 95
----
-95

skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT - MIN ( 2 ) / + 93 - + 95
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT ALL + 34 - - - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL + 34 - - - COUNT ( * )
----
33

query I rowsort
SELECT 14 * + 45
----
630

query II rowsort
SELECT 36 AS col1, - 51 col1
----
36
-51

query II rowsort
SELECT ALL NULLIF ( - + 14, - - 61 ) AS col0, 44 AS col2
----
-14
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT + COUNT( * ) * COALESCE ( - 48, - 65, - 81 )
----
-48

skipif mysql # not compatible
query I rowsort label-7879
SELECT + COUNT ( * ) * COALESCE ( - 48, - 65, - 81 )
----
-48

query II rowsort
SELECT ALL - 65 AS col2, - 50 * + 19 AS col1
----
-65
-950

query I rowsort
SELECT 55 + - 49 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT - MIN( DISTINCT - 39 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-7882
SELECT - MIN ( DISTINCT - 39 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7883
SELECT - 81, COUNT( * ) * + + 86 + + 12 AS col2
----
-81
98

skipif mysql # not compatible
query II rowsort label-7883
SELECT - 81, COUNT ( * ) * + + 86 + + 12 AS col2
----
-81
98

query I rowsort
SELECT ALL - - 11 + + 60
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT COUNT( * ) + + ( - 97 ) + 12
----
-84

skipif mysql # not compatible
query I rowsort label-7885
SELECT COUNT ( * ) + + ( - 97 ) + 12
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT + MIN( - 71 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-7886
SELECT + MIN ( - 71 ) AS col2
----
-71

query I rowsort
SELECT DISTINCT + - 82 + + - 51 AS col0
----
-133

query I rowsort
SELECT ALL - ( + + 33 ) * - - 55
----
-1815

query I rowsort
SELECT + 48 + + 56
----
104

query I rowsort
SELECT DISTINCT + + 69 + - 77 * - 8 AS col2
----
685

onlyif mysql # DIV for integer division: 
query I rowsort label-7891
SELECT DISTINCT - - 7 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-7891
SELECT DISTINCT - - 7 / + 96
----
0

query I rowsort
SELECT ALL 1 + 67
----
68

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

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

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

skipif mysql # not compatible
query I rowsort label-7894
SELECT DISTINCT 66 * - COUNT ( DISTINCT + - 82 ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT 83 * + 2 * - + NULLIF ( 9, + COUNT( * ) ) AS col2
----
-1494

skipif mysql # not compatible
query I rowsort label-7895
SELECT 83 * + 2 * - + NULLIF ( 9, + COUNT ( * ) ) AS col2
----
-1494

query I rowsort
SELECT 37 * + 32 + 22 AS col1
----
1206

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

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

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

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL + COUNT ( ALL - ( + + 10 ) ) - + - COUNT ( * ) AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7899
SELECT CAST( NULL AS SIGNED ) * - COALESCE ( + 94, + 90 + + AVG ( + ( + 6 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7899
SELECT CAST ( NULL AS INTEGER ) * - COALESCE ( + 94, + 90 + + AVG ( + ( + 6 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT 93 * + - 49 * COUNT( ALL + 37 ) + 74 + - 82
----
-4565

skipif mysql # not compatible
query I rowsort label-7900
SELECT 93 * + - 49 * COUNT ( ALL + 37 ) + 74 + - 82
----
-4565

query I rowsort
SELECT ALL 11 * + 56 * + 2
----
1232

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7902
SELECT 14 DIV - 68 AS col0, - COUNT( * ) * - 77 + - 67 + + COUNT( * ) - ( - 59 ) * + + 9 * - 0
----
0
11

skipif mysql # not compatible
query II rowsort label-7902
SELECT 14 / - 68 AS col0, - COUNT ( * ) * - 77 + - 67 + + COUNT ( * ) - ( - 59 ) * + + 9 * - 0
----
0
11

query I rowsort
SELECT 49 * 63 col1
----
3087

query I rowsort
SELECT - 72 * - - 77 - 32 AS col0
----
-5576

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7905
SELECT ALL - AVG ( + + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7905
SELECT ALL - AVG ( + + CAST ( NULL AS REAL ) ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7906
SELECT + MAX ( 17 )
----
17

query I rowsort
SELECT 33 - - 52 + - 34
----
51

query I rowsort
SELECT ALL - 54 * - - 76 + - 45 AS col1
----
-4149

query I rowsort
SELECT 0 * 35 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7910
SELECT SUM( CAST( 71 AS SIGNED ) )
----
71

skipif mysql # not compatible
query I rowsort label-7910
SELECT SUM ( CAST ( 71 AS INTEGER ) )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT DISTINCT + ( 25 ) * + + COUNT( * ) * - 30 * 49
----
-36750

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT + ( 25 ) * + + COUNT ( * ) * - 30 * 49
----
-36750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7912
SELECT DISTINCT + CASE - 49 WHEN CAST( - ( + 28 ) AS SIGNED ) THEN + 45 - 49 * + + 90 WHEN - 6 THEN ( - 12 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT + CASE - 49 WHEN CAST ( - ( + 28 ) AS INTEGER ) THEN + 45 - 49 * + + 90 WHEN - 6 THEN ( - 12 ) END
----
NULL

query I rowsort
SELECT DISTINCT + 72 + + ( + 85 ) * - 51 * + 83
----
-359733

query I rowsort
SELECT 69 * - - 1
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7915
SELECT ALL + 97 + SUM( ALL 99 ) * - 97 + + + COALESCE ( + - 39, + - COUNT( * ), 86 ) + - 53 AS col2, - 56 * - 59 * + + 33 * - - 92 AS col1
----
-9598
10030944

skipif mysql # not compatible
query II rowsort label-7915
SELECT ALL + 97 + SUM ( ALL 99 ) * - 97 + + + COALESCE ( + - 39, + - COUNT ( * ), 86 ) + - 53 AS col2, - 56 * - 59 * + + 33 * - - 92 AS col1
----
-9598
10030944

onlyif mysql # DIV for integer division: 
query I rowsort label-7916
SELECT - 6 DIV 59 * 3
----
0

skipif mysql # not compatible
query I rowsort label-7916
SELECT - 6 / 59 * 3
----
0

query I rowsort
SELECT ALL + 47 * + + 23 col1
----
1081

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT 49 * 3 + + COUNT( DISTINCT + - 42 ) + - 85 * 20
----
-1552

skipif mysql # not compatible
query I rowsort label-7918
SELECT 49 * 3 + + COUNT ( DISTINCT + - 42 ) + - 85 * 20
----
-1552

onlyif mysql # aggregate syntax: 
query II rowsort label-7919
SELECT DISTINCT + NULLIF ( 38, - 72 * 92 ) + COUNT( - + ( - 64 ) ) col0, 36 * 14 AS col0
----
39
504

skipif mysql # not compatible
query II rowsort label-7919
SELECT DISTINCT + NULLIF ( 38, - 72 * 92 ) + COUNT ( - + ( - 64 ) ) col0, 36 * 14 AS col0
----
39
504

query I rowsort
SELECT ALL - ( + + 57 ) + NULLIF ( 49, - - 69 )
----
-8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT DISTINCT - 54 * + - COUNT( * ) * + - 73 * + COUNT( * ) AS col2
----
-3942

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT - 54 * + - COUNT ( * ) * + - 73 * + COUNT ( * ) AS col2
----
-3942

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

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

skipif mysql # not compatible
query I rowsort label-7924
SELECT - 31 - COUNT ( * ) / - + 28 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT DISTINCT COALESCE ( - - 61, + COUNT( * ) + + 74 )
----
61

skipif mysql # not compatible
query I rowsort label-7925
SELECT DISTINCT COALESCE ( - - 61, + COUNT ( * ) + + 74 )
----
61

query I rowsort
SELECT DISTINCT + ( + - 69 )
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-7927
SELECT ALL COUNT( * ) * MIN( - ( - 1 ) ) - 62 AS col2, - 91 AS col0
----
-61
-91

skipif mysql # not compatible
query II rowsort label-7927
SELECT ALL COUNT ( * ) * MIN ( - ( - 1 ) ) - 62 AS col2, - 91 AS col0
----
-61
-91

query I rowsort
SELECT DISTINCT + NULLIF ( + 35, 61 )
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-7929
SELECT DISTINCT 13 * + + 69 * + COUNT( * ) col1, SUM( + 29 ) + 90 AS col0
----
897
119

skipif mysql # not compatible
query II rowsort label-7929
SELECT DISTINCT 13 * + + 69 * + COUNT ( * ) col1, SUM ( + 29 ) + 90 AS col0
----
897
119

query I rowsort
SELECT DISTINCT + ( - + 38 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT + COUNT( * ) - - 33 * + - 34 AS col2
----
-1121

skipif mysql # not compatible
query I rowsort label-7931
SELECT + COUNT ( * ) - - 33 * + - 34 AS col2
----
-1121

query I rowsort
SELECT - 41 * + ( - 43 )
----
1763

query I rowsort
SELECT - 0 + 69 col1
----
69

query II rowsort
SELECT ALL + 79, 17 + + 54 AS col1
----
79
71

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

skipif mysql # not compatible
query I rowsort label-7935
SELECT DISTINCT CAST ( + 19 AS INTEGER ) * + 0 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-7936
SELECT - 94 + - 2 + + COUNT ( * ) AS col0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7937
SELECT - 6 * - + 15 + + + 75 + + - CAST( - 86 AS SIGNED ) * - 97 + + 91
----
-8086

skipif mysql # not compatible
query I rowsort label-7937
SELECT - 6 * - + 15 + + + 75 + + - CAST ( - 86 AS INTEGER ) * - 97 + + 91
----
-8086

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT DISTINCT - 16 * - - COUNT( * ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT - 16 * - - COUNT ( * ) AS col0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7939
SELECT 43 * - CAST( NULL AS SIGNED ) + - 46 - - CASE - - 20 WHEN + 69 * ( + + CAST( NULL AS SIGNED ) ) + - CASE + 98 WHEN 53 THEN 53 WHEN COUNT( * ) THEN NULL ELSE NULL END THEN COUNT( * ) + - - 42 WHEN + CASE 16 WHEN - 13 + + MIN( ALL 43 ) * + COUNT( * ) * 32 THEN 91 WHEN - + 63 + - 65 + 59 THEN - 4 END + 26 THEN NULL ELSE - ( 91 ) END * MAX( ALL + 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7939
SELECT 43 * - CAST ( NULL AS INTEGER ) + - 46 - - CASE - - 20 WHEN + 69 * ( + + CAST ( NULL AS INTEGER ) ) + - CASE + 98 WHEN 53 THEN 53 WHEN COUNT ( * ) THEN NULL ELSE NULL END THEN COUNT ( * ) + - - 42 WHEN + CASE 16 WHEN - 13 + + MIN ( ALL 43 ) * + COUNT ( * ) * 32 THEN 91 WHEN - + 63 + - 65 + 59 THEN - 4 END + 26 THEN NULL ELSE - ( 91 ) END * MAX ( ALL + 83 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT ALL - - CASE - 21 WHEN + 19 THEN NULL WHEN + - ( - - 51 ) THEN NULL ELSE + - 95 END * 71 * + COUNT( * ) + + 0
----
-6745

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL - - CASE - 21 WHEN + 19 THEN NULL WHEN + - ( - - 51 ) THEN NULL ELSE + - 95 END * 71 * + COUNT ( * ) + + 0
----
-6745

query I rowsort
SELECT DISTINCT 49 * + 4
----
196

query I rowsort
SELECT - - 12 + 40 AS col1
----
52

query I rowsort
SELECT + + 32 * 32
----
1024

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT + - ( + + MIN( DISTINCT + 21 ) ) * - 81 + 18
----
1719

skipif mysql # not compatible
query I rowsort label-7945
SELECT + - ( + + MIN ( DISTINCT + 21 ) ) * - 81 + 18
----
1719

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7946
SELECT ALL - CASE + CAST( NULL AS SIGNED ) WHEN + - CASE - - MAX( - - 99 ) WHEN COUNT( * ) THEN NULL WHEN + 33 + + 43 + 66 + + - 47 + + + 23 / 29 * - 59 * - CAST( + 13 AS SIGNED ) * + + 7 * + + 75 + - 86 THEN NULL WHEN + 82 THEN - + 88 END THEN - - 24 WHEN + 2 THEN + 44 ELSE NULL END * + AVG ( ALL + 68 ) + - 31 * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL - CASE + CAST ( NULL AS INTEGER ) WHEN + - CASE - - MAX ( - - 99 ) WHEN COUNT ( * ) THEN NULL WHEN + 33 + + 43 + 66 + + - 47 + + + 23 / 29 * - 59 * - CAST ( + 13 AS INTEGER ) * + + 7 * + + 75 + - 86 THEN NULL WHEN + 82 THEN - + 88 END THEN - - 24 WHEN + 2 THEN + 44 ELSE NULL END * + AVG ( ALL + 68 ) + - 31 * 45
----
NULL

query I rowsort
SELECT DISTINCT 16 * 28 * - 24 * + 66 AS col1
----
-709632

query I rowsort
SELECT ALL 20 + 21 AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7949
SELECT + + CAST( - COUNT( * ) AS SIGNED ) * 90, - ( 91 ) * - 46 * 44 AS col1
----
-90
184184

skipif mysql # not compatible
query II rowsort label-7949
SELECT + + CAST ( - COUNT ( * ) AS INTEGER ) * 90, - ( 91 ) * - 46 * 44 AS col1
----
-90
184184

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT DISTINCT 73 + MAX( - 44 )
----
29

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT 73 + MAX ( - 44 )
----
29

query I rowsort
SELECT DISTINCT - 60 + + + 11
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT + + 5 - - + 11 * + COUNT( * ) * - - 52 * - - 15 AS col0
----
8585

skipif mysql # not compatible
query I rowsort label-7952
SELECT + + 5 - - + 11 * + COUNT ( * ) * - - 52 * - - 15 AS col0
----
8585

query I rowsort
SELECT ALL 23 - 88
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-7954
SELECT ALL - 66 DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL - 66 / + 82 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7955
SELECT - + 55 + 67 * - 78 AS col2, - COALESCE ( - 12, 43 + + - 92, + - 58 * - - 54, + + 94 + + + COUNT( * ) )
----
-5281
12

skipif mysql # not compatible
query II rowsort label-7955
SELECT - + 55 + 67 * - 78 AS col2, - COALESCE ( - 12, 43 + + - 92, + - 58 * - - 54, + + 94 + + + COUNT ( * ) )
----
-5281
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7956
SELECT - - CAST( NULL AS SIGNED ) AS col2, - 77 - ( - + 7 ) AS col0
----
NULL
-70

skipif mysql # not compatible
query II rowsort label-7956
SELECT - - CAST ( NULL AS INTEGER ) AS col2, - 77 - ( - + 7 ) AS col0
----
NULL
-70

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

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

query II rowsort
SELECT + 8 + 73 AS col1, + 39 * - - 7 AS col0
----
81
273

query I rowsort
SELECT - 14 - + 98
----
-112

query I rowsort
SELECT ALL + ( + - NULLIF ( - - 8, - 23 ) ) - 56 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-7961
SELECT ALL - ( 47 ) * COUNT( + - 65 ) col1, + 85
----
-47
85

skipif mysql # not compatible
query II rowsort label-7961
SELECT ALL - ( 47 ) * COUNT ( + - 65 ) col1, + 85
----
-47
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7962
SELECT DISTINCT - COUNT( * ) * + + 95 * + + 4 DIV 48 DIV + 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT - COUNT ( * ) * + + 95 * + + 4 / 48 / + 52 AS col1
----
0

query I rowsort
SELECT DISTINCT - 19 * 80 AS col2
----
-1520

query I rowsort
SELECT - 13 * 14 * 51
----
-9282

query I rowsort
SELECT ALL - 2 * + 34
----
-68

query I rowsort
SELECT - 42 * - - 64
----
-2688

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

skipif mysql # not compatible
query I rowsort label-7967
SELECT - COUNT ( * ) + + + 4 / + 33
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7968
SELECT ALL + 69 DIV 15 + ( 48 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL + 69 / 15 + ( 48 ) AS col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7969
SELECT ALL + 20 DIV + + 95 + COUNT( * ) * - 95 * + NULLIF ( COUNT( * ), 0 ), 76 AS col0
----
-95
76

skipif mysql # not compatible
query II rowsort label-7969
SELECT ALL + 20 / + + 95 + COUNT ( * ) * - 95 * + NULLIF ( COUNT ( * ), 0 ), 76 AS col0
----
-95
76

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7971
SELECT ALL 64 DIV + 21 + 90 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL 64 / + 21 + 90 AS col2
----
93

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7974
SELECT DISTINCT 1 DIV 55 + 12 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT 1 / 55 + 12 AS col1
----
12

query I rowsort
SELECT - - 83 + - + 98 AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7976
SELECT DISTINCT + CAST( + 64 AS SIGNED ) col1, NULLIF ( 57, + - COALESCE ( + - ( + COUNT( * ) ), 35 / + - COUNT( * ) - + COUNT( * ) - - 78, + COUNT( * ) ) * - NULLIF ( + + 39, - 52 ) * - ( + ( + ( - COUNT( * ) ) ) ) * + 30 / - 19 / - 8 + - 7 + + 10 * - ( + + 43 ) - MAX( + 29 - - 23 ) * 53 ) * - 70
----
64
-3990

skipif mysql # not compatible
query II rowsort label-7976
SELECT DISTINCT + CAST ( + 64 AS INTEGER ) col1, NULLIF ( 57, + - COALESCE ( + - ( + COUNT ( * ) ), 35 / + - COUNT ( * ) - + COUNT ( * ) - - 78, + COUNT ( * ) ) * - NULLIF ( + + 39, - 52 ) * - ( + ( + ( - COUNT ( * ) ) ) ) * + 30 / - 19 / - 8 + - 7 + + 10 * - ( + + 43 ) - MAX ( + 29 - - 23 ) * 53 ) * - 70
----
64
-3990

query II rowsort
SELECT ALL + - 4 AS col1, 78
----
-4
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT ALL 42 * - COUNT( ALL 4 ) + - SUM( ALL - + 90 ) + + + COUNT( * ) + - + 59 + + 11 * 77 * ( + 92 ) AS col0
----
77914

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL 42 * - COUNT ( ALL 4 ) + - SUM ( ALL - + 90 ) + + + COUNT ( * ) + - + 59 + + 11 * 77 * ( + 92 ) AS col0
----
77914

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7979
SELECT + + 75 * - 36 - - + 10 + + 51 - + 64 * COUNT( * ) DIV - 70 AS col1
----
-2639

skipif mysql # not compatible
query I rowsort label-7979
SELECT + + 75 * - 36 - - + 10 + + 51 - + 64 * COUNT ( * ) / - 70 AS col1
----
-2639

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7980
SELECT + + CASE - 47 WHEN 32 THEN - + 66 ELSE 92 * + - CAST( NULL AS DECIMAL ) + 74 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT + + CASE - 47 WHEN 32 THEN - + 66 ELSE 92 * + - CAST ( NULL AS REAL ) + 74 END AS col2
----
NULL

query I rowsort
SELECT - 92 - + 6
----
-98

query II rowsort
SELECT DISTINCT - 60 col2, 23 AS col2
----
-60
23

query I rowsort
SELECT DISTINCT 93 - + 84
----
9

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

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT ( + COUNT ( * ) ) - + 65 AS col1
----
-64

query I rowsort
SELECT DISTINCT - 37 * + 25 * 14 AS col0
----
-12950

query I rowsort
SELECT - 95 * + 13 AS col2
----
-1235

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT - MAX( - 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-7987
SELECT - MAX ( - 33 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT DISTINCT COUNT( * ) * - 3 * SUM( DISTINCT - 96 )
----
288

skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT COUNT ( * ) * - 3 * SUM ( DISTINCT - 96 )
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT ALL 49 * - COUNT( * ) * MIN( + 47 )
----
-2303

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL 49 * - COUNT ( * ) * MIN ( + 47 )
----
-2303

query I rowsort
SELECT COALESCE ( 56, 82 ) * 19 * - ( + 22 ) col2
----
-23408

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7991
SELECT ( + 15 ) / + - CAST( NULL AS DECIMAL ) + + - 3 - + + 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7991
SELECT ( + 15 ) / + - CAST ( NULL AS REAL ) + + - 3 - + + 80 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7992
SELECT CASE - 50 WHEN + 36 THEN - COUNT( * ) DIV CASE - 87 WHEN + AVG ( 44 ) * + - 78 * + COUNT( * ) DIV + ( - 91 ) THEN NULL WHEN + AVG ( ALL - - 35 ) DIV MIN( - 44 ) - + ( + COUNT( * ) ) THEN + - 10 * - COUNT( 25 ) * - 53 + 21 + - 7 - - + 76 + + - NULLIF ( + 46, - ( - COUNT( ALL - 83 ) ) + + 41 ) END WHEN 19 - + 90 THEN NULL ELSE - 59 * COUNT( * ) END + + 37 * - MIN( ALL 49 ) col2
----
-1872

skipif mysql # not compatible
query I rowsort label-7992
SELECT CASE - 50 WHEN + 36 THEN - COUNT ( * ) / CASE - 87 WHEN + AVG ( 44 ) * + - 78 * + COUNT ( * ) / + ( - 91 ) THEN NULL WHEN + AVG ( ALL - - 35 ) / MIN ( - 44 ) - + ( + COUNT ( * ) ) THEN + - 10 * - COUNT ( 25 ) * - 53 + 21 + - 7 - - + 76 + + - NULLIF ( + 46, - ( - COUNT ( ALL - 83 ) ) + + 41 ) END WHEN 19 - + 90 THEN NULL ELSE - 59 * COUNT ( * ) END + + 37 * - MIN ( ALL 49 ) col2
----
-1872

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7994
SELECT ALL + CAST( NULL AS SIGNED ) + MIN( DISTINCT 36 ) + - + 35 + - - 83 * - - 36 + - SUM( DISTINCT 18 ) * - COALESCE ( - 1, + - 49 * - + 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL + CAST ( NULL AS INTEGER ) + MIN ( DISTINCT 36 ) + - + 35 + - - 83 * - - 36 + - SUM ( DISTINCT 18 ) * - COALESCE ( - 1, + - 49 * - + 34 )
----
NULL

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

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

query I rowsort
SELECT 43 * + 43 * - 49 + 74 + - - 94 AS col0
----
-90433

query II rowsort
SELECT ALL - 70 * - 70 AS col2, 74
----
4900
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT DISTINCT COUNT( + 60 ) + 21 * + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT COUNT ( + 60 ) + 21 * + + COUNT ( * )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7999
SELECT DISTINCT + 53 * + + MAX( DISTINCT + - 39 ) AS col0, + 24 + + CAST( - ( - + 53 ) AS SIGNED ) - 85 * + 51 + - + 99 * 92 AS col2
----
-2067
-13366

skipif mysql # not compatible
query II rowsort label-7999
SELECT DISTINCT + 53 * + + MAX ( DISTINCT + - 39 ) AS col0, + 24 + + CAST ( - ( - + 53 ) AS INTEGER ) - 85 * + 51 + - + 99 * 92 AS col2
----
-2067
-13366

query II rowsort
SELECT DISTINCT - 98 + + 22 AS col0, 85 AS col0
----
-76
85

query I rowsort
SELECT ALL + 44 + - - 98 - - 41 * + - 82
----
-3220

query I rowsort
SELECT 59 - + 71 col1
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-8003
SELECT 80 DIV - 26 + 4 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8003
SELECT 80 / - 26 + 4 AS col0
----
1

query I rowsort
SELECT 44 * + 56 - 88
----
2376

query I rowsort
SELECT ALL - 8 + + 10 AS col0
----
2

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

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

query I rowsort
SELECT + CASE + 44 WHEN 16 THEN + 48 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8008
SELECT ALL - + COALESCE ( - 90, - - 41 ) + CAST( + 9 AS SIGNED ) * - 6 + - 18 - - CASE + 92 WHEN + + 26 THEN + 8 * + 80 + - 3 + - 74 + + 18 + 39 DIV 98 * - + ( 53 ) - + 11 * - SUM( DISTINCT - 10 ) + - COUNT( * ) + - 2 WHEN + 16 DIV ( - 56 ) * + 60 + ( - 9 + - COUNT( * ) ) * + MIN( 69 ) THEN CAST( 43 AS SIGNED ) * - 81 ELSE - 97 - + 32 END * + 78 AS col0
----
-10044

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL - + COALESCE ( - 90, - - 41 ) + CAST ( + 9 AS INTEGER ) * - 6 + - 18 - - CASE + 92 WHEN + + 26 THEN + 8 * + 80 + - 3 + - 74 + + 18 + 39 / 98 * - + ( 53 ) - + 11 * - SUM ( DISTINCT - 10 ) + - COUNT ( * ) + - 2 WHEN + 16 / ( - 56 ) * + 60 + ( - 9 + - COUNT ( * ) ) * + MIN ( 69 ) THEN CAST ( 43 AS INTEGER ) * - 81 ELSE - 97 - + 32 END * + 78 AS col0
----
-10044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8009
SELECT COALESCE ( - + 95, + 40 + - 44 ) + - AVG ( ALL - CAST( NULL AS SIGNED ) ) * + MIN( DISTINCT - 17 ), 99 + + 44 * COUNT( 27 ) col1
----
NULL
143

skipif mysql # not compatible
query II rowsort label-8009
SELECT COALESCE ( - + 95, + 40 + - 44 ) + - AVG ( ALL - CAST ( NULL AS INTEGER ) ) * + MIN ( DISTINCT - 17 ), 99 + + 44 * COUNT ( 27 ) col1
----
NULL
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT + + 13 * - 79 + MIN( + 3 ) * 59 + + - NULLIF ( + + 13, 26 ) AS col2
----
-863

skipif mysql # not compatible
query I rowsort label-8010
SELECT + + 13 * - 79 + MIN ( + 3 ) * 59 + + - NULLIF ( + + 13, 26 ) AS col2
----
-863

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8013
SELECT DISTINCT - 27 * + COUNT( * ), 66 * - COUNT( * ) + 62 + ( + + 78 ) + - 11 AS col2
----
-27
63

skipif mysql # not compatible
query II rowsort label-8013
SELECT DISTINCT - 27 * + COUNT ( * ), 66 * - COUNT ( * ) + 62 + ( + + 78 ) + - 11 AS col2
----
-27
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8014
SELECT 93 DIV COUNT( * ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-8014
SELECT 93 / COUNT ( * ) AS col1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-8015
SELECT - 52 + 66 - + 54 DIV - 42 + + - ( 73 ) + 77
----
19

skipif mysql # not compatible
query I rowsort label-8015
SELECT - 52 + 66 - + 54 / - 42 + + - ( 73 ) + 77
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-8016
SELECT ALL - - 85 * - + 13 + - 26, 2 + CAST( NULL AS SIGNED ) + ( 74 ) * CAST( NULL AS SIGNED ) AS col0, - COUNT( * ) DIV + 42 + - 44 AS col0
----
-1131
NULL
-44

skipif mysql # not compatible
query III rowsort label-8016
SELECT ALL - - 85 * - + 13 + - 26, 2 + CAST ( NULL AS INTEGER ) + ( 74 ) * CAST ( NULL AS INTEGER ) AS col0, - COUNT ( * ) / + 42 + - 44 AS col0
----
-1131
NULL
-44

query I rowsort
SELECT 16 * 58
----
928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8018
SELECT + 89 * + ( + NULLIF ( + 43, + 57 ) ) + 0 + + - SUM( 77 ) * 74 + + 94 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT + 89 * + ( + NULLIF ( + 43, + 57 ) ) + 0 + + - SUM ( 77 ) * 74 + + 94 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8019
SELECT + CASE + CAST( + 44 AS SIGNED ) WHEN 75 THEN - - 96 * + 19 * COUNT( * ) ELSE NULL END AS col0, - COALESCE ( 73, + 28 ) + 71 - - - 80 + - 2 * - 24 + + NULLIF ( - CAST( - - COUNT( * ) AS SIGNED ), + + COUNT( * ) ) * - 16
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-8019
SELECT + CASE + CAST ( + 44 AS INTEGER ) WHEN 75 THEN - - 96 * + 19 * COUNT ( * ) ELSE NULL END AS col0, - COALESCE ( 73, + 28 ) + 71 - - - 80 + - 2 * - 24 + + NULLIF ( - CAST ( - - COUNT ( * ) AS INTEGER ), + + COUNT ( * ) ) * - 16
----
NULL
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8020
SELECT ALL + + COUNT( * ) * CASE + + COUNT( * ) WHEN 52 - - 44 * - 99 + - - COUNT( * ) + - - MIN( + - 81 ) + 36 / 61 + - - MAX( - - ( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) ) + - AVG ( 17 ) THEN 89 END * 53 * MIN( DISTINCT 54 ) + - - 53 + + 20 * 70 + 52 * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL + + COUNT ( * ) * CASE + + COUNT ( * ) WHEN 52 - - 44 * - 99 + - - COUNT ( * ) + - - MIN ( + - 81 ) + 36 / 61 + - - MAX ( - - ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) + - AVG ( 17 ) THEN 89 END * 53 * MIN ( DISTINCT 54 ) + - - 53 + + 20 * 70 + 52 * 2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8021
SELECT DISTINCT - + 56 * + + CAST( 69 AS SIGNED )
----
-3864

skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT - + 56 * + + CAST ( 69 AS INTEGER )
----
-3864

query I rowsort
SELECT DISTINCT COALESCE ( + + 92, 49, - 42 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT COUNT( * ) * 68 * + 80 * 75
----
408000

skipif mysql # not compatible
query I rowsort label-8023
SELECT COUNT ( * ) * 68 * + 80 * 75
----
408000

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT COUNT( * ) + 71 col1
----
72

skipif mysql # not compatible
query I rowsort label-8024
SELECT COUNT ( * ) + 71 col1
----
72

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

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

query I rowsort
SELECT 34 + 75 AS col0
----
109

query II rowsort
SELECT ALL 72 col0, 17
----
72
17

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

skipif mysql # not compatible
query I rowsort label-8028
SELECT COUNT ( * ) * - 92
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8029
SELECT ALL ( 97 ) + + 11 + + + MAX( + 97 ) + - 87 + + 6 / + 96 / - AVG ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL ( 97 ) + + 11 + + + MAX ( + 97 ) + - 87 + + 6 / + 96 / - AVG ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT COUNT( * ) + - 30 AS col0
----
-29

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

query I rowsort
SELECT ALL 89 + + + 71 AS col2
----
160

query I rowsort
SELECT DISTINCT - 29 + + - 73 AS col0
----
-102

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

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL 83 + - + 4 + ( - - 89 ) + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 0 + + + 59 + - 37 + - 34
----
-12

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

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

query II rowsort
SELECT DISTINCT 45, - 29 AS col2
----
45
-29

query I rowsort
SELECT ALL + 12 + 80 AS col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8038
SELECT CAST( - + 87 AS SIGNED ) + + 1 * 23 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-8038
SELECT CAST ( - + 87 AS INTEGER ) + + 1 * 23 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-8039
SELECT + COUNT( * ), - 23 * ( + 39 ) AS col0
----
1
-897

skipif mysql # not compatible
query II rowsort label-8039
SELECT + COUNT ( * ), - 23 * ( + 39 ) AS col0
----
1
-897

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8040
SELECT 78 + + + 79 + + + 93 + 0 + 36 * - 27 * + - NULLIF ( + + 21, + - 55 / - 76 * - 68 / + 29 + + CAST( NULL AS SIGNED ) ) + 70 AS col0
----
20732

skipif mysql # not compatible
query I rowsort label-8040
SELECT 78 + + + 79 + + + 93 + 0 + 36 * - 27 * + - NULLIF ( + + 21, + - 55 / - 76 * - 68 / + 29 + + CAST ( NULL AS INTEGER ) ) + 70 AS col0
----
20732

query I rowsort
SELECT ALL 62 * - 86 - 9 * - + 2 + + 70 * + 88
----
846

query I rowsort
SELECT 49 * 74
----
3626

query I rowsort
SELECT 84 * 17
----
1428

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8045
SELECT DISTINCT + 11 DIV + 40
----
0

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT + 11 / + 40
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT ALL - 89 * - + NULLIF ( - ( COUNT( * ) ), + + 56 / - - COALESCE ( + COALESCE ( ( + 16 ), + - 21 * + COUNT( * ) * + 51 - - 7 + - 62 + - 17 + + COUNT( * ) + + - 37 * - 69 * - + 48 * - COUNT( * ) * + - 39 ), + 18 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL - 89 * - + NULLIF ( - ( COUNT ( * ) ), + + 56 / - - COALESCE ( + COALESCE ( ( + 16 ), + - 21 * + COUNT ( * ) * + 51 - - 7 + - 62 + - 17 + + COUNT ( * ) + + - 37 * - 69 * - + 48 * - COUNT ( * ) * + - 39 ), + 18 ) )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8048
SELECT DISTINCT + + COUNT( * ) AS col1, - CASE + - 36 WHEN + 64 + + 66 + - - COALESCE ( + 80, - 64 / + + 22 + CAST( 91 AS SIGNED ) ) - - 91 * + - 72 THEN + 32 * CASE + 98 WHEN + + 34 THEN - 55 END WHEN 82 THEN NULL ELSE - COUNT( * ) * - 94 + + 7 END - ( 79 ) AS col1
----
1
-180

skipif mysql # not compatible
query II rowsort label-8048
SELECT DISTINCT + + COUNT ( * ) AS col1, - CASE + - 36 WHEN + 64 + + 66 + - - COALESCE ( + 80, - 64 / + + 22 + CAST ( 91 AS INTEGER ) ) - - 91 * + - 72 THEN + 32 * CASE + 98 WHEN + + 34 THEN - 55 END WHEN 82 THEN NULL ELSE - COUNT ( * ) * - 94 + + 7 END - ( 79 ) AS col1
----
1
-180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8049
SELECT DISTINCT + 98 * - 2 + + 0 + - 99 + + 31 * 52 - + - NULLIF ( - 83, - 66 * 48 DIV - NULLIF ( - - 77, - 22 ) + - COALESCE ( + 61, COUNT( ALL - NULLIF ( - ( + + 92 ), - + ( + + 29 ) ) ) ) * + 52 * 33 + + AVG ( + 70 ) ) * 56 * 86 DIV 16 + 20 * - ( - 73 * 79 )
----
91674

skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT + 98 * - 2 + + 0 + - 99 + + 31 * 52 - + - NULLIF ( - 83, - 66 * 48 / - NULLIF ( - - 77, - 22 ) + - COALESCE ( + 61, COUNT ( ALL - NULLIF ( - ( + + 92 ), - + ( + + 29 ) ) ) ) * + 52 * 33 + + AVG ( + 70 ) ) * 56 * 86 / 16 + 20 * - ( - 73 * 79 )
----
91674

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8050
SELECT + 34 AS col2, ( - CAST( NULL AS DECIMAL ) ) * + 34 - COUNT( * )
----
34
NULL

skipif mysql # not compatible
query II rowsort label-8050
SELECT + 34 AS col2, ( - CAST ( NULL AS REAL ) ) * + 34 - COUNT ( * )
----
34
NULL

query I rowsort
SELECT DISTINCT 71 * + - 69
----
-4899

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8052
SELECT + COALESCE ( - 31, ( + 57 ) - + 11 DIV - 13 ) + + 68 + + COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-8052
SELECT + COALESCE ( - 31, ( + 57 ) - + 11 / - 13 ) + + 68 + + COUNT ( * ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT + - COALESCE ( - NULLIF ( - - 8, - 49 * + - COUNT( * ) ), - ( + + 76 ) * + 31 + - 87 ) * + 89
----
712

skipif mysql # not compatible
query I rowsort label-8053
SELECT + - COALESCE ( - NULLIF ( - - 8, - 49 * + - COUNT ( * ) ), - ( + + 76 ) * + 31 + - 87 ) * + 89
----
712

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

query II rowsort
SELECT ALL + - 16 AS col1, - 95 - - 98
----
-16
3

query I rowsort
SELECT - 86 * + - 33 AS col2
----
2838

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT - + COUNT( * ) - - 34 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8057
SELECT - + COUNT ( * ) - - 34 AS col1
----
33

query II rowsort
SELECT DISTINCT - 51, - 16 + 20 AS col0
----
-51
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8059
SELECT + COALESCE ( NULLIF ( + + 16, + 92 + + - 93 ), - 79 / - 80 + - 32 - + 45 * - 9 * - AVG ( + 80 ), + 97 * 53 + - 29 + + COUNT( * ) ) + - CASE + - 87 WHEN 93 THEN + COUNT( * ) WHEN - 47 + - CAST( NULL AS SIGNED ) THEN NULL WHEN + - 75 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8059
SELECT + COALESCE ( NULLIF ( + + 16, + 92 + + - 93 ), - 79 / - 80 + - 32 - + 45 * - 9 * - AVG ( + 80 ), + 97 * 53 + - 29 + + COUNT ( * ) ) + - CASE + - 87 WHEN 93 THEN + COUNT ( * ) WHEN - 47 + - CAST ( NULL AS INTEGER ) THEN NULL WHEN + - 75 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT MIN( - 24 ) * - 92 - + 29 col2
----
2179

skipif mysql # not compatible
query I rowsort label-8060
SELECT MIN ( - 24 ) * - 92 - + 29 col2
----
2179

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT DISTINCT + MAX( DISTINCT + 55 ) + + 70 AS col1
----
125

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT + MAX ( DISTINCT + 55 ) + + 70 AS col1
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8062
SELECT ALL - 43 + + + 71 DIV + 96 DIV - COUNT( * ), + 16 * + 0 AS col2
----
-43
0

skipif mysql # not compatible
query II rowsort label-8062
SELECT ALL - 43 + + + 71 / + 96 / - COUNT ( * ), + 16 * + 0 AS col2
----
-43
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT - 19 * + MAX( ALL 42 ) AS col0
----
-798

skipif mysql # not compatible
query I rowsort label-8063
SELECT - 19 * + MAX ( ALL 42 ) AS col0
----
-798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8064
SELECT DISTINCT - COALESCE ( - - 94, + ( - COALESCE ( + ( - + NULLIF ( - 99, + COUNT( * ) + + 79 - 85 ) ), - + MAX( DISTINCT + ( - 97 ) ) ) ) * + 23 * + - 73 DIV 74 ) + + - 91 AS col0
----
-185

skipif mysql # not compatible
query I rowsort label-8064
SELECT DISTINCT - COALESCE ( - - 94, + ( - COALESCE ( + ( - + NULLIF ( - 99, + COUNT ( * ) + + 79 - 85 ) ), - + MAX ( DISTINCT + ( - 97 ) ) ) ) * + 23 * + - 73 / 74 ) + + - 91 AS col0
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-8065
SELECT - 54 + - ( - - 85 ) DIV 10 * 41
----
-382

skipif mysql # not compatible
query I rowsort label-8065
SELECT - 54 + - ( - - 85 ) / 10 * 41
----
-382

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8066
SELECT - 71 DIV - - CAST( - 53 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8066
SELECT - 71 / - - CAST ( - 53 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT ALL - NULLIF ( + 76, + CASE 43 WHEN 77 + - - 73 THEN + 57 * 2 + + ( 7 ) ELSE + ( + + 74 ) / + COUNT( * ) END ) + - COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL - NULLIF ( + 76, + CASE 43 WHEN 77 + - - 73 THEN + 57 * 2 + + ( 7 ) ELSE + ( + + 74 ) / + COUNT ( * ) END ) + - COUNT ( * ) AS col1
----
-77

query I rowsort
SELECT ALL 59 + - - 67
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT - MIN( ALL + 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-8069
SELECT - MIN ( ALL + 29 )
----
-29

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

skipif mysql # not compatible
query II rowsort label-8070
SELECT DISTINCT ( - ( ( COUNT ( * ) ) ) ), - 19 AS col1
----
-1
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT - COUNT( * ) + - 21 - + + 13 * 42
----
-568

skipif mysql # not compatible
query I rowsort label-8071
SELECT - COUNT ( * ) + - 21 - + + 13 * 42
----
-568

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8073
SELECT ALL 99 - + 30 DIV 31 + 7
----
106

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL 99 - + 30 / 31 + 7
----
106

query I rowsort
SELECT - 5 - - CASE 3 WHEN + + 61 THEN + + 38 WHEN 41 * + 73 THEN + 5 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT - CASE + - MAX( DISTINCT 96 ) WHEN 9 + + - 0 THEN + 52 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8075
SELECT - CASE + - MAX ( DISTINCT 96 ) WHEN 9 + + - 0 THEN + 52 END AS col1
----
NULL

query I rowsort
SELECT ALL 93 * - 43 * + + 93 * 35
----
-13016745

onlyif mysql # aggregate syntax: 
query II rowsort label-8077
SELECT ALL + - MAX( + + 98 ), - 64 AS col2
----
-98
-64

skipif mysql # not compatible
query II rowsort label-8077
SELECT ALL + - MAX ( + + 98 ), - 64 AS col2
----
-98
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT + - COALESCE ( + 27, COUNT( * ) * + COUNT( - 16 ) * 10 - - + 66 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-8078
SELECT + - COALESCE ( + 27, COUNT ( * ) * + COUNT ( - 16 ) * 10 - - + 66 ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT + 58 + - CASE - 99 WHEN - COUNT( * ) THEN - - 69 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT + 58 + - CASE - 99 WHEN - COUNT ( * ) THEN - - 69 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8080
SELECT ALL + 32 * COUNT( * ) + + 0 * - 48 * + - 8 * + COUNT( + 56 ) * + + 37 + + - CAST( NULL AS SIGNED ) + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL + 32 * COUNT ( * ) + + 0 * - 48 * + - 8 * + COUNT ( + 56 ) * + + 37 + + - CAST ( NULL AS INTEGER ) + - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT + - 76 * 47 + - COALESCE ( + + 32, - 24 ) * COUNT( * )
----
-3604

skipif mysql # not compatible
query I rowsort label-8081
SELECT + - 76 * 47 + - COALESCE ( + + 32, - 24 ) * COUNT ( * )
----
-3604

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8083
SELECT 94 DIV + 89 + 11 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8083
SELECT 94 / + 89 + 11 AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8084
SELECT CAST( - 30 AS SIGNED ) * + 88 + + 69, - 86 AS col1
----
-2571
-86

skipif mysql # not compatible
query II rowsort label-8084
SELECT CAST ( - 30 AS INTEGER ) * + 88 + + 69, - 86 AS col1
----
-2571
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT - - 39 * + + COUNT( * ) * + 44 AS col0
----
1716

skipif mysql # not compatible
query I rowsort label-8085
SELECT - - 39 * + + COUNT ( * ) * + 44 AS col0
----
1716

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8086
SELECT + MAX( + 60 ) + - 12 + + + COUNT( * ) * - ( + + 72 ) / + + ( - CAST( NULL AS DECIMAL ) ) - + 0 + - 68 * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT + MAX ( + 60 ) + - 12 + + + COUNT ( * ) * - ( + + 72 ) / + + ( - CAST ( NULL AS REAL ) ) - + 0 + - 68 * - 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT ALL COUNT( * ) * 95 * 31
----
2945

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL COUNT ( * ) * 95 * 31
----
2945

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8088
SELECT + CAST( 63 AS SIGNED ) DIV ( + 85 ) + - 69 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-8088
SELECT + CAST ( 63 AS INTEGER ) / ( + 85 ) + - 69 AS col1
----
-69

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8090
SELECT - - 87 + - + 75 * - COALESCE ( - 57, - ( - NULLIF ( - - 69, 72 ) ), - CAST( NULL AS SIGNED ) ), 96 col0
----
-4188
96

skipif mysql # not compatible
query II rowsort label-8090
SELECT - - 87 + - + 75 * - COALESCE ( - 57, - ( - NULLIF ( - - 69, 72 ) ), - CAST ( NULL AS INTEGER ) ), 96 col0
----
-4188
96

query I rowsort
SELECT ALL + CASE - + 56 WHEN - 58 * ( + 70 ) THEN 46 + ( 20 ) * 97 + + NULLIF ( - 30, 76 ) END * - 75 col2
----
NULL

query I rowsort
SELECT + + 76 + - 66
----
10

query I rowsort
SELECT - + 70 * 45 AS col1
----
-3150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8094
SELECT DISTINCT - + 14 * + + CASE + CASE + + 47 WHEN + 27 THEN NULL WHEN + - 53 + + 25 THEN 88 + 27 + - COUNT( * ) END WHEN 0 + - 43 + + - MAX( - 19 ) THEN NULL WHEN + 73 + 81 - - 15 - NULLIF ( + SUM( 38 ), - 15 ) THEN - SUM( DISTINCT 14 ) WHEN - + 62 THEN - + COALESCE ( CAST( - 29 AS SIGNED ), - 54 + + ( 4 ) + + CASE 72 - 79 WHEN 29 THEN CASE - 76 WHEN - 43 * - 80 THEN NULL WHEN + 33 + + 84 * + 29 THEN 99 + + ( 27 + 14 ) END WHEN 82 THEN NULL ELSE NULL END * - 3, 91 + 19 ) ELSE NULL END + - 13 * 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT - + 14 * + + CASE + CASE + + 47 WHEN + 27 THEN NULL WHEN + - 53 + + 25 THEN 88 + 27 + - COUNT ( * ) END WHEN 0 + - 43 + + - MAX ( - 19 ) THEN NULL WHEN + 73 + 81 - - 15 - NULLIF ( + SUM ( 38 ), - 15 ) THEN - SUM ( DISTINCT 14 ) WHEN - + 62 THEN - + COALESCE ( CAST ( - 29 AS INTEGER ), - 54 + + ( 4 ) + + CASE 72 - 79 WHEN 29 THEN CASE - 76 WHEN - 43 * - 80 THEN NULL WHEN + 33 + + 84 * + 29 THEN 99 + + ( 27 + 14 ) END WHEN 82 THEN NULL ELSE NULL END * - 3, 91 + 19 ) ELSE NULL END + - 13 * 38 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT ALL - 43 * 74 + ( 50 ) + MIN( - - 11 ) * 34 AS col0
----
-2758

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL - 43 * 74 + ( 50 ) + MIN ( - - 11 ) * 34 AS col0
----
-2758

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8096
SELECT DISTINCT - 99 * + - 7 * 6 * - CAST( NULL AS SIGNED ) + + ( 93 ) / - 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT - 99 * + - 7 * 6 * - CAST ( NULL AS INTEGER ) + + ( 93 ) / - 83 AS col2
----
NULL

query I rowsort
SELECT - 71 + + ( + 20 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT ALL + 66 * - 95 + NULLIF ( 63, + 67 ) * + + COUNT( DISTINCT + - 54 )
----
-6207

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL + 66 * - 95 + NULLIF ( 63, + 67 ) * + + COUNT ( DISTINCT + - 54 )
----
-6207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8099
SELECT - 48 + 12 + - - CAST( CASE + 94 WHEN 82 + COUNT( * ) THEN 74 * + 51 * + + COUNT( * ) + + 96 WHEN + 46 * + 18 * 6 + - 85 THEN NULL END AS SIGNED ) * - 88, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8099
SELECT - 48 + 12 + - - CAST ( CASE + 94 WHEN 82 + COUNT ( * ) THEN 74 * + 51 * + + COUNT ( * ) + + 96 WHEN + 46 * + 18 * 6 + - 85 THEN NULL END AS INTEGER ) * - 88, COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT DISTINCT COALESCE ( - - 85, 65 + + 76 * + 9 ) AS col1
----
85

query I rowsort
SELECT - NULLIF ( + - 46, + 42 * - ( - AVG ( DISTINCT CASE 24 WHEN - 13 * - 59 / - 13 THEN - 2 ELSE 8 * 67 END ) ) ) + - COALESCE ( + 63, 86, - 94 + + + 11 )
----
-17

query I rowsort
SELECT - 0 * + + 37
----
0

query I rowsort
SELECT ALL - 12 - - 50 + + 31 AS col2
----
69

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

skipif mysql # not compatible
query I rowsort label-8104
SELECT - CAST ( 63 AS INTEGER ) + + + COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT - NULLIF ( + 20, - MIN( DISTINCT + 80 ) * 8 + - 38 ) + + - ( + - 72 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-8105
SELECT - NULLIF ( + 20, - MIN ( DISTINCT + 80 ) * 8 + - 38 ) + + - ( + - 72 ) AS col0
----
52

query I rowsort
SELECT - 64 * + 32 AS col2
----
-2048

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT 58 + - 11 * - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-8107
SELECT 58 + - 11 * - COUNT ( * )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8108
SELECT ALL - 49 * - CAST( NULL AS SIGNED ) * - COUNT( * ) / - AVG ( DISTINCT + - 36 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL - 49 * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) / - AVG ( DISTINCT + - 36 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT COUNT( * ) * 60 col0
----
60

skipif mysql # not compatible
query I rowsort label-8109
SELECT COUNT ( * ) * 60 col0
----
60

query I rowsort
SELECT + 56 * 52 AS col2
----
2912

query I rowsort
SELECT ALL - + NULLIF ( + + ( + + 49 ), + 58 - 93 ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT DISTINCT - MIN( DISTINCT - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT - MIN ( DISTINCT - 91 )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8113
SELECT 40 AS col0, + COUNT( + - 31 )
----
40
1

skipif mysql # not compatible
query II rowsort label-8113
SELECT 40 AS col0, + COUNT ( + - 31 )
----
40
1

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

query I rowsort
SELECT 71 * + 13
----
923

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT ALL - - 12 + - MAX( + 30 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL - - 12 + - MAX ( + 30 ) AS col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8117
SELECT ALL - 96 + - 76 + 89 * CAST( - + 47 AS DECIMAL ) + + + ( + - 71 ) * COUNT( * ) - + CAST( NULL AS DECIMAL ) * + + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL - 96 + - 76 + 89 * CAST ( - + 47 AS REAL ) + + + ( + - 71 ) * COUNT ( * ) - + CAST ( NULL AS REAL ) * + + 90 AS col2
----
NULL

query II rowsort
SELECT + + 35, + 94 AS col0
----
35
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8119
SELECT CAST( 29 AS SIGNED ) + + 21 + - + 53
----
-3

skipif mysql # not compatible
query I rowsort label-8119
SELECT CAST ( 29 AS INTEGER ) + + 21 + - + 53
----
-3

query I rowsort
SELECT + 95 * - 21 col1
----
-1995

onlyif mysql # aggregate syntax: 
query II rowsort label-8121
SELECT DISTINCT - MIN( 38 ) + - - 30 - COALESCE ( COALESCE ( - ( - - ( + 63 ) ), 35 ), + 46 ) AS col0, - 94 + + COALESCE ( + 65, + NULLIF ( + + COUNT( * ), - 88 ) * - 22 * - 35 * + 8 - + 95 + + 73 )
----
55
-29

skipif mysql # not compatible
query II rowsort label-8121
SELECT DISTINCT - MIN ( 38 ) + - - 30 - COALESCE ( COALESCE ( - ( - - ( + 63 ) ), 35 ), + 46 ) AS col0, - 94 + + COALESCE ( + 65, + NULLIF ( + + COUNT ( * ), - 88 ) * - 22 * - 35 * + 8 - + 95 + + 73 )
----
55
-29

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8123
SELECT - 22 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-8123
SELECT - 22 / - 86
----
0

query I rowsort
SELECT ALL 92 + + 33 + - 44 * ( - 62 )
----
2853

onlyif mysql # aggregate syntax: 
query II rowsort label-8125
SELECT COUNT( * ) * + MAX( 46 ) * + CASE 16 WHEN ( - + 64 ) / + 63 THEN COUNT( * ) END AS col2, 51
----
NULL
51

skipif mysql # not compatible
query II rowsort label-8125
SELECT COUNT ( * ) * + MAX ( 46 ) * + CASE 16 WHEN ( - + 64 ) / + 63 THEN COUNT ( * ) END AS col2, 51
----
NULL
51

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

skipif mysql # not compatible
query I rowsort label-8126
SELECT COUNT ( * ) / + 28 AS col0
----
0

query I rowsort
SELECT DISTINCT 25 * - - ( - 83 )
----
-2075

query II rowsort
SELECT 80 AS col1, + 68
----
80
68

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

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL + 80 - - - COUNT ( * ) AS col0
----
79

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

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

query II rowsort
SELECT - 80 AS col2, 88
----
-80
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT DISTINCT 65 * 53 * + CASE 11 WHEN 31 * NULLIF ( 20, + + 15 ) * - + 4 - COUNT( * ) THEN NULL WHEN + - COALESCE ( 41, + 33 ) THEN 36 * - + 1 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8132
SELECT DISTINCT 65 * 53 * + CASE 11 WHEN 31 * NULLIF ( 20, + + 15 ) * - + 4 - COUNT ( * ) THEN NULL WHEN + - COALESCE ( 41, + 33 ) THEN 36 * - + 1 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8133
SELECT 71 - 92 * - 18 + - 44 * + ( - 43 ), + 46 + COUNT( * ) + - 61 AS col2
----
3619
-14

skipif mysql # not compatible
query II rowsort label-8133
SELECT 71 - 92 * - 18 + - 44 * + ( - 43 ), + 46 + COUNT ( * ) + - 61 AS col2
----
3619
-14

query I rowsort
SELECT 42 * + - 6 AS col2
----
-252

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

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

query I rowsort
SELECT ALL 59 - - 45
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-8137
SELECT - 90 AS col0, + 44 + - COUNT( ALL - 81 )
----
-90
43

skipif mysql # not compatible
query II rowsort label-8137
SELECT - 90 AS col0, + 44 + - COUNT ( ALL - 81 )
----
-90
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8138
SELECT MIN( ALL - CAST( NULL AS SIGNED ) ) + - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8138
SELECT MIN ( ALL - CAST ( NULL AS INTEGER ) ) + - 74 AS col1
----
NULL

query II rowsort
SELECT ALL 47, 89 * - CASE + ( 28 ) WHEN - + 58 THEN NULL ELSE + - 80 END col2
----
47
7120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8140
SELECT ALL 50, + COALESCE ( 31, 6 * + 17 + 17 DIV - - AVG ( + CAST( NULL AS SIGNED ) ), + COUNT( * ) ) AS col2
----
50
31

skipif mysql # not compatible
query II rowsort label-8140
SELECT ALL 50, + COALESCE ( 31, 6 * + 17 + 17 / - - AVG ( + CAST ( NULL AS INTEGER ) ), + COUNT ( * ) ) AS col2
----
50
31

query II rowsort
SELECT 4, + 19 AS col0
----
4
19

query I rowsort
SELECT 87 * 82 AS col0
----
7134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8143
SELECT ALL CAST( + 84 AS SIGNED ), - 93 AS col1
----
84
-93

skipif mysql # not compatible
query II rowsort label-8143
SELECT ALL CAST ( + 84 AS INTEGER ), - 93 AS col1
----
84
-93

query I rowsort
SELECT - 77 * + 68 + + + 30
----
-5206

query I rowsort
SELECT 47 + + + 38
----
85

query I rowsort
SELECT DISTINCT + 50 * 4 AS col0
----
200

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

query I rowsort
SELECT DISTINCT 47 * 65 + ( - 41 ) + - 68
----
2946

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8150
SELECT DISTINCT - 67 DIV ( 83 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT - 67 / ( 83 ) AS col1
----
0

query I rowsort
SELECT + 88 * - 38 + 92 * - - 56
----
1808

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

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

query I rowsort
SELECT 65 * 47 AS col0
----
3055

query I rowsort
SELECT 70 * + 29 + - - 28 AS col2
----
2058

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT ALL - COUNT( - 92 ) + 34 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL - COUNT ( - 92 ) + 34 AS col0
----
33

query II rowsort
SELECT + 32 AS col2, 28 * - + 54
----
32
-1512

onlyif mysql # DIV for integer division: 
query I rowsort label-8157
SELECT + 5 DIV - - 34 + - + 73 + + 21 + 67 * - + 94 + + 32 * + 65
----
-4270

skipif mysql # not compatible
query I rowsort label-8157
SELECT + 5 / - - 34 + - + 73 + + 21 + 67 * - + 94 + + 32 * + 65
----
-4270

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8160
SELECT ALL - + 85 AS col1, 35 * + COUNT( * ) - - - 8 + + + ( + 56 ) * - 60 * + + 8 AS col0
----
-85
-26853

skipif mysql # not compatible
query II rowsort label-8160
SELECT ALL - + 85 AS col1, 35 * + COUNT ( * ) - - - 8 + + + ( + 56 ) * - 60 * + + 8 AS col0
----
-85
-26853

query I rowsort
SELECT ALL 89 + 97 + 78 AS col1
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT - + 44 * - COUNT( * ) + + + ( + + 4 ) + - - 1 * - 52 * - + 71 AS col2
----
3740

skipif mysql # not compatible
query I rowsort label-8162
SELECT - + 44 * - COUNT ( * ) + + + ( + + 4 ) + - - 1 * - 52 * - + 71 AS col2
----
3740

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT 29 * + MAX( DISTINCT 7 ) + - - 93 AS col0
----
296

skipif mysql # not compatible
query I rowsort label-8163
SELECT 29 * + MAX ( DISTINCT 7 ) + - - 93 AS col0
----
296

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

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

query I rowsort
SELECT ( + 60 ) + - + 13
----
47

query I rowsort
SELECT - 84 * + ( - - 83 ) * + - 96 + - + 43
----
669269

onlyif mysql # DIV for integer division: 
query I rowsort label-8167
SELECT DISTINCT 18 DIV - - 14 col1
----
1

skipif mysql # not compatible
query I rowsort label-8167
SELECT DISTINCT 18 / - - 14 col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8168
SELECT + 82 + + CAST( - - 13 AS SIGNED ) + + 47 DIV - + 83 - 29 + - - 30 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-8168
SELECT + 82 + + CAST ( - - 13 AS INTEGER ) + + 47 / - + 83 - 29 + - - 30 AS col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8169
SELECT + ( - 47 ) + + 88 + - + 38 * CAST( - - 23 AS SIGNED )
----
-833

skipif mysql # not compatible
query I rowsort label-8169
SELECT + ( - 47 ) + + 88 + - + 38 * CAST ( - - 23 AS INTEGER )
----
-833

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT ALL MIN( 21 ) * + 66
----
1386

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL MIN ( 21 ) * + 66
----
1386

onlyif mysql # DIV for integer division: 
query I rowsort label-8171
SELECT + 11 DIV - 2 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-8171
SELECT + 11 / - 2 AS col2
----
-5

query I rowsort
SELECT + 28 + 45 * 39 AS col0
----
1783

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT + - MAX( 15 ) + + - 11 - + 58 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-8173
SELECT + - MAX ( 15 ) + + - 11 - + 58 AS col2
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8174
SELECT - + ( - - COALESCE ( ( - CASE - 56 WHEN CASE - COUNT( * ) WHEN + 93 THEN NULL WHEN - 95 * + 18 + + CAST( + + 6 AS SIGNED ) * MAX( + 58 ) * 81 * + 81 + - ( + 17 ) THEN - + 17 END THEN - 15 WHEN + 22 * - 44 * + 47 THEN NULL WHEN + + COUNT( * ) THEN + 49 + - + 54 ELSE COUNT( * ) END ), MIN( DISTINCT 59 ), + + 48 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8174
SELECT - + ( - - COALESCE ( ( - CASE - 56 WHEN CASE - COUNT ( * ) WHEN + 93 THEN NULL WHEN - 95 * + 18 + + CAST ( + + 6 AS INTEGER ) * MAX ( + 58 ) * 81 * + 81 + - ( + 17 ) THEN - + 17 END THEN - 15 WHEN + 22 * - 44 * + 47 THEN NULL WHEN + + COUNT ( * ) THEN + 49 + - + 54 ELSE COUNT ( * ) END ), MIN ( DISTINCT 59 ), + + 48 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT ALL - 21 + + - 12 + + - 70 * - MIN( 43 ) + - 6
----
2971

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL - 21 + + - 12 + + - 70 * - MIN ( 43 ) + - 6
----
2971

query I rowsort
SELECT ALL 83 + - + 22
----
61

query I rowsort
SELECT ALL - ( - 85 ) + + 17 + + + 48
----
150

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT - CASE 75 WHEN + 34 THEN NULL WHEN - + 46 THEN + - 19 * + - 60 + COUNT( * ) + + + 72 ELSE NULL END * ( + 99 ) * - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8179
SELECT - CASE 75 WHEN + 34 THEN NULL WHEN - + 46 THEN + - 19 * + - 60 + COUNT ( * ) + + + 72 ELSE NULL END * ( + 99 ) * - 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT DISTINCT - 27 + - COUNT( * ) + + ( - 95 ) AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT - 27 + - COUNT ( * ) + + ( - 95 ) AS col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT ALL COALESCE ( COUNT( * ), 32 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL COALESCE ( COUNT ( * ), 32 ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8182
SELECT - + ( 90 ) DIV + + 75 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8182
SELECT - + ( 90 ) / + + 75 AS col0
----
-1

query I rowsort
SELECT + + 88 * + 78
----
6864

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT ALL + - MIN( - 20 ) * 61 AS col1
----
1220

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL + - MIN ( - 20 ) * 61 AS col1
----
1220

query I rowsort
SELECT DISTINCT + + 17 col0
----
17

query I rowsort
SELECT ALL + NULLIF ( + 86, - 75 ) AS col0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-8187
SELECT - 25 DIV 23 * + + 36 DIV - + 31 col1
----
1

skipif mysql # not compatible
query I rowsort label-8187
SELECT - 25 / 23 * + + 36 / - + 31 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT - 95 + + + SUM( ALL 0 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-8188
SELECT - 95 + + + SUM ( ALL 0 ) AS col1
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8189
SELECT - COUNT( * ) * - - 49 DIV ( - 23 ) * NULLIF ( - 67, - 63 )
----
-134

skipif mysql # not compatible
query I rowsort label-8189
SELECT - COUNT ( * ) * - - 49 / ( - 23 ) * NULLIF ( - 67, - 63 )
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT NULLIF ( 0, + - CASE - + 85 WHEN + 48 + - 6 / + + 26 * - - COUNT( * ) * + 84 THEN - 12 WHEN + - SUM( ALL - - 38 ) THEN + + 26 + + ( + 29 ) ELSE NULLIF ( + 93, - + 16 * + 75 - - 62 + 4 - - 54 / - 86 + ( + 69 ) + - 71 * + 38 ) END )
----
0

skipif mysql # not compatible
query I rowsort label-8190
SELECT NULLIF ( 0, + - CASE - + 85 WHEN + 48 + - 6 / + + 26 * - - COUNT ( * ) * + 84 THEN - 12 WHEN + - SUM ( ALL - - 38 ) THEN + + 26 + + ( + 29 ) ELSE NULLIF ( + 93, - + 16 * + 75 - - 62 + 4 - - 54 / - 86 + ( + 69 ) + - 71 * + 38 ) END )
----
0

query II rowsort
SELECT ALL + 13, 0 AS col1
----
13
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT - SUM( DISTINCT + + 57 ) * + - 34 AS col0
----
1938

skipif mysql # not compatible
query I rowsort label-8192
SELECT - SUM ( DISTINCT + + 57 ) * + - 34 AS col0
----
1938

query I rowsort
SELECT ALL + 90 * + 99 AS col0
----
8910

query II rowsort
SELECT ALL + 97, 5 AS col2
----
97
5

query III rowsort
SELECT + 35 col0, - 52 + - 7 * - + 26 AS col1, + 75 * + 3 * - 99 + - 48 * 37 * - 10 AS col0
----
35
130
-4515

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT - ( + COUNT( - 87 ) ) * SUM( 40 ) + + 63
----
23

skipif mysql # not compatible
query I rowsort label-8197
SELECT - ( + COUNT ( - 87 ) ) * SUM ( 40 ) + + 63
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8198
SELECT ALL + 90 * 59 * COUNT( * ) AS col1, + 1 DIV - 35 AS col2
----
5310
0

skipif mysql # not compatible
query II rowsort label-8198
SELECT ALL + 90 * 59 * COUNT ( * ) AS col1, + 1 / - 35 AS col2
----
5310
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT MIN( ALL + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-8199
SELECT MIN ( ALL + 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT MIN( ALL + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-8200
SELECT MIN ( ALL + 28 )
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8201
SELECT - 99 DIV NULLIF ( + 89, - MAX( DISTINCT + - 38 ) * - + 65 + ( - SUM( DISTINCT 63 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8201
SELECT - 99 / NULLIF ( + 89, - MAX ( DISTINCT + - 38 ) * - + 65 + ( - SUM ( DISTINCT 63 ) ) )
----
-1

query I rowsort
SELECT ALL - 24 + + 36
----
12

query II rowsort
SELECT + 37 AS col2, 57
----
37
57

query I rowsort
SELECT ALL ( + - 82 ) + - 55 + 32 + 66 * + 91
----
5901

query I rowsort
SELECT + 98 * 99 * 90 + 64 * - 49
----
870044

query II rowsort
SELECT DISTINCT - 5 AS col1, 41 AS col1
----
-5
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT ALL MIN( ALL 68 ) + - 35 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL MIN ( ALL 68 ) + - 35 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT ALL ( - COUNT( * ) ) * 56 * - 23 AS col1
----
1288

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL ( - COUNT ( * ) ) * 56 * - 23 AS col1
----
1288

query I rowsort
SELECT DISTINCT 99 + - - ( + - 25 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT + + NULLIF ( + 3, - SUM( DISTINCT - - 43 ) ) * + 63
----
189

skipif mysql # not compatible
query I rowsort label-8210
SELECT + + NULLIF ( + 3, - SUM ( DISTINCT - - 43 ) ) * + 63
----
189

query I rowsort
SELECT ALL + 98 + 79
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT + - 34 + + - 61 - + CASE + 99 WHEN - + COUNT( ALL 29 ) * 62 * + ( 77 ) THEN NULL ELSE - - 83 * - + 11 + - 70 END AS col2
----
888

skipif mysql # not compatible
query I rowsort label-8212
SELECT + - 34 + + - 61 - + CASE + 99 WHEN - + COUNT ( ALL 29 ) * 62 * + ( 77 ) THEN NULL ELSE - - 83 * - + 11 + - 70 END AS col2
----
888

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT DISTINCT + 65 * - COUNT( ALL - 92 ) + - 62 * + 77
----
-4839

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT + 65 * - COUNT ( ALL - 92 ) + - 62 * + 77
----
-4839

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

query I rowsort
SELECT ALL + 48 * 97
----
4656

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

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

query I rowsort
SELECT DISTINCT + ( + 11 ) - - + 75
----
86

query I rowsort
SELECT DISTINCT + 4 * - - 24
----
96

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8220
SELECT DISTINCT + COUNT( * ) DIV + 28 - + COALESCE ( COUNT( * ), + 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-8220
SELECT DISTINCT + COUNT ( * ) / + 28 - + COALESCE ( COUNT ( * ), + 74 )
----
-1

query I rowsort
SELECT - 1 + COALESCE ( - - 21, + 0, + 13 - - - 49 ) - + + 29 col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8222
SELECT ALL 7 DIV + CAST( + - MAX( ALL - 58 ) AS SIGNED ) AS col0, + 57
----
0
57

skipif mysql # not compatible
query II rowsort label-8222
SELECT ALL 7 / + CAST ( + - MAX ( ALL - 58 ) AS INTEGER ) AS col0, + 57
----
0
57

query I rowsort
SELECT + 13 * + 38 AS col0
----
494

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT + CASE - 80 WHEN - - COUNT( * ) THEN + + 3 + + + 95 END * 52 + - 40 + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT + CASE - 80 WHEN - - COUNT ( * ) THEN + + 3 + + + 95 END * 52 + - 40 + 19
----
NULL

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

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

query I rowsort
SELECT ALL - 67 * - + 5 * - 41
----
-13735

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT + 13 * 58 * + - COUNT( * ) + MIN( ALL - 8 ) AS col2
----
-762

skipif mysql # not compatible
query I rowsort label-8228
SELECT + 13 * 58 * + - COUNT ( * ) + MIN ( ALL - 8 ) AS col2
----
-762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8229
SELECT ALL 65 + 2 + - + CAST( 21 AS SIGNED ) * + 32
----
-605

skipif mysql # not compatible
query I rowsort label-8229
SELECT ALL 65 + 2 + - + CAST ( 21 AS INTEGER ) * + 32
----
-605

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8230
SELECT 77 / 56 / + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8230
SELECT 77 / 56 / + - CAST ( NULL AS REAL ) AS col1
----
NULL

query II rowsort
SELECT ALL - 22 + - + 71 AS col1, 48 * 5 * - - 61 AS col1
----
-93
14640

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8232
SELECT CAST( - 31 AS SIGNED ) + - - 93 + + 97, - 25 AS col2
----
159
-25

skipif mysql # not compatible
query II rowsort label-8232
SELECT CAST ( - 31 AS INTEGER ) + - - 93 + + 97, - 25 AS col2
----
159
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT 96 + - + MAX( - 32 ) + + + 77 - - + 10 + - + COUNT( DISTINCT - 53 ) * - 98 AS col1
----
313

skipif mysql # not compatible
query I rowsort label-8234
SELECT 96 + - + MAX ( - 32 ) + + + 77 - - + 10 + - + COUNT ( DISTINCT - 53 ) * - 98 AS col1
----
313

query I rowsort
SELECT DISTINCT + 77 + - 32 - + 60 col2
----
-15

query I rowsort
SELECT - 75 * - 2 * + 53 * + 31 + + 8 + + 17 * - + 50 AS col2
----
245608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8237
SELECT CAST( NULL AS SIGNED ) * + 44 + SUM( DISTINCT 57 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT CAST ( NULL AS INTEGER ) * + 44 + SUM ( DISTINCT 57 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8238
SELECT DISTINCT 99 + - 49 * - 73 * COALESCE ( + 7, + - CAST( NULL AS SIGNED ) + - 63, + 74 + + 54 )
----
25138

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT 99 + - 49 * - 73 * COALESCE ( + 7, + - CAST ( NULL AS INTEGER ) + - 63, + 74 + + 54 )
----
25138

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT - CASE 96 WHEN - - 58 * + ( + - COUNT( * ) ) * + 45 + - 54 THEN + - 59 / - + 21 + + CASE 9 WHEN 48 THEN - + 10 + - NULLIF ( + 44, + 58 ) WHEN - COUNT( * ) + + - 45 THEN NULL END WHEN - 13 * 21 THEN NULL END + - 37 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8239
SELECT - CASE 96 WHEN - - 58 * + ( + - COUNT ( * ) ) * + 45 + - 54 THEN + - 59 / - + 21 + + CASE 9 WHEN 48 THEN - + 10 + - NULLIF ( + 44, + 58 ) WHEN - COUNT ( * ) + + - 45 THEN NULL END WHEN - 13 * 21 THEN NULL END + - 37 col1
----
NULL

query I rowsort
SELECT ALL - - 69 * - 23 AS col1
----
-1587

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT DISTINCT COUNT( * ) * - ( 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT COUNT ( * ) * - ( 93 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT ALL + COUNT( * ) + + 34 - + + ( - NULLIF ( - - 8, - 17 ) ) * - + 76 col2
----
-573

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL + COUNT ( * ) + + 34 - + + ( - NULLIF ( - - 8, - 17 ) ) * - + 76 col2
----
-573

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

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

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

query I rowsort
SELECT + 32 + 22
----
54

query I rowsort
SELECT ALL + NULLIF ( + 56, + 57 * - 20 )
----
56

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

query I rowsort
SELECT - 45 + 30 * NULLIF ( + 96, 40 ) * 77 AS col2
----
221715

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT NULLIF ( + 57, ( - 5 ) / + - 53 * - COUNT( * ) + - 74 )
----
57

skipif mysql # not compatible
query I rowsort label-8249
SELECT NULLIF ( + 57, ( - 5 ) / + - 53 * - COUNT ( * ) + - 74 )
----
57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8250
SELECT CAST( - + 90 AS SIGNED ) DIV + 7 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-8250
SELECT CAST ( - + 90 AS INTEGER ) / + 7 AS col0
----
-12

query I rowsort
SELECT DISTINCT 74 * + 3
----
222

query I rowsort
SELECT ( - 90 ) * 76 AS col1
----
-6840

onlyif mysql # aggregate syntax: 
query II rowsort label-8253
SELECT DISTINCT 66 * - CASE COUNT( * ) WHEN + 78 THEN NULL ELSE 94 END, 25 AS col1
----
-6204
25

skipif mysql # not compatible
query II rowsort label-8253
SELECT DISTINCT 66 * - CASE COUNT ( * ) WHEN + 78 THEN NULL ELSE 94 END, 25 AS col1
----
-6204
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8254
SELECT 78 * - CAST( - - 37 AS SIGNED ) * - 26 + - 36 + + 47
----
75047

skipif mysql # not compatible
query I rowsort label-8254
SELECT 78 * - CAST ( - - 37 AS INTEGER ) * - 26 + - 36 + + 47
----
75047

query II rowsort
SELECT ALL - 17 AS col2, - 17 * CASE - + 53 WHEN 0 THEN + + 58 END
----
-17
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8256
SELECT + ( - COUNT( ALL + 54 ) ) / + ( 23 ) - - 61 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8256
SELECT + ( - COUNT ( ALL + 54 ) ) / + ( 23 ) - - 61 * + CAST ( NULL AS REAL ) AS col1
----
NULL

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

query I rowsort
SELECT DISTINCT - 8 * 93
----
-744

query II rowsort
SELECT ALL - 32 AS col2, + 94 * - 85
----
-32
-7990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8260
SELECT 68 * - CAST( - 16 AS SIGNED )
----
1088

skipif mysql # not compatible
query I rowsort label-8260
SELECT 68 * - CAST ( - 16 AS INTEGER )
----
1088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8261
SELECT DISTINCT 65 + SUM( 4 ) - COUNT( * ) DIV - 7 + + ( + 90 )
----
159

skipif mysql # not compatible
query I rowsort label-8261
SELECT DISTINCT 65 + SUM ( 4 ) - COUNT ( * ) / - 7 + + ( + 90 )
----
159

query I rowsort
SELECT ALL 24 + + 63 AS col1
----
87

query I rowsort
SELECT DISTINCT + 90 + - - 29 col2
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8264
SELECT 36 DIV + ( - + COUNT( ALL - 18 ) ) + - - 43 * - 61 col2, 0 AS col1
----
-2659
0

skipif mysql # not compatible
query II rowsort label-8264
SELECT 36 / + ( - + COUNT ( ALL - 18 ) ) + - - 43 * - 61 col2, 0 AS col1
----
-2659
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT + COUNT( ALL - 79 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8265
SELECT + COUNT ( ALL - 79 ) col1
----
1

onlyif mysql # DIV for integer division: 
query III rowsort label-8266
SELECT ALL COALESCE ( - 69, 23 ) + - 49 * + 77, + 71 - - + COALESCE ( - ( + ( 40 ) ), 34 ) AS col1, 40 DIV 94 * 36 AS col1
----
-3842
31
0

skipif mysql # not compatible
query III rowsort label-8266
SELECT ALL COALESCE ( - 69, 23 ) + - 49 * + 77, + 71 - - + COALESCE ( - ( + ( 40 ) ), 34 ) AS col1, 40 / 94 * 36 AS col1
----
-3842
31
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT + COUNT( ALL + 98 )
----
1

skipif mysql # not compatible
query I rowsort label-8267
SELECT + COUNT ( ALL + 98 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8268
SELECT CASE 1 WHEN - - 13 THEN + NULLIF ( 22, - 56 ) + + CAST( NULL AS SIGNED ) * + + 73 * - 44 END + - - COUNT( * ) + + 77 * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-8268
SELECT CASE 1 WHEN - - 13 THEN + NULLIF ( 22, - 56 ) + + CAST ( NULL AS INTEGER ) * + + 73 * - 44 END + - - COUNT ( * ) + + 77 * 23
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8269
SELECT ALL - MIN( CAST( NULL AS SIGNED ) )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8270
SELECT ALL 52 + + NULLIF ( - CASE - 71 WHEN + 8 THEN - + CAST( NULL AS SIGNED ) ELSE 46 END, - COUNT( * ) ) col0
----
6

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL 52 + + NULLIF ( - CASE - 71 WHEN + 8 THEN - + CAST ( NULL AS INTEGER ) ELSE 46 END, - COUNT ( * ) ) col0
----
6

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

skipif mysql # not compatible
query I rowsort label-8271
SELECT - COUNT ( * ) * COUNT ( * ) / + + 93 AS col2
----
0

query II rowsort
SELECT ALL - 26 AS col0, 68 AS col1
----
-26
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT + SUM( - + 84 ) - - 11 * 71 * - - 14 * - 21 * ( + 15 )
----
-3444294

skipif mysql # not compatible
query I rowsort label-8273
SELECT + SUM ( - + 84 ) - - 11 * 71 * - - 14 * - 21 * ( + 15 )
----
-3444294

onlyif mysql # aggregate syntax: 
query II rowsort label-8274
SELECT 16 - MAX( DISTINCT + 94 ) AS col2, + 2 + 48 - + 84 + - + 31 + + - 31 * - + 27 col2
----
-78
772

skipif mysql # not compatible
query II rowsort label-8274
SELECT 16 - MAX ( DISTINCT + 94 ) AS col2, + 2 + 48 - + 84 + - + 31 + + - 31 * - + 27 col2
----
-78
772

query I rowsort
SELECT - 87 * 20 * 14 - + 32 AS col0
----
-24392

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8276
SELECT - + COUNT( - + CAST( + - 96 AS DECIMAL ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8276
SELECT - + COUNT ( - + CAST ( + - 96 AS REAL ) ) AS col0
----
-1

query II rowsort
SELECT ALL 96 AS col1, + 59
----
96
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT DISTINCT - CASE + COALESCE ( + - 48, + 85, + ( COUNT( * ) ) ) WHEN + 92 THEN NULL WHEN - COUNT( * ) THEN - 2 END * 65 + + MAX( - + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8278
SELECT DISTINCT - CASE + COALESCE ( + - 48, + 85, + ( COUNT ( * ) ) ) WHEN + 92 THEN NULL WHEN - COUNT ( * ) THEN - 2 END * 65 + + MAX ( - + 78 )
----
NULL

query I rowsort
SELECT 85 - 80 AS col1
----
5

query I rowsort
SELECT ALL - 54 * 98 AS col2
----
-5292

query II rowsort
SELECT ALL - 44, 15 AS col1
----
-44
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8282
SELECT 34 + + CAST( NULL AS SIGNED ) + + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-8282
SELECT 34 + + CAST ( NULL AS INTEGER ) + + - 85
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8283
SELECT + CAST( - + 47 AS SIGNED ) * - - 45 + + 6
----
-2109

skipif mysql # not compatible
query I rowsort label-8283
SELECT + CAST ( - + 47 AS INTEGER ) * - - 45 + + 6
----
-2109

onlyif mysql # aggregate syntax: 
query II rowsort label-8284
SELECT 59, - MIN( DISTINCT - 2 ) AS col2
----
59
2

skipif mysql # not compatible
query II rowsort label-8284
SELECT 59, - MIN ( DISTINCT - 2 ) AS col2
----
59
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT ALL NULLIF ( - + COUNT( * ), - 93 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL NULLIF ( - + COUNT ( * ), - 93 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT - COUNT( * ) * - 19 * + 70
----
1330

skipif mysql # not compatible
query I rowsort label-8286
SELECT - COUNT ( * ) * - 19 * + 70
----
1330

query I rowsort
SELECT + ( + - 66 ) * - + 56
----
3696

query I rowsort
SELECT COALESCE ( - - 47, CASE - AVG ( ALL 59 ) WHEN + 94 * + 2 - - 66 + - + 60 THEN NULL ELSE 29 * + + 35 END, - 65 + 52 + - 14 ) AS col0
----
47

query I rowsort
SELECT - 82 * ( 45 ) AS col0
----
-3690

query I rowsort
SELECT DISTINCT 73 * + 56 * - 87 + + - 63 AS col0
----
-355719

onlyif mysql # aggregate syntax: 
query II rowsort label-8291
SELECT + 86 col1, + 58 - ( NULLIF ( - 65, + 52 * + COUNT( * ) * - 0 ) ) + + 22 AS col0
----
86
145

skipif mysql # not compatible
query II rowsort label-8291
SELECT + 86 col1, + 58 - ( NULLIF ( - 65, + 52 * + COUNT ( * ) * - 0 ) ) + + 22 AS col0
----
86
145

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT DISTINCT COALESCE ( 81, + + 66 * + - 52 * 34 * - COUNT( * ) + + 70 * + 37 ) * - COALESCE ( + 18, - 49 - 67 ) + - 15
----
-1473

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT COALESCE ( 81, + + 66 * + - 52 * 34 * - COUNT ( * ) + + 70 * + 37 ) * - COALESCE ( + 18, - 49 - 67 ) + - 15
----
-1473

onlyif mysql # aggregate syntax: 
query II rowsort label-8293
SELECT ALL + MIN( DISTINCT + 94 ) AS col0, + MIN( ALL - 93 ) * - 94
----
94
8742

skipif mysql # not compatible
query II rowsort label-8293
SELECT ALL + MIN ( DISTINCT + 94 ) AS col0, + MIN ( ALL - 93 ) * - 94
----
94
8742

query I rowsort
SELECT DISTINCT + 28 * - 42 - 96 AS col0
----
-1272

query II rowsort
SELECT 16, + 21 + + 27 * + 7 AS col1
----
16
210

onlyif mysql # DIV for integer division: 
query I rowsort label-8296
SELECT + 31 + + 1 DIV + - 80
----
31

skipif mysql # not compatible
query I rowsort label-8296
SELECT + 31 + + 1 / + - 80
----
31

query I rowsort
SELECT + 5 * 98 * 94 * - - 55
----
2533300

query I rowsort
SELECT + 44 * + ( - 58 )
----
-2552

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT COUNT( ALL + + 31 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8299
SELECT COUNT ( ALL + + 31 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8300
SELECT ALL - CAST( NULL AS SIGNED ) / COUNT( * ) / - CASE - CASE 62 WHEN - 31 THEN + COUNT( * ) + 11 WHEN - 76 THEN NULL END WHEN + 84 THEN + COUNT( * ) - + 58 * MIN( ALL - 33 ) ELSE NULL END * 76 + 29, 87 AS col2
----
NULL
87

skipif mysql # not compatible
query II rowsort label-8300
SELECT ALL - CAST ( NULL AS INTEGER ) / COUNT ( * ) / - CASE - CASE 62 WHEN - 31 THEN + COUNT ( * ) + 11 WHEN - 76 THEN NULL END WHEN + 84 THEN + COUNT ( * ) - + 58 * MIN ( ALL - 33 ) ELSE NULL END * 76 + 29, 87 AS col2
----
NULL
87

query I rowsort
SELECT + 89 * + 34 + - 59 + + + 52
----
3019

onlyif mysql # DIV for integer division: 
query I rowsort label-8302
SELECT + + 72 DIV - 18 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-8302
SELECT + + 72 / - 18 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT ALL - 61 * + 69 * - MAX( ALL + + ( - - 37 ) )
----
155733

skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL - 61 * + 69 * - MAX ( ALL + + ( - - 37 ) )
----
155733

query I rowsort
SELECT + - 55 + - - 86
----
31

query I rowsort
SELECT ALL 50 * + 2 * + - ( 73 )
----
-7300

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8306
SELECT ALL 85 AS col2, ( + 69 ) + + 40 + NULLIF ( + + CAST( NULL AS DECIMAL ), - 16 ) / + - 47 AS col2
----
85
NULL

skipif mysql # not compatible
query II rowsort label-8306
SELECT ALL 85 AS col2, ( + 69 ) + + 40 + NULLIF ( + + CAST ( NULL AS REAL ), - 16 ) / + - 47 AS col2
----
85
NULL

query I rowsort
SELECT - 16 + + - 9 AS col2
----
-25

query I rowsort
SELECT - - 39 + - - 59 AS col1
----
98

query I rowsort
SELECT ALL + + 18 + - ( - 62 )
----
80

query II rowsort
SELECT ALL + 44 * - + 68 AS col2, 27 * - 56
----
-2992
-1512

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8311
SELECT - NULLIF ( - 13, - 92 ) * + + ( - 32 ) AS col2, 76 DIV + - 7 + + SUM( - - 3 )
----
-416
-7

skipif mysql # not compatible
query II rowsort label-8311
SELECT - NULLIF ( - 13, - 92 ) * + + ( - 32 ) AS col2, 76 / + - 7 + + SUM ( - - 3 )
----
-416
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-8312
SELECT ALL + 35 + + 46 col2, 44 * COUNT( * ) + 16 + - - ( - 13 )
----
81
47

skipif mysql # not compatible
query II rowsort label-8312
SELECT ALL + 35 + + 46 col2, 44 * COUNT ( * ) + 16 + - - ( - 13 )
----
81
47

query I rowsort
SELECT ALL + 63 * + 91 AS col0
----
5733

query I rowsort
SELECT ALL + 45 * + 72 AS col1
----
3240

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8317
SELECT DISTINCT ( - 80 ) DIV - 20 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8317
SELECT DISTINCT ( - 80 ) / - 20 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT - 23 * COUNT( * ) * + 66
----
-1518

skipif mysql # not compatible
query I rowsort label-8318
SELECT - 23 * COUNT ( * ) * + 66
----
-1518

onlyif mysql # DIV for integer division: 
query I rowsort label-8319
SELECT ALL + 1 DIV - + 88
----
0

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL + 1 / - + 88
----
0

query I rowsort
SELECT - 69 + + ( - + 63 )
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8321
SELECT CAST( - + ( + ( 65 ) ) AS SIGNED ) / - CAST( - 85 AS DECIMAL ) * - ( + 51 ) / + 11 - - - COUNT( * ) + - - 2 + - 52 + - + AVG ( - - CAST( NULL AS SIGNED ) ) * - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8321
SELECT CAST ( - + ( + ( 65 ) ) AS INTEGER ) / - CAST ( - 85 AS REAL ) * - ( + 51 ) / + 11 - - - COUNT ( * ) + - - 2 + - 52 + - + AVG ( - - CAST ( NULL AS INTEGER ) ) * - 3 AS col2
----
NULL

query I rowsort
SELECT - - 50 * - 76 + 15 + + - 9 + - 10
----
-3804

query I rowsort
SELECT ALL + ( - 28 ) * 38 * - 50 + - 53 * - + 79 AS col1
----
57387

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

skipif mysql # not compatible
query I rowsort label-8324
SELECT - + 76 * + - 1 + COUNT ( * ) AS col2
----
77

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

skipif mysql # not compatible
query I rowsort label-8325
SELECT + + 26 + - CAST ( - COUNT ( * ) AS INTEGER )
----
27

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8327
SELECT - + 24 + CAST( NULL AS DECIMAL ) * - 99 * NULLIF ( + CAST( NULL AS SIGNED ), + 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8327
SELECT - + 24 + CAST ( NULL AS REAL ) * - 99 * NULLIF ( + CAST ( NULL AS INTEGER ), + 89 )
----
NULL

query II rowsort
SELECT - - 49 * + 96 col1, + 67 col2
----
4704
67

query I rowsort
SELECT + + 43 * - 50 * - - COALESCE ( + 96, + + 8 * + 78 * + 62 + + 38 ) AS col2
----
-206400

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT DISTINCT + COUNT( * ) + - MAX( 39 )
----
-38

skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT + COUNT ( * ) + - MAX ( 39 )
----
-38

query I rowsort
SELECT ALL 25 + + 67 - + + ( - 95 ) AS col1
----
187

query I rowsort
SELECT DISTINCT - 55 + - 97 + - 97 * + 94 - + 63 + - 52 AS col2
----
-9385

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT DISTINCT MIN( - ( + CASE - 46 WHEN + 89 - - + 48 THEN + - ( - 50 ) * - 62 WHEN 16 THEN NULL ELSE NULL END ) ) * - 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT MIN ( - ( + CASE - 46 WHEN + 89 - - + 48 THEN + - ( - 50 ) * - 62 WHEN 16 THEN NULL ELSE NULL END ) ) * - 74 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8334
SELECT 71 DIV 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8334
SELECT 71 / 82 AS col2
----
0

query I rowsort
SELECT 78 * 11
----
858

query I rowsort
SELECT ALL 1 + + - 91 * + 40 AS col1
----
-3639

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8337
SELECT 61 + + MAX( ALL + 5 ) + + SUM( CAST( NULL AS SIGNED ) ) * - + COUNT( ALL CASE + + 1 WHEN - 35 + 41 THEN - 28 * 19 + + 7 ELSE - + 37 / - + CAST( NULL AS SIGNED ) * 93 - - 60 * + 49 * + 29 END ) * 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8337
SELECT 61 + + MAX ( ALL + 5 ) + + SUM ( CAST ( NULL AS INTEGER ) ) * - + COUNT ( ALL CASE + + 1 WHEN - 35 + 41 THEN - 28 * 19 + + 7 ELSE - + 37 / - + CAST ( NULL AS INTEGER ) * 93 - - 60 * + 49 * + 29 END ) * 8 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT 97 - - - 73 * - COUNT( * ) * + - 45 + 82 AS col2
----
-3106

skipif mysql # not compatible
query I rowsort label-8338
SELECT 97 - - - 73 * - COUNT ( * ) * + - 45 + 82 AS col2
----
-3106

query I rowsort
SELECT ALL 95 + 52 col0
----
147

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

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

query II rowsort
SELECT - 71, - 30 AS col1
----
-71
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-8342
SELECT DISTINCT - 86 DIV + + 82
----
-1

skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT - 86 / + + 82
----
-1

query I rowsort
SELECT ALL 35 - - ( + 59 ) col2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8344
SELECT ALL + NULLIF ( - COUNT( * ), + - 86 * 82 + + ( - 91 ) ) * - 24 DIV - + 80 * + 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL + NULLIF ( - COUNT ( * ), + - 86 * 82 + + ( - 91 ) ) * - 24 / - + 80 * + 28 AS col1
----
0

query I rowsort
SELECT DISTINCT + 96 * - 19
----
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL - COUNT( - 10 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL - COUNT ( - 10 ) AS col0
----
-1

query I rowsort
SELECT ALL - - CASE - AVG ( 61 ) WHEN + + 35 THEN NULL WHEN 80 * + 17 THEN - + NULLIF ( 45, + + 49 ) ELSE - + 39 * - - 50 + 37 END AS col1
----
-1913

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

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

query II rowsort
SELECT DISTINCT - 42, - 22 col2
----
-42
-22

query I rowsort
SELECT 60 * + - 53 * 38
----
-120840

query I rowsort
SELECT + 15 + + 23
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8352
SELECT + CASE + 86 WHEN 80 THEN + CAST( + - 17 AS SIGNED ) * + + COUNT( * ) - + 91 + + - 81 * + - 14 * + 96 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8352
SELECT + CASE + 86 WHEN 80 THEN + CAST ( + - 17 AS INTEGER ) * + + COUNT ( * ) - + 91 + + - 81 * + - 14 * + 96 ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8353
SELECT - 99 + - CAST( NULL AS SIGNED ) + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-8353
SELECT - 99 + - CAST ( NULL AS INTEGER ) + - 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT DISTINCT + CASE COALESCE ( + + 60, + 4 + - 4 + + 75 * - COUNT( * ) ) WHEN - - 41 * + 84 * + - 95 + - - 21 THEN NULL ELSE - 37 END * + 95 + - ( - COUNT( * ) ) + 84 + - + 3
----
-3433

skipif mysql # not compatible
query I rowsort label-8354
SELECT DISTINCT + CASE COALESCE ( + + 60, + 4 + - 4 + + 75 * - COUNT ( * ) ) WHEN - - 41 * + 84 * + - 95 + - - 21 THEN NULL ELSE - 37 END * + 95 + - ( - COUNT ( * ) ) + 84 + - + 3
----
-3433

query I rowsort
SELECT ALL - 6 + - + 23 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT SUM( 37 ) + + - 73
----
-36

skipif mysql # not compatible
query I rowsort label-8356
SELECT SUM ( 37 ) + + - 73
----
-36

query I rowsort
SELECT ALL - 26 + + + 18
----
-8

query I rowsort
SELECT DISTINCT + 15 * 12
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8359
SELECT 52 * COALESCE ( COUNT( DISTINCT + + 30 ), + 46 * - 57 + - + 98 + - + COUNT( * ) * - 78 DIV 10 * + 46 )
----
52

skipif mysql # not compatible
query I rowsort label-8359
SELECT 52 * COALESCE ( COUNT ( DISTINCT + + 30 ), + 46 * - 57 + - + 98 + - + COUNT ( * ) * - 78 / 10 * + 46 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT ALL 95 - + MIN( DISTINCT + 22 ) - - 39 * - - 84
----
3349

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL 95 - + MIN ( DISTINCT + 22 ) - - 39 * - - 84
----
3349

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8361
SELECT 77 * + CASE + + CAST( NULL AS SIGNED ) WHEN + 39 THEN NULL WHEN + 53 THEN + + MAX( ALL - 28 ) WHEN + 13 + + + 20 + - COUNT( + 81 ) THEN NULL WHEN + 90 + + + AVG ( 57 ) THEN NULL ELSE NULL END * - + 29 * - 82 + + SUM( ALL + - 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8361
SELECT 77 * + CASE + + CAST ( NULL AS INTEGER ) WHEN + 39 THEN NULL WHEN + 53 THEN + + MAX ( ALL - 28 ) WHEN + 13 + + + 20 + - COUNT ( + 81 ) THEN NULL WHEN + 90 + + + AVG ( 57 ) THEN NULL ELSE NULL END * - + 29 * - 82 + + SUM ( ALL + - 14 )
----
NULL

query I rowsort
SELECT DISTINCT 89 * - 29
----
-2581

query I rowsort
SELECT ALL + 73 - + + 24 AS col2
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-8364
SELECT DISTINCT 53 * COUNT( * ) AS col2, - 85 - + 92
----
53
-177

skipif mysql # not compatible
query II rowsort label-8364
SELECT DISTINCT 53 * COUNT ( * ) AS col2, - 85 - + 92
----
53
-177

onlyif mysql # aggregate syntax: 
query II rowsort label-8365
SELECT COUNT( * ) * - 50, - COUNT( * ) * - - 41 col0
----
-50
-41

skipif mysql # not compatible
query II rowsort label-8365
SELECT COUNT ( * ) * - 50, - COUNT ( * ) * - - 41 col0
----
-50
-41

query I rowsort
SELECT ALL 88 * + 77
----
6776

query I rowsort
SELECT 86 - 46 * + 47 * + + ( 30 )
----
-64774

query I rowsort
SELECT 92 * - NULLIF ( 69, + + 78 ) * - 51 AS col0
----
323748

query I rowsort
SELECT 41 * + 60 * - 7 AS col1
----
-17220

query I rowsort
SELECT ( + + 66 ) * + 45
----
2970

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ALL - COALESCE ( + - 68, + 36 - - 39 + - 34 - + 93 + 28 * + COUNT( * ) * + 53 * - 20 ) * + + 7 * 19 + + - 53 AS col0
----
8991

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL - COALESCE ( + - 68, + 36 - - 39 + - 34 - + 93 + 28 * + COUNT ( * ) * + 53 * - 20 ) * + + 7 * 19 + + - 53 AS col0
----
8991

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8372
SELECT + - SUM( - 96 ) col0, - CASE - + ( + 81 ) WHEN + - CAST( NULL AS SIGNED ) * 45 THEN NULL WHEN - 45 * + COUNT( * ) * - + 70 THEN - 7 * 8 WHEN - COUNT( * ) - + 12 THEN + MIN( 33 ) - + COUNT( * ) END * 27
----
96
NULL

skipif mysql # not compatible
query II rowsort label-8372
SELECT + - SUM ( - 96 ) col0, - CASE - + ( + 81 ) WHEN + - CAST ( NULL AS INTEGER ) * 45 THEN NULL WHEN - 45 * + COUNT ( * ) * - + 70 THEN - 7 * 8 WHEN - COUNT ( * ) - + 12 THEN + MIN ( 33 ) - + COUNT ( * ) END * 27
----
96
NULL

query I rowsort
SELECT + 95 * - 25 + - - 26
----
-2349

query I rowsort
SELECT ALL - + 24 * 30
----
-720

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT ALL COUNT( * ) * SUM( ALL - - 61 ) + ( NULLIF ( - + 15, - + MIN( DISTINCT - 12 ) ) ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL COUNT ( * ) * SUM ( ALL - - 61 ) + ( NULLIF ( - + 15, - + MIN ( DISTINCT - 12 ) ) ) AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8377
SELECT DISTINCT + COALESCE ( + + CASE - + COUNT( * ) WHEN - + CAST( + NULLIF ( + CAST( + + COUNT( * ) AS SIGNED ), - 82 + - 97 * - 47 / - + CAST( NULL AS SIGNED ) ) AS SIGNED ) THEN - 66 * + 16 + - + COUNT( * ) WHEN - 35 THEN NULL ELSE NULL END, + MAX( DISTINCT + 72 ) ) * - 43 + + 39 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8377
SELECT DISTINCT + COALESCE ( + + CASE - + COUNT ( * ) WHEN - + CAST ( + NULLIF ( + CAST ( + + COUNT ( * ) AS INTEGER ), - 82 + - 97 * - 47 / - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) THEN - 66 * + 16 + - + COUNT ( * ) WHEN - 35 THEN NULL ELSE NULL END, + MAX ( DISTINCT + 72 ) ) * - 43 + + 39 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT 83 * COUNT( * ) + - + 12 - 18 col1
----
53

skipif mysql # not compatible
query I rowsort label-8378
SELECT 83 * COUNT ( * ) + - + 12 - 18 col1
----
53

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8380
SELECT - - 66 DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-8380
SELECT - - 66 / 69
----
0

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

query I rowsort
SELECT + - 22 * 24 * 8 AS col1
----
-4224

query I rowsort
SELECT - - 17 * COALESCE ( - 42, 95 )
----
-714

query I rowsort
SELECT ALL + 86 * 35 * - - 25
----
75250

onlyif mysql # DIV for integer division: 
query I rowsort label-8385
SELECT DISTINCT + 4 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT + 4 / - 78
----
0

query I rowsort
SELECT ALL - 13 * - 3 AS col1
----
39

query I rowsort
SELECT - 54 - + 57 * + + 48 + - 47 - + + 46 * - 76 AS col0
----
659

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

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

query I rowsort
SELECT ALL - 14 * + + 95
----
-1330

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT + 23 * - COUNT( DISTINCT - COALESCE ( - + 3, 85 + + 85 + - 29 + + - 67 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-8390
SELECT + 23 * - COUNT ( DISTINCT - COALESCE ( - + 3, 85 + + 85 + - 29 + + - 67 ) )
----
-23

query II rowsort
SELECT 54 AS col2, + 37
----
54
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT - MIN( 35 ) + + + 89
----
54

skipif mysql # not compatible
query I rowsort label-8393
SELECT - MIN ( 35 ) + + + 89
----
54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8394
SELECT - 87 * 25 DIV CAST( - 86 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-8394
SELECT - 87 * 25 / CAST ( - 86 AS INTEGER )
----
25

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8396
SELECT - 64 + + CASE - SUM( CAST( - + ( - CAST( + 69 AS SIGNED ) ) AS SIGNED ) ) WHEN + - 59 * - AVG ( ALL 65 ) + - COUNT( ALL + 3 ) THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN - - 44 THEN 45 + - CASE + 49 WHEN + 57 * 67 + + SUM( + 49 ) + - MIN( DISTINCT 69 ) * 70 THEN NULL WHEN + 98 + + - 78 * + COUNT( * ) THEN 10 END ELSE NULL END * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8396
SELECT - 64 + + CASE - SUM ( CAST ( - + ( - CAST ( + 69 AS INTEGER ) ) AS INTEGER ) ) WHEN + - 59 * - AVG ( ALL 65 ) + - COUNT ( ALL + 3 ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN - - 44 THEN 45 + - CASE + 49 WHEN + 57 * 67 + + SUM ( + 49 ) + - MIN ( DISTINCT 69 ) * 70 THEN NULL WHEN + 98 + + - 78 * + COUNT ( * ) THEN 10 END ELSE NULL END * 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT ALL CASE - + 31 WHEN + CASE - SUM( + 46 ) WHEN - 26 * 22 THEN NULL WHEN - 31 THEN - 61 * 47 END * 0 THEN NULL ELSE - 81 END
----
-81

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL CASE - + 31 WHEN + CASE - SUM ( + 46 ) WHEN - 26 * 22 THEN NULL WHEN - 31 THEN - 61 * 47 END * 0 THEN NULL ELSE - 81 END
----
-81

query I rowsort
SELECT + 40 + 95
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8399
SELECT ALL CAST( 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL CAST ( 55 AS INTEGER )
----
55

query I rowsort
SELECT DISTINCT + 44 + 83
----
127

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8402
SELECT ALL + 57 DIV - MIN( - + 19 ) + 45 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL + 57 / - MIN ( - + 19 ) + 45 AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8403
SELECT DISTINCT - 14 DIV 63 + + + 84
----
84

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT - 14 / 63 + + + 84
----
84

query I rowsort
SELECT + - COALESCE ( + - 2, - + 14, 55 ) * + - 51 * + 86
----
-8772

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT ALL + MIN( + 6 ) * + 4 + 96
----
120

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL + MIN ( + 6 ) * + 4 + 96
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT ALL - ( - MAX( DISTINCT + 12 ) ) * 10 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL - ( - MAX ( DISTINCT + 12 ) ) * 10 AS col2
----
120

query I rowsort
SELECT + + 12 * 23 - + 17 + + 19
----
278

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8409
SELECT + 47 + - + NULLIF ( 98, + COUNT( * ) - + ( - SUM( - + 1 ) ) ) DIV + 84 col1
----
46

skipif mysql # not compatible
query I rowsort label-8409
SELECT + 47 + - + NULLIF ( 98, + COUNT ( * ) - + ( - SUM ( - + 1 ) ) ) / + 84 col1
----
46

query I rowsort
SELECT ALL 17 * 85 + - 57 - + 27 col1
----
1361

query I rowsort
SELECT + 13 + - - 13
----
26

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

skipif mysql # not compatible
query I rowsort label-8412
SELECT + MAX ( + - 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT DISTINCT + COUNT( * ) * - - 73 + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT + COUNT ( * ) * - - 73 + COUNT ( * )
----
74

query II rowsort
SELECT ALL + 42 AS col1, 3
----
42
3

query I rowsort
SELECT + COALESCE ( + 59, 29 ) * + 19
----
1121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8416
SELECT ALL 42 * 14, 96 + - CAST( - 87 AS SIGNED ) AS col1
----
588
183

skipif mysql # not compatible
query II rowsort label-8416
SELECT ALL 42 * 14, 96 + - CAST ( - 87 AS INTEGER ) AS col1
----
588
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8417
SELECT + 97 * - CAST( NULL AS SIGNED ) / 36 * + - 7 + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-8417
SELECT + 97 * - CAST ( NULL AS INTEGER ) / 36 * + - 7 + - 91
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8418
SELECT DISTINCT + SUM( ALL + - 17 ), + 46 DIV 17 AS col2
----
-17
2

skipif mysql # not compatible
query II rowsort label-8418
SELECT DISTINCT + SUM ( ALL + - 17 ), + 46 / 17 AS col2
----
-17
2

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8420
SELECT ALL + 55 DIV + 64 AS col1, 88
----
0
88

skipif mysql # not compatible
query II rowsort label-8420
SELECT ALL + 55 / + 64 AS col1, 88
----
0
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT - 6 * + ( - - 7 ) * + COALESCE ( - + 35, + 37 + 20, - 91 + - ( ( + + 8 ) ) + + 36 + - COUNT( * ) * - 73 * + COUNT( * ) * + COUNT( * ) - + 76, + - 71 ) AS col0
----
1470

skipif mysql # not compatible
query I rowsort label-8421
SELECT - 6 * + ( - - 7 ) * + COALESCE ( - + 35, + 37 + 20, - 91 + - ( ( + + 8 ) ) + + 36 + - COUNT ( * ) * - 73 * + COUNT ( * ) * + COUNT ( * ) - + 76, + - 71 ) AS col0
----
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT DISTINCT NULLIF ( + COUNT( * ), - + ( - 83 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT NULLIF ( + COUNT ( * ), - + ( - 83 ) ) col1
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8424
SELECT - CAST( - 70 AS SIGNED ) * - 15
----
-1050

skipif mysql # not compatible
query I rowsort label-8424
SELECT - CAST ( - 70 AS INTEGER ) * - 15
----
-1050

onlyif mysql # aggregate syntax: 
query II rowsort label-8425
SELECT COUNT( * ) AS col0, ( NULLIF ( + 85, + COUNT( * ) + ( + 79 ) ) ) * 11 - COUNT( ALL + - 3 ) AS col0
----
1
934

skipif mysql # not compatible
query II rowsort label-8425
SELECT COUNT ( * ) AS col0, ( NULLIF ( + 85, + COUNT ( * ) + ( + 79 ) ) ) * 11 - COUNT ( ALL + - 3 ) AS col0
----
1
934

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

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

query I rowsort
SELECT - 52 + - + 37 AS col2
----
-89

query I rowsort
SELECT ALL + 56 + + - 48 AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8429
SELECT - 40 * + COUNT( * ) AS col2, + 39 * - ( + 48 )
----
-40
-1872

skipif mysql # not compatible
query II rowsort label-8429
SELECT - 40 * + COUNT ( * ) AS col2, + 39 * - ( + 48 )
----
-40
-1872

query I rowsort
SELECT DISTINCT ( - + 86 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT DISTINCT + COUNT( * ) + 94 - - 32 * + ( - 12 ) AS col2
----
-289

skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT + COUNT ( * ) + 94 - - 32 * + ( - 12 ) AS col2
----
-289

query I rowsort
SELECT ALL - 83 + 64 col2
----
-19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8434
SELECT ALL - CAST( NULL AS SIGNED ) + COUNT( DISTINCT - 56 ) / - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL - CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT - 56 ) / - 41 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8435
SELECT 45 AS col1, - COUNT( * ) * - 49
----
45
49

skipif mysql # not compatible
query II rowsort label-8435
SELECT 45 AS col1, - COUNT ( * ) * - 49
----
45
49

query II rowsort
SELECT - + 12, + 16 col1
----
-12
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT + 69 * + COUNT( * ) + 66 col2
----
135

skipif mysql # not compatible
query I rowsort label-8437
SELECT + 69 * + COUNT ( * ) + 66 col2
----
135

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8439
SELECT ALL - 35 AS col2, - CAST( NULL AS DECIMAL )
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-8439
SELECT ALL - 35 AS col2, - CAST ( NULL AS REAL )
----
-35
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8440
SELECT DISTINCT - COUNT( DISTINCT 93 ) AS col2, MAX( ALL + 42 ) AS col2
----
-1
42

skipif mysql # not compatible
query II rowsort label-8440
SELECT DISTINCT - COUNT ( DISTINCT 93 ) AS col2, MAX ( ALL + 42 ) AS col2
----
-1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT - COALESCE ( + - 23, - 6 ) - + - CASE + - 78 WHEN - COUNT( * ) THEN NULL ELSE - 75 * COUNT( * ) - - + 4 END
----
-48

skipif mysql # not compatible
query I rowsort label-8441
SELECT - COALESCE ( + - 23, - 6 ) - + - CASE + - 78 WHEN - COUNT ( * ) THEN NULL ELSE - 75 * COUNT ( * ) - - + 4 END
----
-48

query III rowsort
SELECT 15 * - 70 * - + 82 * 8, NULLIF ( + 2, 84 + + - 13 + + 40 ) AS col0, - 41 AS col0
----
688800
2
-41

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

skipif mysql # not compatible
query I rowsort label-8443
SELECT DISTINCT - 39 * + COUNT ( * ) AS col2
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-8444
SELECT 80 DIV - - 94 + - + 89 * - 23
----
2047

skipif mysql # not compatible
query I rowsort label-8444
SELECT 80 / - - 94 + - + 89 * - 23
----
2047

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8445
SELECT + CAST( - 48 AS SIGNED ) + + 53
----
5

skipif mysql # not compatible
query I rowsort label-8445
SELECT + CAST ( - 48 AS INTEGER ) + + 53
----
5

query I rowsort
SELECT ALL - 94 * + + ( + 20 ) col0
----
-1880

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8450
SELECT 86 DIV 62
----
1

skipif mysql # not compatible
query I rowsort label-8450
SELECT 86 / 62
----
1

query I rowsort
SELECT DISTINCT 1 * - 0
----
0

query I rowsort
SELECT + 93 * - 46 + - + 53 + + 55 - + 63 + + - NULLIF ( + + 87, - 0 ) * - 45 AS col2
----
-424

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT ( + MIN( DISTINCT - ( + 9 ) ) ) * 52
----
-468

skipif mysql # not compatible
query I rowsort label-8453
SELECT ( + MIN ( DISTINCT - ( + 9 ) ) ) * 52
----
-468

query I rowsort
SELECT 96 + - - 61 * + 14
----
950

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT 41 * + MIN( 9 ) AS col1
----
369

skipif mysql # not compatible
query I rowsort label-8455
SELECT 41 * + MIN ( 9 ) AS col1
----
369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8456
SELECT ( + + 95 ) - + 99, CASE AVG ( - - 27 ) WHEN + - 94 * COUNT( * ) + + + 62 * - + 68 THEN 45 * - - 35 END * - COUNT( * ) + CAST( - 7 AS SIGNED ) - ( + - 98 ) + 31 AS col1
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-8456
SELECT ( + + 95 ) - + 99, CASE AVG ( - - 27 ) WHEN + - 94 * COUNT ( * ) + + + 62 * - + 68 THEN 45 * - - 35 END * - COUNT ( * ) + CAST ( - 7 AS INTEGER ) - ( + - 98 ) + 31 AS col1
----
-4
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT ALL SUM( + 75 ) * - 62 * COUNT( * ) + - 57 * + 25
----
-6075

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL SUM ( + 75 ) * - 62 * COUNT ( * ) + - 57 * + 25
----
-6075

query I rowsort
SELECT ALL 29 + - + 75
----
-46

query I rowsort
SELECT ALL + 24 + - 11 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT 31 + + AVG ( 25 ) + - CASE + 23 WHEN - 0 + - - 62 - 89 * + 89 THEN + COALESCE ( - COUNT( * ), 75, - - 76 - 36 + - - 27 ) + + + 98 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT 31 + + AVG ( 25 ) + - CASE + 23 WHEN - 0 + - - 62 - 89 * + 89 THEN + COALESCE ( - COUNT ( * ), 75, - - 76 - 36 + - - 27 ) + + + 98 END AS col1
----
NULL

query I rowsort
SELECT ALL ( + + 22 ) + + 34
----
56

query II rowsort
SELECT DISTINCT + 6 + - 77, 29 + + 29 AS col1
----
-71
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT 56 - - 4 * - 92 * - - COUNT( * )
----
-312

skipif mysql # not compatible
query I rowsort label-8464
SELECT 56 - - 4 * - 92 * - - COUNT ( * )
----
-312

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

query II rowsort
SELECT ALL - 50 - - 20 AS col2, - 52 * + 2
----
-30
-104

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8468
SELECT ALL 63 DIV + 43, 73 AS col1
----
1
73

skipif mysql # not compatible
query II rowsort label-8468
SELECT ALL 63 / + 43, 73 AS col1
----
1
73

query I rowsort
SELECT DISTINCT + 23 - + - 41 * - 88
----
-3585

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL + + 4 * + + ( + COALESCE ( + + 66, NULLIF ( ( - 89 ), 26 ) ) ) * COUNT( ALL - 34 ) - - 5
----
269

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL + + 4 * + + ( + COALESCE ( + + 66, NULLIF ( ( - 89 ), 26 ) ) ) * COUNT ( ALL - 34 ) - - 5
----
269

query I rowsort
SELECT - NULLIF ( - - 81, + 67 )
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8472
SELECT DISTINCT + - COUNT( 29 ) * + 7 DIV - COUNT( * ) - 23 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT + - COUNT ( 29 ) * + 7 / - COUNT ( * ) - 23 AS col2
----
-16

query I rowsort
SELECT + 43 * - 14 * + 62 col0
----
-37324

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT + 82 + + ( - MAX( ALL 40 ) ) + - 10 - ( 85 ) + + 77 * + 74 AS col0
----
5645

skipif mysql # not compatible
query I rowsort label-8474
SELECT + 82 + + ( - MAX ( ALL 40 ) ) + - 10 - ( 85 ) + + 77 * + 74 AS col0
----
5645

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT - COUNT( * ) * + + 92 * 72 + - - 27 + 49 col2
----
-6548

skipif mysql # not compatible
query I rowsort label-8475
SELECT - COUNT ( * ) * + + 92 * 72 + - - 27 + 49 col2
----
-6548

query I rowsort
SELECT 52 * - 90 * 93 col1
----
-435240

query II rowsort
SELECT + 32 + - 87 AS col0, 75 * 55 AS col2
----
-55
4125

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT 80 - + COUNT( * ) col2
----
79

skipif mysql # not compatible
query I rowsort label-8480
SELECT 80 - + COUNT ( * ) col2
----
79

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

query I rowsort
SELECT 82 * 26 + 47 + 79 AS col1
----
2258

query I rowsort
SELECT DISTINCT 24 + + ( + 42 )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8484
SELECT ALL CASE + CASE - 37 WHEN + - 10 THEN - 90 WHEN 96 THEN NULL END WHEN 21 * + 6 THEN NULL ELSE + MIN( DISTINCT - 6 ) END + - 53 AS col0, - NULLIF ( + 43, + 23 ) AS col1
----
-59
-43

skipif mysql # not compatible
query II rowsort label-8484
SELECT ALL CASE + CASE - 37 WHEN + - 10 THEN - 90 WHEN 96 THEN NULL END WHEN 21 * + 6 THEN NULL ELSE + MIN ( DISTINCT - 6 ) END + - 53 AS col0, - NULLIF ( + 43, + 23 ) AS col1
----
-59
-43

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

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

query I rowsort
SELECT ALL + 92 * + 6
----
552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8487
SELECT ALL COUNT( * ) DIV - - 22 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL COUNT ( * ) / - - 22 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8488
SELECT 31 DIV - SUM( DISTINCT 95 ), COUNT( * ) + - 97 DIV - CASE - - 22 WHEN + CASE 27 WHEN - 59 THEN - 76 * - 83 + 70 + - 91 * - ( + 85 ) ELSE NULL END THEN NULL WHEN + CAST( NULL AS SIGNED ) + - - 18 * 94 * + + 84 - + - 95 THEN NULL ELSE ( - COUNT( * ) ) + ( 45 ) END AS col2
----
0
3

skipif mysql # not compatible
query II rowsort label-8488
SELECT 31 / - SUM ( DISTINCT 95 ), COUNT ( * ) + - 97 / - CASE - - 22 WHEN + CASE 27 WHEN - 59 THEN - 76 * - 83 + 70 + - 91 * - ( + 85 ) ELSE NULL END THEN NULL WHEN + CAST ( NULL AS INTEGER ) + - - 18 * 94 * + + 84 - + - 95 THEN NULL ELSE ( - COUNT ( * ) ) + ( 45 ) END AS col2
----
0
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8489
SELECT DISTINCT 84 col1, + COALESCE ( + 63, + + 96 - + + 18 ) + + 45 * + COUNT( * )
----
84
108

skipif mysql # not compatible
query II rowsort label-8489
SELECT DISTINCT 84 col1, + COALESCE ( + 63, + + 96 - + + 18 ) + + 45 * + COUNT ( * )
----
84
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT - MIN( DISTINCT + 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-8490
SELECT - MIN ( DISTINCT + 18 ) AS col0
----
-18

query I rowsort
SELECT + 87 + - + 67 AS col0
----
20

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

skipif mysql # not compatible
query I rowsort label-8492
SELECT - MAX ( DISTINCT - - 9 )
----
-9

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

query I rowsort
SELECT + 75 * - + 58
----
-4350

query I rowsort
SELECT DISTINCT + 21 * + ( - + 13 ) + + 76 AS col1
----
-197

query II rowsort
SELECT DISTINCT + 3 AS col0, - 27 AS col1
----
3
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT ALL - 94 - - 33 * COUNT( 77 )
----
-61

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL - 94 - - 33 * COUNT ( 77 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT - CASE - 5 WHEN + ( - - ( + NULLIF ( - 47, COUNT( * ) ) ) ) THEN NULL WHEN + - 98 THEN 64 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT - CASE - 5 WHEN + ( - - ( + NULLIF ( - 47, COUNT ( * ) ) ) ) THEN NULL WHEN + - 98 THEN 64 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT ALL SUM( ALL - - 89 )
----
89

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL SUM ( ALL - - 89 )
----
89

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8501
SELECT + 35, 92 * + - CAST( NULL AS SIGNED ) - - 75 / 6 col1
----
35
NULL

skipif mysql # not compatible
query II rowsort label-8501
SELECT + 35, 92 * + - CAST ( NULL AS INTEGER ) - - 75 / 6 col1
----
35
NULL

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

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

query I rowsort
SELECT COALESCE ( 15, + 12 - + 50, - 71 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT - 63 * + + 47 * COUNT( * ) + + CASE + + 94 WHEN + + AVG ( ALL 3 ) THEN 42 WHEN + 75 + - - 64 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8504
SELECT - 63 * + + 47 * COUNT ( * ) + + CASE + + 94 WHEN + + AVG ( ALL 3 ) THEN 42 WHEN + 75 + - - 64 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8505
SELECT + 2 DIV 35 - - 10 - - - 93 + - ( + - 81 ), - 63 * - 41 * COUNT( * ) col0
----
-2
2583

skipif mysql # not compatible
query II rowsort label-8505
SELECT + 2 / 35 - - 10 - - - 93 + - ( + - 81 ), - 63 * - 41 * COUNT ( * ) col0
----
-2
2583

query II rowsort
SELECT - ( + 72 ) - 72 col0, 44 AS col1
----
-144
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8507
SELECT - - 6 DIV - - 97 + + - 62 + + COUNT( * ) * - + ( - + 23 )
----
-39

skipif mysql # not compatible
query I rowsort label-8507
SELECT - - 6 / - - 97 + + - 62 + + COUNT ( * ) * - + ( - + 23 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT - - 48 + + COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-8508
SELECT - - 48 + + COUNT ( * ) AS col2
----
49

query I rowsort
SELECT ALL + 43 * - 5 + 70
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT ALL + COUNT( + ( + - 91 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL + COUNT ( + ( + - 91 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8511
SELECT DISTINCT - COALESCE ( + + 66, - 78, + + 83 * - - MIN( + 0 ) ) * - - MIN( - - 76 ) + + ( COUNT( * ) ) + 10 DIV 86
----
-5015

skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT - COALESCE ( + + 66, - 78, + + 83 * - - MIN ( + 0 ) ) * - - MIN ( - - 76 ) + + ( COUNT ( * ) ) + 10 / 86
----
-5015

query I rowsort
SELECT - 54 + + - 10
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8513
SELECT 96 DIV - 71 * - COUNT( * ) - - 78
----
79

skipif mysql # not compatible
query I rowsort label-8513
SELECT 96 / - 71 * - COUNT ( * ) - - 78
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8514
SELECT - 71 * - COALESCE ( 80, + - 50 DIV - + 44 + - ( + 0 ) + 2 )
----
5680

skipif mysql # not compatible
query I rowsort label-8514
SELECT - 71 * - COALESCE ( 80, + - 50 / - + 44 + - ( + 0 ) + 2 )
----
5680

query I rowsort
SELECT - 77 * - 13 * - - 14 AS col2
----
14014

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8516
SELECT ALL + 15 * - 0 DIV + 70 + 4 - + CAST( + 40 AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL + 15 * - 0 / + 70 + 4 - + CAST ( + 40 AS INTEGER )
----
-36

query I rowsort
SELECT ALL + CASE - 51 WHEN - 32 THEN - + 27 * + - ( + 45 ) ELSE 39 END AS col1
----
39

query I rowsort
SELECT ALL 47 * - 66 + - 31 AS col2
----
-3133

query I rowsort
SELECT DISTINCT 15 * - 48 * - - 45 + + 46 AS col1
----
-32354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8520
SELECT ALL - COUNT( * ) DIV - - 19 AS col0, CAST( - COUNT( ALL - + 59 ) AS SIGNED )
----
0
-1

skipif mysql # not compatible
query II rowsort label-8520
SELECT ALL - COUNT ( * ) / - - 19 AS col0, CAST ( - COUNT ( ALL - + 59 ) AS INTEGER )
----
0
-1

query II rowsort
SELECT - 41 * + 50 AS col2, 97
----
-2050
97

query I rowsort
SELECT ALL + CASE + 70 WHEN + - ( - 13 ) * 73 THEN - 48 END AS col0
----
NULL

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

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

query I rowsort
SELECT ALL 9 * + + 21 + + ( - 82 ) + 96
----
203

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

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL - CAST ( NULL AS INTEGER ) * - 35
----
NULL

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

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

query I rowsort
SELECT + 11 * - 60
----
-660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8528
SELECT + MIN( DISTINCT - 90 ) AS col0, CAST( NULL AS SIGNED ) / + + 14 + - - COUNT( * ) * + 91 / + 39
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-8528
SELECT + MIN ( DISTINCT - 90 ) AS col0, CAST ( NULL AS INTEGER ) / + + 14 + - - COUNT ( * ) * + 91 / + 39
----
-90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT COUNT( DISTINCT - - 77 )
----
1

skipif mysql # not compatible
query I rowsort label-8529
SELECT COUNT ( DISTINCT - - 77 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT - 58 + - - 49 + - + SUM( ALL 25 ) + - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-8530
SELECT - 58 + - - 49 + - + SUM ( ALL 25 ) + - COUNT ( * )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT - COALESCE ( + 83, + MAX( - - 83 ) * 60 + + 51, 47 * + 60 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-8531
SELECT - COALESCE ( + 83, + MAX ( - - 83 ) * 60 + + 51, 47 * + 60 ) AS col2
----
-83

query I rowsort
SELECT ALL ( 86 ) * - 22 + + + 33 - + - 22 - 85 + 68 * + 3
----
-1718

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8535
SELECT ALL + 34 DIV - 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL + 34 / - 47 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT + + COUNT( * ) + + 78 * 26 col1
----
2029

skipif mysql # not compatible
query I rowsort label-8536
SELECT + + COUNT ( * ) + + 78 * 26 col1
----
2029

query I rowsort
SELECT ALL + + 33 - - 44 AS col1
----
77

query I rowsort
SELECT ALL NULLIF ( + - 63, + 58 ) - - NULLIF ( - 50, + 13 ) - - - 2 + + 53 AS col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8539
SELECT + + 79 + - 5 * + 84 + + 23 + CAST( NULL AS SIGNED ) * SUM( DISTINCT + 56 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8539
SELECT + + 79 + - 5 * + 84 + + 23 + CAST ( NULL AS INTEGER ) * SUM ( DISTINCT + 56 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT - 41 + - + 89 * - COUNT( * ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-8540
SELECT - 41 + - + 89 * - COUNT ( * ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT + COUNT( ALL + - 6 ) + + 56 col0
----
57

skipif mysql # not compatible
query I rowsort label-8541
SELECT + COUNT ( ALL + - 6 ) + + 56 col0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-8542
SELECT + 25 - - 26 + - 14 DIV - 99 * - 81 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-8542
SELECT + 25 - - 26 + - 14 / - 99 * - 81 AS col0
----
51

query I rowsort
SELECT + + 76 * - 63
----
-4788

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT + 38 + - + NULLIF ( + + COUNT( * ), - + 96 )
----
37

skipif mysql # not compatible
query I rowsort label-8544
SELECT + 38 + - + NULLIF ( + + COUNT ( * ), - + 96 )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8545
SELECT DISTINCT 12 * CAST( NULL AS SIGNED ) - - 13 / - COUNT( * ) + + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8545
SELECT DISTINCT 12 * CAST ( NULL AS INTEGER ) - - 13 / - COUNT ( * ) + + 38 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT ALL - 16 * 73 + - 3 - + COUNT( * ) * 64
----
-1235

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL - 16 * 73 + - 3 - + COUNT ( * ) * 64
----
-1235

onlyif mysql # aggregate syntax: 
query II rowsort label-8547
SELECT ALL - COUNT( - 82 ) + - 6 + - 62 * + - 15 AS col0, 2 + + 62 + - 51 AS col2
----
923
13

skipif mysql # not compatible
query II rowsort label-8547
SELECT ALL - COUNT ( - 82 ) + - 6 + - 62 * + - 15 AS col0, 2 + + 62 + - 51 AS col2
----
923
13

query I rowsort
SELECT + - 52 + + + 20 * - 48 AS col0
----
-1012

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8549
SELECT + + 77 + - + CAST( - 31 AS SIGNED ) * 42 * - + 53
----
-68929

skipif mysql # not compatible
query I rowsort label-8549
SELECT + + 77 + - + CAST ( - 31 AS INTEGER ) * 42 * - + 53
----
-68929

query I rowsort
SELECT ALL 97 + 10 + + ( - 2 ) AS col1
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8551
SELECT ALL COUNT( * ) + COUNT( * ) + + - 42 DIV - 73 * + 59
----
2

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL COUNT ( * ) + COUNT ( * ) + + - 42 / - 73 * + 59
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8552
SELECT + 85 * - NULLIF ( - CAST( NULL AS SIGNED ), COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8552
SELECT + 85 * - NULLIF ( - CAST ( NULL AS INTEGER ), COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT - COUNT( * ) * + 14 + - - 29 + - COUNT( * ) AS col0
----
14

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8555
SELECT 1 * + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) + ( 85 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT 1 * + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) + ( 85 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8556
SELECT ALL - COUNT( 79 ) DIV + COUNT( * ) + + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL - COUNT ( 79 ) / + COUNT ( * ) + + + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT ALL + COUNT( DISTINCT - 91 ) * + + 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL + COUNT ( DISTINCT - 91 ) * + + 23 AS col0
----
23

query I rowsort
SELECT - 41 + - 22 AS col1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-8559
SELECT ALL - 94 DIV + + 52 + - + 12
----
-13

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL - 94 / + + 52 + - + 12
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-8560
SELECT ALL 36 DIV + ( - 35 ) + + + 64
----
63

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL 36 / + ( - 35 ) + + + 64
----
63

query I rowsort
SELECT ALL + ( + + 23 ) AS col0
----
23

query I rowsort
SELECT 40 * - + 36
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT DISTINCT - COALESCE ( + - 69, - 2 ) - 22 + COUNT( * ) + 37 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT - COALESCE ( + - 69, - 2 ) - 22 + COUNT ( * ) + 37 AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8564
SELECT DISTINCT - CASE 7 WHEN + ( 90 ) THEN - + 95 WHEN - CAST( - - 39 AS DECIMAL ) THEN + + 50 + + + MIN( ( - 84 ) ) - + COUNT( * ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8564
SELECT DISTINCT - CASE 7 WHEN + ( 90 ) THEN - + 95 WHEN - CAST ( - - 39 AS REAL ) THEN + + 50 + + + MIN ( ( - 84 ) ) - + COUNT ( * ) ELSE NULL END col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT DISTINCT - CASE WHEN NOT 83 IS NULL THEN + + 73 ELSE - + COUNT( * ) END
----
-73

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT - CASE WHEN NOT 83 IS NULL THEN + + 73 ELSE - + COUNT ( * ) END
----
-73

query I rowsort
SELECT DISTINCT - 75 * - - 90 AS col0
----
-6750

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT ALL - COUNT( + 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL - COUNT ( + 90 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8569
SELECT DISTINCT - CASE 81 WHEN 19 * - + CASE + 54 WHEN 46 * - 25 THEN + 31 + 18 * CAST( - + COALESCE ( - 52, + COUNT( * ) ) AS DECIMAL ) END * + - COUNT( * ) * + 68 * + ( - 54 ) + - COUNT( * ) + + 36 + + + 93 * 22 * - 36 THEN MIN( - + 41 ) * 47 * 1 + - MIN( 49 ) * 31 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT - CASE 81 WHEN 19 * - + CASE + 54 WHEN 46 * - 25 THEN + 31 + 18 * CAST ( - + COALESCE ( - 52, + COUNT ( * ) ) AS REAL ) END * + - COUNT ( * ) * + 68 * + ( - 54 ) + - COUNT ( * ) + + 36 + + + 93 * 22 * - 36 THEN MIN ( - + 41 ) * 47 * 1 + - MIN ( 49 ) * 31 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 12 * + - 6 AS col1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8571
SELECT DISTINCT + 61 DIV + + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT + 61 / + + COUNT ( * )
----
61

query II rowsort
SELECT ALL - 48 AS col1, 46 * 44
----
-48
2024

query I rowsort
SELECT DISTINCT + + 56 * 51 AS col0
----
2856

query I rowsort
SELECT 51 * ( 66 ) AS col0
----
3366

query I rowsort
SELECT ALL + 11 * - 34 + 78 * + 79 + ( + 84 ) + NULLIF ( + ( + 55 ), - 72 ) AS col1
----
5927

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT - COUNT( ALL + 55 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8576
SELECT - COUNT ( ALL + 55 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8577
SELECT 30 DIV + 28 + 62
----
63

skipif mysql # not compatible
query I rowsort label-8577
SELECT 30 / + 28 + 62
----
63

query I rowsort
SELECT ALL + 67 + - + ( + 85 ) AS col2
----
-18

query I rowsort
SELECT ALL + - 14 * + 23 AS col1
----
-322

query I rowsort
SELECT ALL + 87 + + + 17 AS col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT DISTINCT - CASE + 63 WHEN ( - ( + COUNT( * ) ) ) THEN NULL ELSE - 44 END + + + 69
----
113

skipif mysql # not compatible
query I rowsort label-8581
SELECT DISTINCT - CASE + 63 WHEN ( - ( + COUNT ( * ) ) ) THEN NULL ELSE - 44 END + + + 69
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL COUNT( * ) + - - 30
----
31

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL COUNT ( * ) + - - 30
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT ALL + - ( 86 ) + + + SUM( + 68 ) + + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL + - ( 86 ) + + + SUM ( + 68 ) + + COUNT ( * )
----
-17

query I rowsort
SELECT ALL 86 + 86 AS col2
----
172

onlyif mysql # aggregate syntax: 
query II rowsort label-8585
SELECT - - COUNT( * ) AS col2, 42 AS col2
----
1
42

skipif mysql # not compatible
query II rowsort label-8585
SELECT - - COUNT ( * ) AS col2, 42 AS col2
----
1
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8586
SELECT - 69 + - - 30 - + - 61, - CAST( - 39 AS SIGNED ) AS col1
----
22
39

skipif mysql # not compatible
query II rowsort label-8586
SELECT - 69 + - - 30 - + - 61, - CAST ( - 39 AS INTEGER ) AS col1
----
22
39

query I rowsort
SELECT ALL + ( - 57 )
----
-57

query I rowsort
SELECT + COALESCE ( + + 5, + ( - 59 ) * + 14 - + - 82, + - 48 )
----
5

query I rowsort
SELECT 7 + 43
----
50

query I rowsort
SELECT + 52 * + + 5
----
260

onlyif mysql # DIV for integer division: 
query II rowsort label-8591
SELECT 57 AS col2, + 63 DIV - + 39 AS col1
----
57
-1

skipif mysql # not compatible
query II rowsort label-8591
SELECT 57 AS col2, + 63 / - + 39 AS col1
----
57
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT DISTINCT + MAX( DISTINCT + - 37 ) + + 46
----
9

skipif mysql # not compatible
query I rowsort label-8592
SELECT DISTINCT + MAX ( DISTINCT + - 37 ) + + 46
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT NULLIF ( SUM( - NULLIF ( + - ( + 14 ), + - 61 ) ), 60 / - COUNT( * ) + - 88 * + 44 ) - - 15 + - - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-8593
SELECT NULLIF ( SUM ( - NULLIF ( + - ( + 14 ), + - 61 ) ), 60 / - COUNT ( * ) + - 88 * + 44 ) - - 15 + - - COUNT ( * )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT ALL COUNT( * ) * ( - COUNT( - + 84 ) ) * - 68 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL COUNT ( * ) * ( - COUNT ( - + 84 ) ) * - 68 AS col2
----
68

query II rowsort
SELECT DISTINCT - 63 col2, - 26 * + 28
----
-63
-728

query I rowsort
SELECT DISTINCT ( - 63 ) - + 54 * - + 91 * - 54 * + 46 + + 39
----
-12206400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8597
SELECT DISTINCT CAST( NULL AS SIGNED ) / - + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - + 3
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8598
SELECT ALL + 61 * CAST( + - ( - SUM( ALL - 22 ) ) AS SIGNED ) * - 16 AS col0
----
21472

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL + 61 * CAST ( + - ( - SUM ( ALL - 22 ) ) AS INTEGER ) * - 16 AS col0
----
21472

query I rowsort
SELECT DISTINCT - 89 * - 26 * 69 col1
----
159666

query I rowsort
SELECT 65 * - COALESCE ( 13, + 13 - + 2 + 92 * 13 * 83, + 67 + - + 80 ) AS col0
----
-845

query I rowsort
SELECT ALL 10 * + - 15 AS col0
----
-150

query I rowsort
SELECT ALL - 31 * - 49 col2
----
1519

query I rowsort
SELECT + 10 + - 70
----
-60

query I rowsort
SELECT DISTINCT + 15 * - - 95 * 71 * - + 76 AS col0
----
-7689300

query I rowsort
SELECT - 83 * 58 + - - 32 - - 5 AS col1
----
-4777

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT + CASE - 16 WHEN - 39 * 41 * - 43 THEN COUNT( * ) WHEN + 54 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8606
SELECT + CASE - 16 WHEN - 39 * 41 * - 43 THEN COUNT ( * ) WHEN + 54 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8607
SELECT ALL - + 67 AS col0, COALESCE ( + + 79, 50, + + 1 + + + SUM( + 24 ) )
----
-67
79

skipif mysql # not compatible
query II rowsort label-8607
SELECT ALL - + 67 AS col0, COALESCE ( + + 79, 50, + + 1 + + + SUM ( + 24 ) )
----
-67
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8608
SELECT + COUNT( * ) * + - 80 * + + CAST( NULL AS SIGNED ) + + 5 * - COALESCE ( + - 96, + 90 + - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8608
SELECT + COUNT ( * ) * + - 80 * + + CAST ( NULL AS INTEGER ) + + 5 * - COALESCE ( + - 96, + 90 + - COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT - ( - 18 ) AS col2
----
18

query II rowsort
SELECT ALL 14 AS col2, CASE 96 WHEN + 27 * + + 22 THEN + 83 END AS col0
----
14
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8611
SELECT ALL 31 AS col0, 67 DIV - 92 AS col1
----
31
0

skipif mysql # not compatible
query II rowsort label-8611
SELECT ALL 31 AS col0, 67 / - 92 AS col1
----
31
0

query I rowsort
SELECT 75 + - - 55
----
130

query I rowsort
SELECT ALL + + 78 * + 25 col0
----
1950

query I rowsort
SELECT DISTINCT + - 36 * + 71
----
-2556

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8615
SELECT CAST( COUNT( * ) AS SIGNED ) + + + 80 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-8615
SELECT CAST ( COUNT ( * ) AS INTEGER ) + + + 80 AS col1
----
81

query I rowsort
SELECT DISTINCT - 36 + - ( - 92 ) AS col0
----
56

query I rowsort
SELECT ALL - + 23 + 4
----
-19

query I rowsort
SELECT 15 + 84
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8619
SELECT ALL + 65 * 51 AS col2, + CAST( NULL AS SIGNED ) AS col0
----
3315
NULL

skipif mysql # not compatible
query II rowsort label-8619
SELECT ALL + 65 * 51 AS col2, + CAST ( NULL AS INTEGER ) AS col0
----
3315
NULL

query I rowsort
SELECT 25 + 87
----
112

onlyif mysql # DIV for integer division: 
query II rowsort label-8621
SELECT ALL 12 DIV + 22 AS col2, 58
----
0
58

skipif mysql # not compatible
query II rowsort label-8621
SELECT ALL 12 / + 22 AS col2, 58
----
0
58

query I rowsort
SELECT 31 * 43 AS col2
----
1333

onlyif mysql # aggregate syntax: 
query II rowsort label-8623
SELECT + 77 + - 31 col2, - COALESCE ( + 85, - COUNT( ALL + - 66 ), 87 ) AS col0
----
46
-85

skipif mysql # not compatible
query II rowsort label-8623
SELECT + 77 + - 31 col2, - COALESCE ( + 85, - COUNT ( ALL + - 66 ), 87 ) AS col0
----
46
-85

query I rowsort
SELECT - 89 * 94
----
-8366

onlyif mysql # DIV for integer division: 
query I rowsort label-8625
SELECT - 6 + - - 77 DIV - 77 + + - 1 + - - 21 + 44
----
57

skipif mysql # not compatible
query I rowsort label-8625
SELECT - 6 + - - 77 / - 77 + + - 1 + - - 21 + 44
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-8626
SELECT - 65 DIV + 85 * + 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8626
SELECT - 65 / + 85 * + 65 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8627
SELECT 29 * - SUM( ALL + 50 ) * - 46 + + 35 col0, + 26 AS col1
----
66735
26

skipif mysql # not compatible
query II rowsort label-8627
SELECT 29 * - SUM ( ALL + 50 ) * - 46 + + 35 col0, + 26 AS col1
----
66735
26

query I rowsort
SELECT + 84 * - - 14 + 56 + + 6
----
1238

query I rowsort
SELECT DISTINCT + ( 41 ) AS col0
----
41

query I rowsort
SELECT ALL + 2 * 11
----
22

query II rowsort
SELECT ALL 69 * - - 0 col2, + 66
----
0
66

query I rowsort
SELECT + ( + + 26 ) * - ( - - 52 ) AS col2
----
-1352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8633
SELECT + CASE - + 82 WHEN + 88 * + 0 + - 31 THEN NULL WHEN + 18 THEN - CASE + 63 WHEN CAST( NULL AS SIGNED ) + + 32 * 79 THEN + - COUNT( + 74 ) END * - 9 * - 59 ELSE NULL END * + - 56 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8633
SELECT + CASE - + 82 WHEN + 88 * + 0 + - 31 THEN NULL WHEN + 18 THEN - CASE + 63 WHEN CAST ( NULL AS INTEGER ) + + 32 * 79 THEN + - COUNT ( + 74 ) END * - 9 * - 59 ELSE NULL END * + - 56 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT + 77 + + CASE 98 WHEN - + 88 + + 22 * 44 + + - 92 + 97 + - 49 THEN NULL WHEN - 19 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8634
SELECT + 77 + + CASE 98 WHEN - + 88 + + 22 * 44 + + - 92 + 97 + - 49 THEN NULL WHEN - 19 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8635
SELECT + 21 DIV 95 * - + 3 DIV 33 + - 16 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8635
SELECT + 21 / 95 * - + 3 / 33 + - 16 AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8636
SELECT DISTINCT + NULLIF ( + 15, + 66 * + + ( + 33 ) ) * + - 96 * + + 9 * + 85 * + MAX( 44 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8636
SELECT DISTINCT + NULLIF ( + 15, + 66 * + + ( + 33 ) ) * + - 96 * + + 9 * + 85 * + MAX ( 44 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8637
SELECT ALL COALESCE ( + + 99, + AVG ( - ( - 98 ) ) ) DIV SUM( DISTINCT - ( - 28 ) )
----
3

skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL COALESCE ( + + 99, + AVG ( - ( - 98 ) ) ) / SUM ( DISTINCT - ( - 28 ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT ALL - COUNT( * ) * + 93 + 44
----
-49

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL - COUNT ( * ) * + 93 + 44
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8639
SELECT + + ( + CASE 85 WHEN - NULLIF ( + - 54, 43 ) + + + 47 * - - CAST( ( + + CASE + 6 WHEN - 15 / + 51 + - - AVG ( ALL + 2 ) THEN NULL WHEN - 34 * + 39 THEN NULL WHEN 29 THEN + + 26 * + - MIN( DISTINCT + 4 ) ELSE - 96 * - 97 - - 82 + - - MAX( 62 ) + + + 56 END ) AS SIGNED ) / - 37 + - 22 + - 16 * - 44 THEN CASE 25 WHEN ( + 33 ) THEN - 28 + 29 WHEN 60 THEN + + 53 * - 52 * 98 + + - CASE - + COUNT( - 86 ) WHEN - + MAX( DISTINCT + - 4 ) - + MIN( DISTINCT + 15 ) + COALESCE ( AVG ( DISTINCT ( 87 ) ) - 1, + 46 ) * COUNT( * ) THEN 74 * 31 WHEN + COUNT( * ) * 63 THEN NULL END + + COUNT( * ) WHEN - 2 + SUM( 96 ) * CAST( NULL AS DECIMAL ) THEN 96 + CASE + SUM( + 7 ) WHEN 25 THEN 23 + + 92 END ELSE NULL END WHEN COUNT( * ) THEN NULL ELSE NULL END ) * + CAST( - 47 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8639
SELECT + + ( + CASE 85 WHEN - NULLIF ( + - 54, 43 ) + + + 47 * - - CAST ( ( + + CASE + 6 WHEN - 15 / + 51 + - - AVG ( ALL + 2 ) THEN NULL WHEN - 34 * + 39 THEN NULL WHEN 29 THEN + + 26 * + - MIN ( DISTINCT + 4 ) ELSE - 96 * - 97 - - 82 + - - MAX ( 62 ) + + + 56 END ) AS INTEGER ) / - 37 + - 22 + - 16 * - 44 THEN CASE 25 WHEN ( + 33 ) THEN - 28 + 29 WHEN 60 THEN + + 53 * - 52 * 98 + + - CASE - + COUNT ( - 86 ) WHEN - + MAX ( DISTINCT + - 4 ) - + MIN ( DISTINCT + 15 ) + COALESCE ( AVG ( DISTINCT ( 87 ) ) - 1, + 46 ) * COUNT ( * ) THEN 74 * 31 WHEN + COUNT ( * ) * 63 THEN NULL END + + COUNT ( * ) WHEN - 2 + SUM ( 96 ) * CAST ( NULL AS REAL ) THEN 96 + CASE + SUM ( + 7 ) WHEN 25 THEN 23 + + 92 END ELSE NULL END WHEN COUNT ( * ) THEN NULL ELSE NULL END ) * + CAST ( - 47 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8640
SELECT + - 79 DIV + 5 * - COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8640
SELECT + - 79 / + 5 * - COUNT ( * ) AS col1
----
15

query I rowsort
SELECT ALL + 9 * - 55 - + + 76
----
-571

query I rowsort
SELECT - 7 * + + 69 + - 52 * + 89
----
-5111

query I rowsort
SELECT - - ( 54 ) * 54 AS col2
----
2916

query II rowsort
SELECT DISTINCT - ( - 98 ) * - 81 AS col2, - ( - + 58 ) * - 86 - - 25
----
-7938
-4963

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT + 89 - ( + 42 ) + - 31 * COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-8645
SELECT + 89 - ( + 42 ) + - 31 * COUNT ( * )
----
16

query I rowsort
SELECT - 95 * + 72 AS col0
----
-6840

query I rowsort
SELECT + 65 + - 88
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-8648
SELECT - 61, COUNT( * ) * + 19 AS col1
----
-61
19

skipif mysql # not compatible
query II rowsort label-8648
SELECT - 61, COUNT ( * ) * + 19 AS col1
----
-61
19

query II rowsort
SELECT - 41 + - 16 * 61 AS col2, 56 AS col2
----
-1017
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8650
SELECT - 59 * + 42 DIV 45 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-8650
SELECT - 59 * + 42 / 45 / 96
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8651
SELECT - 65 + + 14 * - + 55 + 62 AS col1, + ( + COUNT( DISTINCT - 33 ) )
----
-773
1

skipif mysql # not compatible
query II rowsort label-8651
SELECT - 65 + + 14 * - + 55 + 62 AS col1, + ( + COUNT ( DISTINCT - 33 ) )
----
-773
1

query II rowsort
SELECT 25 AS col1, + 61 * 67
----
25
4087

query I rowsort
SELECT ALL - 71 * + + 48
----
-3408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8654
SELECT ALL - COUNT( 90 ) * ( + CAST( NULL AS SIGNED ) ) * 16 / - ( + + 96 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL - COUNT ( 90 ) * ( + CAST ( NULL AS INTEGER ) ) * 16 / - ( + + 96 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8655
SELECT DISTINCT 58 DIV COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT 58 / COUNT ( * ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT + SUM( - - 73 ) * 90
----
6570

skipif mysql # not compatible
query I rowsort label-8656
SELECT + SUM ( - - 73 ) * 90
----
6570

onlyif mysql # DIV for integer division: 
query I rowsort label-8657
SELECT DISTINCT - 26 DIV - 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8657
SELECT DISTINCT - 26 / - 71 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8658
SELECT COUNT( * ) DIV 39 - ( - 18 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-8658
SELECT COUNT ( * ) / 39 - ( - 18 ) AS col2
----
18

query I rowsort
SELECT ( 74 ) AS col2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8660
SELECT ALL - 8 DIV + 44 * ( - 72 ) + 61
----
61

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL - 8 / + 44 * ( - 72 ) + 61
----
61

query I rowsort
SELECT - + 18 - + - 50 * + 46 AS col1
----
2282

query I rowsort
SELECT DISTINCT + ( - 57 )
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8663
SELECT ALL + + CAST( - + 82 AS SIGNED ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL + + CAST ( - + 82 AS INTEGER ) AS col1
----
-82

query I rowsort
SELECT - 95 + + 78
----
-17

query I rowsort
SELECT DISTINCT 34 * + 34 AS col0
----
1156

onlyif mysql # aggregate syntax: 
query II rowsort label-8666
SELECT 33 * 62 + 79 AS col1, - SUM( 75 )
----
2125
-75

skipif mysql # not compatible
query II rowsort label-8666
SELECT 33 * 62 + 79 AS col1, - SUM ( 75 )
----
2125
-75

query I rowsort
SELECT + + 17 * 17 AS col0
----
289

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8668
SELECT + CAST( NULL AS SIGNED ) + - + 27 / - 4 * + COUNT( * ) * + 65 + + - 0 + - 1 * - ( + 77 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8668
SELECT + CAST ( NULL AS INTEGER ) + - + 27 / - 4 * + COUNT ( * ) * + 65 + + - 0 + - 1 * - ( + 77 ) AS col2
----
NULL

query I rowsort
SELECT ALL - - 69 * - ( + 55 ) - + + 39 AS col1
----
-3834

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT + - 42 + - COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-8670
SELECT + - 42 + - COUNT ( * ) AS col2
----
-43

query II rowsort
SELECT + 49 * + 9 - + 1 AS col2, - 74 / + + 6 + + 83 * - 70 + - + CASE 67 WHEN + 61 + 92 * + + 28 THEN + 49 - + 54 END / + 10 AS col2
----
440
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT ALL CASE - - 99 WHEN - 72 / + 16 THEN NULL WHEN MAX( 58 ) * - + 89 THEN + 44 END * - ( + 36 ) * - + 85 - - + 67 + - COUNT( * ) * - 35 + 33 + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL CASE - - 99 WHEN - 72 / + 16 THEN NULL WHEN MAX ( 58 ) * - + 89 THEN + 44 END * - ( + 36 ) * - + 85 - - + 67 + - COUNT ( * ) * - 35 + 33 + 36
----
NULL

query I rowsort
SELECT + - 92 + - + 67
----
-159

onlyif mysql # DIV for integer division: 
query II rowsort label-8674
SELECT - 56, 7 DIV + 59 * 79 AS col2
----
-56
0

skipif mysql # not compatible
query II rowsort label-8674
SELECT - 56, 7 / + 59 * 79 AS col2
----
-56
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT ( - 43 ) + + + COUNT( * ) + + ( - - 22 ) + + + 27 * 19
----
493

skipif mysql # not compatible
query I rowsort label-8675
SELECT ( - 43 ) + + + COUNT ( * ) + + ( - - 22 ) + + + 27 * 19
----
493

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT ALL COUNT( * ) * - 39 * - - 77 * - 78 col0
----
234234

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL COUNT ( * ) * - 39 * - - 77 * - 78 col0
----
234234

onlyif mysql # aggregate syntax: 
query II rowsort label-8677
SELECT 50 + 54 col1, COUNT( * )
----
104
1

skipif mysql # not compatible
query II rowsort label-8677
SELECT 50 + 54 col1, COUNT ( * )
----
104
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8678
SELECT DISTINCT 95 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT 95 * + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL 41 * - 64, 99 - - 24 AS col2
----
-2624
123

query II rowsort
SELECT 59 + + - 2 AS col0, - 51 * + 91
----
57
-4641

query I rowsort
SELECT ALL 70 + + 11 - - 60 AS col0
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-8682
SELECT ALL + 3 + + COUNT( * ) AS col2, - 15
----
4
-15

skipif mysql # not compatible
query II rowsort label-8682
SELECT ALL + 3 + + COUNT ( * ) AS col2, - 15
----
4
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8683
SELECT CAST( NULL AS DECIMAL ) + - 75 + + + 18 * + CASE - - 38 WHEN 62 * ( + 72 ) THEN NULL ELSE - + 80 END * 64 AS col2, - ( - - 27 ) + - - ( + COUNT( * ) ) AS col2
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-8683
SELECT CAST ( NULL AS REAL ) + - 75 + + + 18 * + CASE - - 38 WHEN 62 * ( + 72 ) THEN NULL ELSE - + 80 END * 64 AS col2, - ( - - 27 ) + - - ( + COUNT ( * ) ) AS col2
----
NULL
-26

query I rowsort
SELECT ALL - 40 * - ( 84 ) AS col2
----
3360

onlyif mysql # aggregate syntax: 
query II rowsort label-8685
SELECT COUNT( * ) * - + NULLIF ( COUNT( * ), + - 99 + + - 22 + + COALESCE ( - 63, + SUM( ALL - 10 ) * + COUNT( * ) / + COUNT( * ), 11 * + 9 ) ) + - - 54, 55 * - - 87 AS col0
----
53
4785

skipif mysql # not compatible
query II rowsort label-8685
SELECT COUNT ( * ) * - + NULLIF ( COUNT ( * ), + - 99 + + - 22 + + COALESCE ( - 63, + SUM ( ALL - 10 ) * + COUNT ( * ) / + COUNT ( * ), 11 * + 9 ) ) + - - 54, 55 * - - 87 AS col0
----
53
4785

query I rowsort
SELECT 91 * + 50
----
4550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8687
SELECT ALL + 67 + MAX( ALL NULLIF ( 76, CAST( NULL AS SIGNED ) ) ) AS col2
----
143

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL + 67 + MAX ( ALL NULLIF ( 76, CAST ( NULL AS INTEGER ) ) ) AS col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT ALL - 13 + - 54 - + SUM( ALL + - 2 )
----
-65

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL - 13 + - 54 - + SUM ( ALL + - 2 )
----
-65

query I rowsort
SELECT ALL 27 * 87 * 52 AS col2
----
122148

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT DISTINCT + + 17 + - + COUNT( * ) * + + 73 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT + + 17 + - + COUNT ( * ) * + + 73 AS col2
----
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8691
SELECT DISTINCT + 50 * - 69 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8691
SELECT DISTINCT + 50 * - 69 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT DISTINCT + COUNT( * ) + + 26 col2
----
27

skipif mysql # not compatible
query I rowsort label-8692
SELECT DISTINCT + COUNT ( * ) + + 26 col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT ALL - NULLIF ( - - 80, + 13 - - ( - MIN( 16 ) ) ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL - NULLIF ( - - 80, + 13 - - ( - MIN ( 16 ) ) ) AS col2
----
-80

query I rowsort
SELECT - 88 * - + 54 + 70
----
4822

query I rowsort
SELECT 20 * + - 57
----
-1140

onlyif mysql # DIV for integer division: 
query I rowsort label-8696
SELECT ALL + + 5 DIV 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL + + 5 / 32 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT COUNT( ALL 12 ) + - 53
----
-52

skipif mysql # not compatible
query I rowsort label-8697
SELECT COUNT ( ALL 12 ) + - 53
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT + ( 58 ) * ( + 81 ) * - - COUNT( * )
----
4698

skipif mysql # not compatible
query I rowsort label-8698
SELECT + ( 58 ) * ( + 81 ) * - - COUNT ( * )
----
4698

query II rowsort
SELECT DISTINCT 68 * + ( 48 ) * 35, 82 * - + 2 * - 87 col2
----
114240
14268

query I rowsort
SELECT DISTINCT - COALESCE ( - 37, + 58 ) AS col1
----
37

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8701
SELECT - 4 * 91 + + - 62 DIV + 10 - - 9 + + - 8 - + NULLIF ( 36, + CAST( NULL AS DECIMAL ) ) + 57 AS col1
----
-348

skipif mysql # not compatible
query I rowsort label-8701
SELECT - 4 * 91 + + - 62 / + 10 - - 9 + + - 8 - + NULLIF ( 36, + CAST ( NULL AS REAL ) ) + 57 AS col1
----
-348

query II rowsort
SELECT 68 * + + 60 AS col2, ( - 60 )
----
4080
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8703
SELECT ALL 52 * - ( + CAST( NULL AS SIGNED ) ) + - 74 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL 52 * - ( + CAST ( NULL AS INTEGER ) ) + - 74 + - COUNT ( * )
----
NULL

query I rowsort
SELECT 21 * - COALESCE ( + - ( 77 ), + - 21 ) AS col2
----
1617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8705
SELECT ALL 2 AS col2, - NULLIF ( + - COALESCE ( + + CASE - - NULLIF ( 62, + AVG ( DISTINCT + 44 ) ) WHEN + + COUNT( * ) + + 77 THEN + - 3 WHEN 2 * - - 6 THEN NULL WHEN CAST( NULL AS SIGNED ) DIV 24 + + - 27 THEN NULL ELSE NULL END, 21, + 36 * + 47 DIV + + 7 ), 9 - 17 ) AS col1
----
2
21

skipif mysql # not compatible
query II rowsort label-8705
SELECT ALL 2 AS col2, - NULLIF ( + - COALESCE ( + + CASE - - NULLIF ( 62, + AVG ( DISTINCT + 44 ) ) WHEN + + COUNT ( * ) + + 77 THEN + - 3 WHEN 2 * - - 6 THEN NULL WHEN CAST ( NULL AS INTEGER ) / 24 + + - 27 THEN NULL ELSE NULL END, 21, + 36 * + 47 / + + 7 ), 9 - 17 ) AS col1
----
2
21

query II rowsort
SELECT - 4 AS col0, - 40 - + - 73
----
-4
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT DISTINCT + CASE - + 15 WHEN - MAX( ALL - - 10 ) + - 62 THEN 1 * 40 ELSE NULL END + - - 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT + CASE - + 15 WHEN - MAX ( ALL - - 10 ) + - 62 THEN 1 * 40 ELSE NULL END + - - 72 AS col1
----
NULL

query I rowsort
SELECT ALL 82 + - 5 AS col2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8709
SELECT ALL ( - - 0 ) DIV + COALESCE ( - 25, + - 68, - 91 - SUM( ALL + - 61 ) + - 96 - - - CASE - COUNT( * ) WHEN - + 8 THEN + 89 * COUNT( * ) END ) * + 93 + - 64
----
-64

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL ( - - 0 ) / + COALESCE ( - 25, + - 68, - 91 - SUM ( ALL + - 61 ) + - 96 - - - CASE - COUNT ( * ) WHEN - + 8 THEN + 89 * COUNT ( * ) END ) * + 93 + - 64
----
-64

query I rowsort
SELECT 40 + 59 * 33
----
1987

query I rowsort
SELECT 46 * - 82
----
-3772

query II rowsort
SELECT 66 AS col2, 4
----
66
4

query I rowsort
SELECT 91 + - + 14 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT DISTINCT 81 + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-8714
SELECT DISTINCT 81 + COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT ALL 40 * - ( MAX( DISTINCT + - 66 ) ) AS col0
----
2640

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL 40 * - ( MAX ( DISTINCT + - 66 ) ) AS col0
----
2640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8716
SELECT ALL COUNT( * ) + - 22 DIV + ( - 52 ) + - 91 - + + 13 * + ( - COUNT( * ) ) DIV 39
----
-90

skipif mysql # not compatible
query I rowsort label-8716
SELECT ALL COUNT ( * ) + - 22 / + ( - 52 ) + - 91 - + + 13 * + ( - COUNT ( * ) ) / 39
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT - SUM( 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-8717
SELECT - SUM ( 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT DISTINCT 86 + + + 49 * MIN( + + 49 ) - 97 * - 30 AS col2
----
5397

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT 86 + + + 49 * MIN ( + + 49 ) - 97 * - 30 AS col2
----
5397

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT DISTINCT 45 + + - CASE + 19 WHEN - + COUNT( * ) THEN + + 43 WHEN + 75 THEN NULLIF ( - 16, + 96 * + COALESCE ( 15, COUNT( * ) ) * 7 ) ELSE - 38 * - 27 END * - + 21 AS col2
----
21591

skipif mysql # not compatible
query I rowsort label-8719
SELECT DISTINCT 45 + + - CASE + 19 WHEN - + COUNT ( * ) THEN + + 43 WHEN + 75 THEN NULLIF ( - 16, + 96 * + COALESCE ( 15, COUNT ( * ) ) * 7 ) ELSE - 38 * - 27 END * - + 21 AS col2
----
21591

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT DISTINCT - ( MIN( DISTINCT 11 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-8720
SELECT DISTINCT - ( MIN ( DISTINCT 11 ) )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT ALL ( - 48 ) * ( COUNT( * ) ) + + 52
----
4

skipif mysql # not compatible
query I rowsort label-8721
SELECT ALL ( - 48 ) * ( COUNT ( * ) ) + + 52
----
4

query I rowsort
SELECT 16 * - 73
----
-1168

query I rowsort
SELECT ALL + 82 * + 22 AS col0
----
1804

query I rowsort
SELECT ( 69 ) * - 84
----
-5796

onlyif mysql # DIV for integer division: 
query I rowsort label-8725
SELECT ALL 38 DIV 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL 38 / 65 AS col0
----
0

query I rowsort
SELECT 6 - 13
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT ALL + ( MIN( 48 ) )
----
48

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL + ( MIN ( 48 ) )
----
48

query I rowsort
SELECT ALL + 74 * - 45 AS col2
----
-3330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8729
SELECT ALL + CAST( - CASE - 61 WHEN + 37 / 86 THEN SUM( DISTINCT 59 ) ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL + CAST ( - CASE - 61 WHEN + 37 / 86 THEN SUM ( DISTINCT 59 ) ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT + 90 + + CASE 54 + ( + 61 ) WHEN CASE CASE 73 WHEN - 26 THEN NULL ELSE ( + 80 ) END WHEN - 66 + 67 THEN NULL WHEN 26 THEN 33 - 20 ELSE 3 + 96 END - 50 * - 94 THEN 83 ELSE NULL END * + 84
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8731
SELECT - COUNT( ALL 95 ) / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8731
SELECT - COUNT ( ALL 95 ) / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8732
SELECT ALL + ( - CAST( NULL AS DECIMAL ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL + ( - CAST ( NULL AS REAL ) ) col0
----
NULL

query I rowsort
SELECT - 75 * - 77 + - 0 * - 74
----
5775

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT 47 * - 15 + 89 * COUNT( * ) AS col0
----
-616

skipif mysql # not compatible
query I rowsort label-8734
SELECT 47 * - 15 + 89 * COUNT ( * ) AS col0
----
-616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8735
SELECT DISTINCT + CAST( - 99 AS SIGNED )
----
-99

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT + CAST ( - 99 AS INTEGER )
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8736
SELECT - COUNT( * ) + 54 DIV + 82
----
-1

skipif mysql # not compatible
query I rowsort label-8736
SELECT - COUNT ( * ) + 54 / + 82
----
-1

query I rowsort
SELECT - 36 + - 76 AS col2
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT DISTINCT NULLIF ( - COUNT( * ), 75 * + NULLIF ( - 76, - 61 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT NULLIF ( - COUNT ( * ), 75 * + NULLIF ( - 76, - 61 ) )
----
-1

query I rowsort
SELECT - 12 + COALESCE ( 28, + 14 + 49 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT ALL COUNT( 46 )
----
1

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL COUNT ( 46 )
----
1

query I rowsort
SELECT ALL 82 + + 10
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8742
SELECT - 88 + - COALESCE ( 38, + ( 90 ) * - 64, + 81 + 52 DIV + 4 ) AS col2
----
-126

skipif mysql # not compatible
query I rowsort label-8742
SELECT - 88 + - COALESCE ( 38, + ( 90 ) * - 64, + 81 + 52 / + 4 ) AS col2
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT + CASE + 61 WHEN + COUNT( * ) THEN 93 ELSE + ( 70 ) END + COUNT( 12 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-8743
SELECT + CASE + 61 WHEN + COUNT ( * ) THEN 93 ELSE + ( 70 ) END + COUNT ( 12 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT - SUM( DISTINCT + 22 ) col1
----
-22

skipif mysql # not compatible
query I rowsort label-8744
SELECT - SUM ( DISTINCT + 22 ) col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL + 39 * + COUNT( 61 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL + 39 * + COUNT ( 61 ) AS col1
----
39

query I rowsort
SELECT ALL - 85 + + 96
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT DISTINCT + 30 + + COUNT( - 25 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-8747
SELECT DISTINCT + 30 + + COUNT ( - 25 ) AS col0
----
31

query I rowsort
SELECT - COALESCE ( 7, + 26 * 70 - - 62, 46 ) * 51
----
-357

query I rowsort
SELECT ALL + 40 * 28
----
1120

query I rowsort
SELECT ALL - 85 + - 67
----
-152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8751
SELECT DISTINCT COUNT( DISTINCT - 48 ) DIV - 17
----
0

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT COUNT ( DISTINCT - 48 ) / - 17
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT ALL COUNT( 93 ) + 91 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL COUNT ( 93 ) + 91 AS col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8753
SELECT + CAST( - 17 AS SIGNED ) * + 76
----
-1292

skipif mysql # not compatible
query I rowsort label-8753
SELECT + CAST ( - 17 AS INTEGER ) * + 76
----
-1292

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT + COUNT( 8 ) * 99
----
99

skipif mysql # not compatible
query I rowsort label-8754
SELECT + COUNT ( 8 ) * 99
----
99

query I rowsort
SELECT ALL 80 - + ( 44 - + 99 )
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8756
SELECT DISTINCT COUNT( * ) DIV - CAST( 35 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT COUNT ( * ) / - CAST ( 35 AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8757
SELECT - - 70 + - COUNT( ALL 55 ) * - CAST( - 89 + 41 AS SIGNED ) col2
----
22

skipif mysql # not compatible
query I rowsort label-8757
SELECT - - 70 + - COUNT ( ALL 55 ) * - CAST ( - 89 + 41 AS INTEGER ) col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT - - COUNT( * ) - + CASE 2 WHEN + 87 THEN NULL WHEN - 61 + + 51 * + 54 THEN + 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8758
SELECT - - COUNT ( * ) - + CASE 2 WHEN + 87 THEN NULL WHEN - 61 + + 51 * + 54 THEN + 33 END
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 82, - 41 + - 66 ) * - 40
----
3280

query I rowsort
SELECT ALL 14 * 36
----
504

query I rowsort
SELECT + 1 * - 74
----
-74

query I rowsort
SELECT ALL + 49 * 44
----
2156

query I rowsort
SELECT + + 79 + ( - 22 )
----
57

query I rowsort
SELECT + - 5 * 84 AS col2
----
-420

query I rowsort
SELECT + - ( 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT - - 65 * + 84 + COUNT( * ) * 47 col1
----
5507

skipif mysql # not compatible
query I rowsort label-8766
SELECT - - 65 * + 84 + COUNT ( * ) * 47 col1
----
5507

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT + + ( SUM( 44 ) )
----
44

skipif mysql # not compatible
query I rowsort label-8767
SELECT + + ( SUM ( 44 ) )
----
44

query I rowsort
SELECT NULLIF ( 99, 99 + 36 )
----
99

query I rowsort
SELECT 13 * ( - 45 ) + 24
----
-561

query I rowsort
SELECT + 4 * 10
----
40

query I rowsort
SELECT - ( - 71 ) + - 29 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT DISTINCT + 21 * + 77 + CASE 24 + - ( + 50 ) WHEN 97 THEN + 95 * COUNT( * ) WHEN AVG ( ALL 36 ) + 82 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT + 21 * + 77 + CASE 24 + - ( + 50 ) WHEN 97 THEN + 95 * COUNT ( * ) WHEN AVG ( ALL 36 ) + 82 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8773
SELECT DISTINCT + - 34 * - COALESCE ( COALESCE ( 88, - 59, 63 * 93 ) + - 46, + 61 ) + CASE COALESCE ( 14, 91 + + 94 ) WHEN CAST( NULL AS DECIMAL ) * - 13 THEN - 87 WHEN 53 * COUNT( * ) THEN NULL WHEN SUM( ALL 6 ) * COALESCE ( COUNT( * ), 81 / ( 28 ), - CAST( NULL AS SIGNED ) - 86 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT + - 34 * - COALESCE ( COALESCE ( 88, - 59, 63 * 93 ) + - 46, + 61 ) + CASE COALESCE ( 14, 91 + + 94 ) WHEN CAST ( NULL AS REAL ) * - 13 THEN - 87 WHEN 53 * COUNT ( * ) THEN NULL WHEN SUM ( ALL 6 ) * COALESCE ( COUNT ( * ), 81 / ( 28 ), - CAST ( NULL AS INTEGER ) - 86 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT CASE COUNT( * ) WHEN SUM( + 66 ) THEN 92 WHEN 67 THEN 9 ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-8774
SELECT CASE COUNT ( * ) WHEN SUM ( + 66 ) THEN 92 WHEN 67 THEN 9 ELSE + COUNT ( * ) END
----
1

query I rowsort
SELECT ALL 45 * - 16 * 99 + - 51
----
-71331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8776
SELECT ALL - COUNT( * ) * - CASE WHEN NULL IN ( - COALESCE ( + COALESCE ( 56, 83 / + COUNT( * ) ), 59 + CASE - ( - 77 ) - 45 / CASE + ( COUNT( * ) ) - CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN NULL WHEN - ( ( 65 ) ) + + 8 THEN NULL ELSE 31 + + 2 END WHEN - ( - 32 ) THEN - 95 + 78 ELSE CASE 50 WHEN 88 * COUNT( + 61 ) THEN NULL WHEN - AVG ( + 25 ) / 35 THEN - ( 9 ) WHEN + COALESCE ( + ( - 40 ), + 20 + + 4 * COUNT( * ) ) THEN 50 END END * - 54 ) ) THEN 65 ELSE NULL END + NULLIF ( - 33 - - 52, + 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL - COUNT ( * ) * - CASE WHEN NULL IN ( - COALESCE ( + COALESCE ( 56, 83 / + COUNT ( * ) ), 59 + CASE - ( - 77 ) - 45 / CASE + ( COUNT ( * ) ) - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN NULL WHEN - ( ( 65 ) ) + + 8 THEN NULL ELSE 31 + + 2 END WHEN - ( - 32 ) THEN - 95 + 78 ELSE CASE 50 WHEN 88 * COUNT ( + 61 ) THEN NULL WHEN - AVG ( + 25 ) / 35 THEN - ( 9 ) WHEN + COALESCE ( + ( - 40 ), + 20 + + 4 * COUNT ( * ) ) THEN 50 END END * - 54 ) ) THEN 65 ELSE NULL END + NULLIF ( - 33 - - 52, + 81 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8777
SELECT COALESCE ( - 78, + 43 + - 91, ( 54 ) + 30 DIV + 18 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-8777
SELECT COALESCE ( - 78, + 43 + - 91, ( 54 ) + 30 / + 18 ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT ALL + NULLIF ( - 80, 97 + + CASE + COUNT( * ) WHEN 41 + - 20 THEN + COUNT( * ) WHEN + 11 THEN NULL END / - 74 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL + NULLIF ( - 80, 97 + + CASE + COUNT ( * ) WHEN 41 + - 20 THEN + COUNT ( * ) WHEN + 11 THEN NULL END / - 74 ) AS col2
----
-80

query I rowsort
SELECT COALESCE ( 13, 70 )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8780
SELECT - 65 DIV + - COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-8780
SELECT - 65 / + - COUNT ( * ) AS col0
----
65

query I rowsort
SELECT ALL 82 * 52 + - 26
----
4238

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT COUNT( + - 13 ) * 68 - ( 7 ) * 53 AS col2
----
-303

skipif mysql # not compatible
query I rowsort label-8782
SELECT COUNT ( + - 13 ) * 68 - ( 7 ) * 53 AS col2
----
-303

query I rowsort
SELECT - 82 * 12 * - 68
----
66912

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT ALL 88 * - - 88 + - MIN( 99 ) col1
----
7645

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL 88 * - - 88 + - MIN ( 99 ) col1
----
7645

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT - COUNT( DISTINCT - ( + 62 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8785
SELECT - COUNT ( DISTINCT - ( + 62 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8786
SELECT - 35 DIV + 53 col1
----
0

skipif mysql # not compatible
query I rowsort label-8786
SELECT - 35 / + 53 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT ALL COUNT( * ) * 45 * + COUNT( * ) + 52
----
97

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL COUNT ( * ) * 45 * + COUNT ( * ) + 52
----
97

query I rowsort
SELECT - 46 * + 88
----
-4048

query I rowsort
SELECT ALL + 8 * - 3 * 99 AS col1
----
-2376

query I rowsort
SELECT DISTINCT + 36 - - - 59
----
-23

query I rowsort
SELECT DISTINCT + 99 - - 86 AS col1
----
185

query I rowsort
SELECT DISTINCT ( - + 8 )
----
-8

query I rowsort
SELECT DISTINCT 28 - 64 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT ALL + COUNT( * ) * + ( 5 ) col2
----
5

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL + COUNT ( * ) * + ( 5 ) col2
----
5

query I rowsort
SELECT - NULLIF ( ( + 73 ), - 33 * + 31 ) col0
----
-73

query I rowsort
SELECT DISTINCT + 91 * - 99
----
-9009

query I rowsort
SELECT - 50 + - - 12 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT + 19 - 69 * + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-8798
SELECT + 19 - 69 * + COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT - 59 * + COUNT( DISTINCT 42 ) - 83 AS col1
----
-142

skipif mysql # not compatible
query I rowsort label-8799
SELECT - 59 * + COUNT ( DISTINCT 42 ) - 83 AS col1
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT + COUNT( * ) + 64 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-8800
SELECT + COUNT ( * ) + 64 AS col2
----
65

query I rowsort
SELECT DISTINCT - 11 * 14
----
-154

query I rowsort
SELECT DISTINCT - COALESCE ( 7, + 95 ) AS col2
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-8803
SELECT ALL + 89 DIV + 93 * 28 + 55
----
55

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL + 89 / + 93 * 28 + 55
----
55

query I rowsort
SELECT + 99 + + - 73 + 40 col0
----
66

query I rowsort
SELECT DISTINCT - - 73 AS col0
----
73

query I rowsort
SELECT DISTINCT - - COALESCE ( - + 60, + 93 + + 74 )
----
-60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8807
SELECT CAST( - 51 AS SIGNED ) DIV - 12 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8807
SELECT CAST ( - 51 AS INTEGER ) / - 12 AS col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8808
SELECT + 22 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-8808
SELECT + 22 / - 71
----
0

query I rowsort
SELECT + NULLIF ( - + 84, 25 * 61 + 96 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT DISTINCT + 95 + + + 52 * + COUNT( * )
----
147

skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT + 95 + + + 52 * + COUNT ( * )
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8811
SELECT ALL 19 * - + NULLIF ( 49, - CAST( + 67 AS SIGNED ) ) AS col0
----
-931

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL 19 * - + NULLIF ( 49, - CAST ( + 67 AS INTEGER ) ) AS col0
----
-931

onlyif mysql # DIV for integer division: 
query I rowsort label-8812
SELECT - 88 DIV - - 63
----
-1

skipif mysql # not compatible
query I rowsort label-8812
SELECT - 88 / - - 63
----
-1

query I rowsort
SELECT 51 * + COALESCE ( ( 98 ), - 88 ) AS col0
----
4998

query I rowsort
SELECT ALL 32 * 40
----
1280

query I rowsort
SELECT DISTINCT + 46 + 91 * + 61
----
5597

query I rowsort
SELECT ALL + 87 + 58
----
145

query I rowsort
SELECT 84 - + - 43 AS col2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT ALL - NULLIF ( 40, - 59 - 94 * 58 ) + 72 * - COUNT( * ) AS col1
----
-112

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL - NULLIF ( 40, - 59 - 94 * 58 ) + 72 * - COUNT ( * ) AS col1
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT - 9 * - 49 * NULLIF ( 86, + CASE 60 WHEN + COUNT( * ) THEN NULL WHEN - 62 * NULLIF ( + 78, + 43 + + COUNT( * ) * 37 ) THEN 50 - - 33 ELSE ( + 65 ) END ) - - 88 AS col0
----
38014

skipif mysql # not compatible
query I rowsort label-8819
SELECT - 9 * - 49 * NULLIF ( 86, + CASE 60 WHEN + COUNT ( * ) THEN NULL WHEN - 62 * NULLIF ( + 78, + 43 + + COUNT ( * ) * 37 ) THEN 50 - - 33 ELSE ( + 65 ) END ) - - 88 AS col0
----
38014

query I rowsort
SELECT ALL + 12 + + + 7
----
19

query II rowsort
SELECT 90 AS col0, 16
----
90
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT ALL 71 + + + MIN( ALL 77 )
----
148

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL 71 + + + MIN ( ALL 77 )
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT COUNT( * ) + + 93 + 29 * - COALESCE ( COUNT( * ), - 73 )
----
65

skipif mysql # not compatible
query I rowsort label-8823
SELECT COUNT ( * ) + + 93 + 29 * - COALESCE ( COUNT ( * ), - 73 )
----
65

query I rowsort
SELECT 85 * 61 + 47 AS col2
----
5232

query I rowsort
SELECT 85 - - 74 + - + 45 + + 40 * + 20
----
914

query II rowsort
SELECT + 11 col1, 0
----
11
0

query I rowsort
SELECT DISTINCT 0 * - + 98
----
0

query I rowsort
SELECT ALL - 85 - - 84 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8829
SELECT ALL 29 DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL 29 / 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT DISTINCT 64 * + - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT 64 * + - COUNT ( * )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT ( + MAX( - 14 ) ) * - 28 + 9
----
401

skipif mysql # not compatible
query I rowsort label-8831
SELECT ( + MAX ( - 14 ) ) * - 28 + 9
----
401

onlyif mysql # DIV for integer division: 
query I rowsort label-8832
SELECT 65 DIV - 34
----
-1

skipif mysql # not compatible
query I rowsort label-8832
SELECT 65 / - 34
----
-1

query I rowsort
SELECT 0 * - 23 AS col2
----
0

query I rowsort
SELECT DISTINCT - 68 - + - 10 AS col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8835
SELECT CAST( 73 AS SIGNED ) + + 16 col1
----
89

skipif mysql # not compatible
query I rowsort label-8835
SELECT CAST ( 73 AS INTEGER ) + + 16 col1
----
89

query II rowsort
SELECT - 39 AS col0, 8 AS col1
----
-39
8

query I rowsort
SELECT 19 + - 80 + 66 * - 6 * - 21
----
8255

query I rowsort
SELECT 40 + - ( - 99 ) AS col2
----
139

query I rowsort
SELECT + 56 * + 99
----
5544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8840
SELECT ALL CAST( + NULLIF ( + ( + 62 ), - 10 ) AS SIGNED ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL CAST ( + NULLIF ( + ( + 62 ), - 10 ) AS INTEGER ) AS col0
----
62

query II rowsort
SELECT 76, 82 AS col2
----
76
82

query I rowsort
SELECT ALL NULLIF ( - ( + - 24 ), - 20 ) AS col2
----
24

query I rowsort
SELECT - 79 + + 40
----
-39

query I rowsort
SELECT 50 * - + 19 AS col2
----
-950

query I rowsort
SELECT ALL - ( + 77 ) + 45
----
-32

query II rowsort
SELECT + 42 AS col2, + 77 + + 62 + 65
----
42
204

query II rowsort
SELECT - + 97, - 14 AS col1
----
-97
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT ALL + - CASE 28 WHEN 65 THEN + 20 * + SUM( COALESCE ( + 18, - COALESCE ( + 49, + ( 36 ) + - 54 ) + NULLIF ( - 79, 0 * CASE - 87 * + 20 WHEN - COALESCE ( + 24, - 77 * 97 + - 27 ) - 39 THEN 10 END ) ) ) + - COUNT( * ) ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL + - CASE 28 WHEN 65 THEN + 20 * + SUM ( COALESCE ( + 18, - COALESCE ( + 49, + ( 36 ) + - 54 ) + NULLIF ( - 79, 0 * CASE - 87 * + 20 WHEN - COALESCE ( + 24, - 77 * 97 + - 27 ) - 39 THEN 10 END ) ) ) + - COUNT ( * ) ELSE NULL END + - COUNT ( * )
----
NULL

query I rowsort
SELECT + ( - + 33 ) + + 14 - 93 AS col1
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT NULLIF ( - - 73, - + NULLIF ( + COUNT( * ), 68 * 93 + 47 ) ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-8850
SELECT NULLIF ( - - 73, - + NULLIF ( + COUNT ( * ), 68 * 93 + 47 ) ) AS col1
----
73

query I rowsort
SELECT 30 + + COALESCE ( + 34, + 1 ) * 11 AS col1
----
404

query I rowsort
SELECT ( - 98 ) + 23 * 27
----
523

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT - 47 * + MAX( - 99 ) * - 33 AS col2
----
-153549

skipif mysql # not compatible
query I rowsort label-8853
SELECT - 47 * + MAX ( - 99 ) * - 33 AS col2
----
-153549

onlyif mysql # DIV for integer division: 
query I rowsort label-8854
SELECT + 57 DIV + 78 + + - 4
----
-4

skipif mysql # not compatible
query I rowsort label-8854
SELECT + 57 / + 78 + + - 4
----
-4

query II rowsort
SELECT 75 AS col1, 87 * 27 AS col0
----
75
2349

query I rowsort
SELECT 99 + - 2 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT ALL 52 * + MIN( DISTINCT - 52 ) AS col2
----
-2704

skipif mysql # not compatible
query I rowsort label-8857
SELECT ALL 52 * + MIN ( DISTINCT - 52 ) AS col2
----
-2704

query I rowsort
SELECT - 82 * 83 + - 29 + - 3 col2
----
-6838

query II rowsort
SELECT DISTINCT - 98 + - - 86, 95 + + 98 - + 79 * + 87 AS col1
----
-12
-6680

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT MIN( 70 ) * 97
----
6790

skipif mysql # not compatible
query I rowsort label-8860
SELECT MIN ( 70 ) * 97
----
6790

onlyif mysql # DIV for integer division: 
query I rowsort label-8861
SELECT + 68 DIV + - 37 + 62
----
61

skipif mysql # not compatible
query I rowsort label-8861
SELECT + 68 / + - 37 + 62
----
61

query I rowsort
SELECT ALL 65 * + + ( - 1 ) col2
----
-65

query I rowsort
SELECT ALL 24 * 19 AS col2
----
456

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT DISTINCT 82 * - CASE ( - - 41 ) WHEN - COUNT( * ) THEN 27 WHEN - COUNT( * ) THEN NULL ELSE 83 * 81 END AS col2
----
-551286

skipif mysql # not compatible
query I rowsort label-8864
SELECT DISTINCT 82 * - CASE ( - - 41 ) WHEN - COUNT ( * ) THEN 27 WHEN - COUNT ( * ) THEN NULL ELSE 83 * 81 END AS col2
----
-551286

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT MAX( + 50 ) / - - 35 * - + CASE 32 WHEN 76 THEN + 61 END * - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8865
SELECT MAX ( + 50 ) / - - 35 * - + CASE 32 WHEN 76 THEN + 61 END * - 8
----
NULL

query I rowsort
SELECT ALL - 26 * - + 81 col2
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT ALL - SUM( ( + 55 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL - SUM ( ( + 55 ) )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8868
SELECT + 42 * - COUNT( * ) DIV - 74 - COUNT( * ) * + 44 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-8868
SELECT + 42 * - COUNT ( * ) / - 74 - COUNT ( * ) * + 44 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT CASE + 75 WHEN + 33 THEN NULL WHEN + COUNT( * ) THEN 69 + + COUNT( * ) END * 49 - + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT CASE + 75 WHEN + 33 THEN NULL WHEN + COUNT ( * ) THEN 69 + + COUNT ( * ) END * 49 - + 70 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT 10 * - - CASE + 66 WHEN 15 * 32 THEN NULL WHEN 85 + NULLIF ( ( ( - 80 ) ), - COUNT( * ) + COUNT( - COALESCE ( - 9, 51 ) ) ) THEN 8 * + ( + 57 ) ELSE 80 END
----
800

skipif mysql # not compatible
query I rowsort label-8870
SELECT 10 * - - CASE + 66 WHEN 15 * 32 THEN NULL WHEN 85 + NULLIF ( ( ( - 80 ) ), - COUNT ( * ) + COUNT ( - COALESCE ( - 9, 51 ) ) ) THEN 8 * + ( + 57 ) ELSE 80 END
----
800

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT CASE 93 WHEN + COUNT( * ) THEN NULL ELSE + 19 * + 38 END - 50
----
672

skipif mysql # not compatible
query I rowsort label-8871
SELECT CASE 93 WHEN + COUNT ( * ) THEN NULL ELSE + 19 * + 38 END - 50
----
672

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT - CASE AVG ( DISTINCT - + 30 ) WHEN - 21 THEN COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT - CASE AVG ( DISTINCT - + 30 ) WHEN - 21 THEN COUNT ( * ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 10 * - - ( + 98 ) * 56 AS col0
----
54880

query I rowsort
SELECT 93 * 3 * + + 91
----
25389

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8875
SELECT COUNT( * ) DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-8875
SELECT COUNT ( * ) / 68
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8876
SELECT DISTINCT COUNT( * ) * - 96 DIV - 40
----
2

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT COUNT ( * ) * - 96 / - 40
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT + MIN( + ( + 65 ) ) - - 78 - 62 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-8877
SELECT + MIN ( + ( + 65 ) ) - - 78 - 62 AS col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8878
SELECT DISTINCT - 94 + + CASE - 57 WHEN 37 * 44 THEN - 44 + 64 ELSE 69 * - 4 END * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT - 94 + + CASE - 57 WHEN 37 * 44 THEN - 44 + 64 ELSE 69 * - 4 END * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT ALL ( + + COUNT( * ) ) + + - 80 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL ( + + COUNT ( * ) ) + + - 80 AS col2
----
-79

query I rowsort
SELECT ALL 65 + - 83 + + 48 * ( + 98 ) AS col0
----
4686

query I rowsort
SELECT ALL - CASE 40 WHEN + - 17 - - 36 * + 78 THEN NULL WHEN - 70 THEN NULL WHEN - 87 THEN 56 + 88 END AS col0
----
NULL

query I rowsort
SELECT - + 1 + - + 24
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8883
SELECT - - 42 - + 61 AS col0, + 59 + CAST( 73 AS SIGNED ) * + 34
----
-19
2541

skipif mysql # not compatible
query II rowsort label-8883
SELECT - - 42 - + 61 AS col0, + 59 + CAST ( 73 AS INTEGER ) * + 34
----
-19
2541

query I rowsort
SELECT DISTINCT + 79 + 57 * + 19
----
1162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8885
SELECT ALL - - 13 + - - CAST( NULL AS SIGNED ) + + + COUNT( * ) * - COALESCE ( + 52, - 44 / - COUNT( ALL 82 * 98 ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL - - 13 + - - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * - COALESCE ( + 52, - 44 / - COUNT ( ALL 82 * 98 ) ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 46 + - + 6
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8887
SELECT - 79 DIV 53 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8887
SELECT - 79 / 53 AS col1
----
-1

query I rowsort
SELECT DISTINCT + 29 * 8 col0
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT - ( - - ( 24 ) ) + + COALESCE ( COUNT( * ), - 68, - 78 + - COUNT( DISTINCT 52 + - 71 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-8889
SELECT - ( - - ( 24 ) ) + + COALESCE ( COUNT ( * ), - 68, - 78 + - COUNT ( DISTINCT 52 + - 71 ) )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT DISTINCT - COUNT( * ) * + 44 * COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT - COUNT ( * ) * + 44 * COUNT ( * )
----
-44

query I rowsort
SELECT + - 79 - 49 AS col0
----
-128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8892
SELECT - 38 * - 92 * 15 * + 28 + COUNT( * ) DIV COUNT( * )
----
1468321

skipif mysql # not compatible
query I rowsort label-8892
SELECT - 38 * - 92 * 15 * + 28 + COUNT ( * ) / COUNT ( * )
----
1468321

query I rowsort
SELECT COALESCE ( ( - 30 ), + + 60 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT - COUNT( * ) * + 86 col1
----
-86

skipif mysql # not compatible
query I rowsort label-8894
SELECT - COUNT ( * ) * + 86 col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT NULLIF ( 78, 59 / + SUM( - - 25 ) * + 58 )
----
78

skipif mysql # not compatible
query I rowsort label-8895
SELECT NULLIF ( 78, 59 / + SUM ( - - 25 ) * + 58 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT ALL COUNT( * ) * 84 - + 99 col1
----
-15

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL COUNT ( * ) * 84 - + 99 col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT - COUNT( * ) - 98 - + 56 * + + 32 AS col2
----
-1891

skipif mysql # not compatible
query I rowsort label-8897
SELECT - COUNT ( * ) - 98 - + 56 * + + 32 AS col2
----
-1891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8898
SELECT DISTINCT + 12 * CAST( - + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT + 12 * CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT - 23 - - - MAX( ALL + 1 )
----
-24

skipif mysql # not compatible
query I rowsort label-8899
SELECT - 23 - - - MAX ( ALL + 1 )
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-8900
SELECT ALL + COUNT( * ) AS col0, - 64
----
1
-64

skipif mysql # not compatible
query II rowsort label-8900
SELECT ALL + COUNT ( * ) AS col0, - 64
----
1
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8901
SELECT + 38 * CAST( NULL AS SIGNED ) * COUNT( * ) + + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8901
SELECT + 38 * CAST ( NULL AS INTEGER ) * COUNT ( * ) + + 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT DISTINCT COUNT( * ) * COUNT( * ) * + - 61
----
-61

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * + - 61
----
-61

query I rowsort
SELECT - 87 + - 3 * + + 50 * + + 31 * - 53 * 14 col0
----
3450213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8904
SELECT - NULLIF ( + CAST( + COUNT( * ) AS SIGNED ), 47 ) * 7 * + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-8904
SELECT - NULLIF ( + CAST ( + COUNT ( * ) AS INTEGER ), 47 ) * 7 * + COUNT ( * )
----
-7

query I rowsort
SELECT + 52 * + - 55 AS col0
----
-2860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8906
SELECT + 70 - - CAST( + NULLIF ( 57, + CASE - COUNT( * ) WHEN SUM( ALL ( 2 ) ) THEN 18 WHEN 13 + 85 THEN NULL END ) AS SIGNED ) DIV + 25
----
72

skipif mysql # not compatible
query I rowsort label-8906
SELECT + 70 - - CAST ( + NULLIF ( 57, + CASE - COUNT ( * ) WHEN SUM ( ALL ( 2 ) ) THEN 18 WHEN 13 + 85 THEN NULL END ) AS INTEGER ) / + 25
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT + 46 - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-8907
SELECT + 46 - COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT - 57 * - - MIN( DISTINCT + ( + 29 ) )
----
-1653

skipif mysql # not compatible
query I rowsort label-8908
SELECT - 57 * - - MIN ( DISTINCT + ( + 29 ) )
----
-1653

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8909
SELECT - CAST( NULL AS DECIMAL ) + + 2 - - 31 + + - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8909
SELECT - CAST ( NULL AS REAL ) + + 2 - - 31 + + - 60 AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( + - 88, - - 49 ) * + 68
----
-5984

query I rowsort
SELECT ALL + 50 * 98 * + 48
----
235200

query I rowsort
SELECT ALL - 19 * + + 40 * - 84 * + + 17 + 63
----
1085343

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT DISTINCT - ( - 95 ) * COUNT( * ) * 84 + - 56 + + 77 AS col0
----
8001

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT - ( - 95 ) * COUNT ( * ) * 84 + - 56 + + 77 AS col0
----
8001

query I rowsort
SELECT DISTINCT 96 + 2
----
98

query I rowsort
SELECT ALL - 32 + + 37 * + 31 AS col2
----
1115

query II rowsort
SELECT DISTINCT 59 AS col1, - 25
----
59
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT DISTINCT 53 + - 72 * + - SUM( + 2 ) - - COUNT( - 4 )
----
198

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT 53 + - 72 * + - SUM ( + 2 ) - - COUNT ( - 4 )
----
198

query I rowsort
SELECT + 27 + - NULLIF ( - 77, - 46 + + AVG ( DISTINCT + ( 18 ) ) + + COALESCE ( ( 4 ), 99 ) )
----
104

query I rowsort
SELECT + + 77 * - 50 AS col1
----
-3850

query I rowsort
SELECT + + 72 + 41 AS col1
----
113

query I rowsort
SELECT DISTINCT + ( 53 ) AS col1
----
53

query I rowsort
SELECT DISTINCT 80 + - + 16 * - + 98 * - + 87
----
-136336

query I rowsort
SELECT ALL 85 + 88
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT + 68 * CASE + ( + COUNT( * ) ) WHEN - 60 THEN NULL WHEN 92 THEN - 25 ELSE + 30 + 60 END
----
6120

skipif mysql # not compatible
query I rowsort label-8924
SELECT + 68 * CASE + ( + COUNT ( * ) ) WHEN - 60 THEN NULL WHEN 92 THEN - 25 ELSE + 30 + 60 END
----
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT + - 94 + + + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-8925
SELECT + - 94 + + + COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT DISTINCT - COUNT( - 53 ) + - + 63 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT - COUNT ( - 53 ) + - + 63 AS col1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8927
SELECT + + CAST( NULL AS SIGNED ) + 66 * + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT + + CAST ( NULL AS INTEGER ) + 66 * + 79 AS col2
----
NULL

query I rowsort
SELECT ALL - 56 - - 92 col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT + - MAX( - - 7 ) * - ( + 25 ) AS col1
----
175

skipif mysql # not compatible
query I rowsort label-8929
SELECT + - MAX ( - - 7 ) * - ( + 25 ) AS col1
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8930
SELECT + - 45 * + NULLIF ( - + CAST( - 23 AS SIGNED ), - 4 ) + 68 AS col1
----
-967

skipif mysql # not compatible
query I rowsort label-8930
SELECT + - 45 * + NULLIF ( - + CAST ( - 23 AS INTEGER ), - 4 ) + 68 AS col1
----
-967

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT + 44 + - 18 * COUNT( * ) + ( COUNT( * ) ) * - 44 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-8931
SELECT + 44 + - 18 * COUNT ( * ) + ( COUNT ( * ) ) * - 44 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT - CASE - - 79 WHEN - 12 * - 9 * - 36 + 55 * - 92 THEN NULL WHEN CASE 18 WHEN - 30 + 83 THEN 34 + COUNT( * ) ELSE - 53 + 69 END THEN COALESCE ( - COALESCE ( 7, + 88 * - 84 ), COUNT( * ) * + AVG ( ALL + 44 ) ) WHEN + 38 * - 69 + 54 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8932
SELECT - CASE - - 79 WHEN - 12 * - 9 * - 36 + 55 * - 92 THEN NULL WHEN CASE 18 WHEN - 30 + 83 THEN 34 + COUNT ( * ) ELSE - 53 + 69 END THEN COALESCE ( - COALESCE ( 7, + 88 * - 84 ), COUNT ( * ) * + AVG ( ALL + 44 ) ) WHEN + 38 * - 69 + 54 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 27 + - 34 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT + 71 * - + MAX( - + ( 92 ) ) AS col2
----
6532

skipif mysql # not compatible
query I rowsort label-8934
SELECT + 71 * - + MAX ( - + ( 92 ) ) AS col2
----
6532

onlyif mysql # DIV for integer division: 
query I rowsort label-8935
SELECT ALL + 53 DIV 35 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL + 53 / 35 AS col0
----
1

query II rowsort
SELECT DISTINCT + 1 col2, - 81 AS col1
----
1
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8937
SELECT + 60 DIV - 35 + - + COUNT( * ) * 78 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-8937
SELECT + 60 / - 35 + - + COUNT ( * ) * 78 AS col1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8938
SELECT - 82 / - - CAST( NULL AS SIGNED ) * + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8938
SELECT - 82 / - - CAST ( NULL AS INTEGER ) * + 86 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT - 0 + ( 99 ) * COUNT( * ) * - 52 + + - 3 * + 14 AS col2
----
-5190

skipif mysql # not compatible
query I rowsort label-8939
SELECT - 0 + ( 99 ) * COUNT ( * ) * - 52 + + - 3 * + 14 AS col2
----
-5190

query II rowsort
SELECT ALL + 20, 88 col1
----
20
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT + 72 * - 40 + + - COUNT( * ) AS col0
----
-2881

skipif mysql # not compatible
query I rowsort label-8941
SELECT + 72 * - 40 + + - COUNT ( * ) AS col0
----
-2881

query I rowsort
SELECT - 29 * + 21
----
-609

query I rowsort
SELECT ALL + 63 * - + CASE + COALESCE ( - 26, + 94 / 26 * - 0 ) WHEN 32 THEN 68 ELSE 22 * - 79 END * + 45 AS col0
----
4927230

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT - ( + - CASE + + 53 WHEN - - 27 THEN NULL WHEN + 8 * - + ( - 10 ) / 96 THEN - 45 * 41 ELSE NULL END ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8944
SELECT - ( + - CASE + + 53 WHEN - - 27 THEN NULL WHEN + 8 * - + ( - 10 ) / 96 THEN - 45 * 41 ELSE NULL END ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8945
SELECT - COUNT( * ) DIV - - 17 + 38 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-8945
SELECT - COUNT ( * ) / - - 17 + 38 AS col0
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8946
SELECT DISTINCT + COUNT( * ) DIV - - COUNT( * ) + - + 3
----
-2

skipif mysql # not compatible
query I rowsort label-8946
SELECT DISTINCT + COUNT ( * ) / - - COUNT ( * ) + - + 3
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8947
SELECT ALL + 64, + COUNT( * ) DIV + NULLIF ( - 1, + - 9 ) + - 64 + 91 col0
----
64
26

skipif mysql # not compatible
query II rowsort label-8947
SELECT ALL + 64, + COUNT ( * ) / + NULLIF ( - 1, + - 9 ) + - 64 + 91 col0
----
64
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT DISTINCT + ( MIN( ALL 94 ) )
----
94

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT + ( MIN ( ALL 94 ) )
----
94

query I rowsort
SELECT 3 * - 6 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT ALL + MAX( DISTINCT 20 ) + - 25 * + 71 + + 51 AS col2
----
-1704

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL + MAX ( DISTINCT 20 ) + - 25 * + 71 + + 51 AS col2
----
-1704

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT DISTINCT - SUM( ALL - 33 )
----
33

skipif mysql # not compatible
query I rowsort label-8951
SELECT DISTINCT - SUM ( ALL - 33 )
----
33

query I rowsort
SELECT ALL - ( 10 ) + + - 1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT + ( - - ( + - MIN( ALL - 70 ) ) ) * + - 75 * - + COALESCE ( 16, 56 * NULLIF ( + 62, 51 * 13 ) + 86 ) + COUNT( * ) - 60
----
83941

skipif mysql # not compatible
query I rowsort label-8953
SELECT + ( - - ( + - MIN ( ALL - 70 ) ) ) * + - 75 * - + COALESCE ( 16, 56 * NULLIF ( + 62, 51 * 13 ) + 86 ) + COUNT ( * ) - 60
----
83941

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT NULLIF ( + 17, COUNT( * ) ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-8954
SELECT NULLIF ( + 17, COUNT ( * ) ) AS col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8955
SELECT ALL + 45 DIV + 38 col1
----
1

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL + 45 / + 38 col1
----
1

query I rowsort
SELECT 5 - - 60
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8957
SELECT - + 48 AS col1, - 49 / - + 57 * + CAST( NULL AS SIGNED ), + 87 - + + 25 * 92 col2
----
-48
NULL
-2213

skipif mysql # not compatible
query III rowsort label-8957
SELECT - + 48 AS col1, - 49 / - + 57 * + CAST ( NULL AS INTEGER ), + 87 - + + 25 * 92 col2
----
-48
NULL
-2213

onlyif mysql # aggregate syntax: 
query II rowsort label-8958
SELECT - - COUNT( * ), - COUNT( * ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-8958
SELECT - - COUNT ( * ), - COUNT ( * ) AS col2
----
1
-1

query I rowsort
SELECT - 16 + 41 AS col2
----
25

query I rowsort
SELECT 95 * - + 39 * - 69 + + 62 col0
----
255707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8961
SELECT - CAST( NULL AS SIGNED ) * + MAX( DISTINCT + - 61 ) + - ( 10 ) + 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8961
SELECT - CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT + - 61 ) + - ( 10 ) + 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT ALL ( + - COUNT( * ) ) + + 90 * - 55 AS col2
----
-4951

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL ( + - COUNT ( * ) ) + + 90 * - 55 AS col2
----
-4951

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8963
SELECT - CASE 43 WHEN 81 + - + 45 + + - 30 + + ( 74 ) * ( 40 + 47 ) THEN NULLIF ( - 21, CAST( NULL AS SIGNED ) / 25 ) ELSE - 63 END AS col1
----
63

skipif mysql # not compatible
query I rowsort label-8963
SELECT - CASE 43 WHEN 81 + - + 45 + + - 30 + + ( 74 ) * ( 40 + 47 ) THEN NULLIF ( - 21, CAST ( NULL AS INTEGER ) / 25 ) ELSE - 63 END AS col1
----
63

query I rowsort
SELECT ALL - 51 * - 43 + 5
----
2198

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT ALL - COUNT( DISTINCT + 96 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL - COUNT ( DISTINCT + 96 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT + 66 - ( COUNT( * ) ) * 4 + 6 - - - 76 * ( - COALESCE ( MAX( ALL - 48 ), + 9 ) )
----
-3580

skipif mysql # not compatible
query I rowsort label-8966
SELECT + 66 - ( COUNT ( * ) ) * 4 + 6 - - - 76 * ( - COALESCE ( MAX ( ALL - 48 ), + 9 ) )
----
-3580

query I rowsort
SELECT ALL + 60 * + - ( - + 83 ) AS col0
----
4980

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8968
SELECT + 28 AS col1, 52 DIV - CAST( + 69 AS SIGNED )
----
28
0

skipif mysql # not compatible
query II rowsort label-8968
SELECT + 28 AS col1, 52 / - CAST ( + 69 AS INTEGER )
----
28
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8969
SELECT SUM( ALL + 55 ) - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8969
SELECT SUM ( ALL + 55 ) - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - - ( 47 ) AS col2
----
47

query I rowsort
SELECT - 32 + - - 90
----
58

query I rowsort
SELECT 43 * 63 - 53 AS col0
----
2656

query II rowsort
SELECT - + 30, + ( - - 40 ) AS col1
----
-30
40

onlyif mysql # aggregate syntax: 
query III rowsort label-8974
SELECT ALL 23 AS col2, - ( + COUNT( * ) ) + - + 34 AS col0, - 25 - + 23
----
23
-35
-48

skipif mysql # not compatible
query III rowsort label-8974
SELECT ALL 23 AS col2, - ( + COUNT ( * ) ) + - + 34 AS col0, - 25 - + 23
----
23
-35
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL MIN( + + 23 ) - - - 99 - + 61
----
-137

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL MIN ( + + 23 ) - - - 99 - + 61
----
-137

query I rowsort
SELECT 23 * - COALESCE ( - - 76, 8, - - NULLIF ( - - ( - 20 ), + 45 ) ) * 90 col1
----
-157320

onlyif mysql # DIV for integer division: 
query I rowsort label-8977
SELECT ALL ( - NULLIF ( - COALESCE ( - 77, + - 59 * + + 65 DIV 20 ), - 78 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL ( - NULLIF ( - COALESCE ( - 77, + - 59 * + + 65 / 20 ), - 78 ) )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8978
SELECT DISTINCT CASE 69 WHEN + AVG ( DISTINCT + 96 ) * - 51 THEN NULL WHEN - COALESCE ( + 90, + COUNT( * ) * CAST( - 68 * + 56 AS SIGNED ) - + 91 ) + 40 * - 11 THEN + 64 WHEN 49 * 19 THEN NULL END * - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT CASE 69 WHEN + AVG ( DISTINCT + 96 ) * - 51 THEN NULL WHEN - COALESCE ( + 90, + COUNT ( * ) * CAST ( - 68 * + 56 AS INTEGER ) - + 91 ) + 40 * - 11 THEN + 64 WHEN 49 * 19 THEN NULL END * - 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT ALL 65 * + + COUNT( * ) * + 30 AS col1
----
1950

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL 65 * + + COUNT ( * ) * + 30 AS col1
----
1950

query II rowsort
SELECT 94 * + + 92 AS col2, + 88 col1
----
8648
88

query I rowsort
SELECT 65 + + 11
----
76

query I rowsort
SELECT DISTINCT 0 * + 62 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8983
SELECT + COUNT( * ) * + + COUNT( * ) DIV COUNT( * ) + - SUM( ALL 72 )
----
-71

skipif mysql # not compatible
query I rowsort label-8983
SELECT + COUNT ( * ) * + + COUNT ( * ) / COUNT ( * ) + - SUM ( ALL 72 )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8984
SELECT MAX( 5 ) DIV + + 3 - - + 35 + + - 13
----
23

skipif mysql # not compatible
query I rowsort label-8984
SELECT MAX ( 5 ) / + + 3 - - + 35 + + - 13
----
23

query I rowsort
SELECT 19 * 27
----
513

query I rowsort
SELECT ( - 77 ) - - 76
----
-1

query II rowsort
SELECT DISTINCT - 87 * + ( + NULLIF ( - - 44, + + 93 ) ) AS col2, 93
----
-3828
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT ALL + ( - CASE - 43 WHEN - CAST( 45 AS SIGNED ) + - 75 THEN - - ( 93 ) * + 16 WHEN + 85 + + 77 THEN 9 END ) + 38 * - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL + ( - CASE - 43 WHEN - CAST ( 45 AS INTEGER ) + - 75 THEN - - ( 93 ) * + 16 WHEN + 85 + + 77 THEN 9 END ) + 38 * - 70
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8989
SELECT 28 + - + 61, 58 * - COUNT( * ) + + SUM( DISTINCT 6 ) + COALESCE ( + 69, 63 ) + - 30 AS col1
----
-33
-13

skipif mysql # not compatible
query II rowsort label-8989
SELECT 28 + - + 61, 58 * - COUNT ( * ) + + SUM ( DISTINCT 6 ) + COALESCE ( + 69, 63 ) + - 30 AS col1
----
-33
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT ALL + COUNT( * ) + - 36
----
-35

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL + COUNT ( * ) + - 36
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8991
SELECT - NULLIF ( + + 70, - 93 ) * - COUNT( * ) + + CAST( + + 26 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-8991
SELECT - NULLIF ( + + 70, - 93 ) * - COUNT ( * ) + + CAST ( + + 26 AS INTEGER )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8992
SELECT 44 - + 58 * - CASE - 71 WHEN - CAST( - 84 AS SIGNED ) * + - MIN( 39 ) THEN NULL ELSE + ( - 82 ) * + 43 END * + ( + 38 ) AS col2
----
-7771260

skipif mysql # not compatible
query I rowsort label-8992
SELECT 44 - + 58 * - CASE - 71 WHEN - CAST ( - 84 AS INTEGER ) * + - MIN ( 39 ) THEN NULL ELSE + ( - 82 ) * + 43 END * + ( + 38 ) AS col2
----
-7771260

query I rowsort
SELECT - 36 * + 57 + + 10 + 26 AS col2
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT - CASE + 76 WHEN - - 37 THEN - 47 WHEN + + 45 THEN + - COUNT( * ) * + 4 END - - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8994
SELECT - CASE + 76 WHEN - - 37 THEN - 47 WHEN + + 45 THEN + - COUNT ( * ) * + 4 END - - 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT ALL - MAX( + 70 ) - 8
----
-78

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL - MAX ( + 70 ) - 8
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8996
SELECT DISTINCT - - ( 99 ) AS col2, 3 + + - COUNT( * ) DIV 1 * 3 col0
----
99
0

skipif mysql # not compatible
query II rowsort label-8996
SELECT DISTINCT - - ( 99 ) AS col2, 3 + + - COUNT ( * ) / 1 * 3 col0
----
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT DISTINCT ( - 2 ) - - - COUNT( ALL 42 ) - 60 * - MAX( DISTINCT + 16 ) * 32 AS col2
----
30717

skipif mysql # not compatible
query I rowsort label-8997
SELECT DISTINCT ( - 2 ) - - - COUNT ( ALL 42 ) - 60 * - MAX ( DISTINCT + 16 ) * 32 AS col2
----
30717

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT DISTINCT MIN( - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-8998
SELECT DISTINCT MIN ( - 75 )
----
-75

query I rowsort
SELECT + 64 + + 12
----
76

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9000
SELECT ( + CAST( ( + CAST( NULL AS SIGNED ) ) AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9000
SELECT ( + CAST ( ( + CAST ( NULL AS INTEGER ) ) AS REAL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9001
SELECT ALL - - 65 DIV - + 14 - + 1 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL - - 65 / - + 14 - + 1 AS col0
----
-5

query I rowsort
SELECT 99 + 19 + + 55 * 3 * 69 AS col1
----
11503

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT ALL ( NULLIF ( COUNT( * ), + 83 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL ( NULLIF ( COUNT ( * ), + 83 ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9004
SELECT + 53 DIV + 85 * + 67 DIV - - 21
----
0

skipif mysql # not compatible
query I rowsort label-9004
SELECT + 53 / + 85 * + 67 / - - 21
----
0

query I rowsort
SELECT DISTINCT - + 23 * 44
----
-1012

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9006
SELECT 68 + + COUNT( * ) + 50 * - + NULLIF ( 96, + - 81 ) + + ( 19 ) - - 57 DIV 74
----
-4712

skipif mysql # not compatible
query I rowsort label-9006
SELECT 68 + + COUNT ( * ) + 50 * - + NULLIF ( 96, + - 81 ) + + ( 19 ) - - 57 / 74
----
-4712

query I rowsort
SELECT DISTINCT + 81 * - 76 col0
----
-6156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9008
SELECT 65 + 47 DIV + COALESCE ( - + 27, + COUNT( * ), + - 27 ) + + COUNT( * ) * + 36
----
100

skipif mysql # not compatible
query I rowsort label-9008
SELECT 65 + 47 / + COALESCE ( - + 27, + COUNT ( * ), + - 27 ) + + COUNT ( * ) * + 36
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9009
SELECT ALL - 63 + - NULLIF ( - + CASE - - 32 WHEN - - MAX( 89 ) THEN 58 WHEN + NULLIF ( 42, - ( CAST( + ( 69 ) AS SIGNED ) ) ) + + 50 * 46 THEN 12 * + CASE CASE + 40 WHEN + 39 THEN + 78 * 33 END WHEN - 52 * 86 THEN 51 * ( 1 ) WHEN COUNT( * ) THEN NULL END END, - COALESCE ( + 8, CAST( ( COUNT( * ) ) AS SIGNED ), 43 + - 58 ) * CASE + COUNT( * ) WHEN + 90 + COALESCE ( 7 + + 12, COUNT( * ) ) THEN 65 ELSE ( + COUNT( * ) ) / COUNT( * ) END + - NULLIF ( - 13 + CAST( NULL AS SIGNED ), - 40 - 95 / 85 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL - 63 + - NULLIF ( - + CASE - - 32 WHEN - - MAX ( 89 ) THEN 58 WHEN + NULLIF ( 42, - ( CAST ( + ( 69 ) AS INTEGER ) ) ) + + 50 * 46 THEN 12 * + CASE CASE + 40 WHEN + 39 THEN + 78 * 33 END WHEN - 52 * 86 THEN 51 * ( 1 ) WHEN COUNT ( * ) THEN NULL END END, - COALESCE ( + 8, CAST ( ( COUNT ( * ) ) AS INTEGER ), 43 + - 58 ) * CASE + COUNT ( * ) WHEN + 90 + COALESCE ( 7 + + 12, COUNT ( * ) ) THEN 65 ELSE ( + COUNT ( * ) ) / COUNT ( * ) END + - NULLIF ( - 13 + CAST ( NULL AS INTEGER ), - 40 - 95 / 85 ) ) AS col2
----
NULL

query I rowsort
SELECT 10 + - - 61 * - 4 AS col0
----
-234

onlyif mysql # aggregate syntax: 
query II rowsort label-9011
SELECT 39 AS col1, COUNT( - + 27 ) AS col1
----
39
1

skipif mysql # not compatible
query II rowsort label-9011
SELECT 39 AS col1, COUNT ( - + 27 ) AS col1
----
39
1

query I rowsort
SELECT NULLIF ( 21, 61 ) + 54 AS col0
----
75

query I rowsort
SELECT 93 * + 51
----
4743

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT 91 * 7 * + 10 * - CASE COUNT( * ) WHEN 37 THEN - 30 END / + COUNT( * ) * 58 + 98 + - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9014
SELECT 91 * 7 * + 10 * - CASE COUNT ( * ) WHEN 37 THEN - 30 END / + COUNT ( * ) * 58 + 98 + - 23 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9015
SELECT - 13 DIV - 59 + 70 col0, CASE - 61 WHEN - 79 THEN NULL WHEN CASE 18 WHEN 37 + - 6 DIV 89 THEN 99 + + COUNT( * ) END + COUNT( * ) THEN - ( + 82 ) * + CAST( - 43 AS SIGNED ) ELSE 77 END * + 37 AS col0
----
70
2849

skipif mysql # not compatible
query II rowsort label-9015
SELECT - 13 / - 59 + 70 col0, CASE - 61 WHEN - 79 THEN NULL WHEN CASE 18 WHEN 37 + - 6 / 89 THEN 99 + + COUNT ( * ) END + COUNT ( * ) THEN - ( + 82 ) * + CAST ( - 43 AS INTEGER ) ELSE 77 END * + 37 AS col0
----
70
2849

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9016
SELECT ALL 81 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL 81 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 87 + 18
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT ALL 99 * - + 12 * + - COUNT( * )
----
1188

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL 99 * - + 12 * + - COUNT ( * )
----
1188

query II rowsort
SELECT + 77 AS col0, + 85 * - 85 * + 89 - - 98 AS col2
----
77
-642927

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT + MAX( ALL - - 26 )
----
26

skipif mysql # not compatible
query I rowsort label-9020
SELECT + MAX ( ALL - - 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT + NULLIF ( 39, - - 83 - COALESCE ( - COUNT( * ), 53 + + 30 + + 84, + 50 * + ( 28 ) + COALESCE ( + 45, 57 ) ) )
----
39

skipif mysql # not compatible
query I rowsort label-9021
SELECT + NULLIF ( 39, - - 83 - COALESCE ( - COUNT ( * ), 53 + + 30 + + 84, + 50 * + ( 28 ) + COALESCE ( + 45, 57 ) ) )
----
39

query II rowsort
SELECT ALL 45 * ( - 75 ) AS col2, - 84 * - 75 + 48
----
-3375
6348

onlyif mysql # DIV for integer division: 
query I rowsort label-9023
SELECT + 51 DIV + - 48
----
-1

skipif mysql # not compatible
query I rowsort label-9023
SELECT + 51 / + - 48
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT 28 * + + COUNT( * ) + - ( 24 ) + + 7 + - 68 * - - COUNT( * ) + SUM( + 32 ) col0
----
-25

skipif mysql # not compatible
query I rowsort label-9024
SELECT 28 * + + COUNT ( * ) + - ( 24 ) + + 7 + - 68 * - - COUNT ( * ) + SUM ( + 32 ) col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9025
SELECT CASE + 78 WHEN + 40 + + ( + + 28 ) THEN NULL WHEN - CAST( + 5 AS SIGNED ) THEN 68 WHEN 58 THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9025
SELECT CASE + 78 WHEN + 40 + + ( + + 28 ) THEN NULL WHEN - CAST ( + 5 AS INTEGER ) THEN 68 WHEN 58 THEN NULL ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9026
SELECT ALL + + COALESCE ( + 23, + + 48 * - + CAST( 31 AS SIGNED ) + - + COUNT( * ), - 37 - + + 51 + ( + NULLIF ( 98, - 26 * + 30 ) ) DIV + 56 )
----
23

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL + + COALESCE ( + 23, + + 48 * - + CAST ( 31 AS INTEGER ) + - + COUNT ( * ), - 37 - + + 51 + ( + NULLIF ( 98, - 26 * + 30 ) ) / + 56 )
----
23

query I rowsort
SELECT ALL + ( - 5 ) AS col1
----
-5

query I rowsort
SELECT + 7 * + 40 AS col2
----
280

onlyif mysql # aggregate syntax: 
query II rowsort label-9029
SELECT ( + ( - - 61 ) ), - COUNT( * ) + + - COUNT( 98 ) AS col0
----
61
-2

skipif mysql # not compatible
query II rowsort label-9029
SELECT ( + ( - - 61 ) ), - COUNT ( * ) + + - COUNT ( 98 ) AS col0
----
61
-2

query I rowsort
SELECT ALL + - 17 * + 79 AS col2
----
-1343

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT ALL + COUNT( * ) * + + 34
----
34

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL + COUNT ( * ) * + + 34
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT + - COUNT( * ) * - - 94 + + 48
----
-46

skipif mysql # not compatible
query I rowsort label-9032
SELECT + - COUNT ( * ) * - - 94 + + 48
----
-46

query II rowsort
SELECT DISTINCT + + 13, + 2 AS col0
----
13
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9034
SELECT - + 32 * - 71 * + 80 + - - CAST( + 83 AS SIGNED )
----
181843

skipif mysql # not compatible
query I rowsort label-9034
SELECT - + 32 * - 71 * + 80 + - - CAST ( + 83 AS INTEGER )
----
181843

query I rowsort
SELECT + - 63 - - 59 AS col2
----
-4

query II rowsort
SELECT - COALESCE ( - 68, 82 ), + 76 + 22 AS col2
----
68
98

query II rowsort
SELECT - 91, 81 AS col2
----
-91
81

query I rowsort
SELECT + - 72 * + 39
----
-2808

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT ALL - COUNT( - 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL - COUNT ( - 49 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9040
SELECT DISTINCT - COUNT( * ) AS col0, COUNT( * ) + + ( - + COUNT( DISTINCT - 24 ) )
----
-1
0

skipif mysql # not compatible
query II rowsort label-9040
SELECT DISTINCT - COUNT ( * ) AS col0, COUNT ( * ) + + ( - + COUNT ( DISTINCT - 24 ) )
----
-1
0

query I rowsort
SELECT - 50 - - - 49
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT ALL 20 * + ( COUNT( * ) ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL 20 * + ( COUNT ( * ) ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-9043
SELECT - 59 * 87 * - 98 col1, + COUNT( * ) col1
----
503034
1

skipif mysql # not compatible
query II rowsort label-9043
SELECT - 59 * 87 * - 98 col1, + COUNT ( * ) col1
----
503034
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9044
SELECT - MIN( - ( + 69 ) ) - + - ( - - 56 ) + - - COUNT( ALL + 50 ) + 75 DIV 20
----
129

skipif mysql # not compatible
query I rowsort label-9044
SELECT - MIN ( - ( + 69 ) ) - + - ( - - 56 ) + - - COUNT ( ALL + 50 ) + 75 / 20
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT DISTINCT CASE + - 19 WHEN 76 * 31 THEN 90 WHEN + + COUNT( ALL + + 90 ) THEN - + 51 * + 5 - 75 WHEN - COUNT( * ) THEN - 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT CASE + - 19 WHEN 76 * 31 THEN 90 WHEN + + COUNT ( ALL + + 90 ) THEN - + 51 * + 5 - 75 WHEN - COUNT ( * ) THEN - 92 END
----
NULL

query I rowsort
SELECT ALL + 25 + - + 65
----
-40

query II rowsort
SELECT ALL + 32 + - + 39, 76 AS col0
----
-7
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9048
SELECT DISTINCT - 77 + - ( + + 63 ) + - + 28 DIV + + 84
----
-140

skipif mysql # not compatible
query I rowsort label-9048
SELECT DISTINCT - 77 + - ( + + 63 ) + - + 28 / + + 84
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT DISTINCT + MIN( 83 ) * SUM( 39 ) + - 46
----
3191

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT + MIN ( 83 ) * SUM ( 39 ) + - 46
----
3191

query I rowsort
SELECT ALL - 32 + - ( - 80 )
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9051
SELECT - 87 DIV COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-9051
SELECT - 87 / COUNT ( * )
----
-87

query I rowsort
SELECT DISTINCT ( 75 ) + - 22 * - - 1 AS col2
----
53

query I rowsort
SELECT DISTINCT ( - 17 ) AS col0
----
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-9054
SELECT ALL + 66 DIV 68 + 46 DIV + 6 AS col2, - 8 * 74 AS col1
----
7
-592

skipif mysql # not compatible
query II rowsort label-9054
SELECT ALL + 66 / 68 + 46 / + 6 AS col2, - 8 * 74 AS col1
----
7
-592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9055
SELECT CAST( + 54 AS SIGNED ) * - 4 + COUNT( * ) + 95 + + 54 + - - 8 + + 73 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-9055
SELECT CAST ( + 54 AS INTEGER ) * - 4 + COUNT ( * ) + 95 + + 54 + - - 8 + + 73 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT - 84 * - 21 + - NULLIF ( COUNT( * ), 6 )
----
1763

skipif mysql # not compatible
query I rowsort label-9056
SELECT - 84 * - 21 + - NULLIF ( COUNT ( * ), 6 )
----
1763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9057
SELECT CAST( - 21 AS SIGNED ) col0
----
-21

skipif mysql # not compatible
query I rowsort label-9057
SELECT CAST ( - 21 AS INTEGER ) col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT + COALESCE ( SUM( ALL + + 50 ), - 61, MAX( NULLIF ( - 87, + 85 + - 60 ) ) + - 76 )
----
50

skipif mysql # not compatible
query I rowsort label-9058
SELECT + COALESCE ( SUM ( ALL + + 50 ), - 61, MAX ( NULLIF ( - 87, + 85 + - 60 ) ) + - 76 )
----
50

query I rowsort
SELECT - 45 * - + 82 * 25 AS col0
----
92250

onlyif mysql # DIV for integer division: 
query I rowsort label-9060
SELECT DISTINCT + 56 DIV + 26 - + 10 - + 35 col0
----
-43

skipif mysql # not compatible
query I rowsort label-9060
SELECT DISTINCT + 56 / + 26 - + 10 - + 35 col0
----
-43

query I rowsort
SELECT ALL 35 * + 35
----
1225

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT 27 * + + 9 + - 4 + + COUNT( * ) * - + 76 AS col1
----
163

skipif mysql # not compatible
query I rowsort label-9062
SELECT 27 * + + 9 + - 4 + + COUNT ( * ) * - + 76 AS col1
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT + 69 * + ( - COUNT( * ) ) + + 46 + - - 58 + - + COUNT( * ) * - 22 * + 69 + + 21 AS col0
----
1574

skipif mysql # not compatible
query I rowsort label-9063
SELECT + 69 * + ( - COUNT ( * ) ) + + 46 + - - 58 + - + COUNT ( * ) * - 22 * + 69 + + 21 AS col0
----
1574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9064
SELECT + + CAST( + 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-9064
SELECT + + CAST ( + 20 AS INTEGER )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT + - 78 + + - 57 + + COALESCE ( + 33, + - COUNT( * ) ) - + 56 * + 45
----
-2622

skipif mysql # not compatible
query I rowsort label-9065
SELECT + - 78 + + - 57 + + COALESCE ( + 33, + - COUNT ( * ) ) - + 56 * + 45
----
-2622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9066
SELECT - - CASE + NULLIF ( - CAST( NULL AS SIGNED ), 34 ) WHEN + 36 THEN + + 5 * - 56 ELSE - 61 + - 86 END + + 84 * + ( + 55 )
----
4473

skipif mysql # not compatible
query I rowsort label-9066
SELECT - - CASE + NULLIF ( - CAST ( NULL AS INTEGER ), 34 ) WHEN + 36 THEN + + 5 * - 56 ELSE - 61 + - 86 END + + 84 * + ( + 55 )
----
4473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9067
SELECT - CAST( + + 39 AS SIGNED ) * COUNT( * ) * - + 3 * 88 - 67 + + CAST( NULL AS DECIMAL ) * - CAST( 26 AS SIGNED ) + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-9067
SELECT - CAST ( + + 39 AS INTEGER ) * COUNT ( * ) * - + 3 * 88 - 67 + + CAST ( NULL AS REAL ) * - CAST ( 26 AS INTEGER ) + 74
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9068
SELECT + + 16 * - CAST( NULL AS SIGNED ) - 3 + 72 + + SUM( - + 63 ) * + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9068
SELECT + + 16 * - CAST ( NULL AS INTEGER ) - 3 + 72 + + SUM ( - + 63 ) * + 18 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9069
SELECT + + 59 * + 56 + - - ( - + 77 ) - - COUNT( * ) / + CASE WHEN NOT NULL IS NULL THEN - 31 END * - 90 + + CAST( 41 AS SIGNED ) + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-9069
SELECT + + 59 * + 56 + - - ( - + 77 ) - - COUNT ( * ) / + CASE WHEN NOT NULL IS NULL THEN - 31 END * - 90 + + CAST ( 41 AS INTEGER ) + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT + COUNT( - 6 )
----
1

skipif mysql # not compatible
query I rowsort label-9070
SELECT + COUNT ( - 6 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT ALL COUNT( DISTINCT + + 51 ) * + + 67 + 9 + - + 28 + 46 + + 46 AS col2
----
140

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL COUNT ( DISTINCT + + 51 ) * + + 67 + 9 + - + 28 + 46 + + 46 AS col2
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT + COALESCE ( + + 49, + CASE 45 WHEN SUM( - 50 ) * + COALESCE ( + 43, + 41 ) + + 57 THEN 39 * 34 END ) + COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-9072
SELECT + COALESCE ( + + 49, + CASE 45 WHEN SUM ( - 50 ) * + COALESCE ( + 43, + 41 ) + + 57 THEN 39 * 34 END ) + COUNT ( * ) AS col2
----
50

query I rowsort
SELECT 76 * + 72 + - 80
----
5392

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT + + SUM( ALL + 4 ) * 64
----
256

skipif mysql # not compatible
query I rowsort label-9074
SELECT + + SUM ( ALL + 4 ) * 64
----
256

onlyif mysql # aggregate syntax: 
query II rowsort label-9075
SELECT + 10 + + - ( - 39 ) * + SUM( DISTINCT - 2 ), 0 AS col2
----
-68
0

skipif mysql # not compatible
query II rowsort label-9075
SELECT + 10 + + - ( - 39 ) * + SUM ( DISTINCT - 2 ), 0 AS col2
----
-68
0

query I rowsort
SELECT ALL 36 * - 58 * + - 89 col1
----
185832

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT 23 + - 63 - - MAX( - - 21 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-9077
SELECT 23 + - 63 - - MAX ( - - 21 ) AS col2
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9078
SELECT DISTINCT + COALESCE ( 23, + + COALESCE ( - SUM( ALL ( - 85 ) ), - ( 56 ) - - 39 DIV - - COUNT( * ) + - 95 * - 81, NULLIF ( + COUNT( * ), + 30 ) + COUNT( * ) ) ) * 69 AS col2
----
1587

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT + COALESCE ( 23, + + COALESCE ( - SUM ( ALL ( - 85 ) ), - ( 56 ) - - 39 / - - COUNT ( * ) + - 95 * - 81, NULLIF ( + COUNT ( * ), + 30 ) + COUNT ( * ) ) ) * 69 AS col2
----
1587

query I rowsort
SELECT ALL - 64 + + 7
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9080
SELECT NULLIF ( 5, + - 52 * - CASE + - 77 WHEN + - 9 - 84 THEN NULL WHEN + 36 / + - 8 THEN - COUNT( * ) WHEN 29 * 43 THEN - CAST( NULL AS SIGNED ) ELSE NULL END + + COUNT( * ) ) + ( 96 ) AS col2
----
101

skipif mysql # not compatible
query I rowsort label-9080
SELECT NULLIF ( 5, + - 52 * - CASE + - 77 WHEN + - 9 - 84 THEN NULL WHEN + 36 / + - 8 THEN - COUNT ( * ) WHEN 29 * 43 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END + + COUNT ( * ) ) + ( 96 ) AS col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT DISTINCT COUNT( * ) * 21 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-9081
SELECT DISTINCT COUNT ( * ) * 21 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT 22 * - COUNT( * ) col0
----
-22

skipif mysql # not compatible
query I rowsort label-9082
SELECT 22 * - COUNT ( * ) col0
----
-22

query I rowsort
SELECT 28 + - + ( + 39 ) + + 42
----
31

onlyif mysql # DIV for integer division: 
query II rowsort label-9084
SELECT ( 71 ) DIV + 14 AS col1, + 51 AS col2
----
5
51

skipif mysql # not compatible
query II rowsort label-9084
SELECT ( 71 ) / + 14 AS col1, + 51 AS col2
----
5
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9085
SELECT 44 + NULLIF ( + 9, - 90 * + CAST( + 1 AS DECIMAL ) ) * - + 11 * - + 85 * - 67 - + 19 + 28 AS col1
----
-563752

skipif mysql # not compatible
query I rowsort label-9085
SELECT 44 + NULLIF ( + 9, - 90 * + CAST ( + 1 AS REAL ) ) * - + 11 * - + 85 * - 67 - + 19 + 28 AS col1
----
-563752

query I rowsort
SELECT 47 * 6 col2
----
282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9087
SELECT ALL + 74 DIV COUNT( ALL 46 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL + 74 / COUNT ( ALL 46 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT MAX( - 35 ) + 84 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-9088
SELECT MAX ( - 35 ) + 84 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT 37 * - - COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-9089
SELECT 37 * - - COUNT ( * ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-9090
SELECT + 16 * 7 * 62 + + COALESCE ( ( + COUNT( * ) ), - 32 ) + + + COUNT( * ) AS col0, 3 + 50
----
6946
53

skipif mysql # not compatible
query II rowsort label-9090
SELECT + 16 * 7 * 62 + + COALESCE ( ( + COUNT ( * ) ), - 32 ) + + + COUNT ( * ) AS col0, 3 + 50
----
6946
53

query II rowsort
SELECT + - 28 AS col2, 86 + 92
----
-28
178

query I rowsort
SELECT 87 * - 66
----
-5742

query I rowsort
SELECT 64 + + ( - + 69 ) AS col1
----
-5

query I rowsort
SELECT 66 * + - 35 + - 32 * + - ( - 69 )
----
-4518

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT ALL COUNT( * ) + ( + 6 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL COUNT ( * ) + ( + 6 ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9096
SELECT + 75 AS col1, 46 + - CASE + - 60 WHEN 66 + - 74 THEN - - COUNT( ALL + - 92 ) END
----
75
NULL

skipif mysql # not compatible
query II rowsort label-9096
SELECT + 75 AS col1, 46 + - CASE + - 60 WHEN 66 + - 74 THEN - - COUNT ( ALL + - 92 ) END
----
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT ALL - + MIN( - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL - + MIN ( - 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT DISTINCT 54 * - COUNT( * ) - + - 40 * 87 AS col0
----
3426

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT 54 * - COUNT ( * ) - + - 40 * 87 AS col0
----
3426

query II rowsort
SELECT DISTINCT - 2 AS col2, + 11 - - + 60 AS col2
----
-2
71

query I rowsort
SELECT DISTINCT - - ( 49 ) + - 79 * - 22
----
1787

query I rowsort
SELECT ALL - 25 + + + 80
----
55

query I rowsort
SELECT 20 * - 2 - + 53 AS col1
----
-93

query I rowsort
SELECT ALL 38 * 45 AS col1
----
1710

query I rowsort
SELECT 15 + - + 73 AS col1
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9105
SELECT 9 DIV 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9105
SELECT 9 / 82 AS col2
----
0

query II rowsort
SELECT - 55, 11 * - 60 * - + 74 + 68 AS col1
----
-55
48908

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT 22 + - + NULLIF ( + + 18, - - 72 * - 76 + - MAX( + + 90 ) ) + 44 * - 38 * 76 AS col2
----
-127068

skipif mysql # not compatible
query I rowsort label-9107
SELECT 22 + - + NULLIF ( + + 18, - - 72 * - 76 + - MAX ( + + 90 ) ) + 44 * - 38 * 76 AS col2
----
-127068

query I rowsort
SELECT 93 * - 1 AS col2
----
-93

query II rowsort
SELECT 55, + 34 AS col0
----
55
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9110
SELECT ALL 19 AS col0, + CAST( + COUNT( * ) AS SIGNED ) * MIN( - 58 ) - 52 + CASE - 66 WHEN - 22 THEN NULL ELSE - COALESCE ( - 14, + CAST( + 68 AS SIGNED ) ) + + 66 DIV - MAX( DISTINCT - 6 + - 21 ) END + + 35 AS col2
----
19
-59

skipif mysql # not compatible
query II rowsort label-9110
SELECT ALL 19 AS col0, + CAST ( + COUNT ( * ) AS INTEGER ) * MIN ( - 58 ) - 52 + CASE - 66 WHEN - 22 THEN NULL ELSE - COALESCE ( - 14, + CAST ( + 68 AS INTEGER ) ) + + 66 / - MAX ( DISTINCT - 6 + - 21 ) END + + 35 AS col2
----
19
-59

query I rowsort
SELECT DISTINCT ( + - 4 ) * - + 92 col0
----
368

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT ( - COUNT( * ) ) * - 16 + - ( - 4 )
----
20

skipif mysql # not compatible
query I rowsort label-9112
SELECT ( - COUNT ( * ) ) * - 16 + - ( - 4 )
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9113
SELECT ALL CAST( NULL AS DECIMAL ) * - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL CAST ( NULL AS REAL ) * - 33
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9114
SELECT 84 AS col1, CAST( NULL AS SIGNED ) + 24 AS col0
----
84
NULL

skipif mysql # not compatible
query II rowsort label-9114
SELECT 84 AS col1, CAST ( NULL AS INTEGER ) + 24 AS col0
----
84
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9115
SELECT DISTINCT COALESCE ( - 94, CAST( + + 74 AS SIGNED ) * - 7 * + 9 * + 50 * + 88 + + 14 + + + 15, - - 77 ) * + 19 AS col0
----
-1786

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT COALESCE ( - 94, CAST ( + + 74 AS INTEGER ) * - 7 * + 9 * + 50 * + 88 + + 14 + + + 15, - - 77 ) * + 19 AS col0
----
-1786

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9116
SELECT - COUNT( * ), CASE + + CAST( 11 AS SIGNED ) WHEN - COALESCE ( 10, COALESCE ( COUNT( * ), 34 + - COUNT( * ) - - 78 * + 74 ), + 59 * 69 ) * 33 THEN NULL WHEN - 7 * 59 + 39 THEN COUNT( * ) + 31 END / COUNT( * ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9116
SELECT - COUNT ( * ), CASE + + CAST ( 11 AS INTEGER ) WHEN - COALESCE ( 10, COALESCE ( COUNT ( * ), 34 + - COUNT ( * ) - - 78 * + 74 ), + 59 * 69 ) * 33 THEN NULL WHEN - 7 * 59 + 39 THEN COUNT ( * ) + 31 END / COUNT ( * ) AS col2
----
-1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9117
SELECT - 87 AS col0, 26 + + COUNT( * ) AS col1
----
-87
27

skipif mysql # not compatible
query II rowsort label-9117
SELECT - 87 AS col0, 26 + + COUNT ( * ) AS col1
----
-87
27

query I rowsort
SELECT ( - - 53 ) + ( - 11 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT - COUNT( * ) * - 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-9119
SELECT - COUNT ( * ) * - 62 AS col0
----
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9120
SELECT - AVG ( + CAST( NULL AS DECIMAL ) ) + - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9120
SELECT - AVG ( + CAST ( NULL AS REAL ) ) + - 52 AS col2
----
NULL

query I rowsort
SELECT ALL 6 * - - 62 * ( + 13 ) + + 96
----
4932

onlyif mysql # DIV for integer division: 
query I rowsort label-9122
SELECT + 90 + - - 54 DIV 43
----
91

skipif mysql # not compatible
query I rowsort label-9122
SELECT + 90 + - - 54 / 43
----
91

query I rowsort
SELECT ALL 26 * + 38 + 83 + 51 + ( - + 21 ) + - 10 AS col2
----
1091

onlyif mysql # aggregate syntax: 
query II rowsort label-9124
SELECT ALL + 72 * + 1 + MIN( + 57 ), - COUNT( * ) AS col0
----
129
-1

skipif mysql # not compatible
query II rowsort label-9124
SELECT ALL + 72 * + 1 + MIN ( + 57 ), - COUNT ( * ) AS col0
----
129
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9125
SELECT 35 * + CAST( - COUNT( * ) AS SIGNED ) + - 5 * 32 * - 12 AS col0
----
1885

skipif mysql # not compatible
query I rowsort label-9125
SELECT 35 * + CAST ( - COUNT ( * ) AS INTEGER ) + - 5 * 32 * - 12 AS col0
----
1885

query I rowsort
SELECT ALL 14 * + 76 + + + 54 AS col0
----
1118

query I rowsort
SELECT - 56 * + 20
----
-1120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9128
SELECT - 30 + - CASE + ( + 69 ) WHEN - 20 THEN NULL WHEN - 87 * MAX( ALL - ( - - ( 51 ) ) ) + 71 * - COUNT( * ) THEN NULL ELSE - CASE 79 WHEN + 36 THEN NULL WHEN - NULLIF ( 89, 30 * 61 ) + + 43 THEN + 83 * - MIN( 25 ) + COUNT( * ) END * 63 END - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9128
SELECT - 30 + - CASE + ( + 69 ) WHEN - 20 THEN NULL WHEN - 87 * MAX ( ALL - ( - - ( 51 ) ) ) + 71 * - COUNT ( * ) THEN NULL ELSE - CASE 79 WHEN + 36 THEN NULL WHEN - NULLIF ( 89, 30 * 61 ) + + 43 THEN + 83 * - MIN ( 25 ) + COUNT ( * ) END * 63 END - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT MIN( ALL 95 ) + + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-9129
SELECT MIN ( ALL 95 ) + + COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9130
SELECT DISTINCT + - 71, COALESCE ( 42, + 88, + - 86 ) + - + MIN( + 21 ) + - + 54 * - 3 AS col2
----
-71
183

skipif mysql # not compatible
query II rowsort label-9130
SELECT DISTINCT + - 71, COALESCE ( 42, + 88, + - 86 ) + - + MIN ( + 21 ) + - + 54 * - 3 AS col2
----
-71
183

query I rowsort
SELECT ALL - ( + 87 ) - - 9 * + 30
----
183

query II rowsort
SELECT DISTINCT + ( - 40 ) AS col1, - ( 3 ) * + 88
----
-40
-264

query I rowsort
SELECT - 71 + 62 * + 76 col2
----
4641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9134
SELECT ALL CAST( 56 AS SIGNED ) * + COUNT( * ), - ( - - 22 ) + - ( 54 ) AS col2
----
56
-76

skipif mysql # not compatible
query II rowsort label-9134
SELECT ALL CAST ( 56 AS INTEGER ) * + COUNT ( * ), - ( - - 22 ) + - ( 54 ) AS col2
----
56
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-9135
SELECT ALL + COUNT( * ) - - 97 AS col2, + COUNT( * )
----
98
1

skipif mysql # not compatible
query II rowsort label-9135
SELECT ALL + COUNT ( * ) - - 97 AS col2, + COUNT ( * )
----
98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT - MAX( DISTINCT - 70 ) col2
----
70

skipif mysql # not compatible
query I rowsort label-9136
SELECT - MAX ( DISTINCT - 70 ) col2
----
70

query I rowsort
SELECT + 41 * - 48 AS col0
----
-1968

onlyif mysql # aggregate syntax: 
query II rowsort label-9138
SELECT ALL - MIN( DISTINCT 16 ) * + 88 * - 39 + 70 AS col2, 42 * - - 20 AS col1
----
54982
840

skipif mysql # not compatible
query II rowsort label-9138
SELECT ALL - MIN ( DISTINCT 16 ) * + 88 * - 39 + 70 AS col2, 42 * - - 20 AS col1
----
54982
840

query I rowsort
SELECT - 52 + - + 16
----
-68

query I rowsort
SELECT DISTINCT ( - ( + 95 ) ) AS col1
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-9141
SELECT ALL 69 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL 69 / 74
----
0

query I rowsort
SELECT + 74 + + 41 AS col0
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9143
SELECT - 45 * + COUNT( * ) AS col2, + COALESCE ( + + 56, 90, - - 47, + CAST( - COALESCE ( + - 38, - COUNT( * ) - + 36 + 72 * - 43 ) AS SIGNED ) ) AS col1
----
-45
56

skipif mysql # not compatible
query II rowsort label-9143
SELECT - 45 * + COUNT ( * ) AS col2, + COALESCE ( + + 56, 90, - - 47, + CAST ( - COALESCE ( + - 38, - COUNT ( * ) - + 36 + 72 * - 43 ) AS INTEGER ) ) AS col1
----
-45
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9144
SELECT + COUNT( * ) DIV + NULLIF ( + COUNT( * ), + - 24 )
----
1

skipif mysql # not compatible
query I rowsort label-9144
SELECT + COUNT ( * ) / + NULLIF ( + COUNT ( * ), + - 24 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT + + 79 * + 96 * + COUNT( * )
----
7584

skipif mysql # not compatible
query I rowsort label-9145
SELECT + + 79 * + 96 * + COUNT ( * )
----
7584

query II rowsort
SELECT + + 74 + - 53 col0, 23 - + 36
----
21
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT - SUM( + + 98 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-9147
SELECT - SUM ( + + 98 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT + - COUNT( * ) * + 17
----
-17

skipif mysql # not compatible
query I rowsort label-9148
SELECT + - COUNT ( * ) * + 17
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9149
SELECT + 66 * - 55 * - + CASE + - 55 WHEN + AVG ( ALL 19 ) * + 27 + - MIN( ALL + - 59 ) THEN 61 * + 4 WHEN - + CAST( NULL AS SIGNED ) * 61 THEN NULL WHEN 54 THEN NULL ELSE + COUNT( 24 ) + - 52 END - + 18 - CAST( NULL AS SIGNED ) * 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9149
SELECT + 66 * - 55 * - + CASE + - 55 WHEN + AVG ( ALL 19 ) * + 27 + - MIN ( ALL + - 59 ) THEN 61 * + 4 WHEN - + CAST ( NULL AS INTEGER ) * 61 THEN NULL WHEN 54 THEN NULL ELSE + COUNT ( 24 ) + - 52 END - + 18 - CAST ( NULL AS INTEGER ) * 58 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT + + SUM( - - 17 ) * + + 30 * - CASE - 58 WHEN + 66 THEN MIN( + 68 ) * - - NULLIF ( + 67, + + 19 ) WHEN 59 THEN NULL END / + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-9150
SELECT + + SUM ( - - 17 ) * + + 30 * - CASE - 58 WHEN + 66 THEN MIN ( + 68 ) * - - NULLIF ( + 67, + + 19 ) WHEN 59 THEN NULL END / + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT - + 72 * + - COALESCE ( - 29, - ( - COUNT( * ) ) ) + + + COUNT( * )
----
-2087

skipif mysql # not compatible
query I rowsort label-9151
SELECT - + 72 * + - COALESCE ( - 29, - ( - COUNT ( * ) ) ) + + + COUNT ( * )
----
-2087

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT ALL - 9 * - 39 - + - COUNT( * ) col0
----
352

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL - 9 * - 39 - + - COUNT ( * ) col0
----
352

query I rowsort
SELECT DISTINCT + COALESCE ( 60, + - 81, - 8 * 79 * + - 61 ) AS col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9154
SELECT - 88 * NULLIF ( - 60, - CAST( NULL AS SIGNED ) ) col0, - 50 AS col2
----
5280
-50

skipif mysql # not compatible
query II rowsort label-9154
SELECT - 88 * NULLIF ( - 60, - CAST ( NULL AS INTEGER ) ) col0, - 50 AS col2
----
5280
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT ALL + 56 * - + 3 * + COUNT( * ) - 27 AS col0
----
-195

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL + 56 * - + 3 * + COUNT ( * ) - 27 AS col0
----
-195

query I rowsort
SELECT COALESCE ( - CASE WHEN NOT NULL NOT IN ( - 69, 20 * - 18 ) THEN 26 * + 65 ELSE NULL END, 54 ) AS col0
----
54

query I rowsort
SELECT - 56 * 10 + 13
----
-547

query I rowsort
SELECT - 11 + - ( - - ( + ( - + 42 ) ) )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT - 29 * COUNT( * ) col1
----
-29

skipif mysql # not compatible
query I rowsort label-9159
SELECT - 29 * COUNT ( * ) col1
----
-29

query I rowsort
SELECT ALL ( - 37 ) AS col0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9161
SELECT DISTINCT CAST( + 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT CAST ( + 33 AS INTEGER )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT DISTINCT ( + MIN( DISTINCT - - 81 ) )
----
81

skipif mysql # not compatible
query I rowsort label-9162
SELECT DISTINCT ( + MIN ( DISTINCT - - 81 ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT - MIN( ALL 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-9163
SELECT - MIN ( ALL 59 )
----
-59

query I rowsort
SELECT - 33 + 27 AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9165
SELECT DISTINCT CAST( - 4 AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-9165
SELECT DISTINCT CAST ( - 4 AS INTEGER )
----
-4

query I rowsort
SELECT - 63 * - 18 col0
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT - CASE 39 WHEN - 4 THEN - - 49 WHEN + + COUNT( * ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9167
SELECT - CASE 39 WHEN - 4 THEN - - 49 WHEN + + COUNT ( * ) THEN NULL END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9168
SELECT ALL + 80 + MIN( DISTINCT + - 7 ) DIV - 35 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL + 80 + MIN ( DISTINCT + - 7 ) / - 35 AS col2
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9169
SELECT - + 34 DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-9169
SELECT - + 34 / 43
----
0

query I rowsort
SELECT ALL 75 + - + 51 AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9171
SELECT + 9 AS col1, + COALESCE ( CAST( NULL AS SIGNED ), - 89 + - - 31, + 27 ) * 92 + 0 * + SUM( + - 21 ) - + 56 col0
----
9
-5392

skipif mysql # not compatible
query II rowsort label-9171
SELECT + 9 AS col1, + COALESCE ( CAST ( NULL AS INTEGER ), - 89 + - - 31, + 27 ) * 92 + 0 * + SUM ( + - 21 ) - + 56 col0
----
9
-5392

onlyif mysql # DIV for integer division: 
query I rowsort label-9172
SELECT DISTINCT - 95 + - - 97 DIV - 85 + + + 10 + + 80 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-9172
SELECT DISTINCT - 95 + - - 97 / - 85 + + + 10 + + 80 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT ALL 2 + - ( + 90 ) + + + CASE CASE WHEN NOT NULL NOT BETWEEN 32 AND NULL THEN - MAX( DISTINCT - 28 ) ELSE NULL END WHEN 10 + + 86 + + COUNT( * ) THEN - + 81 - + 47 WHEN + 65 THEN NULL WHEN 24 * + 76 - + COALESCE ( 10, + 99, MAX( DISTINCT 82 ) ) / 92 THEN NULL ELSE 57 END AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-9173
SELECT ALL 2 + - ( + 90 ) + + + CASE CASE WHEN NOT NULL NOT BETWEEN 32 AND NULL THEN - MAX ( DISTINCT - 28 ) ELSE NULL END WHEN 10 + + 86 + + COUNT ( * ) THEN - + 81 - + 47 WHEN + 65 THEN NULL WHEN 24 * + 76 - + COALESCE ( 10, + 99, MAX ( DISTINCT 82 ) ) / 92 THEN NULL ELSE 57 END AS col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9174
SELECT + CASE ( 82 ) WHEN - 71 THEN + CASE - 84 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - 37 * - - 83 + - 38 * + ( 66 ) / + 38 * CASE COUNT( * ) WHEN 91 THEN 53 WHEN - 29 * + NULLIF ( + 2, - 71 + 20 ) THEN + COUNT( * ) * 12 END - - 39 THEN 65 ELSE NULL END END / 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9174
SELECT + CASE ( 82 ) WHEN - 71 THEN + CASE - 84 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 37 * - - 83 + - 38 * + ( 66 ) / + 38 * CASE COUNT ( * ) WHEN 91 THEN 53 WHEN - 29 * + NULLIF ( + 2, - 71 + 20 ) THEN + COUNT ( * ) * 12 END - - 39 THEN 65 ELSE NULL END END / 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT - + 82 + - COUNT( * ) + CASE - AVG ( DISTINCT - + CASE + 31 WHEN + + 58 + CASE 91 WHEN 76 THEN + 92 * + 71 + + 30 END - - NULLIF ( 71, 7 * 94 ) * 19 THEN - 1 - - 7 END ) WHEN 91 + - 42 * 37 THEN 84 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9175
SELECT - + 82 + - COUNT ( * ) + CASE - AVG ( DISTINCT - + CASE + 31 WHEN + + 58 + CASE 91 WHEN 76 THEN + 92 * + 71 + + 30 END - - NULLIF ( 71, 7 * 94 ) * 19 THEN - 1 - - 7 END ) WHEN 91 + - 42 * 37 THEN 84 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT + 38 * - NULLIF ( + 4, COALESCE ( + ( + + CASE - - 29 WHEN COUNT( * ) THEN - MIN( ALL + + 30 ) WHEN - 46 THEN NULL WHEN + + 85 THEN 32 / MAX( 44 ) END ), - 5 * 54 ) * 14 ) + 52
----
-100

skipif mysql # not compatible
query I rowsort label-9176
SELECT + 38 * - NULLIF ( + 4, COALESCE ( + ( + + CASE - - 29 WHEN COUNT ( * ) THEN - MIN ( ALL + + 30 ) WHEN - 46 THEN NULL WHEN + + 85 THEN 32 / MAX ( 44 ) END ), - 5 * 54 ) * 14 ) + 52
----
-100

query I rowsort
SELECT + - 1 - 99
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9178
SELECT + COUNT( * ) AS col2, COUNT( * ) + + CAST( NULL AS SIGNED ) col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9178
SELECT + COUNT ( * ) AS col2, COUNT ( * ) + + CAST ( NULL AS INTEGER ) col1
----
1
NULL

query II rowsort
SELECT + 50 AS col1, 66
----
50
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9180
SELECT ALL - 10, 37 DIV + - COUNT( * ) AS col2
----
-10
-37

skipif mysql # not compatible
query II rowsort label-9180
SELECT ALL - 10, 37 / + - COUNT ( * ) AS col2
----
-10
-37

query I rowsort
SELECT DISTINCT + 19 - 74 col2
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9182
SELECT - 63 * + + 31 - - + NULLIF ( + + MIN( - 64 ), + 34 ) + 5 * 85 DIV 93 + + + ( + 73 ) DIV COUNT( * ) + 4
----
-1936

skipif mysql # not compatible
query I rowsort label-9182
SELECT - 63 * + + 31 - - + NULLIF ( + + MIN ( - 64 ), + 34 ) + 5 * 85 / 93 + + + ( + 73 ) / COUNT ( * ) + 4
----
-1936

query I rowsort
SELECT ALL + ( 48 ) - + + 8 AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9184
SELECT 16 DIV + + 17 * + + 10 * COUNT( * ) - + 16 + + 27
----
11

skipif mysql # not compatible
query I rowsort label-9184
SELECT 16 / + + 17 * + + 10 * COUNT ( * ) - + 16 + + 27
----
11

query I rowsort
SELECT 93 * - + 81 * - 38 * + 86 AS col2
----
24617844

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9186
SELECT DISTINCT NULLIF ( - 48, MAX( + 84 ) + - 32 + - SUM( - 44 ) + + + 51 + - - 58 + + CAST( NULL AS DECIMAL ) ) + + - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-9186
SELECT DISTINCT NULLIF ( - 48, MAX ( + 84 ) + - 32 + - SUM ( - 44 ) + + + 51 + - - 58 + + CAST ( NULL AS REAL ) ) + + - COUNT ( * )
----
-49

query I rowsort
SELECT + 51 * + 98 + 79 AS col1
----
5077

onlyif mysql # aggregate syntax: 
query II rowsort label-9188
SELECT DISTINCT 98 * - COUNT( * ), 0 * - + 79 AS col2
----
-98
0

skipif mysql # not compatible
query II rowsort label-9188
SELECT DISTINCT 98 * - COUNT ( * ), 0 * - + 79 AS col2
----
-98
0

query I rowsort
SELECT ( + 20 ) + + 87
----
107

query I rowsort
SELECT 43 + + 53 AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9191
SELECT DISTINCT - 39 + 95 * - 88 + + ( 54 ) + - 84 * + 21, COALESCE ( + - COUNT( * ), + 27, - 3 ) * MIN( DISTINCT + 82 ) + + 15 + 55 col0
----
-10109
-12

skipif mysql # not compatible
query II rowsort label-9191
SELECT DISTINCT - 39 + 95 * - 88 + + ( 54 ) + - 84 * + 21, COALESCE ( + - COUNT ( * ), + 27, - 3 ) * MIN ( DISTINCT + 82 ) + + 15 + 55 col0
----
-10109
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9192
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( * ) - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( * ) - 41 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 66 + - 54 + + COALESCE ( - - 98, 7 * + 99 ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT COUNT( * ) + - - 4 * + 68
----
273

skipif mysql # not compatible
query I rowsort label-9194
SELECT COUNT ( * ) + - - 4 * + 68
----
273

onlyif mysql # aggregate syntax: 
query II rowsort label-9195
SELECT ALL + + 82 + - + 17 AS col2, - 78 + - - COUNT( * )
----
65
-77

skipif mysql # not compatible
query II rowsort label-9195
SELECT ALL + + 82 + - + 17 AS col2, - 78 + - - COUNT ( * )
----
65
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9196
SELECT CAST( - ( + 8 ) AS SIGNED ) + + 55 + + 65
----
112

skipif mysql # not compatible
query I rowsort label-9196
SELECT CAST ( - ( + 8 ) AS INTEGER ) + + 55 + + 65
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9197
SELECT - 9 * ( - NULLIF ( + CASE AVG ( ALL - 10 ) WHEN - 60 THEN + 82 + + 46 / + 60 ELSE NULL END, - - CAST( - ( - - 54 ) AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9197
SELECT - 9 * ( - NULLIF ( + CASE AVG ( ALL - 10 ) WHEN - 60 THEN + 82 + + 46 / + 60 ELSE NULL END, - - CAST ( - ( - - 54 ) AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT DISTINCT + 0 * - 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT 87 + - CASE - 22 WHEN + - 40 * + + 71 THEN + 10 ELSE + ( + COUNT( * ) ) END
----
86

skipif mysql # not compatible
query I rowsort label-9199
SELECT 87 + - CASE - 22 WHEN + - 40 * + + 71 THEN + 10 ELSE + ( + COUNT ( * ) ) END
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-9200
SELECT 35 * - + NULLIF ( + + COUNT( * ), - 47 + - - 64 + - 82 * 42 / - 6 * + - 69 + + 25 + + ( 45 ) ) AS col1, - COUNT( + 90 )
----
-35
-1

skipif mysql # not compatible
query II rowsort label-9200
SELECT 35 * - + NULLIF ( + + COUNT ( * ), - 47 + - - 64 + - 82 * 42 / - 6 * + - 69 + + 25 + + ( 45 ) ) AS col1, - COUNT ( + 90 )
----
-35
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9201
SELECT ALL + 6 * + COALESCE ( - CASE CASE 77 WHEN CAST( NULL AS DECIMAL ) THEN NULL ELSE + - 28 * - 5 * + - 10 END WHEN + SUM( ALL 65 ) THEN NULL WHEN + - ( 8 ) THEN - COUNT( DISTINCT 65 ) + 18 WHEN + 3 THEN NULL ELSE + COALESCE ( - COUNT( * ), MIN( DISTINCT + 74 ), 26 ) DIV 8 + ( COUNT( * ) ) END, + COALESCE ( + COUNT( * ), + CAST( NULL AS SIGNED ), COALESCE ( COUNT( * ), 26 ), - 22 ) * + 30 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL + 6 * + COALESCE ( - CASE CASE 77 WHEN CAST ( NULL AS REAL ) THEN NULL ELSE + - 28 * - 5 * + - 10 END WHEN + SUM ( ALL 65 ) THEN NULL WHEN + - ( 8 ) THEN - COUNT ( DISTINCT 65 ) + 18 WHEN + 3 THEN NULL ELSE + COALESCE ( - COUNT ( * ), MIN ( DISTINCT + 74 ), 26 ) / 8 + ( COUNT ( * ) ) END, + COALESCE ( + COUNT ( * ), + CAST ( NULL AS INTEGER ), COALESCE ( COUNT ( * ), 26 ), - 22 ) * + 30 ) AS col1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9202
SELECT SUM( ALL - - 74 ) DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-9202
SELECT SUM ( ALL - - 74 ) / 97
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9203
SELECT ALL + - COUNT( * ) * - 37, + COUNT( * ) AS col0
----
37
1

skipif mysql # not compatible
query II rowsort label-9203
SELECT ALL + - COUNT ( * ) * - 37, + COUNT ( * ) AS col0
----
37
1

query I rowsort
SELECT ALL - + ( - 58 ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT + MIN( + 52 ) * + 28 + 59
----
1515

skipif mysql # not compatible
query I rowsort label-9205
SELECT + MIN ( + 52 ) * + 28 + 59
----
1515

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9206
SELECT - CAST( NULL AS SIGNED ) / + 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9206
SELECT - CAST ( NULL AS INTEGER ) / + 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9207
SELECT DISTINCT + 24 DIV + 98 * + 41 * + COUNT( * ) + - 82 + + + 18 * + 77 * + COUNT( * ) AS col2
----
1304

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT + 24 / + 98 * + 41 * + COUNT ( * ) + - 82 + + + 18 * + 77 * + COUNT ( * ) AS col2
----
1304

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT COUNT( * ) * + MAX( DISTINCT 96 )
----
96

skipif mysql # not compatible
query I rowsort label-9208
SELECT COUNT ( * ) * + MAX ( DISTINCT 96 )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9209
SELECT ALL CAST( NULL AS SIGNED ) * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL CAST ( NULL AS INTEGER ) * + 90
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9210
SELECT NULLIF ( - + 63, - 13 + + - 63 ) DIV + - COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-9210
SELECT NULLIF ( - + 63, - 13 + + - 63 ) / + - COUNT ( * ) AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9211
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9211
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9212
SELECT DISTINCT - CASE + MAX( + CAST( - 26 AS SIGNED ) ) WHEN + 86 THEN + - MAX( - COALESCE ( 68, + 27 ) ) WHEN - 73 + - 66 + + SUM( - - CAST( + - 77 AS SIGNED ) ) * - 41 * NULLIF ( 37, 1 + + 96 * - 51 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT - CASE + MAX ( + CAST ( - 26 AS INTEGER ) ) WHEN + 86 THEN + - MAX ( - COALESCE ( 68, + 27 ) ) WHEN - 73 + - 66 + + SUM ( - - CAST ( + - 77 AS INTEGER ) ) * - 41 * NULLIF ( 37, 1 + + 96 * - 51 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT ALL 52 + + + NULLIF ( + 14, - 16 / + ( + 5 ) * - 51 + - 57 * MAX( - 12 ) * + - 58 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL 52 + + + NULLIF ( + 14, - 16 / + ( + 5 ) * - 51 + - 57 * MAX ( - 12 ) * + - 58 ) AS col0
----
66

query II rowsort
SELECT DISTINCT - 86, ( - 86 ) - NULLIF ( - - 89, 87 ) AS col0
----
-86
-175

query I rowsort
SELECT ALL 57 + - 3
----
54

query I rowsort
SELECT ALL 16 + - - 15
----
31

query I rowsort
SELECT DISTINCT 51 + + 57 AS col2
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9218
SELECT ALL 21 + + - CAST( NULL AS SIGNED ) * - 72 + + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL 21 + + - CAST ( NULL AS INTEGER ) * - 72 + + + 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9219
SELECT ALL CAST( + ( + COALESCE ( 32, COUNT( * ), - 48, + + 34 - - 43 ) ) AS SIGNED ) + + 25 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-9219
SELECT ALL CAST ( + ( + COALESCE ( 32, COUNT ( * ), - 48, + + 34 - - 43 ) ) AS INTEGER ) + + 25 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT - SUM( DISTINCT + 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-9220
SELECT - SUM ( DISTINCT + 71 )
----
-71

query I rowsort
SELECT ALL + 80 * - + 62
----
-4960

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT DISTINCT + CASE + 60 WHEN MIN( DISTINCT + + 64 ) THEN - ( + 33 ) * - + 69 * - AVG ( + 39 ) + + 5 * 8 END + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT + CASE + 60 WHEN MIN ( DISTINCT + + 64 ) THEN - ( + 33 ) * - + 69 * - AVG ( + 39 ) + + 5 * 8 END + 31 AS col2
----
NULL

query I rowsort
SELECT 2 + + - 76
----
-74

query II rowsort
SELECT ALL - 62 * - CASE WHEN NULL <= ( NULL ) THEN + 45 END, + 30 AS col0
----
NULL
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT + MIN( DISTINCT + ( - 68 ) ) * - + 2 AS col1
----
136

skipif mysql # not compatible
query I rowsort label-9225
SELECT + MIN ( DISTINCT + ( - 68 ) ) * - + 2 AS col1
----
136

query I rowsort
SELECT ALL 37 * + 99 * - + 73 col0
----
-267399

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT - 7 - NULLIF ( - COUNT( * ), COUNT( * ) ) * - 39 - - 12
----
-34

skipif mysql # not compatible
query I rowsort label-9227
SELECT - 7 - NULLIF ( - COUNT ( * ), COUNT ( * ) ) * - 39 - - 12
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT DISTINCT - ( + 20 ) - COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT - ( + 20 ) - COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-9229
SELECT ALL + 14 AS col0, - ( - 96 ) * + COUNT( * ) - - 21
----
14
117

skipif mysql # not compatible
query II rowsort label-9229
SELECT ALL + 14 AS col0, - ( - 96 ) * + COUNT ( * ) - - 21
----
14
117

query I rowsort
SELECT ALL - 10 * - 48
----
480

query II rowsort
SELECT DISTINCT 7 AS col0, 52
----
7
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT ALL + MAX( ALL + - 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL + MAX ( ALL + - 85 ) AS col0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9233
SELECT DISTINCT 68 AS col0, - COUNT( * ) + CAST( - COALESCE ( - 21, + 57 ) AS SIGNED ) col1
----
68
20

skipif mysql # not compatible
query II rowsort label-9233
SELECT DISTINCT 68 AS col0, - COUNT ( * ) + CAST ( - COALESCE ( - 21, + 57 ) AS INTEGER ) col1
----
68
20

query I rowsort
SELECT ALL + + 67 * - - 26
----
1742

query I rowsort
SELECT + 23 + + 96 * - 65
----
-6217

query I rowsort
SELECT + 27 * 99 * + - 94 AS col0
----
-251262

query I rowsort
SELECT ALL + - ( ( + - 14 ) ) * + 89 * - 25
----
-31150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9238
SELECT - - CAST( NULL AS SIGNED ) * - COUNT( * ) + + - 82 + + + 42 * + NULLIF ( + - 6, + 45 * + 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9238
SELECT - - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + - 82 + + + 42 * + NULLIF ( + - 6, + 45 * + 70 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9239
SELECT 14 DIV + ( - 44 ) * + CASE 2 WHEN + COALESCE ( COUNT( * ), 19 * + COUNT( * ) * + COUNT( * ) + + 99 ) THEN NULL WHEN + COUNT( DISTINCT - 2 ) THEN NULL ELSE COUNT( * ) END + + + 42 * - 14 AS col1
----
-588

skipif mysql # not compatible
query I rowsort label-9239
SELECT 14 / + ( - 44 ) * + CASE 2 WHEN + COALESCE ( COUNT ( * ), 19 * + COUNT ( * ) * + COUNT ( * ) + + 99 ) THEN NULL WHEN + COUNT ( DISTINCT - 2 ) THEN NULL ELSE COUNT ( * ) END + + + 42 * - 14 AS col1
----
-588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9240
SELECT ALL + CAST( NULL AS SIGNED ) * 44 AS col0, 3 + COUNT( * ) + + 96 AS col0
----
NULL
100

skipif mysql # not compatible
query II rowsort label-9240
SELECT ALL + CAST ( NULL AS INTEGER ) * 44 AS col0, 3 + COUNT ( * ) + + 96 AS col0
----
NULL
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT - 88 + - - 77 * COUNT( * ) + - 91
----
-102

skipif mysql # not compatible
query I rowsort label-9241
SELECT - 88 + - - 77 * COUNT ( * ) + - 91
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9242
SELECT COALESCE ( + 20, CAST( 52 AS SIGNED ) )
----
20

skipif mysql # not compatible
query I rowsort label-9242
SELECT COALESCE ( + 20, CAST ( 52 AS INTEGER ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT NULLIF ( + COUNT( * ), 6 )
----
1

skipif mysql # not compatible
query I rowsort label-9243
SELECT NULLIF ( + COUNT ( * ), 6 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9244
SELECT 56 * - 12 + + 78 * - 96 * - MAX( DISTINCT - 35 ) - + - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9244
SELECT 56 * - 12 + + 78 * - 96 * - MAX ( DISTINCT - 35 ) - + - CAST ( + CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9245
SELECT - 29 * + COUNT( * ) * + - 61 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9245
SELECT - 29 * + COUNT ( * ) * + - 61 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9246
SELECT + COUNT( * ) DIV - - 43 + - 33 * 76 AS col1
----
-2508

skipif mysql # not compatible
query I rowsort label-9246
SELECT + COUNT ( * ) / - - 43 + - 33 * 76 AS col1
----
-2508

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT COALESCE ( + 65, - 59 * - MAX( - + 24 ), - + COUNT( * ) * + + 44 + - + 73 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-9247
SELECT COALESCE ( + 65, - 59 * - MAX ( - + 24 ), - + COUNT ( * ) * + + 44 + - + 73 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT + SUM( DISTINCT 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9248
SELECT + SUM ( DISTINCT 34 ) AS col2
----
34

query I rowsort
SELECT + 11 + 83 AS col1
----
94

query I rowsort
SELECT ALL 24 * + 56 + - 1 * - 16
----
1360

onlyif mysql # aggregate syntax: 
query II rowsort label-9251
SELECT DISTINCT MIN( - + 51 ) * - 45 + - 42 + - + 67 * + 33 + - 9 AS col2, - COUNT( * ) * + MAX( DISTINCT 12 ) * 67 AS col0
----
33
-804

skipif mysql # not compatible
query II rowsort label-9251
SELECT DISTINCT MIN ( - + 51 ) * - 45 + - 42 + - + 67 * + 33 + - 9 AS col2, - COUNT ( * ) * + MAX ( DISTINCT 12 ) * 67 AS col0
----
33
-804

query I rowsort
SELECT NULLIF ( + - 61, 39 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT ALL + CASE 54 WHEN + 21 + 89 - ( 39 ) THEN + ( 37 ) + - + 15 * + 37 + + COUNT( 69 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL + CASE 54 WHEN + 21 + 89 - ( 39 ) THEN + ( 37 ) + - + 15 * + 37 + + COUNT ( 69 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9254
SELECT ALL + ( 5 ) * - - COUNT( * ) DIV 69 + - 36 + + - ( + - COUNT( * ) )
----
-35

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL + ( 5 ) * - - COUNT ( * ) / 69 + - 36 + + - ( + - COUNT ( * ) )
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-9255
SELECT COUNT( * ), 64 + + 45 * - 77 AS col2
----
1
-3401

skipif mysql # not compatible
query II rowsort label-9255
SELECT COUNT ( * ), 64 + + 45 * - 77 AS col2
----
1
-3401

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT ALL ( 82 ) * 88 * - COUNT( * ) + + 34 - + COUNT( * )
----
-7183

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL ( 82 ) * 88 * - COUNT ( * ) + + 34 - + COUNT ( * )
----
-7183

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT + ( + 41 ) * COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9257
SELECT + ( + 41 ) * COUNT ( * ) AS col2
----
41

query I rowsort
SELECT ALL + 21 * 17 * 91
----
32487

onlyif mysql # aggregate syntax: 
query II rowsort label-9259
SELECT DISTINCT + COUNT( * ), - 98 AS col1
----
1
-98

skipif mysql # not compatible
query II rowsort label-9259
SELECT DISTINCT + COUNT ( * ), - 98 AS col1
----
1
-98

query I rowsort
SELECT + COALESCE ( + 1, - 31 )
----
1

query I rowsort
SELECT DISTINCT 9 * 62
----
558

onlyif mysql # aggregate syntax: 
query II rowsort label-9262
SELECT - 82 * 62 + 26 * - ( - 92 ) - + 17 AS col2, + MAX( 3 )
----
-2709
3

skipif mysql # not compatible
query II rowsort label-9262
SELECT - 82 * 62 + 26 * - ( - 92 ) - + 17 AS col2, + MAX ( 3 )
----
-2709
3

query I rowsort
SELECT + - 14 + + + 42 AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9264
SELECT + + SUM( + - CAST( NULL AS SIGNED ) ) * + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9264
SELECT + + SUM ( + - CAST ( NULL AS INTEGER ) ) * + - 28
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9265
SELECT ALL + CASE - 55 WHEN - COALESCE ( - 86, - - 5 - 39 ) THEN + ( + CAST( NULL AS SIGNED ) ) WHEN - - SUM( DISTINCT + 39 ) * 24 THEN - - 88 + - + 17 WHEN - 71 / - CASE 1 WHEN - 36 * 3 THEN SUM( + 10 ) END + + 36 * - 41 + - 44 * - MIN( DISTINCT - 88 ) THEN NULL ELSE 26 + 10 END AS col0
----
36

skipif mysql # not compatible
query I rowsort label-9265
SELECT ALL + CASE - 55 WHEN - COALESCE ( - 86, - - 5 - 39 ) THEN + ( + CAST ( NULL AS INTEGER ) ) WHEN - - SUM ( DISTINCT + 39 ) * 24 THEN - - 88 + - + 17 WHEN - 71 / - CASE 1 WHEN - 36 * 3 THEN SUM ( + 10 ) END + + 36 * - 41 + - 44 * - MIN ( DISTINCT - 88 ) THEN NULL ELSE 26 + 10 END AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9266
SELECT ALL CAST( + 20 AS SIGNED ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-9266
SELECT ALL CAST ( + 20 AS INTEGER ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT + COALESCE ( ( + COUNT( * ) ), - 3 )
----
1

skipif mysql # not compatible
query I rowsort label-9267
SELECT + COALESCE ( ( + COUNT ( * ) ), - 3 )
----
1

query II rowsort
SELECT ALL + 60 AS col2, 84
----
60
84

query I rowsort
SELECT + 41 + 78
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-9270
SELECT + + 95 DIV + - ( + 23 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9270
SELECT + + 95 / + - ( + 23 ) AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9271
SELECT ALL ( + 3 ) DIV + + 47 * + + 41
----
0

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL ( + 3 ) / + + 47 * + + 41
----
0

query I rowsort
SELECT + 54 + 47 * 87 * + + 72
----
294462

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT DISTINCT - MAX( 25 ) * - 75 AS col0
----
1875

skipif mysql # not compatible
query I rowsort label-9273
SELECT DISTINCT - MAX ( 25 ) * - 75 AS col0
----
1875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9274
SELECT ALL + COUNT( * ), - NULLIF ( NULLIF ( - CAST( NULL AS SIGNED ), + - 25 ), + + 56 + - COUNT( * ) ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9274
SELECT ALL + COUNT ( * ), - NULLIF ( NULLIF ( - CAST ( NULL AS INTEGER ), + - 25 ), + + 56 + - COUNT ( * ) ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT - + CASE + - 1 WHEN - 48 * - - 97 + - 57 + - - ( - + 98 ) * - 28 + - 92 + - 73 / + 38 + - - 4 + - 4 * + 18 * - - COUNT( * ) + - - 98 + COUNT( * ) / 60 * - COUNT( * ) + + 76 THEN - 58 + 44 WHEN 20 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9275
SELECT - + CASE + - 1 WHEN - 48 * - - 97 + - 57 + - - ( - + 98 ) * - 28 + - 92 + - 73 / + 38 + - - 4 + - 4 * + 18 * - - COUNT ( * ) + - - 98 + COUNT ( * ) / 60 * - COUNT ( * ) + + 76 THEN - 58 + 44 WHEN 20 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9276
SELECT + 12 DIV + 85 * - + 90 + - 60 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-9276
SELECT + 12 / + 85 * - + 90 + - 60 AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-9277
SELECT - 81 DIV 16
----
-5

skipif mysql # not compatible
query I rowsort label-9277
SELECT - 81 / 16
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9278
SELECT + - 18 * + + COUNT( * ) AS col1, + 60 AS col1
----
-18
60

skipif mysql # not compatible
query II rowsort label-9278
SELECT + - 18 * + + COUNT ( * ) AS col1, + 60 AS col1
----
-18
60

query I rowsort
SELECT - + ( 18 ) + - 91
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9280
SELECT 71 AS col1, CAST( NULL AS SIGNED ) + - - ( + + 55 ) col0
----
71
NULL

skipif mysql # not compatible
query II rowsort label-9280
SELECT 71 AS col1, CAST ( NULL AS INTEGER ) + - - ( + + 55 ) col0
----
71
NULL

query I rowsort
SELECT - - 38 + - 6 + + NULLIF ( + ( - ( 51 ) ), 12 ) AS col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9282
SELECT + - 68 DIV + 39, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-9282
SELECT + - 68 / + 39, - COUNT ( * )
----
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9283
SELECT DISTINCT 77 DIV 83 + + + 21 * + 35 * + 84 AS col0
----
61740

skipif mysql # not compatible
query I rowsort label-9283
SELECT DISTINCT 77 / 83 + + + 21 * + 35 * + 84 AS col0
----
61740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9284
SELECT DISTINCT - SUM( CAST( NULL AS SIGNED ) ) / + 39 + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT - SUM ( CAST ( NULL AS INTEGER ) ) / + 39 + - 93
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9285
SELECT + CAST( 6 AS SIGNED ) AS col0, - 7 + + - 5
----
6
-12

skipif mysql # not compatible
query II rowsort label-9285
SELECT + CAST ( 6 AS INTEGER ) AS col0, - 7 + + - 5
----
6
-12

query I rowsort
SELECT - 35 * - + 88
----
3080

onlyif mysql # DIV for integer division: 
query I rowsort label-9287
SELECT ALL - 37 DIV 7 + - NULLIF ( - NULLIF ( 70, - 29 - - ( + + 91 ) ), - + 64 ) * - 48 + 39
----
-3326

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL - 37 / 7 + - NULLIF ( - NULLIF ( 70, - 29 - - ( + + 91 ) ), - + 64 ) * - 48 + 39
----
-3326

onlyif mysql # DIV for integer division: 
query I rowsort label-9288
SELECT 88 DIV - + 7 - 58
----
-70

skipif mysql # not compatible
query I rowsort label-9288
SELECT 88 / - + 7 - 58
----
-70

query I rowsort
SELECT + 23 - - - 3
----
20

query I rowsort
SELECT - 99 * + - 78 * + 9
----
69498

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT DISTINCT + COALESCE ( - + COUNT( * ), - ( - COUNT( DISTINCT + 79 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9291
SELECT DISTINCT + COALESCE ( - + COUNT ( * ), - ( - COUNT ( DISTINCT + 79 ) ) ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - 80 * + 69
----
-5520

onlyif mysql # DIV for integer division: 
query I rowsort label-9293
SELECT DISTINCT - 27 DIV + 5 - - 86 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9293
SELECT DISTINCT - 27 / + 5 - - 86 AS col1
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9294
SELECT ALL COUNT( * ) DIV - + 49 - - 66 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL COUNT ( * ) / - + 49 - - 66 AS col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9295
SELECT DISTINCT + NULLIF ( COALESCE ( - 43, 37 DIV - 98 * 25 * + + 60 ), 40 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT + NULLIF ( COALESCE ( - 43, 37 / - 98 * 25 * + + 60 ), 40 ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT ( SUM( DISTINCT 41 ) ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-9296
SELECT ( SUM ( DISTINCT 41 ) ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT ( + - SUM( + + 57 ) ) col2
----
-57

skipif mysql # not compatible
query I rowsort label-9297
SELECT ( + - SUM ( + + 57 ) ) col2
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9298
SELECT - 33 DIV COUNT( * ) * - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-9298
SELECT - 33 / COUNT ( * ) * - COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT 97 * MAX( ALL + - 83 ) AS col1
----
-8051

skipif mysql # not compatible
query I rowsort label-9299
SELECT 97 * MAX ( ALL + - 83 ) AS col1
----
-8051

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT + 80 + COUNT( * ) + - 80
----
1

skipif mysql # not compatible
query I rowsort label-9300
SELECT + 80 + COUNT ( * ) + - 80
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9301
SELECT 93 + - + 68 + + ( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1, 43 - - COUNT( * ) + + 17 + 62
----
NULL
123

skipif mysql # not compatible
query II rowsort label-9301
SELECT 93 + - + 68 + + ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1, 43 - - COUNT ( * ) + + 17 + 62
----
NULL
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9302
SELECT DISTINCT - + MAX( DISTINCT CAST( - 39 AS SIGNED ) ) DIV + 38 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT - + MAX ( DISTINCT CAST ( - 39 AS INTEGER ) ) / + 38 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT DISTINCT - SUM( DISTINCT + 69 ) * - 18
----
1242

skipif mysql # not compatible
query I rowsort label-9303
SELECT DISTINCT - SUM ( DISTINCT + 69 ) * - 18
----
1242

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9304
SELECT ALL - ( + + 54 ) AS col1, 51 + - CAST( - 1 AS SIGNED ) AS col2
----
-54
52

skipif mysql # not compatible
query II rowsort label-9304
SELECT ALL - ( + + 54 ) AS col1, 51 + - CAST ( - 1 AS INTEGER ) AS col2
----
-54
52

query I rowsort
SELECT 21 * - + 38 * 55 AS col1
----
-43890

query I rowsort
SELECT + 52 * 14 AS col2
----
728

query I rowsort
SELECT ALL - 27 + + 31 + - + 92 + + 54
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT COUNT( - 85 ) - + + 58
----
-57

skipif mysql # not compatible
query I rowsort label-9308
SELECT COUNT ( - 85 ) - + + 58
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT - SUM( DISTINCT 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-9309
SELECT - SUM ( DISTINCT 10 )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9310
SELECT - COALESCE ( CAST( NULL AS SIGNED ), - - 70 * - 8 )
----
560

skipif mysql # not compatible
query I rowsort label-9310
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), - - 70 * - 8 )
----
560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9311
SELECT ALL - ( - COALESCE ( + + 59, + CASE COUNT( + 38 ) WHEN - + COALESCE ( 14, + 4 ) * + + SUM( ALL + ( + 50 ) ) * COUNT( * ) + - 67 * - 33 * - COUNT( * ) * - - 92 * 25 + + NULLIF ( + CAST( NULL AS SIGNED ) - + 62, 5 ) THEN 52 * + 57 END * 13, + 58 ) ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL - ( - COALESCE ( + + 59, + CASE COUNT ( + 38 ) WHEN - + COALESCE ( 14, + 4 ) * + + SUM ( ALL + ( + 50 ) ) * COUNT ( * ) + - 67 * - 33 * - COUNT ( * ) * - - 92 * 25 + + NULLIF ( + CAST ( NULL AS INTEGER ) - + 62, 5 ) THEN 52 * + 57 END * 13, + 58 ) ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT DISTINCT - COUNT( * ) + - + 61 * + - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT - COUNT ( * ) + - + 61 * + - COUNT ( * )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-9313
SELECT ALL 71 + + 27 + - 97 + - 76 DIV - 74
----
2

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL 71 + + 27 + - 97 + - 76 / - 74
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT DISTINCT COALESCE ( COUNT( * ), + - ( + CASE - 70 WHEN 64 THEN NULL ELSE 17 END ) * - - 83 + - - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT COALESCE ( COUNT ( * ), + - ( + CASE - 70 WHEN 64 THEN NULL ELSE 17 END ) * - - 83 + - - 29 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9315
SELECT ALL NULLIF ( 69, 75 ) + + CAST( NULLIF ( - + 95, - 17 ) AS SIGNED ) + - + AVG ( + 80 ) + - - MAX( 70 ) + - NULLIF ( 62, 90 ) + + 29 * + 7 / - COUNT( * ) * 66 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL NULLIF ( 69, 75 ) + + CAST ( NULLIF ( - + 95, - 17 ) AS INTEGER ) + - + AVG ( + 80 ) + - - MAX ( 70 ) + - NULLIF ( 62, 90 ) + + 29 * + 7 / - COUNT ( * ) * 66 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9316
SELECT CAST( NULL AS DECIMAL ) + ( - 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9316
SELECT CAST ( NULL AS REAL ) + ( - 1 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9317
SELECT 50 AS col0, COUNT( * ) AS col0
----
50
1

skipif mysql # not compatible
query II rowsort label-9317
SELECT 50 AS col0, COUNT ( * ) AS col0
----
50
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT ALL COUNT( * ) + + 19 / + + CASE - 1 WHEN + 43 THEN NULL WHEN - - 72 * 6 THEN - 77 + + 36 WHEN + + 75 + CASE + 57 WHEN - - COALESCE ( - 43, - COUNT( - 59 ), - COUNT( ALL - - 4 ) ) + 48 * COUNT( * ) THEN NULL ELSE - 12 END THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL COUNT ( * ) + + 19 / + + CASE - 1 WHEN + 43 THEN NULL WHEN - - 72 * 6 THEN - 77 + + 36 WHEN + + 75 + CASE + 57 WHEN - - COALESCE ( - 43, - COUNT ( - 59 ), - COUNT ( ALL - - 4 ) ) + 48 * COUNT ( * ) THEN NULL ELSE - 12 END THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 28 + - 39
----
-11

query I rowsort
SELECT 73 - 79 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT ALL 34 * + COUNT( DISTINCT - - 71 ) * 2
----
68

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL 34 * + COUNT ( DISTINCT - - 71 ) * 2
----
68

query I rowsort
SELECT 56 + + ( + 2 ) * - ( 7 )
----
42

query I rowsort
SELECT ALL - 93 - - + 72 AS col1
----
-21

query I rowsort
SELECT 63 * + 83
----
5229

query II rowsort
SELECT ALL - 1 AS col0, 26 AS col2
----
-1
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT ALL - COALESCE ( 5, + NULLIF ( - 83, + 63 ) * - - COUNT( * ) * - - COUNT( * ) * 30 * + 20 - + COUNT( * ), - 24 )
----
-5

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL - COALESCE ( 5, + NULLIF ( - 83, + 63 ) * - - COUNT ( * ) * - - COUNT ( * ) * 30 * + 20 - + COUNT ( * ), - 24 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT COUNT( * ) * + COUNT( * ) * + 12 + 79 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-9327
SELECT COUNT ( * ) * + COUNT ( * ) * + 12 + 79 AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9328
SELECT ALL 51 - + + 63 * NULLIF ( - 32, 83 - + + 53 * - COUNT( * ) ) + + COUNT( NULLIF ( + 76, - CAST( NULL AS SIGNED ) ) ) * - 71
----
1996

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL 51 - + + 63 * NULLIF ( - 32, 83 - + + 53 * - COUNT ( * ) ) + + COUNT ( NULLIF ( + 76, - CAST ( NULL AS INTEGER ) ) ) * - 71
----
1996

query I rowsort
SELECT 53 * + + 76 * + - 68
----
-273904

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT 91 + - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-9330
SELECT 91 + - COUNT ( * )
----
90

query II rowsort
SELECT 82 AS col2, 64 + + 52 AS col0
----
82
116

query II rowsort
SELECT + 78 AS col2, 50 AS col0
----
78
50

query I rowsort
SELECT 7 * ( - + COALESCE ( 79, - - 99 ) ) AS col0
----
-553

query I rowsort
SELECT ALL - 58 * + 46 AS col2
----
-2668

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT MAX( - 13 ) * - + 27 + 46
----
397

skipif mysql # not compatible
query I rowsort label-9335
SELECT MAX ( - 13 ) * - + 27 + 46
----
397

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9336
SELECT DISTINCT + CASE + COUNT( * ) WHEN - MAX( DISTINCT 78 ) THEN NULL ELSE - - COALESCE ( - 29, 46 + 39 - + CASE - - 52 WHEN + + 15 * COALESCE ( ( + - 82 ), COUNT( + 36 ) DIV + 51 DIV 87 * + 22 ) THEN 64 DIV + 8 + - 64 WHEN 14 THEN CAST( NULL AS SIGNED ) * 63 ELSE NULL END * 5 ) END DIV COUNT( * ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT + CASE + COUNT ( * ) WHEN - MAX ( DISTINCT 78 ) THEN NULL ELSE - - COALESCE ( - 29, 46 + 39 - + CASE - - 52 WHEN + + 15 * COALESCE ( ( + - 82 ), COUNT ( + 36 ) / + 51 / 87 * + 22 ) THEN 64 / + 8 + - 64 WHEN 14 THEN CAST ( NULL AS INTEGER ) * 63 ELSE NULL END * 5 ) END / COUNT ( * ) AS col1
----
-29

query I rowsort
SELECT ALL - 34 * - + 52 AS col2
----
1768

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9338
SELECT - 0 DIV + 61 * + + 31 - - 76 AS col0, MIN( DISTINCT + 2 ) + 47 AS col0
----
76
49

skipif mysql # not compatible
query II rowsort label-9338
SELECT - 0 / + 61 * + + 31 - - 76 AS col0, MIN ( DISTINCT + 2 ) + 47 AS col0
----
76
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9339
SELECT ALL + COUNT( * ) * - - 69 DIV - + ( 16 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL + COUNT ( * ) * - - 69 / - + ( 16 ) AS col2
----
-4

query II rowsort
SELECT 45 AS col1, 44
----
45
44

query I rowsort
SELECT 87 + - 41 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT DISTINCT - 31 + + COUNT( - 35 )
----
-30

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT - 31 + + COUNT ( - 35 )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9343
SELECT + CAST( ( - 18 ) AS SIGNED ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-9343
SELECT + CAST ( ( - 18 ) AS INTEGER ) AS col0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-9344
SELECT + 36 DIV + + ( 42 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9344
SELECT + 36 / + + ( 42 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT ALL - 98 + - COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL - 98 + - COUNT ( * )
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9346
SELECT - 20, - SUM( + - CAST( NULL AS SIGNED ) ) AS col2
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-9346
SELECT - 20, - SUM ( + - CAST ( NULL AS INTEGER ) ) AS col2
----
-20
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT ALL - 82 + 54 * + MAX( + 27 ) AS col1
----
1376

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL - 82 + 54 * + MAX ( + 27 ) AS col1
----
1376

onlyif mysql # DIV for integer division: 
query II rowsort label-9348
SELECT 66 + - 42 DIV - + 90, 66
----
66
66

skipif mysql # not compatible
query II rowsort label-9348
SELECT 66 + - 42 / - + 90, 66
----
66
66

query II rowsort
SELECT + ( 77 ) - - 88 AS col0, + 50 + - 41
----
165
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9350
SELECT ALL + + 93 DIV - 41 + + 6 DIV - 53 + + - 4
----
-6

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL + + 93 / - 41 + + 6 / - 53 + + - 4
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9351
SELECT - 3 DIV - MIN( - 16 ) + 93 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-9351
SELECT - 3 / - MIN ( - 16 ) + 93 AS col1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9352
SELECT 56 + - COALESCE ( + 53, 22 - + ( ( + + ( - 45 ) ) ) + - - 47 - - COALESCE ( - - 61, - 64 ) ) DIV - + 2 col2
----
82

skipif mysql # not compatible
query I rowsort label-9352
SELECT 56 + - COALESCE ( + 53, 22 - + ( ( + + ( - 45 ) ) ) + - - 47 - - COALESCE ( - - 61, - 64 ) ) / - + 2 col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9353
SELECT ALL ( + + 21 ) * - 11 DIV COUNT( * ) AS col0
----
-231

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL ( + + 21 ) * - 11 / COUNT ( * ) AS col0
----
-231

onlyif mysql # DIV for integer division: 
query II rowsort label-9354
SELECT ALL + NULLIF ( + 70, 49 DIV 88 DIV + 82 * 86 + - 88 ) DIV - 39 AS col1, 91
----
-1
91

skipif mysql # not compatible
query II rowsort label-9354
SELECT ALL + NULLIF ( + 70, 49 / 88 / + 82 * 86 + - 88 ) / - 39 AS col1, 91
----
-1
91

query I rowsort
SELECT DISTINCT - 88 + + 54 AS col2
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9356
SELECT + CAST( + - 91 AS SIGNED ) + 79 * - 55 * + 39 AS col2
----
-169546

skipif mysql # not compatible
query I rowsort label-9356
SELECT + CAST ( + - 91 AS INTEGER ) + 79 * - 55 * + 39 AS col2
----
-169546

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT CASE 72 WHEN - NULLIF ( + 72, - + 58 ) * + MAX( 99 ) THEN NULL ELSE + + 9 END + + 27 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-9357
SELECT CASE 72 WHEN - NULLIF ( + 72, - + 58 ) * + MAX ( 99 ) THEN NULL ELSE + + 9 END + + 27 AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9358
SELECT DISTINCT - 6 + + COALESCE ( + 53, + + CASE 72 WHEN 9 THEN NULL ELSE + COUNT( * ) END, - CAST( + - 71 AS SIGNED ) ) * - 7 AS col1
----
-377

skipif mysql # not compatible
query I rowsort label-9358
SELECT DISTINCT - 6 + + COALESCE ( + 53, + + CASE 72 WHEN 9 THEN NULL ELSE + COUNT ( * ) END, - CAST ( + - 71 AS INTEGER ) ) * - 7 AS col1
----
-377

query II rowsort
SELECT ALL 17 * - 23 AS col1, 1
----
-391
1

query I rowsort
SELECT 37 * 54
----
1998

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT MAX( + + 16 ) + - 85
----
-69

skipif mysql # not compatible
query I rowsort label-9361
SELECT MAX ( + + 16 ) + - 85
----
-69

query I rowsort
SELECT ALL + 61 - - - 46 col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9363
SELECT DISTINCT + NULLIF ( + 27, + - 86 ) * + NULLIF ( - 93, - CASE 85 WHEN 29 * - 0 + - - 3 + CAST( NULL AS SIGNED ) * + ( - + 52 ) THEN + - 49 WHEN - 86 THEN NULL ELSE 96 / - 60 + + 45 - - CAST( NULL AS SIGNED ) END + + 18 * + 43 )
----
-2511

skipif mysql # not compatible
query I rowsort label-9363
SELECT DISTINCT + NULLIF ( + 27, + - 86 ) * + NULLIF ( - 93, - CASE 85 WHEN 29 * - 0 + - - 3 + CAST ( NULL AS INTEGER ) * + ( - + 52 ) THEN + - 49 WHEN - 86 THEN NULL ELSE 96 / - 60 + + 45 - - CAST ( NULL AS INTEGER ) END + + 18 * + 43 )
----
-2511

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT COUNT( + 37 ) * - 44
----
-44

skipif mysql # not compatible
query I rowsort label-9364
SELECT COUNT ( + 37 ) * - 44
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-9365
SELECT ALL COUNT( * ) * - 40, 25 col2
----
-40
25

skipif mysql # not compatible
query II rowsort label-9365
SELECT ALL COUNT ( * ) * - 40, 25 col2
----
-40
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9366
SELECT MIN( - 56 ) DIV + MIN( ALL - 15 ) AS col0, ( + + 26 ) col2
----
3
26

skipif mysql # not compatible
query II rowsort label-9366
SELECT MIN ( - 56 ) / + MIN ( ALL - 15 ) AS col0, ( + + 26 ) col2
----
3
26

query II rowsort
SELECT + 98 * + - 16 col1, 87
----
-1568
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT ALL 4 * COUNT( - 8 )
----
4

skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL 4 * COUNT ( - 8 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT + COALESCE ( + COUNT( * ), - NULLIF ( 49, 84 * + CASE 22 WHEN 3 + - + 10 THEN NULL ELSE 74 END * - ( - - 41 ) + 77 ) ) - + 29 + MAX( - - ( + 21 ) ) + + 54 + NULLIF ( 8, ( SUM( + 68 ) ) * + 32 ) + 65 * - 76 AS col0
----
-4885

skipif mysql # not compatible
query I rowsort label-9369
SELECT + COALESCE ( + COUNT ( * ), - NULLIF ( 49, 84 * + CASE 22 WHEN 3 + - + 10 THEN NULL ELSE 74 END * - ( - - 41 ) + 77 ) ) - + 29 + MAX ( - - ( + 21 ) ) + + 54 + NULLIF ( 8, ( SUM ( + 68 ) ) * + 32 ) + 65 * - 76 AS col0
----
-4885

query I rowsort
SELECT + ( - + 32 ) * + 10
----
-320

query I rowsort
SELECT DISTINCT 50 * + 23 AS col0
----
1150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9372
SELECT + CAST( + - 78 AS SIGNED ) * - - ( - - 84 ) AS col2
----
-6552

skipif mysql # not compatible
query I rowsort label-9372
SELECT + CAST ( + - 78 AS INTEGER ) * - - ( - - 84 ) AS col2
----
-6552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9373
SELECT - CAST( + + COUNT( * ) AS SIGNED ) DIV + 32 - 24 + 52 + - 9
----
19

skipif mysql # not compatible
query I rowsort label-9373
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) / + 32 - 24 + 52 + - 9
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT + COALESCE ( COALESCE ( + ( + 54 ), - 36 ), - 68, - + 98 + + - COUNT( * ) ) * + 5 col1
----
270

skipif mysql # not compatible
query I rowsort label-9374
SELECT + COALESCE ( COALESCE ( + ( + 54 ), - 36 ), - 68, - + 98 + + - COUNT ( * ) ) * + 5 col1
----
270

query I rowsort
SELECT DISTINCT + 2 * + ( 63 ) + + 9 - 68 AS col2
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-9376
SELECT DISTINCT + + ( - 18 ) AS col1, + 56 DIV - - 49 AS col1
----
-18
1

skipif mysql # not compatible
query II rowsort label-9376
SELECT DISTINCT + + ( - 18 ) AS col1, + 56 / - - 49 AS col1
----
-18
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9377
SELECT ALL - 87 * 81 * - 24 * - 58 + + - COALESCE ( + 17, - 90 - - 14 + COUNT( * ) DIV 74 * - + COUNT( * ) )
----
-9809441

skipif mysql # not compatible
query I rowsort label-9377
SELECT ALL - 87 * 81 * - 24 * - 58 + + - COALESCE ( + 17, - 90 - - 14 + COUNT ( * ) / 74 * - + COUNT ( * ) )
----
-9809441

query I rowsort
SELECT + 73 * 38
----
2774

query I rowsort
SELECT + 78 + - 51 * - 32
----
1710

query I rowsort
SELECT DISTINCT + + 91 + + 76 + + - 35 * 12
----
-253

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9381
SELECT + CAST( 38 AS SIGNED ) + - 20 * + 55 * - 60 AS col1
----
66038

skipif mysql # not compatible
query I rowsort label-9381
SELECT + CAST ( 38 AS INTEGER ) + - 20 * + 55 * - 60 AS col1
----
66038

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT ALL SUM( ALL 35 ) + + 78
----
113

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL SUM ( ALL 35 ) + + 78
----
113

query I rowsort
SELECT ( - + 11 ) col0
----
-11

query I rowsort
SELECT ALL - 86 + - 57 * + COALESCE ( - - 67, - 40, 65 ) col2
----
-3905

query I rowsort
SELECT DISTINCT 93 + + 34
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT DISTINCT + NULLIF ( + - NULLIF ( - + 87, - COALESCE ( + - NULLIF ( + 16, - COUNT( * ) * - ( COUNT( DISTINCT 32 ) ) ), + 76 * + ( 25 ) - + + 94 * - 79 ) ), NULLIF ( - ( - 98 ), + 74 * + CASE + 8 * 38 WHEN - COUNT( * ) * 34 THEN 89 END + + 66 ) / - 37 )
----
87

skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT + NULLIF ( + - NULLIF ( - + 87, - COALESCE ( + - NULLIF ( + 16, - COUNT ( * ) * - ( COUNT ( DISTINCT 32 ) ) ), + 76 * + ( 25 ) - + + 94 * - 79 ) ), NULLIF ( - ( - 98 ), + 74 * + CASE + 8 * 38 WHEN - COUNT ( * ) * 34 THEN 89 END + + 66 ) / - 37 )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9387
SELECT + 89 - CAST( 72 AS SIGNED ) + + + 37 DIV + - MIN( + 14 ) + COUNT( * ) * + - COUNT( * ) - 30 * + 72 AS col0
----
-2146

skipif mysql # not compatible
query I rowsort label-9387
SELECT + 89 - CAST ( 72 AS INTEGER ) + + + 37 / + - MIN ( + 14 ) + COUNT ( * ) * + - COUNT ( * ) - 30 * + 72 AS col0
----
-2146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9388
SELECT - MIN( DISTINCT 72 ) * MIN( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9388
SELECT - MIN ( DISTINCT 72 ) * MIN ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9389
SELECT - 64 * CASE + - COUNT( * ) WHEN + 11 THEN + 5 + + - 74 WHEN - + COUNT( * ) THEN NULL ELSE CAST( - COALESCE ( - 35, 70 ) AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9389
SELECT - 64 * CASE + - COUNT ( * ) WHEN + 11 THEN + 5 + + - 74 WHEN - + COUNT ( * ) THEN NULL ELSE CAST ( - COALESCE ( - 35, 70 ) AS REAL ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9390
SELECT ALL CASE + COUNT( * ) WHEN - AVG ( DISTINCT - 17 ) THEN NULL WHEN 57 * - CAST( - SUM( CAST( NULL AS DECIMAL ) ) AS DECIMAL ) THEN + 65 ELSE + ( - + 5 ) END AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL CASE + COUNT ( * ) WHEN - AVG ( DISTINCT - 17 ) THEN NULL WHEN 57 * - CAST ( - SUM ( CAST ( NULL AS REAL ) ) AS REAL ) THEN + 65 ELSE + ( - + 5 ) END AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT - COUNT( * ) + - + 95
----
-96

skipif mysql # not compatible
query I rowsort label-9391
SELECT - COUNT ( * ) + - + 95
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9392
SELECT - ( - COUNT( * ) ) DIV 4 * - + NULLIF ( 38, MIN( - 85 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9392
SELECT - ( - COUNT ( * ) ) / 4 * - + NULLIF ( 38, MIN ( - 85 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9393
SELECT - COUNT( * ) AS col0, 30 AS col2
----
-1
30

skipif mysql # not compatible
query II rowsort label-9393
SELECT - COUNT ( * ) AS col0, 30 AS col2
----
-1
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT - 0 + COALESCE ( - + 87, + COUNT( * ) + 80 ) + - + ( COUNT( * ) ) + 28 * + 25 AS col2
----
612

skipif mysql # not compatible
query I rowsort label-9394
SELECT - 0 + COALESCE ( - + 87, + COUNT ( * ) + 80 ) + - + ( COUNT ( * ) ) + 28 * + 25 AS col2
----
612

query I rowsort
SELECT ALL - 93 - + 91
----
-184

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9396
SELECT ALL + CAST( - 70 AS SIGNED ) DIV CAST( - 19 AS SIGNED ) * 15 * 86 + + 29 AS col1
----
3899

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL + CAST ( - 70 AS INTEGER ) / CAST ( - 19 AS INTEGER ) * 15 * 86 + + 29 AS col1
----
3899

query I rowsort
SELECT - ( + 12 ) - + 11
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9398
SELECT DISTINCT - 48 / CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT DISTINCT - 48 / CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT ALL + 94 - COUNT( * ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL + 94 - COUNT ( * ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT - 46 + - SUM( 23 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-9400
SELECT - 46 + - SUM ( 23 ) AS col0
----
-69

query I rowsort
SELECT ALL ( 66 ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT DISTINCT + 76 * - MAX( - + 42 ) AS col2
----
3192

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT + 76 * - MAX ( - + 42 ) AS col2
----
3192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9403
SELECT + ( - 65 ) * + 93 * COUNT( * ) + - - 63 + - 44 - + + 11 + - 37 + 5 - - 12 * COUNT( * ) DIV + - 12 AS col1
----
-6070

skipif mysql # not compatible
query I rowsort label-9403
SELECT + ( - 65 ) * + 93 * COUNT ( * ) + - - 63 + - 44 - + + 11 + - 37 + 5 - - 12 * COUNT ( * ) / + - 12 AS col1
----
-6070

query I rowsort
SELECT DISTINCT + 58 * + + 35 col2
----
2030

query I rowsort
SELECT - 10 + - 86
----
-96

query I rowsort
SELECT + 16 - 97 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT - ( 21 ) + 43 * - + MIN( 23 ) + + - 12 col1
----
-1022

skipif mysql # not compatible
query I rowsort label-9407
SELECT - ( 21 ) + 43 * - + MIN ( 23 ) + + - 12 col1
----
-1022

query I rowsort
SELECT DISTINCT + 58 * - 72
----
-4176

onlyif mysql # DIV for integer division: 
query I rowsort label-9409
SELECT ALL 69 DIV - 92 + + - 2 + + - 93
----
-95

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL 69 / - 92 + + - 2 + + - 93
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9410
SELECT CAST( - - 78 AS SIGNED ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-9410
SELECT CAST ( - - 78 AS INTEGER ) AS col0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9411
SELECT - COUNT( * ) DIV + 87 + ( - 97 ) * + + 64 + + + 73 + + 25
----
-6110

skipif mysql # not compatible
query I rowsort label-9411
SELECT - COUNT ( * ) / + 87 + ( - 97 ) * + + 64 + + + 73 + + 25
----
-6110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9412
SELECT DISTINCT + ( 58 ) DIV - 7 + - CAST( - 42 AS SIGNED ) + - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-9412
SELECT DISTINCT + ( 58 ) / - 7 + - CAST ( - 42 AS INTEGER ) + - COUNT ( * )
----
33

query I rowsort
SELECT - 49 * - 26 * 48 * + - 85
----
-5197920

onlyif mysql # DIV for integer division: 
query I rowsort label-9414
SELECT + + 35 + 15 DIV + ( 26 ) col1
----
35

skipif mysql # not compatible
query I rowsort label-9414
SELECT + + 35 + 15 / + ( 26 ) col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-9415
SELECT + - COUNT( * ) AS col1, + 96 - - - 58 AS col1
----
-1
38

skipif mysql # not compatible
query II rowsort label-9415
SELECT + - COUNT ( * ) AS col1, + 96 - - - 58 AS col1
----
-1
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9416
SELECT - COALESCE ( - + 81, + + CASE WHEN MIN( - + 69 ) < - - COUNT( * ) THEN - ( - 63 ) ELSE NULL END, - 64 * - + 20 * - + 38 ) * - 54 + 89 DIV - 83
----
-4375

skipif mysql # not compatible
query I rowsort label-9416
SELECT - COALESCE ( - + 81, + + CASE WHEN MIN ( - + 69 ) < - - COUNT ( * ) THEN - ( - 63 ) ELSE NULL END, - 64 * - + 20 * - + 38 ) * - 54 + 89 / - 83
----
-4375

onlyif mysql # DIV for integer division: 
query II rowsort label-9417
SELECT + 76 DIV - 91 * + + 31, - 20 AS col1
----
0
-20

skipif mysql # not compatible
query II rowsort label-9417
SELECT + 76 / - 91 * + + 31, - 20 AS col1
----
0
-20

query I rowsort
SELECT + - ( 46 )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9419
SELECT DISTINCT + + 89 * - - 2 * 45 - COALESCE ( COUNT( * ), 7 - + + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + + ( - COALESCE ( + NULLIF ( 27, + 59 / 81 ), - COUNT( * ) ) ) * 5 ) AS col0
----
8009

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT + + 89 * - - 2 * 45 - COALESCE ( COUNT ( * ), 7 - + + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + ( - COALESCE ( + NULLIF ( 27, + 59 / 81 ), - COUNT ( * ) ) ) * 5 ) AS col0
----
8009

query I rowsort
SELECT + 21 + - 66
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9421
SELECT + 25 * + CAST( - 82 AS SIGNED ) AS col0, 9 + + - 83 * 90 AS col1
----
-2050
-7461

skipif mysql # not compatible
query II rowsort label-9421
SELECT + 25 * + CAST ( - 82 AS INTEGER ) AS col0, 9 + + - 83 * 90 AS col1
----
-2050
-7461

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT DISTINCT + + COUNT( ALL 29 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT + + COUNT ( ALL 29 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT - + 53 * - + 91 + ( COUNT( * ) ) AS col0
----
4824

skipif mysql # not compatible
query I rowsort label-9423
SELECT - + 53 * - + 91 + ( COUNT ( * ) ) AS col0
----
4824

query I rowsort
SELECT DISTINCT - 31 * + - 26 + 47 - - 60
----
913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9425
SELECT - CAST( + 33 AS SIGNED ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-9425
SELECT - CAST ( + 33 AS INTEGER ) AS col1
----
-33

query I rowsort
SELECT ALL + 61 * 86
----
5246

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT ALL NULLIF ( - COUNT( + 47 ), - NULLIF ( + + 20, - 23 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL NULLIF ( - COUNT ( + 47 ), - NULLIF ( + + 20, - 23 ) ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + 52 * + 31
----
1612

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT + ( + 57 ) * COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-9429
SELECT + ( + 57 ) * COUNT ( * )
----
57

query I rowsort
SELECT - ( - 30 ) + - 42
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9431
SELECT - CAST( + + ( - 26 ) AS SIGNED ) col2
----
26

skipif mysql # not compatible
query I rowsort label-9431
SELECT - CAST ( + + ( - 26 ) AS INTEGER ) col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT - COUNT( * ) + - + 39 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-9432
SELECT - COUNT ( * ) + - + 39 AS col2
----
-40

query I rowsort
SELECT ALL - 44 * + 51
----
-2244

query I rowsort
SELECT 56 * + ( 59 )
----
3304

query I rowsort
SELECT 91 * + 54 AS col0
----
4914

onlyif mysql # aggregate syntax: 
query II rowsort label-9436
SELECT - 9 AS col2, COUNT( * ) AS col0
----
-9
1

skipif mysql # not compatible
query II rowsort label-9436
SELECT - 9 AS col2, COUNT ( * ) AS col0
----
-9
1

query II rowsort
SELECT 98 AS col1, - 99 + + 38 AS col1
----
98
-61

query I rowsort
SELECT 7 + + - ( + 47 )
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9439
SELECT ALL 70 AS col2, - 7 DIV COUNT( * ) + 94 AS col1
----
70
87

skipif mysql # not compatible
query II rowsort label-9439
SELECT ALL 70 AS col2, - 7 / COUNT ( * ) + 94 AS col1
----
70
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9440
SELECT 91 * - 27 * + 94 * - - 88 AS col0, - CAST( - ( NULLIF ( - 70, ( + + ( 76 ) ) / + COUNT( * ) ) ) AS SIGNED ) AS col2
----
-20324304
-70

skipif mysql # not compatible
query II rowsort label-9440
SELECT 91 * - 27 * + 94 * - - 88 AS col0, - CAST ( - ( NULLIF ( - 70, ( + + ( 76 ) ) / + COUNT ( * ) ) ) AS INTEGER ) AS col2
----
-20324304
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-9441
SELECT ALL + 72 + + 22 DIV + 18 col1
----
73

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL + 72 + + 22 / + 18 col1
----
73

query II rowsort
SELECT DISTINCT - 18 + + 11 AS col0, 12
----
-7
12

query I rowsort
SELECT DISTINCT + ( + 95 ) + + + 89 + + 47 col2
----
231

query I rowsort
SELECT 7 * - 3 * 44
----
-924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9445
SELECT ALL - 0 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL - 0 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 81 * ( - 55 )
----
-4455

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT COUNT( * ) * + 5
----
5

skipif mysql # not compatible
query I rowsort label-9447
SELECT COUNT ( * ) * + 5
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9448
SELECT DISTINCT - - AVG ( CAST( CASE 26 WHEN + 66 + - 54 THEN 59 END AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9448
SELECT DISTINCT - - AVG ( CAST ( CASE 26 WHEN + 66 + - 54 THEN 59 END AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + + 49 * + + 81
----
3969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9450
SELECT ALL - + CASE - CAST( NULL AS SIGNED ) WHEN - - 22 / - 89 / 61 + - 93 THEN - 87 END + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL - + CASE - CAST ( NULL AS INTEGER ) WHEN - - 22 / - 89 / 61 + - 93 THEN - 87 END + 60
----
NULL

query II rowsort
SELECT + 99 AS col2, - 47 AS col0
----
99
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT ALL + COUNT( * ) + - - 91 * - 2 * - 86 AS col1
----
15653

skipif mysql # not compatible
query I rowsort label-9452
SELECT ALL + COUNT ( * ) + - - 91 * - 2 * - 86 AS col1
----
15653

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT + COUNT( * ) - + 43 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-9453
SELECT + COUNT ( * ) - + 43 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT COUNT( * ) * 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9454
SELECT COUNT ( * ) * 23 AS col0
----
23

query I rowsort
SELECT ALL - 50 + - 50 AS col2
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9456
SELECT DISTINCT + - COALESCE ( - 58, + COALESCE ( + 73, - CASE 68 WHEN + 97 * COUNT( * ) THEN + - 49 + + 7 ELSE - - 70 * 79 - 95 END, COUNT( * ) DIV 49 * + - 94 ) ) - - 82 AS col0
----
140

skipif mysql # not compatible
query I rowsort label-9456
SELECT DISTINCT + - COALESCE ( - 58, + COALESCE ( + 73, - CASE 68 WHEN + 97 * COUNT ( * ) THEN + - 49 + + 7 ELSE - - 70 * 79 - 95 END, COUNT ( * ) / 49 * + - 94 ) ) - - 82 AS col0
----
140

query II rowsort
SELECT ALL 26 - 27 AS col2, - 84 col1
----
-1
-84

query I rowsort
SELECT - 96 - + - ( 10 ) + + + 30
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT CASE + SUM( DISTINCT ( + + 70 ) ) WHEN - - 55 + - 3 / COUNT( * ) THEN - - 82 END * 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9459
SELECT CASE + SUM ( DISTINCT ( + + 70 ) ) WHEN - - 55 + - 3 / COUNT ( * ) THEN - - 82 END * 41 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT 33 * 84 * COUNT( * ) + + 5 + - + 18 * - 17 * ( + 8 )
----
5225

skipif mysql # not compatible
query I rowsort label-9460
SELECT 33 * 84 * COUNT ( * ) + + 5 + - + 18 * - 17 * ( + 8 )
----
5225

onlyif mysql # DIV for integer division: 
query I rowsort label-9461
SELECT ALL - ( - - 17 ) DIV - 32 * - 97 * - 90 + - 8
----
-8

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL - ( - - 17 ) / - 32 * - 97 * - 90 + - 8
----
-8

query II rowsort
SELECT ALL - 92 AS col0, - 36 col2
----
-92
-36

query I rowsort
SELECT ( 64 ) + - - 31
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9464
SELECT + 46 DIV 46
----
1

skipif mysql # not compatible
query I rowsort label-9464
SELECT + 46 / 46
----
1

query I rowsort
SELECT ALL - 18 * 48
----
-864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9466
SELECT 13 * - + COUNT( * ) - - COUNT( 8 ) DIV + 74
----
-13

skipif mysql # not compatible
query I rowsort label-9466
SELECT 13 * - + COUNT ( * ) - - COUNT ( 8 ) / + 74
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ALL - COUNT( * ) * - + 0 - - 92 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL - COUNT ( * ) * - + 0 - - 92 AS col1
----
92

query I rowsort
SELECT DISTINCT - ( + + 33 ) AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9469
SELECT ALL 64 / + 33 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL 64 / + 33 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - 20 ) + + + 53 + 68
----
101

query I rowsort
SELECT NULLIF ( - - 43, - 51 ) * - - 20
----
860

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT MAX( DISTINCT + + 85 ) + - 8 * 68
----
-459

skipif mysql # not compatible
query I rowsort label-9472
SELECT MAX ( DISTINCT + + 85 ) + - 8 * 68
----
-459

onlyif mysql # aggregate syntax: 
query II rowsort label-9473
SELECT 1 * + + CASE 65 WHEN - - COUNT( * ) THEN - 57 * 62 + 58 ELSE - 91 * - 21 + + 7 END * + - MIN( ALL - 49 ), + 55 col1
----
93982
55

skipif mysql # not compatible
query II rowsort label-9473
SELECT 1 * + + CASE 65 WHEN - - COUNT ( * ) THEN - 57 * 62 + 58 ELSE - 91 * - 21 + + 7 END * + - MIN ( ALL - 49 ), + 55 col1
----
93982
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT 72 + - + SUM( - 58 ) AS col0
----
130

skipif mysql # not compatible
query I rowsort label-9474
SELECT 72 + - + SUM ( - 58 ) AS col0
----
130

query I rowsort
SELECT DISTINCT 34 + - + 43 - + 65
----
-74

query I rowsort
SELECT ALL 57 * + 26 col0
----
1482

query I rowsort
SELECT 91 * + - 93
----
-8463

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9478
SELECT ALL 69 + - CAST( AVG ( ALL + ( + 7 ) ) AS SIGNED ) - + 23 col0
----
39

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL 69 + - CAST ( AVG ( ALL + ( + 7 ) ) AS INTEGER ) - + 23 col0
----
39

query I rowsort
SELECT 97 - - - 9 * - 51 + 77 AS col0
----
633

query I rowsort
SELECT ALL 86 * 15 AS col2
----
1290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9481
SELECT ALL SUM( ALL + 38 ) + - + COALESCE ( 8, - + 35 DIV - COALESCE ( ( + 22 ), - + 12 + 64 ), + 4 * - 26 - MAX( ALL - 83 ) * - 55 * + 15 + + 26 * + 35, - COALESCE ( - - 14, - 91 ) ) * - - 80 DIV + 77 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL SUM ( ALL + 38 ) + - + COALESCE ( 8, - + 35 / - COALESCE ( ( + 22 ), - + 12 + 64 ), + 4 * - 26 - MAX ( ALL - 83 ) * - 55 * + 15 + + 26 * + 35, - COALESCE ( - - 14, - 91 ) ) * - - 80 / + 77 AS col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9482
SELECT 87 * 38 * 76 DIV - - 81
----
3101

skipif mysql # not compatible
query I rowsort label-9482
SELECT 87 * 38 * 76 / - - 81
----
3101

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT ( 58 ) + - MIN( ALL + - 81 )
----
139

skipif mysql # not compatible
query I rowsort label-9483
SELECT ( 58 ) + - MIN ( ALL + - 81 )
----
139

query I rowsort
SELECT - - CASE 71 WHEN - - 2 THEN NULL ELSE + 35 - - 73 * - + 56 END
----
-4053

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT ALL - SUM( DISTINCT - 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL - SUM ( DISTINCT - 41 ) AS col2
----
41

query I rowsort
SELECT - 44 + - 46 + - - 79 - CASE WHEN NOT 7 IS NULL THEN + 85 * - 46 + - + 54 + + 95 END + 70 * 44 AS col1
----
6938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9487
SELECT DISTINCT - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / NULLIF ( - 14, + + 47 / 36 + + 12 / + 67 ) * + 9 + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT DISTINCT - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / NULLIF ( - 14, + + 47 / 36 + + 12 / + 67 ) * + 9 + 1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9488
SELECT - CAST( 96 AS SIGNED ) * 39 + - 40 AS col1
----
-3784

skipif mysql # not compatible
query I rowsort label-9488
SELECT - CAST ( 96 AS INTEGER ) * 39 + - 40 AS col1
----
-3784

query I rowsort
SELECT DISTINCT + COALESCE ( + - 9, - 58 * - 67 * + 20 + 31 ) * + 78 AS col1
----
-702

query I rowsort
SELECT DISTINCT - - 59 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT NULLIF ( 90, + + ( 89 ) ) + + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-9491
SELECT NULLIF ( 90, + + ( 89 ) ) + + COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT ALL - + SUM( ALL 89 ) * + - 62 + + 5 AS col1
----
5523

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL - + SUM ( ALL 89 ) * + - 62 + + 5 AS col1
----
5523

query I rowsort
SELECT 48 * - COALESCE ( - 89, + + 2 )
----
4272

query II rowsort
SELECT 35 + + 54 AS col0, COALESCE ( + - 78, + 3 ) * ( - 53 ) + - + 20
----
89
4114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9495
SELECT 94 + - + CAST( NULL AS SIGNED ) + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-9495
SELECT 94 + - + CAST ( NULL AS INTEGER ) + 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT DISTINCT - - COUNT( * ) * + 64 + 6 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT - - COUNT ( * ) * + 64 + 6 AS col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9497
SELECT ALL - 78 * - COUNT( * ) + 85 + MAX( 92 ) * 50 - + 95 - - 2 - 48 + + 39 + COALESCE ( + - 18, + 62 ) * + + 29 + - 77 + 33 DIV - ( - 90 ) * + 43 * + COUNT( * ) * + 38
----
4062

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL - 78 * - COUNT ( * ) + 85 + MAX ( 92 ) * 50 - + 95 - - 2 - 48 + + 39 + COALESCE ( + - 18, + 62 ) * + + 29 + - 77 + 33 / - ( - 90 ) * + 43 * + COUNT ( * ) * + 38
----
4062

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT 27 * + COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-9498
SELECT 27 * + COUNT ( * ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL - COALESCE ( - 91, - + COUNT( * ), + + 48 )
----
91

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL - COALESCE ( - 91, - + COUNT ( * ), + + 48 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT SUM( - - 75 ) + + COUNT( ALL - - 88 ) - + 50 - - NULLIF ( + NULLIF ( - 26, + ( + 29 ) + NULLIF ( - 41, + - 24 ) - 43 * + ( + 48 ) ), 55 )
----
0

skipif mysql # not compatible
query I rowsort label-9500
SELECT SUM ( - - 75 ) + + COUNT ( ALL - - 88 ) - + 50 - - NULLIF ( + NULLIF ( - 26, + ( + 29 ) + NULLIF ( - 41, + - 24 ) - 43 * + ( + 48 ) ), 55 )
----
0

query II rowsort
SELECT DISTINCT - 43 AS col1, + 7 * ( - - 76 )
----
-43
532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9502
SELECT - 41 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9502
SELECT - 41 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT + COUNT( * ) + 67 * 66 + + + ( + - 37 ) + - COALESCE ( - NULLIF ( - + 23, - 97 ), + 77 - 10 ) * - COUNT( * ) - 88 * + 69 * - - 9
----
-50239

skipif mysql # not compatible
query I rowsort label-9503
SELECT + COUNT ( * ) + 67 * 66 + + + ( + - 37 ) + - COALESCE ( - NULLIF ( - + 23, - 97 ), + 77 - 10 ) * - COUNT ( * ) - 88 * + 69 * - - 9
----
-50239

query I rowsort
SELECT + 95 * 92 + + 43
----
8783

query I rowsort
SELECT ALL + 71 + + 2 AS col0
----
73

query I rowsort
SELECT - ( - - 18 ) + - 92 AS col2
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT - COUNT( * ) * - + COUNT( * ) * - COALESCE ( + - ( 48 ), COALESCE ( - ( + + SUM( - 36 ) ), - - COUNT( ALL - 2 ), - - 6 ), - 8, - 92 * + 10 * - + ( - 15 ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-9507
SELECT - COUNT ( * ) * - + COUNT ( * ) * - COALESCE ( + - ( 48 ), COALESCE ( - ( + + SUM ( - 36 ) ), - - COUNT ( ALL - 2 ), - - 6 ), - 8, - 92 * + 10 * - + ( - 15 ) ) AS col2
----
48

query I rowsort
SELECT DISTINCT 22 + + ( - 48 ) * + - 45 - - 14 AS col1
----
2196

query I rowsort
SELECT DISTINCT + 17 + 99 AS col2
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9510
SELECT ALL SUM( ALL - 52 ) + NULLIF ( - + 98, - + 12 * CAST( NULL AS SIGNED ) + + 83 * - + 10 + COUNT( * ) ) + + 9 * + 38 * 26
----
8742

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL SUM ( ALL - 52 ) + NULLIF ( - + 98, - + 12 * CAST ( NULL AS INTEGER ) + + 83 * - + 10 + COUNT ( * ) ) + + 9 * + 38 * 26
----
8742

query I rowsort
SELECT + ( + 67 ) + + 17
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT DISTINCT + COUNT( - ( + 12 ) ) * + 91 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-9512
SELECT DISTINCT + COUNT ( - ( + 12 ) ) * + 91 AS col0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9513
SELECT + 33 DIV 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9513
SELECT + 33 / 50 AS col0
----
0

query I rowsort
SELECT - ( - 36 ) * + ( + - 76 ) AS col0
----
-2736

onlyif mysql # aggregate syntax: 
query II rowsort label-9515
SELECT ALL 15 + - CASE - 75 WHEN - 76 * + SUM( + 67 ) THEN - ( - - 58 ) + - ( - 4 ) WHEN + MIN( 69 ) * - 66 THEN NULL END AS col1, + 60 AS col2
----
NULL
60

skipif mysql # not compatible
query II rowsort label-9515
SELECT ALL 15 + - CASE - 75 WHEN - 76 * + SUM ( + 67 ) THEN - ( - - 58 ) + - ( - 4 ) WHEN + MIN ( 69 ) * - 66 THEN NULL END AS col1, + 60 AS col2
----
NULL
60

query I rowsort
SELECT + 21 * - + 14 AS col0
----
-294

query I rowsort
SELECT + 27 * 19 AS col2
----
513

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT + COUNT( * ) + + 80 + - 3 + 10 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-9518
SELECT + COUNT ( * ) + + 80 + - 3 + 10 AS col1
----
88

query I rowsort
SELECT ALL 59 * - + 98 * 49 AS col2
----
-283318

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT + - 72 * + COUNT( * ) * - 97 AS col0
----
6984

skipif mysql # not compatible
query I rowsort label-9520
SELECT + - 72 * + COUNT ( * ) * - 97 AS col0
----
6984

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT ALL - COALESCE ( COUNT( * ), + - ( + - 68 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL - COALESCE ( COUNT ( * ), + - ( + - 68 ) ) AS col2
----
-1

query I rowsort
SELECT - + ( 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT ALL - 34 * + MIN( + 7 ) AS col0
----
-238

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL - 34 * + MIN ( + 7 ) AS col0
----
-238

onlyif mysql # DIV for integer division: 
query I rowsort label-9524
SELECT + 44 DIV 90 + 61
----
61

skipif mysql # not compatible
query I rowsort label-9524
SELECT + 44 / 90 + 61
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT - MIN( ALL - 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-9525
SELECT - MIN ( ALL - 38 ) AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9526
SELECT - - CAST( - - CAST( - 95 AS SIGNED ) AS SIGNED ) * - - COUNT( * ) + CASE - + AVG ( + + 55 ) WHEN - 67 + COUNT( * ) THEN ( - SUM( ALL - 92 ) ) + + - 68 END * - + ( - 93 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9526
SELECT - - CAST ( - - CAST ( - 95 AS INTEGER ) AS INTEGER ) * - - COUNT ( * ) + CASE - + AVG ( + + 55 ) WHEN - 67 + COUNT ( * ) THEN ( - SUM ( ALL - 92 ) ) + + - 68 END * - + ( - 93 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT - - 55 / + 36 * + - 47 + - + 22 + - COALESCE ( + COUNT( * ), MIN( 0 ), 15 ) * - 5 + - CASE - 12 WHEN + 77 * + 69 THEN + + 25 / COUNT( * ) - - COUNT( DISTINCT - - ( - + 33 ) ) WHEN + 11 + - - COALESCE ( + 10, - + AVG ( DISTINCT + 72 ) * NULLIF ( - 6 * 77, + 91 ), + 75 ) THEN 4 END - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9527
SELECT - - 55 / + 36 * + - 47 + - + 22 + - COALESCE ( + COUNT ( * ), MIN ( 0 ), 15 ) * - 5 + - CASE - 12 WHEN + 77 * + 69 THEN + + 25 / COUNT ( * ) - - COUNT ( DISTINCT - - ( - + 33 ) ) WHEN + 11 + - - COALESCE ( + 10, - + AVG ( DISTINCT + 72 ) * NULLIF ( - 6 * 77, + 91 ), + 75 ) THEN 4 END - 85 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9528
SELECT - 1 DIV - 37 - - 86
----
86

skipif mysql # not compatible
query I rowsort label-9528
SELECT - 1 / - 37 - - 86
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT + 44 + + 20 * + CASE - 74 WHEN - 96 * 81 + 77 + - 83 - - + 62 - + - 17 / NULLIF ( - COUNT( 64 ), 83 * - 75 ) * - + COUNT( * ) + - 90 + - 60 THEN + + 92 + 63 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9529
SELECT + 44 + + 20 * + CASE - 74 WHEN - 96 * 81 + 77 + - 83 - - + 62 - + - 17 / NULLIF ( - COUNT ( 64 ), 83 * - 75 ) * - + COUNT ( * ) + - 90 + - 60 THEN + + 92 + 63 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9530
SELECT DISTINCT + 18 DIV + + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT + 18 / + + COUNT ( * )
----
18

query II rowsort
SELECT DISTINCT + - 32, 71 AS col2
----
-32
71

query I rowsort
SELECT ALL + 85 * - 64
----
-5440

onlyif mysql # DIV for integer division: 
query I rowsort label-9533
SELECT DISTINCT 46 DIV + + 77 * - 32
----
0

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT 46 / + + 77 * - 32
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9534
SELECT - + CAST( NULL AS SIGNED ) - + ( + + 49 ) - 39 + 98 * + - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9534
SELECT - + CAST ( NULL AS INTEGER ) - + ( + + 49 ) - 39 + 98 * + - 9 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9535
SELECT + 33 DIV + 12
----
2

skipif mysql # not compatible
query I rowsort label-9535
SELECT + 33 / + 12
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9536
SELECT - 3 DIV + 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9536
SELECT - 3 / + 30 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9537
SELECT ALL 29 * 28 + + 76 + + 43 DIV + 93, ( - + COUNT( * ) ) * + - 75 + + 96 AS col0
----
888
171

skipif mysql # not compatible
query II rowsort label-9537
SELECT ALL 29 * 28 + + 76 + + 43 / + 93, ( - + COUNT ( * ) ) * + - 75 + + 96 AS col0
----
888
171

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT - COUNT( * ) * - 4 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9538
SELECT - COUNT ( * ) * - 4 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT COALESCE ( - ( - 84 ), + 40 * - 95 + - 60, + - CASE 11 WHEN + + 34 * - + 94 * - MAX( DISTINCT + - 73 ) THEN 6 * - + 51 ELSE NULL END + - 97 )
----
84

skipif mysql # not compatible
query I rowsort label-9539
SELECT COALESCE ( - ( - 84 ), + 40 * - 95 + - 60, + - CASE 11 WHEN + + 34 * - + 94 * - MAX ( DISTINCT + - 73 ) THEN 6 * - + 51 ELSE NULL END + - 97 )
----
84

query I rowsort
SELECT NULLIF ( 51, - 50 )
----
51

query I rowsort
SELECT DISTINCT + 31 * - 20 * + - NULLIF ( + 1, 38 ) * - + 84
----
-52080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9542
SELECT ALL - CASE + - ( + 70 ) WHEN 85 THEN - COUNT( * ) * + 80 + 63 + + ( 15 ) + 72 + + + CAST( NULL AS SIGNED ) - COUNT( 94 ) * 9 ELSE NULL END * COUNT( * ) + 36 + 4 / + + 29 + ( - 89 ) / ( + 34 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL - CASE + - ( + 70 ) WHEN 85 THEN - COUNT ( * ) * + 80 + 63 + + ( 15 ) + 72 + + + CAST ( NULL AS INTEGER ) - COUNT ( 94 ) * 9 ELSE NULL END * COUNT ( * ) + 36 + 4 / + + 29 + ( - 89 ) / ( + 34 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT - 27 + + 20 + - 94 * + - 70 * + 98 * + COUNT( + 52 ) AS col1
----
644833

skipif mysql # not compatible
query I rowsort label-9543
SELECT - 27 + + 20 + - 94 * + - 70 * + 98 * + COUNT ( + 52 ) AS col1
----
644833

query I rowsort
SELECT ALL - 41 + - 43 AS col2
----
-84

query I rowsort
SELECT - 45 + NULLIF ( - 0, - 92 * - 75 + 5 - + 72 )
----
-45

query I rowsort
SELECT + 27 * - 64 * 17
----
-29376

query I rowsort
SELECT DISTINCT + 68 * + 65 AS col2
----
4420

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL ( MIN( DISTINCT ( + 81 ) ) ) * - - COUNT( * ) * - NULLIF ( + COUNT( * ), + - 21 )
----
-81

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL ( MIN ( DISTINCT ( + 81 ) ) ) * - - COUNT ( * ) * - NULLIF ( + COUNT ( * ), + - 21 )
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9549
SELECT ALL + SUM( DISTINCT - 78 ) DIV - 10 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL + SUM ( DISTINCT - 78 ) / - 10 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9550
SELECT ALL CAST( COUNT( * ) AS SIGNED ) - + 0
----
1

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) - + 0
----
1

query I rowsort
SELECT + 35 + - 69 AS col0
----
-34

query I rowsort
SELECT ALL - + 63 * - + 22 + + 45
----
1431

query I rowsort
SELECT DISTINCT - + 38 * 95 - + - 3
----
-3607

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9554
SELECT + 62 + 80 / + - CASE - 22 WHEN + 15 * + 64 THEN 9 WHEN + + 90 - - + 46 THEN CAST( NULL AS SIGNED ) ELSE NULL END * - + 69 + + ( - 0 ) + + - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-9554
SELECT + 62 + 80 / + - CASE - 22 WHEN + 15 * + 64 THEN 9 WHEN + + 90 - - + 46 THEN CAST ( NULL AS INTEGER ) ELSE NULL END * - + 69 + + ( - 0 ) + + - 63
----
NULL

query I rowsort
SELECT DISTINCT - ( 47 ) AS col1
----
-47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9556
SELECT - 15 + + 59 DIV CAST( - - ( - 34 ) AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-9556
SELECT - 15 + + 59 / CAST ( - - ( - 34 ) AS INTEGER )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9557
SELECT + + 0 * - NULLIF ( 30, - COALESCE ( + - SUM( ALL + 87 ), 88 ) ) * - + ( - - ( - 10 ) ) + + CAST( NULL AS SIGNED ) * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT + + 0 * - NULLIF ( 30, - COALESCE ( + - SUM ( ALL + 87 ), 88 ) ) * - + ( - - ( - 10 ) ) + + CAST ( NULL AS INTEGER ) * 9
----
NULL

query I rowsort
SELECT + - 42 + + 13
----
-29

query I rowsort
SELECT ALL 35 * - 75 + - 53
----
-2678

query I rowsort
SELECT ALL 62 + 68
----
130

query I rowsort
SELECT 72 + - 65 + - + 54 * - 89 AS col1
----
4813

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9562
SELECT ( + 57 ) * + - COUNT( ALL ( 94 ) ) + - 98 + - - CAST( - ( - - 9 ) AS SIGNED ) * + 84 + 38
----
-873

skipif mysql # not compatible
query I rowsort label-9562
SELECT ( + 57 ) * + - COUNT ( ALL ( 94 ) ) + - 98 + - - CAST ( - ( - - 9 ) AS INTEGER ) * + 84 + 38
----
-873

onlyif mysql # aggregate syntax: 
query II rowsort label-9563
SELECT ALL 76 + COALESCE ( - COUNT( * ), ( 59 ) ) AS col0, 31 col0
----
75
31

skipif mysql # not compatible
query II rowsort label-9563
SELECT ALL 76 + COALESCE ( - COUNT ( * ), ( 59 ) ) AS col0, 31 col0
----
75
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT ALL + 54 + - - MAX( DISTINCT - + 5 ) * - 76 AS col1
----
434

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL + 54 + - - MAX ( DISTINCT - + 5 ) * - 76 AS col1
----
434

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT DISTINCT - COUNT( DISTINCT + 54 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9565
SELECT DISTINCT - COUNT ( DISTINCT + 54 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT ALL - COUNT( * ) * 68
----
-68

skipif mysql # not compatible
query I rowsort label-9566
SELECT ALL - COUNT ( * ) * 68
----
-68

query I rowsort
SELECT 7 + 35 AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9568
SELECT 90 * 75 DIV 98, - CASE - 21 WHEN - CAST( + 28 AS SIGNED ) THEN COUNT( * ) + + + 59 ELSE 32 END AS col0
----
68
-32

skipif mysql # not compatible
query II rowsort label-9568
SELECT 90 * 75 / 98, - CASE - 21 WHEN - CAST ( + 28 AS INTEGER ) THEN COUNT ( * ) + + + 59 ELSE 32 END AS col0
----
68
-32

query I rowsort
SELECT 26 * 91 AS col1
----
2366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9570
SELECT ( CAST( NULL AS SIGNED ) ) * - 7 / 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9570
SELECT ( CAST ( NULL AS INTEGER ) ) * - 7 / 9
----
NULL

query I rowsort
SELECT ALL + ( - 30 ) * + ( 32 )
----
-960

onlyif mysql # aggregate syntax: 
query II rowsort label-9572
SELECT - 26, - CASE + 9 WHEN + 88 + - 76 THEN - - COUNT( * ) WHEN ( + - AVG ( + + 56 ) ) + 12 THEN NULL ELSE 91 END col0
----
-26
-91

skipif mysql # not compatible
query II rowsort label-9572
SELECT - 26, - CASE + 9 WHEN + 88 + - 76 THEN - - COUNT ( * ) WHEN ( + - AVG ( + + 56 ) ) + 12 THEN NULL ELSE 91 END col0
----
-26
-91

query I rowsort
SELECT DISTINCT - 92 - + 79
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT + COUNT( 34 )
----
1

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT + COUNT ( 34 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT SUM( + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-9575
SELECT SUM ( + 12 )
----
12

query I rowsort
SELECT 33 * - - 15 AS col2
----
495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9577
SELECT - CAST( NULL AS SIGNED ) * - - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9577
SELECT - CAST ( NULL AS INTEGER ) * - - 14 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT + 56 / - CASE + MIN( - ( 23 ) ) WHEN + 7 THEN - 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT + 56 / - CASE + MIN ( - ( 23 ) ) WHEN + 7 THEN - 27 END
----
NULL

query I rowsort
SELECT ALL + 51 * + 92
----
4692

query I rowsort
SELECT + 13 * 52
----
676

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT DISTINCT - + 22 + 11 + 95 * 39 - MIN( ALL + ( - 36 ) )
----
3730

skipif mysql # not compatible
query I rowsort label-9581
SELECT DISTINCT - + 22 + 11 + 95 * 39 - MIN ( ALL + ( - 36 ) )
----
3730

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9582
SELECT DISTINCT CAST( NULL AS SIGNED ), 62 * 22 + - - 26 DIV 20 AS col0
----
NULL
1365

skipif mysql # not compatible
query II rowsort label-9582
SELECT DISTINCT CAST ( NULL AS INTEGER ), 62 * 22 + - - 26 / 20 AS col0
----
NULL
1365

query I rowsort
SELECT ALL - 90 + 73 + + 26 * 75 * + ( + 67 )
----
130633

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9584
SELECT ALL + COUNT( ALL CAST( NULL AS DECIMAL ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL + COUNT ( ALL CAST ( NULL AS REAL ) ) AS col0
----
0

query I rowsort
SELECT - COALESCE ( + 83, - - 50 + + + 74, + 76 + + 64 ) col1
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9586
SELECT ALL - - 80 + + 24 DIV + COUNT( - + 52 ) AS col2
----
104

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL - - 80 + + 24 / + COUNT ( - + 52 ) AS col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT CASE + + 14 WHEN + COUNT( * ) * - 6 THEN - 35 ELSE NULL END * 27 + + 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9587
SELECT CASE + + 14 WHEN + COUNT ( * ) * - 6 THEN - 35 ELSE NULL END * 27 + + 72 AS col2
----
NULL

query I rowsort
SELECT + 29 - - - 82 * + - 35 * 80
----
229629

query I rowsort
SELECT ALL + 75 + - 54 + - + 76
----
-55

query I rowsort
SELECT 75 + + 4 AS col0
----
79

query II rowsort
SELECT 53, - 94 AS col2
----
53
-94

query I rowsort
SELECT + 83 * 89 + - 16
----
7371

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT DISTINCT COUNT( * ) * - 80 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT COUNT ( * ) * - 80 AS col1
----
-80

query I rowsort
SELECT + 20 * + - 66 + 33 + + 91
----
-1196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9595
SELECT CAST( NULL AS SIGNED ) - - 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9595
SELECT CAST ( NULL AS INTEGER ) - - 27 AS col0
----
NULL

query I rowsort
SELECT 81 * 2
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9597
SELECT ALL MAX( ALL - CAST( NULL AS SIGNED ) ) - - 75 + - 9, ( + 22 ) + COUNT( * ) + + + 43 - 88 AS col2
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-9597
SELECT ALL MAX ( ALL - CAST ( NULL AS INTEGER ) ) - - 75 + - 9, ( + 22 ) + COUNT ( * ) + + + 43 - 88 AS col2
----
NULL
-22

query I rowsort
SELECT 0 + + - COALESCE ( - ( - - 47 ), + + ( 27 ) )
----
47

query I rowsort
SELECT 35 * + - 25
----
-875

onlyif mysql # aggregate syntax: 
query II rowsort label-9600
SELECT ALL - 71 AS col0, COUNT( * ) * - 27 AS col2
----
-71
-27

skipif mysql # not compatible
query II rowsort label-9600
SELECT ALL - 71 AS col0, COUNT ( * ) * - 27 AS col2
----
-71
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9601
SELECT DISTINCT 10 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT 10 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 21 * + + 91
----
1911

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT ALL - COUNT( ALL + 72 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL - COUNT ( ALL + 72 ) AS col0
----
-1

query I rowsort
SELECT 25 * + 1 AS col0
----
25

query II rowsort
SELECT ALL - 61 AS col0, + NULLIF ( - + 66, + 56 ) + - 51 - - 96 * - ( + - 74 )
----
-61
6987

query II rowsort
SELECT DISTINCT 74 AS col0, + CASE WHEN 28 IS NOT NULL THEN - 87 ELSE + + ( - - 64 ) * + - 9 END
----
74
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-9607
SELECT ( - - 8 ) * 47 DIV - + 22 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-9607
SELECT ( - - 8 ) * 47 / - + 22 AS col1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-9608
SELECT DISTINCT 91 DIV + 40 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT 91 / + 40 AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9609
SELECT ALL 9 DIV COUNT( * ) * COUNT( * ) col0
----
9

skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL 9 / COUNT ( * ) * COUNT ( * ) col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9610
SELECT + 61 DIV - 46 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9610
SELECT + 61 / - 46 AS col0
----
-1

query I rowsort
SELECT + 31 * - ( - - ( - 10 ) ) * - 33
----
-10230

query I rowsort
SELECT + 70 + + 75 AS col0
----
145

query I rowsort
SELECT ( - 98 ) * - - 33
----
-3234

query I rowsort
SELECT ALL + 55 + - - 4 AS col2
----
59

query I rowsort
SELECT 79 + - + 77 + + + 35 * + 70 * - - 81
----
198452

query I rowsort
SELECT - 53 - 26 + + - NULLIF ( - 31, - 75 ) AS col0
----
-48

query I rowsort
SELECT ALL - + 33 + - + 48
----
-81

query I rowsort
SELECT - 97 + + 40 AS col1
----
-57

query I rowsort
SELECT DISTINCT - ( + + 65 ) * - - 99 * + 58 col1
----
-373230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9620
SELECT DISTINCT - CAST( - 84 AS SIGNED ) + ( - 43 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9620
SELECT DISTINCT - CAST ( - 84 AS INTEGER ) + ( - 43 ) AS col1
----
41

query II rowsort
SELECT DISTINCT - 35 AS col2, 54 + - 83
----
-35
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9622
SELECT + 77 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9622
SELECT + 77 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9623
SELECT DISTINCT + 99, COALESCE ( - CAST( - COUNT( * ) AS SIGNED ), + - 31 - - - 74, - COUNT( * ) * - 26 - - - 56 - + + COUNT( * ) * - CASE + 40 WHEN 2 + + COUNT( * ) THEN + 50 END DIV 39 + - 88 ) AS col2
----
99
1

skipif mysql # not compatible
query II rowsort label-9623
SELECT DISTINCT + 99, COALESCE ( - CAST ( - COUNT ( * ) AS INTEGER ), + - 31 - - - 74, - COUNT ( * ) * - 26 - - - 56 - + + COUNT ( * ) * - CASE + 40 WHEN 2 + + COUNT ( * ) THEN + 50 END / 39 + - 88 ) AS col2
----
99
1

query I rowsort
SELECT - + ( 58 ) + 41
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT ALL - - MAX( - + ( - 55 ) ) + + - 57 + + ( + COUNT( * ) ) + + 50 * - 20
----
-1001

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL - - MAX ( - + ( - 55 ) ) + + - 57 + + ( + COUNT ( * ) ) + + 50 * - 20
----
-1001

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT - + 73 + COUNT( ALL - 79 )
----
-72

skipif mysql # not compatible
query I rowsort label-9626
SELECT - + 73 + COUNT ( ALL - 79 )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9627
SELECT - 27 + + + MAX( DISTINCT + 16 ) + - 22 * CAST( NULL AS DECIMAL ) + - 50 - + - 26 * - + 23 * 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9627
SELECT - 27 + + + MAX ( DISTINCT + 16 ) + - 22 * CAST ( NULL AS REAL ) + - 50 - + - 26 * - + 23 * 37 AS col0
----
NULL

query I rowsort
SELECT ALL + 5 * + 81 - - 58 AS col0
----
463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9629
SELECT - AVG ( + 99 ) * + + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * 58 * - + ( - 70 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9629
SELECT - AVG ( + 99 ) * + + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 58 * - + ( - 70 ) col2
----
NULL

query I rowsort
SELECT ALL + ( - + ( 46 ) ) AS col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9631
SELECT DISTINCT ( 63 ) * - 33 - - + 1 * - - 69 AS col0, - 77 DIV + 29 + - CAST( - 88 AS SIGNED ) AS col0
----
-2010
86

skipif mysql # not compatible
query II rowsort label-9631
SELECT DISTINCT ( 63 ) * - 33 - - + 1 * - - 69 AS col0, - 77 / + 29 + - CAST ( - 88 AS INTEGER ) AS col0
----
-2010
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT COALESCE ( + - ( + 66 ), COUNT( * ), + - 75 * - - 4 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-9632
SELECT COALESCE ( + - ( + 66 ), COUNT ( * ), + - 75 * - - 4 ) AS col2
----
-66

query I rowsort
SELECT DISTINCT + 9 * 60 AS col2
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT - COUNT( * ) * 52
----
-52

skipif mysql # not compatible
query I rowsort label-9634
SELECT - COUNT ( * ) * 52
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT + 34 * + COUNT( * ) * - - ( - 81 ) col0
----
-2754

skipif mysql # not compatible
query I rowsort label-9635
SELECT + 34 * + COUNT ( * ) * - - ( - 81 ) col0
----
-2754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9636
SELECT + MAX( + - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9636
SELECT + MAX ( + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT - 22 + - 72 AS col2, + 67 AS col0
----
-94
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9638
SELECT + 87 DIV - + 1
----
-87

skipif mysql # not compatible
query I rowsort label-9638
SELECT + 87 / - + 1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9639
SELECT - CAST( NULL AS DECIMAL ) * + - COUNT( * ) + 44 * - ( 46 ) * + + 36 + + + 34 * + + 54 + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-9639
SELECT - CAST ( NULL AS REAL ) * + - COUNT ( * ) + 44 * - ( 46 ) * + + 36 + + + 34 * + + 54 + + 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9640
SELECT DISTINCT + NULLIF ( - CAST( - 57 AS SIGNED ), - COUNT( * ) )
----
57

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT + NULLIF ( - CAST ( - 57 AS INTEGER ), - COUNT ( * ) )
----
57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9641
SELECT CASE - 6 WHEN + - 4 + - - SUM( DISTINCT + - ( - + 0 ) ) + - 71 * - 59 + - 51 - + 67 * 5 THEN + 42 + - COUNT( * ) - - 48 * + 74 WHEN 15 * - + 95 THEN ( - MAX( - 36 ) ) WHEN ( + 97 ) THEN 7 * - CAST( - - 69 AS DECIMAL ) + - COUNT( * ) / + 52 * + 43 + + ( - MIN( DISTINCT 52 ) ) WHEN + 62 THEN NULL WHEN + 60 THEN + 8 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9641
SELECT CASE - 6 WHEN + - 4 + - - SUM ( DISTINCT + - ( - + 0 ) ) + - 71 * - 59 + - 51 - + 67 * 5 THEN + 42 + - COUNT ( * ) - - 48 * + 74 WHEN 15 * - + 95 THEN ( - MAX ( - 36 ) ) WHEN ( + 97 ) THEN 7 * - CAST ( - - 69 AS REAL ) + - COUNT ( * ) / + 52 * + 43 + + ( - MIN ( DISTINCT 52 ) ) WHEN + 62 THEN NULL WHEN + 60 THEN + 8 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9642
SELECT DISTINCT + ( + 37 ), + 80 / - CASE 18 WHEN + + 80 * - - 97 + + + 48 THEN - 10 + - COUNT( - 65 ) - + - 29 WHEN + 42 THEN - ( - ( - 72 ) ) * - 19 END AS col1
----
37
NULL

skipif mysql # not compatible
query II rowsort label-9642
SELECT DISTINCT + ( + 37 ), + 80 / - CASE 18 WHEN + + 80 * - - 97 + + + 48 THEN - 10 + - COUNT ( - 65 ) - + - 29 WHEN + 42 THEN - ( - ( - 72 ) ) * - 19 END AS col1
----
37
NULL

query I rowsort
SELECT ALL 39 * 3 col2
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9644
SELECT + 44 + - NULLIF ( - CAST( NULL AS SIGNED ), + 46 ) / + - NULLIF ( 70, + 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9644
SELECT + 44 + - NULLIF ( - CAST ( NULL AS INTEGER ), + 46 ) / + - NULLIF ( 70, + 26 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT DISTINCT 68 * 27 * + CASE - 66 WHEN - 66 * 21 THEN NULL WHEN 43 + + 32 THEN + - COUNT( * ) + 68 + - 66 + 64 + AVG ( - 60 ) / + COUNT( * ) ELSE + 21 * - - CASE + 86 WHEN - 62 THEN - 0 ELSE NULL END - 93 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9645
SELECT DISTINCT 68 * 27 * + CASE - 66 WHEN - 66 * 21 THEN NULL WHEN 43 + + 32 THEN + - COUNT ( * ) + 68 + - 66 + 64 + AVG ( - 60 ) / + COUNT ( * ) ELSE + 21 * - - CASE + 86 WHEN - 62 THEN - 0 ELSE NULL END - 93 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT + MAX( + 32 )
----
32

skipif mysql # not compatible
query I rowsort label-9646
SELECT + MAX ( + 32 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9647
SELECT ALL - + CAST( + - 3 AS SIGNED ) * - - ( - 35 ) + - + 50 + - - 44
----
-111

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL - + CAST ( + - 3 AS INTEGER ) * - - ( - 35 ) + - + 50 + - - 44
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT + SUM( ALL 0 ) * + 57 * + + COUNT( * ) - - - 21
----
-21

skipif mysql # not compatible
query I rowsort label-9648
SELECT + SUM ( ALL 0 ) * + 57 * + + COUNT ( * ) - - - 21
----
-21

query I rowsort
SELECT + 64 * + + 5 + + - ( - + 24 ) * 87 + + ( COALESCE ( - + 17, + 64 ) )
----
2391

query I rowsort
SELECT DISTINCT - 51 + 18 col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT ALL + 93 + - 60 + MIN( ALL - 15 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL + 93 + - 60 + MIN ( ALL - 15 ) AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9652
SELECT DISTINCT 43 DIV + MAX( ALL - 12 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT 43 / + MAX ( ALL - 12 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT ALL + COUNT( * ) + - - 16 col2
----
17

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL + COUNT ( * ) + - - 16 col2
----
17

query I rowsort
SELECT - + NULLIF ( - + 70, + 80 )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9655
SELECT + - 68 DIV + 43 + - 30
----
-31

skipif mysql # not compatible
query I rowsort label-9655
SELECT + - 68 / + 43 + - 30
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-9656
SELECT + - 63 DIV - 32 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9656
SELECT + - 63 / - 32 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9657
SELECT ALL 1 + + + 35 * 72 DIV ( ( 97 ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL 1 + + + 35 * 72 / ( ( 97 ) ) AS col1
----
26

query I rowsort
SELECT + 70 * + 35 AS col0
----
2450

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT - + 88 * + ( - CASE + 90 WHEN - COUNT( * ) + - AVG ( ALL 45 ) THEN NULL WHEN - 94 * - COUNT( DISTINCT - 82 ) / - COUNT( * ) + COUNT( * ) - - 15 THEN - 50 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9659
SELECT - + 88 * + ( - CASE + 90 WHEN - COUNT ( * ) + - AVG ( ALL 45 ) THEN NULL WHEN - 94 * - COUNT ( DISTINCT - 82 ) / - COUNT ( * ) + COUNT ( * ) - - 15 THEN - 50 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9660
SELECT + CAST( - 91 AS SIGNED ) - - + 22 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-9660
SELECT + CAST ( - 91 AS INTEGER ) - - + 22 AS col1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-9661
SELECT + 98 DIV - ( + + 64 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9661
SELECT + 98 / - ( + + 64 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT DISTINCT + + MAX( DISTINCT - + 16 ) - + COALESCE ( + 43, + COUNT( * ), - + ( + 55 ), - 61 )
----
-59

skipif mysql # not compatible
query I rowsort label-9662
SELECT DISTINCT + + MAX ( DISTINCT - + 16 ) - + COALESCE ( + 43, + COUNT ( * ), - + ( + 55 ), - 61 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT ALL - COUNT( * ) * - ( + 85 ) * 15
----
1275

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL - COUNT ( * ) * - ( + 85 ) * 15
----
1275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9664
SELECT DISTINCT - COALESCE ( - ( 44 ), - 97 + 66, + MIN( ALL 86 ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT - COALESCE ( - ( 44 ), - 97 + 66, + MIN ( ALL 86 ) ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 88 - + 17
----
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9666
SELECT ALL 47 * + COALESCE ( 47, + - 84 ), NULLIF ( COUNT( ALL 87 ), - NULLIF ( + CAST( NULL AS DECIMAL ), + + 60 ) + + 93 + + 51 + 49 + 13 / - - 20 ) * - COUNT( * ) AS col0
----
2209
-1

skipif mysql # not compatible
query II rowsort label-9666
SELECT ALL 47 * + COALESCE ( 47, + - 84 ), NULLIF ( COUNT ( ALL 87 ), - NULLIF ( + CAST ( NULL AS REAL ), + + 60 ) + + 93 + + 51 + 49 + 13 / - - 20 ) * - COUNT ( * ) AS col0
----
2209
-1

query II rowsort
SELECT 16 AS col1, - 2 col0
----
16
-2

query I rowsort
SELECT ALL + 22 - - 15
----
37

query I rowsort
SELECT ALL + ( + 64 )
----
64

query I rowsort
SELECT - 81 + - - 25 col1
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9671
SELECT + MAX( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9671
SELECT + MAX ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT - NULLIF ( - + 51, - + 92 * COUNT( * ) ) * 81 + - ( - 13 )
----
4144

skipif mysql # not compatible
query I rowsort label-9672
SELECT - NULLIF ( - + 51, - + 92 * COUNT ( * ) ) * 81 + - ( - 13 )
----
4144

query I rowsort
SELECT - 75 * + 21
----
-1575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9674
SELECT ALL + COUNT( DISTINCT + + ( 94 ) ) DIV 55 * - 61 * + - 11 * COUNT( * ) * - 96 + 73 + + 3
----
76

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL + COUNT ( DISTINCT + + ( 94 ) ) / 55 * - 61 * + - 11 * COUNT ( * ) * - 96 + 73 + + 3
----
76

query I rowsort
SELECT ALL + ( - + ( + 72 ) ) AS col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9676
SELECT ALL + 24 * + - CAST( NULL AS SIGNED ) * + 24 * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL + 24 * + - CAST ( NULL AS INTEGER ) * + 24 * - 65
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9677
SELECT - 39 DIV - 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9677
SELECT - 39 / - 63 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL - 75 * 40 + + COUNT( 43 ) + - - 81 + + 29 * + 52
----
-1410

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL - 75 * 40 + + COUNT ( 43 ) + - - 81 + + 29 * + 52
----
-1410

query II rowsort
SELECT + 74, - 92 + + 49 col2
----
74
-43

query I rowsort
SELECT - 67 + - 44 AS col0
----
-111

query I rowsort
SELECT ALL + 13 * - 7 + - NULLIF ( + 86, + 55 ) col0
----
-177

query I rowsort
SELECT ALL - 72 + - 71
----
-143

query I rowsort
SELECT ALL - 61 + + + 59
----
-2

query I rowsort
SELECT ALL NULLIF ( + - 95, CASE 25 WHEN - + 26 THEN + + 49 * + 27 + + 43 ELSE NULL END )
----
-95

query I rowsort
SELECT 88 + - 77 * 17 - 90
----
-1311

onlyif mysql # aggregate syntax: 
query II rowsort label-9686
SELECT - 21 AS col2, COUNT( * )
----
-21
1

skipif mysql # not compatible
query II rowsort label-9686
SELECT - 21 AS col2, COUNT ( * )
----
-21
1

query I rowsort
SELECT ALL 99 + 97 + - 16
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT COUNT( * ) * - 12 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9688
SELECT COUNT ( * ) * - 12 AS col0
----
-12

query I rowsort
SELECT + 82 + - 49 AS col1
----
33

query I rowsort
SELECT + 52 - - + 18
----
70

query I rowsort
SELECT 57 + 32 * - - 85
----
2777

query I rowsort
SELECT ALL + 46 - + 81
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-9693
SELECT + 9 + - 2 DIV 27
----
9

skipif mysql # not compatible
query I rowsort label-9693
SELECT + 9 + - 2 / 27
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT DISTINCT 83 - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT 83 - COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT + 22 * COUNT( * ) col2
----
22

skipif mysql # not compatible
query I rowsort label-9695
SELECT + 22 * COUNT ( * ) col2
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9696
SELECT ALL + 96 DIV - + 67 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL + 96 / - + 67 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9697
SELECT 67 * + - 22 / - + CAST( NULL AS SIGNED ) AS col0, - COUNT( * ) col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-9697
SELECT 67 * + - 22 / - + CAST ( NULL AS INTEGER ) AS col0, - COUNT ( * ) col2
----
NULL
-1

query I rowsort
SELECT 26 + + 52
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9699
SELECT CAST( NULL AS DECIMAL ) + + - ( + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9699
SELECT CAST ( NULL AS REAL ) + + - ( + 80 )
----
NULL

query I rowsort
SELECT ALL CASE - 2 WHEN 47 + - 13 - - - ( + - 34 ) THEN + 52 * - ( + + ( + AVG ( DISTINCT - + 98 ) ) ) END / - 39 + - 16
----
NULL

query I rowsort
SELECT 29 + 58 AS col2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9702
SELECT CAST( NULL AS SIGNED ) * - 37 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9702
SELECT CAST ( NULL AS INTEGER ) * - 37 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT DISTINCT - 37 * - - COUNT( * ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-9703
SELECT DISTINCT - 37 * - - COUNT ( * ) AS col0
----
-37

query I rowsort
SELECT ALL - 64 + - ( 75 )
----
-139

query I rowsort
SELECT ALL + 19 + + - 39 col0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9706
SELECT ALL - CAST( - 90 AS SIGNED ) + - + 86 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL - CAST ( - 90 AS INTEGER ) + - + 86 AS col1
----
4

query I rowsort
SELECT 31 + + 18 AS col2
----
49

query I rowsort
SELECT ( + 41 ) * + 76 AS col1
----
3116

query I rowsort
SELECT ALL + 92 * - - ( - 87 ) col2
----
-8004

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9710
SELECT - CASE - - ( - COUNT( * ) ) WHEN - 62 THEN 93 * 38 DIV + 44 WHEN 45 THEN + + 38 * + + 31 ELSE 1 * + 61 END * 10 + + 98
----
-512

skipif mysql # not compatible
query I rowsort label-9710
SELECT - CASE - - ( - COUNT ( * ) ) WHEN - 62 THEN 93 * 38 / + 44 WHEN 45 THEN + + 38 * + + 31 ELSE 1 * + 61 END * 10 + + 98
----
-512

query I rowsort
SELECT ALL + - 13 * - 68 + + + 77 AS col1
----
961

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT COUNT( ALL + + 95 ) + + NULLIF ( + 81, + 33 ) * - - SUM( ALL + 81 ) * - - 11 * ( 36 ) + 90
----
2598247

skipif mysql # not compatible
query I rowsort label-9712
SELECT COUNT ( ALL + + 95 ) + + NULLIF ( + 81, + 33 ) * - - SUM ( ALL + 81 ) * - - 11 * ( 36 ) + 90
----
2598247

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT DISTINCT - ( - COUNT( - 8 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT - ( - COUNT ( - 8 ) )
----
1

query I rowsort
SELECT DISTINCT + 74 * - + 10 * 48
----
-35520

query I rowsort
SELECT 3 * 43 AS col1
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9716
SELECT 33 DIV - + 80 AS col2, SUM( ALL - 15 ) * + 35
----
0
-525

skipif mysql # not compatible
query II rowsort label-9716
SELECT 33 / - + 80 AS col2, SUM ( ALL - 15 ) * + 35
----
0
-525

onlyif mysql # DIV for integer division: 
query I rowsort label-9717
SELECT ALL - + 46 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL - + 46 / + 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT ALL NULLIF ( - + 62, ( - 24 ) * ( + 45 ) + - + COUNT( * ) - 87 * - 90 ) col2
----
-62

skipif mysql # not compatible
query I rowsort label-9718
SELECT ALL NULLIF ( - + 62, ( - 24 ) * ( + 45 ) + - + COUNT ( * ) - 87 * - 90 ) col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT - SUM( ALL 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-9719
SELECT - SUM ( ALL 54 )
----
-54

query I rowsort
SELECT - ( + - 14 )
----
14

query I rowsort
SELECT DISTINCT - ( + 13 ) col2
----
-13

query I rowsort
SELECT 82 * - - 83
----
6806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9723
SELECT + 82 - - - 4 + - CAST( COUNT( * ) AS SIGNED ) + 50 * - 46
----
-2223

skipif mysql # not compatible
query I rowsort label-9723
SELECT + 82 - - - 4 + - CAST ( COUNT ( * ) AS INTEGER ) + 50 * - 46
----
-2223

query I rowsort
SELECT ( + 31 ) * 60 AS col0
----
1860

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT - MAX( DISTINCT - 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-9725
SELECT - MAX ( DISTINCT - 91 ) AS col1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9726
SELECT DISTINCT + 50 + - CAST( NULL AS SIGNED ) + 1 + + CAST( + 66 AS SIGNED ) + + 32 * + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-9726
SELECT DISTINCT + 50 + - CAST ( NULL AS INTEGER ) + 1 + + CAST ( + 66 AS INTEGER ) + + 32 * + - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT NULLIF ( 6, + - COUNT( * ) ) * + + 97
----
582

skipif mysql # not compatible
query I rowsort label-9727
SELECT NULLIF ( 6, + - COUNT ( * ) ) * + + 97
----
582

query II rowsort
SELECT ALL 22 + - + 32 + + - 31, 65 * - + 41 AS col0
----
-41
-2665

query I rowsort
SELECT DISTINCT 92 + - 42
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT + MIN( DISTINCT + 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-9730
SELECT + MIN ( DISTINCT + 52 ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT COUNT( * ) * MIN( + + ( 40 ) )
----
40

skipif mysql # not compatible
query I rowsort label-9731
SELECT COUNT ( * ) * MIN ( + + ( 40 ) )
----
40

query I rowsort
SELECT 35 + + 4
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-9733
SELECT ALL 80 * - + COUNT( * ) * + ( - + 64 ) * 40, + 97 AS col0
----
204800
97

skipif mysql # not compatible
query II rowsort label-9733
SELECT ALL 80 * - + COUNT ( * ) * + ( - + 64 ) * 40, + 97 AS col0
----
204800
97

query I rowsort
SELECT ALL + 10 * 52 + + 0
----
520

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT SUM( DISTINCT - 72 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-9735
SELECT SUM ( DISTINCT - 72 ) AS col2
----
-72

query I rowsort
SELECT ALL ( - + 34 ) * 6 * 9 + + + 29 * 72 col1
----
252

query I rowsort
SELECT + COALESCE ( - + 54, - 66 ) AS col2
----
-54

query I rowsort
SELECT + 75 + 19
----
94

query I rowsort
SELECT - NULLIF ( - + 15, 20 )
----
15

query I rowsort
SELECT - + 1 * 56 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT + CASE - AVG ( ALL - + 94 ) WHEN - CASE COUNT( * ) WHEN COUNT( * ) + 57 THEN - + 81 WHEN 84 THEN NULL ELSE 68 + COALESCE ( + - 9, + + 52 / - 48 + - + NULLIF ( + + ( 41 ), - - 94 * + 76 ) * - 66 + MIN( + ( NULLIF ( 19, 72 ) ) ) ) * - 68 * - 47 END THEN NULL WHEN MIN( - + 53 ) * + 30 + 16 + 95 THEN + 73 + - 45 END * - COUNT( * ) + - ( + 52 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9741
SELECT + CASE - AVG ( ALL - + 94 ) WHEN - CASE COUNT ( * ) WHEN COUNT ( * ) + 57 THEN - + 81 WHEN 84 THEN NULL ELSE 68 + COALESCE ( + - 9, + + 52 / - 48 + - + NULLIF ( + + ( 41 ), - - 94 * + 76 ) * - 66 + MIN ( + ( NULLIF ( 19, 72 ) ) ) ) * - 68 * - 47 END THEN NULL WHEN MIN ( - + 53 ) * + 30 + 16 + 95 THEN + 73 + - 45 END * - COUNT ( * ) + - ( + 52 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT + - COUNT( * ) + COUNT( * ) + - - 22 + + CASE - 55 WHEN - 60 + + 93 THEN NULL WHEN + 17 THEN + SUM( DISTINCT - + 91 ) * + + 0 + + + 14 ELSE NULL END * - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9742
SELECT + - COUNT ( * ) + COUNT ( * ) + - - 22 + + CASE - 55 WHEN - 60 + + 93 THEN NULL WHEN + 17 THEN + SUM ( DISTINCT - + 91 ) * + + 0 + + + 14 ELSE NULL END * - 32
----
NULL

query I rowsort
SELECT DISTINCT - + ( 22 ) * + 31
----
-682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9744
SELECT ALL - 46 * 38 + - 45 - + + CAST( NULL AS SIGNED ) - MAX( + 30 ) + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL - 46 * 38 + - 45 - + + CAST ( NULL AS INTEGER ) - MAX ( + 30 ) + - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT ALL - 29 * - COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-9745
SELECT ALL - 29 * - COUNT ( * ) AS col2
----
29

query I rowsort
SELECT - - ( - 65 ) - - 68 * - 77 * - + 47
----
246027

onlyif mysql # DIV for integer division: 
query I rowsort label-9747
SELECT - + 49 - 29 + - 40 * - 27 * 24 - + - 5 + + 61 DIV - 63 * 64
----
25847

skipif mysql # not compatible
query I rowsort label-9747
SELECT - + 49 - 29 + - 40 * - 27 * 24 - + - 5 + + 61 / - 63 * 64
----
25847

onlyif mysql # DIV for integer division: 
query I rowsort label-9748
SELECT - 4 DIV - 23
----
0

skipif mysql # not compatible
query I rowsort label-9748
SELECT - 4 / - 23
----
0

query I rowsort
SELECT + - 79 + - - 45
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT - - 74 * MAX( - + 8 )
----
-592

skipif mysql # not compatible
query I rowsort label-9750
SELECT - - 74 * MAX ( - + 8 )
----
-592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9751
SELECT - - 30 DIV - ( + + COUNT( * ) ) - - 58
----
28

skipif mysql # not compatible
query I rowsort label-9751
SELECT - - 30 / - ( + + COUNT ( * ) ) - - 58
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9752
SELECT ALL - ( - COUNT( * ) ) DIV 13 * + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL - ( - COUNT ( * ) ) / 13 * + COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9753
SELECT - 58 + - CAST( NULL AS SIGNED ) - - 70 + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9753
SELECT - 58 + - CAST ( NULL AS INTEGER ) - - 70 + - 51
----
NULL

query II rowsort
SELECT - 85, 8 col0
----
-85
8

query I rowsort
SELECT - 34 + - 39 AS col0
----
-73

query I rowsort
SELECT ALL + 37 + 48 - - - 3
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT - COUNT( * ) + + 97 * + 32 AS col2
----
3103

skipif mysql # not compatible
query I rowsort label-9757
SELECT - COUNT ( * ) + + 97 * + 32 AS col2
----
3103

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT ALL - 65 + COUNT( * ) col2
----
-64

skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL - 65 + COUNT ( * ) col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT - MIN( - 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-9759
SELECT - MIN ( - 19 ) AS col1
----
19

query I rowsort
SELECT + 80 + 49 AS col1
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9761
SELECT ALL - 92 * ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL - 92 * ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT - MIN( DISTINCT + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-9762
SELECT - MIN ( DISTINCT + 69 )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9763
SELECT - 45 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9763
SELECT - 45 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( - 56 ) col2
----
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-9765
SELECT ALL 42 DIV - 94 * - + 42 * + 52 - - - 47 DIV 55 AS col2, - 26 AS col1
----
0
-26

skipif mysql # not compatible
query II rowsort label-9765
SELECT ALL 42 / - 94 * - + 42 * + 52 - - - 47 / 55 AS col2, - 26 AS col1
----
0
-26

query II rowsort
SELECT DISTINCT + 28 AS col1, 94 AS col1
----
28
94

query I rowsort
SELECT + 14 * + ( - 95 ) AS col0
----
-1330

onlyif mysql # aggregate syntax: 
query III rowsort label-9768
SELECT DISTINCT + - COUNT( * ) AS col0, - ( - MAX( ALL + 37 ) ) AS col0, - 29
----
-1
37
-29

skipif mysql # not compatible
query III rowsort label-9768
SELECT DISTINCT + - COUNT ( * ) AS col0, - ( - MAX ( ALL + 37 ) ) AS col0, - 29
----
-1
37
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-9769
SELECT ALL - 28 DIV + 67 + + - 24 + - - 44 - 58 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL - 28 / + 67 + + - 24 + - - 44 - 58 AS col2
----
-38

query I rowsort
SELECT - ( - + 86 ) AS col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9771
SELECT + - 35 DIV + COUNT( * ) col0, - COUNT( * )
----
-35
-1

skipif mysql # not compatible
query II rowsort label-9771
SELECT + - 35 / + COUNT ( * ) col0, - COUNT ( * )
----
-35
-1

query I rowsort
SELECT + 95 * 71 col1
----
6745

onlyif mysql # aggregate syntax: 
query II rowsort label-9773
SELECT ALL MAX( ALL - CASE + - 62 WHEN 22 THEN - 31 END ) * + 18 AS col2, 33 + 4 AS col2
----
NULL
37

skipif mysql # not compatible
query II rowsort label-9773
SELECT ALL MAX ( ALL - CASE + - 62 WHEN 22 THEN - 31 END ) * + 18 AS col2, 33 + 4 AS col2
----
NULL
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT + 35 + - COUNT( * ) + 34
----
68

skipif mysql # not compatible
query I rowsort label-9774
SELECT + 35 + - COUNT ( * ) + 34
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT ALL 78 * COUNT( DISTINCT 72 )
----
78

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL 78 * COUNT ( DISTINCT 72 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT DISTINCT - NULLIF ( - COUNT( + 8 ), - - COUNT( * ) + - 41 ) * + ( - 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-9776
SELECT DISTINCT - NULLIF ( - COUNT ( + 8 ), - - COUNT ( * ) + - 41 ) * + ( - 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT + - COUNT( ALL + + 54 ) * + + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9777
SELECT + - COUNT ( ALL + + 54 ) * + + COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9778
SELECT + + COUNT( * ) + - COALESCE ( 51, + + COUNT( * ) DIV + 89 * - 38 ) * + 47 * - 24 AS col0
----
57529

skipif mysql # not compatible
query I rowsort label-9778
SELECT + + COUNT ( * ) + - COALESCE ( 51, + + COUNT ( * ) / + 89 * - 38 ) * + 47 * - 24 AS col0
----
57529

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT + - 34 * - + 58 * + COUNT( * ) AS col2
----
1972

skipif mysql # not compatible
query I rowsort label-9779
SELECT + - 34 * - + 58 * + COUNT ( * ) AS col2
----
1972

query II rowsort
SELECT + 69 AS col2, + ( - COALESCE ( 15, - + 76 ) ) AS col0
----
69
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT + COUNT( DISTINCT 64 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9781
SELECT + COUNT ( DISTINCT 64 ) AS col1
----
1

query II rowsort
SELECT 9 AS col1, + 53 AS col1
----
9
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9783
SELECT ALL - - 0 / - 53 * + CAST( NULL AS SIGNED ) + + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL - - 0 / - 53 * + CAST ( NULL AS INTEGER ) + + 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT MAX( + + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-9784
SELECT MAX ( + + 47 )
----
47

query I rowsort
SELECT ALL - 42 * - + 70 + 5
----
2945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9786
SELECT DISTINCT - 78 * CAST( - + 64 AS SIGNED )
----
4992

skipif mysql # not compatible
query I rowsort label-9786
SELECT DISTINCT - 78 * CAST ( - + 64 AS INTEGER )
----
4992

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9787
SELECT DISTINCT ( - COUNT( * ) ), ( + 2 ) DIV + 52 + + 5 + + + COUNT( * ) + 42 - - COUNT( * ) - - 6 col2
----
-1
55

skipif mysql # not compatible
query II rowsort label-9787
SELECT DISTINCT ( - COUNT ( * ) ), ( + 2 ) / + 52 + + 5 + + + COUNT ( * ) + 42 - - COUNT ( * ) - - 6 col2
----
-1
55

query I rowsort
SELECT DISTINCT + 98 * - 56 + - 20 + + 6
----
-5502

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9789
SELECT - CAST( + - 90 AS SIGNED ) AS col2, + 44 AS col1, + + 28
----
90
44
28

skipif mysql # not compatible
query III rowsort label-9789
SELECT - CAST ( + - 90 AS INTEGER ) AS col2, + 44 AS col1, + + 28
----
90
44
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT ALL + 33 + + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL + 33 + + COUNT ( * )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT + 92 - + 23 + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-9791
SELECT + 92 - + 23 + COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT - COUNT( - 99 ) * + 56 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-9792
SELECT - COUNT ( - 99 ) * + 56 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT ALL 74 + + NULLIF ( - 18, - + 9 * + 2 + + 85 * - 23 + - COUNT( 20 ) ) + 68 col2
----
124

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL 74 + + NULLIF ( - 18, - + 9 * + 2 + + 85 * - 23 + - COUNT ( 20 ) ) + 68 col2
----
124

query I rowsort
SELECT DISTINCT - 88 - - 37
----
-51

query I rowsort
SELECT ALL - 70 - + 3 col0
----
-73

query II rowsort
SELECT 60 * 46 AS col1, + 38
----
2760
38

query I rowsort
SELECT 70 - + 31
----
39

query I rowsort
SELECT 44 + + ( + + 62 ) * + 34 col2
----
2152

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9799
SELECT ALL - 71 - - - COALESCE ( - 78, + CAST( NULL AS SIGNED ) DIV - AVG ( DISTINCT - + 31 ) + - + 5 ), 48 * - - 77 * + 45 AS col0
----
7
166320

skipif mysql # not compatible
query II rowsort label-9799
SELECT ALL - 71 - - - COALESCE ( - 78, + CAST ( NULL AS INTEGER ) / - AVG ( DISTINCT - + 31 ) + - + 5 ), 48 * - - 77 * + 45 AS col0
----
7
166320

query I rowsort
SELECT 85 * - 59
----
-5015

onlyif mysql # DIV for integer division: 
query I rowsort label-9801
SELECT + - 10 DIV - 27 + + 43
----
43

skipif mysql # not compatible
query I rowsort label-9801
SELECT + - 10 / - 27 + + 43
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT ALL - MIN( DISTINCT + + 41 ) * - + 32 AS col2
----
1312

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL - MIN ( DISTINCT + + 41 ) * - + 32 AS col2
----
1312

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT ALL - MAX( - 22 ) * - COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL - MAX ( - 22 ) * - COUNT ( * ) AS col1
----
-22

query I rowsort
SELECT + 32 * - + 88 AS col2
----
-2816

query I rowsort
SELECT DISTINCT - 51 * - 32 * + - 51 * + 73 AS col2
----
-6075936

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9806
SELECT ALL - COUNT( + + 72 ), ( + COALESCE ( - - COUNT( * ), CASE + 5 WHEN - 16 THEN + 55 * - - 20 DIV + 67 + - 29 WHEN ( - 55 ) THEN 62 - 6 END - + COUNT( * ) - + 3 ) ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-9806
SELECT ALL - COUNT ( + + 72 ), ( + COALESCE ( - - COUNT ( * ), CASE + 5 WHEN - 16 THEN + 55 * - - 20 / + 67 + - 29 WHEN ( - 55 ) THEN 62 - 6 END - + COUNT ( * ) - + 3 ) ) AS col2
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT - 69 * + MAX( DISTINCT + ( - 61 ) ) AS col2
----
4209

skipif mysql # not compatible
query I rowsort label-9807
SELECT - 69 * + MAX ( DISTINCT + ( - 61 ) ) AS col2
----
4209

query I rowsort
SELECT 70 + 81 + 59 + - 64 + 85 * + 20 * 54 * - 23 AS col1
----
-2111254

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9809
SELECT DISTINCT - + CAST( 39 AS SIGNED ), + 45 + - - 28 AS col1
----
-39
73

skipif mysql # not compatible
query II rowsort label-9809
SELECT DISTINCT - + CAST ( 39 AS INTEGER ), + 45 + - - 28 AS col1
----
-39
73

onlyif mysql # aggregate syntax: 
query II rowsort label-9810
SELECT + 27 * - COUNT( * ) - 49, + ( + 88 ) + + CASE 91 WHEN AVG ( - - 53 ) THEN - - 45 + - 11 * + 98 * - 38 + 54 * + - COUNT( * ) END AS col1
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-9810
SELECT + 27 * - COUNT ( * ) - 49, + ( + 88 ) + + CASE 91 WHEN AVG ( - - 53 ) THEN - - 45 + - 11 * + 98 * - 38 + 54 * + - COUNT ( * ) END AS col1
----
-76
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9811
SELECT ALL 79 + ( - - 79 ) + COUNT( * ) + + 86 * - CAST( - 25 AS SIGNED )
----
2309

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL 79 + ( - - 79 ) + COUNT ( * ) + + 86 * - CAST ( - 25 AS INTEGER )
----
2309

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT + COUNT( * ) * 36 + + - 54
----
-18

skipif mysql # not compatible
query I rowsort label-9812
SELECT + COUNT ( * ) * 36 + + - 54
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-9813
SELECT ALL + 8 DIV - + 67 * - - 3 * - - 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL + 8 / - + 67 * - - 3 * - - 67 AS col1
----
0

query I rowsort
SELECT ALL - 86 + - - 76 + - 65 AS col0
----
-75

query I rowsort
SELECT ALL + 16 + + 91 AS col1
----
107

query I rowsort
SELECT - 85 - + NULLIF ( - + 12, + 41 )
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9817
SELECT ALL ( - - 61 ) + - 67 DIV + 71 + - - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL ( - - 61 ) + - 67 / + 71 + - - COUNT ( * )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9818
SELECT 37 * - 44 + - - CAST( NULL AS SIGNED ) + + ( - 2 ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT 37 * - 44 + - - CAST ( NULL AS INTEGER ) + + ( - 2 ) + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 16 * - COALESCE ( - 66, + 56 * + - 85 )
----
1056

query I rowsort
SELECT ALL - 2 - 12 AS col0
----
-14

query I rowsort
SELECT DISTINCT + 47 * - 16 AS col2
----
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT CASE + 13 WHEN - + 21 * + + 40 THEN + 76 ELSE 50 + - 92 + - 50 - - COUNT( * ) END + + COUNT( * ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-9822
SELECT CASE + 13 WHEN - + 21 * + + 40 THEN + 76 ELSE 50 + - 92 + - 50 - - COUNT ( * ) END + + COUNT ( * ) AS col1
----
-90

query I rowsort
SELECT DISTINCT + 29 * + 96 AS col2
----
2784

onlyif mysql # DIV for integer division: 
query I rowsort label-9824
SELECT 79 + - + 74 - - 17 DIV + - 14 col1
----
4

skipif mysql # not compatible
query I rowsort label-9824
SELECT 79 + - + 74 - - 17 / + - 14 col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9825
SELECT CASE + - 87 WHEN COUNT( * ) - + CAST( NULL AS SIGNED ) THEN NULL ELSE + 18 END DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-9825
SELECT CASE + - 87 WHEN COUNT ( * ) - + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 18 END / + 71
----
0

query I rowsort
SELECT 86 * + 82 col1
----
7052

query I rowsort
SELECT ALL + 30 * - - 51 * + 77 AS col0
----
117810

query I rowsort
SELECT 66 + + + 25 AS col2
----
91

query I rowsort
SELECT DISTINCT 82 * - 65 * + 63
----
-335790

onlyif mysql # aggregate syntax: 
query II rowsort label-9830
SELECT - 25 AS col0, - COUNT( * ) + + 29
----
-25
28

skipif mysql # not compatible
query II rowsort label-9830
SELECT - 25 AS col0, - COUNT ( * ) + + 29
----
-25
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT ALL - - COUNT( * ) * + - COUNT( * ) * 66 + + 79 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL - - COUNT ( * ) * + - COUNT ( * ) * 66 + + 79 AS col1
----
13

query I rowsort
SELECT 23 + + + 28
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9833
SELECT DISTINCT - + NULLIF ( - + COUNT( - 96 ), + 43 / 91 * + 37 + CASE - 45 WHEN ( + 51 ) + - 83 THEN NULL WHEN COUNT( * ) / + CAST( NULL AS SIGNED ) * COUNT( * ) THEN NULL ELSE + + MAX( - 66 ) END - + 39 )
----
1

skipif mysql # not compatible
query I rowsort label-9833
SELECT DISTINCT - + NULLIF ( - + COUNT ( - 96 ), + 43 / 91 * + 37 + CASE - 45 WHEN ( + 51 ) + - 83 THEN NULL WHEN COUNT ( * ) / + CAST ( NULL AS INTEGER ) * COUNT ( * ) THEN NULL ELSE + + MAX ( - 66 ) END - + 39 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT COUNT( * ) * + - COUNT( * ) * - + 26 * 30
----
780

skipif mysql # not compatible
query I rowsort label-9834
SELECT COUNT ( * ) * + - COUNT ( * ) * - + 26 * 30
----
780

query I rowsort
SELECT DISTINCT + - 58 * + 50 AS col2
----
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT ( + COUNT( * ) ) + 5 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9836
SELECT ( + COUNT ( * ) ) + 5 AS col0
----
6

query I rowsort
SELECT + 33 + - 46 AS col2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-9838
SELECT 42 * 73 DIV + ( - 44 ) - + 98
----
-167

skipif mysql # not compatible
query I rowsort label-9838
SELECT 42 * 73 / + ( - 44 ) - + 98
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT DISTINCT + - 66 * MIN( ALL + - 71 ) + + 42 - - 86 AS col1
----
4814

skipif mysql # not compatible
query I rowsort label-9839
SELECT DISTINCT + - 66 * MIN ( ALL + - 71 ) + + 42 - - 86 AS col1
----
4814

query I rowsort
SELECT ALL + 45 * 55
----
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT DISTINCT - - MIN( - 77 ) + + 83 * - 32 AS col1
----
-2733

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT - - MIN ( - 77 ) + + 83 * - 32 AS col1
----
-2733

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT ALL - ( + + MAX( DISTINCT 0 ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL - ( + + MAX ( DISTINCT 0 ) ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT ALL - COUNT( 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL - COUNT ( 57 )
----
-1

query I rowsort
SELECT ( - 37 ) * - + 49 * - 57 - - 47
----
-103294

query II rowsort
SELECT ALL 81 * 44 AS col2, 32
----
3564
32

query I rowsort
SELECT + 63 * 34 AS col0
----
2142

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT + COALESCE ( - 17, - 7 - - + MAX( ( 97 ) ) ) * + 25 + + 4 AS col2
----
-421

skipif mysql # not compatible
query I rowsort label-9847
SELECT + COALESCE ( - 17, - 7 - - + MAX ( ( 97 ) ) ) * + 25 + + 4 AS col2
----
-421

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT - 10 + + - 42 + + COUNT( * ) + + - 94 * SUM( + ( + 82 ) ) * + + COUNT( * ) - + 61 * - 18
----
-6661

skipif mysql # not compatible
query I rowsort label-9848
SELECT - 10 + + - 42 + + COUNT ( * ) + + - 94 * SUM ( + ( + 82 ) ) * + + COUNT ( * ) - + 61 * - 18
----
-6661

query I rowsort
SELECT ALL 21 - + 76 * - 70 AS col0
----
5341

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT - 27 * 72 * - 98 * MIN( + - 62 )
----
-11811744

skipif mysql # not compatible
query I rowsort label-9850
SELECT - 27 * 72 * - 98 * MIN ( + - 62 )
----
-11811744

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT + 56 - - COUNT( + 45 ) + - SUM( + 5 ) * 72 + + 3 AS col0
----
-300

skipif mysql # not compatible
query I rowsort label-9851
SELECT + 56 - - COUNT ( + 45 ) + - SUM ( + 5 ) * 72 + + 3 AS col0
----
-300

query I rowsort
SELECT + ( 86 ) * 11
----
946

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT DISTINCT COALESCE ( - COUNT( * ), - + 30, - - 32 + - + 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT COALESCE ( - COUNT ( * ), - + 30, - - 32 + - + 81 )
----
-1

query II rowsort
SELECT DISTINCT + - 35 + 93 AS col0, + 60 * 12 + + 76
----
58
796

query I rowsort
SELECT + 72 + + 5
----
77

query I rowsort
SELECT + 42 - 13 AS col1
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9857
SELECT ALL - 1 * - - 3 * + + 23 - CAST( + - CAST( - + 53 AS SIGNED ) AS SIGNED )
----
-122

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL - 1 * - - 3 * + + 23 - CAST ( + - CAST ( - + 53 AS INTEGER ) AS INTEGER )
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT - CASE + 89 WHEN COUNT( * ) THEN + 48 / 89 * - 34 + - 68 ELSE NULL END - - 40 + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9858
SELECT - CASE + 89 WHEN COUNT ( * ) THEN + 48 / 89 * - 34 + - 68 ELSE NULL END - - 40 + 76
----
NULL

query I rowsort
SELECT ( - + ( + 34 ) ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL + COALESCE ( - 29, ( + ( 10 ) ) * - 48, - COUNT( DISTINCT + + ( - + 49 ) ) ) * 19 + - 87 + 90 * 41
----
3052

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL + COALESCE ( - 29, ( + ( 10 ) ) * - 48, - COUNT ( DISTINCT + + ( - + 49 ) ) ) * 19 + - 87 + 90 * 41
----
3052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9861
SELECT + + 46 + 28 + - + 82 * + 93 * + + ( CAST( 41 AS SIGNED ) ) + - NULLIF ( + + 33, 24 / + 89 )
----
-312625

skipif mysql # not compatible
query I rowsort label-9861
SELECT + + 46 + 28 + - + 82 * + 93 * + + ( CAST ( 41 AS INTEGER ) ) + - NULLIF ( + + 33, 24 / + 89 )
----
-312625

query I rowsort
SELECT + - ( - + 32 ) AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9863
SELECT DISTINCT + + CAST( CAST( + 4 AS DECIMAL ) AS SIGNED ) col1
----
4

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT + + CAST ( CAST ( + 4 AS REAL ) AS INTEGER ) col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ALL - + NULLIF ( 56, + 55 * - - COUNT( * ) ) * + + 12 + - 27
----
-699

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL - + NULLIF ( 56, + 55 * - - COUNT ( * ) ) * + + 12 + - 27
----
-699

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT + + COUNT( ALL - + 47 ) + - + COALESCE ( + 65, + 28 + - + 68 ) * + + ( ( 3 ) ) AS col2
----
-194

skipif mysql # not compatible
query I rowsort label-9865
SELECT + + COUNT ( ALL - + 47 ) + - + COALESCE ( + 65, + 28 + - + 68 ) * + + ( ( 3 ) ) AS col2
----
-194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9866
SELECT - + ( ( - - 68 ) ) * + + CAST( SUM( ALL ( + + 0 ) ) AS SIGNED ) + CASE + - 45 WHEN + - SUM( - 51 ) + - 76 THEN NULL ELSE - - 81 END AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9866
SELECT - + ( ( - - 68 ) ) * + + CAST ( SUM ( ALL ( + + 0 ) ) AS INTEGER ) + CASE + - 45 WHEN + - SUM ( - 51 ) + - 76 THEN NULL ELSE - - 81 END AS col0
----
81

query I rowsort
SELECT - 71 + - 11
----
-82

query I rowsort
SELECT + - NULLIF ( - - 73, + 0 ) AS col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9869
SELECT COALESCE ( + - 48, + 12 * CAST( NULL AS SIGNED ) + + 55 )
----
-48

skipif mysql # not compatible
query I rowsort label-9869
SELECT COALESCE ( + - 48, + 12 * CAST ( NULL AS INTEGER ) + + 55 )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9870
SELECT ALL + CAST( - + COUNT( * ) AS SIGNED ) * + 24 - 36 + - + CASE + ( COUNT( * ) ) WHEN 72 + + 55 THEN NULL WHEN + 88 THEN NULL ELSE + 72 END
----
-132

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL + CAST ( - + COUNT ( * ) AS INTEGER ) * + 24 - 36 + - + CASE + ( COUNT ( * ) ) WHEN 72 + + 55 THEN NULL WHEN + 88 THEN NULL ELSE + 72 END
----
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9871
SELECT - COUNT( * ) * + - COALESCE ( + 42, - - 25 + - 21 * + 52 + + 37, - 68 DIV + 5 * + - 13 ) * 37 DIV - + 48 + + 22 * MAX( + + NULLIF ( ( 8 ), - 87 DIV ( 53 ) ) ) + 13
----
157

skipif mysql # not compatible
query I rowsort label-9871
SELECT - COUNT ( * ) * + - COALESCE ( + 42, - - 25 + - 21 * + 52 + + 37, - 68 / + 5 * + - 13 ) * 37 / - + 48 + + 22 * MAX ( + + NULLIF ( ( 8 ), - 87 / ( 53 ) ) ) + 13
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT ALL 39 * + COUNT( * ) * + 23 - + MIN( - + ( + 12 ) ) + + + 28 * + 13 * + + 94
----
35125

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL 39 * + COUNT ( * ) * + 23 - + MIN ( - + ( + 12 ) ) + + + 28 * + 13 * + + 94
----
35125

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT ALL + NULLIF ( - + 66, - COUNT( * ) )
----
-66

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL + NULLIF ( - + 66, - COUNT ( * ) )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT ALL + MIN( - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL + MIN ( - 24 )
----
-24

query I rowsort
SELECT 75 * - + 23 + + - 80 AS col2
----
-1805

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9876
SELECT - 27 DIV COALESCE ( COUNT( * ), + + 28 * + + 25 * 71 * + - COUNT( * ) * 82 ) AS col0, - 21 * 21 AS col2
----
-27
-441

skipif mysql # not compatible
query II rowsort label-9876
SELECT - 27 / COALESCE ( COUNT ( * ), + + 28 * + + 25 * 71 * + - COUNT ( * ) * 82 ) AS col0, - 21 * 21 AS col2
----
-27
-441

query I rowsort
SELECT DISTINCT ( + 25 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT - COUNT( * ) + - MAX( 27 )
----
-28

skipif mysql # not compatible
query I rowsort label-9878
SELECT - COUNT ( * ) + - MAX ( 27 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT + 68 * - COUNT( * ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-9879
SELECT + 68 * - COUNT ( * ) AS col0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-9880
SELECT ALL - 12 DIV - 2
----
6

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL - 12 / - 2
----
6

query I rowsort
SELECT - 80 + + 29
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT ALL CASE - + COUNT( * ) WHEN + 39 * - + 9 THEN 60 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL CASE - + COUNT ( * ) WHEN + 39 * - + 9 THEN 60 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9883
SELECT - CASE - ( - MAX( ALL + + 68 ) ) WHEN - COALESCE ( + 30, NULLIF ( + - 49, - + 23 ) ) THEN - 36 WHEN ( - 96 ) THEN NULL END + - + 43 col0, 17 * + MIN( DISTINCT 60 ) + 99
----
NULL
1119

skipif mysql # not compatible
query II rowsort label-9883
SELECT - CASE - ( - MAX ( ALL + + 68 ) ) WHEN - COALESCE ( + 30, NULLIF ( + - 49, - + 23 ) ) THEN - 36 WHEN ( - 96 ) THEN NULL END + - + 43 col0, 17 * + MIN ( DISTINCT 60 ) + 99
----
NULL
1119

query II rowsort
SELECT DISTINCT + 67 + + - 91 + 13 * + 1 + - - 35 AS col2, 38 + + + 79
----
24
117

query I rowsort
SELECT ALL - 12 + + - 22 col0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9886
SELECT ALL - COUNT( * ) + CAST( 92 AS SIGNED ), - MAX( ALL + 50 ) * + 47 AS col1
----
91
-2350

skipif mysql # not compatible
query II rowsort label-9886
SELECT ALL - COUNT ( * ) + CAST ( 92 AS INTEGER ), - MAX ( ALL + 50 ) * + 47 AS col1
----
91
-2350

query I rowsort
SELECT + - 11 + 73 - 93
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9888
SELECT ALL COUNT( * ) AS col0, + 12 + COUNT( * ) + 85 + - - 14 * 49 DIV + + 45 + - 94, + ( 34 ) + 24 + 97 * 24 AS col1
----
1
19
2386

skipif mysql # not compatible
query III rowsort label-9888
SELECT ALL COUNT ( * ) AS col0, + 12 + COUNT ( * ) + 85 + - - 14 * 49 / + + 45 + - 94, + ( 34 ) + 24 + 97 * 24 AS col1
----
1
19
2386

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT - + 0 + - COUNT( * ) + - 40 * - - 6
----
-241

skipif mysql # not compatible
query I rowsort label-9889
SELECT - + 0 + - COUNT ( * ) + - 40 * - - 6
----
-241

onlyif mysql # DIV for integer division: 
query I rowsort label-9890
SELECT - + 42 DIV 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9890
SELECT - + 42 / 59 AS col1
----
0

query I rowsort
SELECT + - 61 + + 33
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT + + SUM( 56 ) + - - 64 + - 91
----
29

skipif mysql # not compatible
query I rowsort label-9892
SELECT + + SUM ( 56 ) + - - 64 + - 91
----
29

query I rowsort
SELECT ALL + 81 + - + 1 * - 69
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-9894
SELECT NULLIF ( - + 59, - COUNT( * ) ) AS col0, 95 - 94 + - - 70
----
-59
71

skipif mysql # not compatible
query II rowsort label-9894
SELECT NULLIF ( - + 59, - COUNT ( * ) ) AS col0, 95 - 94 + - - 70
----
-59
71

query I rowsort
SELECT DISTINCT + 12 * - 46 AS col2
----
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT + 6 * 4 * MIN( - - 29 ) * ( + 85 )
----
59160

skipif mysql # not compatible
query I rowsort label-9896
SELECT + 6 * 4 * MIN ( - - 29 ) * ( + 85 )
----
59160

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT + COUNT( * ) + 91 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-9897
SELECT + COUNT ( * ) + 91 AS col1
----
92

query I rowsort
SELECT ALL 89 + - 11
----
78

query I rowsort
SELECT + + 34 * - + 36 + 83 AS col2
----
-1141

query I rowsort
SELECT + - 18 + - 14 AS col1
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9901
SELECT + CAST( 17 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-9901
SELECT + CAST ( 17 AS INTEGER )
----
17

query I rowsort
SELECT - 78 * + 1
----
-78

query I rowsort
SELECT + 17 + 58 AS col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9904
SELECT - - CAST( 95 AS SIGNED ) * + 8 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9904
SELECT - - CAST ( 95 AS INTEGER ) * + 8 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( - + 83, + 88 ) col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT DISTINCT ( + 85 ) * 50 * - MAX( + + 91 ) col0
----
-386750

skipif mysql # not compatible
query I rowsort label-9906
SELECT DISTINCT ( + 85 ) * 50 * - MAX ( + + 91 ) col0
----
-386750

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT + 91 * 7 + CASE + 50 WHEN 45 THEN - - 11 - COALESCE ( - - 1, 3 + MIN( - - 30 ) - 97 ) / COALESCE ( + 16, + + MAX( ALL - - 66 ) ) * + - MIN( - 77 ) + + 31 END + + AVG ( DISTINCT + 83 ) / + 73 / + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9907
SELECT + 91 * 7 + CASE + 50 WHEN 45 THEN - - 11 - COALESCE ( - - 1, 3 + MIN ( - - 30 ) - 97 ) / COALESCE ( + 16, + + MAX ( ALL - - 66 ) ) * + - MIN ( - 77 ) + + 31 END + + AVG ( DISTINCT + 83 ) / + 73 / + 28 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT DISTINCT - MIN( ALL + 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT - MIN ( ALL + 42 ) AS col0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9909
SELECT ALL COUNT( * ) DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL COUNT ( * ) / + 81
----
0

query I rowsort
SELECT 70 + + 93 + - 1 AS col1
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9911
SELECT CAST( NULL AS SIGNED ) * - - 3 * - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT CAST ( NULL AS INTEGER ) * - - 3 * - 21 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9912
SELECT + CAST( NULL AS SIGNED ) * + + 4 + + 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9912
SELECT + CAST ( NULL AS INTEGER ) * + + 4 + + 71 AS col2
----
NULL

query II rowsort
SELECT + 0 AS col0, + 93 * - + 6 AS col0
----
0
-558

query I rowsort
SELECT DISTINCT - 25 * - 88 col0
----
2200

query I rowsort
SELECT DISTINCT - 26 + - 66 AS col1
----
-92

query II rowsort
SELECT - 21 AS col2, + ( - - 10 ) AS col2
----
-21
10

query I rowsort
SELECT ALL - 8 * - 99 AS col1
----
792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9918
SELECT ALL 73, COUNT( * ) + + 54 + - - CAST( NULL AS SIGNED ) / ( + + 14 ) + 6 AS col2
----
73
NULL

skipif mysql # not compatible
query II rowsort label-9918
SELECT ALL 73, COUNT ( * ) + + 54 + - - CAST ( NULL AS INTEGER ) / ( + + 14 ) + 6 AS col2
----
73
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9919
SELECT 34 AS col2, 61 * + - NULLIF ( + 80, 78 * - 57 + 87 ) + NULLIF ( - 64, - + 14 * + 69 * 62 * + ( COUNT( * ) ) + 36 * + 84 * + 92 * + - 73 + + - ( + 71 ) + + CAST( 85 AS SIGNED ) + + 93 / NULLIF ( + - 43, + SUM( DISTINCT 60 ) * 78 ) * 52 ) * - ( - 22 ) AS col1
----
34
-6288

skipif mysql # not compatible
query II rowsort label-9919
SELECT 34 AS col2, 61 * + - NULLIF ( + 80, 78 * - 57 + 87 ) + NULLIF ( - 64, - + 14 * + 69 * 62 * + ( COUNT ( * ) ) + 36 * + 84 * + 92 * + - 73 + + - ( + 71 ) + + CAST ( 85 AS INTEGER ) + + 93 / NULLIF ( + - 43, + SUM ( DISTINCT 60 ) * 78 ) * 52 ) * - ( - 22 ) AS col1
----
34
-6288

query II rowsort
SELECT - 65, + 31 AS col2
----
-65
31

query I rowsort
SELECT - 76 - - 96 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT - - MIN( DISTINCT - - 54 ) col0
----
54

skipif mysql # not compatible
query I rowsort label-9922
SELECT - - MIN ( DISTINCT - - 54 ) col0
----
54

query I rowsort
SELECT ALL - NULLIF ( + 29, 44 - - 93 + - 73 ) AS col0
----
-29

query II rowsort
SELECT ALL - 24 + 64 AS col2, + 76
----
40
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT ALL + + COUNT( * ) - + 59 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL + + COUNT ( * ) - + 59 AS col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9926
SELECT DISTINCT - + CAST( - 74 AS SIGNED ) DIV + 2 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT - + CAST ( - 74 AS INTEGER ) / + 2 AS col1
----
37

query I rowsort
SELECT ALL - 69 - + - 54
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-9928
SELECT ALL + - NULLIF ( - 16, - COUNT( * ) ) * - 26, - 14 - + + 97 AS col2
----
-416
-111

skipif mysql # not compatible
query II rowsort label-9928
SELECT ALL + - NULLIF ( - 16, - COUNT ( * ) ) * - 26, - 14 - + + 97 AS col2
----
-416
-111

query I rowsort
SELECT 80 * + 1 * + 7 AS col0
----
560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9930
SELECT 39 - - - ( + + 11 ) * - + CAST( NULLIF ( + 81, - + 77 ) AS SIGNED ) + - - 65 * - + 55, + 26 * 15 AS col2
----
-2645
390

skipif mysql # not compatible
query II rowsort label-9930
SELECT 39 - - - ( + + 11 ) * - + CAST ( NULLIF ( + 81, - + 77 ) AS INTEGER ) + - - 65 * - + 55, + 26 * 15 AS col2
----
-2645
390

onlyif mysql # aggregate syntax: 
query II rowsort label-9931
SELECT 32, 74 * - + 72 + - MIN( 23 ) AS col2
----
32
-5351

skipif mysql # not compatible
query II rowsort label-9931
SELECT 32, 74 * - + 72 + - MIN ( 23 ) AS col2
----
32
-5351

query I rowsort
SELECT ALL - 67 * - 40
----
2680

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT ALL 23 - + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL 23 - + COUNT ( * )
----
22

query II rowsort
SELECT - + 72 AS col1, - 95 + + 8 AS col0
----
-72
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-9935
SELECT + 84, + COUNT( * ) AS col1
----
84
1

skipif mysql # not compatible
query II rowsort label-9935
SELECT + 84, + COUNT ( * ) AS col1
----
84
1

query I rowsort
SELECT ALL - + 4 * + 73 * + 26
----
-7592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9937
SELECT DISTINCT - CAST( - 30 AS SIGNED ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT - CAST ( - 30 AS INTEGER ) AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9938
SELECT DISTINCT 63 DIV SUM( + 66 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9938
SELECT DISTINCT 63 / SUM ( + 66 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT SUM( DISTINCT 52 ) + 2
----
54

skipif mysql # not compatible
query I rowsort label-9939
SELECT SUM ( DISTINCT 52 ) + 2
----
54

query II rowsort
SELECT 44 * + 17, 6 AS col2
----
748
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT ALL 98 + ( - - SUM( - + 8 ) )
----
90

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL 98 + ( - - SUM ( - + 8 ) )
----
90

query I rowsort
SELECT ALL 51 + - 29 + 48 * + + 64 + + ( + - 42 ) - 96 AS col0
----
2956

query II rowsort
SELECT ALL 62 + + 88 AS col2, - 92 + 67 * + + 4 AS col2
----
150
176

onlyif mysql # aggregate syntax: 
query II rowsort label-9944
SELECT + COUNT( + + 19 ) AS col0, 87 + COUNT( * ) col2
----
1
88

skipif mysql # not compatible
query II rowsort label-9944
SELECT + COUNT ( + + 19 ) AS col0, 87 + COUNT ( * ) col2
----
1
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT ( + + COUNT( * ) ) - 84 col2
----
-83

skipif mysql # not compatible
query I rowsort label-9945
SELECT ( + + COUNT ( * ) ) - 84 col2
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9946
SELECT 69 + - - 82 DIV - 43 AS col1, + 44 + COUNT( * ) AS col1
----
68
45

skipif mysql # not compatible
query II rowsort label-9946
SELECT 69 + - - 82 / - 43 AS col1, + 44 + COUNT ( * ) AS col1
----
68
45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9947
SELECT 14 + - - CAST( ( - 91 ) AS SIGNED ) DIV - 64
----
15

skipif mysql # not compatible
query I rowsort label-9947
SELECT 14 + - - CAST ( ( - 91 ) AS INTEGER ) / - 64
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT COUNT( * ) + - - 16 + 59 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-9948
SELECT COUNT ( * ) + - - 16 + 59 AS col0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9949
SELECT - + CASE 9 WHEN + + CAST( - - ( + CASE 86 WHEN + 59 THEN + 60 ELSE NULL END ) AS SIGNED ) THEN + AVG ( ALL - NULLIF ( 68, 65 + + 71 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9949
SELECT - + CASE 9 WHEN + + CAST ( - - ( + CASE 86 WHEN + 59 THEN + 60 ELSE NULL END ) AS INTEGER ) THEN + AVG ( ALL - NULLIF ( 68, 65 + + 71 ) ) END
----
NULL

query I rowsort
SELECT 92 + - 22 + - + 66
----
4

query I rowsort
SELECT ALL - 23 * - 64
----
1472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9952
SELECT DISTINCT COALESCE ( + 61, - CAST( NULL AS SIGNED ) + + + COALESCE ( - + 64, + 83 * - 17 * + ( + 31 ) + - 52 DIV - + ( + 79 ) * - COUNT( * ) + - 97 + - + 84, 19 + + - ( - + 89 ) ) ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-9952
SELECT DISTINCT COALESCE ( + 61, - CAST ( NULL AS INTEGER ) + + + COALESCE ( - + 64, + 83 * - 17 * + ( + 31 ) + - 52 / - + ( + 79 ) * - COUNT ( * ) + - 97 + - + 84, 19 + + - ( - + 89 ) ) ) AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9953
SELECT 84 + - ( COUNT( * ) ) DIV 41
----
84

skipif mysql # not compatible
query I rowsort label-9953
SELECT 84 + - ( COUNT ( * ) ) / 41
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT ALL - 73 - COUNT( + + 95 ) * + - 2 + - - 46
----
-25

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL - 73 - COUNT ( + + 95 ) * + - 2 + - - 46
----
-25

query I rowsort
SELECT 15 * + 68 AS col0
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT ALL SUM( DISTINCT + - 20 ) * + 27 AS col0
----
-540

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL SUM ( DISTINCT + - 20 ) * + 27 AS col0
----
-540

onlyif mysql # DIV for integer division: 
query I rowsort label-9957
SELECT - 10 + 12 DIV - 18 - - ( - 62 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-9957
SELECT - 10 + 12 / - 18 - - ( - 62 ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-9958
SELECT + COUNT( * ) * + 80, - COUNT( * ) col0
----
80
-1

skipif mysql # not compatible
query II rowsort label-9958
SELECT + COUNT ( * ) * + 80, - COUNT ( * ) col0
----
80
-1

query I rowsort
SELECT 54 + 7 AS col1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9960
SELECT ALL + 46 DIV + + 83 + 18 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL + 46 / + + 83 + 18 AS col0
----
18

query I rowsort
SELECT - - 41 + + - 91 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT - 26 / + + 25 * 15 + + CASE - + 1 WHEN + 14 THEN + COUNT( * ) END + 34 + - 79 + NULLIF ( COUNT( * ), COUNT( * ) + + 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT - 26 / + + 25 * 15 + + CASE - + 1 WHEN + 14 THEN + COUNT ( * ) END + 34 + - 79 + NULLIF ( COUNT ( * ), COUNT ( * ) + + 40 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT NULLIF ( - + 9, + 9 / + 94 * + 75 * + CASE + - 79 WHEN + + ( + COUNT( * ) ) THEN + + 75 + - 22 END + + 65 )
----
-9

skipif mysql # not compatible
query I rowsort label-9963
SELECT NULLIF ( - + 9, + 9 / + 94 * + 75 * + CASE + - 79 WHEN + + ( + COUNT ( * ) ) THEN + + 75 + - 22 END + + 65 )
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-9964
SELECT - 11 * - 31 * + + 79 AS col1, 14 + + + 60 * + 92 + 48 DIV + + 67 col2
----
26939
5534

skipif mysql # not compatible
query II rowsort label-9964
SELECT - 11 * - 31 * + + 79 AS col1, 14 + + + 60 * + 92 + 48 / + + 67 col2
----
26939
5534

query I rowsort
SELECT - 17 + + 83 * + 84 * + + 85 * + 70 AS col1
----
41483383

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9966
SELECT - MIN( - 8 ) DIV + 28, + CAST( NULL AS SIGNED ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9966
SELECT - MIN ( - 8 ) / + 28, + CAST ( NULL AS INTEGER ) AS col1
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9967
SELECT + 58 * 58 + + COUNT( * ) / + SUM( DISTINCT - 26 ) / CAST( NULL AS SIGNED ) / + + CAST( + - 21 AS SIGNED ) AS col0, 11 + 37 * - + 70 + - + 12 - - MAX( + 45 ) - 76
----
NULL
-2622

skipif mysql # not compatible
query II rowsort label-9967
SELECT + 58 * 58 + + COUNT ( * ) / + SUM ( DISTINCT - 26 ) / CAST ( NULL AS INTEGER ) / + + CAST ( + - 21 AS INTEGER ) AS col0, 11 + 37 * - + 70 + - + 12 - - MAX ( + 45 ) - 76
----
NULL
-2622

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT ALL 39 * + - COUNT( * ) + - - 7 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL 39 * + - COUNT ( * ) + - - 7 AS col1
----
-32

query I rowsort
SELECT NULLIF ( 36, 78 / - 87 ) AS col0
----
36

query I rowsort
SELECT - 81 * + + 4
----
-324

query II rowsort
SELECT ALL + 34 AS col1, - NULLIF ( - 78, - 27 ) col1
----
34
78

query I rowsort
SELECT ALL - 25 * + - 42
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT ALL - 43 * + 63 + + - NULLIF ( + COUNT( + 8 ), COUNT( * ) ) + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL - 43 * + 63 + + - NULLIF ( + COUNT ( + 8 ), COUNT ( * ) ) + + 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT + 27 + + + 87 * - NULLIF ( + MAX( - 22 ), + AVG ( DISTINCT + - 17 ) * + 36 )
----
1941

skipif mysql # not compatible
query I rowsort label-9974
SELECT + 27 + + + 87 * - NULLIF ( + MAX ( - 22 ), + AVG ( DISTINCT + - 17 ) * + 36 )
----
1941

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT + NULLIF ( - 24, + + MAX( 41 ) ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-9975
SELECT + NULLIF ( - 24, + + MAX ( 41 ) ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT DISTINCT COUNT( * ) * - 54 * COALESCE ( 78, + 1 )
----
-4212

skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT COUNT ( * ) * - 54 * COALESCE ( 78, + 1 )
----
-4212

query I rowsort
SELECT + ( + - 22 ) AS col2
----
-22

query I rowsort
SELECT ALL - 91 * - - 25 - + + 22
----
-2297

query I rowsort
SELECT DISTINCT + 24 * + 55 + + 18 - - 26 * - 57
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9980
SELECT DISTINCT ( CAST( + 87 AS SIGNED ) ) * 25 + + + 0
----
2175

skipif mysql # not compatible
query I rowsort label-9980
SELECT DISTINCT ( CAST ( + 87 AS INTEGER ) ) * 25 + + + 0
----
2175

query I rowsort
SELECT ALL 11 - 16
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9982
SELECT + 81 DIV - + 45 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9982
SELECT + 81 / - + 45 AS col0
----
-1

query I rowsort
SELECT + 95 * 86 AS col1
----
8170

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT + 38 + - COUNT( DISTINCT + - 21 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-9984
SELECT + 38 + - COUNT ( DISTINCT + - 21 ) AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9985
SELECT ALL - 42 - 47 + - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) * + - 41 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL - 42 - 47 + - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + - 41 AS col1
----
-89

query II rowsort
SELECT - - 31 * 7 - 61 AS col2, 6
----
156
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9987
SELECT - + COUNT( * ), - COALESCE ( + MIN( DISTINCT 62 ), - 43 ) - - 20 - - + 6 * + ( + - COUNT( * ) ) * - 63 * + 53 - + 92 + 72 / + NULLIF ( + 21, 7 ) * - 25 + NULLIF ( - 16, COUNT( * ) ) + + CAST( NULL AS SIGNED ) * 43 * + 49 AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9987
SELECT - + COUNT ( * ), - COALESCE ( + MIN ( DISTINCT 62 ), - 43 ) - - 20 - - + 6 * + ( + - COUNT ( * ) ) * - 63 * + 53 - + 92 + 72 / + NULLIF ( + 21, 7 ) * - 25 + NULLIF ( - 16, COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) * 43 * + 49 AS col0
----
-1
NULL

query I rowsort
SELECT + + 61 - + 73
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9989
SELECT - + 56 * + ( 65 ) / AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9989
SELECT - + 56 * + ( 65 ) / AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT ALL - CASE + 85 WHEN ( + 0 ) THEN + + COUNT( * ) WHEN - + 95 + COUNT( * ) THEN NULL ELSE + 26 * - - 81 END AS col0
----
-2106

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL - CASE + 85 WHEN ( + 0 ) THEN + + COUNT ( * ) WHEN - + 95 + COUNT ( * ) THEN NULL ELSE + 26 * - - 81 END AS col0
----
-2106

query II rowsort
SELECT ALL + + 79 * - + 30 + 90, - 20 AS col1
----
-2280
-20

query I rowsort
SELECT + + 12 + - 86 AS col1
----
-74

query I rowsort
SELECT ALL 67 * - - 14 + + 4 AS col1
----
942

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT ALL MAX( ALL + 36 ) col2
----
36

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL MAX ( ALL + 36 ) col2
----
36

query I rowsort
SELECT + 55 + - 70 * - 5 + + 29 AS col0
----
434

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT - 24 - + ( + 34 ) + - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-9996
SELECT - 24 - + ( + 34 ) + - COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT - NULLIF ( COUNT( * ), + 35 ) * + + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9997
SELECT - NULLIF ( COUNT ( * ), + 35 ) * + + COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT DISTINCT + 11 + - COUNT( * ) * - + 54 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT + 11 + - COUNT ( * ) * - + 54 AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9999
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), COUNT( * ) * - + 21 - 62 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), COUNT ( * ) * - + 21 - 62 ) AS col0
----
NULL

