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 # DIV for integer division: 
query I rowsort label-0
SELECT ALL - 25 DIV 11
----
-2

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL - 25 / 11
----
-2

query I rowsort
SELECT DISTINCT - 16 * + 7 AS col1
----
-112

query I rowsort
SELECT ALL - COALESCE ( - 21, 48 ) AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3
SELECT ALL - 98 * - ( 70 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL - 98 * - ( 70 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 44 * 20 AS col0
----
880

query I rowsort
SELECT 72 * 43 AS col2
----
3096

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT 82 * COUNT( * ) col0
----
82

skipif mysql # not compatible
query I rowsort label-7
SELECT 82 * COUNT ( * ) col0
----
82

query I rowsort
SELECT ALL + 53 * + 81 * 72
----
309096

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT ALL - 99 * + COALESCE ( + 98, - NULLIF ( 44, - ( 86 ) ) * + 42 + MIN( 26 ) * 42 )
----
-9702

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL - 99 * + COALESCE ( + 98, - NULLIF ( 44, - ( 86 ) ) * + 42 + MIN ( 26 ) * 42 )
----
-9702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-10
SELECT DISTINCT - CAST( - 7 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-10
SELECT DISTINCT - CAST ( - 7 AS INTEGER )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT ALL CASE + + ( 8 ) WHEN 45 THEN + 29 * - COUNT( * ) + + 4 * + 15 ELSE NULL END + SUM( DISTINCT 72 ) * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL CASE + + ( 8 ) WHEN 45 THEN + 29 * - COUNT ( * ) + + 4 * + 15 ELSE NULL END + SUM ( DISTINCT 72 ) * + 56
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT COALESCE ( - - COUNT( * ), - 3 - - 27, + 94 )
----
1

skipif mysql # not compatible
query I rowsort label-13
SELECT COALESCE ( - - COUNT ( * ), - 3 - - 27, + 94 )
----
1

query I rowsort
SELECT ALL + - 64 + + 63 AS col0
----
-1

query I rowsort
SELECT + 55 * 32 + - 34 * + 81
----
-994

query I rowsort
SELECT 73 - + 26 AS col1
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT - 6 + COUNT( * ) - - 86 * 33 col1
----
2833

skipif mysql # not compatible
query I rowsort label-18
SELECT - 6 + COUNT ( * ) - - 86 * 33 col1
----
2833

query I rowsort
SELECT DISTINCT ( - + 4 ) + 30
----
26

query I rowsort
SELECT ALL 81 * + 72 AS col1
----
5832

query I rowsort
SELECT DISTINCT + 27 + - 94
----
-67

query I rowsort
SELECT DISTINCT - + 22 + 0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-23
SELECT DISTINCT CAST( NULL AS SIGNED ) + + NULLIF ( 42, 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + NULLIF ( 42, 17 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT - COUNT( * ) * - + COUNT( * ) - - 43
----
44

skipif mysql # not compatible
query I rowsort label-24
SELECT - COUNT ( * ) * - + COUNT ( * ) - - 43
----
44

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

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

query I rowsort
SELECT + 86 + 85 + 29 * - 10 AS col1
----
-119

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT ALL + ( - NULLIF ( + COUNT( * ), + 77 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-28
SELECT ALL + ( - NULLIF ( + COUNT ( * ), + 77 ) ) AS col1
----
-1

query I rowsort
SELECT 49 + - 62 + 92 AS col2
----
79

query I rowsort
SELECT + 14 * - + 98 * 15 col1
----
-20580

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT - ( + - SUM( DISTINCT + 66 ) ) + - 56 * 9 AS col1
----
-438

skipif mysql # not compatible
query I rowsort label-31
SELECT - ( + - SUM ( DISTINCT + 66 ) ) + - 56 * 9 AS col1
----
-438

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-32
SELECT - 36 + + - 53 DIV MIN( 60 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-32
SELECT - 36 + + - 53 / MIN ( 60 ) AS col2
----
-36

query I rowsort
SELECT ALL 6 - 32 * 25
----
-794

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT ALL - 20 * COALESCE ( COUNT( * ), - 55 + - COUNT( * ) ) * + ( - 22 )
----
440

skipif mysql # not compatible
query I rowsort label-34
SELECT ALL - 20 * COALESCE ( COUNT ( * ), - 55 + - COUNT ( * ) ) * + ( - 22 )
----
440

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT COUNT( ALL + 29 ) * + 57
----
57

skipif mysql # not compatible
query I rowsort label-35
SELECT COUNT ( ALL + 29 ) * + 57
----
57

query I rowsort
SELECT DISTINCT 25 * + + 66 AS col2
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT ALL MAX( + + NULLIF ( + - CASE - 68 WHEN + 69 THEN NULL WHEN 81 + 70 * 76 THEN + 71 * - 96 WHEN 50 THEN NULL END, + 25 + + 98 ) ) * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL MAX ( + + NULLIF ( + - CASE - 68 WHEN + 69 THEN NULL WHEN 81 + 70 * 76 THEN + 71 * - 96 WHEN 50 THEN NULL END, + 25 + + 98 ) ) * - 79
----
NULL

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

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

query I rowsort
SELECT ALL 54 * COALESCE ( + 47, 12 ) * 25
----
63450

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT - COUNT( ALL - 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-40
SELECT - COUNT ( ALL - 57 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-41
SELECT DISTINCT 57, + 86 * - MIN( 67 ) * 27 + + 17 * + 69 col0
----
57
-154401

skipif mysql # not compatible
query II rowsort label-41
SELECT DISTINCT 57, + 86 * - MIN ( 67 ) * 27 + + 17 * + 69 col0
----
57
-154401

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT COUNT( ALL - 11 ) * - 98 - 14 - 11 AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-42
SELECT COUNT ( ALL - 11 ) * - 98 - 14 - 11 AS col0
----
-123

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

skipif mysql # not compatible
query II rowsort label-43
SELECT COUNT ( * ), 28 AS col2
----
1
28

onlyif mysql # aggregate syntax: 
query II rowsort label-44
SELECT COUNT( * ) AS col0, - COUNT( * ) + + - 43 + - 4
----
1
-48

skipif mysql # not compatible
query II rowsort label-44
SELECT COUNT ( * ) AS col0, - COUNT ( * ) + + - 43 + - 4
----
1
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-45
SELECT + 98 DIV - 70 - + + 10 col1
----
-11

skipif mysql # not compatible
query I rowsort label-45
SELECT + 98 / - 70 - + + 10 col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT 75 * 68 * - - 48 * + COUNT( * ) AS col0
----
244800

skipif mysql # not compatible
query I rowsort label-46
SELECT 75 * 68 * - - 48 * + COUNT ( * ) AS col0
----
244800

query I rowsort
SELECT DISTINCT - COALESCE ( 5, + - 30 + + 51 ) col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT SUM( DISTINCT + 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-48
SELECT SUM ( DISTINCT + 63 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT ALL - 62 * + + SUM( - 44 ) * + 84 + MAX( DISTINCT 62 )
----
229214

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL - 62 * + + SUM ( - 44 ) * + 84 + MAX ( DISTINCT 62 )
----
229214

query I rowsort
SELECT ALL + 79 * + 72 + - 86 + + 63 AS col1
----
5665

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

skipif mysql # not compatible
query I rowsort label-51
SELECT 31 * + + COUNT ( * ) - 83 AS col0
----
-52

query I rowsort
SELECT DISTINCT 34 * ( + 52 ) * 19 + 37 AS col0
----
33629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-53
SELECT - MIN( ALL + 69 ) * CAST( - 23 AS SIGNED ) - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-53
SELECT - MIN ( ALL + 69 ) * CAST ( - 23 AS INTEGER ) - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT COUNT( DISTINCT - - 56 )
----
1

skipif mysql # not compatible
query I rowsort label-54
SELECT COUNT ( DISTINCT - - 56 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-55
SELECT + 88, + MAX( + 6 ) * 59 + 94 AS col2
----
88
448

skipif mysql # not compatible
query II rowsort label-55
SELECT + 88, + MAX ( + 6 ) * 59 + 94 AS col2
----
88
448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-56
SELECT ALL + 85 * MIN( + ( + CAST( 68 AS SIGNED ) ) ) + COUNT( * ) AS col2
----
5781

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL + 85 * MIN ( + ( + CAST ( 68 AS INTEGER ) ) ) + COUNT ( * ) AS col2
----
5781

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-57
SELECT NULLIF ( + 9, CAST( - 88 AS SIGNED ) ) col1
----
9

skipif mysql # not compatible
query I rowsort label-57
SELECT NULLIF ( + 9, CAST ( - 88 AS INTEGER ) ) col1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-58
SELECT + 8 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-58
SELECT + 8 / - 57
----
0

query I rowsort
SELECT - 53 * - 60 * + + 53 + - 31 * 25
----
167765

query I rowsort
SELECT ALL + - 36 * 75 col1
----
-2700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-61
SELECT - 91 + NULLIF ( ( + 36 ), + CAST( NULL AS SIGNED ) ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-61
SELECT - 91 + NULLIF ( ( + 36 ), + CAST ( NULL AS INTEGER ) ) AS col2
----
-55

query II rowsort
SELECT ALL + 75 AS col0, + 51 col0
----
75
51

query I rowsort
SELECT ALL + - 24 + - 88
----
-112

query I rowsort
SELECT DISTINCT + + 7 * - 83 AS col0
----
-581

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT DISTINCT - 23 - - + CASE + 80 WHEN 55 - - 98 * 70 THEN NULL WHEN 47 * + ( + COUNT( * ) ) THEN 66 END + NULLIF ( + 69, 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-65
SELECT DISTINCT - 23 - - + CASE + 80 WHEN 55 - - 98 * 70 THEN NULL WHEN 47 * + ( + COUNT ( * ) ) THEN 66 END + NULLIF ( + 69, 67 )
----
NULL

query II rowsort
SELECT DISTINCT 53 AS col0, 0
----
53
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-67
SELECT CASE 19 WHEN - CAST( NULL AS SIGNED ) * 85 + + 64 THEN + 28 WHEN 5 THEN ( 68 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-67
SELECT CASE 19 WHEN - CAST ( NULL AS INTEGER ) * 85 + + 64 THEN + 28 WHEN 5 THEN ( 68 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT DISTINCT 10 - + - COUNT( * ) + - 98 + 65 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT 10 - + - COUNT ( * ) + - 98 + 65 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT - + COUNT( DISTINCT CASE - + 94 WHEN + ( + 69 ) THEN NULL ELSE + 64 END ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-69
SELECT - + COUNT ( DISTINCT CASE - + 94 WHEN + ( + 69 ) THEN NULL ELSE + 64 END ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-70
SELECT + 36 * + 74 - 60 DIV - 89 + + 13 AS col2
----
2677

skipif mysql # not compatible
query I rowsort label-70
SELECT + 36 * + 74 - 60 / - 89 + + 13 AS col2
----
2677

query I rowsort
SELECT DISTINCT + 82 - - + 77 + + 17
----
176

query I rowsort
SELECT ALL - 24 * + - 96 AS col2
----
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT - SUM( ALL + NULLIF ( + + 12, 81 * + 89 + 84 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-73
SELECT - SUM ( ALL + NULLIF ( + + 12, 81 * + 89 + 84 ) )
----
-12

query II rowsort
SELECT - - 13 AS col0, + 65
----
13
65

query I rowsort
SELECT ALL COALESCE ( - 43, + 87, + 61 * - 19 )
----
-43

query I rowsort
SELECT DISTINCT - 80 * 54
----
-4320

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

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

query I rowsort
SELECT + 90 + + - 45 * - - 37 AS col2
----
-1575

query I rowsort
SELECT DISTINCT - 16 * 67
----
-1072

query I rowsort
SELECT - 36 * + + 22
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT + NULLIF ( - + 67, + - MIN( ALL 14 ) ) * 45 AS col2
----
-3015

skipif mysql # not compatible
query I rowsort label-81
SELECT + NULLIF ( - + 67, + - MIN ( ALL 14 ) ) * 45 AS col2
----
-3015

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT - SUM( 0 ) + MAX( 45 )
----
45

skipif mysql # not compatible
query I rowsort label-82
SELECT - SUM ( 0 ) + MAX ( 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT - 30 + - COUNT( ALL - + 69 )
----
-31

skipif mysql # not compatible
query I rowsort label-83
SELECT - 30 + - COUNT ( ALL - + 69 )
----
-31

query I rowsort
SELECT + 36 - + 74 AS col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-85
SELECT ALL 0 DIV - MIN( - 47 )
----
0

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL 0 / - MIN ( - 47 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT + NULLIF ( + - 2, - 5 ) + + COUNT( * ) * CASE WHEN NULL >= ( 63 ) THEN + 26 ELSE 40 END col1
----
38

skipif mysql # not compatible
query I rowsort label-86
SELECT + NULLIF ( + - 2, - 5 ) + + COUNT ( * ) * CASE WHEN NULL >= ( 63 ) THEN + 26 ELSE 40 END col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-87
SELECT ALL + 35 DIV 32 + 53 * 81 col1
----
4294

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL + 35 / 32 + 53 * 81 col1
----
4294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-88
SELECT + 76 + 31 - - - COUNT( * ) / + 90 + CAST( NULL AS SIGNED ) / + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-88
SELECT + 76 + 31 - - - COUNT ( * ) / + 90 + CAST ( NULL AS INTEGER ) / + 55
----
NULL

query I rowsort
SELECT ALL 82 * + 33 * - 6 AS col1
----
-16236

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT ( - COALESCE ( 20, - - ( - 67 ) + MIN( ALL 69 ), MIN( + 86 ) ) ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-90
SELECT ( - COALESCE ( 20, - - ( - 67 ) + MIN ( ALL 69 ), MIN ( + 86 ) ) ) AS col0
----
-20

query I rowsort
SELECT DISTINCT 76 * - + 49 AS col2
----
-3724

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-93
SELECT + CASE - 24 WHEN 25 DIV - ( + COUNT( * ) ) + - 9 THEN 53 WHEN CAST( - 48 AS DECIMAL ) THEN NULL ELSE - 59 DIV 62 END * - 31 + - 93
----
-93

skipif mysql # not compatible
query I rowsort label-93
SELECT + CASE - 24 WHEN 25 / - ( + COUNT ( * ) ) + - 9 THEN 53 WHEN CAST ( - 48 AS REAL ) THEN NULL ELSE - 59 / 62 END * - 31 + - 93
----
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-94
SELECT + 16 * 96, - 69 * NULLIF ( + 33, 35 ) DIV 14 AS col1
----
1536
-162

skipif mysql # not compatible
query II rowsort label-94
SELECT + 16 * 96, - 69 * NULLIF ( + 33, 35 ) / 14 AS col1
----
1536
-162

query I rowsort
SELECT + + 24 + - + 93 + + + 68
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-97
SELECT - - NULLIF ( - COALESCE ( NULLIF ( CASE + 51 WHEN + 3 THEN 25 WHEN 23 THEN COALESCE ( MIN( ALL - CAST( 18 AS SIGNED ) ), 42 * 14, COUNT( * ), + 20 * 20 + + 0 ) / 31 + ( 2 ) ELSE COUNT( * ) END, COUNT( 93 ) ), - 78 - - 81 ), 32 * + 31 ) * 91 + CASE + SUM( ALL 7 ) WHEN 82 THEN - 83 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-97
SELECT - - NULLIF ( - COALESCE ( NULLIF ( CASE + 51 WHEN + 3 THEN 25 WHEN 23 THEN COALESCE ( MIN ( ALL - CAST ( 18 AS INTEGER ) ), 42 * 14, COUNT ( * ), + 20 * 20 + + 0 ) / 31 + ( 2 ) ELSE COUNT ( * ) END, COUNT ( 93 ) ), - 78 - - 81 ), 32 * + 31 ) * 91 + CASE + SUM ( ALL 7 ) WHEN 82 THEN - 83 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT DISTINCT + COUNT( * ) * COALESCE ( MIN( + + 43 ), + 43, - COUNT( * ) * 83 ) + + COUNT( * ) - 16 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-98
SELECT DISTINCT + COUNT ( * ) * COALESCE ( MIN ( + + 43 ), + 43, - COUNT ( * ) * 83 ) + + COUNT ( * ) - 16 AS col0
----
28

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

query I rowsort
SELECT + 99 * - 36 AS col2
----
-3564

onlyif mysql # DIV for integer division: 
query I rowsort label-101
SELECT + 8 + - + 6 DIV + 36 * + 51 + + 89 * 79 AS col1
----
7039

skipif mysql # not compatible
query I rowsort label-101
SELECT + 8 + - + 6 / + 36 * + 51 + + 89 * 79 AS col1
----
7039

query I rowsort
SELECT 39 * - 56 - + 87 AS col1
----
-2271

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT - + COUNT( * ) + + 37 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-103
SELECT - + COUNT ( * ) + + 37 AS col1
----
36

query I rowsort
SELECT DISTINCT + 68 * + 54 + - 35 - 57
----
3580

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT ALL + + COUNT( * ) * MAX( + - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-105
SELECT ALL + + COUNT ( * ) * MAX ( + - 38 )
----
-38

query I rowsort
SELECT - - 48 * 56
----
2688

query I rowsort
SELECT DISTINCT 27 * - + 20
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT - 71 + + - NULLIF ( + - 59, - 73 / COUNT( * ) + + 68 ) + - 99 AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-108
SELECT - 71 + + - NULLIF ( + - 59, - 73 / COUNT ( * ) + + 68 ) + - 99 AS col1
----
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-109
SELECT - + COALESCE ( 64, + + 33, - + 18 * 53 ) - + 45 DIV - 10
----
-60

skipif mysql # not compatible
query I rowsort label-109
SELECT - + COALESCE ( 64, + + 33, - + 18 * 53 ) - + 45 / - 10
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT - SUM( + + 77 ) + + 67 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-110
SELECT - SUM ( + + 77 ) + + 67 AS col1
----
-10

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

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

query I rowsort
SELECT ALL + 66 + + + 41 col1
----
107

query I rowsort
SELECT - NULLIF ( + 14, - + 36 ) * + 70 AS col1
----
-980

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-115
SELECT ALL CAST( + - ( + 97 ) AS SIGNED ) col1
----
-97

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL CAST ( + - ( + 97 ) AS INTEGER ) col1
----
-97

query I rowsort
SELECT DISTINCT + 85 + 79 AS col0
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-117
SELECT DISTINCT + 12 + + ( CAST( NULL AS SIGNED ) ) + + 28 + 55 * CASE + COUNT( * ) WHEN + 0 THEN + CASE 24 WHEN - 91 THEN 7 - + COUNT( * ) * - 58 ELSE - 66 END ELSE - 72 * 1 - 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-117
SELECT DISTINCT + 12 + + ( CAST ( NULL AS INTEGER ) ) + + 28 + 55 * CASE + COUNT ( * ) WHEN + 0 THEN + CASE 24 WHEN - 91 THEN 7 - + COUNT ( * ) * - 58 ELSE - 66 END ELSE - 72 * 1 - 69 END
----
NULL

query I rowsort
SELECT DISTINCT 36 + - 31
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-119
SELECT ALL SUM( ALL + CAST( NULL AS SIGNED ) ) + - 17 + - 29 * - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-119
SELECT ALL SUM ( ALL + CAST ( NULL AS INTEGER ) ) + - 17 + - 29 * - 76
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-120
SELECT ALL + 94 * CAST( + NULLIF ( + + 66, - COUNT( * ) ) AS SIGNED ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL + 94 * CAST ( + NULLIF ( + + 66, - COUNT ( * ) ) AS INTEGER ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-121
SELECT ALL CAST( NULL AS SIGNED ), 26 * 60 AS col1
----
NULL
1560

skipif mysql # not compatible
query II rowsort label-121
SELECT ALL CAST ( NULL AS INTEGER ), 26 * 60 AS col1
----
NULL
1560

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-122
SELECT - NULLIF ( 60, CAST( - 71 AS DECIMAL ) * 5 + 19 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-122
SELECT - NULLIF ( 60, CAST ( - 71 AS REAL ) * 5 + 19 ) AS col1
----
-60

query I rowsort
SELECT DISTINCT - 22 + - 35 - + 56
----
-113

query I rowsort
SELECT ALL + 67 + 88 AS col0
----
155

query I rowsort
SELECT 81 * - 80 * + 28 AS col1
----
-181440

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT ALL - 4 + + 45 + - COUNT( * ) - + + NULLIF ( - + COUNT( DISTINCT + 4 ), - COALESCE ( - AVG ( 89 ), + 87 * 76 + 63 ) * 69 + + 94 )
----
41

skipif mysql # not compatible
query I rowsort label-126
SELECT ALL - 4 + + 45 + - COUNT ( * ) - + + NULLIF ( - + COUNT ( DISTINCT + 4 ), - COALESCE ( - AVG ( 89 ), + 87 * 76 + 63 ) * 69 + + 94 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT MIN( 93 ) * + 89 - 79
----
8198

skipif mysql # not compatible
query I rowsort label-127
SELECT MIN ( 93 ) * + 89 - 79
----
8198

onlyif mysql # DIV for integer division: 
query I rowsort label-128
SELECT DISTINCT ( 11 ) DIV - 38
----
0

skipif mysql # not compatible
query I rowsort label-128
SELECT DISTINCT ( 11 ) / - 38
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-129
SELECT ALL + 9 - - NULLIF ( - 0, + 14 * - COUNT( * ) ) + 25 * 98 DIV + ( 10 ) AS col2
----
254

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL + 9 - - NULLIF ( - 0, + 14 * - COUNT ( * ) ) + 25 * 98 / + ( 10 ) AS col2
----
254

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-130
SELECT - 17 DIV 48 DIV - 53, - MAX( + 59 ) * + 40 + 2 col0
----
0
-2358

skipif mysql # not compatible
query II rowsort label-130
SELECT - 17 / 48 / - 53, - MAX ( + 59 ) * + 40 + 2 col0
----
0
-2358

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT - 86 * 17 - NULLIF ( COUNT( * ), + + 61 ) + 11 - - 87 * - COUNT( * )
----
-1539

skipif mysql # not compatible
query I rowsort label-131
SELECT - 86 * 17 - NULLIF ( COUNT ( * ), + + 61 ) + 11 - - 87 * - COUNT ( * )
----
-1539

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT ALL 13 - - SUM( - 55 ) * 63 * 66 col2
----
-228677

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL 13 - - SUM ( - 55 ) * 63 * 66 col2
----
-228677

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

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

query I rowsort
SELECT ALL ( + 81 ) * + 4 * - 81
----
-26244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-135
SELECT COUNT( * ) + - - 89 DIV + ( - 22 )
----
-3

skipif mysql # not compatible
query I rowsort label-135
SELECT COUNT ( * ) + - - 89 / + ( - 22 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT + ( + 97 ) * 19 - + COUNT( * ) + + + COUNT( * ) AS col2
----
1843

skipif mysql # not compatible
query I rowsort label-136
SELECT + ( + 97 ) * 19 - + COUNT ( * ) + + + COUNT ( * ) AS col2
----
1843

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT ALL - 57 * + - NULLIF ( - + 75, - - 91 ) + + 52 + ( - COUNT( * ) )
----
-4224

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL - 57 * + - NULLIF ( - + 75, - - 91 ) + + 52 + ( - COUNT ( * ) )
----
-4224

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT CASE 15 WHEN + 63 THEN + + MIN( - 29 ) WHEN + 22 * + MIN( 53 ) THEN 78 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-138
SELECT CASE 15 WHEN + 63 THEN + + MIN ( - 29 ) WHEN + 22 * + MIN ( 53 ) THEN 78 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-139
SELECT 94 * - 50 + + 10 DIV + 3 + 25 + + COUNT( * )
----
-4671

skipif mysql # not compatible
query I rowsort label-139
SELECT 94 * - 50 + + 10 / + 3 + 25 + + COUNT ( * )
----
-4671

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-140
SELECT DISTINCT - - CAST( - 53 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT - - CAST ( - 53 AS INTEGER )
----
-53

query I rowsort
SELECT + 33 * + 70 AS col2
----
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT ALL - CASE COALESCE ( - + 18, - - ( 36 ) ) WHEN 97 THEN NULL WHEN 48 THEN NULL ELSE MIN( ALL - 75 ) END
----
75

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL - CASE COALESCE ( - + 18, - - ( 36 ) ) WHEN 97 THEN NULL WHEN 48 THEN NULL ELSE MIN ( ALL - 75 ) END
----
75

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

skipif mysql # not compatible
query I rowsort label-143
SELECT DISTINCT - CAST ( + 45 AS INTEGER ) col1
----
-45

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-145
SELECT - COUNT( * ), NULLIF ( - 82, - ( + + MIN( ALL 81 ) ) + 41 * 6 ) AS col1
----
-1
-82

skipif mysql # not compatible
query II rowsort label-145
SELECT - COUNT ( * ), NULLIF ( - 82, - ( + + MIN ( ALL 81 ) ) + 41 * 6 ) AS col1
----
-1
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-146
SELECT MIN( DISTINCT 82 ) + + + 68 + + 79 DIV - COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-146
SELECT MIN ( DISTINCT 82 ) + + + 68 + + 79 / - COUNT ( * ) AS col0
----
71

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

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

query I rowsort
SELECT ALL + 71 + - + NULLIF ( 30, + ( + + CASE 51 WHEN - 92 THEN NULL WHEN 40 THEN + 13 END ) ) * 50 AS col1
----
-1429

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-149
SELECT CAST( ( CASE + + 70 WHEN - + 7 THEN + ( - 35 ) + - ( 28 + - 31 ) * + 12 WHEN 83 THEN NULL END ) AS SIGNED ) + 79 / 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-149
SELECT CAST ( ( CASE + + 70 WHEN - + 7 THEN + ( - 35 ) + - ( 28 + - 31 ) * + 12 WHEN 83 THEN NULL END ) AS INTEGER ) + 79 / 85 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-150
SELECT CASE MIN( ALL + 19 ) WHEN + - 48 THEN - 54 + + + CAST( 2 AS SIGNED ) + - 39 END + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-150
SELECT CASE MIN ( ALL + 19 ) WHEN + - 48 THEN - 54 + + + CAST ( 2 AS INTEGER ) + - 39 END + 99 AS col1
----
NULL

query I rowsort
SELECT ALL + 98 + + 10 - + 79
----
29

query II rowsort
SELECT - 4 AS col2, COALESCE ( 91, - + ( - 11 ) ) AS col2
----
-4
91

query I rowsort
SELECT 91 - 10
----
81

query I rowsort
SELECT ALL 65 * 82 AS col0
----
5330

query I rowsort
SELECT DISTINCT 24 + + + 51 + - 96 * - 37 + + 51
----
3678

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

skipif mysql # not compatible
query I rowsort label-156
SELECT ALL - COUNT ( * ) / COUNT ( ALL + 44 ) AS col2
----
-1

query I rowsort
SELECT 81 + - + 45 * - COALESCE ( + 33, 71 )
----
1566

query I rowsort
SELECT 17 * + 29
----
493

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

skipif mysql # not compatible
query I rowsort label-159
SELECT 91 + + - COUNT ( * ) AS col0
----
90

query I rowsort
SELECT 26 * 24 * - 17 AS col1
----
-10608

query I rowsort
SELECT 0 + - - 97 col2
----
97

query I rowsort
SELECT 36 - - 71 AS col2
----
107

query I rowsort
SELECT 16 * - 10 AS col0
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT ALL - COUNT( ALL 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-164
SELECT ALL - COUNT ( ALL 10 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-165
SELECT 37 DIV 70 + + 92 + + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-165
SELECT 37 / 70 + + 92 + + COUNT ( * )
----
93

query I rowsort
SELECT - 14 + - 25 + - 15
----
-54

query I rowsort
SELECT + 23 * + 69 * - 31
----
-49197

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-169
SELECT + - ( - + NULLIF ( + + COALESCE ( + COUNT( * ), - 62 ), - - CAST( NULL AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-169
SELECT + - ( - + NULLIF ( + + COALESCE ( + COUNT ( * ), - 62 ), - - CAST ( NULL AS INTEGER ) ) )
----
1

query II rowsort
SELECT + 99 AS col1, + 94
----
99
94

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT 8 * + ( - - COUNT( * ) ) * 81 + 95 * 83 - 89 AS col2
----
8444

skipif mysql # not compatible
query I rowsort label-171
SELECT 8 * + ( - - COUNT ( * ) ) * 81 + 95 * 83 - 89 AS col2
----
8444

onlyif mysql # aggregate syntax: 
query II rowsort label-172
SELECT 71, + 78 + + - COUNT( * ) AS col2
----
71
77

skipif mysql # not compatible
query II rowsort label-172
SELECT 71, + 78 + + - COUNT ( * ) AS col2
----
71
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-173
SELECT COUNT( * ) DIV + 68 + 14 + + 58
----
72

skipif mysql # not compatible
query I rowsort label-173
SELECT COUNT ( * ) / + 68 + 14 + + 58
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-174
SELECT - CAST( NULL AS SIGNED ) / 49 + - 27 + CASE WHEN NOT 32 BETWEEN - 37 + - 51 AND - ( + 3 ) / COUNT( * ) THEN NULL WHEN 80 + MAX( + ( 47 ) ) >= + 28 * 8 THEN + 29 + 81 ELSE NULL END - - 25 * + 34 * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-174
SELECT - CAST ( NULL AS INTEGER ) / 49 + - 27 + CASE WHEN NOT 32 BETWEEN - 37 + - 51 AND - ( + 3 ) / COUNT ( * ) THEN NULL WHEN 80 + MAX ( + ( 47 ) ) >= + 28 * 8 THEN + 29 + 81 ELSE NULL END - - 25 * + 34 * + COUNT ( * ) col0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-176
SELECT AVG ( + + CAST( NULL AS SIGNED ) ) * + ( 11 ), 0 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-176
SELECT AVG ( + + CAST ( NULL AS INTEGER ) ) * + ( 11 ), 0 AS col1
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-177
SELECT 19 DIV + 87 * + 62
----
0

skipif mysql # not compatible
query I rowsort label-177
SELECT 19 / + 87 * + 62
----
0

query II rowsort
SELECT ALL - 62 AS col0, - 35 AS col0
----
-62
-35

query II rowsort
SELECT ALL - 52 AS col1, 41 - - 27 AS col0
----
-52
68

query I rowsort
SELECT + - 81 * 7 + - 42
----
-609

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-181
SELECT 65 * + 35 + - - 88 + - ( - 5 ) + + - COUNT( * ) DIV + 37 * + 69 AS col2
----
2368

skipif mysql # not compatible
query I rowsort label-181
SELECT 65 * + 35 + - - 88 + - ( - 5 ) + + - COUNT ( * ) / + 37 * + 69 AS col2
----
2368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-182
SELECT ALL - 1 + - + 49 + + - 97 DIV + 94 + - 63 + - COUNT( * ) AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL - 1 + - + 49 + + - 97 / + 94 + - 63 + - COUNT ( * ) AS col1
----
-115

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

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

query I rowsort
SELECT + ( - + CASE WHEN NOT 31 BETWEEN - 60 AND 89 THEN 99 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-185
SELECT DISTINCT 60 + - CAST( + COUNT( * ) AS SIGNED ) + - + 43 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT 60 + - CAST ( + COUNT ( * ) AS INTEGER ) + - + 43 AS col1
----
16

query II rowsort
SELECT DISTINCT 30 * + 52 AS col2, 17
----
1560
17

query I rowsort
SELECT DISTINCT 24 + 50 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT ALL SUM( + - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL SUM ( + - 34 )
----
-34

query I rowsort
SELECT - CASE + + 63 WHEN 93 * + ( - 61 ) THEN - 83 ELSE NULL END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL 59 + + 78 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT + 41 DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-191
SELECT + 41 / 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT DISTINCT 53 * COUNT( * ) * - ( + 71 ) * COUNT( * ) * + 99 + + - 9
----
-372546

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT 53 * COUNT ( * ) * - ( + 71 ) * COUNT ( * ) * + 99 + + - 9
----
-372546

query I rowsort
SELECT - 23 + + - 94
----
-117

onlyif mysql # aggregate syntax: 
query II rowsort label-194
SELECT DISTINCT SUM( - 99 ), 15 AS col2
----
-99
15

skipif mysql # not compatible
query II rowsort label-194
SELECT DISTINCT SUM ( - 99 ), 15 AS col2
----
-99
15

query I rowsort
SELECT ALL - 4 - ( - + 73 )
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-196
SELECT + 11 DIV - - 6 col1, + 5 AS col0
----
1
5

skipif mysql # not compatible
query II rowsort label-196
SELECT + 11 / - - 6 col1, + 5 AS col0
----
1
5

query II rowsort
SELECT DISTINCT 17 * ( + - 6 ) AS col2, + 67 - + + 12 AS col1
----
-102
55

query II rowsort
SELECT - 87 * 92 * + 63 AS col2, - 25 AS col1
----
-504252
-25

query I rowsort
SELECT DISTINCT ( - 13 ) * - 19 AS col1
----
247

query I rowsort
SELECT + - 1 - - 6 AS col0
----
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-202
SELECT - + 38 * + CAST( 46 AS SIGNED )
----
-1748

skipif mysql # not compatible
query I rowsort label-202
SELECT - + 38 * + CAST ( 46 AS INTEGER )
----
-1748

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT + 14 * - 84 - - COUNT( * ) + - + 65 * 57
----
-4880

skipif mysql # not compatible
query I rowsort label-203
SELECT + 14 * - 84 - - COUNT ( * ) + - + 65 * 57
----
-4880

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

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

query II rowsort
SELECT DISTINCT - 8 * - + 47 AS col0, 62
----
376
62

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT - + 86 - - NULLIF ( 66, CASE - 16 WHEN + 86 THEN + + 39 + - COUNT( * ) ELSE COUNT( * ) END * - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-206
SELECT - + 86 - - NULLIF ( 66, CASE - 16 WHEN + 86 THEN + + 39 + - COUNT ( * ) ELSE COUNT ( * ) END * - 20 )
----
-20

query I rowsort
SELECT ALL - 75 * 57 + + 96 AS col0
----
-4179

query II rowsort
SELECT - - 69 * 69, - 11 AS col1
----
4761
-11

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

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

query I rowsort
SELECT - 90 * - 70 AS col1
----
6300

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

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

query I rowsort
SELECT ALL 65 * - 38 + + + 85 AS col1
----
-2385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-213
SELECT COALESCE ( - - CAST( NULL AS SIGNED ), + 17 * + + 84, - 76 )
----
1428

skipif mysql # not compatible
query I rowsort label-213
SELECT COALESCE ( - - CAST ( NULL AS INTEGER ), + 17 * + + 84, - 76 )
----
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT DISTINCT 28 * + 41 + - COUNT( * ) AS col1
----
1147

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT 28 * + 41 + - COUNT ( * ) AS col1
----
1147

query I rowsort
SELECT - CASE - - 26 WHEN - 9 THEN NULL ELSE - 9 END * + 22 AS col0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT MIN( + 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-216
SELECT MIN ( + 51 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT ALL COUNT( * ) * - - 13 - - 63 * 2
----
139

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL COUNT ( * ) * - - 13 - - 63 * 2
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT ALL COUNT( * ) * COALESCE ( + COUNT( * ), - 55 ) * + - 81 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL COUNT ( * ) * COALESCE ( + COUNT ( * ), - 55 ) * + - 81 AS col1
----
-81

query II rowsort
SELECT - ( ( + 74 ) ) AS col2, COALESCE ( + - 52, - 15 ) AS col0
----
-74
-52

query I rowsort
SELECT ALL 12 * + 49 AS col1
----
588

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

query I rowsort
SELECT ALL 29 - + - 75 + + 75 AS col1
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT + 94 + - COUNT( * ) + - MAX( DISTINCT 85 )
----
8

skipif mysql # not compatible
query I rowsort label-223
SELECT + 94 + - COUNT ( * ) + - MAX ( DISTINCT 85 )
----
8

query I rowsort
SELECT - CASE - + 41 WHEN - 85 THEN - 34 + - 43 WHEN 56 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + 70 * - - 92
----
6440

query I rowsort
SELECT ALL 76 * ( + 1 ) AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-227
SELECT + AVG ( ALL - 20 ) + + COUNT( * ) + 6 + - COUNT( + + 79 ) + - ( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-227
SELECT + AVG ( ALL - 20 ) + + COUNT ( * ) + 6 + - COUNT ( + + 79 ) + - ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

query II rowsort
SELECT ALL 81 col0, + 69 * + 69
----
81
4761

query I rowsort
SELECT + 40 + - + 67 + + - 0 * + + 64 AS col1
----
-27

query I rowsort
SELECT + 51 + 13
----
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-231
SELECT + 57 DIV NULLIF ( - + 93, + AVG ( ALL + CAST( - 8 AS SIGNED ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-231
SELECT + 57 / NULLIF ( - + 93, + AVG ( ALL + CAST ( - 8 AS INTEGER ) ) ) AS col2
----
0

query II rowsort
SELECT ALL 39 AS col2, - NULLIF ( ( - 44 ), + - 34 ) AS col0
----
39
44

onlyif mysql # aggregate syntax: 
query II rowsort label-233
SELECT ALL COUNT( DISTINCT 70 ) * + 63 AS col0, 43 AS col2
----
63
43

skipif mysql # not compatible
query II rowsort label-233
SELECT ALL COUNT ( DISTINCT 70 ) * + 63 AS col0, 43 AS col2
----
63
43

onlyif mysql # DIV for integer division: 
query I rowsort label-234
SELECT + 63 + + 55 DIV - 55
----
62

skipif mysql # not compatible
query I rowsort label-234
SELECT + 63 + + 55 / - 55
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-235
SELECT ALL - 70 * - - SUM( DISTINCT 10 ) col0, SUM( - + 88 ) AS col0
----
-700
-88

skipif mysql # not compatible
query II rowsort label-235
SELECT ALL - 70 * - - SUM ( DISTINCT 10 ) col0, SUM ( - + 88 ) AS col0
----
-700
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-236
SELECT + - 64 DIV + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-236
SELECT + - 64 / + 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT ALL - NULLIF ( MIN( DISTINCT - 28 ), - 46 + + + COUNT( * ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL - NULLIF ( MIN ( DISTINCT - 28 ), - 46 + + + COUNT ( * ) ) AS col0
----
28

query I rowsort
SELECT - + ( + 31 ) AS col2
----
-31

query I rowsort
SELECT DISTINCT - 79 + - - 83
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-240
SELECT DISTINCT - + 64 / + 38 / - ( - CAST( NULL AS SIGNED ) ) + + - 54 * + COUNT( * ) + + + MIN( ALL + CAST( - 0 AS SIGNED ) ) + 67 * - 68 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT - + 64 / + 38 / - ( - CAST ( NULL AS INTEGER ) ) + + - 54 * + COUNT ( * ) + + + MIN ( ALL + CAST ( - 0 AS INTEGER ) ) + 67 * - 68 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-241
SELECT - + 40 + 7 + - CASE - - 6 WHEN ( + 82 ) * + + 28 * - + CAST( NULL AS SIGNED ) * - 78 THEN NULL WHEN - 77 / COUNT( * ) THEN COUNT( * ) END * - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-241
SELECT - + 40 + 7 + - CASE - - 6 WHEN ( + 82 ) * + + 28 * - + CAST ( NULL AS INTEGER ) * - 78 THEN NULL WHEN - 77 / COUNT ( * ) THEN COUNT ( * ) END * - 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-242
SELECT ALL + COUNT( DISTINCT - 28 ) DIV + - 97 + - + 40
----
-40

skipif mysql # not compatible
query I rowsort label-242
SELECT ALL + COUNT ( DISTINCT - 28 ) / + - 97 + - + 40
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-243
SELECT + 19 AS col2, COUNT( * ) DIV + COUNT( * )
----
19
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT + - 29 * - 50 + - MIN( 34 ) AS col0
----
1416

skipif mysql # not compatible
query I rowsort label-244
SELECT + - 29 * - 50 + - MIN ( 34 ) AS col0
----
1416

onlyif mysql # DIV for integer division: 
query I rowsort label-245
SELECT ALL - 65 DIV 23 * - - 35 * - 58 + + - 82 AS col2
----
3978

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL - 65 / 23 * - - 35 * - 58 + + - 82 AS col2
----
3978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-246
SELECT DISTINCT 66 / 95 + + 74 * + + 13 * - 71 / CAST( NULL AS SIGNED ) AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-246
SELECT DISTINCT 66 / 95 + + 74 * + + 13 * - 71 / CAST ( NULL AS INTEGER ) AS col2, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT - CASE COUNT( * ) WHEN - - ( + + 77 ) + + 73 + 77 / + ( 3 ) THEN 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-247
SELECT - CASE COUNT ( * ) WHEN - - ( + + 77 ) + + 73 + 77 / + ( 3 ) THEN 41 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-248
SELECT ALL + CAST( - - CASE MIN( DISTINCT - 28 ) WHEN + 44 THEN + + 47 WHEN 80 THEN CAST( NULL AS SIGNED ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL + CAST ( - - CASE MIN ( DISTINCT - 28 ) WHEN + 44 THEN + + 47 WHEN 80 THEN CAST ( NULL AS INTEGER ) END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT - COUNT( * ) * 96 + + SUM( ( - 52 ) ) + + 50 * + 33
----
1502

skipif mysql # not compatible
query I rowsort label-249
SELECT - COUNT ( * ) * 96 + + SUM ( ( - 52 ) ) + + 50 * + 33
----
1502

query I rowsort
SELECT 4 * 7 AS col2
----
28

query I rowsort
SELECT ALL - 49 * + + 98 AS col2
----
-4802

query I rowsort
SELECT CASE - 17 WHEN - 49 THEN - 42 END * 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT DISTINCT - COUNT( 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-253
SELECT DISTINCT - COUNT ( 96 )
----
-1

query I rowsort
SELECT 30 * 60 * - 13 AS col1
----
-23400

query I rowsort
SELECT DISTINCT - CASE + + 87 WHEN + 20 THEN - 65 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 32 * + 5 * 71 * + - ( 48 ) AS col2
----
-545280

onlyif mysql # DIV for integer division: 
query II rowsort label-257
SELECT ALL ( - 6 ) DIV + + 34 + + 81 AS col0, + 67 * - 91 + + 95 AS col2
----
81
-6002

skipif mysql # not compatible
query II rowsort label-257
SELECT ALL ( - 6 ) / + + 34 + + 81 AS col0, + 67 * - 91 + + 95 AS col2
----
81
-6002

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT 29 * + 67 * + + NULLIF ( - ( - COALESCE ( - 85, - COUNT( * ) + + 4 + + 62 ) ), - CASE COUNT( * ) WHEN - 21 THEN - 27 * 39 + + COALESCE ( 25, - 70 ) ELSE NULL END ) AS col2
----
-165155

skipif mysql # not compatible
query I rowsort label-258
SELECT 29 * + 67 * + + NULLIF ( - ( - COALESCE ( - 85, - COUNT ( * ) + + 4 + + 62 ) ), - CASE COUNT ( * ) WHEN - 21 THEN - 27 * 39 + + COALESCE ( 25, - 70 ) ELSE NULL END ) AS col2
----
-165155

query I rowsort
SELECT ALL 76 * 59
----
4484

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-260
SELECT 10 DIV COUNT( 53 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-260
SELECT 10 / COUNT ( 53 ) AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-261
SELECT ALL - 14 + - + 84 * - 6 - + 81 + COUNT( 13 ) DIV - 16 * - + 92 * - - 78 * ( 11 * - 45 ) + 17 * + 20 AS col0
----
749

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL - 14 + - + 84 * - 6 - + 81 + COUNT ( 13 ) / - 16 * - + 92 * - - 78 * ( 11 * - 45 ) + 17 * + 20 AS col0
----
749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-262
SELECT - 8 / + 67 + - + 9 * - AVG ( DISTINCT - + 2 ) * - 52 / + 39 + + - 17 * - CAST( NULL AS SIGNED ) * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-262
SELECT - 8 / + 67 + - + 9 * - AVG ( DISTINCT - + 2 ) * - 52 / + 39 + + - 17 * - CAST ( NULL AS INTEGER ) * 54
----
NULL

query II rowsort
SELECT DISTINCT 82 + - + 34 * + COALESCE ( 97, 76 ) AS col1, + 61 AS col2
----
-3216
61

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

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

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

query I rowsort
SELECT ALL + 49 + + 14 AS col1
----
63

query I rowsort
SELECT - 41 + 73
----
32

query I rowsort
SELECT ALL 94 + 12 AS col0
----
106

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

skipif mysql # not compatible
query I rowsort label-269
SELECT COUNT ( * ) / - - 58 + + - 40
----
-40

query I rowsort
SELECT DISTINCT + 64 * 56 * - - 21
----
75264

query I rowsort
SELECT + ( 17 ) + - 10 - + ( 7 )
----
0

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

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL + 53 - + COUNT ( * ) / + 5
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT ALL - 73 - + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL - 73 - + COUNT ( * )
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-274
SELECT 68 * + + CAST( NULL AS SIGNED ) * + ( - 95 ) - - - 10 + 3 * SUM( - ( + - 32 ) ) + + 99 * 57 * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-274
SELECT 68 * + + CAST ( NULL AS INTEGER ) * + ( - 95 ) - - - 10 + 3 * SUM ( - ( + - 32 ) ) + + 99 * 57 * 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT - 13 * - - COUNT( * ) * + + NULLIF ( + + 26, + - COUNT( * ) * - 4 + + - 63 - - CASE + - COUNT( * ) WHEN + + 86 THEN NULLIF ( 58, 66 * 47 ) END * 39 ) * + 96 - + ( 6 )
----
-32454

skipif mysql # not compatible
query I rowsort label-275
SELECT - 13 * - - COUNT ( * ) * + + NULLIF ( + + 26, + - COUNT ( * ) * - 4 + + - 63 - - CASE + - COUNT ( * ) WHEN + + 86 THEN NULLIF ( 58, 66 * 47 ) END * 39 ) * + 96 - + ( 6 )
----
-32454

query I rowsort
SELECT ( + - 2 ) * - CASE - 31 WHEN - 63 THEN + + 61 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-277
SELECT DISTINCT ( 81 ) DIV - - 37
----
2

skipif mysql # not compatible
query I rowsort label-277
SELECT DISTINCT ( 81 ) / - - 37
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-278
SELECT 30 DIV - ( 97 )
----
0

skipif mysql # not compatible
query I rowsort label-278
SELECT 30 / - ( 97 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT ALL - COUNT( - 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL - COUNT ( - 8 )
----
-1

query I rowsort
SELECT DISTINCT + 0 * + + 64
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-281
SELECT DISTINCT + COUNT( ALL 61 ) * - 22 AS col0, + CAST( NULL AS DECIMAL )
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-281
SELECT DISTINCT + COUNT ( ALL 61 ) * - 22 AS col0, + CAST ( NULL AS REAL )
----
-22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT ALL - MIN( - ( + + NULLIF ( + 16, + 60 ) ) ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL - MIN ( - ( + + NULLIF ( + 16, + 60 ) ) ) AS col2
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-283
SELECT DISTINCT + ( + + COUNT( * ) ) * - 84 DIV 16 * COUNT( * ) + - 45 - + 25 * - COUNT( * ) + + 17 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT + ( + + COUNT ( * ) ) * - 84 / 16 * COUNT ( * ) + - 45 - + 25 * - COUNT ( * ) + + 17 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT ALL - COUNT( * ) + - 3 - - + 44
----
40

skipif mysql # not compatible
query I rowsort label-284
SELECT ALL - COUNT ( * ) + - 3 - - + 44
----
40

query I rowsort
SELECT 25 + + 79 AS col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT MAX( + - 75 ) - + 90
----
-165

skipif mysql # not compatible
query I rowsort label-286
SELECT MAX ( + - 75 ) - + 90
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT 35 + - MAX( DISTINCT + - 67 ) AS col2
----
102

skipif mysql # not compatible
query I rowsort label-287
SELECT 35 + - MAX ( DISTINCT + - 67 ) AS col2
----
102

query I rowsort
SELECT ALL - 10 + + 98
----
88

query II rowsort
SELECT ( - + 95 ) + 29, + CASE - 47 WHEN + 0 THEN + + 33 ELSE NULL END AS col2
----
-66
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-290
SELECT DISTINCT - - 49 + ( - + 9 ), - NULLIF ( + 16, - CAST( + + 6 AS SIGNED ) ) AS col2
----
40
-16

skipif mysql # not compatible
query II rowsort label-290
SELECT DISTINCT - - 49 + ( - + 9 ), - NULLIF ( + 16, - CAST ( + + 6 AS INTEGER ) ) AS col2
----
40
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-291
SELECT + NULLIF ( - 82, ( - 61 ) / - 83 - - CAST( - 61 AS SIGNED ) * - - 89 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-291
SELECT + NULLIF ( - 82, ( - 61 ) / - 83 - - CAST ( - 61 AS INTEGER ) * - - 89 ) AS col2
----
-82

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

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

query I rowsort
SELECT 73 * + 79
----
5767

query II rowsort
SELECT - 36 AS col1, 57 * - 50 + - 79 AS col2
----
-36
-2929

onlyif mysql # aggregate syntax: 
query II rowsort label-295
SELECT ALL + + 24 + - COUNT( - 36 ) AS col2, 95 + - COUNT( 97 ) + - + 29
----
23
65

skipif mysql # not compatible
query II rowsort label-295
SELECT ALL + + 24 + - COUNT ( - 36 ) AS col2, 95 + - COUNT ( 97 ) + - + 29
----
23
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT COUNT( * ) + - 61 col1
----
-60

skipif mysql # not compatible
query I rowsort label-297
SELECT COUNT ( * ) + - 61 col1
----
-60

query I rowsort
SELECT ALL - NULLIF ( - 99, 46 * + 64 + + 29 ) * - 89 - + + 74 AS col2
----
-8885

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-299
SELECT + COALESCE ( - 85, - 19 * + - 37 + - - 21 + - + SUM( ALL COALESCE ( + 0, + 63 - + ( + 67 ), - 95 DIV 70 ) ) ) + 62 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-299
SELECT + COALESCE ( - 85, - 19 * + - 37 + - - 21 + - + SUM ( ALL COALESCE ( + 0, + 63 - + ( + 67 ), - 95 / 70 ) ) ) + 62 AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-300
SELECT DISTINCT + 24 - COUNT( * ) DIV + - 43 * + 98 - + CAST( 9 AS SIGNED ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-300
SELECT DISTINCT + 24 - COUNT ( * ) / + - 43 * + 98 - + CAST ( 9 AS INTEGER ) AS col1
----
15

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-302
SELECT - CAST( NULL AS DECIMAL ) * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-302
SELECT - CAST ( NULL AS REAL ) * + 57
----
NULL

query I rowsort
SELECT + 31 * 76
----
2356

onlyif mysql # aggregate syntax: 
query II rowsort label-304
SELECT + COUNT( * ) * - - 14 + 47 * 45 AS col2, - MAX( + 53 ) col1
----
2129
-53

skipif mysql # not compatible
query II rowsort label-304
SELECT + COUNT ( * ) * - - 14 + 47 * 45 AS col2, - MAX ( + 53 ) col1
----
2129
-53

query I rowsort
SELECT + NULLIF ( 66, + + AVG ( + ( + 54 ) ) * 8 - + ( - - 52 ) ) AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-306
SELECT ALL 6 * - 91, - 84 + 82 + + CAST( + 99 AS SIGNED ) AS col0
----
-546
97

skipif mysql # not compatible
query II rowsort label-306
SELECT ALL 6 * - 91, - 84 + 82 + + CAST ( + 99 AS INTEGER ) AS col0
----
-546
97

query I rowsort
SELECT - ( 51 ) * - + 52 + - 78 - 46 AS col2
----
2528

query I rowsort
SELECT + NULLIF ( - 33, - COALESCE ( + + 2, - + 87 ) ) col1
----
-33

query I rowsort
SELECT ALL 53 * - - 78 AS col2
----
4134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-310
SELECT DISTINCT - 90 * - COUNT( * ) DIV + COUNT( * ) + - + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-310
SELECT DISTINCT - 90 * - COUNT ( * ) / + COUNT ( * ) + - + COUNT ( * )
----
89

query I rowsort
SELECT ALL - 57 * 24 + + 86 + - 52 + + - 33 AS col1
----
-1367

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT ALL - SUM( + 79 ) * - COUNT( * ) + + 95 * COUNT( * ) * 4 AS col2
----
459

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL - SUM ( + 79 ) * - COUNT ( * ) + + 95 * COUNT ( * ) * 4 AS col2
----
459

query I rowsort
SELECT - 34 + + 99 + 77 AS col1
----
142

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

skipif mysql # not compatible
query I rowsort label-314
SELECT DISTINCT 40 / 85
----
0

query I rowsort
SELECT + 5 * - + 54
----
-270

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

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

query I rowsort
SELECT DISTINCT + 69 + + 45 AS col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT ALL - 15 + COUNT( * ) + + 91
----
77

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL - 15 + COUNT ( * ) + + 91
----
77

query II rowsort
SELECT - ( + 34 ) AS col1, + 2 + - 85 * 49 * + + 39 AS col2
----
-34
-162433

query I rowsort
SELECT ALL + + 76 + 21 * - 15
----
-239

query I rowsort
SELECT - - 2 * + - 28
----
-56

query II rowsort
SELECT - 19, - 56 AS col0
----
-19
-56

query II rowsort
SELECT DISTINCT + 82, 68 col1
----
82
68

query I rowsort
SELECT ALL + 47 + + 10
----
57

query I rowsort
SELECT + 18 - + - 67
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-326
SELECT - 87 AS col2, 15 - - COUNT( * )
----
-87
16

skipif mysql # not compatible
query II rowsort label-326
SELECT - 87 AS col2, 15 - - COUNT ( * )
----
-87
16

onlyif mysql # DIV for integer division: 
query II rowsort label-327
SELECT ALL 98, + 27 DIV - + 18 AS col1
----
98
-1

skipif mysql # not compatible
query II rowsort label-327
SELECT ALL 98, + 27 / - + 18 AS col1
----
98
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-329
SELECT ALL - 31 DIV + 23 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL - 31 / + 23 AS col1
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-331
SELECT DISTINCT - COALESCE ( - 35, - 30 ) / COUNT( * ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-331
SELECT DISTINCT - COALESCE ( - 35, - 30 ) / COUNT ( * ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-332
SELECT ALL - - COALESCE ( - - 2, - 21 + - - 44 * - 25 * + ( + - 60 ) ) / 75 * + - 28 / - CASE - + COUNT( * ) WHEN - 17 THEN NULL ELSE ( CAST( NULL AS SIGNED ) ) + + CAST( 91 AS SIGNED ) END * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL - - COALESCE ( - - 2, - 21 + - - 44 * - 25 * + ( + - 60 ) ) / 75 * + - 28 / - CASE - + COUNT ( * ) WHEN - 17 THEN NULL ELSE ( CAST ( NULL AS INTEGER ) ) + + CAST ( 91 AS INTEGER ) END * 1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-333
SELECT - 17 DIV - MIN( ALL 56 ) * + 54 + + - 71 * + - 87 col1
----
6177

skipif mysql # not compatible
query I rowsort label-333
SELECT - 17 / - MIN ( ALL 56 ) * + 54 + + - 71 * + - 87 col1
----
6177

query I rowsort
SELECT - 61 + - 67 AS col0
----
-128

query I rowsort
SELECT ALL + 18 * 63 AS col2
----
1134

query I rowsort
SELECT - 19 * - - 52 * - 86 AS col2
----
84968

onlyif mysql # DIV for integer division: 
query I rowsort label-337
SELECT 27 DIV 32 + - + 35 * + 36 AS col0
----
-1260

skipif mysql # not compatible
query I rowsort label-337
SELECT 27 / 32 + - + 35 * + 36 AS col0
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT ALL - MAX( ALL 60 ) * + 68 + - - 13
----
-4067

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL - MAX ( ALL 60 ) * + 68 + - - 13
----
-4067

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-339
SELECT DISTINCT - COUNT( * ) DIV - - COUNT( * ) + 12 * + 65 * - COUNT( * ) * - - COUNT( ALL + 10 ) - - 35 AS col1
----
-746

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT - COUNT ( * ) / - - COUNT ( * ) + 12 * + 65 * - COUNT ( * ) * - - COUNT ( ALL + 10 ) - - 35 AS col1
----
-746

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-340
SELECT DISTINCT - 46 DIV + 28 + COUNT( * ) + 20 * 72 DIV 50
----
28

skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT - 46 / + 28 + COUNT ( * ) + 20 * 72 / 50
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT ALL - 29 * - MAX( DISTINCT 28 ) + + 32 * - 40
----
-468

skipif mysql # not compatible
query I rowsort label-341
SELECT ALL - 29 * - MAX ( DISTINCT 28 ) + + 32 * - 40
----
-468

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-344
SELECT + 5 DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-344
SELECT + 5 / - 91
----
0

query I rowsort
SELECT ALL + 52 * + ( - + 51 ) + + 1 + + 38 + + + 41
----
-2572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-346
SELECT CASE - 12 WHEN - NULLIF ( - CAST( + ( - + 4 ) AS SIGNED ), - 61 - - + ( + MIN( ALL 20 ) ) ) * - - 84 * - - 84 * 40 THEN + 16 WHEN ( 2 ) THEN + 72 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-346
SELECT CASE - 12 WHEN - NULLIF ( - CAST ( + ( - + 4 ) AS INTEGER ), - 61 - - + ( + MIN ( ALL 20 ) ) ) * - - 84 * - - 84 * 40 THEN + 16 WHEN ( 2 ) THEN + 72 END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-347
SELECT + 75 / + 1
----
75

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

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

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

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

query I rowsort
SELECT + - 87 * + 47
----
-4089

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT + 36 * + + COUNT( * ) + - 67
----
-31

skipif mysql # not compatible
query I rowsort label-351
SELECT + 36 * + + COUNT ( * ) + - 67
----
-31

query I rowsort
SELECT + 16 + - 37 * 51 AS col0
----
-1871

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT + COUNT( * ) + + - ( + 63 )
----
-62

skipif mysql # not compatible
query I rowsort label-353
SELECT + COUNT ( * ) + + - ( + 63 )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-354
SELECT + - COUNT( * ) / CAST( NULL AS SIGNED ) * + 57
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT + COUNT( * ) + + - 51 * 83 * + 0
----
1

skipif mysql # not compatible
query I rowsort label-355
SELECT + COUNT ( * ) + + - 51 * 83 * + 0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT ALL - COUNT( 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL - COUNT ( 35 )
----
-1

query I rowsort
SELECT + + 30 + + + 35
----
65

query I rowsort
SELECT 71 + + + 95 + + 27 * + 17
----
625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-359
SELECT ALL - + 81 * CAST( NULL AS SIGNED ) + + ( + - 71 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL - + 81 * CAST ( NULL AS INTEGER ) + + ( + - 71 ) AS col0
----
NULL

query I rowsort
SELECT + 79 + + 9 * + - 89 AS col2
----
-722

query I rowsort
SELECT ALL COALESCE ( + 64, 5 ) * - - ( + + COALESCE ( - 96, - - 63 + + - 70 ) ) AS col1
----
-6144

query I rowsort
SELECT - 19 * + ( 98 )
----
-1862

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

query II rowsort
SELECT - 93 + + - 10 AS col1, + 87 * 94 - 87 AS col2
----
-103
8091

query I rowsort
SELECT DISTINCT - 42 * + 3 - - 6 * + 31 AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-366
SELECT 9 + + 17 + - 21 DIV + 63 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-366
SELECT 9 + + 17 + - 21 / + 63 AS col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-367
SELECT 40 + - - COUNT( - 41 ) col0, - 7 AS col1
----
41
-7

skipif mysql # not compatible
query II rowsort label-367
SELECT 40 + - - COUNT ( - 41 ) col0, - 7 AS col1
----
41
-7

query I rowsort
SELECT 27 * - ( 20 ) + 85
----
-455

query I rowsort
SELECT DISTINCT - 92 + - 16
----
-108

query I rowsort
SELECT 13 * - 54 * - ( + - 7 ) AS col0
----
-4914

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

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT ALL + 59 + + 41 - + 5 * + 84 * + - 73 + - 75 + + 56 - - MAX( + 79 ) AS col1
----
30820

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL + 59 + + 41 - + 5 * + 84 * + - 73 + - 75 + + 56 - - MAX ( + 79 ) AS col1
----
30820

query II rowsort
SELECT ALL - 90, + 32 AS col0
----
-90
32

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT COUNT( ALL + 8 ) * 89 - - + 68
----
157

skipif mysql # not compatible
query I rowsort label-374
SELECT COUNT ( ALL + 8 ) * 89 - - + 68
----
157

query II rowsort
SELECT 19 AS col2, - 50 AS col0
----
19
-50

query I rowsort
SELECT DISTINCT + 15 + 36 AS col0
----
51

query I rowsort
SELECT DISTINCT + 42 * - 55
----
-2310

query I rowsort
SELECT DISTINCT - 70 * - + 91 col1
----
6370

query I rowsort
SELECT 64 * 38 col2
----
2432

onlyif mysql # aggregate syntax: 
query II rowsort label-380
SELECT MAX( DISTINCT + + 49 ) * 82 * - 21 - - 64 + + - 3 * - - ( + 5 ), + 85 AS col2
----
-84329
85

skipif mysql # not compatible
query II rowsort label-380
SELECT MAX ( DISTINCT + + 49 ) * 82 * - 21 - - 64 + + - 3 * - - ( + 5 ), + 85 AS col2
----
-84329
85

query I rowsort
SELECT ALL - 52 - 95
----
-147

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

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

query I rowsort
SELECT + CASE 63 WHEN - 30 + - 51 THEN + ( - COALESCE ( - + 24, 11 ) ) * - 98 - - ( - - 61 ) WHEN - 92 THEN NULL END AS col0
----
NULL

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

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

query II rowsort
SELECT + 22 AS col0, - 63
----
22
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-386
SELECT DISTINCT - COUNT( * ) AS col0, 75 * - 33 * + 25 + - 59 DIV + ( + 46 ) * - - COUNT( * ) + - - COUNT( * ) AS col1
----
-1
-61875

skipif mysql # not compatible
query II rowsort label-386
SELECT DISTINCT - COUNT ( * ) AS col0, 75 * - 33 * + 25 + - 59 / + ( + 46 ) * - - COUNT ( * ) + - - COUNT ( * ) AS col1
----
-1
-61875

query I rowsort
SELECT 86 * - 84 AS col1
----
-7224

query I rowsort
SELECT ALL 33 * - 86
----
-2838

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

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

query II rowsort
SELECT - 61 AS col1, - 62 AS col0
----
-61
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT + 16 - + COUNT( * ) + 81 + 42
----
138

skipif mysql # not compatible
query I rowsort label-391
SELECT + 16 - + COUNT ( * ) + 81 + 42
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-392
SELECT - 91 DIV + 33 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-392
SELECT - 91 / + 33 AS col0
----
-2

query I rowsort
SELECT ALL 60 + + 52
----
112

query I rowsort
SELECT 65 * + 53 AS col1
----
3445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-395
SELECT MIN( DISTINCT - 29 ) DIV COALESCE ( 1, COUNT( - 86 ), - COUNT( * ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-395
SELECT MIN ( DISTINCT - 29 ) / COALESCE ( 1, COUNT ( - 86 ), - COUNT ( * ) ) AS col1
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-396
SELECT ( + - 46 ) - - 72 / + 50 - - + CAST( NULL AS SIGNED ) + - 18 * - 42 * - 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-396
SELECT ( + - 46 ) - - 72 / + 50 - - + CAST ( NULL AS INTEGER ) + - 18 * - 42 * - 27 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-397
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - NULLIF ( - COUNT( * ), 86 + COUNT( ALL 75 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - NULLIF ( - COUNT ( * ), 86 + COUNT ( ALL 75 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - 55 * 34 AS col1
----
-1870

query I rowsort
SELECT ALL ( - 90 ) + ( + - 18 ) * 23
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT DISTINCT SUM( 66 ) * 53 + - + COUNT( * ) + - - 82 AS col0
----
3579

skipif mysql # not compatible
query I rowsort label-400
SELECT DISTINCT SUM ( 66 ) * 53 + - + COUNT ( * ) + - - 82 AS col0
----
3579

onlyif mysql # aggregate syntax: 
query II rowsort label-401
SELECT COUNT( * ) + + - 84 col2, - 7 AS col2
----
-83
-7

skipif mysql # not compatible
query II rowsort label-401
SELECT COUNT ( * ) + + - 84 col2, - 7 AS col2
----
-83
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT ALL 82 + - COUNT( * ) - - 16 + + 90
----
187

skipif mysql # not compatible
query I rowsort label-402
SELECT ALL 82 + - COUNT ( * ) - - 16 + + 90
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT COALESCE ( + - COUNT( * ), COUNT( * ) ) + MAX( - 88 )
----
-89

skipif mysql # not compatible
query I rowsort label-403
SELECT COALESCE ( + - COUNT ( * ), COUNT ( * ) ) + MAX ( - 88 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT + MIN( DISTINCT + ( + + 91 ) ) col1
----
91

skipif mysql # not compatible
query I rowsort label-404
SELECT + MIN ( DISTINCT + ( + + 91 ) ) col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-405
SELECT ALL CASE + 81 WHEN 44 / - 20 + + COUNT( * ) + + 11 THEN NULL WHEN + 29 THEN CAST( NULL AS SIGNED ) ELSE - 7 END * + ( 38 ) + - - CASE - MIN( ALL - - 75 ) WHEN CAST( 38 AS SIGNED ) + 15 * + 34 THEN 13 ELSE 17 + 90 * - 24 END * + ( 8 ) AS col2
----
-17410

skipif mysql # not compatible
query I rowsort label-405
SELECT ALL CASE + 81 WHEN 44 / - 20 + + COUNT ( * ) + + 11 THEN NULL WHEN + 29 THEN CAST ( NULL AS INTEGER ) ELSE - 7 END * + ( 38 ) + - - CASE - MIN ( ALL - - 75 ) WHEN CAST ( 38 AS INTEGER ) + 15 * + 34 THEN 13 ELSE 17 + 90 * - 24 END * + ( 8 ) AS col2
----
-17410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-406
SELECT DISTINCT - NULLIF ( - - CAST( - 80 AS SIGNED ), + 51 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT - NULLIF ( - - CAST ( - 80 AS INTEGER ), + 51 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-407
SELECT MAX( - 96 ) AS col2, 94 AS col2
----
-96
94

skipif mysql # not compatible
query II rowsort label-407
SELECT MAX ( - 96 ) AS col2, 94 AS col2
----
-96
94

onlyif mysql # DIV for integer division: 
query I rowsort label-408
SELECT 20 DIV + - 51 - 6
----
-6

skipif mysql # not compatible
query I rowsort label-408
SELECT 20 / + - 51 - 6
----
-6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-409
SELECT CAST( + 56 AS SIGNED ) DIV - 50
----
-1

skipif mysql # not compatible
query I rowsort label-409
SELECT CAST ( + 56 AS INTEGER ) / - 50
----
-1

query I rowsort
SELECT ALL + 93 * - 48 * - 4
----
17856

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

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

query II rowsort
SELECT - 34 - + - 66 AS col2, + 54
----
32
54

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT ALL + 8 * - 23 - COUNT( * ) * + MAX( + 33 ) AS col2
----
-217

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL + 8 * - 23 - COUNT ( * ) * + MAX ( + 33 ) AS col2
----
-217

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT COUNT( * ) * + 87 + 78 + COUNT( * ) - - 59 * + + ( 24 ) AS col0
----
1582

skipif mysql # not compatible
query I rowsort label-414
SELECT COUNT ( * ) * + 87 + 78 + COUNT ( * ) - - 59 * + + ( 24 ) AS col0
----
1582

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-415
SELECT + - 64 * - SUM( 43 ) * - - 81 * 46 - - 75 DIV - ( + + 30 ) + - + ( - - 22 ) col1
----
10253928

skipif mysql # not compatible
query I rowsort label-415
SELECT + - 64 * - SUM ( 43 ) * - - 81 * 46 - - 75 / - ( + + 30 ) + - + ( - - 22 ) col1
----
10253928

query I rowsort
SELECT - - 78 + + 99 AS col2
----
177

query I rowsort
SELECT ( - + 73 ) * + 92 - + - 40 * ( - - 73 )
----
-3796

query I rowsort
SELECT - + 3 + + - 17 + - COALESCE ( - 47, 18, 41 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT ALL CASE WHEN NOT NULL BETWEEN NULL AND COUNT( * ) THEN - - 46 * 93 + + 22 END + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL CASE WHEN NOT NULL BETWEEN NULL AND COUNT ( * ) THEN - - 46 * 93 + + 22 END + - 73
----
NULL

query II rowsort
SELECT ALL - 23 + - - 35 AS col0, 6 * - 69
----
12
-414

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT + 64 + - - MAX( - - 96 )
----
160

skipif mysql # not compatible
query I rowsort label-421
SELECT + 64 + - - MAX ( - - 96 )
----
160

query I rowsort
SELECT + 24 + + 24 + + 38 AS col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-423
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * + COUNT( * ) + + - 82 - 60 + + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) + + - 82 - 60 + + + 98
----
NULL

query I rowsort
SELECT - 12 * + 20
----
-240

query I rowsort
SELECT + 89 * 31
----
2759

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT + COUNT( DISTINCT 78 ) + + - 49 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-426
SELECT + COUNT ( DISTINCT 78 ) + + - 49 AS col2
----
-48

query I rowsort
SELECT ALL 76 - + 1 + - 47
----
28

query I rowsort
SELECT + 82 * - NULLIF ( - 50, - 66 ) AS col1
----
4100

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT + COUNT( 2 ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-429
SELECT + COUNT ( 2 ) * 0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT + COUNT( * ) * + + 15 * - + MIN( ALL - 15 )
----
225

skipif mysql # not compatible
query I rowsort label-431
SELECT + COUNT ( * ) * + + 15 * - + MIN ( ALL - 15 )
----
225

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

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

query I rowsort
SELECT ALL 34 * - COALESCE ( 34, + ( - 25 ), + + 22 ) AS col2
----
-1156

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-434
SELECT COALESCE ( - 32, - 36 ) DIV + 76 - + - SUM( - 45 ) - 45 + + - ( 78 ) DIV + + 37 AS col0, + 23 AS col1
----
-92
23

skipif mysql # not compatible
query II rowsort label-434
SELECT COALESCE ( - 32, - 36 ) / + 76 - + - SUM ( - 45 ) - 45 + + - ( 78 ) / + + 37 AS col0, + 23 AS col1
----
-92
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-435
SELECT 25 / CAST( NULL AS DECIMAL ) * SUM( - 21 ) + + MIN( DISTINCT 32 ) + 92 + ( + + 11 ) * 28 * + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-435
SELECT 25 / CAST ( NULL AS REAL ) * SUM ( - 21 ) + + MIN ( DISTINCT 32 ) + 92 + ( + + 11 ) * 28 * + 15 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-437
SELECT - + SUM( - 85 ) DIV + - NULLIF ( + 92, + 30 ) + 10 * 70 AS col1
----
700

skipif mysql # not compatible
query I rowsort label-437
SELECT - + SUM ( - 85 ) / + - NULLIF ( + 92, + 30 ) + 10 * 70 AS col1
----
700

query I rowsort
SELECT ALL - CASE - 72 WHEN - 47 THEN + 47 - 82 END * - ( - 91 ) + ( - 55 )
----
NULL

query I rowsort
SELECT + 85 * + + 37
----
3145

query I rowsort
SELECT - 55 + 66
----
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT DISTINCT + 70 * - 41 * + - COUNT( * ) + + 18 * - 37 * - 16
----
13526

skipif mysql # not compatible
query I rowsort label-442
SELECT DISTINCT + 70 * - 41 * + - COUNT ( * ) + + 18 * - 37 * - 16
----
13526

query I rowsort
SELECT ALL + 34 * - + 15 + 59 + + 51
----
-400

query I rowsort
SELECT - - 16 * + 85
----
1360

query II rowsort
SELECT 27 AS col1, - 59 * 59 * + 74 AS col2
----
27
-257594

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT DISTINCT - 91 * - 39 + - COUNT( * ) + 70 AS col2
----
3618

skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT - 91 * - 39 + - COUNT ( * ) + 70 AS col2
----
3618

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT - COALESCE ( - 64, + 81, - 11 - - 87 + + 62 - + SUM( - 50 ) + - 35 )
----
64

skipif mysql # not compatible
query I rowsort label-447
SELECT - COALESCE ( - 64, + 81, - 11 - - 87 + + 62 - + SUM ( - 50 ) + - 35 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT ALL + COUNT( * ) * - + 66 * CASE - - 82 WHEN - NULLIF ( + 34, 78 - - 41 + - 12 * - + 84 ) * + - 16 THEN NULL WHEN 30 THEN + - COUNT( * ) * - + 87 + + 46 END + ( + 26 + - 9 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL + COUNT ( * ) * - + 66 * CASE - - 82 WHEN - NULLIF ( + 34, 78 - - 41 + - 12 * - + 84 ) * + - 16 THEN NULL WHEN 30 THEN + - COUNT ( * ) * - + 87 + + 46 END + ( + 26 + - 9 ) col1
----
NULL

query II rowsort
SELECT 64 col2, + 43
----
64
43

query I rowsort
SELECT - + 91 * + 30 + 97
----
-2633

query I rowsort
SELECT - 13 - + + 1 AS col1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-452
SELECT - CASE - 80 WHEN - 60 THEN NULL WHEN 31 / + + 38 THEN NULL ELSE - + CAST( - 66 AS SIGNED ) END AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-452
SELECT - CASE - 80 WHEN - 60 THEN NULL WHEN 31 / + + 38 THEN NULL ELSE - + CAST ( - 66 AS INTEGER ) END AS col2
----
-66

query I rowsort
SELECT - 89 * ( - 61 ) AS col2
----
5429

query I rowsort
SELECT + ( - 74 ) * 89 AS col0
----
-6586

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-456
SELECT DISTINCT + 83 - + 77 AS col0, COUNT( * ) - - + 64 AS col0
----
6
65

skipif mysql # not compatible
query II rowsort label-456
SELECT DISTINCT + 83 - + 77 AS col0, COUNT ( * ) - - + 64 AS col0
----
6
65

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-458
SELECT DISTINCT - 11 * - - CAST( - 49 AS SIGNED )
----
539

skipif mysql # not compatible
query I rowsort label-458
SELECT DISTINCT - 11 * - - CAST ( - 49 AS INTEGER )
----
539

onlyif mysql # DIV for integer division: 
query I rowsort label-459
SELECT - 23 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-459
SELECT - 23 / - 55
----
0

query I rowsort
SELECT + 81 - - - 89 AS col1
----
-8

query II rowsort
SELECT ALL + 34 AS col2, - 94 * - 33 AS col0
----
34
3102

onlyif mysql # DIV for integer division: 
query I rowsort label-462
SELECT + 93 DIV 73 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-462
SELECT + 93 / 73 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT CASE NULLIF ( 25, - + 60 ) WHEN 97 * + - 1 / - COUNT( * ) + - 16 - 13 * + 39 / + 89 THEN + 79 END * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-463
SELECT CASE NULLIF ( 25, - + 60 ) WHEN 97 * + - 1 / - COUNT ( * ) + - 16 - 13 * + 39 / + 89 THEN + 79 END * - 46
----
NULL

query I rowsort
SELECT DISTINCT - 19 + - + 82
----
-101

query I rowsort
SELECT + - 45 * + 70 + + 51
----
-3099

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-466
SELECT ALL - COALESCE ( - 15, CAST( + 22 AS SIGNED ) )
----
15

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL - COALESCE ( - 15, CAST ( + 22 AS INTEGER ) )
----
15

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

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

query I rowsort
SELECT 92 * - 58 AS col1
----
-5336

query I rowsort
SELECT - 69 + - + 62
----
-131

query I rowsort
SELECT 71 + 62
----
133

query II rowsort
SELECT ALL - 74, - 17 col1
----
-74
-17

query I rowsort
SELECT DISTINCT ( + 63 ) + 10 AS col1
----
73

query II rowsort
SELECT + - 63, 8 AS col1
----
-63
8

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT 70 * CASE 96 WHEN - 31 THEN + COUNT( * ) ELSE NULL END + - SUM( DISTINCT - 3 ) + + 30 * - + ( - 53 ) - - COUNT( * ) + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-474
SELECT 70 * CASE 96 WHEN - 31 THEN + COUNT ( * ) ELSE NULL END + - SUM ( DISTINCT - 3 ) + + 30 * - + ( - 53 ) - - COUNT ( * ) + - 5
----
NULL

query II rowsort
SELECT DISTINCT 88 * - 48 * 86 * - 30, + ( 81 ) col2
----
10897920
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-476
SELECT 3, 28 + + 32 - - MAX( ALL + 26 ) + - 34 * 92 DIV - 72 col1
----
3
129

skipif mysql # not compatible
query II rowsort label-476
SELECT 3, 28 + + 32 - - MAX ( ALL + 26 ) + - 34 * 92 / - 72 col1
----
3
129

query II rowsort
SELECT ALL 9 AS col1, 73 AS col1
----
9
73

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT COUNT( * ) + - - 8 * 4 * 83
----
2657

skipif mysql # not compatible
query I rowsort label-478
SELECT COUNT ( * ) + - - 8 * 4 * 83
----
2657

onlyif mysql # DIV for integer division: 
query I rowsort label-479
SELECT DISTINCT 12 DIV - 47 * - 57
----
0

skipif mysql # not compatible
query I rowsort label-479
SELECT DISTINCT 12 / - 47 * - 57
----
0

query I rowsort
SELECT 48 * - ( - + ( + - CASE 32 WHEN + ( + - 43 ) * + + 69 + + 80 / + + 64 THEN 46 * - + 20 * 81 END ) ) * - 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT 54 + - + COUNT( * ) + + 41 * 50 AS col0
----
2103

skipif mysql # not compatible
query I rowsort label-481
SELECT 54 + - + COUNT ( * ) + + 41 * 50 AS col0
----
2103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-482
SELECT ALL CASE - 69 WHEN 60 THEN 38 / + - 55 + + CAST( - + CASE - + CAST( NULL AS SIGNED ) WHEN + 29 + - 2 / - 58 THEN + - 65 WHEN + 71 * ( - 60 ) + + ( COUNT( * ) ) - AVG ( ALL 24 ) THEN NULL WHEN - CAST( NULL AS DECIMAL ) THEN NULL END AS SIGNED ) + - 72 ELSE ( + 93 ) END * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL CASE - 69 WHEN 60 THEN 38 / + - 55 + + CAST ( - + CASE - + CAST ( NULL AS INTEGER ) WHEN + 29 + - 2 / - 58 THEN + - 65 WHEN + 71 * ( - 60 ) + + ( COUNT ( * ) ) - AVG ( ALL 24 ) THEN NULL WHEN - CAST ( NULL AS REAL ) THEN NULL END AS INTEGER ) + - 72 ELSE ( + 93 ) END * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 35 * 7
----
245

query I rowsort
SELECT 83 + 80 + - 43 * + 25
----
-912

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-486
SELECT ALL - AVG ( + CAST( NULL AS SIGNED ) ) + + - COUNT( * ) + + COUNT( * ) * - + 76 + + + 92 + - 96 - - ( - AVG ( ALL 73 ) ) + + 81 * 55 AS col0, + 2 AS col1
----
NULL
2

skipif mysql # not compatible
query II rowsort label-486
SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) ) + + - COUNT ( * ) + + COUNT ( * ) * - + 76 + + + 92 + - 96 - - ( - AVG ( ALL 73 ) ) + + 81 * 55 AS col0, + 2 AS col1
----
NULL
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-487
SELECT ALL COUNT( * ) + - CAST( ( - 9 ) AS SIGNED ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL COUNT ( * ) + - CAST ( ( - 9 ) AS INTEGER ) AS col0
----
10

query I rowsort
SELECT DISTINCT + ( 87 ) + - 37 AS col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-489
SELECT ALL - - 66 + 27 * - + NULLIF ( - - 35, + 16 - COUNT( * ) ) + - + NULLIF ( + + 93, - + 30 + - 75 ) DIV + - ( 38 ) + - COUNT( * ) - - ( - 63 ) AS col1
----
-941

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL - - 66 + 27 * - + NULLIF ( - - 35, + 16 - COUNT ( * ) ) + - + NULLIF ( + + 93, - + 30 + - 75 ) / + - ( 38 ) + - COUNT ( * ) - - ( - 63 ) AS col1
----
-941

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-490
SELECT 9 - + 31 * - COUNT( * ) + 33 + ( - 8 ) + - COUNT( - 89 ) DIV 70 * + 48, - 30 AS col2
----
65
-30

skipif mysql # not compatible
query II rowsort label-490
SELECT 9 - + 31 * - COUNT ( * ) + 33 + ( - 8 ) + - COUNT ( - 89 ) / 70 * + 48, - 30 AS col2
----
65
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT - CASE - 45 WHEN - COUNT( ALL + + 45 ) THEN + 1 * + 11 * - - 2 END / - COALESCE ( - 56, - + 39 ) * 97 * - ( - - 25 ) + SUM( + 13 ) + + + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-491
SELECT - CASE - 45 WHEN - COUNT ( ALL + + 45 ) THEN + 1 * + 11 * - - 2 END / - COALESCE ( - 56, - + 39 ) * 97 * - ( - - 25 ) + SUM ( + 13 ) + + + 90 AS col2
----
NULL

query I rowsort
SELECT + 74 * 29 + + 11 * - - 75
----
2971

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT ALL - 85 + COUNT( * ) + + COUNT( * ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL - 85 + COUNT ( * ) + + COUNT ( * ) AS col1
----
-83

query I rowsort
SELECT ALL + 27 + + 1 AS col0
----
28

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-496
SELECT ALL 33 + - + 29, COUNT( * ) AS col1
----
4
1

skipif mysql # not compatible
query II rowsort label-496
SELECT ALL 33 + - + 29, COUNT ( * ) AS col1
----
4
1

query II rowsort
SELECT DISTINCT + 93 + + 41 * - 45 AS col2, + 84
----
-1752
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-498
SELECT - 95 * - CAST( NULL AS SIGNED ) * - 38 + + - ( 40 ) / + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-498
SELECT - 95 * - CAST ( NULL AS INTEGER ) * - 38 + + - ( 40 ) / + 47
----
NULL

query I rowsort
SELECT ( - 28 ) - 90 col2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT DISTINCT NULLIF ( + 69, - 27 ) - COUNT( * ) + - NULLIF ( - COUNT( * ), 0 * + 96 + MIN( - 7 ) ) * + 54 * + 90
----
4928

skipif mysql # not compatible
query I rowsort label-500
SELECT DISTINCT NULLIF ( + 69, - 27 ) - COUNT ( * ) + - NULLIF ( - COUNT ( * ), 0 * + 96 + MIN ( - 7 ) ) * + 54 * + 90
----
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT DISTINCT + 53 * + 33 - - COUNT( * ) + - 18 AS col2
----
1732

skipif mysql # not compatible
query I rowsort label-501
SELECT DISTINCT + 53 * + 33 - - COUNT ( * ) + - 18 AS col2
----
1732

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT SUM( ALL + 97 ) + + - COALESCE ( - 77, - 70 + + 77 ) * - 65 col2
----
-4908

skipif mysql # not compatible
query I rowsort label-502
SELECT SUM ( ALL + 97 ) + + - COALESCE ( - 77, - 70 + + 77 ) * - 65 col2
----
-4908

query I rowsort
SELECT ALL 60 * 11 AS col0
----
660

query I rowsort
SELECT ALL 71 * 89
----
6319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-505
SELECT DISTINCT ( + 36 ) - - CAST( - - 4 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-505
SELECT DISTINCT ( + 36 ) - - CAST ( - - 4 AS INTEGER )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT DISTINCT MAX( 24 ) * ( + + ( 2 ) )
----
48

skipif mysql # not compatible
query I rowsort label-506
SELECT DISTINCT MAX ( 24 ) * ( + + ( 2 ) )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT DISTINCT 12 - + - 62 + + - 23 + - + MIN( + 61 ) - 85 * + 48 * 65 * + + 22 col2
----
-5834410

skipif mysql # not compatible
query I rowsort label-507
SELECT DISTINCT 12 - + - 62 + + - 23 + - + MIN ( + 61 ) - 85 * + 48 * 65 * + + 22 col2
----
-5834410

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

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

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

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

query I rowsort
SELECT 44 - + NULLIF ( 56, + 64 * + - 23 ) + - COALESCE ( - 75, ( - 81 ) ) col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-511
SELECT 63 - - MIN( DISTINCT - CAST( - 62 AS SIGNED ) ) * 69 AS col1
----
4341

skipif mysql # not compatible
query I rowsort label-511
SELECT 63 - - MIN ( DISTINCT - CAST ( - 62 AS INTEGER ) ) * 69 AS col1
----
4341

query II rowsort
SELECT ALL 11 AS col2, ( + 92 ) * 41
----
11
3772

query I rowsort
SELECT + 93 * - 67 * 59
----
-367629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-514
SELECT + CASE 37 WHEN + 45 - + + 33 * - CAST( NULL AS SIGNED ) * - + COUNT( * ) THEN NULL WHEN - 51 THEN CAST( NULL AS SIGNED ) + + ( + - COUNT( * ) ) * - COUNT( * ) * + 79 END * + + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-514
SELECT + CASE 37 WHEN + 45 - + + 33 * - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) THEN NULL WHEN - 51 THEN CAST ( NULL AS INTEGER ) + + ( + - COUNT ( * ) ) * - COUNT ( * ) * + 79 END * + + 76 AS col1
----
NULL

query I rowsort
SELECT ALL 58 + + 31 * + + 75 * - + ( - ( 6 ) )
----
14008

query I rowsort
SELECT ALL 75 * - 93 AS col0
----
-6975

query I rowsort
SELECT ALL - 75 + + 66 + 75 * 63
----
4716

query I rowsort
SELECT - 46 - 19 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-519
SELECT DISTINCT 10 + 31 + ( + 33 ) * - SUM( - 54 ) + + - COUNT( * ) * - + 48 col1, 72 * 14 + + - 57 * + 89 AS col1
----
1871
-4065

skipif mysql # not compatible
query II rowsort label-519
SELECT DISTINCT 10 + 31 + ( + 33 ) * - SUM ( - 54 ) + + - COUNT ( * ) * - + 48 col1, 72 * 14 + + - 57 * + 89 AS col1
----
1871
-4065

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-520
SELECT - CASE - COUNT( * ) WHEN - COALESCE ( - CAST( NULL AS SIGNED ), 26 ) * - 98 - + 45 * 53 + 22 + + 35 THEN NULL WHEN - - 30 * + AVG ( - 29 ) * + COUNT( * ) + + - SUM( ALL - 84 ) + + 7 THEN - 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-520
SELECT - CASE - COUNT ( * ) WHEN - COALESCE ( - CAST ( NULL AS INTEGER ), 26 ) * - 98 - + 45 * 53 + 22 + + 35 THEN NULL WHEN - - 30 * + AVG ( - 29 ) * + COUNT ( * ) + + - SUM ( ALL - 84 ) + + 7 THEN - 99 END
----
NULL

query I rowsort
SELECT DISTINCT + 30 + + 5 AS col1
----
35

query II rowsort
SELECT - 52 col1, + 35
----
-52
35

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

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

query II rowsort
SELECT + - 54 AS col0, - 60
----
-54
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT DISTINCT + 15 * - 57 + + + COUNT( * )
----
-854

skipif mysql # not compatible
query I rowsort label-525
SELECT DISTINCT + 15 * - 57 + + + COUNT ( * )
----
-854

query II rowsort
SELECT ALL + 90 AS col1, COALESCE ( - + 72, 46 ) * + - 51
----
90
3672

query II rowsort
SELECT + 48 AS col2, - 20 AS col1
----
48
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT ALL + + CASE + 70 WHEN - - ( - COUNT( * ) ) THEN - 82 + 77 WHEN - + 67 * COUNT( * ) + - + 40 + - COALESCE ( 21, - + 67 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL + + CASE + 70 WHEN - - ( - COUNT ( * ) ) THEN - 82 + 77 WHEN - + 67 * COUNT ( * ) + - + 40 + - COALESCE ( 21, - + 67 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-529
SELECT - MAX( + 19 ) DIV - 80 - - 37 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-529
SELECT - MAX ( + 19 ) / - 80 - - 37 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT + - 4 * - + COUNT( * ) + - 49 + + 77 col0
----
32

skipif mysql # not compatible
query I rowsort label-530
SELECT + - 4 * - + COUNT ( * ) + - 49 + + 77 col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT - - SUM( - - 67 ) + + - 27 * - 95 * 4 AS col0
----
10327

skipif mysql # not compatible
query I rowsort label-531
SELECT - - SUM ( - - 67 ) + + - 27 * - 95 * 4 AS col0
----
10327

query III rowsort
SELECT - + 18 + 21 + + 5 AS col2, + 28 AS col0, + 66 + 93 AS col0
----
8
28
159

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT ALL + AVG ( - 54 ) * - CASE 42 WHEN + - 61 THEN 22 * AVG ( ALL + 6 ) * - - NULLIF ( 10, + + 94 ) ELSE NULL END * + COUNT( * ) * - + 2 * 44 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL + AVG ( - 54 ) * - CASE 42 WHEN + - 61 THEN 22 * AVG ( ALL + 6 ) * - - NULLIF ( 10, + + 94 ) ELSE NULL END * + COUNT ( * ) * - + 2 * 44 * + COUNT ( * ) AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-535
SELECT DISTINCT + + 73, + 12 DIV 90 AS col2
----
73
0

skipif mysql # not compatible
query II rowsort label-535
SELECT DISTINCT + + 73, + 12 / 90 AS col2
----
73
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-537
SELECT ALL + SUM( ALL 7 ) DIV 83 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-537
SELECT ALL + SUM ( ALL 7 ) / 83 * COUNT ( * )
----
0

query II rowsort
SELECT - 6 * - 88 col0, 7 + + + 92 + 73 + 83 - + 27 * 66 * 9
----
528
-15783

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT 70 * - + CASE - 16 WHEN + 31 THEN - COALESCE ( + COUNT( * ), 86 - + 56, 31 + - 16 ) / - CASE + - AVG ( DISTINCT + 99 ) WHEN - + 64 * - NULLIF ( - 32, + 57 + 25 ) - - 1 + - 92 THEN + 13 WHEN 5 + 76 THEN NULL END END / - 33 + - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-539
SELECT 70 * - + CASE - 16 WHEN + 31 THEN - COALESCE ( + COUNT ( * ), 86 - + 56, 31 + - 16 ) / - CASE + - AVG ( DISTINCT + 99 ) WHEN - + 64 * - NULLIF ( - 32, + 57 + 25 ) - - 1 + - 92 THEN + 13 WHEN 5 + 76 THEN NULL END END / - 33 + - 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT MIN( ALL + - 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-540
SELECT MIN ( ALL + - 15 ) AS col0
----
-15

query I rowsort
SELECT - 0 + + + 44
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-542
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( * ) + + 71 * CAST( + + 92 AS DECIMAL ) + - COALESCE ( + 3, + 66 ) * - COUNT( * ) * - 43 + 23 * - CAST( + 10 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 71 * CAST ( + + 92 AS REAL ) + - COALESCE ( + 3, + 66 ) * - COUNT ( * ) * - 43 + 23 * - CAST ( + 10 AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT MIN( DISTINCT 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-543
SELECT MIN ( DISTINCT 78 ) AS col1
----
78

query II rowsort
SELECT + 52 + - - 93 AS col1, 68 AS col2
----
145
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT - COALESCE ( 76, + 43 + + 51 + - COALESCE ( - NULLIF ( + 2, + COUNT( * ) ), + - 19 + + + 40 + + ( 39 ) * - - NULLIF ( - SUM( DISTINCT + 0 ), + + 20 - 73 ) ) + + 74 - ( 51 ) + NULLIF ( - COUNT( * ), + COUNT( * ) * + 21 ), 68 )
----
-76

skipif mysql # not compatible
query I rowsort label-546
SELECT - COALESCE ( 76, + 43 + + 51 + - COALESCE ( - NULLIF ( + 2, + COUNT ( * ) ), + - 19 + + + 40 + + ( 39 ) * - - NULLIF ( - SUM ( DISTINCT + 0 ), + + 20 - 73 ) ) + + 74 - ( 51 ) + NULLIF ( - COUNT ( * ), + COUNT ( * ) * + 21 ), 68 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT ALL 34 + - + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-547
SELECT ALL 34 + - + COUNT ( * )
----
33

query I rowsort
SELECT + ( 51 ) + + 86 + NULLIF ( - - 57, 51 )
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT ALL SUM( ALL + - 45 ) col2
----
-45

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL SUM ( ALL + - 45 ) col2
----
-45

query II rowsort
SELECT ALL 28 + 25, 42 col1
----
53
42

query II rowsort
SELECT + 98 + - + 80 * - 56 + + ( - 97 ), - ( - 1 ) col1
----
4481
1

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT ALL COUNT( * ) + + 81 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL COUNT ( * ) + + 81 AS col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-553
SELECT + ( - 66 ) * - COUNT( * ) DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-553
SELECT + ( - 66 ) * - COUNT ( * ) / + 78
----
0

query II rowsort
SELECT - - ( - 57 ) AS col1, 79 * 52 - NULLIF ( 30, + 68 )
----
-57
4078

query I rowsort
SELECT + ( - - ( 56 ) ) + - - 93 AS col2
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-556
SELECT + + MIN( + 73 ) DIV NULLIF ( + NULLIF ( + CAST( + - 61 AS SIGNED ), + - 11 ), - - 88 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-556
SELECT + + MIN ( + 73 ) / NULLIF ( + NULLIF ( + CAST ( + - 61 AS INTEGER ), + - 11 ), - - 88 ) AS col2
----
-1

query I rowsort
SELECT ALL 10 + - 61 col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT DISTINCT + - SUM( DISTINCT + 98 ) * + 34
----
-3332

skipif mysql # not compatible
query I rowsort label-558
SELECT DISTINCT + - SUM ( DISTINCT + 98 ) * + 34
----
-3332

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

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

query I rowsort
SELECT ALL + NULLIF ( + 37, 7 )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-561
SELECT + 76 DIV - - 90 + + + 64
----
64

skipif mysql # not compatible
query I rowsort label-561
SELECT + 76 / - - 90 + + + 64
----
64

query I rowsort
SELECT ALL CASE + 93 WHEN 31 THEN 82 / - 41 - + 38 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-563
SELECT DISTINCT + CASE + - 22 WHEN - 3 * NULLIF ( + 39, + COUNT( * ) ) - + ( + - 22 ) * + 24 + + - 86 THEN + 10 * + + CAST( + SUM( DISTINCT + 84 ) AS SIGNED ) ELSE - COALESCE ( + 51, + - 6 + + 30 + 95 ) * + 27 + - 72 END * - MIN( ALL 10 DIV 22 + 90 )
----
130410

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT + CASE + - 22 WHEN - 3 * NULLIF ( + 39, + COUNT ( * ) ) - + ( + - 22 ) * + 24 + + - 86 THEN + 10 * + + CAST ( + SUM ( DISTINCT + 84 ) AS INTEGER ) ELSE - COALESCE ( + 51, + - 6 + + 30 + 95 ) * + 27 + - 72 END * - MIN ( ALL 10 / 22 + 90 )
----
130410

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT ALL + 19 * - 53 - + SUM( + 45 ) AS col1
----
-1052

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL + 19 * - 53 - + SUM ( + 45 ) AS col1
----
-1052

query II rowsort
SELECT - 23 * - 87 + - 14 * - 33 AS col0, 1
----
2463
1

query II rowsort
SELECT + - 64 - - 84 + 15 + + NULLIF ( - 69, - 67 / - COALESCE ( + 41, 58 ) ), ( - 65 ) AS col2
----
-34
-65

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

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

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

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

query I rowsort
SELECT - 92 * + + 72
----
-6624

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT - COUNT( * ) * 27 col1
----
-27

skipif mysql # not compatible
query I rowsort label-571
SELECT - COUNT ( * ) * 27 col1
----
-27

query II rowsort
SELECT - ( 12 ) * - + 78 AS col1, 40 col1
----
936
40

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT ( SUM( ALL + ( - + 95 ) ) )
----
-95

skipif mysql # not compatible
query I rowsort label-573
SELECT ( SUM ( ALL + ( - + 95 ) ) )
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-574
SELECT + 40, + 29 + + 53 + - ( + COUNT( * ) ) * - + COUNT( * ) + 89 * 47 + 1 + + COUNT( * ) + - 85 * - 26 AS col1
----
40
6478

skipif mysql # not compatible
query II rowsort label-574
SELECT + 40, + 29 + + 53 + - ( + COUNT ( * ) ) * - + COUNT ( * ) + 89 * 47 + 1 + + COUNT ( * ) + - 85 * - 26 AS col1
----
40
6478

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-576
SELECT 63 * - CAST( NULL AS DECIMAL ) * - ( - 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-576
SELECT 63 * - CAST ( NULL AS REAL ) * - ( - 8 )
----
NULL

query I rowsort
SELECT DISTINCT - 66 * - + 74
----
4884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-578
SELECT ALL 64 + COALESCE ( + ( + NULLIF ( + + 54, + 55 DIV + - 91 ) ), 58 - + 27 - - - COUNT( DISTINCT + + 64 ) * - CASE 1 WHEN + 9 - - 40 THEN - COUNT( ALL 86 ) + + - COUNT( - + CAST( - 57 AS SIGNED ) ) ELSE NULL END + 18 DIV 91 DIV - COALESCE ( - ( + 18 ) * - 57, + 40 DIV 49 + 90 * 39, 79 ) ) + 77 * 63 AS col2
----
4969

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL 64 + COALESCE ( + ( + NULLIF ( + + 54, + 55 / + - 91 ) ), 58 - + 27 - - - COUNT ( DISTINCT + + 64 ) * - CASE 1 WHEN + 9 - - 40 THEN - COUNT ( ALL 86 ) + + - COUNT ( - + CAST ( - 57 AS INTEGER ) ) ELSE NULL END + 18 / 91 / - COALESCE ( - ( + 18 ) * - 57, + 40 / 49 + 90 * 39, 79 ) ) + 77 * 63 AS col2
----
4969

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-579
SELECT DISTINCT + 93 + 93 + - 3 AS col0, - 34 - + + 89 - CAST( NULL AS DECIMAL ) + - 61 * - 76 / - 35
----
183
NULL

skipif mysql # not compatible
query II rowsort label-579
SELECT DISTINCT + 93 + 93 + - 3 AS col0, - 34 - + + 89 - CAST ( NULL AS REAL ) + - 61 * - 76 / - 35
----
183
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-580
SELECT DISTINCT 58 DIV 60 * - + 56 * - 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT 58 / 60 * - + 56 * - 74 AS col2
----
0

query I rowsort
SELECT 63 + + 28 - + 29
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-582
SELECT MAX( - - 93 ) * + 62 DIV - - COUNT( * ) + - 39
----
5727

skipif mysql # not compatible
query I rowsort label-582
SELECT MAX ( - - 93 ) * + 62 / - - COUNT ( * ) + - 39
----
5727

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-583
SELECT ALL + 76 + - CASE 40 WHEN - + MAX( - 9 ) - + 56 + - COUNT( * ) THEN + 60 + - - SUM( ALL - 22 ) * 81 WHEN + - NULLIF ( 95, 43 * 68 - - + ( + NULLIF ( - 93, + COALESCE ( + 71, 56 ) * 72 ) ) - 19 * - COUNT( * ) ) THEN - 15 + - 82 * + 25 ELSE - MAX( DISTINCT 68 ) END + COALESCE ( - MAX( DISTINCT 97 ), 82, ( - COUNT( * ) ) ) DIV 99
----
144

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL + 76 + - CASE 40 WHEN - + MAX ( - 9 ) - + 56 + - COUNT ( * ) THEN + 60 + - - SUM ( ALL - 22 ) * 81 WHEN + - NULLIF ( 95, 43 * 68 - - + ( + NULLIF ( - 93, + COALESCE ( + 71, 56 ) * 72 ) ) - 19 * - COUNT ( * ) ) THEN - 15 + - 82 * + 25 ELSE - MAX ( DISTINCT 68 ) END + COALESCE ( - MAX ( DISTINCT 97 ), 82, ( - COUNT ( * ) ) ) / 99
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-584
SELECT DISTINCT - COUNT( * ) DIV - COALESCE ( - 6, - 56, 39 - 41 * + + CAST( 16 AS SIGNED ) * - ( - NULLIF ( + + COALESCE ( - COUNT( * ), COUNT( + 24 ) * - COUNT( * ) ), - + 70 ) ) - - 48 + - - 34 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT - COUNT ( * ) / - COALESCE ( - 6, - 56, 39 - 41 * + + CAST ( 16 AS INTEGER ) * - ( - NULLIF ( + + COALESCE ( - COUNT ( * ), COUNT ( + 24 ) * - COUNT ( * ) ), - + 70 ) ) - - 48 + - - 34 ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-585
SELECT 79 - 84 + CAST( + NULLIF ( 46, 74 * + + 62 + AVG ( + 71 ) * - COUNT( * ) + + - 39 * 77 ) AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-585
SELECT 79 - 84 + CAST ( + NULLIF ( 46, 74 * + + 62 + AVG ( + 71 ) * - COUNT ( * ) + + - 39 * 77 ) AS INTEGER )
----
41

query II rowsort
SELECT 68 AS col2, + 35 AS col0
----
68
35

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT COALESCE ( + 49, + - 40 - + - 27, - - 62 ) * - + 47 + + NULLIF ( + COUNT( * ), - 8 ) AS col2
----
-2302

skipif mysql # not compatible
query I rowsort label-587
SELECT COALESCE ( + 49, + - 40 - + - 27, - - 62 ) * - + 47 + + NULLIF ( + COUNT ( * ), - 8 ) AS col2
----
-2302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-588
SELECT - - CASE - 31 WHEN + 47 THEN NULL WHEN - COUNT( ALL 54 ) THEN - + 8 * - - 58 * 89 * ( 12 ) ELSE - 44 / + CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-588
SELECT - - CASE - 31 WHEN + 47 THEN NULL WHEN - COUNT ( ALL 54 ) THEN - + 8 * - - 58 * 89 * ( 12 ) ELSE - 44 / + CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT + 4 + - + 74 AS col1
----
-70

query I rowsort
SELECT + 74 - - - 31 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT ALL - COUNT( * ) - 99 AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL - COUNT ( * ) - 99 AS col0
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-592
SELECT - 22, + 70 + - + 60 * COUNT( DISTINCT + - 80 ) AS col1
----
-22
10

skipif mysql # not compatible
query II rowsort label-592
SELECT - 22, + 70 + - + 60 * COUNT ( DISTINCT + - 80 ) AS col1
----
-22
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-593
SELECT - 40 + - COUNT( * ) - - 40 + - - NULLIF ( + 60, + NULLIF ( CAST( NULL AS DECIMAL ), NULLIF ( - 4, + CAST( - COUNT( * ) AS SIGNED ) ) ) ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-593
SELECT - 40 + - COUNT ( * ) - - 40 + - - NULLIF ( + 60, + NULLIF ( CAST ( NULL AS REAL ), NULLIF ( - 4, + CAST ( - COUNT ( * ) AS INTEGER ) ) ) ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-594
SELECT NULLIF ( + 96, COUNT( * ) + - 2 + + - 83 + + 66 * ( - 15 ) + - + ( 1 ) + 1 ) * - + COUNT( * ) * - ( - + COUNT( * ) ) * + - 44 AS col0, - SUM( 29 ) AS col0
----
4224
-29

skipif mysql # not compatible
query II rowsort label-594
SELECT NULLIF ( + 96, COUNT ( * ) + - 2 + + - 83 + + 66 * ( - 15 ) + - + ( 1 ) + 1 ) * - + COUNT ( * ) * - ( - + COUNT ( * ) ) * + - 44 AS col0, - SUM ( 29 ) AS col0
----
4224
-29

query I rowsort
SELECT - 54 + - - 83 + + 77
----
106

query II rowsort
SELECT DISTINCT - - 28 AS col0, - 21 AS col2
----
28
-21

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-598
SELECT ( - NULLIF ( - 95, 22 ) ) DIV - - NULLIF ( + 41, + - 24 ) + 94 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-598
SELECT ( - NULLIF ( - 95, 22 ) ) / - - NULLIF ( + 41, + - 24 ) + 94 AS col0
----
96

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

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

query I rowsort
SELECT DISTINCT 55 * 69 * + 33 + - 79 AS col2
----
125156

onlyif mysql # aggregate syntax: 
query II rowsort label-601
SELECT ALL - + NULLIF ( SUM( ALL - + 77 ), + 65 / + 23 ), - 89 * - COUNT( * ) AS col0
----
77
89

skipif mysql # not compatible
query II rowsort label-601
SELECT ALL - + NULLIF ( SUM ( ALL - + 77 ), + 65 / + 23 ), - 89 * - COUNT ( * ) AS col0
----
77
89

onlyif mysql # DIV for integer division: 
query I rowsort label-602
SELECT 12 DIV NULLIF ( - 8, 67 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-602
SELECT 12 / NULLIF ( - 8, 67 ) col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-603
SELECT 74 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-603
SELECT 74 / 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-604
SELECT 6 / 47 + + - 74 * + ( - - CAST( NULL AS SIGNED ) ) + COUNT( * ) + - ( + + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-604
SELECT 6 / 47 + + - 74 * + ( - - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) + - ( + + 11 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT ALL 95 + - 36 - + - 56 + + MIN( ALL + 47 ) * - 63
----
-2846

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL 95 + - 36 - + - 56 + + MIN ( ALL + 47 ) * - 63
----
-2846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-606
SELECT CAST( + 60 AS SIGNED ) + + - 71 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-606
SELECT CAST ( + 60 AS INTEGER ) + + - 71 AS col2
----
-11

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

skipif mysql # not compatible
query II rowsort label-607
SELECT 22, COUNT ( * ) AS col2
----
22
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-608
SELECT ALL - COUNT( * ) + - + CAST( NULLIF ( - - 94, - - NULLIF ( - 78, + 73 ) + + 8 ) AS SIGNED ) + 72 * + + 12
----
769

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL - COUNT ( * ) + - + CAST ( NULLIF ( - - 94, - - NULLIF ( - 78, + 73 ) + + 8 ) AS INTEGER ) + 72 * + + 12
----
769

query II rowsort
SELECT DISTINCT - 5, + 31 + + 10 AS col0
----
-5
41

query I rowsort
SELECT ALL 59 + - 5 * - 94
----
529

query I rowsort
SELECT + 92 * + 28 - + + 91 AS col1
----
2485

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

skipif mysql # not compatible
query II rowsort label-612
SELECT 8 AS col1, - CAST ( NULL AS INTEGER ) AS col1
----
8
NULL

query I rowsort
SELECT 98 + ( + - 45 ) AS col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-614
SELECT ALL - 44 + 98 + + 41 - + - 4 DIV - 69
----
95

skipif mysql # not compatible
query I rowsort label-614
SELECT ALL - 44 + 98 + + 41 - + - 4 / - 69
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-615
SELECT 69 * COUNT( * ) * COALESCE ( + + 96, + 53, COALESCE ( 19, + 26, + 75 * 0 ), 47 * - - 79 + + + CAST( NULL AS SIGNED ) - - 95 )
----
6624

skipif mysql # not compatible
query I rowsort label-615
SELECT 69 * COUNT ( * ) * COALESCE ( + + 96, + 53, COALESCE ( 19, + 26, + 75 * 0 ), 47 * - - 79 + + + CAST ( NULL AS INTEGER ) - - 95 )
----
6624

query II rowsort
SELECT 95 col1, + 10 + - 96 AS col1
----
95
-86

query II rowsort
SELECT - 10 * + + 42 * 48 + 54 AS col2, 81 AS col2
----
-20106
81

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT + 35 * + 87 + + 58 * - - COUNT( * )
----
3103

skipif mysql # not compatible
query I rowsort label-618
SELECT + 35 * + 87 + + 58 * - - COUNT ( * )
----
3103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-619
SELECT DISTINCT - CASE + 55 WHEN - 11 THEN NULL WHEN - 95 + 11 THEN - + 26 * + 95 * CAST( NULL AS SIGNED ) + MAX( DISTINCT - 55 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT - CASE + 55 WHEN - 11 THEN NULL WHEN - 95 + 11 THEN - + 26 * + 95 * CAST ( NULL AS INTEGER ) + MAX ( DISTINCT - 55 ) END
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 79, - 36 ) * - 50 AS col1
----
-3950

query I rowsort
SELECT 98 + - 92 AS col1
----
6

query II rowsort
SELECT DISTINCT 77, 12 AS col0
----
77
12

query I rowsort
SELECT ALL - 17 * + + 45
----
-765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-624
SELECT CAST( NULL AS SIGNED ) / 81
----
NULL

skipif mysql # not compatible
query I rowsort label-624
SELECT CAST ( NULL AS INTEGER ) / 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-625
SELECT + 45 + + CAST( NULL AS SIGNED ) + 25 * - - ( + MAX( DISTINCT 21 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-625
SELECT + 45 + + CAST ( NULL AS INTEGER ) + 25 * - - ( + MAX ( DISTINCT 21 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-626
SELECT ALL 55 AS col1, 43 - - + SUM( 49 )
----
55
92

skipif mysql # not compatible
query II rowsort label-626
SELECT ALL 55 AS col1, 43 - - + SUM ( 49 )
----
55
92

query I rowsort
SELECT 99 + - CASE + + 74 WHEN + 79 * - - 72 * - + 75 + - - ( - - 28 ) + + 80 THEN - + 77 WHEN 64 * - + 90 - - - 3 THEN NULL ELSE NULL END * + AVG ( + NULLIF ( - + 48, - + 97 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-628
SELECT ALL - 77 DIV + - 93 * + 82
----
0

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL - 77 / + - 93 * + 82
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-629
SELECT 86 DIV + + 83
----
1

skipif mysql # not compatible
query I rowsort label-629
SELECT 86 / + + 83
----
1

query I rowsort
SELECT 29 * + - 4 + - 12
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-631
SELECT DISTINCT - 60 DIV - 93 * + 65
----
0

skipif mysql # not compatible
query I rowsort label-631
SELECT DISTINCT - 60 / - 93 * + 65
----
0

query II rowsort
SELECT ALL 89, 84 AS col2
----
89
84

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

skipif mysql # not compatible
query II rowsort label-633
SELECT DISTINCT 44, COUNT ( * ) AS col1
----
44
1

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

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

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

skipif mysql # not compatible
query I rowsort label-635
SELECT 55 * 85 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-636
SELECT - CAST( + + 74 AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-636
SELECT - CAST ( + + 74 AS INTEGER )
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-637
SELECT DISTINCT - MAX( + 25 ) AS col1, - NULLIF ( - + 29, 87 )
----
-25
29

skipif mysql # not compatible
query II rowsort label-637
SELECT DISTINCT - MAX ( + 25 ) AS col1, - NULLIF ( - + 29, 87 )
----
-25
29

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT DISTINCT - + MIN( - 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-638
SELECT DISTINCT - + MIN ( - 90 ) AS col1
----
90

query I rowsort
SELECT ALL 85 * + + 23 + + COALESCE ( + 27, - + 22 ) + - 38
----
1944

query I rowsort
SELECT 54 * - 35 * + 7 AS col2
----
-13230

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT CASE + 38 WHEN - 49 + COUNT( * ) + + 31 * - 33 * COUNT( * ) - 55 THEN NULL WHEN 27 + - MAX( - 17 ) * + 80 THEN 68 + + 63 + - - 73 ELSE 5 + + + 76 * CASE + 35 WHEN - COUNT( * ) THEN - COALESCE ( + 21, + 44, 57 * 36 ) WHEN - 29 THEN 62 WHEN 52 - 9 THEN NULL ELSE + MIN( DISTINCT 55 ) * 81 END END
----
338585

skipif mysql # not compatible
query I rowsort label-641
SELECT CASE + 38 WHEN - 49 + COUNT ( * ) + + 31 * - 33 * COUNT ( * ) - 55 THEN NULL WHEN 27 + - MAX ( - 17 ) * + 80 THEN 68 + + 63 + - - 73 ELSE 5 + + + 76 * CASE + 35 WHEN - COUNT ( * ) THEN - COALESCE ( + 21, + 44, 57 * 36 ) WHEN - 29 THEN 62 WHEN 52 - 9 THEN NULL ELSE + MIN ( DISTINCT 55 ) * 81 END END
----
338585

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT ALL SUM( ALL 58 ) * 74 + 83 AS col2
----
4375

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL SUM ( ALL 58 ) * 74 + 83 AS col2
----
4375

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT DISTINCT 63 * - - 37 + + 55 + + COUNT( * ) * + 65 AS col1
----
2451

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT 63 * - - 37 + + 55 + + COUNT ( * ) * + 65 AS col1
----
2451

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-644
SELECT ALL COUNT( * ) * + 95 * - 14 + + ( 77 ) + - 61 DIV - NULLIF ( - COUNT( * ), - + 57 )
----
-1314

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL COUNT ( * ) * + 95 * - 14 + + ( 77 ) + - 61 / - NULLIF ( - COUNT ( * ), - + 57 )
----
-1314

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT ALL 11 * 6 * 61 * - 79 * - - SUM( ALL 34 )
----
-10813836

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL 11 * 6 * 61 * - 79 * - - SUM ( ALL 34 )
----
-10813836

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT MIN( ALL - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-646
SELECT MIN ( ALL - 72 )
----
-72

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-647
SELECT + CASE - 91 WHEN - + 63 THEN + CAST( + - 88 AS DECIMAL ) / - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-647
SELECT + CASE - 91 WHEN - + 63 THEN + CAST ( + - 88 AS REAL ) / - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-648
SELECT + COUNT( * ) * + + 39 * - - 59 * + 16 * - COUNT( * ), - 46 + COUNT( * ) col2
----
-36816
-45

skipif mysql # not compatible
query II rowsort label-648
SELECT + COUNT ( * ) * + + 39 * - - 59 * + 16 * - COUNT ( * ), - 46 + COUNT ( * ) col2
----
-36816
-45

query I rowsort
SELECT DISTINCT 46 * + 39 * - - 75
----
134550

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT - 17 * + + SUM( + + 75 ) * - + MAX( DISTINCT - - 26 ) AS col1
----
33150

skipif mysql # not compatible
query I rowsort label-650
SELECT - 17 * + + SUM ( + + 75 ) * - + MAX ( DISTINCT - - 26 ) AS col1
----
33150

query I rowsort
SELECT - 93 + - 24 + + + 62
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-652
SELECT AVG ( DISTINCT - + CASE + - 90 WHEN - 61 * + 48 THEN + ( + 27 ) + - 23 * + - 95 WHEN 62 DIV - 39 + + 34 THEN NULL END ) AS col0, 35 DIV COUNT( * ) col1
----
NULL
35

skipif mysql # not compatible
query II rowsort label-652
SELECT AVG ( DISTINCT - + CASE + - 90 WHEN - 61 * + 48 THEN + ( + 27 ) + - 23 * + - 95 WHEN 62 / - 39 + + 34 THEN NULL END ) AS col0, 35 / COUNT ( * ) col1
----
NULL
35

query I rowsort
SELECT + 81 * - - ( ( + 55 ) )
----
4455

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT SUM( + 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-654
SELECT SUM ( + 19 ) AS col0
----
19

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

skipif mysql # not compatible
query I rowsort label-655
SELECT SUM ( + 93 )
----
93

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

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

query I rowsort
SELECT ALL - 86 * - 33 * 41
----
116358

query I rowsort
SELECT + ( 49 ) * + 7 * + + 26
----
8918

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT ALL - 31 * + CASE 20 WHEN + + ( 95 ) - - COUNT( * ) + - - COUNT( * ) THEN + 79 WHEN - 66 THEN NULL END * - + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL - 31 * + CASE 20 WHEN + + ( 95 ) - - COUNT ( * ) + - - COUNT ( * ) THEN + 79 WHEN - 66 THEN NULL END * - + 34 AS col2
----
NULL

query II rowsort
SELECT + - 26 - 15 + - 30 AS col0, - 0 col1
----
-71
0

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

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

query I rowsort
SELECT - + 51 + + 26
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-663
SELECT + COUNT( ALL - - 2 ) AS col0, 51
----
1
51

skipif mysql # not compatible
query II rowsort label-663
SELECT + COUNT ( ALL - - 2 ) AS col0, 51
----
1
51

query I rowsort
SELECT DISTINCT 83 * + - 19 + + 69 * ( 99 )
----
5254

query II rowsort
SELECT DISTINCT 87 + + 60 AS col1, + 98 * 41 * - 33 * 88 * 56
----
147
-653423232

onlyif mysql # DIV for integer division: 
query I rowsort label-666
SELECT - 31 DIV - 16 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-666
SELECT - 31 / - 16 AS col0
----
1

query I rowsort
SELECT ALL - + 58 + - + 54 * 89 AS col2
----
-4864

onlyif mysql # aggregate syntax: 
query III rowsort label-668
SELECT DISTINCT + 38 * + 81 AS col2, MIN( COALESCE ( + - 68, - 48, + + 56 ) ) - + COUNT( * ) AS col2, 71 AS col0
----
3078
-69
71

skipif mysql # not compatible
query III rowsort label-668
SELECT DISTINCT + 38 * + 81 AS col2, MIN ( COALESCE ( + - 68, - 48, + + 56 ) ) - + COUNT ( * ) AS col2, 71 AS col0
----
3078
-69
71

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT ALL - CASE ( 31 ) WHEN + MIN( + + 60 ) * 39 / + ( - - 64 ) + 24 + - - 63 + - + 77 THEN 21 ELSE NULL END + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL - CASE ( 31 ) WHEN + MIN ( + + 60 ) * 39 / + ( - - 64 ) + 24 + - - 63 + - + 77 THEN 21 ELSE NULL END + 59
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-670
SELECT - 58 - - 23, - CAST( NULL AS SIGNED ) AS col2
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-670
SELECT - 58 - - 23, - CAST ( NULL AS INTEGER ) AS col2
----
-35
NULL

query I rowsort
SELECT DISTINCT - + 83 + 9 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-672
SELECT - 72 - - 74 + + - COUNT( * ), - 96 AS col2
----
1
-96

skipif mysql # not compatible
query II rowsort label-672
SELECT - 72 - - 74 + + - COUNT ( * ), - 96 AS col2
----
1
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-673
SELECT DISTINCT + 71 DIV + - 18
----
-3

skipif mysql # not compatible
query I rowsort label-673
SELECT DISTINCT + 71 / + - 18
----
-3

query I rowsort
SELECT ALL - - 33 + 51
----
84

query I rowsort
SELECT - + 49 * - 45 AS col2
----
2205

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT + MAX( ALL 62 ) col1
----
62

skipif mysql # not compatible
query I rowsort label-676
SELECT + MAX ( ALL 62 ) col1
----
62

query I rowsort
SELECT DISTINCT - ( + + 99 ) + + + 49 AS col2
----
-50

query I rowsort
SELECT - - 75 + - - 65
----
140

query II rowsort
SELECT + ( + + 6 ) AS col2, - 29 + + 71 AS col0
----
6
42

query I rowsort
SELECT ALL - - CASE 15 WHEN + 79 + + 91 THEN 2 END * - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT + SUM( DISTINCT + 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-681
SELECT + SUM ( DISTINCT + 93 ) AS col2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-682
SELECT DISTINCT 90 DIV + 84 + - 90
----
-89

skipif mysql # not compatible
query I rowsort label-682
SELECT DISTINCT 90 / + 84 + - 90
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-683
SELECT DISTINCT 65 / - ( - COUNT( * ) ) * - 74 - 82 - + CAST( + COUNT( + 30 ) AS SIGNED ) * + 35 * ( - + 46 ) * - CASE CAST( + NULLIF ( - ( COALESCE ( - 7, ( + + 8 ) ) ), + + 1 + - 70 * 42 ) AS SIGNED ) WHEN - - 49 * + 21 THEN - 3 - + 99 ELSE NULL END * + 56 + - 29 * 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-683
SELECT DISTINCT 65 / - ( - COUNT ( * ) ) * - 74 - 82 - + CAST ( + COUNT ( + 30 ) AS INTEGER ) * + 35 * ( - + 46 ) * - CASE CAST ( + NULLIF ( - ( COALESCE ( - 7, ( + + 8 ) ) ), + + 1 + - 70 * 42 ) AS INTEGER ) WHEN - - 49 * + 21 THEN - 3 - + 99 ELSE NULL END * + 56 + - 29 * 56 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-684
SELECT + 46 DIV 26 + - - 58 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-684
SELECT + 46 / 26 + - - 58 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT + NULLIF ( MIN( - 36 ), 43 )
----
-36

skipif mysql # not compatible
query I rowsort label-685
SELECT + NULLIF ( MIN ( - 36 ), 43 )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-686
SELECT + 90 DIV 2 + + + MIN( DISTINCT + 17 ) DIV + + 63 + 89
----
134

skipif mysql # not compatible
query I rowsort label-686
SELECT + 90 / 2 + + + MIN ( DISTINCT + 17 ) / + + 63 + 89
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT - 87 + - - COUNT( * ) + 24 + + 25 - 17 + + 86 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-687
SELECT - 87 + - - COUNT ( * ) + 24 + + 25 - 17 + + 86 AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-688
SELECT ALL COUNT( ALL + 87 ) DIV 97 col2
----
0

skipif mysql # not compatible
query I rowsort label-688
SELECT ALL COUNT ( ALL + 87 ) / 97 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-689
SELECT + COUNT( * ) * + 17 DIV + 67 + - 21 AS col1, COUNT( + - 2 ) + ( - + SUM( 89 ) ) AS col1
----
-21
-88

skipif mysql # not compatible
query II rowsort label-689
SELECT + COUNT ( * ) * + 17 / + 67 + - 21 AS col1, COUNT ( + - 2 ) + ( - + SUM ( 89 ) ) AS col1
----
-21
-88

query I rowsort
SELECT ALL + COALESCE ( + + 70, 46 * + 89 ) AS col2
----
70

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

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT COUNT ( * ) / + 44 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-692
SELECT ALL ( 97 ) * - + 74 AS col0, CAST( NULL AS SIGNED ) col1
----
-7178
NULL

skipif mysql # not compatible
query II rowsort label-692
SELECT ALL ( 97 ) * - + 74 AS col0, CAST ( NULL AS INTEGER ) col1
----
-7178
NULL

query I rowsort
SELECT + 34 + + + 58
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT ALL COALESCE ( + 18, - 84, - COUNT( ALL - 12 ) ) * COUNT( * ) - - ( - 12 )
----
6

skipif mysql # not compatible
query I rowsort label-694
SELECT ALL COALESCE ( + 18, - 84, - COUNT ( ALL - 12 ) ) * COUNT ( * ) - - ( - 12 )
----
6

query II rowsort
SELECT ALL + 62 AS col2, - 12
----
62
-12

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

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

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

skipif mysql # not compatible
query I rowsort label-697
SELECT + - 71 / 72
----
0

query II rowsort
SELECT - - 29 * + + 25 + - - 57 AS col2, + 99
----
782
99

query I rowsort
SELECT ALL + + 10 col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-700
SELECT - + COALESCE ( - 35, - 81 ) * 40 + + 82 * + COUNT( * ) AS col0, - 43 * 77
----
1482
-3311

skipif mysql # not compatible
query II rowsort label-700
SELECT - + COALESCE ( - 35, - 81 ) * 40 + + 82 * + COUNT ( * ) AS col0, - 43 * 77
----
1482
-3311

query I rowsort
SELECT ALL - 58 * + - 7 + 55 AS col2
----
461

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT + NULLIF ( 92, + 27 ) + - ( ( + 12 ) ) - COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-702
SELECT + NULLIF ( 92, + 27 ) + - ( ( + 12 ) ) - COUNT ( * ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT NULLIF ( - NULLIF ( - COUNT( * ), - 73 ), - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-703
SELECT NULLIF ( - NULLIF ( - COUNT ( * ), - 73 ), - 29 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT + 20 * SUM( ALL + 44 )
----
880

skipif mysql # not compatible
query I rowsort label-704
SELECT + 20 * SUM ( ALL + 44 )
----
880

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT - - COUNT( * ) + COUNT( * ) + + + ( 47 ) - - + 31 col1
----
80

skipif mysql # not compatible
query I rowsort label-706
SELECT - - COUNT ( * ) + COUNT ( * ) + + + ( 47 ) - - + 31 col1
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-707
SELECT 75, COUNT( * ) * - ( - CASE - 82 WHEN - 38 THEN + + COUNT( * ) WHEN 21 - + - 12 * ( COUNT( * ) ) THEN 1 ELSE NULL END ) AS col2
----
75
NULL

skipif mysql # not compatible
query II rowsort label-707
SELECT 75, COUNT ( * ) * - ( - CASE - 82 WHEN - 38 THEN + + COUNT ( * ) WHEN 21 - + - 12 * ( COUNT ( * ) ) THEN 1 ELSE NULL END ) AS col2
----
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT + CASE ( + 22 ) WHEN 73 THEN NULL ELSE + + 57 * + COUNT( * ) - - - 44 END * + SUM( ALL + - 67 )
----
-871

skipif mysql # not compatible
query I rowsort label-708
SELECT + CASE ( + 22 ) WHEN 73 THEN NULL ELSE + + 57 * + COUNT ( * ) - - - 44 END * + SUM ( ALL + - 67 )
----
-871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-709
SELECT - CAST( MAX( - 2 ) AS SIGNED ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-709
SELECT - CAST ( MAX ( - 2 ) AS INTEGER ) AS col0
----
2

query I rowsort
SELECT ALL - 84 + 8
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT 95 + - - 29 - - COUNT( DISTINCT ( - 0 ) ) * - + NULLIF ( 20, - 96 ) * 26 - + COUNT( * ) AS col1
----
-397

skipif mysql # not compatible
query I rowsort label-711
SELECT 95 + - - 29 - - COUNT ( DISTINCT ( - 0 ) ) * - + NULLIF ( 20, - 96 ) * 26 - + COUNT ( * ) AS col1
----
-397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-712
SELECT ALL + ( + 53 ) * CAST( NULL AS SIGNED ) * + 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL + ( + 53 ) * CAST ( NULL AS INTEGER ) * + 60 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-713
SELECT ALL 1 * - 24 DIV + 11 + + CAST( + - 67 AS SIGNED ) * - 91
----
6095

skipif mysql # not compatible
query I rowsort label-713
SELECT ALL 1 * - 24 / + 11 + + CAST ( + - 67 AS INTEGER ) * - 91
----
6095

query I rowsort
SELECT ALL 6 + - 43
----
-37

query II rowsort
SELECT + 70 AS col0, - 9 AS col1
----
70
-9

query I rowsort
SELECT ALL 18 - - 87 col0
----
105

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

skipif mysql # not compatible
query I rowsort label-717
SELECT 83 * - COUNT ( DISTINCT + 69 ) AS col2
----
-83

query I rowsort
SELECT 99 + - 47
----
52

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

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

query I rowsort
SELECT 73 * + - NULLIF ( 92, + + ( + - 60 ) * NULLIF ( 71, 44 ) * - COALESCE ( - - 76, - 94 * - + 22 ) + - 46 + - 73 - - ( - ( - 95 ) ) * - - 91 * + 9 + 9 * 48 * + - 75 ) AS col0
----
-6716

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT 82 * + MIN( ALL + 62 ) AS col1
----
5084

skipif mysql # not compatible
query I rowsort label-721
SELECT 82 * + MIN ( ALL + 62 ) AS col1
----
5084

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT - NULLIF ( ( ( - - COUNT( * ) ) ), 96 ) * - 54 + + + 50 + - 94 + NULLIF ( - 18, - COUNT( + 71 ) + - + 71 ) * ( COUNT( * ) ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-722
SELECT - NULLIF ( ( ( - - COUNT ( * ) ) ), 96 ) * - 54 + + + 50 + - 94 + NULLIF ( - 18, - COUNT ( + 71 ) + - + 71 ) * ( COUNT ( * ) ) col2
----
-8

query I rowsort
SELECT DISTINCT - CASE 91 WHEN + 17 THEN 59 END
----
NULL

query I rowsort
SELECT DISTINCT + 3 * + - 37 * - NULLIF ( COALESCE ( 31, 69 ), 83 + 45 + 25 + - AVG ( - 12 ) * - ( + 89 ) ) AS col2
----
3441

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT 98 * NULLIF ( - 28, + + 90 * - 37 - 57 + - - COUNT( * ) ) AS col2
----
-2744

skipif mysql # not compatible
query I rowsort label-727
SELECT 98 * NULLIF ( - 28, + + 90 * - 37 - 57 + - - COUNT ( * ) ) AS col2
----
-2744

query II rowsort
SELECT ALL + 86 * + 39 AS col1, - ( - 65 ) * + + 9 AS col1
----
3354
585

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-730
SELECT DISTINCT - CAST( - 99 AS SIGNED ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-730
SELECT DISTINCT - CAST ( - 99 AS INTEGER ) AS col2
----
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT 84 * - + COUNT( DISTINCT - 70 ) + - 91 AS col0
----
-175

skipif mysql # not compatible
query I rowsort label-732
SELECT 84 * - + COUNT ( DISTINCT - 70 ) + - 91 AS col0
----
-175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-733
SELECT ALL 21 + 44 * + 73 * - 61 * + 36 DIV COUNT( * )
----
-7053531

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL 21 + 44 * + 73 * - 61 * + 36 / COUNT ( * )
----
-7053531

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT DISTINCT - 82 + 96 + 18 + - MIN( DISTINCT ( - 30 ) ) + + 98 AS col1
----
160

skipif mysql # not compatible
query I rowsort label-734
SELECT DISTINCT - 82 + 96 + 18 + - MIN ( DISTINCT ( - 30 ) ) + + 98 AS col1
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT ALL - 49 + - 75 + + MAX( + 95 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL - 49 + - 75 + + MAX ( + 95 ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT + 13 * + 10 + 18 + - MIN( - 2 ) * - - 89 + - - 35 + + 76 * 64
----
5225

skipif mysql # not compatible
query I rowsort label-736
SELECT + 13 * + 10 + 18 + - MIN ( - 2 ) * - - 89 + - - 35 + + 76 * 64
----
5225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-737
SELECT ALL + COUNT( * ) DIV - + MIN( - - ( 44 ) ) + - 51 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL + COUNT ( * ) / - + MIN ( - - ( 44 ) ) + - 51 AS col1
----
-51

query I rowsort
SELECT ALL - ( - 47 ) + + 61 AS col1
----
108

query I rowsort
SELECT DISTINCT + 4 * + 77 + - 19 - + 92
----
197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-740
SELECT ALL - 88 + COUNT( * ) DIV + 70 col0
----
-88

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL - 88 + COUNT ( * ) / + 70 col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT - COUNT( ALL + + 56 ) * - ( + 69 ) + + 34 + - 56 + - - 12 * - 71 * + 79 * 25 * - - COUNT( * ) * - 2 * - - 8 + - 70 + 4 * - 78 AS col1
----
26922865

skipif mysql # not compatible
query I rowsort label-741
SELECT - COUNT ( ALL + + 56 ) * - ( + 69 ) + + 34 + - 56 + - - 12 * - 71 * + 79 * 25 * - - COUNT ( * ) * - 2 * - - 8 + - 70 + 4 * - 78 AS col1
----
26922865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-742
SELECT ALL CAST( NULL AS SIGNED ) + 14 - + 55 + 73 * - 94 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-742
SELECT ALL CAST ( NULL AS INTEGER ) + 14 - + 55 + 73 * - 94 * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 32 + - 28
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-744
SELECT ALL 33 * + + CAST( NULL AS SIGNED ) / + 19 * + AVG ( 59 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL 33 * + + CAST ( NULL AS INTEGER ) / + 19 * + AVG ( 59 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT - + NULLIF ( + + COUNT( * ), + - MIN( - + 75 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-745
SELECT - + NULLIF ( + + COUNT ( * ), + - MIN ( - + 75 ) ) AS col2
----
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-747
SELECT DISTINCT + COALESCE ( COUNT( * ), - 89 ) - 6 DIV + 77 + 74
----
75

skipif mysql # not compatible
query I rowsort label-747
SELECT DISTINCT + COALESCE ( COUNT ( * ), - 89 ) - 6 / + 77 + 74
----
75

query I rowsort
SELECT DISTINCT - COALESCE ( 46, 8 )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-749
SELECT ALL - + COALESCE ( 92, - CAST( + 24 AS SIGNED ) ) - + 40
----
-132

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL - + COALESCE ( 92, - CAST ( + 24 AS INTEGER ) ) - + 40
----
-132

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-752
SELECT CAST( COUNT( + COALESCE ( 98, - 8 ) ) AS SIGNED ) * 69 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-752
SELECT CAST ( COUNT ( + COALESCE ( 98, - 8 ) ) AS INTEGER ) * 69 AS col1
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-753
SELECT DISTINCT + 72 * 54 DIV + - 34
----
-114

skipif mysql # not compatible
query I rowsort label-753
SELECT DISTINCT + 72 * 54 / + - 34
----
-114

query II rowsort
SELECT ALL 49 AS col2, 81
----
49
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-755
SELECT 8 * 32 * CAST( + + COUNT( * ) AS SIGNED ) * - - COUNT( ALL + 71 ) * 47 col2
----
12032

skipif mysql # not compatible
query I rowsort label-755
SELECT 8 * 32 * CAST ( + + COUNT ( * ) AS INTEGER ) * - - COUNT ( ALL + 71 ) * 47 col2
----
12032

query I rowsort
SELECT DISTINCT 64 * - + 59 col0
----
-3776

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-757
SELECT 27 DIV SUM( DISTINCT + + 28 ) + + + NULLIF ( 8, - COUNT( * ) * COUNT( * ) ) * + 95 * - + 45
----
-34200

skipif mysql # not compatible
query I rowsort label-757
SELECT 27 / SUM ( DISTINCT + + 28 ) + + + NULLIF ( 8, - COUNT ( * ) * COUNT ( * ) ) * + 95 * - + 45
----
-34200

query I rowsort
SELECT 33 * + 33
----
1089

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT ALL - 29 * 63 + + MAX( DISTINCT - 2 ) + + 68
----
-1761

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL - 29 * 63 + + MAX ( DISTINCT - 2 ) + + 68
----
-1761

query I rowsort
SELECT 18 * - 59 + - 60 * - 20 col1
----
138

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

skipif mysql # not compatible
query I rowsort label-761
SELECT SUM ( + 21 )
----
21

query I rowsort
SELECT 43 * - 34
----
-1462

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT - 56 * - COUNT( * ) - 91
----
-35

skipif mysql # not compatible
query I rowsort label-763
SELECT - 56 * - COUNT ( * ) - 91
----
-35

query I rowsort
SELECT ALL + 29 * 69 + - - 19 AS col2
----
2020

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

skipif mysql # not compatible
query I rowsort label-765
SELECT 23 + + - 54 / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-766
SELECT ALL + COUNT( + CAST( - + 85 AS SIGNED ) ) * + 5 + - 27 * - 80
----
2165

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL + COUNT ( + CAST ( - + 85 AS INTEGER ) ) * + 5 + - 27 * - 80
----
2165

query II rowsort
SELECT - + 92 * 8 + - + 93 AS col1, + 28
----
-829
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-768
SELECT ALL + 35 * ( - MIN( DISTINCT - 89 ) ) + + COUNT( * ) + CAST( NULL AS SIGNED ) - + 95 + - - 79 * - - 10 * - + 30 * + 23 + + + 72 * + 6 * + COUNT( * ) * + + 61 + - - ( + 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-768
SELECT ALL + 35 * ( - MIN ( DISTINCT - 89 ) ) + + COUNT ( * ) + CAST ( NULL AS INTEGER ) - + 95 + - - 79 * - - 10 * - + 30 * + 23 + + + 72 * + 6 * + COUNT ( * ) * + + 61 + - - ( + 38 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT ALL + 52 + - - MIN( 16 )
----
68

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL + 52 + - - MIN ( 16 )
----
68

query II rowsort
SELECT + - 29 AS col0, - 98 - + - 27 + - 33 AS col1
----
-29
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-771
SELECT ALL - - 30 + - + 11 / - + CASE + SUM( 4 ) WHEN - 0 + + + 11 * - 14 + - 80 THEN NULL WHEN COUNT( * ) THEN + 97 ELSE NULL END AS col1, ( - ( 37 ) ) + - 77 + 51 + + CAST( - 79 AS SIGNED ) * + COUNT( * ) * + COUNT( * ) * - CAST( - 77 AS SIGNED ) * - ( 92 ) AS col0
----
NULL
559573

skipif mysql # not compatible
query II rowsort label-771
SELECT ALL - - 30 + - + 11 / - + CASE + SUM ( 4 ) WHEN - 0 + + + 11 * - 14 + - 80 THEN NULL WHEN COUNT ( * ) THEN + 97 ELSE NULL END AS col1, ( - ( 37 ) ) + - 77 + 51 + + CAST ( - 79 AS INTEGER ) * + COUNT ( * ) * + COUNT ( * ) * - CAST ( - 77 AS INTEGER ) * - ( 92 ) AS col0
----
NULL
559573

query I rowsort
SELECT + ( + 18 ) * - ( + - 96 ) + 8 AS col2
----
1736

query I rowsort
SELECT ALL + 8 * - 42 AS col2
----
-336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-774
SELECT DISTINCT - COUNT( ALL - - 33 ) + - 95 + - - 49 * 27 * - + 72 + + + 42 DIV - 91 + + - 94
----
-95446

skipif mysql # not compatible
query I rowsort label-774
SELECT DISTINCT - COUNT ( ALL - - 33 ) + - 95 + - - 49 * 27 * - + 72 + + + 42 / - 91 + + - 94
----
-95446

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

query I rowsort
SELECT 68 + + 26 - 55 + - 28
----
11

query I rowsort
SELECT - 78 * 76 AS col1
----
-5928

query I rowsort
SELECT + + 31 * 93
----
2883

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT ALL + CASE CASE - - NULLIF ( SUM( - 24 ), + 16 ) WHEN - 27 + 98 + 0 + - 46 THEN NULL WHEN 70 THEN - - 52 ELSE 40 END WHEN 55 THEN NULL WHEN 2 THEN - 59 WHEN 56 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL + CASE CASE - - NULLIF ( SUM ( - 24 ), + 16 ) WHEN - 27 + 98 + 0 + - 46 THEN NULL WHEN 70 THEN - - 52 ELSE 40 END WHEN 55 THEN NULL WHEN 2 THEN - 59 WHEN 56 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-780
SELECT ALL - - 84 DIV + 79
----
1

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL - - 84 / + 79
----
1

query I rowsort
SELECT + 41 + - + 43
----
-2

query I rowsort
SELECT - 80 * - 96 AS col1
----
7680

query II rowsort
SELECT ALL 78, 53 AS col1
----
78
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-784
SELECT - ( - - CAST( + + COUNT( + NULLIF ( 45, + 13 ) ) AS SIGNED ) ) * - 30 + 46 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-784
SELECT - ( - - CAST ( + + COUNT ( + NULLIF ( 45, + 13 ) ) AS INTEGER ) ) * - 30 + 46 AS col0
----
76

query II rowsort
SELECT 76 AS col1, - 22 col0
----
76
-22

query II rowsort
SELECT 49, - 68 AS col1
----
49
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT + MAX( ALL - 40 ) + + 42 + + 75 * + MIN( DISTINCT - 64 ) * 17 * - COALESCE ( - 50, + COUNT( * ) ) col1
----
-4079998

skipif mysql # not compatible
query I rowsort label-787
SELECT + MAX ( ALL - 40 ) + + 42 + + 75 * + MIN ( DISTINCT - 64 ) * 17 * - COALESCE ( - 50, + COUNT ( * ) ) col1
----
-4079998

query I rowsort
SELECT ALL + 30 * + + 42 * + - 85
----
-107100

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT DISTINCT MIN( ALL 0 ) + + 83 * COUNT( * ) * - - 19 * + - 6
----
-9462

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT MIN ( ALL 0 ) + + 83 * COUNT ( * ) * - - 19 * + - 6
----
-9462

query I rowsort
SELECT DISTINCT 40 + 36 + - - 57 + + - 2 * - 75
----
283

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT ALL COUNT( * ) + + 66 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL COUNT ( * ) + + 66 AS col2
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-792
SELECT - NULLIF ( - 79, - 35 / 93 ), + 39 * + MIN( ( 79 ) ) AS col1
----
79
3081

skipif mysql # not compatible
query II rowsort label-792
SELECT - NULLIF ( - 79, - 35 / 93 ), + 39 * + MIN ( ( 79 ) ) AS col1
----
79
3081

query I rowsort
SELECT - 87 * - - 98 * ( + + 42 ) AS col2
----
-358092

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

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

query I rowsort
SELECT DISTINCT 10 * + - 95
----
-950

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT ALL + 7 * - MAX( + ( - ( + 88 ) ) ) + COUNT( * ) + - - 15 * + - NULLIF ( - 0, - - 52 + - 18 - CASE 6 WHEN + 11 + 97 THEN - 72 WHEN 80 - + 41 * + 91 * - 83 THEN NULL ELSE - COUNT( ALL 31 ) END * - 82 * + - 27 + 73 )
----
617

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL + 7 * - MAX ( + ( - ( + 88 ) ) ) + COUNT ( * ) + - - 15 * + - NULLIF ( - 0, - - 52 + - 18 - CASE 6 WHEN + 11 + 97 THEN - 72 WHEN 80 - + 41 * + 91 * - 83 THEN NULL ELSE - COUNT ( ALL 31 ) END * - 82 * + - 27 + 73 )
----
617

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

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

query I rowsort
SELECT ALL 7 * + 26 + - 61
----
121

query II rowsort
SELECT ALL + - 43, + 90 AS col0
----
-43
90

query I rowsort
SELECT ALL 56 * 16 AS col1
----
896

onlyif mysql # DIV for integer division: 
query I rowsort label-801
SELECT DISTINCT + + 62 * - 39 + CASE + 98 WHEN 9 THEN + ( 91 ) ELSE + ( 3 ) + + 52 END + 87 DIV - 55
----
-2364

skipif mysql # not compatible
query I rowsort label-801
SELECT DISTINCT + + 62 * - 39 + CASE + 98 WHEN 9 THEN + ( 91 ) ELSE + ( 3 ) + + 52 END + 87 / - 55
----
-2364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-802
SELECT ALL - - CAST( + 67 AS SIGNED ) * + 6 * 20 + - - 3 AS col1
----
8043

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL - - CAST ( + 67 AS INTEGER ) * + 6 * 20 + - - 3 AS col1
----
8043

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

skipif mysql # not compatible
query II rowsort label-803
SELECT COUNT ( * ), - 43 AS col2
----
1
-43

query II rowsort
SELECT + + 41 - - 74 AS col0, + 55
----
115
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-805
SELECT + - CASE - CAST( COUNT( DISTINCT 74 ) AS SIGNED ) WHEN - 64 THEN NULL WHEN + 29 THEN NULL WHEN 78 + + 98 * + 49 / + COALESCE ( 94, 30 ) * - ( - 98 ) * + + COUNT( * ) + 65 THEN - 17 END / - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-805
SELECT + - CASE - CAST ( COUNT ( DISTINCT 74 ) AS INTEGER ) WHEN - 64 THEN NULL WHEN + 29 THEN NULL WHEN 78 + + 98 * + 49 / + COALESCE ( 94, 30 ) * - ( - 98 ) * + + COUNT ( * ) + 65 THEN - 17 END / - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT - - 60 * + COUNT( * ) - 55 col2
----
5

skipif mysql # not compatible
query I rowsort label-806
SELECT - - 60 * + COUNT ( * ) - 55 col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT DISTINCT - 63 * - - COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-807
SELECT DISTINCT - 63 * - - COUNT ( * ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT ALL 11 * + 34 - 7 + + MIN( DISTINCT - - 46 )
----
413

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL 11 * + 34 - 7 + + MIN ( DISTINCT - - 46 )
----
413

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT DISTINCT - 47 * - COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT - 47 * - COUNT ( * ) AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-810
SELECT ALL + 52 AS col1, + CAST( NULL AS SIGNED ) * COUNT( * )
----
52
NULL

skipif mysql # not compatible
query II rowsort label-810
SELECT ALL + 52 AS col1, + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT - COUNT( * ) - + 2 col0
----
-3

skipif mysql # not compatible
query I rowsort label-811
SELECT - COUNT ( * ) - + 2 col0
----
-3

query I rowsort
SELECT ALL - 14 * - 97 col1
----
1358

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-813
SELECT + 55 + + + 52 - - CASE - NULLIF ( + + NULLIF ( - + 41, - - 14 ), - - 36 + - + 56 ) WHEN MIN( ALL + - ( 86 ) ) THEN 68 ELSE 90 DIV + + 13 END - + 48 * 32 AS col0
----
-1423

skipif mysql # not compatible
query I rowsort label-813
SELECT + 55 + + + 52 - - CASE - NULLIF ( + + NULLIF ( - + 41, - - 14 ), - - 36 + - + 56 ) WHEN MIN ( ALL + - ( 86 ) ) THEN 68 ELSE 90 / + + 13 END - + 48 * 32 AS col0
----
-1423

query II rowsort
SELECT ALL 49, 48 AS col1
----
49
48

query I rowsort
SELECT - ( + + 16 ) + + + 49
----
33

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

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

query I rowsort
SELECT ALL - 70 * 91
----
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT - - 64 * - 97 * + - COUNT( * )
----
6208

skipif mysql # not compatible
query I rowsort label-818
SELECT - - 64 * - 97 * + - COUNT ( * )
----
6208

query I rowsort
SELECT - ( + + 92 ) + + 26
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-820
SELECT ALL CAST( - 45 AS SIGNED ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL CAST ( - 45 AS INTEGER ) AS col1
----
-45

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

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

query I rowsort
SELECT DISTINCT ( - + 25 )
----
-25

query I rowsort
SELECT ALL - 72 + 13
----
-59

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

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

query II rowsort
SELECT + 35 * + 96 AS col1, 94 + - 3 * + + 59 * - 45 AS col0
----
3360
8059

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-826
SELECT ALL CAST( 68 AS SIGNED ) col1
----
68

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL CAST ( 68 AS INTEGER ) col1
----
68

query I rowsort
SELECT + 70 + - 20 col0
----
50

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-829
SELECT - 99 - 84 DIV + 80 + COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-829
SELECT - 99 - 84 / + 80 + COUNT ( * )
----
-99

query I rowsort
SELECT - 58 + + 73 col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT - 75 * - NULLIF ( + - 88, - COUNT( * ) ) AS col0
----
-6600

skipif mysql # not compatible
query I rowsort label-831
SELECT - 75 * - NULLIF ( + - 88, - COUNT ( * ) ) AS col0
----
-6600

query I rowsort
SELECT + 34 + 50 * + + 92 AS col2
----
4634

query I rowsort
SELECT DISTINCT - ( - - 70 ) * 63 * - 5
----
22050

query I rowsort
SELECT ALL 63 + - COALESCE ( - 66, - 5 * - 60 )
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-835
SELECT DISTINCT + 81 DIV 1 DIV + COUNT( * ) + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-835
SELECT DISTINCT + 81 / 1 / + COUNT ( * ) + COUNT ( * )
----
82

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

skipif mysql # not compatible
query I rowsort label-836
SELECT - 63 * - - 31 + COUNT ( * ) AS col2
----
-1952

onlyif mysql # DIV for integer division: 
query II rowsort label-837
SELECT ALL - 40 DIV 84 - - 59 AS col0, + 33 * + 31 AS col0
----
59
1023

skipif mysql # not compatible
query II rowsort label-837
SELECT ALL - 40 / 84 - - 59 AS col0, + 33 * + 31 AS col0
----
59
1023

query II rowsort
SELECT ( - 15 ) + + 94 AS col1, + 82 * - 94 + + 55
----
79
-7653

query II rowsort
SELECT ( 46 ) * 29 col1, 15 AS col2
----
1334
15

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT ALL + COUNT( * ) * - 64 * - 27
----
1728

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL + COUNT ( * ) * - 64 * - 27
----
1728

onlyif mysql # aggregate syntax: 
query II rowsort label-841
SELECT - 60 + - - 21 AS col1, SUM( + 62 ) AS col0
----
-39
62

skipif mysql # not compatible
query II rowsort label-841
SELECT - 60 + - - 21 AS col1, SUM ( + 62 ) AS col0
----
-39
62

query I rowsort
SELECT DISTINCT - + ( + 12 )
----
-12

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

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

query I rowsort
SELECT DISTINCT - - ( - 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT ALL + - 16 + + COUNT( * ) * + MIN( ALL 39 )
----
23

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL + - 16 + + COUNT ( * ) * + MIN ( ALL 39 )
----
23

query I rowsort
SELECT 79 * - - 37 * - 99
----
-289377

onlyif mysql # DIV for integer division: 
query I rowsort label-847
SELECT 98 DIV + COALESCE ( + - 53, + ( + 11 ) * - + 6 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-847
SELECT 98 / + COALESCE ( + - 53, + ( + 11 ) * - + 6 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT DISTINCT 71 + 6 + + 74 + + MIN( ALL + 67 ) col0
----
218

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT 71 + 6 + + 74 + + MIN ( ALL + 67 ) col0
----
218

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

onlyif mysql # aggregate syntax: 
query II rowsort label-850
SELECT ALL 34, 80 * + 91 * + COUNT( * ) AS col2
----
34
7280

skipif mysql # not compatible
query II rowsort label-850
SELECT ALL 34, 80 * + 91 * + COUNT ( * ) AS col2
----
34
7280

query I rowsort
SELECT ALL - 68 * + - 70
----
4760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-852
SELECT 33 * + 70 DIV + ( + COUNT( * ) ) col2
----
2310

skipif mysql # not compatible
query I rowsort label-852
SELECT 33 * + 70 / + ( + COUNT ( * ) ) col2
----
2310

query I rowsort
SELECT ALL + COALESCE ( - 91, + - 72, + 33 * + 54 ) + - + 98 col0
----
-189

query II rowsort
SELECT - 54 AS col0, 79
----
-54
79

onlyif mysql # DIV for integer division: 
query II rowsort label-855
SELECT 23 + - 22 DIV - 12, 50 col1
----
24
50

skipif mysql # not compatible
query II rowsort label-855
SELECT 23 + - 22 / - 12, 50 col1
----
24
50

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-857
SELECT ALL 11 col1, - COUNT( DISTINCT + - 91 ) DIV - 6 * ( - COUNT( * ) ) AS col2
----
11
0

skipif mysql # not compatible
query II rowsort label-857
SELECT ALL 11 col1, - COUNT ( DISTINCT + - 91 ) / - 6 * ( - COUNT ( * ) ) AS col2
----
11
0

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT ALL 39 * + + 93 * + NULLIF ( 50, - 17 / - 76 + 74 + COUNT( * ) + + 75 )
----
181350

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL 39 * + + 93 * + NULLIF ( 50, - 17 / - 76 + 74 + COUNT ( * ) + + 75 )
----
181350

query I rowsort
SELECT 58 + + 47
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-860
SELECT ALL + CAST( NULL AS SIGNED ) / - + 96 * + 95 * COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL + CAST ( NULL AS INTEGER ) / - + 96 * + 95 * COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT SUM( - 88 ) + + ( - + 73 ) + 26 * 42
----
931

skipif mysql # not compatible
query I rowsort label-861
SELECT SUM ( - 88 ) + + ( - + 73 ) + 26 * 42
----
931

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-862
SELECT - - CAST( + 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-862
SELECT - - CAST ( + 12 AS INTEGER )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT DISTINCT - CASE + 94 WHEN 48 THEN COUNT( * ) ELSE NULL END * + AVG ( ALL - 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT - CASE + 94 WHEN 48 THEN COUNT ( * ) ELSE NULL END * + AVG ( ALL - 5 ) AS col2
----
NULL

query I rowsort
SELECT 66 * 52 AS col2
----
3432

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT DISTINCT + 27 * 92 - - + 45 - - 61 * COUNT( * ) * - COUNT( * ) AS col0
----
2468

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT + 27 * 92 - - + 45 - - 61 * COUNT ( * ) * - COUNT ( * ) AS col0
----
2468

query I rowsort
SELECT ALL - 69 * + 19 * + 39 * 96
----
-4908384

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT + 67 * - MAX( + - 29 ) * - 18 - - 62 * 36 AS col0
----
-32742

skipif mysql # not compatible
query I rowsort label-869
SELECT + 67 * - MAX ( + - 29 ) * - 18 - - 62 * 36 AS col0
----
-32742

query I rowsort
SELECT ALL - + ( + - 69 ) col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-871
SELECT ALL - ( + CAST( + 63 AS SIGNED ) ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL - ( + CAST ( + 63 AS INTEGER ) ) AS col1
----
-63

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

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

query I rowsort
SELECT - 46 - + + 66
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-874
SELECT NULLIF ( + NULLIF ( - - COUNT( * ), - 59 * - 80 + - 74 ), 98 ) * - + 31 AS col1, 14
----
-31
14

skipif mysql # not compatible
query II rowsort label-874
SELECT NULLIF ( + NULLIF ( - - COUNT ( * ), - 59 * - 80 + - 74 ), 98 ) * - + 31 AS col1, 14
----
-31
14

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT + COUNT( ALL - ( 49 ) ) * ( - COUNT( * ) ) * - - NULLIF ( + - COALESCE ( 58, - + 56 ), - - 22 + - ( - 91 ) + + + 79 ) * + 66 + - - 16 + + + ( - 80 ) * - 79 + 63 + - 64 * - 14 + 92 - 85
----
11130

skipif mysql # not compatible
query I rowsort label-875
SELECT + COUNT ( ALL - ( 49 ) ) * ( - COUNT ( * ) ) * - - NULLIF ( + - COALESCE ( 58, - + 56 ), - - 22 + - ( - 91 ) + + + 79 ) * + 66 + - - 16 + + + ( - 80 ) * - 79 + 63 + - 64 * - 14 + 92 - 85
----
11130

onlyif mysql # aggregate syntax: 
query II rowsort label-876
SELECT ALL - + 13 AS col1, - MIN( ALL 39 )
----
-13
-39

skipif mysql # not compatible
query II rowsort label-876
SELECT ALL - + 13 AS col1, - MIN ( ALL 39 )
----
-13
-39

query I rowsort
SELECT DISTINCT + 51 + - 7
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-878
SELECT ALL COUNT( ALL - ( 4 ) ) + CAST( 7 AS SIGNED ) col1
----
8

skipif mysql # not compatible
query I rowsort label-878
SELECT ALL COUNT ( ALL - ( 4 ) ) + CAST ( 7 AS INTEGER ) col1
----
8

query I rowsort
SELECT DISTINCT ( + 72 ) + + + 66
----
138

query I rowsort
SELECT ALL - 72 + + 96 AS col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-881
SELECT 17 - + + COALESCE ( + + 57, 3, + - CAST( NULL AS SIGNED ) )
----
-40

skipif mysql # not compatible
query I rowsort label-881
SELECT 17 - + + COALESCE ( + + 57, 3, + - CAST ( NULL AS INTEGER ) )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-882
SELECT CAST( NULL AS DECIMAL ) * - + MAX( - ( - 80 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-882
SELECT CAST ( NULL AS REAL ) * - + MAX ( - ( - 80 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-883
SELECT ALL NULLIF ( - + MAX( DISTINCT 13 ), + 12 ) + - + 4 AS col2, 37
----
-17
37

skipif mysql # not compatible
query II rowsort label-883
SELECT ALL NULLIF ( - + MAX ( DISTINCT 13 ), + 12 ) + - + 4 AS col2, 37
----
-17
37

query I rowsort
SELECT 1 + - ( + + 77 ) AS col0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-885
SELECT CAST( NULL AS SIGNED ) + + - 49 + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-885
SELECT CAST ( NULL AS INTEGER ) + + - 49 + + 2
----
NULL

query I rowsort
SELECT - 27 * - 31 + - - 92 * - 8
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-887
SELECT - CASE + 77 WHEN + 6 THEN NULL ELSE COUNT( * ) + + 64 DIV 10 * + COUNT( * ) END
----
-7

skipif mysql # not compatible
query I rowsort label-887
SELECT - CASE + 77 WHEN + 6 THEN NULL ELSE COUNT ( * ) + + 64 / 10 * + COUNT ( * ) END
----
-7

query I rowsort
SELECT ALL 16 - - 85
----
101

query I rowsort
SELECT 42 * 68
----
2856

query I rowsort
SELECT ALL + 10 - 38
----
-28

query I rowsort
SELECT 52 * 61
----
3172

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

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

query II rowsort
SELECT 61 + + - 91 AS col1, 98 AS col2
----
-30
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-894
SELECT - + 53 + - COALESCE ( - NULLIF ( - 91, 15 + + NULLIF ( ( - 58 ), 51 + - 95 ) ), + MAX( + 61 ) * - - 28 + + + 22 + 65 * - 17 ) * 19 * + AVG ( 14 ) * - NULLIF ( 67, 63 ) + + 94 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-894
SELECT - + 53 + - COALESCE ( - NULLIF ( - 91, 15 + + NULLIF ( ( - 58 ), 51 + - 95 ) ), + MAX ( + 61 ) * - - 28 + + + 22 + 65 * - 17 ) * 19 * + AVG ( 14 ) * - NULLIF ( 67, 63 ) + + 94 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 93 * - 72
----
-6696

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

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

query I rowsort
SELECT - NULLIF ( - 24, - 95 / - 93 - - ( + 82 ) )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-898
SELECT - 96 DIV - - 73 - - 65 * - 59 + - 95 AS col2
----
-3931

skipif mysql # not compatible
query I rowsort label-898
SELECT - 96 / - - 73 - - 65 * - 59 + - 95 AS col2
----
-3931

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT + 17 * + 27 * - + 85 + + 64 * + + MAX( DISTINCT + 69 )
----
-34599

skipif mysql # not compatible
query I rowsort label-899
SELECT + 17 * + 27 * - + 85 + + 64 * + + MAX ( DISTINCT + 69 )
----
-34599

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT ALL + MIN( ALL - 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL + MIN ( ALL - 15 ) AS col0
----
-15

query I rowsort
SELECT DISTINCT + 31 * - - 68 + - 77 AS col2
----
2031

query I rowsort
SELECT ALL + 95 * 57 + - NULLIF ( 39, - 41 + 49 ) + 19 AS col1
----
5395

onlyif mysql # DIV for integer division: 
query I rowsort label-903
SELECT + 4 DIV 32 + - 9
----
-9

skipif mysql # not compatible
query I rowsort label-903
SELECT + 4 / 32 + - 9
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-904
SELECT + 5 DIV - 55 * - CASE - - 64 WHEN 45 THEN + 30 WHEN - 78 THEN + COUNT( * ) ELSE + + 34 END * 73 * MIN( 53 )
----
0

skipif mysql # not compatible
query I rowsort label-904
SELECT + 5 / - 55 * - CASE - - 64 WHEN 45 THEN + 30 WHEN - 78 THEN + COUNT ( * ) ELSE + + 34 END * 73 * MIN ( 53 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT ALL ( + - COUNT( * ) ) * - + 42 * 23 + + - 48 * - 30
----
2406

skipif mysql # not compatible
query I rowsort label-905
SELECT ALL ( + - COUNT ( * ) ) * - + 42 * 23 + + - 48 * - 30
----
2406

query I rowsort
SELECT DISTINCT 83 * - 7 * - + 79 + ( + 26 ) * - ( 9 ) * + 89 + + + 94 + + 93 * - 77 AS col0
----
18006

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT ALL 33 * + 75 + + MAX( - 21 ) + ( + 34 ) AS col1
----
2488

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL 33 * + 75 + + MAX ( - 21 ) + ( + 34 ) AS col1
----
2488

onlyif mysql # DIV for integer division: 
query I rowsort label-908
SELECT DISTINCT ( + 41 ) DIV - + 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-908
SELECT DISTINCT ( + 41 ) / - + 59 AS col0
----
0

query I rowsort
SELECT ALL - 94 * + - 3 + - 79
----
203

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-912
SELECT + 31 AS col1, 80 * - + CAST( NULL AS DECIMAL ) AS col2
----
31
NULL

skipif mysql # not compatible
query II rowsort label-912
SELECT + 31 AS col1, 80 * - + CAST ( NULL AS REAL ) AS col2
----
31
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-913
SELECT DISTINCT + 69, + COUNT( * ) + ( COUNT( * ) ) AS col0
----
69
2

skipif mysql # not compatible
query II rowsort label-913
SELECT DISTINCT + 69, + COUNT ( * ) + ( COUNT ( * ) ) AS col0
----
69
2

query I rowsort
SELECT - 82 * - 71
----
5822

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

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

query I rowsort
SELECT ALL + 75 * + 52 * 9 + - + 80 AS col0
----
35020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-917
SELECT MIN( - + CASE - 80 WHEN CAST( NULL AS SIGNED ) THEN - - 59 + + ( 40 ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-917
SELECT MIN ( - + CASE - 80 WHEN CAST ( NULL AS INTEGER ) THEN - - 59 + + ( 40 ) END ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT + CAST ( 19 AS INTEGER ) AS col1
----
19

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

skipif mysql # not compatible
query I rowsort label-919
SELECT COUNT ( - - 8 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-920
SELECT - NULLIF ( + 89, - NULLIF ( - + CAST( - + CAST( + 66 AS SIGNED ) AS SIGNED ), + 34 + 77 ) ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-920
SELECT - NULLIF ( + 89, - NULLIF ( - + CAST ( - + CAST ( + 66 AS INTEGER ) AS INTEGER ), + 34 + 77 ) ) AS col1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-921
SELECT DISTINCT 75 * - CAST( 97 AS SIGNED )
----
-7275

skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT 75 * - CAST ( 97 AS INTEGER )
----
-7275

onlyif mysql # aggregate syntax: 
query II rowsort label-922
SELECT ALL COUNT( * ), 12 + + CASE + NULLIF ( + COALESCE ( COUNT( * ), + - 31 ), - - 26 + - COUNT( * ) ) WHEN - 7 THEN NULL WHEN - + ( + 17 ) THEN - - COUNT( DISTINCT + ( - 73 ) ) ELSE NULL END + + 93 + - + 10 - + 83 * + 99 * - COUNT( * ) / 14 + - - SUM( ALL - 79 ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-922
SELECT ALL COUNT ( * ), 12 + + CASE + NULLIF ( + COALESCE ( COUNT ( * ), + - 31 ), - - 26 + - COUNT ( * ) ) WHEN - 7 THEN NULL WHEN - + ( + 17 ) THEN - - COUNT ( DISTINCT + ( - 73 ) ) ELSE NULL END + + 93 + - + 10 - + 83 * + 99 * - COUNT ( * ) / 14 + - - SUM ( ALL - 79 ) AS col0
----
1
NULL

query I rowsort
SELECT + 5 * + 89
----
445

query I rowsort
SELECT + 16 * - 24 AS col2
----
-384

onlyif mysql # DIV for integer division: 
query I rowsort label-925
SELECT + 69 DIV + 31 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-925
SELECT + 69 / + 31 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-926
SELECT - 74 * 98 * - COALESCE ( 46, + 97 DIV 56 + - - 59 + - 89 - + 12 )
----
333592

skipif mysql # not compatible
query I rowsort label-926
SELECT - 74 * 98 * - COALESCE ( 46, + 97 / 56 + - - 59 + - 89 - + 12 )
----
333592

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT + 86 + COUNT( * ) + - 83 col0
----
4

skipif mysql # not compatible
query I rowsort label-927
SELECT + 86 + COUNT ( * ) + - 83 col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-928
SELECT + COUNT( * ) - 18 * + - 26 + - - ( - + 55 ) AS col2, + 29 * - 39 AS col0
----
414
-1131

skipif mysql # not compatible
query II rowsort label-928
SELECT + COUNT ( * ) - 18 * + - 26 + - - ( - + 55 ) AS col2, + 29 * - 39 AS col0
----
414
-1131

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-930
SELECT ALL - COALESCE ( + COUNT( * ), + COUNT( * ) ) DIV + 66 col0
----
0

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL - COALESCE ( + COUNT ( * ), + COUNT ( * ) ) / + 66 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT ALL - - 52 * + + SUM( DISTINCT + - ( - 26 ) ) - - 83 + - 88 + + + 66 - + COUNT( * )
----
1412

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL - - 52 * + + SUM ( DISTINCT + - ( - 26 ) ) - - 83 + - 88 + + + 66 - + COUNT ( * )
----
1412

onlyif mysql # DIV for integer division: 
query I rowsort label-932
SELECT DISTINCT 5 DIV 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-932
SELECT DISTINCT 5 / 82 AS col1
----
0

query I rowsort
SELECT ALL + COALESCE ( + - 96, 79 + + - 40 * 16 ) + 6
----
-90

query I rowsort
SELECT - 49 + 4
----
-45

query I rowsort
SELECT - + 29 col2
----
-29

query II rowsort
SELECT + 79 AS col0, + 77
----
79
77

onlyif mysql # DIV for integer division: 
query I rowsort label-937
SELECT - 76 + + - 52 DIV + + ( + + 73 ) + 14 * + - 65 + + + 91 DIV + 17
----
-981

skipif mysql # not compatible
query I rowsort label-937
SELECT - 76 + + - 52 / + + ( + + 73 ) + 14 * + - 65 + + + 91 / + 17
----
-981

query II rowsort
SELECT 52 AS col0, 49 * + 40 + - + 6 AS col2
----
52
1954

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-940
SELECT - + CAST( NULL AS SIGNED ) + + ( 20 ) col0, - 40
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-940
SELECT - + CAST ( NULL AS INTEGER ) + + ( 20 ) col0, - 40
----
NULL
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT ALL 81 / 13 + CASE - - 58 WHEN + 27 THEN + 12 * - - 68 WHEN - COUNT( * ) / + - 66 * - COUNT( * ) + - 78 THEN NULL WHEN 99 * + 34 * + - 90 THEN - ( + 59 ) END, + 31 * + 62 * 31 AS col0
----
NULL
59582

skipif mysql # not compatible
query II rowsort label-941
SELECT ALL 81 / 13 + CASE - - 58 WHEN + 27 THEN + 12 * - - 68 WHEN - COUNT ( * ) / + - 66 * - COUNT ( * ) + - 78 THEN NULL WHEN 99 * + 34 * + - 90 THEN - ( + 59 ) END, + 31 * + 62 * 31 AS col0
----
NULL
59582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-942
SELECT ALL - - COUNT( * ) / + 81 + + CAST( 56 AS SIGNED ) + - 7 * - CASE + 69 WHEN + + CAST( NULL AS SIGNED ) + + 76 THEN NULL WHEN + 68 THEN + 66 / - - 80 * - 75 + - MIN( - 88 ) + 18 + + ( NULLIF ( + NULLIF ( - COUNT( * ), - + 41 ), - NULLIF ( + COUNT( ALL CAST( - 98 AS DECIMAL ) ), - + 3 ) ) ) * - + 20 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL - - COUNT ( * ) / + 81 + + CAST ( 56 AS INTEGER ) + - 7 * - CASE + 69 WHEN + + CAST ( NULL AS INTEGER ) + + 76 THEN NULL WHEN + 68 THEN + 66 / - - 80 * - 75 + - MIN ( - 88 ) + 18 + + ( NULLIF ( + NULLIF ( - COUNT ( * ), - + 41 ), - NULLIF ( + COUNT ( ALL CAST ( - 98 AS REAL ) ), - + 3 ) ) ) * - + 20 END AS col0
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-945
SELECT ALL + 81 DIV + 95 - - ( + + ( 88 ) )
----
88

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL + 81 / + 95 - - ( + + ( 88 ) )
----
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT - 88 * + ( - CASE + SUM( + 80 ) WHEN + + 39 THEN - COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-947
SELECT - 88 * + ( - CASE + SUM ( + 80 ) WHEN + + 39 THEN - COUNT ( * ) END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-948
SELECT - 76 * CASE + ( 12 ) WHEN + 70 - + CAST( NULL AS SIGNED ) + - 80 THEN + - 4 END - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-948
SELECT - 76 * CASE + ( 12 ) WHEN + 70 - + CAST ( NULL AS INTEGER ) + - 80 THEN + - 4 END - 95
----
NULL

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

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

query I rowsort
SELECT ( + CASE 68 WHEN + 29 THEN NULL ELSE - 55 END ) AS col2
----
-55

query I rowsort
SELECT - 52 * ( - - 84 )
----
-4368

query I rowsort
SELECT ALL 13 * - + 1 - - NULLIF ( 97, 2 ) AS col2
----
84

query I rowsort
SELECT ALL + 37 * 92 * 7 AS col2
----
23828

query I rowsort
SELECT - 5 - + 44
----
-49

query II rowsort
SELECT 32 * + 33, 9 AS col1
----
1056
9

onlyif mysql # aggregate syntax: 
query II rowsort label-956
SELECT 68 * - - 73, COUNT( * ) AS col1
----
4964
1

skipif mysql # not compatible
query II rowsort label-956
SELECT 68 * - - 73, COUNT ( * ) AS col1
----
4964
1

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

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

query I rowsort
SELECT 51 + - 44
----
7

query I rowsort
SELECT ALL 57 * + 48
----
2736

query I rowsort
SELECT 58 * - 34 * + 83
----
-163676

query I rowsort
SELECT DISTINCT 92 * + + 84
----
7728

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT ALL 54 * + + COUNT( * ) * + 27
----
1458

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL 54 * + + COUNT ( * ) * + 27
----
1458

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT DISTINCT 12 + - 34 * 72 + + - ( SUM( ALL + + 37 ) ) + - + COUNT( * ) col2
----
-2474

skipif mysql # not compatible
query I rowsort label-963
SELECT DISTINCT 12 + - 34 * 72 + + - ( SUM ( ALL + + 37 ) ) + - + COUNT ( * ) col2
----
-2474

query I rowsort
SELECT ALL - 90 + + - 96
----
-186

query I rowsort
SELECT ALL + 15 + - 12 AS col1
----
3

query I rowsort
SELECT 7 + - 95 col1
----
-88

query I rowsort
SELECT + 17 * + + 11 - + 9
----
178

onlyif mysql # DIV for integer division: 
query I rowsort label-968
SELECT ALL + 66 DIV + - 93
----
0

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL + 66 / + - 93
----
0

query I rowsort
SELECT ALL 96 + - - 39 col2
----
135

query I rowsort
SELECT ALL - 97 + - + ( + 2 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT ALL - + ( - MAX( - 53 ) ) + + 91 + + 20 * + + 18
----
398

skipif mysql # not compatible
query I rowsort label-971
SELECT ALL - + ( - MAX ( - 53 ) ) + + 91 + + 20 * + + 18
----
398

onlyif mysql # DIV for integer division: 
query I rowsort label-972
SELECT ALL 23 DIV - 12 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL 23 / - 12 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-973
SELECT + 70 DIV - + 74 * + 11 + 97
----
97

skipif mysql # not compatible
query I rowsort label-973
SELECT + 70 / - + 74 * + 11 + 97
----
97

query I rowsort
SELECT - 61 * 72 * + - 57 * + 75 + - 11 col2
----
18775789

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

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

query I rowsort
SELECT 17 + 88 * + 79 col1
----
6969

query II rowsort
SELECT DISTINCT 0 * 29, - 88 AS col0
----
0
-88

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

skipif mysql # not compatible
query I rowsort label-978
SELECT 50 / + 43 + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT COALESCE ( + 99, - 0 * + 17 ) * + 77 AS col1
----
7623

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-981
SELECT ALL - CAST( - 62 AS SIGNED ) DIV + 11 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-981
SELECT ALL - CAST ( - 62 AS INTEGER ) / + 11 AS col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-982
SELECT SUM( DISTINCT + 1 ) * + + 45 * + - ( - + 61 ) + + 2 + + 27 + - COUNT( * ) DIV 82
----
2774

skipif mysql # not compatible
query I rowsort label-982
SELECT SUM ( DISTINCT + 1 ) * + + 45 * + - ( - + 61 ) + + 2 + + 27 + - COUNT ( * ) / 82
----
2774

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT + MAX( + + 35 ) * - 30 + 72 col0
----
-978

skipif mysql # not compatible
query I rowsort label-983
SELECT + MAX ( + + 35 ) * - 30 + 72 col0
----
-978

query I rowsort
SELECT ALL + 42 * - 94
----
-3948

query I rowsort
SELECT 58 + + 24
----
82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT ALL MIN( - 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL MIN ( - 20 ) AS col2
----
-20

query I rowsort
SELECT DISTINCT - 88 + + - 71 AS col2
----
-159

query I rowsort
SELECT - 52 - + 55 col0
----
-107

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT + 89 * + + ( + COUNT( * ) ) + + - ( - MIN( - 18 ) )
----
71

skipif mysql # not compatible
query I rowsort label-991
SELECT + 89 * + + ( + COUNT ( * ) ) + + - ( - MIN ( - 18 ) )
----
71

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-993
SELECT ALL - - 31 + + + 64 + + 94 + 13 DIV 52
----
189

skipif mysql # not compatible
query I rowsort label-993
SELECT ALL - - 31 + + + 64 + + 94 + 13 / 52
----
189

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-994
SELECT - - ( - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-994
SELECT - - ( - CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-995
SELECT COUNT( DISTINCT 14 ) + COUNT( DISTINCT + + 66 ) + 47 * 5 + - + 7 AS col1, - 1 AS col1
----
230
-1

skipif mysql # not compatible
query II rowsort label-995
SELECT COUNT ( DISTINCT 14 ) + COUNT ( DISTINCT + + 66 ) + 47 * 5 + - + 7 AS col1, - 1 AS col1
----
230
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT DISTINCT + 78 + 8 * + MAX( DISTINCT - 44 ) + - 28
----
-302

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT + 78 + 8 * + MAX ( DISTINCT - 44 ) + - 28
----
-302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-997
SELECT DISTINCT + CAST( NULLIF ( 16, - + ( + - COUNT( * ) ) + COUNT( * ) * + + CAST( NULL AS SIGNED ) * ( - 17 ) - - 8 ) AS SIGNED ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-997
SELECT DISTINCT + CAST ( NULLIF ( 16, - + ( + - COUNT ( * ) ) + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * ( - 17 ) - - 8 ) AS INTEGER ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT ALL - COUNT( * ) + + - 95 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-998
SELECT ALL - COUNT ( * ) + + - 95 AS col1
----
-96

query I rowsort
SELECT + ( - 53 ) * + NULLIF ( - + 37, - 89 )
----
1961

query II rowsort
SELECT + ( 67 ), 29 - 90 col0
----
67
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT SUM( + 78 ) + + + 25 + - 51 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-1001
SELECT SUM ( + 78 ) + + + 25 + - 51 AS col1
----
52

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

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL 30 - CAST ( NULL AS INTEGER ) col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1004
SELECT DISTINCT - COALESCE ( 65, + MAX( ALL + - 21 ) ) - COUNT( * ) AS col1, 17
----
-66
17

skipif mysql # not compatible
query II rowsort label-1004
SELECT DISTINCT - COALESCE ( 65, + MAX ( ALL + - 21 ) ) - COUNT ( * ) AS col1, 17
----
-66
17

query I rowsort
SELECT 84 * + 57 * - + 21 AS col0
----
-100548

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT CASE 32 WHEN - 48 * 99 + + + 84 THEN NULL WHEN ( + - 87 ) * - 30 * + 48 * 12 THEN NULL WHEN - 50 THEN + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1006
SELECT CASE 32 WHEN - 48 * 99 + + + 84 THEN NULL WHEN ( + - 87 ) * - 30 * + 48 * 12 THEN NULL WHEN - 50 THEN + + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL - 27 * 44 - + - 70 AS col1
----
-1118

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1009
SELECT + COALESCE ( - SUM( + 38 ), - + 68, - + 64 - - 49 * - 22 - + 59 ) AS col1, + 31 + - 34 + + - 14 + CASE - 43 WHEN - CAST( 94 AS SIGNED ) THEN - - 26 WHEN + + 17 THEN - 42 END + - 49 + + MAX( - 72 ) + - ( + 5 )
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-1009
SELECT + COALESCE ( - SUM ( + 38 ), - + 68, - + 64 - - 49 * - 22 - + 59 ) AS col1, + 31 + - 34 + + - 14 + CASE - 43 WHEN - CAST ( 94 AS INTEGER ) THEN - - 26 WHEN + + 17 THEN - 42 END + - 49 + + MAX ( - 72 ) + - ( + 5 )
----
-38
NULL

query I rowsort
SELECT + 76 * + 60 AS col0
----
4560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1011
SELECT ALL + COUNT( CAST( - + 37 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL + COUNT ( CAST ( - + 37 AS INTEGER ) ) AS col0
----
1

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

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

query I rowsort
SELECT + 52 * + + 49 AS col0
----
2548

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1015
SELECT COUNT( * ), - COUNT( DISTINCT - + COALESCE ( - + 3, - 68 * CAST( + - 91 AS SIGNED ) * 8 ) ) + + 87 * - - 66 col0
----
1
5741

skipif mysql # not compatible
query II rowsort label-1015
SELECT COUNT ( * ), - COUNT ( DISTINCT - + COALESCE ( - + 3, - 68 * CAST ( + - 91 AS INTEGER ) * 8 ) ) + + 87 * - - 66 col0
----
1
5741

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT ALL 81 * - - ( + COUNT( * ) ) * - - COUNT( * ) - ( ( 35 ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL 81 * - - ( + COUNT ( * ) ) * - - COUNT ( * ) - ( ( 35 ) ) AS col1
----
46

query I rowsort
SELECT ALL 17 * + 8 + - 92
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT + COUNT( * ) + - + 84 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-1018
SELECT + COUNT ( * ) + - + 84 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT ALL 66 * 80 * + + 53 + + - 81 * + COUNT( * ) AS col2
----
279759

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL 66 * 80 * + + 53 + + - 81 * + COUNT ( * ) AS col2
----
279759

query I rowsort
SELECT DISTINCT + COALESCE ( - + ( + 38 ), - - ( - 39 ), 73 ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT ALL 4 * + 16 + + 72 * 98 * COUNT( * ) * - 60
----
-423296

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL 4 * + 16 + + 72 * 98 * COUNT ( * ) * - 60
----
-423296

query I rowsort
SELECT - ( + 77 ) - + 3 * + + 35 AS col1
----
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-1023
SELECT - ( + ( 33 ) ) DIV + CASE + - 69 WHEN 1 DIV + 62 - - 4 THEN - 52 ELSE - 68 + - 4 END col1
----
0

skipif mysql # not compatible
query I rowsort label-1023
SELECT - ( + ( 33 ) ) / + CASE + - 69 WHEN 1 / + 62 - - 4 THEN - 52 ELSE - 68 + - 4 END col1
----
0

query I rowsort
SELECT 96 * - + 81 * - 69 * + 58 + + - 19 - + + 89
----
31119444

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1025
SELECT ALL - - CAST( + CAST( - 93 AS DECIMAL ) AS SIGNED ) + - 16 col2
----
-109

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL - - CAST ( + CAST ( - 93 AS REAL ) AS INTEGER ) + - 16 col2
----
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1026
SELECT DISTINCT + - COUNT( * ) DIV + SUM( + 11 ) + MAX( + + 54 ) * + + 57 AS col2
----
3078

skipif mysql # not compatible
query I rowsort label-1026
SELECT DISTINCT + - COUNT ( * ) / + SUM ( + 11 ) + MAX ( + + 54 ) * + + 57 AS col2
----
3078

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1027
SELECT - + 21 DIV - NULLIF ( - MAX( DISTINCT - 49 ), - 97 ) * 54 + 15 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-1027
SELECT - + 21 / - NULLIF ( - MAX ( DISTINCT - 49 ), - 97 ) * 54 + 15 AS col2
----
15

query I rowsort
SELECT ALL + 99 * + - ( + - 35 ) * - + 4 * - + 17 AS col0
----
235620

query I rowsort
SELECT DISTINCT + 66 * + 23 AS col2
----
1518

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT ALL COALESCE ( - 97, + + COUNT( * ) )
----
-97

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL COALESCE ( - 97, + + COUNT ( * ) )
----
-97

query I rowsort
SELECT - + 44 * + - 5 * 51
----
11220

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT ALL - - COUNT( * ) - - - 7 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL - - COUNT ( * ) - - - 7 AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1033
SELECT DISTINCT + 55 AS col0, CAST( 85 AS SIGNED ) * + - 50 + + 81 * - 4 * + 45
----
55
-18830

skipif mysql # not compatible
query II rowsort label-1033
SELECT DISTINCT + 55 AS col0, CAST ( 85 AS INTEGER ) * + - 50 + + 81 * - 4 * + 45
----
55
-18830

query I rowsort
SELECT - + 94 + - 69 AS col2
----
-163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1035
SELECT - 75 * + + CAST( NULL AS SIGNED ) / - 7 + - ( - - 35 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1035
SELECT - 75 * + + CAST ( NULL AS INTEGER ) / - 7 + - ( - - 35 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT - - COUNT( * ) + 79 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1036
SELECT - - COUNT ( * ) + 79 AS col2
----
80

query I rowsort
SELECT ( CASE + 65 WHEN + 69 - + - 0 THEN + - 1 END ) AS col0
----
NULL

query II rowsort
SELECT - - 6 AS col0, - 93 * 22 col1
----
6
-2046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1039
SELECT - - 17 + + + COALESCE ( + + COUNT( * ), + + COALESCE ( - - CAST( ( 55 ) AS SIGNED ), + COUNT( * ) * - + 89 + - 54, 9 + 56 ) ) DIV ( + 45 )
----
17

skipif mysql # not compatible
query I rowsort label-1039
SELECT - - 17 + + + COALESCE ( + + COUNT ( * ), + + COALESCE ( - - CAST ( ( 55 ) AS INTEGER ), + COUNT ( * ) * - + 89 + - 54, 9 + 56 ) ) / ( + 45 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1040
SELECT ALL + COALESCE ( + CAST( NULL AS SIGNED ), - - 59 ) * + 85
----
5015

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL + COALESCE ( + CAST ( NULL AS INTEGER ), - - 59 ) * + 85
----
5015

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

query I rowsort
SELECT - 0 + + + 78 - 86
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1043
SELECT ALL + 78 * - 29 col0, - CAST( NULL AS DECIMAL )
----
-2262
NULL

skipif mysql # not compatible
query II rowsort label-1043
SELECT ALL + 78 * - 29 col0, - CAST ( NULL AS REAL )
----
-2262
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1044
SELECT CASE 72 WHEN 56 THEN + NULLIF ( CAST( + 97 AS SIGNED ), - 67 ) * + 87 WHEN - 85 + + - 42 THEN NULL ELSE NULL END * - 71 + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1044
SELECT CASE 72 WHEN 56 THEN + NULLIF ( CAST ( + 97 AS INTEGER ), - 67 ) * + 87 WHEN - 85 + + - 42 THEN NULL ELSE NULL END * - 71 + - 30
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1045
SELECT - MAX( 67 ) DIV - - 10 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-1045
SELECT - MAX ( 67 ) / - - 10 AS col2
----
-6

query II rowsort
SELECT ( 14 ) AS col1, + 36 * + + 31
----
14
1116

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

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL COUNT ( * ) / + ( - ( + + MIN ( - - 27 ) ) ) + - + 7
----
-7

query I rowsort
SELECT + 46 + - 11 col1
----
35

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1050
SELECT ALL 87 * CAST( - - 75 AS SIGNED ) + + + 60 AS col2
----
6585

skipif mysql # not compatible
query I rowsort label-1050
SELECT ALL 87 * CAST ( - - 75 AS INTEGER ) + + + 60 AS col2
----
6585

query I rowsort
SELECT ALL 81 * + - 83 + 25 + + + 49 * 61
----
-3709

onlyif mysql # DIV for integer division: 
query I rowsort label-1052
SELECT - 86 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-1052
SELECT - 86 / - 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1053
SELECT ALL 98 DIV - 30 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL 98 / - 30 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT + MAX( + 8 ) * MAX( 72 )
----
576

skipif mysql # not compatible
query I rowsort label-1054
SELECT + MAX ( + 8 ) * MAX ( 72 )
----
576

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

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

query I rowsort
SELECT DISTINCT 92 * 31
----
2852

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

skipif mysql # not compatible
query I rowsort label-1057
SELECT + + MIN ( + 48 )
----
48

query I rowsort
SELECT + - NULLIF ( 41, 40 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT ALL 0 * + 43 + MAX( DISTINCT - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL 0 * + 43 + MAX ( DISTINCT - 17 )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1060
SELECT ALL - MIN( ALL + CAST( + - ( 16 ) AS SIGNED ) ) * + 78
----
1248

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL - MIN ( ALL + CAST ( + - ( 16 ) AS INTEGER ) ) * + 78
----
1248

query II rowsort
SELECT DISTINCT + - NULLIF ( + 36, NULLIF ( 89, - - 97 ) * - 24 * 90 ) AS col1, - 63 AS col0
----
-36
-63

query I rowsort
SELECT ALL - COALESCE ( - 40, + - 56 ) * 66 - - + 37
----
2677

onlyif mysql # DIV for integer division: 
query I rowsort label-1063
SELECT + + 29 - + - 96 + - 85 DIV 79 col2
----
124

skipif mysql # not compatible
query I rowsort label-1063
SELECT + + 29 - + - 96 + - 85 / 79 col2
----
124

query I rowsort
SELECT 7 * - ( ( - + 28 ) ) + 46 + - 98 + - 75 AS col1
----
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT - + COUNT( * ) + - + 5 + 3 + + - 22 + + 92 col2
----
67

skipif mysql # not compatible
query I rowsort label-1066
SELECT - + COUNT ( * ) + - + 5 + 3 + + - 22 + + 92 col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1067
SELECT + - NULLIF ( - 77, 4 + + - NULLIF ( 87, + + COUNT( * ) + CAST( - SUM( - + 29 ) AS DECIMAL ) ) - - 8 + - 24 + + 95 ) + 31
----
108

skipif mysql # not compatible
query I rowsort label-1067
SELECT + - NULLIF ( - 77, 4 + + - NULLIF ( 87, + + COUNT ( * ) + CAST ( - SUM ( - + 29 ) AS REAL ) ) - - 8 + - 24 + + 95 ) + 31
----
108

query I rowsort
SELECT - + COALESCE ( - 86, - 94 * - 76 + - 11 + + + 52 )
----
86

query I rowsort
SELECT - - 71 * - 8 + 72 AS col2
----
-496

onlyif mysql # aggregate syntax: 
query II rowsort label-1070
SELECT ALL - 60 * + COUNT( * ) AS col1, MAX( 77 ) * COUNT( * ) AS col0
----
-60
77

skipif mysql # not compatible
query II rowsort label-1070
SELECT ALL - 60 * + COUNT ( * ) AS col1, MAX ( 77 ) * COUNT ( * ) AS col0
----
-60
77

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

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

query II rowsort
SELECT 17 * - ( - + 51 ) AS col1, COALESCE ( - - 82, - 80 )
----
867
82

query I rowsort
SELECT ALL + ( 22 ) * - 44 AS col0
----
-968

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

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

query II rowsort
SELECT - 35, 20 col0
----
-35
20

query II rowsort
SELECT 48, + 50 AS col1
----
48
50

query I rowsort
SELECT 52 * ( 89 )
----
4628

query I rowsort
SELECT DISTINCT 52 + + 22 * + 83
----
1878

query I rowsort
SELECT 51 + 73 * + - 6 * - 98 * 68 * - ( - NULLIF ( - 21, + 86 * 57 + - 29 * + 72 ) )
----
-61295421

onlyif mysql # DIV for integer division: 
query II rowsort label-1080
SELECT ALL - COALESCE ( + 32, + 18 - 86 + - 10 ) AS col0, - 28 DIV + 84 + + 57 + 27
----
-32
84

skipif mysql # not compatible
query II rowsort label-1080
SELECT ALL - COALESCE ( + 32, + 18 - 86 + - 10 ) AS col0, - 28 / + 84 + + 57 + 27
----
-32
84

query I rowsort
SELECT ALL - 29 * 10 AS col0
----
-290

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

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

query I rowsort
SELECT ALL 51 - + + 96 * - NULLIF ( - 71, - 93 ) - + 88
----
-6853

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1084
SELECT + 76 * + ( - + 60 ) - - 85 / - + MAX( DISTINCT + - 16 ) * + CAST( NULL AS SIGNED ) * + + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1084
SELECT + 76 * + ( - + 60 ) - - 85 / - + MAX ( DISTINCT + - 16 ) * + CAST ( NULL AS INTEGER ) * + + 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT COUNT( DISTINCT + + 68 ) * + 79 - 38 + 48 * + 3 * - + COUNT( * ) AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-1085
SELECT COUNT ( DISTINCT + + 68 ) * + 79 - 38 + 48 * + 3 * - + COUNT ( * ) AS col1
----
-103

query I rowsort
SELECT ALL - - 94 col1
----
94

query I rowsort
SELECT 28 * + + 19 - 67 AS col0
----
465

query II rowsort
SELECT DISTINCT - 72, - ( - 66 ) + 98 AS col0
----
-72
164

query I rowsort
SELECT ALL 7 - - 16 AS col2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1090
SELECT DISTINCT + 49 DIV 44 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1090
SELECT DISTINCT + 49 / 44 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT - 34 + COUNT( ALL - 51 )
----
-33

skipif mysql # not compatible
query I rowsort label-1091
SELECT - 34 + COUNT ( ALL - 51 )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1092
SELECT + - CAST( + 56 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-1092
SELECT + - CAST ( + 56 AS INTEGER )
----
-56

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

skipif mysql # not compatible
query I rowsort label-1093
SELECT 0 / + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 27 * - 37 AS col1
----
-999

query I rowsort
SELECT ALL + 97 * - 72
----
-6984

onlyif mysql # aggregate syntax: 
query II rowsort label-1096
SELECT + COUNT( - 93 ) + - - 33 col2, 8 + 11 - + 11
----
34
8

skipif mysql # not compatible
query II rowsort label-1096
SELECT + COUNT ( - 93 ) + - - 33 col2, 8 + 11 - + 11
----
34
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT - + 40 * ( + + 86 ) + COUNT( * ) AS col1
----
-3439

skipif mysql # not compatible
query I rowsort label-1098
SELECT - + 40 * ( + + 86 ) + COUNT ( * ) AS col1
----
-3439

query I rowsort
SELECT ALL - 15 + + - ( - 43 )
----
28

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

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

query I rowsort
SELECT + 59 + ( + 86 ) - + + 36 + + 74
----
183

query II rowsort
SELECT 77 AS col1, - 49 + + - 50 * ( + 4 ) + + - 7
----
77
-256

query II rowsort
SELECT ALL 31 AS col2, - 8 + - 41 + 47 + 38 * + ( + 37 ) + - 78
----
31
1326

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1104
SELECT DISTINCT - 15 * 18 * CAST( NULL AS DECIMAL ) * 1 col0, 22 * + COUNT( * ) AS col1
----
NULL
22

skipif mysql # not compatible
query II rowsort label-1104
SELECT DISTINCT - 15 * 18 * CAST ( NULL AS REAL ) * 1 col0, 22 * + COUNT ( * ) AS col1
----
NULL
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1105
SELECT DISTINCT MIN( ALL - 87 ) DIV + 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1105
SELECT DISTINCT MIN ( ALL - 87 ) / + 91 AS col1
----
0

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

query I rowsort
SELECT DISTINCT 22 * 7 AS col2
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1108
SELECT CAST( + COUNT( * ) AS SIGNED ) + - COALESCE ( - CASE + 21 WHEN 3 THEN - + 18 * - - 87 + + + ( - 40 ) WHEN + 22 THEN NULL END, + 16 * - 95 * + 95 ) DIV 74 col2
----
1952

skipif mysql # not compatible
query I rowsort label-1108
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + - COALESCE ( - CASE + 21 WHEN 3 THEN - + 18 * - - 87 + + + ( - 40 ) WHEN + 22 THEN NULL END, + 16 * - 95 * + 95 ) / 74 col2
----
1952

onlyif mysql # DIV for integer division: 
query I rowsort label-1109
SELECT 86 + 51 + - 30 DIV + ( + 57 ) AS col2
----
137

skipif mysql # not compatible
query I rowsort label-1109
SELECT 86 + 51 + - 30 / + ( + 57 ) AS col2
----
137

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

skipif mysql # not compatible
query II rowsort label-1110
SELECT ALL - COUNT ( * ) AS col2, + ( - + 90 ) * CAST ( NULL AS INTEGER ) AS col0
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT + SUM( DISTINCT - 97 ) col0
----
-97

skipif mysql # not compatible
query I rowsort label-1111
SELECT + SUM ( DISTINCT - 97 ) col0
----
-97

query II rowsort
SELECT ALL - 41 AS col2, - 19 * - + 52
----
-41
988

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT 12 * + + 83 * COUNT( * ) AS col1
----
996

skipif mysql # not compatible
query I rowsort label-1113
SELECT 12 * + + 83 * COUNT ( * ) AS col1
----
996

query II rowsort
SELECT ALL - 15, - 91 + + 95 AS col0
----
-15
4

onlyif mysql # aggregate syntax: 
query III rowsort label-1115
SELECT COUNT( * ) AS col0, - 52 AS col1, - COUNT( * ) AS col0
----
1
-52
-1

skipif mysql # not compatible
query III rowsort label-1115
SELECT COUNT ( * ) AS col0, - 52 AS col1, - COUNT ( * ) AS col0
----
1
-52
-1

query I rowsort
SELECT 62 * - 43 + + 71 AS col0
----
-2595

query I rowsort
SELECT + 61 * 13 * 6
----
4758

query I rowsort
SELECT DISTINCT - 20 * - 71
----
1420

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT - + COALESCE ( 81, - CASE - 85 WHEN + - 29 THEN + 49 + 22 END ) * CASE MIN( + - 9 ) WHEN 62 THEN - 90 END - - NULLIF ( 81, - SUM( 39 ) * + + 45 * 89 ) / + - 50 / - 94 / + - 14 + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-1119
SELECT - + COALESCE ( 81, - CASE - 85 WHEN + - 29 THEN + 49 + 22 END ) * CASE MIN ( + - 9 ) WHEN 62 THEN - 90 END - - NULLIF ( 81, - SUM ( 39 ) * + + 45 * 89 ) / + - 50 / - 94 / + - 14 + - 87
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1120
SELECT + + 91, 50 DIV + + COUNT( * ) * + + COUNT( * ) col2
----
91
50

skipif mysql # not compatible
query II rowsort label-1120
SELECT + + 91, 50 / + + COUNT ( * ) * + + COUNT ( * ) col2
----
91
50

query I rowsort
SELECT 66 * + + 85 AS col2
----
5610

query I rowsort
SELECT 32 * + 85 * 16 + 53
----
43573

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT - 77 + - SUM( ALL + 88 ) AS col1
----
-165

skipif mysql # not compatible
query I rowsort label-1124
SELECT - 77 + - SUM ( ALL + 88 ) AS col1
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-1125
SELECT ALL - 24 + + 13 * - 18 + + - 92 DIV 85
----
-259

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL - 24 + + 13 * - 18 + + - 92 / 85
----
-259

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT ALL - - SUM( - 19 ) col0
----
-19

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL - - SUM ( - 19 ) col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1127
SELECT ALL - 44 + - + NULLIF ( + 93, + COUNT( * ) + + 56 ) + + + CAST( NULL AS SIGNED ) + COUNT( * ) + - - 40 * COUNT( * ) / 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL - 44 + - + NULLIF ( + 93, + COUNT ( * ) + + 56 ) + + + CAST ( NULL AS INTEGER ) + COUNT ( * ) + - - 40 * COUNT ( * ) / 80
----
NULL

query I rowsort
SELECT ALL 35 + - + 57 + - 18 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT - + COUNT( ALL + - 11 ) * - - ( - 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1129
SELECT - + COUNT ( ALL + - 11 ) * - - ( - 3 ) AS col2
----
3

query I rowsort
SELECT + + 5 * 16
----
80

query I rowsort
SELECT DISTINCT 92 + - 35 col0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1132
SELECT ALL 97 + - 54 DIV - - 95 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL 97 + - 54 / - - 95 AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1133
SELECT - - CASE - 66 WHEN + 84 / + 96 THEN NULL ELSE + COALESCE ( 41, - 89 * ( - - ( 73 ) ) - - CAST( NULL AS SIGNED ) ) END
----
41

skipif mysql # not compatible
query I rowsort label-1133
SELECT - - CASE - 66 WHEN + 84 / + 96 THEN NULL ELSE + COALESCE ( 41, - 89 * ( - - ( 73 ) ) - - CAST ( NULL AS INTEGER ) ) END
----
41

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1135
SELECT DISTINCT - CAST( + ( + 72 ) AS SIGNED ) + + 42 * ( + 79 ) AS col1
----
3246

skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT - CAST ( + ( + 72 ) AS INTEGER ) + + 42 * ( + 79 ) AS col1
----
3246

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1137
SELECT ALL COUNT( * ) + + 24 * - - CAST( + + 89 AS SIGNED )
----
2137

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL COUNT ( * ) + + 24 * - - CAST ( + + 89 AS INTEGER )
----
2137

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT + ( - 48 ) + 43 * + + 28 + - 74 - + COUNT( * ) * + COUNT( * ) * 39 + 34 * + - COALESCE ( + - 63, + 77 ) * - - ( + - 23 ) * 61 AS col2
----
-3004183

skipif mysql # not compatible
query I rowsort label-1138
SELECT + ( - 48 ) + 43 * + + 28 + - 74 - + COUNT ( * ) * + COUNT ( * ) * 39 + 34 * + - COALESCE ( + - 63, + 77 ) * - - ( + - 23 ) * 61 AS col2
----
-3004183

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT + MIN( ALL 16 ) + + 69 + + COUNT( * ) col1
----
86

skipif mysql # not compatible
query I rowsort label-1139
SELECT + MIN ( ALL 16 ) + + 69 + + COUNT ( * ) col1
----
86

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

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

query II rowsort
SELECT DISTINCT 69 * + 76, - 99 AS col0
----
5244
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT - COALESCE ( 16, - - MIN( DISTINCT + + 50 ) * + ( + 64 ) + - 38 - - - 74 + - 25, - - COUNT( * ) ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1142
SELECT - COALESCE ( 16, - - MIN ( DISTINCT + + 50 ) * + ( + 64 ) + - 38 - - - 74 + - 25, - - COUNT ( * ) ) AS col0
----
-16

query II rowsort
SELECT ( 48 ), 12 AS col0
----
48
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1144
SELECT ALL 15 DIV + 16 AS col0, 15 - - 85 DIV COUNT( * )
----
0
100

skipif mysql # not compatible
query II rowsort label-1144
SELECT ALL 15 / + 16 AS col0, 15 - - 85 / COUNT ( * )
----
0
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1145
SELECT + 12 DIV COUNT( * ) DIV + 3 DIV - COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1145
SELECT + 12 / COUNT ( * ) / + 3 / - COUNT ( * ) AS col2
----
-4

query I rowsort
SELECT 41 * - 17 + + + 54 AS col2
----
-643

onlyif mysql # aggregate syntax: 
query II rowsort label-1147
SELECT ALL + - MAX( ALL + - 48 ) AS col2, 38
----
48
38

skipif mysql # not compatible
query II rowsort label-1147
SELECT ALL + - MAX ( ALL + - 48 ) AS col2, 38
----
48
38

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1148
SELECT - CAST( NULL AS SIGNED ) * + 58 + - 73 + - 59 + - COALESCE ( - 43, + 20 * - ( - 84 ) / - 10 / - - 10 * - + COALESCE ( 89, - + CAST( NULL AS DECIMAL ) + + - 57 ) + + 26 + 71 ) * - + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-1148
SELECT - CAST ( NULL AS INTEGER ) * + 58 + - 73 + - 59 + - COALESCE ( - 43, + 20 * - ( - 84 ) / - 10 / - - 10 * - + COALESCE ( 89, - + CAST ( NULL AS REAL ) + + - 57 ) + + 26 + 71 ) * - + 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT - - COUNT( * ) * - - 7 * + - 35 - 89 + 78 - - 15 + 35 * - CASE - 66 WHEN + + 15 THEN - 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1149
SELECT - - COUNT ( * ) * - - 7 * + - 35 - 89 + 78 - - 15 + 35 * - CASE - 66 WHEN + + 15 THEN - 32 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1150
SELECT DISTINCT 13 * + - 26 + - CAST( + - 32 AS SIGNED ) * CAST( ( 77 ) AS SIGNED ) - + + 2 col2
----
2124

skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT 13 * + - 26 + - CAST ( + - 32 AS INTEGER ) * CAST ( ( 77 ) AS INTEGER ) - + + 2 col2
----
2124

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT DISTINCT + 10 * - 61 + - + 30 + - + 38 * - - SUM( DISTINCT - 58 )
----
1564

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT + 10 * - 61 + - + 30 + - + 38 * - - SUM ( DISTINCT - 58 )
----
1564

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT - + MIN( ALL - 65 ) * - 73 * - + 57 * 64 + 44 AS col1
----
17309804

skipif mysql # not compatible
query I rowsort label-1152
SELECT - + MIN ( ALL - 65 ) * - 73 * - + 57 * 64 + 44 AS col1
----
17309804

query I rowsort
SELECT - 66 + 45
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-1154
SELECT + 28 * + - 71, + COUNT( * ) col2
----
-1988
1

skipif mysql # not compatible
query II rowsort label-1154
SELECT + 28 * + - 71, + COUNT ( * ) col2
----
-1988
1

query I rowsort
SELECT NULLIF ( + 50, + 6 * 14 + + 4 ) AS col0
----
50

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT + ( - MIN( + 5 ) ) * ( + 79 ) AS col0
----
-395

skipif mysql # not compatible
query I rowsort label-1158
SELECT + ( - MIN ( + 5 ) ) * ( + 79 ) AS col0
----
-395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1159
SELECT ALL CAST( + NULLIF ( + COUNT( * ), 29 * 66 ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1159
SELECT ALL CAST ( + NULLIF ( + COUNT ( * ), 29 * 66 ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT - ( NULLIF ( 28, + ( + SUM( + ( - 30 ) ) ) ) )
----
-28

skipif mysql # not compatible
query I rowsort label-1160
SELECT - ( NULLIF ( 28, + ( + SUM ( + ( - 30 ) ) ) ) )
----
-28

query I rowsort
SELECT - ( + + 53 ) * - 25 AS col1
----
1325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1162
SELECT + 46 * - + CAST( - CAST( - ( - COUNT( * ) ) AS SIGNED ) AS DECIMAL ) * + CAST( NULL AS SIGNED ), - 46 + COALESCE ( + 80, 15 ) AS col0
----
NULL
34

skipif mysql # not compatible
query II rowsort label-1162
SELECT + 46 * - + CAST ( - CAST ( - ( - COUNT ( * ) ) AS INTEGER ) AS REAL ) * + CAST ( NULL AS INTEGER ), - 46 + COALESCE ( + 80, 15 ) AS col0
----
NULL
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1163
SELECT - CAST( + - 47 AS SIGNED ) + + 69 AS col1, - 49 + + - 24
----
116
-73

skipif mysql # not compatible
query II rowsort label-1163
SELECT - CAST ( + - 47 AS INTEGER ) + + 69 AS col1, - 49 + + - 24
----
116
-73

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

skipif mysql # not compatible
query I rowsort label-1164
SELECT - COUNT ( * ) * - - 97 / 19
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1165
SELECT ALL CAST( ( - + COALESCE ( 95, - 37 ) ) AS SIGNED ) col1
----
-95

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL CAST ( ( - + COALESCE ( 95, - 37 ) ) AS INTEGER ) col1
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-1166
SELECT + 10 + 54 DIV + 53 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-1166
SELECT + 10 + 54 / + 53 AS col2
----
11

query I rowsort
SELECT DISTINCT + 7 * - ( 29 ) AS col0
----
-203

query I rowsort
SELECT + 86 * 48
----
4128

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT + 3 + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1169
SELECT + 3 + - COUNT ( * )
----
2

query I rowsort
SELECT + 80 + 86 + + 21 * - 73
----
-1367

query II rowsort
SELECT + + 59 AS col0, 27 AS col1
----
59
27

query I rowsort
SELECT - NULLIF ( - 14, - 32 ) * 60 + - 49 AS col0
----
791

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

query I rowsort
SELECT + + 79 + + + 1 col2
----
80

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1176
SELECT ALL - - 9 DIV 26 + + - MIN( + + 8 ) + COUNT( * ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL - - 9 / 26 + + - MIN ( + + 8 ) + COUNT ( * ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-1177
SELECT - - 78 * + + ( 96 ) + COUNT( * ) AS col1, MAX( DISTINCT - + 70 ) AS col2
----
7489
-70

skipif mysql # not compatible
query II rowsort label-1177
SELECT - - 78 * + + ( 96 ) + COUNT ( * ) AS col1, MAX ( DISTINCT - + 70 ) AS col2
----
7489
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-1178
SELECT ALL - 21 DIV + + 97 + 25
----
25

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL - 21 / + + 97 + 25
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1179
SELECT + - COUNT( * ) AS col2, + ( + CAST( NULL AS SIGNED ) ) AS col1
----
-1
NULL

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

query II rowsort
SELECT + 90 AS col0, 0 AS col0
----
90
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1181
SELECT + 64 / + - 87 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1181
SELECT + 64 / + - 87 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT ALL + MIN( DISTINCT 27 ) + + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL + MIN ( DISTINCT 27 ) + + COUNT ( * )
----
28

query I rowsort
SELECT ALL - + ( + 25 ) + 54 AS col1
----
29

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

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

query I rowsort
SELECT DISTINCT 18 + - 86
----
-68

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

query II rowsort
SELECT DISTINCT - 56 - + 88 AS col1, - 27 AS col2
----
-144
-27

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1189
SELECT CAST( + 19 AS SIGNED ) * - 55 * NULLIF ( + 96, + 49 + + 0 ) * ( COUNT( * ) ) * - - ( + 27 ) + - + SUM( DISTINCT + 80 ) + - 10 + 97 - COALESCE ( - 74, - ( + 72 ) ) DIV + 80 AS col0
----
-2708633

skipif mysql # not compatible
query I rowsort label-1189
SELECT CAST ( + 19 AS INTEGER ) * - 55 * NULLIF ( + 96, + 49 + + 0 ) * ( COUNT ( * ) ) * - - ( + 27 ) + - + SUM ( DISTINCT + 80 ) + - 10 + 97 - COALESCE ( - 74, - ( + 72 ) ) / + 80 AS col0
----
-2708633

query I rowsort
SELECT 90 * - + 56
----
-5040

query I rowsort
SELECT ALL - 38 - + 25 AS col2
----
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-1192
SELECT 80 DIV - 1 AS col1, - 28 * - 16
----
-80
448

skipif mysql # not compatible
query II rowsort label-1192
SELECT 80 / - 1 AS col1, - 28 * - 16
----
-80
448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1193
SELECT ALL + 93 * CASE - 16 WHEN - 2 THEN - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL + 93 * CASE - 16 WHEN - 2 THEN - CAST ( NULL AS INTEGER ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1195
SELECT 5 * - + 9 AS col2, SUM( 0 )
----
-45
0

skipif mysql # not compatible
query II rowsort label-1195
SELECT 5 * - + 9 AS col2, SUM ( 0 )
----
-45
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1196
SELECT 15 * - + 13 AS col0, COUNT( * ) AS col1
----
-195
1

skipif mysql # not compatible
query II rowsort label-1196
SELECT 15 * - + 13 AS col0, COUNT ( * ) AS col1
----
-195
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT DISTINCT - 49 + 43 DIV - 85 + - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT - 49 + 43 / - 85 + - COUNT ( * )
----
-50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT 1 - + - 86 + 37 * + 56 * + COUNT( * )
----
2159

skipif mysql # not compatible
query I rowsort label-1199
SELECT 1 - + - 86 + 37 * + 56 * + COUNT ( * )
----
2159

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT DISTINCT - MAX( + 23 ) + 7
----
-16

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT - MAX ( + 23 ) + 7
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-1201
SELECT ALL + 39 + + 62 DIV 57
----
40

skipif mysql # not compatible
query I rowsort label-1201
SELECT ALL + 39 + + 62 / 57
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT DISTINCT 56 + 87 + - 64 + + COUNT( * ) * + ( 6 ) * 3 * 19 AS col1
----
421

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT 56 + 87 + - 64 + + COUNT ( * ) * + ( 6 ) * 3 * 19 AS col1
----
421

query I rowsort
SELECT 12 * + 94 AS col0
----
1128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1204
SELECT ALL + + 68 * + COUNT( * ) * - 50 + + + CAST( NULL AS SIGNED ) AS col0, + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1204
SELECT ALL + + 68 * + COUNT ( * ) * - 50 + + + CAST ( NULL AS INTEGER ) AS col0, + CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT 92 + 91
----
183

query I rowsort
SELECT - 71 * - 9 AS col0
----
639

query I rowsort
SELECT + + ( + + ( - 3 ) ) col2
----
-3

query I rowsort
SELECT ALL - - 63 col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL 20 - 89 + - + 74 + COUNT( * ) / - CASE NULLIF ( 72, - MIN( DISTINCT + 66 ) / + + MAX( ALL + 63 ) ) WHEN - 14 THEN - 57 / - 6 * - + 34 ELSE NULL END * + COUNT( ALL + 56 ) + - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL 20 - 89 + - + 74 + COUNT ( * ) / - CASE NULLIF ( 72, - MIN ( DISTINCT + 66 ) / + + MAX ( ALL + 63 ) ) WHEN - 14 THEN - 57 / - 6 * - + 34 ELSE NULL END * + COUNT ( ALL + 56 ) + - 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT ( - + 65 ) + + NULLIF ( + + 36, - COUNT( * ) ) * + 80 AS col0
----
2815

skipif mysql # not compatible
query I rowsort label-1210
SELECT ( - + 65 ) + + NULLIF ( + + 36, - COUNT ( * ) ) * + 80 AS col0
----
2815

query II rowsort
SELECT + 73 col1, + 49 AS col2
----
73
49

onlyif mysql # aggregate syntax: 
query II rowsort label-1212
SELECT 97 col1, + NULLIF ( - + SUM( + 27 ), + + 39 ) - + ( 81 )
----
97
-108

skipif mysql # not compatible
query II rowsort label-1212
SELECT 97 col1, + NULLIF ( - + SUM ( + 27 ), + + 39 ) - + ( 81 )
----
97
-108

query I rowsort
SELECT DISTINCT 0 * + 88 * 37
----
0

query I rowsort
SELECT ALL 58 * + 2
----
116

query I rowsort
SELECT 61 * - 22 AS col2
----
-1342

query I rowsort
SELECT 96 * + 11
----
1056

onlyif mysql # aggregate syntax: 
query II rowsort label-1217
SELECT 99 + + - MAX( - 68 ) AS col0, - 75 AS col0
----
167
-75

skipif mysql # not compatible
query II rowsort label-1217
SELECT 99 + + - MAX ( - 68 ) AS col0, - 75 AS col0
----
167
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT DISTINCT 64 * CASE - COUNT( * ) WHEN + - AVG ( DISTINCT + - 27 ) * 93 * 6 * - - 14 THEN - 21 WHEN - - ( - 78 ) THEN 13 * - COUNT( * ) - + 15 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1218
SELECT DISTINCT 64 * CASE - COUNT ( * ) WHEN + - AVG ( DISTINCT + - 27 ) * 93 * 6 * - - 14 THEN - 21 WHEN - - ( - 78 ) THEN 13 * - COUNT ( * ) - + 15 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT MAX( ALL 10 ) * - 97 AS col2
----
-970

skipif mysql # not compatible
query I rowsort label-1219
SELECT MAX ( ALL 10 ) * - 97 AS col2
----
-970

query I rowsort
SELECT 96 * + 93 AS col2
----
8928

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT DISTINCT + COUNT( ALL 11 ) * + COUNT( * ) * - 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1221
SELECT DISTINCT + COUNT ( ALL 11 ) * + COUNT ( * ) * - 40 AS col2
----
-40

query II rowsort
SELECT 13 AS col1, + 3 AS col0
----
13
3

query I rowsort
SELECT 86 + - 53 + 10 col0
----
43

query I rowsort
SELECT 21 * + - 94 AS col1
----
-1974

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT ALL - CASE + + 72 WHEN - 26 THEN NULL WHEN + + 17 * - 20 THEN - COUNT( DISTINCT + 19 ) END + - AVG ( ALL - 33 ) + + - AVG ( 1 ) * - 26 + + 88 * - 41 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL - CASE + + 72 WHEN - 26 THEN NULL WHEN + + 17 * - 20 THEN - COUNT ( DISTINCT + 19 ) END + - AVG ( ALL - 33 ) + + - AVG ( 1 ) * - 26 + + 88 * - 41 + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT ALL 58 AS col1, + 55 * 61
----
58
3355

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT ( 59 ) + + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-1227
SELECT ( 59 ) + + COUNT ( * )
----
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT 11 + + 85 * - SUM( ALL - 83 ) AS col1
----
7066

skipif mysql # not compatible
query I rowsort label-1229
SELECT 11 + + 85 * - SUM ( ALL - 83 ) AS col1
----
7066

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

query I rowsort
SELECT 35 + + + 60
----
95

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

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

query I rowsort
SELECT - - 71 * 75
----
5325

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

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT - ( + 13 ) / + COUNT ( * ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT MIN( - + 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1235
SELECT MIN ( - + 1 ) AS col0
----
-1

query I rowsort
SELECT - - 22 + + 57 * 39 AS col1
----
2245

query II rowsort
SELECT + + 81 AS col2, 96
----
81
96

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

skipif mysql # not compatible
query I rowsort label-1238
SELECT CAST ( 84 AS INTEGER ) / ( + 39 ) + COUNT ( * ) col1
----
3

query I rowsort
SELECT ALL - 67 * - + 14
----
938

query I rowsort
SELECT DISTINCT + 34 * 33
----
1122

query I rowsort
SELECT ALL 74 * + - 25 AS col0
----
-1850

query I rowsort
SELECT ALL - + 99 * + 32
----
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT CASE 93 WHEN - 65 * + + 15 THEN NULL ELSE - - 66 * + + 95 + + COUNT( * ) END AS col2
----
6271

skipif mysql # not compatible
query I rowsort label-1243
SELECT CASE 93 WHEN - 65 * + + 15 THEN NULL ELSE - - 66 * + + 95 + + COUNT ( * ) END AS col2
----
6271

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1245
SELECT + ( - - 26 ) + - - 75 + + CASE + 39 WHEN 97 / + + 24 THEN - - MIN( DISTINCT + 71 ) - + + 96 WHEN - 73 * + CAST( 31 AS DECIMAL ) THEN NULL ELSE NULL END / - - 22 / COUNT( * ) * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1245
SELECT + ( - - 26 ) + - - 75 + + CASE + 39 WHEN 97 / + + 24 THEN - - MIN ( DISTINCT + 71 ) - + + 96 WHEN - 73 * + CAST ( 31 AS REAL ) THEN NULL ELSE NULL END / - - 22 / COUNT ( * ) * - 19
----
NULL

query II rowsort
SELECT + 71 AS col2, 75 AS col2
----
71
75

query I rowsort
SELECT - 41 * + 52
----
-2132

query I rowsort
SELECT + 47 * + 20 col1
----
940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1249
SELECT COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col2, 7 DIV + 6, 39 AS col1
----
0
1
39

skipif mysql # not compatible
query III rowsort label-1249
SELECT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col2, 7 / + 6, 39 AS col1
----
0
1
39

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

skipif mysql # not compatible
query I rowsort label-1250
SELECT + CAST ( NULL AS INTEGER ) + + + 75 + - + 84
----
NULL

query I rowsort
SELECT ALL 5 * + 95 AS col0
----
475

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT ALL 65 * + 52 * - - 24 + COUNT( * ) AS col0
----
81121

skipif mysql # not compatible
query I rowsort label-1253
SELECT ALL 65 * + 52 * - - 24 + COUNT ( * ) AS col0
----
81121

query I rowsort
SELECT + CASE + 47 WHEN + 90 THEN + 43 ELSE - 58 END
----
-58

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1257
SELECT 67 * + ( 72 ) + - 15 * CAST( NULL AS DECIMAL ) + + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1257
SELECT 67 * + ( 72 ) + - 15 * CAST ( NULL AS REAL ) + + 6 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT ALL 45 * + MAX( - 15 ) * NULLIF ( - - 31, 22 - 65 ) AS col1
----
-20925

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL 45 * + MAX ( - 15 ) * NULLIF ( - - 31, 22 - 65 ) AS col1
----
-20925

query I rowsort
SELECT + 57 + - + 52 AS col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1260
SELECT - CASE - 31 WHEN COUNT( * ) + - 61 THEN + 25 WHEN - 46 THEN NULL ELSE 69 * + 78 - ( + 72 ) * - NULLIF ( - - 15, + 68 * + AVG ( ALL + 53 ) ) + + MIN( - ( - + 72 ) ) + - + 90 DIV 96 * + 32 END AS col2, 81 + - ( - COUNT( * ) )
----
-6534
82

skipif mysql # not compatible
query II rowsort label-1260
SELECT - CASE - 31 WHEN COUNT ( * ) + - 61 THEN + 25 WHEN - 46 THEN NULL ELSE 69 * + 78 - ( + 72 ) * - NULLIF ( - - 15, + 68 * + AVG ( ALL + 53 ) ) + + MIN ( - ( - + 72 ) ) + - + 90 / 96 * + 32 END AS col2, 81 + - ( - COUNT ( * ) )
----
-6534
82

query I rowsort
SELECT ALL NULLIF ( ( - 78 ), + + 3 - 27 ) + + - NULLIF ( 18, - - NULLIF ( 88, + + 26 ) ) AS col1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-1262
SELECT + 45 DIV - - 49 * + 13 * - 42
----
0

skipif mysql # not compatible
query I rowsort label-1262
SELECT + 45 / - - 49 * + 13 * - 42
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1263
SELECT ALL MAX( ALL + CAST( NULL AS SIGNED ) ) + - 5 AS col2
----
NULL

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

query I rowsort
SELECT ALL 9 * - 83
----
-747

query I rowsort
SELECT DISTINCT COALESCE ( + 0, + - 91 * + 1, + 79 )
----
0

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

skipif mysql # not compatible
query I rowsort label-1266
SELECT - - 26 * + AVG ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - - 51 * 60 * + 89 AS col2
----
272340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1268
SELECT - CAST( 96 AS SIGNED ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-1268
SELECT - CAST ( 96 AS INTEGER ) AS col0
----
-96

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

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

query I rowsort
SELECT + 92 - 97 col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT - 62 * - 36 * MAX( DISTINCT + + 77 )
----
171864

skipif mysql # not compatible
query I rowsort label-1271
SELECT - 62 * - 36 * MAX ( DISTINCT + + 77 )
----
171864

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1272
SELECT DISTINCT - - 76 - - CASE 97 WHEN 14 * + 78 - 92 * + ( - 18 ) / + + 16 THEN NULL WHEN + 18 * - CAST( - - 40 AS DECIMAL ) THEN - 37 ELSE - - 91 * - + COUNT( * ) END AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT - - 76 - - CASE 97 WHEN 14 * + 78 - 92 * + ( - 18 ) / + + 16 THEN NULL WHEN + 18 * - CAST ( - - 40 AS REAL ) THEN - 37 ELSE - - 91 * - + COUNT ( * ) END AS col1
----
-15

query II rowsort
SELECT DISTINCT + 26 col1, + 25 * - 67 AS col2
----
26
-1675

query I rowsort
SELECT - + 99 * + 45 AS col1
----
-4455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1275
SELECT DISTINCT + CAST( - 58 AS SIGNED ) * 91 * + ( - COUNT( * ) )
----
5278

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT + CAST ( - 58 AS INTEGER ) * 91 * + ( - COUNT ( * ) )
----
5278

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT + 42 * + COUNT( * ) - + + 93 * 81 + - 72 * + + SUM( + - 63 ) - 97 AS col0
----
-3052

skipif mysql # not compatible
query I rowsort label-1277
SELECT + 42 * + COUNT ( * ) - + + 93 * 81 + - 72 * + + SUM ( + - 63 ) - 97 AS col0
----
-3052

query I rowsort
SELECT ALL + - NULLIF ( + 70, + 72 ) AS col1
----
-70

query I rowsort
SELECT - 95 * + 11 AS col1
----
-1045

query I rowsort
SELECT - - 80 + - 34
----
46

query II rowsort
SELECT + - 67 AS col2, 65 - - 34 - 41 col0
----
-67
58

query II rowsort
SELECT + - 98 AS col0, - COALESCE ( + - ( + + 95 ), 11 * 86 * 32 ) * + 56 + + - 99 * 98 + 83 + 68 col1
----
-98
-4231

query III rowsort
SELECT DISTINCT + - 47 AS col1, 65 AS col0, + - 55 AS col2
----
-47
65
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT 43 * + 10 + + NULLIF ( - 17, - COUNT( * ) + - 9 + - 8 + 16 * - 8 ) AS col0
----
413

skipif mysql # not compatible
query I rowsort label-1284
SELECT 43 * + 10 + + NULLIF ( - 17, - COUNT ( * ) + - 9 + - 8 + 16 * - 8 ) AS col0
----
413

onlyif mysql # DIV for integer division: 
query I rowsort label-1285
SELECT DISTINCT + 52 DIV + 35
----
1

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT + 52 / + 35
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1286
SELECT DISTINCT COUNT( 45 ) DIV 80 + + ( 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT COUNT ( 45 ) / 80 + + ( 88 ) AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1287
SELECT - CAST( NULL AS DECIMAL ) / - COUNT( * ), NULLIF ( + - COUNT( * ), + MAX( DISTINCT + + 78 ) * - - 52 - + 38 * - 15 * 27 + - - 65 * - - NULLIF ( 14, + 39 * 84 * + 54 ) + + 27 ) * + 43 * - 30 AS col0
----
NULL
1290

skipif mysql # not compatible
query II rowsort label-1287
SELECT - CAST ( NULL AS REAL ) / - COUNT ( * ), NULLIF ( + - COUNT ( * ), + MAX ( DISTINCT + + 78 ) * - - 52 - + 38 * - 15 * 27 + - - 65 * - - NULLIF ( 14, + 39 * 84 * + 54 ) + + 27 ) * + 43 * - 30 AS col0
----
NULL
1290

query I rowsort
SELECT ALL 92 * 15 + CASE + 92 WHEN + + 24 THEN + - 42 + ( 66 ) ELSE 87 END
----
1467

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT ALL ( + + COUNT( * ) ) * + + 21 + - - 30 + - COUNT( * ) + + COUNT( * ) * - - 36 * + COUNT( * ) * + 44
----
1634

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL ( + + COUNT ( * ) ) * + + 21 + - - 30 + - COUNT ( * ) + + COUNT ( * ) * - - 36 * + COUNT ( * ) * + 44
----
1634

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1291
SELECT ALL + CAST( + - 79 AS SIGNED ) AS col2, 56 * + 17 * + + 5
----
-79
4760

skipif mysql # not compatible
query II rowsort label-1291
SELECT ALL + CAST ( + - 79 AS INTEGER ) AS col2, 56 * + 17 * + + 5
----
-79
4760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1292
SELECT 80 * + - 65 DIV - COUNT( ALL - + 21 ) + - COUNT( + 53 ) DIV + - 98
----
5200

skipif mysql # not compatible
query I rowsort label-1292
SELECT 80 * + - 65 / - COUNT ( ALL - + 21 ) + - COUNT ( + 53 ) / + - 98
----
5200

query I rowsort
SELECT NULLIF ( 63, + ( 13 ) ) AS col2
----
63

query II rowsort
SELECT + ( - 64 ), + 1 AS col1
----
-64
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT ALL + 18 * - SUM( + + 88 ) + + 59 + COUNT( * ) AS col0
----
-1524

skipif mysql # not compatible
query I rowsort label-1295
SELECT ALL + 18 * - SUM ( + + 88 ) + + 59 + COUNT ( * ) AS col0
----
-1524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1296
SELECT NULLIF ( + + 74, + - 80 + CAST( NULL AS SIGNED ) ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-1296
SELECT NULLIF ( + + 74, + - 80 + CAST ( NULL AS INTEGER ) ) AS col2
----
74

query I rowsort
SELECT NULLIF ( + 12, - ( 24 ) )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT - 35 * - ( - 28 ) + COUNT( DISTINCT + - 86 )
----
-979

skipif mysql # not compatible
query I rowsort label-1298
SELECT - 35 * - ( - 28 ) + COUNT ( DISTINCT + - 86 )
----
-979

query II rowsort
SELECT ALL + 36 + + 18 * - - 41 AS col2, - 28
----
774
-28

query I rowsort
SELECT DISTINCT ( 92 ) * - 86 + - 15 + + 79 + - 33 * - + ( - + 8 ) * - 71 + - 21 AS col2
----
10875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1301
SELECT COALESCE ( + - 82, 23, - 83 * - + 55 ) * + ( + 94 ) DIV - COUNT( * ) * COUNT( * )
----
7708

skipif mysql # not compatible
query I rowsort label-1301
SELECT COALESCE ( + - 82, 23, - 83 * - + 55 ) * + ( + 94 ) / - COUNT ( * ) * COUNT ( * )
----
7708

query I rowsort
SELECT 95 - + 69 col1
----
26

query I rowsort
SELECT 44 * - ( 80 ) * - 57 AS col1
----
200640

query I rowsort
SELECT ALL CASE 68 WHEN + 65 THEN 33 + - 0 END * + 37
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1305
SELECT DISTINCT CAST( - 8 AS SIGNED ) * + 89 + - NULLIF ( - 66, + 63 + 25 ) AS col1
----
-646

skipif mysql # not compatible
query I rowsort label-1305
SELECT DISTINCT CAST ( - 8 AS INTEGER ) * + 89 + - NULLIF ( - 66, + 63 + 25 ) AS col1
----
-646

query I rowsort
SELECT ALL ( - 37 ) col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT DISTINCT SUM( ALL + 81 ) col0
----
81

skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT SUM ( ALL + 81 ) col0
----
81

query I rowsort
SELECT - 39 + + 72
----
33

query I rowsort
SELECT 36 + 88 AS col1
----
124

query I rowsort
SELECT + - COALESCE ( 59, + 97 )
----
-59

query I rowsort
SELECT 67 * + 65 + - + 3 AS col0
----
4352

query I rowsort
SELECT + COALESCE ( 45, + 84, 88 )
----
45

query II rowsort
SELECT 94 AS col0, 16
----
94
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT ALL + 39 * - + MAX( ALL - COALESCE ( + ( - 45 ), 95 + NULLIF ( - 14, + 26 ), - - ( - 96 ) ) ) AS col2
----
-1755

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL + 39 * - + MAX ( ALL - COALESCE ( + ( - 45 ), 95 + NULLIF ( - 14, + 26 ), - - ( - 96 ) ) ) AS col2
----
-1755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1315
SELECT ( - CASE - COALESCE ( + 22, ( COUNT( ALL 77 ) ) / - - 53 ) WHEN - + 74 * - 36 + - 59 THEN - COUNT( * ) * + 18 ELSE NULL END ) * 69 + + + 39 * - - CAST( - - 28 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1315
SELECT ( - CASE - COALESCE ( + 22, ( COUNT ( ALL 77 ) ) / - - 53 ) WHEN - + 74 * - 36 + - 59 THEN - COUNT ( * ) * + 18 ELSE NULL END ) * 69 + + + 39 * - - CAST ( - - 28 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 0 + - + 51 AS col1
----
-51

query I rowsort
SELECT DISTINCT - ( + - 5 )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1318
SELECT DISTINCT 35 + + 41 * COUNT( * ) DIV - 62 + 95
----
130

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT 35 + + 41 * COUNT ( * ) / - 62 + 95
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-1319
SELECT ( 61 ) DIV + 82 * + 75
----
0

skipif mysql # not compatible
query I rowsort label-1319
SELECT ( 61 ) / + 82 * + 75
----
0

query II rowsort
SELECT 37 AS col1, 80 AS col0
----
37
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT ALL + COUNT( * ) + + 47 * + SUM( ALL - 70 ) AS col2
----
-3289

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL + COUNT ( * ) + + 47 * + SUM ( ALL - 70 ) AS col2
----
-3289

query I rowsort
SELECT ALL - 49 + 7 * - + ( - 4 )
----
-21

query II rowsort
SELECT ALL - 40, 19 AS col2
----
-40
19

query I rowsort
SELECT ALL - 76 * + - 72 AS col2
----
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT 21 + MIN( ALL + - 57 ) + - COUNT( * ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-1325
SELECT 21 + MIN ( ALL + - 57 ) + - COUNT ( * ) AS col2
----
-37

query II rowsort
SELECT ALL - 4 + - ( + 73 ) AS col2, 62
----
-77
62

query I rowsort
SELECT ALL 9 - + - 47 AS col0
----
56

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

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

query II rowsort
SELECT ALL - 75 AS col2, + 3
----
-75
3

query I rowsort
SELECT 46 + 85
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1331
SELECT COUNT( * ) * + - 31 DIV - + 5 col0
----
6

skipif mysql # not compatible
query I rowsort label-1331
SELECT COUNT ( * ) * + - 31 / - + 5 col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT + 42 * COUNT( * ) - + 55 + COUNT( * ) + + 33 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1332
SELECT + 42 * COUNT ( * ) - + 55 + COUNT ( * ) + + 33 AS col1
----
21

query I rowsort
SELECT + 21 + 42 - + ( + 84 ) AS col2
----
-21

query II rowsort
SELECT ALL - 0 AS col1, 21 AS col1
----
0
21

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

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL + 71 - + COUNT ( * ) AS col1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1336
SELECT ALL + - 67 * + CAST( + CAST( - 19 AS SIGNED ) AS SIGNED ) * 77 - + 19
----
98002

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL + - 67 * + CAST ( + CAST ( - 19 AS INTEGER ) AS INTEGER ) * 77 - + 19
----
98002

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT - COUNT( ALL ( - 56 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1337
SELECT - COUNT ( ALL ( - 56 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT 82 * 69 * + - MIN( ALL - 81 ) - SUM( DISTINCT + 98 ) col1
----
458200

skipif mysql # not compatible
query I rowsort label-1338
SELECT 82 * 69 * + - MIN ( ALL - 81 ) - SUM ( DISTINCT + 98 ) col1
----
458200

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT - - MAX( - + 71 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-1339
SELECT - - MAX ( - + 71 ) AS col1
----
-71

query II rowsort
SELECT - 67, - 47 + 57 AS col0
----
-67
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1341
SELECT 60 AS col1, + COUNT( * ) * 42 * + 73 * + NULLIF ( - + 88, + 37 ) AS col1
----
60
-269808

skipif mysql # not compatible
query II rowsort label-1341
SELECT 60 AS col1, + COUNT ( * ) * 42 * + 73 * + NULLIF ( - + 88, + 37 ) AS col1
----
60
-269808

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1342
SELECT ALL + 52 + - COALESCE ( + 6, + COUNT( * ) + - + ( + - 3 ) DIV - - COUNT( * ) * + 62 DIV - + 98 )
----
46

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL + 52 + - COALESCE ( + 6, + COUNT ( * ) + - + ( + - 3 ) / - - COUNT ( * ) * + 62 / - + 98 )
----
46

query I rowsort
SELECT 38 - 42 * + + 57 * - 40 + + 85 AS col1
----
95883

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT ALL - ( COUNT( * ) ) + - 97 * + ( + + 86 )
----
-8343

skipif mysql # not compatible
query I rowsort label-1344
SELECT ALL - ( COUNT ( * ) ) + - 97 * + ( + + 86 )
----
-8343

query I rowsort
SELECT DISTINCT + 25 + + 7
----
32

query II rowsort
SELECT ALL 73 AS col2, 76
----
73
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1347
SELECT ALL 87 + - + 73 DIV - - 19
----
84

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL 87 + - + 73 / - - 19
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-1348
SELECT 99 DIV + 17 AS col0, 87 AS col0
----
5
87

skipif mysql # not compatible
query II rowsort label-1348
SELECT 99 / + 17 AS col0, 87 AS col0
----
5
87

query I rowsort
SELECT ALL + 74 * + 50 + + 76 col1
----
3776

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT MAX( DISTINCT + 42 ) col1
----
42

skipif mysql # not compatible
query I rowsort label-1350
SELECT MAX ( DISTINCT + 42 ) col1
----
42

query I rowsort
SELECT 34 * + 88
----
2992

query I rowsort
SELECT - 84 * - - 57 + + 93 AS col1
----
-4695

query I rowsort
SELECT DISTINCT 34 * 1 * + - ( 7 ) - - - 24
----
-262

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT + NULLIF ( - 22, + - 15 * + + COUNT( * ) ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-1354
SELECT + NULLIF ( - 22, + - 15 * + + COUNT ( * ) ) AS col1
----
-22

query I rowsort
SELECT + 80 + - 9 * + - 47
----
503

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT ALL + 70 * - 7 * + COUNT( * ) - - + 16 - 44
----
-518

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1357
SELECT - 98 * 36 AS col2, + COUNT( * )
----
-3528
1

skipif mysql # not compatible
query II rowsort label-1357
SELECT - 98 * 36 AS col2, + COUNT ( * )
----
-3528
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1358
SELECT ALL 27 * - CAST( + 93 AS SIGNED ) - - + ( - 46 ) * - 48 + - 5, - COUNT( 6 ) + 3 + + + 82 * - 68 * COUNT( * ) * + 80 AS col1
----
-308
-446078

skipif mysql # not compatible
query II rowsort label-1358
SELECT ALL 27 * - CAST ( + 93 AS INTEGER ) - - + ( - 46 ) * - 48 + - 5, - COUNT ( 6 ) + 3 + + + 82 * - 68 * COUNT ( * ) * + 80 AS col1
----
-308
-446078

onlyif mysql # aggregate syntax: 
query II rowsort label-1359
SELECT + NULLIF ( + 78, - 70 * - MIN( DISTINCT 72 ) ) AS col0, 62 AS col2
----
78
62

skipif mysql # not compatible
query II rowsort label-1359
SELECT + NULLIF ( + 78, - 70 * - MIN ( DISTINCT 72 ) ) AS col0, 62 AS col2
----
78
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT 18 * ( SUM( ALL ( + + ( + + 21 ) ) ) ) * + 88 * + 45 + + - 76 AS col1
----
1496804

skipif mysql # not compatible
query I rowsort label-1360
SELECT 18 * ( SUM ( ALL ( + + ( + + 21 ) ) ) ) * + 88 * + 45 + + - 76 AS col1
----
1496804

query I rowsort
SELECT + 62 * 16
----
992

query I rowsort
SELECT + 52 * 84 + + + ( + 63 ) AS col1
----
4431

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT + MAX( + + 27 )
----
27

skipif mysql # not compatible
query I rowsort label-1363
SELECT + MAX ( + + 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT - 45 - + NULLIF ( - SUM( + - 44 ), - 48 + - 49 ) * 77 AS col1
----
-3433

skipif mysql # not compatible
query I rowsort label-1364
SELECT - 45 - + NULLIF ( - SUM ( + - 44 ), - 48 + - 49 ) * 77 AS col1
----
-3433

onlyif mysql # DIV for integer division: 
query I rowsort label-1365
SELECT - - 94 DIV 10 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-1365
SELECT - - 94 / 10 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT - SUM( - 85 ) + - MIN( + + 17 )
----
68

skipif mysql # not compatible
query I rowsort label-1366
SELECT - SUM ( - 85 ) + - MIN ( + + 17 )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1367
SELECT - 85 DIV - 30
----
2

skipif mysql # not compatible
query I rowsort label-1367
SELECT - 85 / - 30
----
2

query I rowsort
SELECT DISTINCT - - 2 * - 29 * + 76 AS col2
----
-4408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1369
SELECT DISTINCT - SUM( + 84 ) + + CASE COUNT( * ) WHEN - - 10 * + 24 + 54 + + 27 THEN NULL ELSE + 30 * + CASE + 50 WHEN + 7 + + COALESCE ( AVG ( ALL + + 41 ), - 56 * + - COUNT( * ) + - 77 ) + + 41 * + - COUNT( * ) * - CAST( NULL AS SIGNED ) + + COUNT( * ) THEN - 32 WHEN + - 22 THEN - 68 * - CAST( + - 62 AS SIGNED ) * - - 63 / 29 * ( 15 ) END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT - SUM ( + 84 ) + + CASE COUNT ( * ) WHEN - - 10 * + 24 + 54 + + 27 THEN NULL ELSE + 30 * + CASE + 50 WHEN + 7 + + COALESCE ( AVG ( ALL + + 41 ), - 56 * + - COUNT ( * ) + - 77 ) + + 41 * + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) THEN - 32 WHEN + - 22 THEN - 68 * - CAST ( + - 62 AS INTEGER ) * - - 63 / 29 * ( 15 ) END END AS col2
----
NULL

query I rowsort
SELECT - - CASE - 22 WHEN + 73 / + 88 THEN + AVG ( + + 11 ) ELSE NULL END * 41 AS col0
----
NULL

query I rowsort
SELECT + - 87 * 32
----
-2784

query I rowsort
SELECT - 74 + + ( - - 60 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT - CASE + SUM( - - 87 ) WHEN 41 THEN 13 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1373
SELECT - CASE + SUM ( - - 87 ) WHEN 41 THEN 13 ELSE NULL END col0
----
NULL

query I rowsort
SELECT - ( + - 17 ) + + - ( + - 16 )
----
33

query I rowsort
SELECT ALL - - 47 + + 81
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT ALL - 41 + + MIN( ALL - 32 ) * - 46 AS col1
----
1431

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL - 41 + + MIN ( ALL - 32 ) * - 46 AS col1
----
1431

query I rowsort
SELECT + 88 + 42 AS col2
----
130

query I rowsort
SELECT ALL ( - - NULLIF ( + 56, - + 21 ) )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1379
SELECT ALL - 21 DIV COUNT( * ) DIV ( 15 ) * 31
----
-31

skipif mysql # not compatible
query I rowsort label-1379
SELECT ALL - 21 / COUNT ( * ) / ( 15 ) * 31
----
-31

query I rowsort
SELECT DISTINCT 88 + + 21 AS col0
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1381
SELECT ALL NULLIF ( - + 31, 50 + - CAST( + 90 AS SIGNED ) ) + - ( 10 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL NULLIF ( - + 31, 50 + - CAST ( + 90 AS INTEGER ) ) + - ( 10 ) AS col1
----
-41

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1384
SELECT ALL - 76 DIV + + COALESCE ( 57, - + 70, - 28 ) - + 58 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL - 76 / + + COALESCE ( 57, - + 70, - 28 ) - + 58 AS col1
----
-59

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

query I rowsort
SELECT + NULLIF ( 70, ( - 54 ) ) AS col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1387
SELECT ALL + COUNT( * ) DIV - 31 - + ( - 32 ) * + - 94
----
-3008

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL + COUNT ( * ) / - 31 - + ( - 32 ) * + - 94
----
-3008

query I rowsort
SELECT + 98 * ( - 35 )
----
-3430

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT ( - - CASE + - CASE + 94 WHEN - - MAX( - 40 ) THEN - 91 * - 89 - - 11 WHEN NULLIF ( + + 2, + COUNT( * ) ) - + 81 - + - ( - ( + 40 ) ) + - 64 * + - 51 * - 45 THEN + NULLIF ( 95, + + ( + - 42 ) + 15 ) + + + COUNT( * ) + - SUM( DISTINCT + 7 ) - - + NULLIF ( - 33, + 13 - - 77 ) * ( + MIN( + 11 ) ) ELSE 75 END WHEN MIN( ( 17 ) ) * - - 68 THEN - - 22 * 30 * + COUNT( DISTINCT + 10 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1389
SELECT ( - - CASE + - CASE + 94 WHEN - - MAX ( - 40 ) THEN - 91 * - 89 - - 11 WHEN NULLIF ( + + 2, + COUNT ( * ) ) - + 81 - + - ( - ( + 40 ) ) + - 64 * + - 51 * - 45 THEN + NULLIF ( 95, + + ( + - 42 ) + 15 ) + + + COUNT ( * ) + - SUM ( DISTINCT + 7 ) - - + NULLIF ( - 33, + 13 - - 77 ) * ( + MIN ( + 11 ) ) ELSE 75 END WHEN MIN ( ( 17 ) ) * - - 68 THEN - - 22 * 30 * + COUNT ( DISTINCT + 10 ) END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT + SUM( - 39 ) + - 85
----
-124

skipif mysql # not compatible
query I rowsort label-1390
SELECT + SUM ( - 39 ) + - 85
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1391
SELECT ( + + SUM( + 57 ) ) AS col1, - 35 + - 6 DIV + 93 AS col1
----
57
-35

skipif mysql # not compatible
query II rowsort label-1391
SELECT ( + + SUM ( + 57 ) ) AS col1, - 35 + - 6 / + 93 AS col1
----
57
-35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT + 38 * - + COUNT( * ) col1
----
-38

skipif mysql # not compatible
query I rowsort label-1393
SELECT + 38 * - + COUNT ( * ) col1
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1394
SELECT + + COUNT( * ) * + - 36 DIV 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1394
SELECT + + COUNT ( * ) * + - 36 / 93 AS col1
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1396
SELECT ALL - NULLIF ( - 19, + SUM( ALL 32 ) ) * + + 45 * CASE 65 WHEN 74 THEN - 22 + + 22 * + CASE - 3 WHEN + NULLIF ( + - 73, + CAST( - - 99 AS SIGNED ) ) * - - 3 - + + MIN( - 58 ) THEN NULL WHEN - 65 THEN NULL WHEN + + AVG ( + + 74 ) THEN - 46 * 58 ELSE - - 70 + CASE 14 WHEN NULLIF ( - + 88, + 92 ) * + + COUNT( * ) THEN COUNT( * ) - 7 + CAST( - - 85 AS SIGNED ) + - + 10 + + 38 * - 38 + + 96 * - MIN( - 28 ) / ( + 84 ) + 17 + + 60 * COUNT( * ) ELSE NULL END / + 77 END * - COALESCE ( - 44, - 21 ) + 65 * - 47 WHEN ( ( - 57 ) ) THEN NULL ELSE NULL END + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL - NULLIF ( - 19, + SUM ( ALL 32 ) ) * + + 45 * CASE 65 WHEN 74 THEN - 22 + + 22 * + CASE - 3 WHEN + NULLIF ( + - 73, + CAST ( - - 99 AS INTEGER ) ) * - - 3 - + + MIN ( - 58 ) THEN NULL WHEN - 65 THEN NULL WHEN + + AVG ( + + 74 ) THEN - 46 * 58 ELSE - - 70 + CASE 14 WHEN NULLIF ( - + 88, + 92 ) * + + COUNT ( * ) THEN COUNT ( * ) - 7 + CAST ( - - 85 AS INTEGER ) + - + 10 + + 38 * - 38 + + 96 * - MIN ( - 28 ) / ( + 84 ) + 17 + + 60 * COUNT ( * ) ELSE NULL END / + 77 END * - COALESCE ( - 44, - 21 ) + 65 * - 47 WHEN ( ( - 57 ) ) THEN NULL ELSE NULL END + + 4
----
NULL

query I rowsort
SELECT + - 88 + - 94
----
-182

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT ALL + 77 * 7 * + 17 * + - 97 * COUNT( * )
----
-888811

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL + 77 * 7 * + 17 * + - 97 * COUNT ( * )
----
-888811

query I rowsort
SELECT + + 71 * - 42 AS col0
----
-2982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1401
SELECT - COALESCE ( - COALESCE ( - COUNT( + 99 ), + 10 + - COUNT( DISTINCT ( + 88 ) ) + + 67 ), + 39 ) AS col0, + 43 + AVG ( - - NULLIF ( + CAST( NULL AS SIGNED ), + ( + - 83 ) + - ( + 11 ) ) )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1401
SELECT - COALESCE ( - COALESCE ( - COUNT ( + 99 ), + 10 + - COUNT ( DISTINCT ( + 88 ) ) + + 67 ), + 39 ) AS col0, + 43 + AVG ( - - NULLIF ( + CAST ( NULL AS INTEGER ), + ( + - 83 ) + - ( + 11 ) ) )
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1402
SELECT - 6 + + 22 DIV + 65
----
-6

skipif mysql # not compatible
query I rowsort label-1402
SELECT - 6 + + 22 / + 65
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT DISTINCT + COALESCE ( + COUNT( * ), - 30 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT + COALESCE ( + COUNT ( * ), - 30 ) AS col1
----
1

query I rowsort
SELECT + 59 * 90 + + 40
----
5350

onlyif mysql # DIV for integer division: 
query I rowsort label-1405
SELECT DISTINCT - ( NULLIF ( + COALESCE ( - 32, 44, + 14 ), + 32 ) ) DIV - - 40 col1
----
0

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT - ( NULLIF ( + COALESCE ( - 32, 44, + 14 ), + 32 ) ) / - - 40 col1
----
0

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

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

query I rowsort
SELECT ALL + 45 + - 75
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT DISTINCT + - 83 DIV 68
----
-1

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT + - 83 / 68
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1409
SELECT ALL - + COALESCE ( - 52, + 27 DIV + - COUNT( * ) ) + - 80
----
-28

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL - + COALESCE ( - 52, + 27 / + - COUNT ( * ) ) + - 80
----
-28

query I rowsort
SELECT + + 70 - + 81
----
-11

query I rowsort
SELECT - - 6 * 29
----
174

onlyif mysql # aggregate syntax: 
query II rowsort label-1412
SELECT - 67 AS col0, 58 + + 78 - + NULLIF ( + - COALESCE ( + 94, - 89 * COUNT( * ), + - 4 ), - 91 ) * 20 * - 95 AS col1
----
-67
-178464

skipif mysql # not compatible
query II rowsort label-1412
SELECT - 67 AS col0, 58 + + 78 - + NULLIF ( + - COALESCE ( + 94, - 89 * COUNT ( * ), + - 4 ), - 91 ) * 20 * - 95 AS col1
----
-67
-178464

query I rowsort
SELECT ALL - 17 - - 49
----
32

query I rowsort
SELECT - 52 * - 1 AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1415
SELECT DISTINCT - COUNT( * ) - + + COUNT( ALL NULLIF ( 45, - + 99 + - + 21 ) ) * + NULLIF ( - CASE 47 WHEN + - COALESCE ( - + 77, 45, + 79, ( - + 77 ) ) * + CASE + 7 WHEN - - 50 THEN - 89 * + - 93 + - - 53 WHEN + - 21 THEN 64 END * 67 + + 32 THEN NULL WHEN - + 62 + COALESCE ( ( - + CAST( - - ( 75 ) AS DECIMAL ) ), - AVG ( ALL + 24 ) ) * + 27 / + 66 THEN ( - COUNT( * ) ) * 63 END, + + 23 ) / + COALESCE ( + COUNT( * ), + + 28 * COUNT( * ) + - 92, + 67, 69 * 53 + + 87 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT - COUNT ( * ) - + + COUNT ( ALL NULLIF ( 45, - + 99 + - + 21 ) ) * + NULLIF ( - CASE 47 WHEN + - COALESCE ( - + 77, 45, + 79, ( - + 77 ) ) * + CASE + 7 WHEN - - 50 THEN - 89 * + - 93 + - - 53 WHEN + - 21 THEN 64 END * 67 + + 32 THEN NULL WHEN - + 62 + COALESCE ( ( - + CAST ( - - ( 75 ) AS REAL ) ), - AVG ( ALL + 24 ) ) * + 27 / + 66 THEN ( - COUNT ( * ) ) * 63 END, + + 23 ) / + COALESCE ( + COUNT ( * ), + + 28 * COUNT ( * ) + - 92, + 67, 69 * 53 + + 87 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-1416
SELECT ALL 78 AS col1, 77 * - 23 * - 10 AS col0, - ( - + COUNT( * ) )
----
78
17710
1

skipif mysql # not compatible
query III rowsort label-1416
SELECT ALL 78 AS col1, 77 * - 23 * - 10 AS col0, - ( - + COUNT ( * ) )
----
78
17710
1

query I rowsort
SELECT ALL - 17 - + + 89 AS col1
----
-106

query II rowsort
SELECT DISTINCT 82 AS col0, - 14
----
82
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1419
SELECT ALL CAST( - MAX( DISTINCT + 57 ) AS SIGNED ) - 96 * + 89 * - 67 col0
----
572391

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL CAST ( - MAX ( DISTINCT + 57 ) AS INTEGER ) - 96 * + 89 * - 67 col0
----
572391

query I rowsort
SELECT 40 * - - 18 col1
----
720

query I rowsort
SELECT 11 * - - 53 AS col0
----
583

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT 14 + + 4 * + 35 + - 18 * - - SUM( + 87 )
----
-1412

skipif mysql # not compatible
query I rowsort label-1422
SELECT 14 + + 4 * + 35 + - 18 * - - SUM ( + 87 )
----
-1412

query I rowsort
SELECT - 0 * 79 - + 28
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-1424
SELECT 30 DIV 1 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-1424
SELECT 30 / 1 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT MIN( ALL 96 ) * - 74
----
-7104

skipif mysql # not compatible
query I rowsort label-1425
SELECT MIN ( ALL 96 ) * - 74
----
-7104

query I rowsort
SELECT ALL 50 * 41 col2
----
2050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1427
SELECT ALL + CAST( - + COUNT( * ) AS SIGNED ) * - 62 - + - NULLIF ( - + 49, 79 + + 78 + + 94 - + 13 + + + ( - 57 ) * + 26 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL + CAST ( - + COUNT ( * ) AS INTEGER ) * - 62 - + - NULLIF ( - + 49, 79 + + 78 + + 94 - + 13 + + + ( - 57 ) * + 26 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( + - 94, - 90 ) * + 54
----
5076

query I rowsort
SELECT 57 + + 8 + + + 25
----
90

query I rowsort
SELECT ALL - - 48 + 35 AS col0
----
83

query II rowsort
SELECT + 98 * - 73 + - ( + 61 ) AS col0, 25 AS col2
----
-7215
25

query I rowsort
SELECT - 52 * - - 99 + + 84 AS col1
----
-5064

query I rowsort
SELECT 64 * + 12
----
768

query I rowsort
SELECT DISTINCT 46 + + + 43 + - 95 AS col2
----
-6

query I rowsort
SELECT - 90 * 72
----
-6480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1436
SELECT 26 + - 98 * MAX( - 24 ) AS col0, - ( - CAST( + + 23 AS SIGNED ) ) + 97 col0
----
2378
120

skipif mysql # not compatible
query II rowsort label-1436
SELECT 26 + - 98 * MAX ( - 24 ) AS col0, - ( - CAST ( + + 23 AS INTEGER ) ) + 97 col0
----
2378
120

query II rowsort
SELECT ALL - - 64 AS col0, + 69 + - - 0
----
64
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1438
SELECT DISTINCT - SUM( ALL + CAST( 16 AS SIGNED ) ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-1438
SELECT DISTINCT - SUM ( ALL + CAST ( 16 AS INTEGER ) ) AS col1
----
-16

query I rowsort
SELECT ALL + 40 + + 70 * 29 * - - 73 + 86
----
148316

query I rowsort
SELECT DISTINCT + + 43 + - 60 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT + 56 + COUNT( * ) + + 18 + - + 59 * + 63
----
-3642

skipif mysql # not compatible
query I rowsort label-1441
SELECT + 56 + COUNT ( * ) + + 18 + - + 59 * + 63
----
-3642

query II rowsort
SELECT ALL + 49, - 6 - + - 39 AS col2
----
49
33

onlyif mysql # aggregate syntax: 
query II rowsort label-1443
SELECT DISTINCT COUNT( * ) * SUM( + + 69 ) * + - 43 * - 31 * + 64 AS col2, - 14
----
5886528
-14

skipif mysql # not compatible
query II rowsort label-1443
SELECT DISTINCT COUNT ( * ) * SUM ( + + 69 ) * + - 43 * - 31 * + 64 AS col2, - 14
----
5886528
-14

query I rowsort
SELECT ALL - 4 * - + NULLIF ( - + 33, + 42 ) * + + 26 AS col2
----
-3432

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

skipif mysql # not compatible
query I rowsort label-1445
SELECT - COUNT ( * ) + + + 37 / + ( 52 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT - 6 - + - MAX( DISTINCT - 63 )
----
-69

skipif mysql # not compatible
query I rowsort label-1446
SELECT - 6 - + - MAX ( DISTINCT - 63 )
----
-69

query I rowsort
SELECT ALL 76 - 20
----
56

query II rowsort
SELECT - 42 AS col2, 32 - 67
----
-42
-35

query I rowsort
SELECT 5 + + + ( - - 25 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT 5 + - - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-1450
SELECT 5 + - - COUNT ( * )
----
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1451
SELECT ALL + CAST( + CAST( 69 AS SIGNED ) AS SIGNED ) DIV 41 * - 60 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL + CAST ( + CAST ( 69 AS INTEGER ) AS INTEGER ) / 41 * - 60 AS col0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1452
SELECT ALL COUNT( * ) - + + COUNT( * ) DIV + 30 AS col2, + 29 * - 96 * + 80 * + 68 AS col2
----
1
-15144960

skipif mysql # not compatible
query II rowsort label-1452
SELECT ALL COUNT ( * ) - + + COUNT ( * ) / + 30 AS col2, + 29 * - 96 * + 80 * + 68 AS col2
----
1
-15144960

query I rowsort
SELECT 30 * - + 93 AS col1
----
-2790

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1454
SELECT 34 * + 38 col2, + 76 DIV MAX( DISTINCT - 67 ) DIV NULLIF ( + 40, 56 ) + + ( + - 10 ) AS col1, + + 78
----
1292
-10
78

skipif mysql # not compatible
query III rowsort label-1454
SELECT 34 * + 38 col2, + 76 / MAX ( DISTINCT - 67 ) / NULLIF ( + 40, 56 ) + + ( + - 10 ) AS col1, + + 78
----
1292
-10
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1455
SELECT - MAX( - - 71 ) AS col0, - 85 AS col0
----
-71
-85

skipif mysql # not compatible
query II rowsort label-1455
SELECT - MAX ( - - 71 ) AS col0, - 85 AS col0
----
-71
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1456
SELECT MAX( ALL - 37 ) + - + 54 + - 22 + + CAST( - - 37 AS SIGNED ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-1456
SELECT MAX ( ALL - 37 ) + - + 54 + - 22 + + CAST ( - - 37 AS INTEGER ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT ALL COUNT( * ) * - 47 * + + 20
----
-940

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL COUNT ( * ) * - 47 * + + 20
----
-940

query II rowsort
SELECT ALL - 96 + + 13 col2, - 59
----
-83
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT DISTINCT - NULLIF ( + - ( - + 43 ), - COUNT( * ) * SUM( DISTINCT - 70 ) ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT - NULLIF ( + - ( - + 43 ), - COUNT ( * ) * SUM ( DISTINCT - 70 ) ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT DISTINCT - MIN( DISTINCT 41 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT - MIN ( DISTINCT 41 ) AS col2
----
-41

query I rowsort
SELECT DISTINCT - 14 + + 58 - + + 27
----
17

query II rowsort
SELECT ALL + 24 * 85, 40 * + 26 AS col2
----
2040
1040

query II rowsort
SELECT ALL + 51 + 56 AS col0, 36 - - COALESCE ( - 47, + 51 ) + 17 * - + 3 * - 1 AS col1
----
107
40

query I rowsort
SELECT ALL - 52 + - - 46
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT - MIN( + 2 ) - - 50
----
48

skipif mysql # not compatible
query I rowsort label-1465
SELECT - MIN ( + 2 ) - - 50
----
48

query I rowsort
SELECT - 96 * + 90 - + - 56
----
-8584

query I rowsort
SELECT - 65 * - + COALESCE ( + + 81, - 67 ) AS col2
----
5265

query I rowsort
SELECT - NULLIF ( + 66, + - 39 ) AS col2
----
-66

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1470
SELECT DISTINCT + + 83 * 51 AS col0, + 44 * CASE + MIN( DISTINCT - + 29 ) WHEN 19 THEN NULL WHEN - 57 + - 72 THEN + COALESCE ( - 16, - COUNT( * ) * + - 87 ) ELSE NULL END + - 34 AS col1
----
4233
NULL

skipif mysql # not compatible
query II rowsort label-1470
SELECT DISTINCT + + 83 * 51 AS col0, + 44 * CASE + MIN ( DISTINCT - + 29 ) WHEN 19 THEN NULL WHEN - 57 + - 72 THEN + COALESCE ( - 16, - COUNT ( * ) * + - 87 ) ELSE NULL END + - 34 AS col1
----
4233
NULL

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

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL + + 41 * - + 78 + - COUNT ( * ) AS col1
----
-3199

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT + - 38 * - COUNT( * ) + - + 48 * - 94 AS col0
----
4550

skipif mysql # not compatible
query I rowsort label-1472
SELECT + - 38 * - COUNT ( * ) + - + 48 * - 94 AS col0
----
4550

query I rowsort
SELECT ALL - 8 * - 87 - - 64 AS col2
----
760

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

skipif mysql # not compatible
query I rowsort label-1474
SELECT 51 * - ( COUNT ( * ) )
----
-51

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

skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT - 75 - 9 + + + CAST ( NULL AS INTEGER ) + - - 30
----
NULL

query I rowsort
SELECT - 12 + + 17 * - ( - 16 ) col1
----
260

query I rowsort
SELECT ALL + NULLIF ( + 91, + 92 ) - - 48
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1478
SELECT + 4 + - COUNT( * ) - - COUNT( * ) * + 87 * - COALESCE ( + - 11, - 21 * - + 37 + 82 DIV + + 79 * - ( + COUNT( * ) ) DIV - 50 ) * - 2 + + 44 AS col0
----
-1867

skipif mysql # not compatible
query I rowsort label-1478
SELECT + 4 + - COUNT ( * ) - - COUNT ( * ) * + 87 * - COALESCE ( + - 11, - 21 * - + 37 + 82 / + + 79 * - ( + COUNT ( * ) ) / - 50 ) * - 2 + + 44 AS col0
----
-1867

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1479
SELECT ALL CAST( + 83 AS SIGNED ) AS col0, + 11 AS col1
----
83
11

skipif mysql # not compatible
query II rowsort label-1479
SELECT ALL CAST ( + 83 AS INTEGER ) AS col0, + 11 AS col1
----
83
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT ALL NULLIF ( CASE 19 WHEN 49 THEN 30 * + 13 ELSE NULL END, + NULLIF ( COUNT( * ), + + SUM( - 79 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL NULLIF ( CASE 19 WHEN 49 THEN 30 * + 13 ELSE NULL END, + NULLIF ( COUNT ( * ), + + SUM ( - 79 ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT ALL CASE 91 WHEN + AVG ( ALL 88 ) THEN 87 / COUNT( * ) END * - + COUNT( * ) + MIN( ALL 24 ) + - 83 / 71
----
NULL

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL CASE 91 WHEN + AVG ( ALL 88 ) THEN 87 / COUNT ( * ) END * - + COUNT ( * ) + MIN ( ALL 24 ) + - 83 / 71
----
NULL

query I rowsort
SELECT + 99 * 27 AS col1
----
2673

query I rowsort
SELECT - NULLIF ( + + 95, + NULLIF ( + ( 44 ), 33 ) ) AS col0
----
-95

query I rowsort
SELECT + 70 - + 1 + 45 * + 18 * + ( - + 32 ) AS col0
----
-25851

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1485
SELECT + 46 + 32 + - + NULLIF ( CAST( + - 76 AS SIGNED ), 66 ), - 14 + - + 90 * - 27 AS col2
----
154
2416

skipif mysql # not compatible
query II rowsort label-1485
SELECT + 46 + 32 + - + NULLIF ( CAST ( + - 76 AS INTEGER ), 66 ), - 14 + - + 90 * - 27 AS col2
----
154
2416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1486
SELECT - CASE + COUNT( * ) WHEN - 17 * - - 24 * - 61 / + - ( + - COUNT( * ) ) THEN NULL WHEN + 83 + 50 * + + 95 + - 19 THEN - COALESCE ( - CAST( NULL AS SIGNED ), COUNT( * ) + - - 44 / AVG ( ALL - - 67 ) - - 82, 84 ) + + 59 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1486
SELECT - CASE + COUNT ( * ) WHEN - 17 * - - 24 * - 61 / + - ( + - COUNT ( * ) ) THEN NULL WHEN + 83 + 50 * + + 95 + - 19 THEN - COALESCE ( - CAST ( NULL AS INTEGER ), COUNT ( * ) + - - 44 / AVG ( ALL - - 67 ) - - 82, 84 ) + + 59 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1487
SELECT + 63 DIV + 14
----
4

skipif mysql # not compatible
query I rowsort label-1487
SELECT + 63 / + 14
----
4

query II rowsort
SELECT DISTINCT 88 AS col0, 27 * 53
----
88
1431

query I rowsort
SELECT ALL 10 + 60 AS col0
----
70

query II rowsort
SELECT ALL 47 AS col2, 13 AS col1
----
47
13

query I rowsort
SELECT + 92 - - 4
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT ALL MAX( 10 ) col2
----
10

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL MAX ( 10 ) col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1493
SELECT ALL 74 + - + COUNT( * ) + + 46, COUNT( * ) * - - NULLIF ( + + 45, - MAX( DISTINCT - 11 ) * - + NULLIF ( - ( COUNT( ALL + 25 ) ), - MIN( 30 ) / - - 83 * AVG ( - - 91 ) + 90 ) ) col0
----
119
45

skipif mysql # not compatible
query II rowsort label-1493
SELECT ALL 74 + - + COUNT ( * ) + + 46, COUNT ( * ) * - - NULLIF ( + + 45, - MAX ( DISTINCT - 11 ) * - + NULLIF ( - ( COUNT ( ALL + 25 ) ), - MIN ( 30 ) / - - 83 * AVG ( - - 91 ) + 90 ) ) col0
----
119
45

query II rowsort
SELECT 2, + 51 col1
----
2
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1495
SELECT - CAST( NULL AS SIGNED ), CASE 21 WHEN CASE + 11 WHEN 9 THEN + 2 + + 60 END / - 0 + 93 THEN + + ( + - 69 ) END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1495
SELECT - CAST ( NULL AS INTEGER ), CASE 21 WHEN CASE + 11 WHEN 9 THEN + 2 + + 60 END / - 0 + 93 THEN + + ( + - 69 ) END AS col2
----
NULL
NULL

query II rowsort
SELECT ALL + 37, + 94 AS col1
----
37
94

query I rowsort
SELECT ALL - 13 * - 30 + 98 - + 12 AS col0
----
476

query II rowsort
SELECT DISTINCT + + 4 AS col2, - 55
----
4
-55

query II rowsort
SELECT ALL 26 * + 96 - 51, + ( - 34 ) AS col2
----
2445
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT + + 57 + + ( - + COUNT( + 16 ) ) * + COUNT( * ) * + + 2
----
55

skipif mysql # not compatible
query I rowsort label-1500
SELECT + + 57 + + ( - + COUNT ( + 16 ) ) * + COUNT ( * ) * + + 2
----
55

query I rowsort
SELECT + 96 * - 4 AS col1
----
-384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1502
SELECT - CASE + 48 WHEN - 42 + - 33 - + - 7 THEN - CAST( NULL AS SIGNED ) * 60 + + 94 + + NULLIF ( ( + - 21 ), + ( - COALESCE ( - 8, + COUNT( * ) * 6 / + ( - 66 ) ) ) ) * + + COALESCE ( + - CAST( NULL AS SIGNED ), - 93 * 89 * + 51 * - ( + + 68 ) + 39 + COUNT( * ) ) * - 17 - COUNT( * ) + - - 36 + COALESCE ( 37, + SUM( + 16 ) * - + 75, - COUNT( * ), + 14 ) WHEN 29 + - 71 + + 55 THEN 52 + - 56 / + 15 + 36 ELSE NULL END * + 58 + + 82, SUM( ALL - 73 ) - + MAX( ALL CAST( NULL AS SIGNED ) ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1502
SELECT - CASE + 48 WHEN - 42 + - 33 - + - 7 THEN - CAST ( NULL AS INTEGER ) * 60 + + 94 + + NULLIF ( ( + - 21 ), + ( - COALESCE ( - 8, + COUNT ( * ) * 6 / + ( - 66 ) ) ) ) * + + COALESCE ( + - CAST ( NULL AS INTEGER ), - 93 * 89 * + 51 * - ( + + 68 ) + 39 + COUNT ( * ) ) * - 17 - COUNT ( * ) + - - 36 + COALESCE ( 37, + SUM ( + 16 ) * - + 75, - COUNT ( * ), + 14 ) WHEN 29 + - 71 + + 55 THEN 52 + - 56 / + 15 + 36 ELSE NULL END * + 58 + + 82, SUM ( ALL - 73 ) - + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
NULL
NULL

query I rowsort
SELECT - - 33 * 24
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT ALL - 22 * + COUNT( * ) * + 33 AS col1
----
-726

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL - 22 * + COUNT ( * ) * + 33 AS col1
----
-726

onlyif mysql # DIV for integer division: 
query I rowsort label-1505
SELECT DISTINCT - 11 DIV - 22
----
0

skipif mysql # not compatible
query I rowsort label-1505
SELECT DISTINCT - 11 / - 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT DISTINCT - + 88 * 88 + 95 - - + 8 * COUNT( * ) * + 62 AS col2
----
-7153

skipif mysql # not compatible
query I rowsort label-1506
SELECT DISTINCT - + 88 * 88 + 95 - - + 8 * COUNT ( * ) * + 62 AS col2
----
-7153

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

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

query II rowsort
SELECT DISTINCT ( 25 ) AS col1, 0 AS col0
----
25
0

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

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

query I rowsort
SELECT - 70 + - 7 * + - 23
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT + MAX( ALL + - 53 ) - - + 46
----
-7

skipif mysql # not compatible
query I rowsort label-1511
SELECT + MAX ( ALL + - 53 ) - - + 46
----
-7

query I rowsort
SELECT + 52 + + 91 * - + 95 AS col0
----
-8593

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1514
SELECT + COALESCE ( 46, + 61, - ( 11 ) * - 63 ) + CAST( NULL AS SIGNED ) * - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1514
SELECT + COALESCE ( 46, + 61, - ( 11 ) * - 63 ) + CAST ( NULL AS INTEGER ) * - 35 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL 10 + - 53 AS col2
----
-43

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

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT - COUNT ( * ) + + 71 AS col0
----
70

query I rowsort
SELECT ALL 4 * - 39
----
-156

query I rowsort
SELECT + 62 + 67 + - 57 * + - 90 * - - 35
----
179679

query I rowsort
SELECT - CASE + 86 WHEN - 48 THEN - - 50 ELSE ( + 34 ) END
----
-34

query I rowsort
SELECT + 14 + - 18 AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1522
SELECT ALL 78 DIV + 96 - - - 5 * - NULLIF ( 81, 20 + + - 59 ) AS col0
----
405

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL 78 / + 96 - - - 5 * - NULLIF ( 81, 20 + + - 59 ) AS col0
----
405

onlyif mysql # DIV for integer division: 
query I rowsort label-1523
SELECT DISTINCT 16 DIV 14 - ( + - 51 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT 16 / 14 - ( + - 51 ) AS col2
----
52

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

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

query I rowsort
SELECT + + 47 + + 92
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT DISTINCT + + MIN( 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-1526
SELECT DISTINCT + + MIN ( 51 ) AS col1
----
51

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1528
SELECT + - CAST( NULL AS DECIMAL ) - - + 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1528
SELECT + - CAST ( NULL AS REAL ) - - + 95 AS col2
----
NULL

query I rowsort
SELECT ALL - 17 * + 7 col0
----
-119

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1531
SELECT DISTINCT - 84 * + ( + 6 ) * + 15 DIV - 15 + + 86 * + 45 + - 68 AS col1
----
4306

skipif mysql # not compatible
query I rowsort label-1531
SELECT DISTINCT - 84 * + ( + 6 ) * + 15 / - 15 + + 86 * + 45 + - 68 AS col1
----
4306

query I rowsort
SELECT ALL + 26 * + 45 / + 96 * + - CASE - 7 WHEN - 74 * + 84 + ( + + 4 ) THEN 48 WHEN + 56 THEN - 29 + + 7 + + 69 * 1 + 63 * + 74 + + 70 / - + 56 / ( - 9 ) + - + 17 END
----
NULL

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

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

query I rowsort
SELECT - 65 * 84 + - 88 AS col0
----
-5548

query I rowsort
SELECT 60 - - 77
----
137

query I rowsort
SELECT ALL 99 * + + 6 AS col2
----
594

onlyif mysql # aggregate syntax: 
query II rowsort label-1537
SELECT ALL + 65 * - COUNT( DISTINCT 30 ) - + 82 + + 74 AS col2, - 20 + - 38 * 47
----
-73
-1806

skipif mysql # not compatible
query II rowsort label-1537
SELECT ALL + 65 * - COUNT ( DISTINCT 30 ) - + 82 + + 74 AS col2, - 20 + - 38 * 47
----
-73
-1806

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

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

query I rowsort
SELECT ALL - + 92 col2
----
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-1540
SELECT 34 * + - 97 * - - 83, 77 DIV - - 39 AS col0
----
-273734
1

skipif mysql # not compatible
query II rowsort label-1540
SELECT 34 * + - 97 * - - 83, 77 / - - 39 AS col0
----
-273734
1

query I rowsort
SELECT 5 * - ( + + 26 )
----
-130

query I rowsort
SELECT ALL - CASE + 35 WHEN + + 96 * 58 THEN 94 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1543
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - + 27 * 15
----
NULL

query I rowsort
SELECT 59 * 99 AS col0
----
5841

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

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

query I rowsort
SELECT DISTINCT - 9 + - 22 AS col1
----
-31

query I rowsort
SELECT ALL - ( - 41 ) * ( 41 )
----
1681

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT ALL - 0 + 53 * + - 99 - + ( 59 ) * + CASE + + 53 WHEN - COUNT( * ) THEN 26 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL - 0 + 53 * + - 99 - + ( 59 ) * + CASE + + 53 WHEN - COUNT ( * ) THEN 26 END AS col1
----
NULL

query II rowsort
SELECT 49 * + + COALESCE ( - 61, - 10 - 50 ) * - - 47 * 82 * - 65 AS col0, + 17
----
748774390
17

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1551
SELECT SUM( - 73 ) * - - 3, - 52 AS col1
----
-219
-52

skipif mysql # not compatible
query II rowsort label-1551
SELECT SUM ( - 73 ) * - - 3, - 52 AS col1
----
-219
-52

query I rowsort
SELECT ALL + ( + 79 ) + + 22 AS col0
----
101

query I rowsort
SELECT ALL 80 + - 63 col0
----
17

query II rowsort
SELECT 41 col2, - 10
----
41
-10

query II rowsort
SELECT 39 + - 37 * 75, 23 AS col1
----
-2736
23

query I rowsort
SELECT 74 * - 25 AS col2
----
-1850

query I rowsort
SELECT 49 + + 72 AS col1
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-1558
SELECT 84 * 96 * 29 AS col2, COUNT( * )
----
233856
1

skipif mysql # not compatible
query II rowsort label-1558
SELECT 84 * 96 * 29 AS col2, COUNT ( * )
----
233856
1

query I rowsort
SELECT ALL 21 - 18
----
3

query I rowsort
SELECT 74 - 84 AS col0
----
-10

query I rowsort
SELECT ALL 14 * + 24 AS col2
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT SUM( 42 ) + COUNT( * ) AS col1
----
43

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1563
SELECT DISTINCT 49 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1563
SELECT DISTINCT 49 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

query I rowsort
SELECT ALL 67 - - 87 * + 67 AS col2
----
5896

query I rowsort
SELECT ALL 78 * - 90
----
-7020

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT - COUNT( * ) * - 42 - 84 * - 61 AS col0
----
5166

skipif mysql # not compatible
query I rowsort label-1567
SELECT - COUNT ( * ) * - 42 - 84 * - 61 AS col0
----
5166

query I rowsort
SELECT DISTINCT 13 * + 8 AS col0
----
104

query I rowsort
SELECT 83 + - 82 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1570
SELECT 3 DIV 48 - + 11 * + 92
----
-1012

skipif mysql # not compatible
query I rowsort label-1570
SELECT 3 / 48 - + 11 * + 92
----
-1012

query I rowsort
SELECT 89 * 66
----
5874

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT COUNT( * ) * COUNT( DISTINCT - 37 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1572
SELECT COUNT ( * ) * COUNT ( DISTINCT - 37 ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT 3 * 14 + ( + COUNT( * ) - 33 * + ( 53 + + 20 ) )
----
-2366

skipif mysql # not compatible
query I rowsort label-1574
SELECT 3 * 14 + ( + COUNT ( * ) - 33 * + ( 53 + + 20 ) )
----
-2366

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

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL COUNT ( * ) / ( 94 )
----
0

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

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

query I rowsort
SELECT 18 + - 41 AS col0
----
-23

query I rowsort
SELECT DISTINCT NULLIF ( + 35, ( + 10 ) + + 98 * - 75 ) * + 74
----
2590

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT ALL MAX( - ( 31 ) ) + + SUM( 98 )
----
67

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL MAX ( - ( 31 ) ) + + SUM ( 98 )
----
67

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

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

query I rowsort
SELECT ( + 60 ) * - 10
----
-600

query I rowsort
SELECT 31 * ( 23 ) + - ( 86 )
----
627

query I rowsort
SELECT ALL 58 + + 41 col1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1584
SELECT 59 DIV 35 col1
----
1

skipif mysql # not compatible
query I rowsort label-1584
SELECT 59 / 35 col1
----
1

query I rowsort
SELECT - 68 * + 46 + + 15
----
-3113

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

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

query I rowsort
SELECT ALL - COALESCE ( ( NULLIF ( 87, + 23 ) ), 18 + 72 )
----
-87

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

skipif mysql # not compatible
query I rowsort label-1588
SELECT CAST ( NULL AS INTEGER ) + 79 * - 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT ALL MIN( DISTINCT 64 ) * - 26 AS col1
----
-1664

skipif mysql # not compatible
query I rowsort label-1589
SELECT ALL MIN ( DISTINCT 64 ) * - 26 AS col1
----
-1664

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT COUNT( + 4 ) * + ( - COUNT( DISTINCT 12 ) ) + 91 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-1590
SELECT COUNT ( + 4 ) * + ( - COUNT ( DISTINCT 12 ) ) + 91 AS col0
----
90

query I rowsort
SELECT ALL - 96 + - 94 AS col1
----
-190

query I rowsort
SELECT 65 * + 30 AS col1
----
1950

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

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

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

skipif mysql # not compatible
query I rowsort label-1594
SELECT 74 + + COUNT ( * ) * 19 AS col0
----
93

query I rowsort
SELECT 84 + 2 AS col1
----
86

query I rowsort
SELECT ALL - 97 - + ( - 1 )
----
-96

query I rowsort
SELECT 94 + ( + 48 ) col2
----
142

query I rowsort
SELECT ALL - 33 - 86 AS col0
----
-119

query I rowsort
SELECT 68 * - 71 AS col1
----
-4828

query I rowsort
SELECT 74 + + 22 AS col0
----
96

query I rowsort
SELECT ALL + 61 * + 11 AS col1
----
671

query I rowsort
SELECT DISTINCT + 88 * 47
----
4136

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT DISTINCT MIN( - 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT MIN ( - 54 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT DISTINCT + 83 * CASE - NULLIF ( 69, 12 ) WHEN 97 THEN 21 + + COUNT( * ) WHEN 99 THEN NULL ELSE NULLIF ( - 17, - MAX( ALL - 31 ) + 43 ) END
----
-1411

skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT + 83 * CASE - NULLIF ( 69, 12 ) WHEN 97 THEN 21 + + COUNT ( * ) WHEN 99 THEN NULL ELSE NULLIF ( - 17, - MAX ( ALL - 31 ) + 43 ) END
----
-1411

query I rowsort
SELECT DISTINCT - + 44 - 23 * 90
----
-2114

query I rowsort
SELECT 71 + 31 AS col0
----
102

query I rowsort
SELECT 74 * - 12 AS col0
----
-888

query I rowsort
SELECT - 32 + - 89 col1
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-1609
SELECT + - 89 DIV - 45 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1609
SELECT + - 89 / - 45 AS col1
----
1

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

skipif mysql # not compatible
query I rowsort label-1610
SELECT + COUNT ( * ) + - 42 AS col0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-1611
SELECT DISTINCT + - 56 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT + - 56 / - 93
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1612
SELECT ALL CASE - 53 WHEN - ( + AVG ( 85 ) ) + + CAST( NULL AS SIGNED ) THEN - COALESCE ( + 60, COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL CASE - 53 WHEN - ( + AVG ( 85 ) ) + + CAST ( NULL AS INTEGER ) THEN - COALESCE ( + 60, COUNT ( * ) ) END
----
NULL

query I rowsort
SELECT - 7 + - ( 48 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT DISTINCT - - COUNT( * ) * 2 + - 40
----
-38

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT - - COUNT ( * ) * 2 + - 40
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1615
SELECT ALL + + CAST( COALESCE ( ( 13 ), - COUNT( * ), - COUNT( * ) ) AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL + + CAST ( COALESCE ( ( 13 ), - COUNT ( * ), - COUNT ( * ) ) AS INTEGER )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT - COUNT( 79 ) - + 37 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-1616
SELECT - COUNT ( 79 ) - + 37 AS col1
----
-38

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

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT - 84 * + COUNT ( * ) + 78 AS col1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1618
SELECT - - CASE 45 WHEN + 88 * - CASE + 97 WHEN - 7 THEN NULL ELSE ( ( - ( - COALESCE ( + CAST( NULL AS SIGNED ), + ( SUM( - 31 ) ), MIN( 4 ) / 41 ) ) ) ) * + AVG ( 78 ) END THEN NULL WHEN 60 THEN + 72 * - 80 ELSE NULL END * 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT - - CASE 45 WHEN + 88 * - CASE + 97 WHEN - 7 THEN NULL ELSE ( ( - ( - COALESCE ( + CAST ( NULL AS INTEGER ), + ( SUM ( - 31 ) ), MIN ( 4 ) / 41 ) ) ) ) * + AVG ( 78 ) END THEN NULL WHEN 60 THEN + 72 * - 80 ELSE NULL END * 13 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1619
SELECT + + 98 DIV 56 + + 19
----
20

skipif mysql # not compatible
query I rowsort label-1619
SELECT + + 98 / 56 + + 19
----
20

query I rowsort
SELECT + 29 + - 9
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1621
SELECT DISTINCT - 74 * - CASE - 99 WHEN - 68 THEN - COUNT( * ) + 19 END + 5 * MIN( ALL - 69 + CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1621
SELECT DISTINCT - 74 * - CASE - 99 WHEN - 68 THEN - COUNT ( * ) + 19 END + 5 * MIN ( ALL - 69 + CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT MAX( 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1622
SELECT MAX ( 93 ) AS col1
----
93

query I rowsort
SELECT ALL + 25 * - 54 + 4 AS col1
----
-1346

query I rowsort
SELECT DISTINCT 32 * ( 13 ) + 71
----
487

onlyif mysql # DIV for integer division: 
query I rowsort label-1625
SELECT DISTINCT 93 DIV + 13
----
7

skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT 93 / + 13
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT DISTINCT 1 * 95 * COUNT( * ) - + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT 1 * 95 * COUNT ( * ) - + COUNT ( * )
----
94

query I rowsort
SELECT + ( - + 87 ) * 57 col2
----
-4959

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1629
SELECT ALL 4 * CASE + 51 WHEN 42 + 49 * + CASE + CAST( + COUNT( * ) AS DECIMAL ) * 67 WHEN - 89 * - CAST( NULL AS DECIMAL ) - - CASE COUNT( * ) + 49 * + 55 WHEN 67 * - CAST( NULL AS DECIMAL ) + 84 THEN ( + COUNT( * ) ) * 78 + + 6 END THEN NULL ELSE - 88 * 91 END THEN 92 + 93 * COUNT( * ) ELSE 95 * + CASE 81 WHEN 73 THEN + 55 ELSE NULL END + + 29 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL 4 * CASE + 51 WHEN 42 + 49 * + CASE + CAST ( + COUNT ( * ) AS REAL ) * 67 WHEN - 89 * - CAST ( NULL AS REAL ) - - CASE COUNT ( * ) + 49 * + 55 WHEN 67 * - CAST ( NULL AS REAL ) + 84 THEN ( + COUNT ( * ) ) * 78 + + 6 END THEN NULL ELSE - 88 * 91 END THEN 92 + 93 * COUNT ( * ) ELSE 95 * + CASE 81 WHEN 73 THEN + 55 ELSE NULL END + + 29 END AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( - 81, ( 46 ), 62 * - 72 + 55 ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT DISTINCT MIN( DISTINCT - - COALESCE ( 9, + 86 + + 81, + 54 + 4 * + 3 ) ) - + MAX( DISTINCT - 42 )
----
51

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT MIN ( DISTINCT - - COALESCE ( 9, + 86 + + 81, + 54 + 4 * + 3 ) ) - + MAX ( DISTINCT - 42 )
----
51

query I rowsort
SELECT + ( - ( 84 ) ) * - 57 AS col0
----
4788

query I rowsort
SELECT DISTINCT 50 * 8 AS col1
----
400

query I rowsort
SELECT ALL 9 - - 81
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT ALL MIN( DISTINCT + + 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL MIN ( DISTINCT + + 84 ) AS col0
----
84

query I rowsort
SELECT DISTINCT 3 * + 69
----
207

query I rowsort
SELECT + 67 + 45 AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT + COUNT( DISTINCT - NULLIF ( 89, 87 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1638
SELECT + COUNT ( DISTINCT - NULLIF ( 89, 87 ) )
----
1

query I rowsort
SELECT + - 99 * 82
----
-8118

query I rowsort
SELECT + 46 + 63 * 5
----
361

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

query I rowsort
SELECT - - 60 * - 13 AS col1
----
-780

query I rowsort
SELECT + - 49 - - 44 + 84
----
79

query I rowsort
SELECT ALL - - 92 + - - 24 + - 34 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT - + CASE - 70 WHEN 38 * COUNT( * ) THEN 49 ELSE NULL END + - CASE + ( 38 ) WHEN + 71 THEN NULL ELSE - 82 END / + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1645
SELECT - + CASE - 70 WHEN 38 * COUNT ( * ) THEN 49 ELSE NULL END + - CASE + ( 38 ) WHEN + 71 THEN NULL ELSE - 82 END / + 12 AS col2
----
NULL

query I rowsort
SELECT ALL + 5 + 5 AS col0
----
10

query I rowsort
SELECT - 96 + + 90 AS col0
----
-6

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

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

query I rowsort
SELECT ALL + + ( - + 17 ) + 85
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT + 49 + + - MAX( - 99 )
----
148

skipif mysql # not compatible
query I rowsort label-1650
SELECT + 49 + + - MAX ( - 99 )
----
148

query I rowsort
SELECT + - 76 col0
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-1652
SELECT - + 73 DIV - 83 + 51 + 88 col2
----
139

skipif mysql # not compatible
query I rowsort label-1652
SELECT - + 73 / - 83 + 51 + 88 col2
----
139

query I rowsort
SELECT - 95 * 37 + + 97 - - 45
----
-3373

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT - + 17 DIV - 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1654
SELECT - + 17 / - 67 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1655
SELECT DISTINCT - 95 DIV + 83
----
-1

skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT - 95 / + 83
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1656
SELECT ALL + + 77 DIV + + 36 + ( + ( 86 ) ) DIV - 58 + + 95 DIV 84
----
2

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL + + 77 / + + 36 + ( + ( 86 ) ) / - 58 + + 95 / 84
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1657
SELECT ALL - 68 DIV + 12 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL - 68 / + 12 AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1658
SELECT - 17 DIV + 14
----
-1

skipif mysql # not compatible
query I rowsort label-1658
SELECT - 17 / + 14
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1659
SELECT DISTINCT - COUNT( * ) DIV + + COUNT( * ) + + - 16
----
-17

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT - COUNT ( * ) / + + COUNT ( * ) + + - 16
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1660
SELECT ALL + CASE 34 WHEN - CAST( + 81 AS DECIMAL ) * + 50 THEN 51 - + ( 54 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL + CASE 34 WHEN - CAST ( + 81 AS REAL ) * + 50 THEN 51 - + ( 54 ) END AS col2
----
NULL

query I rowsort
SELECT - 52 + - - 48
----
-4

query II rowsort
SELECT ALL + 23 AS col0, - 91 * + 64 AS col0
----
23
-5824

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT - 81 + - MIN( DISTINCT + 36 ) col1
----
-117

skipif mysql # not compatible
query I rowsort label-1663
SELECT - 81 + - MIN ( DISTINCT + 36 ) col1
----
-117

query I rowsort
SELECT - 40 * - 58 AS col1
----
2320

query I rowsort
SELECT ALL + 5 * + 28
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT DISTINCT ( + + 89 ) * - 28 - COUNT( * ) * 67 AS col0
----
-2559

skipif mysql # not compatible
query I rowsort label-1666
SELECT DISTINCT ( + + 89 ) * - 28 - COUNT ( * ) * 67 AS col0
----
-2559

query I rowsort
SELECT ALL 4 * + 29 * NULLIF ( 12, 34 ) AS col0
----
1392

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

skipif mysql # not compatible
query I rowsort label-1668
SELECT + ( MAX ( + - CAST ( 59 AS INTEGER ) ) ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT DISTINCT + SUM( DISTINCT - + ( - + ( 18 ) ) ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-1669
SELECT DISTINCT + SUM ( DISTINCT - + ( - + ( 18 ) ) ) AS col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1670
SELECT ALL + 39 AS col1, - 11 * 46 * CAST( NULL AS SIGNED ) + - SUM( ALL - 37 ) AS col2
----
39
NULL

skipif mysql # not compatible
query II rowsort label-1670
SELECT ALL + 39 AS col1, - 11 * 46 * CAST ( NULL AS INTEGER ) + - SUM ( ALL - 37 ) AS col2
----
39
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1672
SELECT + 33 * + ( COUNT ( * ) ) + - 51 * 51 AS col0
----
-2568

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1674
SELECT + 77 * - CASE 99 WHEN COALESCE ( - 1, 68 / + ( - 25 ), - 61 ) * + CAST( NULL AS SIGNED ) THEN NULL WHEN + 43 * + AVG ( DISTINCT - 6 ) THEN - 81 - - 88 * 64 WHEN 31 * - 52 THEN CASE + 78 WHEN - 34 THEN + 70 * 83 + + 44 WHEN 35 THEN NULL ELSE - 78 + 47 END * 34 + COUNT( * ) * 44 ELSE + 97 + + 6 END + 14 col2
----
-7917

skipif mysql # not compatible
query I rowsort label-1674
SELECT + 77 * - CASE 99 WHEN COALESCE ( - 1, 68 / + ( - 25 ), - 61 ) * + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 43 * + AVG ( DISTINCT - 6 ) THEN - 81 - - 88 * 64 WHEN 31 * - 52 THEN CASE + 78 WHEN - 34 THEN + 70 * 83 + + 44 WHEN 35 THEN NULL ELSE - 78 + 47 END * 34 + COUNT ( * ) * 44 ELSE + 97 + + 6 END + 14 col2
----
-7917

onlyif mysql # DIV for integer division: 
query I rowsort label-1675
SELECT + 32 DIV - + 58 * - + ( 90 ) * 9
----
0

skipif mysql # not compatible
query I rowsort label-1675
SELECT + 32 / - + 58 * - + ( 90 ) * 9
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1676
SELECT ALL 38 DIV - 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL 38 / - 53 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1677
SELECT DISTINCT 60, + 63 DIV + COUNT( * ) AS col0
----
60
63

skipif mysql # not compatible
query II rowsort label-1677
SELECT DISTINCT 60, + 63 / + COUNT ( * ) AS col0
----
60
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT ALL + COUNT( * ) / ( - CASE 36 WHEN COUNT( * ) THEN CASE 74 WHEN 94 * 3 THEN NULL ELSE 99 * + 89 + + 19 END WHEN COUNT( * ) THEN NULL WHEN 33 + COUNT( * ) THEN 98 END ) * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL + COUNT ( * ) / ( - CASE 36 WHEN COUNT ( * ) THEN CASE 74 WHEN 94 * 3 THEN NULL ELSE 99 * + 89 + + 19 END WHEN COUNT ( * ) THEN NULL WHEN 33 + COUNT ( * ) THEN 98 END ) * - 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT 55 + + 55 + + CASE - 91 WHEN 31 THEN NULL WHEN + 29 * + 96 + - 25 THEN + 66 WHEN + COUNT( * ) THEN NULL ELSE 87 END AS col2
----
197

skipif mysql # not compatible
query I rowsort label-1679
SELECT 55 + + 55 + + CASE - 91 WHEN 31 THEN NULL WHEN + 29 * + 96 + - 25 THEN + 66 WHEN + COUNT ( * ) THEN NULL ELSE 87 END AS col2
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT DISTINCT - 0 * + 13 * COUNT( * ) + NULLIF ( 36 + 40, 7 )
----
76

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT - 0 * + 13 * COUNT ( * ) + NULLIF ( 36 + 40, 7 )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1681
SELECT + COUNT( * ) DIV + 23 AS col1
----
0

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

query I rowsort
SELECT ( 90 ) + - 20 * 21 AS col0
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT DISTINCT COALESCE ( - 91, - CASE CASE - 67 WHEN - ( - 67 ) * COUNT( * ) THEN NULL WHEN + ( COUNT( * ) ) THEN NULL WHEN COUNT( * ) - 5 THEN 87 + + 51 * + 12 ELSE NULL END WHEN - 37 THEN NULL WHEN 15 * - 12 + 0 * 3 THEN NULL ELSE 4 END ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT COALESCE ( - 91, - CASE CASE - 67 WHEN - ( - 67 ) * COUNT ( * ) THEN NULL WHEN + ( COUNT ( * ) ) THEN NULL WHEN COUNT ( * ) - 5 THEN 87 + + 51 * + 12 ELSE NULL END WHEN - 37 THEN NULL WHEN 15 * - 12 + 0 * 3 THEN NULL ELSE 4 END ) AS col1
----
-91

query I rowsort
SELECT ALL 97 + 14 AS col1
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1685
SELECT 34 + CASE 36 WHEN COUNT( * ) * - ( ( 96 ) * 29 ) THEN NULL WHEN + 18 + 64 THEN 5 WHEN 58 * 59 THEN NULL ELSE + CAST( 0 AS SIGNED ) + + 22 END AS col0
----
56

skipif mysql # not compatible
query I rowsort label-1685
SELECT 34 + CASE 36 WHEN COUNT ( * ) * - ( ( 96 ) * 29 ) THEN NULL WHEN + 18 + 64 THEN 5 WHEN 58 * 59 THEN NULL ELSE + CAST ( 0 AS INTEGER ) + + 22 END AS col0
----
56

query I rowsort
SELECT 80 + - - 25 AS col0
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-1687
SELECT - - 11 AS col2, 95 * + COUNT( * ) * + COUNT( * ) + - 1
----
11
94

skipif mysql # not compatible
query II rowsort label-1687
SELECT - - 11 AS col2, 95 * + COUNT ( * ) * + COUNT ( * ) + - 1
----
11
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT DISTINCT - COUNT( * ) + - - ( + - 32 ) + 96 col1
----
63

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT - COUNT ( * ) + - - ( + - 32 ) + 96 col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1689
SELECT ALL - COALESCE ( + COALESCE ( - 58, - 91, - 57 * COALESCE ( COALESCE ( + 64, - 69 ), COUNT( * ) ), 50 DIV 23 + 11 * - 46 ), - 88, - 31 * 45 ) + - 35 * + 42 col0
----
-1412

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL - COALESCE ( + COALESCE ( - 58, - 91, - 57 * COALESCE ( COALESCE ( + 64, - 69 ), COUNT ( * ) ), 50 / 23 + 11 * - 46 ), - 88, - 31 * 45 ) + - 35 * + 42 col0
----
-1412

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT ALL + 74 + + 9 + + COUNT( * ) * CASE 54 - COUNT( + 87 ) WHEN 86 THEN NULL WHEN - 74 THEN NULL ELSE - 85 - 93 * 87 END
----
-8093

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL + 74 + + 9 + + COUNT ( * ) * CASE 54 - COUNT ( + 87 ) WHEN 86 THEN NULL WHEN - 74 THEN NULL ELSE - 85 - 93 * 87 END
----
-8093

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT ( + 78 ) + 12 + MIN( DISTINCT + 68 - 90 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-1693
SELECT ( + 78 ) + 12 + MIN ( DISTINCT + 68 - 90 ) AS col2
----
68

query I rowsort
SELECT DISTINCT - 66 * 18 AS col2
----
-1188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1695
SELECT DISTINCT - 55 + 83 + + - COUNT( - CAST( - NULLIF ( 78, + 97 ) AS SIGNED ) ) + + 54 * + 36 AS col2
----
1971

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT - 55 + 83 + + - COUNT ( - CAST ( - NULLIF ( 78, + 97 ) AS INTEGER ) ) + + 54 * + 36 AS col2
----
1971

onlyif mysql # DIV for integer division: 
query I rowsort label-1696
SELECT ALL - + 85 + - 34 DIV + + 90 * 62 + 27 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL - + 85 + - 34 / + + 90 * 62 + 27 AS col2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-1697
SELECT ALL 66 DIV + 49 + + 14 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL 66 / + 49 + + 14 AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1698
SELECT DISTINCT - - 71 AS col0, + 81 / - COUNT( * ) * COUNT( * ) + CAST( NULL AS SIGNED ) AS col1
----
71
NULL

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

query I rowsort
SELECT DISTINCT - 64 - - 38 * 39 - + - 50
----
1468

query I rowsort
SELECT ALL - COALESCE ( + 66, - 6 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT ALL - SUM( + + 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL - SUM ( + + 86 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT ALL - MIN( + 75 ) * + 9
----
-675

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL - MIN ( + 75 ) * + 9
----
-675

query I rowsort
SELECT 33 - - + 25
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT 68 * NULLIF ( - + 79, - MAX( ALL + 19 ) )
----
-5372

skipif mysql # not compatible
query I rowsort label-1704
SELECT 68 * NULLIF ( - + 79, - MAX ( ALL + 19 ) )
----
-5372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1705
SELECT NULLIF ( - 39, - 92 ) * - + ( + 66 ) + 21 * + CAST( 69 AS SIGNED )
----
4023

skipif mysql # not compatible
query I rowsort label-1705
SELECT NULLIF ( - 39, - 92 ) * - + ( + 66 ) + 21 * + CAST ( 69 AS INTEGER )
----
4023

query I rowsort
SELECT DISTINCT - 64 - 28
----
-92

query I rowsort
SELECT ALL - NULLIF ( + - 29, 76 )
----
29

query I rowsort
SELECT 84 + + 64 AS col0
----
148

query I rowsort
SELECT 58 * - 29
----
-1682

query I rowsort
SELECT 94 + 33 + + ( - - 45 )
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-1711
SELECT ALL - 38 DIV ( - 6 ) * - + 49 * - 65 + - 3 AS col2
----
19107

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL - 38 / ( - 6 ) * - + 49 * - 65 + - 3 AS col2
----
19107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1712
SELECT DISTINCT 33 - + + 59 + + 4 * + COALESCE ( 0, + MAX( ALL - 54 ), AVG ( ALL + CAST( NULL AS SIGNED ) ) DIV 54 ) * + 6
----
-26

skipif mysql # not compatible
query I rowsort label-1712
SELECT DISTINCT 33 - + + 59 + + 4 * + COALESCE ( 0, + MAX ( ALL - 54 ), AVG ( ALL + CAST ( NULL AS INTEGER ) ) / 54 ) * + 6
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-1713
SELECT DISTINCT - 20 DIV 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1713
SELECT DISTINCT - 20 / 86 AS col2
----
0

query I rowsort
SELECT 77 - COALESCE ( - - 80, + 91 ) * - 87 AS col2
----
7037

query I rowsort
SELECT DISTINCT - NULLIF ( - - 22, + + 7 )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1716
SELECT ALL - CASE - - 10 WHEN + MIN( ALL + - 14 ) * - COUNT( * ) THEN NULL WHEN 51 THEN + 92 * - 50 WHEN - 28 - CAST( 24 AS SIGNED ) / AVG ( ALL 79 * 23 ) THEN 64 * CAST( 63 AS SIGNED ) + CAST( COUNT( * ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL - CASE - - 10 WHEN + MIN ( ALL + - 14 ) * - COUNT ( * ) THEN NULL WHEN 51 THEN + 92 * - 50 WHEN - 28 - CAST ( 24 AS INTEGER ) / AVG ( ALL 79 * 23 ) THEN 64 * CAST ( 63 AS INTEGER ) + CAST ( COUNT ( * ) AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1717
SELECT ALL - COALESCE ( + 26, + + SUM( - + 22 ) * - CASE + ( - 25 ) * + ( + NULLIF ( 55, - 56 DIV 78 + 11 ) DIV 75 ) WHEN - 68 THEN 40 * 71 ELSE + COUNT( * ) DIV - 51 + 6 * + CAST( - 65 AS SIGNED ) END, - COUNT( * ) + - 87 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL - COALESCE ( + 26, + + SUM ( - + 22 ) * - CASE + ( - 25 ) * + ( + NULLIF ( 55, - 56 / 78 + 11 ) / 75 ) WHEN - 68 THEN 40 * 71 ELSE + COUNT ( * ) / - 51 + 6 * + CAST ( - 65 AS INTEGER ) END, - COUNT ( * ) + - 87 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT ALL - 48 * - COUNT( DISTINCT + 92 ) col1
----
48

skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL - 48 * - COUNT ( DISTINCT + 92 ) col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT 83 * ( + + 84 ) * - 27 + NULLIF ( - 30, - 86 * - ( COUNT( * ) ) )
----
-188274

skipif mysql # not compatible
query I rowsort label-1719
SELECT 83 * ( + + 84 ) * - 27 + NULLIF ( - 30, - 86 * - ( COUNT ( * ) ) )
----
-188274

query I rowsort
SELECT DISTINCT - ( 30 ) + + ( - 64 ) AS col0
----
-94

query I rowsort
SELECT ALL 68 + + 10 AS col1
----
78

query I rowsort
SELECT + 51 * - 91
----
-4641

query I rowsort
SELECT DISTINCT - 11 + - 48 * - - 98
----
-4715

onlyif mysql # DIV for integer division: 
query I rowsort label-1724
SELECT ALL + 89 DIV 58 * + 8 * 90 * 77 AS col0
----
55440

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL + 89 / 58 * + 8 * 90 * 77 AS col0
----
55440

query I rowsort
SELECT ALL - 78 + 70 + 80 * + 0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT + 18 + - - SUM( + ( 41 ) ) + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-1726
SELECT + 18 + - - SUM ( + ( 41 ) ) + COUNT ( * )
----
60

query I rowsort
SELECT ( 96 ) + - + 94 - - + 19 AS col2
----
21

query I rowsort
SELECT ALL - 28 * 39 col1
----
-1092

onlyif mysql # DIV for integer division: 
query II rowsort label-1729
SELECT 18 DIV 31, CASE - - 1 WHEN + 74 * 49 THEN NULL WHEN - 25 THEN 26 + 77 WHEN - 80 THEN 27 END * + 32 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1729
SELECT 18 / 31, CASE - - 1 WHEN + 74 * 49 THEN NULL WHEN - 25 THEN 26 + 77 WHEN - 80 THEN 27 END * + 32 AS col1
----
0
NULL

query I rowsort
SELECT 5 * - 73
----
-365

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT ALL 97 - - COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-1731
SELECT ALL 97 - - COUNT ( * ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT - CASE COUNT( - - 92 ) WHEN - 88 THEN NULL WHEN COUNT( * ) + ( 75 + 70 ) THEN 92 ELSE NULL END + - 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1732
SELECT - CASE COUNT ( - - 92 ) WHEN - 88 THEN NULL WHEN COUNT ( * ) + ( 75 + 70 ) THEN 92 ELSE NULL END + - 72 AS col1
----
NULL

query I rowsort
SELECT 97 + + ( ( - 32 ) ) * - 23 AS col1
----
833

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

skipif mysql # not compatible
query I rowsort label-1734
SELECT COUNT ( * ) + + 72 + - - 64 * + COUNT ( * ) AS col0
----
137

query I rowsort
SELECT 42 + - 34 AS col1
----
8

query I rowsort
SELECT 49 * - 51
----
-2499

onlyif mysql # DIV for integer division: 
query II rowsort label-1737
SELECT + 21 AS col1, - 57 * - 11 DIV - - 11 AS col2
----
21
57

skipif mysql # not compatible
query II rowsort label-1737
SELECT + 21 AS col1, - 57 * - 11 / - - 11 AS col2
----
21
57

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1740
SELECT ALL - COALESCE ( + 0, - + 8, + CAST( NULL AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL - COALESCE ( + 0, - + 8, + CAST ( NULL AS INTEGER ) ) col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1741
SELECT ALL - COUNT( * ) AS col1, ( - COALESCE ( + 79, - 95 ) ) AS col0
----
-1
-79

skipif mysql # not compatible
query II rowsort label-1741
SELECT ALL - COUNT ( * ) AS col1, ( - COALESCE ( + 79, - 95 ) ) AS col0
----
-1
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-1742
SELECT 93 DIV + + 38 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1742
SELECT 93 / + + 38 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT SUM( - 16 ) + + MIN( + 32 ) + + COUNT( * ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-1743
SELECT SUM ( - 16 ) + + MIN ( + 32 ) + + COUNT ( * ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT + SUM( 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-1744
SELECT + SUM ( 43 ) AS col2
----
43

query I rowsort
SELECT + 25 * - 48 + - 86
----
-1286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1746
SELECT + 31 * 86 + - + 8 - ( - NULLIF ( - 22, AVG ( DISTINCT - 88 ) * - CAST( 78 * + ( - CAST( 32 AS DECIMAL ) * + 59 ) AS SIGNED ) ) ) * COUNT( * )
----
2636

skipif mysql # not compatible
query I rowsort label-1746
SELECT + 31 * 86 + - + 8 - ( - NULLIF ( - 22, AVG ( DISTINCT - 88 ) * - CAST ( 78 * + ( - CAST ( 32 AS REAL ) * + 59 ) AS INTEGER ) ) ) * COUNT ( * )
----
2636

query I rowsort
SELECT - 26 * + 1 * 78 col0
----
-2028

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

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

query I rowsort
SELECT - - 62 + + 50
----
112

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT ALL NULLIF ( + 80, COUNT( * ) ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL NULLIF ( + 80, COUNT ( * ) ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT - - COUNT( * ) + + + CASE + 96 WHEN 33 + COUNT( * ) THEN - 55 * ( + 60 ) WHEN 30 - 39 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1753
SELECT - - COUNT ( * ) + + + CASE + 96 WHEN 33 + COUNT ( * ) THEN - 55 * ( + 60 ) WHEN 30 - 39 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 18 + - + 41 * + 69 AS col2
----
-2811

query I rowsort
SELECT - 15 * + ( - + 15 ) col0
----
225

query I rowsort
SELECT - 85 + - 16
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT ALL - COALESCE ( - 42, 47, COUNT( * ) ) * MIN( DISTINCT - 66 ) - 12
----
-2784

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL - COALESCE ( - 42, 47, COUNT ( * ) ) * MIN ( DISTINCT - 66 ) - 12
----
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT MIN( - COALESCE ( - - 94, + 57 ) )
----
-94

skipif mysql # not compatible
query I rowsort label-1758
SELECT MIN ( - COALESCE ( - - 94, + 57 ) )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1759
SELECT DISTINCT - - ( + - SUM( 99 ) ) * + 17 + 45 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT - - ( + - SUM ( 99 ) ) * + 17 + 45 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - + 60 * - + 51 col1
----
3060

query I rowsort
SELECT ALL - + 76 * - 98 * + - 52
----
-387296

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1763
SELECT ALL - 53, + 19 * + 56 + + NULLIF ( - SUM( DISTINCT + 70 ), 1 ) * 79 AS col2
----
-53
-4466

skipif mysql # not compatible
query II rowsort label-1763
SELECT ALL - 53, + 19 * + 56 + + NULLIF ( - SUM ( DISTINCT + 70 ), 1 ) * 79 AS col2
----
-53
-4466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1764
SELECT + COUNT( ALL - - CAST( - + 20 AS SIGNED ) ) * + - 10 DIV - + 81 * - 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1764
SELECT + COUNT ( ALL - - CAST ( - + 20 AS INTEGER ) ) * + - 10 / - + 81 * - 95 AS col1
----
0

query I rowsort
SELECT DISTINCT + 72 - - 79
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT CASE - - ( - 12 ) WHEN + 39 * + 88 + 27 - 4 THEN + 45 WHEN 79 - COUNT( * ) THEN NULL WHEN COUNT( * ) * + 88 + 64 THEN + COUNT( * ) - + 79 ELSE + 86 END col0
----
86

skipif mysql # not compatible
query I rowsort label-1766
SELECT CASE - - ( - 12 ) WHEN + 39 * + 88 + 27 - 4 THEN + 45 WHEN 79 - COUNT ( * ) THEN NULL WHEN COUNT ( * ) * + 88 + 64 THEN + COUNT ( * ) - + 79 ELSE + 86 END col0
----
86

query II rowsort
SELECT 67 AS col2, + ( - 61 )
----
67
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1768
SELECT DISTINCT 46 * CAST( + + CASE WHEN NOT 55 > NULL THEN + + 58 * CAST( 74 AS SIGNED ) ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT 46 * CAST ( + + CASE WHEN NOT 55 > NULL THEN + + 58 * CAST ( 74 AS INTEGER ) ELSE NULL END AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1769
SELECT ALL 81 * - COALESCE ( - 94, + 95 * - + 1 + - 62 DIV - 59, 40 + + 13 )
----
7614

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL 81 * - COALESCE ( - 94, + 95 * - + 1 + - 62 / - 59, 40 + + 13 )
----
7614

query I rowsort
SELECT + 81 + + 45
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1771
SELECT ALL ( + - ( + 32 ) ) DIV 88 + - + 74 * + 93 + COUNT( * ) + + 75 AS col0
----
-6806

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL ( + - ( + 32 ) ) / 88 + - + 74 * + 93 + COUNT ( * ) + + 75 AS col0
----
-6806

query I rowsort
SELECT + CASE WHEN NOT ( NULL ) BETWEEN ( NULL ) AND ( - 22 ) THEN + 72 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT + SUM( DISTINCT + 7 ) col0
----
7

skipif mysql # not compatible
query I rowsort label-1773
SELECT + SUM ( DISTINCT + 7 ) col0
----
7

query I rowsort
SELECT - 27 - - + 88
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT + COUNT( * ) * - CASE WHEN ( NOT ( CASE - 36 WHEN + 6 * + 64 THEN NULL WHEN + 22 / 66 THEN MIN( - 96 ) ELSE NULL END ) > ( 54 + - 3 ) ) THEN 38 END * + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1775
SELECT + COUNT ( * ) * - CASE WHEN ( NOT ( CASE - 36 WHEN + 6 * + 64 THEN NULL WHEN + 22 / 66 THEN MIN ( - 96 ) ELSE NULL END ) > ( 54 + - 3 ) ) THEN 38 END * + 38 AS col1
----
NULL

query I rowsort
SELECT 75 * - 21 + + - 47
----
-1622

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT ( NULLIF ( + 68, - ( + 29 ) * + + ( COUNT( * ) ) ) )
----
68

skipif mysql # not compatible
query I rowsort label-1777
SELECT ( NULLIF ( + 68, - ( + 29 ) * + + ( COUNT ( * ) ) ) )
----
68

query I rowsort
SELECT ( + - NULLIF ( 44, - 15 ) )
----
-44

query I rowsort
SELECT + 27 + + 4
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-1780
SELECT ALL - 41 * - - 42 + - - 93 + 86 AS col2, MIN( + 61 ) * 49 + 88
----
-1543
3077

skipif mysql # not compatible
query II rowsort label-1780
SELECT ALL - 41 * - - 42 + - - 93 + 86 AS col2, MIN ( + 61 ) * 49 + 88
----
-1543
3077

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT + COALESCE ( - COALESCE ( 25, - 23 * + + 34 ), + 6 - COUNT( * ) * + 91 ) * - 14 AS col0
----
350

skipif mysql # not compatible
query I rowsort label-1781
SELECT + COALESCE ( - COALESCE ( 25, - 23 * + + 34 ), + 6 - COUNT ( * ) * + 91 ) * - 14 AS col0
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT DISTINCT 52 * + + COUNT( * ) * - + COUNT( * ) * + + 17 + + 86
----
-798

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT 52 * + + COUNT ( * ) * - + COUNT ( * ) * + + 17 + + 86
----
-798

query I rowsort
SELECT ALL + 22 * + 68
----
1496

onlyif mysql # aggregate syntax: 
query II rowsort label-1784
SELECT COUNT( * ) AS col0, 16 * - 72 * - + NULLIF ( - COUNT( * ), - 64 )
----
1
-1152

skipif mysql # not compatible
query II rowsort label-1784
SELECT COUNT ( * ) AS col0, 16 * - 72 * - + NULLIF ( - COUNT ( * ), - 64 )
----
1
-1152

query I rowsort
SELECT ALL + 28 * - 8 + - - 23 + 34
----
-167

query I rowsort
SELECT CASE + + 55 WHEN - 85 * 1 THEN ( + 54 ) / - 43 WHEN - 24 THEN 9 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1787
SELECT - + 50 DIV COUNT( * ) * - 24 + - COUNT( * ) col1
----
1199

skipif mysql # not compatible
query I rowsort label-1787
SELECT - + 50 / COUNT ( * ) * - 24 + - COUNT ( * ) col1
----
1199

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1789
SELECT ALL - + 56 * + 78 * - CAST( NULL AS SIGNED ) * - COUNT( * ) - COUNT( DISTINCT 21 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL - + 56 * + 78 * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) - COUNT ( DISTINCT 21 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1790
SELECT DISTINCT ( + COALESCE ( - + ( + 98 ), - CAST( NULL AS SIGNED ) ) ) * + + 39 AS col1
----
-3822

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT ( + COALESCE ( - + ( + 98 ), - CAST ( NULL AS INTEGER ) ) ) * + + 39 AS col1
----
-3822

onlyif mysql # DIV for integer division: 
query I rowsort label-1791
SELECT DISTINCT + ( + - 72 ) DIV 72
----
-1

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT + ( + - 72 ) / 72
----
-1

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

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

query II rowsort
SELECT + 10 AS col2, 90 AS col1
----
10
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1794
SELECT ALL + 34 DIV + + 37 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL + 34 / + + 37 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT - + COALESCE ( - COALESCE ( + 64, ( 12 ) ), + + 93 * SUM( DISTINCT 93 ) ) * + COALESCE ( + 44 * COUNT( * ), + 4 * 17, - 60 ) AS col1
----
2816

skipif mysql # not compatible
query I rowsort label-1795
SELECT - + COALESCE ( - COALESCE ( + 64, ( 12 ) ), + + 93 * SUM ( DISTINCT 93 ) ) * + COALESCE ( + 44 * COUNT ( * ), + 4 * 17, - 60 ) AS col1
----
2816

onlyif mysql # DIV for integer division: 
query II rowsort label-1796
SELECT ALL 22, 84 DIV + 88 AS col2
----
22
0

skipif mysql # not compatible
query II rowsort label-1796
SELECT ALL 22, 84 / + 88 AS col2
----
22
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1797
SELECT - + 4 + - 47 AS col0, CAST( CAST( - + 37 AS SIGNED ) AS SIGNED ) AS col2
----
-51
-37

skipif mysql # not compatible
query II rowsort label-1797
SELECT - + 4 + - 47 AS col0, CAST ( CAST ( - + 37 AS INTEGER ) AS INTEGER ) AS col2
----
-51
-37

query I rowsort
SELECT ALL + 78 * + NULLIF ( - + 10, 80 ) AS col0
----
-780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1799
SELECT - 87 + - + 43 * - + ( - COUNT( * ) ) * CAST( + COUNT( * ) AS SIGNED ) + + 19 * - 63
----
-1327

skipif mysql # not compatible
query I rowsort label-1799
SELECT - 87 + - + 43 * - + ( - COUNT ( * ) ) * CAST ( + COUNT ( * ) AS INTEGER ) + + 19 * - 63
----
-1327

query I rowsort
SELECT DISTINCT + 60 * + 1
----
60

query I rowsort
SELECT DISTINCT - 6 + - + 9 + + 68 + + 89 + - - 30
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1802
SELECT - ( - - SUM( 3 ) ) * 52 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1802
SELECT - ( - - SUM ( 3 ) ) * 52 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1803
SELECT - 40 + + NULLIF ( + + 30, - - COUNT( * ) ) + - + COUNT( * ) AS col2, 8
----
-11
8

skipif mysql # not compatible
query II rowsort label-1803
SELECT - 40 + + NULLIF ( + + 30, - - COUNT ( * ) ) + - + COUNT ( * ) AS col2, 8
----
-11
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1804
SELECT ALL - 88 + + 26 + + 48 + 9 + - COUNT( * ) * - COUNT( * ) DIV + 41 * COUNT( * ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL - 88 + + 26 + + 48 + 9 + - COUNT ( * ) * - COUNT ( * ) / + 41 * COUNT ( * ) AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1805
SELECT DISTINCT CAST( CASE + - COALESCE ( - - 39, - + NULLIF ( + 84, - 31 ), 85 - MAX( 43 + + 48 * - 85 ), + COALESCE ( COUNT( * ), 29 * 4 ) ) WHEN - 80 THEN NULL WHEN - 74 THEN NULL ELSE MIN( ALL 5 ) END AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT CAST ( CASE + - COALESCE ( - - 39, - + NULLIF ( + 84, - 31 ), 85 - MAX ( 43 + + 48 * - 85 ), + COALESCE ( COUNT ( * ), 29 * 4 ) ) WHEN - 80 THEN NULL WHEN - 74 THEN NULL ELSE MIN ( ALL 5 ) END AS INTEGER )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT COALESCE ( + + 8, + - SUM( 83 ), + COALESCE ( + 94, 51 ) ) * ( COUNT( * ) + 1 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-1806
SELECT COALESCE ( + + 8, + - SUM ( 83 ), + COALESCE ( + 94, 51 ) ) * ( COUNT ( * ) + 1 ) AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1807
SELECT 89 DIV - 7 + - 85
----
-97

skipif mysql # not compatible
query I rowsort label-1807
SELECT 89 / - 7 + - 85
----
-97

query I rowsort
SELECT ALL 33 + 27
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1809
SELECT ALL + 16 DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL + 16 / + 82 AS col1
----
0

query I rowsort
SELECT ALL + NULLIF ( - 68, + ( - 78 ) + + - 12 * + 14 ) + 89 + NULLIF ( + 3, + 88 ) AS col1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1811
SELECT + CAST( - 0 AS SIGNED ) + + 26 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-1811
SELECT + CAST ( - 0 AS INTEGER ) + + 26 AS col2
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1812
SELECT - 85 DIV + - 91 + ( 38 ) - + COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1812
SELECT - 85 / + - 91 + ( 38 ) - + COUNT ( * ) AS col2
----
37

query I rowsort
SELECT - 93 * 75 + - + 6 + + + 96
----
-6885

onlyif mysql # aggregate syntax: 
query II rowsort label-1814
SELECT ALL - - MAX( + 92 ) AS col0, 82 * - 12 + + COUNT( * )
----
92
-983

skipif mysql # not compatible
query II rowsort label-1814
SELECT ALL - - MAX ( + 92 ) AS col0, 82 * - 12 + + COUNT ( * )
----
92
-983

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1816
SELECT CAST( 71 AS SIGNED ) * + 38
----
2698

skipif mysql # not compatible
query I rowsort label-1816
SELECT CAST ( 71 AS INTEGER ) * + 38
----
2698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1817
SELECT - COUNT( * ) * - COUNT( * ) * - + 9 + - + 7 + + 56 + - 78 DIV + + 39
----
38

skipif mysql # not compatible
query I rowsort label-1817
SELECT - COUNT ( * ) * - COUNT ( * ) * - + 9 + - + 7 + + 56 + - 78 / + + 39
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT - 61 + ( 28 ) * - 96 + + 55 + - COUNT( * )
----
-2695

skipif mysql # not compatible
query I rowsort label-1818
SELECT - 61 + ( 28 ) * - 96 + + 55 + - COUNT ( * )
----
-2695

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT + NULLIF ( + 6, - + 17 / + + 76 ) * - COUNT( * ) * + 27 * - 44 + - 37 AS col2
----
7091

skipif mysql # not compatible
query I rowsort label-1819
SELECT + NULLIF ( + 6, - + 17 / + + 76 ) * - COUNT ( * ) * + 27 * - 44 + - 37 AS col2
----
7091

query I rowsort
SELECT 72 + + 65
----
137

query I rowsort
SELECT + 97 + + 90
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT ALL COUNT( * ) * 52
----
52

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL COUNT ( * ) * 52
----
52

query I rowsort
SELECT ALL 10 + 26 AS col0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1824
SELECT DISTINCT - 1 DIV - - 50 DIV - COUNT( * ) col2, - 65
----
0
-65

skipif mysql # not compatible
query II rowsort label-1824
SELECT DISTINCT - 1 / - - 50 / - COUNT ( * ) col2, - 65
----
0
-65

query I rowsort
SELECT ALL - 92 + + 38 + + 41 - 90 col2
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-1826
SELECT 77 * + - COUNT( * ) * + ( + 75 ) AS col2, 69 + 84 + + + ( - + 10 )
----
-5775
143

skipif mysql # not compatible
query II rowsort label-1826
SELECT 77 * + - COUNT ( * ) * + ( + 75 ) AS col2, 69 + 84 + + + ( - + 10 )
----
-5775
143

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT ALL 70 + - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL 70 + - COUNT ( * )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT 84 DIV - - 70
----
1

skipif mysql # not compatible
query I rowsort label-1828
SELECT 84 / - - 70
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1829
SELECT - 71 AS col2, CAST( NULL AS SIGNED ) / 12 AS col2
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-1829
SELECT - 71 AS col2, CAST ( NULL AS INTEGER ) / 12 AS col2
----
-71
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1830
SELECT CAST( 90 AS SIGNED ) * - + ( + - 18 ) - + 67 AS col1
----
1553

skipif mysql # not compatible
query I rowsort label-1830
SELECT CAST ( 90 AS INTEGER ) * - + ( + - 18 ) - + 67 AS col1
----
1553

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1831
SELECT 30 AS col1, 58 / - 82 * + CAST( NULL AS SIGNED )
----
30
NULL

skipif mysql # not compatible
query II rowsort label-1831
SELECT 30 AS col1, 58 / - 82 * + CAST ( NULL AS INTEGER )
----
30
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1832
SELECT - 82 AS col0, - MIN( DISTINCT + 64 ) col1
----
-82
-64

skipif mysql # not compatible
query II rowsort label-1832
SELECT - 82 AS col0, - MIN ( DISTINCT + 64 ) col1
----
-82
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT DISTINCT + COUNT( * ) * - - 12 col2
----
12

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT + COUNT ( * ) * - - 12 col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1834
SELECT DISTINCT MAX( + 93 ) + - CASE - MIN( DISTINCT - + 93 ) WHEN NULLIF ( COUNT( * ), + NULLIF ( 39, - 45 + COUNT( * ) ) - + 88 ) THEN NULL WHEN - 35 THEN NULL ELSE + NULLIF ( + MIN( DISTINCT - CAST( + 90 AS SIGNED ) ), COUNT( * ) * + COUNT( * ) - 26 ) DIV 59 END * + 45
----
138

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT MAX ( + 93 ) + - CASE - MIN ( DISTINCT - + 93 ) WHEN NULLIF ( COUNT ( * ), + NULLIF ( 39, - 45 + COUNT ( * ) ) - + 88 ) THEN NULL WHEN - 35 THEN NULL ELSE + NULLIF ( + MIN ( DISTINCT - CAST ( + 90 AS INTEGER ) ), COUNT ( * ) * + COUNT ( * ) - 26 ) / 59 END * + 45
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT 9 + + 5 * - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-1835
SELECT 9 + + 5 * - COUNT ( * )
----
4

query I rowsort
SELECT DISTINCT + COALESCE ( + 4, - 67 ) - - - ( + 72 ) + + - 13 * - 36 + - 59 AS col0
----
341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1837
SELECT DISTINCT CASE - - 73 WHEN - 55 - + - 14 THEN - + 54 WHEN + 89 * 25 * - - ( 47 ) + + AVG ( 87 ) THEN COUNT( * ) + CAST( NULL AS SIGNED ) ELSE ( + 92 ) * 63 + - COUNT( * ) END - + 90 * - 12
----
6875

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT CASE - - 73 WHEN - 55 - + - 14 THEN - + 54 WHEN + 89 * 25 * - - ( 47 ) + + AVG ( 87 ) THEN COUNT ( * ) + CAST ( NULL AS INTEGER ) ELSE ( + 92 ) * 63 + - COUNT ( * ) END - + 90 * - 12
----
6875

query I rowsort
SELECT 92 * 27 AS col0
----
2484

query I rowsort
SELECT 2 + + - CASE + - 36 WHEN - + 3 * 15 * - 71 THEN 9 ELSE + - 24 END + 17 * + 98
----
1692

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT DISTINCT - + ( CASE - SUM( - 99 ) WHEN COUNT( * ) THEN 89 + 76 WHEN + - 19 * CASE 1 + 35 * 53 WHEN + 39 THEN NULLIF ( - 99, 30 + - COUNT( * ) ) END THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT - + ( CASE - SUM ( - 99 ) WHEN COUNT ( * ) THEN 89 + 76 WHEN + - 19 * CASE 1 + 35 * 53 WHEN + 39 THEN NULLIF ( - 99, 30 + - COUNT ( * ) ) END THEN NULL END )
----
NULL

query I rowsort
SELECT DISTINCT + 3 - 6
----
-3

query I rowsort
SELECT 49 * - 30 AS col2
----
-1470

query I rowsort
SELECT DISTINCT + 11 * + 78 + - 44
----
814

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1844
SELECT DISTINCT - COUNT( * ) DIV 9 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT - COUNT ( * ) / 9 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1845
SELECT - 9 / - - COUNT( * ) / AVG ( DISTINCT - NULLIF ( + CAST( CASE - 73 WHEN 93 * 75 THEN 64 WHEN 54 - 11 THEN NULL END AS SIGNED ), - 6 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1845
SELECT - 9 / - - COUNT ( * ) / AVG ( DISTINCT - NULLIF ( + CAST ( CASE - 73 WHEN 93 * 75 THEN 64 WHEN 54 - 11 THEN NULL END AS INTEGER ), - 6 ) ) AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1847
SELECT + 75 DIV 19
----
3

skipif mysql # not compatible
query I rowsort label-1847
SELECT + 75 / 19
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT + 86 * 47 - + CASE + COUNT( DISTINCT - 82 ) WHEN - 13 + MAX( - 8 ) THEN 77 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1848
SELECT + 86 * 47 - + CASE + COUNT ( DISTINCT - 82 ) WHEN - 13 + MAX ( - 8 ) THEN 77 ELSE NULL END
----
NULL

query II rowsort
SELECT + 6 AS col2, - 39 * + - 19 + - - 99 col2
----
6
840

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

query II rowsort
SELECT - 6 AS col0, 29 AS col2
----
-6
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT DISTINCT + - 52 + 48 + + - COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-1852
SELECT DISTINCT + - 52 + 48 + + - COUNT ( * ) AS col2
----
-5

query I rowsort
SELECT ALL - 60 * - + 48
----
2880

query I rowsort
SELECT ALL 78 + + + 43
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1855
SELECT DISTINCT 17 + CAST( NULL AS SIGNED ) AS col0, 38 * + ( + 26 ) * + - ( 43 ) AS col1
----
NULL
-42484

skipif mysql # not compatible
query II rowsort label-1855
SELECT DISTINCT 17 + CAST ( NULL AS INTEGER ) AS col0, 38 * + ( + 26 ) * + - ( 43 ) AS col1
----
NULL
-42484

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1857
SELECT 87 * - 46 AS col2, - NULLIF ( + 35, + NULLIF ( - 99, CASE - COUNT( * ) WHEN 69 * + 59 + NULLIF ( 85, 15 + + ( 54 + COUNT( * ) ) ) THEN + 24 * + 78 WHEN + 26 THEN 57 END ) )
----
-4002
-35

skipif mysql # not compatible
query II rowsort label-1857
SELECT 87 * - 46 AS col2, - NULLIF ( + 35, + NULLIF ( - 99, CASE - COUNT ( * ) WHEN 69 * + 59 + NULLIF ( 85, 15 + + ( 54 + COUNT ( * ) ) ) THEN + 24 * + 78 WHEN + 26 THEN 57 END ) )
----
-4002
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1858
SELECT 58 + CAST( NULL AS SIGNED ) * + MIN( + - 67 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1858
SELECT 58 + CAST ( NULL AS INTEGER ) * + MIN ( + - 67 ) AS col1
----
NULL

query I rowsort
SELECT ALL 64 * - 6 * 43 * 67
----
-1106304

query I rowsort
SELECT ALL 22 + 18 * 33 AS col2
----
616

query I rowsort
SELECT + 34 - + 58
----
-24

query I rowsort
SELECT ALL 16 * - 11 * + ( - + 86 ) AS col0
----
15136

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT + ( - 93 ) + - - COUNT( * ) + + 58 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-1863
SELECT + ( - 93 ) + - - COUNT ( * ) + + 58 AS col0
----
-34

query I rowsort
SELECT ALL 63 * - 67 AS col2
----
-4221

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1866
SELECT + 50 + - + ( - 1 ) + - ( - 81 ) * - 32 / CAST( NULL AS SIGNED ) + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1866
SELECT + 50 + - + ( - 1 ) + - ( - 81 ) * - 32 / CAST ( NULL AS INTEGER ) + - 5
----
NULL

query I rowsort
SELECT ALL CASE 13 WHEN + - 6 + - 38 THEN - + 4 ELSE NULL END - + + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT - 27 + - 65 + - 49 * + 64 * - CASE + + COUNT( * ) WHEN 29 THEN NULL WHEN + + ( COUNT( DISTINCT - 93 ) ) * 61 THEN NULL ELSE ( COUNT( * ) ) END
----
3044

skipif mysql # not compatible
query I rowsort label-1868
SELECT - 27 + - 65 + - 49 * + 64 * - CASE + + COUNT ( * ) WHEN 29 THEN NULL WHEN + + ( COUNT ( DISTINCT - 93 ) ) * 61 THEN NULL ELSE ( COUNT ( * ) ) END
----
3044

query I rowsort
SELECT - 44 * - 12 AS col0
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT + CASE COUNT( * ) WHEN - + 14 - - + 44 / + - 44 THEN - - 0 END + - + 33 * + AVG ( DISTINCT + 40 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1870
SELECT + CASE COUNT ( * ) WHEN - + 14 - - + 44 / + - 44 THEN - - 0 END + - + 33 * + AVG ( DISTINCT + 40 ) AS col2
----
NULL

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

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

query I rowsort
SELECT - 20 * - 16 col2
----
320

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT DISTINCT - MIN( DISTINCT + 13 ) * - MAX( - 6 ) * + ( + 15 ) AS col2
----
-1170

skipif mysql # not compatible
query I rowsort label-1874
SELECT DISTINCT - MIN ( DISTINCT + 13 ) * - MAX ( - 6 ) * + ( + 15 ) AS col2
----
-1170

query I rowsort
SELECT - 79 * + - 63 * + + 13 + 26
----
64727

query I rowsort
SELECT ALL - + 34 * - 87 + + 46 * - 34 AS col0
----
1394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1877
SELECT - + CAST( - COUNT( * ) AS SIGNED ) - + 24 * + 98 AS col0
----
-2351

skipif mysql # not compatible
query I rowsort label-1877
SELECT - + CAST ( - COUNT ( * ) AS INTEGER ) - + 24 * + 98 AS col0
----
-2351

onlyif mysql # DIV for integer division: 
query II rowsort label-1878
SELECT - + 27 * + ( - 12 ) * - 14 AS col1, - 14 DIV + 94
----
-4536
0

skipif mysql # not compatible
query II rowsort label-1878
SELECT - + 27 * + ( - 12 ) * - 14 AS col1, - 14 / + 94
----
-4536
0

query I rowsort
SELECT + 55 + + + 31 AS col1
----
86

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

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

query I rowsort
SELECT ALL - - 7 * 80 + + NULLIF ( 74, + ( + 59 ) )
----
634

query II rowsort
SELECT - 68 + + - 37 AS col1, 71
----
-105
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT - 52 - COUNT( * ) - - 28 - 86 * - COUNT( + 92 ) + 46 + - 54 * + 76 - 30 * + 62 AS col1
----
-5857

skipif mysql # not compatible
query I rowsort label-1883
SELECT - 52 - COUNT ( * ) - - 28 - 86 * - COUNT ( + 92 ) + 46 + - 54 * + 76 - 30 * + 62 AS col1
----
-5857

query I rowsort
SELECT + CASE 55 WHEN 97 * 66 * + 51 * - 8 THEN NULL WHEN - 49 * + + ( 45 ) + - 58 + + 95 THEN + 57 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT + 46 * + NULLIF ( + COUNT( * ), + 75 ) + 94
----
140

skipif mysql # not compatible
query I rowsort label-1885
SELECT + 46 * + NULLIF ( + COUNT ( * ), + 75 ) + 94
----
140

query I rowsort
SELECT - - 0 + - 80 * + 10
----
-800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1887
SELECT ALL CAST( - + 49 AS SIGNED ) * + + 15 - - + 90 * - 21 + 96 + 65 * - COALESCE ( + 24, + 59 ) AS col2
----
-4089

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL CAST ( - + 49 AS INTEGER ) * + + 15 - - + 90 * - 21 + 96 + 65 * - COALESCE ( + 24, + 59 ) AS col2
----
-4089

query I rowsort
SELECT DISTINCT + 62 * + 26 - + - 64
----
1676

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT - 28 * - MIN( - + NULLIF ( 1, + 71 ) ) * + - 2
----
56

skipif mysql # not compatible
query I rowsort label-1889
SELECT - 28 * - MIN ( - + NULLIF ( 1, + 71 ) ) * + - 2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT ALL COUNT( * ) + - 40 + + 37 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL COUNT ( * ) + - 40 + + 37 AS col2
----
-2

query II rowsort
SELECT DISTINCT 20 AS col0, 27 AS col0
----
20
27

query I rowsort
SELECT ALL - 30 * + 63 AS col0
----
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT - 98 * + 67 * - COUNT( * ) AS col0
----
6566

skipif mysql # not compatible
query I rowsort label-1893
SELECT - 98 * + 67 * - COUNT ( * ) AS col0
----
6566

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1896
SELECT - CAST( NULL AS SIGNED ) - 23 + - - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1896
SELECT - CAST ( NULL AS INTEGER ) - 23 + - - 80
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT ALL COUNT( * ) * - ( - ( + + 94 ) ) * 11 AS col2
----
1034

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL COUNT ( * ) * - ( - ( + + 94 ) ) * 11 AS col2
----
1034

query I rowsort
SELECT - 15 - - 79 AS col2
----
64

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

query I rowsort
SELECT + 38 + - 10 + - 5 + - + 48 * + 33 * 11 - - ( - 55 )
----
-17456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1902
SELECT - NULLIF ( + 46, 71 * - 35 + ( 65 ) + - - 60 * - - ( COALESCE ( + 18, + ( 56 ) * 41 + - CAST( 31 AS SIGNED ) * 11, + COUNT( ALL - 68 ) ) ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-1902
SELECT - NULLIF ( + 46, 71 * - 35 + ( 65 ) + - - 60 * - - ( COALESCE ( + 18, + ( 56 ) * 41 + - CAST ( 31 AS INTEGER ) * 11, + COUNT ( ALL - 68 ) ) ) ) AS col1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-1903
SELECT + 85 DIV + 37 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1903
SELECT + 85 / + 37 AS col0
----
2

query I rowsort
SELECT + 73 + - + 39
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1905
SELECT DISTINCT 42 * - ( - MIN( - 82 ) ) - - + CAST( 39 AS SIGNED )
----
-3405

skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT 42 * - ( - MIN ( - 82 ) ) - - + CAST ( 39 AS INTEGER )
----
-3405

query I rowsort
SELECT + 86 + - 10
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1907
SELECT ALL + 62 / - CAST( NULL AS SIGNED ) / + + 59 * + NULLIF ( - COALESCE ( - ( - 49 ), 93 * + 21 ), CAST( NULL AS SIGNED ) + - 28 ) + 93 / + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL + 62 / - CAST ( NULL AS INTEGER ) / + + 59 * + NULLIF ( - COALESCE ( - ( - 49 ), 93 * + 21 ), CAST ( NULL AS INTEGER ) + - 28 ) + 93 / + 9 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT + 0 / - + CASE 15 WHEN - 40 / ( + 35 ) + COUNT( * ) + + 20 THEN + 0 * + - ( - 5 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1908
SELECT + 0 / - + CASE 15 WHEN - 40 / ( + 35 ) + COUNT ( * ) + + 20 THEN + 0 * + - ( - 5 ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1909
SELECT ALL + + 29 DIV - 15 - + - COALESCE ( + 55, + 23, 64 ) + + - 89 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL + + 29 / - 15 - + - COALESCE ( + 55, + 23, 64 ) + + - 89 AS col1
----
-35

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

skipif mysql # not compatible
query I rowsort label-1910
SELECT + 39 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 13 * - 28 AS col2
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT DISTINCT + 39 / - - ( - - COUNT( * ) ) / - CASE 71 WHEN - 94 THEN NULL WHEN 49 THEN + 13 / - 83 ELSE NULL END + + - 66 * + 51 + + 20 + 83 * 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT + 39 / - - ( - - COUNT ( * ) ) / - CASE 71 WHEN - 94 THEN NULL WHEN 49 THEN + 13 / - 83 ELSE NULL END + + - 66 * + 51 + + 20 + 83 * 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1913
SELECT + - 53 DIV 95 DIV COUNT( ALL - - 58 ) + 45 AS col1, 5
----
45
5

skipif mysql # not compatible
query II rowsort label-1913
SELECT + - 53 / 95 / COUNT ( ALL - - 58 ) + 45 AS col1, 5
----
45
5

query I rowsort
SELECT ALL - - 39 * - 25
----
-975

onlyif mysql # DIV for integer division: 
query I rowsort label-1915
SELECT DISTINCT - COALESCE ( - 21, + 92, - 11 + - 73 ) DIV ( + 23 ) + + 74 + - 39 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT - COALESCE ( - 21, + 92, - 11 + - 73 ) / ( + 23 ) + + 74 + - 39 AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-1916
SELECT DISTINCT + + 44 DIV + 44 + - 39
----
-38

skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT + + 44 / + 44 + - 39
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT ALL 27 DIV - 63 + - 31
----
-31

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL 27 / - 63 + - 31
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1918
SELECT DISTINCT MIN( - - 50 ) DIV + + 73 + + 25
----
25

skipif mysql # not compatible
query I rowsort label-1918
SELECT DISTINCT MIN ( - - 50 ) / + + 73 + + 25
----
25

query I rowsort
SELECT - 16 * - - 38
----
-608

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1920
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 47 * - 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 47 * - 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1921
SELECT ALL + MIN( ALL + - 26 ) DIV + + 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL + MIN ( ALL + - 26 ) / + + 48 AS col1
----
0

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

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

query I rowsort
SELECT DISTINCT 46 - - 20 - - 20 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT 12 - - + 67 + + COUNT( - + 87 ) * - 53 * 2
----
-27

skipif mysql # not compatible
query I rowsort label-1924
SELECT 12 - - + 67 + + COUNT ( - + 87 ) * - 53 * 2
----
-27

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1926
SELECT DISTINCT + SUM( - CAST( NULL AS DECIMAL ) ) * - NULLIF ( 69, - - 58 ) - - 59 * - + MIN( DISTINCT + + 74 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT + SUM ( - CAST ( NULL AS REAL ) ) * - NULLIF ( 69, - - 58 ) - - 59 * - + MIN ( DISTINCT + + 74 ) AS col1
----
NULL

query II rowsort
SELECT ALL 32 AS col0, 86
----
32
86

query I rowsort
SELECT 92 + + 30
----
122

query I rowsort
SELECT 28 * - 60 * + 44 AS col0
----
-73920

query I rowsort
SELECT 2 + - - 81 AS col2
----
83

query I rowsort
SELECT NULLIF ( 95, 77 ) - - - 70
----
25

query II rowsort
SELECT ALL 89 AS col2, + 73
----
89
73

query I rowsort
SELECT 11 + + - 34
----
-23

query I rowsort
SELECT 18 * 79 AS col1
----
1422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1935
SELECT AVG ( ALL - CAST( NULL AS SIGNED ) ) * + CAST( NULL AS SIGNED ) * - COUNT( * ) / - COUNT( * ) * - - 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT AVG ( ALL - CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) / - COUNT ( * ) * - - 96 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 81 * 82
----
-6642

query I rowsort
SELECT 37 + + 61
----
98

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

query II rowsort
SELECT ALL 78 AS col2, 76 + + + 73 AS col2
----
78
149

query I rowsort
SELECT - - COALESCE ( - 38, - 86 + - 53 * - 11 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT ALL - SUM( + 88 ) + ( + 50 )
----
-38

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL - SUM ( + 88 ) + ( + 50 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1942
SELECT + COUNT( * ) + - 26 + ( - CAST( 69 AS SIGNED ) ) + + COUNT( * ) * - 85 AS col1
----
-179

skipif mysql # not compatible
query I rowsort label-1942
SELECT + COUNT ( * ) + - 26 + ( - CAST ( 69 AS INTEGER ) ) + + COUNT ( * ) * - 85 AS col1
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT DISTINCT COUNT( ALL ( + 19 ) ) + - + 68 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT COUNT ( ALL ( + 19 ) ) + - + 68 AS col1
----
-67

query I rowsort
SELECT + ( + NULLIF ( + 13, - 93 + - 74 ) ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT DISTINCT - - COUNT( * ) + - ( - 72 ) * + 23
----
1657

skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT - - COUNT ( * ) + - ( - 72 ) * + 23
----
1657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1946
SELECT DISTINCT + 28 * - CAST( NULL AS SIGNED ) * 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT + 28 * - CAST ( NULL AS INTEGER ) * 12 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1947
SELECT - 87 + - CAST( NULL AS SIGNED ) * - 60 * - + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1947
SELECT - 87 + - CAST ( NULL AS INTEGER ) * - 60 * - + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT 41 * - 43 * + COUNT( ALL - 70 ) * + - 38 - + 74 * + 22 AS col1
----
65366

skipif mysql # not compatible
query I rowsort label-1948
SELECT 41 * - 43 * + COUNT ( ALL - 70 ) * + - 38 - + 74 * + 22 AS col1
----
65366

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1950
SELECT + 53 + + 2 DIV - 80 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-1950
SELECT + 53 + + 2 / - 80 AS col1
----
53

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1952
SELECT CASE - COUNT( * ) WHEN - + 61 / 75 THEN NULL WHEN + 69 THEN NULL WHEN + SUM( DISTINCT 72 ) * + 30 * + 2 THEN 11 + + + CAST( NULL AS SIGNED ) END * ( - COUNT( * ) + ( - 47 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1952
SELECT CASE - COUNT ( * ) WHEN - + 61 / 75 THEN NULL WHEN + 69 THEN NULL WHEN + SUM ( DISTINCT 72 ) * + 30 * + 2 THEN 11 + + + CAST ( NULL AS INTEGER ) END * ( - COUNT ( * ) + ( - 47 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1953
SELECT + COUNT( * ) - + + CAST( NULL AS DECIMAL ) - - MAX( DISTINCT 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1953
SELECT + COUNT ( * ) - + + CAST ( NULL AS REAL ) - - MAX ( DISTINCT 29 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT + + 26 * - - COUNT( + 48 ) + - 39 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-1954
SELECT + + 26 * - - COUNT ( + 48 ) + - 39 AS col1
----
-13

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1956
SELECT CASE + 16 WHEN - 80 * 53 * - 22 + + + 96 THEN + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) END * + 65 - - + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1956
SELECT CASE + 16 WHEN - 80 * 53 * - 22 + + + 96 THEN + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) END * + 65 - - + 51 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT DISTINCT COUNT( * ) * - - 79
----
79

skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT COUNT ( * ) * - - 79
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1958
SELECT CASE 29 WHEN + 91 THEN NULL WHEN CASE + - 15 WHEN - 78 THEN - COUNT( * ) * - + ( - 36 ) + + + ( - + 53 ) * - COUNT( * ) - MAX( 69 + 74 / + ( CAST( NULL AS SIGNED ) ) ) * 28 END THEN - 88 - + 11 * 62 ELSE NULL END * + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1958
SELECT CASE 29 WHEN + 91 THEN NULL WHEN CASE + - 15 WHEN - 78 THEN - COUNT ( * ) * - + ( - 36 ) + + + ( - + 53 ) * - COUNT ( * ) - MAX ( 69 + 74 / + ( CAST ( NULL AS INTEGER ) ) ) * 28 END THEN - 88 - + 11 * 62 ELSE NULL END * + 15 AS col1
----
NULL

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

query I rowsort
SELECT ALL + ( + NULLIF ( + 26, - + 43 * + 45 ) ) * - 41 * + 96 AS col2
----
-102336

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT - 47 * MAX( + 86 ) + + 58 col0
----
-3984

skipif mysql # not compatible
query I rowsort label-1961
SELECT - 47 * MAX ( + 86 ) + + 58 col0
----
-3984

query I rowsort
SELECT 28 * - 34
----
-952

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1964
SELECT 47 + 13 + 39 * - - 47 + + - 2 + - 2 * - SUM( ALL + + 58 ) + COUNT( DISTINCT - 47 ) * + COUNT( * ) + + - CAST( NULL AS SIGNED ) + 97 * + NULLIF ( 86, - COUNT( * ) - + 48 ) * - AVG ( DISTINCT 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT 47 + 13 + 39 * - - 47 + + - 2 + - 2 * - SUM ( ALL + + 58 ) + COUNT ( DISTINCT - 47 ) * + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) + 97 * + NULLIF ( 86, - COUNT ( * ) - + 48 ) * - AVG ( DISTINCT 88 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1965
SELECT 18 DIV 25, 67 AS col2
----
0
67

skipif mysql # not compatible
query II rowsort label-1965
SELECT 18 / 25, 67 AS col2
----
0
67

query II rowsort
SELECT ALL + 95 * + + 45 AS col1, 86
----
4275
86

query I rowsort
SELECT 43 + 54 + - - 4 * - 55 AS col2
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1968
SELECT DISTINCT - ( - ( 37 ) ) + CAST( + 46 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - ( - ( 37 ) ) + CAST ( + 46 AS INTEGER )
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1969
SELECT COUNT( * ) DIV + - 90 + + 23 + CASE + COALESCE ( - 90, + 46 * + AVG ( ALL 91 ) ) WHEN - 5 THEN - 17 ELSE - - 46 END AS col0
----
69

skipif mysql # not compatible
query I rowsort label-1969
SELECT COUNT ( * ) / + - 90 + + 23 + CASE + COALESCE ( - 90, + 46 * + AVG ( ALL 91 ) ) WHEN - 5 THEN - 17 ELSE - - 46 END AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1970
SELECT + CAST( NULL AS SIGNED ) - - 99 + - + 9 + + 92 * - ( - - 36 ) / - 37 - - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1970
SELECT + CAST ( NULL AS INTEGER ) - - 99 + - + 9 + + 92 * - ( - - 36 ) / - 37 - - 74
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1971
SELECT - 21 DIV + 26
----
0

skipif mysql # not compatible
query I rowsort label-1971
SELECT - 21 / + 26
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1972
SELECT 41 - + - COUNT( * ) + 20, 3 col0
----
62
3

skipif mysql # not compatible
query II rowsort label-1972
SELECT 41 - + - COUNT ( * ) + 20, 3 col0
----
62
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1974
SELECT DISTINCT - - 85 + - CAST( NULL AS SIGNED ) + + ( 81 ) * 14 * - - ( - 72 ) * 74 + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT - - 85 + - CAST ( NULL AS INTEGER ) + + ( 81 ) * 14 * - - ( - 72 ) * 74 + - 37
----
NULL

query I rowsort
SELECT ALL + - 72 + 52 + - 47 * + 40 - + 17 * - 70 AS col0
----
-710

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT ALL + - MAX( ALL - 6 ) * + 27 + - 15
----
147

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL + - MAX ( ALL - 6 ) * + 27 + - 15
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT - 37 * - 54 + - COUNT( * ) AS col2
----
1997

skipif mysql # not compatible
query I rowsort label-1977
SELECT - 37 * - 54 + - COUNT ( * ) AS col2
----
1997

onlyif mysql # DIV for integer division: 
query I rowsort label-1978
SELECT DISTINCT + NULLIF ( + 72, ( - - 33 ) ) DIV 89 * - 71 DIV 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT + NULLIF ( + 72, ( - - 33 ) ) / 89 * - 71 / 20 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT + 51 * 21 * 37 + - 16 + + 79 * + - MIN( - 2 ) * + - 91 + 55
----
25288

skipif mysql # not compatible
query I rowsort label-1979
SELECT + 51 * 21 * 37 + - 16 + + 79 * + - MIN ( - 2 ) * + - 91 + 55
----
25288

onlyif mysql # aggregate syntax: 
query II rowsort label-1980
SELECT + - 89 * + - COUNT( * ) AS col2, 56 AS col0
----
89
56

skipif mysql # not compatible
query II rowsort label-1980
SELECT + - 89 * + - COUNT ( * ) AS col2, 56 AS col0
----
89
56

query I rowsort
SELECT ALL 95 * + ( + + 23 ) * - + 32
----
-69920

onlyif mysql # DIV for integer division: 
query I rowsort label-1982
SELECT - 63 DIV + 4 + - 99
----
-114

skipif mysql # not compatible
query I rowsort label-1982
SELECT - 63 / + 4 + - 99
----
-114

query I rowsort
SELECT DISTINCT - - 38 * - ( 9 ) + + + 37
----
-305

query I rowsort
SELECT ALL - 71 * - 20
----
1420

query II rowsort
SELECT ALL + 77, CASE - 42 WHEN + 6 / 83 THEN + 41 END * + NULLIF ( - 34, - - 12 ) col1
----
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT SUM( NULLIF ( - 82, ( - 37 ) ) )
----
-82

skipif mysql # not compatible
query I rowsort label-1986
SELECT SUM ( NULLIF ( - 82, ( - 37 ) ) )
----
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-1987
SELECT ALL + 48 col0, 7 DIV + 34
----
48
0

skipif mysql # not compatible
query II rowsort label-1987
SELECT ALL + 48 col0, 7 / + 34
----
48
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1988
SELECT - 22 DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-1988
SELECT - 22 / - 56
----
0

query I rowsort
SELECT + 28 * + + 50
----
1400

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT MAX( 73 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-1990
SELECT MAX ( 73 ) AS col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1991
SELECT DISTINCT 51 DIV 46 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT 51 / 46 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1992
SELECT + CASE + - 97 WHEN NULLIF ( + 42, 63 + + 43 ) * + 87 - - + 97 - - 48 / + 54 * - 62 THEN + - COUNT( * ) * - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1992
SELECT + CASE + - 97 WHEN NULLIF ( + 42, 63 + + 43 ) * + 87 - - + 97 - - 48 / + 54 * - 62 THEN + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1993
SELECT ALL 86 DIV 81 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL 86 / 81 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1994
SELECT + 92 * - COUNT( + - 1 ) AS col0, 98 AS col0, + 87 * + - CAST( - CASE - 23 WHEN ( MAX( - + 95 ) ) THEN NULL ELSE + - COUNT( * ) END AS SIGNED ) col2
----
-92
98
-87

skipif mysql # not compatible
query III rowsort label-1994
SELECT + 92 * - COUNT ( + - 1 ) AS col0, 98 AS col0, + 87 * + - CAST ( - CASE - 23 WHEN ( MAX ( - + 95 ) ) THEN NULL ELSE + - COUNT ( * ) END AS INTEGER ) col2
----
-92
98
-87

query II rowsort
SELECT - 98 * + NULLIF ( 27, + - 12 ), - 53 AS col1
----
-2646
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT MAX( + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-1996
SELECT MAX ( + 19 )
----
19

query I rowsort
SELECT + 68 * 71 col1
----
4828

query I rowsort
SELECT ALL + 56 * - 57 + + + 9
----
-3183

query II rowsort
SELECT ALL + 63 AS col2, 63 * COALESCE ( 47, + + ( 1 ) + + 46 ) AS col1
----
63
2961

query I rowsort
SELECT ALL 50 + + - ( - + 38 ) + - 84
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT 36 * - - COUNT( * ) - + + 45 + + 70 * 82 AS col2
----
5731

skipif mysql # not compatible
query I rowsort label-2001
SELECT 36 * - - COUNT ( * ) - + + 45 + + 70 * 82 AS col2
----
5731

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2002
SELECT + COALESCE ( + CAST( COUNT( * ) AS SIGNED ), + CAST( NULL AS SIGNED ) ) + - - 82
----
83

skipif mysql # not compatible
query I rowsort label-2002
SELECT + COALESCE ( + CAST ( COUNT ( * ) AS INTEGER ), + CAST ( NULL AS INTEGER ) ) + - - 82
----
83

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

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

query I rowsort
SELECT + 26 + + + 2 * 14 * 7 * 87
----
17078

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

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL COUNT ( + + 74 ) AS col1
----
1

query I rowsort
SELECT + 10 + ( - 37 )
----
-27

query I rowsort
SELECT + 23 + 77 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT - CASE + 84 WHEN - COALESCE ( 0, - ( + 36 ) + + COUNT( + 27 ), + + 3 ) THEN NULL WHEN + SUM( - + 1 ) * - MIN( 26 ) + 81 * - 94 THEN NULL ELSE + 78 END - 13 * + 24 AS col2
----
-390

skipif mysql # not compatible
query I rowsort label-2008
SELECT - CASE + 84 WHEN - COALESCE ( 0, - ( + 36 ) + + COUNT ( + 27 ), + + 3 ) THEN NULL WHEN + SUM ( - + 1 ) * - MIN ( 26 ) + 81 * - 94 THEN NULL ELSE + 78 END - 13 * + 24 AS col2
----
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT ALL MAX( + 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL MAX ( + 77 ) AS col2
----
77

query I rowsort
SELECT ALL - ( - 56 ) + - 64 * + - 60
----
3896

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

skipif mysql # not compatible
query I rowsort label-2011
SELECT - - 33 * COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-2012
SELECT + 58 AS col2, MAX( 89 )
----
58
89

skipif mysql # not compatible
query II rowsort label-2012
SELECT + 58 AS col2, MAX ( 89 )
----
58
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT DISTINCT 25 - CASE - - COUNT( 54 ) WHEN - MIN( ALL + 79 ) THEN - CASE - COUNT( DISTINCT + 94 ) WHEN + COALESCE ( + 54, - + 43, - 92 * AVG ( DISTINCT 30 / 4 ) ) THEN NULL WHEN 96 THEN 2 ELSE 33 * + COUNT( * ) - 17 END WHEN 8 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2013
SELECT DISTINCT 25 - CASE - - COUNT ( 54 ) WHEN - MIN ( ALL + 79 ) THEN - CASE - COUNT ( DISTINCT + 94 ) WHEN + COALESCE ( + 54, - + 43, - 92 * AVG ( DISTINCT 30 / 4 ) ) THEN NULL WHEN 96 THEN 2 ELSE 33 * + COUNT ( * ) - 17 END WHEN 8 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2014
SELECT DISTINCT - 89 * + + MIN( - - 36 ) AS col0, ( - + SUM( ALL 70 ) )
----
-3204
-70

skipif mysql # not compatible
query II rowsort label-2014
SELECT DISTINCT - 89 * + + MIN ( - - 36 ) AS col0, ( - + SUM ( ALL 70 ) )
----
-3204
-70

query I rowsort
SELECT - - 84 + - - 13 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT + COUNT( * ) + 51 col1
----
52

skipif mysql # not compatible
query I rowsort label-2016
SELECT + COUNT ( * ) + 51 col1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-2017
SELECT + + 98 * + 27 - SUM( + + 80 ) AS col1, 78 * - COUNT( 70 ) * 87
----
2566
-6786

skipif mysql # not compatible
query II rowsort label-2017
SELECT + + 98 * + 27 - SUM ( + + 80 ) AS col1, 78 * - COUNT ( 70 ) * 87
----
2566
-6786

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2018
SELECT - COUNT( * ) DIV 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2018
SELECT - COUNT ( * ) / 73 AS col2
----
0

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

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

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

query I rowsort
SELECT ALL + 26 * - 21
----
-546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2022
SELECT - + 15 + + COUNT( * ) - + - 96 DIV - 76
----
-15

skipif mysql # not compatible
query I rowsort label-2022
SELECT - + 15 + + COUNT ( * ) - + - 96 / - 76
----
-15

query II rowsort
SELECT + + COALESCE ( - 90, - 40 ) AS col0, + 13 AS col1
----
-90
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT - + 32 * + 65 - + CASE + - 60 WHEN - - COUNT( ALL - 51 ) THEN 56 * 33 * 8 + + 50 WHEN 38 THEN NULL ELSE 18 * COUNT( * ) END + - 3 AS col1
----
-2101

skipif mysql # not compatible
query I rowsort label-2024
SELECT - + 32 * + 65 - + CASE + - 60 WHEN - - COUNT ( ALL - 51 ) THEN 56 * 33 * 8 + + 50 WHEN 38 THEN NULL ELSE 18 * COUNT ( * ) END + - 3 AS col1
----
-2101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2025
SELECT 3 * + 55 + 1 + - - 87 DIV + 81 * - COUNT( * ) + - - 62 - + 33
----
194

skipif mysql # not compatible
query I rowsort label-2025
SELECT 3 * + 55 + 1 + - - 87 / + 81 * - COUNT ( * ) + - - 62 - + 33
----
194

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

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

query I rowsort
SELECT ALL - 40 * + 56 AS col0
----
-2240

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT 3 * + COUNT( ALL - 16 ) + - 49 + + 53 * 30
----
1544

skipif mysql # not compatible
query I rowsort label-2029
SELECT 3 * + COUNT ( ALL - 16 ) + - 49 + + 53 * 30
----
1544

query II rowsort
SELECT + 22 - 16 AS col1, + 14
----
6
14

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2033
SELECT ALL + CASE - CAST( NULL AS SIGNED ) WHEN - - 64 * - 73 * - + 71 THEN + 18 WHEN 79 THEN + COUNT( * ) * CAST( 40 AS SIGNED ) END * - COUNT( * ) + + 34 * - + 38 + - CAST( - 41 AS SIGNED ) + - COALESCE ( 98 + 36, + COUNT( * ), COALESCE ( 3, + COUNT( DISTINCT 49 ) ) + 80 ) * + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL + CASE - CAST ( NULL AS INTEGER ) WHEN - - 64 * - 73 * - + 71 THEN + 18 WHEN 79 THEN + COUNT ( * ) * CAST ( 40 AS INTEGER ) END * - COUNT ( * ) + + 34 * - + 38 + - CAST ( - 41 AS INTEGER ) + - COALESCE ( 98 + 36, + COUNT ( * ), COALESCE ( 3, + COUNT ( DISTINCT 49 ) ) + 80 ) * + 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT ALL + 85 * + COUNT( * ) + 47 + 30 + + 55
----
217

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL + 85 * + COUNT ( * ) + 47 + 30 + + 55
----
217

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2035
SELECT ALL - 35 * - 92 + + + 10 + + 65 AS col1, CAST( NULL AS DECIMAL )
----
3295
NULL

skipif mysql # not compatible
query II rowsort label-2035
SELECT ALL - 35 * - 92 + + + 10 + + 65 AS col1, CAST ( NULL AS REAL )
----
3295
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2036
SELECT - 50 * - CAST( NULL AS SIGNED ) * - - 46 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2036
SELECT - 50 * - CAST ( NULL AS INTEGER ) * - - 46 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2037
SELECT COALESCE ( + COUNT( * ), + + SUM( DISTINCT - - 44 ) * 49 + COUNT( * ), + + 5 ) AS col2, + 44 + - + 83 col2
----
1
-39

skipif mysql # not compatible
query II rowsort label-2037
SELECT COALESCE ( + COUNT ( * ), + + SUM ( DISTINCT - - 44 ) * 49 + COUNT ( * ), + + 5 ) AS col2, + 44 + - + 83 col2
----
1
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2038
SELECT COALESCE ( ( COALESCE ( - 49, + MAX( ALL + 55 ) ) ), - - 77 + + 0, 53 + + 41 * - CAST( NULL AS SIGNED ) + + 6 + + 58 + CAST( SUM( DISTINCT 86 ) AS SIGNED ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-2038
SELECT COALESCE ( ( COALESCE ( - 49, + MAX ( ALL + 55 ) ) ), - - 77 + + 0, 53 + + 41 * - CAST ( NULL AS INTEGER ) + + 6 + + 58 + CAST ( SUM ( DISTINCT 86 ) AS INTEGER ) ) AS col0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT ALL 96 DIV - - 18
----
5

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL 96 / - - 18
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT + COUNT( * ) + - COALESCE ( + 45, - - 11 )
----
-44

skipif mysql # not compatible
query I rowsort label-2040
SELECT + COUNT ( * ) + - COALESCE ( + 45, - - 11 )
----
-44

query I rowsort
SELECT - NULLIF ( 76, 14 - + 51 )
----
-76

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

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

query I rowsort
SELECT DISTINCT - 49 * - 20
----
980

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT 70 * - 18 * + + 75 - - 54 + MAX( + 12 )
----
-94434

skipif mysql # not compatible
query I rowsort label-2044
SELECT 70 * - 18 * + + 75 - - 54 + MAX ( + 12 )
----
-94434

query I rowsort
SELECT - 24 - 68 + - 45 AS col2
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT COUNT( * ) + - - 74 col2
----
75

skipif mysql # not compatible
query I rowsort label-2046
SELECT COUNT ( * ) + - - 74 col2
----
75

query I rowsort
SELECT ALL - COALESCE ( + + 29, - 23 * 7 + 25, - - 27 ) col1
----
-29

query I rowsort
SELECT ( + ( - 44 ) ) * + 57
----
-2508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2049
SELECT DISTINCT - ( MAX( + + 59 ) ) DIV + + COUNT( * ) + + - ( + 38 )
----
-97

skipif mysql # not compatible
query I rowsort label-2049
SELECT DISTINCT - ( MAX ( + + 59 ) ) / + + COUNT ( * ) + + - ( + 38 )
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2050
SELECT DISTINCT MIN( + - 30 ) AS col2, + 19
----
-30
19

skipif mysql # not compatible
query II rowsort label-2050
SELECT DISTINCT MIN ( + - 30 ) AS col2, + 19
----
-30
19

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

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

query I rowsort
SELECT - 82 * - 92 * 68 AS col1
----
512992

query I rowsort
SELECT ALL + 8 + 92 AS col0
----
100

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2055
SELECT - 72 DIV + 93 + + 5 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2055
SELECT - 72 / + 93 + + 5 AS col2
----
5

query II rowsort
SELECT 12 * - 62 * 40 AS col2, + 59
----
-29760
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2057
SELECT 47 + CAST( NULL AS SIGNED ) / + + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT 47 + CAST ( NULL AS INTEGER ) / + + 71 AS col0
----
NULL

query I rowsort
SELECT ALL - 35 + - - 10 col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT DISTINCT - 54 + - 71 * + COUNT( * ) * - + 50 AS col2
----
3496

skipif mysql # not compatible
query I rowsort label-2059
SELECT DISTINCT - 54 + - 71 * + COUNT ( * ) * - + 50 AS col2
----
3496

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT ALL - 8 + - + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL - 8 + - + COUNT ( * )
----
-9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2062
SELECT ALL - NULLIF ( + + 3, 88 * CAST( 14 AS SIGNED ) ) + - CASE ( - + COUNT( ALL - 8 ) ) WHEN + - 22 * + 38 THEN - - CAST( + 13 AS SIGNED ) * + 48 - 0 WHEN + 4 + 51 * COUNT( * ) THEN NULL WHEN 95 THEN + 51 * + 83 WHEN - COUNT( * ) THEN 25 * - 80 ELSE NULL END * - 21 AS col0
----
-42003

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL - NULLIF ( + + 3, 88 * CAST ( 14 AS INTEGER ) ) + - CASE ( - + COUNT ( ALL - 8 ) ) WHEN + - 22 * + 38 THEN - - CAST ( + 13 AS INTEGER ) * + 48 - 0 WHEN + 4 + 51 * COUNT ( * ) THEN NULL WHEN 95 THEN + 51 * + 83 WHEN - COUNT ( * ) THEN 25 * - 80 ELSE NULL END * - 21 AS col0
----
-42003

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT - 46 * CASE ( - CASE 91 WHEN 33 + + 95 THEN + 87 END ) WHEN - 85 THEN COALESCE ( + 86, - COUNT( * ), + 9 * + 37 * - - 3 ) * 44 + - 70 * - 80 WHEN 0 + - 55 * + 92 THEN NULL ELSE NULL END - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-2063
SELECT - 46 * CASE ( - CASE 91 WHEN 33 + + 95 THEN + 87 END ) WHEN - 85 THEN COALESCE ( + 86, - COUNT ( * ), + 9 * + 37 * - - 3 ) * 44 + - 70 * - 80 WHEN 0 + - 55 * + 92 THEN NULL ELSE NULL END - 57
----
NULL

query I rowsort
SELECT DISTINCT - ( 7 )
----
-7

query I rowsort
SELECT 62 * 61 AS col1
----
3782

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT 46 + + - 60 + + + MIN( - ( + 1 ) ) - - 33 + 2 * + + 60 * + 54
----
6498

skipif mysql # not compatible
query I rowsort label-2066
SELECT 46 + + - 60 + + + MIN ( - ( + 1 ) ) - - 33 + 2 * + + 60 * + 54
----
6498

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2069
SELECT DISTINCT - COALESCE ( 25, + ( + + CAST( NULLIF ( + 30, - CAST( 10 AS SIGNED ) + + - ( + - 13 ) ) AS SIGNED ) ) - - 13 DIV - - 39 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT - COALESCE ( 25, + ( + + CAST ( NULLIF ( + 30, - CAST ( 10 AS INTEGER ) + + - ( + - 13 ) ) AS INTEGER ) ) - - 13 / - - 39 ) AS col0
----
-25

query I rowsort
SELECT ALL + + 49 - - 87 AS col1
----
136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT 62 + - SUM( - - 38 ) + + + 5 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-2072
SELECT 62 + - SUM ( - - 38 ) + + + 5 AS col0
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-2073
SELECT DISTINCT + 21, COUNT( * ) + - ( + 8 ) AS col2
----
21
-7

skipif mysql # not compatible
query II rowsort label-2073
SELECT DISTINCT + 21, COUNT ( * ) + - ( + 8 ) AS col2
----
21
-7

query I rowsort
SELECT - 55 * + - 69
----
3795

query I rowsort
SELECT 95 + 87 * + - 0 - - 49
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-2076
SELECT + 64 DIV + - 56 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2076
SELECT + 64 / + - 56 AS col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT COUNT( * ) + + 7 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-2078
SELECT COUNT ( * ) + + 7 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT CASE WHEN NULL IN ( + ( - - 56 ), - 7 + 97 + - ( + - 98 ) ) THEN NULL ELSE - 51 END - + 69 + + + COUNT( 47 ) * + + 23 + + 35 + + - 98 AS col2
----
-160

skipif mysql # not compatible
query I rowsort label-2079
SELECT CASE WHEN NULL IN ( + ( - - 56 ), - 7 + 97 + - ( + - 98 ) ) THEN NULL ELSE - 51 END - + 69 + + + COUNT ( 47 ) * + + 23 + + 35 + + - 98 AS col2
----
-160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2080
SELECT - SUM( - ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2080
SELECT - SUM ( - ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2081
SELECT - 31 DIV + + 79 * + - 15 * - 1
----
0

skipif mysql # not compatible
query I rowsort label-2081
SELECT - 31 / + + 79 * + - 15 * - 1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2082
SELECT ALL + + 57 DIV 4 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL + + 57 / 4 AS col2
----
14

query I rowsort
SELECT 11 + + 92 + 44 AS col2
----
147

query I rowsort
SELECT DISTINCT + 77 * 80 col0
----
6160

query I rowsort
SELECT + 80 * + 10 * + + ( 38 ) AS col1
----
30400

onlyif mysql # aggregate syntax: 
query II rowsort label-2086
SELECT ALL - 44 + - - COUNT( * ) * - - 48 AS col1, 45
----
4
45

skipif mysql # not compatible
query II rowsort label-2086
SELECT ALL - 44 + - - COUNT ( * ) * - - 48 AS col1, 45
----
4
45

query I rowsort
SELECT 2 + - - ( + + 87 ) col0
----
89

query I rowsort
SELECT DISTINCT 28 + - 97 AS col0
----
-69

query I rowsort
SELECT 47 * - + 69 AS col1
----
-3243

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

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

query I rowsort
SELECT ALL + 13 * - + 3 + + 5 AS col0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2092
SELECT DISTINCT - 63 AS col1, - 31 + - - 93 + CASE COALESCE ( - - 41, + COUNT( * ) ) WHEN 29 THEN - - CAST( NULL AS SIGNED ) WHEN - - 84 + - 97 THEN NULL ELSE + 83 - - CAST( NULL AS SIGNED ) END * + + 84 col1
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-2092
SELECT DISTINCT - 63 AS col1, - 31 + - - 93 + CASE COALESCE ( - - 41, + COUNT ( * ) ) WHEN 29 THEN - - CAST ( NULL AS INTEGER ) WHEN - - 84 + - 97 THEN NULL ELSE + 83 - - CAST ( NULL AS INTEGER ) END * + + 84 col1
----
-63
NULL

query I rowsort
SELECT ALL + 77 * + 83 AS col2
----
6391

onlyif mysql # DIV for integer division: 
query I rowsort label-2094
SELECT - 43 * + COALESCE ( + 96, - 42 + 95 + - 81 ) DIV 2 * + 10 + - 9
----
-20649

skipif mysql # not compatible
query I rowsort label-2094
SELECT - 43 * + COALESCE ( + 96, - 42 + 95 + - 81 ) / 2 * + 10 + - 9
----
-20649

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2096
SELECT DISTINCT ( - 10 ) DIV + + 75 * - ( 63 )
----
0

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT ( - 10 ) / + + 75 * - ( 63 )
----
0

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

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

query I rowsort
SELECT ( 60 ) * - 72 AS col0
----
-4320

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2101
SELECT ( - - COUNT( ALL + 35 ) ) + + - 31 AS col0, 72
----
-30
72

skipif mysql # not compatible
query II rowsort label-2101
SELECT ( - - COUNT ( ALL + 35 ) ) + + - 31 AS col0, 72
----
-30
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2102
SELECT + 92 DIV NULLIF ( + 32, 78 * + 31 + 24 ) * - 25 + 11 - - - COUNT( * ) * 79 AS col0
----
-118

skipif mysql # not compatible
query I rowsort label-2102
SELECT + 92 / NULLIF ( + 32, 78 * + 31 + 24 ) * - 25 + 11 - - - COUNT ( * ) * 79 AS col0
----
-118

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

skipif mysql # not compatible
query II rowsort label-2103
SELECT COUNT ( * ), 23 AS col2
----
1
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT ALL - 5 * - ( COUNT( * ) )
----
5

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL - 5 * - ( COUNT ( * ) )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2105
SELECT + ( + 80 ) * + COALESCE ( + + CAST( NULL AS SIGNED ), + 35 ) * + 71 + - - ( COUNT( * ) )
----
198801

skipif mysql # not compatible
query I rowsort label-2105
SELECT + ( + 80 ) * + COALESCE ( + + CAST ( NULL AS INTEGER ), + 35 ) * + 71 + - - ( COUNT ( * ) )
----
198801

onlyif mysql # aggregate syntax: 
query II rowsort label-2106
SELECT ALL CASE + + 83 WHEN + COUNT( * ) THEN NULL WHEN + + 42 * + + 46 * + + 50 THEN - - 46 ELSE NULL END * 72 * + + 34, + 18 AS col2
----
NULL
18

skipif mysql # not compatible
query II rowsort label-2106
SELECT ALL CASE + + 83 WHEN + COUNT ( * ) THEN NULL WHEN + + 42 * + + 46 * + + 50 THEN - - 46 ELSE NULL END * 72 * + + 34, + 18 AS col2
----
NULL
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT ALL - - COUNT( * ) - - NULLIF ( - + 61, - - 15 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL - - COUNT ( * ) - - NULLIF ( - + 61, - - 15 ) AS col0
----
-60

query I rowsort
SELECT + - 60 * 98
----
-5880

query I rowsort
SELECT - - 55 * 24 * - 47 col0
----
-62040

onlyif mysql # aggregate syntax: 
query III rowsort label-2110
SELECT ALL + COUNT( * ), - ( 34 ) + - 77 AS col1, + - COALESCE ( - + COUNT( * ), - 50 * + NULLIF ( - 53, - 55 ) + 87 ) * COUNT( * ) + 69 AS col0
----
1
-111
70

skipif mysql # not compatible
query III rowsort label-2110
SELECT ALL + COUNT ( * ), - ( 34 ) + - 77 AS col1, + - COALESCE ( - + COUNT ( * ), - 50 * + NULLIF ( - 53, - 55 ) + 87 ) * COUNT ( * ) + 69 AS col0
----
1
-111
70

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2112
SELECT ALL - 0 AS col1, - MAX( + 69 )
----
0
-69

skipif mysql # not compatible
query II rowsort label-2112
SELECT ALL - 0 AS col1, - MAX ( + 69 )
----
0
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT DISTINCT + SUM( DISTINCT 7 ) * 79
----
553

skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT + SUM ( DISTINCT 7 ) * 79
----
553

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2115
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2, 5 + - + 82
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-2115
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2, 5 + - + 82
----
NULL
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT ALL + + COUNT( * ) * - - ( 69 ) - - 71
----
140

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL + + COUNT ( * ) * - - ( 69 ) - - 71
----
140

query I rowsort
SELECT - + 28 + - 91
----
-119

query I rowsort
SELECT DISTINCT + 6 * - 50
----
-300

query I rowsort
SELECT ALL - 48 + - 29 + - 35 * + 83
----
-2982

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT - MIN( DISTINCT 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-2120
SELECT - MIN ( DISTINCT 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT - 4 * - - 18 * + + COUNT( * ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-2121
SELECT - 4 * - - 18 * + + COUNT ( * ) AS col0
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2122
SELECT - - 9 - + SUM( DISTINCT - - 46 ) + - - ( + 58 ) * 45 DIV + 50
----
15

skipif mysql # not compatible
query I rowsort label-2122
SELECT - - 9 - + SUM ( DISTINCT - - 46 ) + - - ( + 58 ) * 45 / + 50
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2123
SELECT - COALESCE ( - COUNT( * ), - 96 * + 20 + 71 + + + 99 - - 15 + + 60 DIV + 52 * 30 ) * - 43 * - - COALESCE ( - - 76, - ( + 19 ) ) * - CAST( - 51 AS SIGNED ) + 97
----
-166571

skipif mysql # not compatible
query I rowsort label-2123
SELECT - COALESCE ( - COUNT ( * ), - 96 * + 20 + 71 + + + 99 - - 15 + + 60 / + 52 * 30 ) * - 43 * - - COALESCE ( - - 76, - ( + 19 ) ) * - CAST ( - 51 AS INTEGER ) + 97
----
-166571

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2124
SELECT + 87 + - + CAST( NULL AS SIGNED ) + 98 + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2124
SELECT + 87 + - + CAST ( NULL AS INTEGER ) + 98 + 70
----
NULL

query I rowsort
SELECT DISTINCT ( + 0 ) + + 52 AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2126
SELECT + 99 + + SUM( 94 ) AS col2, + 54 * - - 45 + - COUNT( * ) DIV + - 88
----
193
2430

skipif mysql # not compatible
query II rowsort label-2126
SELECT + 99 + + SUM ( 94 ) AS col2, + 54 * - - 45 + - COUNT ( * ) / + - 88
----
193
2430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2127
SELECT - MAX( DISTINCT - - CAST( + - ( - 9 ) AS SIGNED ) ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-2127
SELECT - MAX ( DISTINCT - - CAST ( + - ( - 9 ) AS INTEGER ) ) col2
----
-9

query I rowsort
SELECT + 87 * + 87
----
7569

query I rowsort
SELECT DISTINCT + ( 34 ) + + 63 + 21 AS col1
----
118

query I rowsort
SELECT - NULLIF ( + 70, - 21 )
----
-70

query I rowsort
SELECT + 22 - + - 52 - - + 43 AS col2
----
117

query I rowsort
SELECT - 51 * - 29
----
1479

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2133
SELECT DISTINCT + ( 46 ) / - 32 - + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ), - 3 AS col0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-2133
SELECT DISTINCT + ( 46 ) / - 32 - + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ), - 3 AS col0
----
NULL
-3

query I rowsort
SELECT + 86 * + + 29
----
2494

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT + CASE + 49 WHEN - + MIN( + - 48 ) THEN + 52 - + ( - - ( + - ( - COUNT( * ) ) ) ) + - 31 * 20 + - 27 END * + 21 + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT + CASE + 49 WHEN - + MIN ( + - 48 ) THEN + 52 - + ( - - ( + - ( - COUNT ( * ) ) ) ) + - 31 * 20 + - 27 END * + 21 + + 20
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 93 * - 20 - - - 68
----
1792

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT + ( MAX( - 18 ) ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-2138
SELECT + ( MAX ( - 18 ) ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-2139
SELECT + ( + + CASE + 4 WHEN - + 90 - + COUNT( * ) + 34 THEN + COALESCE ( + 11, 44, 54 ) END ) AS col0, ( - 37 )
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-2139
SELECT + ( + + CASE + 4 WHEN - + 90 - + COUNT ( * ) + 34 THEN + COALESCE ( + 11, 44, 54 ) END ) AS col0, ( - 37 )
----
NULL
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-2140
SELECT ALL 31 DIV 80 * - 79
----
0

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL 31 / 80 * - 79
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2141
SELECT + ( + - 31 ) + CAST( - - 19 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-2141
SELECT + ( + - 31 ) + CAST ( - - 19 AS INTEGER )
----
-12

query I rowsort
SELECT ALL - + 82 * - 10 AS col0
----
820

onlyif mysql # DIV for integer division: 
query I rowsort label-2143
SELECT + 86 DIV - 49 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2143
SELECT + 86 / - 49 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2144
SELECT ALL + 8 * + 87 - + COUNT( * ) + + 29 * - COALESCE ( + ( - + 46 ), + + 19 DIV 34 + COALESCE ( + 95, + 39 ), 19 + - 68 DIV - - NULLIF ( - 32, 19 ) * NULLIF ( + 46, COUNT( * ) + + 49 ) )
----
2029

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL + 8 * + 87 - + COUNT ( * ) + + 29 * - COALESCE ( + ( - + 46 ), + + 19 / 34 + COALESCE ( + 95, + 39 ), 19 + - 68 / - - NULLIF ( - 32, 19 ) * NULLIF ( + 46, COUNT ( * ) + + 49 ) )
----
2029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2145
SELECT DISTINCT + 80 * + 62 + + 68 + COUNT( * ) + - CAST( - + 86 AS SIGNED ) col2
----
5115

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT + 80 * + 62 + + 68 + COUNT ( * ) + - CAST ( - + 86 AS INTEGER ) col2
----
5115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT ALL + 44 * 75 + + 57 + + CAST( NULL AS SIGNED ) + ( + 18 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL + 44 * 75 + + 57 + + CAST ( NULL AS INTEGER ) + ( + 18 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT 74 * + + 60 - COUNT( * ) + + 67
----
4506

skipif mysql # not compatible
query I rowsort label-2147
SELECT 74 * + + 60 - COUNT ( * ) + + 67
----
4506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2148
SELECT - 10 * - 95 * - + CASE - - NULLIF ( + - CASE 57 WHEN + 33 * - 29 THEN CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ELSE + COUNT( * ) * - + MIN( ALL - + 25 ) END, - - 77 * - + COUNT( * ) ) WHEN - 78 THEN - 97 WHEN - 40 * - 8 + 34 THEN + COUNT( * ) * 42 ELSE - CAST( NULL AS SIGNED ) + + NULLIF ( + AVG ( - 73 ) + 47 * COUNT( * ), COALESCE ( + 31, 44, 48 / + 61 ) ) END * - 56 + 8 / 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2148
SELECT - 10 * - 95 * - + CASE - - NULLIF ( + - CASE 57 WHEN + 33 * - 29 THEN CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ELSE + COUNT ( * ) * - + MIN ( ALL - + 25 ) END, - - 77 * - + COUNT ( * ) ) WHEN - 78 THEN - 97 WHEN - 40 * - 8 + 34 THEN + COUNT ( * ) * 42 ELSE - CAST ( NULL AS INTEGER ) + + NULLIF ( + AVG ( - 73 ) + 47 * COUNT ( * ), COALESCE ( + 31, 44, 48 / + 61 ) ) END * - 56 + 8 / 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT ALL - 15 * 90 + MAX( DISTINCT ( - - 18 ) ) * + 12 * 66 * ( 62 ) * - + COUNT( * ) + 12
----
-885210

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL - 15 * 90 + MAX ( DISTINCT ( - - 18 ) ) * + 12 * 66 * ( 62 ) * - + COUNT ( * ) + 12
----
-885210

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT + 93 + - COUNT( ALL - - 95 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-2150
SELECT + 93 + - COUNT ( ALL - - 95 ) AS col2
----
92

query I rowsort
SELECT - 6 + + 61 col0
----
55

query I rowsort
SELECT - 76 - - + 51 AS col0
----
-25

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

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

query I rowsort
SELECT DISTINCT ( 21 ) AS col0
----
21

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

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

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

query I rowsort
SELECT DISTINCT - 95 * + 29
----
-2755

query II rowsort
SELECT - 22 + ( 62 ) AS col0, - 52 * + - 27 AS col0
----
40
1404

query I rowsort
SELECT - 27 + - 67 col2
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2160
SELECT - 86 DIV + 13
----
-6

skipif mysql # not compatible
query I rowsort label-2160
SELECT - 86 / + 13
----
-6

query I rowsort
SELECT - 3 + + 19 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT - MIN( 34 ) + + + 91 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-2162
SELECT - MIN ( 34 ) + + + 91 AS col0
----
57

query I rowsort
SELECT ALL 68 * - 58
----
-3944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2164
SELECT DISTINCT + 16 DIV + 49 - 55 * + ( + - ( - - COUNT( + + ( + 76 ) ) ) ) * + 66 + + + 76 col2
----
3706

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT + 16 / + 49 - 55 * + ( + - ( - - COUNT ( + + ( + 76 ) ) ) ) * + 66 + + + 76 col2
----
3706

query I rowsort
SELECT + 96 * - 79 + - 17 + - 9 AS col0
----
-7610

query II rowsort
SELECT ALL - 46, 31 AS col1
----
-46
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2167
SELECT 51 DIV - 41 + - + 90 col2, - COUNT( - 86 ) AS col0
----
-91
-1

skipif mysql # not compatible
query II rowsort label-2167
SELECT 51 / - 41 + - + 90 col2, - COUNT ( - 86 ) AS col0
----
-91
-1

query I rowsort
SELECT DISTINCT 90 * + 83 * + - 83 * - 93 AS col2
----
57660930

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

query II rowsort
SELECT DISTINCT - 29 col2, 52 AS col0
----
-29
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT ALL - CAST( NULL AS SIGNED ) * - + 96 * + - NULLIF ( - - 56, 49 + - 3 ) + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 96 * + - NULLIF ( - - 56, 49 + - 3 ) + - 42
----
NULL

query II rowsort
SELECT + + 47 AS col0, - 91 col1
----
47
-91

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

query II rowsort
SELECT + + 24 AS col1, 79 + + 81
----
24
160

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT ALL - MAX( ALL + + 96 ) * - 52 AS col0
----
4992

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL - MAX ( ALL + + 96 ) * - 52 AS col0
----
4992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2176
SELECT CASE + 41 WHEN - 55 + - 38 THEN - NULLIF ( - 51, + - 4 * + 67 * - CAST( NULL AS SIGNED ) ) + 25 * - 86 * - 51 END + 63 + - + ( + 12 ) - + 13 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2176
SELECT CASE + 41 WHEN - 55 + - 38 THEN - NULLIF ( - 51, + - 4 * + 67 * - CAST ( NULL AS INTEGER ) ) + 25 * - 86 * - 51 END + 63 + - + ( + 12 ) - + 13 col2
----
NULL

query I rowsort
SELECT DISTINCT 76 + - 35
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2178
SELECT DISTINCT + 89 DIV 55
----
1

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT + 89 / 55
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT - SUM( DISTINCT - 35 ) * 1
----
35

skipif mysql # not compatible
query I rowsort label-2179
SELECT - SUM ( DISTINCT - 35 ) * 1
----
35

query I rowsort
SELECT ALL + 56 * + 87 AS col0
----
4872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2181
SELECT + CAST( + + 5 AS SIGNED ) + 93
----
98

skipif mysql # not compatible
query I rowsort label-2181
SELECT + CAST ( + + 5 AS INTEGER ) + 93
----
98

query I rowsort
SELECT DISTINCT + 65 + + 68 + 11
----
144

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2184
SELECT ALL 96 * - COALESCE ( - 56, 21 * - 9 DIV + 38 * - 82 DIV + 44 ) + + 51 * - 6
----
5070

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL 96 * - COALESCE ( - 56, 21 * - 9 / + 38 * - 82 / + 44 ) + + 51 * - 6
----
5070

query I rowsort
SELECT ALL 4 - 94 AS col0
----
-90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT ( - - 41 ) - - ( - - 78 ) + - + 94 * + - ( + MAX( 65 ) )
----
6229

skipif mysql # not compatible
query I rowsort label-2187
SELECT ( - - 41 ) - - ( - - 78 ) + - + 94 * + - ( + MAX ( 65 ) )
----
6229

query I rowsort
SELECT 72 + - - 38 + + 45 + + NULLIF ( + 63, + + 81 ) * + 85 * - 23 * 79 AS col2
----
-9729880

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT ALL - 55 * + COUNT( - + 10 )
----
-55

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL - 55 * + COUNT ( - + 10 )
----
-55

query I rowsort
SELECT ALL - 46 * - 76 col2
----
3496

query I rowsort
SELECT DISTINCT - ( + 45 )
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-2193
SELECT 62 * 72, COUNT( * ) AS col2
----
4464
1

skipif mysql # not compatible
query II rowsort label-2193
SELECT 62 * 72, COUNT ( * ) AS col2
----
4464
1

query I rowsort
SELECT DISTINCT + 2 + + - 58 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT ALL + - 15 + + + COUNT( ALL - + 5 ) * + 45 * NULLIF ( - 79, + 28 - + 77 ) + - 41
----
-3611

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL + - 15 + + + COUNT ( ALL - + 5 ) * + 45 * NULLIF ( - 79, + 28 - + 77 ) + - 41
----
-3611

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT + + 86 * + - NULLIF ( + 49, 64 * NULLIF ( + + ( SUM( ALL + 80 ) ), + 93 ) / + 70 + - - 94 / 32 + - ( - + 60 ) ) * - + 91 + + - CASE + NULLIF ( + - 10, - 70 ) WHEN - 43 * + 81 - + 2 * - SUM( DISTINCT 96 - 21 ) THEN + 90 * NULLIF ( - 87, - COUNT( * ) ) WHEN COUNT( * ) THEN 57 * - 43 + 15 ELSE NULL END - - 59 / SUM( DISTINCT 44 * - 70 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2196
SELECT + + 86 * + - NULLIF ( + 49, 64 * NULLIF ( + + ( SUM ( ALL + 80 ) ), + 93 ) / + 70 + - - 94 / 32 + - ( - + 60 ) ) * - + 91 + + - CASE + NULLIF ( + - 10, - 70 ) WHEN - 43 * + 81 - + 2 * - SUM ( DISTINCT 96 - 21 ) THEN + 90 * NULLIF ( - 87, - COUNT ( * ) ) WHEN COUNT ( * ) THEN 57 * - 43 + 15 ELSE NULL END - - 59 / SUM ( DISTINCT 44 * - 70 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT ALL - + 35 + COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL - + 35 + COUNT ( * )
----
-34

query I rowsort
SELECT DISTINCT 21 * 79 * + 60 * + 80 AS col1
----
7963200

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT - 8 * - MAX( + 58 ) + + 73
----
537

skipif mysql # not compatible
query I rowsort label-2199
SELECT - 8 * - MAX ( + 58 ) + + 73
----
537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2200
SELECT ALL - ( CAST( NULL AS SIGNED ) ) + + COUNT( ALL - 45 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) + + COUNT ( ALL - 45 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2201
SELECT 71 * + COALESCE ( + + 4, MAX( DISTINCT - - 13 ) ) + - + 68 DIV - 33
----
286

skipif mysql # not compatible
query I rowsort label-2201
SELECT 71 * + COALESCE ( + + 4, MAX ( DISTINCT - - 13 ) ) + - + 68 / - 33
----
286

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2202
SELECT DISTINCT - - NULLIF ( - 6, + + MAX( + 42 ) * + ( 63 ) + - 66 - - 94 + + + COUNT( * ) * - - CAST( NULL AS DECIMAL ) ) * - 28
----
168

skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT - - NULLIF ( - 6, + + MAX ( + 42 ) * + ( 63 ) + - 66 - - 94 + + + COUNT ( * ) * - - CAST ( NULL AS REAL ) ) * - 28
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT + + COUNT( * ) * - - 38 + + NULLIF ( - 58, + COUNT( * ) )
----
-20

skipif mysql # not compatible
query I rowsort label-2203
SELECT + + COUNT ( * ) * - - 38 + + NULLIF ( - 58, + COUNT ( * ) )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT - COUNT( * ) * + 46 + 64 - + COUNT( ALL 48 ) + - 98 - + 14 + + + 45 * COUNT( * ) * - ( - 92 ) + - 91 + + 48
----
4002

skipif mysql # not compatible
query I rowsort label-2204
SELECT - COUNT ( * ) * + 46 + 64 - + COUNT ( ALL 48 ) + - 98 - + 14 + + + 45 * COUNT ( * ) * - ( - 92 ) + - 91 + + 48
----
4002

query I rowsort
SELECT ALL - 27 * + 53 * - COALESCE ( 39, 9 + 73, 55 ) + 24
----
55833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2206
SELECT COALESCE ( + CAST( NULL AS SIGNED ), - + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2206
SELECT COALESCE ( + CAST ( NULL AS INTEGER ), - + COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2207
SELECT ALL - 36 - ( + 60 ) + - + COUNT( * ) * + + 80, 4 + COUNT( ALL + 45 ) + - - COUNT( * ) col0
----
-176
6

skipif mysql # not compatible
query II rowsort label-2207
SELECT ALL - 36 - ( + 60 ) + - + COUNT ( * ) * + + 80, 4 + COUNT ( ALL + 45 ) + - - COUNT ( * ) col0
----
-176
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2208
SELECT ( 79 ) AS col1, + 36 * - 17 * - 59 + - 97 - - - 27 + - SUM( 95 )
----
79
35889

skipif mysql # not compatible
query II rowsort label-2208
SELECT ( 79 ) AS col1, + 36 * - 17 * - 59 + - 97 - - - 27 + - SUM ( 95 )
----
79
35889

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT - 51 * - 24 * COUNT( * ) + - - 61 + 35 * + + 45 - 13
----
2847

skipif mysql # not compatible
query I rowsort label-2209
SELECT - 51 * - 24 * COUNT ( * ) + - - 61 + 35 * + + 45 - 13
----
2847

onlyif mysql # DIV for integer division: 
query I rowsort label-2210
SELECT ALL 50 DIV COALESCE ( + 63, 79 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL 50 / COALESCE ( + 63, 79 ) AS col0
----
0

query II rowsort
SELECT - 24 + 53 * + 21 * 60, - 94 AS col2
----
66756
-94

query I rowsort
SELECT ALL 94 - - - 3 * + + 25 AS col2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-2213
SELECT ALL COALESCE ( + - 2, + 4, 80 * - + 63 * + - 12 ) DIV + + 18 + + 46 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL COALESCE ( + - 2, + 4, 80 * - + 63 * + - 12 ) / + + 18 + + 46 AS col0
----
46

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

skipif mysql # not compatible
query I rowsort label-2214
SELECT COUNT ( * ) / + 12 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2215
SELECT ALL COALESCE ( - 26, - + 48 + 49 - + 80 ) DIV - NULLIF ( - ( + - 81 ), - 24 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL COALESCE ( - 26, - + 48 + 49 - + 80 ) / - NULLIF ( - ( + - 81 ), - 24 ) AS col1
----
0

query I rowsort
SELECT 59 * - 0 + - ( - 68 ) + - 44
----
24

query I rowsort
SELECT - COALESCE ( - 23, + + 91 ) AS col1
----
23

query I rowsort
SELECT DISTINCT 57 * + 6 AS col1
----
342

query I rowsort
SELECT 75 + 77 * - 3 * - 62 + + 87 * + 16 AS col1
----
15789

onlyif mysql # DIV for integer division: 
query II rowsort label-2220
SELECT COALESCE ( + 83, + 62, + - 52 ) * + 46, + 19 DIV ( + + 18 ) AS col0
----
3818
1

skipif mysql # not compatible
query II rowsort label-2220
SELECT COALESCE ( + 83, + 62, + - 52 ) * + 46, + 19 / ( + + 18 ) AS col0
----
3818
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2221
SELECT DISTINCT ( - + 56 ) * 90 * - 77 + + - ( - 96 ) + + + 37 - 24 - + - CAST( - 14 AS SIGNED ) * - ( + 6 ) AS col0
----
388273

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT ( - + 56 ) * 90 * - 77 + + - ( - 96 ) + + + 37 - 24 - + - CAST ( - 14 AS INTEGER ) * - ( + 6 ) AS col0
----
388273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2222
SELECT DISTINCT ( ( + + 18 ) ) * + ( - CAST( + - 8 AS SIGNED ) ) AS col1
----
144

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT ( ( + + 18 ) ) * + ( - CAST ( + - 8 AS INTEGER ) ) AS col1
----
144

query I rowsort
SELECT + 9 + + + 82
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2224
SELECT ALL 15 * - + MAX( - 88 ) AS col2, - 96 * 60
----
1320
-5760

skipif mysql # not compatible
query II rowsort label-2224
SELECT ALL 15 * - + MAX ( - 88 ) AS col2, - 96 * 60
----
1320
-5760

query I rowsort
SELECT + 21 * + 36 * + 32
----
24192

query I rowsort
SELECT - 26 * + + 65 * + 39 * 68 AS col1
----
-4481880

query I rowsort
SELECT + 38 + 82
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT - MIN( DISTINCT + - COALESCE ( - + 50, 1, + NULLIF ( 35, + - 16 ) ) ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-2228
SELECT - MIN ( DISTINCT + - COALESCE ( - + 50, 1, + NULLIF ( 35, + - 16 ) ) ) AS col0
----
-50

query I rowsort
SELECT - 96 * - + 82
----
7872

query I rowsort
SELECT ALL - 15 + + - 2
----
-17

query I rowsort
SELECT - 84 + 28 col0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2232
SELECT DISTINCT 33 * CAST( NULL AS SIGNED ) + 35 - - 88 - - 34 / - - 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT 33 * CAST ( NULL AS INTEGER ) + 35 - - 88 - - 34 / - - 8 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2233
SELECT DISTINCT + + 62 * 26 DIV - 90 + - + 47 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT + + 62 * 26 / - 90 + - + 47 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-2234
SELECT DISTINCT - 96 * - - 20 + + - 50, + COUNT( * ) AS col0
----
-1970
1

skipif mysql # not compatible
query II rowsort label-2234
SELECT DISTINCT - 96 * - - 20 + + - 50, + COUNT ( * ) AS col0
----
-1970
1

query I rowsort
SELECT ALL + - 20 * - 61 AS col0
----
1220

onlyif mysql # DIV for integer division: 
query I rowsort label-2236
SELECT - 4 DIV + 61 * - - 35 * + - 24 + - 52 * + 57
----
-2964

skipif mysql # not compatible
query I rowsort label-2236
SELECT - 4 / + 61 * - - 35 * + - 24 + - 52 * + 57
----
-2964

query I rowsort
SELECT + + 0 * + 84 - + 50 * 63 AS col1
----
-3150

query I rowsort
SELECT DISTINCT + - 71 col1
----
-71

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

skipif mysql # not compatible
query II rowsort label-2239
SELECT - CAST ( NULL AS INTEGER ), - CAST ( - 72 AS INTEGER ) AS col1
----
NULL
72

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

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

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

query I rowsort
SELECT + 29 + - 60 + - 91 * - 69
----
6248

query I rowsort
SELECT - 68 * - 21 * + 12
----
17136

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

skipif mysql # not compatible
query I rowsort label-2244
SELECT MIN ( + - 44 )
----
-44

query II rowsort
SELECT ALL + 59 * - 28 * 20 - 21 - + 82 AS col2, - 50 AS col1
----
-33143
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT + + COUNT( DISTINCT + 33 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2246
SELECT + + COUNT ( DISTINCT + 33 ) col1
----
1

query I rowsort
SELECT ALL + COALESCE ( + 12, + - 97, - 15 )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2248
SELECT - 95 DIV - COUNT( DISTINCT + + 72 ) + + 64
----
159

skipif mysql # not compatible
query I rowsort label-2248
SELECT - 95 / - COUNT ( DISTINCT + + 72 ) + + 64
----
159

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

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL + COUNT ( ALL - 44 ) * - 51 / - + ( + 28 )
----
1

query I rowsort
SELECT ALL 39 * 63 col0
----
2457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2251
SELECT ALL - - 44 * + + 39 - + 13 + + AVG ( DISTINCT - ( - - 1 ) ) * 46 * ( - CAST( NULL AS SIGNED ) ) / + 54 * - ( 48 ) + - + 7 - - - 18 + - SUM( DISTINCT - - 59 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL - - 44 * + + 39 - + 13 + + AVG ( DISTINCT - ( - - 1 ) ) * 46 * ( - CAST ( NULL AS INTEGER ) ) / + 54 * - ( 48 ) + - + 7 - - - 18 + - SUM ( DISTINCT - - 59 ) * COUNT ( * )
----
NULL

query I rowsort
SELECT - - 99 * 12 AS col1
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT - + NULLIF ( + COALESCE ( - COALESCE ( + 68, COALESCE ( + 83, - 96 ) ), + ( - 68 ) * - 47 * - 92 * 92 ), COUNT( * ) + - + 45 ) - - 7
----
75

skipif mysql # not compatible
query I rowsort label-2253
SELECT - + NULLIF ( + COALESCE ( - COALESCE ( + 68, COALESCE ( + 83, - 96 ) ), + ( - 68 ) * - 47 * - 92 * 92 ), COUNT ( * ) + - + 45 ) - - 7
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT + CASE - SUM( + 12 ) WHEN - - 8 / + ( 38 ) + - - 59 + + 18 THEN - - 23 - + 68 WHEN - - 54 * 12 THEN NULL WHEN - ( - - 62 ) THEN + 62 * 94 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT + CASE - SUM ( + 12 ) WHEN - - 8 / + ( 38 ) + - - 59 + + 18 THEN - - 23 - + 68 WHEN - - 54 * 12 THEN NULL WHEN - ( - - 62 ) THEN + 62 * 94 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2255
SELECT ALL + CAST( 58 AS SIGNED ) * - + 66 + - - COUNT( * ) * 22 AS col1
----
-3806

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL + CAST ( 58 AS INTEGER ) * - + 66 + - - COUNT ( * ) * 22 AS col1
----
-3806

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT MIN( DISTINCT 81 ) col2
----
81

skipif mysql # not compatible
query I rowsort label-2256
SELECT MIN ( DISTINCT 81 ) col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT - 4 * - COUNT( * ) * + 53 AS col0
----
212

skipif mysql # not compatible
query I rowsort label-2257
SELECT - 4 * - COUNT ( * ) * + 53 AS col0
----
212

onlyif mysql # aggregate syntax: 
query II rowsort label-2258
SELECT + 7, + COUNT( * ) + - 66 AS col0
----
7
-65

skipif mysql # not compatible
query II rowsort label-2258
SELECT + 7, + COUNT ( * ) + - 66 AS col0
----
7
-65

query II rowsort
SELECT ALL 9, 36 AS col2
----
9
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT - MIN( DISTINCT CASE 8 WHEN + 88 THEN NULL ELSE + - 33 END )
----
33

skipif mysql # not compatible
query I rowsort label-2260
SELECT - MIN ( DISTINCT CASE 8 WHEN + 88 THEN NULL ELSE + - 33 END )
----
33

query I rowsort
SELECT ALL + ( - NULLIF ( + - 80, + - 98 * + 48 ) ) * - CASE + 19 WHEN - AVG ( - CASE + 88 WHEN - 19 THEN NULL WHEN - 45 + 67 THEN ( 60 ) * - 93 END ) * + + 45 + - 51 + + - ( + 8 ) THEN NULL ELSE + 78 - 36 END AS col0
----
-3360

query I rowsort
SELECT DISTINCT ( - 85 )
----
-85

query I rowsort
SELECT DISTINCT ( - - 41 )
----
41

query II rowsort
SELECT ALL 21, + 27 * - 13 + + 4 AS col1
----
21
-347

query I rowsort
SELECT + 50 + + 87 AS col1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT - MIN( - 98 )
----
98

skipif mysql # not compatible
query I rowsort label-2266
SELECT - MIN ( - 98 )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2267
SELECT + ( - 42 ) DIV - 10 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2267
SELECT + ( - 42 ) / - 10 AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-2268
SELECT 46, - ( - 96 ) * + COUNT( * ) - + - 61 AS col0
----
46
157

skipif mysql # not compatible
query II rowsort label-2268
SELECT 46, - ( - 96 ) * + COUNT ( * ) - + - 61 AS col0
----
46
157

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

query I rowsort
SELECT ALL 9 + 27 AS col0
----
36

query I rowsort
SELECT DISTINCT 67 + + - 56
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-2272
SELECT 90 AS col0, + 94 * + 2 + - - COUNT( * ) AS col0
----
90
189

skipif mysql # not compatible
query II rowsort label-2272
SELECT 90 AS col0, + 94 * + 2 + - - COUNT ( * ) AS col0
----
90
189

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

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

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

skipif mysql # not compatible
query I rowsort label-2274
SELECT + 97 + + COUNT ( * ) - + ( 2 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT DISTINCT COUNT( * ) + - 60 * - + 94
----
5641

skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT COUNT ( * ) + - 60 * - + 94
----
5641

onlyif mysql # DIV for integer division: 
query I rowsort label-2276
SELECT DISTINCT 14 DIV 11 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT 14 / 11 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT ALL 73 + - + COUNT( * ) - - ( - + 84 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL 73 + - + COUNT ( * ) - - ( - + 84 ) AS col0
----
-12

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

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

query I rowsort
SELECT ALL ( + + COALESCE ( 99, 44, - CASE - 27 WHEN + 88 + + 24 THEN 48 ELSE NULL END ) ) + + + 1 + + - 94 AS col0
----
6

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

query I rowsort
SELECT + + 15 * + 84 AS col1
----
1260

query I rowsort
SELECT ALL + 10 + - 55
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-2283
SELECT ALL COUNT( * ) AS col2, + 12 + 5 - - 38 AS col2
----
1
55

skipif mysql # not compatible
query II rowsort label-2283
SELECT ALL COUNT ( * ) AS col2, + 12 + 5 - - 38 AS col2
----
1
55

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

skipif mysql # not compatible
query I rowsort label-2284
SELECT + - 46 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 83, + 64 AS col0
----
83
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2286
SELECT 20 col0, 82 + - 8 - - - 13 + + COUNT( * ) + - 90 * - - 1
----
20
-28

skipif mysql # not compatible
query II rowsort label-2286
SELECT 20 col0, 82 + - 8 - - - 13 + + COUNT ( * ) + - 90 * - - 1
----
20
-28

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2288
SELECT ALL + + 85 DIV - 74 + - - MIN( ALL - 70 ) - - ( + - 70 ) col1, - CAST( NULL AS SIGNED ) + + COUNT( * ) + - + 63 + + 65 * 18
----
-141
NULL

skipif mysql # not compatible
query II rowsort label-2288
SELECT ALL + + 85 / - 74 + - - MIN ( ALL - 70 ) - - ( + - 70 ) col1, - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - + 63 + + 65 * 18
----
-141
NULL

query I rowsort
SELECT DISTINCT + - 43 * ( + 36 ) AS col0
----
-1548

query III rowsort
SELECT ALL + + 10, 58 AS col0, + + ( - 18 ) AS col1
----
10
58
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2291
SELECT + 72 / 20 / - 54 * - CAST( NULL AS SIGNED ) * CAST( COUNT( * ) AS SIGNED ) + - - ( + 62 ) - + ( 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT + 72 / 20 / - 54 * - CAST ( NULL AS INTEGER ) * CAST ( COUNT ( * ) AS INTEGER ) + - - ( + 62 ) - + ( 5 )
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2294
SELECT + 32 * 94, + 25 * ( 74 ) / - COUNT( * ) + + 97 - NULLIF ( 88, - 75 ) + ( NULLIF ( CAST( NULL AS SIGNED ), - - AVG ( - 46 ) + - 65 ) ) * + MIN( DISTINCT + 60 ) + + - CAST( - 7 AS SIGNED ) * - 2 AS col2
----
3008
NULL

skipif mysql # not compatible
query II rowsort label-2294
SELECT + 32 * 94, + 25 * ( 74 ) / - COUNT ( * ) + + 97 - NULLIF ( 88, - 75 ) + ( NULLIF ( CAST ( NULL AS INTEGER ), - - AVG ( - 46 ) + - 65 ) ) * + MIN ( DISTINCT + 60 ) + + - CAST ( - 7 AS INTEGER ) * - 2 AS col2
----
3008
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2295
SELECT - COUNT( * ) * 99 + - CASE + - 25 WHEN CAST( + - NULLIF ( - - COUNT( - 98 ), 34 ) AS SIGNED ) THEN MIN( - 59 ) * + 7 + 22 + MAX( - 60 ) / - CAST( + 62 AS SIGNED ) / + 18 WHEN 1 + 82 THEN 18 END * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT - COUNT ( * ) * 99 + - CASE + - 25 WHEN CAST ( + - NULLIF ( - - COUNT ( - 98 ), 34 ) AS INTEGER ) THEN MIN ( - 59 ) * + 7 + 22 + MAX ( - 60 ) / - CAST ( + 62 AS INTEGER ) / + 18 WHEN 1 + 82 THEN 18 END * + 95
----
NULL

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

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

query II rowsort
SELECT - 21 AS col2, + 2 * - 40
----
-21
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2298
SELECT ALL + - 85, COALESCE ( - COUNT( * ), 17 DIV + 64 - - + 0, - - 74 ) + 31 * + 34 col1, + 7 * 47 * 20 * + 48 + + ( 73 ) + + COUNT( * ) AS col2
----
-85
1053
315914

skipif mysql # not compatible
query III rowsort label-2298
SELECT ALL + - 85, COALESCE ( - COUNT ( * ), 17 / + 64 - - + 0, - - 74 ) + 31 * + 34 col1, + 7 * 47 * 20 * + 48 + + ( 73 ) + + COUNT ( * ) AS col2
----
-85
1053
315914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2299
SELECT ALL + 53 AS col1, - 8 * - - 16 * + - COALESCE ( + + 51, - CASE + 73 WHEN + 73 * COUNT( * ) * + 54 + - 60 THEN NULL WHEN - COUNT( * ) THEN + + 23 - - 74 END ) + CAST( COUNT( * ) AS SIGNED ) + + - 71 + 30 * - - MAX( + CASE 2 WHEN + 23 THEN 76 END ) * - 21
----
53
NULL

skipif mysql # not compatible
query II rowsort label-2299
SELECT ALL + 53 AS col1, - 8 * - - 16 * + - COALESCE ( + + 51, - CASE + 73 WHEN + 73 * COUNT ( * ) * + 54 + - 60 THEN NULL WHEN - COUNT ( * ) THEN + + 23 - - 74 END ) + CAST ( COUNT ( * ) AS INTEGER ) + + - 71 + 30 * - - MAX ( + CASE 2 WHEN + 23 THEN 76 END ) * - 21
----
53
NULL

query I rowsort
SELECT + 84 * 86 * - 97 * - 46 + + 71 - - ( + 16 ) AS col2
----
32233575

onlyif mysql # aggregate syntax: 
query II rowsort label-2301
SELECT + SUM( DISTINCT - + 7 ), + 81 AS col1
----
-7
81

skipif mysql # not compatible
query II rowsort label-2301
SELECT + SUM ( DISTINCT - + 7 ), + 81 AS col1
----
-7
81

query I rowsort
SELECT ALL - 72 * 35 + - 45 AS col1
----
-2565

query I rowsort
SELECT ALL - 87 + 37 AS col1
----
-50

query I rowsort
SELECT ALL + 32 + ( + - 56 ) col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT 72 * + MIN( - + 32 ) AS col0
----
-2304

skipif mysql # not compatible
query I rowsort label-2305
SELECT 72 * + MIN ( - + 32 ) AS col0
----
-2304

query I rowsort
SELECT 75 + + 12
----
87

query I rowsort
SELECT ALL - 96 + + 70 AS col0
----
-26

query I rowsort
SELECT ALL - 87 + - 65 + - + 69 + - 49 * 62 col1
----
-3259

query I rowsort
SELECT ALL + 24 * + 18 AS col1
----
432

query I rowsort
SELECT DISTINCT + 15 + - - 24 + - 44
----
-5

query II rowsort
SELECT 74 * + 11 AS col1, 19
----
814
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT ALL - 70 + COALESCE ( COUNT( * ), 52 + + + 28 + 76, SUM( + + 66 ) + + 34 ) + - SUM( DISTINCT - 36 )
----
-33

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL - 70 + COALESCE ( COUNT ( * ), 52 + + + 28 + 76, SUM ( + + 66 ) + + 34 ) + - SUM ( DISTINCT - 36 )
----
-33

query I rowsort
SELECT DISTINCT + 6 + + ( + 53 ) * - + 43 AS col0
----
-2273

query I rowsort
SELECT 40 * 58
----
2320

onlyif mysql # aggregate syntax: 
query II rowsort label-2315
SELECT - COUNT( 53 ) * COALESCE ( + 59, 49 ) AS col0, 68
----
-59
68

skipif mysql # not compatible
query II rowsort label-2315
SELECT - COUNT ( 53 ) * COALESCE ( + 59, 49 ) AS col0, 68
----
-59
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT 70 + COUNT( DISTINCT - 46 )
----
71

skipif mysql # not compatible
query I rowsort label-2316
SELECT 70 + COUNT ( DISTINCT - 46 )
----
71

query I rowsort
SELECT + 84 - 23
----
61

query II rowsort
SELECT ALL - 98 - 21 + + - ( - ( 72 ) ) + + 98 * + 15, 6 AS col0
----
1423
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2319
SELECT ALL 71 * CAST( NULL AS SIGNED ) * - NULLIF ( 21, - 43 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL 71 * CAST ( NULL AS INTEGER ) * - NULLIF ( 21, - 43 ) col2
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT ALL - + MIN( - + 32 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL - + MIN ( - + 32 ) AS col1
----
32

query I rowsort
SELECT ALL NULLIF ( - 98, 56 * - 53 ) * - 6 + - 6 * + - ( 36 ) AS col0
----
804

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT ALL + SUM( ALL 30 ) * + 48 * - 56
----
-80640

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL + SUM ( ALL 30 ) * + 48 * - 56
----
-80640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2325
SELECT + COALESCE ( - 86, - - 43 ) * + 41 + + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2325
SELECT + COALESCE ( - 86, - - 43 ) * + 41 + + + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT - 4 * + - 60 * + + 30
----
7200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2327
SELECT + CAST( + + COUNT( * ) AS SIGNED ) DIV - + 45 + - 50 * + + 93 col1
----
-4650

skipif mysql # not compatible
query I rowsort label-2327
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) / - + 45 + - 50 * + + 93 col1
----
-4650

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

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL - - COUNT ( + + 40 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT 9 + + COUNT( * ) + + - 90
----
-80

skipif mysql # not compatible
query I rowsort label-2329
SELECT 9 + + COUNT ( * ) + + - 90
----
-80

query II rowsort
SELECT ALL - ( - + 84 ) AS col2, 69 * ( + + ( 23 ) ) AS col2
----
84
1587

query I rowsort
SELECT DISTINCT - - 1 col2
----
1

query II rowsort
SELECT 91 AS col0, 24 AS col2
----
91
24

query I rowsort
SELECT DISTINCT + 55 + - + 14 AS col2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2334
SELECT ALL - 0 + + - 22 DIV - 31 * + - NULLIF ( 58, + 27 + + 77 + - COALESCE ( + 54, + - 50 ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL - 0 + + - 22 / - 31 * + - NULLIF ( 58, + 27 + + 77 + - COALESCE ( + 54, + - 50 ) ) col0
----
0

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

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

query II rowsort
SELECT DISTINCT - 4 col0, ( - + 30 ) + 35 AS col2
----
-4
5

query II rowsort
SELECT + 61 AS col0, + 60 + + 34 + + 23 * 87 AS col0
----
61
2095

query I rowsort
SELECT DISTINCT 74 * 75 AS col0
----
5550

query I rowsort
SELECT ALL - 1 + + - 69
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-2340
SELECT 55 - SUM( ALL + 32 ) * - 40 * - 3 * 30 AS col1, + COUNT( * )
----
-115145
1

skipif mysql # not compatible
query II rowsort label-2340
SELECT 55 - SUM ( ALL + 32 ) * - 40 * - 3 * 30 AS col1, + COUNT ( * )
----
-115145
1

query I rowsort
SELECT 62 + + + 99 col1
----
161

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

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

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

skipif mysql # not compatible
query II rowsort label-2343
SELECT 28 AS col1, COUNT ( * ) AS col2
----
28
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT ALL - COALESCE ( + 61, - + 88 + MIN( 95 ) ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL - COALESCE ( + 61, - + 88 + MIN ( 95 ) ) AS col1
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2345
SELECT ALL 30, 80 DIV + 20 + + COUNT( DISTINCT - 61 ) AS col1
----
30
5

skipif mysql # not compatible
query II rowsort label-2345
SELECT ALL 30, 80 / + 20 + + COUNT ( DISTINCT - 61 ) AS col1
----
30
5

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

query I rowsort
SELECT DISTINCT + 20 - + 20
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT COUNT( * ) * - 5 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-2349
SELECT COUNT ( * ) * - 5 AS col0
----
-5

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

skipif mysql # not compatible
query I rowsort label-2350
SELECT DISTINCT - COUNT ( * ) / - 89
----
0

query II rowsort
SELECT - 97 AS col1, 88
----
-97
88

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

skipif mysql # not compatible
query I rowsort label-2352
SELECT - + MIN ( 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT - ( COUNT( ALL 71 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2353
SELECT - ( COUNT ( ALL 71 ) )
----
-1

query I rowsort
SELECT + 68 + - - 51 AS col2
----
119

query I rowsort
SELECT DISTINCT + 2 - 60 + + 23 + + 21 col1
----
-14

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

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

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

skipif mysql # not compatible
query II rowsort label-2357
SELECT ALL 4 AS col0, COUNT ( * ) AS col1
----
4
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2358
SELECT ALL - 75 col1, COUNT( * ) * - MAX( 15 )
----
-75
-15

skipif mysql # not compatible
query II rowsort label-2358
SELECT ALL - 75 col1, COUNT ( * ) * - MAX ( 15 )
----
-75
-15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT DISTINCT - MAX( DISTINCT + + 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT - MAX ( DISTINCT + + 13 ) AS col0
----
-13

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

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

query II rowsort
SELECT ALL - + 67, - 91 * + 98 AS col0
----
-67
-8918

query I rowsort
SELECT ALL - 67 * + 65
----
-4355

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT ALL + 31 * + + 35 - + COUNT( * ) + ( - 94 ) AS col2
----
990

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL + 31 * + + 35 - + COUNT ( * ) + ( - 94 ) AS col2
----
990

query II rowsort
SELECT + 73, 75 AS col2
----
73
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2366
SELECT ALL - 24 * + + CAST( 98 AS SIGNED ) * 59 + 99 + + - 77 + + COALESCE ( - - 58, + - CASE AVG ( DISTINCT + 68 ) WHEN + - 70 THEN NULL ELSE 47 - + 11 END * + + 48 + - 67 ) AS col1
----
-138688

skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL - 24 * + + CAST ( 98 AS INTEGER ) * 59 + 99 + + - 77 + + COALESCE ( - - 58, + - CASE AVG ( DISTINCT + 68 ) WHEN + - 70 THEN NULL ELSE 47 - + 11 END * + + 48 + - 67 ) AS col1
----
-138688

query I rowsort
SELECT + + 10 * + + 5 - + + 87 + + 39 AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2368
SELECT ALL - 59 * - COUNT( * ) - - 69 * COUNT( * ) + - 37 + - 68, - 41 AS col2
----
23
-41

skipif mysql # not compatible
query II rowsort label-2368
SELECT ALL - 59 * - COUNT ( * ) - - 69 * COUNT ( * ) + - 37 + - 68, - 41 AS col2
----
23
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2369
SELECT + 23 / - + 63 - - 51 * - + CAST( NULL AS SIGNED ) / + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT + 23 / - + 63 - - 51 * - + CAST ( NULL AS INTEGER ) / + - 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT ALL COUNT( * ) * - + COUNT( * ) + + 58
----
57

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL COUNT ( * ) * - + COUNT ( * ) + + 58
----
57

query I rowsort
SELECT DISTINCT 98 * 97 AS col0
----
9506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2372
SELECT + COUNT( ALL - 44 ) * 6 + CAST( - 1 AS SIGNED ) col0
----
5

skipif mysql # not compatible
query I rowsort label-2372
SELECT + COUNT ( ALL - 44 ) * 6 + CAST ( - 1 AS INTEGER ) col0
----
5

query I rowsort
SELECT + 74 + + 11 * - - 85
----
1009

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT 33 * - 54 - - 63 - 19 * - - COUNT( * ) col2
----
-1738

skipif mysql # not compatible
query I rowsort label-2374
SELECT 33 * - 54 - - 63 - 19 * - - COUNT ( * ) col2
----
-1738

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT ALL COUNT( + 65 ) * - + 91 * + 14 * - - 42 * + 69 + + 4 + - + ( - COALESCE ( 39, + 48 ) ) - COUNT( * ) AS col1
----
-3692010

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL COUNT ( + 65 ) * - + 91 * + 14 * - - 42 * + 69 + + 4 + - + ( - COALESCE ( 39, + 48 ) ) - COUNT ( * ) AS col1
----
-3692010

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

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

query I rowsort
SELECT ALL + CASE - - 49 WHEN 2 THEN - 40 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT - 96 + - COUNT( + 39 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-2379
SELECT - 96 + - COUNT ( + 39 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2380
SELECT + COUNT( * ) * 6 AS col0, + 84 AS col2
----
6
84

skipif mysql # not compatible
query II rowsort label-2380
SELECT + COUNT ( * ) * 6 AS col0, + 84 AS col2
----
6
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT - CASE WHEN - CASE 35 WHEN + - 7 THEN + + 65 ELSE 55 + 37 - - CASE - 65 WHEN 30 THEN + - 59 WHEN MAX( ALL + + 50 ) THEN NULL ELSE NULL END - 42 * - + 9 END <= ( NULL ) THEN - MAX( ALL + ( 90 ) ) + + COUNT( * ) + + 76 + - COUNT( * ) * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2382
SELECT - CASE WHEN - CASE 35 WHEN + - 7 THEN + + 65 ELSE 55 + 37 - - CASE - 65 WHEN 30 THEN + - 59 WHEN MAX ( ALL + + 50 ) THEN NULL ELSE NULL END - 42 * - + 9 END <= ( NULL ) THEN - MAX ( ALL + ( 90 ) ) + + COUNT ( * ) + + 76 + - COUNT ( * ) * COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 96 * + + 34 + 49
----
3313

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT ALL SUM( + 54 ) * + 35 AS col0
----
1890

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL SUM ( + 54 ) * + 35 AS col0
----
1890

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT ALL + - 69 + - - COUNT( * ) - + - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL + - 69 + - - COUNT ( * ) - + - COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT - + COALESCE ( 95, + 17 ) + COUNT( + 79 ) + 33 * 90 + + 79 * + + 0 + - - 83 * - + COUNT( * ) AS col0
----
2793

skipif mysql # not compatible
query I rowsort label-2386
SELECT - + COALESCE ( 95, + 17 ) + COUNT ( + 79 ) + 33 * 90 + + 79 * + + 0 + - - 83 * - + COUNT ( * ) AS col0
----
2793

onlyif mysql # aggregate syntax: 
query II rowsort label-2387
SELECT + NULLIF ( - 17, + MAX( ALL - + 57 ) ), + 70 * 9 AS col1
----
-17
630

skipif mysql # not compatible
query II rowsort label-2387
SELECT + NULLIF ( - 17, + MAX ( ALL - + 57 ) ), + 70 * 9 AS col1
----
-17
630

query I rowsort
SELECT - - 66 + - 51
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2389
SELECT - COUNT( * ) + - - 43 - 1 DIV - 72 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2389
SELECT - COUNT ( * ) + - - 43 - 1 / - 72 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2390
SELECT ALL + + CAST( + 26 AS SIGNED ) + - 86 col1
----
-60

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL + + CAST ( + 26 AS INTEGER ) + - 86 col1
----
-60

query I rowsort
SELECT DISTINCT - 27 + - 50 AS col1
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2392
SELECT ALL - + 81 + + 89 + 67 DIV + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL - + 81 + + 89 + 67 / + COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT - 48 + + - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-2393
SELECT - 48 + + - COUNT ( * )
----
-49

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

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL - + 64 * + COUNT ( + ( + + 16 ) ) AS col0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2395
SELECT DISTINCT 52 DIV - SUM( ALL - 81 ) + + + 61 + COUNT( ALL + 52 )
----
62

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT 52 / - SUM ( ALL - 81 ) + + + 61 + COUNT ( ALL + 52 )
----
62

query I rowsort
SELECT - 22 * + - 43 AS col0
----
946

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2397
SELECT DISTINCT NULLIF ( - 47, - 66 ) DIV - 86 + + SUM( ALL - 85 ) + - CAST( + 42 AS SIGNED )
----
-127

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT NULLIF ( - 47, - 66 ) / - 86 + + SUM ( ALL - 85 ) + - CAST ( + 42 AS INTEGER )
----
-127

query I rowsort
SELECT + 80 + - + 33 AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2399
SELECT DISTINCT + 83 DIV + 24 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT + 83 / + 24 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ALL - 9 * - - AVG ( + - 75 ) * COUNT( * ) / 52 - CASE - + NULLIF ( + COUNT( * ), - 61 ) WHEN - + 28 THEN - 65 + 47 ELSE NULL END * + 52 * + COUNT( * ) + - + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL - 9 * - - AVG ( + - 75 ) * COUNT ( * ) / 52 - CASE - + NULLIF ( + COUNT ( * ), - 61 ) WHEN - + 28 THEN - 65 + 47 ELSE NULL END * + 52 * + COUNT ( * ) + - + 5
----
NULL

query I rowsort
SELECT ALL + 65 * - - 63 AS col0
----
4095

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT DISTINCT + COUNT( * ) * - ( + 92 ) * + - 70 + + 12 AS col2
----
6452

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT + COUNT ( * ) * - ( + 92 ) * + - 70 + + 12 AS col2
----
6452

query I rowsort
SELECT + ( 45 ) AS col2
----
45

query I rowsort
SELECT ALL 67 * - 68 - + ( - ( + + ( - + 13 ) ) ) AS col2
----
-4569

query I rowsort
SELECT + 14 * + 42
----
588

query I rowsort
SELECT CASE 27 WHEN + 52 THEN - 1 + + + 24 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT - MAX( DISTINCT + 91 ) - - + 41 + 69
----
19

skipif mysql # not compatible
query I rowsort label-2407
SELECT - MAX ( DISTINCT + 91 ) - - + 41 + 69
----
19

query I rowsort
SELECT + 90 * - 46
----
-4140

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT + ( - COALESCE ( - 16, - + 50 + 47 + + + 1 + - COUNT( * ) * - 41 + - - 75 * 9, + 89 * + 17 ) )
----
16

skipif mysql # not compatible
query I rowsort label-2409
SELECT + ( - COALESCE ( - 16, - + 50 + 47 + + + 1 + - COUNT ( * ) * - 41 + - - 75 * 9, + 89 * + 17 ) )
----
16

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

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

query I rowsort
SELECT 30 * - 97 + + - 98 AS col0
----
-3008

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2412
SELECT + 21 - - + SUM( ALL - CAST( NULL AS DECIMAL ) ) * - 6 + - 51 + + + 7 - ( 84 ) AS col2, COALESCE ( + ( - 61 ), - 36, - ( - + 0 ) * + 33 ) + - NULLIF ( + + 83, - 33 + + 37 / - 20 ) + 10
----
NULL
-134

skipif mysql # not compatible
query II rowsort label-2412
SELECT + 21 - - + SUM ( ALL - CAST ( NULL AS REAL ) ) * - 6 + - 51 + + + 7 - ( 84 ) AS col2, COALESCE ( + ( - 61 ), - 36, - ( - + 0 ) * + 33 ) + - NULLIF ( + + 83, - 33 + + 37 / - 20 ) + 10
----
NULL
-134

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

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL + - COUNT ( * ) * + - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT + + 55 * 30 AS col2
----
1650

onlyif mysql # aggregate syntax: 
query II rowsort label-2415
SELECT ALL - 59 * + 16 + 31, + COUNT( * ) * - 21 * 82 AS col1
----
-913
-1722

skipif mysql # not compatible
query II rowsort label-2415
SELECT ALL - 59 * + 16 + 31, + COUNT ( * ) * - 21 * 82 AS col1
----
-913
-1722

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT CASE - 35 WHEN + + COUNT( DISTINCT - 15 ) THEN - - 36 / - 1 + - + 35 / + 94 WHEN 8 * - - 67 + - + 94 - + SUM( ALL + 49 ) * - + 20 - - 9 * + + COUNT( ALL 32 ) THEN + COUNT( * ) / + 33 + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2416
SELECT CASE - 35 WHEN + + COUNT ( DISTINCT - 15 ) THEN - - 36 / - 1 + - + 35 / + 94 WHEN 8 * - - 67 + - + 94 - + SUM ( ALL + 49 ) * - + 20 - - 9 * + + COUNT ( ALL 32 ) THEN + COUNT ( * ) / + 33 + - COUNT ( * ) END
----
NULL

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

query I rowsort
SELECT ALL 27 + ( + + 32 ) + - 83
----
-24

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

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

query III rowsort
SELECT ALL - - 29 + + NULLIF ( - + 13, - 48 ) - - 10, 30 * 31 + + + 49 AS col1, 14 AS col0
----
26
979
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT ALL + COUNT( * ) + 50 + MIN( DISTINCT 54 ) * - MIN( 87 ) AS col1
----
-4647

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL + COUNT ( * ) + 50 + MIN ( DISTINCT 54 ) * - MIN ( 87 ) AS col1
----
-4647

query I rowsort
SELECT 94 * - 38 AS col2
----
-3572

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT DISTINCT NULLIF ( + + 94, + 21 ) + + COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT NULLIF ( + + 94, + 21 ) + + COUNT ( * ) AS col1
----
95

query I rowsort
SELECT ALL + 74 + - 39
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2426
SELECT 73 - + + COUNT( * ) DIV - 53 + + SUM( ALL + - 90 ) + + 26 * MIN( - - 43 ) AS col2
----
1101

skipif mysql # not compatible
query I rowsort label-2426
SELECT 73 - + + COUNT ( * ) / - 53 + + SUM ( ALL + - 90 ) + + 26 * MIN ( - - 43 ) AS col2
----
1101

query I rowsort
SELECT ALL - 42 * - 74 AS col2
----
3108

query I rowsort
SELECT 65 + + 4 AS col0
----
69

query II rowsort
SELECT 9 AS col1, 0 + 5
----
9
5

onlyif mysql # DIV for integer division: 
query II rowsort label-2430
SELECT DISTINCT - 32 AS col0, 62 DIV + NULLIF ( - 96, + 14 + - - 76 * + 87 ) col2
----
-32
0

skipif mysql # not compatible
query II rowsort label-2430
SELECT DISTINCT - 32 AS col0, 62 / + NULLIF ( - 96, + 14 + - - 76 * + 87 ) col2
----
-32
0

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

skipif mysql # not compatible
query I rowsort label-2431
SELECT ( COUNT ( * ) ) * - - ( + 29 ) + - 52 AS col2
----
-23

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2433
SELECT COUNT( * ) DIV + ( - + 54 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2433
SELECT COUNT ( * ) / + ( - + 54 ) col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2434
SELECT ALL - MIN( ALL + + 75 ) AS col0, + 64 AS col1
----
-75
64

skipif mysql # not compatible
query II rowsort label-2434
SELECT ALL - MIN ( ALL + + 75 ) AS col0, + 64 AS col1
----
-75
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT 7 * + 96 - - COUNT( * ) - - 84 * - COUNT( * ) AS col0
----
589

skipif mysql # not compatible
query I rowsort label-2435
SELECT 7 * + 96 - - COUNT ( * ) - - 84 * - COUNT ( * ) AS col0
----
589

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2436
SELECT DISTINCT + 16 * + 1 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2436
SELECT DISTINCT + 16 * + 1 / + CAST ( NULL AS INTEGER )
----
NULL

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2439
SELECT COUNT ( * ) / + + 67
----
0

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

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

query II rowsort
SELECT ALL - 89, 83 AS col2
----
-89
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT ALL - CASE - 16 WHEN 46 * - - 73 * 2 - - 8 + - COUNT( * ) + + 12 * + ( 72 ) THEN - COALESCE ( 68, + 64 ) * + 97 / - 88 * 66 + + + 79 + - COUNT( * ) / 62 / - 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL - CASE - 16 WHEN 46 * - - 73 * 2 - - 8 + - COUNT ( * ) + + 12 * + ( 72 ) THEN - COALESCE ( 68, + 64 ) * + 97 / - 88 * 66 + + + 79 + - COUNT ( * ) / 62 / - 75 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2443
SELECT 60 DIV 60 - + + COUNT( * ) * 93
----
-92

skipif mysql # not compatible
query I rowsort label-2443
SELECT 60 / 60 - + + COUNT ( * ) * 93
----
-92

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

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

query I rowsort
SELECT ALL + 21 + 93 AS col0
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2446
SELECT - CAST( 99 AS SIGNED ) + - COALESCE ( + 53, - + 48, + CAST( + 79 AS SIGNED ) )
----
-152

skipif mysql # not compatible
query I rowsort label-2446
SELECT - CAST ( 99 AS INTEGER ) + - COALESCE ( + 53, - + 48, + CAST ( + 79 AS INTEGER ) )
----
-152

query I rowsort
SELECT 9 * - 29
----
-261

query II rowsort
SELECT + 18 AS col0, 69 col0
----
18
69

query I rowsort
SELECT 39 + - 88
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2450
SELECT MIN( CAST( 26 AS SIGNED ) ) DIV 74 + + COUNT( * ) * + ( - 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-2450
SELECT MIN ( CAST ( 26 AS INTEGER ) ) / 74 + + COUNT ( * ) * + ( - 81 ) AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2451
SELECT 98 + + 55 + CAST( - 6 AS SIGNED ) + + + COUNT( * ) * + - 48 * + 24
----
-1005

skipif mysql # not compatible
query I rowsort label-2451
SELECT 98 + + 55 + CAST ( - 6 AS INTEGER ) + + + COUNT ( * ) * + - 48 * + 24
----
-1005

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT CASE WHEN NOT + ( - - 39 ) IS NULL THEN 28 + + - 30 + + 68 + + 62 * - NULLIF ( COUNT( * ), - + COUNT( * ) * - 47 - 44 + + 93 + COUNT( * ) + 38 / - - 60 ) END AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2452
SELECT CASE WHEN NOT + ( - - 39 ) IS NULL THEN 28 + + - 30 + + 68 + + 62 * - NULLIF ( COUNT ( * ), - + COUNT ( * ) * - 47 - 44 + + 93 + COUNT ( * ) + 38 / - - 60 ) END AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT ALL - 38 + + - 4 - - - NULLIF ( - - 88, + COALESCE ( + 85, - 19 * - NULLIF ( COUNT( * ), + + 45 / 47 + - 47 ) / + 60, - - 95, - - 0 ) ) + 41 + + 9 * + 72 * + - 93 + + 78 * - + 3 - + 33 col2
----
-60620

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL - 38 + + - 4 - - - NULLIF ( - - 88, + COALESCE ( + 85, - 19 * - NULLIF ( COUNT ( * ), + + 45 / 47 + - 47 ) / + 60, - - 95, - - 0 ) ) + 41 + + 9 * + 72 * + - 93 + + 78 * - + 3 - + 33 col2
----
-60620

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2454
SELECT ALL 30 AS col0, CAST( - - CAST( 23 AS SIGNED ) AS SIGNED ) AS col0, + + 19 AS col2
----
30
23
19

skipif mysql # not compatible
query III rowsort label-2454
SELECT ALL 30 AS col0, CAST ( - - CAST ( 23 AS INTEGER ) AS INTEGER ) AS col0, + + 19 AS col2
----
30
23
19

onlyif mysql # DIV for integer division: 
query I rowsort label-2455
SELECT ALL 0 + - 80 DIV 74 * 36
----
-36

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL 0 + - 80 / 74 * 36
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2456
SELECT ALL CAST( NULL AS SIGNED ) + + ( - 15 ) + SUM( DISTINCT - 27 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL CAST ( NULL AS INTEGER ) + + ( - 15 ) + SUM ( DISTINCT - 27 ) AS col0
----
NULL

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

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

query I rowsort
SELECT 57 * - 48 * + ( + 70 )
----
-191520

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT COUNT( * ) - SUM( + 86 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-2459
SELECT COUNT ( * ) - SUM ( + 86 ) AS col0
----
-85

query I rowsort
SELECT DISTINCT + 11 * + 93
----
1023

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL - MIN( ALL - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL - MIN ( ALL - 38 )
----
38

query I rowsort
SELECT DISTINCT 45 * + 57 AS col0
----
2565

query I rowsort
SELECT 4 * + 47
----
188

onlyif mysql # aggregate syntax: 
query II rowsort label-2464
SELECT 81 * - - 85 AS col0, COUNT( - 9 ) + + NULLIF ( 92, - 25 * 90 + 12 * 64 ) * - + 80 col0
----
6885
-7359

skipif mysql # not compatible
query II rowsort label-2464
SELECT 81 * - - 85 AS col0, COUNT ( - 9 ) + + NULLIF ( 92, - 25 * 90 + 12 * 64 ) * - + 80 col0
----
6885
-7359

query I rowsort
SELECT 94 * + 50 * 49 * COALESCE ( 60, + + 53 ) AS col1
----
13818000

onlyif mysql # DIV for integer division: 
query I rowsort label-2466
SELECT ALL - 11 DIV + - 20
----
0

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL - 11 / + - 20
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT 75 * 93 + COUNT( * ) AS col1
----
6976

skipif mysql # not compatible
query I rowsort label-2467
SELECT 75 * 93 + COUNT ( * ) AS col1
----
6976

onlyif mysql # DIV for integer division: 
query I rowsort label-2468
SELECT 71 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-2468
SELECT 71 / + 73
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2469
SELECT SUM( DISTINCT + 14 ) AS col0, 44 + - + 29 * + + 24 AS col0
----
14
-652

skipif mysql # not compatible
query II rowsort label-2469
SELECT SUM ( DISTINCT + 14 ) AS col0, 44 + - + 29 * + + 24 AS col0
----
14
-652

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT 16 * 99 * 26 * - COUNT( * ) AS col1
----
-41184

skipif mysql # not compatible
query I rowsort label-2471
SELECT 16 * 99 * 26 * - COUNT ( * ) AS col1
----
-41184

onlyif mysql # aggregate syntax: 
query II rowsort label-2472
SELECT DISTINCT - MAX( DISTINCT + - 67 ) AS col0, - COUNT( * )
----
67
-1

skipif mysql # not compatible
query II rowsort label-2472
SELECT DISTINCT - MAX ( DISTINCT + - 67 ) AS col0, - COUNT ( * )
----
67
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2474
SELECT DISTINCT 26 DIV CAST( + - 75 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT 26 / CAST ( + - 75 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT DISTINCT - COUNT( DISTINCT 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT - COUNT ( DISTINCT 57 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT + NULLIF ( + SUM( - 6 ), 17 + 48 + + 84 * - - 64 )
----
-6

skipif mysql # not compatible
query I rowsort label-2476
SELECT + NULLIF ( + SUM ( - 6 ), 17 + 48 + + 84 * - - 64 )
----
-6

query II rowsort
SELECT 41 + 55 AS col2, - 83
----
96
-83

query I rowsort
SELECT 44 * - 63 * + + 26 + - 12 AS col2
----
-72084

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

query I rowsort
SELECT DISTINCT - 0 + 93
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2481
SELECT 95 * - 72 - 92 DIV 34 col0
----
-6842

skipif mysql # not compatible
query I rowsort label-2481
SELECT 95 * - 72 - 92 / 34 col0
----
-6842

query I rowsort
SELECT + - 89 * + 47 * + 49 * - + 48
----
9838416

onlyif mysql # aggregate syntax: 
query II rowsort label-2483
SELECT + - SUM( DISTINCT - + 25 ) AS col2, - ( - 75 )
----
25
75

skipif mysql # not compatible
query II rowsort label-2483
SELECT + - SUM ( DISTINCT - + 25 ) AS col2, - ( - 75 )
----
25
75

query I rowsort
SELECT ALL + + 87 + 10 AS col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2485
SELECT DISTINCT - 51 * 58 + - COALESCE ( - - 96, 92 + - + CAST( NULL AS SIGNED ) ) AS col0
----
-3054

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT - 51 * 58 + - COALESCE ( - - 96, 92 + - + CAST ( NULL AS INTEGER ) ) AS col0
----
-3054

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

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT - COUNT ( * ) + - 59 AS col0
----
-60

query I rowsort
SELECT ALL 45 * + ( - 98 ) * + 62 AS col2
----
-273420

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

query II rowsort
SELECT DISTINCT - - 58 - + 6 AS col2, - 12
----
52
-12

query I rowsort
SELECT - 72 * + 42
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT + COALESCE ( COUNT( * ), + 16 ) * - 19 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-2491
SELECT + COALESCE ( COUNT ( * ), + 16 ) * - 19 AS col2
----
-19

query I rowsort
SELECT ALL - NULLIF ( - 97, + - 71 / + 41 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT - 85 + 6 + + COUNT( * ) * - + 85 * - COALESCE ( 9, NULLIF ( + 59, - + 45 ) + + 99 * + 2 )
----
686

skipif mysql # not compatible
query I rowsort label-2493
SELECT - 85 + 6 + + COUNT ( * ) * - + 85 * - COALESCE ( 9, NULLIF ( + 59, - + 45 ) + + 99 * + 2 )
----
686

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT + + SUM( ALL - 52 ) + + 35 * - 70
----
-2502

skipif mysql # not compatible
query I rowsort label-2494
SELECT + + SUM ( ALL - 52 ) + + 35 * - 70
----
-2502

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT DISTINCT + + MAX( - - 51 ) * + + 88 + 50 AS col2
----
4538

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT + + MAX ( - - 51 ) * + + 88 + 50 AS col2
----
4538

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

query I rowsort
SELECT DISTINCT 74 * + 74 * 23
----
125948

onlyif mysql # aggregate syntax: 
query II rowsort label-2499
SELECT 39 AS col2, COUNT( * ) * - - 85
----
39
85

skipif mysql # not compatible
query II rowsort label-2499
SELECT 39 AS col2, COUNT ( * ) * - - 85
----
39
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT - 92 * 86 * + + CASE 71 WHEN + + ( 45 ) THEN NULL WHEN - - 29 + - 40 THEN NULL ELSE + COUNT( * ) END * + NULLIF ( 73, - + 49 + + + 22 ) + ( 13 ) * - ( 33 ) + - 55
----
-578060

skipif mysql # not compatible
query I rowsort label-2500
SELECT - 92 * 86 * + + CASE 71 WHEN + + ( 45 ) THEN NULL WHEN - - 29 + - 40 THEN NULL ELSE + COUNT ( * ) END * + NULLIF ( 73, - + 49 + + + 22 ) + ( 13 ) * - ( 33 ) + - 55
----
-578060

query I rowsort
SELECT - 9 - 76 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT + ( 40 ) - + 16 * + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-2502
SELECT + ( 40 ) - + 16 * + COUNT ( * )
----
24

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

query I rowsort
SELECT + 50 * - 83 col2
----
-4150

query I rowsort
SELECT ALL 56 * 10 AS col1
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT + 62 + COUNT( * ) * 85 AS col2
----
147

skipif mysql # not compatible
query I rowsort label-2506
SELECT + 62 + COUNT ( * ) * 85 AS col2
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-2507
SELECT + ( + ( + 84 ) ), SUM( ALL + 79 ) AS col2
----
84
79

skipif mysql # not compatible
query II rowsort label-2507
SELECT + ( + ( + 84 ) ), SUM ( ALL + 79 ) AS col2
----
84
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT ALL 73 * COUNT( * ) * - - 70 * + 98 col0
----
500780

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL 73 * COUNT ( * ) * - - 70 * + 98 col0
----
500780

query I rowsort
SELECT ( - 37 ) col0
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-2510
SELECT ALL + 84 * + COUNT( * ) + - 76 AS col0, 52
----
8
52

skipif mysql # not compatible
query II rowsort label-2510
SELECT ALL + 84 * + COUNT ( * ) + - 76 AS col0, 52
----
8
52

query II rowsort
SELECT DISTINCT + 83, + 12 + - 0 * - 19 - - + 64 + - 80 AS col0
----
83
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2512
SELECT + 14 DIV + 25
----
0

skipif mysql # not compatible
query I rowsort label-2512
SELECT + 14 / + 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT ALL - 23 * + COUNT( * ) + 11 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL - 23 * + COUNT ( * ) + 11 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-2514
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + - - 51 AS col0, SUM( + 32 ) * + 82 AS col0
----
52
2624

skipif mysql # not compatible
query II rowsort label-2514
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + - - 51 AS col0, SUM ( + 32 ) * + 82 AS col0
----
52
2624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2515
SELECT ALL - MIN( ALL + CAST( 50 AS SIGNED ) ) DIV - + 73 * - MAX( + 78 )
----
0

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL - MIN ( ALL + CAST ( 50 AS INTEGER ) ) / - + 73 * - MAX ( + 78 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2516
SELECT ALL - 84 * - COUNT( * ) * 14 + + 99 + + 94 * ( 11 ) * - 86 AS col1, - 67
----
-87649
-67

skipif mysql # not compatible
query II rowsort label-2516
SELECT ALL - 84 * - COUNT ( * ) * 14 + + 99 + + 94 * ( 11 ) * - 86 AS col1, - 67
----
-87649
-67

query II rowsort
SELECT ALL - 7 * + 82 + + 21 AS col2, 10 AS col1
----
-553
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2518
SELECT + 78 DIV - + COALESCE ( 47, - 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-2518
SELECT + 78 / - + COALESCE ( 47, - 0 )
----
-1

query I rowsort
SELECT - 84 + 78 AS col1
----
-6

query I rowsort
SELECT + 96 * - 70
----
-6720

onlyif mysql # aggregate syntax: 
query II rowsort label-2521
SELECT NULLIF ( 96, - + COUNT( * ) ), ( 99 ) * + 66 * + 61 - + ( - - 12 ) + 39 * + - 57 AS col1
----
96
396339

skipif mysql # not compatible
query II rowsort label-2521
SELECT NULLIF ( 96, - + COUNT ( * ) ), ( 99 ) * + 66 * + 61 - + ( - - 12 ) + 39 * + - 57 AS col1
----
96
396339

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2522
SELECT ALL COUNT( * ) DIV + 96 * COUNT( * ) AS col2, + 15
----
0
15

skipif mysql # not compatible
query II rowsort label-2522
SELECT ALL COUNT ( * ) / + 96 * COUNT ( * ) AS col2, + 15
----
0
15

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

skipif mysql # not compatible
query I rowsort label-2523
SELECT - COUNT ( * ) / + - 72 * + 1 + - - COUNT ( * ) * 47
----
47

query I rowsort
SELECT ALL + - 60 * 35
----
-2100

query I rowsort
SELECT + + COALESCE ( - 57, - + 96 ) + - + 0 + - 85
----
-142

query I rowsort
SELECT ALL + + 35 * - + 38
----
-1330

onlyif mysql # DIV for integer division: 
query I rowsort label-2527
SELECT ALL 32 DIV 2
----
16

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL 32 / 2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT ALL 47 * - COUNT( * ) * + - 32 + COUNT( * )
----
1505

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL 47 * - COUNT ( * ) * + - 32 + COUNT ( * )
----
1505

query I rowsort
SELECT ALL - + 22 * + - 15
----
330

query I rowsort
SELECT + NULLIF ( + + 14, + + 0 * + 22 ) AS col1
----
14

query II rowsort
SELECT 53 AS col2, + 3 AS col2
----
53
3

query I rowsort
SELECT - 17 + - + 65 + + - 71
----
-153

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

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

query I rowsort
SELECT - + 81 + - 5
----
-86

query I rowsort
SELECT - 79 + + 7
----
-72

query I rowsort
SELECT ALL - - 80 * - ( - 79 ) + + 75
----
6395

query I rowsort
SELECT - - 40 + - 95
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2538
SELECT DISTINCT - - COUNT( * ) DIV - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2538
SELECT DISTINCT - - COUNT ( * ) / - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT - 22 + - 27
----
-49

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2541
SELECT - COUNT( ALL + + 66 ) DIV + COUNT( * ) + COUNT( * ) + CAST( - + 82 AS SIGNED ) * 6 * - - 55
----
-27060

skipif mysql # not compatible
query I rowsort label-2541
SELECT - COUNT ( ALL + + 66 ) / + COUNT ( * ) + COUNT ( * ) + CAST ( - + 82 AS INTEGER ) * 6 * - - 55
----
-27060

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT - 98 + - 12 + - COALESCE ( + COALESCE ( COUNT( * ), - COUNT( * ), + + 96 ), - + 63 ) AS col2
----
-111

skipif mysql # not compatible
query I rowsort label-2542
SELECT - 98 + - 12 + - COALESCE ( + COALESCE ( COUNT ( * ), - COUNT ( * ), + + 96 ), - + 63 ) AS col2
----
-111

query I rowsort
SELECT - COALESCE ( + 66, + + 1, + + 13 ) + - - 50
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT - 86 + - NULLIF ( + + 32, 16 * COALESCE ( + - NULLIF ( - 54, - - MIN( 66 ) / + 73 + COUNT( * ) / + 18 + - COALESCE ( 17, + + 38, - - 15 ) ), 13 + + 96 * - 30, - 4 ) + - 69 + - 9 * 12 )
----
-118

skipif mysql # not compatible
query I rowsort label-2544
SELECT - 86 + - NULLIF ( + + 32, 16 * COALESCE ( + - NULLIF ( - 54, - - MIN ( 66 ) / + 73 + COUNT ( * ) / + 18 + - COALESCE ( 17, + + 38, - - 15 ) ), 13 + + 96 * - 30, - 4 ) + - 69 + - 9 * 12 )
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT + 92 - + 46 + - 25 - - - COUNT( * ) + + 87
----
107

skipif mysql # not compatible
query I rowsort label-2545
SELECT + 92 - + 46 + - 25 - - - COUNT ( * ) + + 87
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2546
SELECT - ( - CASE 39 WHEN - 44 * 27 THEN NULL WHEN - COUNT( * ) THEN + 26 WHEN + - ( - ( - NULLIF ( ( - + COALESCE ( + 12, - + 57 ) ), + + 90 * - 79 * - ( 82 ) + - 1 ) ) ) * + + COUNT( ALL + + 96 ) / ( + + 56 ) + + 58 * - 99 * - 14 * 28 + - + ( - 53 ) + - CAST( 68 AS SIGNED ) / ( + 41 ) THEN NULL ELSE - ( 62 ) + 40 END ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-2546
SELECT - ( - CASE 39 WHEN - 44 * 27 THEN NULL WHEN - COUNT ( * ) THEN + 26 WHEN + - ( - ( - NULLIF ( ( - + COALESCE ( + 12, - + 57 ) ), + + 90 * - 79 * - ( 82 ) + - 1 ) ) ) * + + COUNT ( ALL + + 96 ) / ( + + 56 ) + + 58 * - 99 * - 14 * 28 + - + ( - 53 ) + - CAST ( 68 AS INTEGER ) / ( + 41 ) THEN NULL ELSE - ( 62 ) + 40 END ) AS col0
----
-22

query II rowsort
SELECT DISTINCT ( CASE + AVG ( + + 29 ) WHEN 61 THEN NULL WHEN 53 THEN NULL ELSE 36 END ) AS col0, - 32 AS col1
----
36
-32

query I rowsort
SELECT - NULLIF ( 36, + - 12 ) AS col1
----
-36

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

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

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

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL - COUNT ( * ) / + 24 + + 52
----
52

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

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

query I rowsort
SELECT - 72 * 73 AS col1
----
-5256

query I rowsort
SELECT + 78 * + 51 * 55 AS col2
----
218790

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT DISTINCT - 0 + + - COALESCE ( + 6, + 57 ) * + COUNT( * ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT - 0 + + - COALESCE ( + 6, + 57 ) * + COUNT ( * ) AS col2
----
-6

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2556
SELECT 37 * + 36 * 37 + + - 54 - ( - COUNT( * ) ) DIV 67
----
49230

skipif mysql # not compatible
query I rowsort label-2556
SELECT 37 * + 36 * 37 + + - 54 - ( - COUNT ( * ) ) / 67
----
49230

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

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL 4 - + CAST ( NULL AS INTEGER ) + - 34 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2558
SELECT CAST( NULL AS DECIMAL ) + - 50 / - + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2558
SELECT CAST ( NULL AS REAL ) + - 50 / - + 95
----
NULL

query I rowsort
SELECT 17 * 59 AS col0
----
1003

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT - 24 DIV NULLIF ( - 12, 10 * - NULLIF ( + 16, COALESCE ( - + 2, 14 * + 73 + - + AVG ( 70 ) ) ) * - - 19 + + 78 DIV 48 * + 66 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-2562
SELECT - 24 / NULLIF ( - 12, 10 * - NULLIF ( + 16, COALESCE ( - + 2, 14 * + 73 + - + AVG ( 70 ) ) ) * - - 19 + + 78 / 48 * + 66 ) col0
----
2

query I rowsort
SELECT - 63 * + COALESCE ( + 73, - NULLIF ( + + 90, + 12 ) )
----
-4599

query I rowsort
SELECT DISTINCT + 24 * - - 44 + - + 10
----
1046

query II rowsort
SELECT ALL - 66 * 5, + 40 AS col1
----
-330
40

query II rowsort
SELECT DISTINCT + 7 * + + 67, - 62 AS col1
----
469
-62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT ALL CASE + + 20 WHEN - 1 * - + 1 THEN + + 13 WHEN AVG ( ALL - 23 ) + ( 27 ) + - 57 / + COUNT( * ) THEN - 40 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL CASE + + 20 WHEN - 1 * - + 1 THEN + + 13 WHEN AVG ( ALL - 23 ) + ( 27 ) + - 57 / + COUNT ( * ) THEN - 40 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2569
SELECT COUNT( * ) - - + 72 col0, + 30 AS col1
----
73
30

skipif mysql # not compatible
query II rowsort label-2569
SELECT COUNT ( * ) - - + 72 col0, + 30 AS col1
----
73
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT DISTINCT 45 * 32 DIV + 39
----
36

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT 45 * 32 / + 39
----
36

query I rowsort
SELECT ALL + 79 + + 32 AS col0
----
111

query I rowsort
SELECT 19 * + 65
----
1235

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2574
SELECT ALL + 89 DIV + 83
----
1

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL + 89 / + 83
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT ALL COUNT( * ) + - COUNT( * ) + 25 col1
----
25

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL COUNT ( * ) + - COUNT ( * ) + 25 col1
----
25

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

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

query II rowsort
SELECT DISTINCT + ( - 1 ) * 95 + - 26 * + 68 AS col0, 18 * 74 + - - 42
----
-1863
1374

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2578
SELECT DISTINCT + CAST( - NULLIF ( CASE 92 WHEN + 4 THEN - + ( 25 ) WHEN + + 92 + + 10 * - 51 / + COUNT( * ) THEN NULL ELSE 44 * - 50 + + 12 END, - COUNT( ALL - 8 ) ) AS SIGNED ) + + CASE + COUNT( * ) WHEN - 71 / 21 * - 64 THEN 83 * + + 59 - 55 WHEN + - 53 - + 40 * + 28 + 29 * 49 + 50 THEN + COUNT( * ) ELSE NULL END + - NULLIF ( - CAST( NULL AS SIGNED ), COUNT( * ) + - 32 * - CASE 56 + + CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN + MAX( - 8 ) - 25 * 15 END ) * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT + CAST ( - NULLIF ( CASE 92 WHEN + 4 THEN - + ( 25 ) WHEN + + 92 + + 10 * - 51 / + COUNT ( * ) THEN NULL ELSE 44 * - 50 + + 12 END, - COUNT ( ALL - 8 ) ) AS INTEGER ) + + CASE + COUNT ( * ) WHEN - 71 / 21 * - 64 THEN 83 * + + 59 - 55 WHEN + - 53 - + 40 * + 28 + 29 * 49 + 50 THEN + COUNT ( * ) ELSE NULL END + - NULLIF ( - CAST ( NULL AS INTEGER ), COUNT ( * ) + - 32 * - CASE 56 + + CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN + MAX ( - 8 ) - 25 * 15 END ) * 36
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2579
SELECT ALL + ( 43 ) DIV + - COUNT( - 15 ) * + COUNT( * ) + - COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL + ( 43 ) / + - COUNT ( - 15 ) * + COUNT ( * ) + - COUNT ( * ) AS col2
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-2580
SELECT 35 DIV 18
----
1

skipif mysql # not compatible
query I rowsort label-2580
SELECT 35 / 18
----
1

query I rowsort
SELECT 6 * - 93
----
-558

onlyif mysql # aggregate syntax: 
query II rowsort label-2582
SELECT - 28, MAX( DISTINCT + 2 ) * + 96 col2
----
-28
192

skipif mysql # not compatible
query II rowsort label-2582
SELECT - 28, MAX ( DISTINCT + 2 ) * + 96 col2
----
-28
192

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2584
SELECT 15 - - 45 DIV 90 * 81 * + - MIN( DISTINCT 82 ) + - - 48 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2584
SELECT 15 - - 45 / 90 * 81 * + - MIN ( DISTINCT 82 ) + - - 48 AS col2
----
63

query I rowsort
SELECT 18 * - + 28
----
-504

query I rowsort
SELECT DISTINCT - 99 - - + 23
----
-76

query I rowsort
SELECT ALL - 81 - - 50 + - 29 + - + 3
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-2588
SELECT DISTINCT + 27 DIV - 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT + 27 / - 45 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT - 33 * + SUM( DISTINCT + 62 ) + - 42
----
-2088

skipif mysql # not compatible
query I rowsort label-2589
SELECT - 33 * + SUM ( DISTINCT + 62 ) + - 42
----
-2088

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2590
SELECT 8 AS col0, + COUNT( * ) + 15 DIV 58 col2
----
8
1

skipif mysql # not compatible
query II rowsort label-2590
SELECT 8 AS col0, + COUNT ( * ) + 15 / 58 col2
----
8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT - 80 * - 43 - - COUNT( * ) + + 98 * + 52
----
8537

skipif mysql # not compatible
query I rowsort label-2591
SELECT - 80 * - 43 - - COUNT ( * ) + + 98 * + 52
----
8537

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2592
SELECT + MIN( - 52 ) DIV + 55 + 33 - + + 72 + + 19
----
-20

skipif mysql # not compatible
query I rowsort label-2592
SELECT + MIN ( - 52 ) / + 55 + 33 - + + 72 + + 19
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-2593
SELECT + - COUNT( * ), 38 + NULLIF ( 69, + - 91 ) AS col1
----
-1
107

skipif mysql # not compatible
query II rowsort label-2593
SELECT + - COUNT ( * ), 38 + NULLIF ( 69, + - 91 ) AS col1
----
-1
107

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

skipif mysql # not compatible
query I rowsort label-2594
SELECT - 52 + - - 49 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 95 * - + 75
----
-7125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2596
SELECT DISTINCT + 67 * - 15 + + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) + + 15 - + + CASE + COUNT( * ) WHEN + 60 THEN NULL WHEN 77 + - - 67 THEN 13 END / - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT + 67 * - 15 + + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) + + 15 - + + CASE + COUNT ( * ) WHEN + 60 THEN NULL WHEN 77 + - - 67 THEN 13 END / - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT + COUNT( * ) * - - 0 + - 24
----
-24

skipif mysql # not compatible
query I rowsort label-2597
SELECT + COUNT ( * ) * - - 0 + - 24
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2598
SELECT ALL - CAST( - - 44 AS SIGNED )
----
-44

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL - CAST ( - - 44 AS INTEGER )
----
-44

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

skipif mysql # not compatible
query I rowsort label-2599
SELECT DISTINCT - 76 + COUNT ( * ) AS col2
----
-75

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2601
SELECT ( + 32 ) + ( + - 82 ), ( + - 0 ) * + 42 DIV 24 * + 60 AS col0
----
-50
0

skipif mysql # not compatible
query II rowsort label-2601
SELECT ( + 32 ) + ( + - 82 ), ( + - 0 ) * + 42 / 24 * + 60 AS col0
----
-50
0

query II rowsort
SELECT - 49 AS col0, 23
----
-49
23

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2604
SELECT ALL 68 + + 38 - - - 52 * + 34 * + - 16 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL 68 + + 38 - - - 52 * + 34 * + - 16 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 33 * - 89 AS col0
----
-2937

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT 9 + - - MIN( DISTINCT - 86 ) + + 78 col0
----
1

skipif mysql # not compatible
query I rowsort label-2606
SELECT 9 + - - MIN ( DISTINCT - 86 ) + + 78 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2607
SELECT ALL - COUNT( * ) + 48 + 88 * + 13 * - CAST( NULL AS SIGNED ) + - + MIN( ALL 73 ) + + 39 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL - COUNT ( * ) + 48 + 88 * + 13 * - CAST ( NULL AS INTEGER ) + - + MIN ( ALL 73 ) + + 39 col1
----
NULL

query I rowsort
SELECT DISTINCT 62 * - 46 * 75 AS col0
----
-213900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2609
SELECT ALL + 85 + - - CAST( 85 AS SIGNED )
----
170

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL + 85 + - - CAST ( 85 AS INTEGER )
----
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2610
SELECT ( CASE 61 WHEN - 18 THEN + 33 END ) + + 20 * - 53 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2610
SELECT ( CASE 61 WHEN - 18 THEN + 33 END ) + + 20 * - 53 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT - NULLIF ( + 76, - - COUNT( * ) ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-2611
SELECT - NULLIF ( + 76, - - COUNT ( * ) ) AS col1
----
-76

query I rowsort
SELECT 44 + 71
----
115

query I rowsort
SELECT ALL ( 48 ) + ( 78 ) + - + 16 AS col2
----
110

query I rowsort
SELECT ( 4 ) + + + 58 AS col0
----
62

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

skipif mysql # not compatible
query I rowsort label-2615
SELECT + 73 + + + 61 * - + COUNT ( * ) AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-2616
SELECT - 79 + + 43 + - 14 DIV + + 6 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-2616
SELECT - 79 + + 43 + - 14 / + + 6 AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2617
SELECT ALL COUNT( - NULLIF ( - 89, CAST( - 37 AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL COUNT ( - NULLIF ( - 89, CAST ( - 37 AS INTEGER ) ) )
----
1

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

skipif mysql # not compatible
query I rowsort label-2618
SELECT - AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) * + 60
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2619
SELECT DISTINCT + 41 DIV + 63 * 48
----
0

skipif mysql # not compatible
query I rowsort label-2619
SELECT DISTINCT + 41 / + 63 * 48
----
0

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

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

query I rowsort
SELECT ALL + 23 * + - 15
----
-345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2622
SELECT - 42 + + NULLIF ( 45, + CASE + ( 76 ) WHEN CAST( + 1 AS SIGNED ) + - 90 THEN NULL WHEN + 12 * - COUNT( * ) * 98 THEN NULL ELSE - + COUNT( - 70 ) - 66 END * 67 + 6 * 17 + - 70 )
----
3

skipif mysql # not compatible
query I rowsort label-2622
SELECT - 42 + + NULLIF ( 45, + CASE + ( 76 ) WHEN CAST ( + 1 AS INTEGER ) + - 90 THEN NULL WHEN + 12 * - COUNT ( * ) * 98 THEN NULL ELSE - + COUNT ( - 70 ) - 66 END * 67 + 6 * 17 + - 70 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT + + COUNT( * ) * - 17 + - - 77 + - 35
----
25

skipif mysql # not compatible
query I rowsort label-2623
SELECT + + COUNT ( * ) * - 17 + - - 77 + - 35
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-2624
SELECT + 54 AS col0, - COUNT( * ) * SUM( ALL - 9 ) + + + 25
----
54
34

skipif mysql # not compatible
query II rowsort label-2624
SELECT + 54 AS col0, - COUNT ( * ) * SUM ( ALL - 9 ) + + + 25
----
54
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2625
SELECT CAST( NULL AS SIGNED ), 69 + CAST( - - 12 AS SIGNED ) + - - 64 * + + CAST( - 29 AS SIGNED ) * + + 17 * - 85 AS col0
----
NULL
2682001

skipif mysql # not compatible
query II rowsort label-2625
SELECT CAST ( NULL AS INTEGER ), 69 + CAST ( - - 12 AS INTEGER ) + - - 64 * + + CAST ( - 29 AS INTEGER ) * + + 17 * - 85 AS col0
----
NULL
2682001

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2627
SELECT - - 18 DIV MIN( ALL - 11 )
----
-1

skipif mysql # not compatible
query I rowsort label-2627
SELECT - - 18 / MIN ( ALL - 11 )
----
-1

query I rowsort
SELECT DISTINCT 23 * 11 + - 91
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT ALL + COALESCE ( + + 53, + - SUM( - 32 ) )
----
53

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL + COALESCE ( + + 53, + - SUM ( - 32 ) )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2630
SELECT ALL + - 28, - 37 * - - 64 + - 30 + + - ( - - 15 ) * ( + - 22 ) DIV + COUNT( * ) - - 76 AS col2
----
-28
-1992

skipif mysql # not compatible
query II rowsort label-2630
SELECT ALL + - 28, - 37 * - - 64 + - 30 + + - ( - - 15 ) * ( + - 22 ) / + COUNT ( * ) - - 76 AS col2
----
-28
-1992

query II rowsort
SELECT - 28, - 42 + 41 AS col1
----
-28
-1

query III rowsort
SELECT + + 62 col0, 51 AS col0, 85
----
62
51
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2633
SELECT + 95 * + + CAST( NULL AS SIGNED ) / + 3 * + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2633
SELECT + 95 * + + CAST ( NULL AS INTEGER ) / + 3 * + 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2634
SELECT + + 8 AS col2, 56 + - 77 + + ( COUNT( * ) ) - - 59 + COUNT( * ) * - 50 - - COUNT( * ) AS col2
----
8
-10

skipif mysql # not compatible
query II rowsort label-2634
SELECT + + 8 AS col2, 56 + - 77 + + ( COUNT ( * ) ) - - 59 + COUNT ( * ) * - 50 - - COUNT ( * ) AS col2
----
8
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2635
SELECT DISTINCT + CASE - CAST( COUNT( * ) AS SIGNED ) WHEN 55 THEN - 97 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT + CASE - CAST ( COUNT ( * ) AS INTEGER ) WHEN 55 THEN - 97 END AS col2
----
NULL

query I rowsort
SELECT - 52 - - - 67
----
-119

query I rowsort
SELECT ALL ( - + 70 ) * - - 43
----
-3010

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT DISTINCT - 41 * NULLIF ( - + COUNT( * ), + 66 ) + - + 1 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT - 41 * NULLIF ( - + COUNT ( * ), + 66 ) + - + 1 AS col1
----
40

query I rowsort
SELECT ALL - 89 * - 80 * + + 38
----
270560

onlyif mysql # DIV for integer division: 
query II rowsort label-2640
SELECT + 33 * 69 DIV - 5 AS col1, 26
----
-455
26

skipif mysql # not compatible
query II rowsort label-2640
SELECT + 33 * 69 / - 5 AS col1, 26
----
-455
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2641
SELECT ALL NULLIF ( + 58, - 90 / - 82 / - + 44 + CASE + - 63 WHEN - 36 * - MAX( DISTINCT + COALESCE ( + CAST( NULL AS SIGNED ), + ( 68 ) / 86 ) ) THEN + + 11 ELSE NULL END ) - - 28
----
86

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL NULLIF ( + 58, - 90 / - 82 / - + 44 + CASE + - 63 WHEN - 36 * - MAX ( DISTINCT + COALESCE ( + CAST ( NULL AS INTEGER ), + ( 68 ) / 86 ) ) THEN + + 11 ELSE NULL END ) - - 28
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2642
SELECT DISTINCT 9 DIV + 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT 9 / + 19 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT + 38 * + CASE - 21 WHEN - 38 THEN + MIN( DISTINCT - 47 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2643
SELECT + 38 * + CASE - 21 WHEN - 38 THEN + MIN ( DISTINCT - 47 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2644
SELECT ALL 43 DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL 43 / 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT DISTINCT ( + + COUNT( * ) ) - + 25 * - - 6
----
-149

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT ( + + COUNT ( * ) ) - + 25 * - - 6
----
-149

query I rowsort
SELECT ALL 37 * - + 16 AS col2
----
-592

query I rowsort
SELECT + NULLIF ( + + 92, + 91 ) * - 49
----
-4508

onlyif mysql # DIV for integer division: 
query I rowsort label-2648
SELECT + 2 DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-2648
SELECT + 2 / + 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT ALL COUNT( * ) * - 67 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL COUNT ( * ) * - 67 AS col2
----
-67

query II rowsort
SELECT - ( - 19 ) AS col2, + ( + - 58 ) AS col0
----
19
-58

query I rowsort
SELECT DISTINCT NULLIF ( + - ( - 47 ), + 33 )
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2652
SELECT + MAX( + 72 ) + - 74 DIV ( COUNT( * ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2652
SELECT + MAX ( + 72 ) + - 74 / ( COUNT ( * ) ) AS col0
----
-2

query I rowsort
SELECT + + 88 * + 65 + + - 54 + - 64 AS col0
----
5602

query I rowsort
SELECT + + ( - ( - 71 ) ) + + + 59 + + 85 * + - 6 AS col0
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT DISTINCT + ( + CASE ( + 74 ) WHEN 27 * CASE - ( COALESCE ( CASE + COALESCE ( - 47, - 36 ) WHEN COUNT( DISTINCT + - 21 ) * + 14 THEN NULL ELSE 15 * 45 + - 96 + COUNT( - + 18 ) * + MAX( ALL - 72 ) END, + ( - COUNT( * ) ) * - - 21 ) ) WHEN 67 + - 93 / - COUNT( * ) * + 65 * - 2 THEN - 26 WHEN + - 7 THEN MAX( 24 ) END + 52 THEN NULL ELSE - NULLIF ( + 43, - SUM( 97 ) / 26 ) + - 22 END ) col2
----
-65

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT + ( + CASE ( + 74 ) WHEN 27 * CASE - ( COALESCE ( CASE + COALESCE ( - 47, - 36 ) WHEN COUNT ( DISTINCT + - 21 ) * + 14 THEN NULL ELSE 15 * 45 + - 96 + COUNT ( - + 18 ) * + MAX ( ALL - 72 ) END, + ( - COUNT ( * ) ) * - - 21 ) ) WHEN 67 + - 93 / - COUNT ( * ) * + 65 * - 2 THEN - 26 WHEN + - 7 THEN MAX ( 24 ) END + 52 THEN NULL ELSE - NULLIF ( + 43, - SUM ( 97 ) / 26 ) + - 22 END ) col2
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-2656
SELECT + - 39 + - + NULLIF ( + 36, COUNT( * ) - + CASE COUNT( * ) WHEN - + 11 * + COUNT( * ) THEN - - 68 ELSE + 7 END ) + + 63 + 89, 45 AS col2
----
77
45

skipif mysql # not compatible
query II rowsort label-2656
SELECT + - 39 + - + NULLIF ( + 36, COUNT ( * ) - + CASE COUNT ( * ) WHEN - + 11 * + COUNT ( * ) THEN - - 68 ELSE + 7 END ) + + 63 + 89, 45 AS col2
----
77
45

query I rowsort
SELECT ALL NULLIF ( - 61, + - 73 ) col2
----
-61

query I rowsort
SELECT + + 64 + + + ( 91 ) AS col1
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2659
SELECT DISTINCT + COALESCE ( + + 89, + 7, + - COUNT( - 50 ) * + 5 + - CAST( NULL AS SIGNED ) + 21 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT + COALESCE ( + + 89, + 7, + - COUNT ( - 50 ) * + 5 + - CAST ( NULL AS INTEGER ) + 21 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT 89 * CASE 75 WHEN + - AVG ( ALL - - 2 ) THEN NULL ELSE - 45 * + - 24 END * - + 35 * + 26 + + - 28 * COUNT( * ) * 90 + - 26 + + 78
----
-87471668

skipif mysql # not compatible
query I rowsort label-2660
SELECT 89 * CASE 75 WHEN + - AVG ( ALL - - 2 ) THEN NULL ELSE - 45 * + - 24 END * - + 35 * + 26 + + - 28 * COUNT ( * ) * 90 + - 26 + + 78
----
-87471668

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT + NULLIF ( + + COUNT( * ), + 62 * + 3 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2661
SELECT + NULLIF ( + + COUNT ( * ), + 62 * + 3 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT - + 42 * + MIN( ALL + 39 ) + + 0
----
-1638

skipif mysql # not compatible
query I rowsort label-2662
SELECT - + 42 * + MIN ( ALL + 39 ) + + 0
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT + - 28 * + 95 + COUNT( ALL 97 ) AS col2
----
-2659

skipif mysql # not compatible
query I rowsort label-2663
SELECT + - 28 * + 95 + COUNT ( ALL 97 ) AS col2
----
-2659

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

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

query II rowsort
SELECT DISTINCT + ( - 51 ), 23 col2
----
-51
23

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

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

query I rowsort
SELECT ALL - 80 * - - 7 + 77
----
-483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2668
SELECT - 16 * - 2 DIV - 92, - 55 + + 98 + + COALESCE ( 93, - 76 + + COALESCE ( COUNT( DISTINCT 80 ), + 92, + ( - 50 ) DIV - 53 ), + 81 * - - CAST( 79 AS SIGNED ) + - - NULLIF ( + + 57, - CAST( NULL AS SIGNED ) DIV + 55 ) - 36 * + 66 - 22, + - 8 + - - NULLIF ( MIN( - 57 ), - + 5 ) ) * - 88 - - COUNT( * ) * + 92 AS col2
----
0
-8049

skipif mysql # not compatible
query II rowsort label-2668
SELECT - 16 * - 2 / - 92, - 55 + + 98 + + COALESCE ( 93, - 76 + + COALESCE ( COUNT ( DISTINCT 80 ), + 92, + ( - 50 ) / - 53 ), + 81 * - - CAST ( 79 AS INTEGER ) + - - NULLIF ( + + 57, - CAST ( NULL AS INTEGER ) / + 55 ) - 36 * + 66 - 22, + - 8 + - - NULLIF ( MIN ( - 57 ), - + 5 ) ) * - 88 - - COUNT ( * ) * + 92 AS col2
----
0
-8049

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT ALL + MAX( ALL - - 42 ) col2
----
42

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL + MAX ( ALL - - 42 ) col2
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-2670
SELECT DISTINCT + 57 AS col0, 46 DIV - 59 AS col0
----
57
0

skipif mysql # not compatible
query II rowsort label-2670
SELECT DISTINCT + 57 AS col0, 46 / - 59 AS col0
----
57
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT 30 * - 55 + + - NULLIF ( - + COUNT( * ), - 65 ) AS col0
----
-1649

skipif mysql # not compatible
query I rowsort label-2671
SELECT 30 * - 55 + + - NULLIF ( - + COUNT ( * ), - 65 ) AS col0
----
-1649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2672
SELECT ALL + 70, MIN( - - 23 ) / + CAST( NULL AS SIGNED ) + 94 + - COALESCE ( + 38, - 38, 43 * + 43 ) + + 10 AS col2, + 29 col2
----
70
NULL
29

skipif mysql # not compatible
query III rowsort label-2672
SELECT ALL + 70, MIN ( - - 23 ) / + CAST ( NULL AS INTEGER ) + 94 + - COALESCE ( + 38, - 38, 43 * + 43 ) + + 10 AS col2, + 29 col2
----
70
NULL
29

query I rowsort
SELECT COALESCE ( + 53, - 18, - 77 )
----
53

query I rowsort
SELECT COALESCE ( - 14, + 36 + 22, + ( - 4 ) )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2675
SELECT 15 + + 36 DIV - - 90 * + 90 AS col0, MIN( ALL + + 77 ) * - - 72
----
15
5544

skipif mysql # not compatible
query II rowsort label-2675
SELECT 15 + + 36 / - - 90 * + 90 AS col0, MIN ( ALL + + 77 ) * - - 72
----
15
5544

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT ALL - ( - + 11 ) * + 20 * + NULLIF ( + 35, + COUNT( - NULLIF ( + 24, - + 12 ) ) * - 11 ) AS col1
----
7700

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL - ( - + 11 ) * + 20 * + NULLIF ( + 35, + COUNT ( - NULLIF ( + 24, - + 12 ) ) * - 11 ) AS col1
----
7700

onlyif mysql # aggregate syntax: 
query II rowsort label-2678
SELECT - COUNT( * ) * + 93 * 87 + + 18 AS col2, - 43 AS col1
----
-8073
-43

skipif mysql # not compatible
query II rowsort label-2678
SELECT - COUNT ( * ) * + 93 * 87 + + 18 AS col2, - 43 AS col1
----
-8073
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2679
SELECT 50 + COUNT( * ) - - CAST( NULL AS SIGNED ) * COUNT( * ) - CAST( - CAST( - - CASE + 71 WHEN 72 THEN NULL WHEN - + 23 THEN NULL ELSE 76 + + - 33 END AS SIGNED ) AS SIGNED ) * 29 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2679
SELECT 50 + COUNT ( * ) - - CAST ( NULL AS INTEGER ) * COUNT ( * ) - CAST ( - CAST ( - - CASE + 71 WHEN 72 THEN NULL WHEN - + 23 THEN NULL ELSE 76 + + - 33 END AS INTEGER ) AS INTEGER ) * 29 col0
----
NULL

query I rowsort
SELECT DISTINCT - ( - + 4 ) * - - 29 * + 88 AS col2
----
10208

query I rowsort
SELECT 34 * + - 73 * 36
----
-89352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2682
SELECT 69 + 74 * - CASE NULLIF ( + + 48, - + CAST( - 51 AS SIGNED ) ) WHEN + + 93 + - 33 THEN NULL WHEN 59 THEN + AVG ( + 85 ) ELSE NULL END / - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2682
SELECT 69 + 74 * - CASE NULLIF ( + + 48, - + CAST ( - 51 AS INTEGER ) ) WHEN + + 93 + - 33 THEN NULL WHEN 59 THEN + AVG ( + 85 ) ELSE NULL END / - 42 AS col1
----
NULL

query II rowsort
SELECT 37 AS col0, 72 + + 6 + - 90 + + 6 col0
----
37
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2684
SELECT ( - + 6 ) + + - NULLIF ( 40, - COALESCE ( + ( + ( ( + ( + AVG ( + ( - - 43 ) ) ) ) ) ), + CASE 27 WHEN 88 + - + 83 THEN + 50 ELSE - 7 END ) * + 28 + - - MAX( + CAST( - 44 AS DECIMAL ) ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-2684
SELECT ( - + 6 ) + + - NULLIF ( 40, - COALESCE ( + ( + ( ( + ( + AVG ( + ( - - 43 ) ) ) ) ) ), + CASE 27 WHEN 88 + - + 83 THEN + 50 ELSE - 7 END ) * + 28 + - - MAX ( + CAST ( - 44 AS REAL ) ) ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT 96 / + COALESCE ( - COUNT( * ), - + 78 ) * - CASE + 5 WHEN - + 96 * - - 34 + 10 THEN - COUNT( * ) / - - COUNT( + 56 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2685
SELECT 96 / + COALESCE ( - COUNT ( * ), - + 78 ) * - CASE + 5 WHEN - + 96 * - - 34 + 10 THEN - COUNT ( * ) / - - COUNT ( + 56 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT ALL - 73 + 1 * MIN( DISTINCT + + 63 )
----
-10

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL - 73 + 1 * MIN ( DISTINCT + + 63 )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2687
SELECT 27 + - 85 + - 87 + - 76 + + - 52 DIV + COUNT( * ) + - 31 * + 84
----
-2877

skipif mysql # not compatible
query I rowsort label-2687
SELECT 27 + - 85 + - 87 + - 76 + + - 52 / + COUNT ( * ) + - 31 * + 84
----
-2877

query II rowsort
SELECT - + 60, 65 AS col2
----
-60
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2689
SELECT 76 DIV 12
----
6

skipif mysql # not compatible
query I rowsort label-2689
SELECT 76 / 12
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2690
SELECT DISTINCT COUNT( * ) col1, 62 * - + 38 AS col1
----
1
-2356

skipif mysql # not compatible
query II rowsort label-2690
SELECT DISTINCT COUNT ( * ) col1, 62 * - + 38 AS col1
----
1
-2356

query I rowsort
SELECT DISTINCT 6 + - 88
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-2692
SELECT + 79 AS col0, + 79 - COUNT( * ) AS col2
----
79
78

skipif mysql # not compatible
query II rowsort label-2692
SELECT + 79 AS col0, + 79 - COUNT ( * ) AS col2
----
79
78

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2694
SELECT ALL - 47 + + + 63 * + COUNT( * ) DIV - - COUNT( + 78 ) + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL - 47 + + + 63 * + COUNT ( * ) / - - COUNT ( + 78 ) + COUNT ( * )
----
17

query II rowsort
SELECT + - 86 AS col2, - 99 + + 41 AS col1
----
-86
-58

query I rowsort
SELECT + 7 * + 66 + - 32
----
430

query I rowsort
SELECT ALL - 97 + - + 76 - + 16 + 56
----
-133

query I rowsort
SELECT NULLIF ( + 7, + 31 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT 24 * + CASE - 20 WHEN - + 29 * - 14 - 93 THEN - 22 WHEN 87 * 11 THEN NULLIF ( 58, - - ( - - CASE + 7 WHEN - + 69 * + - 54 + + COUNT( * ) * + + 17 THEN NULL WHEN 21 - - 37 THEN NULL ELSE - - 14 END ) + ( 37 ) * + + 61 ) END * + - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2699
SELECT 24 * + CASE - 20 WHEN - + 29 * - 14 - 93 THEN - 22 WHEN 87 * 11 THEN NULLIF ( 58, - - ( - - CASE + 7 WHEN - + 69 * + - 54 + + COUNT ( * ) * + + 17 THEN NULL WHEN 21 - - 37 THEN NULL ELSE - - 14 END ) + ( 37 ) * + + 61 ) END * + - 68 AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( + 87 ) - 75 * + + 43 * 70
----
-225663

query I rowsort
SELECT 35 + - 4 + 9 AS col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2702
SELECT ALL 74 - + - 98 DIV - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL 74 - + - 98 / - COUNT ( * )
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-2703
SELECT COALESCE ( - + 44, - - 5 ) DIV + 81 * - + 38, 21 AS col1
----
0
21

skipif mysql # not compatible
query II rowsort label-2703
SELECT COALESCE ( - + 44, - - 5 ) / + 81 * - + 38, 21 AS col1
----
0
21

query II rowsort
SELECT 54 * + - 10, - 15 + 19 AS col1
----
-540
4

query I rowsort
SELECT ALL + ( - - 2 ) * + 4 * + 43 + - ( 65 ) col1
----
279

query I rowsort
SELECT 36 * + 61 - + + 98 col2
----
2098

onlyif mysql # DIV for integer division: 
query I rowsort label-2707
SELECT 44 DIV - 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2707
SELECT 44 / - 88 AS col0
----
0

query I rowsort
SELECT 53 * - 90 AS col2
----
-4770

query I rowsort
SELECT 63 - + COALESCE ( 82, - - 64 )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-2710
SELECT 40 - 97 col1, ( - COUNT( * ) )
----
-57
-1

skipif mysql # not compatible
query II rowsort label-2710
SELECT 40 - 97 col1, ( - COUNT ( * ) )
----
-57
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT 79 * + - COUNT( 57 )
----
-79

skipif mysql # not compatible
query I rowsort label-2711
SELECT 79 * + - COUNT ( 57 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT ALL + 64 + SUM( 31 )
----
95

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL + 64 + SUM ( 31 )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-2713
SELECT DISTINCT - 10 + - MAX( - - CASE 87 WHEN + ( 37 ) THEN NULL ELSE 74 END ) AS col0, 61 * - 94
----
-84
-5734

skipif mysql # not compatible
query II rowsort label-2713
SELECT DISTINCT - 10 + - MAX ( - - CASE 87 WHEN + ( 37 ) THEN NULL ELSE 74 END ) AS col0, 61 * - 94
----
-84
-5734

query I rowsort
SELECT - ( 53 ) * 40
----
-2120

query I rowsort
SELECT ALL - + 29 + + 39 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT + MAX( ALL 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2716
SELECT + MAX ( ALL 69 ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT DISTINCT + NULLIF ( + NULLIF ( + 91, + + 97 * + COUNT( * ) * + 21 * - 85 + + 38 + + AVG ( DISTINCT 18 ) * + CASE - - 6 WHEN - 62 THEN NULL ELSE 17 + + 16 END * + 60 - MAX( ALL COALESCE ( + 88, 79 ) ) ), + 20 ) * + + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-2717
SELECT DISTINCT + NULLIF ( + NULLIF ( + 91, + + 97 * + COUNT ( * ) * + 21 * - 85 + + 38 + + AVG ( DISTINCT 18 ) * + CASE - - 6 WHEN - 62 THEN NULL ELSE 17 + + 16 END * + 60 - MAX ( ALL COALESCE ( + 88, 79 ) ) ), + 20 ) * + + COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT + COUNT( * ) - - + 30
----
31

skipif mysql # not compatible
query I rowsort label-2718
SELECT + COUNT ( * ) - - + 30
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2719
SELECT ALL + CASE 94 WHEN - 42 THEN NULL WHEN + 46 + 38 THEN CAST( NULL AS SIGNED ) END + + 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL + CASE 94 WHEN - 42 THEN NULL WHEN + 46 + 38 THEN CAST ( NULL AS INTEGER ) END + + 95 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2720
SELECT CAST( NULL AS SIGNED ) * 42 AS col0, + 0 + - 36
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-2720
SELECT CAST ( NULL AS INTEGER ) * 42 AS col0, + 0 + - 36
----
NULL
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT ALL + ( COALESCE ( - 74, - NULLIF ( - - ( + COUNT( * ) ), + 61 ), - COUNT( * ) ) ) + + 91 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL + ( COALESCE ( - 74, - NULLIF ( - - ( + COUNT ( * ) ), + 61 ), - COUNT ( * ) ) ) + + 91 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT 24 + - 86 * + 54 * 68 * COUNT( * )
----
-315768

skipif mysql # not compatible
query I rowsort label-2722
SELECT 24 + - 86 * + 54 * 68 * COUNT ( * )
----
-315768

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT - - SUM( - 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-2723
SELECT - - SUM ( - 87 ) AS col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2724
SELECT ALL - - CASE CAST( NULL AS SIGNED ) WHEN + - COUNT( * ) THEN NULL ELSE 27 * 16 END * - 21 - 43, ( + 91 ) AS col1
----
-9115
91

skipif mysql # not compatible
query II rowsort label-2724
SELECT ALL - - CASE CAST ( NULL AS INTEGER ) WHEN + - COUNT ( * ) THEN NULL ELSE 27 * 16 END * - 21 - 43, ( + 91 ) AS col1
----
-9115
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2725
SELECT ALL + + 45 DIV - - 2 + + 6 * - 10 + - 15
----
-53

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL + + 45 / - - 2 + + 6 * - 10 + - 15
----
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-2726
SELECT ALL - CASE AVG ( + 74 ) WHEN - - 38 - - ( - + 90 ) THEN NULL ELSE - - 77 DIV - 39 + - 57 END AS col2, 67 + 12
----
58
79

skipif mysql # not compatible
query II rowsort label-2726
SELECT ALL - CASE AVG ( + 74 ) WHEN - - 38 - - ( - + 90 ) THEN NULL ELSE - - 77 / - 39 + - 57 END AS col2, 67 + 12
----
58
79

query I rowsort
SELECT ALL 80 * 96 col2
----
7680

onlyif mysql # aggregate syntax: 
query II rowsort label-2728
SELECT ALL + 74 * + COUNT( * ) * - - ( 97 ) col0, + 3 * - 94 * + ( 63 ) col1
----
7178
-17766

skipif mysql # not compatible
query II rowsort label-2728
SELECT ALL + 74 * + COUNT ( * ) * - - ( 97 ) col0, + 3 * - 94 * + ( 63 ) col1
----
7178
-17766

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT - 94 * + - MIN( ALL - - 83 )
----
7802

skipif mysql # not compatible
query I rowsort label-2729
SELECT - 94 * + - MIN ( ALL - - 83 )
----
7802

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

skipif mysql # not compatible
query I rowsort label-2730
SELECT CAST ( NULL AS INTEGER ) * 62 * + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT COUNT( * ) + - - 67 + + + 58
----
126

skipif mysql # not compatible
query I rowsort label-2731
SELECT COUNT ( * ) + - - 67 + + + 58
----
126

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT MIN( + 40 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-2733
SELECT MIN ( + 40 ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT ALL MIN( - + 94 ) * 94 + + 43 * - - 33 + - 77 + - + NULLIF ( 86, 67 * - 22 + + 72 / + 63 ) col0
----
-7580

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL MIN ( - + 94 ) * 94 + + 43 * - - 33 + - 77 + - + NULLIF ( 86, 67 * - 22 + + 72 / + 63 ) col0
----
-7580

query I rowsort
SELECT + 33 + - 19
----
14

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2737
SELECT + CASE + 32 WHEN + 86 THEN NULL WHEN 96 THEN NULL WHEN COUNT( * ) * + CAST( NULL AS DECIMAL ) * + 15 THEN NULL ELSE 51 + 58 END AS col2
----
109

skipif mysql # not compatible
query I rowsort label-2737
SELECT + CASE + 32 WHEN + 86 THEN NULL WHEN 96 THEN NULL WHEN COUNT ( * ) * + CAST ( NULL AS REAL ) * + 15 THEN NULL ELSE 51 + 58 END AS col2
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT ALL + 95 * + ( - ( - SUM( ALL - + 32 ) ) )
----
-3040

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL + 95 * + ( - ( - SUM ( ALL - + 32 ) ) )
----
-3040

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT + COUNT( * ) * - - 45 * + 38 * - - 34 AS col2
----
58140

skipif mysql # not compatible
query I rowsort label-2739
SELECT + COUNT ( * ) * - - 45 * + 38 * - - 34 AS col2
----
58140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2740
SELECT - ( 94 ) DIV - MAX( ALL - 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-2740
SELECT - ( 94 ) / - MAX ( ALL - 72 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2741
SELECT ALL 78 + - - COUNT( * ) + - 75 * COALESCE ( + 1, 4 * + + 90 + - + 79 + CASE - COUNT( * ) WHEN + MIN( 49 ) + - + 12 + + 98 * - 10 THEN NULL WHEN CAST( + ( - 93 ) AS SIGNED ) THEN - COUNT( * ) * - - 81 ELSE NULL END ) * + 65 - - 3
----
-4793

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL 78 + - - COUNT ( * ) + - 75 * COALESCE ( + 1, 4 * + + 90 + - + 79 + CASE - COUNT ( * ) WHEN + MIN ( 49 ) + - + 12 + + 98 * - 10 THEN NULL WHEN CAST ( + ( - 93 ) AS INTEGER ) THEN - COUNT ( * ) * - - 81 ELSE NULL END ) * + 65 - - 3
----
-4793

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT + 63 * + 38 + + - 28 * ( SUM( ALL + - 32 ) ) AS col2
----
3290

skipif mysql # not compatible
query I rowsort label-2742
SELECT + 63 * + 38 + + - 28 * ( SUM ( ALL + - 32 ) ) AS col2
----
3290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2743
SELECT DISTINCT + NULLIF ( + 51, + 39 * + 97 + - 99 ) + + + 27 + 62 * - + 13 * - 40 * 27 * - COALESCE ( + ( - 21 ), + + CAST( NULL AS SIGNED ), + 41 ) + - 81 + + - 37 * - 55 * - + 6 * - 9 * 37
----
22346007

skipif mysql # not compatible
query I rowsort label-2743
SELECT DISTINCT + NULLIF ( + 51, + 39 * + 97 + - 99 ) + + + 27 + 62 * - + 13 * - 40 * 27 * - COALESCE ( + ( - 21 ), + + CAST ( NULL AS INTEGER ), + 41 ) + - 81 + + - 37 * - 55 * - + 6 * - 9 * 37
----
22346007

query I rowsort
SELECT ALL - 91 + + 14
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2745
SELECT ALL - - ( - 78 ) + 45 AS col2, - 36 + - 81 + - - COALESCE ( 25, - COUNT( * ), - CAST( NULL AS SIGNED ) DIV - 80 DIV + + 57 * + 55 + ( - 84 ) )
----
-33
-92

skipif mysql # not compatible
query II rowsort label-2745
SELECT ALL - - ( - 78 ) + 45 AS col2, - 36 + - 81 + - - COALESCE ( 25, - COUNT ( * ), - CAST ( NULL AS INTEGER ) / - 80 / + + 57 * + 55 + ( - 84 ) )
----
-33
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-2746
SELECT - 23 + - SUM( + 38 ) AS col1, + 10
----
-61
10

skipif mysql # not compatible
query II rowsort label-2746
SELECT - 23 + - SUM ( + 38 ) AS col1, + 10
----
-61
10

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2748
SELECT - NULLIF ( - - COALESCE ( + CAST( + 76 AS SIGNED ), 87 + - 4 ), 81 ) + + - COALESCE ( - 23, + 88 * 37 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-2748
SELECT - NULLIF ( - - COALESCE ( + CAST ( + 76 AS INTEGER ), 87 + - 4 ), 81 ) + + - COALESCE ( - 23, + 88 * 37 ) AS col1
----
-53

query I rowsort
SELECT DISTINCT - 97 - + 5 + + - 49 * 49 * + 58 AS col1
----
-139360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2750
SELECT - ( + CASE + - COUNT( * ) WHEN - 10 * MIN( DISTINCT 5 ) - - - NULLIF ( - 44, - 82 ) + - + COALESCE ( + CAST( NULL AS SIGNED ), + - 69 + + ( 44 ), + + 46 ) THEN NULL ELSE - 18 * 52 * + 10 END ) AS col1
----
9360

skipif mysql # not compatible
query I rowsort label-2750
SELECT - ( + CASE + - COUNT ( * ) WHEN - 10 * MIN ( DISTINCT 5 ) - - - NULLIF ( - 44, - 82 ) + - + COALESCE ( + CAST ( NULL AS INTEGER ), + - 69 + + ( 44 ), + + 46 ) THEN NULL ELSE - 18 * 52 * + 10 END ) AS col1
----
9360

query II rowsort
SELECT DISTINCT + 80 AS col1, COALESCE ( 34, + 40 * - 30 * ( - 96 ) + - 87 * + ( + 70 ) )
----
80
34

query I rowsort
SELECT DISTINCT + 45 * + 30
----
1350

query II rowsort
SELECT - + 31 AS col1, - 19 * 74 AS col2
----
-31
-1406

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT - 92 / ( + 70 ) * - CASE COALESCE ( ( + 22 ), + 85 ) WHEN - COUNT( + - 93 ) / - - ( - 98 ) THEN + + 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2754
SELECT - 92 / ( + 70 ) * - CASE COALESCE ( ( + 22 ), + 85 ) WHEN - COUNT ( + - 93 ) / - - ( - 98 ) THEN + + 45 END
----
NULL

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

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

query I rowsort
SELECT - 74 + + 71
----
-3

query I rowsort
SELECT - 51 * + 6
----
-306

query II rowsort
SELECT ALL + 70 AS col0, - 55 * 29 AS col2
----
70
-1595

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2760
SELECT ALL 22 * + SUM( ALL - CASE 71 WHEN + 92 * - 36 * + 5 * - 26 THEN - 55 WHEN + 45 THEN NULL WHEN - 14 THEN + 71 WHEN 98 - + 58 THEN + 24 + - - 51 END ) + 4 col1, 84
----
NULL
84

skipif mysql # not compatible
query II rowsort label-2760
SELECT ALL 22 * + SUM ( ALL - CASE 71 WHEN + 92 * - 36 * + 5 * - 26 THEN - 55 WHEN + 45 THEN NULL WHEN - 14 THEN + 71 WHEN 98 - + 58 THEN + 24 + - - 51 END ) + 4 col1, 84
----
NULL
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT DISTINCT + CASE + 91 WHEN + + 57 * + - 39 * - COUNT( * ) * + NULLIF ( - - 77, 69 * SUM( - - 51 ) ) THEN + - 70 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT + CASE + 91 WHEN + + 57 * + - 39 * - COUNT ( * ) * + NULLIF ( - - 77, 69 * SUM ( - - 51 ) ) THEN + - 70 END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2762
SELECT + 20 + + - 18 + - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT + 55 * + 21 AS col0
----
1155

query II rowsort
SELECT + ( + 35 ) col0, 71
----
35
71

onlyif mysql # aggregate syntax: 
query II rowsort label-2765
SELECT + COUNT( * ) AS col2, - 50 * - 46
----
1
2300

skipif mysql # not compatible
query II rowsort label-2765
SELECT + COUNT ( * ) AS col2, - 50 * - 46
----
1
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT + COUNT( * ) + + 55 + + 24 * + - 16 * + 81 - - - COUNT( * ) * - - 52
----
-31100

skipif mysql # not compatible
query I rowsort label-2766
SELECT + COUNT ( * ) + + 55 + + 24 * + - 16 * + 81 - - - COUNT ( * ) * - - 52
----
-31100

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2769
SELECT ALL 21 * COUNT( * ) * - CAST( NULL AS SIGNED ) * 93 * 18 + - 64 + + - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL 21 * COUNT ( * ) * - CAST ( NULL AS INTEGER ) * 93 * 18 + - 64 + + - 69 AS col0
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2772
SELECT + 98 - COUNT( * ) - + ( - 28 ) - 95 + ( 25 ) + CAST( NULL AS SIGNED ) * + 59 * - 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2772
SELECT + 98 - COUNT ( * ) - + ( - 28 ) - 95 + ( 25 ) + CAST ( NULL AS INTEGER ) * + 59 * - 83 AS col1
----
NULL

query II rowsort
SELECT - - 61, + 55 AS col1
----
61
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT - - MAX( + + 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2775
SELECT - - MAX ( + + 62 ) AS col0
----
62

query I rowsort
SELECT ALL - 68 * + 28
----
-1904

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2778
SELECT DISTINCT + NULLIF ( 33, - - 99 / + + 39 + + + ( + + 69 ) ) - - CAST( + 42 AS SIGNED ) + + - COUNT( * ) AS col0, - 4 + + COUNT( * )
----
74
-3

skipif mysql # not compatible
query II rowsort label-2778
SELECT DISTINCT + NULLIF ( 33, - - 99 / + + 39 + + + ( + + 69 ) ) - - CAST ( + 42 AS INTEGER ) + + - COUNT ( * ) AS col0, - 4 + + COUNT ( * )
----
74
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2779
SELECT + + 29 * + 51 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

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

query I rowsort
SELECT + + 27 * + 43 + + - 60 * + 11 AS col2
----
501

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT - 67 + - + 81 + CASE + 27 WHEN 42 THEN NULL WHEN ( - 98 ) THEN COUNT( - - NULLIF ( 9, - - 71 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2781
SELECT - 67 + - + 81 + CASE + 27 WHEN 42 THEN NULL WHEN ( - 98 ) THEN COUNT ( - - NULLIF ( 9, - - 71 ) ) END AS col0
----
NULL

query II rowsort
SELECT - + 86 col2, 57
----
-86
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT - MIN( DISTINCT + 65 ) col2
----
-65

skipif mysql # not compatible
query I rowsort label-2783
SELECT - MIN ( DISTINCT + 65 ) col2
----
-65

query I rowsort
SELECT ALL - CASE - - 67 WHEN 74 THEN - ( 44 ) + + 8 - + 27 ELSE NULL END
----
NULL

query II rowsort
SELECT 28 + - + 25 AS col2, + 37
----
3
37

query II rowsort
SELECT DISTINCT + 13 * + 87 col1, 40 + - + 43 * + + 10 - + 61 AS col2
----
1131
-451

query I rowsort
SELECT 38 + + + 77
----
115

query I rowsort
SELECT DISTINCT - 95 + 80
----
-15

query I rowsort
SELECT ALL + 40 + + 28
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2790
SELECT + 31 * - + MIN( ALL - 6 ) + + 73 DIV - + 79 AS col1
----
186

skipif mysql # not compatible
query I rowsort label-2790
SELECT + 31 * - + MIN ( ALL - 6 ) + + 73 / - + 79 AS col1
----
186

query I rowsort
SELECT 28 * + - 28
----
-784

query I rowsort
SELECT ALL - 78 + - + ( + 40 ) AS col0
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-2793
SELECT 59 DIV - - 40 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2793
SELECT 59 / - - 40 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT DISTINCT - ( - + MIN( + + 19 ) ) + - 77 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-2794
SELECT DISTINCT - ( - + MIN ( + + 19 ) ) + - 77 AS col1
----
-58

query II rowsort
SELECT DISTINCT - ( - 36 ), + 79 AS col2
----
36
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2796
SELECT + 67 * - + 24 + - 31 * - + COUNT( * ) DIV 88 AS col2, + 44
----
-1608
44

skipif mysql # not compatible
query II rowsort label-2796
SELECT + 67 * - + 24 + - 31 * - + COUNT ( * ) / 88 AS col2, + 44
----
-1608
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2797
SELECT 30 * 99 + + + COUNT( * ) + - COUNT( * ) DIV + - COUNT( * ) AS col1
----
2972

skipif mysql # not compatible
query I rowsort label-2797
SELECT 30 * 99 + + + COUNT ( * ) + - COUNT ( * ) / + - COUNT ( * ) AS col1
----
2972

query I rowsort
SELECT ALL - 63 * COALESCE ( 12, - 67 )
----
-756

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2799
SELECT - COALESCE ( + 87, COUNT( - - 6 ) + - MIN( DISTINCT - ( - 64 ) ) + 57 + - 35 ) - - COUNT( * ) DIV + SUM( + 2 ) * 4 - - - 67 * - SUM( ALL 24 ) AS col0
----
1521

skipif mysql # not compatible
query I rowsort label-2799
SELECT - COALESCE ( + 87, COUNT ( - - 6 ) + - MIN ( DISTINCT - ( - 64 ) ) + 57 + - 35 ) - - COUNT ( * ) / + SUM ( + 2 ) * 4 - - - 67 * - SUM ( ALL 24 ) AS col0
----
1521

query I rowsort
SELECT DISTINCT 83 * - - 39 AS col2
----
3237

query I rowsort
SELECT 99 + - 42 col1
----
57

query I rowsort
SELECT ALL - - 51 * - + 35 + + - 45
----
-1830

query I rowsort
SELECT + 80 * 61 AS col1
----
4880

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT DISTINCT - COUNT( * ) * + 7 * - - 4
----
-28

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT - COUNT ( * ) * + 7 * - - 4
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-2805
SELECT ALL MAX( - 90 ) AS col2, + COUNT( - 55 ) + + ( 82 ) AS col1
----
-90
83

skipif mysql # not compatible
query II rowsort label-2805
SELECT ALL MAX ( - 90 ) AS col2, + COUNT ( - 55 ) + + ( 82 ) AS col1
----
-90
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2806
SELECT + 7 + CAST( + 33 AS SIGNED ) * 24 AS col1
----
799

skipif mysql # not compatible
query I rowsort label-2806
SELECT + 7 + CAST ( + 33 AS INTEGER ) * 24 AS col1
----
799

onlyif mysql # aggregate syntax: 
query II rowsort label-2807
SELECT + 47 * - + 48 col0, COUNT( * ) * + NULLIF ( 91, - 21 ) * + + 83 + 8
----
-2256
7561

skipif mysql # not compatible
query II rowsort label-2807
SELECT + 47 * - + 48 col0, COUNT ( * ) * + NULLIF ( 91, - 21 ) * + + 83 + 8
----
-2256
7561

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

query II rowsort
SELECT 14 + - 51 AS col2, + 68
----
-37
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2810
SELECT DISTINCT SUM( + 53 ) col0, - 84 AS col1
----
53
-84

skipif mysql # not compatible
query II rowsort label-2810
SELECT DISTINCT SUM ( + 53 ) col0, - 84 AS col1
----
53
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2811
SELECT DISTINCT + MAX( DISTINCT - CAST( + - 50 AS SIGNED ) ) + - - 88 AS col2
----
138

skipif mysql # not compatible
query I rowsort label-2811
SELECT DISTINCT + MAX ( DISTINCT - CAST ( + - 50 AS INTEGER ) ) + - - 88 AS col2
----
138

query I rowsort
SELECT 93 * + ( + 94 ) + - - 70 * 18 AS col1
----
10002

query II rowsort
SELECT DISTINCT 93 AS col2, 80
----
93
80

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2816
SELECT COUNT( * ) DIV - + 86 * - 11
----
0

skipif mysql # not compatible
query I rowsort label-2816
SELECT COUNT ( * ) / - + 86 * - 11
----
0

query I rowsort
SELECT 37 * + 94
----
3478

query I rowsort
SELECT 73 * - 83 AS col0
----
-6059

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

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL 62 + + COUNT ( * ) AS col0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2820
SELECT 82 DIV - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2820
SELECT 82 / - 84 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2821
SELECT ALL - COUNT( * ) AS col0, - 27 + + CASE - 99 WHEN - - ( 60 ) + + 25 + - CAST( - 24 AS SIGNED ) THEN NULL WHEN + 89 THEN - 91 ELSE 94 END AS col0
----
-1
67

skipif mysql # not compatible
query II rowsort label-2821
SELECT ALL - COUNT ( * ) AS col0, - 27 + + CASE - 99 WHEN - - ( 60 ) + + 25 + - CAST ( - 24 AS INTEGER ) THEN NULL WHEN + 89 THEN - 91 ELSE 94 END AS col0
----
-1
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT ALL - NULLIF ( - + 46, + ( 86 ) * + 98 + 26 ) - COUNT( * ) col2
----
45

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL - NULLIF ( - + 46, + ( 86 ) * + 98 + 26 ) - COUNT ( * ) col2
----
45

query I rowsort
SELECT ALL - 74 * + 75 AS col0
----
-5550

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

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

query I rowsort
SELECT 78 * - 13 AS col2
----
-1014

query I rowsort
SELECT - 89 * 76
----
-6764

query I rowsort
SELECT 91 + 95 AS col2
----
186

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2830
SELECT - SUM( CAST( + 30 AS SIGNED ) ) * - 65 + 14 AS col1
----
1964

skipif mysql # not compatible
query I rowsort label-2830
SELECT - SUM ( CAST ( + 30 AS INTEGER ) ) * - 65 + 14 AS col1
----
1964

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2831
SELECT ALL + + COALESCE ( + + COUNT( * ), + ( 82 ), 72 ) DIV + 73 DIV + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL + + COALESCE ( + + COUNT ( * ), + ( 82 ), 72 ) / + 73 / + COUNT ( * ) AS col1
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT - - COUNT( * ) * - 47 + 99 + 18 * + 46 * - 60 + + 11 AS col2
----
-49617

skipif mysql # not compatible
query I rowsort label-2834
SELECT - - COUNT ( * ) * - 47 + 99 + 18 * + 46 * - 60 + + 11 AS col2
----
-49617

query I rowsort
SELECT - 44 - - 80
----
36

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

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

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

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

query I rowsort
SELECT - + 73 * 63 - + 58 col1
----
-4657

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT ALL COUNT( * ) + 52 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL COUNT ( * ) + 52 AS col1
----
53

query I rowsort
SELECT - 71 * - ( - 76 )
----
-5396

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2842
SELECT DISTINCT - 33 + - 26 - - + 46 DIV + ( + - COALESCE ( + - 81, - 19 + 98 ) ) * + 78 * + 58
----
-59

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT - 33 + - 26 - - + 46 / + ( + - COALESCE ( + - 81, - 19 + 98 ) ) * + 78 * + 58
----
-59

query I rowsort
SELECT DISTINCT ( 78 ) col2
----
78

query I rowsort
SELECT ALL - + 56 + ( 50 ) col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT + 4 - 56 + 97 + COUNT( * ) * 49 * 70 * + 64 AS col0
----
219565

skipif mysql # not compatible
query I rowsort label-2845
SELECT + 4 - 56 + 97 + COUNT ( * ) * 49 * 70 * + 64 AS col0
----
219565

query II rowsort
SELECT - 74 + 29 AS col0, - 63 AS col2
----
-45
-63

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

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

query I rowsort
SELECT - 50 + + 55 * + 33 col0
----
1765

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2849
SELECT + AVG ( DISTINCT - 27 ) * + 14 / - ( - 94 ) * - COALESCE ( - 40, - 84 + - 19 + + 74 ) * + 15 * + NULLIF ( + + AVG ( - + 60 ), + 94 ) - - - COALESCE ( 26, + + 35 * 87 ) - - 37 + + CASE - - ( + CAST( NULL AS DECIMAL ) ) WHEN + + COUNT( * ) THEN - 63 * 37 * + + COUNT( * ) ELSE NULL END * + CASE + 60 WHEN + ( - 30 ) THEN - 4 END * 22 + + 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2849
SELECT + AVG ( DISTINCT - 27 ) * + 14 / - ( - 94 ) * - COALESCE ( - 40, - 84 + - 19 + + 74 ) * + 15 * + NULLIF ( + + AVG ( - + 60 ), + 94 ) - - - COALESCE ( 26, + + 35 * 87 ) - - 37 + + CASE - - ( + CAST ( NULL AS REAL ) ) WHEN + + COUNT ( * ) THEN - 63 * 37 * + + COUNT ( * ) ELSE NULL END * + CASE + 60 WHEN + ( - 30 ) THEN - 4 END * 22 + + 25 AS col0
----
NULL

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

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

query I rowsort
SELECT + 68 + + 43 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT - COALESCE ( - COUNT( * ), 71 )
----
1

skipif mysql # not compatible
query I rowsort label-2852
SELECT - COALESCE ( - COUNT ( * ), 71 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT + 44 + + + NULLIF ( SUM( DISTINCT + 58 ), + 65 ) + - 73 col2
----
29

skipif mysql # not compatible
query I rowsort label-2853
SELECT + 44 + + + NULLIF ( SUM ( DISTINCT + 58 ), + 65 ) + - 73 col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2854
SELECT - ( - + 23 ), + SUM( ALL + + CAST( + 37 AS SIGNED ) ) DIV 24 + - 23 AS col0
----
23
-22

skipif mysql # not compatible
query II rowsort label-2854
SELECT - ( - + 23 ), + SUM ( ALL + + CAST ( + 37 AS INTEGER ) ) / 24 + - 23 AS col0
----
23
-22

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

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

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

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

query I rowsort
SELECT + 96 + + - 11
----
85

query I rowsort
SELECT ALL 66 * - - 33 - 52
----
2126

query I rowsort
SELECT ( + + 2 ) AS col2
----
2

query I rowsort
SELECT ALL 79 * + + ( - 88 )
----
-6952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2861
SELECT + CAST( + 86 AS SIGNED ) DIV COUNT( * ) * + 33 + - 81 + 29 AS col2
----
2786

skipif mysql # not compatible
query I rowsort label-2861
SELECT + CAST ( + 86 AS INTEGER ) / COUNT ( * ) * + 33 + - 81 + 29 AS col2
----
2786

query I rowsort
SELECT + 66 + + - 43
----
23

query I rowsort
SELECT - 43 + + 18 + - 12 * + + 9
----
-133

onlyif mysql # DIV for integer division: 
query I rowsort label-2864
SELECT + ( + 10 ) DIV 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2864
SELECT + ( + 10 ) / 87 AS col1
----
0

query I rowsort
SELECT - 60 * - 62 * 21 AS col0
----
78120

query I rowsort
SELECT DISTINCT + - ( + 63 )
----
-63

query I rowsort
SELECT ALL + NULLIF ( 12, AVG ( + 10 ) ) col0
----
12

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

query I rowsort
SELECT DISTINCT + 89 * - + 50
----
-4450

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT DISTINCT + MAX( - 44 ) * - 19
----
836

skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT + MAX ( - 44 ) * - 19
----
836

onlyif mysql # aggregate syntax: 
query II rowsort label-2871
SELECT ALL + - COUNT( * ) * + 75, + 28 AS col0
----
-75
28

skipif mysql # not compatible
query II rowsort label-2871
SELECT ALL + - COUNT ( * ) * + 75, + 28 AS col0
----
-75
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2872
SELECT + COALESCE ( + CAST( + 49 AS SIGNED ), 82, + 95 ) * 19 + - 28 AS col2
----
903

skipif mysql # not compatible
query I rowsort label-2872
SELECT + COALESCE ( + CAST ( + 49 AS INTEGER ), 82, + 95 ) * 19 + - 28 AS col2
----
903

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2873
SELECT ALL 96 * - MIN( ALL + 4 ) * - + 86 + + 96 DIV + COUNT( * ) + - MIN( ALL - + 39 )
----
33159

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL 96 * - MIN ( ALL + 4 ) * - + 86 + + 96 / + COUNT ( * ) + - MIN ( ALL - + 39 )
----
33159

onlyif mysql # DIV for integer division: 
query II rowsort label-2874
SELECT ALL + 35 + + 35 AS col1, 12 DIV - 25 AS col1
----
70
0

skipif mysql # not compatible
query II rowsort label-2874
SELECT ALL + 35 + + 35 AS col1, 12 / - 25 AS col1
----
70
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2875
SELECT DISTINCT - 77 + + + 48 - + CASE - - 30 WHEN + 16 + + + 97 THEN 46 WHEN 11 + - - COUNT( * ) THEN NULL END, + COALESCE ( - SUM( DISTINCT 27 ), + 33 * 16 DIV CASE + + 15 WHEN + 89 - 90 THEN - - 99 WHEN + 91 * 16 THEN NULL WHEN + 48 * + + ( 51 ) * + 56 DIV - - ( - 28 ) DIV + + 48 * + + NULLIF ( - 98, + - 7 - + - 84 ) + MAX( ALL + 58 ) + - - 74 THEN NULL END DIV + 99 ) * - 21 - + 53 col2
----
NULL
514

skipif mysql # not compatible
query II rowsort label-2875
SELECT DISTINCT - 77 + + + 48 - + CASE - - 30 WHEN + 16 + + + 97 THEN 46 WHEN 11 + - - COUNT ( * ) THEN NULL END, + COALESCE ( - SUM ( DISTINCT 27 ), + 33 * 16 / CASE + + 15 WHEN + 89 - 90 THEN - - 99 WHEN + 91 * 16 THEN NULL WHEN + 48 * + + ( 51 ) * + 56 / - - ( - 28 ) / + + 48 * + + NULLIF ( - 98, + - 7 - + - 84 ) + MAX ( ALL + 58 ) + - - 74 THEN NULL END / + 99 ) * - 21 - + 53 col2
----
NULL
514

query II rowsort
SELECT - 36 * - + 72 col2, 69 + 38 + + 80
----
2592
187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2877
SELECT - NULLIF ( + + 77, 43 ) + - COUNT( * ) * - 43 DIV - - 44 * + + 11
----
-77

skipif mysql # not compatible
query I rowsort label-2877
SELECT - NULLIF ( + + 77, 43 ) + - COUNT ( * ) * - 43 / - - 44 * + + 11
----
-77

query I rowsort
SELECT + ( 29 ) + + - 60 + - 4
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2879
SELECT + CAST( - 7 AS SIGNED ) * + 90 * + CAST( ( 0 ) AS SIGNED ) * 43 * + 80 - - - 6 + - 9 * CASE + 13 WHEN - + 49 * - ( COALESCE ( 9, - ( - + 31 ) + - MAX( + 67 ) ) ) * - 65 + 18 - + 87 THEN NULL WHEN + 39 THEN COUNT( 3 ) END + - + 44 * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2879
SELECT + CAST ( - 7 AS INTEGER ) * + 90 * + CAST ( ( 0 ) AS INTEGER ) * 43 * + 80 - - - 6 + - 9 * CASE + 13 WHEN - + 49 * - ( COALESCE ( 9, - ( - + 31 ) + - MAX ( + 67 ) ) ) * - 65 + 18 - + 87 THEN NULL WHEN + 39 THEN COUNT ( 3 ) END + - + 44 * - 46
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2880
SELECT DISTINCT + 36 * + 73 * + 90, + COUNT( * ) AS col1
----
236520
1

skipif mysql # not compatible
query II rowsort label-2880
SELECT DISTINCT + 36 * + 73 * + 90, + COUNT ( * ) AS col1
----
236520
1

query I rowsort
SELECT - 44 * - 73 AS col1
----
3212

query I rowsort
SELECT DISTINCT 73 - + - 31 AS col1
----
104

query I rowsort
SELECT DISTINCT + 91 * + 90
----
8190

query II rowsort
SELECT ALL 8 - 97 * + 67 AS col1, CASE - 19 WHEN - 62 * - - 46 THEN + 76 END
----
-6491
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2885
SELECT + NULLIF ( 90, - - COALESCE ( - 99, + ( CASE - 1 WHEN - - 0 * + 22 + 66 THEN - 7 * - + COUNT( * ) WHEN + - 7 THEN NULL ELSE 58 * + 97 * - - 38 END ) * MAX( 86 ) * + 11 + - ( + + 43 ) + MAX( DISTINCT - 44 ) / - COUNT( * ) - - COUNT( * ) * - + CAST( - - 31 AS SIGNED ) / 97 ) * COUNT( * ) ) * + 2 AS col0, - 85
----
180
-85

skipif mysql # not compatible
query II rowsort label-2885
SELECT + NULLIF ( 90, - - COALESCE ( - 99, + ( CASE - 1 WHEN - - 0 * + 22 + 66 THEN - 7 * - + COUNT ( * ) WHEN + - 7 THEN NULL ELSE 58 * + 97 * - - 38 END ) * MAX ( 86 ) * + 11 + - ( + + 43 ) + MAX ( DISTINCT - 44 ) / - COUNT ( * ) - - COUNT ( * ) * - + CAST ( - - 31 AS INTEGER ) / 97 ) * COUNT ( * ) ) * + 2 AS col0, - 85
----
180
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT ALL + 74 * SUM( 61 ) AS col0
----
4514

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL + 74 * SUM ( 61 ) AS col0
----
4514

query I rowsort
SELECT ALL 72 - + + 68 AS col2
----
4

query I rowsort
SELECT + 84 * + 93
----
7812

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

query I rowsort
SELECT + 55 * - - 78 - + 21
----
4269

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2891
SELECT + 37 DIV 72 * 51 * + SUM( DISTINCT + 38 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2891
SELECT + 37 / 72 * 51 * + SUM ( DISTINCT + 38 ) AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2892
SELECT + CAST( NULL AS DECIMAL ) * - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2892
SELECT + CAST ( NULL AS REAL ) * - 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2893
SELECT DISTINCT ( + - COUNT( * ) ) * + 63 DIV - 94 + 68 col2
----
68

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT ( + - COUNT ( * ) ) * + 63 / - 94 + 68 col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2894
SELECT DISTINCT MAX( + + 4 ) DIV + - 93
----
0

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT MAX ( + + 4 ) / + - 93
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2895
SELECT ALL + + 68 AS col1, CAST( - COUNT( * ) AS SIGNED ) + + 87 AS col2
----
68
86

skipif mysql # not compatible
query II rowsort label-2895
SELECT ALL + + 68 AS col1, CAST ( - COUNT ( * ) AS INTEGER ) + + 87 AS col2
----
68
86

query I rowsort
SELECT ALL 7 * 45 AS col1
----
315

query I rowsort
SELECT DISTINCT + 24 * 0 + + - 30
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2898
SELECT - 60 + + + 54 + + 16 DIV + + 10 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-2898
SELECT - 60 + + + 54 + + 16 / + + 10 AS col1
----
-5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2900
SELECT 74 DIV + 45 + + - 53 * + ( ( + 42 ) )
----
-2225

skipif mysql # not compatible
query I rowsort label-2900
SELECT 74 / + 45 + + - 53 * + ( ( + 42 ) )
----
-2225

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2901
SELECT DISTINCT MIN( - + 37 ) DIV + - 87, + 15 - + 49 + + + CASE + - 79 WHEN COUNT( * ) * 22 * 72 * 88 * - 84 THEN - - 5 + + - 10 + MIN( DISTINCT 40 ) END + 12 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2901
SELECT DISTINCT MIN ( - + 37 ) / + - 87, + 15 - + 49 + + + CASE + - 79 WHEN COUNT ( * ) * 22 * 72 * 88 * - 84 THEN - - 5 + + - 10 + MIN ( DISTINCT 40 ) END + 12 AS col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL - MIN( + - 41 ) + - + ( 51 ) * 1 + + 55 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL - MIN ( + - 41 ) + - + ( 51 ) * 1 + + 55 AS col0
----
45

query I rowsort
SELECT 22 + - 77 AS col1
----
-55

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2905
SELECT DISTINCT + - COALESCE ( - COUNT( * ), - CAST( - - ( - COUNT( * ) ) AS SIGNED ) ) + - 56 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-2905
SELECT DISTINCT + - COALESCE ( - COUNT ( * ), - CAST ( - - ( - COUNT ( * ) ) AS INTEGER ) ) + - 56 AS col1
----
-55

query I rowsort
SELECT ALL - - 44 + 13
----
57

query I rowsort
SELECT ALL 23 + + + ( - 34 ) AS col1
----
-11

query I rowsort
SELECT DISTINCT + 6 + 64 + + + 36 - + + 21
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2909
SELECT ALL - 47 + 26 + + NULLIF ( 46, - CAST( + 7 AS SIGNED ) + + + 96 ) + + - 91 AS col2, - 27
----
-66
-27

skipif mysql # not compatible
query II rowsort label-2909
SELECT ALL - 47 + 26 + + NULLIF ( 46, - CAST ( + 7 AS INTEGER ) + + + 96 ) + + - 91 AS col2, - 27
----
-66
-27

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

skipif mysql # not compatible
query II rowsort label-2910
SELECT - + 79, - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col2
----
-79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT NULLIF ( + 79, - + 6 ) * - - COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-2911
SELECT NULLIF ( + 79, - + 6 ) * - - COUNT ( * ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-2912
SELECT DISTINCT + + COUNT( * ) * - 38 * - + 92, + 74 AS col2
----
3496
74

skipif mysql # not compatible
query II rowsort label-2912
SELECT DISTINCT + + COUNT ( * ) * - 38 * - + 92, + 74 AS col2
----
3496
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT COUNT( * ) - - 19 + - 28 * + NULLIF ( - - 3, 68 * + 70 ) col1
----
-64

skipif mysql # not compatible
query I rowsort label-2913
SELECT COUNT ( * ) - - 19 + - 28 * + NULLIF ( - - 3, 68 * + 70 ) col1
----
-64

query II rowsort
SELECT 26, + 15 col1
----
26
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT MIN( DISTINCT - 39 ) * - - 14 + + - 79 - - MAX( ALL - 10 ) AS col1
----
-635

skipif mysql # not compatible
query I rowsort label-2915
SELECT MIN ( DISTINCT - 39 ) * - - 14 + + - 79 - - MAX ( ALL - 10 ) AS col1
----
-635

query II rowsort
SELECT ALL 47 AS col1, + 47
----
47
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2917
SELECT 63 + - + COUNT( ALL + 49 ) + + 77 AS col0, - 76 + 7
----
139
-69

skipif mysql # not compatible
query II rowsort label-2917
SELECT 63 + - + COUNT ( ALL + 49 ) + + 77 AS col0, - 76 + 7
----
139
-69

query I rowsort
SELECT ALL + 78 - 55 AS col1
----
23

query II rowsort
SELECT - 3 col2, 24 AS col0
----
-3
24

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

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

query II rowsort
SELECT 99 AS col1, - 98 + + ( + + 97 ) AS col0
----
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2922
SELECT 68 DIV + + 4 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-2922
SELECT 68 / + + 4 AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2923
SELECT 4 * - + CASE + + CASE + COUNT( * ) WHEN ( - 62 ) * + 52 + 30 THEN 79 * - 74 + + + 99 - - 6 + - 88 * - COUNT( * ) + - MIN( DISTINCT 19 ) * CAST( 35 AS SIGNED ) + - AVG ( DISTINCT - + 67 ) WHEN - 76 THEN NULL ELSE 95 + - MAX( 82 ) - CAST( NULL AS DECIMAL ) * - 21 END WHEN 25 THEN 97 WHEN + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2923
SELECT 4 * - + CASE + + CASE + COUNT ( * ) WHEN ( - 62 ) * + 52 + 30 THEN 79 * - 74 + + + 99 - - 6 + - 88 * - COUNT ( * ) + - MIN ( DISTINCT 19 ) * CAST ( 35 AS INTEGER ) + - AVG ( DISTINCT - + 67 ) WHEN - 76 THEN NULL ELSE 95 + - MAX ( 82 ) - CAST ( NULL AS REAL ) * - 21 END WHEN 25 THEN 97 WHEN + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT DISTINCT - COUNT( * ) * - 15 * 74 AS col2
----
1110

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT - COUNT ( * ) * - 15 * 74 AS col2
----
1110

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT 78 + + MAX( + 39 ) + - 64 col2
----
53

skipif mysql # not compatible
query I rowsort label-2925
SELECT 78 + + MAX ( + 39 ) + - 64 col2
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-2926
SELECT COUNT( * ) * + + ( + - 53 ) * + + 17, 52 col2
----
-901
52

skipif mysql # not compatible
query II rowsort label-2926
SELECT COUNT ( * ) * + + ( + - 53 ) * + + 17, 52 col2
----
-901
52

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

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL + COUNT ( * ) * + 7 col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-2928
SELECT ALL - 88 * - + 19 AS col0, COUNT( ALL + 52 ) * + 18 * - - 72 AS col1
----
1672
1296

skipif mysql # not compatible
query II rowsort label-2928
SELECT ALL - 88 * - + 19 AS col0, COUNT ( ALL + 52 ) * + 18 * - - 72 AS col1
----
1672
1296

query I rowsort
SELECT ALL - 15 * - ( + 38 ) AS col2
----
570

query I rowsort
SELECT 97 + + 16 + - 20 AS col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-2931
SELECT ALL + 43 * SUM( - + 76 ) * - 49, + 35 - + - 70 AS col1
----
160132
105

skipif mysql # not compatible
query II rowsort label-2931
SELECT ALL + 43 * SUM ( - + 76 ) * - 49, + 35 - + - 70 AS col1
----
160132
105

query II rowsort
SELECT DISTINCT - 81 col2, 38 + + 95 AS col1
----
-81
133

query I rowsort
SELECT ALL + 64 + 65
----
129

query I rowsort
SELECT + 75 * - + 26
----
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT MIN( ALL ( - 9 ) ) * + CASE + - 92 WHEN - 60 THEN 75 ELSE - + 22 + + 96 END
----
-666

skipif mysql # not compatible
query I rowsort label-2935
SELECT MIN ( ALL ( - 9 ) ) * + CASE + - 92 WHEN - 60 THEN 75 ELSE - + 22 + + 96 END
----
-666

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT ALL - 3 + - COUNT( * ) - - CASE + - 35 WHEN CASE - 53 WHEN + 6 * + + 64 * + 40 THEN - + 64 * - 63 WHEN + 35 / + 6 + - 50 THEN SUM( DISTINCT - 88 ) + - COUNT( * ) ELSE NULL END THEN NULL WHEN ( + 14 ) * - 43 / + 43 + - - 3 * + 55 * - - 65 THEN ( + COUNT( * ) ) + + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL - 3 + - COUNT ( * ) - - CASE + - 35 WHEN CASE - 53 WHEN + 6 * + + 64 * + 40 THEN - + 64 * - 63 WHEN + 35 / + 6 + - 50 THEN SUM ( DISTINCT - 88 ) + - COUNT ( * ) ELSE NULL END THEN NULL WHEN ( + 14 ) * - 43 / + 43 + - - 3 * + 55 * - - 65 THEN ( + COUNT ( * ) ) + + + COUNT ( * ) END
----
NULL

query II rowsort
SELECT 87, + 16 AS col0
----
87
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT ALL + 29 + - MIN( 12 )
----
17

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL + 29 + - MIN ( 12 )
----
17

query I rowsort
SELECT DISTINCT 64 + + + 47 AS col1
----
111

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

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

query II rowsort
SELECT 24 AS col2, 28 + + 80 col1
----
24
108

query I rowsort
SELECT ALL - - 25 * 97 + + 67
----
2492

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT DISTINCT COUNT( * ) + - 90 + MAX( DISTINCT + + 84 ) - 79 + 13 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT COUNT ( * ) + - 90 + MAX ( DISTINCT + + 84 ) - 79 + 13 AS col2
----
-71

query I rowsort
SELECT ALL 35 * - 84 * - 51 * + 25 * 80
----
299880000

onlyif mysql # aggregate syntax: 
query II rowsort label-2947
SELECT 61 AS col0, MAX( 5 ) AS col1
----
61
5

skipif mysql # not compatible
query II rowsort label-2947
SELECT 61 AS col0, MAX ( 5 ) AS col1
----
61
5

query I rowsort
SELECT 24 + 6 + + - 66 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-2949
SELECT + COUNT( * ) * + + 79 + - 24 * - 67, - 32 AS col2
----
1687
-32

skipif mysql # not compatible
query II rowsort label-2949
SELECT + COUNT ( * ) * + + 79 + - 24 * - 67, - 32 AS col2
----
1687
-32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2950
SELECT + 1 * + NULLIF ( - CAST( NULL AS DECIMAL ), + - SUM( 69 ) ) - + 27 - 9 AS col2, MIN( 80 ) AS col1
----
NULL
80

skipif mysql # not compatible
query II rowsort label-2950
SELECT + 1 * + NULLIF ( - CAST ( NULL AS REAL ), + - SUM ( 69 ) ) - + 27 - 9 AS col2, MIN ( 80 ) AS col1
----
NULL
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2951
SELECT ALL - 52 DIV COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL - 52 / COUNT ( * ) AS col0
----
-52

query I rowsort
SELECT - 40 + + - 50
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT ALL COUNT( * ) - - MIN( 97 ) + + + 85 col1
----
183

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL COUNT ( * ) - - MIN ( 97 ) + + + 85 col1
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-2954
SELECT 88 + 64 DIV - 75 * 39
----
88

skipif mysql # not compatible
query I rowsort label-2954
SELECT 88 + 64 / - 75 * 39
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT 98 + + - NULLIF ( + 7, - COUNT( * ) ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-2955
SELECT 98 + + - NULLIF ( + 7, - COUNT ( * ) ) AS col0
----
91

query I rowsort
SELECT ALL 49 * 7 * + 53 AS col2
----
18179

onlyif mysql # DIV for integer division: 
query I rowsort label-2957
SELECT 13 DIV - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2957
SELECT 13 / - 93 AS col2
----
0

query I rowsort
SELECT - CASE + 19 WHEN + 66 - 73 THEN 19 + - 0 END
----
NULL

query II rowsort
SELECT DISTINCT 96 * 28 AS col1, + 33 + 41
----
2688
74

query I rowsort
SELECT DISTINCT 55 + - 41 * - + 44 AS col2
----
1859

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT ALL MIN( + - 43 ) + + 48 col1
----
5

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL MIN ( + - 43 ) + + 48 col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2962
SELECT - COALESCE ( - 45, + - 52 * 66 - - - NULLIF ( + 74, + NULLIF ( - - ( - 51 ), + - 72 / + 10 ) - + - AVG ( - 34 ) / + 82 + - 91 + - 12 ) - - NULLIF ( - - COUNT( + - 10 ), - + 29 ) * 65 * + - 62 - + CAST( NULL AS SIGNED ) - - 87, 80 * COUNT( DISTINCT 24 ) + 92 )
----
45

skipif mysql # not compatible
query I rowsort label-2962
SELECT - COALESCE ( - 45, + - 52 * 66 - - - NULLIF ( + 74, + NULLIF ( - - ( - 51 ), + - 72 / + 10 ) - + - AVG ( - 34 ) / + 82 + - 91 + - 12 ) - - NULLIF ( - - COUNT ( + - 10 ), - + 29 ) * 65 * + - 62 - + CAST ( NULL AS INTEGER ) - - 87, 80 * COUNT ( DISTINCT 24 ) + 92 )
----
45

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2964
SELECT - + SUM( + CAST( NULL AS DECIMAL ) ) AS col1, COALESCE ( - COUNT( * ), - CAST( NULL AS SIGNED ), - 85 ) + 26
----
NULL
25

skipif mysql # not compatible
query II rowsort label-2964
SELECT - + SUM ( + CAST ( NULL AS REAL ) ) AS col1, COALESCE ( - COUNT ( * ), - CAST ( NULL AS INTEGER ), - 85 ) + 26
----
NULL
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT ALL - + 2 + - SUM( DISTINCT 46 ) * - 51 + + 21
----
2365

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL - + 2 + - SUM ( DISTINCT 46 ) * - 51 + + 21
----
2365

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2966
SELECT - 95 / + COALESCE ( 69, 21, - 74 ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2966
SELECT - 95 / + COALESCE ( 69, 21, - 74 ) * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + - 35 * 82
----
-2870

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT ALL - + ( + COUNT( * ) ) * COUNT( * ) + + 26 + - 43 + + COALESCE ( - 81, ( - MIN( DISTINCT - + ( 68 ) ) ) + 89 ) + 87 * - 69 * + - 63
----
378090

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL - + ( + COUNT ( * ) ) * COUNT ( * ) + + 26 + - 43 + + COALESCE ( - 81, ( - MIN ( DISTINCT - + ( 68 ) ) ) + 89 ) + 87 * - 69 * + - 63
----
378090

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT DISTINCT - 6 * - - 79 - + - MIN( DISTINCT + 99 )
----
-375

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT - 6 * - - 79 - + - MIN ( DISTINCT + 99 )
----
-375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2971
SELECT DISTINCT + - COALESCE ( - - COALESCE ( + - 53, + 92, 72 + - 20 ), - CAST( NULL AS SIGNED ) + - + 5 ), + COUNT( ALL - - 87 ) DIV 65 AS col1
----
53
0

skipif mysql # not compatible
query II rowsort label-2971
SELECT DISTINCT + - COALESCE ( - - COALESCE ( + - 53, + 92, 72 + - 20 ), - CAST ( NULL AS INTEGER ) + - + 5 ), + COUNT ( ALL - - 87 ) / 65 AS col1
----
53
0

query I rowsort
SELECT - + 67 * + 26 AS col1
----
-1742

query I rowsort
SELECT DISTINCT + 23 * - ( + 98 )
----
-2254

query II rowsort
SELECT ALL + 37 AS col2, 4 + 99
----
37
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT + SUM( ALL 28 ) col0
----
28

skipif mysql # not compatible
query I rowsort label-2975
SELECT + SUM ( ALL 28 ) col0
----
28

query I rowsort
SELECT DISTINCT - 32 * - 47 AS col2
----
1504

query I rowsort
SELECT + COALESCE ( - + 66, 16, - 40 )
----
-66

query I rowsort
SELECT ALL 97 * 35 AS col2
----
3395

query II rowsort
SELECT DISTINCT 15 * 17 * + 64 AS col1, - 97 + - 56 AS col1
----
16320
-153

query I rowsort
SELECT + 44 * - 30 col2
----
-1320

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT + COUNT( * ) * + 73 - - + 10 * + - 49 * - 48 * - COUNT( - + CASE + 64 WHEN 20 THEN + 20 * + + ( - 8 ) END ) col1
----
73

skipif mysql # not compatible
query I rowsort label-2981
SELECT + COUNT ( * ) * + 73 - - + 10 * + - 49 * - 48 * - COUNT ( - + CASE + 64 WHEN 20 THEN + 20 * + + ( - 8 ) END ) col1
----
73

query I rowsort
SELECT + 20 * - - 53
----
1060

query I rowsort
SELECT + 32 + - 25 AS col0
----
7

query II rowsort
SELECT DISTINCT 66, 38 AS col2
----
66
38

query I rowsort
SELECT DISTINCT 55 + 13 * - + ( - + 91 )
----
1238

query I rowsort
SELECT ALL 14 + 4 * + + 39 col1
----
170

query I rowsort
SELECT + 84 * - ( - 54 ) * - - 87 AS col1
----
394632

query I rowsort
SELECT ALL 90 + + 31 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT DISTINCT COUNT( * ) + + ( - 96 ) + + + 9 + - 11
----
-97

skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT COUNT ( * ) + + ( - 96 ) + + + 9 + - 11
----
-97

query I rowsort
SELECT + ( 14 ) + 90
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-2991
SELECT + 78 - + ( + 75 ) DIV - COALESCE ( + 71, - + 22 ) + + 64 AS col0
----
143

skipif mysql # not compatible
query I rowsort label-2991
SELECT + 78 - + ( + 75 ) / - COALESCE ( + 71, - + 22 ) + + 64 AS col0
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2992
SELECT DISTINCT 42 * + NULLIF ( + + COUNT( + 74 ), 0 + - 66 ) DIV + + ( 55 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT 42 * + NULLIF ( + + COUNT ( + 74 ), 0 + - 66 ) / + + ( 55 ) AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-2993
SELECT + 54 + - COUNT ( * ) AS col0
----
53

query I rowsort
SELECT DISTINCT 96 * - 16 * - 71 + + - 86 AS col2
----
108970

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT ALL 1 + SUM( + 44 ) + + - 68 + 90 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL 1 + SUM ( + 44 ) + + - 68 + 90 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT + COUNT( DISTINCT + 46 ) + - ( + + 1 )
----
0

skipif mysql # not compatible
query I rowsort label-2996
SELECT + COUNT ( DISTINCT + 46 ) + - ( + + 1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT + 84 + + - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-2997
SELECT + 84 + + - COUNT ( * ) AS col0
----
83

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

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

query I rowsort
SELECT ALL + 43 - - ( - + 47 ) - 21 AS col0
----
-25

query II rowsort
SELECT 79 AS col0, 1 + - 87
----
79
-86

query I rowsort
SELECT DISTINCT 85 - - 44
----
129

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3004
SELECT + 79 DIV + MAX( ALL - 50 ) + + 65
----
64

skipif mysql # not compatible
query I rowsort label-3004
SELECT + 79 / + MAX ( ALL - 50 ) + + 65
----
64

query II rowsort
SELECT + - 28, ( - 14 ) AS col2
----
-28
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3006
SELECT - - 7 + + 92 * + - CAST( NULL AS SIGNED ) AS col1, 31 * - 73 AS col2
----
NULL
-2263

skipif mysql # not compatible
query II rowsort label-3006
SELECT - - 7 + + 92 * + - CAST ( NULL AS INTEGER ) AS col1, 31 * - 73 AS col2
----
NULL
-2263

onlyif mysql # aggregate syntax: 
query II rowsort label-3007
SELECT - 0 * - COUNT( * ) + + 39 AS col0, MAX( - 20 )
----
39
-20

skipif mysql # not compatible
query II rowsort label-3007
SELECT - 0 * - COUNT ( * ) + + 39 AS col0, MAX ( - 20 )
----
39
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3008
SELECT DISTINCT - SUM( 89 ) / + 69 - - + 13 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT - SUM ( 89 ) / + 69 - - + 13 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 55 * + ( 19 ) AS col1
----
1045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3010
SELECT - CAST( + + COUNT( * ) AS SIGNED ) + + COUNT( DISTINCT - 9 ) - 0 * + 10
----
0

skipif mysql # not compatible
query I rowsort label-3010
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) + + COUNT ( DISTINCT - 9 ) - 0 * + 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT - COUNT( DISTINCT 15 ) + 29 + 90 + + - 33 - + 97
----
-12

skipif mysql # not compatible
query I rowsort label-3011
SELECT - COUNT ( DISTINCT 15 ) + 29 + 90 + + - 33 - + 97
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT + 44 + COALESCE ( 7, - + 99 ) + + ( COUNT( * ) ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-3012
SELECT + 44 + COALESCE ( 7, - + 99 ) + + ( COUNT ( * ) ) AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3013
SELECT + NULLIF ( + 23, + 3 * ( - NULLIF ( 97, + 66 ) ) * CASE + 80 WHEN + 82 * + + 45 * 76 + - 42 + + + COUNT( * ) * + + CASE COUNT( * ) WHEN + 7 + + + 57 THEN NULL ELSE + 62 * + 67 + - CAST( - 49 AS DECIMAL ) END + + 79 THEN NULL ELSE - 36 END + - + 97 + + + 75 + + COALESCE ( 41, - + 60, - ( + 98 ) + + 32 ) ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3013
SELECT + NULLIF ( + 23, + 3 * ( - NULLIF ( 97, + 66 ) ) * CASE + 80 WHEN + 82 * + + 45 * 76 + - 42 + + + COUNT ( * ) * + + CASE COUNT ( * ) WHEN + 7 + + + 57 THEN NULL ELSE + 62 * + 67 + - CAST ( - 49 AS REAL ) END + + 79 THEN NULL ELSE - 36 END + - + 97 + + + 75 + + COALESCE ( 41, - + 60, - ( + 98 ) + + 32 ) ) AS col2
----
23

query I rowsort
SELECT + 20 * 72
----
1440

query I rowsort
SELECT DISTINCT ( - ( + + 74 ) ) * + 86 + - + 81 * - - 26 col0
----
-8470

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3017
SELECT DISTINCT + 51 * + 38 + - 77 * - - 17 + - CAST( NULL AS SIGNED ) + - 51 * + 0 AS col0, - COUNT( 12 ) DIV ( + + 33 ) + COUNT( * ) * + 75 DIV + - 47 + - + COUNT( * ) AS col0
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-3017
SELECT DISTINCT + 51 * + 38 + - 77 * - - 17 + - CAST ( NULL AS INTEGER ) + - 51 * + 0 AS col0, - COUNT ( 12 ) / ( + + 33 ) + COUNT ( * ) * + 75 / + - 47 + - + COUNT ( * ) AS col0
----
NULL
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3018
SELECT - NULLIF ( - + CAST( NULL AS SIGNED ), + NULLIF ( - 69, - 25 * + 80 - 6 ) + + 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3018
SELECT - NULLIF ( - + CAST ( NULL AS INTEGER ), + NULLIF ( - 69, - 25 * + 80 - 6 ) + + 37 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT ALL CASE 33 WHEN ( - - 16 ) THEN + 76 WHEN + - MAX( + 24 ) THEN - 64 ELSE - + 61 END + - - 12 * - - 70 * MIN( - 44 )
----
-37021

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL CASE 33 WHEN ( - - 16 ) THEN + 76 WHEN + - MAX ( + 24 ) THEN - 64 ELSE - + 61 END + - - 12 * - - 70 * MIN ( - 44 )
----
-37021

query I rowsort
SELECT ALL + 84 * + 94
----
7896

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT 23 + + - COUNT( * ) * - 51
----
74

skipif mysql # not compatible
query I rowsort label-3021
SELECT 23 + + - COUNT ( * ) * - 51
----
74

query I rowsort
SELECT ALL + 66 * 30 AS col0
----
1980

query I rowsort
SELECT DISTINCT 1 + 69 AS col1
----
70

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

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

query I rowsort
SELECT 42 + 92 + - 47 AS col1
----
87

query I rowsort
SELECT ALL 36 + - + 66 * 2 AS col0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3027
SELECT DISTINCT - 5 + - 62 + + COUNT( * ) - + CAST( NULL AS SIGNED ) / + 33 / - MAX( ALL - 92 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT - 5 + - 62 + + COUNT ( * ) - + CAST ( NULL AS INTEGER ) / + 33 / - MAX ( ALL - 92 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT DISTINCT 16 - + COALESCE ( - - 99, + 96 * + - COUNT( * ) )
----
-83

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT 16 - + COALESCE ( - - 99, + 96 * + - COUNT ( * ) )
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3029
SELECT DISTINCT - 14 DIV - - ( - + MIN( + 15 ) ) * - 96
----
0

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT - 14 / - - ( - + MIN ( + 15 ) ) * - 96
----
0

query I rowsort
SELECT COALESCE ( - + 99, ( COALESCE ( + - ( - NULLIF ( - 10, - 90 + ( + + 13 ) + - ( + 62 ) ) ), 27 ) ), 84 )
----
-99

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

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

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

skipif mysql # not compatible
query I rowsort label-3032
SELECT + ( COUNT ( * ) ) + 88 AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3033
SELECT DISTINCT + AVG ( ALL 86 ) * 34 / - CASE + + 10 WHEN 97 + - 85 * COALESCE ( 71, - - 21, - CAST( NULL AS SIGNED ) + - - 24 + - 48 ) * - MAX( - - 56 ) - COUNT( * ) + + 19 THEN + COALESCE ( + 4, - ( - 99 ) + - 92 + + 37, + - 53 + + 92 ) WHEN 40 * + 97 THEN + NULLIF ( - - 12, 69 ) ELSE + + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT + AVG ( ALL 86 ) * 34 / - CASE + + 10 WHEN 97 + - 85 * COALESCE ( 71, - - 21, - CAST ( NULL AS INTEGER ) + - - 24 + - 48 ) * - MAX ( - - 56 ) - COUNT ( * ) + + 19 THEN + COALESCE ( + 4, - ( - 99 ) + - 92 + + 37, + - 53 + + 92 ) WHEN 40 * + 97 THEN + NULLIF ( - - 12, 69 ) ELSE + + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT ALL NULLIF ( - 71, 87 ) - + ( + - 3 ) - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL NULLIF ( - 71, 87 ) - + ( + - 3 ) - COUNT ( * )
----
-69

query I rowsort
SELECT ALL 14 * + 52 AS col2
----
728

query I rowsort
SELECT + ( - 84 ) * + 23 col2
----
-1932

query I rowsort
SELECT ALL + 40 * 7
----
280

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3038
SELECT - CAST( 94 AS SIGNED ) AS col1, 16
----
-94
16

skipif mysql # not compatible
query II rowsort label-3038
SELECT - CAST ( 94 AS INTEGER ) AS col1, 16
----
-94
16

query I rowsort
SELECT DISTINCT 63 * - 43
----
-2709

onlyif mysql # aggregate syntax: 
query II rowsort label-3040
SELECT ALL - - MIN( - - 19 ) AS col2, + 82 AS col0
----
19
82

skipif mysql # not compatible
query II rowsort label-3040
SELECT ALL - - MIN ( - - 19 ) AS col2, + 82 AS col0
----
19
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT ALL - SUM( - 35 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL - SUM ( - 35 ) AS col0
----
35

query I rowsort
SELECT DISTINCT + 46 + 55 AS col2
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3043
SELECT + - 89 * - 54 * + 34 + + - 7 + 85 - MIN( + CAST( 34 AS SIGNED ) ) + - 86 - - 85
----
163447

skipif mysql # not compatible
query I rowsort label-3043
SELECT + - 89 * - 54 * + 34 + + - 7 + 85 - MIN ( + CAST ( 34 AS INTEGER ) ) + - 86 - - 85
----
163447

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT 98 * - CAST( + - 62 AS SIGNED ) * 51 AS col2
----
309876

skipif mysql # not compatible
query I rowsort label-3044
SELECT 98 * - CAST ( + - 62 AS INTEGER ) * 51 AS col2
----
309876

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3045
SELECT DISTINCT + 70 + - 38 - - CAST( - + ( - + ( - 49 ) ) AS SIGNED ) DIV - 57 * - 55 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3045
SELECT DISTINCT + 70 + - 38 - - CAST ( - + ( - + ( - 49 ) ) AS INTEGER ) / - 57 * - 55 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT ALL - 61 + - SUM( 55 ) + 36 * - 42 AS col2
----
-1628

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL - 61 + - SUM ( 55 ) + 36 * - 42 AS col2
----
-1628

query I rowsort
SELECT ALL 14 + ( 52 )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT ALL + 88 + CAST( NULL AS SIGNED ) + + + AVG ( ALL 92 ) / 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL + 88 + CAST ( NULL AS INTEGER ) + + + AVG ( ALL 92 ) / 97
----
NULL

query I rowsort
SELECT DISTINCT 32 * - 99 AS col2
----
-3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3050
SELECT ALL - CAST( NULL AS SIGNED ) + + - 3 * - - 70 * + + 82 * - 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL - CAST ( NULL AS INTEGER ) + + - 3 * - - 70 * + + 82 * - 87 AS col1
----
NULL

query II rowsort
SELECT 23 * - ( - + 58 ), 40 + 78 AS col0
----
1334
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3052
SELECT CASE + + 28 WHEN + 90 THEN 60 * - - 65 WHEN + + 15 * - - 3 - - - 3 + CASE + COUNT( 22 ) WHEN - + 7 - + CASE + 90 WHEN + 61 + - 48 THEN - - 94 * 61 * - 15 END * - - AVG ( DISTINCT - + 20 ) * 71 * + 12 THEN - 32 WHEN CAST( NULL AS SIGNED ) THEN + + 61 END * - 93 + + 55 THEN - - CAST( - 44 AS SIGNED ) * + 35 ELSE - + 51 END * 27 + + ( - + 51 ) + + 61 * + 35 * - + 98
----
-210658

skipif mysql # not compatible
query I rowsort label-3052
SELECT CASE + + 28 WHEN + 90 THEN 60 * - - 65 WHEN + + 15 * - - 3 - - - 3 + CASE + COUNT ( 22 ) WHEN - + 7 - + CASE + 90 WHEN + 61 + - 48 THEN - - 94 * 61 * - 15 END * - - AVG ( DISTINCT - + 20 ) * 71 * + 12 THEN - 32 WHEN CAST ( NULL AS INTEGER ) THEN + + 61 END * - 93 + + 55 THEN - - CAST ( - 44 AS INTEGER ) * + 35 ELSE - + 51 END * 27 + + ( - + 51 ) + + 61 * + 35 * - + 98
----
-210658

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL - COUNT( * ) + - 14 * + NULLIF ( - COUNT( * ), + + 95 * + + 84 * - COUNT( * ) * 89 * + 90 + - 40 + - 14 + + + 34 * - 22 + + NULLIF ( - 25, - 59 ) / 8 )
----
13

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL - COUNT ( * ) + - 14 * + NULLIF ( - COUNT ( * ), + + 95 * + + 84 * - COUNT ( * ) * 89 * + 90 + - 40 + - 14 + + + 34 * - 22 + + NULLIF ( - 25, - 59 ) / 8 )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3054
SELECT - 84 * - + 15 * + 90 + 75 / - CAST( NULL AS SIGNED ) - - 58 * - CAST( NULL AS SIGNED ) * - 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3054
SELECT - 84 * - + 15 * + 90 + 75 / - CAST ( NULL AS INTEGER ) - - 58 * - CAST ( NULL AS INTEGER ) * - 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT COUNT( * ) * - 0 * - - 3 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3055
SELECT COUNT ( * ) * - 0 * - - 3 AS col0
----
0

query II rowsort
SELECT - 30 AS col1, - 61 col0
----
-30
-61

query I rowsort
SELECT 22 + - + 98 + + 64 AS col1
----
-12

query I rowsort
SELECT ALL - 26 - NULLIF ( + ( 70 ), 61 ) AS col1
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3059
SELECT COUNT( * ) + COUNT( * ) DIV - ( 22 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3059
SELECT COUNT ( * ) + COUNT ( * ) / - ( 22 ) + COUNT ( * )
----
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3061
SELECT - COUNT( DISTINCT COALESCE ( - CAST( + 87 AS SIGNED ), + CAST( NULL AS DECIMAL ) ) ) * 89 * + - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-3061
SELECT - COUNT ( DISTINCT COALESCE ( - CAST ( + 87 AS INTEGER ), + CAST ( NULL AS REAL ) ) ) * 89 * + - COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT DISTINCT + SUM( + + 80 ) / + CASE + + 4 WHEN 87 / + + 95 + + - 93 THEN - 5 * + 4 * + + COUNT( * ) + + - 41 END * 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT + SUM ( + + 80 ) / + CASE + + 4 WHEN 87 / + + 95 + + - 93 THEN - 5 * + 4 * + + COUNT ( * ) + + - 41 END * 31 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT ALL + - COUNT( * ) * - 69 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL + - COUNT ( * ) * - 69 AS col1
----
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT - COUNT( * ) - - - 0 * + 8 * - - 67 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3066
SELECT - COUNT ( * ) - - - 0 * + 8 * - - 67 AS col2
----
-1

query I rowsort
SELECT + 41 * + 9 + - - 65 AS col2
----
434

query I rowsort
SELECT - - CASE + 69 WHEN - 6 THEN NULL WHEN + 77 THEN NULL WHEN - - 28 / + 93 / - + 29 + - 84 THEN NULL ELSE 12 END
----
12

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3070
SELECT NULLIF ( - 27, + 5 ) + - NULLIF ( + COUNT( * ), COALESCE ( 49, - CASE - + COUNT( * ) WHEN - - CASE 22 WHEN 90 + + 97 * MIN( ALL - COALESCE ( - 25, 97 * - 94, 35 ) ) THEN NULL ELSE - - 99 END THEN 90 - + + 7 ELSE NULL END + + 93, - CAST( NULL AS SIGNED ) ) - - COUNT( * ) ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-3070
SELECT NULLIF ( - 27, + 5 ) + - NULLIF ( + COUNT ( * ), COALESCE ( 49, - CASE - + COUNT ( * ) WHEN - - CASE 22 WHEN 90 + + 97 * MIN ( ALL - COALESCE ( - 25, 97 * - 94, 35 ) ) THEN NULL ELSE - - 99 END THEN 90 - + + 7 ELSE NULL END + + 93, - CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) ) AS col0
----
-28

query I rowsort
SELECT + 68 + 81 AS col0
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3072
SELECT 58 DIV COUNT( * ) - - - 76 col2
----
-18

skipif mysql # not compatible
query I rowsort label-3072
SELECT 58 / COUNT ( * ) - - - 76 col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT DISTINCT + COUNT( * ) * 73 * + - ( - 28 ) + 93 + + 93 - + 99
----
2131

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT + COUNT ( * ) * 73 * + - ( - 28 ) + 93 + + 93 - + 99
----
2131

query I rowsort
SELECT ( - + 90 ) + - - 18 + + + 58 + 83 + - 74 * - 57 * 77
----
324855

query II rowsort
SELECT ALL 77, - 42 col2
----
77
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT 6 + MIN( - 52 )
----
-46

skipif mysql # not compatible
query I rowsort label-3076
SELECT 6 + MIN ( - 52 )
----
-46

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

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL COUNT ( * ) / + 10 * 43
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3078
SELECT 37 DIV + 12
----
3

skipif mysql # not compatible
query I rowsort label-3078
SELECT 37 / + 12
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3079
SELECT ALL - + 99 DIV - 80 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL - + 99 / - 80 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3080
SELECT DISTINCT - 55 col1, MAX( - + CAST( NULL AS SIGNED ) )
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-3080
SELECT DISTINCT - 55 col1, MAX ( - + CAST ( NULL AS INTEGER ) )
----
-55
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3081
SELECT + + 28 DIV - 62 + 68 + - - 71 + 88 AS col2
----
227

skipif mysql # not compatible
query I rowsort label-3081
SELECT + + 28 / - 62 + 68 + - - 71 + 88 AS col2
----
227

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

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

query I rowsort
SELECT ALL 98 * - 0 + ( - 77 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3084
SELECT CAST( NULL AS SIGNED ) * - - 80 AS col1, - MIN( - + 18 ) * - + 55 / 22 + + 48 * + 38 + - - ( - CAST( NULL AS SIGNED ) ) * 90 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3084
SELECT CAST ( NULL AS INTEGER ) * - - 80 AS col1, - MIN ( - + 18 ) * - + 55 / 22 + + 48 * + 38 + - - ( - CAST ( NULL AS INTEGER ) ) * 90 AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3085
SELECT + COUNT( * ) * + - CAST( CASE - MAX( DISTINCT + 12 ) WHEN - 64 + + 75 - + 92 / + 63 - + COUNT( * ) + + - 8 THEN NULL WHEN 9 THEN + COALESCE ( 99, - 74, - - CASE WHEN NULL < - COUNT( * ) THEN - COUNT( DISTINCT CAST( - - CAST( ( 22 ) AS SIGNED ) AS SIGNED ) ) END ) - + - 8 END AS SIGNED ) + + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT + COUNT ( * ) * + - CAST ( CASE - MAX ( DISTINCT + 12 ) WHEN - 64 + + 75 - + 92 / + 63 - + COUNT ( * ) + + - 8 THEN NULL WHEN 9 THEN + COALESCE ( 99, - 74, - - CASE WHEN NULL < - COUNT ( * ) THEN - COUNT ( DISTINCT CAST ( - - CAST ( ( 22 ) AS INTEGER ) AS INTEGER ) ) END ) - + - 8 END AS INTEGER ) + + 33 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT DISTINCT CASE ( - 33 ) WHEN + SUM( + 87 ) - 71 THEN NULL WHEN - + ( - + CASE - 21 WHEN - 20 THEN NULL WHEN 34 * - 97 - 70 THEN NULL ELSE + + 25 + + 0 END ) + 20 THEN NULLIF ( - - 97, 32 * + 97 + ( 18 ) * 73 ) ELSE NULL END * MAX( + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT CASE ( - 33 ) WHEN + SUM ( + 87 ) - 71 THEN NULL WHEN - + ( - + CASE - 21 WHEN - 20 THEN NULL WHEN 34 * - 97 - 70 THEN NULL ELSE + + 25 + + 0 END ) + 20 THEN NULLIF ( - - 97, 32 * + 97 + ( 18 ) * 73 ) ELSE NULL END * MAX ( + 97 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT DISTINCT 62 * COUNT( * ) + 72 AS col2
----
134

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT 62 * COUNT ( * ) + 72 AS col2
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-3088
SELECT ALL 97 * 9 DIV - 96
----
-9

skipif mysql # not compatible
query I rowsort label-3088
SELECT ALL 97 * 9 / - 96
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3089
SELECT CAST( ( 88 ) AS SIGNED ) + - 5 + - + 38
----
45

skipif mysql # not compatible
query I rowsort label-3089
SELECT CAST ( ( 88 ) AS INTEGER ) + - 5 + - + 38
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3090
SELECT ALL - 79 * + 57 + CAST( - 41 AS SIGNED ) - 51 * + 7 AS col1
----
-4901

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL - 79 * + 57 + CAST ( - 41 AS INTEGER ) - 51 * + 7 AS col1
----
-4901

onlyif mysql # aggregate syntax: 
query II rowsort label-3091
SELECT ALL + 71 AS col2, MAX( - 96 )
----
71
-96

skipif mysql # not compatible
query II rowsort label-3091
SELECT ALL + 71 AS col2, MAX ( - 96 )
----
71
-96

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3093
SELECT + COUNT( * ) AS col1, 96 + - - 86 AS col1
----
1
182

skipif mysql # not compatible
query II rowsort label-3093
SELECT + COUNT ( * ) AS col1, 96 + - - 86 AS col1
----
1
182

onlyif mysql # DIV for integer division: 
query II rowsort label-3094
SELECT ALL 19 DIV 91 AS col2, + 52
----
0
52

skipif mysql # not compatible
query II rowsort label-3094
SELECT ALL 19 / 91 AS col2, + 52
----
0
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT - 31 + + 47 * COUNT( * ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3095
SELECT - 31 + + 47 * COUNT ( * ) AS col1
----
16

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( - 59, 16 - - + 54 ) * - 38
----
-2242

onlyif mysql # DIV for integer division: 
query I rowsort label-3098
SELECT DISTINCT 83 DIV 71
----
1

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT 83 / 71
----
1

query I rowsort
SELECT ALL - 94 - + 8 AS col0
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-3100
SELECT - 13 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-3100
SELECT - 13 / + 70
----
0

query I rowsort
SELECT DISTINCT 18 * 6
----
108

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3102
SELECT ALL ( 22 ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL ( 22 ) * CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT - - 69 + + 36 - - 19 * + + 32 * 27 + 90, + 5 AS col2
----
16611
5

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3105
SELECT 66 AS col0, - NULLIF ( - 38, CAST( - - COUNT( * ) AS SIGNED ) * - 42 )
----
66
38

skipif mysql # not compatible
query II rowsort label-3105
SELECT 66 AS col0, - NULLIF ( - 38, CAST ( - - COUNT ( * ) AS INTEGER ) * - 42 )
----
66
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3106
SELECT - + 95 + 26 + - 81 + + CAST( + 15 AS SIGNED ) AS col2
----
-135

skipif mysql # not compatible
query I rowsort label-3106
SELECT - + 95 + 26 + - 81 + + CAST ( + 15 AS INTEGER ) AS col2
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT NULLIF ( - + 42, - COUNT( * ) ) col0
----
-42

skipif mysql # not compatible
query I rowsort label-3107
SELECT NULLIF ( - + 42, - COUNT ( * ) ) col0
----
-42

query I rowsort
SELECT - 9 * - 12 * - 44 * + 82 AS col1
----
-389664

query II rowsort
SELECT DISTINCT - 24 AS col2, + ( + + 45 ) * + + 24 AS col0
----
-24
1080

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3110
SELECT 10 AS col0, 47 DIV + COUNT( * )
----
10
47

skipif mysql # not compatible
query II rowsort label-3110
SELECT 10 AS col0, 47 / + COUNT ( * )
----
10
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3111
SELECT ALL 94 col1, NULLIF ( - + 30, - - COUNT( * ) )
----
94
-30

skipif mysql # not compatible
query II rowsort label-3111
SELECT ALL 94 col1, NULLIF ( - + 30, - - COUNT ( * ) )
----
94
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-3112
SELECT DISTINCT - - 38 + + COUNT( * ) * - + 43 * - - COUNT( * ) AS col1, + 4 * - 79 AS col0
----
-5
-316

skipif mysql # not compatible
query II rowsort label-3112
SELECT DISTINCT - - 38 + + COUNT ( * ) * - + 43 * - - COUNT ( * ) AS col1, + 4 * - 79 AS col0
----
-5
-316

query I rowsort
SELECT DISTINCT - 90 * + 85 AS col1
----
-7650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3114
SELECT - + 57 DIV + + COALESCE ( - - ( - COUNT( * ) ), - COALESCE ( - COUNT( * ), + NULLIF ( + - 3, + + COUNT( * ) ), - + MAX( DISTINCT 76 ) ) * + 84, 70, + COUNT( 39 ) ) + 72 + - - 42 * - COUNT( * ) - + - 88 AS col0
----
175

skipif mysql # not compatible
query I rowsort label-3114
SELECT - + 57 / + + COALESCE ( - - ( - COUNT ( * ) ), - COALESCE ( - COUNT ( * ), + NULLIF ( + - 3, + + COUNT ( * ) ), - + MAX ( DISTINCT 76 ) ) * + 84, 70, + COUNT ( 39 ) ) + 72 + - - 42 * - COUNT ( * ) - + - 88 AS col0
----
175

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

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

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

query II rowsort
SELECT - + 85 col2, 1 * - 3 + 31 col2
----
-85
28

query I rowsort
SELECT + 25 + + 26 * - - 76 AS col1
----
2001

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT ALL - + 96 + - COUNT( * ) + - 46 AS col1
----
-143

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL - + 96 + - COUNT ( * ) + - 46 AS col1
----
-143

query I rowsort
SELECT DISTINCT - NULLIF ( - - 63, + 29 + - 0 - 22 * + + 93 - - 69 ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT ALL - 96 + COALESCE ( - 24, - + NULLIF ( - MIN( ALL 96 ), + - 56 * - + 26 ) ) AS col2
----
-120

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL - 96 + COALESCE ( - 24, - + NULLIF ( - MIN ( ALL 96 ), + - 56 * - + 26 ) ) AS col2
----
-120

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

skipif mysql # not compatible
query I rowsort label-3122
SELECT - CAST ( NULL AS INTEGER ) * - - 73 * + 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3123
SELECT DISTINCT 58 DIV + 37 + - - ( - - 30 ) * + MIN( - 82 ) + + 74
----
-2385

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT 58 / + 37 + - - ( - - 30 ) * + MIN ( - 82 ) + + 74
----
-2385

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3124
SELECT DISTINCT - 35 DIV 40 * - 20 + - NULLIF ( + + COUNT( - + 55 ), - 90 + ( + 68 ) * COUNT( * ) ), 14 AS col0
----
-1
14

skipif mysql # not compatible
query II rowsort label-3124
SELECT DISTINCT - 35 / 40 * - 20 + - NULLIF ( + + COUNT ( - + 55 ), - 90 + ( + 68 ) * COUNT ( * ) ), 14 AS col0
----
-1
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT ALL + 58 * + CASE + + 65 WHEN - + MIN( DISTINCT + 96 ) THEN NULL WHEN + 6 THEN NULL WHEN - 17 THEN 47 ELSE + - ( - 16 ) END - + 45
----
883

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL + 58 * + CASE + + 65 WHEN - + MIN ( DISTINCT + 96 ) THEN NULL WHEN + 6 THEN NULL WHEN - 17 THEN 47 ELSE + - ( - 16 ) END - + 45
----
883

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3127
SELECT + CASE - 77 WHEN 88 + - + COUNT( * ) * 61 THEN - 7 / 44 END AS col1, 31
----
NULL
31

skipif mysql # not compatible
query II rowsort label-3127
SELECT + CASE - 77 WHEN 88 + - + COUNT ( * ) * 61 THEN - 7 / 44 END AS col1, 31
----
NULL
31

query II rowsort
SELECT ALL 13 * 82 AS col0, - 94
----
1066
-94

query I rowsort
SELECT DISTINCT 42 * + - 56 AS col0
----
-2352

query I rowsort
SELECT + 72 * + + 25 * - 65 * + 70
----
-8190000

query I rowsort
SELECT + 59 + - + 21
----
38

query I rowsort
SELECT + 23 + + ( + ( - - 23 ) )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3133
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) / - NULLIF ( - CAST( + MAX( DISTINCT + 17 ) AS SIGNED ), + + 69 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3133
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) / - NULLIF ( - CAST ( + MAX ( DISTINCT + 17 ) AS INTEGER ), + + 69 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT - - 28 * COUNT( * ) + - - 43 * 55 * 8 + - 33
----
18915

skipif mysql # not compatible
query I rowsort label-3134
SELECT - - 28 * COUNT ( * ) + - - 43 * 55 * 8 + - 33
----
18915

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT ALL + MAX( 33 ) * - - 76 + + - 1
----
2507

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL + MAX ( 33 ) * - - 76 + + - 1
----
2507

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3136
SELECT + CAST( + COUNT( * ) AS SIGNED ) + + 72 col2
----
73

skipif mysql # not compatible
query I rowsort label-3136
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + + 72 col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3137
SELECT ALL + CAST( + 79 AS SIGNED ) * - 4 * - + 14 * 82 * 98
----
35551264

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL + CAST ( + 79 AS INTEGER ) * - 4 * - + 14 * 82 * 98
----
35551264

onlyif mysql # DIV for integer division: 
query I rowsort label-3138
SELECT + - 47 DIV - 63 + - 97 col2
----
-97

skipif mysql # not compatible
query I rowsort label-3138
SELECT + - 47 / - 63 + - 97 col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT ALL - - 36 * - CASE - 68 WHEN 53 / 65 THEN - NULLIF ( + COUNT( * ), + 76 ) * 95 * - 52 + - 79 WHEN + - 98 THEN - 7 WHEN + 86 THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL - - 36 * - CASE - 68 WHEN 53 / 65 THEN - NULLIF ( + COUNT ( * ), + 76 ) * 95 * - 52 + - 79 WHEN + - 98 THEN - 7 WHEN + 86 THEN NULL ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT ALL + 8 + COALESCE ( + 79, - - COUNT( * ) ) - 72
----
15

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL + 8 + COALESCE ( + 79, - - COUNT ( * ) ) - 72
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT + + 28 + 20 * - COUNT( * ) col1
----
8

skipif mysql # not compatible
query I rowsort label-3141
SELECT + + 28 + 20 * - COUNT ( * ) col1
----
8

query I rowsort
SELECT - + 22 + - 82
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT ALL - - 44 * + 73 * - COUNT( * ) + + - 2
----
-3214

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL - - 44 * + 73 * - COUNT ( * ) + + - 2
----
-3214

query I rowsort
SELECT - 14 + 53
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-3145
SELECT DISTINCT + COUNT( DISTINCT - + 87 ) AS col0, 36
----
1
36

skipif mysql # not compatible
query II rowsort label-3145
SELECT DISTINCT + COUNT ( DISTINCT - + 87 ) AS col0, 36
----
1
36

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

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

query I rowsort
SELECT ALL - - ( + 86 ) + - 83 * + 19 + ( + ( - ( - 57 ) ) )
----
-1434

onlyif mysql # aggregate syntax: 
query II rowsort label-3148
SELECT - SUM( DISTINCT 46 ) + + CASE - 89 WHEN - 37 THEN - ( + 78 ) END + - 4 AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3148
SELECT - SUM ( DISTINCT 46 ) + + CASE - 89 WHEN - 37 THEN - ( + 78 ) END + - 4 AS col1, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT - COUNT( DISTINCT - + 51 ) + - ( COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-3149
SELECT - COUNT ( DISTINCT - + 51 ) + - ( COUNT ( * ) )
----
-2

query II rowsort
SELECT DISTINCT NULLIF ( - - 77, + 73 * 70 ) AS col0, 89 - + 69 col1
----
77
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3151
SELECT ALL - CAST( NULL AS SIGNED ) * - CASE - 56 WHEN 1 THEN - + NULLIF ( + - 58, + 40 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL - CAST ( NULL AS INTEGER ) * - CASE - 56 WHEN 1 THEN - + NULLIF ( + - 58, + 40 ) END col0
----
NULL

query I rowsort
SELECT 97 * - - 51 * 87 AS col2
----
430389

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3153
SELECT + 52, + COUNT( * ) + 32 DIV - 95 * - 4 + + 32 - + - 21 * - 25 * + + 96 AS col1
----
52
-50367

skipif mysql # not compatible
query II rowsort label-3153
SELECT + 52, + COUNT ( * ) + 32 / - 95 * - 4 + + 32 - + - 21 * - 25 * + + 96 AS col1
----
52
-50367

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3154
SELECT DISTINCT + ( 0 ) * - - 7 * + ( + COUNT( * ) ) DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT + ( 0 ) * - - 7 * + ( + COUNT ( * ) ) / - 62
----
0

query II rowsort
SELECT ALL - 77, 87 * + - 60 AS col2
----
-77
-5220

query I rowsort
SELECT 30 * - 41 + ( - 65 ) AS col2
----
-1295

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

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT ( + COUNT ( * ) ) - 22 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3158
SELECT ALL - 96 AS col0, COUNT( * ) * + 24 * + + 34 AS col0
----
-96
816

skipif mysql # not compatible
query II rowsort label-3158
SELECT ALL - 96 AS col0, COUNT ( * ) * + 24 * + + 34 AS col0
----
-96
816

onlyif mysql # DIV for integer division: 
query II rowsort label-3159
SELECT ALL - 67, + 9 DIV - 44 - + + 81 * - 54 AS col2
----
-67
4374

skipif mysql # not compatible
query II rowsort label-3159
SELECT ALL - 67, + 9 / - 44 - + + 81 * - 54 AS col2
----
-67
4374

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT ALL 66 DIV + 61 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL 66 / + 61 AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT COUNT( * ) + - 87 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-3162
SELECT COUNT ( * ) + - 87 AS col0
----
-86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3163
SELECT DISTINCT + CAST( + 84 AS SIGNED ) DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-3163
SELECT DISTINCT + CAST ( + 84 AS INTEGER ) / 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT ALL - SUM( - 65 )
----
65

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL - SUM ( - 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ALL + COUNT( + ( + 29 ) ) + + 84 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL + COUNT ( + ( + 29 ) ) + + 84 AS col0
----
85

query II rowsort
SELECT 65 AS col2, + 82
----
65
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3167
SELECT ALL - CAST( CASE 8 WHEN - 17 THEN CASE - 80 WHEN + 92 THEN + 86 ELSE NULL END * - - 79 / 51 + + + ( - - 61 ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL - CAST ( CASE 8 WHEN - 17 THEN CASE - 80 WHEN + 92 THEN + 86 ELSE NULL END * - - 79 / 51 + + + ( - - 61 ) END AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 69 + + 5
----
74

query I rowsort
SELECT ( 45 ) * - 30
----
-1350

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

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL + 12 + COUNT ( * ) AS col0
----
13

query I rowsort
SELECT DISTINCT 97 + + 97 * 1 AS col1
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT ALL 1 + - MIN( DISTINCT - 23 ) col1
----
24

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL 1 + - MIN ( DISTINCT - 23 ) col1
----
24

query I rowsort
SELECT 92 * 37 AS col2
----
3404

query II rowsort
SELECT - - 22, - 30 AS col2
----
22
-30

query II rowsort
SELECT ALL + 56 col1, + ( - 54 )
----
56
-54

query I rowsort
SELECT 15 * + + ( + 78 ) * + 44
----
51480

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

skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT - MAX ( - 16 )
----
16

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

query II rowsort
SELECT - 25 col0, - 0 AS col0
----
-25
0

query I rowsort
SELECT ALL + 36 - - + 27 AS col0
----
63

query I rowsort
SELECT ALL - NULLIF ( 83, - 55 ) - 69 AS col2
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT ALL 68 * - NULLIF ( + COUNT( * ), - 43 / + NULLIF ( - + COUNT( * ), + 15 ) + COUNT( * ) - - - 6 )
----
-68

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL 68 * - NULLIF ( + COUNT ( * ), - 43 / + NULLIF ( - + COUNT ( * ), + 15 ) + COUNT ( * ) - - - 6 )
----
-68

query I rowsort
SELECT 32 * + 17
----
544

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT DISTINCT - MAX( - 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT - MAX ( - 82 ) AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3185
SELECT ALL + NULLIF ( - ( - 63 ), 26 + + CAST( NULL AS SIGNED ) ) * COALESCE ( + - 99, + - 31 ) - - COALESCE ( - - COALESCE ( + NULLIF ( 7, + 24 - + 65 + - 16 + - 49 ), 43 ), ( ( - CAST( 13 AS SIGNED ) ) ) ) - + 18 DIV + - 60
----
-6230

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL + NULLIF ( - ( - 63 ), 26 + + CAST ( NULL AS INTEGER ) ) * COALESCE ( + - 99, + - 31 ) - - COALESCE ( - - COALESCE ( + NULLIF ( 7, + 24 - + 65 + - 16 + - 49 ), 43 ), ( ( - CAST ( 13 AS INTEGER ) ) ) ) - + 18 / + - 60
----
-6230

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

skipif mysql # not compatible
query I rowsort label-3186
SELECT ( + 49 ) * - + ( + COUNT ( * ) ) - + 90 AS col0
----
-139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3187
SELECT 81 * 70 * + 63 - + + 28 + ( CAST( - + 13 AS SIGNED ) ) + + 77 col2
----
357246

skipif mysql # not compatible
query I rowsort label-3187
SELECT 81 * 70 * + 63 - + + 28 + ( CAST ( - + 13 AS INTEGER ) ) + + 77 col2
----
357246

onlyif mysql # aggregate syntax: 
query II rowsort label-3188
SELECT 99 * + COUNT( * ) - - - NULLIF ( + 76, 16 ) AS col2, + 61 * + - 47 AS col0
----
23
-2867

skipif mysql # not compatible
query II rowsort label-3188
SELECT 99 * + COUNT ( * ) - - - NULLIF ( + 76, 16 ) AS col2, + 61 * + - 47 AS col0
----
23
-2867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3189
SELECT AVG ( - - CAST( NULL AS SIGNED ) ) / - - 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT AVG ( - - CAST ( NULL AS INTEGER ) ) / - - 55 AS col0
----
NULL

query I rowsort
SELECT ALL + 72 + + 20
----
92

query I rowsort
SELECT 47 * 56 * - 56 AS col1
----
-147392

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT ALL - COALESCE ( - COUNT( * ), - COUNT( * ), - - 49 * - ( COALESCE ( + - ( - 29 ), - 49, - - 0 * + 81 + + COUNT( * ) + - 27 * + 37 ) ) + COALESCE ( 55, COUNT( * ) + 57 ) * + - 91 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL - COALESCE ( - COUNT ( * ), - COUNT ( * ), - - 49 * - ( COALESCE ( + - ( - 29 ), - 49, - - 0 * + 81 + + COUNT ( * ) + - 27 * + 37 ) ) + COALESCE ( 55, COUNT ( * ) + 57 ) * + - 91 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3193
SELECT DISTINCT + + ( + 19 ) + - + 63 DIV - 41
----
20

skipif mysql # not compatible
query I rowsort label-3193
SELECT DISTINCT + + ( + 19 ) + - + 63 / - 41
----
20

query I rowsort
SELECT ALL + - 65 + 24 col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT DISTINCT - - 2 + + COUNT( * ) - + 21 + - - 77 + - 24 + 92 * - 58 * - 91 col2
----
485611

skipif mysql # not compatible
query I rowsort label-3195
SELECT DISTINCT - - 2 + + COUNT ( * ) - + 21 + - - 77 + - 24 + 92 * - 58 * - 91 col2
----
485611

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3197
SELECT ALL 85 + 87 * - MAX( DISTINCT 24 ) AS col0, - 55 * 34 * + 31 + COUNT( + 20 ) - - 30 + - 18 * + 93
----
-2003
-59613

skipif mysql # not compatible
query II rowsort label-3197
SELECT ALL 85 + 87 * - MAX ( DISTINCT 24 ) AS col0, - 55 * 34 * + 31 + COUNT ( + 20 ) - - 30 + - 18 * + 93
----
-2003
-59613

onlyif mysql # DIV for integer division: 
query I rowsort label-3198
SELECT ALL - - 90 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL - - 90 / 97
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3199
SELECT + 69 DIV + COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-3199
SELECT + 69 / + COUNT ( * ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-3200
SELECT 50 * - COUNT( * ) AS col1, + 93 + 84 + NULLIF ( + + CASE 76 WHEN - 70 * - - 88 THEN 73 END, 44 ) AS col0
----
-50
NULL

skipif mysql # not compatible
query II rowsort label-3200
SELECT 50 * - COUNT ( * ) AS col1, + 93 + 84 + NULLIF ( + + CASE 76 WHEN - 70 * - - 88 THEN 73 END, 44 ) AS col0
----
-50
NULL

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

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

query I rowsort
SELECT + 81 * - 36 + - 68 * - 15 + - 25 AS col0
----
-1921

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3203
SELECT + CAST( 45 AS SIGNED ) + + 49
----
94

skipif mysql # not compatible
query I rowsort label-3203
SELECT + CAST ( 45 AS INTEGER ) + + 49
----
94

query I rowsort
SELECT DISTINCT + 6 * - 82 + + 34 AS col2
----
-458

query I rowsort
SELECT + 39 + NULLIF ( 43, 79 * - 71 ) - + 95 + 40 + - 99 * + - 81 + - + 57
----
7989

query II rowsort
SELECT DISTINCT 41 AS col0, - 62 + + - 22
----
41
-84

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3208
SELECT + 26 / + CASE - 74 WHEN 93 / - MIN( + 5 ) THEN NULL WHEN + + COUNT( * ) THEN + 27 END, COUNT( * ) + - 25 * - 21 - - - 52 col1
----
NULL
474

skipif mysql # not compatible
query II rowsort label-3208
SELECT + 26 / + CASE - 74 WHEN 93 / - MIN ( + 5 ) THEN NULL WHEN + + COUNT ( * ) THEN + 27 END, COUNT ( * ) + - 25 * - 21 - - - 52 col1
----
NULL
474

query I rowsort
SELECT + 3 + + + 84
----
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3210
SELECT ALL 49 AS col0, 14 * - + COUNT( * ) + + - 13 * - CAST( NULL AS DECIMAL ) AS col0
----
49
NULL

skipif mysql # not compatible
query II rowsort label-3210
SELECT ALL 49 AS col0, 14 * - + COUNT ( * ) + + - 13 * - CAST ( NULL AS REAL ) AS col0
----
49
NULL

query II rowsort
SELECT DISTINCT 51 AS col1, 11 AS col0
----
51
11

query I rowsort
SELECT ALL 90 * - 14 AS col0
----
-1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3213
SELECT + 96 / - CAST( NULL AS SIGNED ) * CAST( - COUNT( * ) AS SIGNED ) * + 31 + - - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3213
SELECT + 96 / - CAST ( NULL AS INTEGER ) * CAST ( - COUNT ( * ) AS INTEGER ) * + 31 + - - 41 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 8 * + + 53
----
424

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT DISTINCT 20 * + + NULLIF ( - 76, COUNT( * ) ) AS col1
----
-1520

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT 20 * + + NULLIF ( - 76, COUNT ( * ) ) AS col1
----
-1520

query I rowsort
SELECT - 66 * - 92 AS col1
----
6072

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT - COUNT( * ) + + CASE - + 1 WHEN + 47 + + COUNT( * ) THEN NULL ELSE + 66 END AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3217
SELECT - COUNT ( * ) + + CASE - + 1 WHEN + 47 + + COUNT ( * ) THEN NULL ELSE + 66 END AS col0
----
65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT ALL 1 * 69 + SUM( DISTINCT - - ( + 69 ) ) col2
----
138

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL 1 * 69 + SUM ( DISTINCT - - ( + 69 ) ) col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT + 54 + + SUM( + 5 )
----
59

skipif mysql # not compatible
query I rowsort label-3220
SELECT + 54 + + SUM ( + 5 )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3221
SELECT + NULLIF ( - - 1, CASE - - 4 WHEN - COUNT( + - 96 ) THEN + - CAST( NULL AS SIGNED ) * - 92 * - - 42 * - 12 ELSE NULL END ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3221
SELECT + NULLIF ( - - 1, CASE - - 4 WHEN - COUNT ( + - 96 ) THEN + - CAST ( NULL AS INTEGER ) * - 92 * - - 42 * - 12 ELSE NULL END ) AS col2
----
1

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

query I rowsort
SELECT ALL + NULLIF ( - + 89, - 42 * + 90 * - + 40 ) AS col0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-3224
SELECT + 25 DIV + 81 + - 8
----
-8

skipif mysql # not compatible
query I rowsort label-3224
SELECT + 25 / + 81 + - 8
----
-8

query I rowsort
SELECT - 83 + - 33 AS col1
----
-116

query I rowsort
SELECT ALL 56 * 65 + + 15 AS col2
----
3655

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3228
SELECT COALESCE ( - 44, - 4 DIV - 75 + 74 )
----
-44

skipif mysql # not compatible
query I rowsort label-3228
SELECT COALESCE ( - 44, - 4 / - 75 + 74 )
----
-44

query I rowsort
SELECT + CASE ( 12 ) WHEN 72 THEN + 48 END * + 88
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3230
SELECT - CAST( - NULLIF ( + 61, ( 29 ) + - 40 ) AS SIGNED ) + - 80 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-3230
SELECT - CAST ( - NULLIF ( + 61, ( 29 ) + - 40 ) AS INTEGER ) + - 80 AS col2
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT ALL + 69 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL + 69 / + 79
----
0

query I rowsort
SELECT CASE - 73 WHEN - 87 + 23 THEN NULL WHEN - 40 + 10 THEN 54 END
----
NULL

query I rowsort
SELECT 78 * + 35 + + 0 AS col0
----
2730

query I rowsort
SELECT - 40 * 6
----
-240

query I rowsort
SELECT - 46 * - 75
----
3450

query I rowsort
SELECT - 5 + CASE 81 + + 39 WHEN + NULLIF ( 34, + 18 ) * - 78 THEN 60 / 1 WHEN 54 + - 80 THEN NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT ALL COUNT( * ) * 69 - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL COUNT ( * ) * 69 - COUNT ( * )
----
68

query I rowsort
SELECT - 10 * + 42 AS col0
----
-420

onlyif mysql # DIV for integer division: 
query I rowsort label-3239
SELECT DISTINCT - 97 DIV + 47
----
-2

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT - 97 / + 47
----
-2

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

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL + 76 * CAST ( NULL AS INTEGER ) - + 85
----
NULL

query I rowsort
SELECT - 74 * + 8 AS col2
----
-592

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3243
SELECT DISTINCT CAST( 32 AS SIGNED ) col0
----
32

skipif mysql # not compatible
query I rowsort label-3243
SELECT DISTINCT CAST ( 32 AS INTEGER ) col0
----
32

query I rowsort
SELECT - 27 - - 61
----
34

query I rowsort
SELECT - NULLIF ( 56, 95 ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT - 20 * + MIN( + 85 * + 52 ) AS col2
----
-88400

skipif mysql # not compatible
query I rowsort label-3246
SELECT - 20 * + MIN ( + 85 * + 52 ) AS col2
----
-88400

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

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

query I rowsort
SELECT DISTINCT 8 + 70
----
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT ALL - ( MAX( DISTINCT + 77 ) ) * - CASE 76 + + 68 / + 34 WHEN - 27 + - 29 * 46 THEN - 42 / 59 WHEN - COALESCE ( NULLIF ( 62, + 14 ), + 96, - 27 ) / + 73 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL - ( MAX ( DISTINCT + 77 ) ) * - CASE 76 + + 68 / + 34 WHEN - 27 + - 29 * 46 THEN - 42 / 59 WHEN - COALESCE ( NULLIF ( 62, + 14 ), + 96, - 27 ) / + 73 THEN NULL ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT - 43 + + 94 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT + COUNT( * ) - - 65 * + 24
----
1561

skipif mysql # not compatible
query I rowsort label-3253
SELECT + COUNT ( * ) - - 65 * + 24
----
1561

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT + SUM( 44 ) + + 96 AS col0
----
140

skipif mysql # not compatible
query I rowsort label-3255
SELECT + SUM ( 44 ) + + 96 AS col0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT DISTINCT ( - NULLIF ( 79, 16 ) ) + + COUNT( * ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT ( - NULLIF ( 79, 16 ) ) + + COUNT ( * ) col0
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT + 43 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-3257
SELECT + 43 / 92
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3258
SELECT ALL 7 + CASE - 95 WHEN - 28 * ( CAST( 90 AS SIGNED ) * 26 ) THEN NULL ELSE + 8 END
----
15

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL 7 + CASE - 95 WHEN - 28 * ( CAST ( 90 AS INTEGER ) * 26 ) THEN NULL ELSE + 8 END
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3259
SELECT - CAST( 86 AS SIGNED ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-3259
SELECT - CAST ( 86 AS INTEGER ) AS col2
----
-86

query I rowsort
SELECT DISTINCT - ( 68 ) + + 64
----
-4

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3263
SELECT ALL - NULLIF ( + COUNT( - 73 ), - 5 * - NULLIF ( 8, 67 + 59 ) ) DIV 53 + 66
----
66

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL - NULLIF ( + COUNT ( - 73 ), - 5 * - NULLIF ( 8, 67 + 59 ) ) / 53 + 66
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3264
SELECT ALL + 30 DIV 10 + + 37
----
40

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL + 30 / 10 + + 37
----
40

query I rowsort
SELECT DISTINCT 36 * 90
----
3240

query I rowsort
SELECT ALL + 36 * 57
----
2052

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT + COALESCE ( 32, COUNT( * ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3267
SELECT + COALESCE ( 32, COUNT ( * ) ) AS col2
----
32

query I rowsort
SELECT ALL - 25 * - 60 col1
----
1500

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

skipif mysql # not compatible
query I rowsort label-3269
SELECT + COUNT ( * ) / 84
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3270
SELECT ALL - SUM( ALL + 16 ) / + MIN( 57 + 32 ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL - SUM ( ALL + 16 ) / + MIN ( 57 + 32 ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT + 81 * - ( + 48 + COUNT( * ) * 16 ) AS col2
----
-5184

skipif mysql # not compatible
query I rowsort label-3271
SELECT + 81 * - ( + 48 + COUNT ( * ) * 16 ) AS col2
----
-5184

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3272
SELECT DISTINCT + CASE - 34 WHEN - COALESCE ( + 58, 86, + 82 ) THEN CAST( CAST( + 91 AS SIGNED ) AS SIGNED ) * + CAST( NULL AS SIGNED ) ELSE 93 DIV ( + 96 * - NULLIF ( - ( 43 ), - 80 ) ) - - 32 * 61 END AS col0
----
1952

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT + CASE - 34 WHEN - COALESCE ( + 58, 86, + 82 ) THEN CAST ( CAST ( + 91 AS INTEGER ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) ELSE 93 / ( + 96 * - NULLIF ( - ( 43 ), - 80 ) ) - - 32 * 61 END AS col0
----
1952

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT ALL - COALESCE ( - SUM( ALL NULLIF ( - ( 65 ), 25 * 46 + - 54 ) ), + 91, - 12 )
----
-65

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL - COALESCE ( - SUM ( ALL NULLIF ( - ( 65 ), 25 * 46 + - 54 ) ), + 91, - 12 )
----
-65

query I rowsort
SELECT ALL - 18 * 15 AS col0
----
-270

query I rowsort
SELECT + 40 * 35 col2
----
1400

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

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

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

skipif mysql # not compatible
query I rowsort label-3277
SELECT - + 88 * CAST ( NULL AS INTEGER ) - 88 * 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT + SUM( - 7 ) + - AVG ( - 69 ) / + CASE + COUNT( ALL + 21 ) WHEN 19 / - 93 THEN NULL WHEN + 97 + - 68 THEN 17 * + 16 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT + SUM ( - 7 ) + - AVG ( - 69 ) / + CASE + COUNT ( ALL + 21 ) WHEN 19 / - 93 THEN NULL WHEN + 97 + - 68 THEN 17 * + 16 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - + 18 * 97 AS col2
----
-1746

onlyif mysql # DIV for integer division: 
query I rowsort label-3280
SELECT - 6 DIV - 25
----
0

skipif mysql # not compatible
query I rowsort label-3280
SELECT - 6 / - 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT - - 59 * 15 + - COUNT( * )
----
884

skipif mysql # not compatible
query I rowsort label-3281
SELECT - - 59 * 15 + - COUNT ( * )
----
884

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT ALL 94 * COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL 94 * COUNT ( * ) AS col2
----
94

query I rowsort
SELECT 16 + 33 AS col0
----
49

query I rowsort
SELECT 22 * 80 AS col2
----
1760

onlyif mysql # DIV for integer division: 
query I rowsort label-3285
SELECT 26 + - 86 DIV - 76 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-3285
SELECT 26 + - 86 / - 76 AS col1
----
27

query I rowsort
SELECT 35 + + 69 AS col0
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-3287
SELECT ALL - 49 + ( - 65 ) DIV + 73
----
-49

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL - 49 + ( - 65 ) / + 73
----
-49

query I rowsort
SELECT 57 * - 55
----
-3135

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT ALL + COUNT( * ) + + + COUNT( * ) + - 73
----
-71

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL + COUNT ( * ) + + + COUNT ( * ) + - 73
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT 70 + + 67 + + COUNT( * ) AS col2
----
138

skipif mysql # not compatible
query I rowsort label-3290
SELECT 70 + + 67 + + COUNT ( * ) AS col2
----
138

query I rowsort
SELECT ALL - 86 + - 28
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT ALL - 77 * + 11 * + COUNT( * ) AS col1
----
-847

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL - 77 * + 11 * + COUNT ( * ) AS col1
----
-847

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT DISTINCT - COUNT( * ) + NULLIF ( + 38, - ( 48 ) + 34 )
----
37

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT - COUNT ( * ) + NULLIF ( + 38, - ( 48 ) + 34 )
----
37

query I rowsort
SELECT DISTINCT 60 * - + 15
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT 60 * - ( - COUNT( * ) ) * 4 AS col0
----
240

skipif mysql # not compatible
query I rowsort label-3295
SELECT 60 * - ( - COUNT ( * ) ) * 4 AS col0
----
240

query I rowsort
SELECT ALL 95 + 95
----
190

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

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL COUNT ( ALL - 19 ) + + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT CASE + 49 WHEN + 8 THEN + 93 END - ( COUNT( - 43 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT CASE + 49 WHEN + 8 THEN + 93 END - ( COUNT ( - 43 ) ) AS col1
----
NULL

query I rowsort
SELECT + 12 * + NULLIF ( 89, + 36 ) AS col1
----
1068

query I rowsort
SELECT ALL - - CASE 21 WHEN - 15 THEN - 20 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT 43 + - SUM( 24 ) * 20
----
-437

skipif mysql # not compatible
query I rowsort label-3301
SELECT 43 + - SUM ( 24 ) * 20
----
-437

query I rowsort
SELECT - 79 * 61 - 51
----
-4870

onlyif mysql # DIV for integer division: 
query I rowsort label-3303
SELECT ALL + 13 DIV + - 15 * ( 61 ) - 8
----
-8

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL + 13 / + - 15 * ( 61 ) - 8
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT + 62 * 80 + 37 + COUNT( * )
----
4998

skipif mysql # not compatible
query I rowsort label-3304
SELECT + 62 * 80 + 37 + COUNT ( * )
----
4998

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3305
SELECT ALL + CAST( + - 86 AS SIGNED ) DIV - 46
----
1

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL + CAST ( + - 86 AS INTEGER ) / - 46
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT + COALESCE ( + - 53, 52 * ( 66 ) ) * MIN( DISTINCT + 12 * 33 ) AS col0
----
-20988

skipif mysql # not compatible
query I rowsort label-3306
SELECT + COALESCE ( + - 53, 52 * ( 66 ) ) * MIN ( DISTINCT + 12 * 33 ) AS col0
----
-20988

query I rowsort
SELECT ALL ( + + 16 ) * - 62
----
-992

query I rowsort
SELECT 12 + - ( NULLIF ( 88, 64 ) ) + 10 AS col0
----
-66

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

query I rowsort
SELECT - 95 * 53 AS col0
----
-5035

query I rowsort
SELECT - 64 + - 10 + 0 * 93
----
-74

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

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

query I rowsort
SELECT ALL - 36 + - - 16 + - 92 * + 58 AS col1
----
-5356

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT ALL + CASE - CASE - 50 WHEN + 99 THEN NULL WHEN - SUM( 75 ) / COUNT( * ) + 27 THEN 70 + 1 END WHEN - 65 THEN NULL WHEN 61 THEN + 38 END + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL + CASE - CASE - 50 WHEN + 99 THEN NULL WHEN - SUM ( 75 ) / COUNT ( * ) + 27 THEN 70 + 1 END WHEN - 65 THEN NULL WHEN 61 THEN + 38 END + 8
----
NULL

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

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

query II rowsort
SELECT DISTINCT - 64, + 18 * + + 9 AS col0
----
-64
162

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT ALL + 17 + + - COUNT( DISTINCT + 48 )
----
16

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL + 17 + + - COUNT ( DISTINCT + 48 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3319
SELECT ALL COUNT( * ) + + ( + CAST( AVG ( - 81 ) AS SIGNED ) ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL COUNT ( * ) + + ( + CAST ( AVG ( - 81 ) AS INTEGER ) ) AS col2
----
-80

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

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

query I rowsort
SELECT 51 * - 34 * + 36 AS col2
----
-62424

query I rowsort
SELECT DISTINCT CASE 8 WHEN - 91 THEN 52 WHEN 88 * - 43 THEN 46 ELSE NULL END * 30
----
NULL

query I rowsort
SELECT 70 * - 13
----
-910

query I rowsort
SELECT NULLIF ( - 93, + 23 ) - - ( + 3 )
----
-90

query I rowsort
SELECT ALL + 45 * + + 37 AS col2
----
1665

query I rowsort
SELECT ALL - 90 + - + 76 * + + 87 + 99 * 40
----
-2742

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT DISTINCT MAX( ALL 40 ) col1
----
40

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT MAX ( ALL 40 ) col1
----
40

query II rowsort
SELECT DISTINCT 17 AS col1, 26 * 60 + 47
----
17
1607

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3329
SELECT ALL - 55 - - + COUNT( * ) + + COALESCE ( - CAST( - 28 AS SIGNED ), ( 48 ), 4, - 1 * - 38 ) + NULLIF ( ( 27 ), - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL - 55 - - + COUNT ( * ) + + COALESCE ( - CAST ( - 28 AS INTEGER ), ( 48 ), 4, - 1 * - 38 ) + NULLIF ( ( 27 ), - COUNT ( * ) )
----
1

query II rowsort
SELECT 89, 16 col0
----
89
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ( - COUNT( ALL 79 ) ) + 63 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-3331
SELECT ( - COUNT ( ALL 79 ) ) + 63 AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3332
SELECT CAST( 55 AS SIGNED ) * + - 5 AS col2
----
-275

skipif mysql # not compatible
query I rowsort label-3332
SELECT CAST ( 55 AS INTEGER ) * + - 5 AS col2
----
-275

query I rowsort
SELECT 92 + + 86
----
178

query I rowsort
SELECT 95 * 67 col0
----
6365

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3335
SELECT + 63 DIV - - CAST( 13 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-3335
SELECT + 63 / - - CAST ( 13 AS INTEGER )
----
4

query I rowsort
SELECT DISTINCT - 84 * + 93 + - 73
----
-7885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3337
SELECT ALL - + 18 * + CAST( - 32 AS SIGNED ) * + 49 + - 12
----
28212

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL - + 18 * + CAST ( - 32 AS INTEGER ) * + 49 + - 12
----
28212

onlyif mysql # aggregate syntax: 
query II rowsort label-3338
SELECT ALL + - 29 AS col0, - COUNT( DISTINCT + ( - 61 ) ) + 70 AS col1
----
-29
69

skipif mysql # not compatible
query II rowsort label-3338
SELECT ALL + - 29 AS col0, - COUNT ( DISTINCT + ( - 61 ) ) + 70 AS col1
----
-29
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT ALL + - COUNT( - + 25 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL + - COUNT ( - + 25 ) col2
----
-1

query I rowsort
SELECT ALL + ( - + 33 ) * - - 93
----
-3069

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

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

query I rowsort
SELECT + 30 * + 66 * - 56 - 80 * 41 AS col1
----
-114160

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT - + ( COUNT( * ) ) * NULLIF ( - 21, + 74 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3343
SELECT - + ( COUNT ( * ) ) * NULLIF ( - 21, + 74 ) AS col0
----
21

query I rowsort
SELECT + - 46 * + 17 + + 44 AS col2
----
-738

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3345
SELECT CAST( + COALESCE ( 51, - 26, 85 ) AS SIGNED ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3345
SELECT CAST ( + COALESCE ( 51, - 26, 85 ) AS INTEGER ) AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3346
SELECT ALL + COUNT( * ) * - 91 + NULLIF ( + 1, - ( + AVG ( DISTINCT 3 ) ) ) + - NULLIF ( COUNT( * ), CAST( NULL AS SIGNED ) ) * 97 + - COUNT( * ) AS col2
----
-188

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL + COUNT ( * ) * - 91 + NULLIF ( + 1, - ( + AVG ( DISTINCT 3 ) ) ) + - NULLIF ( COUNT ( * ), CAST ( NULL AS INTEGER ) ) * 97 + - COUNT ( * ) AS col2
----
-188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3347
SELECT - + 60 - + - COUNT( * ) + - COUNT( * ) + - 88 * COALESCE ( 90, - 71 + 12 DIV 60, - 71 ) AS col1
----
-7980

skipif mysql # not compatible
query I rowsort label-3347
SELECT - + 60 - + - COUNT ( * ) + - COUNT ( * ) + - 88 * COALESCE ( 90, - 71 + 12 / 60, - 71 ) AS col1
----
-7980

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

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

query I rowsort
SELECT ALL + 90 * + - 58 * - 86 + + 62 AS col2
----
448982

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT - 44 + + COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-3350
SELECT - 44 + + COUNT ( * ) AS col2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3351
SELECT ALL CAST( - 41 AS SIGNED ) * - + 25
----
1025

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL CAST ( - 41 AS INTEGER ) * - + 25
----
1025

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT 58 * MIN( - 91 ) * + 47 * 89 + COUNT( * ) + - NULLIF ( 31 + - 79 * 12, - 77 * + SUM( ALL 69 * + 18 ) + ( COUNT( * ) ) * 5 ) * - 59
----
-22131976

skipif mysql # not compatible
query I rowsort label-3352
SELECT 58 * MIN ( - 91 ) * + 47 * 89 + COUNT ( * ) + - NULLIF ( 31 + - 79 * 12, - 77 * + SUM ( ALL 69 * + 18 ) + ( COUNT ( * ) ) * 5 ) * - 59
----
-22131976

query I rowsort
SELECT + 26 * 10 * - 27 * + + 70 AS col1
----
-491400

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

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

query II rowsort
SELECT DISTINCT 49 * - 77, - 84 AS col2
----
-3773
-84

query I rowsort
SELECT - 91 * - 38 + + 21
----
3479

query I rowsort
SELECT + 90 + 41 AS col0
----
131

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

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

query I rowsort
SELECT + 66 + + 44 col2
----
110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT + CASE 44 WHEN - COUNT( * ) THEN NULL ELSE + 14 - 48 END * + 53 AS col2
----
-1802

skipif mysql # not compatible
query I rowsort label-3361
SELECT + CASE 44 WHEN - COUNT ( * ) THEN NULL ELSE + 14 - 48 END * + 53 AS col2
----
-1802

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3362
SELECT - CAST( NULL AS SIGNED ) + 91 * 30 * - CAST( - 73 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3362
SELECT - CAST ( NULL AS INTEGER ) + 91 * 30 * - CAST ( - 73 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT ALL COUNT( * ) * ( 24 )
----
24

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL COUNT ( * ) * ( 24 )
----
24

query II rowsort
SELECT - ( + 56 ) AS col1, - 34
----
-56
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT + 56 + - 3 * + COUNT( * ) - + MAX( ALL 87 ) * + 86
----
-7429

skipif mysql # not compatible
query I rowsort label-3365
SELECT + 56 + - 3 * + COUNT ( * ) - + MAX ( ALL 87 ) * + 86
----
-7429

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

query I rowsort
SELECT ALL 30 * 53 * + CASE + 68 WHEN + ( 80 ) THEN 57 * 58 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT DISTINCT NULLIF ( - COUNT( * ), - COUNT( * ) / - 99 / 65 + 77 * 54 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT NULLIF ( - COUNT ( * ), - COUNT ( * ) / - 99 / 65 + 77 * 54 ) AS col0
----
-1

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

query I rowsort
SELECT + + 30 + 30 AS col2
----
60

query I rowsort
SELECT - + 25 + + 39 AS col1
----
14

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3373
SELECT + - CASE - 46 WHEN - 19 + - COUNT( * ) * + ( - COALESCE ( - 9, 74 * - 1 + - 59, 41 * 46 + - 24 * 69 ) * + ( + 5 ) ) THEN - COUNT( * ) * + ( + 4 ) WHEN 2 THEN NULL ELSE NULL END * NULLIF ( + COUNT( * ), - CAST( 58 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT + - CASE - 46 WHEN - 19 + - COUNT ( * ) * + ( - COALESCE ( - 9, 74 * - 1 + - 59, 41 * 46 + - 24 * 69 ) * + ( + 5 ) ) THEN - COUNT ( * ) * + ( + 4 ) WHEN 2 THEN NULL ELSE NULL END * NULLIF ( + COUNT ( * ), - CAST ( 58 AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3374
SELECT ALL - 54 DIV + + 71 + - - ( - - MAX( DISTINCT 58 ) )
----
58

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL - 54 / + + 71 + - - ( - - MAX ( DISTINCT 58 ) )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3375
SELECT DISTINCT 42 DIV + ( 9 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT 42 / + ( 9 ) AS col0
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3376
SELECT - CAST( NULL AS DECIMAL ) * + - NULLIF ( + + 56, + 71 ) + ( + 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3376
SELECT - CAST ( NULL AS REAL ) * + - NULLIF ( + + 56, + 71 ) + ( + 51 )
----
NULL

query I rowsort
SELECT DISTINCT + - 98 * + + 86 AS col0
----
-8428

onlyif mysql # DIV for integer division: 
query I rowsort label-3378
SELECT DISTINCT - + NULLIF ( + + 32, + - 69 ) DIV + 9 + + 26 * 84
----
2181

skipif mysql # not compatible
query I rowsort label-3378
SELECT DISTINCT - + NULLIF ( + + 32, + - 69 ) / + 9 + + 26 * 84
----
2181

query I rowsort
SELECT 53 * - + 35 + + 22
----
-1833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3380
SELECT ALL + 30 * 36 + NULLIF ( 1, + 73 - - 48 ) * COALESCE ( 51, - 6 DIV - 12, + 73 DIV - COALESCE ( 54 * 63, + CASE 50 WHEN COUNT( * ) * CASE - 79 WHEN - AVG ( 4 ) THEN ( 47 ) + + CAST( NULL AS SIGNED ) * COUNT( * ) ELSE NULL END THEN 79 * - 73 WHEN 73 + 47 THEN NULL END * 64 ) ) AS col2
----
1131

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL + 30 * 36 + NULLIF ( 1, + 73 - - 48 ) * COALESCE ( 51, - 6 / - 12, + 73 / - COALESCE ( 54 * 63, + CASE 50 WHEN COUNT ( * ) * CASE - 79 WHEN - AVG ( 4 ) THEN ( 47 ) + + CAST ( NULL AS INTEGER ) * COUNT ( * ) ELSE NULL END THEN 79 * - 73 WHEN 73 + 47 THEN NULL END * 64 ) ) AS col2
----
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT ALL + 63 * - - CASE - COUNT( * ) WHEN - ( - COUNT( * ) ) THEN - 95 + 61 WHEN + 43 THEN NULL END * 92 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL + 63 * - - CASE - COUNT ( * ) WHEN - ( - COUNT ( * ) ) THEN - 95 + 61 WHEN + 43 THEN NULL END * 92 col0
----
NULL

query I rowsort
SELECT - 38 * - 21 AS col1
----
798

onlyif mysql # aggregate syntax: 
query II rowsort label-3383
SELECT + COUNT( * ) + + 75 + + 54 AS col1, 6
----
130
6

skipif mysql # not compatible
query II rowsort label-3383
SELECT + COUNT ( * ) + + 75 + + 54 AS col1, 6
----
130
6

query I rowsort
SELECT ALL 6 * - 99 * 22 - - + 67 + - 59 + - 10 * 90
----
-13960

onlyif mysql # DIV for integer division: 
query I rowsort label-3385
SELECT ALL 2 DIV 16 col2
----
0

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL 2 / 16 col2
----
0

query I rowsort
SELECT - 8 * + 31
----
-248

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT + SUM( ALL + 68 )
----
68

skipif mysql # not compatible
query I rowsort label-3387
SELECT + SUM ( ALL + 68 )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3388
SELECT CASE 4 WHEN + ( + 99 ) THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN - 13 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3388
SELECT CASE 4 WHEN + ( + 99 ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN - 13 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3389
SELECT ALL - 27 DIV + 32 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL - 27 / + 32 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3390
SELECT - 72 * + CASE - CASE - - 13 WHEN - CASE - AVG ( + 43 ) WHEN - ( COUNT( * ) ) THEN NULL ELSE + 70 * - 64 END THEN 31 + + 53 ELSE NULL END WHEN 62 THEN CAST( - 3 AS DECIMAL ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT - 72 * + CASE - CASE - - 13 WHEN - CASE - AVG ( + 43 ) WHEN - ( COUNT ( * ) ) THEN NULL ELSE + 70 * - 64 END THEN 31 + + 53 ELSE NULL END WHEN 62 THEN CAST ( - 3 AS REAL ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT - MIN( + - 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-3391
SELECT - MIN ( + - 87 ) AS col1
----
87

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

skipif mysql # not compatible
query I rowsort label-3392
SELECT - MIN ( - + ( 68 ) )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT + ( + + 95 ) + - - COUNT( + 84 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-3393
SELECT + ( + + 95 ) + - - COUNT ( + 84 ) AS col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3394
SELECT - 24 DIV - - ( - 21 )
----
1

skipif mysql # not compatible
query I rowsort label-3394
SELECT - 24 / - - ( - 21 )
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3396
SELECT 85 - - CAST( - - 9 AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-3396
SELECT 85 - - CAST ( - - 9 AS INTEGER )
----
94

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3398
SELECT - - COALESCE ( - 77, + 92 ) col0, 59 * + - SUM( ALL 81 )
----
-77
-4779

skipif mysql # not compatible
query II rowsort label-3398
SELECT - - COALESCE ( - 77, + 92 ) col0, 59 * + - SUM ( ALL 81 )
----
-77
-4779

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT + MIN( DISTINCT + 79 ) * - + 44 AS col2
----
-3476

skipif mysql # not compatible
query I rowsort label-3399
SELECT + MIN ( DISTINCT + 79 ) * - + 44 AS col2
----
-3476

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

skipif mysql # not compatible
query I rowsort label-3400
SELECT 79 - - COUNT ( * ) / + - 19
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT - COUNT( * ) * + + 23 * + - 64 * COUNT( - 51 ) * 19
----
27968

skipif mysql # not compatible
query I rowsort label-3401
SELECT - COUNT ( * ) * + + 23 * + - 64 * COUNT ( - 51 ) * 19
----
27968

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

skipif mysql # not compatible
query I rowsort label-3402
SELECT 10 * + CAST ( NULL AS INTEGER ) + 64
----
NULL

query I rowsort
SELECT + 8 - + 60
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT ALL 87 + - 97 / - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + 37 / 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL 87 + - 97 / - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + 37 / 17
----
NULL

query I rowsort
SELECT DISTINCT + 88 + + 83 * 27 AS col1
----
2329

query I rowsort
SELECT - 75 + - 96
----
-171

query I rowsort
SELECT ALL + COALESCE ( + 6, - 62 + - 76 * - - 53 ) + + 20
----
26

query I rowsort
SELECT + + ( - 19 ) col2
----
-19

query I rowsort
SELECT ALL - 58 + + 66 - + ( + 12 ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-3410
SELECT + 14 AS col0, NULLIF ( - + 45, 53 ) - + - COUNT( 25 )
----
14
-44

skipif mysql # not compatible
query II rowsort label-3410
SELECT + 14 AS col0, NULLIF ( - + 45, 53 ) - + - COUNT ( 25 )
----
14
-44

query II rowsort
SELECT + 84 AS col0, 40 * - 21 col2
----
84
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT ALL - NULLIF ( SUM( ALL + + 43 ), + 7 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL - NULLIF ( SUM ( ALL + + 43 ), + 7 ) AS col0
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3413
SELECT - 46 DIV - - 44 - - 7 DIV - 73 - + - 21 * + 25 * + COUNT( * ) AS col1
----
524

skipif mysql # not compatible
query I rowsort label-3413
SELECT - 46 / - - 44 - - 7 / - 73 - + - 21 * + 25 * + COUNT ( * ) AS col1
----
524

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT ALL - MAX( DISTINCT - 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL - MAX ( DISTINCT - 91 ) AS col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3415
SELECT ALL MAX( + 19 ) DIV + ( 91 )
----
0

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL MAX ( + 19 ) / + ( 91 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3416
SELECT ALL - COUNT( * ), + COUNT( * ) DIV + NULLIF ( + 67, + 64 + + 25 ) * 69 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-3416
SELECT ALL - COUNT ( * ), + COUNT ( * ) / + NULLIF ( + 67, + 64 + + 25 ) * 69 AS col0
----
-1
0

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

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

query I rowsort
SELECT 67 * + + 13 AS col2
----
871

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

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

query I rowsort
SELECT COALESCE ( - 70, COALESCE ( - 58, + NULLIF ( - 81, 59 / - 90 ) + 56 * - 68 ), - 30 ) + 61 col1
----
-9

query I rowsort
SELECT + 1 * - 3 - - 44 AS col2
----
41

query I rowsort
SELECT 50 + - - 55 AS col2
----
105

query I rowsort
SELECT 86 - 20 AS col2
----
66

query I rowsort
SELECT 56 * + 9 AS col1
----
504

query I rowsort
SELECT 5 * - - 61 * - 48
----
-14640

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT 60 * 63 + - 98 * 79 * - CASE - COUNT( * ) WHEN - 88 + 89 * + 19 THEN + ( - COUNT( * ) ) WHEN 90 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT 60 * 63 + - 98 * 79 * - CASE - COUNT ( * ) WHEN - 88 + 89 * + 19 THEN + ( - COUNT ( * ) ) WHEN 90 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 24 * + 28 col2
----
-672

query II rowsort
SELECT DISTINCT 71, 48 - - 7 AS col1
----
71
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3429
SELECT 85 + - + 22 DIV - + 97
----
85

skipif mysql # not compatible
query I rowsort label-3429
SELECT 85 + - + 22 / - + 97
----
85

query II rowsort
SELECT 35 col2, + 96
----
35
96

query I rowsort
SELECT DISTINCT + 51 + - 14
----
37

query I rowsort
SELECT DISTINCT 91 + + 18
----
109

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

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

query I rowsort
SELECT DISTINCT - 3 + - 71
----
-74

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

skipif mysql # not compatible
query II rowsort label-3435
SELECT - 62 AS col1, - COUNT ( * ) * - COUNT ( * ) col2
----
-62
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3436
SELECT ALL 76 + - 22 - NULLIF ( - 96, + 18 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL 76 + - 22 - NULLIF ( - 96, + 18 ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT - 45 * + - ( - 18 ) * - 58 + + 14 + - 59 + SUM( DISTINCT 73 )
----
47008

skipif mysql # not compatible
query I rowsort label-3437
SELECT - 45 * + - ( - 18 ) * - 58 + + 14 + - 59 + SUM ( DISTINCT 73 )
----
47008

query I rowsort
SELECT ALL + 58 * + + 2 + - + 18 AS col1
----
98

query II rowsort
SELECT 49 AS col2, 76 col1
----
49
76

query I rowsort
SELECT ALL + ( + 90 ) AS col0
----
90

query II rowsort
SELECT ALL + 9 + + - 59 + - 72 * + 42 AS col0, ( + 98 ) + 18
----
-3074
116

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

skipif mysql # not compatible
query I rowsort label-3442
SELECT - ( 24 ) - CAST ( - 42 AS INTEGER ) + - 2 col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3443
SELECT 30 AS col1, ( 48 ) + 0 DIV - + 86 * + - 32 * + MIN( ALL ( - 19 ) )
----
30
48

skipif mysql # not compatible
query II rowsort label-3443
SELECT 30 AS col1, ( 48 ) + 0 / - + 86 * + - 32 * + MIN ( ALL ( - 19 ) )
----
30
48

query I rowsort
SELECT ALL - - 92 * + 48 * + 61 - - 56
----
269432

query I rowsort
SELECT + 57 + + - 51
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-3446
SELECT 90 * + + 47 + 3 + + 63 DIV + + 85 col2, + 58
----
4233
58

skipif mysql # not compatible
query II rowsort label-3446
SELECT 90 * + + 47 + 3 + + 63 / + + 85 col2, + 58
----
4233
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3447
SELECT DISTINCT COUNT( * ) DIV 47 * + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT COUNT ( * ) / 47 * + 67 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT + MIN( ALL - + 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-3448
SELECT + MIN ( ALL - + 59 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT CASE - COUNT( * ) WHEN COUNT( * ) THEN - COUNT( * ) WHEN - 43 THEN NULL END * - 41 - - 55 + 95 * - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3449
SELECT CASE - COUNT ( * ) WHEN COUNT ( * ) THEN - COUNT ( * ) WHEN - 43 THEN NULL END * - 41 - - 55 + 95 * - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT MAX( ALL 70 ) * 73 + 80
----
5190

skipif mysql # not compatible
query I rowsort label-3450
SELECT MAX ( ALL 70 ) * 73 + 80
----
5190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3451
SELECT MIN( DISTINCT 57 ) DIV + + 7 - - - 33 + - COUNT( ALL - 53 ) * - - 16 + + 79 col0
----
38

skipif mysql # not compatible
query I rowsort label-3451
SELECT MIN ( DISTINCT 57 ) / + + 7 - - - 33 + - COUNT ( ALL - 53 ) * - - 16 + + 79 col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT 64 * + 43 + COUNT( * ) - + 43 AS col1
----
2710

skipif mysql # not compatible
query I rowsort label-3452
SELECT 64 * + 43 + COUNT ( * ) - + 43 AS col1
----
2710

query I rowsort
SELECT - 90 + - 71 + + ( + + 15 ) * COALESCE ( - - 64, - + 77 )
----
799

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

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

query I rowsort
SELECT DISTINCT 25 + + 18 + 21
----
64

query I rowsort
SELECT - 95 * - + 64
----
6080

query I rowsort
SELECT - 30 * 37 AS col2
----
-1110

query I rowsort
SELECT DISTINCT + + 79 + + 32 * - + CASE + - 98 WHEN - 86 * - 23 + + 10 * 21 THEN 17 + - 68 END * + 2
----
NULL

query I rowsort
SELECT ALL - 73 + - - 25 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-3460
SELECT - + MAX( DISTINCT - 68 ) - + 30 AS col1, COALESCE ( 32, + COUNT( * ), 33 + 92 ) * 30 + + 55
----
38
1015

skipif mysql # not compatible
query II rowsort label-3460
SELECT - + MAX ( DISTINCT - 68 ) - + 30 AS col1, COALESCE ( 32, + COUNT ( * ), 33 + 92 ) * 30 + + 55
----
38
1015

query II rowsort
SELECT DISTINCT - + 50 * - 96 AS col1, ( - + 93 ) + 2
----
4800
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT DISTINCT + 71 + + - 32 + + + 73 + - 14 + + COUNT( * ) * - 86 * 64
----
-5406

skipif mysql # not compatible
query I rowsort label-3462
SELECT DISTINCT + 71 + + - 32 + + + 73 + - 14 + + COUNT ( * ) * - 86 * 64
----
-5406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3463
SELECT DISTINCT + + CAST( + COUNT( ALL - 13 ) AS SIGNED ) + 24
----
25

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT + + CAST ( + COUNT ( ALL - 13 ) AS INTEGER ) + 24
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-3464
SELECT - 10 + + COUNT( * ), + 81 AS col0
----
-9
81

skipif mysql # not compatible
query II rowsort label-3464
SELECT - 10 + + COUNT ( * ), + 81 AS col0
----
-9
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT - MIN( - 56 ) * + ( + 37 )
----
2072

skipif mysql # not compatible
query I rowsort label-3465
SELECT - MIN ( - 56 ) * + ( + 37 )
----
2072

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT ALL + - 25 DIV + 39 * 73 + - + 36
----
-36

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL + - 25 / + 39 * 73 + - + 36
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT CASE + 22 WHEN + COUNT( * ) THEN - - 28 / 39 + + - COUNT( * ) + + 26 - 72 * 12 + COUNT( * ) ELSE NULLIF ( 94, 40 * + 0 ) + + ( 46 + + 72 ) END AS col2
----
212

skipif mysql # not compatible
query I rowsort label-3467
SELECT CASE + 22 WHEN + COUNT ( * ) THEN - - 28 / 39 + + - COUNT ( * ) + + 26 - 72 * 12 + COUNT ( * ) ELSE NULLIF ( 94, 40 * + 0 ) + + ( 46 + + 72 ) END AS col2
----
212

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3469
SELECT - ( + 24 ) AS col0, COUNT( * ) + - + 35 AS col0
----
-24
-34

skipif mysql # not compatible
query II rowsort label-3469
SELECT - ( + 24 ) AS col0, COUNT ( * ) + - + 35 AS col0
----
-24
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-3470
SELECT ALL COALESCE ( - - 49, AVG ( - 19 ) DIV + 24 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL COALESCE ( - - 49, AVG ( - 19 ) / + 24 ) AS col1
----
49

query I rowsort
SELECT - + 91 * 93 AS col2
----
-8463

query I rowsort
SELECT + + 86 * 11
----
946

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3473
SELECT - - COALESCE ( + + 15, + 80 ) * + 51 + 45 DIV + COALESCE ( + + COUNT( * ), - 79 * - ( 83 DIV + 0 ) )
----
810

skipif mysql # not compatible
query I rowsort label-3473
SELECT - - COALESCE ( + + 15, + 80 ) * + 51 + 45 / + COALESCE ( + + COUNT ( * ), - 79 * - ( 83 / + 0 ) )
----
810

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

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL - + COUNT ( * ) * MIN ( ALL - 95 ) AS col2
----
95

query II rowsort
SELECT - 55 + 17 * + 6, + 76 AS col2
----
47
76

query I rowsort
SELECT + COALESCE ( + 50, + 44 )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3477
SELECT + 50 * + 61 + - 21 + - 16 DIV + + 94 AS col2
----
3029

skipif mysql # not compatible
query I rowsort label-3477
SELECT + 50 * + 61 + - 21 + - 16 / + + 94 AS col2
----
3029

query I rowsort
SELECT ( - ( + + 31 ) ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-3479
SELECT - COUNT( * ) * + - 66 * - 58 AS col1, 3
----
-3828
3

skipif mysql # not compatible
query II rowsort label-3479
SELECT - COUNT ( * ) * + - 66 * - 58 AS col1, 3
----
-3828
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT + NULLIF ( + 70, + - 28 * - 80 * + SUM( + 39 ) - 75 / + 65 + 53 ) * 76 AS col0
----
5320

skipif mysql # not compatible
query I rowsort label-3480
SELECT + NULLIF ( + 70, + - 28 * - 80 * + SUM ( + 39 ) - 75 / + 65 + 53 ) * 76 AS col0
----
5320

query II rowsort
SELECT ALL + 31, - 88 AS col0
----
31
-88

query II rowsort
SELECT + 93 * + 15 - - 63 AS col2, + 14
----
1458
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT DISTINCT 43 * + 18 + + SUM( - 26 ) col2
----
748

skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT 43 * + 18 + + SUM ( - 26 ) col2
----
748

query I rowsort
SELECT ALL + ( 60 ) * + 98 * 11 * 25 + + 77 AS col0
----
1617077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3485
SELECT ALL CAST( NULL AS SIGNED ) * - + 65 * + 92 + - - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL CAST ( NULL AS INTEGER ) * - + 65 * + 92 + - - 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT CASE - + 58 WHEN - + 48 THEN - 96 END * - - 2 + - MIN( DISTINCT + 16 ) / + 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT CASE - + 58 WHEN - + 48 THEN - 96 END * - - 2 + - MIN ( DISTINCT + 16 ) / + 67 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3487
SELECT ALL + 36 AS col0, + 56 DIV - - 6
----
36
9

skipif mysql # not compatible
query II rowsort label-3487
SELECT ALL + 36 AS col0, + 56 / - - 6
----
36
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT + NULLIF ( - - 16, + - 44 / + COUNT( * ) ) + - + 33 * + + 57 * - 87 * + - 30 * + COUNT( * ) + ( 75 ) col1
----
-4909319

skipif mysql # not compatible
query I rowsort label-3488
SELECT + NULLIF ( - - 16, + - 44 / + COUNT ( * ) ) + - + 33 * + + 57 * - 87 * + - 30 * + COUNT ( * ) + ( 75 ) col1
----
-4909319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3489
SELECT - CASE 5 WHEN - - 81 THEN + - 21 END * + CAST( - 62 AS SIGNED ) - - 89 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT - CASE 5 WHEN - - 81 THEN + - 21 END * + CAST ( - 62 AS INTEGER ) - - 89 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT + 18 + + + COUNT( * ) * + 66 * - 73 * + - 66 * 88 AS col1
----
27982962

skipif mysql # not compatible
query I rowsort label-3490
SELECT + 18 + + + COUNT ( * ) * + 66 * - 73 * + - 66 * 88 AS col1
----
27982962

onlyif mysql # aggregate syntax: 
query II rowsort label-3491
SELECT + 35, ( + 51 ) * - 94 * 30 + + COUNT( * ) col2
----
35
-143819

skipif mysql # not compatible
query II rowsort label-3491
SELECT + 35, ( + 51 ) * - 94 * 30 + + COUNT ( * ) col2
----
35
-143819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3492
SELECT - + 8 + - 26 + CAST( 78 AS SIGNED ) * - 55 col0
----
-4324

skipif mysql # not compatible
query I rowsort label-3492
SELECT - + 8 + - 26 + CAST ( 78 AS INTEGER ) * - 55 col0
----
-4324

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT ALL - 9 * - 75 + MAX( DISTINCT 25 )
----
700

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL - 9 * - 75 + MAX ( DISTINCT 25 )
----
700

query I rowsort
SELECT + + 97 * + 57
----
5529

query II rowsort
SELECT 4 AS col2, + 68
----
4
68

query II rowsort
SELECT - 58 AS col1, NULLIF ( - + ( + 34 ), 24 ) + 58 AS col0
----
-58
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT DISTINCT - - 65 * + + COUNT( * ) * + + 86 * - ( 64 ) + - 43
----
-357803

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT - - 65 * + + COUNT ( * ) * + + 86 * - ( 64 ) + - 43
----
-357803

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3498
SELECT ALL + - ( COUNT( * ) ) * + CAST( NULL AS SIGNED ) + - COALESCE ( + 68, + - CAST( NULL AS SIGNED ) ) - 86 - + - ( 16 ) / 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL + - ( COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) + - COALESCE ( + 68, + - CAST ( NULL AS INTEGER ) ) - 86 - + - ( 16 ) / 82 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3499
SELECT - 41 + ( COUNT( * ) ), 20 col1
----
-40
20

skipif mysql # not compatible
query II rowsort label-3499
SELECT - 41 + ( COUNT ( * ) ), 20 col1
----
-40
20

query II rowsort
SELECT + + ( + 74 ) + - 68 col1, - 50
----
6
-50

query II rowsort
SELECT - 9, 29 - - 88 AS col0
----
-9
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT + - 70 + - - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-3502
SELECT + - 70 + - - COUNT ( * )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3503
SELECT DISTINCT + 8, CAST( 60 AS SIGNED ) col1
----
8
60

skipif mysql # not compatible
query II rowsort label-3503
SELECT DISTINCT + 8, CAST ( 60 AS INTEGER ) col1
----
8
60

query I rowsort
SELECT + + 95 * - - 74
----
7030

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT ALL - COUNT( * ) - + + 38 + 82
----
43

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL - COUNT ( * ) - + + 38 + 82
----
43

query I rowsort
SELECT DISTINCT + 57 * 69
----
3933

query I rowsort
SELECT - 52 + 53 AS col0
----
1

query I rowsort
SELECT - 66 + + 77
----
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ALL + 72 * MAX( - 7 )
----
-504

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL + 72 * MAX ( - 7 )
----
-504

query I rowsort
SELECT - NULLIF ( 26, - 16 ) * + - ( - ( + 59 ) )
----
-1534

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT - SUM( ALL + 59 ) * 64 AS col0
----
-3776

skipif mysql # not compatible
query I rowsort label-3513
SELECT - SUM ( ALL + 59 ) * 64 AS col0
----
-3776

query I rowsort
SELECT - ( + - 81 ) + + 83
----
164

query I rowsort
SELECT DISTINCT + 82 + + 86
----
168

query I rowsort
SELECT CASE 46 WHEN 95 THEN + + 97 + - COALESCE ( NULLIF ( + - 56, - + 81 + - 84 ), 7 ) END + - ( - 37 ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3517
SELECT 66 + + 13 - + 91 * + CAST( NULL AS SIGNED ) AS col2, - CAST( - - 8 AS SIGNED ) * - 36 AS col1
----
NULL
288

skipif mysql # not compatible
query II rowsort label-3517
SELECT 66 + + 13 - + 91 * + CAST ( NULL AS INTEGER ) AS col2, - CAST ( - - 8 AS INTEGER ) * - 36 AS col1
----
NULL
288

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT DISTINCT + 82 + - MAX( DISTINCT + - 94 ) + - 51 AS col2
----
125

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT + 82 + - MAX ( DISTINCT + - 94 ) + - 51 AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT ALL + 28 + - + COUNT( - + 98 )
----
27

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL + 28 + - + COUNT ( - + 98 )
----
27

query II rowsort
SELECT ALL 72 + - - 0 AS col0, - ( - - 89 ) AS col2
----
72
-89

query I rowsort
SELECT ALL - 65 + - 65 * - 57
----
3640

query I rowsort
SELECT 95 * - - 6
----
570

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT DISTINCT - COALESCE ( - + 77, - - 4 + 31 + - 35, + + 68 * - - COALESCE ( - 71, + 49, + ( - MIN( - COALESCE ( - 55, + 69 * + 18 ) ) ) - + CASE 11 WHEN ( - 5 ) THEN 76 * - 96 - 63 WHEN 93 THEN NULL WHEN + 5 THEN NULL END ) )
----
77

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT - COALESCE ( - + 77, - - 4 + 31 + - 35, + + 68 * - - COALESCE ( - 71, + 49, + ( - MIN ( - COALESCE ( - 55, + 69 * + 18 ) ) ) - + CASE 11 WHEN ( - 5 ) THEN 76 * - 96 - 63 WHEN 93 THEN NULL WHEN + 5 THEN NULL END ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT 85 * - MIN( DISTINCT + 54 )
----
-4590

skipif mysql # not compatible
query I rowsort label-3524
SELECT 85 * - MIN ( DISTINCT + 54 )
----
-4590

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3525
SELECT - 88 * + - 68 + - CAST( - + 74 AS SIGNED ) AS col2, NULLIF ( - + 75, - - AVG ( DISTINCT 36 ) ) * 35 * 47 + + 81
----
6058
-123294

skipif mysql # not compatible
query II rowsort label-3525
SELECT - 88 * + - 68 + - CAST ( - + 74 AS INTEGER ) AS col2, NULLIF ( - + 75, - - AVG ( DISTINCT 36 ) ) * 35 * 47 + + 81
----
6058
-123294

onlyif mysql # DIV for integer division: 
query I rowsort label-3526
SELECT 38 DIV - 86 + + 21
----
21

skipif mysql # not compatible
query I rowsort label-3526
SELECT 38 / - 86 + + 21
----
21

query I rowsort
SELECT DISTINCT - 24 - + + 54 - + + 46 * - + 13
----
520

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT DISTINCT + - 83 * + COUNT( * ) * + + 71 * + ( - - CASE - 49 WHEN + MAX( - + ( 46 ) ) THEN NULL ELSE - 45 END )
----
265185

skipif mysql # not compatible
query I rowsort label-3528
SELECT DISTINCT + - 83 * + COUNT ( * ) * + + 71 * + ( - - CASE - 49 WHEN + MAX ( - + ( 46 ) ) THEN NULL ELSE - 45 END )
----
265185

onlyif mysql # DIV for integer division: 
query II rowsort label-3529
SELECT ALL - 91 - + COALESCE ( + - 86, 36 ) AS col1, 72 DIV 4
----
-5
18

skipif mysql # not compatible
query II rowsort label-3529
SELECT ALL - 91 - + COALESCE ( + - 86, 36 ) AS col1, 72 / 4
----
-5
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3530
SELECT + 34 * - CASE + + 96 WHEN + + SUM( ALL - - 73 ) THEN NULL WHEN ( 57 ) + + 52 * 1 THEN + 90 + + 79 WHEN 11 + 70 THEN 97 + CAST( NULL AS SIGNED ) / 58 END * 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT + 34 * - CASE + + 96 WHEN + + SUM ( ALL - - 73 ) THEN NULL WHEN ( 57 ) + + 52 * 1 THEN + 90 + + 79 WHEN 11 + 70 THEN 97 + CAST ( NULL AS INTEGER ) / 58 END * 30 AS col1
----
NULL

query I rowsort
SELECT ALL - 80 * 59 + + 56
----
-4664

query I rowsort
SELECT + 62 * - 51 * + 43 - + - COALESCE ( 51, - 77 ) AS col0
----
-135915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3533
SELECT 41 * - - 54 + - SUM( - + CAST( + + 95 AS SIGNED ) ) AS col0
----
2309

skipif mysql # not compatible
query I rowsort label-3533
SELECT 41 * - - 54 + - SUM ( - + CAST ( + + 95 AS INTEGER ) ) AS col0
----
2309

onlyif mysql # DIV for integer division: 
query I rowsort label-3534
SELECT - 1 * ( + 74 ) + + 56 DIV 55 - + 65 + - 40 AS col0
----
-178

skipif mysql # not compatible
query I rowsort label-3534
SELECT - 1 * ( + 74 ) + + 56 / 55 - + 65 + - 40 AS col0
----
-178

query I rowsort
SELECT 28 - + + 75 AS col2
----
-47

query I rowsort
SELECT - ( 2 ) - 59 AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3537
SELECT ALL - NULLIF ( - 20, + CAST( NULL AS SIGNED ) + + MIN( + + 4 ) )
----
20

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL - NULLIF ( - 20, + CAST ( NULL AS INTEGER ) + + MIN ( + + 4 ) )
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-3538
SELECT DISTINCT 15 DIV 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT 15 / 70 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT CASE + 43 WHEN 40 THEN NULL WHEN + 18 * - 64 * + 40 / 79 * + 45 + - 12 + - 76 THEN + 98 / MAX( DISTINCT + ( COALESCE ( NULLIF ( 87, + CASE 53 WHEN ( - 64 ) THEN NULL WHEN + 97 THEN 63 ELSE NULL END + 52 ), 93 + - 53, 43 - 25 ) ) ) + 27 END / 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT CASE + 43 WHEN 40 THEN NULL WHEN + 18 * - 64 * + 40 / 79 * + 45 + - 12 + - 76 THEN + 98 / MAX ( DISTINCT + ( COALESCE ( NULLIF ( 87, + CASE 53 WHEN ( - 64 ) THEN NULL WHEN + 97 THEN 63 ELSE NULL END + 52 ), 93 + - 53, 43 - 25 ) ) ) + 27 END / 62
----
NULL

query I rowsort
SELECT DISTINCT - 45 + + 48 + - 77 + - - 13 col0
----
-61

query I rowsort
SELECT ( - + 0 ) * - 63 AS col2
----
0

query I rowsort
SELECT 86 * - ( 61 )
----
-5246

query I rowsort
SELECT ALL 44 + + 68
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT ALL + MIN( DISTINCT + 29 ) + - 83 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL + MIN ( DISTINCT + 29 ) + - 83 AS col0
----
-54

query I rowsort
SELECT ALL 8 + ( + 83 ) * + 66
----
5486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3546
SELECT ALL - CASE - 4 WHEN + - AVG ( + 3 ) * - + 2 THEN + 97 + 18 + - 39 * CAST( - 76 AS SIGNED ) * - CAST( - 71 AS SIGNED ) DIV - 50 ELSE - 18 END + + ( 96 ) * - NULLIF ( - COUNT( * ), - AVG ( ALL 9 ) )
----
114

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL - CASE - 4 WHEN + - AVG ( + 3 ) * - + 2 THEN + 97 + 18 + - 39 * CAST ( - 76 AS INTEGER ) * - CAST ( - 71 AS INTEGER ) / - 50 ELSE - 18 END + + ( 96 ) * - NULLIF ( - COUNT ( * ), - AVG ( ALL 9 ) )
----
114

query I rowsort
SELECT 1 * + + ( 85 ) AS col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3548
SELECT 14 * 92 DIV 85 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3548
SELECT 14 * 92 / 85 AS col1
----
15

query I rowsort
SELECT 6 * 27 + + 26 * + 36
----
1098

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3550
SELECT 20 DIV SUM( DISTINCT + 71 ) col2, + 90 * - COUNT( * ) * - 3 * - + 57 AS col0
----
0
-15390

skipif mysql # not compatible
query II rowsort label-3550
SELECT 20 / SUM ( DISTINCT + 71 ) col2, + 90 * - COUNT ( * ) * - 3 * - + 57 AS col0
----
0
-15390

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3553
SELECT + COUNT( * ) DIV - - 45 + + 82
----
82

skipif mysql # not compatible
query I rowsort label-3553
SELECT + COUNT ( * ) / - - 45 + + 82
----
82

query I rowsort
SELECT - 47 * + 15 * - 40 - + + 63
----
28137

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT 10 + 75 - - COUNT( * ) * - 62 * - 7
----
519

skipif mysql # not compatible
query I rowsort label-3555
SELECT 10 + 75 - - COUNT ( * ) * - 62 * - 7
----
519

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3556
SELECT COALESCE ( 87, + 36, - 63 * - 54 + - 27 + + 6 * + 2 DIV - COALESCE ( + ( 20 ), CAST( NULL AS SIGNED ) + 25 * - 52 ) + 12 ) + - ( - 82 - + 33 DIV + 2 ) * 60
----
5967

skipif mysql # not compatible
query I rowsort label-3556
SELECT COALESCE ( 87, + 36, - 63 * - 54 + - 27 + + 6 * + 2 / - COALESCE ( + ( 20 ), CAST ( NULL AS INTEGER ) + 25 * - 52 ) + 12 ) + - ( - 82 - + 33 / + 2 ) * 60
----
5967

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3557
SELECT ALL - 35, - 7 + NULLIF ( MAX( + 58 ), - 22 - + 82 ) - + 20 * - - CASE 9 WHEN 3 THEN + 30 END / CAST( NULL AS DECIMAL ) + + AVG ( - 78 ) AS col0
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-3557
SELECT ALL - 35, - 7 + NULLIF ( MAX ( + 58 ), - 22 - + 82 ) - + 20 * - - CASE 9 WHEN 3 THEN + 30 END / CAST ( NULL AS REAL ) + + AVG ( - 78 ) AS col0
----
-35
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3558
SELECT CAST( - 27 AS SIGNED ) col1
----
-27

skipif mysql # not compatible
query I rowsort label-3558
SELECT CAST ( - 27 AS INTEGER ) col1
----
-27

query I rowsort
SELECT DISTINCT + 84 * - 16
----
-1344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3560
SELECT 25 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3560
SELECT 25 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

query I rowsort
SELECT 27 + - 19
----
8

query I rowsort
SELECT - 71 * 77
----
-5467

onlyif mysql # DIV for integer division: 
query I rowsort label-3564
SELECT + COALESCE ( - - 89, 85 ) * + 31 * 13 + - 79 + + 7 DIV - + 53 + 91 AS col1
----
35879

skipif mysql # not compatible
query I rowsort label-3564
SELECT + COALESCE ( - - 89, 85 ) * + 31 * 13 + - 79 + + 7 / - + 53 + 91 AS col1
----
35879

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3565
SELECT 17 + CAST( + 86 AS SIGNED ) AS col1
----
103

skipif mysql # not compatible
query I rowsort label-3565
SELECT 17 + CAST ( + 86 AS INTEGER ) AS col1
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3566
SELECT - NULLIF ( - 97, ( - 2 ) + - - 63 - + + 71 * - 38 / - 51 * - 74 * + CAST( NULL AS SIGNED ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3566
SELECT - NULLIF ( - 97, ( - 2 ) + - - 63 - + + 71 * - 38 / - 51 * - 74 * + CAST ( NULL AS INTEGER ) ) AS col0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3567
SELECT 63 + 57 * 59 DIV - 58 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3567
SELECT 63 + 57 * 59 / - 58 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL + 68 * 97 - 60 * - 60 * - + 84 + - + CASE - 19 WHEN + CASE 42 WHEN COUNT( * ) THEN 48 * - NULLIF ( + 31, 16 ) END * + 94 THEN + COUNT( - 54 ) WHEN - 99 / 4 + NULLIF ( 33 - - 31, + 55 * - 70 ) THEN NULL WHEN AVG ( DISTINCT 89 ) THEN ( 8 ) ELSE NULL END * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL + 68 * 97 - 60 * - 60 * - + 84 + - + CASE - 19 WHEN + CASE 42 WHEN COUNT ( * ) THEN 48 * - NULLIF ( + 31, 16 ) END * + 94 THEN + COUNT ( - 54 ) WHEN - 99 / 4 + NULLIF ( 33 - - 31, + 55 * - 70 ) THEN NULL WHEN AVG ( DISTINCT 89 ) THEN ( 8 ) ELSE NULL END * 64
----
NULL

query I rowsort
SELECT 43 + - 29 AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3570
SELECT CAST( 8 AS SIGNED ) * + + 28 * - NULLIF ( - NULLIF ( - 89, + - COUNT( * ) * - 81 * - 57 ), + 78 )
----
-19936

skipif mysql # not compatible
query I rowsort label-3570
SELECT CAST ( 8 AS INTEGER ) * + + 28 * - NULLIF ( - NULLIF ( - 89, + - COUNT ( * ) * - 81 * - 57 ), + 78 )
----
-19936

query I rowsort
SELECT 7 + 24 AS col2
----
31

query I rowsort
SELECT ( - - 40 ) * + 93
----
3720

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT 53 + - COUNT( * ) + + 61 * + 29
----
1821

skipif mysql # not compatible
query I rowsort label-3573
SELECT 53 + - COUNT ( * ) + + 61 * + 29
----
1821

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT 96 * - MAX( DISTINCT - - 42 ) AS col0
----
-4032

skipif mysql # not compatible
query I rowsort label-3574
SELECT 96 * - MAX ( DISTINCT - - 42 ) AS col0
----
-4032

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

skipif mysql # not compatible
query I rowsort label-3575
SELECT + 75 + + 35 * + COUNT ( * ) AS col0
----
110

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

query I rowsort
SELECT + 2 + 50 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT DISTINCT 8 + ( + - NULLIF ( - - 35, + + ( + 64 ) - - ( + COUNT( * ) ) ) ) * - + 35 AS col0
----
1233

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT 8 + ( + - NULLIF ( - - 35, + + ( + 64 ) - - ( + COUNT ( * ) ) ) ) * - + 35 AS col0
----
1233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3579
SELECT + CAST( 11 AS SIGNED ) + - 12
----
-1

skipif mysql # not compatible
query I rowsort label-3579
SELECT + CAST ( 11 AS INTEGER ) + - 12
----
-1

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

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

query I rowsort
SELECT ALL 61 + 51 AS col0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT - SUM( + 55 ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-3582
SELECT - SUM ( + 55 ) col0
----
-55

query I rowsort
SELECT - NULLIF ( + 31, + 71 )
----
-31

query I rowsort
SELECT + 43 * + 2 AS col2
----
86

query I rowsort
SELECT + 49 + + 4 + 45 AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3586
SELECT - 25 + + + CAST( - 65 AS SIGNED ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-3586
SELECT - 25 + + + CAST ( - 65 AS INTEGER ) AS col2
----
-90

query I rowsort
SELECT ALL 89 * 6 * 65 AS col0
----
34710

query I rowsort
SELECT + 13 * + ( 59 )
----
767

query I rowsort
SELECT DISTINCT 18 * + 79 AS col2
----
1422

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT ALL 92 * COALESCE ( - CASE + - 21 WHEN - - 11 + + COALESCE ( - COUNT( * ), + 86 + 31 + 38, - 81 ) THEN 10 ELSE NULL END, 29 ) - - ( 21 )
----
2689

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL 92 * COALESCE ( - CASE + - 21 WHEN - - 11 + + COALESCE ( - COUNT ( * ), + 86 + 31 + 38, - 81 ) THEN 10 ELSE NULL END, 29 ) - - ( 21 )
----
2689

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

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL 53 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3593
SELECT DISTINCT + 52, 30 + + COUNT( * ) + 19 col2
----
52
50

skipif mysql # not compatible
query II rowsort label-3593
SELECT DISTINCT + 52, 30 + + COUNT ( * ) + 19 col2
----
52
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ALL + CASE - - 4 WHEN - 10 THEN NULL WHEN + 62 * + COUNT( * ) + 3 * - COALESCE ( - COUNT( * ), + COUNT( * ) * - 36 * - + 53 * 11 ) * 23 - - 69 * 25 THEN + 20 * MIN( - 97 * 2 ) ELSE - 78 END
----
-78

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL + CASE - - 4 WHEN - 10 THEN NULL WHEN + 62 * + COUNT ( * ) + 3 * - COALESCE ( - COUNT ( * ), + COUNT ( * ) * - 36 * - + 53 * 11 ) * 23 - - 69 * 25 THEN + 20 * MIN ( - 97 * 2 ) ELSE - 78 END
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3595
SELECT COALESCE ( + 15, - 47 DIV CASE - 17 WHEN - MIN( DISTINCT 59 ) + - 74 DIV + COUNT( * ) DIV + COUNT( * ) + - 16 THEN 65 * 80 + + 26 END + 77 * - 49 )
----
15

skipif mysql # not compatible
query I rowsort label-3595
SELECT COALESCE ( + 15, - 47 / CASE - 17 WHEN - MIN ( DISTINCT 59 ) + - 74 / + COUNT ( * ) / + COUNT ( * ) + - 16 THEN 65 * 80 + + 26 END + 77 * - 49 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT - - 85 * + + CASE NULLIF ( COALESCE ( - 19, 26 ), - 88 + - ( + - 40 ) + - + 22 ) WHEN + + 15 THEN - 70 / 35 ELSE NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT - - 85 * + + CASE NULLIF ( COALESCE ( - 19, 26 ), - 88 + - ( + - 40 ) + - + 22 ) WHEN + + 15 THEN - 70 / 35 ELSE NULL END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3597
SELECT + 65 AS col2, - COUNT( * ) * 24 * 61 AS col2
----
65
-1464

skipif mysql # not compatible
query II rowsort label-3597
SELECT + 65 AS col2, - COUNT ( * ) * 24 * 61 AS col2
----
65
-1464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3598
SELECT - COUNT( * ) + 32 * + COALESCE ( - ( - CASE + 60 WHEN - COUNT( * ) + 43 THEN NULL WHEN + 85 THEN - CAST( - 72 AS SIGNED ) ELSE NULL END ), - 70 ) + CAST( - 83 - - 88 AS SIGNED ) * NULLIF ( 23 * 54, SUM( ALL 77 ) ) AS col0
----
3969

skipif mysql # not compatible
query I rowsort label-3598
SELECT - COUNT ( * ) + 32 * + COALESCE ( - ( - CASE + 60 WHEN - COUNT ( * ) + 43 THEN NULL WHEN + 85 THEN - CAST ( - 72 AS INTEGER ) ELSE NULL END ), - 70 ) + CAST ( - 83 - - 88 AS INTEGER ) * NULLIF ( 23 * 54, SUM ( ALL 77 ) ) AS col0
----
3969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3599
SELECT + + 58 * + - CASE + - 77 WHEN CAST( - + 31 AS SIGNED ) THEN - 57 / - - 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT + + 58 * + - CASE + - 77 WHEN CAST ( - + 31 AS INTEGER ) THEN - 57 / - - 39 END
----
NULL

query II rowsort
SELECT 29, 79 AS col2
----
29
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3601
SELECT + - CAST( - 72 AS SIGNED ) * 44 + + 28 + - + SUM( + 36 ) AS col2
----
3160

skipif mysql # not compatible
query I rowsort label-3601
SELECT + - CAST ( - 72 AS INTEGER ) * 44 + + 28 + - + SUM ( + 36 ) AS col2
----
3160

query I rowsort
SELECT DISTINCT - - 16 * + - 30 AS col0
----
-480

query I rowsort
SELECT ALL + 39 * CASE - - 80 WHEN - + 23 THEN - + 77 END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3605
SELECT ALL + COALESCE ( - 29, - COUNT( * ) DIV - COUNT( * ) )
----
-29

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL + COALESCE ( - 29, - COUNT ( * ) / - COUNT ( * ) )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3606
SELECT DISTINCT + - 86 * + CAST( NULL AS SIGNED ) + - 90 * + - 96 - + - 93 + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT + - 86 * + CAST ( NULL AS INTEGER ) + - 90 * + - 96 - + - 93 + - 95
----
NULL

query II rowsort
SELECT ALL + 98, 98 col1
----
98
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3608
SELECT - 19 DIV - 83 + + 69 + 69 + - - 78 + + + 83
----
299

skipif mysql # not compatible
query I rowsort label-3608
SELECT - 19 / - 83 + + 69 + 69 + - - 78 + + + 83
----
299

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3609
SELECT ALL + - 87 * + 71 + + ( + 28 ) + 18 + + COUNT( * ) * 50 + + 43 DIV - 92
----
-6081

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL + - 87 * + 71 + + ( + 28 ) + 18 + + COUNT ( * ) * 50 + + 43 / - 92
----
-6081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3610
SELECT - - CASE + MAX( - 75 ) WHEN + 65 THEN NULL WHEN + ( + 23 ) THEN 8 WHEN - 35 + + ( CAST( + CASE ( + ( + 74 ) ) WHEN COUNT( * ) * SUM( + 69 * CAST( 36 * 57 AS SIGNED ) ) + 27 * 41 THEN NULL ELSE + 38 END AS SIGNED ) ) * - 40 THEN 76 + + ( + 8 ) END * - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT - - CASE + MAX ( - 75 ) WHEN + 65 THEN NULL WHEN + ( + 23 ) THEN 8 WHEN - 35 + + ( CAST ( + CASE ( + ( + 74 ) ) WHEN COUNT ( * ) * SUM ( + 69 * CAST ( 36 * 57 AS INTEGER ) ) + 27 * 41 THEN NULL ELSE + 38 END AS INTEGER ) ) * - 40 THEN 76 + + ( + 8 ) END * - 11 AS col2
----
NULL

query I rowsort
SELECT - + 16 * ( - 62 ) * - + 24 + + 57 + + 20
----
-23731

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT + + COUNT( DISTINCT + 32 ) + 86
----
87

skipif mysql # not compatible
query I rowsort label-3612
SELECT + + COUNT ( DISTINCT + 32 ) + 86
----
87

query II rowsort
SELECT - 7 AS col0, 78 AS col0
----
-7
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3614
SELECT ALL - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) + + - MIN( DISTINCT + + 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + + - MIN ( DISTINCT + + 26 )
----
NULL

query I rowsort
SELECT DISTINCT - - ( 19 ) + + 51
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT ALL 56 + + 71 * - MIN( ALL 68 ) * + 16
----
-77192

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL 56 + + 71 * - MIN ( ALL 68 ) * + 16
----
-77192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3617
SELECT - 61 - COUNT( * ), ( - 21 ) * 42 + - 47 - + COUNT( * ) + + + 59 + + 23 / - CAST( NULL AS SIGNED ) AS col0
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-3617
SELECT - 61 - COUNT ( * ), ( - 21 ) * 42 + - 47 - + COUNT ( * ) + + + 59 + + 23 / - CAST ( NULL AS INTEGER ) AS col0
----
-62
NULL

query II rowsort
SELECT DISTINCT ( 61 ) AS col0, 47 + - 7 * 76
----
61
-485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3619
SELECT ALL CAST( - MIN( + 99 ) AS SIGNED ), 95 * + MAX( + 60 ) AS col1
----
-99
5700

skipif mysql # not compatible
query II rowsort label-3619
SELECT ALL CAST ( - MIN ( + 99 ) AS INTEGER ), 95 * + MAX ( + 60 ) AS col1
----
-99
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT - COUNT( * ) * + NULLIF ( 76, - 93 ) * - 93 + - NULLIF ( 94, - COUNT( * ) * + + 59 + 48 ) + + 82
----
7056

skipif mysql # not compatible
query I rowsort label-3620
SELECT - COUNT ( * ) * + NULLIF ( 76, - 93 ) * - 93 + - NULLIF ( 94, - COUNT ( * ) * + + 59 + 48 ) + + 82
----
7056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3621
SELECT + 84 - + 8 - - SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) * + - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3621
SELECT + 84 - + 8 - - SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) * + - 42 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3622
SELECT DISTINCT COALESCE ( - + COUNT( * ), - NULLIF ( - CAST( NULL AS SIGNED ), + 3 * 67 + AVG ( 61 ) ) DIV + 48 + ( + - 33 ) ) DIV - 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT COALESCE ( - + COUNT ( * ), - NULLIF ( - CAST ( NULL AS INTEGER ), + 3 * 67 + AVG ( 61 ) ) / + 48 + ( + - 33 ) ) / - 70 AS col1
----
0

query I rowsort
SELECT DISTINCT ( 9 ) * - 40 * 34
----
-12240

onlyif mysql # DIV for integer division: 
query I rowsort label-3624
SELECT DISTINCT COALESCE ( - 86, - 46 + + 26 ) DIV - ( 32 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT COALESCE ( - 86, - 46 + + 26 ) / - ( 32 ) AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3625
SELECT + COUNT( * ) DIV 58 DIV + - 61
----
0

skipif mysql # not compatible
query I rowsort label-3625
SELECT + COUNT ( * ) / 58 / + - 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT ALL MAX( ALL + + 48 ) * - + MIN( 20 ) AS col0
----
-960

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL MAX ( ALL + + 48 ) * - + MIN ( 20 ) AS col0
----
-960

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

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT 32 * + COUNT ( * ) AS col2
----
32

query I rowsort
SELECT ALL + 73 * - - ( 47 ) col1
----
3431

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3629
SELECT + 80 + + CAST( NULL AS SIGNED ) * - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-3629
SELECT + 80 + + CAST ( NULL AS INTEGER ) * - 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT DISTINCT + + COUNT( ALL + + 2 )
----
1

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT + + COUNT ( ALL + + 2 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3631
SELECT DISTINCT + - 9 DIV 27 + - 64 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT + - 9 / 27 + - 64 AS col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3632
SELECT + 80 * + + COUNT( * ) + + + 67 + - CASE - NULLIF ( 93, + + 18 / - + COALESCE ( + + 71, 11 + - 11 + - COUNT( DISTINCT - 96 ), + MIN( 7 ) ) ) WHEN - 35 THEN - 22 + - 50 * + CAST( - 49 * + 30 AS SIGNED ) WHEN - CAST( NULL AS SIGNED ) THEN NULL END * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3632
SELECT + 80 * + + COUNT ( * ) + + + 67 + - CASE - NULLIF ( 93, + + 18 / - + COALESCE ( + + 71, 11 + - 11 + - COUNT ( DISTINCT - 96 ), + MIN ( 7 ) ) ) WHEN - 35 THEN - 22 + - 50 * + CAST ( - 49 * + 30 AS INTEGER ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL END * + 10
----
NULL

query I rowsort
SELECT - 67 * - 83 + + 20 + 58 AS col1
----
5639

query I rowsort
SELECT - ( - + 3 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3635
SELECT 5 DIV + ( 49 ) + + 10 - + 40 + 74 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3635
SELECT 5 / + ( 49 ) + + 10 - + 40 + 74 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT + 44 + + ( - 81 ) * 83 - COUNT( + ( - 16 ) )
----
-6680

skipif mysql # not compatible
query I rowsort label-3636
SELECT + 44 + + ( - 81 ) * 83 - COUNT ( + ( - 16 ) )
----
-6680

query I rowsort
SELECT DISTINCT + - 46 + 71 * + 23 AS col2
----
1587

query I rowsort
SELECT ALL - 66 + - 59 AS col0
----
-125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3639
SELECT DISTINCT - AVG ( ALL - 17 ) / - CASE - - 36 WHEN + 87 THEN + COUNT( * ) END * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT - AVG ( ALL - 17 ) / - CASE - - 36 WHEN + 87 THEN + COUNT ( * ) END * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 78 col1, 46 + - + 47 - 3 * 32 AS col1
----
-78
-97

query I rowsort
SELECT DISTINCT + 37 * - - 51 * + 47
----
88689

query II rowsort
SELECT 23, + 1 col1
----
23
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3643
SELECT CAST( - - 17 AS SIGNED ) / ( + MIN( + 7 ) ) / ( - + 27 ) + - ( - + CASE + - AVG ( + 47 ) WHEN 21 THEN NULL WHEN - - CAST( NULL AS SIGNED ) THEN NULL WHEN 39 * CASE CAST( AVG ( ALL 72 ) AS SIGNED ) WHEN - 8 THEN + 76 ELSE + 22 * NULLIF ( 16, 64 ) + 42 END THEN + 76 + + 31 WHEN CAST( - 16 AS SIGNED ) / + 91 THEN NULL ELSE NULL END ) + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3643
SELECT CAST ( - - 17 AS INTEGER ) / ( + MIN ( + 7 ) ) / ( - + 27 ) + - ( - + CASE + - AVG ( + 47 ) WHEN 21 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN NULL WHEN 39 * CASE CAST ( AVG ( ALL 72 ) AS INTEGER ) WHEN - 8 THEN + 76 ELSE + 22 * NULLIF ( 16, 64 ) + 42 END THEN + 76 + + 31 WHEN CAST ( - 16 AS INTEGER ) / + 91 THEN NULL ELSE NULL END ) + 27 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3644
SELECT 4 * + 86 * 18, CAST( NULL AS SIGNED ) - - + 16 col1
----
6192
NULL

skipif mysql # not compatible
query II rowsort label-3644
SELECT 4 * + 86 * 18, CAST ( NULL AS INTEGER ) - - + 16 col1
----
6192
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3645
SELECT + MAX( - + 1 ) * COUNT( * ) DIV 9 + - 29 + - 11 + + - 52 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3645
SELECT + MAX ( - + 1 ) * COUNT ( * ) / 9 + - 29 + - 11 + + - 52 AS col2
----
-92

query I rowsort
SELECT 78 * + 86 AS col2
----
6708

query I rowsort
SELECT COALESCE ( - 0, 72 ) + 72
----
72

query I rowsort
SELECT 1 + 48 + - - 32
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3649
SELECT DISTINCT - 2 - COUNT( * ) + + - 67 AS col2, 86 + - + 56 col0
----
-70
30

skipif mysql # not compatible
query II rowsort label-3649
SELECT DISTINCT - 2 - COUNT ( * ) + + - 67 AS col2, 86 + - + 56 col0
----
-70
30

onlyif mysql # aggregate syntax: 
query II rowsort label-3650
SELECT ALL 53, COUNT( 7 ) / - 58 + + 16 - + CASE 62 WHEN 58 THEN 64 WHEN + COUNT( * ) / - SUM( - 12 ) + + ( 96 ) THEN 65 + - COUNT( * ) END - 42 * + MAX( - 20 ) AS col1
----
53
NULL

skipif mysql # not compatible
query II rowsort label-3650
SELECT ALL 53, COUNT ( 7 ) / - 58 + + 16 - + CASE 62 WHEN 58 THEN 64 WHEN + COUNT ( * ) / - SUM ( - 12 ) + + ( 96 ) THEN 65 + - COUNT ( * ) END - 42 * + MAX ( - 20 ) AS col1
----
53
NULL

query II rowsort
SELECT DISTINCT 5, + 50 col0
----
5
50

query I rowsort
SELECT DISTINCT NULLIF ( + 52, - ( - AVG ( DISTINCT - + 39 ) ) ) * 99 + + 41
----
5189

query II rowsort
SELECT DISTINCT 59 AS col2, 10 * + 20
----
59
200

query II rowsort
SELECT ALL 11 col1, 33 AS col2
----
11
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT COUNT( * ) * - 25 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3655
SELECT COUNT ( * ) * - 25 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT DISTINCT + COALESCE ( + 0, 58 ) * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT + COALESCE ( + 0, 58 ) * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3657
SELECT ALL 20 AS col1, + COUNT( * ) AS col1
----
20
1

skipif mysql # not compatible
query II rowsort label-3657
SELECT ALL 20 AS col1, + COUNT ( * ) AS col1
----
20
1

query I rowsort
SELECT 45 + + - 1 + - 12
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL + 85 * - - COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL + 85 * - - COUNT ( * ) AS col1
----
85

query I rowsort
SELECT 19 * 30
----
570

query II rowsort
SELECT 21 AS col1, + 68 AS col0
----
21
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ALL + 2 * - COUNT( * ) + 87 col0
----
85

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL + 2 * - COUNT ( * ) + 87 col0
----
85

query I rowsort
SELECT DISTINCT - - 69 + + + NULLIF ( + ( 57 ), + 36 ) AS col2
----
126

query I rowsort
SELECT ALL 9 + + - 83
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT ALL - NULLIF ( - 56, 80 * - SUM( - 79 ) ) + + 91
----
147

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL - NULLIF ( - 56, 80 * - SUM ( - 79 ) ) + + 91
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT + - COUNT( - 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-3666
SELECT + - COUNT ( - 30 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3667
SELECT - ( ( + CAST( NULL AS DECIMAL ) ) ) / COUNT( * ) - - 71 + 14 - + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3667
SELECT - ( ( + CAST ( NULL AS REAL ) ) ) / COUNT ( * ) - - 71 + 14 - + 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT ( + - COUNT( * ) ) * 1 * - 48 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-3668
SELECT ( + - COUNT ( * ) ) * 1 * - 48 AS col1
----
48

query I rowsort
SELECT + 1 * 23 AS col0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3670
SELECT ALL - NULLIF ( - 82, CASE - 45 WHEN - - 96 THEN NULL WHEN + 50 * + + 12 + 41 THEN - 8 * - 99 + + 24 * 63 DIV - - CASE + 74 WHEN 34 THEN NULL ELSE + 94 - - 52 * 65 END END - + 1 DIV COUNT( * ) ) DIV + 69
----
1

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL - NULLIF ( - 82, CASE - 45 WHEN - - 96 THEN NULL WHEN + 50 * + + 12 + 41 THEN - 8 * - 99 + + 24 * 63 / - - CASE + 74 WHEN 34 THEN NULL ELSE + 94 - - 52 * 65 END END - + 1 / COUNT ( * ) ) / + 69
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT ALL - ( - 92 ) + + + MIN( - + 30 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL - ( - 92 ) + + + MIN ( - + 30 ) AS col2
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3672
SELECT + 45 * - - 66 * 0 DIV + 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3672
SELECT + 45 * - - 66 * 0 / + 45 AS col1
----
0

query I rowsort
SELECT ALL + 87 * + 73
----
6351

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT DISTINCT MAX( ALL - 34 ) + + SUM( 70 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT MAX ( ALL - 34 ) + + SUM ( 70 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT DISTINCT - 68 - + + 31 + - 68 + - ( + 76 ) * + 52 * COUNT( * )
----
-4119

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT - 68 - + + 31 + - 68 + - ( + 76 ) * + 52 * COUNT ( * )
----
-4119

query I rowsort
SELECT ( + 26 ) * 14 AS col1
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT ALL + CASE + ( + CASE - 63 WHEN 35 THEN - 71 END ) WHEN + NULLIF ( + 21, + 87 + 87 + + 2 * - 26 * MAX( - 35 ) ) * 58 THEN NULL WHEN 30 THEN + 92 END * + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL + CASE + ( + CASE - 63 WHEN 35 THEN - 71 END ) WHEN + NULLIF ( + 21, + 87 + 87 + + 2 * - 26 * MAX ( - 35 ) ) * 58 THEN NULL WHEN 30 THEN + 92 END * + 0 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3678
SELECT DISTINCT 96 DIV - 18
----
-5

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT 96 / - 18
----
-5

query II rowsort
SELECT ALL 30 * - - 93, 0 col2
----
2790
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3680
SELECT 29 DIV - 53 * + 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3680
SELECT 29 / - 53 * + 33 AS col2
----
0

query I rowsort
SELECT 0 * - - 9 * + 34
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3682
SELECT NULLIF ( + - 98, + - NULLIF ( - + 12, - 35 DIV - + 64 - + 95 ) ) + - - 87 DIV - 30
----
-100

skipif mysql # not compatible
query I rowsort label-3682
SELECT NULLIF ( + - 98, + - NULLIF ( - + 12, - 35 / - + 64 - + 95 ) ) + - - 87 / - 30
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3683
SELECT 39 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT 39 * + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT ALL + 16 * - COUNT( * ) * + 13
----
-208

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL + 16 * - COUNT ( * ) * + 13
----
-208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3685
SELECT 19 DIV + 84 * - ( - 38 ) * 33 * - + COUNT( * ) + + 35 DIV - 14 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3685
SELECT 19 / + 84 * - ( - 38 ) * 33 * - + COUNT ( * ) + + 35 / - 14 AS col1
----
-2

query I rowsort
SELECT ALL - 44 + 43 + 37 - - + 91 AS col1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT COUNT( - ( 39 ) ) * 17 + + MIN( + 0 ) * COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-3687
SELECT COUNT ( - ( 39 ) ) * 17 + + MIN ( + 0 ) * COUNT ( * ) AS col0
----
17

query I rowsort
SELECT COALESCE ( 95, + - 30 ) AS col2
----
95

query I rowsort
SELECT ALL - 15 + + 25 AS col2
----
10

query I rowsort
SELECT ALL + + 79 + + 90 + - - 27 AS col2
----
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3691
SELECT DISTINCT + COUNT( * ) * + 2 + AVG ( ALL 96 ) / - - CAST( NULL AS SIGNED ) + - ( + 44 ) AS col1, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3691
SELECT DISTINCT + COUNT ( * ) * + 2 + AVG ( ALL 96 ) / - - CAST ( NULL AS INTEGER ) + - ( + 44 ) AS col1, + COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT + 99 * + MIN( ALL - + 3 ) + - - 20 * 37 + - 59
----
384

skipif mysql # not compatible
query I rowsort label-3692
SELECT + 99 * + MIN ( ALL - + 3 ) + - - 20 * 37 + - 59
----
384

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT + 8 * + 32 + + COUNT( * ) * 72 + - COUNT( * ) + COALESCE ( - 38, - 82 ) * - - COUNT( * ) - 17 - 47 + - 68 - + COUNT( * ) * + CASE WHEN NOT 14 IS NULL THEN - 19 END
----
176

skipif mysql # not compatible
query I rowsort label-3693
SELECT + 8 * + 32 + + COUNT ( * ) * 72 + - COUNT ( * ) + COALESCE ( - 38, - 82 ) * - - COUNT ( * ) - 17 - 47 + - 68 - + COUNT ( * ) * + CASE WHEN NOT 14 IS NULL THEN - 19 END
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT ALL - 30 * 28 * 7 + + + COUNT( * ) - - 44 * - 73 AS col0
----
-9091

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL - 30 * 28 * 7 + + + COUNT ( * ) - - 44 * - 73 AS col0
----
-9091

onlyif mysql # DIV for integer division: 
query I rowsort label-3695
SELECT 19 DIV + - ( + - 89 ) + + 2 + + + 63 * - 48
----
-3022

skipif mysql # not compatible
query I rowsort label-3695
SELECT 19 / + - ( + - 89 ) + + 2 + + + 63 * - 48
----
-3022

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3696
SELECT 69 * 54 DIV - + 42 + + 9 + 59 * - MAX( - 88 ) * + ( + - 52 ) + - - ( - 64 ) AS col1
----
-270127

skipif mysql # not compatible
query I rowsort label-3696
SELECT 69 * 54 / - + 42 + + 9 + 59 * - MAX ( - 88 ) * + ( + - 52 ) + - - ( - 64 ) AS col1
----
-270127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3697
SELECT ALL - + MAX( 34 ) DIV COUNT( * ) + + - CAST( + 18 AS SIGNED ) + 76 * - COUNT( * ) AS col0
----
-128

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL - + MAX ( 34 ) / COUNT ( * ) + + - CAST ( + 18 AS INTEGER ) + 76 * - COUNT ( * ) AS col0
----
-128

query II rowsort
SELECT - + 84 * 79 AS col0, 73 AS col1
----
-6636
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3699
SELECT + 15 * - + CAST( 32 AS SIGNED ) * - + ( - + CASE + 39 WHEN - + CASE 83 WHEN - + 16 THEN + 16 END THEN NULL WHEN - + 80 THEN + + 91 * - 27 * + + 83 END ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3699
SELECT + 15 * - + CAST ( 32 AS INTEGER ) * - + ( - + CASE + 39 WHEN - + CASE 83 WHEN - + 16 THEN + 16 END THEN NULL WHEN - + 80 THEN + + 91 * - 27 * + + 83 END ) / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3700
SELECT ALL 97 DIV + COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL 97 / + COUNT ( * ) AS col2
----
97

query II rowsort
SELECT DISTINCT + 46 AS col1, + 3 + 62 * - + 11 AS col0
----
46
-679

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3702
SELECT + 26 * + CAST( - - 3 AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-3702
SELECT + 26 * + CAST ( - - 3 AS INTEGER )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3703
SELECT + CAST( + 99 AS SIGNED ) * 65 AS col1, - 77 * + 62 + - 11 / + NULLIF ( + - SUM( - CAST( NULL AS SIGNED ) ), + 47 ) * - 37
----
6435
NULL

skipif mysql # not compatible
query II rowsort label-3703
SELECT + CAST ( + 99 AS INTEGER ) * 65 AS col1, - 77 * + 62 + - 11 / + NULLIF ( + - SUM ( - CAST ( NULL AS INTEGER ) ), + 47 ) * - 37
----
6435
NULL

query I rowsort
SELECT + 2 * 89 AS col0
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT DISTINCT COUNT( * ) * 8 * + SUM( 45 )
----
360

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT COUNT ( * ) * 8 * + SUM ( 45 )
----
360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3706
SELECT DISTINCT + 46 AS col0, CAST( 90 AS SIGNED )
----
46
90

skipif mysql # not compatible
query II rowsort label-3706
SELECT DISTINCT + 46 AS col0, CAST ( 90 AS INTEGER )
----
46
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3707
SELECT ALL CASE + + CAST( - + 24 AS DECIMAL ) WHEN + 81 / - 30 + - + 33 THEN NULL WHEN - 75 * + 59 THEN - 36 * - - 25 * COUNT( + NULLIF ( + 70, - 79 ) ) * + 17 + + 80 * - 0 ELSE NULL END * 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL CASE + + CAST ( - + 24 AS REAL ) WHEN + 81 / - 30 + - + 33 THEN NULL WHEN - 75 * + 59 THEN - 36 * - - 25 * COUNT ( + NULLIF ( + 70, - 79 ) ) * + 17 + + 80 * - 0 ELSE NULL END * 44 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT + 66 * - COUNT( * ) col0
----
-66

skipif mysql # not compatible
query I rowsort label-3708
SELECT + 66 * - COUNT ( * ) col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT MIN( 87 )
----
87

skipif mysql # not compatible
query I rowsort label-3709
SELECT MIN ( 87 )
----
87

query I rowsort
SELECT + 36 - - 65
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT DISTINCT 42 + MIN( ALL - 34 ) * + 70
----
-2338

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT 42 + MIN ( ALL - 34 ) * + 70
----
-2338

query I rowsort
SELECT ALL ( 63 ) + - 41
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3713
SELECT ALL 77 DIV - + 30 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL 77 / - + 30 AS col2
----
-2

query I rowsort
SELECT ALL 88 + - + 3 * - 91 - + 94 + - - 34 AS col2
----
301

query I rowsort
SELECT - ( NULLIF ( - 57, - 92 ) ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT + MIN( DISTINCT 86 ) + - 94 + + 60 + - + COUNT( DISTINCT 1 )
----
51

skipif mysql # not compatible
query I rowsort label-3716
SELECT + MIN ( DISTINCT 86 ) + - 94 + + 60 + - + COUNT ( DISTINCT 1 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT ALL ( + COUNT( * ) ) + + 31 + - + 95
----
-63

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL ( + COUNT ( * ) ) + + 31 + - + 95
----
-63

query II rowsort
SELECT ALL - ( + 29 ) + 10 AS col0, 47
----
-19
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT DISTINCT COUNT( * ) * - + 1
----
-1

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT COUNT ( * ) * - + 1
----
-1

query I rowsort
SELECT + 0 * - 24
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT DISTINCT + - COUNT( * ) + - - 52
----
51

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT + - COUNT ( * ) + - - 52
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3722
SELECT ALL - + 39 + - COUNT( * ) DIV NULLIF ( + 77, - 93 + - - 12 + - 97 )
----
-39

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL - + 39 + - COUNT ( * ) / NULLIF ( + 77, - 93 + - - 12 + - 97 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3723
SELECT ALL + ( - + 83 ) - + + ( - CAST( + - 75 AS SIGNED ) ) AS col2
----
-158

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL + ( - + 83 ) - + + ( - CAST ( + - 75 AS INTEGER ) ) AS col2
----
-158

query I rowsort
SELECT - - 23 * 44 AS col2
----
1012

query I rowsort
SELECT DISTINCT 14 - - 81
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-3726
SELECT ALL + 91 col1, COUNT( * ) AS col2
----
91
1

skipif mysql # not compatible
query II rowsort label-3726
SELECT ALL + 91 col1, COUNT ( * ) AS col2
----
91
1

query I rowsort
SELECT DISTINCT + + NULLIF ( + 40, + - ( - 17 ) )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3728
SELECT - 81 col2, MAX( DISTINCT - - 32 ) - - 77 + + + 71 col0
----
-81
180

skipif mysql # not compatible
query II rowsort label-3728
SELECT - 81 col2, MAX ( DISTINCT - - 32 ) - - 77 + + + 71 col0
----
-81
180

query I rowsort
SELECT - ( + ( + 27 ) ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT ALL - COUNT( * ) * - - NULLIF ( - 86, 70 ) * 32
----
2752

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL - COUNT ( * ) * - - NULLIF ( - 86, 70 ) * 32
----
2752

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3731
SELECT + NULLIF ( - 39, + 93 * + + 24 * - CAST( - 41 AS SIGNED ) - - ( + 82 ) + + 48 ) AS col1, 28 + - 18 + + - 34 * 15
----
-39
-500

skipif mysql # not compatible
query II rowsort label-3731
SELECT + NULLIF ( - 39, + 93 * + + 24 * - CAST ( - 41 AS INTEGER ) - - ( + 82 ) + + 48 ) AS col1, 28 + - 18 + + - 34 * 15
----
-39
-500

onlyif mysql # DIV for integer division: 
query I rowsort label-3732
SELECT - 97 DIV + + 88 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3732
SELECT - 97 / + + 88 AS col0
----
-1

query I rowsort
SELECT + 2 * 12 AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3734
SELECT ALL + COALESCE ( - CAST( - 18 AS SIGNED ), + + 56, + - 42 DIV + + AVG ( ALL 69 ) )
----
18

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL + COALESCE ( - CAST ( - 18 AS INTEGER ), + + 56, + - 42 / + + AVG ( ALL 69 ) )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3735
SELECT ALL + COUNT( * ) col0, 12 DIV + COUNT( * ) AS col1
----
1
12

skipif mysql # not compatible
query II rowsort label-3735
SELECT ALL + COUNT ( * ) col0, 12 / + COUNT ( * ) AS col1
----
1
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3736
SELECT DISTINCT + CAST( - - 40 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT + CAST ( - - 40 AS INTEGER )
----
40

query I rowsort
SELECT COALESCE ( - 51, + 49 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT DISTINCT + COUNT( DISTINCT - - 47 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT + COUNT ( DISTINCT - - 47 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT ALL - 84 * + 95 + - - COUNT( DISTINCT + 50 ) * - 48
----
-8028

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL - 84 * + 95 + - - COUNT ( DISTINCT + 50 ) * - 48
----
-8028

query I rowsort
SELECT ALL - 0 * + + ( - 70 ) + + 9
----
9

query I rowsort
SELECT 25 * 52 + + 98 + - + 46 * + 67 AS col0
----
-1684

query I rowsort
SELECT CASE 8 WHEN - - 53 THEN - - 28 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT - 31 DIV ( + + 81 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3743
SELECT - 31 / ( + + 81 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT 62 * COUNT( * ) * + 17 + 79 - - ( 2 ) + - 2 * + 24 AS col0
----
1087

skipif mysql # not compatible
query I rowsort label-3744
SELECT 62 * COUNT ( * ) * + 17 + 79 - - ( 2 ) + - 2 * + 24 AS col0
----
1087

query I rowsort
SELECT + 95 - + - 83 col0
----
178

query II rowsort
SELECT ALL + 84, + 44 AS col0
----
84
44

query I rowsort
SELECT + 13 + 95
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT + SUM( + NULLIF ( + 31, + 9 / - 44 + 72 ) ) * 82 AS col1
----
2542

skipif mysql # not compatible
query I rowsort label-3748
SELECT + SUM ( + NULLIF ( + 31, + 9 / - 44 + 72 ) ) * 82 AS col1
----
2542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3749
SELECT ALL CAST( + ( 42 ) AS SIGNED ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL CAST ( + ( 42 ) AS INTEGER ) AS col1
----
42

query I rowsort
SELECT ALL 97 * - 19 * + 87 + - 99 + - + 28
----
-160468

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT DISTINCT - 90 * 75 + - ( COUNT( * ) )
----
-6751

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT - 90 * 75 + - ( COUNT ( * ) )
----
-6751

query I rowsort
SELECT ALL 71 * - - 76 * - ( - - 28 ) col0
----
-151088

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT + 77 * + MAX( + 2 )
----
154

skipif mysql # not compatible
query I rowsort label-3753
SELECT + 77 * + MAX ( + 2 )
----
154

query I rowsort
SELECT ALL + 41 * + 98 + 45
----
4063

query II rowsort
SELECT ALL 70 AS col2, + 99
----
70
99

query I rowsort
SELECT DISTINCT 0 * + 29 * - 11 * - + 65
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3757
SELECT DISTINCT - 29, - COUNT( * ) * - COUNT( * ) * 84 AS col2
----
-29
84

skipif mysql # not compatible
query II rowsort label-3757
SELECT DISTINCT - 29, - COUNT ( * ) * - COUNT ( * ) * 84 AS col2
----
-29
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3758
SELECT - + CAST( NULL AS SIGNED ) - - + 31 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3758
SELECT - + CAST ( NULL AS INTEGER ) - - + 31 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT + 54 * + COUNT( * ) - + 5 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3759
SELECT + 54 * + COUNT ( * ) - + 5 AS col1
----
49

query I rowsort
SELECT ALL - 32 - + 83
----
-115

query II rowsort
SELECT - 20 - + + NULLIF ( + - 43, + 4 ) AS col0, 18 * 2 AS col0
----
23
36

query I rowsort
SELECT DISTINCT 59 * - 46 + + 0 AS col2
----
-2714

query I rowsort
SELECT ALL - + 37 * 95 AS col2
----
-3515

query I rowsort
SELECT ALL ( - + 52 ) AS col1
----
-52

query I rowsort
SELECT DISTINCT - ( - - ( + 40 ) ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT ALL COUNT( * ) * 29 * + COALESCE ( - 63, - + ( - 45 ) ) + - ( + + 5 )
----
-1832

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL COUNT ( * ) * 29 * + COALESCE ( - 63, - + ( - 45 ) ) + - ( + + 5 )
----
-1832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3767
SELECT + 14 + SUM( ALL + 88 ) + 0 - + 71 + - 79 + - 55 DIV - 66 * - - 53
----
-48

skipif mysql # not compatible
query I rowsort label-3767
SELECT + 14 + SUM ( ALL + 88 ) + 0 - + 71 + - 79 + - 55 / - 66 * - - 53
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3768
SELECT 26 - + COALESCE ( + - COALESCE ( 85, + - 1 * 84 + 92 + NULLIF ( ( - 78 ), - + 51 + 96 ) + - - 91 / - 44 ), + - ( - COALESCE ( 85, - 8 + - 41 * + 67, - 60 + 20 ) ) ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT 26 - + COALESCE ( + - COALESCE ( 85, + - 1 * 84 + 92 + NULLIF ( ( - 78 ), - + 51 + 96 ) + - - 91 / - 44 ), + - ( - COALESCE ( 85, - 8 + - 41 * + 67, - 60 + 20 ) ) ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT - 49 * 93 + - COUNT( * ) + 26 AS col2
----
-4532

skipif mysql # not compatible
query I rowsort label-3769
SELECT - 49 * 93 + - COUNT ( * ) + 26 AS col2
----
-4532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3770
SELECT + CASE - - 40 WHEN + - 4 THEN + 45 WHEN 69 + - 46 * + + ( - - COALESCE ( - 31, - CAST( NULL AS SIGNED ) - + - ( - ( - ( + 31 ) ) ), + - 44 + - ( MAX( ( CAST( NULL AS SIGNED ) ) ) ), - 77 ) ) + ( + 64 ) * + 71 THEN 56 WHEN 42 + + CASE 13 WHEN ( + 81 ) THEN NULL WHEN - 81 THEN 82 * + 75 - - 48 ELSE NULL END THEN NULL END - + SUM( DISTINCT 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3770
SELECT + CASE - - 40 WHEN + - 4 THEN + 45 WHEN 69 + - 46 * + + ( - - COALESCE ( - 31, - CAST ( NULL AS INTEGER ) - + - ( - ( - ( + 31 ) ) ), + - 44 + - ( MAX ( ( CAST ( NULL AS INTEGER ) ) ) ), - 77 ) ) + ( + 64 ) * + 71 THEN 56 WHEN 42 + + CASE 13 WHEN ( + 81 ) THEN NULL WHEN - 81 THEN 82 * + 75 - - 48 ELSE NULL END THEN NULL END - + SUM ( DISTINCT 44 )
----
NULL

query I rowsort
SELECT ALL - ( - + 78 )
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3772
SELECT + COALESCE ( NULLIF ( + COUNT( * ), 83 - + 21 * - + 47 ), + 54 DIV + 40, + COUNT( + + 88 ) * 36 + + 98 + - 1 ) * 37 + 49 * - MAX( 70 )
----
-3393

skipif mysql # not compatible
query I rowsort label-3772
SELECT + COALESCE ( NULLIF ( + COUNT ( * ), 83 - + 21 * - + 47 ), + 54 / + 40, + COUNT ( + + 88 ) * 36 + + 98 + - 1 ) * 37 + 49 * - MAX ( 70 )
----
-3393

query I rowsort
SELECT + 10 * + 56 * + - 73 + - 49
----
-40929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3774
SELECT + 54 * - CAST( NULL AS SIGNED ) * - + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3774
SELECT + 54 * - CAST ( NULL AS INTEGER ) * - + 32 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL 61 * MIN( + 56 ) AS col1
----
3416

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL 61 * MIN ( + 56 ) AS col1
----
3416

onlyif mysql # DIV for integer division: 
query I rowsort label-3776
SELECT 56 DIV 84 + - - 47 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-3776
SELECT 56 / 84 + - - 47 AS col0
----
47

query I rowsort
SELECT 14 + + - 66 * 88 + + 7 AS col1
----
-5787

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT DISTINCT + COUNT( * ) + + CASE - 11 WHEN + - 64 THEN + 33 END * - 4 * + MAX( + ( 25 ) ) * - + COUNT( * ) + - - 34 + 92 - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT + COUNT ( * ) + + CASE - 11 WHEN + - 64 THEN + 33 END * - 4 * + MAX ( + ( 25 ) ) * - + COUNT ( * ) + - - 34 + 92 - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT ALL - MIN( - 3 ) * - 72 + NULLIF ( 28, + - 14 ) AS col2
----
-188

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL - MIN ( - 3 ) * - 72 + NULLIF ( 28, + - 14 ) AS col2
----
-188

query I rowsort
SELECT ALL + 30 + + 9 + - - 49
----
88

query I rowsort
SELECT 13 * - + 34 AS col2
----
-442

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL - 57 * - - 43 * - CASE - COUNT( + 74 ) WHEN + 75 * + + SUM( 58 ) THEN 11 + + COALESCE ( + - COUNT( * ), - NULLIF ( - 22, + - ( - ( - AVG ( DISTINCT + 47 ) ) ) ) * - 55, - ( + 21 ) ) * + 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL - 57 * - - 43 * - CASE - COUNT ( + 74 ) WHEN + 75 * + + SUM ( 58 ) THEN 11 + + COALESCE ( + - COUNT ( * ), - NULLIF ( - 22, + - ( - ( - AVG ( DISTINCT + 47 ) ) ) ) * - 55, - ( + 21 ) ) * + 31 END
----
NULL

query II rowsort
SELECT 58 + + 80 AS col0, - 63 * 70 AS col1
----
138
-4410

query I rowsort
SELECT 38 * + + 28 * 41
----
43624

onlyif mysql # DIV for integer division: 
query I rowsort label-3785
SELECT DISTINCT - 67 + - - 52 DIV - 32
----
-68

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT - 67 + - - 52 / - 32
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT DISTINCT 89 + MAX( - 59 )
----
30

skipif mysql # not compatible
query I rowsort label-3786
SELECT DISTINCT 89 + MAX ( - 59 )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3787
SELECT ALL 24 DIV - + 89 * - + 38 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL 24 / - + 89 * - + 38 AS col0
----
0

query I rowsort
SELECT 35 + + - 29 * - 17 - + - 49 * + 80 * - - ( - 46 ) - 42 col1
----
-179834

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT + SUM( ALL 39 ) + + + MIN( DISTINCT + + 86 )
----
125

skipif mysql # not compatible
query I rowsort label-3789
SELECT + SUM ( ALL 39 ) + + + MIN ( DISTINCT + + 86 )
----
125

query I rowsort
SELECT DISTINCT - + 60 - 12 - 86
----
-158

query I rowsort
SELECT ALL + - 98 * 53 * 50 col0
----
-259700

query I rowsort
SELECT ALL ( - 15 ) * - 47 * + 8
----
5640

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT - 18 + + COUNT( - + 70 )
----
-17

skipif mysql # not compatible
query I rowsort label-3793
SELECT - 18 + + COUNT ( - + 70 )
----
-17

query I rowsort
SELECT 71 + + - 77 AS col2
----
-6

query II rowsort
SELECT ALL - 51 * - - 45 AS col1, - ( 85 )
----
-2295
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3796
SELECT + CAST( + 98 AS SIGNED ) + + 85 AS col0
----
183

skipif mysql # not compatible
query I rowsort label-3796
SELECT + CAST ( + 98 AS INTEGER ) + + 85 AS col0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT + 11 * - + 27 + - 67 - 15 * + 41 + COUNT( * ) + - 75
----
-1053

skipif mysql # not compatible
query I rowsort label-3797
SELECT + 11 * - + 27 + - 67 - 15 * + 41 + COUNT ( * ) + - 75
----
-1053

onlyif mysql # DIV for integer division: 
query I rowsort label-3798
SELECT 41 + - - ( + 74 ) DIV 58 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3798
SELECT 41 + - - ( + 74 ) / 58 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT DISTINCT 60 + - - 29 * - 28 + 16 * + CASE 91 WHEN - 0 THEN + MAX( ALL + 12 ) ELSE + 94 - + - 43 + MIN( + 7 ) END + - 73 * 32 AS col2
----
-784

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT 60 + - - 29 * - 28 + 16 * + CASE 91 WHEN - 0 THEN + MAX ( ALL + 12 ) ELSE + 94 - + - 43 + MIN ( + 7 ) END + - 73 * 32 AS col2
----
-784

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3800
SELECT 89 DIV + 90, ( COUNT( DISTINCT 32 ) ) - - 57 * - - 62 col0
----
0
3535

skipif mysql # not compatible
query II rowsort label-3800
SELECT 89 / + 90, ( COUNT ( DISTINCT 32 ) ) - - 57 * - - 62 col0
----
0
3535

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT ALL MAX( - + 61 ) + COALESCE ( 30, + COUNT( * ) ) + - COUNT( * ) * COUNT( * ) + - 31 * - 91
----
2789

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL MAX ( - + 61 ) + COALESCE ( 30, + COUNT ( * ) ) + - COUNT ( * ) * COUNT ( * ) + - 31 * - 91
----
2789

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT DISTINCT - COUNT( * ) * 86 * - - 8 + - 26
----
-714

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT - COUNT ( * ) * 86 * - - 8 + - 26
----
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT ALL - MIN( - + ( - 63 ) ) * - + MIN( ALL - 82 ) * + 70 + + CASE + COALESCE ( - CASE - - 9 WHEN - - 27 + - 94 - - + 36 THEN + 52 * + MAX( - 78 ) + + 40 + - + 3 / + 75 END, - 57 / + 45 ) WHEN COUNT( 99 ) + 41 THEN 27 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL - MIN ( - + ( - 63 ) ) * - + MIN ( ALL - 82 ) * + 70 + + CASE + COALESCE ( - CASE - - 9 WHEN - - 27 + - 94 - - + 36 THEN + 52 * + MAX ( - 78 ) + + 40 + - + 3 / + 75 END, - 57 / + 45 ) WHEN COUNT ( 99 ) + 41 THEN 27 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT COUNT( * ) * - 72 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-3804
SELECT COUNT ( * ) * - 72 AS col1
----
-72

query I rowsort
SELECT 62 * - 70 - - 54 * 56 AS col1
----
-1316

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT ALL COUNT( * ) * - 73 * - - MAX( - + 97 )
----
7081

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL COUNT ( * ) * - 73 * - - MAX ( - + 97 )
----
7081

onlyif mysql # DIV for integer division: 
query I rowsort label-3807
SELECT ( - 49 ) DIV - 48 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3807
SELECT ( - 49 ) / - 48 AS col2
----
1

query I rowsort
SELECT 49 * + 41 AS col0
----
2009

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT MIN( - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-3809
SELECT MIN ( - 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT 58 * + COUNT( * ) col2
----
58

skipif mysql # not compatible
query I rowsort label-3810
SELECT 58 * + COUNT ( * ) col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT MIN( - 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-3811
SELECT MIN ( - 85 ) AS col0
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3812
SELECT ALL COALESCE ( 51, ( 47 ) * ( - 21 ) * ( + 77 ) - - + COALESCE ( - + 67, + 54 * - CASE 20 WHEN - - AVG ( 29 ) + + ( - COUNT( * ) ) * + 8 THEN - 14 + - 25 * + COUNT( * ) ELSE + ( 27 ) + COUNT( * ) * 45 END * - ( AVG ( DISTINCT 90 ) DIV 54 + - 11 ) + 93 * - 53 ), - 80 ) * + 4 + ( - 11 ) AS col2
----
193

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL COALESCE ( 51, ( 47 ) * ( - 21 ) * ( + 77 ) - - + COALESCE ( - + 67, + 54 * - CASE 20 WHEN - - AVG ( 29 ) + + ( - COUNT ( * ) ) * + 8 THEN - 14 + - 25 * + COUNT ( * ) ELSE + ( 27 ) + COUNT ( * ) * 45 END * - ( AVG ( DISTINCT 90 ) / 54 + - 11 ) + 93 * - 53 ), - 80 ) * + 4 + ( - 11 ) AS col2
----
193

query I rowsort
SELECT 62 * 31 * - 2 - - 28 AS col0
----
-3816

onlyif mysql # aggregate syntax: 
query II rowsort label-3814
SELECT COUNT( * ), ( + COUNT( * ) ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-3814
SELECT COUNT ( * ), ( + COUNT ( * ) ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT 48 * - 1 * + SUM( 45 )
----
-2160

skipif mysql # not compatible
query I rowsort label-3815
SELECT 48 * - 1 * + SUM ( 45 )
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL - NULLIF ( - + COALESCE ( + - 20, + 90 + - - 68 ), + COUNT( * ) + - + 72 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL - NULLIF ( - + COALESCE ( + - 20, + 90 + - - 68 ), + COUNT ( * ) + - + 72 ) AS col0
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3817
SELECT ALL + 27 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL + 27 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT + CASE 47 WHEN + - 77 * + 3 + - 86 THEN NULL WHEN - - COUNT( * ) + - - 36 + - + 66 THEN + 46 WHEN - 12 THEN - + 72 / - 80 + 4 * + 27 WHEN + 23 THEN NULL ELSE + + 24 - + - 42 END col0
----
66

skipif mysql # not compatible
query I rowsort label-3818
SELECT + CASE 47 WHEN + - 77 * + 3 + - 86 THEN NULL WHEN - - COUNT ( * ) + - - 36 + - + 66 THEN + 46 WHEN - 12 THEN - + 72 / - 80 + 4 * + 27 WHEN + 23 THEN NULL ELSE + + 24 - + - 42 END col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3819
SELECT - ( CASE - - SUM( ALL - 28 ) WHEN + CAST( ( - 36 ) AS SIGNED ) + ( + - COALESCE ( - 32, - COUNT( * ) * - - 16, - 78 ) ) / + 77 - + - 21 THEN - 11 ELSE NULL END ) + - - CAST( - 90 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3819
SELECT - ( CASE - - SUM ( ALL - 28 ) WHEN + CAST ( ( - 36 ) AS INTEGER ) + ( + - COALESCE ( - 32, - COUNT ( * ) * - - 16, - 78 ) ) / + 77 - + - 21 THEN - 11 ELSE NULL END ) + - - CAST ( - 90 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT - 82 - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-3820
SELECT - 82 - COUNT ( * )
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-3821
SELECT ALL + - COUNT( * ), 36 + + 16 AS col0
----
-1
52

skipif mysql # not compatible
query II rowsort label-3821
SELECT ALL + - COUNT ( * ), 36 + + 16 AS col0
----
-1
52

query II rowsort
SELECT + - 17 AS col0, 22 * 20 AS col2
----
-17
440

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT - NULLIF ( - 28, + SUM( 70 ) ) + - COUNT( * ) + + 72
----
99

skipif mysql # not compatible
query I rowsort label-3823
SELECT - NULLIF ( - 28, + SUM ( 70 ) ) + - COUNT ( * ) + + 72
----
99

query II rowsort
SELECT - - 76 col1, 8
----
76
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3825
SELECT ALL 54 AS col2, - NULLIF ( - COUNT( - ( + 44 ) ), - + 32 * - COALESCE ( + 87, COUNT( * ) + + + 90 * + 43, - + 12 * + 10 + - 33 ) ) * + CAST( ( + - NULLIF ( + - ( + 91 ), - ( + COUNT( * ) ) * CAST( + COUNT( * ) AS DECIMAL ) ) ) AS SIGNED ) * 28 + 91
----
54
2639

skipif mysql # not compatible
query II rowsort label-3825
SELECT ALL 54 AS col2, - NULLIF ( - COUNT ( - ( + 44 ) ), - + 32 * - COALESCE ( + 87, COUNT ( * ) + + + 90 * + 43, - + 12 * + 10 + - 33 ) ) * + CAST ( ( + - NULLIF ( + - ( + 91 ), - ( + COUNT ( * ) ) * CAST ( + COUNT ( * ) AS REAL ) ) ) AS INTEGER ) * 28 + 91
----
54
2639

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3826
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT DISTINCT + + 3 * - MAX( DISTINCT + - ( - + 35 ) ) + COALESCE ( + + 1, + 12 + - + 92 ) AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-3827
SELECT DISTINCT + + 3 * - MAX ( DISTINCT + - ( - + 35 ) ) + COALESCE ( + + 1, + 12 + - + 92 ) AS col1
----
-104

query II rowsort
SELECT - 20 + 64 + - 2 AS col1, + 68
----
42
68

query II rowsort
SELECT DISTINCT - 14 AS col0, + 73 + 33 * 96 + - 47
----
-14
3194

query I rowsort
SELECT - 82 + + 47 AS col0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3831
SELECT ALL - - 78 DIV - - 14 + + MIN( 75 )
----
80

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL - - 78 / - - 14 + + MIN ( 75 )
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-3832
SELECT - CASE - 19 WHEN - 67 + + 69 THEN ( + 99 ) * - + 46 * - - 46 * 23 * - + 81 / 22 * 5 WHEN - + 26 * 48 THEN NULL END * 0 * - 78 col2, 10 * + - MAX( + 27 )
----
NULL
-270

skipif mysql # not compatible
query II rowsort label-3832
SELECT - CASE - 19 WHEN - 67 + + 69 THEN ( + 99 ) * - + 46 * - - 46 * 23 * - + 81 / 22 * 5 WHEN - + 26 * 48 THEN NULL END * 0 * - 78 col2, 10 * + - MAX ( + 27 )
----
NULL
-270

query I rowsort
SELECT + 65 * 53
----
3445

query I rowsort
SELECT - 9 * + - ( 44 )
----
396

query II rowsort
SELECT 30, + 16 AS col1
----
30
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT - + 34 - - - 54 + - COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-3836
SELECT - + 34 - - - 54 + - COUNT ( * )
----
-89

query II rowsort
SELECT DISTINCT 67 AS col1, - 28 + - - 22
----
67
-6

query II rowsort
SELECT DISTINCT - 76 AS col0, 93
----
-76
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT DISTINCT - + 36 + + MIN( + 15 ) * 0 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT - + 36 + + MIN ( + 15 ) * 0 AS col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3840
SELECT ALL + CAST( NULL AS DECIMAL ) col2, CASE 9 WHEN - - 55 THEN + COUNT( * ) WHEN + 75 THEN + 5 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3840
SELECT ALL + CAST ( NULL AS REAL ) col2, CASE 9 WHEN - - 55 THEN + COUNT ( * ) WHEN + 75 THEN + 5 ELSE NULL END
----
NULL
NULL

query I rowsort
SELECT DISTINCT + 62 + + + 18 * - 34 * - 37 + - - 90
----
22796

query I rowsort
SELECT ALL - 29 + - 3 AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3843
SELECT - 38 + + + 86 - - 72 DIV 77 * + - CASE + ( + 20 ) WHEN 99 + - - 2 + + 70 + - CAST( NULL AS SIGNED ) THEN - 70 * - 8 ELSE 22 END DIV NULLIF ( 56, + 85 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-3843
SELECT - 38 + + + 86 - - 72 / 77 * + - CASE + ( + 20 ) WHEN 99 + - - 2 + + 70 + - CAST ( NULL AS INTEGER ) THEN - 70 * - 8 ELSE 22 END / NULLIF ( 56, + 85 ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT - CASE 1 WHEN + 90 + 94 - - COUNT( * ) * 38 / 25 / + 68 THEN - COALESCE ( - NULLIF ( 50, + - 27 * - - 42 ), - + ( + + 63 ), 37 ) + AVG ( DISTINCT - 36 ) WHEN - + COALESCE ( + 0, 89 + - 13 ) THEN - 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT - CASE 1 WHEN + 90 + 94 - - COUNT ( * ) * 38 / 25 / + 68 THEN - COALESCE ( - NULLIF ( 50, + - 27 * - - 42 ), - + ( + + 63 ), 37 ) + AVG ( DISTINCT - 36 ) WHEN - + COALESCE ( + 0, 89 + - 13 ) THEN - 3 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT + COUNT( * ) - + + ( + 16 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-3845
SELECT + COUNT ( * ) - + + ( + 16 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT + 96 - MAX( ALL 1 )
----
95

skipif mysql # not compatible
query I rowsort label-3846
SELECT + 96 - MAX ( ALL 1 )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-3847
SELECT ( - COUNT( * ) ), - COUNT( * ) AS col1
----
-1
-1

skipif mysql # not compatible
query II rowsort label-3847
SELECT ( - COUNT ( * ) ), - COUNT ( * ) AS col1
----
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3848
SELECT + CASE ( COUNT( * ) ) WHEN 20 THEN + - 41 / - CAST( + COUNT( * ) AS SIGNED ) / + AVG ( ALL 0 ) * + CASE 21 WHEN - - COUNT( DISTINCT - 1 ) / + AVG ( ALL - 99 ) - - + CASE 6 WHEN - + COUNT( * ) / + 93 THEN 37 END + 75 THEN + 75 / - 53 WHEN 84 THEN NULL END + - 7 / AVG ( DISTINCT 95 * 6 ) + NULLIF ( COUNT( * ), + 81 * COUNT( * ) ) * CAST( NULL AS SIGNED ) ELSE - 79 / + 70 + + 7 END * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT + CASE ( COUNT ( * ) ) WHEN 20 THEN + - 41 / - CAST ( + COUNT ( * ) AS INTEGER ) / + AVG ( ALL 0 ) * + CASE 21 WHEN - - COUNT ( DISTINCT - 1 ) / + AVG ( ALL - 99 ) - - + CASE 6 WHEN - + COUNT ( * ) / + 93 THEN 37 END + 75 THEN + 75 / - 53 WHEN 84 THEN NULL END + - 7 / AVG ( DISTINCT 95 * 6 ) + NULLIF ( COUNT ( * ), + 81 * COUNT ( * ) ) * CAST ( NULL AS INTEGER ) ELSE - 79 / + 70 + + 7 END * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT ALL + 2 * + CAST( NULL AS SIGNED ) + 19 - + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL + 2 * + CAST ( NULL AS INTEGER ) + 19 - + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT + 84 * + + COUNT( * ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-3850
SELECT + 84 * + + COUNT ( * ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT ALL COUNT( * ) * - - 84 - - CASE WHEN ( NULL ) BETWEEN NULL AND 60 THEN + 59 END + + 45 + - 69 * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL COUNT ( * ) * - - 84 - - CASE WHEN ( NULL ) BETWEEN NULL AND 60 THEN + 59 END + + 45 + - 69 * + 32
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3852
SELECT + 60 + + 3 + + - 87 DIV + 79
----
62

skipif mysql # not compatible
query I rowsort label-3852
SELECT + 60 + + 3 + + - 87 / + 79
----
62

query I rowsort
SELECT ALL 48 * + + 52 AS col0
----
2496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3854
SELECT + 54 * - 88 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3854
SELECT + 54 * - 88 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3855
SELECT DISTINCT 60 * + 75, 50 - COALESCE ( 49, + ( + CAST( 11 AS SIGNED ) ) + 56, + 98 * - 84, + - 43 + 9 ) * 97 col2
----
4500
-4703

skipif mysql # not compatible
query II rowsort label-3855
SELECT DISTINCT 60 * + 75, 50 - COALESCE ( 49, + ( + CAST ( 11 AS INTEGER ) ) + 56, + 98 * - 84, + - 43 + 9 ) * 97 col2
----
4500
-4703

onlyif mysql # aggregate syntax: 
query II rowsort label-3856
SELECT + MAX( 72 ) AS col2, COUNT( ALL - - 14 ) col1
----
72
1

skipif mysql # not compatible
query II rowsort label-3856
SELECT + MAX ( 72 ) AS col2, COUNT ( ALL - - 14 ) col1
----
72
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3857
SELECT + ( - 40 ) AS col0, COUNT( * ) + 35 col0
----
-40
36

skipif mysql # not compatible
query II rowsort label-3857
SELECT + ( - 40 ) AS col0, COUNT ( * ) + 35 col0
----
-40
36

query I rowsort
SELECT ALL 12 * - 82 AS col2
----
-984

query I rowsort
SELECT - CASE - ( 26 ) WHEN - + 73 THEN NULL WHEN + 31 THEN + 24 WHEN - 3 + + 78 THEN - 78 ELSE - 99 END + - + 1 AS col2
----
98

query I rowsort
SELECT COALESCE ( - 9, + 34 * + 87 ) AS col2
----
-9

query I rowsort
SELECT DISTINCT ( 92 ) * + 56 + + 62 + 88
----
5302

onlyif mysql # DIV for integer division: 
query I rowsort label-3862
SELECT DISTINCT - 54 DIV + + 93 + 9 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT - 54 / + + 93 + 9 AS col0
----
9

query I rowsort
SELECT DISTINCT + 62 * - + 72
----
-4464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3864
SELECT - 27 * CAST( + - CAST( - - 77 AS SIGNED ) AS SIGNED ) * + 39
----
81081

skipif mysql # not compatible
query I rowsort label-3864
SELECT - 27 * CAST ( + - CAST ( - - 77 AS INTEGER ) AS INTEGER ) * + 39
----
81081

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3865
SELECT + + 60 * 83 + - CAST( NULL AS SIGNED ) * - + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3865
SELECT + + 60 * 83 + - CAST ( NULL AS INTEGER ) * - + 62 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT - COUNT( * ) - 46 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-3866
SELECT - COUNT ( * ) - 46 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT DISTINCT + 18 * + CASE + 82 WHEN 90 THEN 92 + - MIN( ALL - - 62 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT + 18 * + CASE + 82 WHEN 90 THEN 92 + - MIN ( ALL - - 62 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + ( + 27 ) * - 82 * + 88 AS col1
----
-194832

query I rowsort
SELECT ALL - 69 + - 16
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT - - 63 + COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3870
SELECT - - 63 + COUNT ( * ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT - + 88 + - MAX( + 40 ) AS col0
----
-128

skipif mysql # not compatible
query I rowsort label-3871
SELECT - + 88 + - MAX ( + 40 ) AS col0
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3872
SELECT ALL + 25 * + + ( + NULLIF ( 71, CAST( NULL AS SIGNED ) ) ) + - COUNT( * )
----
1774

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL + 25 * + + ( + NULLIF ( 71, CAST ( NULL AS INTEGER ) ) ) + - COUNT ( * )
----
1774

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT ALL - COUNT( * ) + + 17 + + + 53
----
69

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL - COUNT ( * ) + + 17 + + + 53
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3874
SELECT - - 13 + 68 AS col1, + CAST( 80 AS SIGNED ) AS col0
----
81
80

skipif mysql # not compatible
query II rowsort label-3874
SELECT - - 13 + 68 AS col1, + CAST ( 80 AS INTEGER ) AS col0
----
81
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT ALL - NULLIF ( + 71, - 73 + + ( - COUNT( * ) ) + + 55 ) + + - 44
----
-115

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL - NULLIF ( + 71, - 73 + + ( - COUNT ( * ) ) + + 55 ) + + - 44
----
-115

query I rowsort
SELECT DISTINCT - - ( - + 5 ) + + 65 col1
----
60

query I rowsort
SELECT DISTINCT - - 84 + - + 72 + - ( 51 )
----
-39

query I rowsort
SELECT - 20 + + 78 AS col2
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT ALL - 25 DIV + 11 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL - 25 / + 11 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3880
SELECT ALL CAST( - 16 AS SIGNED ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL CAST ( - 16 AS INTEGER ) AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3881
SELECT DISTINCT - COUNT( * ) + 30 DIV 72 * + CAST( - + 77 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT - COUNT ( * ) + 30 / 72 * + CAST ( - + 77 AS INTEGER )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3882
SELECT ALL - CAST( - + 39 AS SIGNED ) - + 90 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL - CAST ( - + 39 AS INTEGER ) - + 90 AS col1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3883
SELECT ALL - ( - + 23 ) DIV + 8
----
2

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL - ( - + 23 ) / + 8
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT - COUNT( ALL + 3 ) * + 84 - 43 * + 22 AS col2
----
-1030

skipif mysql # not compatible
query I rowsort label-3884
SELECT - COUNT ( ALL + 3 ) * + 84 - 43 * + 22 AS col2
----
-1030

query I rowsort
SELECT ALL 72 * 57 * - 23 AS col0
----
-94392

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT + COALESCE ( - + ( - COUNT( * ) ), + 38 - + 44, + 87 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3886
SELECT + COALESCE ( - + ( - COUNT ( * ) ), + 38 - + 44, + 87 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT ALL + 35 * + MIN( - - ( 48 ) ) col2
----
1680

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL + 35 * + MIN ( - - ( 48 ) ) col2
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL - COUNT( * ) * + 88
----
-88

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL - COUNT ( * ) * + 88
----
-88

query I rowsort
SELECT - 30 * + 95 - + 71 * + 30 * - - 5 AS col0
----
-13500

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3890
SELECT DISTINCT - 12 AS col0, 22 * + COUNT( * ) DIV - COALESCE ( - MIN( + 87 ), - + 87 - + 1 + + + MAX( + 83 ) ) * - 92 AS col0
----
-12
0

skipif mysql # not compatible
query II rowsort label-3890
SELECT DISTINCT - 12 AS col0, 22 * + COUNT ( * ) / - COALESCE ( - MIN ( + 87 ), - + 87 - + 1 + + + MAX ( + 83 ) ) * - 92 AS col0
----
-12
0

query I rowsort
SELECT 54 * + + 32 AS col0
----
1728

query II rowsort
SELECT ALL - 28 AS col0, 7 AS col2
----
-28
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT 77 * - 89 * + MIN( DISTINCT - 41 ) AS col1
----
280973

skipif mysql # not compatible
query I rowsort label-3893
SELECT 77 * - 89 * + MIN ( DISTINCT - 41 ) AS col1
----
280973

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT DISTINCT + MAX( 24 ) * + + 97 AS col2
----
2328

skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT + MAX ( 24 ) * + + 97 AS col2
----
2328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3895
SELECT ALL CAST( + + 25 AS SIGNED ) * - 49 AS col0
----
-1225

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL CAST ( + + 25 AS INTEGER ) * - 49 AS col0
----
-1225

query I rowsort
SELECT ALL 81 * + - COALESCE ( 61, - 80 + + 81 ) * 56 + + 10 AS col1
----
-276686

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT 57 * + NULLIF ( + 95, 34 ) * COUNT( - 91 )
----
5415

skipif mysql # not compatible
query I rowsort label-3897
SELECT 57 * + NULLIF ( + 95, 34 ) * COUNT ( - 91 )
----
5415

query I rowsort
SELECT + + 70 * - 50 * + 81 + + 31 + - - 27
----
-283442

query II rowsort
SELECT + - 49 AS col2, - 88 AS col1
----
-49
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT + COUNT( ALL - 45 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3900
SELECT + COUNT ( ALL - 45 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT ALL + 28 * - COUNT( * ) * - 12
----
336

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL + 28 * - COUNT ( * ) * - 12
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT + 5 + + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-3902
SELECT + 5 + + COUNT ( * )
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3903
SELECT ALL + - 11 DIV - - 63
----
0

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL + - 11 / - - 63
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3904
SELECT - NULLIF ( + 39, + - 90 DIV - 90 ) DIV 11 * 14 + - 11 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-3904
SELECT - NULLIF ( + 39, + - 90 / - 90 ) / 11 * 14 + - 11 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-3905
SELECT + 58, + ( - - 96 ) * + COALESCE ( - 0, + COUNT( * ) ) AS col2
----
58
0

skipif mysql # not compatible
query II rowsort label-3905
SELECT + 58, + ( - - 96 ) * + COALESCE ( - 0, + COUNT ( * ) ) AS col2
----
58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT + CASE + CASE + 98 WHEN + + 26 + + 6 + 7 * 71 + - - 23 * - - 48 * - 15 * + - 63 THEN + - 61 / COALESCE ( ( + 66 ), 36 ) + - 83 - 56 / + - COUNT( DISTINCT + + 76 ) + + COUNT( * ) WHEN + SUM( ALL 40 ) * - 41 + 59 THEN ( + 84 ) + 47 ELSE 98 * + 96 END WHEN 19 THEN ( - 60 ) - + 38 ELSE NULL END + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT + CASE + CASE + 98 WHEN + + 26 + + 6 + 7 * 71 + - - 23 * - - 48 * - 15 * + - 63 THEN + - 61 / COALESCE ( ( + 66 ), 36 ) + - 83 - 56 / + - COUNT ( DISTINCT + + 76 ) + + COUNT ( * ) WHEN + SUM ( ALL 40 ) * - 41 + 59 THEN ( + 84 ) + 47 ELSE 98 * + 96 END WHEN 19 THEN ( - 60 ) - + 38 ELSE NULL END + 86
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3907
SELECT DISTINCT 47 AS col2, 85 * 10 + CAST( NULL AS SIGNED )
----
47
NULL

skipif mysql # not compatible
query II rowsort label-3907
SELECT DISTINCT 47 AS col2, 85 * 10 + CAST ( NULL AS INTEGER )
----
47
NULL

query I rowsort
SELECT ALL 49 * - 23
----
-1127

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT DISTINCT MAX( ALL 82 ) * + - COUNT( + ( - - 15 ) ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-3909
SELECT DISTINCT MAX ( ALL 82 ) * + - COUNT ( + ( - - 15 ) ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-3910
SELECT DISTINCT 38, - COUNT( * ) AS col0
----
38
-1

skipif mysql # not compatible
query II rowsort label-3910
SELECT DISTINCT 38, - COUNT ( * ) AS col0
----
38
-1

query I rowsort
SELECT DISTINCT - 13 * + 98
----
-1274

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT COUNT( * ) + + + 46
----
47

skipif mysql # not compatible
query I rowsort label-3912
SELECT COUNT ( * ) + + + 46
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3913
SELECT 64 DIV + 59 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3913
SELECT 64 / + 59 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3914
SELECT ALL 97, COUNT( ALL - ( + 6 ) ) AS col0
----
97
1

skipif mysql # not compatible
query II rowsort label-3914
SELECT ALL 97, COUNT ( ALL - ( + 6 ) ) AS col0
----
97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3915
SELECT ALL + 77 DIV + + 50
----
1

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL + 77 / + + 50
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3916
SELECT - COUNT( ALL + CAST( 38 AS DECIMAL ) ) * + 93 + + - 55 col0
----
-148

skipif mysql # not compatible
query I rowsort label-3916
SELECT - COUNT ( ALL + CAST ( 38 AS REAL ) ) * + 93 + + - 55 col0
----
-148

query I rowsort
SELECT 83 - - - 31 + 30
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3918
SELECT ALL + 68 DIV - 49 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + 68 / - 49 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3919
SELECT 54 DIV - 39
----
-1

skipif mysql # not compatible
query I rowsort label-3919
SELECT 54 / - 39
----
-1

query I rowsort
SELECT 89 * 10
----
890

query II rowsort
SELECT + 10 AS col0, - 56
----
10
-56

query II rowsort
SELECT ALL - 34 AS col0, ( + - 35 )
----
-34
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-3923
SELECT 73 + + 49 AS col1, 6 + + - ( COUNT( * ) ) * CASE - 15 WHEN - + 20 THEN - 82 * ( + 15 ) + 36 - 94 + - 12 / 5 * SUM( DISTINCT - 24 ) * - 23 END * - + 80 + - + 40 AS col2
----
122
NULL

skipif mysql # not compatible
query II rowsort label-3923
SELECT 73 + + 49 AS col1, 6 + + - ( COUNT ( * ) ) * CASE - 15 WHEN - + 20 THEN - 82 * ( + 15 ) + 36 - 94 + - 12 / 5 * SUM ( DISTINCT - 24 ) * - 23 END * - + 80 + - + 40 AS col2
----
122
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT 79 DIV + 9
----
8

skipif mysql # not compatible
query I rowsort label-3924
SELECT 79 / + 9
----
8

query II rowsort
SELECT DISTINCT - - 47, 31 * - 98 + + 5 * - - 10 AS col2
----
47
-2988

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT + 80 * - 28 + + 11 * - 82 * + COUNT( * )
----
-3142

skipif mysql # not compatible
query I rowsort label-3926
SELECT + 80 * - 28 + + 11 * - 82 * + COUNT ( * )
----
-3142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3927
SELECT DISTINCT - + COUNT( * ) * MAX( ALL + 40 ) + 32 + - - 15 + + CAST( - 19 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT - + COUNT ( * ) * MAX ( ALL + 40 ) + 32 + - - 15 + + CAST ( - 19 AS INTEGER )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT - 18 * 9 + + COUNT( * )
----
-161

skipif mysql # not compatible
query I rowsort label-3928
SELECT - 18 * 9 + + COUNT ( * )
----
-161

query I rowsort
SELECT DISTINCT - + 34 + 78
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3930
SELECT + - 64 AS col0, NULLIF ( + ( 45 ), - 82 * COUNT( - CAST( - 54 AS SIGNED ) ) * - 31 )
----
-64
45

skipif mysql # not compatible
query II rowsort label-3930
SELECT + - 64 AS col0, NULLIF ( + ( 45 ), - 82 * COUNT ( - CAST ( - 54 AS INTEGER ) ) * - 31 )
----
-64
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT + MIN( DISTINCT + 19 ) * + NULLIF ( + 45, - MAX( DISTINCT + - ( + + 51 ) ) ) + + 27
----
882

skipif mysql # not compatible
query I rowsort label-3931
SELECT + MIN ( DISTINCT + 19 ) * + NULLIF ( + 45, - MAX ( DISTINCT + - ( + + 51 ) ) ) + + 27
----
882

query I rowsort
SELECT DISTINCT - - 42 + 5
----
47

query I rowsort
SELECT DISTINCT - 61 + 9 col1
----
-52

query II rowsort
SELECT 55 AS col2, + 66
----
55
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT + CAST( ( + ( - 99 ) ) AS SIGNED ) + + 76
----
-23

skipif mysql # not compatible
query I rowsort label-3935
SELECT + CAST ( ( + ( - 99 ) ) AS INTEGER ) + + 76
----
-23

query II rowsort
SELECT DISTINCT 90 * - 36, - 9 AS col0
----
-3240
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3937
SELECT ALL COALESCE ( - + 0, + 15 * - CAST( - CASE WHEN 80 IS NOT NULL THEN - COUNT( - 92 ) END AS SIGNED ), 45 )
----
0

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL COALESCE ( - + 0, + 15 * - CAST ( - CASE WHEN 80 IS NOT NULL THEN - COUNT ( - 92 ) END AS INTEGER ), 45 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3938
SELECT 11 * - 28 + + - 16 + + COUNT( + 71 ) - - 54 * COUNT( * ) * - + 29 - + 23 DIV - 6 + - 84 col2, CAST( NULL AS DECIMAL ) + - SUM( ALL + 95 ) col2
----
-1970
NULL

skipif mysql # not compatible
query II rowsort label-3938
SELECT 11 * - 28 + + - 16 + + COUNT ( + 71 ) - - 54 * COUNT ( * ) * - + 29 - + 23 / - 6 + - 84 col2, CAST ( NULL AS REAL ) + - SUM ( ALL + 95 ) col2
----
-1970
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT 10 + + - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-3939
SELECT 10 + + - COUNT ( * )
----
9

query I rowsort
SELECT ALL 17 - 67
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT ALL - MAX( ALL 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL - MAX ( ALL 63 ) AS col0
----
-63

query II rowsort
SELECT ALL + 56 AS col1, 11 AS col0
----
56
11

query I rowsort
SELECT DISTINCT 8 * + 3
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT ALL ( + COUNT( * ) ) - - - 92 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL ( + COUNT ( * ) ) - - - 92 AS col2
----
-91

query I rowsort
SELECT 48 + - 63 AS col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3946
SELECT ALL - 99 - AVG ( ALL - CAST( NULL AS SIGNED ) ) + 4 + + 60 AS col2, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3946
SELECT ALL - 99 - AVG ( ALL - CAST ( NULL AS INTEGER ) ) + 4 + + 60 AS col2, CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT + 90 * 15
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT - COUNT( * ) + - 85 + - - 63 * - 89 * ( + COUNT( * ) ) + + 39 * + COUNT( * ) + - MIN( ALL - 50 ) * - MIN( ALL - - ( + - 66 ) ) + + 14 col2
----
-2340

skipif mysql # not compatible
query I rowsort label-3948
SELECT - COUNT ( * ) + - 85 + - - 63 * - 89 * ( + COUNT ( * ) ) + + 39 * + COUNT ( * ) + - MIN ( ALL - 50 ) * - MIN ( ALL - - ( + - 66 ) ) + + 14 col2
----
-2340

query I rowsort
SELECT DISTINCT 30 * - - 44
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT + MIN( ALL + 17 ) * 12 + + 78 - + - 9 + - + COUNT( * )
----
290

skipif mysql # not compatible
query I rowsort label-3950
SELECT + MIN ( ALL + 17 ) * 12 + + 78 - + - 9 + - + COUNT ( * )
----
290

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL CASE - 45 WHEN - 18 - - + 77 + - + 79 + - COUNT( + + 36 ) THEN + 1 * - 61 / 23 END + + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL CASE - 45 WHEN - 18 - - + 77 + - + 79 + - COUNT ( + + 36 ) THEN + 1 * - 61 / 23 END + + + 91
----
NULL

query I rowsort
SELECT ALL - 9 + 33 - - 6 AS col0
----
30

query I rowsort
SELECT ALL 34 * 95 + - 78 + + + 88
----
3240

query I rowsort
SELECT ALL 59 * + + 24 + + + 78 AS col2
----
1494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3955
SELECT DISTINCT COUNT( - - 31 ) * - + CAST( NULL AS SIGNED ) - + + 41 + - - 67 + - 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT COUNT ( - - 31 ) * - + CAST ( NULL AS INTEGER ) - + + 41 + - - 67 + - 87 AS col0
----
NULL

query I rowsort
SELECT 73 * - - 66 - - 34
----
4852

onlyif mysql # DIV for integer division: 
query I rowsort label-3957
SELECT + 36 DIV - + 28 - + - 92 DIV + 15
----
5

skipif mysql # not compatible
query I rowsort label-3957
SELECT + 36 / - + 28 - + - 92 / + 15
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3958
SELECT DISTINCT + + 69 DIV 84 + - ( + 3 ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT + + 69 / 84 + - ( + 3 ) col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT ALL + 81 * 6 + - - COUNT( * ) col2
----
487

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL + 81 * 6 + - - COUNT ( * ) col2
----
487

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3960
SELECT ( 80 ) * - 12 * - CASE + ( 69 ) WHEN 4 + - COUNT( 96 ) THEN NULL WHEN + - 60 THEN - - 62 ELSE + - 34 * 34 END - - COALESCE ( + NULLIF ( - 39, - 40 ), + 57 * COUNT( * ) DIV + - 53 * - - 23 + + COUNT( * ), 54 * 15 ) DIV - MAX( + 51 ) AS col1
----
-1109760

skipif mysql # not compatible
query I rowsort label-3960
SELECT ( 80 ) * - 12 * - CASE + ( 69 ) WHEN 4 + - COUNT ( 96 ) THEN NULL WHEN + - 60 THEN - - 62 ELSE + - 34 * 34 END - - COALESCE ( + NULLIF ( - 39, - 40 ), + 57 * COUNT ( * ) / + - 53 * - - 23 + + COUNT ( * ), 54 * 15 ) / - MAX ( + 51 ) AS col1
----
-1109760

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT DISTINCT + - ( + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT + - ( + - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT - SUM( 62 ) * + 1 * - 79 - - 92
----
4990

skipif mysql # not compatible
query I rowsort label-3962
SELECT - SUM ( 62 ) * + 1 * - 79 - - 92
----
4990

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3963
SELECT ALL - - 7 * - ( - - AVG ( + 69 ) ) - + 37 + - ( - 90 ) * + COALESCE ( - CAST( NULL AS SIGNED ), 91 - - 19 ) / - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL - - 7 * - ( - - AVG ( + 69 ) ) - + 37 + - ( - 90 ) * + COALESCE ( - CAST ( NULL AS INTEGER ), 91 - - 19 ) / - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3964
SELECT ALL + SUM( 72 ) AS col1, COUNT( * )
----
72
1

skipif mysql # not compatible
query II rowsort label-3964
SELECT ALL + SUM ( 72 ) AS col1, COUNT ( * )
----
72
1

query II rowsort
SELECT - + 57 + + - 71 AS col1, + 86
----
-128
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3966
SELECT ALL + - COUNT( * ) * + 87 DIV + 50
----
-1

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL + - COUNT ( * ) * + 87 / + 50
----
-1

query I rowsort
SELECT DISTINCT + + 84 col0
----
84

query I rowsort
SELECT 82 * - + 36 + - 38 AS col0
----
-2990

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT - 76 * + + 55 * - 66 + + COUNT( * ) AS col1
----
275881

skipif mysql # not compatible
query I rowsort label-3969
SELECT - 76 * + + 55 * - 66 + + COUNT ( * ) AS col1
----
275881

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3970
SELECT ALL + 85 * 59 + 68 DIV COUNT( * ) AS col1
----
5083

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL + 85 * 59 + 68 / COUNT ( * ) AS col1
----
5083

query I rowsort
SELECT ALL - NULLIF ( 73, + 81 )
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3972
SELECT DISTINCT 14 DIV - + COUNT( * ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT 14 / - + COUNT ( * ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT - COUNT( * ) + 63 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3973
SELECT - COUNT ( * ) + 63 AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3974
SELECT ALL ( + CAST( + 8 AS SIGNED ) ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL ( + CAST ( + 8 AS INTEGER ) ) AS col1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3975
SELECT ALL CAST( NULL AS SIGNED ), + 78 AS col2
----
NULL
78

skipif mysql # not compatible
query II rowsort label-3975
SELECT ALL CAST ( NULL AS INTEGER ), + 78 AS col2
----
NULL
78

query I rowsort
SELECT - 25 + 99 AS col0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3977
SELECT - COALESCE ( 32, - CASE 39 WHEN 19 THEN 72 WHEN + 83 THEN NULL END DIV + 29 * - 87, + - COUNT( * ) )
----
-32

skipif mysql # not compatible
query I rowsort label-3977
SELECT - COALESCE ( 32, - CASE 39 WHEN 19 THEN 72 WHEN + 83 THEN NULL END / + 29 * - 87, + - COUNT ( * ) )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3978
SELECT + CASE - CASE COALESCE ( 46, 49 + + 63, + AVG ( - 0 ) / + 88 + 64 ) WHEN + 32 THEN - 88 END WHEN + 30 THEN NULL WHEN + - 7 THEN - CASE 47 WHEN 96 * + 88 THEN + 18 WHEN - CAST( + + 44 AS DECIMAL ) + - + 13 THEN NULL WHEN - CASE - 31 WHEN 68 THEN 3 + 84 * - COUNT( * ) ELSE NULL END THEN NULL ELSE NULL END ELSE NULL END * COALESCE ( 87, + 81 + + COUNT( - 34 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT + CASE - CASE COALESCE ( 46, 49 + + 63, + AVG ( - 0 ) / + 88 + 64 ) WHEN + 32 THEN - 88 END WHEN + 30 THEN NULL WHEN + - 7 THEN - CASE 47 WHEN 96 * + 88 THEN + 18 WHEN - CAST ( + + 44 AS REAL ) + - + 13 THEN NULL WHEN - CASE - 31 WHEN 68 THEN 3 + 84 * - COUNT ( * ) ELSE NULL END THEN NULL ELSE NULL END ELSE NULL END * COALESCE ( 87, + 81 + + COUNT ( - 34 ) )
----
NULL

query I rowsort
SELECT ALL 96 * - + 54
----
-5184

query I rowsort
SELECT ALL 13 * - 96
----
-1248

query I rowsort
SELECT - 78 + 69 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT DISTINCT - 22 + + NULLIF ( - 41, - 6 / COUNT( * ) ) + - 13 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT - 22 + + NULLIF ( - 41, - 6 / COUNT ( * ) ) + - 13 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT + COUNT( * ) + ( - COUNT( * ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3983
SELECT + COUNT ( * ) + ( - COUNT ( * ) ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT ALL 53 + + - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL 53 + + - COUNT ( * )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT + 24 + 83 + CAST( NULL AS SIGNED ) * + 10 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT + 24 + 83 + CAST ( NULL AS INTEGER ) * + 10 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3986
SELECT ALL 35 DIV 75 DIV - COUNT( * ) col2, + 8 + + COUNT( DISTINCT - - 79 ) AS col1
----
0
9

skipif mysql # not compatible
query II rowsort label-3986
SELECT ALL 35 / 75 / - COUNT ( * ) col2, + 8 + + COUNT ( DISTINCT - - 79 ) AS col1
----
0
9

query I rowsort
SELECT + NULLIF ( - 37, + 97 * - ( - + ( + + 73 ) ) ) * - 18 AS col0
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT + COUNT( * ) + - + 2 + - 27 + - 57 * + 38 * CASE + CASE - 86 WHEN + MIN( ALL - - 75 ) THEN NULLIF ( + 85, - 31 + + 55 ) ELSE NULL END WHEN - 16 + 26 THEN - + 68 + 51 WHEN - COUNT( * ) THEN + - 78 END * - 94 * + ( - AVG ( ALL 39 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT + COUNT ( * ) + - + 2 + - 27 + - 57 * + 38 * CASE + CASE - 86 WHEN + MIN ( ALL - - 75 ) THEN NULLIF ( + 85, - 31 + + 55 ) ELSE NULL END WHEN - 16 + 26 THEN - + 68 + 51 WHEN - COUNT ( * ) THEN + - 78 END * - 94 * + ( - AVG ( ALL 39 ) ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3989
SELECT - CAST( + + ( + 96 ) AS SIGNED ), 93 * + 20 col0
----
-96
1860

skipif mysql # not compatible
query II rowsort label-3989
SELECT - CAST ( + + ( + 96 ) AS INTEGER ), 93 * + 20 col0
----
-96
1860

query I rowsort
SELECT ALL 82 + + 21
----
103

query I rowsort
SELECT + 88 + 46
----
134

query I rowsort
SELECT + 94 - + ( 34 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-3993
SELECT + - 55, COUNT( * ) * - - MIN( + - 33 ) AS col1
----
-55
-33

skipif mysql # not compatible
query II rowsort label-3993
SELECT + - 55, COUNT ( * ) * - - MIN ( + - 33 ) AS col1
----
-55
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT DISTINCT - SUM( 17 ) * - - 78 + 42 * 69 AS col2
----
1572

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT - SUM ( 17 ) * - - 78 + 42 * 69 AS col2
----
1572

query I rowsort
SELECT ALL + + ( + - 97 )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3996
SELECT ALL - + 50 / + - 43 * + + CAST( NULL AS SIGNED ) + + - COUNT( * ) + 69 + 15, - COUNT( * ) * + 9 AS col1
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-3996
SELECT ALL - + 50 / + - 43 * + + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + 69 + 15, - COUNT ( * ) * + 9 AS col1
----
NULL
-9

query I rowsort
SELECT + - 47 + + 52
----
5

query I rowsort
SELECT ALL - 41 * + 33
----
-1353

query I rowsort
SELECT DISTINCT + - 32 AS col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4000
SELECT + NULLIF ( + 3, - MAX( CAST( NULL AS SIGNED ) ) ) * + 63 + - + 1 + ( + + ( - 90 ) ) + + ( + + 23 ) * - 40 AS col2
----
-822

skipif mysql # not compatible
query I rowsort label-4000
SELECT + NULLIF ( + 3, - MAX ( CAST ( NULL AS INTEGER ) ) ) * + 63 + - + 1 + ( + + ( - 90 ) ) + + ( + + 23 ) * - 40 AS col2
----
-822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4001
SELECT ALL + CAST( - 10 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL + CAST ( - 10 AS INTEGER )
----
-10

query II rowsort
SELECT 10 AS col1, ( - + 45 ) AS col1
----
10
-45

query I rowsort
SELECT ALL + - ( 86 )
----
-86

query I rowsort
SELECT - 94 * - - 53 AS col2
----
-4982

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4005
SELECT - - ( - 70 ) DIV + COUNT( * ) + + 57 * + ( - CASE - 5 WHEN - 10 THEN - - CASE 98 WHEN + 57 DIV + + COUNT( * ) THEN + CASE - + ( - 88 ) WHEN 37 * - - 34 * COUNT( * ) * - 81 THEN 18 WHEN + 87 + + 72 + - ( 53 ) + + 26 DIV + CAST( NULL AS DECIMAL ) THEN NULL ELSE + 78 END * - 52 END + 17 WHEN + 46 THEN NULL WHEN + 38 THEN 73 ELSE COUNT( 33 ) END ) AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-4005
SELECT - - ( - 70 ) / + COUNT ( * ) + + 57 * + ( - CASE - 5 WHEN - 10 THEN - - CASE 98 WHEN + 57 / + + COUNT ( * ) THEN + CASE - + ( - 88 ) WHEN 37 * - - 34 * COUNT ( * ) * - 81 THEN 18 WHEN + 87 + + 72 + - ( 53 ) + + 26 / + CAST ( NULL AS REAL ) THEN NULL ELSE + 78 END * - 52 END + 17 WHEN + 46 THEN NULL WHEN + 38 THEN 73 ELSE COUNT ( 33 ) END ) AS col0
----
-127

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4006
SELECT DISTINCT - + CAST( + - 74 AS SIGNED ) DIV - 16 + - 65 - + - 19
----
-50

skipif mysql # not compatible
query I rowsort label-4006
SELECT DISTINCT - + CAST ( + - 74 AS INTEGER ) / - 16 + - 65 - + - 19
----
-50

query II rowsort
SELECT + 46 + 56 - - 20, 32 AS col2
----
122
32

onlyif mysql # aggregate syntax: 
query II rowsort label-4008
SELECT + + 47, 17 * + MAX( ALL + 45 ) AS col1
----
47
765

skipif mysql # not compatible
query II rowsort label-4008
SELECT + + 47, 17 * + MAX ( ALL + 45 ) AS col1
----
47
765

query I rowsort
SELECT - 21 + - 39
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4010
SELECT + + COUNT( * ) * - 63 - + 49 DIV + 86 * 26 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-4010
SELECT + + COUNT ( * ) * - 63 - + 49 / + 86 * 26 AS col0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4011
SELECT ALL - - 99 DIV + 79 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL - - 99 / + 79 AS col2
----
1

query I rowsort
SELECT - 3 * 31 * 32 + - 1 + 85 AS col1
----
-2892

query II rowsort
SELECT 65 AS col2, + 60 + + - 45 * 83
----
65
-3675

query I rowsort
SELECT 72 + + 46 * + - 50
----
-2228

query I rowsort
SELECT 58 + 1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4016
SELECT ALL + 8 * SUM( + - CAST( + - 61 AS SIGNED ) ) * COALESCE ( + COALESCE ( - - 7, - COUNT( * ) ), + COUNT( * ), - 79 ) AS col0
----
3416

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL + 8 * SUM ( + - CAST ( + - 61 AS INTEGER ) ) * COALESCE ( + COALESCE ( - - 7, - COUNT ( * ) ), + COUNT ( * ), - 79 ) AS col0
----
3416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4017
SELECT CAST( NULL AS SIGNED ) + + 47 + + CAST( NULL AS SIGNED ) + + 8 * - + 66 + + COUNT( + 75 ) + COUNT( * ) * ( + 49 ) + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4017
SELECT CAST ( NULL AS INTEGER ) + + 47 + + CAST ( NULL AS INTEGER ) + + 8 * - + 66 + + COUNT ( + 75 ) + COUNT ( * ) * ( + 49 ) + 39
----
NULL

query I rowsort
SELECT DISTINCT + 90 + 82 + + 89 AS col0
----
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4019
SELECT 48 * - - 59 / + - CAST( NULL AS SIGNED ) * - + 75, COUNT( * ) + - COALESCE ( + 51, 84 * 94 * 48 ) AS col1
----
NULL
-50

skipif mysql # not compatible
query II rowsort label-4019
SELECT 48 * - - 59 / + - CAST ( NULL AS INTEGER ) * - + 75, COUNT ( * ) + - COALESCE ( + 51, 84 * 94 * 48 ) AS col1
----
NULL
-50

query I rowsort
SELECT + 58 * - 60 + - 35 AS col0
----
-3515

query I rowsort
SELECT DISTINCT + 63 + + 89
----
152

query I rowsort
SELECT ALL - 9 + 13 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL COUNT( * ) + + COUNT( * ) * - MIN( + - 96 )
----
97

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL COUNT ( * ) + + COUNT ( * ) * - MIN ( + - 96 )
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4024
SELECT MIN( - 68 ) + COUNT( * ) * ( + 48 ) * 58 * + + 37, 93 AS col1
----
102940
93

skipif mysql # not compatible
query II rowsort label-4024
SELECT MIN ( - 68 ) + COUNT ( * ) * ( + 48 ) * 58 * + + 37, 93 AS col1
----
102940
93

query I rowsort
SELECT DISTINCT - 64 + + 60 AS col0
----
-4

query I rowsort
SELECT ALL 36 + + - 51 + + - 58 AS col2
----
-73

query I rowsort
SELECT 63 * + 90 AS col2
----
5670

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT 99 * COUNT( * ) col2
----
99

skipif mysql # not compatible
query I rowsort label-4028
SELECT 99 * COUNT ( * ) col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4029
SELECT DISTINCT - 28 + - + 32 DIV + 96 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT - 28 + - + 32 / + 96 AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4030
SELECT ALL 59 * 3, - NULLIF ( + CAST( - 46 AS SIGNED ), MAX( ALL - 53 ) ) * - + 32 AS col1
----
177
-1472

skipif mysql # not compatible
query II rowsort label-4030
SELECT ALL 59 * 3, - NULLIF ( + CAST ( - 46 AS INTEGER ), MAX ( ALL - 53 ) ) * - + 32 AS col1
----
177
-1472

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4031
SELECT ALL 81 DIV + + 54 AS col2, COUNT( * ) + - 9 * SUM( 88 ) * MIN( + 98 ) AS col1
----
1
-77615

skipif mysql # not compatible
query II rowsort label-4031
SELECT ALL 81 / + + 54 AS col2, COUNT ( * ) + - 9 * SUM ( 88 ) * MIN ( + 98 ) AS col1
----
1
-77615

query I rowsort
SELECT 49 * + 63
----
3087

query I rowsort
SELECT + 77 * 15 - 68
----
1087

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4034
SELECT 85 * - - 92 + + COUNT( - + CAST( NULL AS DECIMAL ) ) + - 9 - - 31 * CASE + 21 WHEN - COUNT( * ) THEN + ( + 4 ) + - + 40 WHEN - 25 + SUM( ALL - 86 ) + + 66 + - 91 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4034
SELECT 85 * - - 92 + + COUNT ( - + CAST ( NULL AS REAL ) ) + - 9 - - 31 * CASE + 21 WHEN - COUNT ( * ) THEN + ( + 4 ) + - + 40 WHEN - 25 + SUM ( ALL - 86 ) + + 66 + - 91 THEN NULL END
----
NULL

query I rowsort
SELECT + NULLIF ( + 76, 89 * - 41 ) * + + ( + - 28 )
----
-2128

onlyif mysql # DIV for integer division: 
query I rowsort label-4036
SELECT DISTINCT 79 * - - 75 + + 81 + - 10 DIV - - 74 * - - 38 col0
----
6006

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT 79 * - - 75 + + 81 + - 10 / - - 74 * - - 38 col0
----
6006

query I rowsort
SELECT ALL + 80 * + + 42
----
3360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4038
SELECT - CAST( NULL AS SIGNED ) * - 96 - - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4038
SELECT - CAST ( NULL AS INTEGER ) * - 96 - - 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT DISTINCT - COUNT( * ) * + 47
----
-47

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT - COUNT ( * ) * + 47
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4040
SELECT + 13 DIV + 92 - - COUNT( - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-4040
SELECT + 13 / + 92 - - COUNT ( - 29 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT 87 * - + COUNT( * ) + - 37 col0
----
-124

skipif mysql # not compatible
query I rowsort label-4041
SELECT 87 * - + COUNT ( * ) + - 37 col0
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4042
SELECT 74 * + 50 - 67 + 62 + + + 51 - - NULLIF ( - + ( + - 35 ), 27 * 21 ) * + MAX( CAST( NULL AS SIGNED ) ) + - + 63 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4042
SELECT 74 * + 50 - 67 + 62 + + + 51 - - NULLIF ( - + ( + - 35 ), 27 * 21 ) * + MAX ( CAST ( NULL AS INTEGER ) ) + - + 63 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4043
SELECT 10 AS col1, 78 * + COUNT( * )
----
10
78

skipif mysql # not compatible
query II rowsort label-4043
SELECT 10 AS col1, 78 * + COUNT ( * )
----
10
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4044
SELECT 48 DIV - 50 * - 78
----
0

skipif mysql # not compatible
query I rowsort label-4044
SELECT 48 / - 50 * - 78
----
0

query II rowsort
SELECT 91 AS col1, 22 AS col1
----
91
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT ALL + 77 + ( - COUNT( * ) )
----
76

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL + 77 + ( - COUNT ( * ) )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT - SUM( ALL - ( - - 29 ) ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4047
SELECT - SUM ( ALL - ( - - 29 ) ) AS col0
----
29

query I rowsort
SELECT DISTINCT - 5 * - 71 AS col2
----
355

query I rowsort
SELECT 83 * 29
----
2407

query I rowsort
SELECT 73 + - 27
----
46

query I rowsort
SELECT 8 * + 3
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4052
SELECT 82 + + - CAST( NULL AS SIGNED ) * + 62 * - NULLIF ( 71, - 94 * - + 54 + 89 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4052
SELECT 82 + + - CAST ( NULL AS INTEGER ) * + 62 * - NULLIF ( 71, - 94 * - + 54 + 89 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 29 - - 32 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT DISTINCT SUM( DISTINCT - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT SUM ( DISTINCT - 84 )
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-4055
SELECT ALL COUNT( * ) AS col0, - 48 AS col1
----
1
-48

skipif mysql # not compatible
query II rowsort label-4055
SELECT ALL COUNT ( * ) AS col0, - 48 AS col1
----
1
-48

query I rowsort
SELECT ALL - 42 * + 18 * + + 54 * - 97
----
3959928

query I rowsort
SELECT 84 + - 87
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4058
SELECT ALL CASE - 76 WHEN - NULLIF ( - + 21, + + 83 ) THEN NULL WHEN + 52 * ( - - 4 ) + - + 83 + - 42 + + - CAST( - 39 AS SIGNED ) THEN - - 51 * - 26 - + 55 ELSE NULL END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL CASE - 76 WHEN - NULLIF ( - + 21, + + 83 ) THEN NULL WHEN + 52 * ( - - 4 ) + - + 83 + - 42 + + - CAST ( - 39 AS INTEGER ) THEN - - 51 * - 26 - + 55 ELSE NULL END * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT - 40 + + - 13 + + + 5 * COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-4059
SELECT - 40 + + - 13 + + + 5 * COUNT ( * )
----
-48

query I rowsort
SELECT + 79 + + 77
----
156

query I rowsort
SELECT ( + + ( 69 ) ) * - 10
----
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT - 53 + + COUNT( * ) + ( + 40 ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-4062
SELECT - 53 + + COUNT ( * ) + ( + 40 ) col2
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-4063
SELECT 64 + - - SUM( ALL 41 ) * 25 * - - 75, ( - 34 ) col1
----
76939
-34

skipif mysql # not compatible
query II rowsort label-4063
SELECT 64 + - - SUM ( ALL 41 ) * 25 * - - 75, ( - 34 ) col1
----
76939
-34

query I rowsort
SELECT - NULLIF ( - 58, + - 37 - - + 83 ) AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT CAST( - 45 AS SIGNED ) - + ( + - NULLIF ( + + 38, - 84 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-4065
SELECT CAST ( - 45 AS INTEGER ) - + ( + - NULLIF ( + + 38, - 84 ) )
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4066
SELECT 3 DIV - 35 + SUM( - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-4066
SELECT 3 / - 35 + SUM ( - 53 )
----
-53

query I rowsort
SELECT + ( - 23 ) + + 54 col0
----
31

query I rowsort
SELECT ALL + - ( + - 75 ) AS col2
----
75

query I rowsort
SELECT DISTINCT - 48 * - 72 + + 99 + + CASE 3 WHEN + 5 - 51 * + - 17 + 0 THEN NULL WHEN + - 73 THEN NULL ELSE + 41 * - 7 + - 58 END
----
3210

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT + 1 * + 20 * - NULLIF ( - 82, + MAX( DISTINCT - 34 ) )
----
1640

skipif mysql # not compatible
query I rowsort label-4070
SELECT + 1 * + 20 * - NULLIF ( - 82, + MAX ( DISTINCT - 34 ) )
----
1640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4071
SELECT + CASE - 48 WHEN - 52 THEN NULL WHEN 85 THEN - - CAST( NULL AS SIGNED ) END + 71 * + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT + CASE - 48 WHEN - 52 THEN NULL WHEN 85 THEN - - CAST ( NULL AS INTEGER ) END + 71 * + 60 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT SUM( 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4072
SELECT SUM ( 11 ) AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4073
SELECT DISTINCT + ( CASE WHEN NOT + 53 <= 53 * 1 * COUNT( * ) * 34 THEN + 87 + + - 20 WHEN NOT MIN( 75 ) <> - COALESCE ( CASE + CASE - 29 WHEN + MAX( - 91 ) + - ( - 71 ) + - + 31 + - - 55 * - 0 THEN + - 79 ELSE NULL END WHEN + + 25 * + 34 THEN CASE + COUNT( * ) WHEN + 97 * + 31 + MAX( - 5 + 99 ) THEN NULL WHEN 23 * + ( + 64 ) + COALESCE ( COUNT( * ), - 53, AVG ( 97 ) + 46 * 97 ) * + ( + COUNT( * ) ) THEN NULL WHEN COUNT( * ) + 46 * 79 THEN 49 / + CAST( NULL AS SIGNED ) ELSE NULL END * COALESCE ( 75, 72 * 72, + 99 ) ELSE NULL END, 95 * + 16 + - 80 * 8 ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT + ( CASE WHEN NOT + 53 <= 53 * 1 * COUNT ( * ) * 34 THEN + 87 + + - 20 WHEN NOT MIN ( 75 ) <> - COALESCE ( CASE + CASE - 29 WHEN + MAX ( - 91 ) + - ( - 71 ) + - + 31 + - - 55 * - 0 THEN + - 79 ELSE NULL END WHEN + + 25 * + 34 THEN CASE + COUNT ( * ) WHEN + 97 * + 31 + MAX ( - 5 + 99 ) THEN NULL WHEN 23 * + ( + 64 ) + COALESCE ( COUNT ( * ), - 53, AVG ( 97 ) + 46 * 97 ) * + ( + COUNT ( * ) ) THEN NULL WHEN COUNT ( * ) + 46 * 79 THEN 49 / + CAST ( NULL AS INTEGER ) ELSE NULL END * COALESCE ( 75, 72 * 72, + 99 ) ELSE NULL END, 95 * + 16 + - 80 * 8 ) THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT ALL COUNT( * ) * + - 8 + + 26 + 46
----
64

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL COUNT ( * ) * + - 8 + + 26 + 46
----
64

query I rowsort
SELECT + 72 + - 29 + - - 45 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT + SUM( NULLIF ( + + 45, 22 + + 31 ) )
----
45

skipif mysql # not compatible
query I rowsort label-4076
SELECT + SUM ( NULLIF ( + + 45, 22 + + 31 ) )
----
45

query I rowsort
SELECT DISTINCT ( 84 ) * + 94 * + 75 + + 44 + + ( - 60 ) + + 8 AS col2
----
592192

query I rowsort
SELECT + 7 * - - 35 * - 75 * 87
----
-1598625

onlyif mysql # aggregate syntax: 
query II rowsort label-4079
SELECT + COUNT( * ) + - COUNT( * ) + 15 * + 42 + + + COUNT( * ) * + 43, - 35 * 47 - 83 * 6 AS col2
----
673
-2143

skipif mysql # not compatible
query II rowsort label-4079
SELECT + COUNT ( * ) + - COUNT ( * ) + 15 * + 42 + + + COUNT ( * ) * + 43, - 35 * 47 - 83 * 6 AS col2
----
673
-2143

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT ALL 69 * - 25 + + COUNT( * ) * 4 + - + 1 AS col0
----
-1722

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL 69 * - 25 + + COUNT ( * ) * 4 + - + 1 AS col0
----
-1722

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT + 36 * COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-4081
SELECT + 36 * COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT COUNT( ALL + + 11 )
----
1

skipif mysql # not compatible
query I rowsort label-4082
SELECT COUNT ( ALL + + 11 )
----
1

query I rowsort
SELECT + 77 * + + 57
----
4389

query I rowsort
SELECT - COALESCE ( + 17, - 76 )
----
-17

query I rowsort
SELECT - 95 + - 31 AS col2
----
-126

query II rowsort
SELECT ALL 2, - ( - 39 ) AS col1
----
2
39

query II rowsort
SELECT 77, - 2 AS col1
----
77
-2

query I rowsort
SELECT ALL 77 - - ( 71 )
----
148

query II rowsort
SELECT DISTINCT 7, 7 * - - 77 AS col1
----
7
539

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4090
SELECT ALL + MAX( + ( 73 ) ) DIV 50 AS col0, - 8 * 13 + + 66 AS col1
----
1
-38

skipif mysql # not compatible
query II rowsort label-4090
SELECT ALL + MAX ( + ( 73 ) ) / 50 AS col0, - 8 * 13 + + 66 AS col1
----
1
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4091
SELECT DISTINCT + CASE - 63 WHEN 45 THEN ( NULLIF ( - 75, 90 * - + 64 ) ) + + 47 + - 95 - - + 9 END * + 29 + 5 + - CAST( NULL AS SIGNED ) / - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT + CASE - 63 WHEN 45 THEN ( NULLIF ( - 75, 90 * - + 64 ) ) + + 47 + - 95 - - + 9 END * + 29 + 5 + - CAST ( NULL AS INTEGER ) / - 15
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT DISTINCT 82 DIV 98 * 90
----
0

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT 82 / 98 * 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT ALL + 56 * 42 * SUM( ALL 64 )
----
150528

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL + 56 * 42 * SUM ( ALL 64 )
----
150528

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT - - 59 * COUNT( * ) * + + 95
----
5605

skipif mysql # not compatible
query I rowsort label-4094
SELECT - - 59 * COUNT ( * ) * + + 95
----
5605

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT ALL - COUNT( DISTINCT + - 92 ) * - + ( COUNT( * ) ) * 74 * - ( 87 ) + - 52 + 63 AS col1
----
-6427

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL - COUNT ( DISTINCT + - 92 ) * - + ( COUNT ( * ) ) * 74 * - ( 87 ) + - 52 + 63 AS col1
----
-6427

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4096
SELECT - + CAST( NULL AS DECIMAL ) AS col0, 19 DIV + 26 - + 68 - - + MIN( - 99 )
----
NULL
-167

skipif mysql # not compatible
query II rowsort label-4096
SELECT - + CAST ( NULL AS REAL ) AS col0, 19 / + 26 - + 68 - - + MIN ( - 99 )
----
NULL
-167

onlyif mysql # DIV for integer division: 
query II rowsort label-4097
SELECT 98, + 39 + 87 + 83 + - + 17 + + 77 DIV 34 col1
----
98
194

skipif mysql # not compatible
query II rowsort label-4097
SELECT 98, + 39 + 87 + 83 + - + 17 + + 77 / 34 col1
----
98
194

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT - - COUNT( ALL + 69 )
----
1

skipif mysql # not compatible
query I rowsort label-4098
SELECT - - COUNT ( ALL + 69 )
----
1

query I rowsort
SELECT - 60 + + 62
----
2

query I rowsort
SELECT ALL - + 30 * - 75
----
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT - 73 + + - COUNT( * ) - + 44
----
-118

skipif mysql # not compatible
query I rowsort label-4101
SELECT - 73 + + - COUNT ( * ) - + 44
----
-118

query I rowsort
SELECT DISTINCT COALESCE ( + + 4, - - 97 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4103
SELECT DISTINCT + CAST( - - 59 AS SIGNED ) AS col2, COUNT( * ) AS col0
----
59
1

skipif mysql # not compatible
query II rowsort label-4103
SELECT DISTINCT + CAST ( - - 59 AS INTEGER ) AS col2, COUNT ( * ) AS col0
----
59
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4104
SELECT DISTINCT 5 AS col1, 33, - 42 * - CAST( NULL AS DECIMAL ) + + 71 + + + 88 * CAST( + - ( + 80 ) AS SIGNED ) AS col0
----
5
33
NULL

skipif mysql # not compatible
query III rowsort label-4104
SELECT DISTINCT 5 AS col1, 33, - 42 * - CAST ( NULL AS REAL ) + + 71 + + + 88 * CAST ( + - ( + 80 ) AS INTEGER ) AS col0
----
5
33
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4105
SELECT DISTINCT + 10 + 95 + - 48 + 39 col2, + 13 DIV + + 60 + - - 11
----
96
11

skipif mysql # not compatible
query II rowsort label-4105
SELECT DISTINCT + 10 + 95 + - 48 + 39 col2, + 13 / + + 60 + - - 11
----
96
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ALL MAX( ALL + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL MAX ( ALL + 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT - + COUNT( * ) * + 94
----
-94

skipif mysql # not compatible
query I rowsort label-4107
SELECT - + COUNT ( * ) * + 94
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT + COUNT( DISTINCT - - ( 40 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4108
SELECT + COUNT ( DISTINCT - - ( 40 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4109
SELECT ALL - 58 DIV - - 44 + - COUNT( * ) DIV - - COUNT( ALL + + 69 )
----
-2

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL - 58 / - - 44 + - COUNT ( * ) / - - COUNT ( ALL + + 69 )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4110
SELECT 78, + 99 * + SUM( + 38 ) AS col0
----
78
3762

skipif mysql # not compatible
query II rowsort label-4110
SELECT 78, + 99 * + SUM ( + 38 ) AS col0
----
78
3762

query I rowsort
SELECT + NULLIF ( 56, - 57 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4112
SELECT - 30 * - 39 + - CAST( NULL AS SIGNED ) - + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT - 30 * - 39 + - CAST ( NULL AS INTEGER ) - + 69 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4113
SELECT + CAST( COALESCE ( + COUNT( * ), + 39, - 16 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4113
SELECT + CAST ( COALESCE ( + COUNT ( * ), + 39, - 16 ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4114
SELECT ALL + - COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL + - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4115
SELECT 22 DIV 26 * + 95 + + 89 + - COALESCE ( 88, + COUNT( * ) * - 26 )
----
1

skipif mysql # not compatible
query I rowsort label-4115
SELECT 22 / 26 * + 95 + + 89 + - COALESCE ( 88, + COUNT ( * ) * - 26 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4116
SELECT NULLIF ( SUM( + + 44 ), - - 44 ) * + 77 + - SUM( ALL 88 ) + + 14 + + COUNT( * ) * - + CASE - ( - + 51 ) WHEN 94 THEN 98 WHEN ( + - 58 ) * 24 / CAST( - 69 AS SIGNED ) THEN - 47 WHEN 86 THEN - COUNT( * ) END / 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4116
SELECT NULLIF ( SUM ( + + 44 ), - - 44 ) * + 77 + - SUM ( ALL 88 ) + + 14 + + COUNT ( * ) * - + CASE - ( - + 51 ) WHEN 94 THEN 98 WHEN ( + - 58 ) * 24 / CAST ( - 69 AS INTEGER ) THEN - 47 WHEN 86 THEN - COUNT ( * ) END / 53 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4117
SELECT ALL 38 DIV - + 32 + + + 37
----
36

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL 38 / - + 32 + + + 37
----
36

query I rowsort
SELECT ALL + ( 38 ) * 65
----
2470

query I rowsort
SELECT ALL 28 * - 72 + - 41
----
-2057

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4120
SELECT ALL COUNT( * ) DIV + ( + COUNT( 78 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL COUNT ( * ) / + ( + COUNT ( 78 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT + CASE - 7 WHEN - + 76 * - COUNT( * ) THEN 49 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT + CASE - 7 WHEN - + 76 * - COUNT ( * ) THEN 49 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL CASE - NULLIF ( + 49, - ( 94 ) ) WHEN + - 59 THEN - 41 * - 95 ELSE NULL END * + 72 - - + 65 * - + 62
----
NULL

query I rowsort
SELECT NULLIF ( - 78, - 37 ) AS col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4124
SELECT COALESCE ( - 52, + 34 DIV - CAST( COUNT( * ) AS SIGNED ) - - - COUNT( 69 ) + + NULLIF ( 91, - 2 * + - 12 ) + + - 9, + 99 )
----
-52

skipif mysql # not compatible
query I rowsort label-4124
SELECT COALESCE ( - 52, + 34 / - CAST ( COUNT ( * ) AS INTEGER ) - - - COUNT ( 69 ) + + NULLIF ( 91, - 2 * + - 12 ) + + - 9, + 99 )
----
-52

query II rowsort
SELECT + 54 - - - 5 AS col0, + 46 + + - 26
----
49
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4126
SELECT - ( - + 57 ) * + 75 + - CASE 99 WHEN + 44 * ( 81 ) THEN - + 40 * - + 62 - - 9 * COUNT( * ) + 93 - + 30 WHEN 60 * - 74 / CAST( + - 6 AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT - ( - + 57 ) * + 75 + - CASE 99 WHEN + 44 * ( 81 ) THEN - + 40 * - + 62 - - 9 * COUNT ( * ) + 93 - + 30 WHEN 60 * - 74 / CAST ( + - 6 AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4127
SELECT + 88 * ( - 93 ), COUNT( * ) AS col1
----
-8184
1

skipif mysql # not compatible
query II rowsort label-4127
SELECT + 88 * ( - 93 ), COUNT ( * ) AS col1
----
-8184
1

query I rowsort
SELECT + 61 + - - 33 - + + 86 * 89
----
-7560

onlyif mysql # aggregate syntax: 
query II rowsort label-4129
SELECT + 31 - - - 68 - - ( - 18 ) * - 6 * + - COUNT( ALL 49 ) AS col2, 7
----
-145
7

skipif mysql # not compatible
query II rowsort label-4129
SELECT + 31 - - - 68 - - ( - 18 ) * - 6 * + - COUNT ( ALL 49 ) AS col2, 7
----
-145
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4130
SELECT SUM( ALL 73 ), 67 * + - ( 1 ) * - 96 + ( - SUM( + + 9 ) ) * + - 27 col2
----
73
6675

skipif mysql # not compatible
query II rowsort label-4130
SELECT SUM ( ALL 73 ), 67 * + - ( 1 ) * - 96 + ( - SUM ( + + 9 ) ) * + - 27 col2
----
73
6675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4131
SELECT ALL + CAST( + - 28 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL + CAST ( + - 28 AS INTEGER )
----
-28

query I rowsort
SELECT ALL 71 + + + ( 15 ) * + 64 + + 48 AS col2
----
1079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4133
SELECT + 11 + 6 * + COUNT( * ) AS col0, 4 * CAST( + CASE - 25 WHEN 91 * - ( COUNT( * ) ) / + 20 THEN + 89 WHEN - 4 + + CASE + 10 WHEN - 73 THEN 98 WHEN - 95 THEN - - COUNT( * ) / - 45 WHEN + + CAST( NULL AS SIGNED ) THEN 96 * + 47 END THEN - 88 * 64 - - 95 * + CAST( 50 AS SIGNED ) + 49 END AS SIGNED ) - - 87 AS col1
----
17
NULL

skipif mysql # not compatible
query II rowsort label-4133
SELECT + 11 + 6 * + COUNT ( * ) AS col0, 4 * CAST ( + CASE - 25 WHEN 91 * - ( COUNT ( * ) ) / + 20 THEN + 89 WHEN - 4 + + CASE + 10 WHEN - 73 THEN 98 WHEN - 95 THEN - - COUNT ( * ) / - 45 WHEN + + CAST ( NULL AS INTEGER ) THEN 96 * + 47 END THEN - 88 * 64 - - 95 * + CAST ( 50 AS INTEGER ) + 49 END AS INTEGER ) - - 87 AS col1
----
17
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4134
SELECT ALL + CASE + 71 WHEN - 6 - - - 98 THEN - 49 WHEN COUNT( + - 15 ) / + 82 THEN NULL ELSE NULL END, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4134
SELECT ALL + CASE + 71 WHEN - 6 - - - 98 THEN - 49 WHEN COUNT ( + - 15 ) / + 82 THEN NULL ELSE NULL END, + COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4135
SELECT ALL + + CASE + + 85 WHEN + - COUNT( * ) + COUNT( * ) - - 93 / + ( + 24 ) + + 35 * COUNT( - 15 ) THEN + COUNT( * ) + + AVG ( - 27 ) + - + SUM( ALL 64 ) - + + 38 ELSE NULL END + - CAST( NULL AS SIGNED ), - 60 AS col0
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-4135
SELECT ALL + + CASE + + 85 WHEN + - COUNT ( * ) + COUNT ( * ) - - 93 / + ( + 24 ) + + 35 * COUNT ( - 15 ) THEN + COUNT ( * ) + + AVG ( - 27 ) + - + SUM ( ALL 64 ) - + + 38 ELSE NULL END + - CAST ( NULL AS INTEGER ), - 60 AS col0
----
NULL
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4136
SELECT ALL - 17 + - COUNT( * ) + CAST( + + 95 AS SIGNED ) + COUNT( * ) DIV + - 43
----
77

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL - 17 + - COUNT ( * ) + CAST ( + + 95 AS INTEGER ) + COUNT ( * ) / + - 43
----
77

query I rowsort
SELECT 62 + + + ( 42 )
----
104

query II rowsort
SELECT - 91 + + 51, 30 * + 79 + 50 AS col0
----
-40
2420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4139
SELECT - 60 * 46 - - - SUM( DISTINCT ( + 97 ) ) + - + 21 + - COUNT( * ) DIV 42 * + 52 + - 87 AS col2
----
-2965

skipif mysql # not compatible
query I rowsort label-4139
SELECT - 60 * 46 - - - SUM ( DISTINCT ( + 97 ) ) + - + 21 + - COUNT ( * ) / 42 * + 52 + - 87 AS col2
----
-2965

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT 42 + + MAX( + 91 ) AS col2
----
133

skipif mysql # not compatible
query I rowsort label-4140
SELECT 42 + + MAX ( + 91 ) AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT ALL - COUNT( DISTINCT + + 7 )
----
-1

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL - COUNT ( DISTINCT + + 7 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL COALESCE ( + 23, - 13 + + - 32 * + 88 ) * + NULLIF ( - COUNT( * ), 13 )
----
-23

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL COALESCE ( + 23, - 13 + + - 32 * + 88 ) * + NULLIF ( - COUNT ( * ), 13 )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-4143
SELECT + - 45 DIV 51 + 7 + 45 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4143
SELECT + - 45 / 51 + 7 + 45 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT ALL - NULLIF ( + - COUNT( * ), - 61 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL - NULLIF ( + - COUNT ( * ), - 61 ) AS col0
----
1

query I rowsort
SELECT 77 + - 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT DISTINCT + COUNT( * ) * + - 80 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT + COUNT ( * ) * + - 80 AS col2
----
-80

query I rowsort
SELECT 92 * - 3 AS col0
----
-276

query I rowsort
SELECT + 42 * 13 + - ( 93 ) * - - 40 AS col2
----
-3174

onlyif mysql # aggregate syntax: 
query II rowsort label-4149
SELECT 2, 35 + - COUNT( * ) + 88 AS col0
----
2
122

skipif mysql # not compatible
query II rowsort label-4149
SELECT 2, 35 + - COUNT ( * ) + 88 AS col0
----
2
122

onlyif mysql # aggregate syntax: 
query II rowsort label-4150
SELECT + 33, - COUNT( * ) AS col2
----
33
-1

skipif mysql # not compatible
query II rowsort label-4150
SELECT + 33, - COUNT ( * ) AS col2
----
33
-1

query I rowsort
SELECT 73 + - 98
----
-25

query I rowsort
SELECT DISTINCT - 46 - - 38 col2
----
-8

query I rowsort
SELECT 82 * + - 17 col2
----
-1394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4154
SELECT ALL - 28 - - COALESCE ( - ( - SUM( + 91 ) ), + + 9 ) - + 70 * - CAST( NULL AS SIGNED ) * + 36 * + 27 * - 75 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL - 28 - - COALESCE ( - ( - SUM ( + 91 ) ), + + 9 ) - + 70 * - CAST ( NULL AS INTEGER ) * + 36 * + 27 * - 75 col1
----
NULL

query I rowsort
SELECT DISTINCT + 1 * - 93 AS col1
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4156
SELECT COUNT( * ) DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-4156
SELECT COUNT ( * ) / - 85
----
0

query II rowsort
SELECT ALL - 72, + 62 AS col1
----
-72
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL - 83 * ( 58 ) * - COUNT( * )
----
4814

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL - 83 * ( 58 ) * - COUNT ( * )
----
4814

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT ALL + 29 * - + ( + MIN( + 40 ) ) AS col2
----
-1160

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL + 29 * - + ( + MIN ( + 40 ) ) AS col2
----
-1160

query I rowsort
SELECT 17 + 31
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4161
SELECT 91 DIV - SUM( ALL - - 19 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4161
SELECT 91 / - SUM ( ALL - - 19 ) AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-4162
SELECT 27 DIV + 55
----
0

skipif mysql # not compatible
query I rowsort label-4162
SELECT 27 / + 55
----
0

query I rowsort
SELECT 98 * 15
----
1470

query I rowsort
SELECT 33 + - - 2 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT COUNT( * ) * - - 38 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4165
SELECT COUNT ( * ) * - - 38 AS col1
----
38

query I rowsort
SELECT DISTINCT - + 76 + 35 AS col2
----
-41

query I rowsort
SELECT CASE - 3 WHEN + 11 * - 97 THEN + 38 + 23 * + + 26 END
----
NULL

query I rowsort
SELECT ALL + + 47 + - COALESCE ( 40, - 47 ) + 56 col2
----
63

query I rowsort
SELECT DISTINCT - + 84 + + 61
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-4170
SELECT ALL - 21 + - + 76 * + COUNT( * ), - 83 AS col1
----
-97
-83

skipif mysql # not compatible
query II rowsort label-4170
SELECT ALL - 21 + - + 76 * + COUNT ( * ), - 83 AS col1
----
-97
-83

query I rowsort
SELECT DISTINCT - 63 + 93
----
30

query I rowsort
SELECT DISTINCT + - CASE - 32 WHEN + 61 * + 97 THEN - + ( - 90 ) END * 1
----
NULL

query I rowsort
SELECT - 22 * + 10 AS col2
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT 18 - - 67 - + MAX( DISTINCT + 81 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4174
SELECT 18 - - 67 - + MAX ( DISTINCT + 81 ) AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4175
SELECT DISTINCT - 19 * + 30 * - + 75 + + CAST( NULL AS SIGNED ) + 62 + - - 63 * 16 - + - COUNT( * ) * + - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT - 19 * + 30 * - + 75 + + CAST ( NULL AS INTEGER ) + 62 + - - 63 * 16 - + - COUNT ( * ) * + - 23
----
NULL

query I rowsort
SELECT ALL 5 + - - 18 * 2 + + NULLIF ( - 22, - 71 )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4177
SELECT - 88 DIV + - ( COUNT( * ) ) - - 60, - 17 AS col0
----
148
-17

skipif mysql # not compatible
query II rowsort label-4177
SELECT - 88 / + - ( COUNT ( * ) ) - - 60, - 17 AS col0
----
148
-17

query I rowsort
SELECT + 58 * + + 18 AS col1
----
1044

onlyif mysql # DIV for integer division: 
query II rowsort label-4179
SELECT - 63 AS col2, + 99 * + 88 DIV - 1
----
-63
-8712

skipif mysql # not compatible
query II rowsort label-4179
SELECT - 63 AS col2, + 99 * + 88 / - 1
----
-63
-8712

query I rowsort
SELECT DISTINCT 90 - - 46 AS col0
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4181
SELECT - CAST( NULL AS SIGNED ) * + 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT - CAST ( NULL AS INTEGER ) * + 71 AS col2
----
NULL

query I rowsort
SELECT ALL 8 - + 56
----
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4183
SELECT DISTINCT 73 DIV - CAST( NULL AS DECIMAL ) AS col1, + 40 * - - ( + 38 ) DIV + - COUNT( * )
----
NULL
-1520

skipif mysql # not compatible
query II rowsort label-4183
SELECT DISTINCT 73 / - CAST ( NULL AS REAL ) AS col1, + 40 * - - ( + 38 ) / + - COUNT ( * )
----
NULL
-1520

onlyif mysql # aggregate syntax: 
query II rowsort label-4184
SELECT MAX( DISTINCT + - 98 ) AS col0, SUM( ALL - - 49 ) AS col0
----
-98
49

skipif mysql # not compatible
query II rowsort label-4184
SELECT MAX ( DISTINCT + - 98 ) AS col0, SUM ( ALL - - 49 ) AS col0
----
-98
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4185
SELECT 57 DIV + + 86
----
0

skipif mysql # not compatible
query I rowsort label-4185
SELECT 57 / + + 86
----
0

query I rowsort
SELECT 92 * - 43 * + ( 75 )
----
-296700

query I rowsort
SELECT ALL 8 * + - 73 AS col2
----
-584

query I rowsort
SELECT 2 * + + 57
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4189
SELECT + SUM( DISTINCT + + 62 ) AS col1, COALESCE ( + - CASE + 10 WHEN - - MAX( - 8 ) + + 84 THEN + ( + + COALESCE ( 86, + 47 * + MAX( ALL + + ( 81 ) ) ) ) * + + 48 END, + + COALESCE ( 98, + 62 + - - 5, 49 * - 50 ) * - 23 - - COALESCE ( 98, - 64, + CAST( - 31 AS SIGNED ) ) ) - - 31 col1
----
62
-2125

skipif mysql # not compatible
query II rowsort label-4189
SELECT + SUM ( DISTINCT + + 62 ) AS col1, COALESCE ( + - CASE + 10 WHEN - - MAX ( - 8 ) + + 84 THEN + ( + + COALESCE ( 86, + 47 * + MAX ( ALL + + ( 81 ) ) ) ) * + + 48 END, + + COALESCE ( 98, + 62 + - - 5, 49 * - 50 ) * - 23 - - COALESCE ( 98, - 64, + CAST ( - 31 AS INTEGER ) ) ) - - 31 col1
----
62
-2125

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT 76 + - COUNT( DISTINCT - 14 ) col1
----
75

skipif mysql # not compatible
query I rowsort label-4190
SELECT 76 + - COUNT ( DISTINCT - 14 ) col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT CAST( 29 AS SIGNED ) * - 57 + - - ( - 5 )
----
-1658

skipif mysql # not compatible
query I rowsort label-4191
SELECT CAST ( 29 AS INTEGER ) * - 57 + - - ( - 5 )
----
-1658

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT COUNT( DISTINCT + 90 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4192
SELECT COUNT ( DISTINCT + 90 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4193
SELECT ALL - MAX( - 23 ) AS col0, 5 - - 55
----
23
60

skipif mysql # not compatible
query II rowsort label-4193
SELECT ALL - MAX ( - 23 ) AS col0, 5 - - 55
----
23
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4194
SELECT DISTINCT - CAST( + - 81 AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT - CAST ( + - 81 AS INTEGER )
----
81

query I rowsort
SELECT 17 * - ( + 49 ) AS col2
----
-833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4196
SELECT ALL + ( + CAST( + + NULLIF ( ( + 31 ), 64 ) AS SIGNED ) ) + + ( - - 89 )
----
120

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL + ( + CAST ( + + NULLIF ( ( + 31 ), 64 ) AS INTEGER ) ) + + ( - - 89 )
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT MIN( ALL + 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4197
SELECT MIN ( ALL + 74 ) AS col1
----
74

query I rowsort
SELECT 34 * 49 + - ( - 33 ) * + 90 AS col0
----
4636

onlyif mysql # aggregate syntax: 
query II rowsort label-4199
SELECT 7 * - + 57 * + 91 * 3 AS col2, 75 + 40 - COUNT( * ) * + 72
----
-108927
43

skipif mysql # not compatible
query II rowsort label-4199
SELECT 7 * - + 57 * + 91 * 3 AS col2, 75 + 40 - COUNT ( * ) * + 72
----
-108927
43

query I rowsort
SELECT ALL - ( + + 10 ) + + + 52
----
42

query I rowsort
SELECT ALL - 25 + - 80 - + - 91 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT ALL - + 82 + - COUNT( * ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - + 82 + - COUNT ( * ) AS col0
----
-83

query I rowsort
SELECT ALL + - 11 + + - 43 AS col1
----
-54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4204
SELECT DISTINCT - 92 + + - NULLIF ( - - 24, + - CAST( NULL AS SIGNED ) ) + - + 29 * COALESCE ( ( - 77 ), - 17 * + - ( + 27 ), + 51 * 61 DIV + 25 * + - 53 * + + NULLIF ( - - 52, 38 ) + + - 95 * + 85 )
----
2117

skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT - 92 + + - NULLIF ( - - 24, + - CAST ( NULL AS INTEGER ) ) + - + 29 * COALESCE ( ( - 77 ), - 17 * + - ( + 27 ), + 51 * 61 / + 25 * + - 53 * + + NULLIF ( - - 52, 38 ) + + - 95 * + 85 )
----
2117

query I rowsort
SELECT - + 54 * + 75 * - + 31 * + - 49 - - + NULLIF ( 4, + ( + 60 ) ) AS col1
----
-6151946

query I rowsort
SELECT - - 84 + + 8
----
92

query I rowsort
SELECT + - 79 - + - 27
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-4208
SELECT + NULLIF ( + 44, - 11 + - ( 81 ) + - 48 * + 97 * - MAX( + + 50 ) - - 44 / - + ( - ( - + 44 ) ) ) * + COUNT( * ) * 77, 40 + - MAX( - 0 ) * 98 + - + 55 * - 74 AS col2
----
3388
4110

skipif mysql # not compatible
query II rowsort label-4208
SELECT + NULLIF ( + 44, - 11 + - ( 81 ) + - 48 * + 97 * - MAX ( + + 50 ) - - 44 / - + ( - ( - + 44 ) ) ) * + COUNT ( * ) * 77, 40 + - MAX ( - 0 ) * 98 + - + 55 * - 74 AS col2
----
3388
4110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4209
SELECT - + ( - 10 ) + + + COUNT( * ) + 48 DIV + - CAST( - 52 AS SIGNED ) + - + 2 DIV - + 54 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4209
SELECT - + ( - 10 ) + + + COUNT ( * ) + 48 / + - CAST ( - 52 AS INTEGER ) + - + 2 / - + 54 AS col0
----
11

query I rowsort
SELECT - 82 * + + 86 * 47 + + 84
----
-331360

query I rowsort
SELECT ALL + 58 * 81 AS col0
----
4698

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT + + 52 * ( - NULLIF ( - + COUNT( * ), COUNT( * ) ) )
----
52

skipif mysql # not compatible
query I rowsort label-4212
SELECT + + 52 * ( - NULLIF ( - + COUNT ( * ), COUNT ( * ) ) )
----
52

query I rowsort
SELECT + 78 + + 41
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT - SUM( + 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-4214
SELECT - SUM ( + 28 )
----
-28

query I rowsort
SELECT ALL - 1 * + 89
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4216
SELECT + COUNT( * ) DIV 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4216
SELECT + COUNT ( * ) / 30 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4217
SELECT ALL 54 DIV - 13
----
-4

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL 54 / - 13
----
-4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4218
SELECT + CASE - 3 WHEN - 57 THEN + CAST( NULL AS DECIMAL ) * AVG ( - 3 ) + - 41 - CAST( NULL AS DECIMAL ) WHEN + 14 THEN NULL WHEN - 84 THEN + 74 * - CAST( NULL AS SIGNED ) WHEN 31 * - 23 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT + CASE - 3 WHEN - 57 THEN + CAST ( NULL AS REAL ) * AVG ( - 3 ) + - 41 - CAST ( NULL AS REAL ) WHEN + 14 THEN NULL WHEN - 84 THEN + 74 * - CAST ( NULL AS INTEGER ) WHEN 31 * - 23 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT ALL COUNT( * ) * + 20 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL COUNT ( * ) * + 20 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT + 59 * NULLIF ( + - 40, - COUNT( * ) ) AS col2
----
-2360

skipif mysql # not compatible
query I rowsort label-4220
SELECT + 59 * NULLIF ( + - 40, - COUNT ( * ) ) AS col2
----
-2360

query I rowsort
SELECT + 76 + + - 95
----
-19

query I rowsort
SELECT - 41 + - ( 16 )
----
-57

query I rowsort
SELECT ALL + 29 * - 31 + + 84 + + 16
----
-799

onlyif mysql # aggregate syntax: 
query II rowsort label-4224
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + 84 AS col2, 48
----
85
48

skipif mysql # not compatible
query II rowsort label-4224
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + 84 AS col2, 48
----
85
48

query II rowsort
SELECT - + 13 * 38 + + 71 AS col1, 89
----
-423
89

query I rowsort
SELECT DISTINCT + 56 * 76 * + 86 + + 89
----
366105

query I rowsort
SELECT - ( 71 ) * - - 2 + + 44
----
-98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4228
SELECT - - ( + 35 ) + + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT - - ( + 35 ) + + CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT ALL - + 4 * - 36 AS col2
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4230
SELECT DISTINCT - CASE + 17 WHEN + - CASE 87 WHEN - 20 THEN + 39 + 93 END * - 41 * + ( - 47 ) * + 75 THEN - 50 + + COUNT( * ) WHEN - - CASE AVG ( DISTINCT ( + 48 ) ) WHEN + ( 82 ) THEN CASE - NULLIF ( - 14, + - 13 - + 61 ) WHEN - 45 - 65 THEN - COUNT( * ) + - 39 WHEN + 78 THEN NULL ELSE + 0 + 73 END * COUNT( * ) WHEN + 77 * 62 THEN + CAST( COUNT( * ) AS SIGNED ) * + COALESCE ( AVG ( - CAST( NULL AS SIGNED ) ) + 68 * + 75, - 88 ) WHEN ( - 72 ) THEN + COUNT( DISTINCT 71 ) END THEN 42 ELSE + 96 + + NULLIF ( + 73, + 38 ) * - 37 END col2
----
2605

skipif mysql # not compatible
query I rowsort label-4230
SELECT DISTINCT - CASE + 17 WHEN + - CASE 87 WHEN - 20 THEN + 39 + 93 END * - 41 * + ( - 47 ) * + 75 THEN - 50 + + COUNT ( * ) WHEN - - CASE AVG ( DISTINCT ( + 48 ) ) WHEN + ( 82 ) THEN CASE - NULLIF ( - 14, + - 13 - + 61 ) WHEN - 45 - 65 THEN - COUNT ( * ) + - 39 WHEN + 78 THEN NULL ELSE + 0 + 73 END * COUNT ( * ) WHEN + 77 * 62 THEN + CAST ( COUNT ( * ) AS INTEGER ) * + COALESCE ( AVG ( - CAST ( NULL AS INTEGER ) ) + 68 * + 75, - 88 ) WHEN ( - 72 ) THEN + COUNT ( DISTINCT 71 ) END THEN 42 ELSE + 96 + + NULLIF ( + 73, + 38 ) * - 37 END col2
----
2605

query II rowsort
SELECT - 25, 62 + + + 40 AS col2
----
-25
102

query I rowsort
SELECT ALL + - 12 * - 1 + 2 + - + 25 AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4233
SELECT ALL NULLIF ( 53, + - COUNT( * ) * + 23 / - + 59 + 71 + + 25 + - - 24 * - 61 * + CASE + ( COUNT( * ) ) WHEN + + CAST( + + 36 AS SIGNED ) THEN 74 WHEN COUNT( * ) THEN + - NULLIF ( + - 71, 88 ) END - - ( ( + ( + + 6 ) ) ) / - 38 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL NULLIF ( 53, + - COUNT ( * ) * + 23 / - + 59 + 71 + + 25 + - - 24 * - 61 * + CASE + ( COUNT ( * ) ) WHEN + + CAST ( + + 36 AS INTEGER ) THEN 74 WHEN COUNT ( * ) THEN + - NULLIF ( + - 71, 88 ) END - - ( ( + ( + + 6 ) ) ) / - 38 ) AS col1
----
53

query I rowsort
SELECT - - 81 * - 87 AS col2
----
-7047

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4235
SELECT ALL - COALESCE ( + 68, + 28 + 81 + - 21 + - + 63 + + - 97 * + 9 DIV + 71 + - 45 * 75 DIV - 24, - + 88 * - + 8 + + COUNT( * ) )
----
-68

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL - COALESCE ( + 68, + 28 + 81 + - 21 + - + 63 + + - 97 * + 9 / + 71 + - 45 * 75 / - 24, - + 88 * - + 8 + + COUNT ( * ) )
----
-68

query I rowsort
SELECT - + 6 * + 68 AS col1
----
-408

query I rowsort
SELECT - - 48 * 40 AS col2
----
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT - - SUM( + 99 )
----
99

skipif mysql # not compatible
query I rowsort label-4238
SELECT - - SUM ( + 99 )
----
99

query I rowsort
SELECT - NULLIF ( + + 77, + ( - 60 ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT - ( - MIN( ALL + 60 ) ) * - - 10 + + 68 * COUNT( * ) * MIN( DISTINCT + 77 ) + - 36 + + - 23 - 57 + COUNT( * ) * + 90 * 39 * + 86 + - 33 + + 96 - - + 70
----
307713

skipif mysql # not compatible
query I rowsort label-4240
SELECT - ( - MIN ( ALL + 60 ) ) * - - 10 + + 68 * COUNT ( * ) * MIN ( DISTINCT + 77 ) + - 36 + + - 23 - 57 + COUNT ( * ) * + 90 * 39 * + 86 + - 33 + + 96 - - + 70
----
307713

query II rowsort
SELECT DISTINCT ( - 0 ), - 36 * - - 12 + + 0 AS col0
----
0
-432

query I rowsort
SELECT ALL 13 * - 93 AS col1
----
-1209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4243
SELECT DISTINCT CAST( - 83 AS SIGNED ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT CAST ( - 83 AS INTEGER ) AS col1
----
-83

query II rowsort
SELECT 18 AS col2, + 94 AS col2
----
18
94

query I rowsort
SELECT ALL + 24 + - - 44 - - ( - 58 )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4246
SELECT ALL + NULLIF ( - 76, - COALESCE ( + 25, - CAST( NULL AS SIGNED ), + - MIN( DISTINCT 5 ) * 22 + - + 51 ) ) DIV 34 + NULLIF ( - - COUNT( * ), + 7 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL + NULLIF ( - 76, - COALESCE ( + 25, - CAST ( NULL AS INTEGER ), + - MIN ( DISTINCT 5 ) * 22 + - + 51 ) ) / 34 + NULLIF ( - - COUNT ( * ), + 7 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4247
SELECT CAST( NULL AS SIGNED ) * 9 + + COUNT( - 60 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT CAST ( NULL AS INTEGER ) * 9 + + COUNT ( - 60 ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4248
SELECT - NULLIF ( + - 70, + CAST( + 1 AS SIGNED ) * + + COALESCE ( + - 68, + ( + + 61 ) + NULLIF ( - 69, + 83 ) + + - MIN( DISTINCT 41 ) + + CAST( + AVG ( - 5 ) AS SIGNED ) ) ) * 44 AS col0
----
3080

skipif mysql # not compatible
query I rowsort label-4248
SELECT - NULLIF ( + - 70, + CAST ( + 1 AS INTEGER ) * + + COALESCE ( + - 68, + ( + + 61 ) + NULLIF ( - 69, + 83 ) + + - MIN ( DISTINCT 41 ) + + CAST ( + AVG ( - 5 ) AS INTEGER ) ) ) * 44 AS col0
----
3080

query II rowsort
SELECT ALL + 72 AS col0, + ( 45 ) col0
----
72
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT ALL 99 + - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL 99 + - COUNT ( * )
----
98

query I rowsort
SELECT 83 * + 60 AS col1
----
4980

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT DISTINCT MAX( + - 63 ) * + 74 AS col2
----
-4662

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT MAX ( + - 63 ) * + 74 AS col2
----
-4662

query II rowsort
SELECT DISTINCT - 21, 69 AS col0
----
-21
69

query II rowsort
SELECT DISTINCT - + 33 AS col0, 71 * 62 AS col2
----
-33
4402

query II rowsort
SELECT + 77 - 11 AS col2, ( + 50 )
----
66
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4256
SELECT DISTINCT 56 * - + 95 * + + CAST( - 79 AS SIGNED ) * - 61 AS col0
----
-25637080

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT 56 * - + 95 * + + CAST ( - 79 AS INTEGER ) * - 61 AS col0
----
-25637080

onlyif mysql # aggregate syntax: 
query II rowsort label-4257
SELECT + 35 * + - COUNT( * ) AS col0, 78 - - 92 + - 15 - + - 60
----
-35
215

skipif mysql # not compatible
query II rowsort label-4257
SELECT + 35 * + - COUNT ( * ) AS col0, 78 - - 92 + - 15 - + - 60
----
-35
215

query I rowsort
SELECT - 44 + 30
----
-14

query II rowsort
SELECT 62 * + 59 * + 81 * 80 AS col1, - 30 AS col2
----
23703840
-30

query II rowsort
SELECT ALL - 52 AS col2, - 10 col1
----
-52
-10

query II rowsort
SELECT DISTINCT 66 AS col0, 92
----
66
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT 86 + 51 + + - COUNT( * ) AS col1
----
136

skipif mysql # not compatible
query I rowsort label-4262
SELECT 86 + 51 + + - COUNT ( * ) AS col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT 92 + - 20 - - - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-4263
SELECT 92 + - 20 - - - COUNT ( * )
----
71

query I rowsort
SELECT 2 + + + 5 AS col1
----
7

query I rowsort
SELECT 21 + - 44 * + - 88
----
3893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4266
SELECT ALL + NULLIF ( CAST( NULL AS SIGNED ), + 4 ) + - 11 - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL + NULLIF ( CAST ( NULL AS INTEGER ), + 4 ) + - 11 - 48 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4267
SELECT CAST( + 12 AS SIGNED ) * - + 14, 37 AS col0
----
-168
37

skipif mysql # not compatible
query II rowsort label-4267
SELECT CAST ( + 12 AS INTEGER ) * - + 14, 37 AS col0
----
-168
37

query I rowsort
SELECT 37 + - 61 AS col0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4269
SELECT DISTINCT + 11 DIV 21 AS col0, - 96 * - - 2 + + - NULLIF ( + CASE SUM( - 40 ) WHEN - MAX( DISTINCT - + 82 ) THEN - MAX( + 83 ) WHEN - 18 * - 64 THEN NULL END, + 72 ) + + COUNT( * ) + - 93 * + COUNT( * ) * + 77 col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4269
SELECT DISTINCT + 11 / 21 AS col0, - 96 * - - 2 + + - NULLIF ( + CASE SUM ( - 40 ) WHEN - MAX ( DISTINCT - + 82 ) THEN - MAX ( + 83 ) WHEN - 18 * - 64 THEN NULL END, + 72 ) + + COUNT ( * ) + - 93 * + COUNT ( * ) * + 77 col1
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4270
SELECT 11 DIV 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4270
SELECT 11 / 55 AS col0
----
0

query I rowsort
SELECT DISTINCT + ( + 68 ) + + 79 AS col0
----
147

query I rowsort
SELECT ALL + 39 + + 95 * + - 13 + - 19 * 59
----
-2317

query I rowsort
SELECT - NULLIF ( + + 20, 91 ) * + 18 * - 36 * - 22 + + 8 + - 26 + 22
----
-285116

query I rowsort
SELECT DISTINCT 59 * + ( - ( + 43 ) ) AS col0
----
-2537

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT DISTINCT - SUM( + 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT - SUM ( + 90 )
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-4276
SELECT ALL - 94 + + 90, + COUNT( * ) * - - NULLIF ( + 92, + 77 ) AS col1
----
-4
92

skipif mysql # not compatible
query II rowsort label-4276
SELECT ALL - 94 + + 90, + COUNT ( * ) * - - NULLIF ( + 92, + 77 ) AS col1
----
-4
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4277
SELECT - 42 * 26 * 36 + + - 31 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT - 42 * 26 * 36 + + - 31 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 2 * 24 * + 43 col1
----
2064

query I rowsort
SELECT ALL - - 33 - + 55 col1
----
-22

query I rowsort
SELECT DISTINCT + + 70 * 70
----
4900

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT 0 * + NULLIF ( - - 34, - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4281
SELECT 0 * + NULLIF ( - - 34, - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4282
SELECT + - MAX( ALL + - 17 ), + 82 DIV - 20 col0
----
17
-4

skipif mysql # not compatible
query II rowsort label-4282
SELECT + - MAX ( ALL + - 17 ), + 82 / - 20 col0
----
17
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT CASE 60 WHEN - - 65 * - 46 * - NULLIF ( + 59, + 59 ) THEN NULL WHEN + 87 THEN + COUNT( * ) * + + 59 - 39 WHEN COUNT( * ) THEN NULL END * 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT CASE 60 WHEN - - 65 * - 46 * - NULLIF ( + 59, + 59 ) THEN NULL WHEN + 87 THEN + COUNT ( * ) * + + 59 - 39 WHEN COUNT ( * ) THEN NULL END * 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT 15 * 15 * + COUNT( * ) * - 86 * + 37 + - + ( - CASE + + 74 WHEN + CASE + + AVG ( ALL - 29 ) WHEN 67 THEN + COUNT( * ) WHEN + 21 * - 81 + 73 THEN NULL ELSE NULL END THEN + - 84 * + - AVG ( DISTINCT - 84 ) - - 10 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT 15 * 15 * + COUNT ( * ) * - 86 * + 37 + - + ( - CASE + + 74 WHEN + CASE + + AVG ( ALL - 29 ) WHEN 67 THEN + COUNT ( * ) WHEN + 21 * - 81 + 73 THEN NULL ELSE NULL END THEN + - 84 * + - AVG ( DISTINCT - 84 ) - - 10 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4285
SELECT ALL + 35 + CASE + - 41 WHEN - - 89 * 77 - + 18 * 23 + + 20 + - CAST( NULL AS SIGNED ) / + 89 THEN NULL WHEN - + 63 THEN NULL WHEN + + COUNT( * ) THEN NULL ELSE + 30 END + + + SUM( DISTINCT + 89 ) + - 87 + - 12 * + NULLIF ( + + ( 80 ), NULLIF ( + - 71, - CASE 43 WHEN 61 + - 27 THEN - - 22 - + 17 + + 27 * - SUM( - 52 ) * + COALESCE ( - 85, + 23, MAX( + ( 14 ) ) ) + + 6 / + 52 WHEN 39 / + 10 THEN NULL END ) )
----
-893

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL + 35 + CASE + - 41 WHEN - - 89 * 77 - + 18 * 23 + + 20 + - CAST ( NULL AS INTEGER ) / + 89 THEN NULL WHEN - + 63 THEN NULL WHEN + + COUNT ( * ) THEN NULL ELSE + 30 END + + + SUM ( DISTINCT + 89 ) + - 87 + - 12 * + NULLIF ( + + ( 80 ), NULLIF ( + - 71, - CASE 43 WHEN 61 + - 27 THEN - - 22 - + 17 + + 27 * - SUM ( - 52 ) * + COALESCE ( - 85, + 23, MAX ( + ( 14 ) ) ) + + 6 / + 52 WHEN 39 / + 10 THEN NULL END ) )
----
-893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4286
SELECT - MIN( ALL + ( - CAST( + 39 AS SIGNED ) ) )
----
39

skipif mysql # not compatible
query I rowsort label-4286
SELECT - MIN ( ALL + ( - CAST ( + 39 AS INTEGER ) ) )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4287
SELECT ALL 47 * CASE - CAST( NULL AS SIGNED ) WHEN 37 THEN - 55 ELSE NULL END / + 86 * + COALESCE ( - COUNT( * ), 23 * - 5 / + + 59 + 41 + - - 19 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL 47 * CASE - CAST ( NULL AS INTEGER ) WHEN 37 THEN - 55 ELSE NULL END / + 86 * + COALESCE ( - COUNT ( * ), 23 * - 5 / + + 59 + 41 + - - 19 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT ALL 8 + - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL 8 + - COUNT ( * )
----
7

query II rowsort
SELECT ALL 19 AS col0, + ( 91 ) * - + 70 * - 48
----
19
305760

query I rowsort
SELECT ( 61 ) * 34
----
2074

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL COUNT( * ) + + ( 98 ) + - 79 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL COUNT ( * ) + + ( 98 ) + - 79 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT 92 - + 42 + - - 16 * + 35 * COUNT( * ) col2
----
610

skipif mysql # not compatible
query I rowsort label-4292
SELECT 92 - + 42 + - - 16 * + 35 * COUNT ( * ) col2
----
610

query II rowsort
SELECT ALL 30 col1, - 56 * + 40 AS col2
----
30
-2240

query I rowsort
SELECT ( + 4 ) - 40 + 13 * - 61 AS col2
----
-829

query II rowsort
SELECT ALL 41 col0, 87 AS col2
----
41
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL + 7 + - COUNT( + 10 )
----
6

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL + 7 + - COUNT ( + 10 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4297
SELECT ALL ( - CAST( NULL AS SIGNED ) ) / + MAX( + 45 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) / + MAX ( + 45 ) AS col1
----
NULL

query I rowsort
SELECT - 6 - + + 10 AS col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT - 82 DIV 52 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4299
SELECT - 82 / 52 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT ALL 88 - - MIN( ALL 83 )
----
171

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL 88 - - MIN ( ALL 83 )
----
171

query I rowsort
SELECT - 0 * + 83
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4302
SELECT - 39 * - 32 + + 46 - + ( + 53 ) + + 17 * ( - 82 ) DIV + 92 + - - 63 * + - CAST( + CAST( - CAST( + 7 AS SIGNED ) AS SIGNED ) AS SIGNED ) AS col2, + 81 * + + 63 * + + COUNT( * )
----
1667
5103

skipif mysql # not compatible
query II rowsort label-4302
SELECT - 39 * - 32 + + 46 - + ( + 53 ) + + 17 * ( - 82 ) / + 92 + - - 63 * + - CAST ( + CAST ( - CAST ( + 7 AS INTEGER ) AS INTEGER ) AS INTEGER ) AS col2, + 81 * + + 63 * + + COUNT ( * )
----
1667
5103

query I rowsort
SELECT COALESCE ( 33, + 31 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT ALL + COUNT( + 36 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL + COUNT ( + 36 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4305
SELECT 44 DIV + 83 + + 93 - + - 5 * - - 76 AS col2
----
473

skipif mysql # not compatible
query I rowsort label-4305
SELECT 44 / + 83 + + 93 - + - 5 * - - 76 AS col2
----
473

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4306
SELECT - + COALESCE ( ( - + ( - - SUM( - 98 ) ) ), + 6 + - 63 + - - NULLIF ( - - ( - + 57 ), COALESCE ( COUNT( - 21 ), + 70 ) ) - - 92 ) DIV - COUNT( * ) col1
----
98

skipif mysql # not compatible
query I rowsort label-4306
SELECT - + COALESCE ( ( - + ( - - SUM ( - 98 ) ) ), + 6 + - 63 + - - NULLIF ( - - ( - + 57 ), COALESCE ( COUNT ( - 21 ), + 70 ) ) - - 92 ) / - COUNT ( * ) col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4307
SELECT - - CAST( NULL AS SIGNED ) + - 36 + + - 57 - + - 78 + + CAST( NULL AS SIGNED ) + - 6 / 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4307
SELECT - - CAST ( NULL AS INTEGER ) + - 36 + + - 57 - + - 78 + + CAST ( NULL AS INTEGER ) + - 6 / 95 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4308
SELECT DISTINCT - 15 DIV 28 * + 84 * + - COUNT( * ) - - 65 col0
----
65

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT - 15 / 28 * + 84 * + - COUNT ( * ) - - 65 col0
----
65

query II rowsort
SELECT ALL + 43 AS col1, 38 + - 69 * - + 48 AS col2
----
43
3350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4310
SELECT ALL - 71 DIV - COUNT( * ) DIV + + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL - 71 / - COUNT ( * ) / + + COUNT ( * )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT + + 85 * - CAST( ( - 42 ) AS SIGNED ) + 54 col1
----
3624

skipif mysql # not compatible
query I rowsort label-4311
SELECT + + 85 * - CAST ( ( - 42 ) AS INTEGER ) + 54 col1
----
3624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4312
SELECT ALL + + CAST( - - 49 AS SIGNED ) * - - ( - SUM( - 20 ) ) * - - 37 / + 20 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL + + CAST ( - - 49 AS INTEGER ) * - - ( - SUM ( - 20 ) ) * - - 37 / + 20 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4313
SELECT DISTINCT + CAST( + 51 AS SIGNED ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT + CAST ( + 51 AS INTEGER ) AS col1
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-4314
SELECT - - 99 - + 68 DIV - 98 + 62 + - 82 * + 11 * - 5 - - 23 AS col0, + 33 + - + 91 + - ( 48 ) * 71
----
4694
-3466

skipif mysql # not compatible
query II rowsort label-4314
SELECT - - 99 - + 68 / - 98 + 62 + - 82 * + 11 * - 5 - - 23 AS col0, + 33 + - + 91 + - ( 48 ) * 71
----
4694
-3466

query I rowsort
SELECT DISTINCT + ( - CASE - 22 WHEN 79 * + 33 THEN - 0 + + 2 * - + 50 - - - 93 WHEN - 46 - - 67 THEN NULL END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4316
SELECT - - 24 + + + 57 DIV + 9 - + + 79 * 32 * 58 col2
----
-146594

skipif mysql # not compatible
query I rowsort label-4316
SELECT - - 24 + + + 57 / + 9 - + + 79 * 32 * 58 col2
----
-146594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4317
SELECT 87, 68 * - CAST( 12 AS SIGNED ) * - COUNT( ALL - + 58 ) - + + 39 AS col1
----
87
777

skipif mysql # not compatible
query II rowsort label-4317
SELECT 87, 68 * - CAST ( 12 AS INTEGER ) * - COUNT ( ALL - + 58 ) - + + 39 AS col1
----
87
777

query I rowsort
SELECT ALL 1 * 83 + + 65 AS col0
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4319
SELECT DISTINCT - 69 * + 3 DIV - - COUNT( * ) + - COUNT( * ) AS col1
----
-208

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT - 69 * + 3 / - - COUNT ( * ) + - COUNT ( * ) AS col1
----
-208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4320
SELECT ALL 19 DIV + COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL 19 / + COUNT ( * ) AS col1
----
19

query I rowsort
SELECT + 96 * - 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT ALL 49 * 11 + 8 * + + 66 + - - ( + COUNT( * ) ) * + CASE 76 WHEN 12 + NULLIF ( 2, + - MIN( DISTINCT - - 71 ) + + COUNT( * ) ) THEN NULL WHEN COUNT( 41 ) + - 92 THEN + 71 * - + 7 + 58 - + 4 * + 83 - + + CASE - COUNT( * ) WHEN - - 92 / - 79 + + + ( + - COUNT( * ) ) * 59 + + 76 + + + COUNT( * ) + ( - 68 ) THEN - ( - 84 ) ELSE - COUNT( * ) END END / + 72 + + CASE - 47 WHEN - 94 * + 2 THEN 12 * 6 + MAX( ( - 65 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL 49 * 11 + 8 * + + 66 + - - ( + COUNT ( * ) ) * + CASE 76 WHEN 12 + NULLIF ( 2, + - MIN ( DISTINCT - - 71 ) + + COUNT ( * ) ) THEN NULL WHEN COUNT ( 41 ) + - 92 THEN + 71 * - + 7 + 58 - + 4 * + 83 - + + CASE - COUNT ( * ) WHEN - - 92 / - 79 + + + ( + - COUNT ( * ) ) * 59 + + 76 + + + COUNT ( * ) + ( - 68 ) THEN - ( - 84 ) ELSE - COUNT ( * ) END END / + 72 + + CASE - 47 WHEN - 94 * + 2 THEN 12 * 6 + MAX ( ( - 65 ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4323
SELECT 1 * + 19 / + - CASE 66 WHEN 55 THEN NULL WHEN + NULLIF ( + COUNT( * ), 2 ) THEN + 82 WHEN - COUNT( * ) THEN NULL END * - - 35 * 75 * - MIN( - 93 ) * - - ( + - NULLIF ( - + CASE - CAST( + 74 AS SIGNED ) WHEN - - 36 THEN - 64 + NULLIF ( 39, - 5 ) * - 14 END, - + CASE - + 88 WHEN + 0 + + 14 THEN NULL WHEN + - 72 THEN + 61 ELSE NULL END / - - 14 ) ) + + - 73 * - 37 * + COUNT( * ) - 58 + + 46 * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4323
SELECT 1 * + 19 / + - CASE 66 WHEN 55 THEN NULL WHEN + NULLIF ( + COUNT ( * ), 2 ) THEN + 82 WHEN - COUNT ( * ) THEN NULL END * - - 35 * 75 * - MIN ( - 93 ) * - - ( + - NULLIF ( - + CASE - CAST ( + 74 AS INTEGER ) WHEN - - 36 THEN - 64 + NULLIF ( 39, - 5 ) * - 14 END, - + CASE - + 88 WHEN + 0 + + 14 THEN NULL WHEN + - 72 THEN + 61 ELSE NULL END / - - 14 ) ) + + - 73 * - 37 * + COUNT ( * ) - 58 + + 46 * 43
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4324
SELECT AVG ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT AVG ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT - ( 93 ) + COUNT( * ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4325
SELECT - ( 93 ) + COUNT ( * ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT ALL 54 * 82 * - COUNT( * ) AS col1
----
-4428

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL 54 * 82 * - COUNT ( * ) AS col1
----
-4428

query I rowsort
SELECT + 36 + 97
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4328
SELECT + 30 + - + CAST( 2 AS SIGNED ) - - 39 + + + 84 * + 0 * + 5 + - + 31 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4328
SELECT + 30 + - + CAST ( 2 AS INTEGER ) - - 39 + + + 84 * + 0 * + 5 + - + 31 AS col2
----
36

query I rowsort
SELECT ALL ( - - 76 ) * + 42
----
3192

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT + 82 + - + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-4330
SELECT + 82 + - + COUNT ( * )
----
81

query I rowsort
SELECT + 59 + NULLIF ( - - 73, + + 5 ) AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT + 70 * + + COUNT( * ) * 43
----
3010

skipif mysql # not compatible
query I rowsort label-4332
SELECT + 70 * + + COUNT ( * ) * 43
----
3010

query I rowsort
SELECT + 76 * - 36 * - 27 AS col1
----
73872

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT - SUM( ALL + 72 ) + - 90
----
-162

skipif mysql # not compatible
query I rowsort label-4334
SELECT - SUM ( ALL + 72 ) + - 90
----
-162

query I rowsort
SELECT ALL 38 * - 61 AS col0
----
-2318

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT + ( - ( + 32 ) ) * - 16 * - COUNT( * ) * 64
----
-32768

skipif mysql # not compatible
query I rowsort label-4336
SELECT + ( - ( + 32 ) ) * - 16 * - COUNT ( * ) * 64
----
-32768

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT - - COUNT( * ) + - + ( + - 49 )
----
50

skipif mysql # not compatible
query I rowsort label-4337
SELECT - - COUNT ( * ) + - + ( + - 49 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT + + COUNT( - 48 )
----
1

skipif mysql # not compatible
query I rowsort label-4338
SELECT + + COUNT ( - 48 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT + 32 * 97 + + + 66 + - 9 + + 5 + + CASE - + 90 WHEN + - 11 + + 91 THEN NULL ELSE NULLIF ( - COUNT( * ), + 30 + + COALESCE ( 22, 38 ) - + + 35 * - + 0 - - COUNT( * ) * - ( + 16 ) * + COUNT( * ) * + 20 ) + - + 87 - - COUNT( * ) END + + + 16 * SUM( - - 13 ) * - 88 + - 28 + - + 67
----
-15320

skipif mysql # not compatible
query I rowsort label-4339
SELECT + 32 * 97 + + + 66 + - 9 + + 5 + + CASE - + 90 WHEN + - 11 + + 91 THEN NULL ELSE NULLIF ( - COUNT ( * ), + 30 + + COALESCE ( 22, 38 ) - + + 35 * - + 0 - - COUNT ( * ) * - ( + 16 ) * + COUNT ( * ) * + 20 ) + - + 87 - - COUNT ( * ) END + + + 16 * SUM ( - - 13 ) * - 88 + - 28 + - + 67
----
-15320

query I rowsort
SELECT + - 70 - - ( + 87 ) AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4341
SELECT + 45 DIV 68 * + 23 + - 85 + 53 - COUNT( * ) - 1 + MAX( ALL - - 58 ) + - COUNT( * ) * + NULLIF ( + 34, - - ( CAST( + - COALESCE ( + MIN( DISTINCT + + 85 ), 51, - 57 * 62 ) AS SIGNED ) ) ) * - 24 * 2 + + 39 * + 14 + + 88
----
2290

skipif mysql # not compatible
query I rowsort label-4341
SELECT + 45 / 68 * + 23 + - 85 + 53 - COUNT ( * ) - 1 + MAX ( ALL - - 58 ) + - COUNT ( * ) * + NULLIF ( + 34, - - ( CAST ( + - COALESCE ( + MIN ( DISTINCT + + 85 ), 51, - 57 * 62 ) AS INTEGER ) ) ) * - 24 * 2 + + 39 * + 14 + + 88
----
2290

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT - COUNT( * ) * + - 60 + - + 48
----
12

skipif mysql # not compatible
query I rowsort label-4342
SELECT - COUNT ( * ) * + - 60 + - + 48
----
12

query I rowsort
SELECT + 24 * + 83 AS col0
----
1992

onlyif mysql # DIV for integer division: 
query I rowsort label-4344
SELECT ALL - 9 DIV + 59 * - + 31
----
0

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL - 9 / + 59 * - + 31
----
0

query I rowsort
SELECT DISTINCT + ( + 55 ) * 21 AS col0
----
1155

query I rowsort
SELECT 13 * - 93 + - 2 * 85 + + + 96 AS col2
----
-1283

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT ALL - 80 * 6 + ( + COUNT( DISTINCT - - 7 ) )
----
-479

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL - 80 * 6 + ( + COUNT ( DISTINCT - - 7 ) )
----
-479

onlyif mysql # aggregate syntax: 
query II rowsort label-4348
SELECT ( - 74 ) AS col1, COUNT( * ) AS col1
----
-74
1

skipif mysql # not compatible
query II rowsort label-4348
SELECT ( - 74 ) AS col1, COUNT ( * ) AS col1
----
-74
1

query I rowsort
SELECT - 84 * + 17
----
-1428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4350
SELECT ALL + CASE + - ( + 84 ) WHEN CAST( - 37 AS SIGNED ) THEN - 55 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL + CASE + - ( + 84 ) WHEN CAST ( - 37 AS INTEGER ) THEN - 55 END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4351
SELECT DISTINCT - 19 * + 62 + + - COALESCE ( COALESCE ( + - 24, + 47 * + 91 DIV - + COUNT( * ) * + - 69 - + 68 + - 73 - - 67 + + + 57 * - 21 + - - 62 DIV 70 DIV - 53 * - + 28 * + COUNT( * ) ), + + ( + CAST( NULL AS SIGNED ) ) ) AS col1
----
-1154

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT - 19 * + 62 + + - COALESCE ( COALESCE ( + - 24, + 47 * + 91 / - + COUNT ( * ) * + - 69 - + 68 + - 73 - - 67 + + + 57 * - 21 + - - 62 / 70 / - 53 * - + 28 * + COUNT ( * ) ), + + ( + CAST ( NULL AS INTEGER ) ) ) AS col1
----
-1154

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ALL - COUNT( * ) - + 5 - - 39 * - 0 + - 90 + - 1 + + 14 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL - COUNT ( * ) - + 5 - - 39 * - 0 + - 90 + - 1 + + 14 AS col2
----
-83

query I rowsort
SELECT 17 * + + 27 AS col2
----
459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4354
SELECT DISTINCT - COUNT( * ) * - - 3 * 9 * - COALESCE ( - 48, 27, - CAST( + + 37 AS SIGNED ) DIV + - 99 ) * + CAST( 29 AS SIGNED ) AS col1
----
-37584

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT - COUNT ( * ) * - - 3 * 9 * - COALESCE ( - 48, 27, - CAST ( + + 37 AS INTEGER ) / + - 99 ) * + CAST ( 29 AS INTEGER ) AS col1
----
-37584

onlyif mysql # aggregate syntax: 
query II rowsort label-4355
SELECT DISTINCT 83 AS col2, + 29 * COUNT( * )
----
83
29

skipif mysql # not compatible
query II rowsort label-4355
SELECT DISTINCT 83 AS col2, + 29 * COUNT ( * )
----
83
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4356
SELECT DISTINCT 85 AS col0, + COUNT( * ) DIV - 88 * - ( 87 ) + + + 24 AS col1
----
85
24

skipif mysql # not compatible
query II rowsort label-4356
SELECT DISTINCT 85 AS col0, + COUNT ( * ) / - 88 * - ( 87 ) + + + 24 AS col1
----
85
24

query I rowsort
SELECT ALL - 7 - + 99
----
-106

onlyif mysql # DIV for integer division: 
query II rowsort label-4358
SELECT 19 AS col0, 94 DIV - 98 + - 83
----
19
-83

skipif mysql # not compatible
query II rowsort label-4358
SELECT 19 AS col0, 94 / - 98 + - 83
----
19
-83

query I rowsort
SELECT 26 - - + ( - + 83 )
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4360
SELECT SUM( - + 62 ) DIV 80 + - 75
----
-75

skipif mysql # not compatible
query I rowsort label-4360
SELECT SUM ( - + 62 ) / 80 + - 75
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4361
SELECT 36 - + + CAST( NULL AS SIGNED ) * - 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4361
SELECT 36 - + + CAST ( NULL AS INTEGER ) * - 80 AS col0
----
NULL

query I rowsort
SELECT 45 * - 79 AS col1
----
-3555

query I rowsort
SELECT ALL 35 * 57
----
1995

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4364
SELECT MIN( + 9 ) DIV - + 34 + + 74
----
74

skipif mysql # not compatible
query I rowsort label-4364
SELECT MIN ( + 9 ) / - + 34 + + 74
----
74

query II rowsort
SELECT ALL 11 AS col0, + 10 * + 58
----
11
580

onlyif mysql # DIV for integer division: 
query I rowsort label-4366
SELECT ALL COALESCE ( 47, 10, 43 + 45 DIV + ( 47 ) )
----
47

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL COALESCE ( 47, 10, 43 + 45 / + ( 47 ) )
----
47

query I rowsort
SELECT DISTINCT - + 76 * - 20 AS col1
----
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL + ( - COUNT( * ) ) * + ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL + ( - COUNT ( * ) ) * + ( COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4369
SELECT DISTINCT CAST( + COUNT( ALL + 50 ) AS SIGNED ) * + ( - COUNT( * ) ) * + COUNT( * ) + + 52 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT CAST ( + COUNT ( ALL + 50 ) AS INTEGER ) * + ( - COUNT ( * ) ) * + COUNT ( * ) + + 52 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT 75 - COUNT( * ) + - + MIN( + 20 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4370
SELECT 75 - COUNT ( * ) + - + MIN ( + 20 ) AS col2
----
54

query I rowsort
SELECT ALL 11 + 66 AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4372
SELECT 93 * + + CASE + 63 WHEN + 77 + + COUNT( * ) + + CAST( + - 9 AS SIGNED ) + - 73 + 78 + - - CAST( NULL AS SIGNED ) * - ( 78 ) * + 51 THEN ( - 14 ) ELSE NULL END - + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4372
SELECT 93 * + + CASE + 63 WHEN + 77 + + COUNT ( * ) + + CAST ( + - 9 AS INTEGER ) + - 73 + 78 + - - CAST ( NULL AS INTEGER ) * - ( 78 ) * + 51 THEN ( - 14 ) ELSE NULL END - + 57 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4373
SELECT + CAST( NULL AS SIGNED ) * + ( 90 ) + - - ( - NULLIF ( + 97, 77 + + 35 + 15 + + 18 + - 23 + - 95 + + ( + + 26 ) ) ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT + CAST ( NULL AS INTEGER ) * + ( 90 ) + - - ( - NULLIF ( + 97, 77 + + 35 + 15 + + 18 + - 23 + - 95 + + ( + + 26 ) ) ) * + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT DISTINCT - 72 + + + 22 + + 84 * + - COUNT( - 45 ) col1
----
-134

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT - 72 + + + 22 + + 84 * + - COUNT ( - 45 ) col1
----
-134

query I rowsort
SELECT ALL 77 + - 21
----
56

query I rowsort
SELECT DISTINCT - 80 * + 29 + 72
----
-2248

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT DISTINCT SUM( DISTINCT - 88 ) + 79 * + + 13 AS col0
----
939

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT SUM ( DISTINCT - 88 ) + 79 * + + 13 AS col0
----
939

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT ALL - + COUNT( * ) * + 22 * - 97 - 8
----
2126

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL - + COUNT ( * ) * + 22 * - 97 - 8
----
2126

query I rowsort
SELECT + 44 * + 56 * 37 AS col1
----
91168

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT ALL - 36 + - - COUNT( * ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL - 36 + - - COUNT ( * ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT DISTINCT COUNT( * ) * + 96 + 49 + ( + + 59 )
----
204

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT COUNT ( * ) * + 96 + 49 + ( + + 59 )
----
204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4382
SELECT + COALESCE ( CAST( NULL AS SIGNED ), + CAST( 96 AS SIGNED ) ) * - + COUNT( * ) col2
----
-96

skipif mysql # not compatible
query I rowsort label-4382
SELECT + COALESCE ( CAST ( NULL AS INTEGER ), + CAST ( 96 AS INTEGER ) ) * - + COUNT ( * ) col2
----
-96

query I rowsort
SELECT ALL 41 * - 17 AS col0
----
-697

query I rowsort
SELECT - 10 + - 91 AS col2
----
-101

query I rowsort
SELECT 31 * + 67 AS col0
----
2077

query I rowsort
SELECT 1 + 99 col0
----
100

query I rowsort
SELECT DISTINCT 84 * + 69
----
5796

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4388
SELECT ( 30 ) DIV - MAX( - 99 ) + MIN( DISTINCT 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4388
SELECT ( 30 ) / - MAX ( - 99 ) + MIN ( DISTINCT 94 ) AS col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4389
SELECT DISTINCT + ( 85 ) DIV - 21 + - 77
----
-81

skipif mysql # not compatible
query I rowsort label-4389
SELECT DISTINCT + ( 85 ) / - 21 + - 77
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT 75 * - - 82 - COUNT( * ) + - 66 * - 74 + + CASE - + 71 WHEN + 34 + 20 THEN NULL WHEN + 12 + + 48 THEN - 78 WHEN + + 15 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT 75 * - - 82 - COUNT ( * ) + - 66 * - 74 + + CASE - + 71 WHEN + 34 + 20 THEN NULL WHEN + 12 + + 48 THEN - 78 WHEN + + 15 THEN NULL ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT ALL - 62, ( - 83 ) AS col2
----
-62
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4392
SELECT ALL + 48 * - 40 * 27 DIV - + 60 AS col2
----
864

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL + 48 * - 40 * 27 / - + 60 AS col2
----
864

query I rowsort
SELECT 36 + + - 35
----
1

query I rowsort
SELECT 52 * + 88
----
4576

query II rowsort
SELECT - 88 col2, 75 AS col1
----
-88
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4396
SELECT ALL 89 AS col0, 23 + - COUNT( * )
----
89
22

skipif mysql # not compatible
query II rowsort label-4396
SELECT ALL 89 AS col0, 23 + - COUNT ( * )
----
89
22

query I rowsort
SELECT 36 + - 54 AS col0
----
-18

query I rowsort
SELECT 71 - + 84 AS col0
----
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4399
SELECT ALL - 76 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL - 76 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT 42 * - COUNT( * ) * - + CASE + ( 3 ) WHEN 38 * - - NULLIF ( ( 84 ), - 63 ) THEN 65 * 90 + - 96 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT 42 * - COUNT ( * ) * - + CASE + ( 3 ) WHEN 38 * - - NULLIF ( ( 84 ), - 63 ) THEN 65 * 90 + - 96 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT ALL + 85 + + + 22 + + COUNT( ALL 63 ) AS col0
----
108

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL + 85 + + + 22 + + COUNT ( ALL 63 ) AS col0
----
108

query II rowsort
SELECT DISTINCT 6 AS col0, + 14
----
6
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4403
SELECT ALL + 76 * + 40 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL + 76 * + 40 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT ALL - SUM( - - 43 ) + + 41
----
-2

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL - SUM ( - - 43 ) + + 41
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4405
SELECT 71 + - + 61 - + COUNT( * ) DIV + + 97 * ( + 55 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4405
SELECT 71 + - + 61 - + COUNT ( * ) / + + 97 * ( + 55 ) AS col0
----
10

query II rowsort
SELECT DISTINCT + 56 AS col0, 88 * + 7
----
56
616

query II rowsort
SELECT + 34 AS col2, - 65 AS col1
----
34
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4408
SELECT - 83 * - + 7 + - 51 + + - SUM( - + ( - CAST( NULL AS SIGNED ) ) ) - - - 16 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4408
SELECT - 83 * - + 7 + - 51 + + - SUM ( - + ( - CAST ( NULL AS INTEGER ) ) ) - - - 16 col1
----
NULL

query I rowsort
SELECT - ( - - 20 ) + + 8 AS col1
----
-12

query I rowsort
SELECT ALL + 43 * + 19 AS col0
----
817

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT + COALESCE ( MIN( - 92 ), + - 10 )
----
-92

skipif mysql # not compatible
query I rowsort label-4411
SELECT + COALESCE ( MIN ( - 92 ), + - 10 )
----
-92

query I rowsort
SELECT ALL + ( + 96 ) + - - 77 AS col2
----
173

query I rowsort
SELECT ALL - 73 + + ( + 65 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL + SUM( ALL + + 1 ) + - 67 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL + SUM ( ALL + + 1 ) + - 67 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT DISTINCT + 79 * + COUNT( * ) + - - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT + 79 * + COUNT ( * ) + - - COUNT ( * )
----
80

query I rowsort
SELECT + ( + 14 ) * - + 10
----
-140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4417
SELECT DISTINCT - + NULLIF ( CAST( - 42 AS SIGNED ), COUNT( * ) + - + 4 )
----
42

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT - + NULLIF ( CAST ( - 42 AS INTEGER ), COUNT ( * ) + - + 4 )
----
42

query I rowsort
SELECT + 85 * + 42 - - 1 + - ( + 91 )
----
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT - ( + 4 ) - - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-4419
SELECT - ( + 4 ) - - COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT - 89 * ( COUNT( * ) ) + MAX( DISTINCT - + 8 ) * - 56
----
359

skipif mysql # not compatible
query I rowsort label-4420
SELECT - 89 * ( COUNT ( * ) ) + MAX ( DISTINCT - + 8 ) * - 56
----
359

onlyif mysql # aggregate syntax: 
query II rowsort label-4421
SELECT DISTINCT + 78 * - 87 * + + 73 + ( 36 ) - + - COUNT( * ) AS col0, - 48 AS col2
----
-495341
-48

skipif mysql # not compatible
query II rowsort label-4421
SELECT DISTINCT + 78 * - 87 * + + 73 + ( 36 ) - + - COUNT ( * ) AS col0, - 48 AS col2
----
-495341
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4422
SELECT ALL + + CAST( - + 84 AS SIGNED ) col1, + 1 AS col2
----
-84
1

skipif mysql # not compatible
query II rowsort label-4422
SELECT ALL + + CAST ( - + 84 AS INTEGER ) col1, + 1 AS col2
----
-84
1

query I rowsort
SELECT + 13 * + ( 53 ) AS col0
----
689

query I rowsort
SELECT ALL ( + 29 ) * - - 39
----
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT - 5 * - COUNT( DISTINCT - + 96 ) + - 26
----
-21

skipif mysql # not compatible
query I rowsort label-4425
SELECT - 5 * - COUNT ( DISTINCT - + 96 ) + - 26
----
-21

query I rowsort
SELECT 80 * 38 * - 98 + - 66 * 36 AS col0
----
-300296

query I rowsort
SELECT ALL ( + 24 ) * - - 99 AS col0
----
2376

query I rowsort
SELECT + 77 * - 27 col1
----
-2079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4429
SELECT ALL ( - 98 ) * - + 60 * NULLIF ( - COUNT( * ), - 33 ) * + + 53 + + CAST( NULL AS DECIMAL ) + + + COALESCE ( 24, - CASE - 64 WHEN - 12 THEN ( - - 54 ) * - 33 WHEN COUNT( * ) - 70 - 16 THEN - 76 * - CAST( NULL AS SIGNED ) ELSE + 78 * 33 END + - CAST( NULL AS SIGNED ) ) + - 68 * - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL ( - 98 ) * - + 60 * NULLIF ( - COUNT ( * ), - 33 ) * + + 53 + + CAST ( NULL AS REAL ) + + + COALESCE ( 24, - CASE - 64 WHEN - 12 THEN ( - - 54 ) * - 33 WHEN COUNT ( * ) - 70 - 16 THEN - 76 * - CAST ( NULL AS INTEGER ) ELSE + 78 * 33 END + - CAST ( NULL AS INTEGER ) ) + - 68 * - 73
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4430
SELECT + COUNT( * ) DIV 4 * - - 2 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4430
SELECT + COUNT ( * ) / 4 * - - 2 * + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4431
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( + - 50 ) * + 68 - - COUNT( * ) / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( + - 50 ) * + 68 - - COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT + COUNT( * ) * - 96 * 17 AS col1
----
-1632

skipif mysql # not compatible
query I rowsort label-4432
SELECT + COUNT ( * ) * - 96 * 17 AS col1
----
-1632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4433
SELECT - ( CAST( - 80 AS SIGNED ) ) + + MAX( DISTINCT - 85 ) - 20 * - COUNT( * ) * + 44 AS col1
----
875

skipif mysql # not compatible
query I rowsort label-4433
SELECT - ( CAST ( - 80 AS INTEGER ) ) + + MAX ( DISTINCT - 85 ) - 20 * - COUNT ( * ) * + 44 AS col1
----
875

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4434
SELECT + AVG ( ALL - - CAST( NULL AS DECIMAL ) ) / 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4434
SELECT + AVG ( ALL - - CAST ( NULL AS REAL ) ) / 48
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4435
SELECT DISTINCT CAST( + 8 AS SIGNED ) * 26
----
208

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT CAST ( + 8 AS INTEGER ) * 26
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ALL COUNT( * ) + - 49
----
-48

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL COUNT ( * ) + - 49
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT DISTINCT - 99 + + - 87 + + ( - 65 ) * + - SUM( 78 ) * + MAX( + 70 ) + 58 AS col2
----
354772

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT - 99 + + - 87 + + ( - 65 ) * + - SUM ( 78 ) * + MAX ( + 70 ) + 58 AS col2
----
354772

onlyif mysql # DIV for integer division: 
query I rowsort label-4438
SELECT DISTINCT 58 DIV + 20
----
2

skipif mysql # not compatible
query I rowsort label-4438
SELECT DISTINCT 58 / + 20
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4439
SELECT + 64 DIV - - 46
----
1

skipif mysql # not compatible
query I rowsort label-4439
SELECT + 64 / - - 46
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4440
SELECT - 70 DIV - + CASE + COUNT( * ) WHEN + - 25 THEN - + 82 + - COALESCE ( + 48, 43 ) + - NULLIF ( - CAST( + 57 AS SIGNED ), 22 + - 66 DIV + 90 * - 83 * - - 7 ) DIV + 30 WHEN 90 * + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + COUNT( * ) - + 39 - - 34 - - + 28 + 20 + + 64 + ( - 35 ) + - + 15 THEN NULL ELSE 76 DIV + 70 + + - 60 + + 35 + + + 68 END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4440
SELECT - 70 / - + CASE + COUNT ( * ) WHEN + - 25 THEN - + 82 + - COALESCE ( + 48, 43 ) + - NULLIF ( - CAST ( + 57 AS INTEGER ), 22 + - 66 / + 90 * - 83 * - - 7 ) / + 30 WHEN 90 * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + COUNT ( * ) - + 39 - - 34 - - + 28 + 20 + + 64 + ( - 35 ) + - + 15 THEN NULL ELSE 76 / + 70 + + - 60 + + 35 + + + 68 END AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT ALL + - CASE WHEN NOT + 3 IS NOT NULL THEN 83 * - - COUNT( * ) WHEN NOT NULL <> ( 81 ) * CASE + 15 WHEN 30 - COUNT( * ) + - COALESCE ( + 93, + - 78 ) - + - MIN( ALL 11 ) + + 80 THEN - 68 * + COUNT( * ) * + 90 * - 29 + + 74 END + 84 THEN 78 END + - ( + COUNT( DISTINCT 11 ) ) * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL + - CASE WHEN NOT + 3 IS NOT NULL THEN 83 * - - COUNT ( * ) WHEN NOT NULL <> ( 81 ) * CASE + 15 WHEN 30 - COUNT ( * ) + - COALESCE ( + 93, + - 78 ) - + - MIN ( ALL 11 ) + + 80 THEN - 68 * + COUNT ( * ) * + 90 * - 29 + + 74 END + 84 THEN 78 END + - ( + COUNT ( DISTINCT 11 ) ) * + 93
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4442
SELECT + - ( + 64 ) + - - 97, + COUNT( * ) * - COUNT( * ) AS col2
----
33
-1

skipif mysql # not compatible
query II rowsort label-4442
SELECT + - ( + 64 ) + - - 97, + COUNT ( * ) * - COUNT ( * ) AS col2
----
33
-1

query I rowsort
SELECT ALL ( + 21 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4444
SELECT - - ( + 12 ) AS col0, - COUNT( * )
----
12
-1

skipif mysql # not compatible
query II rowsort label-4444
SELECT - - ( + 12 ) AS col0, - COUNT ( * )
----
12
-1

query I rowsort
SELECT ALL - + 71 + ( - + 85 )
----
-156

query I rowsort
SELECT DISTINCT + ( + - 0 ) * + 85 AS col2
----
0

query I rowsort
SELECT - 17 - + 54
----
-71

query I rowsort
SELECT + 56 * ( - - 18 )
----
1008

query I rowsort
SELECT - 30 - 38 * 1 * - - 77 - 94
----
-3050

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT ALL - + 79 - + - COUNT( + 79 ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL - + 79 - + - COUNT ( + 79 ) col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT + ( - - 61 ) * - + 67 + + + COUNT( * )
----
-4086

skipif mysql # not compatible
query I rowsort label-4451
SELECT + ( - - 61 ) * - + 67 + + + COUNT ( * )
----
-4086

onlyif mysql # aggregate syntax: 
query II rowsort label-4452
SELECT - + CASE - SUM( + 43 ) WHEN + 20 + - 74 + + - 3 - + 36 THEN NULL WHEN - ( - + 17 ) * 1 THEN + COALESCE ( + COUNT( * ), 92 * - 59 / - 95 + - 21 + - + 58 + + 35, - - ( + 68 ), + 27 / - 21 ) - + - 99 + - 78 + - - 90 + - 26 END * - + 68, - 34 AS col0
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-4452
SELECT - + CASE - SUM ( + 43 ) WHEN + 20 + - 74 + + - 3 - + 36 THEN NULL WHEN - ( - + 17 ) * 1 THEN + COALESCE ( + COUNT ( * ), 92 * - 59 / - 95 + - 21 + - + 58 + + 35, - - ( + 68 ), + 27 / - 21 ) - + - 99 + - 78 + - - 90 + - 26 END * - + 68, - 34 AS col0
----
NULL
-34

query I rowsort
SELECT + - ( + + 56 )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4454
SELECT - + 2 / + 6 + + - CAST( NULL AS SIGNED ) + NULLIF ( 17, - 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT - + 2 / + 6 + + - CAST ( NULL AS INTEGER ) + NULLIF ( 17, - 33 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT - 87 * - 57 - - MAX( + 44 ) AS col0
----
5003

skipif mysql # not compatible
query I rowsort label-4455
SELECT - 87 * - 57 - - MAX ( + 44 ) AS col0
----
5003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4456
SELECT DISTINCT - + 0 / COUNT( * ) / + 87 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT - + 0 / COUNT ( * ) / + 87 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4457
SELECT DISTINCT + COUNT( ALL + 21 ) AS col1, - ( + 95 )
----
1
-95

skipif mysql # not compatible
query II rowsort label-4457
SELECT DISTINCT + COUNT ( ALL + 21 ) AS col1, - ( + 95 )
----
1
-95

query I rowsort
SELECT DISTINCT ( - - ( + 36 ) ) * + + 50
----
1800

query I rowsort
SELECT - 90 * - - ( - 48 ) col1
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT DISTINCT - COUNT( DISTINCT + 87 ) * - - 13 + + + 14
----
1

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT - COUNT ( DISTINCT + 87 ) * - - 13 + + + 14
----
1

query II rowsort
SELECT DISTINCT + 7, 42 AS col2
----
7
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4462
SELECT 12 DIV - 65 + - MIN( - + 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-4462
SELECT 12 / - 65 + - MIN ( - + 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT + MAX( DISTINCT + 32 ) * + 90
----
2880

skipif mysql # not compatible
query I rowsort label-4463
SELECT + MAX ( DISTINCT + 32 ) * + 90
----
2880

query I rowsort
SELECT - 71 + 83 + 14 * 58 * 50 AS col0
----
40612

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT + ( + ( - COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4465
SELECT + ( + ( - COUNT ( * ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT - 87 * - 52 + + COUNT( * ) + - COUNT( 46 )
----
4524

skipif mysql # not compatible
query I rowsort label-4466
SELECT - 87 * - 52 + + COUNT ( * ) + - COUNT ( 46 )
----
4524

query II rowsort
SELECT ALL - 0 * - + 84 + NULLIF ( COALESCE ( + 45, - + 79, - - 85 ), 30 / + + 32 - ( - 61 ) ), + 97 col2
----
45
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT DISTINCT + COUNT( 93 )
----
1

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT + COUNT ( 93 )
----
1

query I rowsort
SELECT + 18 - + 6
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT DISTINCT 81 * + 8 + 74 * COUNT( * ) + - - COUNT( DISTINCT + 31 ) + - 50 AS col0
----
673

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT 81 * + 8 + 74 * COUNT ( * ) + - - COUNT ( DISTINCT + 31 ) + - 50 AS col0
----
673

query I rowsort
SELECT ALL ( 68 ) * - - 55 * 31 * - + 27 + - 35 AS col1
----
-3130415

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4472
SELECT - CAST( NULL AS SIGNED ) AS col0, 55 * + 21
----
NULL
1155

skipif mysql # not compatible
query II rowsort label-4472
SELECT - CAST ( NULL AS INTEGER ) AS col0, 55 * + 21
----
NULL
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT + 58 + - COUNT( * ) * + 21 * + - COUNT( * ) col2
----
79

skipif mysql # not compatible
query I rowsort label-4473
SELECT + 58 + - COUNT ( * ) * + 21 * + - COUNT ( * ) col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT + + COUNT( * ) + + - ( - 22 )
----
23

skipif mysql # not compatible
query I rowsort label-4474
SELECT + + COUNT ( * ) + + - ( - 22 )
----
23

query I rowsort
SELECT - - 6 - - + 90 AS col1
----
96

query I rowsort
SELECT ALL + 32 + - + 77 AS col2
----
-45

query I rowsort
SELECT DISTINCT + 73 + ( + - 8 ) * + 2 * 43
----
-615

query I rowsort
SELECT ALL + 51 - - + 72
----
123

query II rowsort
SELECT DISTINCT + 42 AS col2, 83 AS col0
----
42
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT DISTINCT MIN( ALL 71 )
----
71

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT MIN ( ALL 71 )
----
71

query I rowsort
SELECT - - 54 * - 59
----
-3186

onlyif mysql # DIV for integer division: 
query I rowsort label-4482
SELECT DISTINCT - 49 DIV 29 * - 26 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT - 49 / 29 * - 26 AS col2
----
26

query I rowsort
SELECT ALL - 91 - + + 62
----
-153

query I rowsort
SELECT - + NULLIF ( 79, + 49 ) col0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4485
SELECT 40 + - ( + + 70 ) DIV 69 DIV - 94 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-4485
SELECT 40 + - ( + + 70 ) / 69 / - 94 AS col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4486
SELECT + NULLIF ( - NULLIF ( + ( + NULLIF ( MAX( ALL CAST( NULL AS SIGNED ) ), 73 ) ), - + COALESCE ( + - MIN( + 92 ), 20 * + AVG ( - CAST( - 80 AS SIGNED ) ), - 44 ) / - 76 ), + MIN( DISTINCT 39 ) - + - 33 ) + - + ( + 25 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT + NULLIF ( - NULLIF ( + ( + NULLIF ( MAX ( ALL CAST ( NULL AS INTEGER ) ), 73 ) ), - + COALESCE ( + - MIN ( + 92 ), 20 * + AVG ( - CAST ( - 80 AS INTEGER ) ), - 44 ) / - 76 ), + MIN ( DISTINCT 39 ) - + - 33 ) + - + ( + 25 ) col0
----
NULL

query II rowsort
SELECT 28 AS col2, - 43
----
28
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT ALL 87 * - ( - COUNT( * ) ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL 87 * - ( - COUNT ( * ) ) AS col0
----
87

query I rowsort
SELECT ALL - 80 * - 40
----
3200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4490
SELECT 46 + - + CAST( + COUNT( * ) AS SIGNED ) + - COALESCE ( - 3, + 18 - + - COUNT( * ), + + ( + COUNT( * ) ) ) + + 1 - - 15 + 94 * 3 AS col2
----
346

skipif mysql # not compatible
query I rowsort label-4490
SELECT 46 + - + CAST ( + COUNT ( * ) AS INTEGER ) + - COALESCE ( - 3, + 18 - + - COUNT ( * ), + + ( + COUNT ( * ) ) ) + + 1 - - 15 + 94 * 3 AS col2
----
346

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT ALL - COUNT( - 16 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL - COUNT ( - 16 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - CASE - ( 43 ) WHEN + 16 THEN + - 93 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4493
SELECT 62 + + 32 + + CAST( + + COALESCE ( + + 4, - 25 ) AS SIGNED ) * + + 7 * + 12 * 15 + + COUNT( * )
----
5135

skipif mysql # not compatible
query I rowsort label-4493
SELECT 62 + + 32 + + CAST ( + + COALESCE ( + + 4, - 25 ) AS INTEGER ) * + + 7 * + 12 * 15 + + COUNT ( * )
----
5135

query I rowsort
SELECT DISTINCT - 35 + 52 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT ALL - 17 + + COUNT( * ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL - 17 + + COUNT ( * ) AS col1
----
-16

query I rowsort
SELECT 52 + 56 * + - 88 AS col1
----
-4876

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4497
SELECT DISTINCT - COUNT( * ) DIV + 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT - COUNT ( * ) / + 31 AS col1
----
0

query I rowsort
SELECT ALL + 90 + - 79 + 22 * - + 40 AS col0
----
-869

onlyif mysql # DIV for integer division: 
query II rowsort label-4499
SELECT + 58 * - 9 + - 86 * 81, NULLIF ( + 38, 19 + + 91 ) + + 60 DIV + + 48 + 81 + - 93 AS col2
----
-7488
27

skipif mysql # not compatible
query II rowsort label-4499
SELECT + 58 * - 9 + - 86 * 81, NULLIF ( + 38, 19 + + 91 ) + + 60 / + + 48 + 81 + - 93 AS col2
----
-7488
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4500
SELECT DISTINCT COUNT( * ) * - 10 * + - 6 DIV + ( - + 85 )
----
0

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT COUNT ( * ) * - 10 * + - 6 / + ( - + 85 )
----
0

query II rowsort
SELECT DISTINCT + 72 + + 14, + 88 + - 69 AS col1
----
86
19

query I rowsort
SELECT 42 * + 18
----
756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4503
SELECT ALL + 54 + + CAST( - 37 AS SIGNED ) * + 51 col1
----
-1833

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL + 54 + + CAST ( - 37 AS INTEGER ) * + 51 col1
----
-1833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT 54 * - 12 * - + 5 * + 6 * - CAST( NULL AS SIGNED ) * + 41 * ( - 68 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4504
SELECT 54 * - 12 * - + 5 * + 6 * - CAST ( NULL AS INTEGER ) * + 41 * ( - 68 ) AS col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + 36, 61 )
----
-36

query I rowsort
SELECT DISTINCT - COALESCE ( - - 57, - 62 ) col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT ALL - 64 * - 23 * - + 56 - - MAX( ALL - 45 ) - - SUM( - - 15 )
----
-82462

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL - 64 * - 23 * - + 56 - - MAX ( ALL - 45 ) - - SUM ( - - 15 )
----
-82462

query I rowsort
SELECT ALL - 95 - + 95 * + 65
----
-6270

query II rowsort
SELECT + 38 - - 77, - 16 AS col2
----
115
-16

query I rowsort
SELECT 75 * - 25
----
-1875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4511
SELECT DISTINCT + CAST( + CASE + + 33 WHEN + + ( 86 ) THEN + 16 WHEN - + 77 + - 81 + - + SUM( DISTINCT - 58 ) * + 59 + - 63 * - - 19 THEN NULL ELSE NULL END AS SIGNED ) * NULLIF ( MIN( - 24 ), + - 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT + CAST ( + CASE + + 33 WHEN + + ( 86 ) THEN + 16 WHEN - + 77 + - 81 + - + SUM ( DISTINCT - 58 ) * + 59 + - 63 * - - 19 THEN NULL ELSE NULL END AS INTEGER ) * NULLIF ( MIN ( - 24 ), + - 71 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4512
SELECT 24 + - + 71 * + 77 * + - 9, MAX( DISTINCT + 89 ) col2
----
49227
89

skipif mysql # not compatible
query II rowsort label-4512
SELECT 24 + - + 71 * + 77 * + - 9, MAX ( DISTINCT + 89 ) col2
----
49227
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4513
SELECT ALL - 59 * CAST( NULL AS DECIMAL ) * - + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL - 59 * CAST ( NULL AS REAL ) * - + 59 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( 12, + 58 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT ALL MIN( + + 73 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL MIN ( + + 73 ) AS col0
----
73

onlyif mysql # DIV for integer division: 
query II rowsort label-4516
SELECT - 88 * - + 30 AS col0, 3 DIV - 91
----
2640
0

skipif mysql # not compatible
query II rowsort label-4516
SELECT - 88 * - + 30 AS col0, 3 / - 91
----
2640
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4517
SELECT + 1 - - 62, - CAST( + CASE + 25 WHEN + + COALESCE ( - 78, + 75 + - 51 * + - 55 ) / - - 73 / 45 + + COALESCE ( + 47, 83 * - 62, + - CASE + 12 WHEN 84 / - 98 THEN - + ( - 74 ) ELSE + 25 / - - 13 - + 92 END ) THEN NULL WHEN + ( + ( - 67 ) ) THEN - - 5 * - 12 - + CAST( + 31 AS SIGNED ) * + - 82 END AS SIGNED ) AS col2
----
63
NULL

skipif mysql # not compatible
query II rowsort label-4517
SELECT + 1 - - 62, - CAST ( + CASE + 25 WHEN + + COALESCE ( - 78, + 75 + - 51 * + - 55 ) / - - 73 / 45 + + COALESCE ( + 47, 83 * - 62, + - CASE + 12 WHEN 84 / - 98 THEN - + ( - 74 ) ELSE + 25 / - - 13 - + 92 END ) THEN NULL WHEN + ( + ( - 67 ) ) THEN - - 5 * - 12 - + CAST ( + 31 AS INTEGER ) * + - 82 END AS INTEGER ) AS col2
----
63
NULL

query I rowsort
SELECT + ( 88 ) * + 99 + - ( 1 )
----
8711

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT ( + COUNT( * ) ) - + 53 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-4519
SELECT ( + COUNT ( * ) ) - + 53 AS col1
----
-52

query I rowsort
SELECT + 54 * + 7
----
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4521
SELECT 23 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT 23 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 68 AS col2, - 82 AS col1
----
68
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-4523
SELECT 30 DIV - - 3 + - 2 + + + NULLIF ( + 75, - 49 ) + - 33 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4523
SELECT 30 / - - 3 + - 2 + + + NULLIF ( + 75, - 49 ) + - 33 AS col2
----
50

query I rowsort
SELECT ALL 42 * - 5 AS col2
----
-210

query I rowsort
SELECT 36 * - 92 AS col0
----
-3312

query I rowsort
SELECT 71 * + 81
----
5751

query I rowsort
SELECT ALL - 31 * 13 AS col0
----
-403

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT MAX( ALL - 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4528
SELECT MAX ( ALL - 92 ) AS col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4529
SELECT DISTINCT CAST( 46 AS SIGNED ) + - 15
----
31

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT CAST ( 46 AS INTEGER ) + - 15
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT DISTINCT 41 + - COALESCE ( 11, ( - COALESCE ( COUNT( * ), ( + COUNT( DISTINCT 50 ) ) ) ) * + - 65 * + - ( 80 ) )
----
30

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT 41 + - COALESCE ( 11, ( - COALESCE ( COUNT ( * ), ( + COUNT ( DISTINCT 50 ) ) ) ) * + - 65 * + - ( 80 ) )
----
30

query I rowsort
SELECT ALL 0 + 92 col1
----
92

query I rowsort
SELECT ALL 59 * 85 AS col1
----
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT MAX( - 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4533
SELECT MAX ( - 4 ) AS col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT ALL - ( + NULLIF ( + 65, 69 + - 94 * - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + + 4 * AVG ( ALL - 16 ) - - 94 + 68 + + + 86 / CAST( - AVG ( DISTINCT - 78 ) AS SIGNED ) ) ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL - ( + NULLIF ( + 65, 69 + - 94 * - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 4 * AVG ( ALL - 16 ) - - 94 + 68 + + + 86 / CAST ( - AVG ( DISTINCT - 78 ) AS INTEGER ) ) ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-4535
SELECT + 98 col1, MIN( DISTINCT 32 ) AS col0
----
98
32

skipif mysql # not compatible
query II rowsort label-4535
SELECT + 98 col1, MIN ( DISTINCT 32 ) AS col0
----
98
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4536
SELECT ALL + 95 DIV + 93 * + + CASE + 60 WHEN 44 * + 86 THEN NULL ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL + 95 / + 93 * + + CASE + 60 WHEN 44 * + 86 THEN NULL ELSE - COUNT ( * ) END
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4537
SELECT + 35 * - 23 + - 19 * 47 * 72 - - 36 + + COALESCE ( 46, COUNT( * ) ) * - ( + SUM( 64 ) ) / + 81 * + SUM( DISTINCT + 79 ) / + + CAST( - CASE + + 12 WHEN + + CASE - + 29 WHEN + + 28 THEN NULL ELSE - 89 + 44 END THEN NULL ELSE COUNT( * ) END AS SIGNED ) + + + CAST( NULL AS SIGNED ) + + - 81 * - 59 * 85 * + 25 * - - ( 71 ) + - 86 * - 5 + - - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT + 35 * - 23 + - 19 * 47 * 72 - - 36 + + COALESCE ( 46, COUNT ( * ) ) * - ( + SUM ( 64 ) ) / + 81 * + SUM ( DISTINCT + 79 ) / + + CAST ( - CASE + + 12 WHEN + + CASE - + 29 WHEN + + 28 THEN NULL ELSE - 89 + 44 END THEN NULL ELSE COUNT ( * ) END AS INTEGER ) + + + CAST ( NULL AS INTEGER ) + + - 81 * - 59 * 85 * + 25 * - - ( 71 ) + - 86 * - 5 + - - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL 40 - 15 + - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL 40 - 15 + - COUNT ( * )
----
24

query I rowsort
SELECT ALL + 86 - + - 45 AS col1
----
131

query I rowsort
SELECT 77 * + - 35 AS col2
----
-2695

query I rowsort
SELECT ALL - 23 - - + 64 * + 91
----
5801

query I rowsort
SELECT 87 * + - 77 + + + 98 AS col1
----
-6601

query II rowsort
SELECT 89 * - - 28 * - 89 AS col1, 93 + ( + + 77 ) AS col2
----
-221788
170

onlyif mysql # DIV for integer division: 
query I rowsort label-4544
SELECT ALL + 15 DIV + - 7
----
-2

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL + 15 / + - 7
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT DISTINCT + + COUNT( * ) * + - 56 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT + + COUNT ( * ) * + - 56 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT ALL - 24 - - MAX( CASE - + 99 WHEN - + 70 THEN + 49 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL - 24 - - MAX ( CASE - + 99 WHEN - + 70 THEN + 49 END ) AS col1
----
NULL

query I rowsort
SELECT NULLIF ( - - 44, - 66 )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4548
SELECT - MAX( 77 ) DIV MAX( DISTINCT - ( 28 ) ) * 67 * - + 2 + COUNT( * ) + + - MAX( + - 49 ) + - 27
----
-245

skipif mysql # not compatible
query I rowsort label-4548
SELECT - MAX ( 77 ) / MAX ( DISTINCT - ( 28 ) ) * 67 * - + 2 + COUNT ( * ) + + - MAX ( + - 49 ) + - 27
----
-245

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL + SUM( + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL + SUM ( + 89 )
----
89

query I rowsort
SELECT - 36 + + + 50 * + 36 * 33
----
59364

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT 63 * + - 33 * - 67 * - 8 + - CASE - 93 WHEN - 97 THEN - - 41 + + 98 + - - COUNT( * ) END - + NULLIF ( + MAX( + - 35 ), + 82 * 2 + + 17 + + 32 / - 58 + - + 76 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4551
SELECT 63 * + - 33 * - 67 * - 8 + - CASE - 93 WHEN - 97 THEN - - 41 + + 98 + - - COUNT ( * ) END - + NULLIF ( + MAX ( + - 35 ), + 82 * 2 + + 17 + + 32 / - 58 + - + 76 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4552
SELECT - - MAX( DISTINCT + + 82 ) * + 39 AS col1, 80 AS col1
----
3198
80

skipif mysql # not compatible
query II rowsort label-4552
SELECT - - MAX ( DISTINCT + + 82 ) * + 39 AS col1, 80 AS col1
----
3198
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT DISTINCT - + 5 * ( - - 24 ) * ( ( COUNT( * ) ) ) col0
----
-120

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT - + 5 * ( - - 24 ) * ( ( COUNT ( * ) ) ) col0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT ALL COALESCE ( + - MAX( 24 ), + ( COUNT( * ) ) + 67, 16 + + - 14 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL COALESCE ( + - MAX ( 24 ), + ( COUNT ( * ) ) + 67, 16 + + - 14 ) AS col2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4555
SELECT ALL CAST( + + 17 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL CAST ( + + 17 AS INTEGER )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT + - 28 + CASE - 38 WHEN + MAX( ALL + 79 ) + - 87 * + 56 THEN 23 WHEN - - 49 THEN NULL ELSE NULL END * + - 97 * + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4556
SELECT + - 28 + CASE - 38 WHEN + MAX ( ALL + 79 ) + - 87 * + 56 THEN 23 WHEN - - 49 THEN NULL ELSE NULL END * + - 97 * + 84 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4557
SELECT + + ( - + ( - COALESCE ( COUNT( * ), AVG ( 62 ) ) ) ) + + CAST( NULL AS SIGNED ) + 26 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT + + ( - + ( - COALESCE ( COUNT ( * ), AVG ( 62 ) ) ) ) + + CAST ( NULL AS INTEGER ) + 26 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT + - 78 + - + COUNT( * ) + - - 24 - - 7 * - + 0 col1
----
-55

skipif mysql # not compatible
query I rowsort label-4558
SELECT + - 78 + - + COUNT ( * ) + - - 24 - - 7 * - + 0 col1
----
-55

query I rowsort
SELECT - + 95 col0
----
-95

query I rowsort
SELECT - + 50 + 88
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT - COUNT( ALL + 77 ) * + ( - 0 ) * + 9
----
0

skipif mysql # not compatible
query I rowsort label-4561
SELECT - COUNT ( ALL + 77 ) * + ( - 0 ) * + 9
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4562
SELECT - CASE + 21 WHEN 5 - - 21 THEN 16 WHEN - - 10 - - SUM( 40 ) * + CASE + 39 WHEN + 60 / + 19 - - 58 / + 91 THEN + - CAST( ( 72 ) AS SIGNED ) END * - COUNT( + CASE + - 10 WHEN + - 83 THEN - 20 WHEN 59 THEN NULL ELSE - 10 END ) THEN + ( ( + 49 ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4562
SELECT - CASE + 21 WHEN 5 - - 21 THEN 16 WHEN - - 10 - - SUM ( 40 ) * + CASE + 39 WHEN + 60 / + 19 - - 58 / + 91 THEN + - CAST ( ( 72 ) AS INTEGER ) END * - COUNT ( + CASE + - 10 WHEN + - 83 THEN - 20 WHEN 59 THEN NULL ELSE - 10 END ) THEN + ( ( + 49 ) ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4563
SELECT + 49 + + 73 * + CAST( NULL AS SIGNED ) * CAST( 64 AS SIGNED ) * + 67 + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-4563
SELECT + 49 + + 73 * + CAST ( NULL AS INTEGER ) * CAST ( 64 AS INTEGER ) * + 67 + + 60
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4564
SELECT DISTINCT 60 + CAST( 10 AS SIGNED ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT 60 + CAST ( 10 AS INTEGER ) AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4565
SELECT ALL - 90 + + - MAX( + - 47 ) * + 63 + + + 86 + + + 73 * + 84 * + 18 * + + CAST( ( + - 30 ) AS SIGNED ) * - - 84 + + 26 + - + COUNT( DISTINCT + + 23 ) - - 96
----
-278144442

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL - 90 + + - MAX ( + - 47 ) * + 63 + + + 86 + + + 73 * + 84 * + 18 * + + CAST ( ( + - 30 ) AS INTEGER ) * - - 84 + + 26 + - + COUNT ( DISTINCT + + 23 ) - - 96
----
-278144442

query I rowsort
SELECT ALL 95 + - 68 * 84
----
-5617

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ALL ( - 17 ) * + COUNT( * ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL ( - 17 ) * + COUNT ( * ) AS col2
----
-17

query II rowsort
SELECT ALL + 35 AS col2, - 88 col1
----
35
-88

query I rowsort
SELECT ALL 31 * + 68 + - - 31 AS col2
----
2139

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT + SUM( + 71 ) * + - COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-4570
SELECT + SUM ( + 71 ) * + - COUNT ( * ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-4571
SELECT + COUNT( * ) AS col0, + 7
----
1
7

skipif mysql # not compatible
query II rowsort label-4571
SELECT + COUNT ( * ) AS col0, + 7
----
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT ( + - 65 ) * - - 35 + + - COUNT( * ) * + 14 col1
----
-2289

skipif mysql # not compatible
query I rowsort label-4572
SELECT ( + - 65 ) * - - 35 + + - COUNT ( * ) * + 14 col1
----
-2289

onlyif mysql # DIV for integer division: 
query II rowsort label-4573
SELECT + 93 AS col1, - 21 DIV - + 95 * 90
----
93
0

skipif mysql # not compatible
query II rowsort label-4573
SELECT + 93 AS col1, - 21 / - + 95 * 90
----
93
0

query I rowsort
SELECT DISTINCT 88 * 11
----
968

query I rowsort
SELECT ALL 87 * + 27 - + 93 + - + 84
----
2172

query I rowsort
SELECT ALL 5 * + 78 * - 25 * - 79
----
770250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4577
SELECT CASE AVG ( + CAST( - 19 AS SIGNED ) ) WHEN 81 - - + 91 / - COUNT( * ) + - 9 * 32 * + 71 + + + COUNT( * ) * - 76 * 91 THEN 85 + - + 44 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT CASE AVG ( + CAST ( - 19 AS INTEGER ) ) WHEN 81 - - + 91 / - COUNT ( * ) + - 9 * 32 * + 71 + + + COUNT ( * ) * - 76 * 91 THEN 85 + - + 44 END AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( - + ( + 19 ), - COALESCE ( + + 35, 83 ), - 87, + 70 + - + 45 ) * + - 20 * - - 63 * - 33
----
-790020

query I rowsort
SELECT + ( + - 66 ) AS col1
----
-66

query I rowsort
SELECT DISTINCT 52 * + 88 AS col2
----
4576

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT ALL 24 * - NULLIF ( - - 62, + + COUNT( * ) ) - - 22
----
-1466

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL 24 * - NULLIF ( - - 62, + + COUNT ( * ) ) - - 22
----
-1466

query II rowsort
SELECT + - 38 AS col2, - 12 AS col1
----
-38
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT MAX( - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-4583
SELECT MAX ( - 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT DISTINCT + MIN( DISTINCT 75 )
----
75

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT + MIN ( DISTINCT 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT ALL + - CASE 94 WHEN 66 THEN NULL ELSE + COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL + - CASE 94 WHEN 66 THEN NULL ELSE + COUNT ( * ) END
----
-1

query I rowsort
SELECT CASE + 45 WHEN + 90 THEN NULL WHEN - 45 THEN + CASE 98 WHEN - + 32 THEN - ( - 24 ) END * - - ( + 54 ) END
----
NULL

query I rowsort
SELECT DISTINCT + - 8 col1
----
-8

query I rowsort
SELECT - + 48 * - 26 AS col0
----
1248

query I rowsort
SELECT ALL - 21 * 80 + + 80 AS col0
----
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT ALL + 57 * - COUNT( * ) + 13
----
-44

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL + 57 * - COUNT ( * ) + 13
----
-44

query II rowsort
SELECT - - 84 AS col0, 3 * + 83
----
84
249

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4592
SELECT + CAST( NULL AS DECIMAL ) + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4592
SELECT + CAST ( NULL AS REAL ) + 35
----
NULL

query I rowsort
SELECT - 84 * - - 92 - + 88 AS col2
----
-7816

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT ALL + MIN( 62 ) + + COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL + MIN ( 62 ) + + COUNT ( * ) AS col0
----
63

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4595
SELECT DISTINCT CAST( NULL AS DECIMAL ), + 80 AS col2
----
NULL
80

skipif mysql # not compatible
query II rowsort label-4595
SELECT DISTINCT CAST ( NULL AS REAL ), + 80 AS col2
----
NULL
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT DISTINCT + - COUNT( * ) + + + 84
----
83

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT + - COUNT ( * ) + + + 84
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT + CASE + + 64 WHEN + COUNT( * ) + - 45 THEN NULL WHEN 16 * + 71 * + 87 + 62 THEN - + 12 + + 49 + + 67 + + 76 + - + 66 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4597
SELECT + CASE + + 64 WHEN + COUNT ( * ) + - 45 THEN NULL WHEN 16 * + 71 * + 87 + 62 THEN - + 12 + + 49 + + 67 + + 76 + - + 66 END AS col0
----
NULL

query I rowsort
SELECT - - 21 + + 28 * 10
----
301

onlyif mysql # aggregate syntax: 
query II rowsort label-4599
SELECT + - 16 * + 76 * 25 * - 30 AS col1, 71 + - COUNT( * ) AS col2
----
912000
70

skipif mysql # not compatible
query II rowsort label-4599
SELECT + - 16 * + 76 * 25 * - 30 AS col1, 71 + - COUNT ( * ) AS col2
----
912000
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4600
SELECT - CASE - 4 WHEN - 77 * + + ( NULLIF ( - + ( NULLIF ( - ( - COUNT( + 37 ) ), 9 ) ), 75 - - ( 5 ) ) ) + + - 73 THEN - - 90 ELSE NULL END, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4600
SELECT - CASE - 4 WHEN - 77 * + + ( NULLIF ( - + ( NULLIF ( - ( - COUNT ( + 37 ) ), 9 ) ), 75 - - ( 5 ) ) ) + + - 73 THEN - - 90 ELSE NULL END, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT - + COUNT( * ) + + 91 * + 82
----
7461

skipif mysql # not compatible
query I rowsort label-4601
SELECT - + COUNT ( * ) + + 91 * + 82
----
7461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4602
SELECT ALL - CAST( NULL AS SIGNED ) + + 1 + - 65 + 81 / + 78 + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL - CAST ( NULL AS INTEGER ) + + 1 + - 65 + 81 / + 78 + + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT DISTINCT ( + - ( + COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT ( + - ( + COUNT ( * ) ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4604
SELECT ALL 72 + COUNT( * ) col0, 93 * 13
----
73
1209

skipif mysql # not compatible
query II rowsort label-4604
SELECT ALL 72 + COUNT ( * ) col0, 93 * 13
----
73
1209

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4605
SELECT - CASE - 54 WHEN - 67 THEN + 71 END - - CAST( - SUM( DISTINCT 92 ) AS DECIMAL ) col1, 98 AS col0
----
NULL
98

skipif mysql # not compatible
query II rowsort label-4605
SELECT - CASE - 54 WHEN - 67 THEN + 71 END - - CAST ( - SUM ( DISTINCT 92 ) AS REAL ) col1, 98 AS col0
----
NULL
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4606
SELECT ALL CAST( 69 AS SIGNED ) AS col1, - 61 AS col1
----
69
-61

skipif mysql # not compatible
query II rowsort label-4606
SELECT ALL CAST ( 69 AS INTEGER ) AS col1, - 61 AS col1
----
69
-61

query I rowsort
SELECT + 54 + - 21
----
33

query II rowsort
SELECT ALL - 67 - + 88 AS col0, 41 AS col2
----
-155
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4609
SELECT DISTINCT + 13 DIV + + 72 col0
----
0

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT + 13 / + + 72 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4610
SELECT ALL 53 * + - 43 AS col2, + 53 - - SUM( 71 ) * - 25 col2
----
-2279
-1722

skipif mysql # not compatible
query II rowsort label-4610
SELECT ALL 53 * + - 43 AS col2, + 53 - - SUM ( 71 ) * - 25 col2
----
-2279
-1722

onlyif mysql # DIV for integer division: 
query I rowsort label-4611
SELECT DISTINCT ( - 86 ) DIV 92 - - 94 * - 40 AS col1
----
-3760

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT ( - 86 ) / 92 - - 94 * - 40 AS col1
----
-3760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4612
SELECT ALL 14 DIV 19 - - + MAX( DISTINCT + 34 ) + - 23
----
11

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL 14 / 19 - - + MAX ( DISTINCT + 34 ) + - 23
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4613
SELECT + 33 DIV + MAX( - 99 ) - + - COUNT( * ) + + 30 * - 34
----
-1019

skipif mysql # not compatible
query I rowsort label-4613
SELECT + 33 / + MAX ( - 99 ) - + - COUNT ( * ) + + 30 * - 34
----
-1019

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4614
SELECT CAST( + - 13 AS SIGNED ) AS col2, 89 AS col2
----
-13
89

skipif mysql # not compatible
query II rowsort label-4614
SELECT CAST ( + - 13 AS INTEGER ) AS col2, 89 AS col2
----
-13
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4615
SELECT + 64 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-4615
SELECT + 64 / 93
----
0

query I rowsort
SELECT ALL - + ( - ( + + 46 ) ) AS col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4617
SELECT + - CAST( 80 AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-4617
SELECT + - CAST ( 80 AS INTEGER )
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4618
SELECT + 65 DIV + COUNT( * ) AS col1, 38 * - 14 AS col1
----
65
-532

skipif mysql # not compatible
query II rowsort label-4618
SELECT + 65 / + COUNT ( * ) AS col1, 38 * - 14 AS col1
----
65
-532

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4619
SELECT ALL - 32 DIV + - ( - SUM( DISTINCT + 8 ) ) + + MAX( ALL + + 83 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL - 32 / + - ( - SUM ( DISTINCT + 8 ) ) + + MAX ( ALL + + 83 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT ALL COUNT( * ) * + ( 72 )
----
72

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL COUNT ( * ) * + ( 72 )
----
72

query II rowsort
SELECT ALL 58 * - 98 AS col2, 82
----
-5684
82

query I rowsort
SELECT 77 * - 17 + + 4
----
-1305

query I rowsort
SELECT ALL 1 + - + 0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4624
SELECT DISTINCT + 13 + - - 7, - COUNT( * ) - 2 * 95 * + 39 + NULLIF ( - NULLIF ( 12, - - 95 ), + + COUNT( * ) ) AS col1
----
20
-7423

skipif mysql # not compatible
query II rowsort label-4624
SELECT DISTINCT + 13 + - - 7, - COUNT ( * ) - 2 * 95 * + 39 + NULLIF ( - NULLIF ( 12, - - 95 ), + + COUNT ( * ) ) AS col1
----
20
-7423

query II rowsort
SELECT ALL + 91 + + 97 + - 39 + + + 7 + 96 AS col2, - 41
----
252
-41

query I rowsort
SELECT ALL - 80 * + 14 AS col2
----
-1120

query II rowsort
SELECT 98 + 63 AS col1, 42
----
161
42

query I rowsort
SELECT + + ( + 40 ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT DISTINCT - SUM( - 63 ) + + - 17 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT - SUM ( - 63 ) + + - 17 AS col0
----
46

query I rowsort
SELECT + 21 * 55 AS col1
----
1155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4631
SELECT ALL + 56 + - 96, 71 * - - 90 * + CAST( NULL AS SIGNED ) + + + 7 * + COUNT( * ) AS col2
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-4631
SELECT ALL + 56 + - 96, 71 * - - 90 * + CAST ( NULL AS INTEGER ) + + + 7 * + COUNT ( * ) AS col2
----
-40
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4632
SELECT ( - + COALESCE ( 12, 18 * 53 + COUNT( * ), + 6 ) ) + NULLIF ( - 73, - 26 ) AS col1, + 51 AS col2
----
-85
51

skipif mysql # not compatible
query II rowsort label-4632
SELECT ( - + COALESCE ( 12, 18 * 53 + COUNT ( * ), + 6 ) ) + NULLIF ( - 73, - 26 ) AS col1, + 51 AS col2
----
-85
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT - 9 * + 71 + - MAX( DISTINCT - - 35 ) + 3
----
-671

skipif mysql # not compatible
query I rowsort label-4633
SELECT - 9 * + 71 + - MAX ( DISTINCT - - 35 ) + 3
----
-671

onlyif mysql # DIV for integer division: 
query I rowsort label-4634
SELECT ALL - - COALESCE ( 31, + 75 ) DIV - - NULLIF ( + 66, - + 16 ) * 39 + + 92 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL - - COALESCE ( 31, + 75 ) / - - NULLIF ( + 66, - + 16 ) * 39 + + 92 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT DISTINCT - 37 + + MAX( + 59 ) - + 56
----
-34

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT - 37 + + MAX ( + 59 ) - + 56
----
-34

query I rowsort
SELECT ALL - 72 - + 56
----
-128

query I rowsort
SELECT 65 + 20
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4638
SELECT ALL 84 DIV - SUM( DISTINCT + 81 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL 84 / - SUM ( DISTINCT + 81 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4639
SELECT 74 + + 91 * CASE - 73 WHEN - + 79 + + - 76 + - COUNT( * ) * AVG ( + - CAST( NULL AS SIGNED ) ) / - 3 / 47 - - AVG ( - + ( + 6 ) ) - - 37 + - 19 * - 58 * + 98 THEN - + 98 / - 80 * + 34 * + CAST( + + ( + - AVG ( DISTINCT 90 ) ) AS SIGNED ) WHEN 17 + + 87 THEN NULL ELSE NULL END / - + 47 + - 23 / - 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4639
SELECT 74 + + 91 * CASE - 73 WHEN - + 79 + + - 76 + - COUNT ( * ) * AVG ( + - CAST ( NULL AS INTEGER ) ) / - 3 / 47 - - AVG ( - + ( + 6 ) ) - - 37 + - 19 * - 58 * + 98 THEN - + 98 / - 80 * + 34 * + CAST ( + + ( + - AVG ( DISTINCT 90 ) ) AS INTEGER ) WHEN 17 + + 87 THEN NULL ELSE NULL END / - + 47 + - 23 / - 67 AS col0
----
NULL

query II rowsort
SELECT 27 col1, 74
----
27
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4641
SELECT ALL + 27 * + - NULLIF ( + CAST( - 88 AS SIGNED ), - - 99 ) AS col0
----
2376

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL + 27 * + - NULLIF ( + CAST ( - 88 AS INTEGER ), - - 99 ) AS col0
----
2376

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4642
SELECT ALL - 72 - - - 3 * CAST( NULL AS SIGNED ) AS col0, + 56 AS col0
----
NULL
56

skipif mysql # not compatible
query II rowsort label-4642
SELECT ALL - 72 - - - 3 * CAST ( NULL AS INTEGER ) AS col0, + 56 AS col0
----
NULL
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4643
SELECT 55 DIV - COUNT( * ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-4643
SELECT 55 / - COUNT ( * ) col2
----
-55

query I rowsort
SELECT 61 + 65 col0
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4645
SELECT 8 AS col2, + 76 * - NULLIF ( + 65, - 23 ) * 31 - - + 76 + + 78 DIV + + 48 + + - 13 + + 74 AS col2, - COALESCE ( - 46, + 7 + - - 25 ) + - - MIN( + NULLIF ( - 49, 93 ) )
----
8
-153002
-3

skipif mysql # not compatible
query III rowsort label-4645
SELECT 8 AS col2, + 76 * - NULLIF ( + 65, - 23 ) * 31 - - + 76 + + 78 / + + 48 + + - 13 + + 74 AS col2, - COALESCE ( - 46, + 7 + - - 25 ) + - - MIN ( + NULLIF ( - 49, 93 ) )
----
8
-153002
-3

query I rowsort
SELECT DISTINCT 83 * + + 84 AS col2
----
6972

query I rowsort
SELECT ALL 41 * - 36 AS col2
----
-1476

query II rowsort
SELECT ALL 93 AS col1, - 7
----
93
-7

query II rowsort
SELECT 38, + 5 AS col1
----
38
5

query I rowsort
SELECT 79 * - + 43 * + + COALESCE ( + ( + 99 ), + - 56, ( - 91 ) + - - CASE - 74 WHEN - + 47 THEN + 8 * - 90 WHEN - 76 THEN NULL END ) * 30 * 78 col2
----
-786949020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4651
SELECT 15 + - CAST( - 89 AS SIGNED ), - COUNT( * ) * ( - + CASE ( - CASE + + 83 WHEN - 28 THEN - - 52 ELSE NULL END ) WHEN + 98 THEN + - CAST( + - COALESCE ( - + 44, 60 * - 67 ) AS SIGNED ) + + - ( - 87 ) ELSE - + 92 * + 91 * - NULLIF ( + 65, + + SUM( DISTINCT CAST( NULL AS SIGNED ) ) ) + + 81 + - 7 END ) AS col2
----
104
544254

skipif mysql # not compatible
query II rowsort label-4651
SELECT 15 + - CAST ( - 89 AS INTEGER ), - COUNT ( * ) * ( - + CASE ( - CASE + + 83 WHEN - 28 THEN - - 52 ELSE NULL END ) WHEN + 98 THEN + - CAST ( + - COALESCE ( - + 44, 60 * - 67 ) AS INTEGER ) + + - ( - 87 ) ELSE - + 92 * + 91 * - NULLIF ( + 65, + + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) ) + + 81 + - 7 END ) AS col2
----
104
544254

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4652
SELECT ALL - COUNT( + 1 ) * - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL - COUNT ( + 1 ) * - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT DISTINCT - CASE - + 60 WHEN 78 * SUM( ALL - 49 ) / 4 * + 3 THEN NULL WHEN + 80 THEN + + 84 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT - CASE - + 60 WHEN 78 * SUM ( ALL - 49 ) / 4 * + 3 THEN NULL WHEN + 80 THEN + + 84 END col0
----
NULL

query II rowsort
SELECT 24 AS col2, - 60 + - 55 * 67
----
24
-3745

query II rowsort
SELECT + 83 col1, 89 AS col0
----
83
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT - + 28 * + - CASE + 58 WHEN + + 99 * - 29 + - AVG ( DISTINCT + 92 ) * 3 THEN NULL WHEN + 55 THEN + 63 END + - COUNT( * ) + 64 * 82 * + 20 + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT - + 28 * + - CASE + 58 WHEN + + 99 * - 29 + - AVG ( DISTINCT + 92 ) * 3 THEN NULL WHEN + 55 THEN + 63 END + - COUNT ( * ) + 64 * 82 * + 20 + 18 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4657
SELECT ALL 33 * + CAST( + 46 AS SIGNED ) * - - 43 * + + 47 col0
----
3067878

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL 33 * + CAST ( + 46 AS INTEGER ) * - - 43 * + + 47 col0
----
3067878

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4658
SELECT ALL 55 + + - CAST( - - 52 AS SIGNED ) * - + 72
----
3799

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL 55 + + - CAST ( - - 52 AS INTEGER ) * - + 72
----
3799

query I rowsort
SELECT ALL + COALESCE ( - - 39, + - 39 - 83 + + 6 + - 7 ) + ( + 49 ) + - 66 * + + 70 AS col2
----
-4532

query I rowsort
SELECT ALL - + 49 + 11 AS col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4661
SELECT 24 * - ( 68 ) * CASE 48 WHEN + 98 THEN - 49 * + 2 + - 61 + + 71 WHEN 1 THEN NULL WHEN + 17 THEN - - CASE CAST( 75 AS SIGNED ) WHEN ( - COALESCE ( - 37, - COUNT( * ), - SUM( DISTINCT + 67 ) ) ) * + + 16 - - 93 - - CAST( COUNT( * ) AS SIGNED ) THEN - + 90 - - 48 + + 29 END * + 71 * + 32 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT 24 * - ( 68 ) * CASE 48 WHEN + 98 THEN - 49 * + 2 + - 61 + + 71 WHEN 1 THEN NULL WHEN + 17 THEN - - CASE CAST ( 75 AS INTEGER ) WHEN ( - COALESCE ( - 37, - COUNT ( * ), - SUM ( DISTINCT + 67 ) ) ) * + + 16 - - 93 - - CAST ( COUNT ( * ) AS INTEGER ) THEN - + 90 - - 48 + + 29 END * + 71 * + 32 END AS col2
----
NULL

query II rowsort
SELECT 71, 94 col1
----
71
94

query II rowsort
SELECT 77 AS col1, + 98 * - 12
----
77
-1176

query I rowsort
SELECT - 5 * + + 95
----
-475

query I rowsort
SELECT + ( - 51 ) AS col1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4666
SELECT ALL - 99 + + 56 DIV 81
----
-99

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL - 99 + + 56 / 81
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL 85 - MIN( 4 )
----
81

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL 85 - MIN ( 4 )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4668
SELECT - - 16 AS col1, COUNT( DISTINCT 38 )
----
16
1

skipif mysql # not compatible
query II rowsort label-4668
SELECT - - 16 AS col1, COUNT ( DISTINCT 38 )
----
16
1

query I rowsort
SELECT DISTINCT 43 * - 67 AS col1
----
-2881

query I rowsort
SELECT 39 + - 94 * + 59
----
-5507

query I rowsort
SELECT 45 * + + 37 AS col1
----
1665

onlyif mysql # aggregate syntax: 
query II rowsort label-4672
SELECT 64 + - 26 + + COUNT( * ) * - 66 col2, NULLIF ( + + ( - - COUNT( * ) ), + 48 - 83 + MAX( 43 ) ) + - - COUNT( * ) + 81 * 45 * - COUNT( * ) * + 57 AS col1
----
-28
-207763

skipif mysql # not compatible
query II rowsort label-4672
SELECT 64 + - 26 + + COUNT ( * ) * - 66 col2, NULLIF ( + + ( - - COUNT ( * ) ), + 48 - 83 + MAX ( 43 ) ) + - - COUNT ( * ) + 81 * 45 * - COUNT ( * ) * + 57 AS col1
----
-28
-207763

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT 70 * + NULLIF ( + COUNT( * ), 60 * + COUNT( * ) + 84 )
----
70

skipif mysql # not compatible
query I rowsort label-4673
SELECT 70 * + NULLIF ( + COUNT ( * ), 60 * + COUNT ( * ) + 84 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT ( + COUNT( * ) ) + - 15
----
-14

skipif mysql # not compatible
query I rowsort label-4674
SELECT ( + COUNT ( * ) ) + - 15
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL MIN( + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL MIN ( + 56 )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4676
SELECT COUNT( 1 ) DIV + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4676
SELECT COUNT ( 1 ) / + - COUNT ( * )
----
-1

query I rowsort
SELECT 96 * + 0 * 20 AS col0
----
0

query I rowsort
SELECT 99 + + 95 AS col2
----
194

onlyif mysql # DIV for integer division: 
query I rowsort label-4679
SELECT - 58 DIV - 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4679
SELECT - 58 / - 64 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT ALL - COUNT( * ) + 65 + - + 82 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL - COUNT ( * ) + 65 + - + 82 AS col1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4681
SELECT - 22 DIV - 7
----
3

skipif mysql # not compatible
query I rowsort label-4681
SELECT - 22 / - 7
----
3

query I rowsort
SELECT ALL 9 * + 3 + - + ( + - 59 )
----
86

query I rowsort
SELECT DISTINCT + ( - 91 ) * 15 + - + 52 * + 28 * - - NULLIF ( + 58, + 8 ) AS col0
----
-85813

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT ALL - 2 * - COUNT( * ) + + 12
----
14

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL - 2 * - COUNT ( * ) + + 12
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4685
SELECT DISTINCT + + CAST( 22 AS SIGNED ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT + + CAST ( 22 AS INTEGER ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT MAX( ALL + 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4686
SELECT MAX ( ALL + 61 ) AS col2
----
61

query I rowsort
SELECT ALL + 73 * + 35 * + - 16 - - 15 - - + 81 * - 87 + - - 83 AS col1
----
-47829

query I rowsort
SELECT - NULLIF ( 19, 8 ) * - 37 + - + 28 AS col1
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT - COUNT( + + 15 ) + - SUM( 7 ) * 88 * MAX( - 94 ) * + 80 + NULLIF ( - + 13, + 48 ) AS col2
----
4632306

skipif mysql # not compatible
query I rowsort label-4689
SELECT - COUNT ( + + 15 ) + - SUM ( 7 ) * 88 * MAX ( - 94 ) * + 80 + NULLIF ( - + 13, + 48 ) AS col2
----
4632306

query II rowsort
SELECT - 3 + 67 AS col1, 79 AS col0
----
64
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT - - 94 * 66 + COUNT( * ) + - 14 + + - COUNT( * ) AS col0
----
6190

skipif mysql # not compatible
query I rowsort label-4691
SELECT - - 94 * 66 + COUNT ( * ) + - 14 + + - COUNT ( * ) AS col0
----
6190

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT DISTINCT - - ( - MIN( 13 ) ) * - SUM( DISTINCT + 15 ) AS col1
----
195

skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT - - ( - MIN ( 13 ) ) * - SUM ( DISTINCT + 15 ) AS col1
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4693
SELECT ALL + 72 * - CAST( NULL AS SIGNED ) - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL + 72 * - CAST ( NULL AS INTEGER ) - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT 43 * 46 + + NULLIF ( 27, - 96 + + + SUM( - 1 ) )
----
2005

skipif mysql # not compatible
query I rowsort label-4694
SELECT 43 * 46 + + NULLIF ( 27, - 96 + + + SUM ( - 1 ) )
----
2005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4695
SELECT ALL - 37 * SUM( ALL - 72 ) + - 16 * + + 4 DIV 75 AS col1
----
2664

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL - 37 * SUM ( ALL - 72 ) + - 16 * + + 4 / 75 AS col1
----
2664

query II rowsort
SELECT + - 93 + 42, - 93 AS col1
----
-51
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4697
SELECT - 5 DIV - - 32 - + - 80 * COALESCE ( COUNT( * ), - COUNT( * ), + 28 ) + + MIN( ALL + 1 ) AS col2, 95
----
81
95

skipif mysql # not compatible
query II rowsort label-4697
SELECT - 5 / - - 32 - + - 80 * COALESCE ( COUNT ( * ), - COUNT ( * ), + 28 ) + + MIN ( ALL + 1 ) AS col2, 95
----
81
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT + CASE 63 WHEN - 6 THEN 56 END * + 22 * 80 + + - COUNT( * ) + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4698
SELECT + CASE 63 WHEN - 6 THEN 56 END * + 22 * 80 + + - COUNT ( * ) + - 81
----
NULL

query I rowsort
SELECT DISTINCT 95 - + 14 * 24 AS col0
----
-241

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4700
SELECT ALL 14, - COUNT( * ) * + + ( - - NULLIF ( - 63, - - 73 + AVG ( + 24 ) DIV + 37 * - 27 * 79 ) ) DIV + 90 + 94 AS col2, - - 46 AS col2
----
14
94
46

skipif mysql # not compatible
query III rowsort label-4700
SELECT ALL 14, - COUNT ( * ) * + + ( - - NULLIF ( - 63, - - 73 + AVG ( + 24 ) / + 37 * - 27 * 79 ) ) / + 90 + 94 AS col2, - - 46 AS col2
----
14
94
46

query I rowsort
SELECT + 24 + + 36 * + 48 AS col0
----
1752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4702
SELECT ALL 30 * + 37 DIV + COALESCE ( COUNT( 18 ), ( - 46 ) ) AS col1
----
1110

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL 30 * + 37 / + COALESCE ( COUNT ( 18 ), ( - 46 ) ) AS col1
----
1110

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT DISTINCT COUNT( * ) * 36 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT COUNT ( * ) * 36 AS col2
----
36

query I rowsort
SELECT DISTINCT ( - NULLIF ( - 72, - 8 ) )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT ALL 24 * - SUM( DISTINCT - 62 ) AS col1
----
1488

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL 24 * - SUM ( DISTINCT - 62 ) AS col1
----
1488

query I rowsort
SELECT DISTINCT 53 * + + 25 AS col2
----
1325

query I rowsort
SELECT - 76 * + 72
----
-5472

query I rowsort
SELECT + 82 * + 39 col1
----
3198

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT - COUNT( DISTINCT + + 33 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4709
SELECT - COUNT ( DISTINCT + + 33 ) AS col1
----
-1

query I rowsort
SELECT ALL 40 + - 2 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT + NULLIF ( + - 70, - COUNT( - 46 ) * + 79 / 47 ) + + 50
----
-20

skipif mysql # not compatible
query I rowsort label-4711
SELECT + NULLIF ( + - 70, - COUNT ( - 46 ) * + 79 / 47 ) + + 50
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-4712
SELECT - 52 - 11 * + 0 + - 42 DIV - 52 * + + 53 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4712
SELECT - 52 - 11 * + 0 + - 42 / - 52 * + + 53 AS col0
----
-52

query I rowsort
SELECT - ( + ( 60 ) )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4714
SELECT ALL + 2 + - 73 + - CAST( - + 78 AS SIGNED ) + - 16 col2
----
-9

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL + 2 + - 73 + - CAST ( - + 78 AS INTEGER ) + - 16 col2
----
-9

query I rowsort
SELECT + 94 + + + 34 + + 38 AS col0
----
166

query I rowsort
SELECT DISTINCT + + 48 * + 61
----
2928

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT DISTINCT + ( - COUNT( * ) ) + - 67 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT + ( - COUNT ( * ) ) + - 67 AS col2
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4718
SELECT NULLIF ( - 72, - + CAST( NULL AS SIGNED ) ), 53 col1
----
-72
53

skipif mysql # not compatible
query II rowsort label-4718
SELECT NULLIF ( - 72, - + CAST ( NULL AS INTEGER ) ), 53 col1
----
-72
53

onlyif mysql # DIV for integer division: 
query I rowsort label-4719
SELECT - 21 + - 15 DIV - + 58
----
-21

skipif mysql # not compatible
query I rowsort label-4719
SELECT - 21 + - 15 / - + 58
----
-21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4720
SELECT ALL + + 70 DIV + - 53 + - 88 - - 29 - + - 93, CAST( - - 80 AS SIGNED ) + 9 AS col1
----
33
89

skipif mysql # not compatible
query II rowsort label-4720
SELECT ALL + + 70 / + - 53 + - 88 - - 29 - + - 93, CAST ( - - 80 AS INTEGER ) + 9 AS col1
----
33
89

query I rowsort
SELECT + + CASE + 31 WHEN - + 60 * + + 59 THEN + 20 * + + 91 / 96 + 10 + + 7 END * + 5 * 2 / 62
----
NULL

query I rowsort
SELECT + - 13 * + + 18 * - 27 * 48 * + - 49 * + - 50 AS col2
----
742996800

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4723
SELECT - - COUNT( * ) + 7 + CASE - - CAST( NULL AS DECIMAL ) WHEN - 5 THEN - + COUNT( * ) ELSE NULL END * + COALESCE ( + + 85, - 59 * - 38 ) / 84 + 29 + - COUNT( * ) AS col1, 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-4723
SELECT - - COUNT ( * ) + 7 + CASE - - CAST ( NULL AS REAL ) WHEN - 5 THEN - + COUNT ( * ) ELSE NULL END * + COALESCE ( + + 85, - 59 * - 38 ) / 84 + 29 + - COUNT ( * ) AS col1, 45
----
NULL
45

query I rowsort
SELECT DISTINCT - 2 * - 36 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT + 90 * + ( + 25 ) + COUNT( * ) - + 8 + - COUNT( * ) * - 27
----
2270

skipif mysql # not compatible
query I rowsort label-4725
SELECT + 90 * + ( + 25 ) + COUNT ( * ) - + 8 + - COUNT ( * ) * - 27
----
2270

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4726
SELECT ALL + CASE - MIN( ALL + 26 ) WHEN + CAST( + 98 AS DECIMAL ) * - COUNT( * ) + + 8 + + 37 + - MAX( DISTINCT + 20 ) THEN 7 + + MAX( ALL + 46 ) ELSE + + 96 END
----
96

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL + CASE - MIN ( ALL + 26 ) WHEN + CAST ( + 98 AS REAL ) * - COUNT ( * ) + + 8 + + 37 + - MAX ( DISTINCT + 20 ) THEN 7 + + MAX ( ALL + 46 ) ELSE + + 96 END
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4727
SELECT ALL 94 / + CAST( NULL AS SIGNED ) - 54 + - - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL 94 / + CAST ( NULL AS INTEGER ) - 54 + - - 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT - 10 * - 29 + MIN( - 36 ) + COUNT( * )
----
255

skipif mysql # not compatible
query I rowsort label-4728
SELECT - 10 * - 29 + MIN ( - 36 ) + COUNT ( * )
----
255

query I rowsort
SELECT DISTINCT 79 * + 13 AS col0
----
1027

query I rowsort
SELECT - - 13 * - 0
----
0

query I rowsort
SELECT DISTINCT + + 15 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT - 90 - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-4732
SELECT - 90 - COUNT ( * )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4733
SELECT + 18 * - 81 * + CAST( - SUM( DISTINCT + 83 ) AS SIGNED ) - + - 44
----
121058

skipif mysql # not compatible
query I rowsort label-4733
SELECT + 18 * - 81 * + CAST ( - SUM ( DISTINCT + 83 ) AS INTEGER ) - + - 44
----
121058

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT ALL + 68 * + COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4734
SELECT ALL + 68 * + COUNT ( * ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT - CASE 67 WHEN - COUNT( * ) THEN + 50 * - + 76 + 17 + COUNT( * ) + + 57 END * 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT - CASE 67 WHEN - COUNT ( * ) THEN + 50 * - + 76 + 17 + COUNT ( * ) + + 57 END * 68 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL + 41 * + + MIN( DISTINCT - 48 ) col2
----
-1968

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL + 41 * + + MIN ( DISTINCT - 48 ) col2
----
-1968

query I rowsort
SELECT COALESCE ( - 11, - 41 * - - 19 )
----
-11

query I rowsort
SELECT ALL + 68 * ( + - 38 ) AS col1
----
-2584

query II rowsort
SELECT ALL 24 AS col1, - 0 AS col2
----
24
0

query I rowsort
SELECT DISTINCT 61 * + 47 + - 62 + - ( - 63 ) AS col2
----
2868

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT DISTINCT + COUNT( * ) + - 19 + + 72 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT + COUNT ( * ) + - 19 + + 72 AS col1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4742
SELECT 24, + 56 + + + 67 + - MAX( ALL 21 ) AS col1
----
24
102

skipif mysql # not compatible
query II rowsort label-4742
SELECT 24, + 56 + + + 67 + - MAX ( ALL 21 ) AS col1
----
24
102

query I rowsort
SELECT 89 + - + 4
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4744
SELECT MIN( DISTINCT 21 ) DIV - COUNT( * ) + + 97 + + ( + 9 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4744
SELECT MIN ( DISTINCT 21 ) / - COUNT ( * ) + + 97 + + ( + 9 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT 99 + + + 51 + NULLIF ( - 23, 37 / 77 + - 24 - 20 * ( - COUNT( * ) ) * + 64 + + + MAX( + - 40 ) )
----
127

skipif mysql # not compatible
query I rowsort label-4745
SELECT 99 + + + 51 + NULLIF ( - 23, 37 / 77 + - 24 - 20 * ( - COUNT ( * ) ) * + 64 + + + MAX ( + - 40 ) )
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT ALL - 78 + + + COUNT( * ) * + 19
----
-59

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL - 78 + + + COUNT ( * ) * + 19
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT DISTINCT ( - 87 ) * + + COUNT( * ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT ( - 87 ) * + + COUNT ( * ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT DISTINCT COUNT( * ) + - 73 - + COUNT( * ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT COUNT ( * ) + - 73 - + COUNT ( * ) AS col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4749
SELECT ALL CAST( + 49 AS SIGNED ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL CAST ( + 49 AS INTEGER ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT ALL - 6 / COUNT( * ) * CASE - 27 WHEN 55 + COUNT( * ) + + - 52 THEN + + COALESCE ( - SUM( 13 ), - 88 + 82 ) - + 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL - 6 / COUNT ( * ) * CASE - 27 WHEN 55 + COUNT ( * ) + + - 52 THEN + + COALESCE ( - SUM ( 13 ), - 88 + 82 ) - + 92 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT COUNT( * ) * + 2 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4751
SELECT COUNT ( * ) * + 2 AS col0
----
2

query II rowsort
SELECT 40 AS col1, - 33
----
40
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT ALL + 22 + - NULLIF ( - 6, + - COUNT( * ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL + 22 + - NULLIF ( - 6, + - COUNT ( * ) ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-4754
SELECT COUNT( * ), - 82 AS col2
----
1
-82

skipif mysql # not compatible
query II rowsort label-4754
SELECT COUNT ( * ), - 82 AS col2
----
1
-82

query II rowsort
SELECT + 58 - + 44 AS col2, 59 AS col2
----
14
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4756
SELECT - CASE - + 11 WHEN + COALESCE ( + - 86, - NULLIF ( 95, MIN( + CAST( NULL AS SIGNED ) ) ) * + ( - COUNT( * ) ) - - + 53 + - + 88 * - - NULLIF ( + - 94, - - 97 ) ) + + 98 + COUNT( * ) + ( + COUNT( * ) ) THEN NULL ELSE - + 45 - - + 31 + - MIN( - + 32 ) - + COUNT( * ) * + + SUM( 42 ) END AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4756
SELECT - CASE - + 11 WHEN + COALESCE ( + - 86, - NULLIF ( 95, MIN ( + CAST ( NULL AS INTEGER ) ) ) * + ( - COUNT ( * ) ) - - + 53 + - + 88 * - - NULLIF ( + - 94, - - 97 ) ) + + 98 + COUNT ( * ) + ( + COUNT ( * ) ) THEN NULL ELSE - + 45 - - + 31 + - MIN ( - + 32 ) - + COUNT ( * ) * + + SUM ( 42 ) END AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4757
SELECT - 8 AS col1, - 52 * CAST( NULL AS SIGNED ) * + + ( - 70 )
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-4757
SELECT - 8 AS col1, - 52 * CAST ( NULL AS INTEGER ) * + + ( - 70 )
----
-8
NULL

query II rowsort
SELECT ALL 20 AS col1, - 0
----
20
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT + COUNT( DISTINCT - - ( - - 15 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4759
SELECT + COUNT ( DISTINCT - - ( - - 15 ) )
----
1

query I rowsort
SELECT ALL - - ( - + 56 )
----
-56

query II rowsort
SELECT DISTINCT - - 63 AS col1, 43 AS col0
----
63
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT - COUNT( * ) - - 47 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-4762
SELECT - COUNT ( * ) - - 47 AS col2
----
46

query I rowsort
SELECT 91 * + 91 + + + 9 AS col0
----
8290

query I rowsort
SELECT ALL + + 79 * + 31 * 72 * - + 62 + + 78 AS col0
----
-10932258

query I rowsort
SELECT NULLIF ( - 75, 4 * 43 + + 56 ) - + + 29 AS col1
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4766
SELECT ALL - ( 25 ) DIV + + ( + NULLIF ( 11, COUNT( * ) ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL - ( 25 ) / + + ( + NULLIF ( 11, COUNT ( * ) ) ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4767
SELECT + - ( 67 ) AS col1, - MIN( + 94 )
----
-67
-94

skipif mysql # not compatible
query II rowsort label-4767
SELECT + - ( 67 ) AS col1, - MIN ( + 94 )
----
-67
-94

query II rowsort
SELECT 60 * - 64 * 6 - 61 AS col1, - 38
----
-23101
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT ALL COUNT( * ) * + + 55
----
55

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL COUNT ( * ) * + + 55
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT DISTINCT + 27 * 65 * 54 * + 39 * - - 25 + - 71 + SUM( ALL + 48 )
----
92400727

skipif mysql # not compatible
query I rowsort label-4770
SELECT DISTINCT + 27 * 65 * 54 * + 39 * - - 25 + - 71 + SUM ( ALL + 48 )
----
92400727

query I rowsort
SELECT 83 * - 38 AS col1
----
-3154

query I rowsort
SELECT 90 + + 81
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT ALL - CASE + + 38 WHEN 31 THEN NULL WHEN + MAX( DISTINCT + 5 ) * + 35 THEN - 17 * - 55 + + - 24 + 85 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL - CASE + + 38 WHEN 31 THEN NULL WHEN + MAX ( DISTINCT + 5 ) * + 35 THEN - 17 * - 55 + + - 24 + 85 ELSE NULL END
----
NULL

query I rowsort
SELECT 99 + 94 AS col2
----
193

query II rowsort
SELECT ALL - 9 + - 95 * + 14 AS col1, 62 AS col0
----
-1339
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT ( 53 ) * + CAST( - 25 AS SIGNED )
----
-1325

skipif mysql # not compatible
query I rowsort label-4776
SELECT ( 53 ) * + CAST ( - 25 AS INTEGER )
----
-1325

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL - CASE - 3 WHEN + - 36 THEN - 15 / + 30 + + + MAX( DISTINCT 39 ) + COALESCE ( - 34, - 33 + + ( + 77 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL - CASE - 3 WHEN + - 36 THEN - 15 / + 30 + + + MAX ( DISTINCT 39 ) + COALESCE ( - 34, - 33 + + ( + 77 ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT DISTINCT - MIN( + 15 ) + ( + 98 )
----
83

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT - MIN ( + 15 ) + ( + 98 )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4779
SELECT DISTINCT + 1 + + + 51 * - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT + 1 + + + 51 * - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + - 52 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4780
SELECT COUNT( * ) * - COUNT( * ) * - + COALESCE ( - COUNT( * ), - 21 ) * + + 99 * 72 AS col0, + COUNT( * )
----
-7128
1

skipif mysql # not compatible
query II rowsort label-4780
SELECT COUNT ( * ) * - COUNT ( * ) * - + COALESCE ( - COUNT ( * ), - 21 ) * + + 99 * 72 AS col0, + COUNT ( * )
----
-7128
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT 30 + + - ( + - NULLIF ( 82, - 23 * 4 + + + 77 ) ) * - COUNT( * ) col1
----
-52

skipif mysql # not compatible
query I rowsort label-4781
SELECT 30 + + - ( + - NULLIF ( 82, - 23 * 4 + + + 77 ) ) * - COUNT ( * ) col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4782
SELECT DISTINCT - ( + 54 ) - - MAX( + ( + + CAST( + + 66 AS SIGNED ) ) ) + 87 * - - COUNT( ALL - + 41 )
----
99

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT - ( + 54 ) - - MAX ( + ( + + CAST ( + + 66 AS INTEGER ) ) ) + 87 * - - COUNT ( ALL - + 41 )
----
99

query I rowsort
SELECT ALL - - ( - - 34 ) - 26 + 94
----
102

query I rowsort
SELECT ( + 47 ) * 13 AS col1
----
611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4785
SELECT CAST( - 54 AS SIGNED ) * + 31 - 67
----
-1741

skipif mysql # not compatible
query I rowsort label-4785
SELECT CAST ( - 54 AS INTEGER ) * + 31 - 67
----
-1741

query II rowsort
SELECT 75 + + 60 AS col2, 31 col0
----
135
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT + 46 - + 33 + - 73 * - MAX( ALL 87 ) + - COUNT( DISTINCT + 42 ) AS col1
----
6363

skipif mysql # not compatible
query I rowsort label-4787
SELECT + 46 - + 33 + - 73 * - MAX ( ALL 87 ) + - COUNT ( DISTINCT + 42 ) AS col1
----
6363

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT DISTINCT 95 - + NULLIF ( + 4, - MAX( DISTINCT 12 ) + - COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT 95 - + NULLIF ( + 4, - MAX ( DISTINCT 12 ) + - COUNT ( * ) )
----
91

query I rowsort
SELECT ALL 8 * + 38 AS col1
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT DISTINCT - 19 * MIN( ALL 89 )
----
-1691

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT - 19 * MIN ( ALL 89 )
----
-1691

query I rowsort
SELECT + COALESCE ( - 29, + ( ( - ( - ( - 48 ) ) ) ), + 30 * + COALESCE ( - ( - 35 ), + 33, + 82 ) * 56 + - + 69 ) + + 77 AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4792
SELECT CAST( NULL AS SIGNED ) + - 21, COUNT( + CAST( NULL AS SIGNED ) ) col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4792
SELECT CAST ( NULL AS INTEGER ) + - 21, COUNT ( + CAST ( NULL AS INTEGER ) ) col0
----
NULL
0

query I rowsort
SELECT + ( + + 71 )
----
71

query I rowsort
SELECT ALL - ( + 85 )
----
-85

query I rowsort
SELECT 16 * - + 83 * - 60 AS col1
----
79680

query I rowsort
SELECT ALL 47 * - 24 + - + 5 + - 1 * + 56 + - 35 AS col0
----
-1224

onlyif mysql # DIV for integer division: 
query I rowsort label-4797
SELECT 83 DIV + + ( - 9 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-4797
SELECT 83 / + + ( - 9 ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT DISTINCT COUNT( * ) * + - 82 + + 78 + + - 73
----
-77

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT COUNT ( * ) * + - 82 + + 78 + + - 73
----
-77

query I rowsort
SELECT DISTINCT 1 * 6
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4800
SELECT COUNT( * ) AS col1, 89 + + - 56 AS col0
----
1
33

skipif mysql # not compatible
query II rowsort label-4800
SELECT COUNT ( * ) AS col1, 89 + + - 56 AS col0
----
1
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT SUM( DISTINCT - 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-4801
SELECT SUM ( DISTINCT - 44 ) AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4802
SELECT + COUNT( * ) AS col1, COALESCE ( - 62, CAST( - 18 AS SIGNED ) ) + - 96 AS col0
----
1
-158

skipif mysql # not compatible
query II rowsort label-4802
SELECT + COUNT ( * ) AS col1, COALESCE ( - 62, CAST ( - 18 AS INTEGER ) ) + - 96 AS col0
----
1
-158

onlyif mysql # DIV for integer division: 
query I rowsort label-4803
SELECT + 42 DIV + - 42 col2
----
-1

skipif mysql # not compatible
query I rowsort label-4803
SELECT + 42 / + - 42 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT MAX( + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-4804
SELECT MAX ( + 71 )
----
71

query II rowsort
SELECT + 9 * - 10 - + 28 col2, ( + - 57 ) + + 7
----
-118
-50

query I rowsort
SELECT ALL 0 * - - 43 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4807
SELECT + COUNT( * ) DIV - + 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4807
SELECT + COUNT ( * ) / - + 73 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4808
SELECT DISTINCT + 37 col0, - 64 DIV - - 74 col1
----
37
0

skipif mysql # not compatible
query II rowsort label-4808
SELECT DISTINCT + 37 col0, - 64 / - - 74 col1
----
37
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT ALL + CAST( NULL AS SIGNED ) + + - 92 + 47 * - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL + CAST ( NULL AS INTEGER ) + + - 92 + 47 * - 21 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 82 AS col2, - 29 AS col1
----
82
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4811
SELECT DISTINCT + CASE + COUNT( * ) WHEN + 26 THEN NULL WHEN - 60 * + 31 THEN NULL ELSE + + 81 * + - COUNT( * ) * + 96 END AS col2, 29 - CAST( NULL AS SIGNED ) + + 76 * - + CASE - - ( + + 93 ) WHEN 8 THEN + ( MAX( ALL - + 46 ) ) - + 40 / NULLIF ( - COUNT( * ), + CASE + - 87 WHEN + - 78 / + + 71 * 5 * 7 + - + ( + 76 ) THEN NULL WHEN - 92 * + + COUNT( * ) + - 4 + + + CASE + 47 WHEN - + 31 * + MIN( DISTINCT - - 83 ) THEN + + 71 + 16 END THEN - 58 WHEN - - 43 / + COALESCE ( - + COUNT( * ), 14 * 59 * + COALESCE ( - + CAST( NULL AS SIGNED ), - 70 + - 94, + 6 * - COUNT( * ) ) * + 2, 47 ) THEN - 54 * + 31 END ) * + COUNT( * ) END AS col2
----
-7776
NULL

skipif mysql # not compatible
query II rowsort label-4811
SELECT DISTINCT + CASE + COUNT ( * ) WHEN + 26 THEN NULL WHEN - 60 * + 31 THEN NULL ELSE + + 81 * + - COUNT ( * ) * + 96 END AS col2, 29 - CAST ( NULL AS INTEGER ) + + 76 * - + CASE - - ( + + 93 ) WHEN 8 THEN + ( MAX ( ALL - + 46 ) ) - + 40 / NULLIF ( - COUNT ( * ), + CASE + - 87 WHEN + - 78 / + + 71 * 5 * 7 + - + ( + 76 ) THEN NULL WHEN - 92 * + + COUNT ( * ) + - 4 + + + CASE + 47 WHEN - + 31 * + MIN ( DISTINCT - - 83 ) THEN + + 71 + 16 END THEN - 58 WHEN - - 43 / + COALESCE ( - + COUNT ( * ), 14 * 59 * + COALESCE ( - + CAST ( NULL AS INTEGER ), - 70 + - 94, + 6 * - COUNT ( * ) ) * + 2, 47 ) THEN - 54 * + 31 END ) * + COUNT ( * ) END AS col2
----
-7776
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4812
SELECT 79 AS col2, - ( + 6 ) * + + 84 + 19 - - - COUNT( * ) AS col1
----
79
-486

skipif mysql # not compatible
query II rowsort label-4812
SELECT 79 AS col2, - ( + 6 ) * + + 84 + 19 - - - COUNT ( * ) AS col1
----
79
-486

onlyif mysql # aggregate syntax: 
query II rowsort label-4813
SELECT DISTINCT COUNT( * ) col1, 91
----
1
91

skipif mysql # not compatible
query II rowsort label-4813
SELECT DISTINCT COUNT ( * ) col1, 91
----
1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT ALL COUNT( ALL - + 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL COUNT ( ALL - + 29 ) AS col1
----
1

query I rowsort
SELECT - 0 * - 27 - + + 77 + + 97 AS col1
----
20

query I rowsort
SELECT - 44 + - 46 + - ( + 77 )
----
-167

query I rowsort
SELECT DISTINCT + ( - 87 )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4818
SELECT - - CASE - 57 WHEN + COUNT( * ) THEN + + COUNT( - 69 ) WHEN - - NULLIF ( - 39, + 9 ) THEN 64 ELSE 34 END * 97 - CASE - - 17 WHEN - - 68 * - - ( ( - CAST( NULL AS SIGNED ) ) ) THEN NULL WHEN + 52 THEN + 13 ELSE + ( - 83 ) END
----
3381

skipif mysql # not compatible
query I rowsort label-4818
SELECT - - CASE - 57 WHEN + COUNT ( * ) THEN + + COUNT ( - 69 ) WHEN - - NULLIF ( - 39, + 9 ) THEN 64 ELSE 34 END * 97 - CASE - - 17 WHEN - - 68 * - - ( ( - CAST ( NULL AS INTEGER ) ) ) THEN NULL WHEN + 52 THEN + 13 ELSE + ( - 83 ) END
----
3381

query I rowsort
SELECT ALL - 65 * + - 32 col1
----
2080

onlyif mysql # DIV for integer division: 
query I rowsort label-4820
SELECT DISTINCT - + 70 * 75 DIV - - ( 4 ) + - + 40 AS col0
----
-1352

skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT - + 70 * 75 / - - ( 4 ) + - + 40 AS col0
----
-1352

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4821
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, + 39
----
NULL
39

skipif mysql # not compatible
query II rowsort label-4821
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + 39
----
NULL
39

query I rowsort
SELECT ALL - 20 * 98 AS col1
----
-1960

onlyif mysql # DIV for integer division: 
query I rowsort label-4823
SELECT - - 15 DIV 16
----
0

skipif mysql # not compatible
query I rowsort label-4823
SELECT - - 15 / 16
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4824
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( * ) * 67 AS col2, - ( COUNT( * ) ) + - 75 AS col0
----
NULL
-76

skipif mysql # not compatible
query II rowsort label-4824
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( * ) * 67 AS col2, - ( COUNT ( * ) ) + - 75 AS col0
----
NULL
-76

query I rowsort
SELECT - ( 82 ) + 75
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT ALL + 90 DIV - ( - NULLIF ( - NULLIF ( - + 85, + + 5 ), - + 97 ) ) + - 12 DIV - 60 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL + 90 / - ( - NULLIF ( - NULLIF ( - + 85, + + 5 ), - + 97 ) ) + - 12 / - 60 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4827
SELECT + + ( + 33 ) DIV SUM( 71 ) DIV 42 - + 97
----
-97

skipif mysql # not compatible
query I rowsort label-4827
SELECT + + ( + 33 ) / SUM ( 71 ) / 42 - + 97
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT + SUM( DISTINCT + - 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-4828
SELECT + SUM ( DISTINCT + - 58 ) AS col1
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4829
SELECT ALL + 25 DIV + COUNT( * ) + COALESCE ( - 95, - 82, - 85 * - + 85 + + + 59 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL + 25 / + COUNT ( * ) + COALESCE ( - 95, - 82, - 85 * - + 85 + + + 59 ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT - - 83 - - COUNT( * ) + + 81 - 35
----
130

skipif mysql # not compatible
query I rowsort label-4830
SELECT - - 83 - - COUNT ( * ) + + 81 - 35
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ( 96 ) * - COALESCE ( 2, + - 68, - COUNT( * ) ) + + 35
----
-157

skipif mysql # not compatible
query I rowsort label-4831
SELECT ( 96 ) * - COALESCE ( 2, + - 68, - COUNT ( * ) ) + + 35
----
-157

query I rowsort
SELECT ALL + NULLIF ( + 84, - 86 ) AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4833
SELECT ( - COALESCE ( - COUNT( * ), + COUNT( * ), - - NULLIF ( - 54, - 82 * - 58 + + SUM( ALL 26 ) DIV + COUNT( DISTINCT 33 ) DIV - 83 ) * + CAST( 79 AS SIGNED ) + - COUNT( * ) + 66 * + - 89 DIV + + COUNT( * ) + 83 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4833
SELECT ( - COALESCE ( - COUNT ( * ), + COUNT ( * ), - - NULLIF ( - 54, - 82 * - 58 + + SUM ( ALL 26 ) / + COUNT ( DISTINCT 33 ) / - 83 ) * + CAST ( 79 AS INTEGER ) + - COUNT ( * ) + 66 * + - 89 / + + COUNT ( * ) + 83 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT + CASE 56 WHEN - - 21 * + + 22 * - - 20 THEN + + COUNT( * ) WHEN 42 + - 74 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4834
SELECT + CASE 56 WHEN - - 21 * + + 22 * - - 20 THEN + + COUNT ( * ) WHEN 42 + - 74 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4835
SELECT + 30 DIV 92 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4835
SELECT + 30 / 92 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT + CASE 29 WHEN COUNT( * ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT + CASE 29 WHEN COUNT ( * ) THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT ALL - 74 * - 22 * + COUNT( * ) + - + 94
----
1534

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL - 74 * - 22 * + COUNT ( * ) + - + 94
----
1534

query I rowsort
SELECT - 30 + - - 40 + - 68
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4839
SELECT 46 DIV 61 - + ( - 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4839
SELECT 46 / 61 - + ( - 1 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + ( + + 22 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL - COUNT( * ) * + + 9 * COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL - COUNT ( * ) * + + 9 * COUNT ( * ) AS col1
----
-9

query I rowsort
SELECT + 0 * - 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT ALL + SUM( + + 74 )
----
74

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL + SUM ( + + 74 )
----
74

query I rowsort
SELECT + 52 + 9
----
61

query I rowsort
SELECT - 64 * 82
----
-5248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4846
SELECT DISTINCT SUM( CAST( NULL AS SIGNED ) ) / 13 - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT SUM ( CAST ( NULL AS INTEGER ) ) / 13 - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4847
SELECT + CAST( - ( - ( MIN( - ( 63 ) ) ) ) AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-4847
SELECT + CAST ( - ( - ( MIN ( - ( 63 ) ) ) ) AS INTEGER )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4848
SELECT + COUNT( * ) DIV - - 35 * - + 60 DIV + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4848
SELECT + COUNT ( * ) / - - 35 * - + 60 / + 57 AS col0
----
0

query I rowsort
SELECT + 34 + + + 57
----
91

query I rowsort
SELECT DISTINCT 45 * 30 AS col2
----
1350

query I rowsort
SELECT ALL + 16 * - + 27 AS col2
----
-432

query I rowsort
SELECT ALL 34 * 94 + - 50 * - 54 AS col2
----
5896

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT + 74 + + COALESCE ( - + COUNT( * ), 63 * - - 11 + 52 )
----
73

skipif mysql # not compatible
query I rowsort label-4853
SELECT + 74 + + COALESCE ( - + COUNT ( * ), 63 * - - 11 + 52 )
----
73

query I rowsort
SELECT DISTINCT NULLIF ( + 29, - ( + 74 ) )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT ALL 57 + - - COALESCE ( + 0, 57 * + COUNT( * ) ) + + 92 - - COUNT( * ) * COALESCE ( - 77, 96 * + 76 + - 6 * 78, - 52 )
----
72

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL 57 + - - COALESCE ( + 0, 57 * + COUNT ( * ) ) + + 92 - - COUNT ( * ) * COALESCE ( - 77, 96 * + 76 + - 6 * 78, - 52 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4856
SELECT - 1 * + - 96 * - MAX( ALL CAST( 32 AS SIGNED ) ) * + + 90
----
-276480

skipif mysql # not compatible
query I rowsort label-4856
SELECT - 1 * + - 96 * - MAX ( ALL CAST ( 32 AS INTEGER ) ) * + + 90
----
-276480

query I rowsort
SELECT + + 53 + ( + 58 ) AS col0
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4858
SELECT DISTINCT 19 + + NULLIF ( + - CAST( - - 97 AS SIGNED ), + + ( + COUNT( * ) ) )
----
-78

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT 19 + + NULLIF ( + - CAST ( - - 97 AS INTEGER ), + + ( + COUNT ( * ) ) )
----
-78

query II rowsort
SELECT ALL - + 92 * - 51 AS col1, 80
----
4692
80

query II rowsort
SELECT + ( - - 23 ) AS col2, 66
----
23
66

query I rowsort
SELECT DISTINCT - 39 + + 15
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4862
SELECT DISTINCT - 76 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT - 76 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT ALL - - COUNT( * ) * 93 - - 41 AS col1
----
134

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL - - COUNT ( * ) * 93 - - 41 AS col1
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT - 3 + MIN( 68 )
----
65

skipif mysql # not compatible
query I rowsort label-4864
SELECT - 3 + MIN ( 68 )
----
65

query I rowsort
SELECT ALL - 50 + + + 90 * 52 + 69
----
4699

query I rowsort
SELECT 83 * + 88 AS col0
----
7304

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4867
SELECT 89 DIV + CAST( + 41 AS SIGNED ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4867
SELECT 89 / + CAST ( + 41 AS INTEGER ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4868
SELECT - 76 * - COUNT( * ) + - 20 - + 94 + - 15 + - 62 DIV + - 49 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4868
SELECT - 76 * - COUNT ( * ) + - 20 - + 94 + - 15 + - 62 / + - 49 AS col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4869
SELECT ALL - CASE + 57 WHEN - 51 * + 36 THEN NULL WHEN 51 THEN - CAST( NULL AS SIGNED ) ELSE NULL END AS col2, + 43
----
NULL
43

skipif mysql # not compatible
query II rowsort label-4869
SELECT ALL - CASE + 57 WHEN - 51 * + 36 THEN NULL WHEN 51 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END AS col2, + 43
----
NULL
43

query I rowsort
SELECT ALL - 15 - 69 AS col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4871
SELECT DISTINCT - 33 - - + ( - 55 ) + + + 69 + + CASE + 27 WHEN + 44 THEN + + COALESCE ( - CAST( + + 41 AS SIGNED ), - 73, - 71, 32 ) WHEN 6 THEN NULL END * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4871
SELECT DISTINCT - 33 - - + ( - 55 ) + + + 69 + + CASE + 27 WHEN + 44 THEN + + COALESCE ( - CAST ( + + 41 AS INTEGER ), - 73, - 71, 32 ) WHEN 6 THEN NULL END * 72
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4872
SELECT DISTINCT ( 39 ) * - 1, - COUNT( * ) DIV + 15 AS col0
----
-39
0

skipif mysql # not compatible
query II rowsort label-4872
SELECT DISTINCT ( 39 ) * - 1, - COUNT ( * ) / + 15 AS col0
----
-39
0

query I rowsort
SELECT ALL 71 * - 18 AS col1
----
-1278

query I rowsort
SELECT 24 * + 26 AS col2
----
624

onlyif mysql # DIV for integer division: 
query I rowsort label-4875
SELECT ALL + 61 * 26 DIV 78 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL + 61 * 26 / 78 AS col0
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4876
SELECT + 85, + 8 * SUM( + 64 ) AS col2
----
85
512

skipif mysql # not compatible
query II rowsort label-4876
SELECT + 85, + 8 * SUM ( + 64 ) AS col2
----
85
512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT DISTINCT - CAST( - 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT - CAST ( - 33 AS INTEGER )
----
33

query I rowsort
SELECT ALL - 88 * 60
----
-5280

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT 14 - - MIN( ALL + 22 ) + - NULLIF ( + 34, - - 42 - 13 ) * 56 + 93 - - CASE 27 WHEN - 20 THEN - 79 END * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4879
SELECT 14 - - MIN ( ALL + 22 ) + - NULLIF ( + 34, - - 42 - 13 ) * 56 + 93 - - CASE 27 WHEN - 20 THEN - 79 END * 89
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4880
SELECT - 62 * + 33 - - 5 AS col1, COUNT( * )
----
-2041
1

skipif mysql # not compatible
query II rowsort label-4880
SELECT - 62 * + 33 - - 5 AS col1, COUNT ( * )
----
-2041
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4881
SELECT DISTINCT - CAST( + - 30 AS SIGNED ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4881
SELECT DISTINCT - CAST ( + - 30 AS INTEGER ) AS col2
----
30

query I rowsort
SELECT 40 * NULLIF ( - 99, + + 88 ) * 52 + - 22 * 14 AS col2
----
-206228

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT - CASE - 26 WHEN - 9 * 10 THEN 46 - + 46 WHEN - CASE COUNT( * ) WHEN ( - 64 ) THEN + 90 END * 21 + 4 * + 20 THEN 95 + + 80 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT - CASE - 26 WHEN - 9 * 10 THEN 46 - + 46 WHEN - CASE COUNT ( * ) WHEN ( - 64 ) THEN + 90 END * 21 + 4 * + 20 THEN 95 + + 80 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4884
SELECT ALL 57 DIV 22 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL 57 / 22 AS col0
----
2

query I rowsort
SELECT 29 * - 52 AS col1
----
-1508

query I rowsort
SELECT 26 * 62 - 18 * 98 AS col0
----
-152

query I rowsort
SELECT ALL 62 + 18 * 47 AS col1
----
908

query I rowsort
SELECT ALL 21 + - 53 AS col2
----
-32

query I rowsort
SELECT 58 + + 24 AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4890
SELECT DISTINCT + ( + 60 ) DIV 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT + ( + 60 ) / 96 AS col2
----
0

query I rowsort
SELECT ALL - 81 + - 89
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL COUNT( * ) + + 28
----
29

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL COUNT ( * ) + + 28
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT DISTINCT 20 * NULLIF ( - 11 * - 99, + COUNT( * ) )
----
21780

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT 20 * NULLIF ( - 11 * - 99, + COUNT ( * ) )
----
21780

query I rowsort
SELECT ALL 85 + 46
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT COUNT( ALL + 60 ) * 91
----
91

skipif mysql # not compatible
query I rowsort label-4895
SELECT COUNT ( ALL + 60 ) * 91
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4896
SELECT CAST( + 30 AS SIGNED ) * COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4896
SELECT CAST ( + 30 AS INTEGER ) * COUNT ( * ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT 89 + + COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-4897
SELECT 89 + + COUNT ( * ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT CASE - COALESCE ( + SUM( ALL 72 ), 38 + COALESCE ( + 60, NULLIF ( 41, - 88 * + 77 + 75 * 70 ), 59 * + COUNT( * ) ) ) WHEN 13 THEN + 22 WHEN - COUNT( * ) THEN NULL ELSE - 50 * + ( 76 ) END + ( COUNT( * ) )
----
-3799

skipif mysql # not compatible
query I rowsort label-4898
SELECT CASE - COALESCE ( + SUM ( ALL 72 ), 38 + COALESCE ( + 60, NULLIF ( 41, - 88 * + 77 + 75 * 70 ), 59 * + COUNT ( * ) ) ) WHEN 13 THEN + 22 WHEN - COUNT ( * ) THEN NULL ELSE - 50 * + ( 76 ) END + ( COUNT ( * ) )
----
-3799

query I rowsort
SELECT DISTINCT + 74 * - 3
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT DISTINCT COUNT( * ) - 92
----
-91

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT COUNT ( * ) - 92
----
-91

query I rowsort
SELECT 18 * - 8 col0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT 24 - COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4902
SELECT 24 - COUNT ( * ) AS col1
----
23

query I rowsort
SELECT DISTINCT COALESCE ( 34, + 97 ) * 62
----
2108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT CAST( NULL AS SIGNED ) * ( - 51 * 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT CAST ( NULL AS INTEGER ) * ( - 51 * 74 )
----
NULL

query I rowsort
SELECT - 58 * - 89 + + 53 col2
----
5215

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT ALL - CASE + 5 WHEN COUNT( 77 ) THEN NULL WHEN 2 * + 30 THEN MIN( - 1 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL - CASE + 5 WHEN COUNT ( 77 ) THEN NULL WHEN 2 * + 30 THEN MIN ( - 1 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4907
SELECT CAST( NULL AS SIGNED ) + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4907
SELECT CAST ( NULL AS INTEGER ) + 72
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4908
SELECT 50 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT 50 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 24 + + COALESCE ( NULLIF ( 90, + 79 / 51 ), - 31 )
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-4910
SELECT 20 DIV 53 - 50
----
-50

skipif mysql # not compatible
query I rowsort label-4910
SELECT 20 / 53 - 50
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-4911
SELECT 40 DIV 38
----
1

skipif mysql # not compatible
query I rowsort label-4911
SELECT 40 / 38
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4912
SELECT COUNT( * ) DIV COUNT( * ) + - 41 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-4912
SELECT COUNT ( * ) / COUNT ( * ) + - 41 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT ALL - COALESCE ( + 53, 65, + CASE + 25 WHEN - 58 THEN NULL WHEN - COUNT( * ) + 7 THEN NULL ELSE + 37 END * - COUNT( * ) )
----
-53

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL - COALESCE ( + 53, 65, + CASE + 25 WHEN - 58 THEN NULL WHEN - COUNT ( * ) + 7 THEN NULL ELSE + 37 END * - COUNT ( * ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT ALL - COUNT( DISTINCT + 44 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL - COUNT ( DISTINCT + 44 ) AS col2
----
-1

query I rowsort
SELECT ALL - 94 + + 57
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4916
SELECT + 73 DIV + ( 95 )
----
0

skipif mysql # not compatible
query I rowsort label-4916
SELECT + 73 / + ( 95 )
----
0

query I rowsort
SELECT DISTINCT - - 63 + + 64 * - 84 AS col2
----
-5313

query I rowsort
SELECT 39 * 31 + - 16 AS col1
----
1193

query I rowsort
SELECT ALL - + 13 + + 59 AS col1
----
46

query I rowsort
SELECT DISTINCT + + 51 * - 52
----
-2652

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4921
SELECT + 13 * - CASE 29 WHEN + 67 * - AVG ( ALL - 78 ) THEN NULL WHEN 47 THEN - 73 + + 29 DIV MIN( ALL - 6 ) ELSE - 81 - + 11 END
----
1196

skipif mysql # not compatible
query I rowsort label-4921
SELECT + 13 * - CASE 29 WHEN + 67 * - AVG ( ALL - 78 ) THEN NULL WHEN 47 THEN - 73 + + 29 / MIN ( ALL - 6 ) ELSE - 81 - + 11 END
----
1196

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT - COUNT( * ) + + 16 * 85
----
1359

skipif mysql # not compatible
query I rowsort label-4922
SELECT - COUNT ( * ) + + 16 * 85
----
1359

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT ALL + - MAX( 42 ) + + NULLIF ( 44 - - 60, 1 * - COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL + - MAX ( 42 ) + + NULLIF ( 44 - - 60, 1 * - COUNT ( * ) )
----
62

query I rowsort
SELECT ALL - - ( 75 ) + + 89 col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT ALL - 50 + 25 * NULLIF ( + COUNT( * ), 56 )
----
-25

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL - 50 + 25 * NULLIF ( + COUNT ( * ), 56 )
----
-25

query I rowsort
SELECT ALL 80 + 13 AS col2
----
93

query I rowsort
SELECT + + 70 + 63 AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT - MAX( ALL ( 0 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4928
SELECT - MAX ( ALL ( 0 ) ) AS col2
----
0

query I rowsort
SELECT ALL - 90 - 94 * 32
----
-3098

query I rowsort
SELECT - + 26 * 22 AS col0
----
-572

query I rowsort
SELECT + + 20 + 68
----
88

query I rowsort
SELECT - 25 + + 69
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT DISTINCT 64 * + CASE 80 WHEN + 29 - COUNT( * ) THEN - 69 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT 64 * + CASE 80 WHEN + 29 - COUNT ( * ) THEN - 69 ELSE NULL END
----
NULL

query I rowsort
SELECT - 38 + - 21
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4935
SELECT ALL SUM( CAST( NULL AS SIGNED ) ) * + MIN( ALL + 34 * - ( 39 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) * + MIN ( ALL + 34 * - ( 39 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 33 - 25
----
8

query I rowsort
SELECT + 1 + + 31 * - ( 59 ) AS col0
----
-1828

query I rowsort
SELECT + 60 * - - 5 AS col2
----
300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4939
SELECT ALL 65 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL 65 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 77 + + + 35 * ( + 37 )
----
1372

query I rowsort
SELECT + 36 * 5
----
180

query I rowsort
SELECT + 53 + + - 94 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ( - + SUM( 4 ) ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4943
SELECT ( - + SUM ( 4 ) ) AS col0
----
-4

query I rowsort
SELECT + 29 * - 40 + 82 AS col0
----
-1078

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT ( - CASE - 12 WHEN + ( - 51 ) THEN 43 * - 85 + + 89 * CASE 38 + 76 WHEN - MIN( - 29 ) THEN + ( MAX( ALL 89 ) ) ELSE NULL END END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT ( - CASE - 12 WHEN + ( - 51 ) THEN 43 * - 85 + + 89 * CASE 38 + 76 WHEN - MIN ( - 29 ) THEN + ( MAX ( ALL 89 ) ) ELSE NULL END END )
----
NULL

query I rowsort
SELECT ALL + 72 * 4 * 89 + - 82
----
25550

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT CASE + + 56 WHEN - ( 55 ) - + COUNT( * ) THEN 22 - 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4947
SELECT CASE + + 56 WHEN - ( 55 ) - + COUNT ( * ) THEN 22 - 2 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4948
SELECT CASE + NULLIF ( + 49, - 14 ) WHEN - 63 THEN NULL WHEN 68 THEN COUNT( * ) * 85 ELSE CASE 68 WHEN - 99 THEN NULL WHEN + 15 THEN NULL ELSE + 3 * 67 - CAST( NULL AS SIGNED ) * - 42 END + - ( 55 + + ( COUNT( * ) - 91 * + 23 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4948
SELECT CASE + NULLIF ( + 49, - 14 ) WHEN - 63 THEN NULL WHEN 68 THEN COUNT ( * ) * 85 ELSE CASE 68 WHEN - 99 THEN NULL WHEN + 15 THEN NULL ELSE + 3 * 67 - CAST ( NULL AS INTEGER ) * - 42 END + - ( 55 + + ( COUNT ( * ) - 91 * + 23 ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4949
SELECT + 34 + - - CAST( 23 AS SIGNED ) - 34 * - 0 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4949
SELECT + 34 + - - CAST ( 23 AS INTEGER ) - 34 * - 0 AS col2
----
57

query I rowsort
SELECT - 40 * + - 42 AS col0
----
1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4951
SELECT - CAST( + 28 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-4951
SELECT - CAST ( + 28 AS INTEGER )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT - + COUNT( * ) * - 27 + - ( NULLIF ( - NULLIF ( - 83, + ( 35 ) * 23 ), 52 / - 35 ) ) - - 98 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4952
SELECT - + COUNT ( * ) * - 27 + - ( NULLIF ( - NULLIF ( - 83, + ( 35 ) * 23 ), 52 / - 35 ) ) - - 98 AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4953
SELECT - CAST( 14 AS SIGNED ) * - 46 - + COUNT( * ) AS col2
----
643

skipif mysql # not compatible
query I rowsort label-4953
SELECT - CAST ( 14 AS INTEGER ) * - 46 - + COUNT ( * ) AS col2
----
643

query I rowsort
SELECT - 11 + + 86 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT ALL 82 * + 71 + ( - MAX( - 28 ) ) AS col0
----
5850

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL 82 * + 71 + ( - MAX ( - 28 ) ) AS col0
----
5850

query I rowsort
SELECT DISTINCT + ( + + 56 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4957
SELECT ALL 86 * + - 2 * - CAST( + 4 AS SIGNED ) + 32
----
720

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL 86 * + - 2 * - CAST ( + 4 AS INTEGER ) + 32
----
720

query I rowsort
SELECT - - 16 * - 93 * - 87 + + 49
----
129505

onlyif mysql # DIV for integer division: 
query I rowsort label-4959
SELECT ALL - 10 DIV + 89 * ( - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL - 10 / + 89 * ( - 86 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT + - COUNT( * ) * + 39 - SUM( DISTINCT 2 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-4960
SELECT + - COUNT ( * ) * + 39 - SUM ( DISTINCT 2 ) AS col2
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4961
SELECT - + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4961
SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT 66 * + 48 - + 42 * 21 AS col2
----
2286

query I rowsort
SELECT ALL - ( - 58 ) * + 59 - - 17
----
3439

query I rowsort
SELECT - 0 * + - 59 + 48
----
48

query I rowsort
SELECT - 70 * + - 16 * 25 AS col1
----
28000

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ALL + + SUM( + 6 ) * - 99
----
-594

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL + + SUM ( + 6 ) * - 99
----
-594

query I rowsort
SELECT - 27 + + + 72 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT ALL + - 14 * + COUNT( DISTINCT - 7 ) + + 11 * 82 AS col1
----
888

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL + - 14 * + COUNT ( DISTINCT - 7 ) + + 11 * 82 AS col1
----
888

query I rowsort
SELECT - 48 + - 35 AS col1
----
-83

query I rowsort
SELECT + 54 * - - 58 * NULLIF ( ( 36 ), 35 )
----
112752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4971
SELECT ALL CAST( + + 19 AS SIGNED ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL CAST ( + + 19 AS INTEGER ) AS col1
----
19

query I rowsort
SELECT - 41 + + 89 AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-4973
SELECT + 6 DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-4973
SELECT + 6 / - 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT - 94 + + ( COUNT( * ) ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-4974
SELECT - 94 + + ( COUNT ( * ) ) AS col0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT DISTINCT CAST( 97 AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT CAST ( 97 AS INTEGER )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4976
SELECT DISTINCT - 45 DIV + COUNT( * ) + + + 76
----
31

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT - 45 / + COUNT ( * ) + + + 76
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4977
SELECT - 34 DIV + - 48 * - 30 * - 78
----
0

skipif mysql # not compatible
query I rowsort label-4977
SELECT - 34 / + - 48 * - 30 * - 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT 30 * MAX( ALL - 89 ) + 89
----
-2581

skipif mysql # not compatible
query I rowsort label-4978
SELECT 30 * MAX ( ALL - 89 ) + 89
----
-2581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4979
SELECT + 28 + + - 53 * - ( CAST( NULL AS SIGNED ) ) + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT + 28 + + - 53 * - ( CAST ( NULL AS INTEGER ) ) + 82 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4980
SELECT ALL - 13 DIV 54 + - 60
----
-60

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL - 13 / 54 + - 60
----
-60

query I rowsort
SELECT + 82 + - - 83 AS col0
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4982
SELECT ALL - - COUNT( * ) DIV + 13 * - 61 + 85 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL - - COUNT ( * ) / + 13 * - 61 + 85 AS col1
----
85

query II rowsort
SELECT - 57, - 94 AS col1
----
-57
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT + + NULLIF ( + COUNT( * ), + + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4984
SELECT + + NULLIF ( + COUNT ( * ), + + COUNT ( * ) ) AS col1
----
NULL

query II rowsort
SELECT ALL - 7 AS col1, - ( + 2 ) * - 31
----
-7
62

query I rowsort
SELECT DISTINCT 96 - - 99 col0
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4987
SELECT + 42 AS col0, NULLIF ( ( 86 ), 69 ) DIV CASE 31 WHEN + 91 * 35 THEN 50 * + 32 + - NULLIF ( - 28, + 6 ) * + COUNT( * ) ELSE 70 + 53 END
----
42
0

skipif mysql # not compatible
query II rowsort label-4987
SELECT + 42 AS col0, NULLIF ( ( 86 ), 69 ) / CASE 31 WHEN + 91 * 35 THEN 50 * + 32 + - NULLIF ( - 28, + 6 ) * + COUNT ( * ) ELSE 70 + 53 END
----
42
0

query I rowsort
SELECT - 45 + 57 - - 98 * 15 * 40
----
58812

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT COUNT( * ) * - 20 + - 62
----
-82

skipif mysql # not compatible
query I rowsort label-4989
SELECT COUNT ( * ) * - 20 + - 62
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT 45 / - + AVG ( 29 ) * - CASE + 78 WHEN - COUNT( * ) * + 47 THEN ( + 8 ) * 33 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4990
SELECT 45 / - + AVG ( 29 ) * - CASE + 78 WHEN - COUNT ( * ) * + 47 THEN ( + 8 ) * 33 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT - AVG ( DISTINCT CASE + 15 WHEN 93 + + 20 THEN 88 + + 40 ELSE NULL END ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4991
SELECT - AVG ( DISTINCT CASE + 15 WHEN 93 + + 20 THEN 88 + + 40 ELSE NULL END ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT + 33 * - + 71 + + - 7 * 55
----
-2728

query I rowsort
SELECT DISTINCT + 87 * 13 AS col1
----
1131

query I rowsort
SELECT ALL - COALESCE ( + 60, 9 ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT + 20 + - COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4995
SELECT + 20 + - COUNT ( * ) AS col1
----
19

query I rowsort
SELECT + NULLIF ( + 96, - 40 ) * + 88
----
8448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4997
SELECT ALL + CAST( NULL AS SIGNED ), COUNT( * ) DIV + 68 col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4997
SELECT ALL + CAST ( NULL AS INTEGER ), COUNT ( * ) / + 68 col1
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4998
SELECT DISTINCT - 5 DIV - - CAST( + 10 AS SIGNED ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT - 5 / - - CAST ( + 10 AS INTEGER ) + COUNT ( * )
----
1

query I rowsort
SELECT 34 + 39 - + 25
----
48

query I rowsort
SELECT 8 * - 16 * - 90
----
11520

query I rowsort
SELECT 43 + + 46 AS col1
----
89

query II rowsort
SELECT 33 * + 99, 79 + - 44 AS col1
----
3267
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ALL - 25 + + MIN( ALL + - 12 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL - 25 + + MIN ( ALL + - 12 ) AS col0
----
-37

query I rowsort
SELECT DISTINCT - 52 * COALESCE ( - 68, - + 75 ) AS col1
----
3536

query I rowsort
SELECT ALL 58 + + + 38 col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5006
SELECT 59 + 88 + + MAX( + 24 ) * - CASE 29 WHEN - CAST( NULL AS SIGNED ) * + SUM( 74 ) + - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) THEN NULL WHEN 69 * 31 + + 88 THEN 26 * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT 59 + 88 + + MAX ( + 24 ) * - CASE 29 WHEN - CAST ( NULL AS INTEGER ) * + SUM ( 74 ) + - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) THEN NULL WHEN 69 * 31 + + 88 THEN 26 * - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - ( + 1 ) + + ( 44 ) col1
----
43

query I rowsort
SELECT 49 * - 49
----
-2401

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT MAX( + 70 ) * + - 53
----
-3710

skipif mysql # not compatible
query I rowsort label-5009
SELECT MAX ( + 70 ) * + - 53
----
-3710

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT DISTINCT - SUM( 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT - SUM ( 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT ALL COALESCE ( COUNT( * ), + ( - + 23 ), 79 * 54 ) - NULLIF ( 29, 27 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL COALESCE ( COUNT ( * ), + ( - + 23 ), 79 * 54 ) - NULLIF ( 29, 27 ) AS col0
----
-28

query I rowsort
SELECT 42 * - 49
----
-2058

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT 91 + MAX( DISTINCT 56 )
----
147

skipif mysql # not compatible
query I rowsort label-5013
SELECT 91 + MAX ( DISTINCT 56 )
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-5014
SELECT 34 DIV 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5014
SELECT 34 / 50 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5015
SELECT ALL + + CAST( NULL AS SIGNED ) * - + 64 / + - MAX( DISTINCT + 10 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL + + CAST ( NULL AS INTEGER ) * - + 64 / + - MAX ( DISTINCT + 10 ) AS col2
----
NULL

query I rowsort
SELECT COALESCE ( - 13, ( + - 17 ), 78 ) * - 10 AS col1
----
130

query I rowsort
SELECT - 59 + - 74 AS col1
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT ( COUNT( * ) ) * 20 + 73 + 94 AS col1
----
187

skipif mysql # not compatible
query I rowsort label-5018
SELECT ( COUNT ( * ) ) * 20 + 73 + 94 AS col1
----
187

query I rowsort
SELECT 91 * - ( + 63 ) AS col2
----
-5733

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5020
SELECT + 9 + - COUNT( * ) * - - CAST( 59 AS SIGNED ) + + COUNT( * ) * 79 col0
----
29

skipif mysql # not compatible
query I rowsort label-5020
SELECT + 9 + - COUNT ( * ) * - - CAST ( 59 AS INTEGER ) + + COUNT ( * ) * 79 col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT NULLIF ( + - 55, - + 31 * - + COALESCE ( + 87, COUNT( * ) ) ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-5021
SELECT NULLIF ( + - 55, - + 31 * - + COALESCE ( + 87, COUNT ( * ) ) ) AS col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5022
SELECT ALL - + ( + CASE - 56 WHEN + 21 THEN 96 * 66 WHEN - 37 + + 68 THEN - 74 END ) * NULLIF ( 36 * 16, 21 - + CAST( + 0 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL - + ( + CASE - 56 WHEN + 21 THEN 96 * 66 WHEN - 37 + + 68 THEN - 74 END ) * NULLIF ( 36 * 16, 21 - + CAST ( + 0 AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT + 41 * - - ( + + COUNT( * ) ) * - - 20
----
820

skipif mysql # not compatible
query I rowsort label-5023
SELECT + 41 * - - ( + + COUNT ( * ) ) * - - 20
----
820

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT - - MIN( - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-5024
SELECT - - MIN ( - 32 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5025
SELECT NULLIF ( CAST( NULL AS SIGNED ), 79 ) - - 43 + + + 38 - - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT NULLIF ( CAST ( NULL AS INTEGER ), 79 ) - - 43 + + + 38 - - 16
----
NULL

query II rowsort
SELECT 66 AS col0, 99 AS col1
----
66
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5027
SELECT 43 DIV - COUNT( * ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-5027
SELECT 43 / - COUNT ( * ) AS col1
----
-43

query I rowsort
SELECT ALL NULLIF ( - 75, + 52 ) + - - ( - 93 ) AS col1
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT COUNT( * ) * 85
----
85

skipif mysql # not compatible
query I rowsort label-5029
SELECT COUNT ( * ) * 85
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT ALL MAX( ALL 1 ) * + 49
----
49

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL MAX ( ALL 1 ) * + 49
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5031
SELECT ( - 31 ) DIV + - COALESCE ( COUNT( * ), - 92 * + MAX( DISTINCT - 87 DIV + 59 ) ) + + 16 col0
----
47

skipif mysql # not compatible
query I rowsort label-5031
SELECT ( - 31 ) / + - COALESCE ( COUNT ( * ), - 92 * + MAX ( DISTINCT - 87 / + 59 ) ) + + 16 col0
----
47

query I rowsort
SELECT DISTINCT ( 58 ) + + - 44
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5033
SELECT ( - + 21 ) + + NULLIF ( 4, + - 85 * 69 ) DIV + 40 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5033
SELECT ( - + 21 ) + + NULLIF ( 4, + - 85 * 69 ) / + 40 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-5034
SELECT ALL 30 AS col1, COUNT( * ) + + 96
----
30
97

skipif mysql # not compatible
query II rowsort label-5034
SELECT ALL 30 AS col1, COUNT ( * ) + + 96
----
30
97

query I rowsort
SELECT 33 + - 83 col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT COUNT( * ) + + CASE - 21 WHEN + - 31 THEN 31 ELSE 7 - 32 END * - 96
----
2401

skipif mysql # not compatible
query I rowsort label-5036
SELECT COUNT ( * ) + + CASE - 21 WHEN + - 31 THEN 31 ELSE 7 - 32 END * - 96
----
2401

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5037
SELECT CAST( NULL AS SIGNED ) * + + 41 * - + CASE - + 18 WHEN - - 31 + - 77 * 5 THEN + COUNT( * ) * + COUNT( * ) END * + NULLIF ( 57 + + 10, + 30 + + COUNT( * ) * - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5037
SELECT CAST ( NULL AS INTEGER ) * + + 41 * - + CASE - + 18 WHEN - - 31 + - 77 * 5 THEN + COUNT ( * ) * + COUNT ( * ) END * + NULLIF ( 57 + + 10, + 30 + + COUNT ( * ) * - COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT 84 - ( 6 )
----
78

query I rowsort
SELECT 58 + - ( + 13 ) AS col0
----
45

query I rowsort
SELECT ALL - 95 * - 30 * + 3 * - + 12
----
-102600

query I rowsort
SELECT DISTINCT 28 * 29 AS col1
----
812

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT ALL CASE + ( + COALESCE ( ( 30 ), 85 * 89, - 88 ) ) WHEN COUNT( * ) THEN - 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5042
SELECT ALL CASE + ( + COALESCE ( ( 30 ), 85 * 89, - 88 ) ) WHEN COUNT ( * ) THEN - 73 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5043
SELECT - 77 + + CASE + CAST( NULL AS SIGNED ) WHEN - ( + 16 ) THEN NULL WHEN - ( + COUNT( * ) ) + SUM( DISTINCT - NULLIF ( 29, + 39 ) ) THEN NULL WHEN - CASE WHEN NOT 98 IN ( 47 + 79 / 32 ) THEN NULLIF ( ( + COUNT( * ) ), - 20 ) + + 30 ELSE - 18 * - 92 + COUNT( * ) END THEN 19 + 6 * 40 END - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT - 77 + + CASE + CAST ( NULL AS INTEGER ) WHEN - ( + 16 ) THEN NULL WHEN - ( + COUNT ( * ) ) + SUM ( DISTINCT - NULLIF ( 29, + 39 ) ) THEN NULL WHEN - CASE WHEN NOT 98 IN ( 47 + 79 / 32 ) THEN NULLIF ( ( + COUNT ( * ) ), - 20 ) + + 30 ELSE - 18 * - 92 + COUNT ( * ) END THEN 19 + 6 * 40 END - 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL + COUNT( * ) * + - 89 + + 69 + - 71 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL + COUNT ( * ) * + - 89 + + 69 + - 71 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT - - 28 + - SUM( DISTINCT 26 ) * - + 46
----
1224

skipif mysql # not compatible
query I rowsort label-5045
SELECT - - 28 + - SUM ( DISTINCT 26 ) * - + 46
----
1224

query I rowsort
SELECT ALL 62 * - - ( + 74 ) - - 86
----
4674

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT + + MAX( + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-5047
SELECT + + MAX ( + 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT - 83 * - CASE + 8 WHEN - + 43 THEN + - ( COUNT( * ) ) ELSE - 67 END * 90 + 7 AS col1
----
-500483

skipif mysql # not compatible
query I rowsort label-5048
SELECT - 83 * - CASE + 8 WHEN - + 43 THEN + - ( COUNT ( * ) ) ELSE - 67 END * 90 + 7 AS col1
----
-500483

query I rowsort
SELECT - + 42 * - 80 col0
----
3360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5050
SELECT 79 DIV - - 77 + - MAX( - 87 ) * - + 63
----
-5480

skipif mysql # not compatible
query I rowsort label-5050
SELECT 79 / - - 77 + - MAX ( - 87 ) * - + 63
----
-5480

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT - - CASE - - ( + MAX( DISTINCT + 11 ) ) WHEN - COUNT( * ) - + 99 THEN + 32 WHEN 1 THEN NULL ELSE NULL END + - ( + 50 + + 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5051
SELECT - - CASE - - ( + MAX ( DISTINCT + 11 ) ) WHEN - COUNT ( * ) - + 99 THEN + 32 WHEN 1 THEN NULL ELSE NULL END + - ( + 50 + + 75 )
----
NULL

query I rowsort
SELECT ALL + 82 * - 89 * - + 31 * 0 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5053
SELECT DISTINCT + 71 DIV + SUM( - 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT + 71 / + SUM ( - 50 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT DISTINCT + COUNT( * ) * - 31 * 64
----
-1984

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT + COUNT ( * ) * - 31 * 64
----
-1984

query I rowsort
SELECT - + 16 + + 73 AS col1
----
57

query I rowsort
SELECT + - 35 * + - ( + 39 ) * + + COALESCE ( - 77, - 93 - - 88 ) + 9
----
-105096

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT - COUNT( * ) * + 43 + 97 + - 1 col1
----
53

skipif mysql # not compatible
query I rowsort label-5057
SELECT - COUNT ( * ) * + 43 + 97 + - 1 col1
----
53

query I rowsort
SELECT ALL + 52 * - - 6 * - 69 + + 38 AS col2
----
-21490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5059
SELECT + CASE - + 17 WHEN 75 * + 34 THEN - MAX( 1 ) / + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5059
SELECT + CASE - + 17 WHEN 75 * + 34 THEN - MAX ( 1 ) / + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT ( + ( + + 65 ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT ALL - 98 + + 43 * + - COUNT( 36 ) AS col0
----
-141

skipif mysql # not compatible
query I rowsort label-5061
SELECT ALL - 98 + + 43 * + - COUNT ( 36 ) AS col0
----
-141

onlyif mysql # aggregate syntax: 
query II rowsort label-5062
SELECT DISTINCT 68 AS col2, + 77 * - - 11 + - COUNT( * ) * - - 24
----
68
823

skipif mysql # not compatible
query II rowsort label-5062
SELECT DISTINCT 68 AS col2, + 77 * - - 11 + - COUNT ( * ) * - - 24
----
68
823

onlyif mysql # DIV for integer division: 
query I rowsort label-5063
SELECT + 65 + - 3 DIV + 53
----
65

skipif mysql # not compatible
query I rowsort label-5063
SELECT + 65 + - 3 / + 53
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5064
SELECT + NULLIF ( - ( - CAST( NULL AS SIGNED ) ), + 87 * COUNT( * ) ) * - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5064
SELECT + NULLIF ( - ( - CAST ( NULL AS INTEGER ) ), + 87 * COUNT ( * ) ) * - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT - MAX( - - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-5065
SELECT - MAX ( - - 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT + NULLIF ( - 85, - 16 ) + COUNT( - 89 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-5066
SELECT + NULLIF ( - 85, - 16 ) + COUNT ( - 89 ) AS col0
----
-84

query I rowsort
SELECT - NULLIF ( + 99, + + 93 ) AS col0
----
-99

query II rowsort
SELECT DISTINCT 36 AS col2, 39 + - ( + - 98 ) AS col2
----
36
137

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT ALL 16 - + ( - 14 ) - + CASE WHEN NOT 51 IS NOT NULL THEN COUNT( * ) END - + COALESCE ( + 42, 3, ( + 84 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL 16 - + ( - 14 ) - + CASE WHEN NOT 51 IS NOT NULL THEN COUNT ( * ) END - + COALESCE ( + 42, 3, ( + 84 ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 28 * + + 54 AS col0
----
1512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5071
SELECT ALL + COUNT( * ) DIV - + 75
----
0

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL + COUNT ( * ) / - + 75
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5072
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0, - 90 * 0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5072
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, - 90 * 0
----
NULL
0

query II rowsort
SELECT ALL 0, + 76 AS col2
----
0
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT + ( + 36 ) * + COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-5074
SELECT + ( + 36 ) * + COUNT ( * ) AS col2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5075
SELECT + - 88 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT + - 88 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 37 - - + 96
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5077
SELECT - COUNT( * ) DIV - 85 * - 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5077
SELECT - COUNT ( * ) / - 85 * - 49 AS col1
----
0

query II rowsort
SELECT 92 AS col0, + 93
----
92
93

query II rowsort
SELECT + 99 AS col1, + 13
----
99
13

onlyif mysql # DIV for integer division: 
query I rowsort label-5080
SELECT ALL - 99 DIV - 73 + 95
----
96

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL - 99 / - 73 + 95
----
96

query II rowsort
SELECT DISTINCT + 2 col1, - 35 + - 6
----
2
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-5082
SELECT DISTINCT + 70 DIV + + 24 + - 69 DIV + 35 - + + 31
----
-30

skipif mysql # not compatible
query I rowsort label-5082
SELECT DISTINCT + 70 / + + 24 + - 69 / + 35 - + + 31
----
-30

query I rowsort
SELECT + - ( 85 ) col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT + - 87 + MIN( DISTINCT + 36 )
----
-51

skipif mysql # not compatible
query I rowsort label-5084
SELECT + - 87 + MIN ( DISTINCT + 36 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT + ( - - COUNT( - 45 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5085
SELECT + ( - - COUNT ( - 45 ) ) AS col1
----
1

query II rowsort
SELECT - 56 AS col1, 98
----
-56
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT - ( - 7 ) * + 34 * - CASE - - COUNT( * ) WHEN - 11 * + 84 THEN 83 END * + ( + 91 * 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5087
SELECT - ( - 7 ) * + 34 * - CASE - - COUNT ( * ) WHEN - 11 * + 84 THEN 83 END * + ( + 91 * 23 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5088
SELECT DISTINCT + + 75 DIV 10 * + 63 + + + SUM( - 49 ) * + COUNT( * ) AS col0
----
392

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT + + 75 / 10 * + 63 + + + SUM ( - 49 ) * + COUNT ( * ) AS col0
----
392

onlyif mysql # DIV for integer division: 
query II rowsort label-5089
SELECT 10, - 20 + - 21 DIV - + 34 AS col1
----
10
-20

skipif mysql # not compatible
query II rowsort label-5089
SELECT 10, - 20 + - 21 / - + 34 AS col1
----
10
-20

query I rowsort
SELECT - - 31 * + + 33
----
1023

query I rowsort
SELECT ALL + 98 * 18 + + 59 * + 72 * - 69
----
-291348

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5092
SELECT - 68 AS col1, CAST( + 93 AS SIGNED ) AS col2
----
-68
93

skipif mysql # not compatible
query II rowsort label-5092
SELECT - 68 AS col1, CAST ( + 93 AS INTEGER ) AS col2
----
-68
93

query II rowsort
SELECT DISTINCT + + 54 AS col0, 35 AS col0
----
54
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5094
SELECT ALL + CASE - - 56 WHEN + COUNT( * ) - - NULLIF ( - + ( - CAST( NULL AS SIGNED ) ), + + 26 + - 1 ) + 19 THEN NULL WHEN + 71 THEN 42 * 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL + CASE - - 56 WHEN + COUNT ( * ) - - NULLIF ( - + ( - CAST ( NULL AS INTEGER ) ), + + 26 + - 1 ) + 19 THEN NULL WHEN + 71 THEN 42 * 29 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT - 84 * 19, - 26 AS col2
----
-1596
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT - 54 + - MIN( DISTINCT ( - - 69 ) )
----
-123

skipif mysql # not compatible
query I rowsort label-5096
SELECT - 54 + - MIN ( DISTINCT ( - - 69 ) )
----
-123

query II rowsort
SELECT ALL 83 * + - 93 AS col2, + 46
----
-7719
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT + MIN( + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-5098
SELECT + MIN ( + 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT COALESCE ( 13, - - 42 * + + 92 + - 93 * - - 32 * - + COUNT( * ), - 82 )
----
13

skipif mysql # not compatible
query I rowsort label-5099
SELECT COALESCE ( 13, - - 42 * + + 92 + - 93 * - - 32 * - + COUNT ( * ), - 82 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT 12 * + ( + COUNT( * ) ) - - 45
----
57

skipif mysql # not compatible
query I rowsort label-5100
SELECT 12 * + ( + COUNT ( * ) ) - - 45
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT - COALESCE ( + + 58, - SUM( - + 16 ) + - COUNT( * ) + - 20 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-5101
SELECT - COALESCE ( + + 58, - SUM ( - + 16 ) + - COUNT ( * ) + - 20 ) AS col2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5102
SELECT DISTINCT COUNT( * ) * + 69 - ( - CAST( NULL AS SIGNED ) ) / + - 17 * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT COUNT ( * ) * + 69 - ( - CAST ( NULL AS INTEGER ) ) / + - 17 * 29
----
NULL

query I rowsort
SELECT - 88 + 34 AS col0
----
-54

query I rowsort
SELECT + 93 * - + 64 AS col0
----
-5952

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT ( COUNT( * ) ) * + 3 col2
----
3

skipif mysql # not compatible
query I rowsort label-5105
SELECT ( COUNT ( * ) ) * + 3 col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5106
SELECT MIN( 43 ) + + 34 DIV + 22 col2
----
44

skipif mysql # not compatible
query I rowsort label-5106
SELECT MIN ( 43 ) + + 34 / + 22 col2
----
44

query I rowsort
SELECT DISTINCT + 65 * - - 22
----
1430

query I rowsort
SELECT - 21 + + 49 + - + 95 AS col1
----
-67

query I rowsort
SELECT - 95 * + 47 * - 65 AS col1
----
290225

query I rowsort
SELECT 20 + - - 36 - 52 * 38 + - + 29 AS col0
----
-1949

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT + COUNT( * ) - + ( + 12 )
----
-11

skipif mysql # not compatible
query I rowsort label-5111
SELECT + COUNT ( * ) - + ( + 12 )
----
-11

query I rowsort
SELECT DISTINCT + 15 * - 1 AS col0
----
-15

query I rowsort
SELECT DISTINCT - 4 + + NULLIF ( - 65, + - 57 + 34 * - - 56 * - 76 ) * 28 AS col1
----
-1824

query I rowsort
SELECT + 62 + - 83 AS col0
----
-21

query I rowsort
SELECT ALL + 71 + + 7
----
78

query I rowsort
SELECT ALL + 90 + - 70
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-5117
SELECT 89 + + 27 DIV 15 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-5117
SELECT 89 + + 27 / 15 AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5118
SELECT + CAST( NULL AS SIGNED ) / + - 77, - MIN( + 45 ) AS col1
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-5118
SELECT + CAST ( NULL AS INTEGER ) / + - 77, - MIN ( + 45 ) AS col1
----
NULL
-45

query I rowsort
SELECT - 24 * - 3 + + 30 AS col2
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5120
SELECT 37 * 12 * CAST( - + 45 AS SIGNED ) * - 13 * - COUNT( * ) * COUNT( * )
----
-259740

skipif mysql # not compatible
query I rowsort label-5120
SELECT 37 * 12 * CAST ( - + 45 AS INTEGER ) * - 13 * - COUNT ( * ) * COUNT ( * )
----
-259740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5121
SELECT - - 8 * - 40 + - - MAX( DISTINCT + 93 ) + - 43 DIV 37 * - + 50 * SUM( - 62 ) AS col1
----
-3327

skipif mysql # not compatible
query I rowsort label-5121
SELECT - - 8 * - 40 + - - MAX ( DISTINCT + 93 ) + - 43 / 37 * - + 50 * SUM ( - 62 ) AS col1
----
-3327

query I rowsort
SELECT ALL 81 + - + 34 + + + 82 + 64 col1
----
193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5123
SELECT - 49 DIV 13 + - - ( - 26 ) + - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-5123
SELECT - 49 / 13 + - - ( - 26 ) + - COUNT ( * )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5124
SELECT 14 * + + ( + 95 ), - 0 * + - CAST( - CASE + + 44 WHEN 45 * + MIN( - ( + 8 ) * + 56 ) + + 78 * + 27 THEN - 58 END AS SIGNED ) + - NULLIF ( COALESCE ( + 20, ( 72 ) * - 21 ), - 80 ) AS col0
----
1330
NULL

skipif mysql # not compatible
query II rowsort label-5124
SELECT 14 * + + ( + 95 ), - 0 * + - CAST ( - CASE + + 44 WHEN 45 * + MIN ( - ( + 8 ) * + 56 ) + + 78 * + 27 THEN - 58 END AS INTEGER ) + - NULLIF ( COALESCE ( + 20, ( 72 ) * - 21 ), - 80 ) AS col0
----
1330
NULL

query I rowsort
SELECT 58 * NULLIF ( - 10, + 9 )
----
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT ALL - 39 * + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL - 39 * + COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT DISTINCT + COUNT( * ) + + + 40 * + 70 * 25 AS col0
----
70001

skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT + COUNT ( * ) + + + 40 * + 70 * 25 AS col0
----
70001

query I rowsort
SELECT ALL + 69 + + 24 AS col0
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5129
SELECT ( 86 ), - COUNT( * ) + - COALESCE ( - + 67, + - 98 + + COUNT( 2 ) + + 91 * 35, 47 * 74 ) AS col1
----
86
66

skipif mysql # not compatible
query II rowsort label-5129
SELECT ( 86 ), - COUNT ( * ) + - COALESCE ( - + 67, + - 98 + + COUNT ( 2 ) + + 91 * 35, 47 * 74 ) AS col1
----
86
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT DISTINCT 19 * - 11 * - COUNT( * ) AS col1
----
209

skipif mysql # not compatible
query I rowsort label-5130
SELECT DISTINCT 19 * - 11 * - COUNT ( * ) AS col1
----
209

onlyif mysql # aggregate syntax: 
query II rowsort label-5131
SELECT ALL - 79 AS col1, 6 * + + COALESCE ( + 11, - COALESCE ( 92, 22 * 94 + SUM( ALL 87 ) + 25, 5 ) ) + - MIN( ALL COALESCE ( + NULLIF ( 6, 37 * 40 ), - 85, 97, + 18 + + 68 * - 59 ) ) * 29 AS col0
----
-79
-108

skipif mysql # not compatible
query II rowsort label-5131
SELECT ALL - 79 AS col1, 6 * + + COALESCE ( + 11, - COALESCE ( 92, 22 * 94 + SUM ( ALL 87 ) + 25, 5 ) ) + - MIN ( ALL COALESCE ( + NULLIF ( 6, 37 * 40 ), - 85, 97, + 18 + + 68 * - 59 ) ) * 29 AS col0
----
-79
-108

query I rowsort
SELECT ALL 54 * 81
----
4374

query I rowsort
SELECT 62 + + ( - - 16 )
----
78

query II rowsort
SELECT 25 AS col2, + 79 col0
----
25
79

query I rowsort
SELECT ALL - 80 - - 81 AS col2
----
1

query I rowsort
SELECT 78 * - 62 AS col0
----
-4836

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT 35 * + - 22 + ( - - COUNT( * ) )
----
-769

skipif mysql # not compatible
query I rowsort label-5137
SELECT 35 * + - 22 + ( - - COUNT ( * ) )
----
-769

query II rowsort
SELECT DISTINCT - 20, NULLIF ( + 31, - 58 ) col1
----
-20
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT ALL - NULLIF ( - - 57, + COUNT( * ) / - + ( - 72 ) - - 88 )
----
-57

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL - NULLIF ( - - 57, + COUNT ( * ) / - + ( - 72 ) - - 88 )
----
-57

query I rowsort
SELECT 58 + - - 74 AS col2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT ALL - ( + COUNT( * ) ) - - 8 + + 27 + + 45 * - 37 AS col2
----
-1631

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL - ( + COUNT ( * ) ) - - 8 + + 27 + + 45 * - 37 AS col2
----
-1631

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT 68 * - + COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-5142
SELECT 68 * - + COUNT ( * )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT ALL - COUNT( * ) * COUNT( * ) * + 79 * - 90
----
7110

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL - COUNT ( * ) * COUNT ( * ) * + 79 * - 90
----
7110

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT DISTINCT - 63 / + 18 * CASE + + 44 WHEN - 83 THEN NULL WHEN + 85 + ( - 23 ) * CASE COUNT( * ) * 4 + + 51 WHEN - 17 * COUNT( * ) THEN 30 / - 29 + + 67 ELSE + COUNT( * ) END THEN COALESCE ( 78, - 15 * - ( COALESCE ( - 5, + 0 * + COUNT( * ), 20 ) ) ) * - 17 END * ( + COUNT( - COALESCE ( ( + 33 ), 75 ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT - 63 / + 18 * CASE + + 44 WHEN - 83 THEN NULL WHEN + 85 + ( - 23 ) * CASE COUNT ( * ) * 4 + + 51 WHEN - 17 * COUNT ( * ) THEN 30 / - 29 + + 67 ELSE + COUNT ( * ) END THEN COALESCE ( 78, - 15 * - ( COALESCE ( - 5, + 0 * + COUNT ( * ), 20 ) ) ) * - 17 END * ( + COUNT ( - COALESCE ( ( + 33 ), 75 ) ) ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5145
SELECT SUM( - 34 ) + - - 7 + - + 7 DIV + COUNT( * ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-5145
SELECT SUM ( - 34 ) + - - 7 + - + 7 / + COUNT ( * ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT ALL - 45 * - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL - 45 * - COUNT ( * )
----
45

query I rowsort
SELECT 58 * - 31 * + 60 * - + 30
----
3236400

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT NULLIF ( ( - - 36 ), - - CASE - 92 WHEN + 55 THEN + - 76 * + - 14 WHEN 35 THEN NULL WHEN 85 + 94 * CASE - 52 WHEN + 97 THEN 8 ELSE NULL END THEN NULL END + 36 ) + + MIN( ALL 13 ) * CASE 72 WHEN AVG ( DISTINCT - 8 ) * 66 THEN + 30 + + 73 WHEN COUNT( * ) + CASE - 97 - - 17 WHEN 64 / CASE 55 * 15 WHEN 27 THEN COUNT( * ) ELSE NULL END THEN + 99 ELSE + 63 END * + 93 THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5148
SELECT NULLIF ( ( - - 36 ), - - CASE - 92 WHEN + 55 THEN + - 76 * + - 14 WHEN 35 THEN NULL WHEN 85 + 94 * CASE - 52 WHEN + 97 THEN 8 ELSE NULL END THEN NULL END + 36 ) + + MIN ( ALL 13 ) * CASE 72 WHEN AVG ( DISTINCT - 8 ) * 66 THEN + 30 + + 73 WHEN COUNT ( * ) + CASE - 97 - - 17 WHEN 64 / CASE 55 * 15 WHEN 27 THEN COUNT ( * ) ELSE NULL END THEN + 99 ELSE + 63 END * + 93 THEN - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT ALL + 73 * - 76 AS col2
----
-5548

query II rowsort
SELECT 20 AS col1, - 54 * + + 6 AS col0
----
20
-324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5151
SELECT COUNT( * ) DIV + ( 96 )
----
0

skipif mysql # not compatible
query I rowsort label-5151
SELECT COUNT ( * ) / + ( 96 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5152
SELECT + 19 * + + 71 + - - CASE - + 85 WHEN + 40 * - 42 THEN - 53 WHEN + - 91 * 96 + + 23 * - 66 THEN + 62 / + CAST( NULL AS SIGNED ) END * - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT + 19 * + + 71 + - - CASE - + 85 WHEN + 40 * - 42 THEN - 53 WHEN + - 91 * 96 + + 23 * - 66 THEN + 62 / + CAST ( NULL AS INTEGER ) END * - 11 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5153
SELECT 32 + - 28 * + CAST( NULL AS SIGNED ) + - 89 - - 65 * - + 83 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5153
SELECT 32 + - 28 * + CAST ( NULL AS INTEGER ) + - 89 - - 65 * - + 83 * + COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT 33 AS col1, + ( - 72 ) + 35 AS col2
----
33
-37

query I rowsort
SELECT ALL + ( + 57 ) + - + 93 AS col0
----
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-5156
SELECT ALL - + 64 + - 49 + + - 34 DIV 40 AS col0, 1
----
-113
1

skipif mysql # not compatible
query II rowsort label-5156
SELECT ALL - + 64 + - 49 + + - 34 / 40 AS col0, 1
----
-113
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5157
SELECT ALL - + 88 + + + 35 + - + 69 DIV 74 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL - + 88 + + + 35 + - + 69 / 74 AS col2
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5158
SELECT - + 57 AS col2, COUNT( * ) * - - CAST( NULL AS SIGNED )
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-5158
SELECT - + 57 AS col2, COUNT ( * ) * - - CAST ( NULL AS INTEGER )
----
-57
NULL

query II rowsort
SELECT 96, + 56 AS col1
----
96
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5160
SELECT DISTINCT - 92 + + CAST( NULL AS SIGNED ) + + 73 * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT - 92 + + CAST ( NULL AS INTEGER ) + + 73 * - 68
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5161
SELECT COUNT( DISTINCT - CAST( + 38 AS SIGNED ) ) * + 4 + + + CASE - - 2 WHEN - 6 + - CAST( NULL AS SIGNED ) * + COUNT( * ) THEN NULL WHEN + SUM( DISTINCT 46 ) + - 37 THEN CAST( + 53 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5161
SELECT COUNT ( DISTINCT - CAST ( + 38 AS INTEGER ) ) * + 4 + + + CASE - - 2 WHEN - 6 + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) THEN NULL WHEN + SUM ( DISTINCT 46 ) + - 37 THEN CAST ( + 53 AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - ( - 71 ) + 58 AS col0
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5163
SELECT + 35 - + CAST( NULL AS SIGNED ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT + 35 - + CAST ( NULL AS INTEGER ) * + - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5164
SELECT 29 DIV - 10 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5164
SELECT 29 / - 10 AS col0
----
-2

query I rowsort
SELECT ALL - 3 * - 37 + - 14 - - 18 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT + COUNT( * ) * 91 - - ( 31 ) * + + NULLIF ( + + 59, + 41 * + 67 + - 50 ) * 49 + + 89 col2
----
89801

skipif mysql # not compatible
query I rowsort label-5166
SELECT + COUNT ( * ) * 91 - - ( 31 ) * + + NULLIF ( + + 59, + 41 * + 67 + - 50 ) * 49 + + 89 col2
----
89801

query I rowsort
SELECT 24 * - 93 AS col1
----
-2232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5168
SELECT + COALESCE ( + ( CASE - 51 WHEN + + 78 * - CAST( + 68 AS SIGNED ) * + SUM( + + 27 ) / + 32 THEN NULL WHEN 1 + + 95 THEN NULL WHEN - SUM( + 23 ) THEN NULL ELSE - 8 * COUNT( * ) + + 72 END ), - 81 )
----
64

skipif mysql # not compatible
query I rowsort label-5168
SELECT + COALESCE ( + ( CASE - 51 WHEN + + 78 * - CAST ( + 68 AS INTEGER ) * + SUM ( + + 27 ) / + 32 THEN NULL WHEN 1 + + 95 THEN NULL WHEN - SUM ( + 23 ) THEN NULL ELSE - 8 * COUNT ( * ) + + 72 END ), - 81 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT MIN( ALL - 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-5169
SELECT MIN ( ALL - 47 ) AS col2
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5170
SELECT COUNT( * ) DIV + 95 AS col0, 38 AS col0
----
0
38

skipif mysql # not compatible
query II rowsort label-5170
SELECT COUNT ( * ) / + 95 AS col0, 38 AS col0
----
0
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5171
SELECT COALESCE ( - ( COUNT( * ) ), 20, - 32 * - NULLIF ( 80, 74 * + 55 + COALESCE ( 23, - CAST( 97 AS SIGNED ) ) + + COUNT( * ) * 56 ) ) * + 59 + 10 * - NULLIF ( + 70, + 35 )
----
-759

skipif mysql # not compatible
query I rowsort label-5171
SELECT COALESCE ( - ( COUNT ( * ) ), 20, - 32 * - NULLIF ( 80, 74 * + 55 + COALESCE ( 23, - CAST ( 97 AS INTEGER ) ) + + COUNT ( * ) * 56 ) ) * + 59 + 10 * - NULLIF ( + 70, + 35 )
----
-759

query I rowsort
SELECT DISTINCT 59 * 8
----
472

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT ALL ( - 16 ) / - ( 48 ) + + CASE - 13 WHEN - 39 * 77 + - 99 / 24 THEN + 58 * - COUNT( * ) + 48 * 87 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL ( - 16 ) / - ( 48 ) + + CASE - 13 WHEN - 39 * 77 + - 99 / 24 THEN + 58 * - COUNT ( * ) + 48 * 87 END col2
----
NULL

query I rowsort
SELECT ALL - 49 * ( - 68 ) AS col0
----
3332

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT + MIN( - 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-5175
SELECT + MIN ( - 5 ) AS col2
----
-5

query I rowsort
SELECT + 22 * - 88 * + + 27
----
-52272

onlyif mysql # aggregate syntax: 
query II rowsort label-5177
SELECT - 28 * + 89 * + ( + - 13 ), COUNT( * ) AS col1
----
32396
1

skipif mysql # not compatible
query II rowsort label-5177
SELECT - 28 * + 89 * + ( + - 13 ), COUNT ( * ) AS col1
----
32396
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ALL MIN( DISTINCT - - 48 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL MIN ( DISTINCT - - 48 ) AS col0
----
48

query I rowsort
SELECT ALL 86 + - 56 col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5180
SELECT ALL - - 28 + 32 DIV + - 70 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL - - 28 + 32 / + - 70 AS col1
----
28

query II rowsort
SELECT - 39 - 90 + 88 + 53 * - 3 AS col2, - 7 * 92 * + 61
----
-200
-39284

onlyif mysql # DIV for integer division: 
query I rowsort label-5182
SELECT ALL + 54 DIV 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL + 54 / 90 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ALL - 63 + - SUM( - 60 )
----
-3

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL - 63 + - SUM ( - 60 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5184
SELECT - + 83 + - 99 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5184
SELECT - + 83 + - 99 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5185
SELECT - SUM( + + 33 ) * ( + + 36 ), + 93 AS col2
----
-1188
93

skipif mysql # not compatible
query II rowsort label-5185
SELECT - SUM ( + + 33 ) * ( + + 36 ), + 93 AS col2
----
-1188
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT CASE + - 78 WHEN COUNT( * ) * + 38 THEN - 21 * + COUNT( * ) + 2 / - COUNT( * ) WHEN - 72 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5186
SELECT CASE + - 78 WHEN COUNT ( * ) * + 38 THEN - 21 * + COUNT ( * ) + 2 / - COUNT ( * ) WHEN - 72 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5187
SELECT - CAST( NULL AS SIGNED ) + 2 + - - COUNT( 75 ) + 65 / 66 * + MAX( DISTINCT - + 54 ) + + 69 * - 22 * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-5187
SELECT - CAST ( NULL AS INTEGER ) + 2 + - - COUNT ( 75 ) + 65 / 66 * + MAX ( DISTINCT - + 54 ) + + 69 * - 22 * - 21
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5188
SELECT ALL + - 56 - + + NULLIF ( - COUNT( + 59 ), + - COUNT( * ) / - COUNT( * ) + - 38 ) AS col1, ( + 3 ) + - 74
----
-55
-71

skipif mysql # not compatible
query II rowsort label-5188
SELECT ALL + - 56 - + + NULLIF ( - COUNT ( + 59 ), + - COUNT ( * ) / - COUNT ( * ) + - 38 ) AS col1, ( + 3 ) + - 74
----
-55
-71

query I rowsort
SELECT - 55 * 21 + - + 96
----
-1251

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5190
SELECT - 60 + - COUNT( * ) * + COUNT( * ) + - COALESCE ( + 74, - 8 * + CASE 82 WHEN + + 4 THEN - 71 DIV 73 ELSE 68 END + + 60 ) AS col2
----
-135

skipif mysql # not compatible
query I rowsort label-5190
SELECT - 60 + - COUNT ( * ) * + COUNT ( * ) + - COALESCE ( + 74, - 8 * + CASE 82 WHEN + + 4 THEN - 71 / 73 ELSE 68 END + + 60 ) AS col2
----
-135

query I rowsort
SELECT ALL 99 - + 44 AS col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5192
SELECT + - 67 + - 4 + CAST( + 6 AS SIGNED ) - + - 58 * - 89
----
-5227

skipif mysql # not compatible
query I rowsort label-5192
SELECT + - 67 + - 4 + CAST ( + 6 AS INTEGER ) - + - 58 * - 89
----
-5227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5193
SELECT ALL - + 28 DIV - + 84 - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL - + 28 / - + 84 - + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT - 36 * + 67
----
-2412

query I rowsort
SELECT DISTINCT 65 * - - ( 72 ) * - 33 AS col2
----
-154440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5196
SELECT ALL + CAST( + 11 AS SIGNED ) * - 29 - + 73 + + - 66 AS col0
----
-458

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL + CAST ( + 11 AS INTEGER ) * - 29 - + 73 + + - 66 AS col0
----
-458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5197
SELECT + COUNT( * ) * + CAST( 95 AS SIGNED ) * - 70 * COUNT( * ) + + + COUNT( + + 66 ) AS col0
----
-6649

skipif mysql # not compatible
query I rowsort label-5197
SELECT + COUNT ( * ) * + CAST ( 95 AS INTEGER ) * - 70 * COUNT ( * ) + + + COUNT ( + + 66 ) AS col0
----
-6649

query I rowsort
SELECT DISTINCT + 63 * + 16 AS col0
----
1008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5199
SELECT + COALESCE ( + 43, - COALESCE ( - NULLIF ( + 48, + + 21 * 8 + + + 54 ), - - COUNT( * ), - - 84 + COUNT( * ) ) * - 99, + 7 - 24 DIV 0 ) * 1 col1
----
43

skipif mysql # not compatible
query I rowsort label-5199
SELECT + COALESCE ( + 43, - COALESCE ( - NULLIF ( + 48, + + 21 * 8 + + + 54 ), - - COUNT ( * ), - - 84 + COUNT ( * ) ) * - 99, + 7 - 24 / 0 ) * 1 col1
----
43

query I rowsort
SELECT NULLIF ( - 89, - - 8 / - 32 - + + 86 ) AS col1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5201
SELECT + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT + CASE + 18 WHEN - + 54 THEN + - ( + - 52 ) WHEN 34 THEN - 4 - 79 * + CASE + 83 WHEN - 46 THEN + MIN( ALL 40 ) / 36 ELSE NULL END + COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5202
SELECT + CASE + 18 WHEN - + 54 THEN + - ( + - 52 ) WHEN 34 THEN - 4 - 79 * + CASE + 83 WHEN - 46 THEN + MIN ( ALL 40 ) / 36 ELSE NULL END + COUNT ( * ) END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5203
SELECT + 28 DIV + CASE + 44 WHEN - AVG ( - 97 ) + - 87 + - ( + - 90 ) THEN - - 34 DIV + - 80 + 90 ELSE COUNT( * ) END col2
----
28

skipif mysql # not compatible
query I rowsort label-5203
SELECT + 28 / + CASE + 44 WHEN - AVG ( - 97 ) + - 87 + - ( + - 90 ) THEN - - 34 / + - 80 + 90 ELSE COUNT ( * ) END col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5204
SELECT ALL 14 * COUNT( * ) + - + CAST( NULL AS SIGNED ) + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL 14 * COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT 9 * + 72 + + - COUNT( * ) AS col2
----
647

skipif mysql # not compatible
query I rowsort label-5205
SELECT 9 * + 72 + + - COUNT ( * ) AS col2
----
647

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5206
SELECT ALL 81 DIV + 97 * + - COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL 81 / + 97 * + - COUNT ( * ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT DISTINCT - MIN( + 4 ) * + 33 + + 10 + COUNT( * ) + - - COUNT( 29 ) AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT - MIN ( + 4 ) * + 33 + + 10 + COUNT ( * ) + - - COUNT ( 29 ) AS col0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT DISTINCT COUNT( * ) * 78 * 88 AS col0
----
6864

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT COUNT ( * ) * 78 * 88 AS col0
----
6864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5209
SELECT ALL MAX( DISTINCT + - CAST( - + COALESCE ( - 47, 38 + - 30 * - 6 ) AS SIGNED ) ) * + CAST( + 15 AS SIGNED ) + COUNT( * )
----
-704

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL MAX ( DISTINCT + - CAST ( - + COALESCE ( - 47, 38 + - 30 * - 6 ) AS INTEGER ) ) * + CAST ( + 15 AS INTEGER ) + COUNT ( * )
----
-704

onlyif mysql # aggregate syntax: 
query II rowsort label-5210
SELECT ALL 62, - 68 + - SUM( ALL 86 ) AS col0
----
62
-154

skipif mysql # not compatible
query II rowsort label-5210
SELECT ALL 62, - 68 + - SUM ( ALL 86 ) AS col0
----
62
-154

query II rowsort
SELECT DISTINCT - 36 AS col1, 44
----
-36
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT DISTINCT - 39 * - + 46 * - COUNT( * ) * 39 * NULLIF ( - COUNT( * ), 32 ) + 28
----
69994

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT - 39 * - + 46 * - COUNT ( * ) * 39 * NULLIF ( - COUNT ( * ), 32 ) + 28
----
69994

query I rowsort
SELECT DISTINCT + COALESCE ( + - 94, - 70 * 73 ) * + - 30 + + - COALESCE ( + 24, + 32 + - 26 ) AS col0
----
2796

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5214
SELECT - COALESCE ( - - ( SUM( + 61 ) ), - + COALESCE ( COUNT( * ), - 60, - + 55, - NULLIF ( - COUNT( * ), 74 + 91 ) + 23 ) ) * COALESCE ( + 2 * + AVG ( DISTINCT 13 * + 10 ), + ( COUNT( * ) ) + COUNT( + 63 + - 7 * - 87 ) * + 23 ) + - 98 * CASE 87 WHEN + 7 + 54 THEN ( 60 ) * + ( + 66 + 7 / + CAST( NULL AS DECIMAL ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT - COALESCE ( - - ( SUM ( + 61 ) ), - + COALESCE ( COUNT ( * ), - 60, - + 55, - NULLIF ( - COUNT ( * ), 74 + 91 ) + 23 ) ) * COALESCE ( + 2 * + AVG ( DISTINCT 13 * + 10 ), + ( COUNT ( * ) ) + COUNT ( + 63 + - 7 * - 87 ) * + 23 ) + - 98 * CASE 87 WHEN + 7 + 54 THEN ( 60 ) * + ( + 66 + 7 / + CAST ( NULL AS REAL ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5215
SELECT ALL ( + - 90 ) - - COUNT( * ) col0, - ( + 18 )
----
-89
-18

skipif mysql # not compatible
query II rowsort label-5215
SELECT ALL ( + - 90 ) - - COUNT ( * ) col0, - ( + 18 )
----
-89
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-5216
SELECT DISTINCT + 9 DIV - ( + 77 ) * - + 52 * + 25
----
0

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT + 9 / - ( + 77 ) * - + 52 * + 25
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5217
SELECT ALL - + COUNT( * ) - + CAST( - + 99 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL - + COUNT ( * ) - + CAST ( - + 99 AS INTEGER )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT DISTINCT MIN( ( + ( + - 12 ) ) )
----
-12

skipif mysql # not compatible
query I rowsort label-5218
SELECT DISTINCT MIN ( ( + ( + - 12 ) ) )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5219
SELECT ALL + CASE + 72 WHEN MIN( ALL - + 34 ) * - 32 + - COALESCE ( + 50, + 66 ) + 28 * 52 THEN NULL WHEN COALESCE ( + NULLIF ( + 23, 6 ), 7 + 28 * 37, + 25, - 55 ) * - 5 THEN COALESCE ( - CAST( NULL AS SIGNED ), 95 ) ELSE COALESCE ( 35, - 57 + 33 ) * 62 + 8 * - 74 END AS col2
----
1578

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL + CASE + 72 WHEN MIN ( ALL - + 34 ) * - 32 + - COALESCE ( + 50, + 66 ) + 28 * 52 THEN NULL WHEN COALESCE ( + NULLIF ( + 23, 6 ), 7 + 28 * 37, + 25, - 55 ) * - 5 THEN COALESCE ( - CAST ( NULL AS INTEGER ), 95 ) ELSE COALESCE ( 35, - 57 + 33 ) * 62 + 8 * - 74 END AS col2
----
1578

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5220
SELECT DISTINCT + 60 * - + 93 * - - CAST( 34 AS SIGNED ) * + - 7
----
1328040

skipif mysql # not compatible
query I rowsort label-5220
SELECT DISTINCT + 60 * - + 93 * - - CAST ( 34 AS INTEGER ) * + - 7
----
1328040

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT MIN( 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-5221
SELECT MIN ( 97 ) AS col0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5222
SELECT + 20 DIV COALESCE ( 47, 37 + - 8, COUNT( * ) DIV 17 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5222
SELECT + 20 / COALESCE ( 47, 37 + - 8, COUNT ( * ) / 17 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5223
SELECT - ( CAST( + 9 AS SIGNED ) ) - + 28 - + + 93 DIV + - MIN( ALL + NULLIF ( + - 8, + 91 ) ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-5223
SELECT - ( CAST ( + 9 AS INTEGER ) ) - + 28 - + + 93 / + - MIN ( ALL + NULLIF ( + - 8, + 91 ) ) AS col2
----
-48

query I rowsort
SELECT - 3 * 12 AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5225
SELECT DISTINCT CAST( + + 36 AS SIGNED ) col1
----
36

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT CAST ( + + 36 AS INTEGER ) col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT DISTINCT + CASE - + ( - COUNT( ALL 8 ) ) WHEN ( - 58 ) THEN NULL ELSE + 18 END * 18 * - 37 AS col1
----
-11988

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT + CASE - + ( - COUNT ( ALL 8 ) ) WHEN ( - 58 ) THEN NULL ELSE + 18 END * 18 * - 37 AS col1
----
-11988

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5227
SELECT 22 AS col0, 47 * - NULLIF ( + 68, 56 * COUNT( * ) * - 73 * - 72 + + 30 ) * + + ( - - 56 ) * - COUNT( * ) - - ( + 45 ) + + 21 DIV 10
----
22
179023

skipif mysql # not compatible
query II rowsort label-5227
SELECT 22 AS col0, 47 * - NULLIF ( + 68, 56 * COUNT ( * ) * - 73 * - 72 + + 30 ) * + + ( - - 56 ) * - COUNT ( * ) - - ( + 45 ) + + 21 / 10
----
22
179023

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT 68 * - 71 * MIN( 95 ) AS col2
----
-458660

skipif mysql # not compatible
query I rowsort label-5228
SELECT 68 * - 71 * MIN ( 95 ) AS col2
----
-458660

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5229
SELECT 71 * - COALESCE ( - 13, - CAST( NULL AS SIGNED ) ), 93 * 81 AS col2
----
923
7533

skipif mysql # not compatible
query II rowsort label-5229
SELECT 71 * - COALESCE ( - 13, - CAST ( NULL AS INTEGER ) ), 93 * 81 AS col2
----
923
7533

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5230
SELECT ALL - 22 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL - 22 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 52 + - - 40 AS col2
----
92

query II rowsort
SELECT ALL - NULLIF ( - 48, - - 85 * 77 ) AS col0, - 81 AS col2
----
48
-81

query I rowsort
SELECT 58 * 86 AS col1
----
4988

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5234
SELECT ALL - 86 + + COUNT( * ) DIV 87
----
-86

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL - 86 + + COUNT ( * ) / 87
----
-86

query II rowsort
SELECT DISTINCT - ( + 41 ) AS col1, - 60
----
-41
-60

query I rowsort
SELECT ALL - 77 + - COALESCE ( 29, 3 ) AS col2
----
-106

query I rowsort
SELECT DISTINCT + 41 + - 5 * 7 * - + 60
----
2141

query I rowsort
SELECT DISTINCT + 32 * 81 AS col1
----
2592

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5239
SELECT ALL - 60 + + 69 col1, + 21 DIV - + COUNT( * ) + 18 * - COALESCE ( + - COALESCE ( + 1, - 45 ), + - 92 * + 97, - 11 ) AS col2
----
9
-3

skipif mysql # not compatible
query II rowsort label-5239
SELECT ALL - 60 + + 69 col1, + 21 / - + COUNT ( * ) + 18 * - COALESCE ( + - COALESCE ( + 1, - 45 ), + - 92 * + 97, - 11 ) AS col2
----
9
-3

query I rowsort
SELECT DISTINCT + 96 + + - 33 AS col2
----
63

query I rowsort
SELECT + 56 * NULLIF ( + 37, - - 68 + + 5 - NULLIF ( + 97, COALESCE ( + 62, + 14 * - + 87 ) + + 19 ) + + 74 * + 88 ) * - 84
----
-174048

query I rowsort
SELECT ( - 0 ) * - ( - + 41 ) AS col2
----
0

query II rowsort
SELECT 9 AS col1, 95 * 9 col0
----
9
855

query II rowsort
SELECT - 64 AS col2, - 87 AS col1
----
-64
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT 58 * + 49 + + 62 + - - 79 + - 17 * COUNT( * ) + - ( + ( + 39 ) ) - COUNT( * ) + - 63 - - 21 * 90 AS col0
----
4753

skipif mysql # not compatible
query I rowsort label-5245
SELECT 58 * + 49 + + 62 + - - 79 + - 17 * COUNT ( * ) + - ( + ( + 39 ) ) - COUNT ( * ) + - 63 - - 21 * 90 AS col0
----
4753

query II rowsort
SELECT - 62 * + + 78, 41 col0
----
-4836
41

onlyif mysql # DIV for integer division: 
query I rowsort label-5247
SELECT ALL 32 DIV + + COALESCE ( + + 37, - 56 + ( 34 ) + 82 * + + 84 * + 39 * - 92 * - 78, 19 - - 99 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL 32 / + + COALESCE ( + + 37, - 56 + ( 34 ) + 82 * + + 84 * + 39 * - 92 * - 78, 19 - - 99 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT ALL - 61 - ( - + COUNT( ALL + 88 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL - 61 - ( - + COUNT ( ALL + 88 ) )
----
-60

onlyif mysql # DIV for integer division: 
query II rowsort label-5249
SELECT ALL - 80 - - 82 * 84 DIV 84 + - 54 * + - 13, 85 * 41 AS col1
----
704
3485

skipif mysql # not compatible
query II rowsort label-5249
SELECT ALL - 80 - - 82 * 84 / 84 + - 54 * + - 13, 85 * 41 AS col1
----
704
3485

query I rowsort
SELECT ALL - 22 * - 68 AS col2
----
1496

query I rowsort
SELECT DISTINCT CASE 49 WHEN + 81 THEN NULL ELSE + + 23 + + 58 - + 16 * + 57 END col1
----
-831

query I rowsort
SELECT ( 27 ) * + 15
----
405

query I rowsort
SELECT + 81 + + 97
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT ALL 21 - + COUNT( DISTINCT + 94 ) + + COALESCE ( - + COUNT( * ), - COUNT( * ) ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL 21 - + COUNT ( DISTINCT + 94 ) + + COALESCE ( - + COUNT ( * ), - COUNT ( * ) ) AS col0
----
19

query II rowsort
SELECT - 71, - ( - 13 ) - - 43 col1
----
-71
56

query I rowsort
SELECT 6 * 14 AS col1
----
84

query I rowsort
SELECT - 78 * - - 1 + - 93 AS col1
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT 37 + - - ( + COUNT( * ) ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-5258
SELECT 37 + - - ( + COUNT ( * ) ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-5259
SELECT ALL + COUNT( * ) AS col2, MAX( DISTINCT 73 )
----
1
73

skipif mysql # not compatible
query II rowsort label-5259
SELECT ALL + COUNT ( * ) AS col2, MAX ( DISTINCT 73 )
----
1
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT 71 + + NULLIF ( 93, - 47 + - + SUM( DISTINCT + + 27 ) ) + 69
----
233

skipif mysql # not compatible
query I rowsort label-5260
SELECT 71 + + NULLIF ( 93, - 47 + - + SUM ( DISTINCT + + 27 ) ) + 69
----
233

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5261
SELECT ALL 47 + CAST( 55 AS SIGNED ) DIV + 88 + 92 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL 47 + CAST ( 55 AS INTEGER ) / + 88 + 92 AS col1
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5262
SELECT DISTINCT + COUNT( * ) + - - 47, - NULLIF ( COALESCE ( + 38, + + 57 * - + 62 * + AVG ( + 17 ) DIV - + CAST( 97 AS SIGNED ) + + 65 ), 20 + CASE CASE - 30 WHEN - 46 + 28 THEN 41 ELSE 70 END - 17 * 78 WHEN 1 THEN - CAST( 39 AS SIGNED ) ELSE NULL END * + NULLIF ( - 16 * 28, CASE MIN( ALL 51 ) WHEN + CAST( 7 AS SIGNED ) THEN + 13 END ) ) * 5 col1
----
48
-190

skipif mysql # not compatible
query II rowsort label-5262
SELECT DISTINCT + COUNT ( * ) + - - 47, - NULLIF ( COALESCE ( + 38, + + 57 * - + 62 * + AVG ( + 17 ) / - + CAST ( 97 AS INTEGER ) + + 65 ), 20 + CASE CASE - 30 WHEN - 46 + 28 THEN 41 ELSE 70 END - 17 * 78 WHEN 1 THEN - CAST ( 39 AS INTEGER ) ELSE NULL END * + NULLIF ( - 16 * 28, CASE MIN ( ALL 51 ) WHEN + CAST ( 7 AS INTEGER ) THEN + 13 END ) ) * 5 col1
----
48
-190

query I rowsort
SELECT 52 * 4
----
208

query I rowsort
SELECT ALL 41 * - 44 * + 42 AS col0
----
-75768

query I rowsort
SELECT DISTINCT + 45 + + + 90 * + 9 + - 97 AS col1
----
758

query I rowsort
SELECT 77 * + - 87 AS col0
----
-6699

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5267
SELECT ALL + COUNT( * ) + 2 AS col1, + 52 DIV - - 68 AS col0
----
3
0

skipif mysql # not compatible
query II rowsort label-5267
SELECT ALL + COUNT ( * ) + 2 AS col1, + 52 / - - 68 AS col0
----
3
0

query I rowsort
SELECT DISTINCT 40 * + 60 AS col2
----
2400

query I rowsort
SELECT ALL + 28 + + 28 * + + ( 50 )
----
1428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5270
SELECT ALL - MAX( ALL + + 91 ), - CASE - - CASE COUNT( * ) WHEN + ( - - MIN( - 62 ) ) + - CASE 70 WHEN + - 29 THEN + + 28 WHEN - 76 THEN COUNT( * ) END THEN 62 * 74 + - ( - 24 - MAX( - 90 ) ) * CAST( NULL AS SIGNED ) WHEN 57 * + NULLIF ( + MIN( 6 ), - COUNT( * ) * + 90 ) THEN + CAST( + 95 AS SIGNED ) WHEN + 81 THEN NULL END WHEN - COALESCE ( - 51, + AVG ( DISTINCT + 47 ) * 95 ) + + 16 / 76 THEN - 42 WHEN 71 / 17 THEN MAX( DISTINCT + 85 ) WHEN 78 * 86 + 44 / - ( 32 ) THEN NULL ELSE NULLIF ( + COUNT( * ), + NULLIF ( - 81, - 24 ) ) + + 44 END AS col2
----
-91
-45

skipif mysql # not compatible
query II rowsort label-5270
SELECT ALL - MAX ( ALL + + 91 ), - CASE - - CASE COUNT ( * ) WHEN + ( - - MIN ( - 62 ) ) + - CASE 70 WHEN + - 29 THEN + + 28 WHEN - 76 THEN COUNT ( * ) END THEN 62 * 74 + - ( - 24 - MAX ( - 90 ) ) * CAST ( NULL AS INTEGER ) WHEN 57 * + NULLIF ( + MIN ( 6 ), - COUNT ( * ) * + 90 ) THEN + CAST ( + 95 AS INTEGER ) WHEN + 81 THEN NULL END WHEN - COALESCE ( - 51, + AVG ( DISTINCT + 47 ) * 95 ) + + 16 / 76 THEN - 42 WHEN 71 / 17 THEN MAX ( DISTINCT + 85 ) WHEN 78 * 86 + 44 / - ( 32 ) THEN NULL ELSE NULLIF ( + COUNT ( * ), + NULLIF ( - 81, - 24 ) ) + + 44 END AS col2
----
-91
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5271
SELECT DISTINCT - CAST( - 50 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-5271
SELECT DISTINCT - CAST ( - 50 AS INTEGER )
----
50

query I rowsort
SELECT 93 * 29 + - 68
----
2629

query I rowsort
SELECT ALL - 76 * - 69 + 8
----
5252

query I rowsort
SELECT ALL + 17 - + - 68 + ( + 9 ) + - 10 * + 11
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT + + MIN( + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-5275
SELECT + + MIN ( + 93 )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5276
SELECT - + COUNT( * ) * 31 * - - 88 + + 9 + + 17 * CAST( NULL AS SIGNED ) * - 31 * 42 + + - AVG ( - + 0 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT - + COUNT ( * ) * 31 * - - 88 + + 9 + + 17 * CAST ( NULL AS INTEGER ) * - 31 * 42 + + - AVG ( - + 0 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5277
SELECT 73 - + 68 * + - NULLIF ( + + 75, ( - 31 ) * CAST( NULL AS SIGNED ) * + 18 + - 96 * + 15 ) col1
----
5173

skipif mysql # not compatible
query I rowsort label-5277
SELECT 73 - + 68 * + - NULLIF ( + + 75, ( - 31 ) * CAST ( NULL AS INTEGER ) * + 18 + - 96 * + 15 ) col1
----
5173

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT ALL - 31 * - CASE + 4 WHEN 73 + + COUNT( * ) THEN NULL ELSE + 36 * - COUNT( * ) * + + 6 END col0
----
-6696

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL - 31 * - CASE + 4 WHEN 73 + + COUNT ( * ) THEN NULL ELSE + 36 * - COUNT ( * ) * + + 6 END col0
----
-6696

onlyif mysql # aggregate syntax: 
query II rowsort label-5279
SELECT COUNT( * ) + 86, ( - 1 ) + + - 89 * - - COUNT( * ) AS col1
----
87
-90

skipif mysql # not compatible
query II rowsort label-5279
SELECT COUNT ( * ) + 86, ( - 1 ) + + - 89 * - - COUNT ( * ) AS col1
----
87
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT ALL - - 37 * - - MAX( 21 ) AS col0
----
777

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL - - 37 * - - MAX ( 21 ) AS col0
----
777

query II rowsort
SELECT DISTINCT - 82 * - - 92, + 39 + - 60 AS col2
----
-7544
-21

query I rowsort
SELECT - 35 + - 17
----
-52

query I rowsort
SELECT 72 + + 29 * + 53 AS col2
----
1609

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT - 62 + COUNT( * ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-5284
SELECT - 62 + COUNT ( * ) AS col1
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5285
SELECT ALL + 99 DIV + - ( - 32 ) + 81 + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL + 99 / + - ( - 32 ) + 81 + COUNT ( * )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5286
SELECT ALL - COUNT( * ) + + 67 + COUNT( * ) - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL - COUNT ( * ) + + 67 + COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 75 * - 88
----
6600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5288
SELECT ALL 48 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL 48 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5289
SELECT DISTINCT 6 + - ( 43 ) AS col1, + CAST( NULL AS SIGNED )
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-5289
SELECT DISTINCT 6 + - ( 43 ) AS col1, + CAST ( NULL AS INTEGER )
----
-37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT - COUNT( - 37 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5290
SELECT - COUNT ( - 37 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT - CASE + 92 WHEN + 45 + NULLIF ( 4, + 85 ) * - 5 * 12 + + - COALESCE ( - - NULLIF ( + 16, COUNT( ALL + 86 ) ), SUM( 47 ) + 85 * 70 ) THEN NULL WHEN ( 79 ) + 36 THEN 36 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT - CASE + 92 WHEN + 45 + NULLIF ( 4, + 85 ) * - 5 * 12 + + - COALESCE ( - - NULLIF ( + 16, COUNT ( ALL + 86 ) ), SUM ( 47 ) + 85 * 70 ) THEN NULL WHEN ( 79 ) + 36 THEN 36 * + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL 0 * 81 AS col2
----
0

query I rowsort
SELECT + 12 * - + 8 AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT ALL 94 + - 60 * + - 55 * - MIN( ALL 10 ) AS col1
----
-32906

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL 94 + - 60 * + - 55 * - MIN ( ALL 10 ) AS col1
----
-32906

onlyif mysql # aggregate syntax: 
query II rowsort label-5295
SELECT DISTINCT + 25, - COUNT( * ) AS col2
----
25
-1

skipif mysql # not compatible
query II rowsort label-5295
SELECT DISTINCT + 25, - COUNT ( * ) AS col2
----
25
-1

query I rowsort
SELECT DISTINCT - 69 * + + 9 AS col0
----
-621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5297
SELECT DISTINCT + CASE + - 64 WHEN + 88 THEN - NULLIF ( + 42, - ( + CAST( + - 65 AS DECIMAL ) ) + CASE 15 WHEN - SUM( DISTINCT 89 ) * COUNT( * ) THEN 28 WHEN - CASE + ( + 18 ) WHEN - 77 THEN NULL WHEN - 33 THEN 46 END THEN NULL WHEN - 92 / - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END + - 29 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT + CASE + - 64 WHEN + 88 THEN - NULLIF ( + 42, - ( + CAST ( + - 65 AS REAL ) ) + CASE 15 WHEN - SUM ( DISTINCT 89 ) * COUNT ( * ) THEN 28 WHEN - CASE + ( + 18 ) WHEN - 77 THEN NULL WHEN - 33 THEN 46 END THEN NULL WHEN - 92 / - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END + - 29 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5298
SELECT DISTINCT MAX( ALL - 60 ) * - - 15 DIV + COUNT( * ) + - 37 + + 19 - + + 76
----
-994

skipif mysql # not compatible
query I rowsort label-5298
SELECT DISTINCT MAX ( ALL - 60 ) * - - 15 / + COUNT ( * ) + - 37 + + 19 - + + 76
----
-994

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT - 33 * - ( + SUM( DISTINCT - - 33 ) ) - + COUNT( * )
----
1088

skipif mysql # not compatible
query I rowsort label-5299
SELECT - 33 * - ( + SUM ( DISTINCT - - 33 ) ) - + COUNT ( * )
----
1088

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT ALL + MAX( + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL + MAX ( + 42 )
----
42

query I rowsort
SELECT - 98 - + 57 * + + 33 AS col0
----
-1979

query I rowsort
SELECT + 10 * 90
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT DISTINCT - ( - ( + + COUNT( * ) ) ) * - 75 * 90 AS col1
----
-6750

skipif mysql # not compatible
query I rowsort label-5303
SELECT DISTINCT - ( - ( + + COUNT ( * ) ) ) * - 75 * 90 AS col1
----
-6750

query I rowsort
SELECT DISTINCT + 2 * - - 90 col1
----
180

query II rowsort
SELECT ALL 53 * - 17 - + 42 AS col0, 67
----
-943
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT ALL - 86 * COUNT( * ) * + + 25 + - + 77 + - + 38 AS col0
----
-2265

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL - 86 * COUNT ( * ) * + + 25 + - + 77 + - + 38 AS col0
----
-2265

onlyif mysql # DIV for integer division: 
query I rowsort label-5307
SELECT DISTINCT + + 64 DIV - 57 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT + + 64 / - 57 AS col0
----
-1

query I rowsort
SELECT - + 26 * - 0 + + 0 col0
----
0

query I rowsort
SELECT - - 83 * NULLIF ( + - 45, + - 75 + - ( - 14 ) ) AS col1
----
-3735

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT ALL + - MAX( 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL + - MAX ( 42 ) AS col2
----
-42

query II rowsort
SELECT - + ( + 45 ) * + 62 AS col1, 18
----
-2790
18

onlyif mysql # aggregate syntax: 
query II rowsort label-5312
SELECT DISTINCT - - 66 * - - 52 + + COUNT( * ) AS col1, MAX( ALL - 77 )
----
3433
-77

skipif mysql # not compatible
query II rowsort label-5312
SELECT DISTINCT - - 66 * - - 52 + + COUNT ( * ) AS col1, MAX ( ALL - 77 )
----
3433
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT DISTINCT - 37 * - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT - 37 * - COUNT ( * )
----
37

query II rowsort
SELECT ALL + 23, + ( + + 92 ) col1
----
23
92

onlyif mysql # aggregate syntax: 
query II rowsort label-5315
SELECT DISTINCT - - 68 + + + ( + 54 ) AS col1, - COUNT( * )
----
122
-1

skipif mysql # not compatible
query II rowsort label-5315
SELECT DISTINCT - - 68 + + + ( + 54 ) AS col1, - COUNT ( * )
----
122
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5316
SELECT DISTINCT - COALESCE ( - 56, - + MIN( ALL 1 ) DIV - 67 * + + COUNT( * ) * - 48 + 97 * + COALESCE ( - COUNT( * ), COUNT( * ) + + 73, - 31 DIV 23 - MAX( - 36 - 17 ) * 42, 77 ), 33 ) + 8 DIV + 51
----
56

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT - COALESCE ( - 56, - + MIN ( ALL 1 ) / - 67 * + + COUNT ( * ) * - 48 + 97 * + COALESCE ( - COUNT ( * ), COUNT ( * ) + + 73, - 31 / 23 - MAX ( - 36 - 17 ) * 42, 77 ), 33 ) + 8 / + 51
----
56

query I rowsort
SELECT ALL 66 + + 6
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5318
SELECT DISTINCT - + 17 * + 27 + + COUNT( * ) col0, 79 * + CAST( NULL AS SIGNED ) * 27, + + 18 AS col0
----
-458
NULL
18

skipif mysql # not compatible
query III rowsort label-5318
SELECT DISTINCT - + 17 * + 27 + + COUNT ( * ) col0, 79 * + CAST ( NULL AS INTEGER ) * 27, + + 18 AS col0
----
-458
NULL
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT - NULLIF ( 4, - MIN( - + 68 ) ) + - ( + 4 ) * + - COUNT( * ) * + 13
----
48

skipif mysql # not compatible
query I rowsort label-5319
SELECT - NULLIF ( 4, - MIN ( - + 68 ) ) + - ( + 4 ) * + - COUNT ( * ) * + 13
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5320
SELECT ALL CAST( 1 AS SIGNED ) col2, 50
----
1
50

skipif mysql # not compatible
query II rowsort label-5320
SELECT ALL CAST ( 1 AS INTEGER ) col2, 50
----
1
50

query I rowsort
SELECT DISTINCT - 45 + - - 71 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT ALL + 90 + 58 * 58 * + 62 * + - 88 * + MAX( - 18 ) + - 18 * + 13 AS col1
----
330371568

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL + 90 + 58 * 58 * + 62 * + - 88 * + MAX ( - 18 ) + - 18 * + 13 AS col1
----
330371568

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT - COUNT( * ) * + 41 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-5323
SELECT - COUNT ( * ) * + 41 AS col2
----
-41

query I rowsort
SELECT ALL 94 + + 55
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5325
SELECT DISTINCT + MIN( CAST( NULL AS SIGNED ) ) / + COUNT( * ) - 66 + + - 75 / ( 11 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT + MIN ( CAST ( NULL AS INTEGER ) ) / + COUNT ( * ) - 66 + + - 75 / ( 11 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5326
SELECT DISTINCT NULLIF ( 98, + COUNT( * ) ) * + COUNT( * ) * + 57 AS col0, 91 AS col2
----
5586
91

skipif mysql # not compatible
query II rowsort label-5326
SELECT DISTINCT NULLIF ( 98, + COUNT ( * ) ) * + COUNT ( * ) * + 57 AS col0, 91 AS col2
----
5586
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5327
SELECT DISTINCT + 73 DIV - 39, - COUNT( * ) AS col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-5327
SELECT DISTINCT + 73 / - 39, - COUNT ( * ) AS col2
----
-1
-1

query I rowsort
SELECT + 29 + - + 99
----
-70

query I rowsort
SELECT ALL ( - - 8 ) - + 55
----
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-5330
SELECT + 46 DIV + - 90, 99 DIV - 57 AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-5330
SELECT + 46 / + - 90, 99 / - 57 AS col1
----
0
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5331
SELECT CAST( 50 AS SIGNED ) AS col0, 31 AS col0
----
50
31

skipif mysql # not compatible
query II rowsort label-5331
SELECT CAST ( 50 AS INTEGER ) AS col0, 31 AS col0
----
50
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5332
SELECT COUNT( * ) / - - 75 / + + COUNT( * ) * 12 + - NULLIF ( - - MIN( DISTINCT 33 ), + 90 ) * + 80 * - 50 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT COUNT ( * ) / - - 75 / + + COUNT ( * ) * 12 + - NULLIF ( - - MIN ( DISTINCT 33 ), + 90 ) * + 80 * - 50 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5333
SELECT CAST( + 73 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-5333
SELECT CAST ( + 73 AS INTEGER )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT DISTINCT 10 * - MAX( DISTINCT - 92 ) AS col1
----
920

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT 10 * - MAX ( DISTINCT - 92 ) AS col1
----
920

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT ALL + MAX( DISTINCT + ( 29 ) )
----
29

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL + MAX ( DISTINCT + ( 29 ) )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT + 81 * COUNT( * ) * + - 14 - 36 col2
----
-1170

skipif mysql # not compatible
query I rowsort label-5336
SELECT + 81 * COUNT ( * ) * + - 14 - 36 col2
----
-1170

query II rowsort
SELECT ALL + 93 * + + 20, 54 AS col0
----
1860
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5338
SELECT DISTINCT + CASE - SUM( + - 41 ) WHEN 18 * 57 + - 65 + - 63 THEN 78 ELSE 32 - + + CAST( - 63 AS SIGNED ) + - + CASE + + COUNT( * ) WHEN 99 * 71 THEN NULL ELSE + 54 END END
----
41

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT + CASE - SUM ( + - 41 ) WHEN 18 * 57 + - 65 + - 63 THEN 78 ELSE 32 - + + CAST ( - 63 AS INTEGER ) + - + CASE + + COUNT ( * ) WHEN 99 * 71 THEN NULL ELSE + 54 END END
----
41

query I rowsort
SELECT ALL + + CASE - - ( + 91 ) WHEN + 30 THEN - 2 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5340
SELECT DISTINCT + + 7 DIV + 83 * COALESCE ( + + 38, + COUNT( * ), - - 9 ) - + 2 + - 65 * + 29 + - - ( + - 7 )
----
-1894

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT + + 7 / + 83 * COALESCE ( + + 38, + COUNT ( * ), - - 9 ) - + 2 + - 65 * + 29 + - - ( + - 7 )
----
-1894

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT - 12 * - 23 + 71 - + + 27 / CASE 82 WHEN - COUNT( * ) THEN - + COUNT( * ) * + - ( - 81 ) + + + 29 END * - 28 - - + 11 + + 62 * 38 + + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT - 12 * - 23 + 71 - + + 27 / CASE 82 WHEN - COUNT ( * ) THEN - + COUNT ( * ) * + - ( - 81 ) + + + 29 END * - 28 - - + 11 + + 62 * 38 + + 83 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5342
SELECT + - COUNT( * ) / + CAST( NULL AS SIGNED ) + - + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT + - COUNT ( * ) / + CAST ( NULL AS INTEGER ) + - + 61 AS col2
----
NULL

query I rowsort
SELECT - - 38 + - - ( - + 92 )
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5344
SELECT ALL - - COUNT( * ) DIV + + COALESCE ( 24, - 83 + - + 7 + - + NULLIF ( - + 47, 64 * + 86 ) ) + 74 + - + 74 + + 96 * + + COUNT( * ) * + 68 + + 10 AS col1
----
6538

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL - - COUNT ( * ) / + + COALESCE ( 24, - 83 + - + 7 + - + NULLIF ( - + 47, 64 * + 86 ) ) + 74 + - + 74 + + 96 * + + COUNT ( * ) * + 68 + + 10 AS col1
----
6538

query I rowsort
SELECT + - ( + NULLIF ( - 74, + 73 + 6 * - 13 ) ) AS col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5346
SELECT SUM( ALL + 54 ) * + + 35 + - 38 + + 63 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5346
SELECT SUM ( ALL + 54 ) * + + 35 + - 38 + + 63 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5347
SELECT CASE + + 8 WHEN + CASE COUNT( * ) WHEN 0 * - + COUNT( * ) + 71 + + 50 THEN ( + - CAST( NULL AS DECIMAL ) ) + - COUNT( * ) + + - 24 + COUNT( DISTINCT - 1 ) END THEN NULL ELSE MAX( ALL + ( + 96 ) ) + + MAX( ALL 65 + 67 ) * 91 END
----
12108

skipif mysql # not compatible
query I rowsort label-5347
SELECT CASE + + 8 WHEN + CASE COUNT ( * ) WHEN 0 * - + COUNT ( * ) + 71 + + 50 THEN ( + - CAST ( NULL AS REAL ) ) + - COUNT ( * ) + + - 24 + COUNT ( DISTINCT - 1 ) END THEN NULL ELSE MAX ( ALL + ( + 96 ) ) + + MAX ( ALL 65 + 67 ) * 91 END
----
12108

query I rowsort
SELECT ALL 44 * - - 0 * + + 31 + + 9 AS col0
----
9

query I rowsort
SELECT ALL + - 95 + - 38 col0
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5350
SELECT + + ( + CAST( - 68 AS SIGNED ) ) * 25 + - 88
----
-1788

skipif mysql # not compatible
query I rowsort label-5350
SELECT + + ( + CAST ( - 68 AS INTEGER ) ) * 25 + - 88
----
-1788

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5351
SELECT ALL 53 + + COUNT( * ) - - CAST( NULL AS SIGNED ) * + 16 + + + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL 53 + + COUNT ( * ) - - CAST ( NULL AS INTEGER ) * + 16 + + + 85 AS col1
----
NULL

query I rowsort
SELECT - 97 * 19 - - 89 AS col2
----
-1754

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT ALL - CASE + 84 WHEN + - 63 / - + COUNT( * ) THEN + 77 ELSE COUNT( + ( - 83 ) ) * - 60 * - + CASE - COUNT( * ) WHEN 21 THEN NULL ELSE + + SUM( 63 ) END * - 73 END + ( 58 )
----
275998

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL - CASE + 84 WHEN + - 63 / - + COUNT ( * ) THEN + 77 ELSE COUNT ( + ( - 83 ) ) * - 60 * - + CASE - COUNT ( * ) WHEN 21 THEN NULL ELSE + + SUM ( 63 ) END * - 73 END + ( 58 )
----
275998

query I rowsort
SELECT ALL - 91 + + 32 * + - 83
----
-2747

query I rowsort
SELECT DISTINCT + 80 * - 58 + + 20 + - 26 * + + 99
----
-7194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5356
SELECT CAST( NULL AS SIGNED ) + - 87 / - COUNT( * ) + + - 98 * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-5356
SELECT CAST ( NULL AS INTEGER ) + - 87 / - COUNT ( * ) + + - 98 * + 38
----
NULL

query I rowsort
SELECT + 64 * + 35
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT 36 * + - COUNT( * ) + + 57
----
21

skipif mysql # not compatible
query I rowsort label-5358
SELECT 36 * + - COUNT ( * ) + + 57
----
21

query II rowsort
SELECT 94 AS col0, 82 AS col0
----
94
82

query I rowsort
SELECT ALL + 59 + + 4
----
63

query I rowsort
SELECT 77 * 55 AS col1
----
4235

query I rowsort
SELECT 13 * + ( 72 ) * 13 * + - 54 + + 85
----
-656987

onlyif mysql # aggregate syntax: 
query II rowsort label-5363
SELECT DISTINCT + 86 * + + COUNT( * ) * - - 95 col1, 54 + 36 + + + 93 AS col2
----
8170
183

skipif mysql # not compatible
query II rowsort label-5363
SELECT DISTINCT + 86 * + + COUNT ( * ) * - - 95 col1, 54 + 36 + + + 93 AS col2
----
8170
183

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT ALL + MAX( DISTINCT + 88 ) * - 1 * + ( - 14 )
----
1232

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL + MAX ( DISTINCT + 88 ) * - 1 * + ( - 14 )
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT ALL + 96 * + + MIN( + - ( - 42 ) ) AS col2
----
4032

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL + 96 * + + MIN ( + - ( - 42 ) ) AS col2
----
4032

query I rowsort
SELECT 3 * - 54
----
-162

query I rowsort
SELECT ALL + 69 * + 99 * - 30 AS col0
----
-204930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5368
SELECT 86 + + COALESCE ( + 28, - 84 * - CAST( NULL AS SIGNED ) ) AS col1
----
114

skipif mysql # not compatible
query I rowsort label-5368
SELECT 86 + + COALESCE ( + 28, - 84 * - CAST ( NULL AS INTEGER ) ) AS col1
----
114

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5369
SELECT COALESCE ( NULLIF ( - 27, - CASE + 34 WHEN + CAST( 58 AS DECIMAL ) + - + ( - 68 ) THEN + 40 WHEN + - 97 + - 44 + - 16 * - - 97 THEN NULL WHEN - ( - COUNT( * ) ) * + 99 THEN NULL END ), + 40 * COALESCE ( + ( + 98 ), - 31 ) ) * + 99 AS col2
----
-2673

skipif mysql # not compatible
query I rowsort label-5369
SELECT COALESCE ( NULLIF ( - 27, - CASE + 34 WHEN + CAST ( 58 AS REAL ) + - + ( - 68 ) THEN + 40 WHEN + - 97 + - 44 + - 16 * - - 97 THEN NULL WHEN - ( - COUNT ( * ) ) * + 99 THEN NULL END ), + 40 * COALESCE ( + ( + 98 ), - 31 ) ) * + 99 AS col2
----
-2673

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5370
SELECT ALL CAST( - - 72 AS SIGNED ) DIV + 38 + + ( 24 ) * - 49
----
-1175

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL CAST ( - - 72 AS INTEGER ) / + 38 + + ( 24 ) * - 49
----
-1175

query I rowsort
SELECT 21 - ( - 32 ) + 30 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT ALL - SUM( ALL - - 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL - SUM ( ALL - - 27 ) AS col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5373
SELECT NULLIF ( + - 75, - - 79 * + COUNT( * ) * 3 + + - 88 * - 23 + - COALESCE ( - 87, 94 / - 63, + NULLIF ( + + 86, - - 82 ) * - 37 * 80 + - ( - 56 ) ) + CAST( 32 AS SIGNED ) ) * CASE 85 - - 49 WHEN ( ( 42 ) ) * + SUM( ALL ( + 67 ) + + 79 ) THEN 34 WHEN ( + 10 ) + 49 THEN - CAST( NULL AS SIGNED ) ELSE + 70 END AS col0
----
-5250

skipif mysql # not compatible
query I rowsort label-5373
SELECT NULLIF ( + - 75, - - 79 * + COUNT ( * ) * 3 + + - 88 * - 23 + - COALESCE ( - 87, 94 / - 63, + NULLIF ( + + 86, - - 82 ) * - 37 * 80 + - ( - 56 ) ) + CAST ( 32 AS INTEGER ) ) * CASE 85 - - 49 WHEN ( ( 42 ) ) * + SUM ( ALL ( + 67 ) + + 79 ) THEN 34 WHEN ( + 10 ) + 49 THEN - CAST ( NULL AS INTEGER ) ELSE + 70 END AS col0
----
-5250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5374
SELECT ALL + COUNT( * ) DIV + 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL + COUNT ( * ) / + 96 AS col0
----
0

query I rowsort
SELECT ALL - 38 * + 33
----
-1254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5376
SELECT + MAX( 88 ) DIV + NULLIF ( 58, - 53 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5376
SELECT + MAX ( 88 ) / + NULLIF ( 58, - 53 ) AS col1
----
1

query I rowsort
SELECT ALL - 64 * + 14 col2
----
-896

query I rowsort
SELECT 89 * 20 AS col1
----
1780

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT + 23 + - 89 - + 22 * + - 15 * + COUNT( * ) - - - 89
----
175

skipif mysql # not compatible
query I rowsort label-5379
SELECT + 23 + - 89 - + 22 * + - 15 * + COUNT ( * ) - - - 89
----
175

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5380
SELECT - CAST( + - 80 AS SIGNED ) DIV 97 - - + 17 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5380
SELECT - CAST ( + - 80 AS INTEGER ) / 97 - - + 17 AS col1
----
17

query I rowsort
SELECT ALL 76 + + - 24 col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT DISTINCT 3 + - + 16 * + CASE 65 WHEN + 43 THEN 98 * - NULLIF ( - COUNT( * ), - 49 + - + COUNT( * ) - ( - 43 ) ) + COUNT( * ) / + SUM( DISTINCT - 78 ) + - CASE - 33 - 38 WHEN 68 THEN + CASE - 15 WHEN 26 * 76 + - 60 THEN 33 - - 89 WHEN 33 THEN NULL ELSE NULL END WHEN 68 THEN 38 ELSE 97 END * - 42 WHEN + 38 * - 49 THEN NULL WHEN - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5382
SELECT DISTINCT 3 + - + 16 * + CASE 65 WHEN + 43 THEN 98 * - NULLIF ( - COUNT ( * ), - 49 + - + COUNT ( * ) - ( - 43 ) ) + COUNT ( * ) / + SUM ( DISTINCT - 78 ) + - CASE - 33 - 38 WHEN 68 THEN + CASE - 15 WHEN 26 * 76 + - 60 THEN 33 - - 89 WHEN 33 THEN NULL ELSE NULL END WHEN 68 THEN 38 ELSE 97 END * - 42 WHEN + 38 * - 49 THEN NULL WHEN - COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 42 * - 51 * 64
----
-137088

query I rowsort
SELECT DISTINCT + 20 + + ( 20 ) - 77 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT + COUNT( * ) * + 26 * SUM( + + 52 ) + - COUNT( * ) + 52
----
1403

skipif mysql # not compatible
query I rowsort label-5385
SELECT + COUNT ( * ) * + 26 * SUM ( + + 52 ) + - COUNT ( * ) + 52
----
1403

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT ALL - + SUM( ALL 56 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL - + SUM ( ALL 56 ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT 27 * + 48 * + + 26 + + 88 - - 0 + - 15 + - + 40 * 46 * + 83 * - COUNT( + 92 ) * - - 76 AS col0
----
11640489

skipif mysql # not compatible
query I rowsort label-5387
SELECT 27 * + 48 * + + 26 + + 88 - - 0 + - 15 + - + 40 * 46 * + 83 * - COUNT ( + 92 ) * - - 76 AS col0
----
11640489

query I rowsort
SELECT DISTINCT 87 + - 29
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5389
SELECT DISTINCT COALESCE ( + 35, - 89 + 85 DIV + NULLIF ( ( + - 17 ), 75 ) ) * - - 89 * - 87
----
-271005

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT COALESCE ( + 35, - 89 + 85 / + NULLIF ( ( + - 17 ), 75 ) ) * - - 89 * - 87
----
-271005

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT DISTINCT 24 * - + COUNT( * ) * + + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-5390
SELECT DISTINCT 24 * - + COUNT ( * ) * + + COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT ALL 41 * - 65 * 36 * - COUNT( * ) * 18
----
1726920

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL 41 * - 65 * 36 * - COUNT ( * ) * 18
----
1726920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5392
SELECT ALL - COALESCE ( + CAST( NULL AS SIGNED ), + + 5 * - 55 * + - 51 ) - - + 73 * - ( + 15 ) * - COALESCE ( 45, - + CASE + + 51 WHEN 63 THEN - COUNT( + 45 ) END )
----
35250

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL - COALESCE ( + CAST ( NULL AS INTEGER ), + + 5 * - 55 * + - 51 ) - - + 73 * - ( + 15 ) * - COALESCE ( 45, - + CASE + + 51 WHEN 63 THEN - COUNT ( + 45 ) END )
----
35250

query I rowsort
SELECT 12 - - 70
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5394
SELECT 15 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-5394
SELECT 15 / 72
----
0

query I rowsort
SELECT 86 + + 23 + + 26 AS col2
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-5396
SELECT 22 + - 56 col2, - COUNT( * )
----
-34
-1

skipif mysql # not compatible
query II rowsort label-5396
SELECT 22 + - 56 col2, - COUNT ( * )
----
-34
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5397
SELECT ALL - 28 DIV - ( + 16 )
----
1

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL - 28 / - ( + 16 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5398
SELECT 93 DIV + ( 62 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5398
SELECT 93 / + ( 62 ) AS col0
----
1

query I rowsort
SELECT 38 * - 31 * 67 AS col2
----
-78926

query I rowsort
SELECT 12 + + ( - + 46 ) * + + 47
----
-2150

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT ALL + NULLIF ( + 97, 83 ) * - COUNT( * ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL + NULLIF ( + 97, 83 ) * - COUNT ( * ) AS col0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5402
SELECT 21 + - + NULLIF ( - 88, - CAST( - - 63 AS SIGNED ) / - 78 ) AS col2
----
109

skipif mysql # not compatible
query I rowsort label-5402
SELECT 21 + - + NULLIF ( - 88, - CAST ( - - 63 AS INTEGER ) / - 78 ) AS col2
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-5403
SELECT ALL 85 AS col2, COUNT( * ) AS col1
----
85
1

skipif mysql # not compatible
query II rowsort label-5403
SELECT ALL 85 AS col2, COUNT ( * ) AS col1
----
85
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5404
SELECT ALL COUNT( * ), 26 + - COUNT( * ) AS col1
----
1
25

skipif mysql # not compatible
query II rowsort label-5404
SELECT ALL COUNT ( * ), 26 + - COUNT ( * ) AS col1
----
1
25

query I rowsort
SELECT DISTINCT + 11 * - 12
----
-132

query I rowsort
SELECT 40 * - 62 AS col2
----
-2480

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT ALL + 38 + - COUNT( * ) + MAX( + + ( - 77 ) ) + + 90 * + - COUNT( * ) * + - 25 * 74 + - 17 AS col1
----
166443

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL + 38 + - COUNT ( * ) + MAX ( + + ( - 77 ) ) + + 90 * + - COUNT ( * ) * + - 25 * 74 + - 17 AS col1
----
166443

query I rowsort
SELECT DISTINCT + 65 + - 73 * - 58 AS col1
----
4299

query I rowsort
SELECT ALL 28 * - 53 + ( 35 ) + 98 * + 3 AS col1
----
-1155

query II rowsort
SELECT DISTINCT + 21 AS col2, + 75 AS col0
----
21
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5411
SELECT ALL + CASE - ( CAST( NULL AS DECIMAL ) ) WHEN + 63 THEN 3 + 42 + - - 82 + + 46 + + COUNT( * ) WHEN COALESCE ( + ( CASE - + 34 WHEN + 59 * - 68 - + MAX( ALL - 75 ) + 82 * 57 THEN + 80 WHEN + MIN( DISTINCT + 97 ) + + 74 * + COUNT( * ) THEN NULL END ), - COALESCE ( 56, - 47 ) ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL + CASE - ( CAST ( NULL AS REAL ) ) WHEN + 63 THEN 3 + 42 + - - 82 + + 46 + + COUNT ( * ) WHEN COALESCE ( + ( CASE - + 34 WHEN + 59 * - 68 - + MAX ( ALL - 75 ) + 82 * 57 THEN + 80 WHEN + MIN ( DISTINCT + 97 ) + + 74 * + COUNT ( * ) THEN NULL END ), - COALESCE ( 56, - 47 ) ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT DISTINCT + COUNT( * ) * + + 75 - + + CASE - + 85 WHEN - COUNT( * ) / + + 9 THEN 12 * - 52 WHEN + 24 * - 24 + 57 THEN NULL END + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT + COUNT ( * ) * + + 75 - + + CASE - + 85 WHEN - COUNT ( * ) / + + 9 THEN 12 * - 52 WHEN + 24 * - 24 + 57 THEN NULL END + 60 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5413
SELECT - - CASE + 39 WHEN + - 76 + - - CAST( NULL AS SIGNED ) THEN 58 * - NULLIF ( - - 58, - - 92 ) ELSE - - CASE - 86 WHEN - 12 THEN - 2 WHEN - + CAST( - + 5 AS SIGNED ) THEN NULL WHEN 93 THEN NULL END / - MIN( ALL 27 ) + SUM( ALL + 31 ) END + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5413
SELECT - - CASE + 39 WHEN + - 76 + - - CAST ( NULL AS INTEGER ) THEN 58 * - NULLIF ( - - 58, - - 92 ) ELSE - - CASE - 86 WHEN - 12 THEN - 2 WHEN - + CAST ( - + 5 AS INTEGER ) THEN NULL WHEN 93 THEN NULL END / - MIN ( ALL 27 ) + SUM ( ALL + 31 ) END + - 16
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5414
SELECT DISTINCT - 48 * + 4 + - - 8 * + 38 + + CASE - 10 WHEN + + 55 THEN - 14 ELSE + NULLIF ( - 40, - - 61 ) END * + 32 + 28 + CAST( - + 83 AS SIGNED ) * + + 0 * SUM( DISTINCT 59 ) + 14
----
-1126

skipif mysql # not compatible
query I rowsort label-5414
SELECT DISTINCT - 48 * + 4 + - - 8 * + 38 + + CASE - 10 WHEN + + 55 THEN - 14 ELSE + NULLIF ( - 40, - - 61 ) END * + 32 + 28 + CAST ( - + 83 AS INTEGER ) * + + 0 * SUM ( DISTINCT 59 ) + 14
----
-1126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5415
SELECT DISTINCT + 62 * COALESCE ( + 55, COUNT( * ) * + CASE - CAST( NULL AS SIGNED ) WHEN 85 THEN + 54 * + 0 - + + 32 + - 47 + COUNT( * ) * + - CASE WHEN NOT NULL NOT IN ( 9 ) THEN + 41 DIV + COUNT( * ) ELSE NULL END * 41 DIV - ( - 75 - MAX( + 89 - 47 ) ) ELSE NULL END * 77 + 20 * 83 ) * 47 + + 83 AS col2
----
160353

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT + 62 * COALESCE ( + 55, COUNT ( * ) * + CASE - CAST ( NULL AS INTEGER ) WHEN 85 THEN + 54 * + 0 - + + 32 + - 47 + COUNT ( * ) * + - CASE WHEN NOT NULL NOT IN ( 9 ) THEN + 41 / + COUNT ( * ) ELSE NULL END * 41 / - ( - 75 - MAX ( + 89 - 47 ) ) ELSE NULL END * 77 + 20 * 83 ) * 47 + + 83 AS col2
----
160353

query I rowsort
SELECT + 93 * + 60 AS col1
----
5580

query I rowsort
SELECT DISTINCT + COALESCE ( - 27, 13 ) AS col0
----
-27

query I rowsort
SELECT DISTINCT ( + 82 ) * - 59 - - + ( + 42 ) + - + 73 AS col2
----
-4869

query I rowsort
SELECT ALL + + 48 * + + ( 86 )
----
4128

query II rowsort
SELECT + - 44 AS col0, + ( - 29 ) + + - 72 + ( 24 ) AS col2
----
-44
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5421
SELECT ALL + COALESCE ( + COUNT( * ), - COALESCE ( - 80, - CAST( NULL AS SIGNED ), COUNT( * ) ) + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL + COALESCE ( + COUNT ( * ), - COALESCE ( - 80, - CAST ( NULL AS INTEGER ), COUNT ( * ) ) + 61 )
----
1

query I rowsort
SELECT + 27 * - 14 + 94 AS col0
----
-284

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT DISTINCT 19 * - SUM( ALL - - 79 ) - - COUNT( * ) AS col0
----
-1500

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT 19 * - SUM ( ALL - - 79 ) - - COUNT ( * ) AS col0
----
-1500

query I rowsort
SELECT ALL + 95 * - - 17
----
1615

query I rowsort
SELECT DISTINCT + 86 * 54
----
4644

query II rowsort
SELECT + 29 * 33 AS col2, + ( + + 8 )
----
957
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5427
SELECT ALL 88 DIV + 66 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL 88 / + 66 AS col1
----
1

query I rowsort
SELECT + 99 + 23 * + + 28 + + + 44 - + ( 58 ) AS col0
----
729

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT - CASE + - 10 WHEN + + 78 * + MIN( - 30 ) THEN + - 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5429
SELECT - CASE + - 10 WHEN + + 78 * + MIN ( - 30 ) THEN + - 77 END
----
NULL

query I rowsort
SELECT ALL 58 + + 32 + + ( - 67 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT + 63 * + - MAX( DISTINCT + 58 )
----
-3654

skipif mysql # not compatible
query I rowsort label-5431
SELECT + 63 * + - MAX ( DISTINCT + 58 )
----
-3654

query II rowsort
SELECT ALL 69 * + 35 * + 64, - 87 col2
----
154560
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5433
SELECT DISTINCT 87 + COUNT( * ) - + - CAST( 47 AS SIGNED ) + 19 - - 35 - + - 6 DIV NULLIF ( - 79, + CAST( + ( - - 71 ) AS SIGNED ) * 99 ) * - 62
----
189

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT 87 + COUNT ( * ) - + - CAST ( 47 AS INTEGER ) + 19 - - 35 - + - 6 / NULLIF ( - 79, + CAST ( + ( - - 71 ) AS INTEGER ) * 99 ) * - 62
----
189

onlyif mysql # DIV for integer division: 
query I rowsort label-5434
SELECT + 27 + + 25 - 24 DIV + 12 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-5434
SELECT + 27 + + 25 - 24 / + 12 AS col1
----
50

query I rowsort
SELECT - 33 * 52 AS col0
----
-1716

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5436
SELECT + 4 + - + SUM( 67 ) + COALESCE ( - - COUNT( * ), + - 35 ) + + 79 * + - 7 + + + COUNT( * ) * + 78 - - 88 * + 79 * - + 34 * 37 * - 79 + - CAST( NULL AS DECIMAL ) + + 69 * 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5436
SELECT + 4 + - + SUM ( 67 ) + COALESCE ( - - COUNT ( * ), + - 35 ) + + 79 * + - 7 + + + COUNT ( * ) * + 78 - - 88 * + 79 * - + 34 * 37 * - 79 + - CAST ( NULL AS REAL ) + + 69 * 33 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5437
SELECT DISTINCT 35 DIV - 33
----
-1

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT 35 / - 33
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5438
SELECT + 5 DIV - COUNT( * ) + + + COUNT( * ) DIV 62 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5438
SELECT + 5 / - COUNT ( * ) + + + COUNT ( * ) / 62 AS col0
----
-5

query II rowsort
SELECT - 75 / + + 36 * + CASE + 21 WHEN + + 57 - - 77 THEN - AVG ( DISTINCT + - 57 ) WHEN - 52 THEN NULL END / + 75 AS col0, ( 29 ) AS col1
----
NULL
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5440
SELECT + + 81 - COUNT( * ) / 58 * + - ( - CASE + - COUNT( * ) WHEN - 72 * - 3 * - CAST( NULL AS SIGNED ) THEN + 46 WHEN - COUNT( * ) + - 67 THEN NULL WHEN + 74 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5440
SELECT + + 81 - COUNT ( * ) / 58 * + - ( - CASE + - COUNT ( * ) WHEN - 72 * - 3 * - CAST ( NULL AS INTEGER ) THEN + 46 WHEN - COUNT ( * ) + - 67 THEN NULL WHEN + 74 THEN NULL END ) AS col1
----
NULL

query II rowsort
SELECT - - 6 - 39 col2, 96 * - - 91
----
-33
8736

query I rowsort
SELECT ALL + 1 + 96 + + ( 24 ) * - 18 AS col1
----
-335

query I rowsort
SELECT + 17 * - + 69 + - 88 + + 87 * - 38 * 17 AS col1
----
-57463

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT DISTINCT + COUNT( ALL 68 )
----
1

skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT + COUNT ( ALL 68 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5445
SELECT - - 51 DIV 74 + - 59 DIV - + 75 - + + 64
----
-64

skipif mysql # not compatible
query I rowsort label-5445
SELECT - - 51 / 74 + - 59 / - + 75 - + + 64
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT DISTINCT 71 / + CASE - 72 WHEN 16 THEN - + 77 * - - 33 + - 51 * COUNT( * ) + 20 ELSE NULL END - - 77 * COALESCE ( - 58, 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT 71 / + CASE - 72 WHEN 16 THEN - + 77 * - - 33 + - 51 * COUNT ( * ) + 20 ELSE NULL END - - 77 * COALESCE ( - 58, 17 )
----
NULL

query II rowsort
SELECT ALL - 60 * 92 AS col2, 47 * - 40
----
-5520
-1880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5448
SELECT + CAST( - 23 AS SIGNED ), NULLIF ( - COUNT( * ), + + 72 + ( - SUM( ( + - 36 ) ) ) ) - + 99 AS col2, - - 10 * 2 * - COALESCE ( + - 55, 35 - - - ( - + COUNT( * ) ) ) * - 71 AS col0
----
-23
-100
-78100

skipif mysql # not compatible
query III rowsort label-5448
SELECT + CAST ( - 23 AS INTEGER ), NULLIF ( - COUNT ( * ), + + 72 + ( - SUM ( ( + - 36 ) ) ) ) - + 99 AS col2, - - 10 * 2 * - COALESCE ( + - 55, 35 - - - ( - + COUNT ( * ) ) ) * - 71 AS col0
----
-23
-100
-78100

query II rowsort
SELECT - 4 - - + 59 AS col0, + 37 * - 96
----
55
-3552

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT + NULLIF ( - + CASE 7 WHEN NULLIF ( - NULLIF ( 5, + 26 ), 68 ) - + + 19 / - 50 * COALESCE ( + ( ( + + 67 ) ), - 99 + - 48, + - 20 ) THEN + 82 - 19 ELSE + 15 - ( CASE + 46 WHEN - 31 * 2 THEN 87 END ) END, COUNT( * ) + 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5450
SELECT + NULLIF ( - + CASE 7 WHEN NULLIF ( - NULLIF ( 5, + 26 ), 68 ) - + + 19 / - 50 * COALESCE ( + ( ( + + 67 ) ), - 99 + - 48, + - 20 ) THEN + 82 - 19 ELSE + 15 - ( CASE + 46 WHEN - 31 * 2 THEN 87 END ) END, COUNT ( * ) + 7 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT + 25 * + + SUM( ALL 4 ) + - 8
----
92

skipif mysql # not compatible
query I rowsort label-5451
SELECT + 25 * + + SUM ( ALL 4 ) + - 8
----
92

query I rowsort
SELECT - - 30 + + + 69 + - 76 AS col0
----
23

query I rowsort
SELECT ALL + ( - 41 )
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-5454
SELECT - 30 DIV - + 54 * + - 54 * + 71 * - 90
----
0

skipif mysql # not compatible
query I rowsort label-5454
SELECT - 30 / - + 54 * + - 54 * + 71 * - 90
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5455
SELECT ALL - 37 DIV 37 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL - 37 / 37 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT - COUNT( * ) + - 26 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-5456
SELECT - COUNT ( * ) + - 26 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT COALESCE ( COUNT( * ), 91 + 62, - 25 )
----
1

skipif mysql # not compatible
query I rowsort label-5457
SELECT COALESCE ( COUNT ( * ), 91 + 62, - 25 )
----
1

query I rowsort
SELECT DISTINCT + 28 * - 81
----
-2268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5459
SELECT 37 * + 6 + - 92 + + - 51 * - - CAST( - - 24 AS SIGNED ) AS col1
----
-1094

skipif mysql # not compatible
query I rowsort label-5459
SELECT 37 * + 6 + - 92 + + - 51 * - - CAST ( - - 24 AS INTEGER ) AS col1
----
-1094

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5460
SELECT - ( + - 97 ) + + - ( - CAST( + 66 AS SIGNED ) ) AS col2
----
163

skipif mysql # not compatible
query I rowsort label-5460
SELECT - ( + - 97 ) + + - ( - CAST ( + 66 AS INTEGER ) ) AS col2
----
163

query I rowsort
SELECT + 0 * - 80
----
0

query I rowsort
SELECT - 1 * - 32 + - + 34 + + 20 * ( + + 85 ) + + 28 col2
----
1726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5463
SELECT NULLIF ( 83, + COALESCE ( - ( - - 58 ), + 97 * 29, 9 ) * - + 86 + + - 42 + + CAST( NULL AS SIGNED ) * - COUNT( * ) + + COUNT( * ) * + NULLIF ( + 31, - 78 * - - NULLIF ( - 39, 63 ) * + 52 + 62 ) * + 11 )
----
83

skipif mysql # not compatible
query I rowsort label-5463
SELECT NULLIF ( 83, + COALESCE ( - ( - - 58 ), + 97 * 29, 9 ) * - + 86 + + - 42 + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + COUNT ( * ) * + NULLIF ( + 31, - 78 * - - NULLIF ( - 39, 63 ) * + 52 + 62 ) * + 11 )
----
83

query II rowsort
SELECT + 76 * + 84 * - 29 AS col1, COALESCE ( 25, + 29 * 92 ) AS col1
----
-185136
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT - 87 + - + COALESCE ( - 99, - 74 ) - + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5465
SELECT - 87 + - + COALESCE ( - 99, - 74 ) - + COUNT ( * ) AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5466
SELECT ALL - CASE + - 73 WHEN CAST( NULL AS SIGNED ) THEN + COUNT( * ) * ( - 32 ) + 1 + 90 END * 91 / 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL - CASE + - 73 WHEN CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) * ( - 32 ) + 1 + 90 END * 91 / 85
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5467
SELECT ALL CAST( + + 65 AS SIGNED ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL CAST ( + + 65 AS INTEGER ) AS col2
----
65

query I rowsort
SELECT - 64 + 57 - + 4 + 74
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-5469
SELECT ALL 73 AS col1, + 23 * + MIN( + 21 ) * - ( + COUNT( * ) ) AS col0
----
73
-483

skipif mysql # not compatible
query II rowsort label-5469
SELECT ALL 73 AS col1, + 23 * + MIN ( + 21 ) * - ( + COUNT ( * ) ) AS col0
----
73
-483

query II rowsort
SELECT ALL 24 AS col0, ( ( 98 ) )
----
24
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT COUNT( 6 )
----
1

skipif mysql # not compatible
query I rowsort label-5471
SELECT COUNT ( 6 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT DISTINCT + 73 * NULLIF ( - 30, SUM( + ( - 4 ) ) + + - NULLIF ( - 0, + AVG ( ALL - 72 ) ) / + 93 + - - 30 ) * - 48 * - 62 + 28 AS col0
----
-6517412

skipif mysql # not compatible
query I rowsort label-5472
SELECT DISTINCT + 73 * NULLIF ( - 30, SUM ( + ( - 4 ) ) + + - NULLIF ( - 0, + AVG ( ALL - 72 ) ) / + 93 + - - 30 ) * - 48 * - 62 + 28 AS col0
----
-6517412

query II rowsort
SELECT ALL 84 AS col2, - 58 * 75 AS col2
----
84
-4350

query I rowsort
SELECT - 4 * + + ( - 97 ) * 95 * + 64
----
2359040

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT + 10 + + SUM( ALL - 44 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-5475
SELECT + 10 + + SUM ( ALL - 44 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT ALL COUNT( * ) + 28 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL COUNT ( * ) + 28 AS col1
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-5477
SELECT 50 AS col0, + COUNT( * ) AS col0
----
50
1

skipif mysql # not compatible
query II rowsort label-5477
SELECT 50 AS col0, + COUNT ( * ) AS col0
----
50
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5478
SELECT CAST( + - 1 AS SIGNED ) + - 43
----
-44

skipif mysql # not compatible
query I rowsort label-5478
SELECT CAST ( + - 1 AS INTEGER ) + - 43
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT 33 + - 90 + + SUM( DISTINCT + 18 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-5479
SELECT 33 + - 90 + + SUM ( DISTINCT + 18 ) AS col0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5480
SELECT ALL - + 44 DIV - - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL - + 44 / - - COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT DISTINCT COUNT( ALL + + 77 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT COUNT ( ALL + + 77 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5482
SELECT DISTINCT 41 AS col2, COUNT( ALL 1 )
----
41
1

skipif mysql # not compatible
query II rowsort label-5482
SELECT DISTINCT 41 AS col2, COUNT ( ALL 1 )
----
41
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5483
SELECT 25 + - + 1 + 90 + COUNT( + 59 ) + + ( + CASE + 15 WHEN + COUNT( * ) * 15 THEN - 50 WHEN - 36 THEN + - SUM( 51 ) END ) AS col0, + 76 - - 51 + - + 4 AS col2
----
65
123

skipif mysql # not compatible
query II rowsort label-5483
SELECT 25 + - + 1 + 90 + COUNT ( + 59 ) + + ( + CASE + 15 WHEN + COUNT ( * ) * 15 THEN - 50 WHEN - 36 THEN + - SUM ( 51 ) END ) AS col0, + 76 - - 51 + - + 4 AS col2
----
65
123

query I rowsort
SELECT ALL COALESCE ( 72, - 65 ) - 74 * - 81
----
6066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5485
SELECT 2 + CAST( NULL AS SIGNED ) - - 74 - + - 4 * 98 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5485
SELECT 2 + CAST ( NULL AS INTEGER ) - - 74 - + - 4 * 98 * + COUNT ( * )
----
NULL

query I rowsort
SELECT - ( - 64 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-5487
SELECT ( - 7 ) * 53 * 79 * MIN( DISTINCT 24 ) * + ( + 78 ) col2, ( + 75 ) - + COUNT( * )
----
-54866448
74

skipif mysql # not compatible
query II rowsort label-5487
SELECT ( - 7 ) * 53 * 79 * MIN ( DISTINCT 24 ) * + ( + 78 ) col2, ( + 75 ) - + COUNT ( * )
----
-54866448
74

query II rowsort
SELECT DISTINCT - + 76 AS col1, - 82
----
-76
-82

query I rowsort
SELECT - 50 + + 67 AS col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-5490
SELECT COALESCE ( + + 92, COUNT( * ) ) * - COALESCE ( 72, - COUNT( * ) ) AS col0, 41
----
-6624
41

skipif mysql # not compatible
query II rowsort label-5490
SELECT COALESCE ( + + 92, COUNT ( * ) ) * - COALESCE ( 72, - COUNT ( * ) ) AS col0, 41
----
-6624
41

query I rowsort
SELECT DISTINCT - 15 * - 57 AS col2
----
855

onlyif mysql # aggregate syntax: 
query II rowsort label-5492
SELECT 14 * ( - - COUNT( * ) ) - - 31 AS col2, 23
----
45
23

skipif mysql # not compatible
query II rowsort label-5492
SELECT 14 * ( - - COUNT ( * ) ) - - 31 AS col2, 23
----
45
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5493
SELECT AVG ( + 31 ) * - + ( 86 ) + + CAST( NULL AS SIGNED ) * + ( - - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5493
SELECT AVG ( + 31 ) * - + ( 86 ) + + CAST ( NULL AS INTEGER ) * + ( - - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT DISTINCT - MIN( - 77 )
----
77

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT - MIN ( - 77 )
----
77

query II rowsort
SELECT ALL - 69 + 28 - + + 46 * + 64 col1, 19 AS col1
----
-2985
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5496
SELECT 41 DIV - 49 col0
----
0

skipif mysql # not compatible
query I rowsort label-5496
SELECT 41 / - 49 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5497
SELECT ALL + ( CAST( + 64 AS SIGNED ) ) + + 24 * 44 AS col2
----
1120

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL + ( CAST ( + 64 AS INTEGER ) ) + + 24 * 44 AS col2
----
1120

query I rowsort
SELECT 12 * + 27 col1
----
324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5499
SELECT DISTINCT COUNT( * ) + + + 38 + MAX( + 25 ) * + - CAST( + + COUNT( * ) AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-5499
SELECT DISTINCT COUNT ( * ) + + + 38 + MAX ( + 25 ) * + - CAST ( + + COUNT ( * ) AS INTEGER )
----
14

query I rowsort
SELECT ALL - ( 21 ) + - - 26 - 85 AS col2
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-5501
SELECT 31 DIV 4 * 65 AS col0
----
455

skipif mysql # not compatible
query I rowsort label-5501
SELECT 31 / 4 * 65 AS col0
----
455

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT ALL + COUNT( * ) + + + 70 * + + COUNT( * ) + 11
----
82

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL + COUNT ( * ) + + + 70 * + + COUNT ( * ) + 11
----
82

query I rowsort
SELECT DISTINCT - 52 + + + 43 col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5504
SELECT DISTINCT 69 * - - COUNT( + ( - 93 ) ) AS col0, 76
----
69
76

skipif mysql # not compatible
query II rowsort label-5504
SELECT DISTINCT 69 * - - COUNT ( + ( - 93 ) ) AS col0, 76
----
69
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT DISTINCT + ( 3 ) + - CASE - + 4 WHEN - - 39 THEN NULL ELSE + MAX( + + 54 ) END
----
-51

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT + ( 3 ) + - CASE - + 4 WHEN - - 39 THEN NULL ELSE + MAX ( + + 54 ) END
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5506
SELECT ALL + CAST( - 31 AS SIGNED ) * + 56 * - 71 * - 20 AS col1
----
-2465120

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL + CAST ( - 31 AS INTEGER ) * + 56 * - 71 * - 20 AS col1
----
-2465120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5507
SELECT 27 * + CAST( - - 14 AS SIGNED )
----
378

skipif mysql # not compatible
query I rowsort label-5507
SELECT 27 * + CAST ( - - 14 AS INTEGER )
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT DISTINCT + MIN( + 26 ) * - + COUNT( * ) - - ( - 53 )
----
-79

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT + MIN ( + 26 ) * - + COUNT ( * ) - - ( - 53 )
----
-79

query II rowsort
SELECT ALL - 7 + + 63, + ( - - 89 ) AS col1
----
56
89

query I rowsort
SELECT 40 * - - 4 * - 8 AS col0
----
-1280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5511
SELECT DISTINCT 27 - - SUM( + 83 ) + - 53 + + ( 65 ) + + 67 DIV 52 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT 27 - - SUM ( + 83 ) + - 53 + + ( 65 ) + + 67 / 52 AS col0
----
123

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5512
SELECT ALL + NULLIF ( + - 64, - ( + + CAST( NULL AS DECIMAL ) ) )
----
-64

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL + NULLIF ( + - 64, - ( + + CAST ( NULL AS REAL ) ) )
----
-64

query I rowsort
SELECT 58 * + 95 col0
----
5510

query I rowsort
SELECT + 90 + 88
----
178

query I rowsort
SELECT ( + + 95 )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5516
SELECT 50 DIV ( 82 )
----
0

skipif mysql # not compatible
query I rowsort label-5516
SELECT 50 / ( 82 )
----
0

query I rowsort
SELECT - 82 * 40 AS col2
----
-3280

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT 96 - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-5518
SELECT 96 - COUNT ( * )
----
95

query I rowsort
SELECT - - ( - - 41 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5520
SELECT - 39 + 94 + + - 26 * NULLIF ( - + 10, - 72 ) * MAX( DISTINCT 49 ) * - 37 + + COUNT( - 57 ) + CAST( - ( ( - 54 ) ) AS SIGNED ) AS col0
----
-471270

skipif mysql # not compatible
query I rowsort label-5520
SELECT - 39 + 94 + + - 26 * NULLIF ( - + 10, - 72 ) * MAX ( DISTINCT 49 ) * - 37 + + COUNT ( - 57 ) + CAST ( - ( ( - 54 ) ) AS INTEGER ) AS col0
----
-471270

onlyif mysql # aggregate syntax: 
query II rowsort label-5521
SELECT + COUNT( * ) * - - 4 AS col2, COUNT( * )
----
4
1

skipif mysql # not compatible
query II rowsort label-5521
SELECT + COUNT ( * ) * - - 4 AS col2, COUNT ( * )
----
4
1

query I rowsort
SELECT DISTINCT COALESCE ( + + 91, - 13, + 93 ) * - 87 - + - COALESCE ( - 39, 47 + + 78 ) AS col0
----
-7956

onlyif mysql # DIV for integer division: 
query I rowsort label-5523
SELECT + 66 DIV 81 DIV - 78 DIV + 24 + - 36
----
-36

skipif mysql # not compatible
query I rowsort label-5523
SELECT + 66 / 81 / - 78 / + 24 + - 36
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT + SUM( ALL + 91 )
----
91

skipif mysql # not compatible
query I rowsort label-5524
SELECT + SUM ( ALL + 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT ALL - ( + + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL - ( + + COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5526
SELECT - COUNT( * ) DIV + 20 * - + SUM( DISTINCT 7 ) * - 44 * 77
----
0

skipif mysql # not compatible
query I rowsort label-5526
SELECT - COUNT ( * ) / + 20 * - + SUM ( DISTINCT 7 ) * - 44 * 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT MIN( DISTINCT - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-5527
SELECT MIN ( DISTINCT - 58 )
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5528
SELECT ALL - 45 * + 75 + - 90 DIV 59 AS col2
----
-3376

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL - 45 * + 75 + - 90 / 59 AS col2
----
-3376

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT ALL - MIN( - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL - MIN ( - 22 )
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5530
SELECT ALL + SUM( - 39 ) * + ( - COUNT( * ) ) + - - 21 + 71 DIV + 45 * - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL + SUM ( - 39 ) * + ( - COUNT ( * ) ) + - - 21 + 71 / + 45 * - COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT ALL - 38 + - + SUM( ALL - + 12 ) + 10
----
-16

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL - 38 + - + SUM ( ALL - + 12 ) + 10
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT - 4 * - 49 + + - COUNT( * ) + + COALESCE ( + 67, + 41 + - 84 ) * + 42
----
3009

skipif mysql # not compatible
query I rowsort label-5532
SELECT - 4 * - 49 + + - COUNT ( * ) + + COALESCE ( + 67, + 41 + - 84 ) * + 42
----
3009

query I rowsort
SELECT 47 * + 94 * - 73 AS col2
----
-322514

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT DISTINCT ( + COUNT( * ) ) + ( 9 )
----
10

skipif mysql # not compatible
query I rowsort label-5534
SELECT DISTINCT ( + COUNT ( * ) ) + ( 9 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT - 74 + + 51 * + - 29 * 13 + - 91 - + NULLIF ( MIN( DISTINCT + 93 ), + - 74 ) / CASE + NULLIF ( - 4, 88 ) WHEN 48 * - 17 THEN - 68 ELSE NULL END * - COUNT( * ) * - 11 * - + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5535
SELECT - 74 + + 51 * + - 29 * 13 + - 91 - + NULLIF ( MIN ( DISTINCT + 93 ), + - 74 ) / CASE + NULLIF ( - 4, 88 ) WHEN 48 * - 17 THEN - 68 ELSE NULL END * - COUNT ( * ) * - 11 * - + 22 AS col2
----
NULL

query I rowsort
SELECT ALL CASE - 60 WHEN - ( + 68 ) THEN ( - + ( 63 ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5537
SELECT + 98 * MAX( DISTINCT 80 ) + - CASE CASE - NULLIF ( - 47, - - 34 ) WHEN 12 THEN ( - NULLIF ( - + 85, 70 * - 56 * 11 ) ) + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * 48 - - ( 21 ) * + 91 END WHEN 34 THEN 16 WHEN 68 THEN NULL END * + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5537
SELECT + 98 * MAX ( DISTINCT 80 ) + - CASE CASE - NULLIF ( - 47, - - 34 ) WHEN 12 THEN ( - NULLIF ( - + 85, 70 * - 56 * 11 ) ) + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * 48 - - ( 21 ) * + 91 END WHEN 34 THEN 16 WHEN 68 THEN NULL END * + 88 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5538
SELECT ALL CAST( + - CAST( 32 AS SIGNED ) AS SIGNED ), - COUNT( * ) + - 89 * - 50 AS col0
----
-32
4449

skipif mysql # not compatible
query II rowsort label-5538
SELECT ALL CAST ( + - CAST ( 32 AS INTEGER ) AS INTEGER ), - COUNT ( * ) + - 89 * - 50 AS col0
----
-32
4449

query I rowsort
SELECT - - 44 * + 41
----
1804

query II rowsort
SELECT - 37 AS col2, + 44 * - 68
----
-37
-2992

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT - 30 + - COUNT( ALL 79 ) + - - 2 - - 36 * 38 AS col1
----
1339

skipif mysql # not compatible
query I rowsort label-5541
SELECT - 30 + - COUNT ( ALL 79 ) + - - 2 - - 36 * 38 AS col1
----
1339

onlyif mysql # DIV for integer division: 
query I rowsort label-5542
SELECT ALL - + 77 DIV + 49
----
-1

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL - + 77 / + 49
----
-1

query II rowsort
SELECT - - 42 AS col2, 20 * + 26 col1
----
42
520

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5544
SELECT - CAST( NULL AS DECIMAL ) + - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5544
SELECT - CAST ( NULL AS REAL ) + - 53 AS col2
----
NULL

query I rowsort
SELECT - 83 * - 17 * + ( - 52 )
----
-73372

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT - COUNT( - 96 ) * - + 88 * + 33
----
2904

skipif mysql # not compatible
query I rowsort label-5546
SELECT - COUNT ( - 96 ) * - + 88 * + 33
----
2904

query I rowsort
SELECT - 57 + 62 + + - 7
----
-2

query I rowsort
SELECT ALL - + 2 * + 48 * - 76
----
7296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5549
SELECT - + 67 + + NULLIF ( - 61, NULLIF ( - 28, + CAST( NULL AS SIGNED ) ) * + 29 * - 11 ) + COUNT( * ) + + 30 + - 83 + 7 - + COUNT( * ) * 93 * - SUM( ALL + COALESCE ( - - 55, - + 34 ) ) col2, 84 * - 51 / + CASE COUNT( * ) WHEN - 68 * - COUNT( * ) THEN 42 ELSE NULL END + 5
----
4942
NULL

skipif mysql # not compatible
query II rowsort label-5549
SELECT - + 67 + + NULLIF ( - 61, NULLIF ( - 28, + CAST ( NULL AS INTEGER ) ) * + 29 * - 11 ) + COUNT ( * ) + + 30 + - 83 + 7 - + COUNT ( * ) * 93 * - SUM ( ALL + COALESCE ( - - 55, - + 34 ) ) col2, 84 * - 51 / + CASE COUNT ( * ) WHEN - 68 * - COUNT ( * ) THEN 42 ELSE NULL END + 5
----
4942
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5550
SELECT + + COUNT( - - 47 ) DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-5550
SELECT + + COUNT ( - - 47 ) / 41
----
0

query I rowsort
SELECT - - 92 + + - ( 12 ) AS col0
----
80

query I rowsort
SELECT - + 75 * - - 37 AS col0
----
-2775

query II rowsort
SELECT DISTINCT + - ( 34 ) * 69, 18 AS col1
----
-2346
18

query II rowsort
SELECT + 60 + ( - 98 ), 17 AS col0
----
-38
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT DISTINCT + MIN( - 19 ) + + 80 + 2 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT + MIN ( - 19 ) + + 80 + 2 AS col0
----
63

query I rowsort
SELECT - 3 * - 34
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT + CASE - SUM( ALL - 63 ) WHEN 16 THEN NULL ELSE - - 74 * + 98 END + - - 99
----
7351

skipif mysql # not compatible
query I rowsort label-5557
SELECT + CASE - SUM ( ALL - 63 ) WHEN 16 THEN NULL ELSE - - 74 * + 98 END + - - 99
----
7351

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5558
SELECT ALL - + ( COALESCE ( + 11, - COUNT( * ), + 83, + 90 + - 50 ) ) DIV + - MAX( + + 60 ) + - + 53 * - SUM( ALL + 24 ) * 10
----
12720

skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL - + ( COALESCE ( + 11, - COUNT ( * ), + 83, + 90 + - 50 ) ) / + - MAX ( + + 60 ) + - + 53 * - SUM ( ALL + 24 ) * 10
----
12720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5559
SELECT ALL + 17 DIV + - 30 + MIN( - 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL + 17 / + - 30 + MIN ( - 71 ) AS col0
----
-71

query I rowsort
SELECT ( - - 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT DISTINCT 32 * + - COUNT( * ) * - 76 + + NULLIF ( - + 98, - - 25 ) + - 50 AS col2
----
2284

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT 32 * + - COUNT ( * ) * - 76 + + NULLIF ( - + 98, - - 25 ) + - 50 AS col2
----
2284

query I rowsort
SELECT + 47 * + 55
----
2585

query I rowsort
SELECT ALL + 23 * - 10 + - 46
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT ALL - COUNT( * ) * - COALESCE ( - - 57, - - 85, + 92, - 21 ) + - 7
----
50

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL - COUNT ( * ) * - COALESCE ( - - 57, - - 85, + 92, - 21 ) + - 7
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT + CASE 47 WHEN - COUNT( * ) THEN + 67 WHEN + + 19 * + COALESCE ( + 4, 25 ) THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT + CASE 47 WHEN - COUNT ( * ) THEN + 67 WHEN + + 19 * + COALESCE ( + 4, 25 ) THEN NULL END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5566
SELECT ALL 26 * - + 45 + - 91 + - - 5 * - COALESCE ( + - 6, 2 + - - 92 DIV - COUNT( * ) )
----
-1231

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL 26 * - + 45 + - 91 + - - 5 * - COALESCE ( + - 6, 2 + - - 92 / - COUNT ( * ) )
----
-1231

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT + 17 * + ( - 61 ) * - COUNT( * ) + - 20
----
1017

skipif mysql # not compatible
query I rowsort label-5567
SELECT + 17 * + ( - 61 ) * - COUNT ( * ) + - 20
----
1017

query I rowsort
SELECT ALL 23 * - 32
----
-736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5569
SELECT 6 * 67 + 90 - + COUNT( * ) + 90 DIV NULLIF ( 80, 14 ) * + 31 * - 3 * 8 - MAX( ALL + - 60 ) AS col0
----
-193

skipif mysql # not compatible
query I rowsort label-5569
SELECT 6 * 67 + 90 - + COUNT ( * ) + 90 / NULLIF ( 80, 14 ) * + 31 * - 3 * 8 - MAX ( ALL + - 60 ) AS col0
----
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT ( + CASE + - 87 WHEN + NULLIF ( COUNT( * ), + ( + + ( - 89 ) ) ) THEN - 94 + COUNT( * ) + - 25 / + 83 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5570
SELECT ( + CASE + - 87 WHEN + NULLIF ( COUNT ( * ), + ( + + ( - 89 ) ) ) THEN - 94 + COUNT ( * ) + - 25 / + 83 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT CASE 94 WHEN COUNT( * ) THEN - - 81 / 78 + 27 * + - 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5571
SELECT CASE 94 WHEN COUNT ( * ) THEN - - 81 / 78 + 27 * + - 56 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT + COUNT( * ) + + - 11 + - COUNT( * ) * - COUNT( * ) + 71 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-5572
SELECT + COUNT ( * ) + + - 11 + - COUNT ( * ) * - COUNT ( * ) + 71 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ALL - 8 * COUNT( * ) - 55
----
-63

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL - 8 * COUNT ( * ) - 55
----
-63

query I rowsort
SELECT + 81 * - 7
----
-567

query I rowsort
SELECT + 87 + + 0 * + + 44
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5576
SELECT ALL 93 DIV 85 * + 85 col1
----
85

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL 93 / 85 * + 85 col1
----
85

query I rowsort
SELECT CASE - + 95 WHEN - 43 THEN NULL ELSE + + ( 95 ) END col2
----
95

query II rowsort
SELECT ALL + 95, 80 * 76 * - + 66 AS col0
----
95
-401280

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5579
SELECT + CAST( 16 AS SIGNED ) AS col0, 60 * ( - 76 ) - - - CAST( NULL AS SIGNED ) AS col0
----
16
NULL

skipif mysql # not compatible
query II rowsort label-5579
SELECT + CAST ( 16 AS INTEGER ) AS col0, 60 * ( - 76 ) - - - CAST ( NULL AS INTEGER ) AS col0
----
16
NULL

query I rowsort
SELECT ALL + 44 * 56
----
2464

query I rowsort
SELECT + ( 58 ) * 43 AS col0
----
2494

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5582
SELECT + 43, CAST( + CAST( + - 24 AS DECIMAL ) AS SIGNED ) AS col0
----
43
-24

skipif mysql # not compatible
query II rowsort label-5582
SELECT + 43, CAST ( + CAST ( + - 24 AS REAL ) AS INTEGER ) AS col0
----
43
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5583
SELECT + MIN( CAST( - 13 AS SIGNED ) )
----
-13

skipif mysql # not compatible
query I rowsort label-5583
SELECT + MIN ( CAST ( - 13 AS INTEGER ) )
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5584
SELECT + + 71 * - COUNT( * ) + + - ( - 87 ) + 26 DIV - + 96 * + ( 94 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-5584
SELECT + + 71 * - COUNT ( * ) + + - ( - 87 ) + 26 / - + 96 * + ( 94 ) AS col2
----
16

query I rowsort
SELECT + - ( + 39 ) - - 9 * - + 2
----
-57

query II rowsort
SELECT DISTINCT + 74, + 24 AS col0
----
74
24

query I rowsort
SELECT - + ( + - 69 )
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5588
SELECT ALL + 52 + - CAST( NULL AS SIGNED ) - + 88 + + + 69 + + 84 / + 1 * + + 69, - ( 40 ) AS col2
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-5588
SELECT ALL + 52 + - CAST ( NULL AS INTEGER ) - + 88 + + + 69 + + 84 / + 1 * + + 69, - ( 40 ) AS col2
----
NULL
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT - + 72 * - + 43 + + - COUNT( * )
----
3095

skipif mysql # not compatible
query I rowsort label-5589
SELECT - + 72 * - + 43 + + - COUNT ( * )
----
3095

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT ALL - 61 + - - 93 + + - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-5590
SELECT ALL - 61 + - - 93 + + - COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT ALL + 91 + - COUNT( * ) + + - 29 * - 23 * 41 * + 57 + + - 99
----
1558770

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL + 91 + - COUNT ( * ) + + - 29 * - 23 * 41 * + 57 + + - 99
----
1558770

query I rowsort
SELECT + 88 + + + 56
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5593
SELECT ALL - 0 + + COUNT( * ) DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL - 0 + + COUNT ( * ) / - 81
----
0

query I rowsort
SELECT - + ( + - 75 ) * - 69 AS col0
----
-5175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5595
SELECT ALL + - 95 + - - CAST( NULL AS SIGNED ) - - + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL + - 95 + - - CAST ( NULL AS INTEGER ) - - + 70 AS col2
----
NULL

query I rowsort
SELECT - + ( 56 )
----
-56

query I rowsort
SELECT - 24 + 4 * 61
----
220

query I rowsort
SELECT ALL + 20 + 0 AS col1
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-5599
SELECT DISTINCT + COUNT( DISTINCT - 34 ), NULLIF ( 0, - CASE + 66 WHEN + 89 THEN NULL ELSE 43 END ) AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-5599
SELECT DISTINCT + COUNT ( DISTINCT - 34 ), NULLIF ( 0, - CASE + 66 WHEN + 89 THEN NULL ELSE 43 END ) AS col0
----
1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5600
SELECT ALL + MAX( + 24 ), 17 + SUM( - 38 ) + - CASE - CAST( NULL AS SIGNED ) WHEN + - 9 THEN - SUM( DISTINCT + - CASE - 86 WHEN - 66 THEN - 27 * - + 87 END ) ELSE 20 END DIV - ( + COUNT( - ( 29 ) ) ) col1
----
24
-1

skipif mysql # not compatible
query II rowsort label-5600
SELECT ALL + MAX ( + 24 ), 17 + SUM ( - 38 ) + - CASE - CAST ( NULL AS INTEGER ) WHEN + - 9 THEN - SUM ( DISTINCT + - CASE - 86 WHEN - 66 THEN - 27 * - + 87 END ) ELSE 20 END / - ( + COUNT ( - ( 29 ) ) ) col1
----
24
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT NULLIF ( 76, + + 88 ) * - 95 - + 3 * + SUM( - - 9 )
----
-7247

skipif mysql # not compatible
query I rowsort label-5601
SELECT NULLIF ( 76, + + 88 ) * - 95 - + 3 * + SUM ( - - 9 )
----
-7247

query II rowsort
SELECT 40 * - 80 AS col0, + 29
----
-3200
29

query I rowsort
SELECT ALL 69 * + 14 * - 49
----
-47334

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT SUM( + 11 ) * + 64 - - 57 - + + MAX( 37 ) * - 77 * + 66 - + 67 AS col1
----
188728

skipif mysql # not compatible
query I rowsort label-5604
SELECT SUM ( + 11 ) * + 64 - - 57 - + + MAX ( 37 ) * - 77 * + 66 - + 67 AS col1
----
188728

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT - 58 * - 73 + + 41 * - + CASE - 40 WHEN 73 + + 8 + + 17 * COUNT( * ) THEN - + ( 4 ) + + - CASE 12 WHEN 91 THEN - 87 ELSE NULL END + - 57 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT - 58 * - 73 + + 41 * - + CASE - 40 WHEN 73 + + 8 + + 17 * COUNT ( * ) THEN - + ( 4 ) + + - CASE 12 WHEN 91 THEN - 87 ELSE NULL END + - 57 ELSE NULL END
----
NULL

query I rowsort
SELECT 23 * 70 AS col0
----
1610

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT ALL - + MIN( 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL - + MIN ( 34 ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT COUNT( * ) * - + 92
----
-92

skipif mysql # not compatible
query I rowsort label-5608
SELECT COUNT ( * ) * - + 92
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5609
SELECT + + CASE - CAST( + MAX( ( + + 23 ) ) AS SIGNED ) WHEN 83 THEN NULL ELSE COUNT( * ) * - 32 * - + COALESCE ( - 10, + 68 ) * - - 79 END AS col1
----
-25280

skipif mysql # not compatible
query I rowsort label-5609
SELECT + + CASE - CAST ( + MAX ( ( + + 23 ) ) AS INTEGER ) WHEN 83 THEN NULL ELSE COUNT ( * ) * - 32 * - + COALESCE ( - 10, + 68 ) * - - 79 END AS col1
----
-25280

query I rowsort
SELECT 56 + - 44 - - - 22 AS col2
----
-10

query I rowsort
SELECT ALL 9 + - 68 AS col0
----
-59

query I rowsort
SELECT - 78 + - 53 AS col1
----
-131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5613
SELECT ALL 22 + - 85 + - 61 * - COALESCE ( + 89, ( + 72 ) + + - 8 + - - 58 * + COUNT( DISTINCT + 27 ) ) + 21 + - COUNT( 30 ) * 35 DIV + + 13 + - MAX( ALL + 6 ) + 2 - + 32 col0
----
5349

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL 22 + - 85 + - 61 * - COALESCE ( + 89, ( + 72 ) + + - 8 + - - 58 * + COUNT ( DISTINCT + 27 ) ) + 21 + - COUNT ( 30 ) * 35 / + + 13 + - MAX ( ALL + 6 ) + 2 - + 32 col0
----
5349

query I rowsort
SELECT - ( - + 80 ) * - + ( 8 ) + - 99
----
-739

onlyif mysql # DIV for integer division: 
query I rowsort label-5615
SELECT ALL 31 * - - 71 + - - 52 DIV 17
----
2204

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL 31 * - - 71 + - - 52 / 17
----
2204

query I rowsort
SELECT DISTINCT - 53 + - + 47 + 4
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5617
SELECT ALL + + COUNT( * ) + + CASE + ( CASE - 97 WHEN + - 32 THEN + 78 WHEN COALESCE ( + 8, 52, ( + 49 ) ) THEN NULL ELSE + + COALESCE ( - + 21, - 62 + + ( ( - COALESCE ( + - 79, + 1, + - CAST( NULL AS SIGNED ) ) ) ) + + + COUNT( * ), + ( 15 ) + 54 ) END ) WHEN + 56 THEN NULL WHEN - COUNT( * ) THEN - 96 * 69 END * 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL + + COUNT ( * ) + + CASE + ( CASE - 97 WHEN + - 32 THEN + 78 WHEN COALESCE ( + 8, 52, ( + 49 ) ) THEN NULL ELSE + + COALESCE ( - + 21, - 62 + + ( ( - COALESCE ( + - 79, + 1, + - CAST ( NULL AS INTEGER ) ) ) ) + + + COUNT ( * ), + ( 15 ) + 54 ) END ) WHEN + 56 THEN NULL WHEN - COUNT ( * ) THEN - 96 * 69 END * 75 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT COALESCE ( COUNT( * ), - 38 * 73, + 84 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5618
SELECT COALESCE ( COUNT ( * ), - 38 * 73, + 84 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5619
SELECT ALL CAST( + 21 AS SIGNED ) + + - 33 * - - 35
----
-1134

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL CAST ( + 21 AS INTEGER ) + + - 33 * - - 35
----
-1134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5620
SELECT + 42 + + 68 + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5620
SELECT + 42 + + 68 + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT NULLIF ( 29, COUNT( * ) * NULLIF ( + 73, 90 + - - COUNT( * ) ) - - 2 + 93 * - + 3 + + + ( + - 94 ) ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-5621
SELECT NULLIF ( 29, COUNT ( * ) * NULLIF ( + 73, 90 + - - COUNT ( * ) ) - - 2 + 93 * - + 3 + + + ( + - 94 ) ) AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5622
SELECT 43 / ( - COUNT( * ) ) - + + CAST( NULL AS SIGNED ) + + 20 * - CAST( + - 56 AS SIGNED ) + 99 * 76 + 96 + + 70 * 26 * - 49 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5622
SELECT 43 / ( - COUNT ( * ) ) - + + CAST ( NULL AS INTEGER ) + + 20 * - CAST ( + - 56 AS INTEGER ) + 99 * 76 + 96 + + 70 * 26 * - 49 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT 31 * 18 * - COUNT( * )
----
-558

skipif mysql # not compatible
query I rowsort label-5623
SELECT 31 * 18 * - COUNT ( * )
----
-558

query I rowsort
SELECT 12 + - - 58
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT DISTINCT - COUNT( * ) - - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5625
SELECT DISTINCT - COUNT ( * ) - - + COUNT ( * )
----
0

query I rowsort
SELECT NULLIF ( 32, 29 * 49 ) * + + 15 AS col2
----
480

query I rowsort
SELECT 60 + - - 62 AS col1
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5628
SELECT ALL - CAST( + 76 AS SIGNED ) - 58 AS col1, + 54 AS col2
----
-134
54

skipif mysql # not compatible
query II rowsort label-5628
SELECT ALL - CAST ( + 76 AS INTEGER ) - 58 AS col1, + 54 AS col2
----
-134
54

query II rowsort
SELECT - 9, 5 col1
----
-9
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5630
SELECT 40 DIV + + 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5630
SELECT 40 / + + 68 AS col1
----
0

query I rowsort
SELECT ALL - COALESCE ( + 56, - 35 )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5632
SELECT COUNT( * ) - - 16 + - + CAST( + ( - 90 ) AS SIGNED )
----
107

skipif mysql # not compatible
query I rowsort label-5632
SELECT COUNT ( * ) - - 16 + - + CAST ( + ( - 90 ) AS INTEGER )
----
107

query I rowsort
SELECT DISTINCT - ( - + 15 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-5634
SELECT 12 col1, 41 + + - 36 - COUNT( * ) - 10 * + 47 + - 42 AS col0
----
12
-508

skipif mysql # not compatible
query II rowsort label-5634
SELECT 12 col1, 41 + + - 36 - COUNT ( * ) - 10 * + 47 + - 42 AS col0
----
12
-508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5635
SELECT COUNT( + 82 ) + + 23 + 88 DIV + + 43 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-5635
SELECT COUNT ( + 82 ) + + 23 + 88 / + + 43 AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5636
SELECT ALL - COUNT( * ) AS col2, COUNT( * ) / 80 / - 62 / + - COUNT( * ) + CAST( NULL AS SIGNED ) + + 4
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5636
SELECT ALL - COUNT ( * ) AS col2, COUNT ( * ) / 80 / - 62 / + - COUNT ( * ) + CAST ( NULL AS INTEGER ) + + 4
----
-1
NULL

query I rowsort
SELECT 65 * + 67 * - 32 AS col0
----
-139360

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT - 10 + + - 27 * COUNT( DISTINCT + 99 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-5638
SELECT - 10 + + - 27 * COUNT ( DISTINCT + 99 ) AS col1
----
-37

query II rowsort
SELECT + + 24, 5 AS col2
----
24
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT + - SUM( DISTINCT - 95 )
----
95

skipif mysql # not compatible
query I rowsort label-5640
SELECT + - SUM ( DISTINCT - 95 )
----
95

query I rowsort
SELECT ALL + 74 + - - 39 * - 10 AS col0
----
-316

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT - 76 * ( CASE 72 WHEN + MIN( + 82 ) THEN - - 23 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5642
SELECT - 76 * ( CASE 72 WHEN + MIN ( + 82 ) THEN - - 23 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5643
SELECT ALL + 94 + 26 + + 9 AS col0, - 4 + - + CAST( NULL AS SIGNED ) AS col2
----
129
NULL

skipif mysql # not compatible
query II rowsort label-5643
SELECT ALL + 94 + 26 + + 9 AS col0, - 4 + - + CAST ( NULL AS INTEGER ) AS col2
----
129
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5644
SELECT + ( + 0 ) DIV 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5644
SELECT + ( + 0 ) / 40 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT ( - - ( - + 37 ) ) * - MAX( ALL - 89 ) + + ( - ( - - 8 ) ) col2
----
-3301

skipif mysql # not compatible
query I rowsort label-5645
SELECT ( - - ( - + 37 ) ) * - MAX ( ALL - 89 ) + + ( - ( - - 8 ) ) col2
----
-3301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5646
SELECT DISTINCT CASE + + COALESCE ( 15, + 94 - - + AVG ( 24 ), - COUNT( * ) + 53 * + NULLIF ( 41, + NULLIF ( + 67, - 5 ) ) * + ( - 55 ) ) WHEN + 66 THEN + ( 12 ) + - ( - 56 ) + - 14 * + + 60 * - CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN NULL WHEN 8 - - 89 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT CASE + + COALESCE ( 15, + 94 - - + AVG ( 24 ), - COUNT ( * ) + 53 * + NULLIF ( 41, + NULLIF ( + 67, - 5 ) ) * + ( - 55 ) ) WHEN + 66 THEN + ( 12 ) + - ( - 56 ) + - 14 * + + 60 * - CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN NULL WHEN 8 - - 89 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 61 + + + 56 AS col1
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-5648
SELECT DISTINCT - 67 DIV + 7 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-5648
SELECT DISTINCT - 67 / + 7 AS col1
----
-9

query I rowsort
SELECT ALL - - ( - + 51 ) - 20
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5650
SELECT MAX( + - CAST( - - 43 AS SIGNED ) ), + 89 + - 54 + + - COUNT( * ) * ( + 31 ) * - - CAST( NULL AS SIGNED ) AS col1
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-5650
SELECT MAX ( + - CAST ( - - 43 AS INTEGER ) ), + 89 + - 54 + + - COUNT ( * ) * ( + 31 ) * - - CAST ( NULL AS INTEGER ) AS col1
----
-43
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5651
SELECT + MIN( 66 ) + + CAST( NULL AS SIGNED ) + + 44 + 50 + MAX( - 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5651
SELECT + MIN ( 66 ) + + CAST ( NULL AS INTEGER ) + + 44 + 50 + MAX ( - 1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5652
SELECT + 88 + + 16 DIV - 76 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5652
SELECT + 88 + + 16 / - 76 AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5653
SELECT + NULLIF ( 4, - MIN( 65 ) / - CAST( NULL AS DECIMAL ) + + 8 ) + - + 76 - - 21
----
-51

skipif mysql # not compatible
query I rowsort label-5653
SELECT + NULLIF ( 4, - MIN ( 65 ) / - CAST ( NULL AS REAL ) + + 8 ) + - + 76 - - 21
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT + 82 * - SUM( 41 ) * - 8 * - NULLIF ( + 90, - 99 - + + 55 )
----
-2420640

skipif mysql # not compatible
query I rowsort label-5654
SELECT + 82 * - SUM ( 41 ) * - 8 * - NULLIF ( + 90, - 99 - + + 55 )
----
-2420640

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT - COUNT( ( 57 ) ) * COUNT( 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-5655
SELECT - COUNT ( ( 57 ) ) * COUNT ( 75 )
----
-1

query I rowsort
SELECT ALL 94 * - 78 col2
----
-7332

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT DISTINCT COUNT( * ) * + - 4 * ( - ( 75 ) ) AS col1
----
300

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT COUNT ( * ) * + - 4 * ( - ( 75 ) ) AS col1
----
300

query I rowsort
SELECT - NULLIF ( 17, + + 5 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT + COUNT( * ) + + 69 * - 86 AS col0
----
-5933

skipif mysql # not compatible
query I rowsort label-5659
SELECT + COUNT ( * ) + + 69 * - 86 AS col0
----
-5933

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5660
SELECT ALL COALESCE ( + CASE - 58 WHEN - + CAST( + AVG ( + 94 ) AS SIGNED ) * + + 40 * - 19 THEN - COUNT( * ) - - ( 38 ) ELSE - 55 END, + 9 + - + 95 ) * - 58
----
3190

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL COALESCE ( + CASE - 58 WHEN - + CAST ( + AVG ( + 94 ) AS INTEGER ) * + + 40 * - 19 THEN - COUNT ( * ) - - ( 38 ) ELSE - 55 END, + 9 + - + 95 ) * - 58
----
3190

query I rowsort
SELECT + 11 + - 23 AS col1
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-5662
SELECT DISTINCT + 3 DIV 75 * + 8
----
0

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT + 3 / 75 * + 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT + MIN( DISTINCT - - 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-5663
SELECT + MIN ( DISTINCT - - 65 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT COALESCE ( + - MIN( 69 ), + NULLIF ( - NULLIF ( + COUNT( * ), - + 48 ), - 74 * + + 22 + + - MIN( DISTINCT - + 16 ) + + 76 + + 64 - - 94 * - 14 ), 48 + + 49 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-5664
SELECT COALESCE ( + - MIN ( 69 ), + NULLIF ( - NULLIF ( + COUNT ( * ), - + 48 ), - 74 * + + 22 + + - MIN ( DISTINCT - + 16 ) + + 76 + + 64 - - 94 * - 14 ), 48 + + 49 ) AS col1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5665
SELECT + COUNT( * ) * - + ( + CAST( NULL AS DECIMAL ) ) * + - CAST( NULL AS SIGNED ) - - 72 - 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5665
SELECT + COUNT ( * ) * - + ( + CAST ( NULL AS REAL ) ) * + - CAST ( NULL AS INTEGER ) - - 72 - 71 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5666
SELECT - ( - 35 ) * - 78 * + 19, - COUNT( * ) AS col2
----
-51870
-1

skipif mysql # not compatible
query II rowsort label-5666
SELECT - ( - 35 ) * - 78 * + 19, - COUNT ( * ) AS col2
----
-51870
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5667
SELECT DISTINCT 28 DIV 53, COUNT( DISTINCT + + 84 ) * + 97 + + + 54 AS col1
----
0
151

skipif mysql # not compatible
query II rowsort label-5667
SELECT DISTINCT 28 / 53, COUNT ( DISTINCT + + 84 ) * + 97 + + + 54 AS col1
----
0
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5668
SELECT ALL ( - CAST( - 84 AS SIGNED ) ) * SUM( ALL 84 ) + - - 64 * - 7 AS col1
----
6608

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL ( - CAST ( - 84 AS INTEGER ) ) * SUM ( ALL 84 ) + - - 64 * - 7 AS col1
----
6608

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT DISTINCT 75 * 78 + + COUNT( * ) * 90 - + - 3 col0
----
5943

skipif mysql # not compatible
query I rowsort label-5669
SELECT DISTINCT 75 * 78 + + COUNT ( * ) * 90 - + - 3 col0
----
5943

onlyif mysql # DIV for integer division: 
query II rowsort label-5670
SELECT ALL 56 * 3 + 11 + 18 + + 29 DIV - - 95 - + 28 AS col0, + 11
----
169
11

skipif mysql # not compatible
query II rowsort label-5670
SELECT ALL 56 * 3 + 11 + 18 + + 29 / - - 95 - + 28 AS col0, + 11
----
169
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5671
SELECT DISTINCT CASE 66 WHEN 91 * - NULLIF ( - COALESCE ( + 68, - 65 ), NULLIF ( - 34, + - CAST( NULL AS SIGNED ) - ( 52 ) + - + 99 + + 87 + 64 + - 4 * - 42 / - 23 - - 85 / + 9 ) + + - ( - 80 ) + - - 44 - + - 43 + - 6 * - ( - 13 + COUNT( * ) * MAX( DISTINCT + ( - 25 ) ) ) ) + - 49 + 54 * COUNT( * ) THEN NULL WHEN 85 THEN 67 ELSE 42 + + MIN( 71 ) END * + 37 + - SUM( 15 ) AS col0
----
4166

skipif mysql # not compatible
query I rowsort label-5671
SELECT DISTINCT CASE 66 WHEN 91 * - NULLIF ( - COALESCE ( + 68, - 65 ), NULLIF ( - 34, + - CAST ( NULL AS INTEGER ) - ( 52 ) + - + 99 + + 87 + 64 + - 4 * - 42 / - 23 - - 85 / + 9 ) + + - ( - 80 ) + - - 44 - + - 43 + - 6 * - ( - 13 + COUNT ( * ) * MAX ( DISTINCT + ( - 25 ) ) ) ) + - 49 + 54 * COUNT ( * ) THEN NULL WHEN 85 THEN 67 ELSE 42 + + MIN ( 71 ) END * + 37 + - SUM ( 15 ) AS col0
----
4166

onlyif mysql # aggregate syntax: 
query II rowsort label-5672
SELECT ALL - COUNT( * ) * + 30 * 36 + - - 32 AS col0, - 46
----
-1048
-46

skipif mysql # not compatible
query II rowsort label-5672
SELECT ALL - COUNT ( * ) * + 30 * 36 + - - 32 AS col0, - 46
----
-1048
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT + 13 + COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-5673
SELECT + 13 + COUNT ( * ) AS col0
----
14

query II rowsort
SELECT 73 * - + 26 * - + 65 + 95, + 41 AS col1
----
123465
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT - + COALESCE ( 57, + COUNT( * ) ) + 68
----
11

skipif mysql # not compatible
query I rowsort label-5675
SELECT - + COALESCE ( 57, + COUNT ( * ) ) + 68
----
11

query I rowsort
SELECT ALL + + 88 * + COALESCE ( - + 20, 74 * + ( - 1 ) + 83 ) * 27 * + 87
----
-4134240

query I rowsort
SELECT ALL + 21 * - 79
----
-1659

onlyif mysql # DIV for integer division: 
query II rowsort label-5678
SELECT DISTINCT + 10 DIV + 37 AS col0, 83
----
0
83

skipif mysql # not compatible
query II rowsort label-5678
SELECT DISTINCT + 10 / + 37 AS col0, 83
----
0
83

query I rowsort
SELECT ALL + 46 - - + ( - 39 ) AS col0
----
7

query II rowsort
SELECT DISTINCT + 88 * - 53, 86 AS col0
----
-4664
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5681
SELECT - - 83 + + CASE - 44 WHEN - 44 THEN NULL WHEN + - 99 THEN + 61 + + 1 + - + 73 ELSE + 42 / 56 END + - 40 + - 35 AS col2, CAST( NULL AS SIGNED ) + 8
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5681
SELECT - - 83 + + CASE - 44 WHEN - 44 THEN NULL WHEN + - 99 THEN + 61 + + 1 + - + 73 ELSE + 42 / 56 END + - 40 + - 35 AS col2, CAST ( NULL AS INTEGER ) + 8
----
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - 59 ) - + - COALESCE ( - 75, - 97, - 80 ) - - 79 AS col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5683
SELECT + 26 + - - COUNT( * ) DIV + 59
----
26

skipif mysql # not compatible
query I rowsort label-5683
SELECT + 26 + - - COUNT ( * ) / + 59
----
26

query I rowsort
SELECT - 65 * - 19 AS col1
----
1235

query I rowsort
SELECT + ( - ( - 96 ) ) * + 69 AS col1
----
6624

query I rowsort
SELECT DISTINCT ( 6 ) AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5687
SELECT ALL 46 DIV + - 17 col0
----
-2

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL 46 / + - 17 col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5688
SELECT + 52 DIV - - 47 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5688
SELECT + 52 / - - 47 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5689
SELECT DISTINCT - NULLIF ( - 5, - - MAX( - + 96 ) * - 62 - - CASE + - COUNT( * ) WHEN - - 51 + + 16 - + 6 * + COUNT( * ) DIV 93 * - 0 * + 35 THEN - COUNT( * ) ELSE NULL END ) DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-5689
SELECT DISTINCT - NULLIF ( - 5, - - MAX ( - + 96 ) * - 62 - - CASE + - COUNT ( * ) WHEN - - 51 + + 16 - + 6 * + COUNT ( * ) / 93 * - 0 * + 35 THEN - COUNT ( * ) ELSE NULL END ) / + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT + COUNT( * ) * - - 32
----
32

skipif mysql # not compatible
query I rowsort label-5690
SELECT + COUNT ( * ) * - - 32
----
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5691
SELECT ALL 93 + CASE COUNT( 51 ) WHEN 97 + CAST( NULL AS DECIMAL ) - - COUNT( * ) + + 78 * 7 * - 59 THEN - 30 ELSE NULLIF ( 85, + 80 ) END DIV + 56 AS col0, ( + - MAX( 12 ) ) * NULLIF ( - 9, - + ( - 42 ) - - 10 ) AS col1
----
94
108

skipif mysql # not compatible
query II rowsort label-5691
SELECT ALL 93 + CASE COUNT ( 51 ) WHEN 97 + CAST ( NULL AS REAL ) - - COUNT ( * ) + + 78 * 7 * - 59 THEN - 30 ELSE NULLIF ( 85, + 80 ) END / + 56 AS col0, ( + - MAX ( 12 ) ) * NULLIF ( - 9, - + ( - 42 ) - - 10 ) AS col1
----
94
108

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT - 99 - - + SUM( 23 ) - + NULLIF ( - 61, - - 49 - - NULLIF ( + 76, - COUNT( + 70 ) ) + - 86 )
----
-15

skipif mysql # not compatible
query I rowsort label-5692
SELECT - 99 - - + SUM ( 23 ) - + NULLIF ( - 61, - - 49 - - NULLIF ( + 76, - COUNT ( + 70 ) ) + - 86 )
----
-15

query I rowsort
SELECT ALL 87 * 9
----
783

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT + ( + - COUNT( * ) ) * - + ( + 16 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-5694
SELECT + ( + - COUNT ( * ) ) * - + ( + 16 ) AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5695
SELECT ALL CASE ( 73 ) WHEN + 50 - 40 THEN + 85 ELSE - CAST( NULL AS SIGNED ) END / + + COALESCE ( - 93, 60 ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL CASE ( 73 ) WHEN + 50 - 40 THEN + 85 ELSE - CAST ( NULL AS INTEGER ) END / + + COALESCE ( - 93, 60 ) + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5696
SELECT ALL COUNT( * ) DIV - 38 + - MIN( 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL COUNT ( * ) / - 38 + - MIN ( 68 )
----
-68

query I rowsort
SELECT ALL 51 * 90 AS col0
----
4590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5698
SELECT CAST( - 92 AS SIGNED ) col2
----
-92

skipif mysql # not compatible
query I rowsort label-5698
SELECT CAST ( - 92 AS INTEGER ) col2
----
-92

query I rowsort
SELECT DISTINCT 86 * ( 12 )
----
1032

query II rowsort
SELECT + + 46 AS col0, 38 AS col0
----
46
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT - MAX( + COALESCE ( 78, 66 ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-5701
SELECT - MAX ( + COALESCE ( 78, 66 ) ) AS col1
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5702
SELECT - 85 * COUNT( * ) + - SUM( DISTINCT - 62 ) - MAX( + + 84 ) DIV + + 63 + 24 AS col0, + 8 AS col0
----
0
8

skipif mysql # not compatible
query II rowsort label-5702
SELECT - 85 * COUNT ( * ) + - SUM ( DISTINCT - 62 ) - MAX ( + + 84 ) / + + 63 + 24 AS col0, + 8 AS col0
----
0
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5703
SELECT ALL 55 DIV + 74 * 10
----
0

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL 55 / + 74 * 10
----
0

query I rowsort
SELECT - - 16 * + 57 + - NULLIF ( + - 8, + - 1 + + 13 ) AS col0
----
920

query I rowsort
SELECT + - 36 * 26
----
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT + - SUM( DISTINCT - + 89 ) * + 7 * COUNT( * )
----
623

skipif mysql # not compatible
query I rowsort label-5706
SELECT + - SUM ( DISTINCT - + 89 ) * + 7 * COUNT ( * )
----
623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5707
SELECT ALL - 72 DIV - + COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL - 72 / - + COUNT ( * ) AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5708
SELECT CASE 77 WHEN - CAST( - - 76 AS SIGNED ) + 98 / COUNT( * ) / 3 / + 39 THEN + MAX( + + 10 ) + - - 80 WHEN + + 66 THEN + 18 / - 3 / 17 * 7 - COALESCE ( - 75, CAST( NULL AS SIGNED ), - 37 ) / 63 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5708
SELECT CASE 77 WHEN - CAST ( - - 76 AS INTEGER ) + 98 / COUNT ( * ) / 3 / + 39 THEN + MAX ( + + 10 ) + - - 80 WHEN + + 66 THEN + 18 / - 3 / 17 * 7 - COALESCE ( - 75, CAST ( NULL AS INTEGER ), - 37 ) / 63 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 39 * 1 AS col0
----
39

query I rowsort
SELECT ALL 44 * - 9
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT - SUM( + 76 ) * - + ( COUNT( * ) )
----
76

skipif mysql # not compatible
query I rowsort label-5711
SELECT - SUM ( + 76 ) * - + ( COUNT ( * ) )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT - CASE - 1 WHEN + 72 THEN NULL WHEN 18 + 49 THEN 56 - - + 12 - - + 96 END * - COALESCE ( 10, - 91 + + COUNT( * ) + + - 44 + - COUNT( ALL 80 ), - COALESCE ( 64, - 99 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5712
SELECT - CASE - 1 WHEN + 72 THEN NULL WHEN 18 + 49 THEN 56 - - + 12 - - + 96 END * - COALESCE ( 10, - 91 + + COUNT ( * ) + + - 44 + - COUNT ( ALL 80 ), - COALESCE ( 64, - 99 ) )
----
NULL

query I rowsort
SELECT 41 * - 83 AS col2
----
-3403

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT CASE + 32 WHEN + COUNT( * ) * + 96 / + COUNT( * ) + 82 THEN 95 * + 64 + - + 29 WHEN + NULLIF ( - 71, + + 68 * + - 73 ) THEN NULL END * 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5714
SELECT CASE + 32 WHEN + COUNT ( * ) * + 96 / + COUNT ( * ) + 82 THEN 95 * + 64 + - + 29 WHEN + NULLIF ( - 71, + + 68 * + - 73 ) THEN NULL END * 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT - + MIN( DISTINCT 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-5715
SELECT - + MIN ( DISTINCT 50 )
----
-50

query I rowsort
SELECT 40 - + 12 + - - ( + 87 ) * + + 75 * + 87 + + 6 AS col0
----
567709

query II rowsort
SELECT ALL - 30 + + + 69 AS col1, - 14
----
39
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-5718
SELECT DISTINCT 56, COUNT( + + 36 ) AS col2
----
56
1

skipif mysql # not compatible
query II rowsort label-5718
SELECT DISTINCT 56, COUNT ( + + 36 ) AS col2
----
56
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT DISTINCT - 12 * - + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT - 12 * - + COUNT ( * )
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5720
SELECT 49 + - 79 + 62 * + CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5720
SELECT 49 + - 79 + 62 * + CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 85 - + 93
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT DISTINCT - 85 + COUNT( * ) * + - 9 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT - 85 + COUNT ( * ) * + - 9 AS col2
----
-94

query II rowsort
SELECT 28 AS col2, - 8 + - - 27 + + 28 AS col0
----
28
47

query II rowsort
SELECT 64 AS col1, - 37 + - - 76
----
64
39

query I rowsort
SELECT ALL 39 + + 82 * + 59 col2
----
4877

onlyif mysql # DIV for integer division: 
query I rowsort label-5726
SELECT 81 DIV - + ( + + 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-5726
SELECT 81 / - + ( + + 58 )
----
-1

query II rowsort
SELECT ALL 82 AS col0, + 17
----
82
17

query II rowsort
SELECT ALL - 68 + - 23 col2, 29
----
-91
29

query I rowsort
SELECT 0 * + ( - ( 54 ) ) * + 88 + 96 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT + 76 * - NULLIF ( - COUNT( * ), + COALESCE ( - 60, COUNT( * ), - MIN( ALL + + 98 ) * + - 49 ) ) + 85 * 81 * ( + 11 ) * COUNT( * )
----
75811

skipif mysql # not compatible
query I rowsort label-5730
SELECT + 76 * - NULLIF ( - COUNT ( * ), + COALESCE ( - 60, COUNT ( * ), - MIN ( ALL + + 98 ) * + - 49 ) ) + 85 * 81 * ( + 11 ) * COUNT ( * )
----
75811

query II rowsort
SELECT + - 15 AS col1, 74 AS col0
----
-15
74

query I rowsort
SELECT DISTINCT 44 * - 29
----
-1276

query I rowsort
SELECT 94 * 91
----
8554

query I rowsort
SELECT 25 - - - 32
----
-7

query II rowsort
SELECT DISTINCT - - 71 AS col0, 59 + + NULLIF ( - 36, + 4 )
----
71
23

query II rowsort
SELECT ALL - 74 AS col2, 33 + + + 1
----
-74
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5737
SELECT DISTINCT ( + 22 ) - 61 * + 45 AS col1, - MIN( 63 ) AS col2
----
-2723
-63

skipif mysql # not compatible
query II rowsort label-5737
SELECT DISTINCT ( + 22 ) - 61 * + 45 AS col1, - MIN ( 63 ) AS col2
----
-2723
-63

query III rowsort
SELECT 34, + 65 AS col1, - COALESCE ( 9, - 64 + 66, + 79 ) AS col0
----
34
65
-9

query I rowsort
SELECT + 11 + 23 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT COUNT( + + 43 ) - ( 75 ) + + + 15 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-5740
SELECT COUNT ( + + 43 ) - ( 75 ) + + + 15 AS col1
----
-59

query I rowsort
SELECT + 21 * + 32 + + 87 AS col0
----
759

onlyif mysql # DIV for integer division: 
query I rowsort label-5742
SELECT DISTINCT 73 DIV 11
----
6

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT 73 / 11
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5743
SELECT + CAST( - + 93 AS SIGNED ) / + CASE + 79 WHEN + - 93 - + 99 THEN NULL WHEN + 31 * - SUM( ALL + + CAST( NULL AS SIGNED ) ) * 43 + + + COUNT( * ) + + 23 + + + ( COUNT( * ) ) * - + 91 THEN - COALESCE ( + MAX( ALL - - 47 ), + - 15, - 77 ) * - 73 + ( 18 ) * + - ( + CASE - 17 WHEN + COUNT( * ) THEN 6 ELSE - 11 END ) / - 28 WHEN - 83 + - NULLIF ( 26 + - 83 * - ( + 39 ), 12 ) THEN 37 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5743
SELECT + CAST ( - + 93 AS INTEGER ) / + CASE + 79 WHEN + - 93 - + 99 THEN NULL WHEN + 31 * - SUM ( ALL + + CAST ( NULL AS INTEGER ) ) * 43 + + + COUNT ( * ) + + 23 + + + ( COUNT ( * ) ) * - + 91 THEN - COALESCE ( + MAX ( ALL - - 47 ), + - 15, - 77 ) * - 73 + ( 18 ) * + - ( + CASE - 17 WHEN + COUNT ( * ) THEN 6 ELSE - 11 END ) / - 28 WHEN - 83 + - NULLIF ( 26 + - 83 * - ( + 39 ), 12 ) THEN 37 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 89 * 17
----
-1513

query I rowsort
SELECT ALL COALESCE ( 26, - 93 * 70 ) + - 23
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5746
SELECT 69 + - - CASE 5 WHEN 6 THEN - + 72 * - + 83 + + - ( + 58 ) WHEN + 52 * + COALESCE ( + MAX( + 43 ), - 90 ) * + CASE WHEN - 23 BETWEEN NULL AND NULL THEN - - 55 ELSE NULL END * - 29 + - CASE 44 WHEN - 54 THEN NULL WHEN - + 72 THEN - CAST( 30 AS SIGNED ) END / 91 THEN NULL ELSE NULL END + + 94 / + + 50 * + ( + COALESCE ( + 52, 29, 46 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5746
SELECT 69 + - - CASE 5 WHEN 6 THEN - + 72 * - + 83 + + - ( + 58 ) WHEN + 52 * + COALESCE ( + MAX ( + 43 ), - 90 ) * + CASE WHEN - 23 BETWEEN NULL AND NULL THEN - - 55 ELSE NULL END * - 29 + - CASE 44 WHEN - 54 THEN NULL WHEN - + 72 THEN - CAST ( 30 AS INTEGER ) END / 91 THEN NULL ELSE NULL END + + 94 / + + 50 * + ( + COALESCE ( + 52, 29, 46 ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT 75 + - ( + SUM( DISTINCT - - 75 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5747
SELECT 75 + - ( + SUM ( DISTINCT - - 75 ) )
----
0

query II rowsort
SELECT ALL 11 * 53 AS col2, + 70 AS col0
----
583
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT ALL 70 + + COUNT( * ) * - 25 * 22 * + ( - + 58 )
----
31970

skipif mysql # not compatible
query I rowsort label-5749
SELECT ALL 70 + + COUNT ( * ) * - 25 * 22 * + ( - + 58 )
----
31970

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT - MIN( ALL + 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-5750
SELECT - MIN ( ALL + 31 ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT 59 * + CASE + 94 WHEN - 0 THEN 47 WHEN + 55 * + - SUM( ALL + + 99 ) + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5751
SELECT 59 * + CASE + 94 WHEN - 0 THEN 47 WHEN + 55 * + - SUM ( ALL + + 99 ) + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 94 + - 69 AS col0
----
25

query I rowsort
SELECT ALL 75 * - 6 col0
----
-450

onlyif mysql # aggregate syntax: 
query II rowsort label-5754
SELECT DISTINCT MIN( ALL - + 54 ), - 86 * 93 AS col1
----
-54
-7998

skipif mysql # not compatible
query II rowsort label-5754
SELECT DISTINCT MIN ( ALL - + 54 ), - 86 * 93 AS col1
----
-54
-7998

query I rowsort
SELECT 74 - + - 3
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5756
SELECT 10 * - - COUNT( * ) * - - MAX( - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT 10 * - - COUNT ( * ) * - - MAX ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5757
SELECT DISTINCT MIN( ALL - 31 ) AS col2, 50 AS col1
----
-31
50

skipif mysql # not compatible
query II rowsort label-5757
SELECT DISTINCT MIN ( ALL - 31 ) AS col2, 50 AS col1
----
-31
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5758
SELECT - ( - ( CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5758
SELECT - ( - ( CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT 63 * NULLIF ( - 89, + - 71 ) * - 17 + - - 99 AS col1
----
95418

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT ALL - - 65 * + 87 + + 72 + 70 - + + CASE - 28 WHEN 77 + 70 + COUNT( * ) THEN + COUNT( * ) WHEN ( 88 ) / 33 * + 85 THEN - 95 WHEN + MAX( - 37 ) * - 51 THEN - 58 ELSE - 53 END
----
5850

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL - - 65 * + 87 + + 72 + 70 - + + CASE - 28 WHEN 77 + 70 + COUNT ( * ) THEN + COUNT ( * ) WHEN ( 88 ) / 33 * + 85 THEN - 95 WHEN + MAX ( - 37 ) * - 51 THEN - 58 ELSE - 53 END
----
5850

query I rowsort
SELECT ALL - - ( + ( - 66 ) )
----
-66

query I rowsort
SELECT ALL - + ( + 99 ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT ALL - ( 94 ) * COUNT( * ) * 50 + - 83
----
-4783

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL - ( 94 ) * COUNT ( * ) * 50 + - 83
----
-4783

onlyif mysql # DIV for integer division: 
query I rowsort label-5764
SELECT DISTINCT + + 39 DIV - + 92 + + ( + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT + + 39 / - + 92 + + ( + 54 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT SUM( + 5 ) * - 7 + + 7 * + 2 * + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-5765
SELECT SUM ( + 5 ) * - 7 + + 7 * + 2 * + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT MAX( DISTINCT ( - 96 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-5766
SELECT MAX ( DISTINCT ( - 96 ) )
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5767
SELECT + ( - 78 ) DIV NULLIF ( + 12, - + 24 ) + SUM( DISTINCT + + 66 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-5767
SELECT + ( - 78 ) / NULLIF ( + 12, - + 24 ) + SUM ( DISTINCT + + 66 ) AS col2
----
60

query I rowsort
SELECT + + 20 - - 71
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT - + 9 * - MIN( ALL 40 ) * 75 * - 83 AS col1
----
-2241000

skipif mysql # not compatible
query I rowsort label-5769
SELECT - + 9 * - MIN ( ALL 40 ) * 75 * - 83 AS col1
----
-2241000

query II rowsort
SELECT + 92 + - 35, 74 AS col1
----
57
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT COUNT( ALL - 39 )
----
1

skipif mysql # not compatible
query I rowsort label-5771
SELECT COUNT ( ALL - 39 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT ALL 78 * 60 * - 46 + + + COUNT( DISTINCT + 86 )
----
-215279

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL 78 * 60 * - 46 + + + COUNT ( DISTINCT + 86 )
----
-215279

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT COUNT( ALL + 94 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5773
SELECT COUNT ( ALL + 94 ) AS col1
----
1

query I rowsort
SELECT 67 * + 58 - + 71
----
3815

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT + COUNT( * ) * + ( + + MIN( + 12 ) ) * - - 81 * + + COUNT( * ) + + COUNT( DISTINCT + 3 ) + + + COUNT( * ) * - 80 * + SUM( DISTINCT + 68 ) col1
----
-4467

skipif mysql # not compatible
query I rowsort label-5775
SELECT + COUNT ( * ) * + ( + + MIN ( + 12 ) ) * - - 81 * + + COUNT ( * ) + + COUNT ( DISTINCT + 3 ) + + + COUNT ( * ) * - 80 * + SUM ( DISTINCT + 68 ) col1
----
-4467

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT - MIN( ALL + 3 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5776
SELECT - MIN ( ALL + 3 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT + CASE + 56 WHEN + 94 * + + 22 THEN - COUNT( * ) WHEN - + 3 THEN - 1 WHEN - 17 + + 85 THEN NULL END / - - 16 * - - COUNT( + + 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5777
SELECT + CASE + 56 WHEN + 94 * + + 22 THEN - COUNT ( * ) WHEN - + 3 THEN - 1 WHEN - 17 + + 85 THEN NULL END / - - 16 * - - COUNT ( + + 20 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5778
SELECT ALL 64 + + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5778
SELECT ALL 64 + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT + MAX( + ( + ( - + 3 ) ) ) * + COALESCE ( - MAX( - ( - 29 ) ), - CASE + + 90 WHEN - 61 + + 65 THEN NULL WHEN + 28 THEN COUNT( * ) ELSE NULL END )
----
87

skipif mysql # not compatible
query I rowsort label-5779
SELECT + MAX ( + ( + ( - + 3 ) ) ) * + COALESCE ( - MAX ( - ( - 29 ) ), - CASE + + 90 WHEN - 61 + + 65 THEN NULL WHEN + 28 THEN COUNT ( * ) ELSE NULL END )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-5780
SELECT ALL 60, + MAX( DISTINCT - + 25 ) AS col2
----
60
-25

skipif mysql # not compatible
query II rowsort label-5780
SELECT ALL 60, + MAX ( DISTINCT - + 25 ) AS col2
----
60
-25

query I rowsort
SELECT + 46 - 41 + - 16
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT ALL COUNT( * ) * - ( + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL COUNT ( * ) * - ( + COUNT ( * ) ) AS col2
----
-1

query II rowsort
SELECT 91, 28 AS col1
----
91
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5784
SELECT ALL - 68 - - - CASE + CAST( COALESCE ( - + COUNT( * ), - 48 + - + 78 + + ( 52 ) * ( + + 22 ) * - + 33 ) AS SIGNED ) WHEN + 45 THEN CAST( NULL AS SIGNED ) * 93 WHEN + + 22 + - COUNT( * ) + - 95 THEN NULL ELSE NULL END * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL - 68 - - - CASE + CAST ( COALESCE ( - + COUNT ( * ), - 48 + - + 78 + + ( 52 ) * ( + + 22 ) * - + 33 ) AS INTEGER ) WHEN + 45 THEN CAST ( NULL AS INTEGER ) * 93 WHEN + + 22 + - COUNT ( * ) + - 95 THEN NULL ELSE NULL END * 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT + ( - 50 ) + + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-5785
SELECT + ( - 50 ) + + COUNT ( * )
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-5786
SELECT - 92 DIV + 34 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5786
SELECT - 92 / + 34 AS col2
----
-2

query I rowsort
SELECT - 68 - + 59
----
-127

onlyif mysql # aggregate syntax: 
query II rowsort label-5788
SELECT 83, ( + + 87 ) - - - COUNT( * ) * + 16 + - 80 AS col0
----
83
-9

skipif mysql # not compatible
query II rowsort label-5788
SELECT 83, ( + + 87 ) - - - COUNT ( * ) * + 16 + - 80 AS col0
----
83
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5789
SELECT ALL + 46 - MIN( DISTINCT + - COALESCE ( + - 14, - 82, 6 ) ) col0, + 20 AS col2
----
32
20

skipif mysql # not compatible
query II rowsort label-5789
SELECT ALL + 46 - MIN ( DISTINCT + - COALESCE ( + - 14, - 82, 6 ) ) col0, + 20 AS col2
----
32
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5790
SELECT DISTINCT NULLIF ( + CAST( - + COUNT( * ) AS SIGNED ), - 51 + 6 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT NULLIF ( + CAST ( - + COUNT ( * ) AS INTEGER ), - 51 + 6 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5791
SELECT + CAST( NULL AS SIGNED ) + + 19 + + ( 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5791
SELECT + CAST ( NULL AS INTEGER ) + + 19 + + ( 30 )
----
NULL

query II rowsort
SELECT ALL 15 AS col0, 44 * - 95
----
15
-4180

query I rowsort
SELECT - 18 + + - 84 * - 86
----
7206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5794
SELECT ALL + 94 * - COALESCE ( MIN( ALL + - COALESCE ( - 46, - 35 ) ), 49, - - CAST( NULL AS SIGNED ) * - COUNT( * ) + 14 ) * - - 0 * + 14 + + + ( + 20 ) * + 12 col2
----
240

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL + 94 * - COALESCE ( MIN ( ALL + - COALESCE ( - 46, - 35 ) ), 49, - - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + 14 ) * - - 0 * + 14 + + + ( + 20 ) * + 12 col2
----
240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5795
SELECT DISTINCT - NULLIF ( + + 58, 62 * + 58 * + MAX( 62 ) ) DIV - 61 * 60 * + ( + - 96 ) + - 69 * 74
----
-5106

skipif mysql # not compatible
query I rowsort label-5795
SELECT DISTINCT - NULLIF ( + + 58, 62 * + 58 * + MAX ( 62 ) ) / - 61 * 60 * + ( + - 96 ) + - 69 * 74
----
-5106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5796
SELECT + + COUNT( * ) DIV + 51 - - COUNT( - 37 ) + - 22 * 26 * + COUNT( * )
----
-571

skipif mysql # not compatible
query I rowsort label-5796
SELECT + + COUNT ( * ) / + 51 - - COUNT ( - 37 ) + - 22 * 26 * + COUNT ( * )
----
-571

query I rowsort
SELECT - + 22 - 40 AS col1
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-5798
SELECT ALL + - 28 DIV 54 + + 63
----
63

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL + - 28 / 54 + + 63
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5799
SELECT ALL - COUNT( * ) * CASE + 94 WHEN - 43 DIV - 21 + + ( - + 60 ) THEN NULL ELSE + - COUNT( * ) END DIV + 20 + + NULLIF ( + 16, + MIN( DISTINCT + ( + + 77 ) ) + - 28 + - 91 + 16 * 99 * - 74 * 27 )
----
16

skipif mysql # not compatible
query I rowsort label-5799
SELECT ALL - COUNT ( * ) * CASE + 94 WHEN - 43 / - 21 + + ( - + 60 ) THEN NULL ELSE + - COUNT ( * ) END / + 20 + + NULLIF ( + 16, + MIN ( DISTINCT + ( + + 77 ) ) + - 28 + - 91 + 16 * 99 * - 74 * 27 )
----
16

query I rowsort
SELECT - - 97 * + 95 AS col0
----
9215

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5801
SELECT ALL CAST( NULL AS SIGNED ) * + + 85 + + + 75 AS col1, CASE 33 WHEN 78 THEN - 84 END - - - 59 + + 15 / + ( + NULLIF ( - 49, + + 84 ) ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5801
SELECT ALL CAST ( NULL AS INTEGER ) * + + 85 + + + 75 AS col1, CASE 33 WHEN 78 THEN - 84 END - - - 59 + + 15 / + ( + NULLIF ( - 49, + + 84 ) ) AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5802
SELECT ALL ( - 4 ) * + ( + + 44 ) * - 5 + - 95 + + COUNT( * ) AS col2, 5 + - - 79
----
786
84

skipif mysql # not compatible
query II rowsort label-5802
SELECT ALL ( - 4 ) * + ( + + 44 ) * - 5 + - 95 + + COUNT ( * ) AS col2, 5 + - - 79
----
786
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT + ( - + COUNT( * ) ) - + - 32
----
31

skipif mysql # not compatible
query I rowsort label-5803
SELECT + ( - + COUNT ( * ) ) - + - 32
----
31

query I rowsort
SELECT + COALESCE ( - - 35, + - 59 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT + MAX( 43 ) - - 20 + - 41 + + 55 * - - 46 * + - 22 AS col2
----
-55638

skipif mysql # not compatible
query I rowsort label-5805
SELECT + MAX ( 43 ) - - 20 + - 41 + + 55 * - - 46 * + - 22 AS col2
----
-55638

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT - 70 + - COUNT( * ) * MAX( DISTINCT 57 ) + - 47 AS col1
----
-174

skipif mysql # not compatible
query I rowsort label-5806
SELECT - 70 + - COUNT ( * ) * MAX ( DISTINCT 57 ) + - 47 AS col1
----
-174

query I rowsort
SELECT COALESCE ( 49, + 23 - + 77 * + CASE - - 38 WHEN + + 49 * + - NULLIF ( + 7, ( - 25 ) * + 73 * 97 * 20 ) THEN + 59 ELSE NULL END * ( 74 ) ) AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5808
SELECT DISTINCT COALESCE ( CAST( NULL AS SIGNED ), NULLIF ( MIN( 85 ), AVG ( + 29 ) ) ) * 1 DIV CAST( + + 62 AS SIGNED ) - - 33 - - COUNT( * ) * CAST( + 42 AS SIGNED ), 89 - 26 DIV 91 + - 27 + 3 col2
----
76
65

skipif mysql # not compatible
query II rowsort label-5808
SELECT DISTINCT COALESCE ( CAST ( NULL AS INTEGER ), NULLIF ( MIN ( 85 ), AVG ( + 29 ) ) ) * 1 / CAST ( + + 62 AS INTEGER ) - - 33 - - COUNT ( * ) * CAST ( + 42 AS INTEGER ), 89 - 26 / 91 + - 27 + 3 col2
----
76
65

onlyif mysql # aggregate syntax: 
query II rowsort label-5809
SELECT ALL + 99 * - - COUNT( * ) * - COUNT( * ) * + + 78 col2, + 10 * - ( + 57 ) * + 95 + + 82 AS col2
----
-7722
-54068

skipif mysql # not compatible
query II rowsort label-5809
SELECT ALL + 99 * - - COUNT ( * ) * - COUNT ( * ) * + + 78 col2, + 10 * - ( + 57 ) * + 95 + + 82 AS col2
----
-7722
-54068

query I rowsort
SELECT DISTINCT + 81 * + - 54
----
-4374

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5811
SELECT - NULLIF ( + - CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ), 4 * 1 ) * - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5811
SELECT - NULLIF ( + - CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ), 4 * 1 ) * - 99 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5812
SELECT + 16 * + 57 DIV 54 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-5812
SELECT + 16 * + 57 / 54 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT MAX( 28 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-5813
SELECT MAX ( 28 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-5814
SELECT + 92 + - - 11, - MIN( ALL + 24 ) + + 45 + - 25 AS col1
----
103
-4

skipif mysql # not compatible
query II rowsort label-5814
SELECT + 92 + - - 11, - MIN ( ALL + 24 ) + + 45 + - 25 AS col1
----
103
-4

query I rowsort
SELECT - 4 + - 11
----
-15

query I rowsort
SELECT + 68 + + 62 col2
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5817
SELECT + CAST( + 12 AS SIGNED ) * 79 AS col0
----
948

skipif mysql # not compatible
query I rowsort label-5817
SELECT + CAST ( + 12 AS INTEGER ) * 79 AS col0
----
948

query II rowsort
SELECT + 86 * + - 16 AS col0, + 19 * - COALESCE ( ( - 9 ), - 7 ) AS col1
----
-1376
171

query I rowsort
SELECT + 45 + - - 60 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT MAX( + - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-5820
SELECT MAX ( + - 95 )
----
-95

query I rowsort
SELECT + ( - - 33 ) + + 71
----
104

query I rowsort
SELECT DISTINCT 37 * + 60 * - 41 + + 91
----
-90929

query I rowsort
SELECT - 55 - 9
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5824
SELECT 72 - + CAST( + 19 AS SIGNED ) * + - 77
----
1535

skipif mysql # not compatible
query I rowsort label-5824
SELECT 72 - + CAST ( + 19 AS INTEGER ) * + - 77
----
1535

onlyif mysql # aggregate syntax: 
query II rowsort label-5825
SELECT + COUNT( * ) + + 29 * - 98 * - 71, - 27 AS col1
----
201783
-27

skipif mysql # not compatible
query II rowsort label-5825
SELECT + COUNT ( * ) + + 29 * - 98 * - 71, - 27 AS col1
----
201783
-27

query I rowsort
SELECT DISTINCT + 31 + - - 37 AS col1
----
68

query I rowsort
SELECT 92 + + 63 + - 72 * + ( + + ( + 31 ) ) AS col1
----
-2077

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT MIN( ALL 95 )
----
95

skipif mysql # not compatible
query I rowsort label-5828
SELECT MIN ( ALL 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT ALL + + COUNT( * ) + + + 18 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL + + COUNT ( * ) + + + 18 AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5830
SELECT DISTINCT 84 + + - 2 * CAST( NULL AS SIGNED ) + 36, + 43 + + + 8 + + 95 + + 84 * COALESCE ( - 96, + + COUNT( * ) ) AS col0
----
NULL
-7918

skipif mysql # not compatible
query II rowsort label-5830
SELECT DISTINCT 84 + + - 2 * CAST ( NULL AS INTEGER ) + 36, + 43 + + + 8 + + 95 + + 84 * COALESCE ( - 96, + + COUNT ( * ) ) AS col0
----
NULL
-7918

query I rowsort
SELECT 72 + + 6
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT ALL + 67 + - COUNT( - 40 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-5832
SELECT ALL + 67 + - COUNT ( - 40 ) AS col0
----
66

query I rowsort
SELECT 94 + + 72 - 82 AS col2
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5834
SELECT 75 DIV 25
----
3

skipif mysql # not compatible
query I rowsort label-5834
SELECT 75 / 25
----
3

query I rowsort
SELECT ALL 52 - + 54
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5836
SELECT ALL - COALESCE ( + 87, + 75 DIV - COUNT( * ) )
----
-87

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL - COALESCE ( + 87, + 75 / - COUNT ( * ) )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5837
SELECT 74 + - 14 * - - CAST( - + ( + ( - 98 ) ) AS SIGNED ) + + + 29 * + 83 AS col2, + 77
----
1109
77

skipif mysql # not compatible
query II rowsort label-5837
SELECT 74 + - 14 * - - CAST ( - + ( + ( - 98 ) ) AS INTEGER ) + + + 29 * + 83 AS col2, + 77
----
1109
77

query II rowsort
SELECT ALL - 55 AS col2, - COALESCE ( 26, 35 ) + - - 3
----
-55
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-5839
SELECT 22, - CASE - - 78 WHEN 4 * - 3 * 48 THEN NULL WHEN - 3 - 15 THEN - + 41 / - NULLIF ( + 19, - 16 + 46 ) * - SUM( - + 42 ) END * + - 60 + 73 / - + 43 AS col1
----
22
NULL

skipif mysql # not compatible
query II rowsort label-5839
SELECT 22, - CASE - - 78 WHEN 4 * - 3 * 48 THEN NULL WHEN - 3 - 15 THEN - + 41 / - NULLIF ( + 19, - 16 + 46 ) * - SUM ( - + 42 ) END * + - 60 + 73 / - + 43 AS col1
----
22
NULL

query I rowsort
SELECT 41 * - + 71 - + 4 AS col0
----
-2915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5841
SELECT COUNT( * ) - - 95 + - + 61 DIV - 49
----
97

skipif mysql # not compatible
query I rowsort label-5841
SELECT COUNT ( * ) - - 95 + - + 61 / - 49
----
97

query I rowsort
SELECT ALL + - 45 + + 65
----
20

query I rowsort
SELECT 94 + + 5 + 1 AS col2
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5844
SELECT ALL + + CAST( - CASE + + 8 WHEN 1 + + - 53 THEN + 33 * 77 + - 75 + + COUNT( * ) * - 45 ELSE - 26 END AS SIGNED ) + - 12 * - 25 * + 47
----
14126

skipif mysql # not compatible
query I rowsort label-5844
SELECT ALL + + CAST ( - CASE + + 8 WHEN 1 + + - 53 THEN + 33 * 77 + - 75 + + COUNT ( * ) * - 45 ELSE - 26 END AS INTEGER ) + - 12 * - 25 * + 47
----
14126

query I rowsort
SELECT 15 * ( + CASE 79 WHEN + 53 * 74 THEN + 38 WHEN + + 8 THEN + CASE 41 WHEN + + 16 + 83 - + 84 THEN + 5 * 86 * - 27 WHEN - 5 THEN NULL ELSE 81 END / + 19 - + - 89 - - COALESCE ( + 44, - 92 ) END ) * + + 96 + - 70 * + 53 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5846
SELECT + 36 - - + 23 + + 78 + + 8 - + 67 + - 7 + 14 DIV 65 + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-5846
SELECT + 36 - - + 23 + + 78 + + 8 - + 67 + - 7 + 14 / 65 + COUNT ( * )
----
72

query II rowsort
SELECT 80 AS col2, 88
----
80
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5848
SELECT CASE + 10 WHEN + COALESCE ( - 18, + CASE - + 9 WHEN - - 97 * ( - - 49 ) + - 7 - - 58 * + 93 / - 14 - - CAST( NULL AS SIGNED ) - - 3 THEN - COUNT( * ) ELSE NULL END, + COUNT( * ) + - - 30 ) THEN COUNT( * ) END - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5848
SELECT CASE + 10 WHEN + COALESCE ( - 18, + CASE - + 9 WHEN - - 97 * ( - - 49 ) + - 7 - - 58 * + 93 / - 14 - - CAST ( NULL AS INTEGER ) - - 3 THEN - COUNT ( * ) ELSE NULL END, + COUNT ( * ) + - - 30 ) THEN COUNT ( * ) END - - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 28 + + - 9
----
19

query I rowsort
SELECT DISTINCT - - 53 + - 54
----
-1

query I rowsort
SELECT 56 + 77 AS col2
----
133

query I rowsort
SELECT ALL 56 * + 74 + + 27 + - + 83
----
4088

query II rowsort
SELECT - 46 AS col2, + 74 AS col2
----
-46
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT ALL 95 * + CASE + 18 WHEN + COUNT( * ) * - ( - - 7 ) THEN NULL WHEN 89 THEN NULL WHEN + 77 THEN + MIN( DISTINCT 79 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL 95 * + CASE + 18 WHEN + COUNT ( * ) * - ( - - 7 ) THEN NULL WHEN 89 THEN NULL WHEN + 77 THEN + MIN ( DISTINCT 79 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5855
SELECT 63 * + COALESCE ( - CAST( 39 AS SIGNED ), - - 43 ) + - - 69 - - - 8 * - 54
----
-1956

skipif mysql # not compatible
query I rowsort label-5855
SELECT 63 * + COALESCE ( - CAST ( 39 AS INTEGER ), - - 43 ) + - - 69 - - - 8 * - 54
----
-1956

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT + 28 * - COUNT( * ) + - MIN( ( - 80 ) ) col0
----
52

skipif mysql # not compatible
query I rowsort label-5856
SELECT + 28 * - COUNT ( * ) + - MIN ( ( - 80 ) ) col0
----
52

query I rowsort
SELECT ALL - 75 * 3 * + - 48 - + 11 + + 49
----
10838

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT MIN( DISTINCT - + 6 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-5858
SELECT MIN ( DISTINCT - + 6 ) AS col0
----
-6

query I rowsort
SELECT 3 * + 40 AS col1
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-5860
SELECT ( - 37 ) * - 9 * 13 + ( - 99 ) DIV - 92 + + 81
----
4411

skipif mysql # not compatible
query I rowsort label-5860
SELECT ( - 37 ) * - 9 * 13 + ( - 99 ) / - 92 + + 81
----
4411

query I rowsort
SELECT ALL 99 * + 37 AS col2
----
3663

query I rowsort
SELECT - 84 * - 68 + 43
----
5755

query I rowsort
SELECT 93 * 20
----
1860

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5864
SELECT 46 * + - CAST( NULL AS DECIMAL ) + + + 57 + 51 AS col2, 27 + - - COUNT( * )
----
NULL
28

skipif mysql # not compatible
query II rowsort label-5864
SELECT 46 * + - CAST ( NULL AS REAL ) + + + 57 + 51 AS col2, 27 + - - COUNT ( * )
----
NULL
28

query I rowsort
SELECT ALL 63 * 77 AS col2
----
4851

query I rowsort
SELECT 9 + - 84 + - 19
----
-94

query II rowsort
SELECT DISTINCT 98 * + 85 AS col2, 0 col1
----
8330
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT DISTINCT SUM( ALL - ( - + 17 ) ) + - - 50 col1
----
67

skipif mysql # not compatible
query I rowsort label-5868
SELECT DISTINCT SUM ( ALL - ( - + 17 ) ) + - - 50 col1
----
67

query I rowsort
SELECT DISTINCT CASE WHEN ( NULL ) IS NOT NULL THEN + + 6 END AS col1
----
NULL

query I rowsort
SELECT - 85 + + - 33 AS col0
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5871
SELECT ALL + ( - + 63 ) + - COUNT( * ) DIV + 44 + - 94 AS col0
----
-157

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL + ( - + 63 ) + - COUNT ( * ) / + 44 + - 94 AS col0
----
-157

query I rowsort
SELECT - - 17 * 53 * + 14 col0
----
12614

query I rowsort
SELECT - - 12 + - 2 col0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5874
SELECT ALL - + 30 DIV - + 59 col0
----
0

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL - + 30 / - + 59 col0
----
0

query I rowsort
SELECT - + 42 * + 52 + 5
----
-2179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5876
SELECT - + 37 + - 59 + 62 * + COUNT( * ) DIV - COUNT( * ) AS col1
----
-158

skipif mysql # not compatible
query I rowsort label-5876
SELECT - + 37 + - 59 + 62 * + COUNT ( * ) / - COUNT ( * ) AS col1
----
-158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5877
SELECT - + 86 AS col0, - CASE - 69 WHEN 19 THEN NULL WHEN - 59 THEN NULL WHEN + - 88 / - - 88 + + ( 20 ) + - - 94 THEN 66 WHEN - 26 THEN COUNT( * ) END + + - ( + - 21 ) * - CAST( NULL AS SIGNED )
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-5877
SELECT - + 86 AS col0, - CASE - 69 WHEN 19 THEN NULL WHEN - 59 THEN NULL WHEN + - 88 / - - 88 + + ( 20 ) + - - 94 THEN 66 WHEN - 26 THEN COUNT ( * ) END + + - ( + - 21 ) * - CAST ( NULL AS INTEGER )
----
-86
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5878
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - 90
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5879
SELECT DISTINCT - + 1 + - + 0 DIV - 23 - 65 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-5879
SELECT DISTINCT - + 1 + - + 0 / - 23 - 65 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT ALL - 82 + + + 65 * COUNT( ALL - 80 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL - 82 + + + 65 * COUNT ( ALL - 80 ) AS col2
----
-17

query II rowsort
SELECT ALL 29, + 41 AS col2
----
29
41

onlyif mysql # aggregate syntax: 
query III rowsort label-5882
SELECT DISTINCT + 37 AS col0, 26 + MIN( - 93 ), 29 col0
----
37
-67
29

skipif mysql # not compatible
query III rowsort label-5882
SELECT DISTINCT + 37 AS col0, 26 + MIN ( - 93 ), 29 col0
----
37
-67
29

query I rowsort
SELECT - COALESCE ( + + 10, - 62, + 12 ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-5884
SELECT ALL COUNT( * ) col1, + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-5884
SELECT ALL COUNT ( * ) col1, + COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT ALL - 21 - 6
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT - - COUNT( * ) - ( - + 27 ) * + 34 * - 13 - + ( - 62 ) + + 28 col1
----
-11843

skipif mysql # not compatible
query I rowsort label-5886
SELECT - - COUNT ( * ) - ( - + 27 ) * + 34 * - 13 - + ( - 62 ) + + 28 col1
----
-11843

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT - + 41 - - COUNT( * ) + + - 59 * 3 * + 3
----
-571

skipif mysql # not compatible
query I rowsort label-5887
SELECT - + 41 - - COUNT ( * ) + + - 59 * 3 * + 3
----
-571

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT + + CASE - COUNT( * ) WHEN - 90 THEN + 82 * COUNT( * ) - + 76 * 81 - + 63 * - MIN( ALL 56 ) + + COALESCE ( + 52, - 7, + - 9 / 40 + + 5 ) * CASE - COUNT( * ) WHEN - 33 THEN NULL ELSE + 0 * - ( + + ( 56 ) ) + - 36 + + 39 + 84 END + 78 + - 10 + 86 + - 48 * 97 * + ( 89 + + 62 ) WHEN - 50 THEN NULL WHEN - 57 THEN - COUNT( * ) END * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5888
SELECT + + CASE - COUNT ( * ) WHEN - 90 THEN + 82 * COUNT ( * ) - + 76 * 81 - + 63 * - MIN ( ALL 56 ) + + COALESCE ( + 52, - 7, + - 9 / 40 + + 5 ) * CASE - COUNT ( * ) WHEN - 33 THEN NULL ELSE + 0 * - ( + + ( 56 ) ) + - 36 + + 39 + 84 END + 78 + - 10 + 86 + - 48 * 97 * + ( 89 + + 62 ) WHEN - 50 THEN NULL WHEN - 57 THEN - COUNT ( * ) END * 96
----
NULL

query I rowsort
SELECT + 59 + + 32 - - 79 * 65
----
5226

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT ALL - MAX( + 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL - MAX ( + 91 )
----
-91

query I rowsort
SELECT - 98 + 55 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-5892
SELECT DISTINCT + 55 AS col2, + COUNT( * ) col0
----
55
1

skipif mysql # not compatible
query II rowsort label-5892
SELECT DISTINCT + 55 AS col2, + COUNT ( * ) col0
----
55
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5893
SELECT ALL 36 col2, COUNT( * ) * COUNT( * ) * + 38 + - - COUNT( * )
----
36
39

skipif mysql # not compatible
query II rowsort label-5893
SELECT ALL 36 col2, COUNT ( * ) * COUNT ( * ) * + 38 + - - COUNT ( * )
----
36
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5894
SELECT + 49 DIV + - MIN( ALL + 46 ) + - COUNT( * ) + COUNT( * ) DIV - 23
----
-2

skipif mysql # not compatible
query I rowsort label-5894
SELECT + 49 / + - MIN ( ALL + 46 ) + - COUNT ( * ) + COUNT ( * ) / - 23
----
-2

query I rowsort
SELECT ALL CASE + 30 WHEN - - 75 THEN + - NULLIF ( + 49, + - 68 ) ELSE NULL END * 60
----
NULL

query I rowsort
SELECT DISTINCT 64 * 85
----
5440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5897
SELECT - COUNT( DISTINCT + 85 ) DIV - MAX( DISTINCT - 39 )
----
0

skipif mysql # not compatible
query I rowsort label-5897
SELECT - COUNT ( DISTINCT + 85 ) / - MAX ( DISTINCT - 39 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5898
SELECT + 76 DIV + + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-5898
SELECT + 76 / + + COUNT ( * )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT - SUM( ALL + 56 ) * 76 + + - 64 + + 75
----
-4245

skipif mysql # not compatible
query I rowsort label-5899
SELECT - SUM ( ALL + 56 ) * 76 + + - 64 + + 75
----
-4245

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT - COUNT( * ) * 12 + - COUNT( * ) + + 76
----
63

skipif mysql # not compatible
query I rowsort label-5900
SELECT - COUNT ( * ) * 12 + - COUNT ( * ) + + 76
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5901
SELECT ALL 58 * + - 37 AS col0, + CAST( + - 99 AS SIGNED ) - + 79
----
-2146
-178

skipif mysql # not compatible
query II rowsort label-5901
SELECT ALL 58 * + - 37 AS col0, + CAST ( + - 99 AS INTEGER ) - + 79
----
-2146
-178

query I rowsort
SELECT ( + - ( + + 82 ) ) col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5903
SELECT CASE + CAST( NULL AS SIGNED ) WHEN - - 17 * + - 37 THEN NULL WHEN 31 + + 63 THEN + 71 WHEN + COUNT( * ) THEN - - 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5903
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN - - 17 * + - 37 THEN NULL WHEN 31 + + 63 THEN + 71 WHEN + COUNT ( * ) THEN - - 45 END
----
NULL

query I rowsort
SELECT ALL 22 * - 60 AS col2
----
-1320

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT CASE + 67 WHEN - 52 THEN NULL WHEN + 8 THEN NULL WHEN + SUM( - 82 ) THEN + 27 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5905
SELECT CASE + 67 WHEN - 52 THEN NULL WHEN + 8 THEN NULL WHEN + SUM ( - 82 ) THEN + 27 ELSE NULL END
----
NULL

query I rowsort
SELECT + 86 * + 2 col1
----
172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5907
SELECT ALL + 28 * - - CASE + 97 WHEN + COUNT( * ) THEN + + ( + + 33 ) WHEN - 93 + COUNT( * ) THEN + 11 ELSE 48 * + - 63 - + + ( + - 68 ) + - 9 + + 37 * NULLIF ( 99, + 89 * + 6 ) END + - + SUM( DISTINCT + 79 ) + NULLIF ( 5, - 57 DIV - 10 ) * + COUNT( 2 ) * - + 59 - - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL + 28 * - - CASE + 97 WHEN + COUNT ( * ) THEN + + ( + + 33 ) WHEN - 93 + COUNT ( * ) THEN + 11 ELSE 48 * + - 63 - + + ( + - 68 ) + - 9 + + 37 * NULLIF ( 99, + 89 * + 6 ) END + - + SUM ( DISTINCT + 79 ) + NULLIF ( 5, - 57 / - 10 ) * + COUNT ( 2 ) * - + 59 - - - 70
----
NULL

query I rowsort
SELECT ALL - CASE - 22 WHEN + + 44 THEN + - 64 + 6 WHEN - ( - 24 ) THEN - 4 + 7 END * ( 45 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5909
SELECT + - 71 + - SUM( + + ( + CASE + + 96 WHEN + 44 * - 68 + 42 * + 58 - - 10 + - + 34 THEN + 83 ELSE + 49 DIV + 62 END ) ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-5909
SELECT + - 71 + - SUM ( + + ( + CASE + + 96 WHEN + 44 * - 68 + 42 * + 58 - - 10 + - + 34 THEN + 83 ELSE + 49 / + 62 END ) ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-5910
SELECT - COUNT( * ) * - MIN( DISTINCT - 96 ) - + ( + 89 ), 35 - - 88 AS col2
----
-185
123

skipif mysql # not compatible
query II rowsort label-5910
SELECT - COUNT ( * ) * - MIN ( DISTINCT - 96 ) - + ( + 89 ), 35 - - 88 AS col2
----
-185
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5911
SELECT DISTINCT - - MIN( + 94 ) * - 66 * + + 11 DIV + - COUNT( + 43 ) - - 54, ( - - NULLIF ( - CASE ( + - 52 ) WHEN - 78 THEN + + COUNT( * ) ELSE NULL END, 11 ) ) AS col0
----
68298
NULL

skipif mysql # not compatible
query II rowsort label-5911
SELECT DISTINCT - - MIN ( + 94 ) * - 66 * + + 11 / + - COUNT ( + 43 ) - - 54, ( - - NULLIF ( - CASE ( + - 52 ) WHEN - 78 THEN + + COUNT ( * ) ELSE NULL END, 11 ) ) AS col0
----
68298
NULL

query I rowsort
SELECT ALL - + 74 * + - 51 + 81 * + + 12
----
4746

query I rowsort
SELECT + 58 - + + 63 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT ALL MAX( + + ( 5 ) )
----
5

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL MAX ( + + ( 5 ) )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5915
SELECT ALL - 25 - - - 56 AS col1, - 34 * + CAST( NULL AS SIGNED )
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-5915
SELECT ALL - 25 - - - 56 AS col1, - 34 * + CAST ( NULL AS INTEGER )
----
-81
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5916
SELECT ALL + + COUNT( * ) - 26 * - 13 AS col0, 72 AS col0
----
339
72

skipif mysql # not compatible
query II rowsort label-5916
SELECT ALL + + COUNT ( * ) - 26 * - 13 AS col0, 72 AS col0
----
339
72

onlyif mysql # aggregate syntax: 
query II rowsort label-5917
SELECT + + 45 + + 96 AS col0, + COUNT( * ) AS col2
----
141
1

skipif mysql # not compatible
query II rowsort label-5917
SELECT + + 45 + + 96 AS col0, + COUNT ( * ) AS col2
----
141
1

query I rowsort
SELECT - - 39 * 76
----
2964

onlyif mysql # DIV for integer division: 
query I rowsort label-5919
SELECT DISTINCT + + 61 DIV + - 52
----
-1

skipif mysql # not compatible
query I rowsort label-5919
SELECT DISTINCT + + 61 / + - 52
----
-1

query I rowsort
SELECT - 74 * - 77 AS col1
----
5698

query I rowsort
SELECT ALL + - 11 * 94 + + 68 + 10 AS col0
----
-956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5922
SELECT - CAST( + AVG ( - 7 ) AS SIGNED ) * 89 * - - COALESCE ( - COUNT( * ), + CASE - CASE + 75 WHEN - 80 THEN + COUNT( * ) WHEN + - 5 * + - CASE CASE - 75 WHEN + CASE - - 30 WHEN 34 THEN NULL WHEN 35 + COUNT( * ) * 27 + + ( - 70 ) + 56 THEN + - CASE 64 WHEN 34 THEN - CAST( - + 49 AS SIGNED ) WHEN 61 THEN NULL END * 59 + - 91 ELSE COALESCE ( + 3, - COUNT( * ) / 26 + - COUNT( * ) / - NULLIF ( 30 - - 12, 91 - 64 * + 68 ), ( + 68 ) ) END THEN 98 / 67 WHEN 21 THEN NULL ELSE NULL END WHEN - NULLIF ( MIN( - 29 ), MAX( + CAST( 27 AS SIGNED ) ) - + COUNT( * ) ) + + CAST( NULL AS SIGNED ) THEN - 9 WHEN 15 THEN NULL WHEN 33 THEN - 13 END THEN NULL END WHEN - 77 + 94 THEN NULL ELSE 38 * COALESCE ( ( 43 ), + 58 * + 27, 55 * 38 ) END + + ( + ( 76 ) ) * + COUNT( * ) ) + 70
----
-553

skipif mysql # not compatible
query I rowsort label-5922
SELECT - CAST ( + AVG ( - 7 ) AS INTEGER ) * 89 * - - COALESCE ( - COUNT ( * ), + CASE - CASE + 75 WHEN - 80 THEN + COUNT ( * ) WHEN + - 5 * + - CASE CASE - 75 WHEN + CASE - - 30 WHEN 34 THEN NULL WHEN 35 + COUNT ( * ) * 27 + + ( - 70 ) + 56 THEN + - CASE 64 WHEN 34 THEN - CAST ( - + 49 AS INTEGER ) WHEN 61 THEN NULL END * 59 + - 91 ELSE COALESCE ( + 3, - COUNT ( * ) / 26 + - COUNT ( * ) / - NULLIF ( 30 - - 12, 91 - 64 * + 68 ), ( + 68 ) ) END THEN 98 / 67 WHEN 21 THEN NULL ELSE NULL END WHEN - NULLIF ( MIN ( - 29 ), MAX ( + CAST ( 27 AS INTEGER ) ) - + COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) THEN - 9 WHEN 15 THEN NULL WHEN 33 THEN - 13 END THEN NULL END WHEN - 77 + 94 THEN NULL ELSE 38 * COALESCE ( ( 43 ), + 58 * + 27, 55 * 38 ) END + + ( + ( 76 ) ) * + COUNT ( * ) ) + 70
----
-553

query II rowsort
SELECT - 1 + + 12 AS col1, + 38 AS col1
----
11
38

query I rowsort
SELECT ALL ( - + 95 ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT ALL - 54 * + - ( + MAX( DISTINCT 32 ) ) AS col2
----
1728

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL - 54 * + - ( + MAX ( DISTINCT 32 ) ) AS col2
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT - 11 + SUM( + - 27 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-5926
SELECT - 11 + SUM ( + - 27 ) AS col0
----
-38

query I rowsort
SELECT DISTINCT - 36 * 91
----
-3276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5928
SELECT ALL CAST( + 44 AS SIGNED ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL CAST ( + 44 AS INTEGER ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT + NULLIF ( + + COUNT( * ), + MIN( + 49 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5929
SELECT + NULLIF ( + + COUNT ( * ), + MIN ( + 49 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5930
SELECT + NULLIF ( + - CAST( NULL AS DECIMAL ), + 22 + COUNT( * ) ) / - + 34 + - 73 + + - 2 - + COUNT( * ) * + - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5930
SELECT + NULLIF ( + - CAST ( NULL AS REAL ), + 22 + COUNT ( * ) ) / - + 34 + - 73 + + - 2 - + COUNT ( * ) * + - 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT + 70 * - COUNT( * ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-5931
SELECT + 70 * - COUNT ( * ) AS col0
----
-70

query I rowsort
SELECT - 57 + 33
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT ALL + NULLIF ( + COUNT( - 98 ), + + 85 )
----
1

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL + NULLIF ( + COUNT ( - 98 ), + + 85 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5934
SELECT DISTINCT COALESCE ( - 14, - 53 + + CASE + 30 WHEN 33 THEN NULL ELSE 21 + + + 90 END ) * CAST( NULL AS SIGNED ) + + - 90 * + COUNT( * ) + 32 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5934
SELECT DISTINCT COALESCE ( - 14, - 53 + + CASE + 30 WHEN 33 THEN NULL ELSE 21 + + + 90 END ) * CAST ( NULL AS INTEGER ) + + - 90 * + COUNT ( * ) + 32 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 4 + - 32
----
-28

query I rowsort
SELECT ALL - 46 + 33
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5937
SELECT COALESCE ( + + 17, - CAST( NULL AS SIGNED ) DIV + MIN( ALL + 72 ) + + 80 * 33, 61 ) + - 25 - + 41 * - - 56 + 11
----
-2293

skipif mysql # not compatible
query I rowsort label-5937
SELECT COALESCE ( + + 17, - CAST ( NULL AS INTEGER ) / + MIN ( ALL + 72 ) + + 80 * 33, 61 ) + - 25 - + 41 * - - 56 + 11
----
-2293

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5938
SELECT 99 + CAST( 92 AS SIGNED ) + + COUNT( * ) * + 79
----
270

skipif mysql # not compatible
query I rowsort label-5938
SELECT 99 + CAST ( 92 AS INTEGER ) + + COUNT ( * ) * + 79
----
270

query I rowsort
SELECT ALL 68 + - 38 col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5940
SELECT 44 + + 3 + - - 8 + + 6 * SUM( ALL - CAST( NULL AS SIGNED ) ) - 86 + - - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5940
SELECT 44 + + 3 + - - 8 + + 6 * SUM ( ALL - CAST ( NULL AS INTEGER ) ) - 86 + - - 85 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5941
SELECT DISTINCT COUNT( * ) + + 42 + + CAST( NULL AS SIGNED ) + + 26 * - - 3 + - 49 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT COUNT ( * ) + + 42 + + CAST ( NULL AS INTEGER ) + + 26 * - - 3 + - 49 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5942
SELECT ALL + 15 + - - CAST( + COUNT( * ) AS SIGNED ) * 48 * + ( - 9 ) - + - 64
----
-353

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL + 15 + - - CAST ( + COUNT ( * ) AS INTEGER ) * 48 * + ( - 9 ) - + - 64
----
-353

query I rowsort
SELECT ALL - - 59 * + 29 AS col0
----
1711

query I rowsort
SELECT DISTINCT 21 - - 84
----
105

query I rowsort
SELECT ALL - COALESCE ( 4, - - 12 - - 48 )
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5946
SELECT + COUNT( ALL - + 47 ) * - + 2 + + COALESCE ( 86, - COUNT( * ) * + 59 DIV ( - 63 ) * + 70 + COALESCE ( + 15, + 10 ) + + 55 + + 17 DIV + 20 DIV + + 45 DIV - 63 * 67 )
----
84

skipif mysql # not compatible
query I rowsort label-5946
SELECT + COUNT ( ALL - + 47 ) * - + 2 + + COALESCE ( 86, - COUNT ( * ) * + 59 / ( - 63 ) * + 70 + COALESCE ( + 15, + 10 ) + + 55 + + 17 / + 20 / + + 45 / - 63 * 67 )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5947
SELECT ALL + 54 - - + CAST( NULL AS SIGNED ) + 38 + - + 21 * + 58 / + - ( + ( 48 ) ) * NULLIF ( - 68, - - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL + 54 - - + CAST ( NULL AS INTEGER ) + 38 + - + 21 * + 58 / + - ( + ( 48 ) ) * NULLIF ( - 68, - - COUNT ( * ) )
----
NULL

query I rowsort
SELECT + NULLIF ( - 61, + 65 * + 79 / 5 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT - 31 + - - 29 * COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-5949
SELECT - 31 + - - 29 * COUNT ( * )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5950
SELECT 72 * - ( + 0 ) DIV 56 * + 50 + - - 87 + - + 41 + - ( + 28 ) * 27
----
-710

skipif mysql # not compatible
query I rowsort label-5950
SELECT 72 * - ( + 0 ) / 56 * + 50 + - - 87 + - + 41 + - ( + 28 ) * 27
----
-710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5951
SELECT + NULLIF ( CAST( - 60 AS SIGNED ), - 3 + 75 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-5951
SELECT + NULLIF ( CAST ( - 60 AS INTEGER ), - 3 + 75 ) AS col1
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5952
SELECT ALL - CAST( - + ( + 54 ) AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL - CAST ( - + ( + 54 ) AS INTEGER )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT ALL + 38 * + COALESCE ( - - COUNT( * ), + + 60, + + 44 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL + 38 * + COALESCE ( - - COUNT ( * ), + + 60, + + 44 ) AS col0
----
38

query I rowsort
SELECT - ( - 88 ) + 86 + - 87
----
87

query I rowsort
SELECT ALL COALESCE ( 41, - + 96, - 90 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5956
SELECT 41 + 2 * + + 1 + - CAST( + COUNT( * ) AS SIGNED ) + - + 7 * + 5
----
7

skipif mysql # not compatible
query I rowsort label-5956
SELECT 41 + 2 * + + 1 + - CAST ( + COUNT ( * ) AS INTEGER ) + - + 7 * + 5
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5957
SELECT ALL - COALESCE ( + COUNT( * ), 59 ) AS col1, 73 AS col2
----
-1
73

skipif mysql # not compatible
query II rowsort label-5957
SELECT ALL - COALESCE ( + COUNT ( * ), 59 ) AS col1, 73 AS col2
----
-1
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT SUM( 74 ) - - 69 - - 32
----
175

skipif mysql # not compatible
query I rowsort label-5958
SELECT SUM ( 74 ) - - 69 - - 32
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5959
SELECT DISTINCT + 95 + + - CAST( - + 84 AS SIGNED ) AS col1
----
179

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT + 95 + + - CAST ( - + 84 AS INTEGER ) AS col1
----
179

query I rowsort
SELECT 19 + - 78 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-5961
SELECT ALL - 59 + - - COUNT( * ) * 9 * - 20 AS col2, 34
----
-239
34

skipif mysql # not compatible
query II rowsort label-5961
SELECT ALL - 59 + - - COUNT ( * ) * 9 * - 20 AS col2, 34
----
-239
34

query I rowsort
SELECT DISTINCT 81 + - 33
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-5963
SELECT ALL - 78 + 83, + 12 + - COUNT( * ) AS col1
----
5
11

skipif mysql # not compatible
query II rowsort label-5963
SELECT ALL - 78 + 83, + 12 + - COUNT ( * ) AS col1
----
5
11

query I rowsort
SELECT ALL + 87 * + ( - 67 )
----
-5829

query I rowsort
SELECT 19 * 72 col1
----
1368

query I rowsort
SELECT ALL + 14 + + 11
----
25

query I rowsort
SELECT DISTINCT + 5 * - 94 * + 11 AS col1
----
-5170

query I rowsort
SELECT 9 * + 39 AS col0
----
351

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT COUNT( * ) * - - COUNT( * ) * - 97
----
-97

skipif mysql # not compatible
query I rowsort label-5969
SELECT COUNT ( * ) * - - COUNT ( * ) * - 97
----
-97

query I rowsort
SELECT DISTINCT - 97 - + 44 + + 15 AS col2
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5971
SELECT DISTINCT 65 DIV - COUNT( * ) * + COUNT( * ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-5971
SELECT DISTINCT 65 / - COUNT ( * ) * + COUNT ( * ) AS col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5972
SELECT ALL - CAST( - + SUM( ALL 62 ) AS SIGNED ) * + - ( - 29 )
----
1798

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL - CAST ( - + SUM ( ALL 62 ) AS INTEGER ) * + - ( - 29 )
----
1798

onlyif mysql # DIV for integer division: 
query I rowsort label-5973
SELECT DISTINCT + - 19 DIV + 41 * - ( + - 68 ) + - 6
----
-6

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT + - 19 / + 41 * - ( + - 68 ) + - 6
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5974
SELECT ALL - COUNT( * ) * + - 83 * - + 75 * + - CASE + 81 WHEN 88 * + COALESCE ( - 85, 65 ) * - 75 THEN NULL ELSE + COUNT( * ) DIV + 16 * + 96 * 56 + + - 56 END col0
----
-348600

skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL - COUNT ( * ) * + - 83 * - + 75 * + - CASE + 81 WHEN 88 * + COALESCE ( - 85, 65 ) * - 75 THEN NULL ELSE + COUNT ( * ) / + 16 * + 96 * 56 + + - 56 END col0
----
-348600

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT + COUNT( * ) * - COUNT( * ) * - 40 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-5975
SELECT + COUNT ( * ) * - COUNT ( * ) * - 40 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT MIN( 93 ) * 38 AS col0
----
3534

skipif mysql # not compatible
query I rowsort label-5976
SELECT MIN ( 93 ) * 38 AS col0
----
3534

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT DISTINCT + 98 * - + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-5977
SELECT DISTINCT + 98 * - + COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT + + ( - - 62 ) * + + COALESCE ( + + 6, + 18, + 62 ) + - - 45 + - CASE - COUNT( * ) WHEN ( - + ( 60 ) ) * 51 THEN - + ( ( + 73 ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5978
SELECT + + ( - - 62 ) * + + COALESCE ( + + 6, + 18, + 62 ) + - - 45 + - CASE - COUNT ( * ) WHEN ( - + ( 60 ) ) * 51 THEN - + ( ( + 73 ) ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5979
SELECT - 78 * - CASE 96 WHEN + 50 - + - COUNT( * ) - - + 9 * + 30 THEN 74 * - 36 / - 77 END AS col2, + 3
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5979
SELECT - 78 * - CASE 96 WHEN + 50 - + - COUNT ( * ) - - + 9 * + 30 THEN 74 * - 36 / - 77 END AS col2, + 3
----
NULL
3

query I rowsort
SELECT ALL COALESCE ( - 96, - NULLIF ( + + 15, + ( 22 ) ) )
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-5981
SELECT - COUNT( * ) + - - 88 AS col2, 89 AS col1
----
87
89

skipif mysql # not compatible
query II rowsort label-5981
SELECT - COUNT ( * ) + - - 88 AS col2, 89 AS col1
----
87
89

query I rowsort
SELECT 78 + + 48 AS col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT COUNT( * ) - ( + CASE + 91 WHEN + + 61 * - NULLIF ( 77, ( 6 ) ) - + - 20 - 56 THEN - MAX( DISTINCT 88 ) ELSE 60 END ) * - 40 AS col1
----
2401

skipif mysql # not compatible
query I rowsort label-5983
SELECT COUNT ( * ) - ( + CASE + 91 WHEN + + 61 * - NULLIF ( 77, ( 6 ) ) - + - 20 - 56 THEN - MAX ( DISTINCT 88 ) ELSE 60 END ) * - 40 AS col1
----
2401

query II rowsort
SELECT 63, - 38 AS col1
----
63
-38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5985
SELECT DISTINCT 76 + - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5985
SELECT DISTINCT 76 + - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 46 + 54
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT ALL COUNT( * ) + - + ( + - 39 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL COUNT ( * ) + - + ( + - 39 ) AS col1
----
40

query II rowsort
SELECT - CASE + - 38 WHEN - 11 THEN - 76 + 72 END, 15 AS col2
----
NULL
15

query I rowsort
SELECT ALL 40 + - 32 + + 91 * - ( - - 33 )
----
-2995

query I rowsort
SELECT ALL 99 * - - 24
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT - NULLIF ( COUNT( * ), - + AVG ( DISTINCT + 48 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5991
SELECT - NULLIF ( COUNT ( * ), - + AVG ( DISTINCT + 48 ) ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5992
SELECT ALL - 46 + + 82 * - + 15 * 23 + + CASE 27 WHEN - COALESCE ( - COUNT( * ), - 76 * + 21 * CAST( NULL AS SIGNED ) * - COUNT( * ) * 55 ) THEN ( 88 ) * - 39 - - CAST( 37 AS SIGNED ) + - 32 * 83 + 46 WHEN - - 48 THEN NULL END + 65 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL - 46 + + 82 * - + 15 * 23 + + CASE 27 WHEN - COALESCE ( - COUNT ( * ), - 76 * + 21 * CAST ( NULL AS INTEGER ) * - COUNT ( * ) * 55 ) THEN ( 88 ) * - 39 - - CAST ( 37 AS INTEGER ) + - 32 * 83 + 46 WHEN - - 48 THEN NULL END + 65 + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT - COUNT( DISTINCT - 70 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5993
SELECT - COUNT ( DISTINCT - 70 ) AS col0
----
-1

query II rowsort
SELECT ALL 60 AS col1, 28 + + - COALESCE ( - + ( 63 ), + - 63, 79 ) AS col1
----
60
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT + ( - 76 ) + + - COUNT( * ) * + 82 + - + 80 + - - 43 * - - COUNT( * )
----
-195

skipif mysql # not compatible
query I rowsort label-5995
SELECT + ( - 76 ) + + - COUNT ( * ) * + 82 + - + 80 + - - 43 * - - COUNT ( * )
----
-195

query I rowsort
SELECT - 63 * - 41 AS col2
----
2583

query I rowsort
SELECT + 74 + + + 84
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-5998
SELECT - 80 DIV + - 45
----
1

skipif mysql # not compatible
query I rowsort label-5998
SELECT - 80 / + - 45
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT + 51 + + ( 51 ) * SUM( DISTINCT + 64 ) col0
----
3315

skipif mysql # not compatible
query I rowsort label-5999
SELECT + 51 + + ( 51 ) * SUM ( DISTINCT + 64 ) col0
----
3315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6000
SELECT ALL + 30 * + SUM( - 77 ) * - 52 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL + 30 * + SUM ( - 77 ) * - 52 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6001
SELECT - COUNT( * ) DIV 90 + 4 * + - 19
----
-76

skipif mysql # not compatible
query I rowsort label-6001
SELECT - COUNT ( * ) / 90 + 4 * + - 19
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-6002
SELECT ALL 33 DIV + + 94 * - - 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL 33 / + + 94 * - - 42 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6003
SELECT DISTINCT + 86 * 66 * - - ( - CAST( NULL AS SIGNED ) ) * + - 75 * 44 / + COUNT( * ) - 75 - - - 91 * 29 * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6003
SELECT DISTINCT + 86 * 66 * - - ( - CAST ( NULL AS INTEGER ) ) * + - 75 * 44 / + COUNT ( * ) - 75 - - - 91 * 29 * - 30
----
NULL

query I rowsort
SELECT DISTINCT - 11 * + 36 AS col0
----
-396

query I rowsort
SELECT ALL + 56 * 3 * 8 AS col1
----
1344

query I rowsort
SELECT - 29 * - COALESCE ( 78, - - 53 * - 17, + 88 ) + + 14
----
2276

query I rowsort
SELECT + 81 * 84 col0
----
6804

query I rowsort
SELECT - 51 + - 62 AS col1
----
-113

query I rowsort
SELECT ALL + + 17 * 57
----
969

query I rowsort
SELECT - + NULLIF ( - 84, + 27 + - 68 ) + - 14
----
70

query I rowsort
SELECT - + 83 * 15
----
-1245

query II rowsort
SELECT ALL + 11 AS col1, - 97
----
11
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6013
SELECT - COALESCE ( + 9, - 3, + - 24, - 66 ) DIV ( COALESCE ( - 60, 16 * - + 4 - 92 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6013
SELECT - COALESCE ( + 9, - 3, + - 24, - 66 ) / ( COALESCE ( - 60, 16 * - + 4 - 92 ) )
----
0

query I rowsort
SELECT - 40 + + 35 AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6015
SELECT - - NULLIF ( - 5, - 10 ) * MIN( + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6015
SELECT - - NULLIF ( - 5, - 10 ) * MIN ( + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6016
SELECT DISTINCT - CAST( - ( - + 48 ) AS SIGNED ) * - 65 + - - 58 + + - COALESCE ( - 14, - 88 )
----
3192

skipif mysql # not compatible
query I rowsort label-6016
SELECT DISTINCT - CAST ( - ( - + 48 ) AS INTEGER ) * - 65 + - - 58 + + - COALESCE ( - 14, - 88 )
----
3192

query I rowsort
SELECT ALL - 29 * - 87 * 20 + + + 43 AS col2
----
50503

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT ALL + SUM( + + 56 ) * - - 95 * - + 64 * + + 49 + + - 1 + + 43
----
-16683478

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL + SUM ( + + 56 ) * - - 95 * - + 64 * + + 49 + + - 1 + + 43
----
-16683478

query I rowsort
SELECT DISTINCT - - 99 + NULLIF ( - 96, + + 90 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6020
SELECT + 29 + + 83 DIV 76 DIV + - 62 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-6020
SELECT + 29 + + 83 / 76 / + - 62 AS col0
----
29

query I rowsort
SELECT ALL 35 + 84
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-6022
SELECT - COUNT( * ) AS col0, 32 AS col0
----
-1
32

skipif mysql # not compatible
query II rowsort label-6022
SELECT - COUNT ( * ) AS col0, 32 AS col0
----
-1
32

query I rowsort
SELECT ALL - 86 * 70
----
-6020

query I rowsort
SELECT DISTINCT - 77 + + 89
----
12

query II rowsort
SELECT + 34 + - 89, 28 col1
----
-55
28

query I rowsort
SELECT DISTINCT + 14 + - + 58 * - + 80 AS col2
----
4654

query II rowsort
SELECT 35, - 30 col1
----
35
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6028
SELECT ALL 4 col2, - MAX( + + 76 ) DIV 28 + - 57
----
4
-59

skipif mysql # not compatible
query II rowsort label-6028
SELECT ALL 4 col2, - MAX ( + + 76 ) / 28 + - 57
----
4
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT - 99 * + MAX( DISTINCT - - 15 ) AS col0
----
-1485

skipif mysql # not compatible
query I rowsort label-6029
SELECT - 99 * + MAX ( DISTINCT - - 15 ) AS col0
----
-1485

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT - 57 - + COUNT( * ) * 5
----
-62

skipif mysql # not compatible
query I rowsort label-6030
SELECT - 57 - + COUNT ( * ) * 5
----
-62

query II rowsort
SELECT 78 AS col1, 41 + + 3 * - 47 + + + 50 * 62 AS col2
----
78
3000

query I rowsort
SELECT + 81 + + 48
----
129

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6033
SELECT DISTINCT CASE - 99 WHEN + 4 THEN + 28 ELSE 59 END - + + COUNT( * ) - + + 34 + - 89 * 53 + - + 66 - + 94 * COALESCE ( - + 7, 21 * + 31 - + 67, + 3 ) + - CASE - + NULLIF ( 7, - 7 ) WHEN CAST( + COUNT( * ) AS DECIMAL ) THEN - 76 + - - 15 * 55 - MIN( DISTINCT - 63 ) ELSE - + 44 END
----
-4057

skipif mysql # not compatible
query I rowsort label-6033
SELECT DISTINCT CASE - 99 WHEN + 4 THEN + 28 ELSE 59 END - + + COUNT ( * ) - + + 34 + - 89 * 53 + - + 66 - + 94 * COALESCE ( - + 7, 21 * + 31 - + 67, + 3 ) + - CASE - + NULLIF ( 7, - 7 ) WHEN CAST ( + COUNT ( * ) AS REAL ) THEN - 76 + - - 15 * 55 - MIN ( DISTINCT - 63 ) ELSE - + 44 END
----
-4057

query I rowsort
SELECT - NULLIF ( + - 60, + 21 )
----
60

query I rowsort
SELECT + 57 + - 78 + + 45 col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT - CASE + 42 WHEN + 23 THEN NULL ELSE - SUM( ALL 41 ) END
----
41

skipif mysql # not compatible
query I rowsort label-6036
SELECT - CASE + 42 WHEN + 23 THEN NULL ELSE - SUM ( ALL 41 ) END
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT - ( MIN( DISTINCT + ( - - 49 ) ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-6037
SELECT - ( MIN ( DISTINCT + ( - - 49 ) ) ) AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6038
SELECT DISTINCT CASE - 34 WHEN - 54 + - 85 / - 64 THEN NULL WHEN + - 35 THEN 86 END - + CASE - CAST( NULL AS SIGNED ) WHEN + 14 THEN NULL WHEN - CAST( + 1 AS SIGNED ) THEN + 45 WHEN - 21 + - + 38 THEN 73 END, - 20 + - + 93 * + - 98 AS col0
----
NULL
9094

skipif mysql # not compatible
query II rowsort label-6038
SELECT DISTINCT CASE - 34 WHEN - 54 + - 85 / - 64 THEN NULL WHEN + - 35 THEN 86 END - + CASE - CAST ( NULL AS INTEGER ) WHEN + 14 THEN NULL WHEN - CAST ( + 1 AS INTEGER ) THEN + 45 WHEN - 21 + - + 38 THEN 73 END, - 20 + - + 93 * + - 98 AS col0
----
NULL
9094

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6039
SELECT ALL 15 * ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL 15 * ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6040
SELECT DISTINCT + COUNT( * ) AS col0, ( - COALESCE ( - 59, - NULLIF ( + 9, 51 - 70 ) + + - COUNT( * ) ) ) * ( + 80 ) / + ( - CASE CASE - - 40 WHEN - 40 THEN NULL WHEN - ( COUNT( * ) ) THEN NULL ELSE - + COUNT( ALL NULLIF ( 17, - + ( - 10 ) ) ) / - - 7 * - 21 * - - 28 END WHEN 28 THEN + COUNT( * ) - 70 + - 55 * + - 97 - 5 + ( + 80 ) WHEN 72 + CAST( - 16 AS DECIMAL ) THEN NULL WHEN 84 THEN + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * ( COUNT( * ) ) WHEN - NULLIF ( + 42, 30 ) THEN + 16 * - COALESCE ( ( 95 ), - 14 * AVG ( ALL - 90 ), - 9 + - COUNT( * ) ) + + COUNT( * ) END ) + + 76 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6040
SELECT DISTINCT + COUNT ( * ) AS col0, ( - COALESCE ( - 59, - NULLIF ( + 9, 51 - 70 ) + + - COUNT ( * ) ) ) * ( + 80 ) / + ( - CASE CASE - - 40 WHEN - 40 THEN NULL WHEN - ( COUNT ( * ) ) THEN NULL ELSE - + COUNT ( ALL NULLIF ( 17, - + ( - 10 ) ) ) / - - 7 * - 21 * - - 28 END WHEN 28 THEN + COUNT ( * ) - 70 + - 55 * + - 97 - 5 + ( + 80 ) WHEN 72 + CAST ( - 16 AS REAL ) THEN NULL WHEN 84 THEN + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * ( COUNT ( * ) ) WHEN - NULLIF ( + 42, 30 ) THEN + 16 * - COALESCE ( ( 95 ), - 14 * AVG ( ALL - 90 ), - 9 + - COUNT ( * ) ) + + COUNT ( * ) END ) + + 76 AS col1
----
1
NULL

query I rowsort
SELECT - 87 * + 60 - + - 33 AS col2
----
-5187

query I rowsort
SELECT + 67 * + - 43 * 41 AS col0
----
-118121

query I rowsort
SELECT + + 72 * - 20 + 66 AS col0
----
-1374

onlyif mysql # aggregate syntax: 
query II rowsort label-6044
SELECT ALL + 57, + MIN( ALL + 9 ) col2
----
57
9

skipif mysql # not compatible
query II rowsort label-6044
SELECT ALL + 57, + MIN ( ALL + 9 ) col2
----
57
9

query II rowsort
SELECT + + 44, 52 AS col1
----
44
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6046
SELECT DISTINCT + NULLIF ( 98, - - COUNT( * ) / - + SUM( ALL + 98 ) + + COALESCE ( 17, + CAST( + 16 AS SIGNED ) * - - 73 * + 78 + 68 + + + COUNT( * ) * - COUNT( * ) + + - 82 ) + - 26 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT + NULLIF ( 98, - - COUNT ( * ) / - + SUM ( ALL + 98 ) + + COALESCE ( 17, + CAST ( + 16 AS INTEGER ) * - - 73 * + 78 + 68 + + + COUNT ( * ) * - COUNT ( * ) + + - 82 ) + - 26 ) AS col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6047
SELECT ALL - 17 DIV 27
----
0

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL - 17 / 27
----
0

query I rowsort
SELECT + 2 * - 32 - + 31
----
-95

query I rowsort
SELECT ALL + - ( + 26 )
----
-26

query I rowsort
SELECT - + 45 * - 86 AS col2
----
3870

onlyif mysql # aggregate syntax: 
query II rowsort label-6051
SELECT ALL + + COUNT( * ), MAX( 62 ) * 66 + COUNT( * ) AS col2
----
1
4093

skipif mysql # not compatible
query II rowsort label-6051
SELECT ALL + + COUNT ( * ), MAX ( 62 ) * 66 + COUNT ( * ) AS col2
----
1
4093

query I rowsort
SELECT DISTINCT - 82 * + 58 + + + 16 * + - 79 col2
----
-6020

query I rowsort
SELECT ALL - 39 * - 0 + 61 AS col2
----
61

query II rowsort
SELECT + + 39 col0, - 58
----
39
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6055
SELECT + - 10 + + + COALESCE ( + + 6, + 30 * - MAX( ALL - 62 ) * + 94 + - 23 - - ( - 77 ) DIV - SUM( ALL - 24 ) * + 45 * + 38 * - 37 + COUNT( * ) + - SUM( 54 ) * - 87 - + 35 + - - CASE CASE 38 WHEN 16 THEN - + ( - 79 ) + - 17 - 57 WHEN + + 29 * - 91 * - 17 + + - SUM( - 32 ) * - + COUNT( * ) * + CASE - MIN( 14 ) WHEN 4 + CAST( NULL AS SIGNED ) THEN NULL WHEN 77 THEN - AVG ( DISTINCT 49 ) * + 38 + COALESCE ( + 5, + 4 ) END DIV + CAST( CASE + 66 WHEN + 82 THEN COALESCE ( 50, 5 + - 26, 88 + 22 ) DIV - 48 ELSE NULL END + 55 AS SIGNED ) + + 35 THEN NULL ELSE - 62 END WHEN + 86 - 43 THEN COALESCE ( 5, 4 ) ELSE NULL END )
----
-4

skipif mysql # not compatible
query I rowsort label-6055
SELECT + - 10 + + + COALESCE ( + + 6, + 30 * - MAX ( ALL - 62 ) * + 94 + - 23 - - ( - 77 ) / - SUM ( ALL - 24 ) * + 45 * + 38 * - 37 + COUNT ( * ) + - SUM ( 54 ) * - 87 - + 35 + - - CASE CASE 38 WHEN 16 THEN - + ( - 79 ) + - 17 - 57 WHEN + + 29 * - 91 * - 17 + + - SUM ( - 32 ) * - + COUNT ( * ) * + CASE - MIN ( 14 ) WHEN 4 + CAST ( NULL AS INTEGER ) THEN NULL WHEN 77 THEN - AVG ( DISTINCT 49 ) * + 38 + COALESCE ( + 5, + 4 ) END / + CAST ( CASE + 66 WHEN + 82 THEN COALESCE ( 50, 5 + - 26, 88 + 22 ) / - 48 ELSE NULL END + 55 AS INTEGER ) + + 35 THEN NULL ELSE - 62 END WHEN + 86 - 43 THEN COALESCE ( 5, 4 ) ELSE NULL END )
----
-4

query I rowsort
SELECT DISTINCT + ( - 13 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-6057
SELECT ALL - 64 + + 51 + + 73 AS col2, COUNT( * ) - + 83 AS col2
----
60
-82

skipif mysql # not compatible
query II rowsort label-6057
SELECT ALL - 64 + + 51 + + 73 AS col2, COUNT ( * ) - + 83 AS col2
----
60
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6058
SELECT 22 + + + MAX( DISTINCT + CAST( - 39 AS SIGNED ) ) + - 21
----
-38

skipif mysql # not compatible
query I rowsort label-6058
SELECT 22 + + + MAX ( DISTINCT + CAST ( - 39 AS INTEGER ) ) + - 21
----
-38

onlyif mysql # DIV for integer division: 
query II rowsort label-6059
SELECT 93 * - - 27, - 68 DIV + 59 col1
----
2511
-1

skipif mysql # not compatible
query II rowsort label-6059
SELECT 93 * - - 27, - 68 / + 59 col1
----
2511
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6060
SELECT ALL - ( - + 11 ) / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL - ( - + 11 ) / + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 12 + + 91
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT COUNT( * ) - 2 - - 1 * - 63 * - + 50 * 79 * + - 86
----
-21401101

skipif mysql # not compatible
query I rowsort label-6062
SELECT COUNT ( * ) - 2 - - 1 * - 63 * - + 50 * 79 * + - 86
----
-21401101

onlyif mysql # aggregate syntax: 
query II rowsort label-6063
SELECT ALL + COUNT( * ) * 70 AS col2, - 4 - + 47 AS col0
----
70
-51

skipif mysql # not compatible
query II rowsort label-6063
SELECT ALL + COUNT ( * ) * 70 AS col2, - 4 - + 47 AS col0
----
70
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT 19 * + - COUNT( * ) * - + 56 AS col0
----
1064

skipif mysql # not compatible
query I rowsort label-6064
SELECT 19 * + - COUNT ( * ) * - + 56 AS col0
----
1064

query I rowsort
SELECT DISTINCT + ( + 19 ) * 38
----
722

onlyif mysql # aggregate syntax: 
query II rowsort label-6066
SELECT 47 + + - 60, + 18 + - + COUNT( * ) AS col1
----
-13
17

skipif mysql # not compatible
query II rowsort label-6066
SELECT 47 + + - 60, + 18 + - + COUNT ( * ) AS col1
----
-13
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6067
SELECT 24 + COUNT( ALL - - CAST( NULL AS SIGNED ) )
----
24

skipif mysql # not compatible
query I rowsort label-6067
SELECT 24 + COUNT ( ALL - - CAST ( NULL AS INTEGER ) )
----
24

query I rowsort
SELECT 34 + + + 73 * + 85 * - - ( + 16 )
----
99314

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT CASE COALESCE ( - 53, + MAX( 9 ) + + + 37 * - 85, - 39 ) WHEN 50 THEN + + 43 WHEN CASE + 29 WHEN ( + 45 ) THEN - + 25 * - CASE + ( + ( - 18 ) ) WHEN + + ( - 1 ) THEN + 98 WHEN + - 39 THEN NULL ELSE NULL END END THEN NULL ELSE NULL END - - 33 - + - 90 * - 85 * - 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6069
SELECT CASE COALESCE ( - 53, + MAX ( 9 ) + + + 37 * - 85, - 39 ) WHEN 50 THEN + + 43 WHEN CASE + 29 WHEN ( + 45 ) THEN - + 25 * - CASE + ( + ( - 18 ) ) WHEN + + ( - 1 ) THEN + 98 WHEN + - 39 THEN NULL ELSE NULL END END THEN NULL ELSE NULL END - - 33 - + - 90 * - 85 * - 59 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT 73 * + MIN( DISTINCT + - 30 ) AS col0
----
-2190

skipif mysql # not compatible
query I rowsort label-6070
SELECT 73 * + MIN ( DISTINCT + - 30 ) AS col0
----
-2190

query I rowsort
SELECT - 72 + + ( - - 55 ) + - 84
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-6072
SELECT + + 71 DIV - 52 + + + 50 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-6072
SELECT + + 71 / - 52 + + + 50 AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6073
SELECT DISTINCT - MAX( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6073
SELECT DISTINCT - MAX ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6074
SELECT ALL + MIN( + 32 ) + - 23 + - + COALESCE ( 63, - 35 - - + MAX( ALL - - 71 ) + - 36 / + - 0 ) + - 17 * CAST( + - AVG ( + 13 ) AS SIGNED ) * - 72 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6074
SELECT ALL + MIN ( + 32 ) + - 23 + - + COALESCE ( 63, - 35 - - + MAX ( ALL - - 71 ) + - 36 / + - 0 ) + - 17 * CAST ( + - AVG ( + 13 ) AS INTEGER ) * - 72 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 9 + - 5 AS col1, 81 - + 92 AS col2
----
4
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT DISTINCT - COUNT( * ) * + 57 + 68
----
11

skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT - COUNT ( * ) * + 57 + 68
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT DISTINCT COUNT( * ) + + 89 - - + 79 * + 16
----
1354

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT COUNT ( * ) + + 89 - - + 79 * + 16
----
1354

query I rowsort
SELECT + 49 + 38 AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6079
SELECT ALL 19 + - NULLIF ( CAST( - MAX( + 26 ) AS SIGNED ), - 74 ) col2
----
45

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL 19 + - NULLIF ( CAST ( - MAX ( + 26 ) AS INTEGER ), - 74 ) col2
----
45

query I rowsort
SELECT DISTINCT - 61 + + + 38 - 43 AS col1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-6081
SELECT 10 DIV - 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6081
SELECT 10 / - 14 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT - CASE - 14 WHEN 81 + - + 29 THEN NULL WHEN 34 THEN - - 37 WHEN 55 + + 37 THEN NULL ELSE 53 * + 57 END + COUNT( * ) + + 7
----
-3013

skipif mysql # not compatible
query I rowsort label-6082
SELECT - CASE - 14 WHEN 81 + - + 29 THEN NULL WHEN 34 THEN - - 37 WHEN 55 + + 37 THEN NULL ELSE 53 * + 57 END + COUNT ( * ) + + 7
----
-3013

query I rowsort
SELECT DISTINCT - 12 + + ( + 52 ) + - 77 AS col0
----
-37

query I rowsort
SELECT DISTINCT - + ( + 61 )
----
-61

query I rowsort
SELECT ALL + ( + 14 ) + + 78 + + - 81 + 70 * + - 26 * - - 69
----
-125569

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6086
SELECT + 38 * + 26 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6086
SELECT + 38 * + 26 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6087
SELECT ALL - 68 DIV + 54
----
-1

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL - 68 / + 54
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6088
SELECT + 87, ( + - COUNT( * ) ) AS col0
----
87
-1

skipif mysql # not compatible
query II rowsort label-6088
SELECT + 87, ( + - COUNT ( * ) ) AS col0
----
87
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT ALL SUM( + ( - 62 ) ) * - NULLIF ( + + 60, - 86 * ( - 97 ) )
----
3720

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL SUM ( + ( - 62 ) ) * - NULLIF ( + + 60, - 86 * ( - 97 ) )
----
3720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6090
SELECT ALL - CASE - 28 WHEN + ( + + COUNT( * ) ) + 73 THEN NULL WHEN + ( + 16 ) THEN NULL WHEN AVG ( - 18 ) * + 66 + - 93 THEN NULL ELSE + - ( - - 97 ) DIV + COUNT( * ) END * + + SUM( ( + - ( - - ( + 22 ) ) ) ) * - COALESCE ( - - COUNT( * ), + 18 * - + CASE ( + 66 ) WHEN - COUNT( * ) DIV + 35 - - 85 + - 30 THEN + CAST( + 28 AS SIGNED ) ELSE NULL END * + + ( NULLIF ( - NULLIF ( - 76, - + 92 ), 57 ) ) + + + COUNT( ALL 47 ), 15 + - COUNT( ALL + 27 ) )
----
2134

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL - CASE - 28 WHEN + ( + + COUNT ( * ) ) + 73 THEN NULL WHEN + ( + 16 ) THEN NULL WHEN AVG ( - 18 ) * + 66 + - 93 THEN NULL ELSE + - ( - - 97 ) / + COUNT ( * ) END * + + SUM ( ( + - ( - - ( + 22 ) ) ) ) * - COALESCE ( - - COUNT ( * ), + 18 * - + CASE ( + 66 ) WHEN - COUNT ( * ) / + 35 - - 85 + - 30 THEN + CAST ( + 28 AS INTEGER ) ELSE NULL END * + + ( NULLIF ( - NULLIF ( - 76, - + 92 ), 57 ) ) + + + COUNT ( ALL 47 ), 15 + - COUNT ( ALL + 27 ) )
----
2134

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT ALL COUNT( * ) * - 84 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-6091
SELECT ALL COUNT ( * ) * - 84 AS col2
----
-84

query I rowsort
SELECT 28 * + 32
----
896

onlyif mysql # aggregate syntax: 
query II rowsort label-6093
SELECT ALL 57 AS col2, COUNT( * ) - 38 AS col0
----
57
-37

skipif mysql # not compatible
query II rowsort label-6093
SELECT ALL 57 AS col2, COUNT ( * ) - 38 AS col0
----
57
-37

query II rowsort
SELECT ALL 9, - 64 - - 80 + - 91 AS col2
----
9
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-6095
SELECT ALL 11 AS col2, - 32 + 84 + - - 12 + - 40 * + - SUM( + + ( 56 ) ) * + 15 AS col2
----
11
33664

skipif mysql # not compatible
query II rowsort label-6095
SELECT ALL 11 AS col2, - 32 + 84 + - - 12 + - 40 * + - SUM ( + + ( 56 ) ) * + 15 AS col2
----
11
33664

query I rowsort
SELECT 44 + - 32
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6097
SELECT - 64, + COUNT( * ) * + 70 + - ( + COUNT( * ) ) / + CASE - 81 WHEN 96 THEN 25 + - 87 * CASE - 62 WHEN - 36 / + 0 THEN NULL WHEN - 8 * - CASE - CAST( NULL AS SIGNED ) WHEN + - COUNT( ALL + 54 ) THEN - - COUNT( * ) WHEN - 44 THEN NULL END THEN NULL WHEN 75 THEN NULL ELSE - + 70 - - + 28 * - + 97 END / + CAST( NULL AS DECIMAL ) ELSE NULL END AS col2
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-6097
SELECT - 64, + COUNT ( * ) * + 70 + - ( + COUNT ( * ) ) / + CASE - 81 WHEN 96 THEN 25 + - 87 * CASE - 62 WHEN - 36 / + 0 THEN NULL WHEN - 8 * - CASE - CAST ( NULL AS INTEGER ) WHEN + - COUNT ( ALL + 54 ) THEN - - COUNT ( * ) WHEN - 44 THEN NULL END THEN NULL WHEN 75 THEN NULL ELSE - + 70 - - + 28 * - + 97 END / + CAST ( NULL AS REAL ) ELSE NULL END AS col2
----
-64
NULL

query I rowsort
SELECT ALL + 97 * 62 col2
----
6014

query I rowsort
SELECT 37 - 69 AS col0
----
-32

query I rowsort
SELECT - ( + - 15 ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT + COUNT( * ) + + 88 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-6101
SELECT + COUNT ( * ) + + 88 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT - + ( + - NULLIF ( + - 39, - MAX( + + 65 ) / - - 76 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-6102
SELECT - + ( + - NULLIF ( + - 39, - MAX ( + + 65 ) / - - 76 ) )
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-6103
SELECT - 83 col0, 85 + + COUNT( * )
----
-83
86

skipif mysql # not compatible
query II rowsort label-6103
SELECT - 83 col0, 85 + + COUNT ( * )
----
-83
86

query I rowsort
SELECT ALL + 84 + - - 10 + - + 1 * - 36 AS col2
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT ALL + COUNT( ALL - 90 ) + - ( - + 43 ) * + + 79
----
3398

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL + COUNT ( ALL - 90 ) + - ( - + 43 ) * + + 79
----
3398

query II rowsort
SELECT + 17 AS col0, 69
----
17
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6107
SELECT NULLIF ( 61, - - 16 ) DIV + 41 - - + 22 + ( + - 46 ) * ( + + 48 )
----
-2185

skipif mysql # not compatible
query I rowsort label-6107
SELECT NULLIF ( 61, - - 16 ) / + 41 - - + 22 + ( + - 46 ) * ( + + 48 )
----
-2185

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6108
SELECT - CASE + + 73 WHEN - COUNT( * ) DIV - 16 THEN NULL WHEN 22 THEN + + CASE + + 24 WHEN + + 86 THEN NULL ELSE - 62 * - 18 * + - 91 END ELSE NULL END AS col2, 89 + + 96 + + 83 - + 64 - 90 DIV 63 * + 54 AS col1
----
NULL
150

skipif mysql # not compatible
query II rowsort label-6108
SELECT - CASE + + 73 WHEN - COUNT ( * ) / - 16 THEN NULL WHEN 22 THEN + + CASE + + 24 WHEN + + 86 THEN NULL ELSE - 62 * - 18 * + - 91 END ELSE NULL END AS col2, 89 + + 96 + + 83 - + 64 - 90 / 63 * + 54 AS col1
----
NULL
150

onlyif mysql # aggregate syntax: 
query II rowsort label-6109
SELECT - MIN( NULLIF ( - - 64, - - 76 ) ) * 82 * + 95, - 63 * COUNT( * ) * + 75 AS col1
----
-498560
-4725

skipif mysql # not compatible
query II rowsort label-6109
SELECT - MIN ( NULLIF ( - - 64, - - 76 ) ) * 82 * + 95, - 63 * COUNT ( * ) * + 75 AS col1
----
-498560
-4725

query II rowsort
SELECT DISTINCT - 96, 1 + ( + ( - 78 ) ) * - - NULLIF ( + 50, - - 40 ) + + 1 col2
----
-96
-3898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6111
SELECT ALL - 44 * CASE + 6 WHEN + + 55 / 7 * + + 48 THEN - 2 WHEN - + 63 THEN 30 - - 12 - + COUNT( * ) * + NULLIF ( 45, + - 61 * + + 94 ) * - - CAST( NULL AS SIGNED ) * 1 + - 78 END + 36 + - ( - + ( - + 8 ) ) + + - COUNT( * ) AS col1, - 14 AS col0
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-6111
SELECT ALL - 44 * CASE + 6 WHEN + + 55 / 7 * + + 48 THEN - 2 WHEN - + 63 THEN 30 - - 12 - + COUNT ( * ) * + NULLIF ( 45, + - 61 * + + 94 ) * - - CAST ( NULL AS INTEGER ) * 1 + - 78 END + 36 + - ( - + ( - + 8 ) ) + + - COUNT ( * ) AS col1, - 14 AS col0
----
NULL
-14

query I rowsort
SELECT - - 77 * 49
----
3773

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT ALL + - SUM( - + 97 )
----
97

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL + - SUM ( - + 97 )
----
97

query I rowsort
SELECT - 34 * - - 16 - + 8 AS col1
----
-552

query I rowsort
SELECT ALL + ( - - 56 ) * 65
----
3640

query II rowsort
SELECT ALL + 35 AS col1, 90
----
35
90

query I rowsort
SELECT DISTINCT + 5 * - 13 AS col2
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6118
SELECT CAST( 33 AS SIGNED ) * 1 + - + 30 - + 47
----
-44

skipif mysql # not compatible
query I rowsort label-6118
SELECT CAST ( 33 AS INTEGER ) * 1 + - + 30 - + 47
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT MAX( - 58 ) col2
----
-58

skipif mysql # not compatible
query I rowsort label-6119
SELECT MAX ( - 58 ) col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT + CASE + - AVG ( + 34 ) WHEN + + 55 * + 99 THEN + 43 / - 97 WHEN - 94 THEN + + 73 + + COUNT( * ) ELSE + 65 + + - ( - 14 ) END AS col2
----
79

skipif mysql # not compatible
query I rowsort label-6120
SELECT + CASE + - AVG ( + 34 ) WHEN + + 55 * + 99 THEN + 43 / - 97 WHEN - 94 THEN + + 73 + + COUNT ( * ) ELSE + 65 + + - ( - 14 ) END AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT + 76 * + SUM( ALL + 9 )
----
684

skipif mysql # not compatible
query I rowsort label-6121
SELECT + 76 * + SUM ( ALL + 9 )
----
684

query I rowsort
SELECT + 34 + + + 31 col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT MIN( + 27 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-6123
SELECT MIN ( + 27 ) AS col0
----
27

query II rowsort
SELECT + ( 92 ), 20 AS col0
----
92
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6125
SELECT + 28 DIV + + COALESCE ( - 88, + 99 )
----
0

skipif mysql # not compatible
query I rowsort label-6125
SELECT + 28 / + + COALESCE ( - 88, + 99 )
----
0

query I rowsort
SELECT + 80 + - 6 + - 36 AS col1
----
38

query I rowsort
SELECT ALL - 66 * - 78 AS col1
----
5148

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT - MAX( ALL - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-6128
SELECT - MAX ( ALL - 64 )
----
64

query II rowsort
SELECT DISTINCT 97 * ( 43 ) * - - 0 + - 62, + 45 * - + 50 col1
----
-62
-2250

query I rowsort
SELECT - ( 44 ) + + 71 + - - 52
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT + COUNT( * ) * + 26 * - 16
----
-416

skipif mysql # not compatible
query I rowsort label-6131
SELECT + COUNT ( * ) * + 26 * - 16
----
-416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6132
SELECT ALL + 94 + + CASE - + 24 WHEN CAST( NULLIF ( + 74, 25 ) AS SIGNED ) THEN + 65 + - 62 * 67 ELSE NULL END + + ( + 0 ) - 47 + - - 89 / 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL + 94 + + CASE - + 24 WHEN CAST ( NULLIF ( + 74, 25 ) AS INTEGER ) THEN + 65 + - 62 * 67 ELSE NULL END + + ( + 0 ) - 47 + - - 89 / 7 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6133
SELECT ALL - 39 + CAST( + 75 AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL - 39 + CAST ( + 75 AS INTEGER )
----
36

query I rowsort
SELECT - ( 9 ) AS col0
----
-9

query I rowsort
SELECT DISTINCT - 86 + COALESCE ( + COALESCE ( - - 74, + CASE + - 24 WHEN - 88 THEN + NULLIF ( - 59, + + 54 ) END ), + NULLIF ( - 31, + 36 ), + + ( + - 59 ) )
----
-12

query I rowsort
SELECT ALL 60 + + ( + 8 )
----
68

query I rowsort
SELECT + + 47 + - + 12
----
35

query I rowsort
SELECT - + 67 - 7 * 5 AS col2
----
-102

query I rowsort
SELECT DISTINCT - + ( + 28 ) * + 23
----
-644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6140
SELECT ALL - 90 / ( + - COALESCE ( - COUNT( * ), + 31 * - 81 + + - COUNT( * ), 68 / - 92 + - CAST( NULL AS SIGNED ) ) ) - CASE - 22 WHEN - COUNT( * ) + - 10 THEN 14 + + 46 - + COUNT( * ) WHEN + 96 + - CAST( NULL AS DECIMAL ) * 67 * - 2 THEN + 6 * + + MIN( DISTINCT - 66 ) ELSE NULL END * + + COUNT( * ) * - + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL - 90 / ( + - COALESCE ( - COUNT ( * ), + 31 * - 81 + + - COUNT ( * ), 68 / - 92 + - CAST ( NULL AS INTEGER ) ) ) - CASE - 22 WHEN - COUNT ( * ) + - 10 THEN 14 + + 46 - + COUNT ( * ) WHEN + 96 + - CAST ( NULL AS REAL ) * 67 * - 2 THEN + 6 * + + MIN ( DISTINCT - 66 ) ELSE NULL END * + + COUNT ( * ) * - + 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT - 93 + NULLIF ( COUNT( * ), 31 * 28 * 44 - - CASE + 47 WHEN + 34 THEN NULL ELSE + 70 * + + 45 + + 30 + - 28 + + 98 * 58 END ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-6141
SELECT - 93 + NULLIF ( COUNT ( * ), 31 * 28 * 44 - - CASE + 47 WHEN + 34 THEN NULL ELSE + 70 * + + 45 + + 30 + - 28 + + 98 * 58 END ) AS col0
----
-92

query I rowsort
SELECT DISTINCT - + 73 * - + NULLIF ( - 70, 19 + - 69 ) AS col2
----
-5110

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT ALL - - NULLIF ( + 6, + 1 ) * + ( + 85 ) + + 91 + - MIN( ALL - 80 ) AS col0
----
681

skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL - - NULLIF ( + 6, + 1 ) * + ( + 85 ) + + 91 + - MIN ( ALL - 80 ) AS col0
----
681

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT DISTINCT + - 61 * + COUNT( * ) - COUNT( * ) col0
----
-62

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT + - 61 * + COUNT ( * ) - COUNT ( * ) col0
----
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-6145
SELECT - - 11 DIV 62 + + - 79 * + - 36, - 59 AS col1
----
2844
-59

skipif mysql # not compatible
query II rowsort label-6145
SELECT - - 11 / 62 + + - 79 * + - 36, - 59 AS col1
----
2844
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT + 64 + COUNT( * ) col1
----
65

skipif mysql # not compatible
query I rowsort label-6146
SELECT + 64 + COUNT ( * ) col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT DISTINCT + COUNT( ALL 52 )
----
1

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT + COUNT ( ALL 52 )
----
1

query I rowsort
SELECT - 52 * - 73 AS col2
----
3796

onlyif mysql # aggregate syntax: 
query II rowsort label-6149
SELECT ( - - SUM( ALL - NULLIF ( 27, - - 16 - - 26 ) ) ), ( - 91 ) AS col0
----
-27
-91

skipif mysql # not compatible
query II rowsort label-6149
SELECT ( - - SUM ( ALL - NULLIF ( 27, - - 16 - - 26 ) ) ), ( - 91 ) AS col0
----
-27
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT NULLIF ( + 52, - COUNT( * ) * ( + 27 ) + - + COUNT( * ) ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6150
SELECT NULLIF ( + 52, - COUNT ( * ) * ( + 27 ) + - + COUNT ( * ) ) AS col0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6151
SELECT ALL + CAST( + - 11 AS SIGNED ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL + CAST ( + - 11 AS INTEGER ) AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6152
SELECT + CASE - - 16 WHEN MIN( 17 ) + + + CAST( NULL AS SIGNED ) + + COUNT( DISTINCT - - 68 ) + - COALESCE ( - + 2, + - 37 ) / 77 THEN COUNT( * ) * + - 61 * ( 51 ) + - 20 + - 64 * COUNT( ALL + 8 ) WHEN - 12 * + + 68 * 40 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6152
SELECT + CASE - - 16 WHEN MIN ( 17 ) + + + CAST ( NULL AS INTEGER ) + + COUNT ( DISTINCT - - 68 ) + - COALESCE ( - + 2, + - 37 ) / 77 THEN COUNT ( * ) * + - 61 * ( 51 ) + - 20 + - 64 * COUNT ( ALL + 8 ) WHEN - 12 * + + 68 * 40 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6153
SELECT + 57 * + CAST( NULL AS SIGNED ) * 82 AS col0, + 61 AS col0
----
NULL
61

skipif mysql # not compatible
query II rowsort label-6153
SELECT + 57 * + CAST ( NULL AS INTEGER ) * 82 AS col0, + 61 AS col0
----
NULL
61

query I rowsort
SELECT ALL 80 * + 24 * 75 col0
----
144000

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT SUM( DISTINCT + 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-6155
SELECT SUM ( DISTINCT + 50 ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT DISTINCT 65 * + 68 * + + 71 + - - 35 - SUM( - 60 ) * - - 26
----
315415

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT 65 * + 68 * + + 71 + - - 35 - SUM ( - 60 ) * - - 26
----
315415

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT + 21 * MAX( + NULLIF ( 48, - 71 + - + 81 ) ) AS col0
----
1008

skipif mysql # not compatible
query I rowsort label-6157
SELECT + 21 * MAX ( + NULLIF ( 48, - 71 + - + 81 ) ) AS col0
----
1008

query I rowsort
SELECT - COALESCE ( 29, - COALESCE ( + 15, + + 21 - + 37 ) + 82 ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT ALL COUNT( * ) * + COALESCE ( - 13, 8, + + 45 ) + + 7 + + + 73
----
67

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL COUNT ( * ) * + COALESCE ( - 13, 8, + + 45 ) + + 7 + + + 73
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT SUM( ALL - - 84 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-6160
SELECT SUM ( ALL - - 84 ) AS col2
----
84

query I rowsort
SELECT DISTINCT 79 + + 33 AS col0
----
112

query I rowsort
SELECT ALL 3 * - 75
----
-225

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6163
SELECT + + ( - + 51 ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6163
SELECT + + ( - + 51 ) + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 56 + - ( 98 ) AS col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6165
SELECT + + 76 * - MAX( DISTINCT + 44 ) * - - CAST( NULL AS SIGNED ) + + 10 + - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6165
SELECT + + 76 * - MAX ( DISTINCT + 44 ) * - - CAST ( NULL AS INTEGER ) + + 10 + - 61 AS col1
----
NULL

query II rowsort
SELECT + 2 AS col1, - 48 AS col0
----
2
-48

query I rowsort
SELECT - 11 + 51 + + ( + + 68 )
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT ALL - ( + 19 ) * + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL - ( + 19 ) * + COUNT ( * )
----
-19

query I rowsort
SELECT ALL 94 - 9 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT DISTINCT + COUNT( * ) * + MIN( + 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-6170
SELECT DISTINCT + COUNT ( * ) * + MIN ( + 71 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT 8 * + - 77 + + COUNT( * )
----
-615

skipif mysql # not compatible
query I rowsort label-6171
SELECT 8 * + - 77 + + COUNT ( * )
----
-615

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT ALL SUM( DISTINCT - 21 ) * 95 + + - 26 AS col0
----
-2021

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL SUM ( DISTINCT - 21 ) * 95 + + - 26 AS col0
----
-2021

onlyif mysql # aggregate syntax: 
query II rowsort label-6173
SELECT - 86, + 11 + COUNT( * ) col2
----
-86
12

skipif mysql # not compatible
query II rowsort label-6173
SELECT - 86, + 11 + COUNT ( * ) col2
----
-86
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6174
SELECT DISTINCT - COUNT( * ) AS col2, + CAST( + - 32 AS SIGNED ) + - 78
----
-1
-110

skipif mysql # not compatible
query II rowsort label-6174
SELECT DISTINCT - COUNT ( * ) AS col2, + CAST ( + - 32 AS INTEGER ) + - 78
----
-1
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6175
SELECT - 27 DIV + NULLIF ( + 86, - 48 DIV - 70 * - + 52 - + - COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6175
SELECT - 27 / + NULLIF ( + 86, - 48 / - 70 * - + 52 - + - COUNT ( * ) ) AS col1
----
0

query I rowsort
SELECT ALL - + 96 * - 47 AS col1
----
4512

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT - 84 * + SUM( + 11 )
----
-924

skipif mysql # not compatible
query I rowsort label-6177
SELECT - 84 * + SUM ( + 11 )
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT ALL - 39 * - - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL - 39 * - - COUNT ( * )
----
-39

query I rowsort
SELECT ALL + 38 * - 98 AS col2
----
-3724

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6180
SELECT - 49 * + 2 * - 39 / + + 63 - - 88 - - 85 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6180
SELECT - 49 * + 2 * - 39 / + + 63 - - 88 - - 85 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 27 AS col2, + COALESCE ( + 97, - 17 - ( - 11 ) ) AS col1
----
27
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6182
SELECT ALL + CAST( NULL AS SIGNED ) * 46 / - - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL + CAST ( NULL AS INTEGER ) * 46 / - - 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT DISTINCT - MIN( ALL 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-6183
SELECT DISTINCT - MIN ( ALL 30 )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-6184
SELECT 57 DIV - 3 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-6184
SELECT 57 / - 3 AS col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6185
SELECT - 93 * - - 61 + CAST( - + CASE + + 66 WHEN 55 * 94 THEN NULL ELSE - 66 END AS SIGNED ) AS col1
----
-5607

skipif mysql # not compatible
query I rowsort label-6185
SELECT - 93 * - - 61 + CAST ( - + CASE + + 66 WHEN 55 * 94 THEN NULL ELSE - 66 END AS INTEGER ) AS col1
----
-5607

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT ALL - COUNT( ALL + - 48 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL - COUNT ( ALL + - 48 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6187
SELECT ALL - 11 + - CAST( - 95 AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL - 11 + - CAST ( - 95 AS INTEGER )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6188
SELECT 37 + - 36 * + ( - 51 ) AS col2, + 92 DIV - 35 - + + COALESCE ( - SUM( 86 ), 29 )
----
1873
84

skipif mysql # not compatible
query II rowsort label-6188
SELECT 37 + - 36 * + ( - 51 ) AS col2, + 92 / - 35 - + + COALESCE ( - SUM ( 86 ), 29 )
----
1873
84

query II rowsort
SELECT + 9, 19 AS col0
----
9
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6190
SELECT 47 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6190
SELECT 47 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT MAX( ALL + 38 ) - + - MAX( DISTINCT + 33 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6191
SELECT MAX ( ALL + 38 ) - + - MAX ( DISTINCT + 33 ) AS col0
----
71

query I rowsort
SELECT ALL - ( + 32 ) col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT ALL - MIN( DISTINCT - 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL - MIN ( DISTINCT - 93 ) AS col2
----
93

query II rowsort
SELECT + 18 AS col1, + ( - ( + - 64 ) ) AS col1
----
18
64

query I rowsort
SELECT ALL 27 * + 86 * - - 96
----
222912

query II rowsort
SELECT DISTINCT 62 + + 89 AS col0, 90
----
151
90

onlyif mysql # aggregate syntax: 
query III rowsort label-6197
SELECT 82 + + NULLIF ( + - 87, + 44 ) + - + 23 * + + ( + 85 ), + ( + 27 ) AS col1, COUNT( * ) AS col0
----
-1960
27
1

skipif mysql # not compatible
query III rowsort label-6197
SELECT 82 + + NULLIF ( + - 87, + 44 ) + - + 23 * + + ( + 85 ), + ( + 27 ) AS col1, COUNT ( * ) AS col0
----
-1960
27
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6198
SELECT ALL - 76 + + 66 * - CAST( - + 74 AS SIGNED ) * + + 22 AS col0
----
107372

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL - 76 + + 66 * - CAST ( - + 74 AS INTEGER ) * + + 22 AS col0
----
107372

query II rowsort
SELECT 56, 25 AS col2
----
56
25

query I rowsort
SELECT 92 + - 81 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT DISTINCT - SUM( + 87 ) * + - COUNT( * ) * ( 87 ) col0
----
7569

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT - SUM ( + 87 ) * + - COUNT ( * ) * ( 87 ) col0
----
7569

query I rowsort
SELECT - 26 + + 64
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6203
SELECT - CAST( NULL AS SIGNED ) * ( NULLIF ( + ( - 46 ), - 1 ) ), 6 + - + COUNT( * ) - 39 * - + 82 AS col2
----
NULL
3203

skipif mysql # not compatible
query II rowsort label-6203
SELECT - CAST ( NULL AS INTEGER ) * ( NULLIF ( + ( - 46 ), - 1 ) ), 6 + - + COUNT ( * ) - 39 * - + 82 AS col2
----
NULL
3203

onlyif mysql # aggregate syntax: 
query II rowsort label-6204
SELECT ALL 69 AS col0, - COUNT( * )
----
69
-1

skipif mysql # not compatible
query II rowsort label-6204
SELECT ALL 69 AS col0, - COUNT ( * )
----
69
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6205
SELECT - 66 * NULLIF ( COUNT( * ), + MAX( - ( + + 9 ) ) ) + + - 11 - + 37 + - + 24 DIV 28 - + - 68 + 42
----
-4

skipif mysql # not compatible
query I rowsort label-6205
SELECT - 66 * NULLIF ( COUNT ( * ), + MAX ( - ( + + 9 ) ) ) + + - 11 - + 37 + - + 24 / 28 - + - 68 + 42
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-6206
SELECT ALL - 95 DIV 82 + + - 58
----
-59

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL - 95 / 82 + + - 58
----
-59

query I rowsort
SELECT + 75 + ( 62 ) + - - 15 AS col0
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6208
SELECT - - CAST( - + 14 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-6208
SELECT - - CAST ( - + 14 AS INTEGER )
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-6209
SELECT ALL 3 AS col0, COUNT( * )
----
3
1

skipif mysql # not compatible
query II rowsort label-6209
SELECT ALL 3 AS col0, COUNT ( * )
----
3
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6210
SELECT ALL - 51 DIV - + 95 + ( - - 33 ) * - + NULLIF ( COUNT( * ), 15 - + - 55 )
----
-33

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL - 51 / - + 95 + ( - - 33 ) * - + NULLIF ( COUNT ( * ), 15 - + - 55 )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6211
SELECT - NULLIF ( 61, + 24 ) + 74 - - 59 + - + 36 * - 87 * - CAST( NULL AS SIGNED ) * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-6211
SELECT - NULLIF ( 61, + 24 ) + 74 - - 59 + - + 36 * - 87 * - CAST ( NULL AS INTEGER ) * - 79
----
NULL

query I rowsort
SELECT 30 - 44
----
-14

query I rowsort
SELECT DISTINCT ( - + 45 ) * 94 - - - 48
----
-4278

query II rowsort
SELECT ALL - 89 AS col1, 8 + + 86
----
-89
94

query I rowsort
SELECT - 25 - 9 + + 58 AS col1
----
24

query II rowsort
SELECT - 43 AS col1, 7 * - 83
----
-43
-581

onlyif mysql # aggregate syntax: 
query II rowsort label-6217
SELECT 79 + - + COUNT( * ) * - - 14 + CASE 98 WHEN - + 68 + + 27 THEN + - COUNT( - - 57 ) END - 36 * - + ( + 63 ) AS col2, 29 - - 29
----
NULL
58

skipif mysql # not compatible
query II rowsort label-6217
SELECT 79 + - + COUNT ( * ) * - - 14 + CASE 98 WHEN - + 68 + + 27 THEN + - COUNT ( - - 57 ) END - 36 * - + ( + 63 ) AS col2, 29 - - 29
----
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT COUNT( * ) - COALESCE ( - 37, - 15 )
----
38

skipif mysql # not compatible
query I rowsort label-6218
SELECT COUNT ( * ) - COALESCE ( - 37, - 15 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT ALL SUM( 18 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL SUM ( 18 ) AS col1
----
18

query I rowsort
SELECT + - ( 23 )
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-6221
SELECT DISTINCT - + 47 AS col0, - COALESCE ( - COUNT( * ), - ( MAX( 91 ) ) ) AS col2
----
-47
1

skipif mysql # not compatible
query II rowsort label-6221
SELECT DISTINCT - + 47 AS col0, - COALESCE ( - COUNT ( * ), - ( MAX ( 91 ) ) ) AS col2
----
-47
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT ALL - + 44 * + NULLIF ( + 71, 15 ) + + 23 + + + MAX( - + NULLIF ( - 76, - 11 * + 25 + - 79 + + 70 + - 23 * 62 ) ) * + 95
----
4119

skipif mysql # not compatible
query I rowsort label-6222
SELECT ALL - + 44 * + NULLIF ( + 71, 15 ) + + 23 + + + MAX ( - + NULLIF ( - 76, - 11 * + 25 + - 79 + + 70 + - 23 * 62 ) ) * + 95
----
4119

query I rowsort
SELECT + 91 + - - 36
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT + MAX( ALL + - 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-6224
SELECT + MAX ( ALL + - 33 ) AS col1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6225
SELECT ALL COUNT( ALL - CAST( NULL AS DECIMAL ) ) * - - 17 + + COUNT( * ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL COUNT ( ALL - CAST ( NULL AS REAL ) ) * - - 17 + + COUNT ( * ) + COUNT ( * )
----
2

query I rowsort
SELECT - 83 * - 22 + + 81
----
1907

query I rowsort
SELECT ALL - 79 + CASE - 3 WHEN - + 25 - ( + 27 ) THEN NULL ELSE + 33 END AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT COUNT( * ) * + - MAX( DISTINCT 18 ) + - 30 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-6228
SELECT COUNT ( * ) * + - MAX ( DISTINCT 18 ) + - 30 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT DISTINCT - MIN( DISTINCT - - 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT - MIN ( DISTINCT - - 41 ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT COUNT( + 15 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6230
SELECT COUNT ( + 15 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT COUNT( + 88 )
----
1

skipif mysql # not compatible
query I rowsort label-6231
SELECT COUNT ( + 88 )
----
1

query I rowsort
SELECT ALL 40 + + 80
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-6233
SELECT COUNT( * ) * + COUNT( * ) AS col0, 30 + + - 63 * 38 * + + 39 col2
----
1
-93336

skipif mysql # not compatible
query II rowsort label-6233
SELECT COUNT ( * ) * + COUNT ( * ) AS col0, 30 + + - 63 * 38 * + + 39 col2
----
1
-93336

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT 73 + + SUM( - 48 ) + 66 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-6234
SELECT 73 + + SUM ( - 48 ) + 66 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT + MIN( ALL + 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6235
SELECT + MIN ( ALL + 5 ) AS col1
----
5

query I rowsort
SELECT DISTINCT + 62 + - ( - 25 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT ALL - 7 + - COALESCE ( - 27, + - COALESCE ( SUM( - 83 ), + 3 ) ) + + + 41 * - - 63 + + 96
----
2699

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL - 7 + - COALESCE ( - 27, + - COALESCE ( SUM ( - 83 ), + 3 ) ) + + + 41 * - - 63 + + 96
----
2699

query I rowsort
SELECT DISTINCT + 53 * 23 col1
----
1219

query I rowsort
SELECT 63 * 65 col2
----
4095

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6240
SELECT ALL - NULLIF ( CASE - CAST( - + 57 AS SIGNED ) WHEN + 61 THEN NULL WHEN + + 59 THEN NULL ELSE + 23 END, - - 92 )
----
-23

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL - NULLIF ( CASE - CAST ( - + 57 AS INTEGER ) WHEN + 61 THEN NULL WHEN + + 59 THEN NULL ELSE + 23 END, - - 92 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT ALL - SUM( - - 55 ) + + ( 22 ) + - 95
----
-128

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL - SUM ( - - 55 ) + + ( 22 ) + - 95
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6242
SELECT 79 + + 55, CAST( NULL AS SIGNED ) AS col1
----
134
NULL

skipif mysql # not compatible
query II rowsort label-6242
SELECT 79 + + 55, CAST ( NULL AS INTEGER ) AS col1
----
134
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6243
SELECT 82 DIV + + COUNT( * ) col1
----
82

skipif mysql # not compatible
query I rowsort label-6243
SELECT 82 / + + COUNT ( * ) col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6244
SELECT ALL + 44 - - - CAST( 8 AS SIGNED ) + - 34 + + 27 + - 41 * 15 * ( + COUNT( * ) )
----
-586

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL + 44 - - - CAST ( 8 AS INTEGER ) + - 34 + + 27 + - 41 * 15 * ( + COUNT ( * ) )
----
-586

query I rowsort
SELECT ( - 2 ) * + 16 * 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6246
SELECT DISTINCT + COUNT( * ) DIV 32 DIV + 48 + - 6
----
-6

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT + COUNT ( * ) / 32 / + 48 + - 6
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT - 14 - - COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-6247
SELECT - 14 - - COUNT ( * ) AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6248
SELECT - CASE - + COALESCE ( 15, - CAST( + 29 AS SIGNED ) ) WHEN - 17 * - COUNT( * ) + + - ( CAST( NULL AS DECIMAL ) ) + + 3 * 48 THEN NULL WHEN - CAST( 13 AS SIGNED ) THEN - - COUNT( * ) ELSE - NULLIF ( - 68, 93 * - 84 + + COUNT( * ) + - + 35 ) * + - 14 END AS col2
----
952

skipif mysql # not compatible
query I rowsort label-6248
SELECT - CASE - + COALESCE ( 15, - CAST ( + 29 AS INTEGER ) ) WHEN - 17 * - COUNT ( * ) + + - ( CAST ( NULL AS REAL ) ) + + 3 * 48 THEN NULL WHEN - CAST ( 13 AS INTEGER ) THEN - - COUNT ( * ) ELSE - NULLIF ( - 68, 93 * - 84 + + COUNT ( * ) + - + 35 ) * + - 14 END AS col2
----
952

query II rowsort
SELECT + 97 * + 81 col1, + 31
----
7857
31

query II rowsort
SELECT ALL ( - - 33 ) AS col1, 11
----
33
11

query I rowsort
SELECT - - ( - 74 ) - 78 AS col0
----
-152

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6252
SELECT - 73 + - + MAX( DISTINCT 15 ) * + NULLIF ( 95, - 55 ) - - 4 + 34 DIV + 5 + + 92 col0, 20 * CASE + - 19 WHEN - - ( - 50 ) * CAST( NULL AS DECIMAL ) * + 14 * + + 87 - + - 39 + + 40 THEN - NULLIF ( + 74, - 86 * - 48 ) ELSE NULL END + - ( + COUNT( ALL 37 ) ) - COUNT( * ) * - 30
----
-1396
NULL

skipif mysql # not compatible
query II rowsort label-6252
SELECT - 73 + - + MAX ( DISTINCT 15 ) * + NULLIF ( 95, - 55 ) - - 4 + 34 / + 5 + + 92 col0, 20 * CASE + - 19 WHEN - - ( - 50 ) * CAST ( NULL AS REAL ) * + 14 * + + 87 - + - 39 + + 40 THEN - NULLIF ( + 74, - 86 * - 48 ) ELSE NULL END + - ( + COUNT ( ALL 37 ) ) - COUNT ( * ) * - 30
----
-1396
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6253
SELECT DISTINCT + + 54 * + 25 AS col2, - ( - + 80 ) * + 5 + + NULLIF ( + - 73, - - COUNT( * ) * - 51 * - 10 * 59 ) + 83 AS col0
----
1350
410

skipif mysql # not compatible
query II rowsort label-6253
SELECT DISTINCT + + 54 * + 25 AS col2, - ( - + 80 ) * + 5 + + NULLIF ( + - 73, - - COUNT ( * ) * - 51 * - 10 * 59 ) + 83 AS col0
----
1350
410

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT + 0 * - COUNT( * ) * - COUNT( * ) + - + 29 * 85 AS col1
----
-2465

skipif mysql # not compatible
query I rowsort label-6254
SELECT + 0 * - COUNT ( * ) * - COUNT ( * ) + - + 29 * 85 AS col1
----
-2465

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT ALL + + ( + 49 ) * + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL + + ( + 49 ) * + COUNT ( * )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6256
SELECT + + 78 + + MAX( - 60 ) + + COUNT( * ) DIV ( + - 57 ) * + 12 * + + ( 82 ) * - - 72 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-6256
SELECT + + 78 + + MAX ( - 60 ) + + COUNT ( * ) / ( + - 57 ) * + 12 * + + ( 82 ) * - - 72 AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6257
SELECT DISTINCT - CAST( - 58 AS SIGNED ), + 69 AS col1
----
58
69

skipif mysql # not compatible
query II rowsort label-6257
SELECT DISTINCT - CAST ( - 58 AS INTEGER ), + 69 AS col1
----
58
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6258
SELECT ALL CASE + 97 WHEN + ( - CAST( NULL AS DECIMAL ) ) * - 75 + 23 THEN - 37 WHEN + + 5 * + 43 THEN 72 * - 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL CASE + 97 WHEN + ( - CAST ( NULL AS REAL ) ) * - 75 + 23 THEN - 37 WHEN + + 5 * + 43 THEN 72 * - 3 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6259
SELECT DISTINCT - 70 + + CAST( 26 AS SIGNED ) + + 69
----
25

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT - 70 + + CAST ( 26 AS INTEGER ) + + 69
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6260
SELECT CAST( 23 AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-6260
SELECT CAST ( 23 AS INTEGER )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT ALL - 48 + - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL - 48 + - COUNT ( * )
----
-49

query I rowsort
SELECT DISTINCT + 90 + - + 75 + 32
----
47

query I rowsort
SELECT + 58 * - 23 AS col2
----
-1334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6264
SELECT ALL 41 * - CAST( + + MAX( DISTINCT 56 ) AS SIGNED ) + COUNT( * ) * + - 33 * COUNT( * ) + - ( + COUNT( * ) ) DIV 92 * 97 AS col1, CASE + COUNT( * ) WHEN 5 THEN NULL ELSE - COALESCE ( + + 85, - - NULLIF ( - 9, + COUNT( * ) ) ) + + 23 * NULLIF ( ( 38 ), + 76 ) END AS col0
----
-2329
789

skipif mysql # not compatible
query II rowsort label-6264
SELECT ALL 41 * - CAST ( + + MAX ( DISTINCT 56 ) AS INTEGER ) + COUNT ( * ) * + - 33 * COUNT ( * ) + - ( + COUNT ( * ) ) / 92 * 97 AS col1, CASE + COUNT ( * ) WHEN 5 THEN NULL ELSE - COALESCE ( + + 85, - - NULLIF ( - 9, + COUNT ( * ) ) ) + + 23 * NULLIF ( ( 38 ), + 76 ) END AS col0
----
-2329
789

query I rowsort
SELECT + ( 40 ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-6266
SELECT ( + ( + 39 ) ), - COUNT( * ) * - + 12 * - - 96 + - - COUNT( * ) - 7 col1
----
39
1146

skipif mysql # not compatible
query II rowsort label-6266
SELECT ( + ( + 39 ) ), - COUNT ( * ) * - + 12 * - - 96 + - - COUNT ( * ) - 7 col1
----
39
1146

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6267
SELECT + 22 * - ( 31 ) * - ( ( + + NULLIF ( - 27, - 70 ) ) ) AS col1, - 80 * 7 + 64 DIV + 51 + - COUNT( * ) * 4 AS col0
----
-18414
-563

skipif mysql # not compatible
query II rowsort label-6267
SELECT + 22 * - ( 31 ) * - ( ( + + NULLIF ( - 27, - 70 ) ) ) AS col1, - 80 * 7 + 64 / + 51 + - COUNT ( * ) * 4 AS col0
----
-18414
-563

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6268
SELECT + COUNT( * ) * 25 * CAST( - 52 AS SIGNED )
----
-1300

skipif mysql # not compatible
query I rowsort label-6268
SELECT + COUNT ( * ) * 25 * CAST ( - 52 AS INTEGER )
----
-1300

query I rowsort
SELECT ALL 84 * - 37 + + 11 + 73 AS col1
----
-3024

query I rowsort
SELECT ( - ( + + 14 ) ) AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6271
SELECT + 9 DIV CAST( 71 AS SIGNED ) - COUNT( * ) * + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6271
SELECT + 9 / CAST ( 71 AS INTEGER ) - COUNT ( * ) * + COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6272
SELECT ALL 98 * - - COUNT( * ) * - 65 * MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * - + 94 * + - 93 + - ( + - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL 98 * - - COUNT ( * ) * - 65 * MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - + 94 * + - 93 + - ( + - 70 )
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-6273
SELECT + COALESCE ( + ( - 76 ), 97 ) AS col2, 72 * - + 7 AS col0, + 78 + + - CASE - 86 WHEN 86 + + - 33 THEN NULL ELSE ( - COUNT( * ) ) END
----
-76
-504
79

skipif mysql # not compatible
query III rowsort label-6273
SELECT + COALESCE ( + ( - 76 ), 97 ) AS col2, 72 * - + 7 AS col0, + 78 + + - CASE - 86 WHEN 86 + + - 33 THEN NULL ELSE ( - COUNT ( * ) ) END
----
-76
-504
79

query I rowsort
SELECT CASE - 92 WHEN + - 62 THEN + 70 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT + 46 * + 49 + + 81 + + 6 - + + COUNT( * ) col1
----
2340

skipif mysql # not compatible
query I rowsort label-6275
SELECT + 46 * + 49 + + 81 + + 6 - + + COUNT ( * ) col1
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT - ( - 52 ) * 10 + - - COUNT( * ) * + 29 * + 23 col1
----
1187

skipif mysql # not compatible
query I rowsort label-6276
SELECT - ( - 52 ) * 10 + - - COUNT ( * ) * + 29 * + 23 col1
----
1187

query I rowsort
SELECT + 32 + + - 15 AS col1
----
17

query I rowsort
SELECT 13 * + ( - 87 ) - + 70 AS col2
----
-1201

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT + ( MIN( ALL 16 ) ) + - 74 * COALESCE ( COUNT( * ), COALESCE ( + COALESCE ( - 67, - - 42, - 15 ), - - 51, COUNT( * ) - - 32 + - 28 + - - 42 ) ) - + - 99
----
41

skipif mysql # not compatible
query I rowsort label-6279
SELECT + ( MIN ( ALL 16 ) ) + - 74 * COALESCE ( COUNT ( * ), COALESCE ( + COALESCE ( - 67, - - 42, - 15 ), - - 51, COUNT ( * ) - - 32 + - 28 + - - 42 ) ) - + - 99
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6280
SELECT + + 39 * 79 * + 95 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6280
SELECT + + 39 * 79 * + 95 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6281
SELECT DISTINCT 0 DIV + 21
----
0

skipif mysql # not compatible
query I rowsort label-6281
SELECT DISTINCT 0 / + 21
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6282
SELECT ALL + ( + - NULLIF ( - 45, + COUNT( * ) * - 60 * 83 * + 6 / COUNT( * ) * - 1 * + 56 * ( + 92 ) + + - COUNT( * ) ) ), 97 * - 77 AS col1
----
45
-7469

skipif mysql # not compatible
query II rowsort label-6282
SELECT ALL + ( + - NULLIF ( - 45, + COUNT ( * ) * - 60 * 83 * + 6 / COUNT ( * ) * - 1 * + 56 * ( + 92 ) + + - COUNT ( * ) ) ), 97 * - 77 AS col1
----
45
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT - - ( 72 ) * 50 + + 83 - 2 * 89 * COUNT( * )
----
3505

skipif mysql # not compatible
query I rowsort label-6283
SELECT - - ( 72 ) * 50 + + 83 - 2 * 89 * COUNT ( * )
----
3505

query I rowsort
SELECT ALL 18 * + + 95 AS col0
----
1710

query I rowsort
SELECT DISTINCT CASE + 90 WHEN 93 + + ( + 63 ) * - + AVG ( - 59 ) THEN 84 END AS col2
----
NULL

query I rowsort
SELECT - 62 + + NULLIF ( + 11, 96 )
----
-51

query I rowsort
SELECT - + 98 * + + 3
----
-294

query I rowsort
SELECT + + 87 + - - 91 * - 38
----
-3371

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT - - ( + - 22 ) / ( - + CASE - + NULLIF ( + COUNT( * ), + - 55 ) WHEN + + 40 THEN NULL WHEN - MIN( 85 ) THEN - ( + + 31 ) / + 8 / - 25 + - - 94 + + COALESCE ( + COUNT( * ), 7, - + 84 * + - 63 ) / + + 62 * - 23 + - 24 END ) + COUNT( * ) + + 86 + - ( - 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6289
SELECT - - ( + - 22 ) / ( - + CASE - + NULLIF ( + COUNT ( * ), + - 55 ) WHEN + + 40 THEN NULL WHEN - MIN ( 85 ) THEN - ( + + 31 ) / + 8 / - 25 + - - 94 + + COALESCE ( + COUNT ( * ), 7, - + 84 * + - 63 ) / + + 62 * - 23 + - 24 END ) + COUNT ( * ) + + 86 + - ( - 39 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT + - 12 + ( - - NULLIF ( - - 34, COALESCE ( 79, - ( - 72 ) / - - 45 * + 76 * + 73 ) * + + 14 ) ) + + - 15 * + - MIN( - 58 ) * + - ( + - 58 )
----
-50438

skipif mysql # not compatible
query I rowsort label-6290
SELECT + - 12 + ( - - NULLIF ( - - 34, COALESCE ( 79, - ( - 72 ) / - - 45 * + 76 * + 73 ) * + + 14 ) ) + + - 15 * + - MIN ( - 58 ) * + - ( + - 58 )
----
-50438

query I rowsort
SELECT - - 7 * - 1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6292
SELECT DISTINCT - COUNT( * ) DIV 84 DIV + 71 + CAST( - 96 AS SIGNED ) * + 50 AS col2, 19 + - 87 + - 12 AS col1
----
-4800
-80

skipif mysql # not compatible
query II rowsort label-6292
SELECT DISTINCT - COUNT ( * ) / 84 / + 71 + CAST ( - 96 AS INTEGER ) * + 50 AS col2, 19 + - 87 + - 12 AS col1
----
-4800
-80

query I rowsort
SELECT - + 38 * + - 38
----
1444

onlyif mysql # aggregate syntax: 
query II rowsort label-6294
SELECT ALL COUNT( * ), 76 * 52 AS col1
----
1
3952

skipif mysql # not compatible
query II rowsort label-6294
SELECT ALL COUNT ( * ), 76 * 52 AS col1
----
1
3952

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT DISTINCT + COUNT( * ) + - ( - ( - ( - 55 ) ) )
----
56

skipif mysql # not compatible
query I rowsort label-6295
SELECT DISTINCT + COUNT ( * ) + - ( - ( - ( - 55 ) ) )
----
56

query II rowsort
SELECT - ( + 66 ) - + 24 + - 40, 50 AS col2
----
-130
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT ALL + 77 + - + COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL + 77 + - + COUNT ( * ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT - 73 + + 53 * + COUNT( * ) + ( 91 )
----
71

skipif mysql # not compatible
query I rowsort label-6298
SELECT - 73 + + 53 * + COUNT ( * ) + ( 91 )
----
71

query I rowsort
SELECT DISTINCT + 60 * + 59
----
3540

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT DISTINCT + - 35 + - MAX( - + 91 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT + - 35 + - MAX ( - + 91 ) AS col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6301
SELECT - 70 + + 34 AS col0, 36 * - 38 * 28 + + 9 DIV - - 63 * + COUNT( * )
----
-36
-38304

skipif mysql # not compatible
query II rowsort label-6301
SELECT - 70 + + 34 AS col0, 36 * - 38 * 28 + + 9 / - - 63 * + COUNT ( * )
----
-36
-38304

query I rowsort
SELECT + 52 - 88 * + 56
----
-4876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6303
SELECT - NULLIF ( 38, + 43 ) + - CAST( NULL AS SIGNED ) * - 59 / - MIN( DISTINCT - 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6303
SELECT - NULLIF ( 38, + 43 ) + - CAST ( NULL AS INTEGER ) * - 59 / - MIN ( DISTINCT - 10 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT - NULLIF ( + + ( - + 22 ), + + 37 * CASE + MIN( - - 39 ) WHEN + 65 THEN + + 54 * - 14 WHEN - 67 + + 61 THEN - 84 * + CASE + - MIN( 49 ) WHEN - 12 THEN + 62 END ELSE NULL END ) * ( + + COUNT( * ) ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-6304
SELECT - NULLIF ( + + ( - + 22 ), + + 37 * CASE + MIN ( - - 39 ) WHEN + 65 THEN + + 54 * - 14 WHEN - 67 + + 61 THEN - 84 * + CASE + - MIN ( 49 ) WHEN - 12 THEN + 62 END ELSE NULL END ) * ( + + COUNT ( * ) ) AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6305
SELECT ALL + MAX( - CAST( + 23 AS SIGNED ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL + MAX ( - CAST ( + 23 AS INTEGER ) ) AS col1
----
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-6306
SELECT ALL 86 DIV 32 AS col2, 97
----
2
97

skipif mysql # not compatible
query II rowsort label-6306
SELECT ALL 86 / 32 AS col2, 97
----
2
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6307
SELECT ( - 58 ) * - CASE 66 WHEN - + 93 THEN NULL WHEN - ( - CASE + + SUM( ( - NULLIF ( - 65, - - 42 + + 80 + - 14 * - + 14 ) ) ) WHEN ( - 27 ) THEN NULL WHEN - AVG ( + NULLIF ( - + 61, + 25 + + - 91 ) ) * 78 + + 96 + + 55 * 2 - - COALESCE ( - 0, - 0 * - 34 ) + CASE - + 88 WHEN CAST( NULL AS SIGNED ) * - 71 THEN - CAST( NULL AS SIGNED ) END THEN 41 WHEN 41 THEN 72 END ) THEN NULL ELSE - + 49 END + 68 + + - 11
----
-2785

skipif mysql # not compatible
query I rowsort label-6307
SELECT ( - 58 ) * - CASE 66 WHEN - + 93 THEN NULL WHEN - ( - CASE + + SUM ( ( - NULLIF ( - 65, - - 42 + + 80 + - 14 * - + 14 ) ) ) WHEN ( - 27 ) THEN NULL WHEN - AVG ( + NULLIF ( - + 61, + 25 + + - 91 ) ) * 78 + + 96 + + 55 * 2 - - COALESCE ( - 0, - 0 * - 34 ) + CASE - + 88 WHEN CAST ( NULL AS INTEGER ) * - 71 THEN - CAST ( NULL AS INTEGER ) END THEN 41 WHEN 41 THEN 72 END ) THEN NULL ELSE - + 49 END + 68 + + - 11
----
-2785

onlyif mysql # DIV for integer division: 
query I rowsort label-6308
SELECT ALL 4 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL 4 / + 89
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6309
SELECT + 42 DIV 31 + - - 5 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6309
SELECT + 42 / 31 + - - 5 AS col0
----
6

query I rowsort
SELECT + ( - + 91 ) col0
----
-91

query I rowsort
SELECT + 45 + - 51 AS col2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-6312
SELECT ALL 50 DIV 13
----
3

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL 50 / 13
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6313
SELECT - 56 DIV + 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6313
SELECT - 56 / + 97 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6314
SELECT + 62 DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6314
SELECT + 62 / 91 AS col1
----
0

query II rowsort
SELECT DISTINCT 85 * - - 27 AS col1, - COALESCE ( - + 56, + + 79 + - - 63 + - + ( 9 ) ) + 46
----
2295
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT ALL COUNT( * ) * 81
----
81

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL COUNT ( * ) * 81
----
81

query I rowsort
SELECT ALL 89 * - + 8 + + 8 AS col2
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT + + MIN( + 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-6318
SELECT + + MIN ( + 14 ) AS col0
----
14

query I rowsort
SELECT 5 * - - 81
----
405

query II rowsort
SELECT ALL - 64 + + 27 col0, 33 * 46
----
-37
1518

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT COUNT( * ) - + 84 * + + 65 col1
----
-5459

skipif mysql # not compatible
query I rowsort label-6321
SELECT COUNT ( * ) - + 84 * + + 65 col1
----
-5459

onlyif mysql # aggregate syntax: 
query II rowsort label-6322
SELECT - + 62 * - ( 26 ) + 17 AS col1, + 49 - - - 53 + 84 * - - 77 * + 9 + - COUNT( * ) * - CASE + 40 WHEN 37 THEN - 57 WHEN - 62 / + ( - 36 ) * + MAX( + 62 ) THEN - 69 ELSE NULL END
----
1629
NULL

skipif mysql # not compatible
query II rowsort label-6322
SELECT - + 62 * - ( 26 ) + 17 AS col1, + 49 - - - 53 + 84 * - - 77 * + 9 + - COUNT ( * ) * - CASE + 40 WHEN 37 THEN - 57 WHEN - 62 / + ( - 36 ) * + MAX ( + 62 ) THEN - 69 ELSE NULL END
----
1629
NULL

query I rowsort
SELECT DISTINCT 47 + + 60 AS col1
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT 28 + 58 * MIN( ALL + + COALESCE ( - ( 56 ), + 51 * 16 + - 59 ) ) - - 27 * + 23
----
-2599

skipif mysql # not compatible
query I rowsort label-6324
SELECT 28 + 58 * MIN ( ALL + + COALESCE ( - ( 56 ), + 51 * 16 + - 59 ) ) - - 27 * + 23
----
-2599

onlyif mysql # aggregate syntax: 
query II rowsort label-6325
SELECT ALL + COUNT( * ) + 86 AS col0, 18
----
87
18

skipif mysql # not compatible
query II rowsort label-6325
SELECT ALL + COUNT ( * ) + 86 AS col0, 18
----
87
18

query I rowsort
SELECT DISTINCT - - 87 * 89 AS col1
----
7743

query I rowsort
SELECT + 44 + 39 + 49 + + + 19 * 24
----
588

onlyif mysql # DIV for integer division: 
query I rowsort label-6328
SELECT ALL 18 DIV 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL 18 / 44 AS col0
----
0

query I rowsort
SELECT DISTINCT 36 * + + 73 + + - 74
----
2554

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT ALL - COUNT( * ) + - - COUNT( * ) - 24
----
-24

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL - COUNT ( * ) + - - COUNT ( * ) - 24
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT - + COALESCE ( + COUNT( * ), - - 45, 80 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6331
SELECT - + COALESCE ( + COUNT ( * ), - - 45, 80 ) col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6332
SELECT 87 DIV 4 DIV + 20
----
1

skipif mysql # not compatible
query I rowsort label-6332
SELECT 87 / 4 / + 20
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6333
SELECT - 94 + 29 + - - 31 + - NULLIF ( + 6, - NULLIF ( + - CASE + COUNT( * ) WHEN + 1 * ( - 75 ) THEN - + 30 - 36 + - COUNT( - + 93 ) * 7 * - 58 + - 93 END, + - 5 ) ), 41 AS col1
----
-40
41

skipif mysql # not compatible
query II rowsort label-6333
SELECT - 94 + 29 + - - 31 + - NULLIF ( + 6, - NULLIF ( + - CASE + COUNT ( * ) WHEN + 1 * ( - 75 ) THEN - + 30 - 36 + - COUNT ( - + 93 ) * 7 * - 58 + - 93 END, + - 5 ) ), 41 AS col1
----
-40
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT 73 + + 52 + - ( + 28 ) + - + COUNT( * ) + - - 71 + + COUNT( * ) + + 48 * - 84 AS col1
----
-3864

skipif mysql # not compatible
query I rowsort label-6334
SELECT 73 + + 52 + - ( + 28 ) + - + COUNT ( * ) + - - 71 + + COUNT ( * ) + + 48 * - 84 AS col1
----
-3864

query I rowsort
SELECT ALL + 75 + + 23 + + - 4 * 65
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6336
SELECT DISTINCT CAST( 92 AS SIGNED ) - ( + 96 )
----
-4

skipif mysql # not compatible
query I rowsort label-6336
SELECT DISTINCT CAST ( 92 AS INTEGER ) - ( + 96 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT 63 * 29 * + COUNT( + 71 )
----
1827

skipif mysql # not compatible
query I rowsort label-6337
SELECT 63 * 29 * + COUNT ( + 71 )
----
1827

query I rowsort
SELECT DISTINCT + 30 - - - 36 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT ALL - COUNT( * ) * + + 10 * + - 96
----
960

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL - COUNT ( * ) * + + 10 * + - 96
----
960

query I rowsort
SELECT ALL - 49 * + 52
----
-2548

query I rowsort
SELECT 53 - + - ( + 49 )
----
102

query I rowsort
SELECT 72 + + 52
----
124

query I rowsort
SELECT ALL - 13 * - 12
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT 78 * + + COUNT( * ) * - ( - - COUNT( * ) )
----
-78

skipif mysql # not compatible
query I rowsort label-6344
SELECT 78 * + + COUNT ( * ) * - ( - - COUNT ( * ) )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT DISTINCT - 31 * + + COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-6345
SELECT DISTINCT - 31 * + + COUNT ( * ) AS col0
----
-31

query I rowsort
SELECT 91 * + 28 AS col2
----
2548

onlyif mysql # DIV for integer division: 
query I rowsort label-6347
SELECT 50 * - + 14 - + + 26 DIV 73 AS col0
----
-700

skipif mysql # not compatible
query I rowsort label-6347
SELECT 50 * - + 14 - + + 26 / 73 AS col0
----
-700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6348
SELECT + CAST( NULL AS SIGNED ) - - - 27 + + 57 + + - 5 * - 51 * - - 22 * + 92 * + 21 + + + COUNT( + 55 ) + - 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6348
SELECT + CAST ( NULL AS INTEGER ) - - - 27 + + 57 + + - 5 * - 51 * - - 22 * + 92 * + 21 + + + COUNT ( + 55 ) + - 44 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 79 + - 41 AS col2
----
-120

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6350
SELECT 43 + 18 + + COUNT( * ) / CAST( NULL AS DECIMAL ) + COALESCE ( 36, + + 63 ) + - - NULLIF ( - ( + + 5 ), + 83 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6350
SELECT 43 + 18 + + COUNT ( * ) / CAST ( NULL AS REAL ) + COALESCE ( 36, + + 63 ) + - - NULLIF ( - ( + + 5 ), + 83 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6351
SELECT + + COALESCE ( + 30, - - 71 ), COUNT( - 41 ) AS col2
----
30
1

skipif mysql # not compatible
query II rowsort label-6351
SELECT + + COALESCE ( + 30, - - 71 ), COUNT ( - 41 ) AS col2
----
30
1

query II rowsort
SELECT 6 AS col1, 69
----
6
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6353
SELECT + + 36 * - + 96 + 98 DIV + 34 AS col0
----
-3454

skipif mysql # not compatible
query I rowsort label-6353
SELECT + + 36 * - + 96 + 98 / + 34 AS col0
----
-3454

query II rowsort
SELECT ALL - 64, 12 + + 33 + - + 97 col0
----
-64
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6355
SELECT 23 + CAST( - 79 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-6355
SELECT 23 + CAST ( - 79 AS INTEGER )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT + 6 * + ( + NULLIF ( 59, - COALESCE ( COUNT( * ), 93, 64 ) ) ) - - + ( + 38 ) + - 58 col1
----
334

skipif mysql # not compatible
query I rowsort label-6356
SELECT + 6 * + ( + NULLIF ( 59, - COALESCE ( COUNT ( * ), 93, 64 ) ) ) - - + ( + 38 ) + - 58 col1
----
334

onlyif mysql # aggregate syntax: 
query II rowsort label-6357
SELECT ALL 36 * COUNT( * ) * 63 AS col2, + 20 * 91
----
2268
1820

skipif mysql # not compatible
query II rowsort label-6357
SELECT ALL 36 * COUNT ( * ) * 63 AS col2, + 20 * 91
----
2268
1820

query II rowsort
SELECT 43 AS col2, 33 * - + 27 * ( + 67 ) AS col2
----
43
-59697

query I rowsort
SELECT DISTINCT - 85 + + 17 + + 41 col0
----
-27

query I rowsort
SELECT ( ( - 16 ) ) * + ( - 8 ) AS col0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT COUNT( * ) + - COUNT( * ) + CASE + 61 WHEN + 94 * - COUNT( * ) * AVG ( ALL 79 ) + + 7 + + COUNT( * ) * - 57 * + 53 THEN - + 33 WHEN - 76 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6361
SELECT COUNT ( * ) + - COUNT ( * ) + CASE + 61 WHEN + 94 * - COUNT ( * ) * AVG ( ALL 79 ) + + 7 + + COUNT ( * ) * - 57 * + 53 THEN - + 33 WHEN - 76 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6362
SELECT - 91 DIV - 31 - COUNT( * ) * + - 48 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-6362
SELECT - 91 / - 31 - COUNT ( * ) * + - 48 AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6363
SELECT NULLIF ( - 0, ( + + ( + + 76 ) ) * ( + ( - + 78 ) ) + 93 ) + - 96 + CASE - 50 WHEN + 19 * 91 * - COUNT( * ) / - 44 THEN 50 WHEN - + 84 / - 6 + CAST( NULL AS SIGNED ) + 72 * COUNT( * ) THEN NULL ELSE + MAX( + + 52 ) END + + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-6363
SELECT NULLIF ( - 0, ( + + ( + + 76 ) ) * ( + ( - + 78 ) ) + 93 ) + - 96 + CASE - 50 WHEN + 19 * 91 * - COUNT ( * ) / - 44 THEN 50 WHEN - + 84 / - 6 + CAST ( NULL AS INTEGER ) + 72 * COUNT ( * ) THEN NULL ELSE + MAX ( + + 52 ) END + + COUNT ( * )
----
-43

query I rowsort
SELECT ALL 35 - - 88 * - ( + 76 )
----
-6653

query I rowsort
SELECT 57 * + 51 * - 33 AS col2
----
-95931

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6366
SELECT ALL 11 * COUNT( * ) DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL 11 * COUNT ( * ) / - 58
----
0

query I rowsort
SELECT DISTINCT 40 * 62 * 81
----
200880

onlyif mysql # aggregate syntax: 
query II rowsort label-6368
SELECT ALL COUNT( * ), 74 * + ( + - 62 ) AS col2
----
1
-4588

skipif mysql # not compatible
query II rowsort label-6368
SELECT ALL COUNT ( * ), 74 * + ( + - 62 ) AS col2
----
1
-4588

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT ALL 75 * + COUNT( * ) * - - ( - ( - 16 ) ) AS col1
----
1200

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL 75 * + COUNT ( * ) * - - ( - ( - 16 ) ) AS col1
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT COUNT( ALL - 2 ) + 14
----
15

skipif mysql # not compatible
query I rowsort label-6370
SELECT COUNT ( ALL - 2 ) + 14
----
15

query I rowsort
SELECT 62 + 54 AS col0
----
116

query II rowsort
SELECT - 63 - - 58 AS col1, + 37
----
-5
37

query II rowsort
SELECT DISTINCT 3, - 59 AS col2
----
3
-59

query I rowsort
SELECT - 39 - - 11 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT + CASE - ( + 96 ) WHEN - 51 * - - COUNT( * ) / + 33 + - + 69 THEN NULL WHEN - 63 THEN + 73 * - + 99 + 26 END / - - 60 + + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT + CASE - ( + 96 ) WHEN - 51 * - - COUNT ( * ) / + 33 + - + 69 THEN NULL WHEN - 63 THEN + 73 * - + 99 + 26 END / - - 60 + + 2 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6376
SELECT - ( + 54 ) + - CAST( COUNT( * ) AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-6376
SELECT - ( + 54 ) + - CAST ( COUNT ( * ) AS INTEGER )
----
-55

query I rowsort
SELECT ALL + CASE 60 WHEN + - 86 / - 89 THEN NULL ELSE + 1 END AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6378
SELECT DISTINCT 33 * + 19 + CAST( - 34 AS SIGNED ) + + COUNT( * ) * - + MIN( 57 ) AS col1
----
536

skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT 33 * + 19 + CAST ( - 34 AS INTEGER ) + + COUNT ( * ) * - + MIN ( 57 ) AS col1
----
536

query I rowsort
SELECT ALL - ( - - 98 ) * 63 AS col2
----
-6174

query I rowsort
SELECT ALL + 0 * + 48 + - 46
----
-46

query II rowsort
SELECT + 11 AS col1, - 66
----
11
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-6382
SELECT - 28 * - 6 * COALESCE ( 2, - + 19 DIV - 40 * - - 96 * - 61 * + 38, 10 - 54 ) - + 58
----
278

skipif mysql # not compatible
query I rowsort label-6382
SELECT - 28 * - 6 * COALESCE ( 2, - + 19 / - 40 * - - 96 * - 61 * + 38, 10 - 54 ) - + 58
----
278

query I rowsort
SELECT - 67 * + 6 + 34 + 61
----
-307

query I rowsort
SELECT - + ( 47 ) + - 87 AS col2
----
-134

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6385
SELECT - 51 + NULLIF ( + 58, - CAST( NULL AS DECIMAL ) * 0 ) - CAST( - + 25 AS SIGNED ) + - 10 - 75
----
-53

skipif mysql # not compatible
query I rowsort label-6385
SELECT - 51 + NULLIF ( + 58, - CAST ( NULL AS REAL ) * 0 ) - CAST ( - + 25 AS INTEGER ) + - 10 - 75
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-6386
SELECT - 94 DIV + - 20 col1
----
4

skipif mysql # not compatible
query I rowsort label-6386
SELECT - 94 / + - 20 col1
----
4

query II rowsort
SELECT + 95 AS col1, 21
----
95
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT ALL - 45 * - 93 + SUM( ALL 48 )
----
4233

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL - 45 * - 93 + SUM ( ALL 48 )
----
4233

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT DISTINCT + + CASE ( + - 88 ) WHEN COUNT( * ) THEN NULL WHEN ( 16 ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6389
SELECT DISTINCT + + CASE ( + - 88 ) WHEN COUNT ( * ) THEN NULL WHEN ( 16 ) THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT DISTINCT - + 27 * + COUNT( * ) + - 0 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-6390
SELECT DISTINCT - + 27 * + COUNT ( * ) + - 0 AS col0
----
-27

query I rowsort
SELECT - 40 + 36 + NULLIF ( 18, + + 20 ) + - ( + 11 ) * - - 28 AS col2
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT - - 26 * + COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-6392
SELECT - - 26 * + COUNT ( * ) AS col0
----
26

query I rowsort
SELECT ALL - 17 * - + 90 - 59
----
1471

query I rowsort
SELECT + 67 * + 12 - + + 88 + - + 55 + - 30 AS col1
----
631

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT MIN( ALL + - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-6395
SELECT MIN ( ALL + - 6 )
----
-6

query I rowsort
SELECT + 61 * + 67 + 21
----
4108

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT + 80 * + + COUNT( * ) * - 90 + 77 + - + 15
----
-7138

skipif mysql # not compatible
query I rowsort label-6397
SELECT + 80 * + + COUNT ( * ) * - 90 + 77 + - + 15
----
-7138

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT DISTINCT 54 * - - 32 + - 89 + SUM( ALL + 84 ) AS col2
----
1723

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT 54 * - - 32 + - 89 + SUM ( ALL + 84 ) AS col2
----
1723

query II rowsort
SELECT DISTINCT 47 AS col1, - 78
----
47
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6400
SELECT ALL CASE + 31 WHEN - ( CAST( NULL AS SIGNED ) ) + ( - - 11 ) THEN + - ( + CAST( NULL AS SIGNED ) ) + + 37 + - + NULLIF ( 32, + 86 ) + + CAST( + + 76 AS SIGNED ) * NULLIF ( + 84, - + 98 ) * + 69 * 64 + + 54 + + COUNT( * ) * 21 WHEN - + 35 * COUNT( * ) * + 35 THEN - 10 + + 96 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL CASE + 31 WHEN - ( CAST ( NULL AS INTEGER ) ) + ( - - 11 ) THEN + - ( + CAST ( NULL AS INTEGER ) ) + + 37 + - + NULLIF ( 32, + 86 ) + + CAST ( + + 76 AS INTEGER ) * NULLIF ( + 84, - + 98 ) * + 69 * 64 + + 54 + + COUNT ( * ) * 21 WHEN - + 35 * COUNT ( * ) * + 35 THEN - 10 + + 96 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT + 76 * + 53 * + COUNT( * )
----
4028

skipif mysql # not compatible
query I rowsort label-6401
SELECT + 76 * + 53 * + COUNT ( * )
----
4028

onlyif mysql # aggregate syntax: 
query II rowsort label-6402
SELECT DISTINCT ( - COUNT( * ) ) AS col1, + NULLIF ( + 35, - 35 ) * - 64 * + + 3 + + 48 * - - COUNT( - - 12 )
----
-1
-6672

skipif mysql # not compatible
query II rowsort label-6402
SELECT DISTINCT ( - COUNT ( * ) ) AS col1, + NULLIF ( + 35, - 35 ) * - 64 * + + 3 + + 48 * - - COUNT ( - - 12 )
----
-1
-6672

query II rowsort
SELECT - 40 * - 30 AS col2, 37
----
1200
37

onlyif mysql # aggregate syntax: 
query II rowsort label-6404
SELECT + COUNT( * ) * - ( 64 ) AS col1, 22 AS col0
----
-64
22

skipif mysql # not compatible
query II rowsort label-6404
SELECT + COUNT ( * ) * - ( 64 ) AS col1, 22 AS col0
----
-64
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6405
SELECT + COALESCE ( - 83, COUNT( * ) * 42 * + 37 + 6 * + 19 + CAST( - 17 AS SIGNED ) + - ( 90 ), + 32 * 83 ) * 43 AS col1
----
-3569

skipif mysql # not compatible
query I rowsort label-6405
SELECT + COALESCE ( - 83, COUNT ( * ) * 42 * + 37 + 6 * + 19 + CAST ( - 17 AS INTEGER ) + - ( 90 ), + 32 * 83 ) * 43 AS col1
----
-3569

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6406
SELECT ALL COUNT( * ) * + + CASE - + NULLIF ( CAST( NULL AS SIGNED ), + ( - 94 ) * + COUNT( DISTINCT - 48 ) * 2 + - + 24 * 68 * + COUNT( * ) ) WHEN + 47 + + 84 THEN + CASE - 91 WHEN 42 THEN + 9 WHEN 4 THEN 46 * + - 34 END * 35 END * + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL COUNT ( * ) * + + CASE - + NULLIF ( CAST ( NULL AS INTEGER ), + ( - 94 ) * + COUNT ( DISTINCT - 48 ) * 2 + - + 24 * 68 * + COUNT ( * ) ) WHEN + 47 + + 84 THEN + CASE - 91 WHEN 42 THEN + 9 WHEN 4 THEN 46 * + - 34 END * 35 END * + 32 AS col2
----
NULL

query I rowsort
SELECT ALL 92 + 80 * - 28 + 65
----
-2083

query I rowsort
SELECT - ( - NULLIF ( + 88, - 60 ) ) AS col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6409
SELECT ALL CASE 3 WHEN 65 / - 83 THEN NULL ELSE + 58 END + - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL CASE 3 WHEN 65 / - 83 THEN NULL ELSE + 58 END + - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
57

query II rowsort
SELECT + 79 * 42 col2, 87 + + 11 AS col1
----
3318
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6411
SELECT - COALESCE ( - 7, - - CAST( + 94 AS SIGNED ), - COALESCE ( + - 17, + - 64, + 48 + + COUNT( * ) - + 26 + - - 38 ) + + + 83 ) col1
----
7

skipif mysql # not compatible
query I rowsort label-6411
SELECT - COALESCE ( - 7, - - CAST ( + 94 AS INTEGER ), - COALESCE ( + - 17, + - 64, + 48 + + COUNT ( * ) - + 26 + - - 38 ) + + + 83 ) col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6412
SELECT DISTINCT 79 * 84 * CAST( - - 4 AS SIGNED ) AS col1
----
26544

skipif mysql # not compatible
query I rowsort label-6412
SELECT DISTINCT 79 * 84 * CAST ( - - 4 AS INTEGER ) AS col1
----
26544

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6413
SELECT + 54 DIV 10 + - 96 + - 81 * - ( - CAST( + 34 AS SIGNED ) ) * + - 31
----
85283

skipif mysql # not compatible
query I rowsort label-6413
SELECT + 54 / 10 + - 96 + - 81 * - ( - CAST ( + 34 AS INTEGER ) ) * + - 31
----
85283

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT - - 40 * - MAX( + 56 ) AS col0
----
-2240

skipif mysql # not compatible
query I rowsort label-6414
SELECT - - 40 * - MAX ( + 56 ) AS col0
----
-2240

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT + + MAX( 63 ) + - - 54 * - 3 - - 31 + + 31 * 9 * + + 8 AS col1
----
2164

skipif mysql # not compatible
query I rowsort label-6415
SELECT + + MAX ( 63 ) + - - 54 * - 3 - - 31 + + 31 * 9 * + + 8 AS col1
----
2164

onlyif mysql # DIV for integer division: 
query I rowsort label-6416
SELECT ALL - 99 DIV 76 + + - 83
----
-84

skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL - 99 / 76 + + - 83
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-6417
SELECT ALL + - 83 DIV + 29 - - 6 - - 14
----
18

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL + - 83 / + 29 - - 6 - - 14
----
18

query I rowsort
SELECT - 28 + 40
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6419
SELECT - - 38 * CAST( - 82 AS SIGNED )
----
-3116

skipif mysql # not compatible
query I rowsort label-6419
SELECT - - 38 * CAST ( - 82 AS INTEGER )
----
-3116

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT ALL + 33 * NULLIF ( + + CASE + - COUNT( * ) WHEN + 27 * ( - 32 ) + - MAX( DISTINCT - - 84 ) THEN - COUNT( * ) WHEN + + 1 * + 96 THEN + - ( + 90 ) * + 19 + - + COUNT( * ) ELSE - + 86 END, - - 8 ) + - 53 AS col0
----
-2891

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL + 33 * NULLIF ( + + CASE + - COUNT ( * ) WHEN + 27 * ( - 32 ) + - MAX ( DISTINCT - - 84 ) THEN - COUNT ( * ) WHEN + + 1 * + 96 THEN + - ( + 90 ) * + 19 + - + COUNT ( * ) ELSE - + 86 END, - - 8 ) + - 53 AS col0
----
-2891

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT + NULLIF ( + - COUNT( 1 ), + 24 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6421
SELECT + NULLIF ( + - COUNT ( 1 ), + 24 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6422
SELECT - + 78 * + COUNT( * ) AS col1, 63
----
-78
63

skipif mysql # not compatible
query II rowsort label-6422
SELECT - + 78 * + COUNT ( * ) AS col1, 63
----
-78
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6423
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - CAST( MAX( DISTINCT 36 ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - CAST ( MAX ( DISTINCT 36 ) AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6424
SELECT - NULLIF ( - CAST( + 56 AS SIGNED ), - 59 ) DIV COALESCE ( - + 40, - 64 + - + 29, + 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-6424
SELECT - NULLIF ( - CAST ( + 56 AS INTEGER ), - 59 ) / COALESCE ( - + 40, - 64 + - + 29, + 72 )
----
-1

query I rowsort
SELECT - 52 + - 8 AS col2
----
-60

query I rowsort
SELECT NULLIF ( 9, - 98 + + + AVG ( + + 36 ) ) col1
----
9

query I rowsort
SELECT - 81 + - - 85 AS col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6428
SELECT ALL + 90 DIV - 98 * + - 35
----
0

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL + 90 / - 98 * + - 35
----
0

query I rowsort
SELECT 62 + - 38 AS col2
----
24

query I rowsort
SELECT 72 + + + 16
----
88

query I rowsort
SELECT 88 + 21 col0
----
109

query II rowsort
SELECT DISTINCT 2 AS col1, + 39
----
2
39

onlyif mysql # DIV for integer division: 
query I rowsort label-6433
SELECT DISTINCT - 72 + - - 78 DIV 42 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-6433
SELECT DISTINCT - 72 + - - 78 / 42 AS col0
----
-71

query I rowsort
SELECT ALL 74 + + 75 AS col2
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6435
SELECT 7 + - NULLIF ( - + 38, - + 37 * + - 0 - - 55 + + + 45 + COUNT( * ) + - MIN( ALL 83 ) * - + MAX( ALL + 10 ) + COUNT( DISTINCT + 46 ) ) DIV COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6435
SELECT 7 + - NULLIF ( - + 38, - + 37 * + - 0 - - 55 + + + 45 + COUNT ( * ) + - MIN ( ALL 83 ) * - + MAX ( ALL + 10 ) + COUNT ( DISTINCT + 46 ) ) / COUNT ( * ) AS col2
----
45

query I rowsort
SELECT ALL + 0 * 97 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6437
SELECT 25 AS col1, COUNT( * ) + - COUNT( DISTINCT 31 ) + 61 AS col2
----
25
61

skipif mysql # not compatible
query II rowsort label-6437
SELECT 25 AS col1, COUNT ( * ) + - COUNT ( DISTINCT 31 ) + 61 AS col2
----
25
61

query I rowsort
SELECT DISTINCT 73 + + 84
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-6439
SELECT ALL 89 + + 78 DIV - - COUNT( * ), CAST( NULLIF ( - 75, + 62 ) AS SIGNED ) * + 63 + + CAST( NULL AS DECIMAL ) AS col2
----
167
NULL

skipif mysql # not compatible
query II rowsort label-6439
SELECT ALL 89 + + 78 / - - COUNT ( * ), CAST ( NULLIF ( - 75, + 62 ) AS INTEGER ) * + 63 + + CAST ( NULL AS REAL ) AS col2
----
167
NULL

query I rowsort
SELECT DISTINCT AVG ( CASE - 70 WHEN - 5 THEN NULL WHEN - + 40 * + + 24 + + 98 + + 87 * + + 23 THEN NULL WHEN - - 21 THEN 40 + - 2 ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT - + 11 AS col2
----
-11

query I rowsort
SELECT ALL + 23 * + 29
----
667

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT ALL - COUNT( - 70 ) - - - 25 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL - COUNT ( - 70 ) - - - 25 AS col2
----
-26

query II rowsort
SELECT + + 85, + 32 AS col2
----
85
32

onlyif mysql # DIV for integer division: 
query I rowsort label-6445
SELECT + 52 DIV - - 80 * + 97 + 97
----
97

skipif mysql # not compatible
query I rowsort label-6445
SELECT + 52 / - - 80 * + 97 + 97
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT ALL - COUNT( * ) * - 41
----
41

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL - COUNT ( * ) * - 41
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6447
SELECT + 35 * - CAST( + 95 AS SIGNED ) - + - 90
----
-3235

skipif mysql # not compatible
query I rowsort label-6447
SELECT + 35 * - CAST ( + 95 AS INTEGER ) - + - 90
----
-3235

onlyif mysql # aggregate syntax: 
query II rowsort label-6448
SELECT 8 + - COUNT( * ) * - - 66 AS col2, 85 AS col0
----
-58
85

skipif mysql # not compatible
query II rowsort label-6448
SELECT 8 + - COUNT ( * ) * - - 66 AS col2, 85 AS col0
----
-58
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT DISTINCT - CASE + - 2 WHEN ( - 43 ) THEN + 42 * 74 / + CASE 48 WHEN + 60 + + COUNT( * ) THEN - 71 WHEN - ( - - ( 60 ) ) THEN NULL ELSE 6 * 47 END WHEN + 71 * + 19 + - ( - + 75 ) THEN 63 END * 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT - CASE + - 2 WHEN ( - 43 ) THEN + 42 * 74 / + CASE 48 WHEN + 60 + + COUNT ( * ) THEN - 71 WHEN - ( - - ( 60 ) ) THEN NULL ELSE 6 * 47 END WHEN + 71 * + 19 + - ( - + 75 ) THEN 63 END * 55 AS col0
----
NULL

query I rowsort
SELECT - 2 * 72 AS col0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT + ( + COUNT( * ) ) * - 96 + + + COALESCE ( + 9, COUNT( * ) ) + - - 14 * - - COUNT( * ) + + + 47 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-6451
SELECT + ( + COUNT ( * ) ) * - 96 + + + COALESCE ( + 9, COUNT ( * ) ) + - - 14 * - - COUNT ( * ) + + + 47 AS col2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6452
SELECT CAST( - 60 AS SIGNED ) - 2 + - 93 AS col1, 63 - - 29 AS col1
----
-155
92

skipif mysql # not compatible
query II rowsort label-6452
SELECT CAST ( - 60 AS INTEGER ) - 2 + - 93 AS col1, 63 - - 29 AS col1
----
-155
92

query I rowsort
SELECT DISTINCT + 85 + - 20 AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6454
SELECT DISTINCT 57 * NULLIF ( + - 39, + + 12 + - COUNT( * ) / - 31 + + NULLIF ( 99, + AVG ( DISTINCT + 57 ) * + 57 / 39 ) + + - CAST( NULL AS SIGNED ) * - 16 - + 73 ) * - + 19
----
42237

skipif mysql # not compatible
query I rowsort label-6454
SELECT DISTINCT 57 * NULLIF ( + - 39, + + 12 + - COUNT ( * ) / - 31 + + NULLIF ( 99, + AVG ( DISTINCT + 57 ) * + 57 / 39 ) + + - CAST ( NULL AS INTEGER ) * - 16 - + 73 ) * - + 19
----
42237

query I rowsort
SELECT ALL 16 + + 72
----
88

query I rowsort
SELECT 97 * 56 AS col0
----
5432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6457
SELECT DISTINCT 10 + - 51 DIV + COUNT( + 81 ) + COUNT( * ) + + 33 * - 4 AS col0
----
-172

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT 10 + - 51 / + COUNT ( + 81 ) + COUNT ( * ) + + 33 * - 4 AS col0
----
-172

query I rowsort
SELECT DISTINCT - 41 + 28
----
-13

query I rowsort
SELECT 87 * - - 45
----
3915

query I rowsort
SELECT 36 * - 90
----
-3240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6461
SELECT 42 DIV COUNT( * ) * 96 AS col1
----
4032

skipif mysql # not compatible
query I rowsort label-6461
SELECT 42 / COUNT ( * ) * 96 AS col1
----
4032

query I rowsort
SELECT 22 - + + 48 + - 27 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT ( - + MIN( DISTINCT + 64 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-6463
SELECT ( - + MIN ( DISTINCT + 64 ) )
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6464
SELECT CAST( 66 AS SIGNED ) * + 26 + + 8 AS col2, 69
----
1724
69

skipif mysql # not compatible
query II rowsort label-6464
SELECT CAST ( 66 AS INTEGER ) * + 26 + + 8 AS col2, 69
----
1724
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT - 36 + - - SUM( + 75 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-6465
SELECT - 36 + - - SUM ( + 75 ) AS col2
----
39

query I rowsort
SELECT ALL - - NULLIF ( - + 84, - AVG ( DISTINCT - 72 ) - - 40 - - 85 * + 61 ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT ALL - + NULLIF ( - 32, + - COUNT( * ) * SUM( DISTINCT 90 ) ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL - + NULLIF ( - 32, + - COUNT ( * ) * SUM ( DISTINCT 90 ) ) AS col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6468
SELECT ALL - 50 * + ( - COUNT( ALL - 85 ) ) * - COUNT( ALL + - 99 ) DIV - + ( - + 57 ) - - 44 + - 66 col1
----
-22

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL - 50 * + ( - COUNT ( ALL - 85 ) ) * - COUNT ( ALL + - 99 ) / - + ( - + 57 ) - - 44 + - 66 col1
----
-22

query I rowsort
SELECT ALL 8 * 42 + 55 AS col0
----
391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6470
SELECT MIN( - CAST( NULLIF ( 38, 72 ) AS SIGNED ) ) AS col2, + NULLIF ( + 23, + + 18 * 5 ) * 35 + 51
----
-38
856

skipif mysql # not compatible
query II rowsort label-6470
SELECT MIN ( - CAST ( NULLIF ( 38, 72 ) AS INTEGER ) ) AS col2, + NULLIF ( + 23, + + 18 * 5 ) * 35 + 51
----
-38
856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6471
SELECT 92 DIV 26 - - - COUNT( * ) * - COUNT( * ) * 18
----
21

skipif mysql # not compatible
query I rowsort label-6471
SELECT 92 / 26 - - - COUNT ( * ) * - COUNT ( * ) * 18
----
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6472
SELECT ALL CAST( - + 90 AS SIGNED ) * + 86 * + + 62 + 59 + 81 DIV - - 84 + - + 40 + + NULLIF ( + 26, 54 + + 37 - 85 + + 69 ) DIV - 91
----
-479861

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL CAST ( - + 90 AS INTEGER ) * + 86 * + + 62 + 59 + 81 / - - 84 + - + 40 + + NULLIF ( + 26, 54 + + 37 - 85 + + 69 ) / - 91
----
-479861

query I rowsort
SELECT + 17 + + 20 AS col2
----
37

query I rowsort
SELECT + NULLIF ( 39, 1 ) col1
----
39

query I rowsort
SELECT + 40 * + - 34
----
-1360

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT COUNT( ALL + - 57 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6476
SELECT COUNT ( ALL + - 57 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6477
SELECT + COUNT( * ) col1, - 92
----
1
-92

skipif mysql # not compatible
query II rowsort label-6477
SELECT + COUNT ( * ) col1, - 92
----
1
-92

query I rowsort
SELECT ALL 98 + - 28
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-6479
SELECT ALL + MIN( - + 4 ) + + COUNT( * ) AS col1, 79 * + 80 AS col1
----
-3
6320

skipif mysql # not compatible
query II rowsort label-6479
SELECT ALL + MIN ( - + 4 ) + + COUNT ( * ) AS col1, 79 * + 80 AS col1
----
-3
6320

query I rowsort
SELECT + 80 * + 85 col1
----
6800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6481
SELECT + 39 + - 31 * + + ( + + CAST( NULL AS SIGNED ) ) * + 71 + - + COALESCE ( + 54, + COUNT( * ) ) + + + 15 * 85 * COUNT( * ) + - 27 + + + COUNT( * ), + 23 * + + 0 + - 50 AS col2
----
NULL
-50

skipif mysql # not compatible
query II rowsort label-6481
SELECT + 39 + - 31 * + + ( + + CAST ( NULL AS INTEGER ) ) * + 71 + - + COALESCE ( + 54, + COUNT ( * ) ) + + + 15 * 85 * COUNT ( * ) + - 27 + + + COUNT ( * ), + 23 * + + 0 + - 50 AS col2
----
NULL
-50

query I rowsort
SELECT ALL 62 + 65
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT + 44 + - - ( - - COUNT( * ) ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-6483
SELECT + 44 + - - ( - - COUNT ( * ) ) AS col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6484
SELECT - 50 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6484
SELECT - 50 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6485
SELECT DISTINCT 56 * + + COALESCE ( + ( 42 ), CASE - 32 WHEN - MAX( ALL 74 ) + ( 33 ) + 67 THEN CAST( - 58 AS SIGNED ) ELSE NULL END, ( - + ( - 63 ) ) )
----
2352

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT 56 * + + COALESCE ( + ( 42 ), CASE - 32 WHEN - MAX ( ALL 74 ) + ( 33 ) + 67 THEN CAST ( - 58 AS INTEGER ) ELSE NULL END, ( - + ( - 63 ) ) )
----
2352

query I rowsort
SELECT - 42 * + 40 + 63
----
-1617

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6487
SELECT ALL - CAST( NULL AS SIGNED ) * + - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 8 AS col1
----
NULL

query I rowsort
SELECT + 97 + - - CASE - 30 WHEN + 18 THEN - - ( - 67 ) WHEN - 51 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6489
SELECT ALL 3 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL 3 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6490
SELECT - 90 + + 66 + CAST( NULL AS SIGNED ) AS col2, + CAST( MAX( ALL + - 28 ) AS SIGNED )
----
NULL
-28

skipif mysql # not compatible
query II rowsort label-6490
SELECT - 90 + + 66 + CAST ( NULL AS INTEGER ) AS col2, + CAST ( MAX ( ALL + - 28 ) AS INTEGER )
----
NULL
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6491
SELECT ALL 55 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL 55 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 67 + - 62 * 20
----
-1307

onlyif mysql # DIV for integer division: 
query I rowsort label-6493
SELECT + 78 DIV - 7
----
-11

skipif mysql # not compatible
query I rowsort label-6493
SELECT + 78 / - 7
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT ALL COUNT( 52 )
----
1

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL COUNT ( 52 )
----
1

query I rowsort
SELECT - 19 + 67 AS col1
----
48

query I rowsort
SELECT DISTINCT CASE WHEN 46 NOT BETWEEN NULL AND NULL THEN 74 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6497
SELECT ALL - 93 DIV + 45
----
-2

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL - 93 / + 45
----
-2

query I rowsort
SELECT - COALESCE ( 94, - 59 ) * 4
----
-376

query I rowsort
SELECT - 83 * 7 AS col0
----
-581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6500
SELECT ALL - CAST( NULL AS SIGNED ) / - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL - CAST ( NULL AS INTEGER ) / - 64
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6501
SELECT ALL 78 DIV 21 + 64
----
67

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL 78 / 21 + 64
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT CASE 64 WHEN SUM( DISTINCT - 18 ) + + 74 THEN NULL WHEN 3 * - 97 + 28 * + 62 THEN 6 * COUNT( * ) ELSE NULL END * - 29 + COUNT( * ) * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-6502
SELECT CASE 64 WHEN SUM ( DISTINCT - 18 ) + + 74 THEN NULL WHEN 3 * - 97 + 28 * + 62 THEN 6 * COUNT ( * ) ELSE NULL END * - 29 + COUNT ( * ) * + 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6503
SELECT + COUNT( DISTINCT COALESCE ( CAST( NULL AS SIGNED ), + 87 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6503
SELECT + COUNT ( DISTINCT COALESCE ( CAST ( NULL AS INTEGER ), + 87 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6504
SELECT DISTINCT NULLIF ( + 15, 7 + 66 ) / CAST( NULL AS SIGNED ) + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6504
SELECT DISTINCT NULLIF ( + 15, 7 + 66 ) / CAST ( NULL AS INTEGER ) + - 11
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6505
SELECT ALL 15 DIV 60 + + 2 * - NULLIF ( 60 + 93, + CAST( 67 AS DECIMAL ) + 25 )
----
-306

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL 15 / 60 + + 2 * - NULLIF ( 60 + 93, + CAST ( 67 AS REAL ) + 25 )
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT ( MIN( ALL 6 ) )
----
6

skipif mysql # not compatible
query I rowsort label-6506
SELECT ( MIN ( ALL 6 ) )
----
6

query I rowsort
SELECT DISTINCT ( 81 ) * + 12 + 19
----
991

query I rowsort
SELECT - 93 * 55 AS col2
----
-5115

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT DISTINCT - 6 * - COUNT( * ) + COALESCE ( 87 + 97, - COUNT( * ), 74 * 91 + COUNT( * ) ) * - 68
----
-12506

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT - 6 * - COUNT ( * ) + COALESCE ( 87 + 97, - COUNT ( * ), 74 * 91 + COUNT ( * ) ) * - 68
----
-12506

onlyif mysql # DIV for integer division: 
query I rowsort label-6510
SELECT + 20 DIV + 43 + + 42 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-6510
SELECT + 20 / + 43 + + 42 AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6511
SELECT + 63 * CAST( + COUNT( * ) AS SIGNED ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-6511
SELECT + 63 * CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
63

query I rowsort
SELECT + 81 + 23 AS col1
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6513
SELECT + CASE + 65 WHEN + 49 - + 12 THEN + 50 - CAST( 34 AS SIGNED ) * + 75 WHEN - 13 * 76 THEN 50 ELSE COUNT( * ) DIV 2 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6513
SELECT + CASE + 65 WHEN + 49 - + 12 THEN + 50 - CAST ( 34 AS INTEGER ) * + 75 WHEN - 13 * 76 THEN 50 ELSE COUNT ( * ) / 2 END AS col2
----
0

query I rowsort
SELECT - NULLIF ( + 81, 35 ) * - 41
----
3321

query I rowsort
SELECT + 33 * - 49 AS col1
----
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT COALESCE ( + COUNT( * ), 95 * + 20, - 23 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6516
SELECT COALESCE ( + COUNT ( * ), 95 * + 20, - 23 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT - MIN( - ( - 7 ) ) * 66 + + 6 * 33
----
-264

skipif mysql # not compatible
query I rowsort label-6517
SELECT - MIN ( - ( - 7 ) ) * 66 + + 6 * 33
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT DISTINCT + 63 * - 97 - 74 * - ( MAX( + 19 ) )
----
-4705

skipif mysql # not compatible
query I rowsort label-6518
SELECT DISTINCT + 63 * - 97 - 74 * - ( MAX ( + 19 ) )
----
-4705

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT CASE ( - CASE 24 WHEN + ( AVG ( + 51 ) ) * - COUNT( * ) - - COALESCE ( 34 + 75, + 67 + - 23, + 77, 94 ) * + ( 49 + + 37 ) THEN 88 END ) WHEN - 16 THEN COUNT( * ) WHEN COALESCE ( 39, 88, ( ( - 10 ) ) + 85, - 60 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6519
SELECT CASE ( - CASE 24 WHEN + ( AVG ( + 51 ) ) * - COUNT ( * ) - - COALESCE ( 34 + 75, + 67 + - 23, + 77, 94 ) * + ( 49 + + 37 ) THEN 88 END ) WHEN - 16 THEN COUNT ( * ) WHEN COALESCE ( 39, 88, ( ( - 10 ) ) + 85, - 60 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT ALL COUNT( ( 17 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL COUNT ( ( 17 ) ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6521
SELECT + 15 DIV - 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6521
SELECT + 15 / - 25 AS col2
----
0

query I rowsort
SELECT - ( 21 ) AS col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6523
SELECT + 49 DIV MIN( ALL 38 )
----
1

skipif mysql # not compatible
query I rowsort label-6523
SELECT + 49 / MIN ( ALL 38 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT + 79 - + COUNT( DISTINCT - 24 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-6524
SELECT + 79 - + COUNT ( DISTINCT - 24 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT + 96 * - ( CASE - COUNT( * ) WHEN 46 * COUNT( * ) THEN 32 * + ( + 21 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6525
SELECT + 96 * - ( CASE - COUNT ( * ) WHEN 46 * COUNT ( * ) THEN 32 * + ( + 21 ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT + COUNT( DISTINCT - 93 )
----
1

skipif mysql # not compatible
query I rowsort label-6526
SELECT + COUNT ( DISTINCT - 93 )
----
1

query I rowsort
SELECT ALL COALESCE ( 76, 34 + + 55 * + 77 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT ALL - NULLIF ( + 0, - COUNT( * ) ) * - 48
----
0

skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL - NULLIF ( + 0, - COUNT ( * ) ) * - 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT + - 11 * CASE - 99 WHEN 29 + 60 THEN + COALESCE ( - 28, COUNT( * ), - 80 ) * 61 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6529
SELECT + - 11 * CASE - 99 WHEN 29 + 60 THEN + COALESCE ( - 28, COUNT ( * ), - 80 ) * 61 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6530
SELECT - - CAST( - 72 AS SIGNED ) col2
----
-72

skipif mysql # not compatible
query I rowsort label-6530
SELECT - - CAST ( - 72 AS INTEGER ) col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT DISTINCT - 72 * + COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-6531
SELECT DISTINCT - 72 * + COUNT ( * ) AS col1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6532
SELECT + - 61 DIV COUNT( DISTINCT + 8 * 96 - - 70 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-6532
SELECT + - 61 / COUNT ( DISTINCT + 8 * 96 - - 70 ) AS col0
----
-61

query I rowsort
SELECT DISTINCT - 23 + + 23 * - 86 AS col1
----
-2001

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT + MAX( DISTINCT 87 )
----
87

skipif mysql # not compatible
query I rowsort label-6534
SELECT + MAX ( DISTINCT 87 )
----
87

query I rowsort
SELECT 44 * + 38 AS col0
----
1672

query I rowsort
SELECT ALL + + ( + 63 ) + - 14 AS col1
----
49

query I rowsort
SELECT 31 + 22
----
53

query I rowsort
SELECT - ( 40 ) col2
----
-40

query I rowsort
SELECT + NULLIF ( 34, + 58 / 27 ) + 83
----
117

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6540
SELECT - 20 DIV - 26 - 85 * CAST( 30 AS SIGNED )
----
-2550

skipif mysql # not compatible
query I rowsort label-6540
SELECT - 20 / - 26 - 85 * CAST ( 30 AS INTEGER )
----
-2550

query I rowsort
SELECT - ( + 28 ) AS col1
----
-28

query I rowsort
SELECT ALL - 29 + 79
----
50

query I rowsort
SELECT DISTINCT + - 99 + + 98 * 16
----
1469

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6544
SELECT - NULLIF ( - 61, 70 ) DIV - 21 + COUNT( * ) DIV + COALESCE ( + 40, 22 + - COALESCE ( + 71, 50 ), - 35 * 50 )
----
-2

skipif mysql # not compatible
query I rowsort label-6544
SELECT - NULLIF ( - 61, 70 ) / - 21 + COUNT ( * ) / + COALESCE ( + 40, 22 + - COALESCE ( + 71, 50 ), - 35 * 50 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6545
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT DISTINCT + COUNT( * ) + + NULLIF ( 98, - 78 ) * 36 AS col2
----
3529

skipif mysql # not compatible
query I rowsort label-6546
SELECT DISTINCT + COUNT ( * ) + + NULLIF ( 98, - 78 ) * 36 AS col2
----
3529

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT ALL + 9 - + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL + 9 - + COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT + 53 * - + ( + MAX( 74 ) ) + + 46 * + 0 AS col1
----
-3922

skipif mysql # not compatible
query I rowsort label-6548
SELECT + 53 * - + ( + MAX ( 74 ) ) + + 46 * + 0 AS col1
----
-3922

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT 0 + - + 15 + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-6549
SELECT 0 + - + 15 + COUNT ( * )
----
-14

query I rowsort
SELECT 36 * 65 AS col1
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT ALL - CASE CASE 48 WHEN COUNT( * ) * 62 + - 64 THEN NULL ELSE 45 * 71 END WHEN + 40 * - 97 + + 20 THEN 96 WHEN 30 - + 36 THEN - MIN( DISTINCT 69 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL - CASE CASE 48 WHEN COUNT ( * ) * 62 + - 64 THEN NULL ELSE 45 * 71 END WHEN + 40 * - 97 + + 20 THEN 96 WHEN 30 - + 36 THEN - MIN ( DISTINCT 69 ) END
----
NULL

query I rowsort
SELECT ALL + 64 * 56 AS col0
----
3584

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT ALL - COUNT( * ) - + - 57 + 10 * + 97 * 37
----
35946

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL - COUNT ( * ) - + - 57 + 10 * + 97 * 37
----
35946

query I rowsort
SELECT 26 * + + 96
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT 10 * - COUNT( * ) + - 84
----
-94

skipif mysql # not compatible
query I rowsort label-6555
SELECT 10 * - COUNT ( * ) + - 84
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT CASE - 97 WHEN - 99 THEN - 94 ELSE NULL END * COUNT( ALL + 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6556
SELECT CASE - 97 WHEN - 99 THEN - 94 ELSE NULL END * COUNT ( ALL + 35 )
----
NULL

query I rowsort
SELECT 22 + 50 - - 88 * - 50 * + ( 42 - 92 )
----
220072

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT DISTINCT ( + MAX( 98 ) ) * 10 AS col2
----
980

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT ( + MAX ( 98 ) ) * 10 AS col2
----
980

query I rowsort
SELECT - - ( 50 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT - - 20 * - 51 * SUM( ALL - 19 ) + + 97 AS col1
----
19477

skipif mysql # not compatible
query I rowsort label-6560
SELECT - - 20 * - 51 * SUM ( ALL - 19 ) + + 97 AS col1
----
19477

query I rowsort
SELECT DISTINCT + ( 63 ) * 52
----
3276

query I rowsort
SELECT ALL 69 + + + 99 * 49
----
4920

query I rowsort
SELECT - ( + + 91 ) + - 68
----
-159

query I rowsort
SELECT DISTINCT - 43 * 43 + - 59
----
-1908

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT ALL + 85 + COUNT( * ) * + 41
----
126

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL + 85 + COUNT ( * ) * + 41
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-6566
SELECT ALL + 63 DIV - 86 + 62 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL + 63 / - 86 + 62 AS col2
----
62

query I rowsort
SELECT - 96 * NULLIF ( - NULLIF ( + 37, NULLIF ( - 21, 87 ) ), 90 * + 37 - 6 ) - 83 AS col2
----
3469

query I rowsort
SELECT ALL - 93 + - 10 * + 74 AS col0
----
-833

query I rowsort
SELECT + 79 + 85 + 48 AS col0
----
212

query I rowsort
SELECT DISTINCT CASE + 53 WHEN - 57 + - 83 * AVG ( ALL 28 + + 58 ) THEN 34 * + 96 + - 86 * 64 ELSE - 60 END + - 30
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6571
SELECT 46 * ( CAST( NULL AS SIGNED ) ) + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6571
SELECT 46 * ( CAST ( NULL AS INTEGER ) ) + 16 AS col2
----
NULL

query I rowsort
SELECT 90 + - 93
----
-3

query I rowsort
SELECT - + ( - 11 ) AS col1
----
11

query I rowsort
SELECT ALL 15 + - - 85 * - 96 AS col0
----
-8145

query I rowsort
SELECT DISTINCT + ( + + 64 ) col0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6576
SELECT ALL + 78 + + COUNT( * ) DIV 12 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL + 78 + + COUNT ( * ) / 12 AS col1
----
78

query I rowsort
SELECT 69 * + 84 AS col2
----
5796

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6578
SELECT ALL + 67 * + 46 - COALESCE ( 15, ( - COUNT( * ) ) DIV + 77 )
----
3067

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL + 67 * + 46 - COALESCE ( 15, ( - COUNT ( * ) ) / + 77 )
----
3067

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT MAX( + ( + 77 ) ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6579
SELECT MAX ( + ( + 77 ) ) AS col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6580
SELECT DISTINCT - 43 col1, 2 + - - 53 - CAST( - ( + 10 ) AS SIGNED )
----
-43
65

skipif mysql # not compatible
query II rowsort label-6580
SELECT DISTINCT - 43 col1, 2 + - - 53 - CAST ( - ( + 10 ) AS INTEGER )
----
-43
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6581
SELECT ( + MIN( ALL + 27 ) ) * - CAST( + 63 * COALESCE ( COUNT( * ) DIV 36, + 4 + ( CAST( - 92 AS SIGNED ) + CAST( NULL AS DECIMAL ) ) ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6581
SELECT ( + MIN ( ALL + 27 ) ) * - CAST ( + 63 * COALESCE ( COUNT ( * ) / 36, + 4 + ( CAST ( - 92 AS INTEGER ) + CAST ( NULL AS REAL ) ) ) AS INTEGER )
----
0

query I rowsort
SELECT 17 * + 79
----
1343

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT MAX( - 11 ) - - - 41
----
-52

skipif mysql # not compatible
query I rowsort label-6583
SELECT MAX ( - 11 ) - - - 41
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-6584
SELECT DISTINCT + 96 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-6584
SELECT DISTINCT + 96 / + 97
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6585
SELECT 26 DIV - + 53 * + + 38
----
0

skipif mysql # not compatible
query I rowsort label-6585
SELECT 26 / - + 53 * + + 38
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6586
SELECT ALL 80 DIV - 42
----
-1

skipif mysql # not compatible
query I rowsort label-6586
SELECT ALL 80 / - 42
----
-1

query I rowsort
SELECT 32 + - 98 AS col0
----
-66

query I rowsort
SELECT ALL + 6 * + - 7 col2
----
-42

query I rowsort
SELECT 42 + ( - 23 ) * 16
----
-326

query I rowsort
SELECT ALL - 78 * - 8 AS col1
----
624

query II rowsort
SELECT 3 AS col2, 99 AS col0
----
3
99

query I rowsort
SELECT 61 * 88
----
5368

query I rowsort
SELECT ALL + 6 * 55 AS col1
----
330

query I rowsort
SELECT 31 * - 11
----
-341

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6595
SELECT + 29 * 44 + - CAST( + 42 AS SIGNED )
----
1234

skipif mysql # not compatible
query I rowsort label-6595
SELECT + 29 * 44 + - CAST ( + 42 AS INTEGER )
----
1234

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT DISTINCT + - 75 + 23 - + 23 * + COUNT( DISTINCT - 87 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT + - 75 + 23 - + 23 * + COUNT ( DISTINCT - 87 ) AS col1
----
-75

query I rowsort
SELECT DISTINCT - - 62 + - 22
----
40

query I rowsort
SELECT DISTINCT + 67 * + - 85 + - ( + 61 ) AS col1
----
-5756

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT DISTINCT + - 83 + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-6599
SELECT DISTINCT + - 83 + COUNT ( * )
----
-82

query I rowsort
SELECT - - 28 * + 13 + 82
----
446

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT ALL + + 32 + MIN( 65 )
----
97

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL + + 32 + MIN ( 65 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT - 89 - + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-6602
SELECT - 89 - + COUNT ( * )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6603
SELECT - ( - CASE + + 86 WHEN COUNT( DISTINCT + 14 ) * MIN( ALL 21 ) THEN + 97 * - NULLIF ( CAST( NULL AS SIGNED ), - 0 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6603
SELECT - ( - CASE + + 86 WHEN COUNT ( DISTINCT + 14 ) * MIN ( ALL 21 ) THEN + 97 * - NULLIF ( CAST ( NULL AS INTEGER ), - 0 ) END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT - COUNT( DISTINCT - 88 )
----
-1

skipif mysql # not compatible
query I rowsort label-6604
SELECT - COUNT ( DISTINCT - 88 )
----
-1

query I rowsort
SELECT - 3 - + - 2 - - 23 + 61 AS col1
----
83

query I rowsort
SELECT DISTINCT ( - 16 ) col2
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6607
SELECT ALL - + 65 * + 95 DIV ( COUNT( * ) ) + 94 * 83
----
1627

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL - + 65 * + 95 / ( COUNT ( * ) ) + 94 * 83
----
1627

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6608
SELECT DISTINCT - 90 / CAST( ( - 96 ) AS DECIMAL ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT - 90 / CAST ( ( - 96 ) AS REAL ) AS col1
----
0

query I rowsort
SELECT - + 57 + 94 AS col0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-6610
SELECT - 52 DIV - - 67
----
0

skipif mysql # not compatible
query I rowsort label-6610
SELECT - 52 / - - 67
----
0

query I rowsort
SELECT + 34 * - + 82 col0
----
-2788

query I rowsort
SELECT + 4 + 37 AS col2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-6613
SELECT 9 DIV + 68 - - + 30 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-6613
SELECT 9 / + 68 - - + 30 AS col0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-6614
SELECT ( + COUNT( * ) ) AS col1, ( + - 23 ) col0
----
1
-23

skipif mysql # not compatible
query II rowsort label-6614
SELECT ( + COUNT ( * ) ) AS col1, ( + - 23 ) col0
----
1
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6615
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * + 62
----
-62

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * + 62
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT + 98 * + - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-6616
SELECT + 98 * + - COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT + NULLIF ( - + 2, COUNT( * ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6617
SELECT + NULLIF ( - + 2, COUNT ( * ) ) AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6618
SELECT + 68 * MIN( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6618
SELECT + 68 * MIN ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT + 27 + + COUNT( * ) * + 32 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-6619
SELECT + 27 + + COUNT ( * ) * + 32 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT COALESCE ( - + COUNT( * ), - + 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-6620
SELECT COALESCE ( - + COUNT ( * ), - + 86 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT - 38 * COUNT( * ) + - 52 * - 49 AS col0
----
2510

skipif mysql # not compatible
query I rowsort label-6621
SELECT - 38 * COUNT ( * ) + - 52 * - 49 AS col0
----
2510

query I rowsort
SELECT - 38 * + 69
----
-2622

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT CASE + + 23 WHEN + 15 THEN NULL WHEN + - 35 / 55 THEN 75 ELSE COUNT( * ) END col2
----
1

skipif mysql # not compatible
query I rowsort label-6623
SELECT CASE + + 23 WHEN + 15 THEN NULL WHEN + - 35 / 55 THEN 75 ELSE COUNT ( * ) END col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT ALL 75 * COUNT( * ) * COUNT( * ) * + 48 + + 78 AS col1
----
3678

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL 75 * COUNT ( * ) * COUNT ( * ) * + 48 + + 78 AS col1
----
3678

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT ALL - 47 * COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL - 47 * COUNT ( * )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6626
SELECT CASE - - COALESCE ( - ( CAST( 10 AS SIGNED ) ), - 12, - 15 * + 62 ) WHEN 57 * + CASE WHEN + 55 IN ( CASE 90 WHEN - 29 THEN NULL WHEN - CASE + 38 WHEN 8 THEN 23 * - 5 + 88 END / + 64 THEN + ( ( 95 ) ) ELSE NULLIF ( 71, 63 * ( 34 ) ) * - COUNT( * ) END * - 83 ) THEN + 26 WHEN NOT ( ( + AVG ( DISTINCT 13 ) ) ) BETWEEN ( + COUNT( * ) ) AND ( + 35 ) THEN NULL END THEN - 46 - COALESCE ( 85, + 72, - 0 + - COUNT( * ) ) WHEN + 88 THEN 72 + 1 WHEN COUNT( * ) + MAX( 28 ) * + 87 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6626
SELECT CASE - - COALESCE ( - ( CAST ( 10 AS INTEGER ) ), - 12, - 15 * + 62 ) WHEN 57 * + CASE WHEN + 55 IN ( CASE 90 WHEN - 29 THEN NULL WHEN - CASE + 38 WHEN 8 THEN 23 * - 5 + 88 END / + 64 THEN + ( ( 95 ) ) ELSE NULLIF ( 71, 63 * ( 34 ) ) * - COUNT ( * ) END * - 83 ) THEN + 26 WHEN NOT ( ( + AVG ( DISTINCT 13 ) ) ) BETWEEN ( + COUNT ( * ) ) AND ( + 35 ) THEN NULL END THEN - 46 - COALESCE ( 85, + 72, - 0 + - COUNT ( * ) ) WHEN + 88 THEN 72 + 1 WHEN COUNT ( * ) + MAX ( 28 ) * + 87 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT ALL + - COALESCE ( - 78, 39 - - COALESCE ( 42, - 24 ) ) * 14 + - CASE 41 + COUNT( * ) WHEN 25 THEN - 99 ELSE - 96 + 4 END * COUNT( * ) AS col1
----
1184

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL + - COALESCE ( - 78, 39 - - COALESCE ( 42, - 24 ) ) * 14 + - CASE 41 + COUNT ( * ) WHEN 25 THEN - 99 ELSE - 96 + 4 END * COUNT ( * ) AS col1
----
1184

query I rowsort
SELECT DISTINCT - CASE + 88 WHEN + 59 THEN NULL WHEN 5 THEN 63 - 26 END * NULLIF ( + 66, - 56 * + 30 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT - COUNT( * ) - + 11
----
-12

skipif mysql # not compatible
query I rowsort label-6629
SELECT - COUNT ( * ) - + 11
----
-12

onlyif mysql # DIV for integer division: 
query II rowsort label-6630
SELECT - 34 DIV - 25, 46 AS col1
----
1
46

skipif mysql # not compatible
query II rowsort label-6630
SELECT - 34 / - 25, 46 AS col1
----
1
46

query I rowsort
SELECT - ( + 80 ) - + 33 AS col1
----
-113

query I rowsort
SELECT - 1 + + 59 + + - CASE - + 76 WHEN + 21 THEN + 25 WHEN 13 * 63 THEN ( - 82 ) ELSE - 14 + 25 END AS col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6633
SELECT - - 91 - - 93 + - 98 * + - 58 DIV COUNT( * ) + 21 * 57
----
7065

skipif mysql # not compatible
query I rowsort label-6633
SELECT - - 91 - - 93 + - 98 * + - 58 / COUNT ( * ) + 21 * 57
----
7065

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT DISTINCT MIN( DISTINCT - ( - 78 ) )
----
78

skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT MIN ( DISTINCT - ( - 78 ) )
----
78

query I rowsort
SELECT ALL - - 5 - + + 12 * + ( - - 41 ) * 71 AS col2
----
-34927

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT - - 5 * - - MIN( DISTINCT + + 37 ) + + - 56 AS col0
----
129

skipif mysql # not compatible
query I rowsort label-6636
SELECT - - 5 * - - MIN ( DISTINCT + + 37 ) + + - 56 AS col0
----
129

query I rowsort
SELECT DISTINCT - 0 * + - 79 * 27 AS col2
----
0

query I rowsort
SELECT DISTINCT - - 63 - 8 + - 45
----
10

query I rowsort
SELECT - + 72 * + ( + - 82 ) + ( ( + 56 ) )
----
5960

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6640
SELECT ALL - 50 - - 21 AS col0, CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-6640
SELECT ALL - 50 - - 21 AS col0, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
-29
NULL

query I rowsort
SELECT - 90 * + 65
----
-5850

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT - COALESCE ( - 23, 28, CASE 23 WHEN 93 THEN + 46 + 77 ELSE NULL END * COUNT( * ) ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-6642
SELECT - COALESCE ( - 23, 28, CASE 23 WHEN 93 THEN + 46 + 77 ELSE NULL END * COUNT ( * ) ) AS col1
----
23

query I rowsort
SELECT - ( + - 32 ) + + 88
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-6644
SELECT DISTINCT - + 63 DIV + COALESCE ( 31, + - 89, - 56 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT - + 63 / + COALESCE ( 31, + - 89, - 56 ) AS col0
----
-2

query I rowsort
SELECT - + 12 * - - 10 * - 34 * + 77
----
314160

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6646
SELECT - 77 + + CAST( NULL AS DECIMAL ) - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6646
SELECT - 77 + + CAST ( NULL AS REAL ) - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6647
SELECT - 98 DIV 6
----
-16

skipif mysql # not compatible
query I rowsort label-6647
SELECT - 98 / 6
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT ALL + SUM( ALL - - 62 ) * + SUM( 2 ) * 9
----
1116

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL + SUM ( ALL - - 62 ) * + SUM ( 2 ) * 9
----
1116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6649
SELECT ALL 84 DIV - COUNT( * ) + + - 27
----
-111

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL 84 / - COUNT ( * ) + + - 27
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT + NULLIF ( + - 15, + 60 + + + MAX( ALL - 14 ) * ( NULLIF ( 29, - MAX( ALL - 54 ) + 16 ) ) )
----
-15

skipif mysql # not compatible
query I rowsort label-6650
SELECT + NULLIF ( + - 15, + 60 + + + MAX ( ALL - 14 ) * ( NULLIF ( 29, - MAX ( ALL - 54 ) + 16 ) ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT ALL + MIN( ALL 32 )
----
32

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL + MIN ( ALL 32 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6652
SELECT - 32 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6652
SELECT - 32 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( - + 99, - - 54 / - + 32 * 14 * + AVG ( + 30 ) )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT DISTINCT + CASE NULLIF ( - ( - + SUM( + 36 ) ), + COUNT( ALL COALESCE ( + 93, + 7, 50 + 2 * 63 ) ) + ( - 82 ) * 21 ) WHEN + 49 THEN ( NULLIF ( ( + 7 ), - 71 / 95 - SUM( 24 + - 90 ) ) ) ELSE - 56 END
----
-56

skipif mysql # not compatible
query I rowsort label-6654
SELECT DISTINCT + CASE NULLIF ( - ( - + SUM ( + 36 ) ), + COUNT ( ALL COALESCE ( + 93, + 7, 50 + 2 * 63 ) ) + ( - 82 ) * 21 ) WHEN + 49 THEN ( NULLIF ( ( + 7 ), - 71 / 95 - SUM ( 24 + - 90 ) ) ) ELSE - 56 END
----
-56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6655
SELECT ALL - 84 / 73 + - CASE + NULLIF ( CASE + 65 WHEN 81 * CASE 86 * - 48 WHEN + CASE CASE + COUNT( * ) WHEN - 57 THEN NULL WHEN 48 * 91 THEN COALESCE ( + 64, ( - COUNT( * ) ) ) + - 73 END WHEN + 61 * 87 + 39 * 85 THEN + 36 WHEN + ( + 37 ) THEN + ( + ( 0 ) ) * 98 - + 71 ELSE 15 END * CAST( 87 - MIN( - 64 ) AS DECIMAL ) + 84 THEN 21 ELSE NULL END + + CASE + 40 WHEN + COUNT( * ) THEN 99 END * 87 THEN - 82 / + 5 END, + 3 - + 48 * 51 ) WHEN + 93 THEN + 33 + COUNT( DISTINCT ( - 10 ) - - 19 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL - 84 / 73 + - CASE + NULLIF ( CASE + 65 WHEN 81 * CASE 86 * - 48 WHEN + CASE CASE + COUNT ( * ) WHEN - 57 THEN NULL WHEN 48 * 91 THEN COALESCE ( + 64, ( - COUNT ( * ) ) ) + - 73 END WHEN + 61 * 87 + 39 * 85 THEN + 36 WHEN + ( + 37 ) THEN + ( + ( 0 ) ) * 98 - + 71 ELSE 15 END * CAST ( 87 - MIN ( - 64 ) AS REAL ) + 84 THEN 21 ELSE NULL END + + CASE + 40 WHEN + COUNT ( * ) THEN 99 END * 87 THEN - 82 / + 5 END, + 3 - + 48 * 51 ) WHEN + 93 THEN + 33 + COUNT ( DISTINCT ( - 10 ) - - 19 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + ( + ( NULLIF ( - + 74, - 27 ) ) )
----
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6657
SELECT DISTINCT - ( + CAST( NULL AS DECIMAL ) ) / 18 / 3 * COUNT( * ) + CAST( 60 + 10 AS DECIMAL ) + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT DISTINCT - ( + CAST ( NULL AS REAL ) ) / 18 / 3 * COUNT ( * ) + CAST ( 60 + 10 AS REAL ) + 11 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT DISTINCT - 67 DIV NULLIF ( + 17, + + 50 ) + 61 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT - 67 / NULLIF ( + 17, + + 50 ) + 61 AS col2
----
58

query I rowsort
SELECT 26 + - 38
----
-12

query II rowsort
SELECT DISTINCT 75 + + ( 82 ), + 43 AS col2
----
157
43

onlyif mysql # DIV for integer division: 
query I rowsort label-6661
SELECT DISTINCT + 39 * + 30 * - + ( + + 45 ) + 57 + - 40 DIV + 50 AS col1
----
-52593

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT + 39 * + 30 * - + ( + + 45 ) + 57 + - 40 / + 50 AS col1
----
-52593

query I rowsort
SELECT 75 * - + 20 AS col2
----
-1500

onlyif mysql # DIV for integer division: 
query I rowsort label-6663
SELECT 6 DIV - + 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6663
SELECT 6 / - + 75 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT - + 78 * - - 60 * + - 16 + - COUNT( * ) * + 68 * + 62 + CASE COUNT( * ) + + 70 WHEN - COUNT( * ) THEN 99 - 65 * 47 END * 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6664
SELECT - + 78 * - - 60 * + - 16 + - COUNT ( * ) * + 68 * + 62 + CASE COUNT ( * ) + + 70 WHEN - COUNT ( * ) THEN 99 - 65 * 47 END * 76 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 15 - + + 2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-6666
SELECT DISTINCT - 12 DIV + ( - 56 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6666
SELECT DISTINCT - 12 / + ( - 56 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6667
SELECT + 26 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6667
SELECT + 26 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - + 27 * - - 80 * - 62 + 71 AS col2
----
133991

query I rowsort
SELECT DISTINCT - 63 * - 82
----
5166

query I rowsort
SELECT DISTINCT - - 61 * + 90
----
5490

query I rowsort
SELECT ALL + + 98 * + - 68 AS col2
----
-6664

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT - 75 * - - 17 * COUNT( * ) * - COUNT( * )
----
1275

skipif mysql # not compatible
query I rowsort label-6672
SELECT - 75 * - - 17 * COUNT ( * ) * - COUNT ( * )
----
1275

query II rowsort
SELECT DISTINCT 73, ( + 14 ) col1
----
73
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6674
SELECT DISTINCT 28 * COALESCE ( - - 21, + CASE + - 11 WHEN 71 - - 50 THEN NULL ELSE + 42 DIV - COUNT( * ) END, + CAST( 56 AS SIGNED ) * 39 + 2 * 70, 48 * 9 ) AS col0
----
588

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT 28 * COALESCE ( - - 21, + CASE + - 11 WHEN 71 - - 50 THEN NULL ELSE + 42 / - COUNT ( * ) END, + CAST ( 56 AS INTEGER ) * 39 + 2 * 70, 48 * 9 ) AS col0
----
588

query II rowsort
SELECT DISTINCT 29 AS col2, + 90 col0
----
29
90

query II rowsort
SELECT 19 * + 63, 84 col1
----
1197
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT ALL 63 + COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL 63 + COUNT ( * ) AS col0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6678
SELECT DISTINCT 82 AS col1, COUNT( * ) + + ( 46 ) - - ( - 12 ) + 35 DIV - ( 97 DIV 23 ) AS col2
----
82
27

skipif mysql # not compatible
query II rowsort label-6678
SELECT DISTINCT 82 AS col1, COUNT ( * ) + + ( 46 ) - - ( - 12 ) + 35 / - ( 97 / 23 ) AS col2
----
82
27

query I rowsort
SELECT ALL + 19 + + 58 AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6680
SELECT 35 - 15 * 87 + - 55 + COUNT( * ) - - 40 + 31 * - CAST( NULL AS SIGNED ) * 43 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6680
SELECT 35 - 15 * 87 + - 55 + COUNT ( * ) - - 40 + 31 * - CAST ( NULL AS INTEGER ) * 43 col0
----
NULL

query II rowsort
SELECT DISTINCT 40 AS col0, - 0 * - 75
----
40
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6682
SELECT DISTINCT + ( + ( 49 ) ) + 48 AS col0, + COALESCE ( - 94, + COUNT( * ), - 68, 70 ) col2
----
97
-94

skipif mysql # not compatible
query II rowsort label-6682
SELECT DISTINCT + ( + ( 49 ) ) + 48 AS col0, + COALESCE ( - 94, + COUNT ( * ), - 68, 70 ) col2
----
97
-94

query I rowsort
SELECT ALL + 19 + + + 43
----
62

query I rowsort
SELECT 35 + + - CASE - 47 WHEN 21 * + 7 - - 5 THEN + 35 END AS col2
----
NULL

query I rowsort
SELECT ALL + 74 + - 9
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT ALL - ( - 30 ) + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL - ( - 30 ) + + COUNT ( * )
----
31

query I rowsort
SELECT ALL 97 + + 29
----
126

query I rowsort
SELECT ALL + ( + 68 ) * - + ( + - ( 45 ) ) col1
----
3060

query II rowsort
SELECT + 67 col1, + 81 * ( - 73 ) AS col2
----
67
-5913

onlyif mysql # aggregate syntax: 
query II rowsort label-6690
SELECT 70 + ( + ( + 18 ) ), COUNT( * ) AS col2
----
88
1

skipif mysql # not compatible
query II rowsort label-6690
SELECT 70 + ( + ( + 18 ) ), COUNT ( * ) AS col2
----
88
1

query I rowsort
SELECT - 7 + - + 58 + + 88 * + 23 * + 57 + + 90 + 87 * + 36 AS col0
----
118525

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT + 47 * + ( CASE COUNT( ALL - + 93 ) WHEN 7 THEN 89 WHEN - 44 + - 44 THEN 98 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6692
SELECT + 47 * + ( CASE COUNT ( ALL - + 93 ) WHEN 7 THEN 89 WHEN - 44 + - 44 THEN 98 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6693
SELECT AVG ( - 45 ) * - 0 * 77 - CAST( NULL AS SIGNED ) + + - 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6693
SELECT AVG ( - 45 ) * - 0 * 77 - CAST ( NULL AS INTEGER ) + + - 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6694
SELECT ALL + - COUNT( * ) DIV - 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL + - COUNT ( * ) / - 32 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT + + 89 * 25 * COUNT( * ) * - 55 + + 62
----
-122313

skipif mysql # not compatible
query I rowsort label-6695
SELECT + + 89 * 25 * COUNT ( * ) * - 55 + + 62
----
-122313

query I rowsort
SELECT 90 * + - 33
----
-2970

query I rowsort
SELECT + ( + + 28 ) AS col2
----
28

query I rowsort
SELECT 55 * 88 + - 98
----
4742

onlyif mysql # DIV for integer division: 
query II rowsort label-6699
SELECT 10, 84 DIV - - 16 col1
----
10
5

skipif mysql # not compatible
query II rowsort label-6699
SELECT 10, 84 / - - 16 col1
----
10
5

query I rowsort
SELECT DISTINCT 9 - - - ( + 8 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6701
SELECT DISTINCT - - CAST( NULL AS SIGNED ) col2, ( 10 ) AS col0
----
NULL
10

skipif mysql # not compatible
query II rowsort label-6701
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col2, ( 10 ) AS col0
----
NULL
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT ALL - 16 - - - 69 + - + MIN( - 79 ) + + + 92 * 97 * - COALESCE ( 59, + ( 63 ) )
----
-526522

skipif mysql # not compatible
query I rowsort label-6702
SELECT ALL - 16 - - - 69 + - + MIN ( - 79 ) + + + 92 * 97 * - COALESCE ( 59, + ( 63 ) )
----
-526522

query I rowsort
SELECT ALL 36 * - + 69 * 20 * 56
----
-2782080

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT - - 88 * + 32 + + ( - COUNT( * ) ) * - + ( - - 25 ) - + 24
----
2817

skipif mysql # not compatible
query I rowsort label-6704
SELECT - - 88 * + 32 + + ( - COUNT ( * ) ) * - + ( - - 25 ) - + 24
----
2817

query I rowsort
SELECT - CASE + 21 WHEN - 2 THEN NULL ELSE - 15 END * + 17
----
255

query I rowsort
SELECT + 72 + + - CASE - 26 WHEN - + 82 * + ( 90 ) * 7 THEN NULL WHEN - 65 THEN - AVG ( ( 54 ) ) ELSE NULL END
----
NULL

query II rowsort
SELECT - 9, 90 col2
----
-9
90

query I rowsort
SELECT - 55 - + 22
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6709
SELECT - CAST( - - 67 AS SIGNED ) * - 48 * 94 + - COALESCE ( 38, 78 + + NULLIF ( 35, COALESCE ( COALESCE ( NULLIF ( 42, NULLIF ( ( 30 ), + 50 * COUNT( * ) ) ), + CASE - 91 WHEN + 84 THEN NULL WHEN 96 * CAST( NULL AS SIGNED ) THEN + 52 - + 11 * 60 ELSE + 60 END, - 59 ), + 22 * - 44, + NULLIF ( + 24, + 49 - + CAST( NULL AS SIGNED ) * + 82 ) ) ) )
----
302266

skipif mysql # not compatible
query I rowsort label-6709
SELECT - CAST ( - - 67 AS INTEGER ) * - 48 * 94 + - COALESCE ( 38, 78 + + NULLIF ( 35, COALESCE ( COALESCE ( NULLIF ( 42, NULLIF ( ( 30 ), + 50 * COUNT ( * ) ) ), + CASE - 91 WHEN + 84 THEN NULL WHEN 96 * CAST ( NULL AS INTEGER ) THEN + 52 - + 11 * 60 ELSE + 60 END, - 59 ), + 22 * - 44, + NULLIF ( + 24, + 49 - + CAST ( NULL AS INTEGER ) * + 82 ) ) ) )
----
302266

query I rowsort
SELECT 59 - - + 83 * 84 * + - 31
----
-216073

onlyif mysql # aggregate syntax: 
query II rowsort label-6711
SELECT ALL 16, 79 * + COUNT( * ) col1
----
16
79

skipif mysql # not compatible
query II rowsort label-6711
SELECT ALL 16, 79 * + COUNT ( * ) col1
----
16
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6712
SELECT - 12 + - 62 - - 33 DIV + NULLIF ( + COUNT( * ), - ( 13 ) DIV CAST( NULL AS SIGNED ) )
----
-41

skipif mysql # not compatible
query I rowsort label-6712
SELECT - 12 + - 62 - - 33 / + NULLIF ( + COUNT ( * ), - ( 13 ) / CAST ( NULL AS INTEGER ) )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6713
SELECT DISTINCT CAST( - 64 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT CAST ( - 64 AS INTEGER )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT ALL + ( SUM( DISTINCT - 52 ) ) + 3 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL + ( SUM ( DISTINCT - 52 ) ) + 3 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT ALL CASE - 25 WHEN - + 32 THEN CASE - CASE 79 WHEN + 98 THEN - 16 / + MIN( ALL 36 ) WHEN - COUNT( * ) THEN NULL ELSE NULL END WHEN 48 * - 47 THEN 7 * - 94 + + 96 WHEN 55 THEN 53 * + 72 END ELSE NULL END / - COALESCE ( - 87 + 40, + CASE - 17 WHEN COUNT( * ) THEN + COUNT( * ) * + 0 + 52 WHEN + 25 / - 50 THEN NULL END, + 28, + COUNT( 42 ) - 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6715
SELECT ALL CASE - 25 WHEN - + 32 THEN CASE - CASE 79 WHEN + 98 THEN - 16 / + MIN ( ALL 36 ) WHEN - COUNT ( * ) THEN NULL ELSE NULL END WHEN 48 * - 47 THEN 7 * - 94 + + 96 WHEN 55 THEN 53 * + 72 END ELSE NULL END / - COALESCE ( - 87 + 40, + CASE - 17 WHEN COUNT ( * ) THEN + COUNT ( * ) * + 0 + 52 WHEN + 25 / - 50 THEN NULL END, + 28, + COUNT ( 42 ) - 22 )
----
NULL

query I rowsort
SELECT ALL 40 + + + 61
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT COUNT( * ) + + + 57 + + + 33 * - 45
----
-1427

skipif mysql # not compatible
query I rowsort label-6717
SELECT COUNT ( * ) + + + 57 + + + 33 * - 45
----
-1427

query I rowsort
SELECT DISTINCT ( + 68 ) * + 42 AS col0
----
2856

onlyif mysql # DIV for integer division: 
query I rowsort label-6719
SELECT ( + 96 ) DIV - + 97
----
0

skipif mysql # not compatible
query I rowsort label-6719
SELECT ( + 96 ) / - + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT 45 + - + MIN( 66 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-6720
SELECT 45 + - + MIN ( 66 ) AS col0
----
-21

query I rowsort
SELECT ( 71 ) * + 63 * 68 AS col0
----
304164

query I rowsort
SELECT 54 + + - 77 + + - 86
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-6723
SELECT DISTINCT MAX( ALL - 11 ), + 49 AS col0
----
-11
49

skipif mysql # not compatible
query II rowsort label-6723
SELECT DISTINCT MAX ( ALL - 11 ), + 49 AS col0
----
-11
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6724
SELECT ALL - 88 + + - CAST( + 81 AS SIGNED ) AS col0
----
-169

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL - 88 + + - CAST ( + 81 AS INTEGER ) AS col0
----
-169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6725
SELECT - COALESCE ( 63, - 96, - + 74 DIV - - 8 + + - SUM( + 95 ) * + 95 - + 24 ) * + 13 AS col0
----
-819

skipif mysql # not compatible
query I rowsort label-6725
SELECT - COALESCE ( 63, - 96, - + 74 / - - 8 + + - SUM ( + 95 ) * + 95 - + 24 ) * + 13 AS col0
----
-819

query I rowsort
SELECT COALESCE ( + 18, + CASE WHEN NOT 76 NOT BETWEEN + CASE - - NULLIF ( - 77, 60 ) WHEN + 26 THEN + 98 + 26 WHEN 88 + + 10 THEN + 75 ELSE NULL END AND + 31 THEN 0 WHEN NOT 94 IS NULL THEN - 68 WHEN - ( 24 ) IS NOT NULL THEN NULL END + 53, - 74 + + 8 )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6727
SELECT - 40 + + MIN( DISTINCT - + NULLIF ( + 51, + 28 ) ) * SUM( ALL + 56 ) DIV - 57
----
10

skipif mysql # not compatible
query I rowsort label-6727
SELECT - 40 + + MIN ( DISTINCT - + NULLIF ( + 51, + 28 ) ) * SUM ( ALL + 56 ) / - 57
----
10

query I rowsort
SELECT + - 99 * + - 14 - - 73 + + 63 col0
----
1522

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6729
SELECT DISTINCT + 56 * + CASE + CAST( NULL AS DECIMAL ) WHEN - - 70 THEN NULL WHEN - 34 + 46 + 38 THEN + 97 ELSE NULL END * - ( COUNT( * ) / + 6 ) + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT + 56 * + CASE + CAST ( NULL AS REAL ) WHEN - - 70 THEN NULL WHEN - 34 + 46 + 38 THEN + 97 ELSE NULL END * - ( COUNT ( * ) / + 6 ) + 34
----
NULL

query I rowsort
SELECT ALL + + 32 * 75 + - 97 * 0 * + - 2 AS col2
----
2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6731
SELECT - CAST( - 37 AS SIGNED ) * - 54 + 46 AS col1
----
-1952

skipif mysql # not compatible
query I rowsort label-6731
SELECT - CAST ( - 37 AS INTEGER ) * - 54 + 46 AS col1
----
-1952

query I rowsort
SELECT DISTINCT + - ( - + ( + - 96 ) ) AS col2
----
-96

query I rowsort
SELECT - - 68 * + 29
----
1972

query I rowsort
SELECT - + 99 * 68 AS col2
----
-6732

query I rowsort
SELECT + + 93 * 86
----
7998

onlyif mysql # DIV for integer division: 
query I rowsort label-6736
SELECT + - NULLIF ( + ( + 16 ), - 87 ) DIV + - COALESCE ( + 84, + 36, 11 ) * + ( 61 * 20 + - 22 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6736
SELECT + - NULLIF ( + ( + 16 ), - 87 ) / + - COALESCE ( + 84, + 36, 11 ) * + ( 61 * 20 + - 22 ) AS col1
----
0

query I rowsort
SELECT ALL 14 * 77 + + 26
----
1104

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT - MAX( 71 ) * - - 84 AS col1
----
-5964

skipif mysql # not compatible
query I rowsort label-6738
SELECT - MAX ( 71 ) * - - 84 AS col1
----
-5964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6739
SELECT ALL + 33 * - ( - MIN( + - CAST( NULL AS SIGNED ) ) ) * + + 64 + + COALESCE ( 87, + 12 + 11 ) - - 22 * - 13 + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL + 33 * - ( - MIN ( + - CAST ( NULL AS INTEGER ) ) ) * + + 64 + + COALESCE ( 87, + 12 + 11 ) - - 22 * - 13 + 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT DISTINCT - ( + ( 73 ) ) + COUNT( * ) + NULLIF ( + MIN( - + 79 ), - 86 + 94 ) * + 30
----
-2442

skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT - ( + ( 73 ) ) + COUNT ( * ) + NULLIF ( + MIN ( - + 79 ), - 86 + 94 ) * + 30
----
-2442

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT ALL + COUNT( * ) + + ( + 56 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL + COUNT ( * ) + + ( + 56 ) AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6742
SELECT - + ( + CAST( - 4 AS SIGNED ) ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6742
SELECT - + ( + CAST ( - 4 AS INTEGER ) ) AS col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6743
SELECT ALL - CAST( 41 AS SIGNED ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL - CAST ( 41 AS INTEGER ) AS col0
----
-41

query I rowsort
SELECT ALL + 92 * - 25 * + 97 * 39 * 3
----
-26102700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6745
SELECT DISTINCT - ( + 98 ) + + CAST( 22 AS SIGNED ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-6745
SELECT DISTINCT - ( + 98 ) + + CAST ( 22 AS INTEGER ) AS col0
----
-76

query I rowsort
SELECT DISTINCT ( 91 ) + + 66 AS col1
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT - 39 - ( + 26 ) - + SUM( ALL + - ( - + 60 ) ) - - 78 * 34 AS col1
----
2527

skipif mysql # not compatible
query I rowsort label-6747
SELECT - 39 - ( + 26 ) - + SUM ( ALL + - ( - + 60 ) ) - - 78 * 34 AS col1
----
2527

onlyif mysql # aggregate syntax: 
query II rowsort label-6748
SELECT - CASE 34 WHEN + 93 THEN + COUNT( * ) END, + 0 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6748
SELECT - CASE 34 WHEN + 93 THEN + COUNT ( * ) END, + 0 AS col1
----
NULL
0

query I rowsort
SELECT + 16 - - - 18 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6750
SELECT + COALESCE ( 27, 86 DIV 55 + 66 * 84 * - - COUNT( * ) ) * + - COALESCE ( - 99, 54 * 39 ) AS col2
----
2673

skipif mysql # not compatible
query I rowsort label-6750
SELECT + COALESCE ( 27, 86 / 55 + 66 * 84 * - - COUNT ( * ) ) * + - COALESCE ( - 99, 54 * 39 ) AS col2
----
2673

query I rowsort
SELECT + 92 + + 79 AS col2
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT ALL - ( + COUNT( * ) ) + + 15 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL - ( + COUNT ( * ) ) + + 15 AS col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6753
SELECT ALL CAST( + 92 AS SIGNED ) + 71 + - 50 + - - CAST( NULL AS SIGNED ) * + ( - 62 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL CAST ( + 92 AS INTEGER ) + 71 + - 50 + - - CAST ( NULL AS INTEGER ) * + ( - 62 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT DISTINCT COUNT( * ) + + + ( + NULLIF ( - 43, - - 6 ) )
----
-42

skipif mysql # not compatible
query I rowsort label-6754
SELECT DISTINCT COUNT ( * ) + + + ( + NULLIF ( - 43, - - 6 ) )
----
-42

query I rowsort
SELECT - COALESCE ( 41, + 15, - 87 ) AS col1
----
-41

query I rowsort
SELECT ALL 56 - + + 93 * - 52 AS col1
----
4892

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6757
SELECT DISTINCT 26 DIV CAST( - + 35 AS SIGNED ) AS col2, COUNT( * ) * 46 * COALESCE ( - 54, + 57 * - COUNT( * ) ) - - 77
----
0
-2407

skipif mysql # not compatible
query II rowsort label-6757
SELECT DISTINCT 26 / CAST ( - + 35 AS INTEGER ) AS col2, COUNT ( * ) * 46 * COALESCE ( - 54, + 57 * - COUNT ( * ) ) - - 77
----
0
-2407

query I rowsort
SELECT + 50 * - + 67
----
-3350

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT DISTINCT 61 * - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-6759
SELECT DISTINCT 61 * - COUNT ( * )
----
-61

query I rowsort
SELECT ALL 20 - 34 * + 97 * 62 AS col2
----
-204456

query I rowsort
SELECT + 2 + 37
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT + 19 * SUM( - - 73 ) AS col1
----
1387

skipif mysql # not compatible
query I rowsort label-6762
SELECT + 19 * SUM ( - - 73 ) AS col1
----
1387

query I rowsort
SELECT + + 38 * + COALESCE ( - 53, 41 ) + - - 40 AS col0
----
-1974

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT DISTINCT COUNT( * ) * 95
----
95

skipif mysql # not compatible
query I rowsort label-6764
SELECT DISTINCT COUNT ( * ) * 95
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6765
SELECT ALL + + COALESCE ( 45, + NULLIF ( - CAST( NULL AS SIGNED ), - + 67 ) ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL + + COALESCE ( 45, + NULLIF ( - CAST ( NULL AS INTEGER ), - + 67 ) ) AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6766
SELECT + + CAST( 61 AS SIGNED ) DIV + + CAST( ( - - 44 ) AS SIGNED ) + 1 + 15
----
17

skipif mysql # not compatible
query I rowsort label-6766
SELECT + + CAST ( 61 AS INTEGER ) / + + CAST ( ( - - 44 ) AS INTEGER ) + 1 + 15
----
17

query II rowsort
SELECT ALL + 40, 2 AS col2
----
40
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6768
SELECT + - 27 AS col2, - 16 + + COUNT( * ) * + 88 AS col0
----
-27
72

skipif mysql # not compatible
query II rowsort label-6768
SELECT + - 27 AS col2, - 16 + + COUNT ( * ) * + 88 AS col0
----
-27
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT - - COUNT( * ) + + 0 + - - 49 + - + 0 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-6769
SELECT - - COUNT ( * ) + + 0 + - - 49 + - + 0 AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6770
SELECT COUNT( * ) AS col2, - COUNT( CAST( - - 10 AS SIGNED ) ) + + - 93 AS col0
----
1
-94

skipif mysql # not compatible
query II rowsort label-6770
SELECT COUNT ( * ) AS col2, - COUNT ( CAST ( - - 10 AS INTEGER ) ) + + - 93 AS col0
----
1
-94

query I rowsort
SELECT - 14 * 1 + - 35
----
-49

query I rowsort
SELECT DISTINCT + + 54 * - 78
----
-4212

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT - + COUNT( * ) * 90 + - 73
----
-163

skipif mysql # not compatible
query I rowsort label-6773
SELECT - + COUNT ( * ) * 90 + - 73
----
-163

onlyif mysql # DIV for integer division: 
query I rowsort label-6774
SELECT ALL 41 DIV - 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL 41 / - 82 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6775
SELECT DISTINCT - COALESCE ( - 15, 8 DIV - 49 + 90 + + + 60 ) * - 32 * + ( COUNT( * ) ) * 1 + + 83
----
-397

skipif mysql # not compatible
query I rowsort label-6775
SELECT DISTINCT - COALESCE ( - 15, 8 / - 49 + 90 + + + 60 ) * - 32 * + ( COUNT ( * ) ) * 1 + + 83
----
-397

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT - COUNT( * ) + 90 + + + 29 * + 24 AS col2
----
785

skipif mysql # not compatible
query I rowsort label-6776
SELECT - COUNT ( * ) + 90 + + + 29 * + 24 AS col2
----
785

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6777
SELECT + ( CAST( 5 AS SIGNED ) )
----
5

skipif mysql # not compatible
query I rowsort label-6777
SELECT + ( CAST ( 5 AS INTEGER ) )
----
5

query I rowsort
SELECT ALL - - 12 * - 23
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT DISTINCT + - 55 * - COUNT( * ) + + 30 * 3 + - - 75 col0
----
220

skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT + - 55 * - COUNT ( * ) + + 30 * 3 + - - 75 col0
----
220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6780
SELECT COALESCE ( CAST( + ( - - MIN( ALL - 59 ) ) AS SIGNED ), + + MIN( ALL 46 ) ), 95 AS col1
----
-59
95

skipif mysql # not compatible
query II rowsort label-6780
SELECT COALESCE ( CAST ( + ( - - MIN ( ALL - 59 ) ) AS INTEGER ), + + MIN ( ALL 46 ) ), 95 AS col1
----
-59
95

onlyif mysql # aggregate syntax: 
query II rowsort label-6781
SELECT - COUNT( * ) + 21 AS col0, + ( - 4 )
----
20
-4

skipif mysql # not compatible
query II rowsort label-6781
SELECT - COUNT ( * ) + 21 AS col0, + ( - 4 )
----
20
-4

query I rowsort
SELECT - 40 + + + ( + ( 90 ) ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT - 98 * - ( + COUNT( * ) ) * 9 - - 31
----
913

skipif mysql # not compatible
query I rowsort label-6783
SELECT - 98 * - ( + COUNT ( * ) ) * 9 - - 31
----
913

query I rowsort
SELECT NULLIF ( 28, - 61 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT - 16 + - - COUNT( * ) * - 53
----
-69

skipif mysql # not compatible
query I rowsort label-6785
SELECT - 16 + - - COUNT ( * ) * - 53
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-6786
SELECT ALL - 15 DIV - 26
----
0

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL - 15 / - 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT DISTINCT ( + NULLIF ( 75, - 54 / + COUNT( * ) + 84 ) ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT ( + NULLIF ( 75, - 54 / + COUNT ( * ) + 84 ) ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6788
SELECT DISTINCT 6 * - 32 + - + 94 * - 5 AS col2, - COUNT( * ) AS col1
----
278
-1

skipif mysql # not compatible
query II rowsort label-6788
SELECT DISTINCT 6 * - 32 + - + 94 * - 5 AS col2, - COUNT ( * ) AS col1
----
278
-1

query I rowsort
SELECT DISTINCT ( - NULLIF ( - 50, + - 15 ) ) AS col0
----
50

query I rowsort
SELECT DISTINCT + 43 * + 32 AS col0
----
1376

query I rowsort
SELECT ALL + 89 - - - 78
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6792
SELECT 79 + - CAST( NULL AS SIGNED ) + + + SUM( ALL - 3 ) / - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT 79 + - CAST ( NULL AS INTEGER ) + + + SUM ( ALL - 3 ) / - 98
----
NULL

query I rowsort
SELECT ALL 20 * 42 AS col2
----
840

query I rowsort
SELECT ALL 38 * 9 AS col2
----
342

query I rowsort
SELECT ALL - 26 * - 43
----
1118

query I rowsort
SELECT 76 * + - 58
----
-4408

onlyif mysql # aggregate syntax: 
query II rowsort label-6797
SELECT ALL COUNT( * ) * 24 AS col2, 90 * + + 53 * - 70
----
24
-333900

skipif mysql # not compatible
query II rowsort label-6797
SELECT ALL COUNT ( * ) * 24 AS col2, 90 * + + 53 * - 70
----
24
-333900

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT - SUM( DISTINCT + 25 ) * + - MAX( 18 ) - ( - ( 36 ) )
----
486

skipif mysql # not compatible
query I rowsort label-6798
SELECT - SUM ( DISTINCT + 25 ) * + - MAX ( 18 ) - ( - ( 36 ) )
----
486

query I rowsort
SELECT ALL 59 * + 11
----
649

query I rowsort
SELECT ALL - 46 + - - 59 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT 75 * 85 * - NULLIF ( + ( - COUNT( * ) ), + - 12 )
----
6375

skipif mysql # not compatible
query I rowsort label-6801
SELECT 75 * 85 * - NULLIF ( + ( - COUNT ( * ) ), + - 12 )
----
6375

query I rowsort
SELECT DISTINCT 91 + - 96 AS col0
----
-5

query I rowsort
SELECT DISTINCT 30 * 75
----
2250

query I rowsort
SELECT ALL - + 76 + - 86 + + + CASE WHEN NOT NULL IN ( + ( - 61 ) ) THEN + 68 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT ALL COUNT( * ) * - 76 * + 56 col2
----
-4256

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL COUNT ( * ) * - 76 * + 56 col2
----
-4256

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT ALL - - SUM( ALL 83 )
----
83

skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL - - SUM ( ALL 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT + MAX( 26 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6807
SELECT + MAX ( 26 ) AS col2
----
26

query I rowsort
SELECT 24 * - + ( + - 27 ) * - 50 + - 2
----
-32402

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT 64 * + ( NULLIF ( - - MIN( ALL 54 ), - - COUNT( * ) ) )
----
3456

skipif mysql # not compatible
query I rowsort label-6809
SELECT 64 * + ( NULLIF ( - - MIN ( ALL 54 ), - - COUNT ( * ) ) )
----
3456

query I rowsort
SELECT ALL - 20 - - 42
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT ALL + 56 - - COUNT( * ) col2
----
57

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL + 56 - - COUNT ( * ) col2
----
57

query I rowsort
SELECT DISTINCT - 2 * - 82 AS col0
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT ALL MAX( + 97 ) * + 61 AS col2
----
5917

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL MAX ( + 97 ) * + 61 AS col2
----
5917

query II rowsort
SELECT DISTINCT 41, + 93 AS col1
----
41
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6815
SELECT CAST( NULL AS SIGNED ) + - ( + 6 ) + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6815
SELECT CAST ( NULL AS INTEGER ) + - ( + 6 ) + 69 AS col2
----
NULL

query I rowsort
SELECT NULLIF ( - - 39, + 46 ) * - 71 AS col1
----
-2769

query I rowsort
SELECT 79 * 58 col2
----
4582

query I rowsort
SELECT 50 - + 33 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT ALL + 67 / + + NULLIF ( - + CASE - COUNT( * ) WHEN + 78 + 69 THEN - + 21 * - + 30 * + - COUNT( * ) * + 30 - + 72 END, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL + 67 / + + NULLIF ( - + CASE - COUNT ( * ) WHEN + 78 + 69 THEN - + 21 * - + 30 * + - COUNT ( * ) * + 30 - + 72 END, COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL + 67 + 8 AS col2
----
75

query I rowsort
SELECT - 47 - 36 col0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6822
SELECT - 91 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6822
SELECT - 91 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6823
SELECT 80 - - 5 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6823
SELECT 80 - - 5 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - - 12 * - 55 AS col0
----
-660

query I rowsort
SELECT ( + - 90 ) * - 46
----
4140

query I rowsort
SELECT - 74 + + 53
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT + 13 + - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-6827
SELECT + 13 + - COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT ALL + - COUNT( ALL 19 ) + + 93 * + 92 AS col1
----
8555

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL + - COUNT ( ALL 19 ) + + 93 * + 92 AS col1
----
8555

query I rowsort
SELECT ALL + 17 + 21 AS col0
----
38

query I rowsort
SELECT ( - 32 ) + + 65 * + 88 AS col2
----
5688

onlyif mysql # DIV for integer division: 
query I rowsort label-6831
SELECT 90 DIV + 35 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6831
SELECT 90 / + 35 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT - 41 * - COUNT( * ) + - 53 * - 77 + - 35
----
4087

skipif mysql # not compatible
query I rowsort label-6832
SELECT - 41 * - COUNT ( * ) + - 53 * - 77 + - 35
----
4087

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT COALESCE ( + - 67, - 68 + - COUNT( * ) ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-6833
SELECT COALESCE ( + - 67, - 68 + - COUNT ( * ) ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT DISTINCT - COALESCE ( - 55, - - 15 ) * + 67 * - - 36 + + - NULLIF ( + COUNT( DISTINCT 8 ), - 33 * + + 32 ) AS col1
----
132659

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT - COALESCE ( - 55, - - 15 ) * + 67 * - - 36 + + - NULLIF ( + COUNT ( DISTINCT 8 ), - 33 * + + 32 ) AS col1
----
132659

query I rowsort
SELECT + 29 * - 45 * - 12 + + - ( - - 77 )
----
15583

query I rowsort
SELECT + ( 13 ) + + - 66 * 95 AS col0
----
-6257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6837
SELECT DISTINCT ( NULLIF ( - - 54, + + 43 ) ) * + 18 * + - CAST( NULL AS SIGNED ) * 88 - - + COALESCE ( - - COALESCE ( - - 81, + ( - 85 ) + + 93 * ( + 18 ) ), - 12 - ( + 65 ), 34 * + 2 ) / 54
----
NULL

skipif mysql # not compatible
query I rowsort label-6837
SELECT DISTINCT ( NULLIF ( - - 54, + + 43 ) ) * + 18 * + - CAST ( NULL AS INTEGER ) * 88 - - + COALESCE ( - - COALESCE ( - - 81, + ( - 85 ) + + 93 * ( + 18 ) ), - 12 - ( + 65 ), 34 * + 2 ) / 54
----
NULL

query I rowsort
SELECT ALL 75 * - 23
----
-1725

query I rowsort
SELECT + 86 - - 49 * ( + 89 ) AS col2
----
4447

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT + MIN( + - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-6840
SELECT + MIN ( + - 12 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6841
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) - - + 42 * + 23 + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS REAL ) - - + 42 * + 23 + 33 AS col2
----
NULL

query I rowsort
SELECT + 50 * + - 12 * 4
----
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT COUNT( - 5 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6843
SELECT COUNT ( - 5 ) AS col1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6844
SELECT - CAST( NULL AS DECIMAL ) + + ( 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6844
SELECT - CAST ( NULL AS REAL ) + + ( 57 )
----
NULL

query I rowsort
SELECT + 85 * + + 18 col1
----
1530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6846
SELECT - MAX( DISTINCT + - 3 ) * + - 98 * 89 + + + 18 DIV - - COUNT( * ) DIV - ( COUNT( * ) ) + COALESCE ( + 54, - COUNT( * ) ) + + 43
----
-26087

skipif mysql # not compatible
query I rowsort label-6846
SELECT - MAX ( DISTINCT + - 3 ) * + - 98 * 89 + + + 18 / - - COUNT ( * ) / - ( COUNT ( * ) ) + COALESCE ( + 54, - COUNT ( * ) ) + + 43
----
-26087

query I rowsort
SELECT - COALESCE ( 18, - 41 )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6848
SELECT ALL 61 + + SUM( DISTINCT + NULLIF ( - + 19, + - 77 + + CAST( NULL AS SIGNED ) ) ) + 10 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL 61 + + SUM ( DISTINCT + NULLIF ( - + 19, + - 77 + + CAST ( NULL AS INTEGER ) ) ) + 10 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT - CASE - 40 WHEN 70 + 90 + + + 28 * - 63 THEN - - 41 * - 70 * + - MIN( + 30 ) / + 73 + - 67 / - 80 - + 18 * 82 WHEN - NULLIF ( ( 84 ), 72 / - 89 + + ( - 87 ) ) THEN 49 END + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-6849
SELECT - CASE - 40 WHEN 70 + 90 + + + 28 * - 63 THEN - - 41 * - 70 * + - MIN ( + 30 ) / + 73 + - 67 / - 80 - + 18 * 82 WHEN - NULLIF ( ( 84 ), 72 / - 89 + + ( - 87 ) ) THEN 49 END + + 46
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6850
SELECT DISTINCT 96 + - + 81 DIV + - COALESCE ( + COALESCE ( 73, - 48, - 67 + - 69 ), - 97 * 56 * - 11, + 72 )
----
97

skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT 96 + - + 81 / + - COALESCE ( + COALESCE ( 73, - 48, - 67 + - 69 ), - 97 * 56 * - 11, + 72 )
----
97

query I rowsort
SELECT - COALESCE ( + 40, 72 )
----
-40

query II rowsort
SELECT - 39, - 76 AS col0
----
-39
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6853
SELECT ALL + COUNT( * ) + + COALESCE ( + 44, - NULLIF ( - COALESCE ( + + 62, 97 DIV + + 62 * + 35 + - 34 * + 38 + - 6 ), + 78 + 47 * CASE 30 + 64 WHEN + 10 + - 95 * COUNT( * ) THEN NULL WHEN - 99 + ( + 7 ) * 66 THEN 9 ELSE NULL END ) * 25, 36 + 47 )
----
45

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL + COUNT ( * ) + + COALESCE ( + 44, - NULLIF ( - COALESCE ( + + 62, 97 / + + 62 * + 35 + - 34 * + 38 + - 6 ), + 78 + 47 * CASE 30 + 64 WHEN + 10 + - 95 * COUNT ( * ) THEN NULL WHEN - 99 + ( + 7 ) * 66 THEN 9 ELSE NULL END ) * 25, 36 + 47 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT - MAX( DISTINCT - 17 ) + - 66 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-6854
SELECT - MAX ( DISTINCT - 17 ) + - 66 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-6855
SELECT COUNT( * ) AS col2, + MAX( ALL - 51 )
----
1
-51

skipif mysql # not compatible
query II rowsort label-6855
SELECT COUNT ( * ) AS col2, + MAX ( ALL - 51 )
----
1
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT DISTINCT + 52 + - 90 + 29 + - + ( - + 45 ) + - 91 + + + COUNT( * ) * - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT + 52 + - 90 + 29 + - + ( - + 45 ) + - 91 + + + COUNT ( * ) * - COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6857
SELECT ALL COUNT( * ), 78 DIV 48 + + 10 * + + 89 AS col2
----
1
891

skipif mysql # not compatible
query II rowsort label-6857
SELECT ALL COUNT ( * ), 78 / 48 + + 10 * + + 89 AS col2
----
1
891

query II rowsort
SELECT - 46 AS col2, 84 AS col0
----
-46
84

onlyif mysql # DIV for integer division: 
query I rowsort label-6859
SELECT - + 83 + 92 DIV + 79 col2
----
-82

skipif mysql # not compatible
query I rowsort label-6859
SELECT - + 83 + 92 / + 79 col2
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6860
SELECT ALL - 94 DIV + + 63 - + 86 * 76 DIV - 31 AS col0
----
209

skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL - 94 / + + 63 - + 86 * 76 / - 31 AS col0
----
209

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6861
SELECT 82 AS col0, - 32 DIV - COALESCE ( - 51, 12, 66, + COUNT( * ) ) + + - 60 col1
----
82
-60

skipif mysql # not compatible
query II rowsort label-6861
SELECT 82 AS col0, - 32 / - COALESCE ( - 51, 12, 66, + COUNT ( * ) ) + + - 60 col1
----
82
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6862
SELECT ( + - 21 ) * - COUNT( * ) + 38 + - 31 DIV 46 + - 70 + - 7 + ( - 14 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-6862
SELECT ( + - 21 ) * - COUNT ( * ) + 38 + - 31 / 46 + - 70 + - 7 + ( - 14 ) AS col2
----
-32

query I rowsort
SELECT + 97 * + 64 * - 25
----
-155200

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT ALL + + 92 * 97 + - ( 78 ) * + MIN( DISTINCT - 59 ) AS col0
----
13526

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL + + 92 * 97 + - ( 78 ) * + MIN ( DISTINCT - 59 ) AS col0
----
13526

query II rowsort
SELECT 25 AS col0, 54 AS col2
----
25
54

query II rowsort
SELECT + 8 AS col0, - 53
----
8
-53

query I rowsort
SELECT DISTINCT + 1 * - 77 AS col1
----
-77

query II rowsort
SELECT DISTINCT + + 89, + 84 - + 79 AS col1
----
89
5

onlyif mysql # DIV for integer division: 
query II rowsort label-6869
SELECT ALL + 56 AS col0, 43 DIV + - 68 AS col1
----
56
0

skipif mysql # not compatible
query II rowsort label-6869
SELECT ALL + 56 AS col0, 43 / + - 68 AS col1
----
56
0

query I rowsort
SELECT ( 38 ) col2
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-6871
SELECT ( + - SUM( ALL + 94 ) ) AS col1, 98 AS col1
----
-94
98

skipif mysql # not compatible
query II rowsort label-6871
SELECT ( + - SUM ( ALL + 94 ) ) AS col1, 98 AS col1
----
-94
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6872
SELECT ALL + CAST( - 78 AS SIGNED ) AS col0, 98 AS col1
----
-78
98

skipif mysql # not compatible
query II rowsort label-6872
SELECT ALL + CAST ( - 78 AS INTEGER ) AS col0, 98 AS col1
----
-78
98

query I rowsort
SELECT + ( - + 17 ) * - 11
----
187

query I rowsort
SELECT COALESCE ( + - 22, + + 70 ) AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6875
SELECT + CAST( - - COUNT( * ) AS DECIMAL ) / 94 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6875
SELECT + CAST ( - - COUNT ( * ) AS REAL ) / 94 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 97 * - 55 * + 64
----
-341440

query I rowsort
SELECT + 37 * + 56 + 64 AS col2
----
2136

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT DISTINCT + 85 * + COUNT( * ) col2
----
85

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT + 85 * + COUNT ( * ) col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6879
SELECT + 56 DIV 70 DIV + - 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6879
SELECT + 56 / 70 / + - 99 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT ALL COUNT( * ) * + 62 + 15 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL COUNT ( * ) * + 62 + 15 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT ALL - NULLIF ( ( + COUNT( * ) ), - + ( - 97 ) ) * + - 95 * + 30 + + - COUNT( * ) + + + COUNT( * ) * - 70
----
2779

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL - NULLIF ( ( + COUNT ( * ) ), - + ( - 97 ) ) * + - 95 * + 30 + + - COUNT ( * ) + + + COUNT ( * ) * - 70
----
2779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6882
SELECT DISTINCT - 28 * COUNT( * ) * - COUNT( * ) * + 12 + - CAST( - 32 AS SIGNED ) + - 67 AS col2
----
301

skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT - 28 * COUNT ( * ) * - COUNT ( * ) * + 12 + - CAST ( - 32 AS INTEGER ) + - 67 AS col2
----
301

query I rowsort
SELECT + 20 + + - 44 col1
----
-24

query I rowsort
SELECT + 2 * + 8
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT ALL 4 * + COUNT( * ) + + 94 * - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL 4 * + COUNT ( * ) + + 94 * - COUNT ( * )
----
-90

query I rowsort
SELECT + 82 - 37 AS col2
----
45

query I rowsort
SELECT + 9 + - + 19 * + + 12
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT ALL + - COUNT( * ) + - - 3 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL + - COUNT ( * ) + - - 3 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT DISTINCT + MAX( + - 93 ) * 31 * 24
----
-69192

skipif mysql # not compatible
query I rowsort label-6889
SELECT DISTINCT + MAX ( + - 93 ) * 31 * 24
----
-69192

query I rowsort
SELECT ALL + COALESCE ( + + 81, 57 ) AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6891
SELECT ALL + - 70 - + MAX( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL + - 70 - + MAX ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6892
SELECT - + COUNT( * ) - 79 AS col0, 96 + 31 * - + 17 * COALESCE ( + 68, + 22 )
----
-80
-35740

skipif mysql # not compatible
query II rowsort label-6892
SELECT - + COUNT ( * ) - 79 AS col0, 96 + 31 * - + 17 * COALESCE ( + 68, + 22 )
----
-80
-35740

query I rowsort
SELECT ALL + 23 * - 76 AS col0
----
-1748

onlyif mysql # aggregate syntax: 
query II rowsort label-6894
SELECT + 84 * COUNT( * ) + - 23, - 37 AS col0
----
61
-37

skipif mysql # not compatible
query II rowsort label-6894
SELECT + 84 * COUNT ( * ) + - 23, - 37 AS col0
----
61
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT + - ( + - ( - MAX( 98 ) ) ) + - SUM( DISTINCT + 7 ) + + - 66
----
-171

skipif mysql # not compatible
query I rowsort label-6895
SELECT + - ( + - ( - MAX ( 98 ) ) ) + - SUM ( DISTINCT + 7 ) + + - 66
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT DISTINCT - MAX( ALL + 81 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT - MAX ( ALL + 81 ) AS col2
----
-81

query I rowsort
SELECT - 81 * + 99 * + 13 AS col1
----
-104247

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT + COALESCE ( - ( + 92 ), + + SUM( ALL - 96 ) ) + + 7 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6898
SELECT + COALESCE ( - ( + 92 ), + + SUM ( ALL - 96 ) ) + + 7 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT ALL - SUM( DISTINCT - + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL - SUM ( DISTINCT - + 80 )
----
80

query I rowsort
SELECT ALL + ( + + 4 ) AS col1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6901
SELECT ALL - 97 DIV - 58 + MIN( DISTINCT - 24 )
----
-23

skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL - 97 / - 58 + MIN ( DISTINCT - 24 )
----
-23

query I rowsort
SELECT ALL + 97 * - + 0 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6903
SELECT DISTINCT - CASE 84 WHEN - 16 THEN - 73 ELSE + CAST( NULL AS SIGNED ) + - 19 + + 2 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT - CASE 84 WHEN - 16 THEN - 73 ELSE + CAST ( NULL AS INTEGER ) + - 19 + + 2 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT DISTINCT - COALESCE ( - 39, MAX( ALL ( + 25 ) ) * 81 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-6904
SELECT DISTINCT - COALESCE ( - 39, MAX ( ALL ( + 25 ) ) * 81 ) AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6905
SELECT 73 + - 76 - COUNT( * ) * CAST( NULL AS SIGNED ) * + + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6905
SELECT 73 + - 76 - COUNT ( * ) * CAST ( NULL AS INTEGER ) * + + 76
----
NULL

query I rowsort
SELECT 44 * ( 95 )
----
4180

query II rowsort
SELECT ALL + 98 * ( - 53 ) * - 39, 44 * + 48 AS col0
----
202566
2112

query I rowsort
SELECT DISTINCT - 53 + - 32 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT ALL + 98 + + 50 * + CASE - 24 WHEN - 29 / + - 94 + - + 22 + COUNT( * ) THEN + 43 END + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL + 98 + + 50 * + CASE - 24 WHEN - 29 / + - 94 + - + 22 + COUNT ( * ) THEN + 43 END + - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT ALL - 35 + COUNT( ALL - 33 )
----
-34

skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL - 35 + COUNT ( ALL - 33 )
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-6911
SELECT ALL 68 + 59 DIV + 84
----
68

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL 68 + 59 / + 84
----
68

query I rowsort
SELECT 85 + + + 46 * - 62 * + 51 AS col1
----
-145367

query I rowsort
SELECT ALL - 63 + + 56
----
-7

query I rowsort
SELECT ALL - NULLIF ( - - 32, 59 ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT - 13 * + 71 + - + COUNT( * ) + 6 * 70 + + 17 AS col1
----
-487

skipif mysql # not compatible
query I rowsort label-6915
SELECT - 13 * + 71 + - + COUNT ( * ) + 6 * 70 + + 17 AS col1
----
-487

query II rowsort
SELECT + 9 AS col0, - 98
----
9
-98

query II rowsort
SELECT 14 + ( 89 ), 6 AS col1
----
103
6

query I rowsort
SELECT 85 + + 66
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6919
SELECT + MIN( DISTINCT + 92 ) * - NULLIF ( - + 43, - + ( - 32 ) * + - 52 + - + COUNT( * ) + 75 ) * + 55 + + 26 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6919
SELECT + MIN ( DISTINCT + 92 ) * - NULLIF ( - + 43, - + ( - 32 ) * + - 52 + - + COUNT ( * ) + 75 ) * + 55 + + 26 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6920
SELECT CASE CAST( NULL AS SIGNED ) WHEN - - 21 * + 11 * - - 93 THEN + 41 WHEN + 10 THEN 49 * + 24 * + + COUNT( * ) * 11 * COUNT( * ) * CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) + ( 5 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6920
SELECT CASE CAST ( NULL AS INTEGER ) WHEN - - 21 * + 11 * - - 93 THEN + 41 WHEN + 10 THEN 49 * + 24 * + + COUNT ( * ) * 11 * COUNT ( * ) * CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + ( 5 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT ALL - COUNT( * ) + + 98
----
97

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL - COUNT ( * ) + + 98
----
97

query I rowsort
SELECT + 2 * + NULLIF ( + + 51, 67 / - 91 * 20 ) + + ( - 1 )
----
101

query II rowsort
SELECT DISTINCT + 29, 63 + 73 AS col0
----
29
136

query I rowsort
SELECT 88 + + 57
----
145

query I rowsort
SELECT ALL ( + 29 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT 34 + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-6926
SELECT 34 + COUNT ( * )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT DISTINCT COUNT( - 38 )
----
1

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT COUNT ( - 38 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT DISTINCT + NULLIF ( + COUNT( * ), - 69 )
----
1

skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT + NULLIF ( + COUNT ( * ), - 69 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6929
SELECT 67 * + MIN( DISTINCT 33 ) col1, 97 AS col2
----
2211
97

skipif mysql # not compatible
query II rowsort label-6929
SELECT 67 * + MIN ( DISTINCT 33 ) col1, 97 AS col2
----
2211
97

query I rowsort
SELECT ALL + COALESCE ( 93, - + 37 ) AS col1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-6931
SELECT ALL - 67 DIV - 28 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6931
SELECT ALL - 67 / - 28 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT ALL - MIN( ALL 73 ) * - COUNT( * ) - + + 77 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL - MIN ( ALL 73 ) * - COUNT ( * ) - + + 77 AS col2
----
-4

query I rowsort
SELECT ALL 15 * - 37 + 23 + - 32
----
-564

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6934
SELECT ALL 4 AS col1, CAST( NULL AS SIGNED ) * 37 * + 48 AS col0
----
4
NULL

skipif mysql # not compatible
query II rowsort label-6934
SELECT ALL 4 AS col1, CAST ( NULL AS INTEGER ) * 37 * + 48 AS col0
----
4
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6935
SELECT MAX( 94 ) AS col2, 0 AS col2
----
94
0

skipif mysql # not compatible
query II rowsort label-6935
SELECT MAX ( 94 ) AS col2, 0 AS col2
----
94
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6936
SELECT 80 DIV + 66
----
1

skipif mysql # not compatible
query I rowsort label-6936
SELECT 80 / + 66
----
1

query I rowsort
SELECT ALL 22 + + - 80 * + + 20
----
-1578

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT SUM( DISTINCT + 26 ) col2
----
26

skipif mysql # not compatible
query I rowsort label-6938
SELECT SUM ( DISTINCT + 26 ) col2
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-6939
SELECT SUM( ALL + 81 ) AS col2, 46 * COALESCE ( + + 75, + - COUNT( * ) * + 74 ) AS col0
----
81
3450

skipif mysql # not compatible
query II rowsort label-6939
SELECT SUM ( ALL + 81 ) AS col2, 46 * COALESCE ( + + 75, + - COUNT ( * ) * + 74 ) AS col0
----
81
3450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6940
SELECT ALL - 39 DIV + + COUNT( * ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL - 39 / + + COUNT ( * ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-6941
SELECT ALL 86 + 87 * + + 57 - + - COUNT( DISTINCT - - 2 ) AS col2, 62 AS col1
----
5046
62

skipif mysql # not compatible
query II rowsort label-6941
SELECT ALL 86 + 87 * + + 57 - + - COUNT ( DISTINCT - - 2 ) AS col2, 62 AS col1
----
5046
62

query I rowsort
SELECT ALL 45 + 90 col0
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-6943
SELECT DISTINCT - 21 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT - 21 / 85
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6944
SELECT ALL - 12 + + - CAST( NULL AS SIGNED ) + - 63 / 13
----
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL - 12 + + - CAST ( NULL AS INTEGER ) + - 63 / 13
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6945
SELECT ALL 38 DIV + 23 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL 38 / + 23 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT ALL - NULLIF ( + 29, - CASE - COUNT( * ) WHEN COUNT( DISTINCT - 72 ) THEN NULL WHEN + COALESCE ( - NULLIF ( + + ( - 8 ), - 51 ), + + COUNT( * ), 80 ) * ( + 15 ) * - 39 THEN 34 * - 77 END )
----
-29

skipif mysql # not compatible
query I rowsort label-6946
SELECT ALL - NULLIF ( + 29, - CASE - COUNT ( * ) WHEN COUNT ( DISTINCT - 72 ) THEN NULL WHEN + COALESCE ( - NULLIF ( + + ( - 8 ), - 51 ), + + COUNT ( * ), 80 ) * ( + 15 ) * - 39 THEN 34 * - 77 END )
----
-29

query I rowsort
SELECT 4 * - 11 * - 39 AS col2
----
1716

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT ALL - 67 + + + COUNT( * ) * + + 93 * - 4 * + + MAX( DISTINCT - + 36 ) AS col0
----
13325

skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL - 67 + + + COUNT ( * ) * + + 93 * - 4 * + + MAX ( DISTINCT - + 36 ) AS col0
----
13325

query I rowsort
SELECT ALL + 4 + 27 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT DISTINCT - COUNT( * ) + + 60 col0
----
59

skipif mysql # not compatible
query I rowsort label-6950
SELECT DISTINCT - COUNT ( * ) + + 60 col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT DISTINCT - CASE COUNT( * ) WHEN - - ( - 9 ) + 13 + - 6 + NULLIF ( - 62, COALESCE ( - 47, + 50 * - COALESCE ( + 14, + 35 * - 18, - 97 - ( - COUNT( * ) + - COUNT( * ) * - ( + COUNT( * ) * + 63 ) ) * - 18 ) - + 75 ) ) THEN - COALESCE ( + 43, + 91, - 44 + 7 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT - CASE COUNT ( * ) WHEN - - ( - 9 ) + 13 + - 6 + NULLIF ( - 62, COALESCE ( - 47, + 50 * - COALESCE ( + 14, + 35 * - 18, - 97 - ( - COUNT ( * ) + - COUNT ( * ) * - ( + COUNT ( * ) * + 63 ) ) * - 18 ) - + 75 ) ) THEN - COALESCE ( + 43, + 91, - 44 + 7 ) END
----
NULL

query I rowsort
SELECT 94 * - ( + 12 ) AS col1
----
-1128

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT ALL - 31 * + COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL - 31 * + COUNT ( * ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT DISTINCT + NULLIF ( - 62, - + CASE + - 89 WHEN 67 THEN NULL WHEN 64 + + - 28 * - NULLIF ( + AVG ( - 41 ), - 50 * 99 + - 90 * + 24 ) THEN - MIN( COALESCE ( - 53, 12 / NULLIF ( - 80, 95 + + 97 ) ) ) WHEN - CASE SUM( DISTINCT 47 ) WHEN + ( + 22 ) THEN NULL WHEN ( 47 ) * 69 THEN NULL WHEN 60 THEN - 99 / 52 ELSE NULL END THEN 73 * NULLIF ( 74, + 39 * 37 ) END * + 62 ) - + 27 * 76
----
-2114

skipif mysql # not compatible
query I rowsort label-6954
SELECT DISTINCT + NULLIF ( - 62, - + CASE + - 89 WHEN 67 THEN NULL WHEN 64 + + - 28 * - NULLIF ( + AVG ( - 41 ), - 50 * 99 + - 90 * + 24 ) THEN - MIN ( COALESCE ( - 53, 12 / NULLIF ( - 80, 95 + + 97 ) ) ) WHEN - CASE SUM ( DISTINCT 47 ) WHEN + ( + 22 ) THEN NULL WHEN ( 47 ) * 69 THEN NULL WHEN 60 THEN - 99 / 52 ELSE NULL END THEN 73 * NULLIF ( 74, + 39 * 37 ) END * + 62 ) - + 27 * 76
----
-2114

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT 18 * - COUNT( * ) + - NULLIF ( - - 75, + 85 ) + 54 + - COUNT( * ) + - + 19 + 54 + 80
----
75

skipif mysql # not compatible
query I rowsort label-6955
SELECT 18 * - COUNT ( * ) + - NULLIF ( - - 75, + 85 ) + 54 + - COUNT ( * ) + - + 19 + 54 + 80
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6956
SELECT + 66 DIV CASE - - CAST( NULL AS DECIMAL ) WHEN + COUNT( * ) + - 69 THEN NULL WHEN - + CAST( - ( + 73 ) AS SIGNED ) DIV + 65 - 65 THEN NULL ELSE - ( + 52 ) END + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6956
SELECT + 66 / CASE - - CAST ( NULL AS REAL ) WHEN + COUNT ( * ) + - 69 THEN NULL WHEN - + CAST ( - ( + 73 ) AS INTEGER ) / + 65 - 65 THEN NULL ELSE - ( + 52 ) END + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6957
SELECT ( - CAST( NULL AS SIGNED ) ) * - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT ( - CAST ( NULL AS INTEGER ) ) * - 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT - + MIN( 22 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-6958
SELECT - + MIN ( 22 ) AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6959
SELECT - + 67 * CAST( NULL AS SIGNED ) * + - 50 + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6959
SELECT - + 67 * CAST ( NULL AS INTEGER ) * + - 50 + - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT - ( SUM( + 80 ) ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-6960
SELECT - ( SUM ( + 80 ) ) AS col2
----
-80

query I rowsort
SELECT COALESCE ( ( 8 ), - 11 ) + 97 AS col2
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6962
SELECT ALL 33 * + 41 * - + 22 * - 35 * + 64 * - 14 + - COUNT( * ) DIV + 74
----
-933461760

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL 33 * + 41 * - + 22 * - 35 * + 64 * - 14 + - COUNT ( * ) / + 74
----
-933461760

query I rowsort
SELECT - ( + 49 ) * - 69
----
3381

query I rowsort
SELECT - - 77 + + + 35 + + + ( - 75 )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6965
SELECT DISTINCT - 13 * 62 + - 9 DIV + COUNT( * )
----
-815

skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT - 13 * 62 + - 9 / + COUNT ( * )
----
-815

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6966
SELECT DISTINCT - + MIN( ALL 80 ) * 40 DIV COALESCE ( 79, 81 + 12 + NULLIF ( - 68, + 46 ) ) - + + ( 97 )
----
-137

skipif mysql # not compatible
query I rowsort label-6966
SELECT DISTINCT - + MIN ( ALL 80 ) * 40 / COALESCE ( 79, 81 + 12 + NULLIF ( - 68, + 46 ) ) - + + ( 97 )
----
-137

onlyif mysql # aggregate syntax: 
query II rowsort label-6967
SELECT - 73 + 28 AS col1, + ( COUNT( * ) ) * + 97 AS col1
----
-45
97

skipif mysql # not compatible
query II rowsort label-6967
SELECT - 73 + 28 AS col1, + ( COUNT ( * ) ) * + 97 AS col1
----
-45
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT - + ( COUNT( * ) ) * - 51
----
51

skipif mysql # not compatible
query I rowsort label-6968
SELECT - + ( COUNT ( * ) ) * - 51
----
51

query I rowsort
SELECT + + 94 * + 53 - 66
----
4916

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT DISTINCT + 89 + - 4 + + - COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-6970
SELECT DISTINCT + 89 + - 4 + + - COUNT ( * ) AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6971
SELECT - COALESCE ( - 21, + - CAST( NULLIF ( - - 95, + 79 * - 27 * + COALESCE ( - 51, - ( MIN( - 7 ) ), 50, + ( 39 ) * 40 ) * + 45 - + 72 * 91 ) AS SIGNED ) + 68, + CAST( - COUNT( * ) AS SIGNED ) )
----
21

skipif mysql # not compatible
query I rowsort label-6971
SELECT - COALESCE ( - 21, + - CAST ( NULLIF ( - - 95, + 79 * - 27 * + COALESCE ( - 51, - ( MIN ( - 7 ) ), 50, + ( 39 ) * 40 ) * + 45 - + 72 * 91 ) AS INTEGER ) + 68, + CAST ( - COUNT ( * ) AS INTEGER ) )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6972
SELECT ALL 81 + + CASE - 57 WHEN - COUNT( * ) + - 88 * - NULLIF ( - NULLIF ( + CAST( NULL AS SIGNED ), - - ( - + 31 ) ), - 30 ) THEN 33 + + 8 + + + 68 + - + 41 / - 7 END * - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL 81 + + CASE - 57 WHEN - COUNT ( * ) + - 88 * - NULLIF ( - NULLIF ( + CAST ( NULL AS INTEGER ), - - ( - + 31 ) ), - 30 ) THEN 33 + + 8 + + + 68 + - + 41 / - 7 END * - 3 AS col2
----
NULL

query I rowsort
SELECT + 87 + + 63
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6974
SELECT ALL 98 + - COUNT( * ) DIV - 71
----
98

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL 98 + - COUNT ( * ) / - 71
----
98

query I rowsort
SELECT + 4 * ( - 59 )
----
-236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6976
SELECT DISTINCT 33 + - 9 + 18 + + 50 + COALESCE ( + 84, + CASE + MAX( DISTINCT - ( - 67 ) ) WHEN - 7 * 86 + + 63 + - - 11 THEN - 65 * - CAST( NULL AS SIGNED ) WHEN + SUM( DISTINCT 74 ) * + 57 THEN + 11 END, 66 ) * + COUNT( * ) * - MIN( DISTINCT + 65 - 86 ) col1
----
1856

skipif mysql # not compatible
query I rowsort label-6976
SELECT DISTINCT 33 + - 9 + 18 + + 50 + COALESCE ( + 84, + CASE + MAX ( DISTINCT - ( - 67 ) ) WHEN - 7 * 86 + + 63 + - - 11 THEN - 65 * - CAST ( NULL AS INTEGER ) WHEN + SUM ( DISTINCT 74 ) * + 57 THEN + 11 END, 66 ) * + COUNT ( * ) * - MIN ( DISTINCT + 65 - 86 ) col1
----
1856

query I rowsort
SELECT ALL + 28 * + - ( ( + 66 ) ) + + 2 AS col2
----
-1846

query I rowsort
SELECT + CASE 48 WHEN + 74 - 96 THEN NULL ELSE + COALESCE ( + 44, - 40, + 14 ) END AS col1
----
44

query I rowsort
SELECT DISTINCT COALESCE ( - 92, ( CASE - + 29 WHEN + 47 THEN - + NULLIF ( + 29, + ( + - 58 ) ) * + 99 ELSE - 81 END ) ) * 74 + + 26 AS col2
----
-6782

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6980
SELECT + COUNT( * ) + 14 - + 29, 68 * + 29 + + COUNT( * ) DIV + 1 col1
----
-14
1973

skipif mysql # not compatible
query II rowsort label-6980
SELECT + COUNT ( * ) + 14 - + 29, 68 * + 29 + + COUNT ( * ) / + 1 col1
----
-14
1973

query I rowsort
SELECT + ( - 76 ) col2
----
-76

query I rowsort
SELECT ALL 80 * + 77 + 74
----
6234

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT COALESCE ( + 71, + COUNT( - 85 ) )
----
71

skipif mysql # not compatible
query I rowsort label-6983
SELECT COALESCE ( + 71, + COUNT ( - 85 ) )
----
71

query I rowsort
SELECT - 79 * - 47 AS col0
----
3713

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT ALL COUNT( * ) * - MAX( ALL + - 19 ) - - + 96 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL COUNT ( * ) * - MAX ( ALL + - 19 ) - - + 96 AS col1
----
115

query I rowsort
SELECT + 67 + 17
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6987
SELECT + 43 * 3 DIV - CASE + 64 WHEN + + 88 DIV 95 THEN - CAST( - 31 AS SIGNED ) WHEN 98 + + CASE + COUNT( * ) WHEN - - COALESCE ( MIN( DISTINCT + + NULLIF ( 57, + 70 ) ), + 22 + - 40 * - 40 ) * - 15 + + MAX( 62 ) THEN 82 * + 21 WHEN - 10 THEN NULL END + COALESCE ( + 54, - 38 ) * COUNT( * ) THEN 81 * 20 ELSE ( CASE 55 WHEN + AVG ( DISTINCT + 56 ) THEN COUNT( * ) DIV - 4 WHEN 4 THEN NULL ELSE 26 END ) END
----
-4

skipif mysql # not compatible
query I rowsort label-6987
SELECT + 43 * 3 / - CASE + 64 WHEN + + 88 / 95 THEN - CAST ( - 31 AS INTEGER ) WHEN 98 + + CASE + COUNT ( * ) WHEN - - COALESCE ( MIN ( DISTINCT + + NULLIF ( 57, + 70 ) ), + 22 + - 40 * - 40 ) * - 15 + + MAX ( 62 ) THEN 82 * + 21 WHEN - 10 THEN NULL END + COALESCE ( + 54, - 38 ) * COUNT ( * ) THEN 81 * 20 ELSE ( CASE 55 WHEN + AVG ( DISTINCT + 56 ) THEN COUNT ( * ) / - 4 WHEN 4 THEN NULL ELSE 26 END ) END
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT ALL + CASE 17 WHEN ( + ( + 50 ) ) * - CASE - + 87 WHEN 71 THEN SUM( - 57 ) * + + 88 WHEN + + 60 THEN 78 + - + 80 END THEN 99 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL + CASE 17 WHEN ( + ( + 50 ) ) * - CASE - + 87 WHEN 71 THEN SUM ( - 57 ) * + + 88 WHEN + + 60 THEN 78 + - + 80 END THEN 99 END * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6989
SELECT ALL - MAX( DISTINCT - 6 ) DIV - 66 + COALESCE ( 14, - 67 + + 31 + - - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * + COUNT( * ) + NULLIF ( + 44, + 22 + - 13 ) * - NULLIF ( + 97, + 89 ) + 70, 81 + + 43, + 6 * - 99 + + 6 * CAST( NULL AS SIGNED ), 30 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL - MAX ( DISTINCT - 6 ) / - 66 + COALESCE ( 14, - 67 + + 31 + - - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * + COUNT ( * ) + NULLIF ( + 44, + 22 + - 13 ) * - NULLIF ( + 97, + 89 ) + 70, 81 + + 43, + 6 * - 99 + + 6 * CAST ( NULL AS INTEGER ), 30 ) AS col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6990
SELECT DISTINCT SUM( ALL 28 ) DIV - 34 * + 86 + - - 0 col0
----
0

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT SUM ( ALL 28 ) / - 34 * + 86 + - - 0 col0
----
0

query II rowsort
SELECT 54 AS col1, - 13 * - - NULLIF ( - 27, + + 47 ) AS col1
----
54
351

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT DISTINCT - ( - + 57 ) * - 74 + + - COUNT( * ) + 54 * - - 50 * + COUNT( * ) AS col1
----
-1519

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT - ( - + 57 ) * - 74 + + - COUNT ( * ) + 54 * - - 50 * + COUNT ( * ) AS col1
----
-1519

query I rowsort
SELECT + - 72 * + + 65
----
-4680

query I rowsort
SELECT - - 67 + - + 47 AS col1
----
20

query I rowsort
SELECT ALL - - 33 * + + 26 + - 68
----
790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6996
SELECT ALL CAST( + 76 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL CAST ( + 76 AS INTEGER )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT ALL - 84 * - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL - 84 * - COUNT ( * )
----
84

query I rowsort
SELECT - 58 * + 20 + + + 97 + + - COALESCE ( + CASE 89 WHEN + 93 - + + 2 + + 99 * + + 54 THEN 88 - - + 10 END, - - NULLIF ( + - 24, + 8 + - NULLIF ( 96 + - 10, 8 + + 13 ) ) ) - + 96 AS col0
----
-1135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6999
SELECT - - COUNT( * ) DIV - 36 col1
----
0

skipif mysql # not compatible
query I rowsort label-6999
SELECT - - COUNT ( * ) / - 36 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7000
SELECT DISTINCT + - 41 + COUNT( * ) + COUNT( * ) - + ( 13 ) + - 77 * + + 39 + - 63 AS col0, + COUNT( * )
----
-3118
1

skipif mysql # not compatible
query II rowsort label-7000
SELECT DISTINCT + - 41 + COUNT ( * ) + COUNT ( * ) - + ( 13 ) + - 77 * + + 39 + - 63 AS col0, + COUNT ( * )
----
-3118
1

query I rowsort
SELECT ALL - + 79 + + ( + + 92 )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7002
SELECT 90 col1, NULLIF ( - - 12, - CAST( AVG ( ALL + 87 ) AS SIGNED ) )
----
90
12

skipif mysql # not compatible
query II rowsort label-7002
SELECT 90 col1, NULLIF ( - - 12, - CAST ( AVG ( ALL + 87 ) AS INTEGER ) )
----
90
12

query I rowsort
SELECT ALL + - 66 * - 11 AS col1
----
726

onlyif mysql # aggregate syntax: 
query II rowsort label-7004
SELECT DISTINCT + 66 + - + ( - 12 ) + - 44 * + SUM( ALL + + NULLIF ( - 96, + 62 * 38 ) ) + + - 56 + - 79 AS col0, CASE + 99 WHEN - - ( + - 88 ) THEN + 43 END * 59 AS col1
----
4167
NULL

skipif mysql # not compatible
query II rowsort label-7004
SELECT DISTINCT + 66 + - + ( - 12 ) + - 44 * + SUM ( ALL + + NULLIF ( - 96, + 62 * 38 ) ) + + - 56 + - 79 AS col0, CASE + 99 WHEN - - ( + - 88 ) THEN + 43 END * 59 AS col1
----
4167
NULL

query I rowsort
SELECT ALL - ( + 88 ) + + 67 AS col1
----
-21

query I rowsort
SELECT DISTINCT 34 * 11 * + + 29
----
10846

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7007
SELECT ALL AVG ( - CAST( 62 AS SIGNED ) ) + + 58 + - MAX( CAST( NULL AS SIGNED ) ) * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL AVG ( - CAST ( 62 AS INTEGER ) ) + + 58 + - MAX ( CAST ( NULL AS INTEGER ) ) * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT - SUM( DISTINCT + 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-7008
SELECT - SUM ( DISTINCT + 16 ) AS col2
----
-16

query I rowsort
SELECT ALL + 39 * + ( - ( + 51 ) )
----
-1989

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT ALL 27 + 42 + - 57 * - 85 * ( - 94 ) * - SUM( - 86 ) AS col0
----
-39166911

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL 27 + 42 + - 57 * - 85 * ( - 94 ) * - SUM ( - 86 ) AS col0
----
-39166911

query I rowsort
SELECT DISTINCT + 21 * 81
----
1701

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7012
SELECT + CAST( NULL AS SIGNED ) / + - 77 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7012
SELECT + CAST ( NULL AS INTEGER ) / + - 77 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7013
SELECT - 86 AS col2, AVG ( DISTINCT - 20 ) * 11 / - 98 / + + CAST( NULL AS SIGNED ) + 8 AS col1
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-7013
SELECT - 86 AS col2, AVG ( DISTINCT - 20 ) * 11 / - 98 / + + CAST ( NULL AS INTEGER ) + 8 AS col1
----
-86
NULL

query I rowsort
SELECT + 85 * + - 52 * + 29 AS col1
----
-128180

query II rowsort
SELECT DISTINCT + 46 AS col1, - 80
----
46
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7016
SELECT CAST( + - COALESCE ( - CAST( + AVG ( - 17 ) AS SIGNED ), ( - 37 ) + + 44 ) AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-7016
SELECT CAST ( + - COALESCE ( - CAST ( + AVG ( - 17 ) AS INTEGER ), ( - 37 ) + + 44 ) AS INTEGER )
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-7017
SELECT ALL + COALESCE ( COUNT( * ), - 48 * 6, - 53 - + ( - 11 ) ) AS col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-7017
SELECT ALL + COALESCE ( COUNT ( * ), - 48 * 6, - 53 - + ( - 11 ) ) AS col2, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT + ( - ( + COUNT( 8 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7018
SELECT + ( - ( + COUNT ( 8 ) ) ) AS col1
----
-1

query I rowsort
SELECT + ( + ( - 69 ) ) AS col2
----
-69

query I rowsort
SELECT ALL NULLIF ( - + 5, + - 41 ) * - 78 AS col1
----
390

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT + 98 * + + 14 * - 0 * COUNT( * ) - - - 92
----
-92

skipif mysql # not compatible
query I rowsort label-7021
SELECT + 98 * + + 14 * - 0 * COUNT ( * ) - - - 92
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7022
SELECT + + COUNT( * ) DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-7022
SELECT + + COUNT ( * ) / 77
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7023
SELECT + 9 * - + CAST( 71 AS SIGNED ) AS col0
----
-639

skipif mysql # not compatible
query I rowsort label-7023
SELECT + 9 * - + CAST ( 71 AS INTEGER ) AS col0
----
-639

onlyif mysql # DIV for integer division: 
query I rowsort label-7024
SELECT ALL 32 * 40 DIV 13
----
98

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL 32 * 40 / 13
----
98

query I rowsort
SELECT DISTINCT 36 * 1 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT 11 * - + COUNT( 43 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-7026
SELECT 11 * - + COUNT ( 43 ) AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7027
SELECT ALL + 24 DIV + COUNT( DISTINCT - + ( + + 25 ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL + 24 / + COUNT ( DISTINCT - + ( + + 25 ) ) AS col2
----
24

query I rowsort
SELECT DISTINCT - + ( + ( 0 ) )
----
0

query I rowsort
SELECT ALL + 55 + + - 59 col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT MIN( ALL + 50 ) + 27
----
77

skipif mysql # not compatible
query I rowsort label-7030
SELECT MIN ( ALL + 50 ) + 27
----
77

query I rowsort
SELECT ALL + ( + 0 ) + - - 79 AS col0
----
79

query I rowsort
SELECT 81 * 99 + - 28 col1
----
7991

query I rowsort
SELECT ALL 95 + 15 * + 37 AS col2
----
650

onlyif mysql # aggregate syntax: 
query II rowsort label-7034
SELECT - 45, COUNT( * ) AS col1
----
-45
1

skipif mysql # not compatible
query II rowsort label-7034
SELECT - 45, COUNT ( * ) AS col1
----
-45
1

query I rowsort
SELECT DISTINCT + + 14 * 37 col1
----
518

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT - - MIN( - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-7036
SELECT - - MIN ( - 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT 60 + - 84 + - 44 * COUNT( * ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-7037
SELECT 60 + - 84 + - 44 * COUNT ( * ) AS col1
----
-68

query I rowsort
SELECT ALL 61 + - - 75 + 35 + - + 63 AS col1
----
108

onlyif mysql # DIV for integer division: 
query II rowsort label-7039
SELECT DISTINCT 62, + 82 DIV + 80 + NULLIF ( - + 63, + + 64 + 17 + - 31 ) AS col0
----
62
-62

skipif mysql # not compatible
query II rowsort label-7039
SELECT DISTINCT 62, + 82 / + 80 + NULLIF ( - + 63, + + 64 + 17 + - 31 ) AS col0
----
62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT - 5 + - COUNT( * ) * 38 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-7040
SELECT - 5 + - COUNT ( * ) * 38 AS col0
----
-43

query I rowsort
SELECT ALL - 80 + - ( + 59 ) col1
----
-139

query I rowsort
SELECT ALL + 53 + + 84 + - - 56 AS col0
----
193

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7043
SELECT 89 + + 7, CAST( - 52 AS SIGNED ) + - 57 AS col2
----
96
-109

skipif mysql # not compatible
query II rowsort label-7043
SELECT 89 + + 7, CAST ( - 52 AS INTEGER ) + - 57 AS col2
----
96
-109

onlyif mysql # DIV for integer division: 
query II rowsort label-7044
SELECT DISTINCT + 35 - - - 62 AS col2, + 28 DIV + + 19 AS col0
----
-27
1

skipif mysql # not compatible
query II rowsort label-7044
SELECT DISTINCT + 35 - - - 62 AS col2, + 28 / + + 19 AS col0
----
-27
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT ALL + COUNT( * ) - 33 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL + COUNT ( * ) - 33 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT 79 * + COUNT( * ) * 97
----
7663

skipif mysql # not compatible
query I rowsort label-7046
SELECT 79 * + COUNT ( * ) * 97
----
7663

onlyif mysql # DIV for integer division: 
query I rowsort label-7047
SELECT ALL + 8 DIV ( + - 30 )
----
0

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL + 8 / ( + - 30 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7048
SELECT 88 + + COUNT( * ) AS col0, + 57 + + 0 AS col2
----
89
57

skipif mysql # not compatible
query II rowsort label-7048
SELECT 88 + + COUNT ( * ) AS col0, + 57 + + 0 AS col2
----
89
57

query I rowsort
SELECT DISTINCT + 90 * - 78
----
-7020

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT 98 + 39 + - + NULLIF ( - - COUNT( * ), - 49 + + 42 ) * + 48 + + - 79 + 65
----
75

skipif mysql # not compatible
query I rowsort label-7050
SELECT 98 + 39 + - + NULLIF ( - - COUNT ( * ), - 49 + + 42 ) * + 48 + + - 79 + 65
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7051
SELECT ALL + 18 - + COUNT( * ) + - 25 + + CAST( NULL AS SIGNED ) * + 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL + 18 - + COUNT ( * ) + - 25 + + CAST ( NULL AS INTEGER ) * + 68 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7052
SELECT COUNT( * ) * - 67, 50 AS col1
----
-67
50

skipif mysql # not compatible
query II rowsort label-7052
SELECT COUNT ( * ) * - 67, 50 AS col1
----
-67
50

onlyif mysql # aggregate syntax: 
query II rowsort label-7053
SELECT DISTINCT - 91 * - 8, - COUNT( * ) * + - 65 col0
----
728
65

skipif mysql # not compatible
query II rowsort label-7053
SELECT DISTINCT - 91 * - 8, - COUNT ( * ) * + - 65 col0
----
728
65

onlyif mysql # DIV for integer division: 
query I rowsort label-7054
SELECT 23 DIV + 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7054
SELECT 23 / + 69 AS col0
----
0

query I rowsort
SELECT 29 * + 37 AS col0
----
1073

query I rowsort
SELECT ALL + 18 * + 84 AS col0
----
1512

query I rowsort
SELECT 4 * 84
----
336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7058
SELECT + 71 * - CAST( NULL AS SIGNED ) * - 72 + + - COUNT( 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7058
SELECT + 71 * - CAST ( NULL AS INTEGER ) * - 72 + + - COUNT ( 70 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7059
SELECT + COUNT( * ) - 51 AS col0, - 84 * - - 33
----
-50
-2772

skipif mysql # not compatible
query II rowsort label-7059
SELECT + COUNT ( * ) - 51 AS col0, - 84 * - - 33
----
-50
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT NULLIF ( - + 15, COUNT( * ) )
----
-15

skipif mysql # not compatible
query I rowsort label-7060
SELECT NULLIF ( - + 15, COUNT ( * ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT DISTINCT COUNT( * ) + 28 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-7061
SELECT DISTINCT COUNT ( * ) + 28 AS col0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-7062
SELECT 98 * - - 76 + 61 - 30 * - + 28 DIV + + 1
----
8349

skipif mysql # not compatible
query I rowsort label-7062
SELECT 98 * - - 76 + 61 - 30 * - + 28 / + + 1
----
8349

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7063
SELECT ALL 66 + + + COUNT( * ) DIV - + 65
----
66

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL 66 + + + COUNT ( * ) / - + 65
----
66

query I rowsort
SELECT + 8 * + - 92 + - 16
----
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT COUNT( * ) * 67 * - + 79 col0
----
-5293

skipif mysql # not compatible
query I rowsort label-7065
SELECT COUNT ( * ) * 67 * - + 79 col0
----
-5293

query I rowsort
SELECT + COALESCE ( + 0, + 74, + - 40 ) AS col2
----
0

query I rowsort
SELECT DISTINCT - 1 * + - 49 * - 0 + 39 AS col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7068
SELECT + 76 DIV - 94 + - 11
----
-11

skipif mysql # not compatible
query I rowsort label-7068
SELECT + 76 / - 94 + - 11
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT ALL + 77 - + 66 + 54 + - 92 - + 12 + - COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-7069
SELECT ALL + 77 - + 66 + 54 + - 92 - + 12 + - COUNT ( * ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT DISTINCT 81 - - 14 + - COUNT( * ) * - ( COUNT( * ) ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-7070
SELECT DISTINCT 81 - - 14 + - COUNT ( * ) * - ( COUNT ( * ) ) AS col0
----
96

query I rowsort
SELECT 60 * + ( + 15 )
----
900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7072
SELECT CAST( + 82 AS SIGNED ) * - - 9 + - + 0 + 23 AS col2
----
761

skipif mysql # not compatible
query I rowsort label-7072
SELECT CAST ( + 82 AS INTEGER ) * - - 9 + - + 0 + 23 AS col2
----
761

query I rowsort
SELECT ALL 16 - - 84 AS col2
----
100

query II rowsort
SELECT - 73 AS col1, 30 AS col0
----
-73
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT ALL + COUNT( * ) * 48 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL + COUNT ( * ) * 48 AS col0
----
48

query I rowsort
SELECT ( + 76 ) * - + 44
----
-3344

query I rowsort
SELECT 24 * - - 83
----
1992

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7078
SELECT CAST( 59 AS SIGNED ) + - - ( - - CASE - 98 WHEN - 15 + 20 THEN + 7 - - + 98 + - 60 * - + 77 END ) + + 31 * - 26 AS col2, 56 * 34 + 15 * - + 66 * + 34 AS col1
----
NULL
-31756

skipif mysql # not compatible
query II rowsort label-7078
SELECT CAST ( 59 AS INTEGER ) + - - ( - - CASE - 98 WHEN - 15 + 20 THEN + 7 - - + 98 + - 60 * - + 77 END ) + + 31 * - 26 AS col2, 56 * 34 + 15 * - + 66 * + 34 AS col1
----
NULL
-31756

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT DISTINCT + 4 * + COUNT( DISTINCT - - 89 )
----
4

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT + 4 * + COUNT ( DISTINCT - - 89 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT 14 * COUNT( 5 ) col2
----
14

skipif mysql # not compatible
query I rowsort label-7080
SELECT 14 * COUNT ( 5 ) col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7081
SELECT ALL COUNT( DISTINCT - CAST( + 67 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL COUNT ( DISTINCT - CAST ( + 67 AS INTEGER ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7082
SELECT DISTINCT CASE - 92 WHEN 23 + + 22 THEN + 67 DIV - - COUNT( * ) + - CASE - - 56 WHEN - 13 THEN + NULLIF ( - 15, + + 61 * + 32 + NULLIF ( - ( + 75 ), - 91 ) ) + + 91 + - 95 * - 56 ELSE NULL END WHEN 41 + 64 * - CAST( NULL AS SIGNED ) THEN - COUNT( * ) ELSE + 65 END * - 92
----
-5980

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT CASE - 92 WHEN 23 + + 22 THEN + 67 / - - COUNT ( * ) + - CASE - - 56 WHEN - 13 THEN + NULLIF ( - 15, + + 61 * + 32 + NULLIF ( - ( + 75 ), - 91 ) ) + + 91 + - 95 * - 56 ELSE NULL END WHEN 41 + 64 * - CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) ELSE + 65 END * - 92
----
-5980

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT - COUNT( 52 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7083
SELECT - COUNT ( 52 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7084
SELECT 30 + NULLIF ( + 67, - - CAST( COUNT( ALL + 71 ) AS SIGNED ) * + 14 )
----
97

skipif mysql # not compatible
query I rowsort label-7084
SELECT 30 + NULLIF ( + 67, - - CAST ( COUNT ( ALL + 71 ) AS INTEGER ) * + 14 )
----
97

query II rowsort
SELECT ALL + 27 * - 75 + - - ( + 73 ) AS col0, 15
----
-1952
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7086
SELECT - + 68 * CAST( NULL AS SIGNED ) * 74 * AVG ( ALL - NULLIF ( - 64, + CAST( NULL AS SIGNED ) * - 16 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7086
SELECT - + 68 * CAST ( NULL AS INTEGER ) * 74 * AVG ( ALL - NULLIF ( - 64, + CAST ( NULL AS INTEGER ) * - 16 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT DISTINCT + 29 * - COUNT( * ) + + 91 + - + 15 * + 65 + 50 - + + 99 + - 6 * - 72 * + ( 32 ) col0
----
12862

skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT + 29 * - COUNT ( * ) + + 91 + - + 15 * + 65 + 50 - + + 99 + - 6 * - 72 * + ( 32 ) col0
----
12862

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT ALL + MAX( + 34 ) * 73 + 37
----
2519

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL + MAX ( + 34 ) * 73 + 37
----
2519

query I rowsort
SELECT ALL - + 77 * + 88 AS col0
----
-6776

query I rowsort
SELECT - 67 * 98 AS col0
----
-6566

query I rowsort
SELECT DISTINCT - 97 * 14 AS col1
----
-1358

query I rowsort
SELECT - 10 * + 60 AS col0
----
-600

query II rowsort
SELECT + + 74, - 69 AS col0
----
74
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7094
SELECT 41 * - ( COUNT( * ) ) - + CAST( 45 AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-7094
SELECT 41 * - ( COUNT ( * ) ) - + CAST ( 45 AS INTEGER )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT - MIN( - 20 )
----
20

skipif mysql # not compatible
query I rowsort label-7095
SELECT - MIN ( - 20 )
----
20

query I rowsort
SELECT DISTINCT + ( + 54 )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7097
SELECT ALL CASE - + 27 WHEN 81 * - - 15 + + 72 + 81 THEN + COUNT( * ) + + COUNT( * ) ELSE 92 END * + - COUNT( * ) * COUNT( * ) DIV - + COUNT( * ) + - + NULLIF ( + ( + 64 ), 65 * + 96 ) + + 6
----
34

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL CASE - + 27 WHEN 81 * - - 15 + + 72 + 81 THEN + COUNT ( * ) + + COUNT ( * ) ELSE 92 END * + - COUNT ( * ) * COUNT ( * ) / - + COUNT ( * ) + - + NULLIF ( + ( + 64 ), 65 * + 96 ) + + 6
----
34

query I rowsort
SELECT - + 67 - - - 6 AS col1
----
-73

query II rowsort
SELECT + 79, 9 AS col0
----
79
9

query II rowsort
SELECT ALL + - 43, - 92 + 65 AS col0
----
-43
-27

query I rowsort
SELECT + 83 * 20
----
1660

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT + 76 * + ( MAX( 12 ) ) - - - 1 col0
----
911

skipif mysql # not compatible
query I rowsort label-7102
SELECT + 76 * + ( MAX ( 12 ) ) - - - 1 col0
----
911

onlyif mysql # aggregate syntax: 
query II rowsort label-7103
SELECT ALL + - ( COUNT( DISTINCT - - 35 ) ) AS col2, - 80 * + - 8 AS col2
----
-1
640

skipif mysql # not compatible
query II rowsort label-7103
SELECT ALL + - ( COUNT ( DISTINCT - - 35 ) ) AS col2, - 80 * + - 8 AS col2
----
-1
640

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT - 40 + - MAX( 96 ) * ( 54 )
----
-5224

skipif mysql # not compatible
query I rowsort label-7104
SELECT - 40 + - MAX ( 96 ) * ( 54 )
----
-5224

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT - 22 * + - COUNT( * ) col0
----
22

skipif mysql # not compatible
query I rowsort label-7105
SELECT - 22 * + - COUNT ( * ) col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT + 28 * COUNT( * ) col1
----
28

skipif mysql # not compatible
query I rowsort label-7106
SELECT + 28 * COUNT ( * ) col1
----
28

query I rowsort
SELECT DISTINCT 33 * - 88 * + 65 * + - 43 AS col0
----
8116680

query I rowsort
SELECT + 63 * 66 AS col0
----
4158

query I rowsort
SELECT ALL 68 * + 26 col2
----
1768

query I rowsort
SELECT + 92 * 94 * - 5 AS col1
----
-43240

query I rowsort
SELECT + 27 + - 97 AS col0
----
-70

onlyif mysql # DIV for integer division: 
query II rowsort label-7112
SELECT + 44 DIV 14, 12 * 42 AS col0
----
3
504

skipif mysql # not compatible
query II rowsort label-7112
SELECT + 44 / 14, 12 * 42 AS col0
----
3
504

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT ALL COUNT( - + 70 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL COUNT ( - + 70 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7114
SELECT + 20 + - 52, + 97 DIV - 8 col0
----
-32
-12

skipif mysql # not compatible
query II rowsort label-7114
SELECT + 20 + - 52, + 97 / - 8 col0
----
-32
-12

query I rowsort
SELECT + 96 + 20 * 8 + + 37 * - 62 - + 24
----
-2062

onlyif mysql # DIV for integer division: 
query II rowsort label-7116
SELECT + 8 DIV + NULLIF ( - ( - 20 ), + 48 ) * - 33 * + - 6 AS col0, - 34 + - + 35
----
0
-69

skipif mysql # not compatible
query II rowsort label-7116
SELECT + 8 / + NULLIF ( - ( - 20 ), + 48 ) * - 33 * + - 6 AS col0, - 34 + - + 35
----
0
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-7117
SELECT + 14 DIV + - 25
----
0

skipif mysql # not compatible
query I rowsort label-7117
SELECT + 14 / + - 25
----
0

query I rowsort
SELECT - NULLIF ( + + 70, + 20 ) col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT + 2 + - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7119
SELECT + 2 + - + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT 25 + NULLIF ( - + 40, 24 - - 72 * + 25 ) - 46 + - 74 AS col1
----
-135

query I rowsort
SELECT + 37 * 97 AS col1
----
3589

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT DISTINCT 2 + + COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7122
SELECT DISTINCT 2 + + COUNT ( * ) AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7123
SELECT ALL + 61 / CAST( NULL AS SIGNED ) - - 33 + + 22 - + - 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL + 61 / CAST ( NULL AS INTEGER ) - - 33 + + 22 - + - 31 AS col1
----
NULL

query I rowsort
SELECT + + 3 * - 48 - - 26
----
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7125
SELECT ALL COUNT( * ) DIV 23 + 99 + - - CAST( - 73 AS SIGNED ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL COUNT ( * ) / 23 + 99 + - - CAST ( - 73 AS INTEGER ) AS col1
----
26

query I rowsort
SELECT + - 71 + 99 AS col2
----
28

query I rowsort
SELECT + - 12 * + 46
----
-552

onlyif mysql # aggregate syntax: 
query II rowsort label-7128
SELECT + NULLIF ( + - 44, - 66 * - + 3 ) AS col1, - COUNT( - - 10 ) AS col1
----
-44
-1

skipif mysql # not compatible
query II rowsort label-7128
SELECT + NULLIF ( + - 44, - 66 * - + 3 ) AS col1, - COUNT ( - - 10 ) AS col1
----
-44
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT - COUNT( * ) * - ( - 15 ) * - COUNT( * ) + - 11 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7129
SELECT - COUNT ( * ) * - ( - 15 ) * - COUNT ( * ) + - 11 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT - COUNT( * ) - 62 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-7130
SELECT - COUNT ( * ) - 62 AS col0
----
-63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7131
SELECT DISTINCT - - ( + - 92 ) DIV 67 * + 46, + ( 95 ) * 97 DIV + - CAST( 37 AS SIGNED ) AS col2
----
-46
-249

skipif mysql # not compatible
query II rowsort label-7131
SELECT DISTINCT - - ( + - 92 ) / 67 * + 46, + ( 95 ) * 97 / + - CAST ( 37 AS INTEGER ) AS col2
----
-46
-249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7132
SELECT ALL + 45 * + 75 * COUNT( 80 ) - CAST( NULL AS SIGNED ) * + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7132
SELECT ALL + 45 * + 75 * COUNT ( 80 ) - CAST ( NULL AS INTEGER ) * + 37 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7133
SELECT ALL - ( + - ( + 19 ) ) * - CAST( NULL AS SIGNED ) * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-7133
SELECT ALL - ( + - ( + 19 ) ) * - CAST ( NULL AS INTEGER ) * + 83
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7134
SELECT - 58 + - CAST( NULL AS SIGNED ) col0, - 71 + + + 10 AS col1
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-7134
SELECT - 58 + - CAST ( NULL AS INTEGER ) col0, - 71 + + + 10 AS col1
----
NULL
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT ALL + - CASE + - 48 WHEN + 1 * + COALESCE ( - MAX( - + 14 ), - 98 + + 4 ) * + ( + 61 ) + 88 * + 35 + + - 97 THEN NULL WHEN - + 69 * + COUNT( * ) * + 20 + 70 THEN 85 ELSE NULL END * - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL + - CASE + - 48 WHEN + 1 * + COALESCE ( - MAX ( - + 14 ), - 98 + + 4 ) * + ( + 61 ) + 88 * + 35 + + - 97 THEN NULL WHEN - + 69 * + COUNT ( * ) * + 20 + 70 THEN 85 ELSE NULL END * - 87
----
NULL

query II rowsort
SELECT + ( 94 ) AS col0, + 23 * 80
----
94
1840

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT - - 5 + MAX( DISTINCT 33 ) * - + NULLIF ( + 97, - 12 + - COUNT( + 84 ) - + + SUM( - 41 ) ) AS col0
----
-3196

skipif mysql # not compatible
query I rowsort label-7137
SELECT - - 5 + MAX ( DISTINCT 33 ) * - + NULLIF ( + 97, - 12 + - COUNT ( + 84 ) - + + SUM ( - 41 ) ) AS col0
----
-3196

query I rowsort
SELECT NULLIF ( - - 6, 81 ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7139
SELECT + 4 * - NULLIF ( NULLIF ( + 50, - 67 * 18 + - - 30 + - - 87 * + 32 + 95 - - - 48 / - - CAST( - COUNT( * ) AS SIGNED ) + SUM( ALL 20 ) * + + CAST( + 47 AS SIGNED ) * 0 * - COUNT( * ) ), 76 ) AS col0
----
-200

skipif mysql # not compatible
query I rowsort label-7139
SELECT + 4 * - NULLIF ( NULLIF ( + 50, - 67 * 18 + - - 30 + - - 87 * + 32 + 95 - - - 48 / - - CAST ( - COUNT ( * ) AS INTEGER ) + SUM ( ALL 20 ) * + + CAST ( + 47 AS INTEGER ) * 0 * - COUNT ( * ) ), 76 ) AS col0
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT DISTINCT - 31 * - 56 * - CASE + 78 WHEN 46 + + - 83 THEN 37 ELSE NULL END * + 88 - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT - 31 * - 56 * - CASE + 78 WHEN 46 + + - 83 THEN 37 ELSE NULL END * + 88 - + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7141
SELECT COALESCE ( + 52, 57 DIV - ( + 54 ) + + 31 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-7141
SELECT COALESCE ( + 52, 57 / - ( + 54 ) + + 31 ) AS col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7142
SELECT ALL CAST( + 13 AS SIGNED ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL CAST ( + 13 AS INTEGER ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT ALL COUNT( * ) * - 54 * COUNT( * ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL COUNT ( * ) * - 54 * COUNT ( * ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT MAX( - 19 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-7144
SELECT MAX ( - 19 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT - COUNT( * ) * + 56 * SUM( DISTINCT + 66 ) * - 35 col0
----
129360

skipif mysql # not compatible
query I rowsort label-7145
SELECT - COUNT ( * ) * + 56 * SUM ( DISTINCT + 66 ) * - 35 col0
----
129360

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT 20 + - SUM( DISTINCT - 41 ) + + 51 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-7146
SELECT 20 + - SUM ( DISTINCT - 41 ) + + 51 AS col1
----
112

query I rowsort
SELECT 23 - - 83 + - 26 * + 59 * + + 36 AS col0
----
-55118

query II rowsort
SELECT ALL 3 col0, + 93 - + + 6
----
3
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7149
SELECT ALL - COALESCE ( + 63, + CAST( - COUNT( * ) AS SIGNED ) * + 35 ) + 25 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL - COALESCE ( + 63, + CAST ( - COUNT ( * ) AS INTEGER ) * + 35 ) + 25 AS col2
----
-38

query II rowsort
SELECT DISTINCT 62 AS col2, + 2 * 83 * - CASE + + 5 WHEN - + 76 * - - 27 THEN - 41 WHEN + 50 THEN NULL ELSE NULL END + 26 * - 46
----
62
NULL

query I rowsort
SELECT ALL - 66 + + 25 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-7152
SELECT MAX( DISTINCT - + 88 ) + 5 AS col2, + 74 AS col1
----
-83
74

skipif mysql # not compatible
query II rowsort label-7152
SELECT MAX ( DISTINCT - + 88 ) + 5 AS col2, + 74 AS col1
----
-83
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT + COUNT( * ) * - 26 * 97
----
-2522

skipif mysql # not compatible
query I rowsort label-7153
SELECT + COUNT ( * ) * - 26 * 97
----
-2522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7154
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7154
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT + 49 + + COUNT( * ) - - 51 * 46 AS col2
----
2396

skipif mysql # not compatible
query I rowsort label-7155
SELECT + 49 + + COUNT ( * ) - - 51 * 46 AS col2
----
2396

query II rowsort
SELECT - - 11 AS col2, - 43 AS col0
----
11
-43

query I rowsort
SELECT 42 * - 82 AS col0
----
-3444

query I rowsort
SELECT 1 * - + 47 * + 65
----
-3055

query I rowsort
SELECT 67 * 44 + + - ( 3 ) + - COALESCE ( + 57, + 97 ) col0
----
2888

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT ALL - + CASE - - 75 WHEN COUNT( * ) THEN + 90 * + 58 WHEN + 80 THEN NULL WHEN + 33 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL - + CASE - - 75 WHEN COUNT ( * ) THEN + 90 * + 58 WHEN + 80 THEN NULL WHEN + 33 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT DISTINCT - COUNT( * ) * - - 24
----
-24

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT - COUNT ( * ) * - - 24
----
-24

query I rowsort
SELECT ALL - + 81 col0
----
-81

query I rowsort
SELECT + 56 * - 89 AS col0
----
-4984

query I rowsort
SELECT + COALESCE ( - 6, 47 )
----
-6

query II rowsort
SELECT + 65 AS col2, + 78
----
65
78

query I rowsort
SELECT + 22 * 90 AS col1
----
1980

query I rowsort
SELECT + 4 * + + 41 + - + 10 - + 72 AS col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7168
SELECT 80 DIV 54 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7168
SELECT 80 / 54 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7169
SELECT - NULLIF ( + 39, MIN( DISTINCT - 98 ) ) - - 93, + COUNT( * ) AS col2
----
54
1

skipif mysql # not compatible
query II rowsort label-7169
SELECT - NULLIF ( + 39, MIN ( DISTINCT - 98 ) ) - - 93, + COUNT ( * ) AS col2
----
54
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7170
SELECT ALL - 59 AS col2, 38 DIV + - 44 DIV COUNT( * ) + + SUM( DISTINCT + 86 )
----
-59
86

skipif mysql # not compatible
query II rowsort label-7170
SELECT ALL - 59 AS col2, 38 / + - 44 / COUNT ( * ) + + SUM ( DISTINCT + 86 )
----
-59
86

query I rowsort
SELECT 98 * - - ( + 12 ) AS col1
----
1176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7172
SELECT 4 DIV - MIN( + 72 ) * + ( 39 )
----
0

skipif mysql # not compatible
query I rowsort label-7172
SELECT 4 / - MIN ( + 72 ) * + ( 39 )
----
0

query I rowsort
SELECT DISTINCT + ( 5 ) + + COALESCE ( + 68, + 1 ) AS col1
----
73

query II rowsort
SELECT ALL - 78, + 38 AS col2
----
-78
38

query II rowsort
SELECT ALL - 49 AS col0, 66
----
-49
66

onlyif mysql # aggregate syntax: 
query II rowsort label-7176
SELECT ALL + 27 + + 12 AS col1, + 16 + + - 38 - + 56 * - + MAX( 67 ) + - 95 AS col0
----
39
3635

skipif mysql # not compatible
query II rowsort label-7176
SELECT ALL + 27 + + 12 AS col1, + 16 + + - 38 - + 56 * - + MAX ( 67 ) + - 95 AS col0
----
39
3635

query I rowsort
SELECT - 87 * + 57 - + 56 * - 71 * 67 + + - 93 + - 73 * - 25
----
263165

query I rowsort
SELECT DISTINCT - COALESCE ( + + 21, + 16 + + - 32 ) + - 13 * + + 32 AS col2
----
-437

query I rowsort
SELECT 33 - - + 10
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7180
SELECT ALL + ( - + 71 ) + - 53 DIV - - 70 * - COUNT( * ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL + ( - + 71 ) + - 53 / - - 70 * - COUNT ( * ) AS col0
----
-71

query II rowsort
SELECT 45 AS col1, + 69 AS col0
----
45
69

query I rowsort
SELECT 23 + 11
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT DISTINCT + COUNT( * ) + - 32
----
-31

skipif mysql # not compatible
query I rowsort label-7183
SELECT DISTINCT + COUNT ( * ) + - 32
----
-31

query I rowsort
SELECT 32 + - 31 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT ALL - COUNT( * ) + + + 90 * 14
----
1259

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL - COUNT ( * ) + + + 90 * 14
----
1259

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7186
SELECT DISTINCT 66 + + ( + MIN( ALL + 44 ) ) DIV + + 41 col0
----
67

skipif mysql # not compatible
query I rowsort label-7186
SELECT DISTINCT 66 + + ( + MIN ( ALL + 44 ) ) / + + 41 col0
----
67

query II rowsort
SELECT ALL 25 + 77, + 27 * + 57 - - - 40 AS col0
----
102
1499

query II rowsort
SELECT - 56, - 23 AS col0
----
-56
-23

query II rowsort
SELECT ALL 57 AS col2, 22 AS col0
----
57
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7190
SELECT DISTINCT - - 28 - - - CAST( - - ( - + 77 ) AS SIGNED ) + 49 AS col2
----
154

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT - - 28 - - - CAST ( - - ( - + 77 ) AS INTEGER ) + 49 AS col2
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT - ( - 73 ) * - - ( - + 96 ) + + COUNT( * )
----
-7007

skipif mysql # not compatible
query I rowsort label-7191
SELECT - ( - 73 ) * - - ( - + 96 ) + + COUNT ( * )
----
-7007

query II rowsort
SELECT - - 26 AS col0, + 86 AS col0
----
26
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7193
SELECT + COUNT( * ) AS col1, COUNT( * ) * + - CAST( + - 19 AS SIGNED ) * - 11 + + 48
----
1
-161

skipif mysql # not compatible
query II rowsort label-7193
SELECT + COUNT ( * ) AS col1, COUNT ( * ) * + - CAST ( + - 19 AS INTEGER ) * - 11 + + 48
----
1
-161

query II rowsort
SELECT ALL + 59, 49 AS col2
----
59
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT ALL + MIN( DISTINCT - + 59 ) * + 15
----
-885

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL + MIN ( DISTINCT - + 59 ) * + 15
----
-885

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7196
SELECT ALL - CAST( NULL AS DECIMAL ) AS col0, - 32 DIV 73
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7196
SELECT ALL - CAST ( NULL AS REAL ) AS col0, - 32 / 73
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7197
SELECT ALL - COUNT( * ) - 38 DIV + 8
----
-5

skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL - COUNT ( * ) - 38 / + 8
----
-5

query I rowsort
SELECT 95 * + 79
----
7505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7199
SELECT + 57 * - COALESCE ( 99, + + CAST( CASE + 50 WHEN + 27 THEN NULL WHEN - + CASE 95 WHEN + 67 + MIN( DISTINCT CAST( NULL AS SIGNED ) ) THEN - 0 WHEN + + CAST( - + ( - 90 ) AS SIGNED ) + 22 THEN NULL END + + - 11 THEN NULL ELSE 83 + - COALESCE ( + COUNT( * ), 91, - 18 * 10 ) - - SUM( 31 ) * - 79 END AS SIGNED ) ) * 31 + 56 - 37
----
-174914

skipif mysql # not compatible
query I rowsort label-7199
SELECT + 57 * - COALESCE ( 99, + + CAST ( CASE + 50 WHEN + 27 THEN NULL WHEN - + CASE 95 WHEN + 67 + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN - 0 WHEN + + CAST ( - + ( - 90 ) AS INTEGER ) + 22 THEN NULL END + + - 11 THEN NULL ELSE 83 + - COALESCE ( + COUNT ( * ), 91, - 18 * 10 ) - - SUM ( 31 ) * - 79 END AS INTEGER ) ) * 31 + 56 - 37
----
-174914

query I rowsort
SELECT + 53 * + 82 * - + 18
----
-78228

onlyif mysql # aggregate syntax: 
query II rowsort label-7201
SELECT - 87, + COUNT( + - 1 ) AS col0
----
-87
1

skipif mysql # not compatible
query II rowsort label-7201
SELECT - 87, + COUNT ( + - 1 ) AS col0
----
-87
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7202
SELECT + 69 / - 57 + + 14 + - - ( - 43 ) - + + COUNT( * ) * - - 88 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7202
SELECT + 69 / - 57 + + 14 + - - ( - 43 ) - + + COUNT ( * ) * - - 88 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7203
SELECT 75 DIV COUNT( * ) + - + 12 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-7203
SELECT 75 / COUNT ( * ) + - + 12 AS col0
----
63

query I rowsort
SELECT - 76 * + 40
----
-3040

query II rowsort
SELECT 65 AS col1, + 69 col1
----
65
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7206
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + + MIN( - ( + 66 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7206
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + + MIN ( - ( + 66 ) ) AS col2
----
NULL

query I rowsort
SELECT + ( 79 ) + + - 56 col0
----
23

query I rowsort
SELECT ALL - NULLIF ( - - 52, + 78 + - + 36 + 97 / - 54 ) * + + 79 + + 61
----
-4047

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT ( + 63 ) + - - COUNT( + - 64 ) + - - 65 * - - 97 AS col1
----
6369

skipif mysql # not compatible
query I rowsort label-7209
SELECT ( + 63 ) + - - COUNT ( + - 64 ) + - - 65 * - - 97 AS col1
----
6369

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT ALL COUNT( + + 14 ) * - 76 * 28 + ( - 34 ) + + - 42
----
-2204

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL COUNT ( + + 14 ) * - 76 * 28 + ( - 34 ) + + - 42
----
-2204

query I rowsort
SELECT ALL 10 + - 59
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT 59 * - COUNT( * ) + 80 + + 55 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7212
SELECT 59 * - COUNT ( * ) + 80 + + 55 AS col2
----
76

query I rowsort
SELECT 42 + 51 col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT MAX( + 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7214
SELECT MAX ( + 3 ) AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7215
SELECT + 79 + + 36 DIV + 99
----
79

skipif mysql # not compatible
query I rowsort label-7215
SELECT + 79 + + 36 / + 99
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7216
SELECT DISTINCT + 14 + - CAST( NULL AS SIGNED ) + + - 48 * + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT + 14 + - CAST ( NULL AS INTEGER ) + + - 48 * + 78
----
NULL

query I rowsort
SELECT ALL + 97 - 25 AS col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7218
SELECT ALL 37 DIV 23 AS col2, + COUNT( * ) DIV - 69 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-7218
SELECT ALL 37 / 23 AS col2, + COUNT ( * ) / - 69 AS col0
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT - 1 * + 78 - - COUNT( 97 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-7219
SELECT - 1 * + 78 - - COUNT ( 97 ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-7220
SELECT - COUNT( * ) + + 88 + 71 * + - 27 + - COUNT( * ) - - COUNT( * ) - COALESCE ( - - 18, - - 92 ) + 35 * + - 54 * 6 col0, 64
----
-13188
64

skipif mysql # not compatible
query II rowsort label-7220
SELECT - COUNT ( * ) + + 88 + 71 * + - 27 + - COUNT ( * ) - - COUNT ( * ) - COALESCE ( - - 18, - - 92 ) + 35 * + - 54 * 6 col0, 64
----
-13188
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT DISTINCT + 52 * - - 13 * COALESCE ( + 95, ( + COUNT( * ) ) ) col1
----
64220

skipif mysql # not compatible
query I rowsort label-7221
SELECT DISTINCT + 52 * - - 13 * COALESCE ( + 95, ( + COUNT ( * ) ) ) col1
----
64220

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT ALL - 97 - - 48 - + COALESCE ( - 33, - 46 * + - 34 * - MIN( ALL - - ( - 26 ) ) * + 19 * COUNT( ALL + + 7 ) + 81 + - ( COUNT( * ) ) + 15 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL - 97 - - 48 - + COALESCE ( - 33, - 46 * + - 34 * - MIN ( ALL - - ( - 26 ) ) * + 19 * COUNT ( ALL + + 7 ) + 81 + - ( COUNT ( * ) ) + 15 ) AS col1
----
-16

query I rowsort
SELECT + 95 * - 32 * - 72 AS col0
----
218880

query II rowsort
SELECT - 1 * - 9 AS col1, 5 AS col0
----
9
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7225
SELECT - + CAST( NULL AS SIGNED ) * 87 * + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7225
SELECT - + CAST ( NULL AS INTEGER ) * 87 * + - 64
----
NULL

query I rowsort
SELECT - - 83 + - 84
----
-1

query I rowsort
SELECT DISTINCT 53 * + - 41 + + 75
----
-2098

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT - - ( + + ( + CASE 59 WHEN - 64 * - MIN( DISTINCT - 70 ) - 79 + - 65 THEN NULL WHEN - - 93 THEN + 31 ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7228
SELECT - - ( + + ( + CASE 59 WHEN - 64 * - MIN ( DISTINCT - 70 ) - 79 + - 65 THEN NULL WHEN - - 93 THEN + 31 ELSE NULL END ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7229
SELECT ALL + - COUNT( * ) * - 82 col2, - 40
----
82
-40

skipif mysql # not compatible
query II rowsort label-7229
SELECT ALL + - COUNT ( * ) * - 82 col2, - 40
----
82
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT ALL MAX( DISTINCT - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL MAX ( DISTINCT - 66 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7231
SELECT - 38 - - NULLIF ( - - 40, + 95 ) + - 43 + + CAST( NULL AS SIGNED ) * + COUNT( * ) * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-7231
SELECT - 38 - - NULLIF ( - - 40, + 95 ) + - 43 + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * 56
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7232
SELECT + MIN( DISTINCT - 16 ), + 33 + + - 56 AS col1
----
-16
-23

skipif mysql # not compatible
query II rowsort label-7232
SELECT + MIN ( DISTINCT - 16 ), + 33 + + - 56 AS col1
----
-16
-23

query I rowsort
SELECT ALL - + 29 * + 93 col0
----
-2697

onlyif mysql # aggregate syntax: 
query II rowsort label-7234
SELECT ALL + - 14 * - 92 * COUNT( * ) + + NULLIF ( - + 24, + + 38 - - 21 ) + + COUNT( * ) col2, + 57 * 72 + - + 89 AS col0
----
1265
4015

skipif mysql # not compatible
query II rowsort label-7234
SELECT ALL + - 14 * - 92 * COUNT ( * ) + + NULLIF ( - + 24, + + 38 - - 21 ) + + COUNT ( * ) col2, + 57 * 72 + - + 89 AS col0
----
1265
4015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7235
SELECT ALL - - 15 * + - 88 + - 99 - - COUNT( * ) + - + CASE + ( + + COALESCE ( 46, + - 35 * - + ( + 64 ) * + - 61 * + - 76 * - NULLIF ( + 61, - COUNT( * ) ) - 51 + + + 28 ) ) WHEN 87 THEN CAST( NULL AS SIGNED ) / + 34 * + - 95 - 33 END * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL - - 15 * + - 88 + - 99 - - COUNT ( * ) + - + CASE + ( + + COALESCE ( 46, + - 35 * - + ( + 64 ) * + - 61 * + - 76 * - NULLIF ( + 61, - COUNT ( * ) ) - 51 + + + 28 ) ) WHEN 87 THEN CAST ( NULL AS INTEGER ) / + 34 * + - 95 - 33 END * + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + 49 * 83 + + 97 + + 67
----
4231

query I rowsort
SELECT ( + 21 ) AS col1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7238
SELECT - 92 DIV + 58 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7238
SELECT - 92 / + 58 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT - 9 * + CASE 61 WHEN + 99 THEN + COUNT( * ) * - 22 + + + 11 + - 42 - + - 2 * - 85 * COUNT( * ) ELSE + 63 END AS col0
----
-567

skipif mysql # not compatible
query I rowsort label-7239
SELECT - 9 * + CASE 61 WHEN + 99 THEN + COUNT ( * ) * - 22 + + + 11 + - 42 - + - 2 * - 85 * COUNT ( * ) ELSE + 63 END AS col0
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT COALESCE ( COUNT( ALL 38 ), - 90 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7240
SELECT COALESCE ( COUNT ( ALL 38 ), - 90 ) AS col1
----
1

query I rowsort
SELECT + ( - - COALESCE ( 26, 30 ) ) AS col0
----
26

query II rowsort
SELECT DISTINCT + 84 AS col0, + 41
----
84
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT + 62 - - 20 * + COUNT( * ) col2
----
82

skipif mysql # not compatible
query I rowsort label-7243
SELECT + 62 - - 20 * + COUNT ( * ) col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7244
SELECT ALL 16 * 72 + ( CAST( + 49 AS SIGNED ) ) AS col1
----
1201

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL 16 * 72 + ( CAST ( + 49 AS INTEGER ) ) AS col1
----
1201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7245
SELECT CASE - 54 WHEN - + 94 THEN NULL ELSE - 42 * CAST( NULL AS SIGNED ) / 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7245
SELECT CASE - 54 WHEN - + 94 THEN NULL ELSE - 42 * CAST ( NULL AS INTEGER ) / 75 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7246
SELECT ALL 22 * + - 17 - - 98 DIV + 38 + - 50 * - CAST( 83 AS SIGNED ) * - - COUNT( * ) + - 49 AS col2
----
3729

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL 22 * + - 17 - - 98 / + 38 + - 50 * - CAST ( 83 AS INTEGER ) * - - COUNT ( * ) + - 49 AS col2
----
3729

query I rowsort
SELECT + 2 + 43 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT + ( + + COUNT( + + 47 ) ) - + + 55 * - SUM( ( + 62 ) ) + + - 39 AS col2
----
3372

skipif mysql # not compatible
query I rowsort label-7248
SELECT + ( + + COUNT ( + + 47 ) ) - + + 55 * - SUM ( ( + 62 ) ) + + - 39 AS col2
----
3372

query I rowsort
SELECT + 19 * + - 33 AS col0
----
-627

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT - COUNT( * ) * + - 66 + - 84 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-7250
SELECT - COUNT ( * ) * + - 66 + - 84 AS col0
----
-18

query I rowsort
SELECT - CASE 82 WHEN - 48 THEN - 2 + - 53 WHEN - 24 THEN + 68 + + 36 / + 81 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT MIN( ALL + 15 ) col1
----
15

skipif mysql # not compatible
query I rowsort label-7252
SELECT MIN ( ALL + 15 ) col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT SUM( 67 ) * + 10 + + 25 * 31
----
1445

skipif mysql # not compatible
query I rowsort label-7253
SELECT SUM ( 67 ) * + 10 + + 25 * 31
----
1445

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT + + 54 + ( - COUNT( * ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-7254
SELECT + + 54 + ( - COUNT ( * ) ) AS col1
----
53

query I rowsort
SELECT + ( + 12 ) * - - 24 + - + 53 + 42 col2
----
277

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT ALL MAX( DISTINCT - - 25 )
----
25

skipif mysql # not compatible
query I rowsort label-7256
SELECT ALL MAX ( DISTINCT - - 25 )
----
25

query I rowsort
SELECT DISTINCT - 35 * + NULLIF ( - 10, 82 / + ( - - CASE - 62 WHEN - - 23 THEN + 51 END ) )
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT - SUM( 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-7258
SELECT - SUM ( 23 )
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7259
SELECT + + COUNT( * ) DIV - 58 - 9
----
-9

skipif mysql # not compatible
query I rowsort label-7259
SELECT + + COUNT ( * ) / - 58 - 9
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7260
SELECT - - 97 * + 15 + - - 58, 13 / - 11 + - CASE - - 35 WHEN NULLIF ( 95, - CAST( NULL AS SIGNED ) / + - 3 ) + - 3 + 29 THEN + - 52 END col1
----
1513
NULL

skipif mysql # not compatible
query II rowsort label-7260
SELECT - - 97 * + 15 + - - 58, 13 / - 11 + - CASE - - 35 WHEN NULLIF ( 95, - CAST ( NULL AS INTEGER ) / + - 3 ) + - 3 + 29 THEN + - 52 END col1
----
1513
NULL

query I rowsort
SELECT - 35 + - 35 col2
----
-70

query I rowsort
SELECT ALL + 33 * - 30
----
-990

onlyif mysql # aggregate syntax: 
query II rowsort label-7263
SELECT - + COUNT( * ) AS col2, + 30 * - 5 col2
----
-1
-150

skipif mysql # not compatible
query II rowsort label-7263
SELECT - + COUNT ( * ) AS col2, + 30 * - 5 col2
----
-1
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT - + 22 * + 66 * - 12 + MIN( ALL - 76 )
----
17348

skipif mysql # not compatible
query I rowsort label-7264
SELECT - + 22 * + 66 * - 12 + MIN ( ALL - 76 )
----
17348

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT - MAX( ALL - ( - 23 ) ) + + + COUNT( * ) + - 21 + - COUNT( ALL - + 10 ) * + - 3 + - 81
----
-121

skipif mysql # not compatible
query I rowsort label-7265
SELECT - MAX ( ALL - ( - 23 ) ) + + + COUNT ( * ) + - 21 + - COUNT ( ALL - + 10 ) * + - 3 + - 81
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7266
SELECT ALL + MAX( + 9 ) * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL + MAX ( + 9 ) * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7267
SELECT ALL - 50 + - NULLIF ( + 53, - COUNT( * ) * - - SUM( DISTINCT + - 63 ) + + + NULLIF ( - 11, + + 27 ) * - 32 + - - 53 ) + - - COUNT( ALL - + 9 ) DIV - 9 * 66 DIV 87 + + MAX( + 77 ), - 31 + + 31 + - - 61 * - + 70 AS col2
----
-26
-4270

skipif mysql # not compatible
query II rowsort label-7267
SELECT ALL - 50 + - NULLIF ( + 53, - COUNT ( * ) * - - SUM ( DISTINCT + - 63 ) + + + NULLIF ( - 11, + + 27 ) * - 32 + - - 53 ) + - - COUNT ( ALL - + 9 ) / - 9 * 66 / 87 + + MAX ( + 77 ), - 31 + + 31 + - - 61 * - + 70 AS col2
----
-26
-4270

query II rowsort
SELECT ALL 22, ( - 3 ) col0
----
22
-3

query II rowsort
SELECT ALL + 81 + 83 + - - 11, 50 AS col1
----
175
50

onlyif mysql # DIV for integer division: 
query I rowsort label-7270
SELECT ALL - 70 DIV - 89 + + 13 + 1 DIV + - 94 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL - 70 / - 89 + + 13 + 1 / + - 94 AS col0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7271
SELECT - SUM( 38 ) DIV - - 4 + 98 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-7271
SELECT - SUM ( 38 ) / - - 4 + 98 AS col0
----
89

query I rowsort
SELECT ALL - ( ( - 54 ) ) col2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7273
SELECT - 12 * + 25 + 7 + - 51 + - - 31 + + 83 DIV 63 * - - 41 col0
----
-272

skipif mysql # not compatible
query I rowsort label-7273
SELECT - 12 * + 25 + 7 + - 51 + - - 31 + + 83 / 63 * - - 41 col0
----
-272

query I rowsort
SELECT ALL 50 - + + 26 * - 0 + + 48
----
98

query I rowsort
SELECT 39 * + - 53 col0
----
-2067

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7276
SELECT DISTINCT - CAST( SUM( + + 13 ) AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT - CAST ( SUM ( + + 13 ) AS INTEGER )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT 29 * CASE + - 76 WHEN - NULLIF ( COUNT( * ), + 48 ) THEN + 62 + - 25 END * + + 36 + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7277
SELECT 29 * CASE + - 76 WHEN - NULLIF ( COUNT ( * ), + 48 ) THEN + 62 + - 25 END * + + 36 + 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7278
SELECT + ( + + ( - + 70 ) ) * 88 + + + 89 * + 72 DIV COALESCE ( - 18, + + 81 DIV + - 96 + + 73 + - SUM( DISTINCT COALESCE ( - 64, - - 78 ) ), - - 98 DIV 45 ) col2
----
-6516

skipif mysql # not compatible
query I rowsort label-7278
SELECT + ( + + ( - + 70 ) ) * 88 + + + 89 * + 72 / COALESCE ( - 18, + + 81 / + - 96 + + 73 + - SUM ( DISTINCT COALESCE ( - 64, - - 78 ) ), - - 98 / 45 ) col2
----
-6516

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT COUNT( * ) * + COUNT( + 34 )
----
1

skipif mysql # not compatible
query I rowsort label-7279
SELECT COUNT ( * ) * + COUNT ( + 34 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7280
SELECT SUM( ALL 31 ) DIV - 3
----
-10

skipif mysql # not compatible
query I rowsort label-7280
SELECT SUM ( ALL 31 ) / - 3
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-7281
SELECT DISTINCT + 79 DIV + + 94
----
0

skipif mysql # not compatible
query I rowsort label-7281
SELECT DISTINCT + 79 / + + 94
----
0

query I rowsort
SELECT - COALESCE ( 65, 52 )
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-7283
SELECT + 32 * 2, + 99 * - - COUNT( DISTINCT + + 64 ) + 75 AS col0
----
64
174

skipif mysql # not compatible
query II rowsort label-7283
SELECT + 32 * 2, + 99 * - - COUNT ( DISTINCT + + 64 ) + 75 AS col0
----
64
174

query I rowsort
SELECT - - ( + ( + 99 ) ) AS col2
----
99

query I rowsort
SELECT - 29 * + - 79
----
2291

query I rowsort
SELECT ALL 98 + - 32 - - 46
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-7287
SELECT - 73 - + 2 DIV - 13 col2
----
-73

skipif mysql # not compatible
query I rowsort label-7287
SELECT - 73 - + 2 / - 13 col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT 73 - - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-7288
SELECT 73 - - COUNT ( * )
----
74

query I rowsort
SELECT DISTINCT - - 29 * - 86 AS col0
----
-2494

query I rowsort
SELECT DISTINCT 83 + - + 81 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT DISTINCT ( + 21 ) + + 84 + + COUNT( * ) + 23 col1
----
129

skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT ( + 21 ) + + 84 + + COUNT ( * ) + 23 col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT COALESCE ( - - 78, - ( COUNT( * ) ) + - + 36 + + - 80 + 34 + 56 + + 32 + - COUNT( * ) - - - 81 * + 11 ) * + COUNT( * ) + + 8 col0
----
86

skipif mysql # not compatible
query I rowsort label-7292
SELECT COALESCE ( - - 78, - ( COUNT ( * ) ) + - + 36 + + - 80 + 34 + 56 + + 32 + - COUNT ( * ) - - - 81 * + 11 ) * + COUNT ( * ) + + 8 col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT ALL + ( + - 36 ) * + COUNT( * ) + 57
----
21

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL + ( + - 36 ) * + COUNT ( * ) + 57
----
21

query I rowsort
SELECT DISTINCT + 82 - + 47 * + 75 * + + 12 AS col1
----
-42218

query I rowsort
SELECT DISTINCT 86 * + + 18 * 59 AS col1
----
91332

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT DISTINCT - SUM( ALL + 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-7296
SELECT DISTINCT - SUM ( ALL + 77 )
----
-77

query I rowsort
SELECT - 83 * 23 + - + 8 AS col0
----
-1917

query II rowsort
SELECT ALL + 65 - - - 4 + + 73 + 42 * - 57 AS col1, 2 + + - 32 + - 22 * - 90
----
-2260
1950

onlyif mysql # aggregate syntax: 
query II rowsort label-7299
SELECT + COUNT( * ), - 39 AS col0
----
1
-39

skipif mysql # not compatible
query II rowsort label-7299
SELECT + COUNT ( * ), - 39 AS col0
----
1
-39

query I rowsort
SELECT 38 * + + 77 AS col2
----
2926

query I rowsort
SELECT DISTINCT - 93 * - 99 * + 73
----
672111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7302
SELECT - 32 / - + CAST( + + COUNT( * ) AS SIGNED ) - - 34 - + - 92 * - 95 / + - CAST( NULL AS SIGNED ) * CASE COUNT( * ) WHEN - + COUNT( * ) THEN + + 16 * + COUNT( * ) * - - 79 * - 50 + + 90 END + - 18 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7302
SELECT - 32 / - + CAST ( + + COUNT ( * ) AS INTEGER ) - - 34 - + - 92 * - 95 / + - CAST ( NULL AS INTEGER ) * CASE COUNT ( * ) WHEN - + COUNT ( * ) THEN + + 16 * + COUNT ( * ) * - - 79 * - 50 + + 90 END + - 18 col2
----
NULL

query I rowsort
SELECT 57 + 85 AS col0
----
142

query I rowsort
SELECT ALL + 66 * - + 47
----
-3102

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT 64 * - CASE - - 64 WHEN - NULLIF ( 92, - 15 + + + NULLIF ( 68, + + 48 * - - 99 ) + + 16 ) THEN + 55 * + - ( 72 ) + COUNT( DISTINCT + 57 ) ELSE NULL END * - - 33 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7305
SELECT 64 * - CASE - - 64 WHEN - NULLIF ( 92, - 15 + + + NULLIF ( 68, + + 48 * - - 99 ) + + 16 ) THEN + 55 * + - ( 72 ) + COUNT ( DISTINCT + 57 ) ELSE NULL END * - - 33 col0
----
NULL

query II rowsort
SELECT DISTINCT - 41 AS col2, 0 + + - 59 + - + 90 AS col1
----
-41
-149

query I rowsort
SELECT ALL + 75 + - + 62
----
13

query II rowsort
SELECT DISTINCT - 98, + 39 + + ( + 28 ) AS col2
----
-98
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7309
SELECT + COALESCE ( 7, + 50 + + 25, + COALESCE ( + COUNT( * ), COUNT( 65 ) DIV 32 ) * CAST( NULL AS SIGNED ) ) + - SUM( DISTINCT + + 12 )
----
-5

skipif mysql # not compatible
query I rowsort label-7309
SELECT + COALESCE ( 7, + 50 + + 25, + COALESCE ( + COUNT ( * ), COUNT ( 65 ) / 32 ) * CAST ( NULL AS INTEGER ) ) + - SUM ( DISTINCT + + 12 )
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7310
SELECT CAST( NULL AS DECIMAL ) - + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-7310
SELECT CAST ( NULL AS REAL ) - + 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7311
SELECT + 56 * + COALESCE ( 45, - - NULLIF ( - 21, CAST( NULL AS SIGNED ) ), COUNT( * ) ) + - 62, + COUNT( * ) + - 54 col1
----
2458
-53

skipif mysql # not compatible
query II rowsort label-7311
SELECT + 56 * + COALESCE ( 45, - - NULLIF ( - 21, CAST ( NULL AS INTEGER ) ), COUNT ( * ) ) + - 62, + COUNT ( * ) + - 54 col1
----
2458
-53

query I rowsort
SELECT - 4 + 19 * + 76
----
1440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7313
SELECT ALL + - ( + 99 ) + COUNT( * ) + + - CAST( NULL AS SIGNED ) * + 73 + ( + - 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL + - ( + 99 ) + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * + 73 + ( + - 25 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT NULLIF ( 30, + 4 ) * - 3 * - + 81 + + MAX( ALL + 33 ) AS col0
----
7323

skipif mysql # not compatible
query I rowsort label-7314
SELECT NULLIF ( 30, + 4 ) * - 3 * - + 81 + + MAX ( ALL + 33 ) AS col0
----
7323

query I rowsort
SELECT - 70 + - - 46
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7316
SELECT ALL + 25 * COUNT( * ) DIV - + 64, COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-7316
SELECT ALL + 25 * COUNT ( * ) / - + 64, COUNT ( * ) AS col1
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7317
SELECT DISTINCT + 90, 87 * 89 * - - ( + + ( - + 97 ) ) + + + COALESCE ( 71, - COUNT( * ), - - 59 * - 78 + + - CASE 4 WHEN + 47 - - 38 * + COUNT( * ) * - + CAST( NULL AS SIGNED ) THEN NULL WHEN - COUNT( * ) THEN 83 * - + 78 WHEN - + ( - AVG ( 48 ) ) + - + COUNT( * ) THEN 80 * - 21 WHEN - COUNT( * ) THEN 77 END ) + + 39 DIV - 20 AS col2
----
90
-751001

skipif mysql # not compatible
query II rowsort label-7317
SELECT DISTINCT + 90, 87 * 89 * - - ( + + ( - + 97 ) ) + + + COALESCE ( 71, - COUNT ( * ), - - 59 * - 78 + + - CASE 4 WHEN + 47 - - 38 * + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) THEN NULL WHEN - COUNT ( * ) THEN 83 * - + 78 WHEN - + ( - AVG ( 48 ) ) + - + COUNT ( * ) THEN 80 * - 21 WHEN - COUNT ( * ) THEN 77 END ) + + 39 / - 20 AS col2
----
90
-751001

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7318
SELECT ALL 32 + + 44 + - COALESCE ( + CAST( NULL AS SIGNED ), + 64, - 17 DIV + 3 )
----
12

skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL 32 + + 44 + - COALESCE ( + CAST ( NULL AS INTEGER ), + 64, - 17 / + 3 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT DISTINCT - + 10 + MAX( - 53 ) * + COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT - + 10 + MAX ( - 53 ) * + COUNT ( * ) AS col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7320
SELECT - 46 + + 31 + - COUNT( * ) + 90 * + + CAST( NULL AS SIGNED ) + - CASE + 98 WHEN - 81 + + 40 THEN + 53 ELSE - COUNT( * ) * + 42 * - CASE 9 WHEN 50 THEN 87 ELSE + 25 * 73 * - 12 + NULLIF ( - ( 60 ), - 42 * + 35 + - 52 ) END / + 83 + ( ( 40 ) ) + 97 END - 16 * COALESCE ( 91 + + ( - 37 ) * 24, - 30 + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7320
SELECT - 46 + + 31 + - COUNT ( * ) + 90 * + + CAST ( NULL AS INTEGER ) + - CASE + 98 WHEN - 81 + + 40 THEN + 53 ELSE - COUNT ( * ) * + 42 * - CASE 9 WHEN 50 THEN 87 ELSE + 25 * 73 * - 12 + NULLIF ( - ( 60 ), - 42 * + 35 + - 52 ) END / + 83 + ( ( 40 ) ) + 97 END - 16 * COALESCE ( 91 + + ( - 37 ) * 24, - 30 + 67 )
----
NULL

query I rowsort
SELECT 67 * - 27 AS col2
----
-1809

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT + 20 + + 1 * + ( + 67 ) + + 48 + - + 38 + + 55 - + ( - 14 ) - + + 77 * - + 52 * - 0 * - NULLIF ( + + 7, - NULLIF ( - 88, + 6 * - 11 + + MAX( DISTINCT - 16 ) ) ) * - 72 * + - 53 AS col2
----
166

skipif mysql # not compatible
query I rowsort label-7322
SELECT + 20 + + 1 * + ( + 67 ) + + 48 + - + 38 + + 55 - + ( - 14 ) - + + 77 * - + 52 * - 0 * - NULLIF ( + + 7, - NULLIF ( - 88, + 6 * - 11 + + MAX ( DISTINCT - 16 ) ) ) * - 72 * + - 53 AS col2
----
166

query II rowsort
SELECT + 68 col1, - 24
----
68
-24

query II rowsort
SELECT - - 44 AS col1, + 88 * - 32 + - + 27
----
44
-2843

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT + ( COUNT( ALL - - 44 ) ) * ( + 48 ) + + 35 col0
----
83

skipif mysql # not compatible
query I rowsort label-7325
SELECT + ( COUNT ( ALL - - 44 ) ) * ( + 48 ) + + 35 col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT DISTINCT ( 60 ) - - + COUNT( ALL - NULLIF ( - 84, - 28 * 36 + - ( 57 ) ) )
----
61

skipif mysql # not compatible
query I rowsort label-7326
SELECT DISTINCT ( 60 ) - - + COUNT ( ALL - NULLIF ( - 84, - 28 * 36 + - ( 57 ) ) )
----
61

query II rowsort
SELECT DISTINCT 67 AS col0, 91
----
67
91

query I rowsort
SELECT ALL + 69 * 37 * 23 * + 56 * + 72
----
236755008

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT + COUNT( * ) + - 37 col2
----
-36

skipif mysql # not compatible
query I rowsort label-7329
SELECT + COUNT ( * ) + - 37 col2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-7330
SELECT DISTINCT ( + 11 ) DIV 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7330
SELECT DISTINCT ( + 11 ) / 79 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7331
SELECT CASE + CAST( NULL AS SIGNED ) WHEN - CASE + 93 WHEN - + 83 * 52 + + 5 * - + 12 - - AVG ( DISTINCT + 7 ) THEN + ( - 49 ) WHEN - - 85 - 36 THEN + 17 END THEN NULL ELSE 67 END
----
67

skipif mysql # not compatible
query I rowsort label-7331
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN - CASE + 93 WHEN - + 83 * 52 + + 5 * - + 12 - - AVG ( DISTINCT + 7 ) THEN + ( - 49 ) WHEN - - 85 - 36 THEN + 17 END THEN NULL ELSE 67 END
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7332
SELECT ALL CAST( - COALESCE ( ( 6 ), + 22, + ( - + ( 99 ) ) ) AS SIGNED ) * - 93 + - 50
----
508

skipif mysql # not compatible
query I rowsort label-7332
SELECT ALL CAST ( - COALESCE ( ( 6 ), + 22, + ( - + ( 99 ) ) ) AS INTEGER ) * - 93 + - 50
----
508

onlyif mysql # DIV for integer division: 
query I rowsort label-7333
SELECT + 79 * 99 DIV ( + 2 )
----
3910

skipif mysql # not compatible
query I rowsort label-7333
SELECT + 79 * 99 / ( + 2 )
----
3910

onlyif mysql # DIV for integer division: 
query I rowsort label-7334
SELECT + 28 DIV - 42 + - 17
----
-17

skipif mysql # not compatible
query I rowsort label-7334
SELECT + 28 / - 42 + - 17
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT + MAX( DISTINCT + 44 ) + - + COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-7335
SELECT + MAX ( DISTINCT + 44 ) + - + COUNT ( * ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT + NULLIF ( + COUNT( * ), - - 76 * + 83 * - 33 * + COUNT( * ) * + - 20 )
----
1

skipif mysql # not compatible
query I rowsort label-7336
SELECT + NULLIF ( + COUNT ( * ), - - 76 * + 83 * - 33 * + COUNT ( * ) * + - 20 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT - MIN( - - 36 ) + - 28 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-7337
SELECT - MIN ( - - 36 ) + - 28 AS col1
----
-64

query I rowsort
SELECT ALL 67 * 17 AS col1
----
1139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7339
SELECT MIN( ( - 98 ) ) * ( - + 62 ) + + 17 + CAST( NULL AS SIGNED ) / - + 39 * + 11 + - - 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7339
SELECT MIN ( ( - 98 ) ) * ( - + 62 ) + + 17 + CAST ( NULL AS INTEGER ) / - + 39 * + 11 + - - 18 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7340
SELECT ALL CAST( NULL AS SIGNED ) * - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL CAST ( NULL AS INTEGER ) * - 47 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 90 AS col1, + 1
----
90
1

query I rowsort
SELECT COALESCE ( - - 8, 68 )
----
8

query I rowsort
SELECT NULLIF ( 53, + 29 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT + MIN( 65 ) * + COALESCE ( COUNT( DISTINCT - + 96 ), + 50 ) * 39
----
2535

skipif mysql # not compatible
query I rowsort label-7344
SELECT + MIN ( 65 ) * + COALESCE ( COUNT ( DISTINCT - + 96 ), + 50 ) * 39
----
2535

onlyif mysql # DIV for integer division: 
query II rowsort label-7345
SELECT + 67 AS col2, + 33 DIV - 63
----
67
0

skipif mysql # not compatible
query II rowsort label-7345
SELECT + 67 AS col2, + 33 / - 63
----
67
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7346
SELECT + - 61 AS col2, + ( - + 37 ) * + 58 + - 95 + - CAST( + 66 AS SIGNED )
----
-61
-2307

skipif mysql # not compatible
query II rowsort label-7346
SELECT + - 61 AS col2, + ( - + 37 ) * + 58 + - 95 + - CAST ( + 66 AS INTEGER )
----
-61
-2307

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT - COUNT( * ) * - 23 + + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-7347
SELECT - COUNT ( * ) * - 23 + + COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT ALL COUNT( * ) * + - 17 + NULLIF ( COUNT( * ), + 80 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL COUNT ( * ) * + - 17 + NULLIF ( COUNT ( * ), + 80 ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT - + 40 * ( COUNT( * ) ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-7349
SELECT - + 40 * ( COUNT ( * ) ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT ALL + + MIN( ALL + 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL + + MIN ( ALL + 60 ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT ALL COUNT( * ) * + 37 + 49 + + - 73 + - MIN( - 68 ) * - MAX( - - 47 ) AS col1
----
-3183

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL COUNT ( * ) * + 37 + 49 + + - 73 + - MIN ( - 68 ) * - MAX ( - - 47 ) AS col1
----
-3183

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT ALL - 4 + 32 + - COUNT( * ) + - - 99 * + COUNT( * ) AS col0
----
126

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL - 4 + 32 + - COUNT ( * ) + - - 99 * + COUNT ( * ) AS col0
----
126

query II rowsort
SELECT - 74, + 66 col1
----
-74
66

query I rowsort
SELECT - + 82 + + - ( - - 80 ) * - 20
----
1518

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7355
SELECT - 4 DIV - 43, - COALESCE ( + 69, + - 48 ) * - 99 * - 57 + + 24 - + - 22 DIV + COUNT( * ) AS col1
----
0
-389321

skipif mysql # not compatible
query II rowsort label-7355
SELECT - 4 / - 43, - COALESCE ( + 69, + - 48 ) * - 99 * - 57 + + 24 - + - 22 / + COUNT ( * ) AS col1
----
0
-389321

query I rowsort
SELECT - 44 * 58 AS col2
----
-2552

query I rowsort
SELECT - - 8 + - - 52 AS col1
----
60

query II rowsort
SELECT 88, - 48 AS col2
----
88
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT - MAX( - + 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7359
SELECT - MAX ( - + 9 ) AS col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7360
SELECT ALL - 83 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL - 83 / - 99
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7361
SELECT + 15 DIV - 89 AS col2, 92 * 53 DIV 28
----
0
174

skipif mysql # not compatible
query II rowsort label-7361
SELECT + 15 / - 89 AS col2, 92 * 53 / 28
----
0
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7362
SELECT - NULLIF ( - 44, - COUNT( * ) - + COUNT( * ) + - 13 + 8 * - - 28 * + CAST( NULL AS SIGNED ) * - - COUNT( * ) + 16 ) col2, - ( + 65 ) AS col2
----
44
-65

skipif mysql # not compatible
query II rowsort label-7362
SELECT - NULLIF ( - 44, - COUNT ( * ) - + COUNT ( * ) + - 13 + 8 * - - 28 * + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + 16 ) col2, - ( + 65 ) AS col2
----
44
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT + MIN( 70 ) * 3 AS col0
----
210

skipif mysql # not compatible
query I rowsort label-7363
SELECT + MIN ( 70 ) * 3 AS col0
----
210

query II rowsort
SELECT + 68 - + + 99 AS col0, - 8 * - 81 AS col1
----
-31
648

query I rowsort
SELECT DISTINCT 32 * - - 55 AS col2
----
1760

query I rowsort
SELECT + ( + COALESCE ( - 46, + 86 + 57 ) ) * - - 84
----
-3864

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT - COALESCE ( SUM( + 6 ), + 30 + - 73 + 67 )
----
-6

skipif mysql # not compatible
query I rowsort label-7367
SELECT - COALESCE ( SUM ( + 6 ), + 30 + - 73 + 67 )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7368
SELECT DISTINCT + COUNT( * ) DIV - 76 DIV - 12 + 75 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-7368
SELECT DISTINCT + COUNT ( * ) / - 76 / - 12 + 75 AS col0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7369
SELECT ALL + 27 DIV 52 + + 67 + - - 86 + - 14
----
139

skipif mysql # not compatible
query I rowsort label-7369
SELECT ALL + 27 / 52 + + 67 + - - 86 + - 14
----
139

onlyif mysql # DIV for integer division: 
query II rowsort label-7370
SELECT ALL 11 DIV + 4 + + 33 AS col1, ( 90 ) col1
----
35
90

skipif mysql # not compatible
query II rowsort label-7370
SELECT ALL 11 / + 4 + + 33 AS col1, ( 90 ) col1
----
35
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7371
SELECT CAST( - 56 AS SIGNED ) AS col0, - 37 * 59 * 61 * + COUNT( * )
----
-56
-133163

skipif mysql # not compatible
query II rowsort label-7371
SELECT CAST ( - 56 AS INTEGER ) AS col0, - 37 * 59 * 61 * + COUNT ( * )
----
-56
-133163

onlyif mysql # DIV for integer division: 
query I rowsort label-7372
SELECT ALL 30 DIV - ( + 1 ) + - + NULLIF ( - 73, - 32 ) - - - 93 * + 69 + 92 AS col1
----
-6282

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL 30 / - ( + 1 ) + - + NULLIF ( - 73, - 32 ) - - - 93 * + 69 + 92 AS col1
----
-6282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7373
SELECT + CAST( 58 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-7373
SELECT + CAST ( 58 AS INTEGER )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7374
SELECT ALL 84 DIV 23
----
3

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL 84 / 23
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT NULLIF ( - + 24, - + 3 + - - 80 * - 69 ) * - COUNT( * ) * - - 23 + + 51 AS col1
----
603

skipif mysql # not compatible
query I rowsort label-7375
SELECT NULLIF ( - + 24, - + 3 + - - 80 * - 69 ) * - COUNT ( * ) * - - 23 + + 51 AS col1
----
603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7376
SELECT + 95 * - - 96, MIN( - + 83 ) * - + CAST( - 68 AS SIGNED ) - 99 - 17 col2
----
9120
-5760

skipif mysql # not compatible
query II rowsort label-7376
SELECT + 95 * - - 96, MIN ( - + 83 ) * - + CAST ( - 68 AS INTEGER ) - 99 - 17 col2
----
9120
-5760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7377
SELECT CAST( + COALESCE ( 97, + + 4 + 60, + COUNT( * ) ) AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-7377
SELECT CAST ( + COALESCE ( 97, + + 4 + 60, + COUNT ( * ) ) AS INTEGER )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7378
SELECT ALL 60 / + CAST( - + AVG ( ALL 11 ) AS SIGNED ) + + 62 + + CASE - 87 WHEN - 36 + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) THEN NULL WHEN 83 THEN 47 WHEN 34 * - 55 + + 98 + + 8 - - 83 THEN - - AVG ( ALL - + 7 ) * - 77 END + COUNT( * ) * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL 60 / + CAST ( - + AVG ( ALL 11 ) AS INTEGER ) + + 62 + + CASE - 87 WHEN - 36 + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 83 THEN 47 WHEN 34 * - 55 + + 98 + + 8 - - 83 THEN - - AVG ( ALL - + 7 ) * - 77 END + COUNT ( * ) * + 57
----
NULL

query I rowsort
SELECT + - 69 + 81 * - 20
----
-1689

onlyif mysql # DIV for integer division: 
query I rowsort label-7380
SELECT DISTINCT 30 DIV + 69 + + 80 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-7380
SELECT DISTINCT 30 / + 69 + + 80 AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7381
SELECT ALL 68 * - ( - CASE - + 46 WHEN - + COUNT( * ) THEN - 17 END ) + - - CAST( NULL AS DECIMAL ) + + - SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) + + 54 - MIN( ALL + + 2 ) + ( + ( - 57 ) ) * + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL 68 * - ( - CASE - + 46 WHEN - + COUNT ( * ) THEN - 17 END ) + - - CAST ( NULL AS REAL ) + + - SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + + 54 - MIN ( ALL + + 2 ) + ( + ( - 57 ) ) * + 31 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7382
SELECT 19 * + + MAX( ALL 1 ) + + - CAST( 93 AS SIGNED ) * + 42 col1
----
-3887

skipif mysql # not compatible
query I rowsort label-7382
SELECT 19 * + + MAX ( ALL 1 ) + + - CAST ( 93 AS INTEGER ) * + 42 col1
----
-3887

query I rowsort
SELECT DISTINCT + 56 * - 88
----
-4928

onlyif mysql # aggregate syntax: 
query II rowsort label-7384
SELECT ALL + MAX( DISTINCT ( - 16 ) ), COUNT( * ) AS col2
----
-16
1

skipif mysql # not compatible
query II rowsort label-7384
SELECT ALL + MAX ( DISTINCT ( - 16 ) ), COUNT ( * ) AS col2
----
-16
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT - 76 * + COUNT( * ) - + 53 + + 66 * 71 * - + 73
----
-342207

skipif mysql # not compatible
query I rowsort label-7385
SELECT - 76 * + COUNT ( * ) - + 53 + + 66 * 71 * - + 73
----
-342207

query I rowsort
SELECT - 19 + + 46 * 99 * + 60 AS col0
----
273221

query I rowsort
SELECT 48 - - - 54 * + 36
----
-1896

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7388
SELECT + MAX( + 96 ) col0, 55 DIV - ( MIN( - 52 ) ) AS col2
----
96
1

skipif mysql # not compatible
query II rowsort label-7388
SELECT + MAX ( + 96 ) col0, 55 / - ( MIN ( - 52 ) ) AS col2
----
96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT + 2 + + CASE - COUNT( 17 ) WHEN 42 * + + AVG ( ALL - 7 ) THEN 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7389
SELECT + 2 + + CASE - COUNT ( 17 ) WHEN 42 * + + AVG ( ALL - 7 ) THEN 24 END
----
NULL

query I rowsort
SELECT ( 50 ) + 59
----
109

onlyif mysql # DIV for integer division: 
query II rowsort label-7391
SELECT + 69 + + 32, 68 DIV + 2 AS col1
----
101
34

skipif mysql # not compatible
query II rowsort label-7391
SELECT + 69 + + 32, 68 / + 2 AS col1
----
101
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT ALL 38 - - COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-7392
SELECT ALL 38 - - COUNT ( * ) AS col2
----
39

query I rowsort
SELECT 4 * - 8 * + + 63 + + 34
----
-1982

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7394
SELECT DISTINCT - + 67 * + + 46 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7394
SELECT DISTINCT - + 67 * + + 46 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7395
SELECT - 13 AS col1, CAST( - 98 AS SIGNED ) AS col2
----
-13
-98

skipif mysql # not compatible
query II rowsort label-7395
SELECT - 13 AS col1, CAST ( - 98 AS INTEGER ) AS col2
----
-13
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT 58 * SUM( ALL + 29 )
----
1682

skipif mysql # not compatible
query I rowsort label-7396
SELECT 58 * SUM ( ALL + 29 )
----
1682

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT 61 + 46 * - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-7397
SELECT 61 + 46 * - COUNT ( * )
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7398
SELECT 40 col1, 15 + - CAST( NULL AS DECIMAL )
----
40
NULL

skipif mysql # not compatible
query II rowsort label-7398
SELECT 40 col1, 15 + - CAST ( NULL AS REAL )
----
40
NULL

query I rowsort
SELECT ALL + 6 + + 33 * + 82 AS col2
----
2712

query I rowsort
SELECT 48 + + 55
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-7401
SELECT DISTINCT - 34 DIV - 15
----
2

skipif mysql # not compatible
query I rowsort label-7401
SELECT DISTINCT - 34 / - 15
----
2

query I rowsort
SELECT ALL + 79 + + 56 AS col1
----
135

query I rowsort
SELECT 58 + - 17 + ( - 25 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7404
SELECT ALL + NULLIF ( - 11, - 69 ) + 27 AS col2, + CASE - CAST( 91 AS SIGNED ) WHEN ( + 16 ) THEN - + 97 / - COUNT( - 77 ) WHEN - - ( + MIN( ALL + + 42 ) ) * 83 THEN - - 15 * + 98 / - 2 * - 96 + + 39 + - + 55 * - 39 END + + COALESCE ( COALESCE ( - 5, COUNT( * ) * - + 11 / 97 - + 36 + ( + 47 ) ), - 4 - + 81 ) AS col2
----
16
NULL

skipif mysql # not compatible
query II rowsort label-7404
SELECT ALL + NULLIF ( - 11, - 69 ) + 27 AS col2, + CASE - CAST ( 91 AS INTEGER ) WHEN ( + 16 ) THEN - + 97 / - COUNT ( - 77 ) WHEN - - ( + MIN ( ALL + + 42 ) ) * 83 THEN - - 15 * + 98 / - 2 * - 96 + + 39 + - + 55 * - 39 END + + COALESCE ( COALESCE ( - 5, COUNT ( * ) * - + 11 / 97 - + 36 + ( + 47 ) ), - 4 - + 81 ) AS col2
----
16
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7405
SELECT ALL - 52 DIV SUM( + 82 )
----
0

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL - 52 / SUM ( + 82 )
----
0

query I rowsort
SELECT 67 + 24
----
91

query I rowsort
SELECT ALL 37 + + 99 + - + 58
----
78

query I rowsort
SELECT 73 + + - 8 AS col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-7409
SELECT DISTINCT - 34 DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT - 34 / + 46
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7410
SELECT ALL + 80 + 35 * + 88 AS col2, + 11 + + COUNT( * ) AS col2
----
3160
12

skipif mysql # not compatible
query II rowsort label-7410
SELECT ALL + 80 + 35 * + 88 AS col2, + 11 + + COUNT ( * ) AS col2
----
3160
12

onlyif mysql # aggregate syntax: 
query II rowsort label-7411
SELECT 21, COUNT( * ) + 25 AS col0
----
21
26

skipif mysql # not compatible
query II rowsort label-7411
SELECT 21, COUNT ( * ) + 25 AS col0
----
21
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7412
SELECT 29, MAX( DISTINCT - 88 ) DIV 1 col1
----
29
-88

skipif mysql # not compatible
query II rowsort label-7412
SELECT 29, MAX ( DISTINCT - 88 ) / 1 col1
----
29
-88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7413
SELECT 2 + + CASE 42 WHEN + + CASE + CASE - 28 WHEN 92 THEN + 92 * - - COUNT( * ) WHEN 43 THEN NULL ELSE NULL END WHEN + 17 THEN + 89 ELSE COALESCE ( 30, + + 86 ) END + MIN( - + 27 ) THEN NULL WHEN + COUNT( * ) THEN + CAST( NULL AS DECIMAL ) + - ( - 47 ) END * - - 5 + - 81 + + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7413
SELECT 2 + + CASE 42 WHEN + + CASE + CASE - 28 WHEN 92 THEN + 92 * - - COUNT ( * ) WHEN 43 THEN NULL ELSE NULL END WHEN + 17 THEN + 89 ELSE COALESCE ( 30, + + 86 ) END + MIN ( - + 27 ) THEN NULL WHEN + COUNT ( * ) THEN + CAST ( NULL AS REAL ) + - ( - 47 ) END * - - 5 + - 81 + + 52 AS col0
----
NULL

query I rowsort
SELECT 73 * - 32 * - 31 AS col0
----
72416

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT COUNT( * ) + + 57
----
58

skipif mysql # not compatible
query I rowsort label-7415
SELECT COUNT ( * ) + + 57
----
58

query I rowsort
SELECT DISTINCT - 62 + + + 31 * 45 + + ( + + 48 )
----
1381

query I rowsort
SELECT DISTINCT - + 88 col1
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7418
SELECT ALL - CAST( NULL AS SIGNED ) - 56 * - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL - CAST ( NULL AS INTEGER ) - 56 * - 48 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT + + MAX( + 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7419
SELECT + + MAX ( + 81 ) AS col1
----
81

query I rowsort
SELECT ALL - ( ( - - 94 ) ) - + 89 AS col0
----
-183

query II rowsort
SELECT + 2 AS col1, + ( - 34 )
----
2
-34

onlyif mysql # DIV for integer division: 
query II rowsort label-7422
SELECT + 47, 24 * + - COALESCE ( + 1, + 31 ) * - 6 + + 56 + - 55 + - - 7 DIV 57 * 16 + - 25 + - 88 AS col0
----
47
32

skipif mysql # not compatible
query II rowsort label-7422
SELECT + 47, 24 * + - COALESCE ( + 1, + 31 ) * - 6 + + 56 + - 55 + - - 7 / 57 * 16 + - 25 + - 88 AS col0
----
47
32

query II rowsort
SELECT CASE - 7 WHEN - 53 THEN NULL WHEN + 62 THEN + - 37 ELSE NULL END + + 95, 44 * + 80 - + 8 AS col1
----
NULL
3512

query I rowsort
SELECT ALL + 2 * + 2 + 37 AS col1
----
41

query I rowsort
SELECT 93 * + 58
----
5394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7426
SELECT DISTINCT - 74 DIV - MIN( ALL - ( - - 23 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT - 74 / - MIN ( ALL - ( - - 23 ) )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7427
SELECT ALL - - CAST( + 31 AS SIGNED ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-7427
SELECT ALL - - CAST ( + 31 AS INTEGER ) AS col1
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7428
SELECT ALL CAST( NULL AS SIGNED ) * 29 / - AVG ( + + 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL CAST ( NULL AS INTEGER ) * 29 / - AVG ( + + 94 )
----
NULL

query I rowsort
SELECT DISTINCT - 83 * + 64 * 93 col1
----
-494016

onlyif mysql # aggregate syntax: 
query II rowsort label-7430
SELECT NULLIF ( - + COUNT( * ), - - 14 ), 68 AS col1
----
-1
68

skipif mysql # not compatible
query II rowsort label-7430
SELECT NULLIF ( - + COUNT ( * ), - - 14 ), 68 AS col1
----
-1
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT ALL SUM( 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL SUM ( 61 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT ALL + MIN( DISTINCT 71 )
----
71

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL + MIN ( DISTINCT 71 )
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-7433
SELECT - 77 * - 48 - - 90 + + 27 + - SUM( ALL + - 38 ) AS col0, MIN( ALL 52 )
----
3851
52

skipif mysql # not compatible
query II rowsort label-7433
SELECT - 77 * - 48 - - 90 + + 27 + - SUM ( ALL + - 38 ) AS col0, MIN ( ALL 52 )
----
3851
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT + COALESCE ( - + COUNT( * ), 55 * 6 + + 67 )
----
-1

skipif mysql # not compatible
query I rowsort label-7434
SELECT + COALESCE ( - + COUNT ( * ), 55 * 6 + + 67 )
----
-1

query I rowsort
SELECT 58 + + 35 + 89
----
182

query I rowsort
SELECT 32 * - - ( + 57 ) * + 68 AS col0
----
124032

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT 68 + - COALESCE ( 60, - - 40 * - - 40, + COUNT( * ) )
----
8

skipif mysql # not compatible
query I rowsort label-7437
SELECT 68 + - COALESCE ( 60, - - 40 * - - 40, + COUNT ( * ) )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7438
SELECT DISTINCT 21 + + COUNT( * ) DIV + - ( COALESCE ( - 38, AVG ( + ( 56 ) ) * - CAST( NULL AS SIGNED ) - + 94 ) )
----
21

skipif mysql # not compatible
query I rowsort label-7438
SELECT DISTINCT 21 + + COUNT ( * ) / + - ( COALESCE ( - 38, AVG ( + ( 56 ) ) * - CAST ( NULL AS INTEGER ) - + 94 ) )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7439
SELECT DISTINCT ( + 13 ) + - - CAST( MAX( DISTINCT + 21 ) AS SIGNED ) + + 24 DIV 31 DIV + 50 * + 94 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-7439
SELECT DISTINCT ( + 13 ) + - - CAST ( MAX ( DISTINCT + 21 ) AS INTEGER ) + + 24 / 31 / + 50 * + 94 AS col0
----
34

query I rowsort
SELECT ALL - 47 * - 1 AS col0
----
47

query I rowsort
SELECT 58 * - ( + 33 )
----
-1914

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT DISTINCT SUM( DISTINCT 1 ) * + 55 + 23 + - 21 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-7442
SELECT DISTINCT SUM ( DISTINCT 1 ) * + 55 + 23 + - 21 AS col1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7443
SELECT ALL + 75 + - 77 col0, - COUNT( * ) col0
----
-2
-1

skipif mysql # not compatible
query II rowsort label-7443
SELECT ALL + 75 + - 77 col0, - COUNT ( * ) col0
----
-2
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT COUNT( * ) * CASE + - NULLIF ( 7, - 56 ) WHEN 58 THEN NULL WHEN - + 74 THEN + - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7444
SELECT COUNT ( * ) * CASE + - NULLIF ( 7, - 56 ) WHEN 58 THEN NULL WHEN - + 74 THEN + - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT - MIN( ALL + 39 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-7445
SELECT - MIN ( ALL + 39 ) AS col1
----
-39

query I rowsort
SELECT - COALESCE ( - 37, 6 ) AS col0
----
37

query I rowsort
SELECT 73 - 70 * - 82 AS col2
----
5813

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT DISTINCT MIN( ALL + 65 ) col2
----
65

skipif mysql # not compatible
query I rowsort label-7448
SELECT DISTINCT MIN ( ALL + 65 ) col2
----
65

query I rowsort
SELECT ALL 66 - - 94 * - - 9
----
912

onlyif mysql # DIV for integer division: 
query I rowsort label-7450
SELECT ALL + 85 DIV 91 col0
----
0

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL + 85 / 91 col0
----
0

query I rowsort
SELECT ALL 59 * + 75 - - + 47 * + 47 + + 0
----
6634

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7452
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 11 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7452
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 11 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT ALL - + COUNT( * ) * - 25 - - 9 + 5 col1
----
39

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL - + COUNT ( * ) * - 25 - - 9 + 5 col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT + ( + 33 ) * - + COUNT( * ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-7454
SELECT + ( + 33 ) * - + COUNT ( * ) AS col1
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-7455
SELECT ALL + + 13 DIV - - 37 * + 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL + + 13 / - - 37 * + 68 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7456
SELECT 95 + - 10 DIV 36 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-7456
SELECT 95 + - 10 / 36 AS col0
----
95

query I rowsort
SELECT - 17 * + 0 + - 59
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT ALL + 9 * - - 15 - - 97 * COUNT( * )
----
232

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL + 9 * - - 15 - - 97 * COUNT ( * )
----
232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7459
SELECT - 5 * - COUNT( * ) DIV + 31 * + + 21 + + CAST( + - 22 AS SIGNED ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-7459
SELECT - 5 * - COUNT ( * ) / + 31 * + + 21 + + CAST ( + - 22 AS INTEGER ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT ( + - COALESCE ( 17, 38, + + 82 + - COUNT( * ) + - 82 * + 58 + - - 81 * - 97 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-7460
SELECT ( + - COALESCE ( 17, 38, + + 82 + - COUNT ( * ) + - 82 * + 58 + - - 81 * - 97 ) )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT ALL - 45 * + 57 + - + COUNT( * ) AS col2
----
-2566

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL - 45 * + 57 + - + COUNT ( * ) AS col2
----
-2566

onlyif mysql # aggregate syntax: 
query II rowsort label-7462
SELECT - 37 + - 2, COUNT( * ) AS col0
----
-39
1

skipif mysql # not compatible
query II rowsort label-7462
SELECT - 37 + - 2, COUNT ( * ) AS col0
----
-39
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7463
SELECT DISTINCT - + 58 * - 55 * NULLIF ( + 46, - 27 + + 44 + + CASE 28 WHEN - 84 * + 42 * - ( - + 9 ) + + 62 + 45 THEN - + 13 * - 37 * + NULLIF ( + - 97, 92 + + CAST( 93 AS SIGNED ) ) WHEN + 45 * + 20 + + - COALESCE ( + 23, + 48 * 63, - AVG ( + 39 ) + - 64 ) THEN NULL ELSE ( 99 ) / 65 END )
----
146740

skipif mysql # not compatible
query I rowsort label-7463
SELECT DISTINCT - + 58 * - 55 * NULLIF ( + 46, - 27 + + 44 + + CASE 28 WHEN - 84 * + 42 * - ( - + 9 ) + + 62 + 45 THEN - + 13 * - 37 * + NULLIF ( + - 97, 92 + + CAST ( 93 AS INTEGER ) ) WHEN + 45 * + 20 + + - COALESCE ( + 23, + 48 * 63, - AVG ( + 39 ) + - 64 ) THEN NULL ELSE ( 99 ) / 65 END )
----
146740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7464
SELECT DISTINCT + CAST( + 17 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT + CAST ( + 17 AS INTEGER )
----
17

query I rowsort
SELECT - + 15 + + 70 - + 40 + - ( + 80 ) col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT - 50 * + - 34 + - 61 + + 8 * - 40 * + + COUNT( * ) * - ( + + 12 )
----
5479

skipif mysql # not compatible
query I rowsort label-7466
SELECT - 50 * + - 34 + - 61 + + 8 * - 40 * + + COUNT ( * ) * - ( + + 12 )
----
5479

query II rowsort
SELECT + 87 + + 5 AS col1, 8 AS col2
----
92
8

onlyif mysql # DIV for integer division: 
query II rowsort label-7468
SELECT ALL 56 DIV 89, 64 AS col0
----
0
64

skipif mysql # not compatible
query II rowsort label-7468
SELECT ALL 56 / 89, 64 AS col0
----
0
64

onlyif mysql # DIV for integer division: 
query II rowsort label-7469
SELECT + 96 DIV + 77, 41 AS col2
----
1
41

skipif mysql # not compatible
query II rowsort label-7469
SELECT + 96 / + 77, 41 AS col2
----
1
41

query I rowsort
SELECT + 45 + - - 65
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7471
SELECT DISTINCT 9 * 11 * - - 68 AS col1, - NULLIF ( + 77, + 16 / + - CAST( - 65 AS SIGNED ) * + 59 ) * - 53 * + CAST( NULL AS SIGNED ) * 21
----
6732
NULL

skipif mysql # not compatible
query II rowsort label-7471
SELECT DISTINCT 9 * 11 * - - 68 AS col1, - NULLIF ( + 77, + 16 / + - CAST ( - 65 AS INTEGER ) * + 59 ) * - 53 * + CAST ( NULL AS INTEGER ) * 21
----
6732
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7472
SELECT DISTINCT - ( - 14 ) + 7 + 47 / - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT - ( - 14 ) + 7 + 47 / - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT ALL + MIN( ALL 80 ) * - 4 * - 12 * - 74 - + 63 AS col2
----
-284223

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL + MIN ( ALL 80 ) * - 4 * - 12 * - 74 - + 63 AS col2
----
-284223

query I rowsort
SELECT DISTINCT 62 + 81 AS col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT + COUNT( * ) + 52 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7475
SELECT + COUNT ( * ) + 52 AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7476
SELECT + ( + + CAST( + COUNT( * ) AS SIGNED ) ) DIV + + 86
----
0

skipif mysql # not compatible
query I rowsort label-7476
SELECT + ( + + CAST ( + COUNT ( * ) AS INTEGER ) ) / + + 86
----
0

query I rowsort
SELECT + 90 + - - 90
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT + COUNT( + CASE WHEN NULL IS NULL THEN - 63 END ) * 44 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-7478
SELECT + COUNT ( + CASE WHEN NULL IS NULL THEN - 63 END ) * 44 AS col2
----
44

query I rowsort
SELECT ALL 2 + - + 12 col2
----
-10

query II rowsort
SELECT ALL 88, + 70 * + 97 AS col0
----
88
6790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7481
SELECT + ( - COUNT( DISTINCT 48 ) ) + - CAST( NULL AS SIGNED ) - - 43 - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-7481
SELECT + ( - COUNT ( DISTINCT 48 ) ) + - CAST ( NULL AS INTEGER ) - - 43 - 43
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7482
SELECT - COALESCE ( + 54, + CAST( - 32 AS SIGNED ), + CAST( NULL AS SIGNED ) )
----
-54

skipif mysql # not compatible
query I rowsort label-7482
SELECT - COALESCE ( + 54, + CAST ( - 32 AS INTEGER ), + CAST ( NULL AS INTEGER ) )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT + COUNT( DISTINCT ( 95 ) ) + + 70 col0
----
71

skipif mysql # not compatible
query I rowsort label-7483
SELECT + COUNT ( DISTINCT ( 95 ) ) + + 70 col0
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-7484
SELECT ALL 66 - 83 * - 30 * + 71 * + - 41 AS col1, + COUNT( * )
----
-7248324
1

skipif mysql # not compatible
query II rowsort label-7484
SELECT ALL 66 - 83 * - 30 * + 71 * + - 41 AS col1, + COUNT ( * )
----
-7248324
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7485
SELECT + 37 + ( - 16 ) - - - ( - - 33 ), - CASE - - ( + 97 ) WHEN - 24 THEN - MAX( 2 ) * + + 41 WHEN + 91 THEN NULL ELSE NULL END AS col1
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-7485
SELECT + 37 + ( - 16 ) - - - ( - - 33 ), - CASE - - ( + 97 ) WHEN - 24 THEN - MAX ( 2 ) * + + 41 WHEN + 91 THEN NULL ELSE NULL END AS col1
----
-12
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT ALL - COUNT( * ) - - - 17 * - SUM( ALL - + ( + 66 ) ) * 56 col0
----
-62833

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL - COUNT ( * ) - - - 17 * - SUM ( ALL - + ( + 66 ) ) * 56 col0
----
-62833

query I rowsort
SELECT + 13 + 71 * 0 col1
----
13

query I rowsort
SELECT ALL 19 * 98 * 84 * 8 AS col2
----
1251264

query I rowsort
SELECT - 14 + 94 * + - NULLIF ( 30, + 23 ) AS col1
----
-2834

query I rowsort
SELECT - + 57 * + 1 AS col1
----
-57

query I rowsort
SELECT + 72 * 50 * - 85 + - + 46 + + 96
----
-305950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7492
SELECT - - COUNT( * ) DIV ( 54 ) + - 99 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-7492
SELECT - - COUNT ( * ) / ( 54 ) + - 99 AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT COALESCE ( - 57, + SUM( ALL - 16 ), + 97 ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-7493
SELECT COALESCE ( - 57, + SUM ( ALL - 16 ), + 97 ) col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT - 55 + - 79 - - 88 * - + 1 * ( MAX( + + 5 ) )
----
-574

skipif mysql # not compatible
query I rowsort label-7494
SELECT - 55 + - 79 - - 88 * - + 1 * ( MAX ( + + 5 ) )
----
-574

query II rowsort
SELECT + - 30 AS col1, 35 * + 41 + - + ( - 12 )
----
-30
1447

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT DISTINCT + COUNT( - 91 )
----
1

skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT + COUNT ( - 91 )
----
1

query I rowsort
SELECT - 30 * + - 74 AS col2
----
2220

query I rowsort
SELECT - - 30 * 33 AS col2
----
990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7499
SELECT ALL - 12 * + 51 * + COUNT( * ) + + 45 DIV + - MIN( 47 )
----
-612

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL - 12 * + 51 * + COUNT ( * ) + + 45 / + - MIN ( 47 )
----
-612

query II rowsort
SELECT 16 AS col0, + 22
----
16
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT ALL + 4 * + ( + NULLIF ( ( + 59 ), 9 ) ) + + 75 + ( + COUNT( * ) ) AS col0
----
312

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL + 4 * + ( + NULLIF ( ( + 59 ), 9 ) ) + + 75 + ( + COUNT ( * ) ) AS col0
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT ( + MIN( DISTINCT + + 86 ) ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-7502
SELECT ( + MIN ( DISTINCT + + 86 ) ) AS col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7503
SELECT ALL + COALESCE ( - COUNT( * ), - 75 * - ( + 56 ) + + 67 ) * - NULLIF ( - + 90, 1 * + 88 - - 74 * - 3 ) + + + ( + + 78 ) - + - 21 + + COALESCE ( - - ( + - SUM( DISTINCT + 95 ) ), + 94 + + CAST( NULL AS SIGNED ) )
----
-86

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL + COALESCE ( - COUNT ( * ), - 75 * - ( + 56 ) + + 67 ) * - NULLIF ( - + 90, 1 * + 88 - - 74 * - 3 ) + + + ( + + 78 ) - + - 21 + + COALESCE ( - - ( + - SUM ( DISTINCT + 95 ) ), + 94 + + CAST ( NULL AS INTEGER ) )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT DISTINCT 68 * - NULLIF ( - - 17, + COALESCE ( 16, - 85 ) + - 72 ) * - - ( + - 42 ) * + 49 + + 90 + + ( + 73 ) / CASE - 11 WHEN + 12 * - 82 * - COUNT( ALL + 58 ) THEN 23 + - COUNT( * ) ELSE NULL END * + 2 * - ( + COUNT( * ) ) + + 5 + + 90 * + 15 * + 34 + + 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7504
SELECT DISTINCT 68 * - NULLIF ( - - 17, + COALESCE ( 16, - 85 ) + - 72 ) * - - ( + - 42 ) * + 49 + + 90 + + ( + 73 ) / CASE - 11 WHEN + 12 * - 82 * - COUNT ( ALL + 58 ) THEN 23 + - COUNT ( * ) ELSE NULL END * + 2 * - ( + COUNT ( * ) ) + + 5 + + 90 * + 15 * + 34 + + 76 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7505
SELECT ALL + + CASE - CASE + COUNT( * ) WHEN 75 + 58 / + COALESCE ( 41, + + 5, - + 35 ) + COUNT( * ) THEN - 5 * + 85 + + NULLIF ( + + 4, AVG ( + CASE + + 43 WHEN + 45 * + 39 THEN NULL ELSE - - 91 END ) * + + 19 - 34 ) + - 96 * - COUNT( * ) / + MAX( - + 60 ) + + 95 / + 5 WHEN + 17 + + - 25 THEN NULL WHEN + 81 THEN - COUNT( * ) END WHEN 6 THEN CASE CAST( NULL AS SIGNED ) WHEN 76 THEN 76 WHEN - 58 + CAST( - 1 AS SIGNED ) THEN + MIN( ALL - 65 ) / 6 + - 44 ELSE - 97 END * + COUNT( * ) ELSE NULL END * ( - 26 + - COUNT( * ) * 5 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL + + CASE - CASE + COUNT ( * ) WHEN 75 + 58 / + COALESCE ( 41, + + 5, - + 35 ) + COUNT ( * ) THEN - 5 * + 85 + + NULLIF ( + + 4, AVG ( + CASE + + 43 WHEN + 45 * + 39 THEN NULL ELSE - - 91 END ) * + + 19 - 34 ) + - 96 * - COUNT ( * ) / + MAX ( - + 60 ) + + 95 / + 5 WHEN + 17 + + - 25 THEN NULL WHEN + 81 THEN - COUNT ( * ) END WHEN 6 THEN CASE CAST ( NULL AS INTEGER ) WHEN 76 THEN 76 WHEN - 58 + CAST ( - 1 AS INTEGER ) THEN + MIN ( ALL - 65 ) / 6 + - 44 ELSE - 97 END * + COUNT ( * ) ELSE NULL END * ( - 26 + - COUNT ( * ) * 5 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7506
SELECT DISTINCT COALESCE ( + 42, - COUNT( * ) * + + COUNT( * ) * + 34 DIV + 71 ) * - COALESCE ( + 9, - + COALESCE ( - NULLIF ( - MAX( - + ( - 52 ) ), + 41 ), + 94 + - 74 * 46 * - COUNT( * ), + 46 + NULLIF ( + - 42, + + 89 * - 90 ) ) * - MIN( ALL - 70 ) - - + 25, ( - + 64 ) ) * - 8 + - 68
----
2956

skipif mysql # not compatible
query I rowsort label-7506
SELECT DISTINCT COALESCE ( + 42, - COUNT ( * ) * + + COUNT ( * ) * + 34 / + 71 ) * - COALESCE ( + 9, - + COALESCE ( - NULLIF ( - MAX ( - + ( - 52 ) ), + 41 ), + 94 + - 74 * 46 * - COUNT ( * ), + 46 + NULLIF ( + - 42, + + 89 * - 90 ) ) * - MIN ( ALL - 70 ) - - + 25, ( - + 64 ) ) * - 8 + - 68
----
2956

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT + SUM( - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-7507
SELECT + SUM ( - 92 )
----
-92

query I rowsort
SELECT ALL + NULLIF ( 48, + 66 ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT + ( 38 ) * 5 * + 93 * NULLIF ( + - 64, - 78 ) - COUNT( * ) + - COUNT( * )
----
-1130882

skipif mysql # not compatible
query I rowsort label-7509
SELECT + ( 38 ) * 5 * + 93 * NULLIF ( + - 64, - 78 ) - COUNT ( * ) + - COUNT ( * )
----
-1130882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7510
SELECT + CAST( - 11 AS SIGNED ) + 9
----
-2

skipif mysql # not compatible
query I rowsort label-7510
SELECT + CAST ( - 11 AS INTEGER ) + 9
----
-2

query I rowsort
SELECT DISTINCT + 3 * - 9
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT DISTINCT COUNT( * ) - 34 col0
----
-33

skipif mysql # not compatible
query I rowsort label-7512
SELECT DISTINCT COUNT ( * ) - 34 col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT ALL SUM( 81 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL SUM ( 81 ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7514
SELECT ALL + 35 AS col2, - MAX( + 1 ) AS col1
----
35
-1

skipif mysql # not compatible
query II rowsort label-7514
SELECT ALL + 35 AS col2, - MAX ( + 1 ) AS col1
----
35
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT MIN( ALL + ( + + 91 ) ) * + 34 AS col0
----
3094

skipif mysql # not compatible
query I rowsort label-7515
SELECT MIN ( ALL + ( + + 91 ) ) * + 34 AS col0
----
3094

query I rowsort
SELECT + 26 * - ( - 12 ) col0
----
312

onlyif mysql # aggregate syntax: 
query II rowsort label-7517
SELECT ALL COUNT( * ) AS col1, 30
----
1
30

skipif mysql # not compatible
query II rowsort label-7517
SELECT ALL COUNT ( * ) AS col1, 30
----
1
30

query II rowsort
SELECT - - 68, - 20 * + 34 AS col1
----
68
-680

onlyif mysql # aggregate syntax: 
query II rowsort label-7519
SELECT ALL + COUNT( * ), + 5 AS col1
----
1
5

skipif mysql # not compatible
query II rowsort label-7519
SELECT ALL + COUNT ( * ), + 5 AS col1
----
1
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7520
SELECT ALL 93 AS col1, COUNT( * ) + - CASE 21 WHEN + 32 * COUNT( * ) THEN - 55 END AS col1
----
93
NULL

skipif mysql # not compatible
query II rowsort label-7520
SELECT ALL 93 AS col1, COUNT ( * ) + - CASE 21 WHEN + 32 * COUNT ( * ) THEN - 55 END AS col1
----
93
NULL

query I rowsort
SELECT ALL + - 33 * 37
----
-1221

query I rowsort
SELECT ALL - + COALESCE ( - 46, + 99 * 33 + 23 )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7523
SELECT ALL 89 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL 89 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - CASE - + 69 WHEN 31 / - + 83 THEN NULL ELSE + 9 END + + + 68 AS col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7525
SELECT CAST( NULL AS SIGNED ), 38 AS col0
----
NULL
38

skipif mysql # not compatible
query II rowsort label-7525
SELECT CAST ( NULL AS INTEGER ), 38 AS col0
----
NULL
38

query I rowsort
SELECT - ( + NULLIF ( - + 93, 50 + + 17 ) ) - + 19
----
74

query II rowsort
SELECT 74, COALESCE ( + - 81, + 67 * 62 + 75 ) AS col2
----
74
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7528
SELECT + 73, COUNT( * ) + - COUNT( * ) + - 31 * - 91 * - CASE 8 WHEN + - 14 THEN NULL WHEN - NULLIF ( - - 51, COALESCE ( + - 34, + COUNT( * ) + 39 + - CASE - - 2 WHEN + 55 - - CAST( - 62 AS SIGNED ) - - - 59 THEN + + 38 * - 57 * + + 85 * - + 76 DIV + 60 * 27 + + 83 ELSE NULL END * CASE - - 5 WHEN - 65 * 1 THEN 69 * + 36 ELSE NULL END * - 13 + 11 DIV - 17, 36 ) + + ( + ( 59 ) ) * + COUNT( * ) ) THEN 40 ELSE 91 * + 14 - 15 * 51 END DIV COUNT( * ) AS col2
----
73
-1435889

skipif mysql # not compatible
query II rowsort label-7528
SELECT + 73, COUNT ( * ) + - COUNT ( * ) + - 31 * - 91 * - CASE 8 WHEN + - 14 THEN NULL WHEN - NULLIF ( - - 51, COALESCE ( + - 34, + COUNT ( * ) + 39 + - CASE - - 2 WHEN + 55 - - CAST ( - 62 AS INTEGER ) - - - 59 THEN + + 38 * - 57 * + + 85 * - + 76 / + 60 * 27 + + 83 ELSE NULL END * CASE - - 5 WHEN - 65 * 1 THEN 69 * + 36 ELSE NULL END * - 13 + 11 / - 17, 36 ) + + ( + ( 59 ) ) * + COUNT ( * ) ) THEN 40 ELSE 91 * + 14 - 15 * 51 END / COUNT ( * ) AS col2
----
73
-1435889

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT DISTINCT - + 29 + - + SUM( - ( - - 28 ) ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT - + 29 + - + SUM ( - ( - - 28 ) ) + COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7530
SELECT - - 7 DIV - 85 + - 31 col0
----
-31

skipif mysql # not compatible
query I rowsort label-7530
SELECT - - 7 / - 85 + - 31 col0
----
-31

query I rowsort
SELECT ALL + + 79 + - 35 * 91
----
-3106

query I rowsort
SELECT DISTINCT - ( - 84 ) col2
----
84

query I rowsort
SELECT DISTINCT - COALESCE ( - + 58, 52 * 77 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7534
SELECT + CAST( NULL AS DECIMAL ) * - SUM( + 81 ) / - CAST( NULL AS SIGNED ) + - + COUNT( * ) + ( - - 67 ) AS col2, 8 + ( + CAST( + MAX( 45 ) AS SIGNED ) ) AS col1
----
NULL
53

skipif mysql # not compatible
query II rowsort label-7534
SELECT + CAST ( NULL AS REAL ) * - SUM ( + 81 ) / - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + ( - - 67 ) AS col2, 8 + ( + CAST ( + MAX ( 45 ) AS INTEGER ) ) AS col1
----
NULL
53

onlyif mysql # aggregate syntax: 
query II rowsort label-7535
SELECT ALL + 61 + - 99 AS col1, - 25 * - COUNT( * ) col0
----
-38
25

skipif mysql # not compatible
query II rowsort label-7535
SELECT ALL + 61 + - 99 AS col1, - 25 * - COUNT ( * ) col0
----
-38
25

query I rowsort
SELECT 57 * + + 81
----
4617

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT ALL + COUNT( * ) * 78 * 61 col0
----
4758

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL + COUNT ( * ) * 78 * 61 col0
----
4758

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7538
SELECT ALL - 62 - COUNT( * ) + + 18 * CASE + CAST( + 38 AS SIGNED ) WHEN - + 39 THEN + 31 / + CASE - 21 WHEN - - COUNT( * ) * + COUNT( * ) THEN COUNT( * ) - + 37 + - CAST( 85 AS SIGNED ) * + 0 WHEN - - COUNT( * ) THEN NULL END + - 58 + 38 END + + 32 * + 5 + - - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL - 62 - COUNT ( * ) + + 18 * CASE + CAST ( + 38 AS INTEGER ) WHEN - + 39 THEN + 31 / + CASE - 21 WHEN - - COUNT ( * ) * + COUNT ( * ) THEN COUNT ( * ) - + 37 + - CAST ( 85 AS INTEGER ) * + 0 WHEN - - COUNT ( * ) THEN NULL END + - 58 + 38 END + + 32 * + 5 + - - 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT 86 + - + COUNT( * ) + + + 38 * - COUNT( ALL + - 96 ) * - + 4 - + COUNT( * )
----
236

skipif mysql # not compatible
query I rowsort label-7539
SELECT 86 + - + COUNT ( * ) + + + 38 * - COUNT ( ALL + - 96 ) * - + 4 - + COUNT ( * )
----
236

query I rowsort
SELECT ALL + 26 * - 4 AS col2
----
-104

query I rowsort
SELECT 18 - + 56 + + + 78 * - - 26
----
1990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7542
SELECT ( - - 65 ) / - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7542
SELECT ( - - 65 ) / - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7543
SELECT + COUNT( * ) * + 11 col2, - COUNT( * ) * - COUNT( * ) * - CAST( NULL AS SIGNED ) * ( 75 ) + AVG ( ALL + + 57 ) / - - 5 AS col2
----
11
NULL

skipif mysql # not compatible
query II rowsort label-7543
SELECT + COUNT ( * ) * + 11 col2, - COUNT ( * ) * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * ( 75 ) + AVG ( ALL + + 57 ) / - - 5 AS col2
----
11
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7544
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) + + 2 AS col2, 36 AS col2
----
3
36

skipif mysql # not compatible
query II rowsort label-7544
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) + + 2 AS col2, 36 AS col2
----
3
36

onlyif mysql # aggregate syntax: 
query II rowsort label-7545
SELECT 24 + + COUNT( * ), 0 * + 0 AS col0
----
25
0

skipif mysql # not compatible
query II rowsort label-7545
SELECT 24 + + COUNT ( * ), 0 * + 0 AS col0
----
25
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7546
SELECT DISTINCT NULLIF ( - CAST( - - SUM( DISTINCT - 36 ) AS SIGNED ), + + 68 ) * + SUM( DISTINCT + 66 )
----
2376

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT NULLIF ( - CAST ( - - SUM ( DISTINCT - 36 ) AS INTEGER ), + + 68 ) * + SUM ( DISTINCT + 66 )
----
2376

query I rowsort
SELECT DISTINCT + 16 + 65
----
81

query I rowsort
SELECT 62 * - 44 AS col0
----
-2728

query I rowsort
SELECT DISTINCT - - 52 + 11 * + 3 col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7550
SELECT + 26 + - 62 + + 76 AS col2, 17 DIV - + ( + COUNT( * ) )
----
40
-17

skipif mysql # not compatible
query II rowsort label-7550
SELECT + 26 + - 62 + + 76 AS col2, 17 / - + ( + COUNT ( * ) )
----
40
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT ( ( + - MIN( + + 14 ) ) ) * - - 4 + - NULLIF ( 99, - 89 * + 16 + + + 52 + - - 78 * - 22 ) AS col1
----
-155

skipif mysql # not compatible
query I rowsort label-7551
SELECT ( ( + - MIN ( + + 14 ) ) ) * - - 4 + - NULLIF ( 99, - 89 * + 16 + + + 52 + - - 78 * - 22 ) AS col1
----
-155

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7552
SELECT + COALESCE ( + 28, - CAST( NULL AS SIGNED ) DIV - - 50 DIV 47, 76 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-7552
SELECT + COALESCE ( + 28, - CAST ( NULL AS INTEGER ) / - - 50 / 47, 76 ) AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7553
SELECT ALL - + CAST( + 61 AS SIGNED ) col1, - COUNT( * ) AS col2
----
-61
-1

skipif mysql # not compatible
query II rowsort label-7553
SELECT ALL - + CAST ( + 61 AS INTEGER ) col1, - COUNT ( * ) AS col2
----
-61
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT - 6 * - 39 * + 27 + + + 37 + ( MAX( DISTINCT 77 ) ) - 68
----
6364

skipif mysql # not compatible
query I rowsort label-7554
SELECT - 6 * - 39 * + 27 + + + 37 + ( MAX ( DISTINCT 77 ) ) - 68
----
6364

query I rowsort
SELECT ALL - + 89 * - 34 - 77 AS col0
----
2949

query I rowsort
SELECT DISTINCT 63 * 50 + 69 AS col2
----
3219

query I rowsort
SELECT DISTINCT 51 - 98
----
-47

query I rowsort
SELECT ALL 9 * - 88 AS col0
----
-792

query II rowsort
SELECT + 62 AS col1, - 64 * - + 64
----
62
4096

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT + MIN( ALL 55 )
----
55

skipif mysql # not compatible
query I rowsort label-7560
SELECT + MIN ( ALL 55 )
----
55

query II rowsort
SELECT + 18 AS col2, 19
----
18
19

query I rowsort
SELECT 67 * + 49 col1
----
3283

query I rowsort
SELECT 2 * - 38
----
-76

query II rowsort
SELECT ( + 30 ) - + + 95, 92 * - 2 AS col0
----
-65
-184

query II rowsort
SELECT ALL - 12 AS col1, COALESCE ( - - 86, + - 78 ) AS col0
----
-12
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7566
SELECT ALL - 58 DIV 86 * - COUNT( * ) col2, - CASE 50 WHEN + + 40 * 17 THEN NULL WHEN + - COUNT( * ) + - + 57 THEN - - COUNT( * ) * + - CAST( NULL AS SIGNED ) * - 75 ELSE + ( + - CAST( ( COUNT( DISTINCT - 24 ) ) AS SIGNED ) ) + - + NULLIF ( + + 41, + ( - 93 ) ) + - - 72 - 65 END
----
0
35

skipif mysql # not compatible
query II rowsort label-7566
SELECT ALL - 58 / 86 * - COUNT ( * ) col2, - CASE 50 WHEN + + 40 * 17 THEN NULL WHEN + - COUNT ( * ) + - + 57 THEN - - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * - 75 ELSE + ( + - CAST ( ( COUNT ( DISTINCT - 24 ) ) AS INTEGER ) ) + - + NULLIF ( + + 41, + ( - 93 ) ) + - - 72 - 65 END
----
0
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT DISTINCT - NULLIF ( + - COUNT( * ), 44 ) * - 24 + + SUM( + NULLIF ( + 34, + + 60 ) )
----
10

skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT - NULLIF ( + - COUNT ( * ), 44 ) * - 24 + + SUM ( + NULLIF ( + 34, + + 60 ) )
----
10

query I rowsort
SELECT ALL + ( - 84 ) col2
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7569
SELECT + MAX( DISTINCT - 76 ) + + 15 DIV + - CAST( + - 27 AS SIGNED ) + - - 34 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-7569
SELECT + MAX ( DISTINCT - 76 ) + + 15 / + - CAST ( + - 27 AS INTEGER ) + - - 34 AS col1
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-7570
SELECT - 90 DIV + - 25 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7570
SELECT - 90 / + - 25 AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7571
SELECT ALL 96 DIV + + 55 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL 96 / + + 55 AS col1
----
1

query I rowsort
SELECT - 7 + + 93
----
86

query I rowsort
SELECT - 66 - - 40 + - 71 + + ( 21 ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT ALL MIN( DISTINCT + + 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-7574
SELECT ALL MIN ( DISTINCT + + 55 ) AS col1
----
55

query I rowsort
SELECT - 84 + + + 94
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT ALL SUM( DISTINCT 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL SUM ( DISTINCT 78 ) AS col0
----
78

query I rowsort
SELECT ALL + NULLIF ( + + ( ( - 24 ) ), + ( - - 1 ) * + - 46 + 52 ) + 85 * - 7 * - 97 AS col1
----
57691

onlyif mysql # aggregate syntax: 
query II rowsort label-7578
SELECT DISTINCT 55, + ( + + COUNT( * ) ) AS col0
----
55
1

skipif mysql # not compatible
query II rowsort label-7578
SELECT DISTINCT 55, + ( + + COUNT ( * ) ) AS col0
----
55
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT ALL MIN( - + 61 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL MIN ( - + 61 ) AS col0
----
-61

query I rowsort
SELECT ALL - - 0 + + 60 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT ALL - 7 + + + CASE + 29 WHEN COUNT( * ) - + 85 + + 88 + + COUNT( * ) * - + 10 THEN - - 45 + - 6 WHEN - COUNT( * ) THEN NULL ELSE NULL END * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL - 7 + + + CASE + 29 WHEN COUNT ( * ) - + 85 + + 88 + + COUNT ( * ) * - + 10 THEN - - 45 + - 6 WHEN - COUNT ( * ) THEN NULL ELSE NULL END * - 77
----
NULL

query I rowsort
SELECT - + ( + - 68 ) * + ( + 77 )
----
5236

query II rowsort
SELECT DISTINCT 61, - ( - 3 ) col0
----
61
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7584
SELECT - + COUNT( * ) col2, + 37 * + + COUNT( * ) + - 31 DIV - - 83 AS col1
----
-1
37

skipif mysql # not compatible
query II rowsort label-7584
SELECT - + COUNT ( * ) col2, + 37 * + + COUNT ( * ) + - 31 / - - 83 AS col1
----
-1
37

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7585
SELECT + 24 * + - CASE NULLIF ( 14, + COALESCE ( + + AVG ( ALL 3 ), + + 64 ) ) WHEN + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) * 39 * - 22 * ( - ( - + 55 ) ) + 22 THEN NULL WHEN + + 11 THEN NULL ELSE - ( - 94 ) * + + 37 END AS col2
----
-83472

skipif mysql # not compatible
query I rowsort label-7585
SELECT + 24 * + - CASE NULLIF ( 14, + COALESCE ( + + AVG ( ALL 3 ), + + 64 ) ) WHEN + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) * 39 * - 22 * ( - ( - + 55 ) ) + 22 THEN NULL WHEN + + 11 THEN NULL ELSE - ( - 94 ) * + + 37 END AS col2
----
-83472

query I rowsort
SELECT ALL + 71 + - - 1 + - 2 * + ( + 73 ) AS col1
----
-74

query I rowsort
SELECT - 77 - - CASE 11 WHEN + 62 THEN - 77 / 78 END * + + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT ALL + 80 * + + SUM( - 75 ) * COUNT( * ) * 26
----
-156000

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL + 80 * + + SUM ( - 75 ) * COUNT ( * ) * 26
----
-156000

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT - - COUNT( * ) * - 77 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT - - COUNT ( * ) * - 77 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT + - NULLIF ( + COUNT( * ), 25 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7590
SELECT + - NULLIF ( + COUNT ( * ), 25 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT + - 5 / + + CASE - - 54 WHEN - COUNT( * ) + - 27 + 88 THEN + - 34 WHEN + - 78 THEN NULL ELSE NULL END * - - ( + ( - COUNT( * ) ) ) + - + 76 - 68 - ( - - 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7591
SELECT + - 5 / + + CASE - - 54 WHEN - COUNT ( * ) + - 27 + 88 THEN + - 34 WHEN + - 78 THEN NULL ELSE NULL END * - - ( + ( - COUNT ( * ) ) ) + - + 76 - 68 - ( - - 76 )
----
NULL

query I rowsort
SELECT ALL + 19 * - + 72 + + 35 * - 3 + + 96
----
-1377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7593
SELECT ALL - 61 * - 36 * CASE - 1 WHEN + 60 * + COUNT( * ) + - 39 - - CAST( + 80 AS SIGNED ) / + - 3 + - - COUNT( DISTINCT - - 77 ) * + COUNT( * ) / - + 63 * + 89 * - 40 THEN + 5 WHEN + - CAST( NULL AS SIGNED ) THEN NULL END * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL - 61 * - 36 * CASE - 1 WHEN + 60 * + COUNT ( * ) + - 39 - - CAST ( + 80 AS INTEGER ) / + - 3 + - - COUNT ( DISTINCT - - 77 ) * + COUNT ( * ) / - + 63 * + 89 * - 40 THEN + 5 WHEN + - CAST ( NULL AS INTEGER ) THEN NULL END * - 20
----
NULL

query I rowsort
SELECT + 80 - - - 23
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7595
SELECT ( CAST( NULL AS SIGNED ) ) AS col0, + 11 AS col1
----
NULL
11

skipif mysql # not compatible
query II rowsort label-7595
SELECT ( CAST ( NULL AS INTEGER ) ) AS col0, + 11 AS col1
----
NULL
11

query I rowsort
SELECT + 74 * - - 80 * + - 34 AS col2
----
-201280

query I rowsort
SELECT + ( + - 72 )
----
-72

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7598
SELECT DISTINCT + ( - CAST( NULL AS DECIMAL ) ) AS col0, 79 AS col2
----
NULL
79

skipif mysql # not compatible
query II rowsort label-7598
SELECT DISTINCT + ( - CAST ( NULL AS REAL ) ) AS col0, 79 AS col2
----
NULL
79

query II rowsort
SELECT + 14 * 43 AS col0, + ( + 64 )
----
602
64

query I rowsort
SELECT DISTINCT 26 * - + 90
----
-2340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7601
SELECT COALESCE ( + CAST( NULL AS SIGNED ), + 9 * + 23 ) col0, 42 / + COUNT( * ) + - CASE 85 WHEN + - 81 THEN - 22 WHEN + - COUNT( * ) / + ( + - COALESCE ( - COUNT( * ), + + 83 * + 98 - 20 + - NULLIF ( COALESCE ( + 10, - + 57 + + 11 + - 70 * + 25 * - 99 * - CASE + 11 WHEN - - 92 * + COUNT( ALL 88 ) THEN NULL WHEN - 67 * 81 + 84 + COUNT( * ) THEN NULL ELSE + 94 END + AVG ( ALL + 25 + 74 / - 49 ) * ( - CAST( NULL AS SIGNED ) ) ), 17 / - 92 ) ) ) + - COUNT( * ) + + 53 THEN NULL END - - 75
----
207
NULL

skipif mysql # not compatible
query II rowsort label-7601
SELECT COALESCE ( + CAST ( NULL AS INTEGER ), + 9 * + 23 ) col0, 42 / + COUNT ( * ) + - CASE 85 WHEN + - 81 THEN - 22 WHEN + - COUNT ( * ) / + ( + - COALESCE ( - COUNT ( * ), + + 83 * + 98 - 20 + - NULLIF ( COALESCE ( + 10, - + 57 + + 11 + - 70 * + 25 * - 99 * - CASE + 11 WHEN - - 92 * + COUNT ( ALL 88 ) THEN NULL WHEN - 67 * 81 + 84 + COUNT ( * ) THEN NULL ELSE + 94 END + AVG ( ALL + 25 + 74 / - 49 ) * ( - CAST ( NULL AS INTEGER ) ) ), 17 / - 92 ) ) ) + - COUNT ( * ) + + 53 THEN NULL END - - 75
----
207
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7602
SELECT + MAX( - 75 ) * - 4 + - 6, 32 AS col0
----
294
32

skipif mysql # not compatible
query II rowsort label-7602
SELECT + MAX ( - 75 ) * - 4 + - 6, 32 AS col0
----
294
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT + 84 * - ( - - 80 ) * - - COUNT( * ) AS col0
----
-6720

skipif mysql # not compatible
query I rowsort label-7603
SELECT + 84 * - ( - - 80 ) * - - COUNT ( * ) AS col0
----
-6720

query I rowsort
SELECT DISTINCT + 60 * - 19 + - - 45 AS col0
----
-1095

onlyif mysql # aggregate syntax: 
query II rowsort label-7605
SELECT ALL + MIN( 36 ) AS col0, - 47
----
36
-47

skipif mysql # not compatible
query II rowsort label-7605
SELECT ALL + MIN ( 36 ) AS col0, - 47
----
36
-47

query I rowsort
SELECT ALL - 27 * NULLIF ( + 44, + 82 ) * + 45 + - 53 AS col1
----
-53513

query II rowsort
SELECT + ( 31 ) AS col1, + 85
----
31
85

query I rowsort
SELECT ALL 36 * + 72 AS col2
----
2592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7609
SELECT ALL - 61 * + CASE - - COUNT( * ) WHEN 17 THEN - - COUNT( * ) * + + 42 + COUNT( * ) END + - - ( - CAST( + 80 AS SIGNED ) ) + + + ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL - 61 * + CASE - - COUNT ( * ) WHEN 17 THEN - - COUNT ( * ) * + + 42 + COUNT ( * ) END + - - ( - CAST ( + 80 AS INTEGER ) ) + + + ( COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT - CASE + ( + + 95 ) WHEN 27 + + + ( - 34 ) * + 35 THEN - COUNT( * ) * + 58 * - 5 WHEN 90 * + - 34 + - 96 * + 12 * + 43 THEN 0 END * + - ( 18 ) + + 79 + - - ( 30 ) * - - 28 + - + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7610
SELECT - CASE + ( + + 95 ) WHEN 27 + + + ( - 34 ) * + 35 THEN - COUNT ( * ) * + 58 * - 5 WHEN 90 * + - 34 + - 96 * + 12 * + 43 THEN 0 END * + - ( 18 ) + + 79 + - - ( 30 ) * - - 28 + - + 72 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7611
SELECT DISTINCT + CASE + - 16 WHEN + 6 * - 63 - - + 28 + - COALESCE ( - 87, 49, COUNT( * ) ) + - - 26 THEN + 77 WHEN - 17 * - + 79 THEN + 20 - - 69 + + NULLIF ( + ( + ( + SUM( + - 56 ) ) ), - COUNT( * ) * - 61 * - COUNT( * ) ) DIV 96 * 60 * 21 WHEN 12 THEN NULL ELSE 64 * + 73 + - NULLIF ( + CAST( - ( + 30 ) AS SIGNED ), - 10 + + 29 ) END * - COUNT( * ) + - 14
----
-4716

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT + CASE + - 16 WHEN + 6 * - 63 - - + 28 + - COALESCE ( - 87, 49, COUNT ( * ) ) + - - 26 THEN + 77 WHEN - 17 * - + 79 THEN + 20 - - 69 + + NULLIF ( + ( + ( + SUM ( + - 56 ) ) ), - COUNT ( * ) * - 61 * - COUNT ( * ) ) / 96 * 60 * 21 WHEN 12 THEN NULL ELSE 64 * + 73 + - NULLIF ( + CAST ( - ( + 30 ) AS INTEGER ), - 10 + + 29 ) END * - COUNT ( * ) + - 14
----
-4716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7612
SELECT ALL + + 26 + + - COUNT( * ) + + NULLIF ( 89, CAST( - 16 AS SIGNED ) + - - 13 * - 42 )
----
114

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL + + 26 + + - COUNT ( * ) + + NULLIF ( 89, CAST ( - 16 AS INTEGER ) + - - 13 * - 42 )
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT + - 78 - - COALESCE ( + - 6, - 14 * - 92 * + + 57 * - - COUNT( * ) * SUM( + NULLIF ( - - 6, 4 ) ) ) col2
----
-84

skipif mysql # not compatible
query I rowsort label-7613
SELECT + - 78 - - COALESCE ( + - 6, - 14 * - 92 * + + 57 * - - COUNT ( * ) * SUM ( + NULLIF ( - - 6, 4 ) ) ) col2
----
-84

query I rowsort
SELECT - ( 97 ) * - - 55
----
-5335

query I rowsort
SELECT + - 70 + 51 AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7616
SELECT DISTINCT - 84 * 4 * 54 * + - 12 AS col1, MIN( + CAST( NULL AS SIGNED ) ) AS col2
----
217728
NULL

skipif mysql # not compatible
query II rowsort label-7616
SELECT DISTINCT - 84 * 4 * 54 * + - 12 AS col1, MIN ( + CAST ( NULL AS INTEGER ) ) AS col2
----
217728
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT - - 20 + 92 + + COUNT( * ) AS col1
----
113

skipif mysql # not compatible
query I rowsort label-7617
SELECT - - 20 + 92 + + COUNT ( * ) AS col1
----
113

query I rowsort
SELECT ALL - 15 - 0 * + 80
----
-15

query II rowsort
SELECT - 97 * - 15 AS col0, 66 AS col1
----
1455
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT - 11 + - MAX( DISTINCT - + 10 ) + + - 41 + + + ( - + 95 ) AS col1
----
-137

skipif mysql # not compatible
query I rowsort label-7620
SELECT - 11 + - MAX ( DISTINCT - + 10 ) + + - 41 + + + ( - + 95 ) AS col1
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT - - MIN( + 13 ) * - 54 col1
----
-702

skipif mysql # not compatible
query I rowsort label-7621
SELECT - - MIN ( + 13 ) * - 54 col1
----
-702

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT + NULLIF ( - COUNT( * ), + - 35 + - 4 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7622
SELECT + NULLIF ( - COUNT ( * ), + - 35 + - 4 ) AS col1
----
-1

query I rowsort
SELECT - ( 6 ) * - 16
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT ALL + 67 * - + SUM( - + 7 ) * + 79
----
37051

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL + 67 * - + SUM ( - + 7 ) * + 79
----
37051

query I rowsort
SELECT ( + - COALESCE ( + 22, + - 34 ) ) * 69 - - 2 * + 78 col1
----
-1362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7626
SELECT ALL - CASE - 59 WHEN - ( + CAST( NULL AS SIGNED ) ) / - - SUM( - 16 ) THEN NULL WHEN 56 + - 26 THEN NULL ELSE - - 14 END * 5 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL - CASE - 59 WHEN - ( + CAST ( NULL AS INTEGER ) ) / - - SUM ( - 16 ) THEN NULL WHEN 56 + - 26 THEN NULL ELSE - - 14 END * 5 AS col1
----
-70

query I rowsort
SELECT 82 * + 45 col2
----
3690

query I rowsort
SELECT 85 * - 78 AS col2
----
-6630

onlyif mysql # aggregate syntax: 
query III rowsort label-7629
SELECT + 84 col1, - 11 - 81 AS col1, - COUNT( * )
----
84
-92
-1

skipif mysql # not compatible
query III rowsort label-7629
SELECT + 84 col1, - 11 - 81 AS col1, - COUNT ( * )
----
84
-92
-1

query I rowsort
SELECT ALL 49 + 6
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7631
SELECT DISTINCT ( 65 ) DIV 22 DIV 8 + - - COUNT( * ) + + 28 + + + NULLIF ( - ( - SUM( DISTINCT - 21 ) ), + 34 * + + 17 ) + + 9 + + 31 * + - 34 * - NULLIF ( + + 94, - 78 ) * - - 67 - - 87 AS col0
----
6638196

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT ( 65 ) / 22 / 8 + - - COUNT ( * ) + + 28 + + + NULLIF ( - ( - SUM ( DISTINCT - 21 ) ), + 34 * + + 17 ) + + 9 + + 31 * + - 34 * - NULLIF ( + + 94, - 78 ) * - - 67 - - 87 AS col0
----
6638196

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT DISTINCT + COUNT( * ) + 58 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7632
SELECT DISTINCT + COUNT ( * ) + 58 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT ALL - CASE 68 WHEN - MAX( ALL + 48 ) THEN - 77 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL - CASE 68 WHEN - MAX ( ALL + 48 ) THEN - 77 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7634
SELECT DISTINCT 77 + + + 14 * + COALESCE ( - 92, - + 1 * COUNT( * ) + + 17 + - 17 * - COALESCE ( - 3, + 49 ) ) * + - CAST( NULL AS SIGNED ) + - 43 + 66 * 5 AS col1, + COUNT( * ) + + 96 + 39 AS col1
----
NULL
136

skipif mysql # not compatible
query II rowsort label-7634
SELECT DISTINCT 77 + + + 14 * + COALESCE ( - 92, - + 1 * COUNT ( * ) + + 17 + - 17 * - COALESCE ( - 3, + 49 ) ) * + - CAST ( NULL AS INTEGER ) + - 43 + 66 * 5 AS col1, + COUNT ( * ) + + 96 + 39 AS col1
----
NULL
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT COALESCE ( + 25, - 50, - CASE 53 WHEN + COUNT( DISTINCT + - 49 ) + + 41 * - 10 THEN + 43 * - + 79 ELSE - + COALESCE ( + COUNT( - - 47 ), - 93 ) * + + 23 + - 98 + CASE 85 WHEN + - 96 * 33 THEN - MAX( 71 ) WHEN - 26 THEN NULL ELSE - - 7 * - ( + COUNT( * ) ) + + ( - + 48 ) END END * + + 24 + - 80 )
----
25

skipif mysql # not compatible
query I rowsort label-7635
SELECT COALESCE ( + 25, - 50, - CASE 53 WHEN + COUNT ( DISTINCT + - 49 ) + + 41 * - 10 THEN + 43 * - + 79 ELSE - + COALESCE ( + COUNT ( - - 47 ), - 93 ) * + + 23 + - 98 + CASE 85 WHEN + - 96 * 33 THEN - MAX ( 71 ) WHEN - 26 THEN NULL ELSE - - 7 * - ( + COUNT ( * ) ) + + ( - + 48 ) END END * + + 24 + - 80 )
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7636
SELECT + 79 + MIN( DISTINCT - + 64 ) DIV - - 88 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-7636
SELECT + 79 + MIN ( DISTINCT - + 64 ) / - - 88 AS col0
----
79

query I rowsort
SELECT + ( 2 ) + - + 25
----
-23

query I rowsort
SELECT + 36 * - 14 * - COALESCE ( + 28, 72, + 42 ) AS col2
----
14112

onlyif mysql # DIV for integer division: 
query I rowsort label-7639
SELECT + 45 DIV - 69 - - + 1
----
1

skipif mysql # not compatible
query I rowsort label-7639
SELECT + 45 / - 69 - - + 1
----
1

query I rowsort
SELECT ALL 28 - 21
----
7

query I rowsort
SELECT ALL - 85 * + 21 - 22
----
-1807

onlyif mysql # aggregate syntax: 
query II rowsort label-7642
SELECT - 36, + 5 + - 12 + - COUNT( * ) AS col1
----
-36
-8

skipif mysql # not compatible
query II rowsort label-7642
SELECT - 36, + 5 + - 12 + - COUNT ( * ) AS col1
----
-36
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7643
SELECT ALL + - 7 DIV - - 49
----
0

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL + - 7 / - - 49
----
0

query I rowsort
SELECT - 25 + - 87 AS col0
----
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-7645
SELECT ALL 69 DIV - 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL 69 / - 74 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT 96 * + COUNT( * ) col1
----
96

skipif mysql # not compatible
query I rowsort label-7646
SELECT 96 * + COUNT ( * ) col1
----
96

query II rowsort
SELECT DISTINCT 12, - NULLIF ( + 45, + NULLIF ( + 4, - 77 + + 81 ) * + - 60 * - 68 ) AS col0
----
12
-45

query II rowsort
SELECT ALL - 66, + 25 * + 10 + + 13 AS col0
----
-66
263

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7649
SELECT DISTINCT - CASE + + 53 WHEN + 36 - + - 66 - 74 THEN NULL WHEN 39 THEN NULL ELSE + CAST( NULL AS DECIMAL ) + CAST( + - 14 AS SIGNED ) + - + ( - 71 ) + - 96 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7649
SELECT DISTINCT - CASE + + 53 WHEN + 36 - + - 66 - 74 THEN NULL WHEN 39 THEN NULL ELSE + CAST ( NULL AS REAL ) + CAST ( + - 14 AS INTEGER ) + - + ( - 71 ) + - 96 END AS col0
----
NULL

query I rowsort
SELECT 5 * - 22
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7651
SELECT ALL + MAX( ALL - 63 ) + - CASE 15 WHEN CAST( NULL AS SIGNED ) + - - ( - SUM( - 38 ) ) THEN + - 55 WHEN - 84 / - + 64 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL + MAX ( ALL - 63 ) + - CASE 15 WHEN CAST ( NULL AS INTEGER ) + - - ( - SUM ( - 38 ) ) THEN + - 55 WHEN - 84 / - + 64 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT ( COUNT( * ) ) + - 94
----
-93

skipif mysql # not compatible
query I rowsort label-7652
SELECT ( COUNT ( * ) ) + - 94
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT ALL - 8 + SUM( ALL + 25 ) + + 27 + + NULLIF ( 55, - + 83 ) * 87 AS col1
----
4829

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL - 8 + SUM ( ALL + 25 ) + + 27 + + NULLIF ( 55, - + 83 ) * 87 AS col1
----
4829

query I rowsort
SELECT 21 - - + 53
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-7655
SELECT 0, MIN( ALL - + 42 ) AS col0
----
0
-42

skipif mysql # not compatible
query II rowsort label-7655
SELECT 0, MIN ( ALL - + 42 ) AS col0
----
0
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-7656
SELECT + 49 DIV - 5 + - + 65 - - 55 AS col2, - ( + 8 ) + - 45 col2
----
-19
-53

skipif mysql # not compatible
query II rowsort label-7656
SELECT + 49 / - 5 + - + 65 - - 55 AS col2, - ( + 8 ) + - 45 col2
----
-19
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT COUNT( * ) * + 67 * - 55 AS col1
----
-3685

skipif mysql # not compatible
query I rowsort label-7657
SELECT COUNT ( * ) * + 67 * - 55 AS col1
----
-3685

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT ALL - MIN( ALL - 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL - MIN ( ALL - 81 ) AS col1
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7659
SELECT ALL + 9 + - 9 - COALESCE ( + + COUNT( * ), - - COUNT( * ) ) DIV 24 AS col1, ( - 9 )
----
0
-9

skipif mysql # not compatible
query II rowsort label-7659
SELECT ALL + 9 + - 9 - COALESCE ( + + COUNT ( * ), - - COUNT ( * ) ) / 24 AS col1, ( - 9 )
----
0
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7660
SELECT ALL + 36 + 67 - - + 10 DIV 90 * - + 44 - + 88 DIV - 13
----
109

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL + 36 + 67 - - + 10 / 90 * - + 44 - + 88 / - 13
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT 9 * - CASE + 27 WHEN - COUNT( * ) - 24 * 28 THEN NULL WHEN 83 + + MAX( DISTINCT - - ( - 89 ) ) - + - 92 THEN NULL ELSE - 58 END + + ( + 63 ) col0
----
585

skipif mysql # not compatible
query I rowsort label-7661
SELECT 9 * - CASE + 27 WHEN - COUNT ( * ) - 24 * 28 THEN NULL WHEN 83 + + MAX ( DISTINCT - - ( - 89 ) ) - + - 92 THEN NULL ELSE - 58 END + + ( + 63 ) col0
----
585

query II rowsort
SELECT ALL - 1 AS col2, - 87
----
-1
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-7663
SELECT 10 DIV + + 17 * 31
----
0

skipif mysql # not compatible
query I rowsort label-7663
SELECT 10 / + + 17 * 31
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT + ( - - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7664
SELECT + ( - - COUNT ( * ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7665
SELECT ALL - 75 - - COUNT( * ) - - + ( 47 ) * - MIN( - + 98 ) + - - MAX( + 31 ) + + - CAST( NULL AS SIGNED ) + + 70 * 29 * - CAST( NULL AS SIGNED ) + + 3 * 6 + - MIN( DISTINCT + 27 ) AS col1, + 55
----
NULL
55

skipif mysql # not compatible
query II rowsort label-7665
SELECT ALL - 75 - - COUNT ( * ) - - + ( 47 ) * - MIN ( - + 98 ) + - - MAX ( + 31 ) + + - CAST ( NULL AS INTEGER ) + + 70 * 29 * - CAST ( NULL AS INTEGER ) + + 3 * 6 + - MIN ( DISTINCT + 27 ) AS col1, + 55
----
NULL
55

query I rowsort
SELECT 93 + - NULLIF ( + - 1, + ( 69 ) / + 2 + - COALESCE ( + 54, - + 15 + - - 77 ) )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT DISTINCT - COUNT( * ) - 66 * + 1
----
-67

skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT - COUNT ( * ) - 66 * + 1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT + MAX( ALL + 41 ) * NULLIF ( + + 78, - COALESCE ( - 69, 28 * - 52 / - + 40 + 53 + - - ( - + CASE - 93 WHEN 93 * 63 + - + 18 THEN - 81 * CASE + 97 WHEN + + COUNT( * ) + - 72 + - - COUNT( * ) + + + 27 / - 88 * - 61 + + + 11 * - - 31 THEN - - COUNT( * ) END + + 58 END ) ) ) + + 79
----
3277

skipif mysql # not compatible
query I rowsort label-7668
SELECT + MAX ( ALL + 41 ) * NULLIF ( + + 78, - COALESCE ( - 69, 28 * - 52 / - + 40 + 53 + - - ( - + CASE - 93 WHEN 93 * 63 + - + 18 THEN - 81 * CASE + 97 WHEN + + COUNT ( * ) + - 72 + - - COUNT ( * ) + + + 27 / - 88 * - 61 + + + 11 * - - 31 THEN - - COUNT ( * ) END + + 58 END ) ) ) + + 79
----
3277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7669
SELECT DISTINCT + 67 - + - CASE - 29 WHEN - CAST( - COUNT( * ) AS SIGNED ) THEN NULL WHEN 36 * + MIN( DISTINCT + 65 ) THEN + + 47 ELSE - + 56 END
----
11

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT + 67 - + - CASE - 29 WHEN - CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL WHEN 36 * + MIN ( DISTINCT + 65 ) THEN + + 47 ELSE - + 56 END
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7670
SELECT DISTINCT - ( 27 ) AS col0, + CAST( + 85 AS SIGNED ) AS col0, 89 AS col2
----
-27
85
89

skipif mysql # not compatible
query III rowsort label-7670
SELECT DISTINCT - ( 27 ) AS col0, + CAST ( + 85 AS INTEGER ) AS col0, 89 AS col2
----
-27
85
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7671
SELECT ALL 0 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL 0 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT ALL - MIN( - 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL - MIN ( - 1 ) AS col2
----
1

query I rowsort
SELECT + 9 + 90 + 8 + 46 * - - 74
----
3511

query I rowsort
SELECT ( - - 43 ) - - 26 col0
----
69

query I rowsort
SELECT - + CASE 80 WHEN + 67 + - - 36 * + + 7 / + 72 THEN ( - 41 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT + 93 + COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-7676
SELECT + 93 + COUNT ( * ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT NULLIF ( + - 27, + 58 * - 75 ) * - - SUM( DISTINCT + - 53 ) * - 2 * + - 73
----
208926

skipif mysql # not compatible
query I rowsort label-7677
SELECT NULLIF ( + - 27, + 58 * - 75 ) * - - SUM ( DISTINCT + - 53 ) * - 2 * + - 73
----
208926

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7678
SELECT ( - ( + AVG ( + CAST( + + 52 AS SIGNED ) ) ) ) + + 20 + + + NULLIF ( 48, - 87 ) - - - 65 + CASE 62 WHEN 48 THEN + - SUM( DISTINCT - - 92 ) + - 26 WHEN + + 78 THEN + ( - 81 ) + 50 END * - 14 * COALESCE ( - 79, + + COUNT( * ) ) + - - COALESCE ( + ( + + 13 ), 53 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7678
SELECT ( - ( + AVG ( + CAST ( + + 52 AS INTEGER ) ) ) ) + + 20 + + + NULLIF ( 48, - 87 ) - - - 65 + CASE 62 WHEN 48 THEN + - SUM ( DISTINCT - - 92 ) + - 26 WHEN + + 78 THEN + ( - 81 ) + 50 END * - 14 * COALESCE ( - 79, + + COUNT ( * ) ) + - - COALESCE ( + ( + + 13 ), 53 ) AS col1
----
NULL

query I rowsort
SELECT 42 + - ( + 46 )
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-7680
SELECT - ( + + COUNT( * ) ) col2, + 88 col2
----
-1
88

skipif mysql # not compatible
query II rowsort label-7680
SELECT - ( + + COUNT ( * ) ) col2, + 88 col2
----
-1
88

query I rowsort
SELECT ALL 89 + + 40
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7682
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) - + COUNT( * ) + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) - + COUNT ( * ) + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 34 + 8 + - 84 col0
----
-42

query II rowsort
SELECT ALL 42 * + - 40 AS col0, + 33 AS col1
----
-1680
33

query I rowsort
SELECT DISTINCT 45 + + 27 + 50 * 38 + - - 17 AS col0
----
1989

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL COUNT( * ) + MAX( + - 0 ) * - 32 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL COUNT ( * ) + MAX ( + - 0 ) * - 32 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7687
SELECT + 74 DIV - COUNT( + - 17 )
----
-74

skipif mysql # not compatible
query I rowsort label-7687
SELECT + 74 / - COUNT ( + - 17 )
----
-74

query I rowsort
SELECT + 85 * 23
----
1955

query I rowsort
SELECT + 91 + + 12 * 8 AS col0
----
187

query I rowsort
SELECT DISTINCT 14 + - + 35
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT ALL SUM( DISTINCT - ( + + 15 ) ) + - 65
----
-80

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL SUM ( DISTINCT - ( + + 15 ) ) + - 65
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT - COUNT( ALL + 98 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7692
SELECT - COUNT ( ALL + 98 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7693
SELECT - 44 + 40 * SUM( DISTINCT - 82 ) / - 50 / CAST( NULL AS SIGNED ) + NULLIF ( + + 22, + 35 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7693
SELECT - 44 + 40 * SUM ( DISTINCT - 82 ) / - 50 / CAST ( NULL AS INTEGER ) + NULLIF ( + + 22, + 35 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 67 * - + CASE + 33 WHEN + 49 * + 98 THEN ( + 43 ) END
----
NULL

query I rowsort
SELECT + NULLIF ( 11, + 65 ) AS col0
----
11

query II rowsort
SELECT ALL - 68 * + 72 + - 99 + + 49 + - - 68 AS col2, + 79 AS col2
----
-4878
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT DISTINCT CASE - COUNT( * ) WHEN + 37 * - SUM( ALL - - 73 ) THEN - 36 * + 74 / - 10 * + + ( - 36 ) END * 23 / COUNT( ALL 15 ) * 1 * - - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7697
SELECT DISTINCT CASE - COUNT ( * ) WHEN + 37 * - SUM ( ALL - - 73 ) THEN - 36 * + 74 / - 10 * + + ( - 36 ) END * 23 / COUNT ( ALL 15 ) * 1 * - - 28
----
NULL

query I rowsort
SELECT ALL 57 * ( + 85 ) - - - 92 AS col1
----
4753

query I rowsort
SELECT ALL ( - + 67 ) * + 74
----
-4958

query I rowsort
SELECT NULLIF ( - - 93, - - ( 80 ) + - 70 + - 38 + + 41 * - 75 * - ( + 94 ) )
----
93

query I rowsort
SELECT + NULLIF ( - 42, + - 2 )
----
-42

query I rowsort
SELECT - 54 * + 73 * 86 AS col1
----
-339012

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT - COUNT( * ) * 55 + 7 * - - 83
----
526

skipif mysql # not compatible
query I rowsort label-7703
SELECT - COUNT ( * ) * 55 + 7 * - - 83
----
526

query I rowsort
SELECT + ( + NULLIF ( - 95, + 69 ) )
----
-95

query II rowsort
SELECT + 69 * + ( + - 59 ) - + + 88 + + ( + - 91 ) * 20, 33 * 14 AS col2
----
-5979
462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7706
SELECT ALL - 82 * - COUNT( * ) + - 2 * - 42 - - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7706
SELECT ALL - 82 * - COUNT ( * ) + - 2 * - 42 - - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT DISTINCT - 85 / - NULLIF ( 98, 62 - 74 ) + - CASE - - 54 WHEN + COUNT( * ) THEN + 31 END * 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7707
SELECT DISTINCT - 85 / - NULLIF ( 98, 62 - 74 ) + - CASE - - 54 WHEN + COUNT ( * ) THEN + 31 END * 4 AS col1
----
NULL

query II rowsort
SELECT - + 58 * + 35 AS col1, 87
----
-2030
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7709
SELECT - - CAST( NULL AS SIGNED ) * - - 27 / COUNT( * ) - - 26 * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7709
SELECT - - CAST ( NULL AS INTEGER ) * - - 27 / COUNT ( * ) - - 26 * 73
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7710
SELECT - - SUM( ALL 97 ) * + - NULLIF ( + 78, + COUNT( * ) ) AS col2, 47 AS col0
----
-7566
47

skipif mysql # not compatible
query II rowsort label-7710
SELECT - - SUM ( ALL 97 ) * + - NULLIF ( + 78, + COUNT ( * ) ) AS col2, 47 AS col0
----
-7566
47

query I rowsort
SELECT - + ( - + 49 )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7712
SELECT - 21 DIV + + MAX( + 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-7712
SELECT - 21 / + + MAX ( + 17 )
----
-1

query I rowsort
SELECT ALL + - 60 + - - 43 + + 51 * 89 AS col0
----
4522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7714
SELECT DISTINCT - 53 + + 68 + - 35 - + - COUNT( * ) + + ( - 97 ) / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT - 53 + + 68 + - 35 - + - COUNT ( * ) + + ( - 97 ) / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7715
SELECT - + 31 DIV - - 34 + + 31 * - 60 - - + 38 AS col2, + 32
----
-1822
32

skipif mysql # not compatible
query II rowsort label-7715
SELECT - + 31 / - - 34 + + 31 * - 60 - - + 38 AS col2, + 32
----
-1822
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT ALL - NULLIF ( + 39, + 22 / + COUNT( * ) ) col1
----
-39

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL - NULLIF ( + 39, + 22 / + COUNT ( * ) ) col1
----
-39

query I rowsort
SELECT - 62 + 32 AS col1
----
-30

query I rowsort
SELECT + 68 * - + 62 AS col1
----
-4216

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT - COUNT( 65 )
----
-1

skipif mysql # not compatible
query I rowsort label-7719
SELECT - COUNT ( 65 )
----
-1

query I rowsort
SELECT - 55 - 7
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT ALL 26 + - MIN( ALL - - 47 )
----
-21

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL 26 + - MIN ( ALL - - 47 )
----
-21

query II rowsort
SELECT + 32 - - + 60 * + + 34 AS col0, + 15 + - 33 AS col0
----
2072
-18

query I rowsort
SELECT ALL - 36 * + - 65 AS col2
----
2340

query II rowsort
SELECT DISTINCT 82 AS col0, 47 + - 48 AS col1
----
82
-1

query I rowsort
SELECT - 72 + - 26 + + ( 25 )
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7726
SELECT - ( - COUNT( 18 ) ) DIV - - 37 - 46 + + + SUM( ALL 5 ) * + 59 + - 39
----
210

skipif mysql # not compatible
query I rowsort label-7726
SELECT - ( - COUNT ( 18 ) ) / - - 37 - 46 + + + SUM ( ALL 5 ) * + 59 + - 39
----
210

query II rowsort
SELECT ALL + 81 AS col1, + 85 + 78 + + 91
----
81
254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7728
SELECT CAST( - + 29 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-7728
SELECT CAST ( - + 29 AS INTEGER )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT 46 * + + ( + 1 ) + MIN( 18 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7729
SELECT 46 * + + ( + 1 ) + MIN ( 18 ) AS col0
----
64

query I rowsort
SELECT + 54 - + - 81
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT + 66 * CASE + 49 WHEN + 39 THEN + + COUNT( * ) ELSE - 72 END * - 37
----
175824

skipif mysql # not compatible
query I rowsort label-7731
SELECT + 66 * CASE + 49 WHEN + 39 THEN + + COUNT ( * ) ELSE - 72 END * - 37
----
175824

query I rowsort
SELECT + 42 * - 75 AS col0
----
-3150

onlyif mysql # DIV for integer division: 
query I rowsort label-7733
SELECT ALL - ( + - ( + 59 ) ) DIV + ( 55 )
----
1

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL - ( + - ( + 59 ) ) / + ( 55 )
----
1

query II rowsort
SELECT DISTINCT + 5 AS col2, 66
----
5
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT ALL - + COUNT( * ) * - + 81 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL - + COUNT ( * ) * - + 81 AS col0
----
81

query I rowsort
SELECT + - 62 * 84
----
-5208

query I rowsort
SELECT ALL 95 * + 2 AS col2
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT + + CASE + ( - + 24 ) WHEN + - 23 * - 88 + + 93 + - MIN( DISTINCT + ( 85 ) ) / - - 44 * - - 83 * + 62 - + - 39 * + 46 THEN 19 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7738
SELECT + + CASE + ( - + 24 ) WHEN + - 23 * - 88 + + 93 + - MIN ( DISTINCT + ( 85 ) ) / - - 44 * - - 83 * + 62 - + - 39 * + 46 THEN 19 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT - + 92 * 93 + COUNT( * ) + - + 64 * 18 AS col1
----
-9707

skipif mysql # not compatible
query I rowsort label-7739
SELECT - + 92 * 93 + COUNT ( * ) + - + 64 * 18 AS col1
----
-9707

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7740
SELECT - 61 * - 60 DIV COUNT( * ) * COUNT( * ) col1
----
3660

skipif mysql # not compatible
query I rowsort label-7740
SELECT - 61 * - 60 / COUNT ( * ) * COUNT ( * ) col1
----
3660

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT - MAX( - 25 ) + - 55
----
-30

skipif mysql # not compatible
query I rowsort label-7741
SELECT - MAX ( - 25 ) + - 55
----
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-7742
SELECT ALL + 55 * + - 1 DIV + 76 * 72 + + - 40 + - 21, 7 * + - 77 + - 74 AS col1
----
-61
-613

skipif mysql # not compatible
query II rowsort label-7742
SELECT ALL + 55 * + - 1 / + 76 * 72 + + - 40 + - 21, 7 * + - 77 + - 74 AS col1
----
-61
-613

onlyif mysql # aggregate syntax: 
query II rowsort label-7743
SELECT DISTINCT - - 96 * + + ( - 39 ) + - 69 AS col0, + 54 * + 40 + + MAX( ALL - - 84 ) * + 58
----
-3813
7032

skipif mysql # not compatible
query II rowsort label-7743
SELECT DISTINCT - - 96 * + + ( - 39 ) + - 69 AS col0, + 54 * + 40 + + MAX ( ALL - - 84 ) * + 58
----
-3813
7032

query I rowsort
SELECT DISTINCT - 69 * + 77 + 64 AS col2
----
-5249

onlyif mysql # aggregate syntax: 
query II rowsort label-7745
SELECT DISTINCT + NULLIF ( + ( - ( - 11 ) ), + CASE - 87 WHEN + 51 / + MAX( - - 4 ) + + 59 + 98 THEN 25 WHEN 66 / + 44 THEN NULL ELSE NULL END ) + + CASE - 30 WHEN + 51 - 80 THEN NULL WHEN - + COUNT( ALL 29 ) - - + MIN( DISTINCT 81 ) THEN NULL ELSE 12 END AS col0, + NULLIF ( - 29, + 78 )
----
23
-29

skipif mysql # not compatible
query II rowsort label-7745
SELECT DISTINCT + NULLIF ( + ( - ( - 11 ) ), + CASE - 87 WHEN + 51 / + MAX ( - - 4 ) + + 59 + 98 THEN 25 WHEN 66 / + 44 THEN NULL ELSE NULL END ) + + CASE - 30 WHEN + 51 - 80 THEN NULL WHEN - + COUNT ( ALL 29 ) - - + MIN ( DISTINCT 81 ) THEN NULL ELSE 12 END AS col0, + NULLIF ( - 29, + 78 )
----
23
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7746
SELECT ALL - + CAST( NULL AS SIGNED ) * + COUNT( ALL - ( + 31 ) ) * - 24 * + ( - 57 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL - + CAST ( NULL AS INTEGER ) * + COUNT ( ALL - ( + 31 ) ) * - 24 * + ( - 57 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7747
SELECT + 55 + + + AVG ( DISTINCT 3 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7747
SELECT + 55 + + + AVG ( DISTINCT 3 ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - + 29 + - 56 AS col0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7749
SELECT DISTINCT + + 66 + CAST( + 39 AS SIGNED )
----
105

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT + + 66 + CAST ( + 39 AS INTEGER )
----
105

query II rowsort
SELECT - - 63 AS col2, 30 AS col0
----
63
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7751
SELECT 94 + + COUNT( * ) DIV - SUM( + + 36 ) * - 12 * - - NULLIF ( - 25, - - COALESCE ( - + COUNT( * ), + - 53 - 46 DIV - COUNT( * ) ) + + + 41 ) - 43
----
51

skipif mysql # not compatible
query I rowsort label-7751
SELECT 94 + + COUNT ( * ) / - SUM ( + + 36 ) * - 12 * - - NULLIF ( - 25, - - COALESCE ( - + COUNT ( * ), + - 53 - 46 / - COUNT ( * ) ) + + + 41 ) - 43
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT ALL + COUNT( * ) * - 92 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL + COUNT ( * ) * - 92 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT 21 + + COUNT( ALL - 58 ) + + COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-7753
SELECT 21 + + COUNT ( ALL - 58 ) + + COUNT ( * ) AS col0
----
23

query I rowsort
SELECT DISTINCT - 68 * + 28
----
-1904

query I rowsort
SELECT 46 + + 29
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7756
SELECT CASE + CASE + - ( + 2 ) WHEN - ( + 7 ) THEN + 76 + + + CAST( NULL AS SIGNED ) + + AVG ( ALL + + 67 ) ELSE - 64 END WHEN - + 37 * - + 22 * + - 72 THEN NULL WHEN - - COUNT( * ) THEN - MAX( DISTINCT 74 ) / 30 WHEN - COUNT( ALL - CAST( NULL AS SIGNED ) ) THEN + NULLIF ( - 40, 84 * - COUNT( * ) - - - SUM( ALL 47 ) - + 14 * - 34 / 52 ) END + 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7756
SELECT CASE + CASE + - ( + 2 ) WHEN - ( + 7 ) THEN + 76 + + + CAST ( NULL AS INTEGER ) + + AVG ( ALL + + 67 ) ELSE - 64 END WHEN - + 37 * - + 22 * + - 72 THEN NULL WHEN - - COUNT ( * ) THEN - MAX ( DISTINCT 74 ) / 30 WHEN - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) THEN + NULLIF ( - 40, 84 * - COUNT ( * ) - - - SUM ( ALL 47 ) - + 14 * - 34 / 52 ) END + 17 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7757
SELECT DISTINCT - 87 * COUNT( * ) / + + CASE - + 94 WHEN - 80 THEN 51 * + + 36 + - COALESCE ( - + CAST( NULL AS SIGNED ), - 0 * - COUNT( * ), + 5 ) + + 12 WHEN CAST( 35 AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7757
SELECT DISTINCT - 87 * COUNT ( * ) / + + CASE - + 94 WHEN - 80 THEN 51 * + + 36 + - COALESCE ( - + CAST ( NULL AS INTEGER ), - 0 * - COUNT ( * ), + 5 ) + + 12 WHEN CAST ( 35 AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT MAX( + 31 ) + 18 * - CASE + 58 WHEN - + 91 THEN + AVG ( ALL + + 67 ) + - 79 ELSE NULL END * + + 30 * + - 67 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7758
SELECT MAX ( + 31 ) + 18 * - CASE + 58 WHEN - + 91 THEN + AVG ( ALL + + 67 ) + - 79 ELSE NULL END * + + 30 * + - 67 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT 36 * + MIN( ALL - 91 ) AS col1
----
-3276

skipif mysql # not compatible
query I rowsort label-7759
SELECT 36 * + MIN ( ALL - 91 ) AS col1
----
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT ALL - COUNT( * ) * - + 33
----
33

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL - COUNT ( * ) * - + 33
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT DISTINCT + ( - COUNT( * ) ) * + - 82 * + + 52 + - + 42
----
4222

skipif mysql # not compatible
query I rowsort label-7761
SELECT DISTINCT + ( - COUNT ( * ) ) * + - 82 * + + 52 + - + 42
----
4222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7762
SELECT 91 * NULLIF ( - - ( - 60 ), - - COALESCE ( MIN( ALL - 14 ), + NULLIF ( 24, 65 ) * + + 60 + + + 17 ) + + - COALESCE ( - 54, - CAST( NULL AS SIGNED ) ) ) + 63 * - - 91 + + 84
----
357

skipif mysql # not compatible
query I rowsort label-7762
SELECT 91 * NULLIF ( - - ( - 60 ), - - COALESCE ( MIN ( ALL - 14 ), + NULLIF ( 24, 65 ) * + + 60 + + + 17 ) + + - COALESCE ( - 54, - CAST ( NULL AS INTEGER ) ) ) + 63 * - - 91 + + 84
----
357

query I rowsort
SELECT + CASE 73 WHEN - - 9 * - + 94 + - + 97 THEN - 12 ELSE ( 71 ) + - 76 - - 26 + - 62 * - 6 + - NULLIF ( - - 23, - + 14 + - + 50 + - 7 ) END
----
370

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT CASE 72 WHEN - 48 THEN NULL WHEN + 38 THEN + 67 END / + SUM( + 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT CASE 72 WHEN - 48 THEN NULL WHEN + 38 THEN + 67 END / + SUM ( + 2 )
----
NULL

query I rowsort
SELECT + 45 + - + 64 + 25 * - 83 * + 20
----
-41519

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7766
SELECT DISTINCT COUNT( * ) DIV 1 * ( + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT COUNT ( * ) / 1 * ( + 53 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT ALL + 44 + + 20 + + 24 + - - SUM( ALL + + 5 ) col0
----
93

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL + 44 + + 20 + + 24 + - - SUM ( ALL + + 5 ) col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7768
SELECT - 12 DIV + + 4
----
-3

skipif mysql # not compatible
query I rowsort label-7768
SELECT - 12 / + + 4
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT ALL + ( 90 ) + ( - COUNT( ( ( + ( + 61 ) ) ) ) ) + COUNT( * ) * + 10 * 53 + NULLIF ( - 84, + 87 ) AS col0
----
535

skipif mysql # not compatible
query I rowsort label-7769
SELECT ALL + ( 90 ) + ( - COUNT ( ( ( + ( + 61 ) ) ) ) ) + COUNT ( * ) * + 10 * 53 + NULLIF ( - 84, + 87 ) AS col0
----
535

onlyif mysql # aggregate syntax: 
query II rowsort label-7770
SELECT COUNT( * ) * - 4 * NULLIF ( + ( - + 62 ), + - COUNT( * ) ) * - COUNT( * ), - 54 AS col1
----
-248
-54

skipif mysql # not compatible
query II rowsort label-7770
SELECT COUNT ( * ) * - 4 * NULLIF ( + ( - + 62 ), + - COUNT ( * ) ) * - COUNT ( * ), - 54 AS col1
----
-248
-54

query I rowsort
SELECT + 61 + + - 73 AS col2
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7772
SELECT DISTINCT - 18 + - COUNT( * ) DIV + + COALESCE ( + ( - ( + 19 ) ), - 48 ) * + COUNT( * ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-7772
SELECT DISTINCT - 18 + - COUNT ( * ) / + + COALESCE ( + ( - ( + 19 ) ), - 48 ) * + COUNT ( * ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT COUNT( * ) + - 80 * - - 89
----
-7119

skipif mysql # not compatible
query I rowsort label-7773
SELECT COUNT ( * ) + - 80 * - - 89
----
-7119

query II rowsort
SELECT DISTINCT 4 col0, + 94
----
4
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT ALL + COUNT( * ) - + 93
----
-92

skipif mysql # not compatible
query I rowsort label-7775
SELECT ALL + COUNT ( * ) - + 93
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT COALESCE ( + COUNT( * ), + 70 + + + COUNT( * ) ) * - 67
----
-67

skipif mysql # not compatible
query I rowsort label-7776
SELECT COALESCE ( + COUNT ( * ), + 70 + + + COUNT ( * ) ) * - 67
----
-67

query I rowsort
SELECT DISTINCT + ( 75 ) - + + 68 AS col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-7778
SELECT ( + 20 ) * - 98 * + MIN( - - 40 ), + 0 * + COUNT( * ) * + COUNT( * ) AS col1
----
-78400
0

skipif mysql # not compatible
query II rowsort label-7778
SELECT ( + 20 ) * - 98 * + MIN ( - - 40 ), + 0 * + COUNT ( * ) * + COUNT ( * ) AS col1
----
-78400
0

query I rowsort
SELECT ALL + 82 * - + 22
----
-1804

query I rowsort
SELECT ( - 91 ) * + 14
----
-1274

query I rowsort
SELECT 40 * - - ( + 73 )
----
2920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7782
SELECT ( 29 ) + + CAST( 33 AS SIGNED ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-7782
SELECT ( 29 ) + + CAST ( 33 AS INTEGER ) AS col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7783
SELECT COUNT( * ) + - ( 34 ) * 10 + 55 * - 68 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT COUNT ( * ) + - ( 34 ) * 10 + 55 * - 68 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 30 * 63
----
1890

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT MAX( DISTINCT + 20 ) * - 41 col0
----
-820

skipif mysql # not compatible
query I rowsort label-7785
SELECT MAX ( DISTINCT + 20 ) * - 41 col0
----
-820

query I rowsort
SELECT 36 - + - 36
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT ALL ( MIN( 32 ) ) * + + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL ( MIN ( 32 ) ) * + + COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT ALL COUNT( * ) * NULLIF ( + 53, + - 71 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL COUNT ( * ) * NULLIF ( + 53, + - 71 ) AS col0
----
53

query I rowsort
SELECT 45 - 36
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7790
SELECT ALL + 19 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL + 19 / + 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7791
SELECT 55 + 41 DIV + 40 + + 74 AS col2
----
130

skipif mysql # not compatible
query I rowsort label-7791
SELECT 55 + 41 / + 40 + + 74 AS col2
----
130

query II rowsort
SELECT ALL 98 AS col0, - 9 AS col0
----
98
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7793
SELECT 61 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-7793
SELECT 61 / - 82
----
0

query I rowsort
SELECT 64 + + 6 AS col2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7795
SELECT 62 + - 56 + 13 + - CAST( - 40 AS SIGNED ) col0
----
59

skipif mysql # not compatible
query I rowsort label-7795
SELECT 62 + - 56 + 13 + - CAST ( - 40 AS INTEGER ) col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT ALL - + MIN( - 39 )
----
39

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL - + MIN ( - 39 )
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7797
SELECT 70 DIV + - 88 * 55 * + MAX( - 14 ) + 22 - COUNT( * ) DIV - + 52 - 35
----
-13

skipif mysql # not compatible
query I rowsort label-7797
SELECT 70 / + - 88 * 55 * + MAX ( - 14 ) + 22 - COUNT ( * ) / - + 52 - 35
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7798
SELECT DISTINCT 79 * - 82 * 97 * + - NULLIF ( - CAST( NULL AS SIGNED ), - - ( + 28 ) + + 23 ) + - + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT 79 * - 82 * 97 * + - NULLIF ( - CAST ( NULL AS INTEGER ), - - ( + 28 ) + + 23 ) + - + 94
----
NULL

query I rowsort
SELECT + ( + + 88 ) - + 12
----
76

query I rowsort
SELECT DISTINCT - 54 * ( 14 ) + 77
----
-679

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7801
SELECT ALL - 19 * - - 99 / - + 49 + - ( - + 72 ) + + + 87 + CAST( NULL AS DECIMAL ) * - 26 * + 49 - + 52 + + ( 6 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL - 19 * - - 99 / - + 49 + - ( - + 72 ) + + + 87 + CAST ( NULL AS REAL ) * - 26 * + 49 - + 52 + + ( 6 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT + NULLIF ( - 2, - CASE - 99 WHEN 28 THEN COUNT( * ) ELSE - + COUNT( * ) / - + ( + - 80 ) END )
----
-2

skipif mysql # not compatible
query I rowsort label-7802
SELECT + NULLIF ( - 2, - CASE - 99 WHEN 28 THEN COUNT ( * ) ELSE - + COUNT ( * ) / - + ( + - 80 ) END )
----
-2

query II rowsort
SELECT DISTINCT - - 13 * - 17 + 10 AS col0, + 52 AS col2
----
-211
52

query I rowsort
SELECT + 37 * + NULLIF ( - ( + 66 ), + 41 + + 67 / - + 32 )
----
-2442

query I rowsort
SELECT - - 8 * - 56
----
-448

query II rowsort
SELECT 99 AS col0, 5 * - - 55 * - 48 * - + 86 AS col2
----
99
1135200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7807
SELECT ALL + COUNT( * ) - NULLIF ( + 81, + + 64 ) + - 49 DIV + 41 + - + COUNT( * ) DIV - - 88 * + 63 * - + 53 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL + COUNT ( * ) - NULLIF ( + 81, + + 64 ) + - 49 / + 41 + - + COUNT ( * ) / - - 88 * + 63 * - + 53 AS col0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7808
SELECT DISTINCT - SUM( 44 ) DIV - - 18 + - ( + - ( - 89 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT - SUM ( 44 ) / - - 18 + - ( + - ( - 89 ) )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7809
SELECT + 91 DIV - 56 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7809
SELECT + 91 / - 56 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7810
SELECT ALL 3 * - + 5 * 29 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL 3 * - + 5 * 29 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 9 + - + 66
----
-57

query I rowsort
SELECT ALL 15 * - + 79
----
-1185

query II rowsort
SELECT + 85 + COALESCE ( + NULLIF ( + 85, - + 73 ), + 21 ), + 90 AS col1
----
170
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7814
SELECT - 97 + + + 54 * MIN( DISTINCT - ( - 35 ) ) * - + COALESCE ( + - 24, + + CAST( NULL AS SIGNED ) ) DIV + 12
----
3683

skipif mysql # not compatible
query I rowsort label-7814
SELECT - 97 + + + 54 * MIN ( DISTINCT - ( - 35 ) ) * - + COALESCE ( + - 24, + + CAST ( NULL AS INTEGER ) ) / + 12
----
3683

query I rowsort
SELECT + 2 + + + 24 col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7816
SELECT DISTINCT NULLIF ( - + 92, - CAST( NULL AS SIGNED ) * + + 63 + - 33 + - 34 ) * - + 85
----
7820

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT NULLIF ( - + 92, - CAST ( NULL AS INTEGER ) * + + 63 + - 33 + - 34 ) * - + 85
----
7820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7817
SELECT ALL 19 AS col1, + 20 - COUNT( CAST( NULL AS SIGNED ) ) + - 97
----
19
-77

skipif mysql # not compatible
query II rowsort label-7817
SELECT ALL 19 AS col1, + 20 - COUNT ( CAST ( NULL AS INTEGER ) ) + - 97
----
19
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT + COUNT( * ) * ( + 36 ) * + COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-7818
SELECT + COUNT ( * ) * ( + 36 ) * + COUNT ( * ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT ALL ( MAX( - 24 ) ) * + 37
----
-888

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL ( MAX ( - 24 ) ) * + 37
----
-888

query I rowsort
SELECT - NULLIF ( 86, - 89 * + + 68 + + 1 * 52 ) col0
----
-86

query I rowsort
SELECT - 31 + + 44 * 18
----
761

onlyif mysql # DIV for integer division: 
query II rowsort label-7822
SELECT DISTINCT 36 AS col2, 88 DIV + + ( + 59 ) AS col2
----
36
1

skipif mysql # not compatible
query II rowsort label-7822
SELECT DISTINCT 36 AS col2, 88 / + + ( + 59 ) AS col2
----
36
1

query I rowsort
SELECT ALL + 42 * - 86 AS col2
----
-3612

query I rowsort
SELECT + 95 + 18 - 6 + 19
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-7825
SELECT DISTINCT 93 AS col0, - COUNT( * ) * - - NULLIF ( + 23, + COUNT( * ) )
----
93
-23

skipif mysql # not compatible
query II rowsort label-7825
SELECT DISTINCT 93 AS col0, - COUNT ( * ) * - - NULLIF ( + 23, + COUNT ( * ) )
----
93
-23

query I rowsort
SELECT - ( + + ( 54 ) ) * 19 + - 3 AS col1
----
-1029

query I rowsort
SELECT ALL 53 + - 57 * - 98 AS col2
----
5639

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT - + 0 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7828
SELECT - + 0 + COUNT ( * ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7829
SELECT + - 30 DIV 5
----
-6

skipif mysql # not compatible
query I rowsort label-7829
SELECT + - 30 / 5
----
-6

query I rowsort
SELECT - - 25 + - ( + 15 ) AS col2
----
10

query I rowsort
SELECT - + 50 + 76 AS col2
----
26

query II rowsort
SELECT ALL + + 27 + + 99 * - + 67 * - - 61 AS col0, 90 - - 37 AS col1
----
-404586
127

query I rowsort
SELECT ALL 45 * - ( - 54 )
----
2430

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7834
SELECT DISTINCT + 79 DIV 61 * CASE + + COUNT( * ) WHEN - COUNT( * ) DIV - 80 * 4 THEN NULL ELSE - + 1 END + - ( - + COALESCE ( + + COUNT( * ), 57 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT + 79 / 61 * CASE + + COUNT ( * ) WHEN - COUNT ( * ) / - 80 * 4 THEN NULL ELSE - + 1 END + - ( - + COALESCE ( + + COUNT ( * ), 57 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7835
SELECT ALL - - 14 DIV + + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL - - 14 / + + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7836
SELECT DISTINCT - 7 DIV COUNT( * ) * + 48 * + + 54 + + - 11 AS col1
----
-18155

skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT - 7 / COUNT ( * ) * + 48 * + + 54 + + - 11 AS col1
----
-18155

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT - 39 * + 64 - NULLIF ( - 61, + COUNT( * ) + + ( + 46 ) ) AS col1
----
-2435

skipif mysql # not compatible
query I rowsort label-7837
SELECT - 39 * + 64 - NULLIF ( - 61, + COUNT ( * ) + + ( + 46 ) ) AS col1
----
-2435

query II rowsort
SELECT ALL + + 91 AS col1, 32
----
91
32

query II rowsort
SELECT + 2 col0, - 85 * - + 18 AS col2
----
2
1530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7840
SELECT + + 64 DIV - COUNT( * ) - - + MAX( + 19 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-7840
SELECT + + 64 / - COUNT ( * ) - - + MAX ( + 19 ) AS col0
----
-45

query I rowsort
SELECT - - 23 * - 9
----
-207

query I rowsort
SELECT - + 54 + - 74 * 36 + 45 * + 50 AS col2
----
-468

query II rowsort
SELECT - 2, + 84 AS col1
----
-2
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT NULLIF ( - COUNT( * ), - 71 - - - 98 - - - COUNT( DISTINCT + 35 ) / + + 68 * - 42 ) * + 38 + - 59 * 70 col1
----
-4168

skipif mysql # not compatible
query I rowsort label-7844
SELECT NULLIF ( - COUNT ( * ), - 71 - - - 98 - - - COUNT ( DISTINCT + 35 ) / + + 68 * - 42 ) * + 38 + - 59 * 70 col1
----
-4168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7845
SELECT ALL - COUNT( * ) * + CAST( NULL AS SIGNED ) - 52 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL - COUNT ( * ) * + CAST ( NULL AS INTEGER ) - 52 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT DISTINCT + + COUNT( * ) * 32 * COALESCE ( + COUNT( * ), - - 78, + + 39 ) * + 32 AS col1
----
1024

skipif mysql # not compatible
query I rowsort label-7846
SELECT DISTINCT + + COUNT ( * ) * 32 * COALESCE ( + COUNT ( * ), - - 78, + + 39 ) * + 32 AS col1
----
1024

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT + MAX( - 66 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-7847
SELECT + MAX ( - 66 ) AS col0
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7848
SELECT ALL + MAX( ALL + + 48 ) * + 88 - - ( + - 23 ) DIV - + 86
----
4224

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL + MAX ( ALL + + 48 ) * + 88 - - ( + - 23 ) / - + 86
----
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT NULLIF ( + ( - COUNT( * ) ), - 55 )
----
-1

skipif mysql # not compatible
query I rowsort label-7849
SELECT NULLIF ( + ( - COUNT ( * ) ), - 55 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT COALESCE ( + + 57, + + 74, + 61 + + MIN( DISTINCT + 11 ) )
----
57

skipif mysql # not compatible
query I rowsort label-7850
SELECT COALESCE ( + + 57, + + 74, + 61 + + MIN ( DISTINCT + 11 ) )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT + NULLIF ( - + COUNT( * ), + + 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-7851
SELECT + NULLIF ( - + COUNT ( * ), + + 46 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT - 49 * COUNT( DISTINCT 67 )
----
-49

skipif mysql # not compatible
query I rowsort label-7852
SELECT - 49 * COUNT ( DISTINCT 67 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT + 55 * - - COUNT( - 14 )
----
55

skipif mysql # not compatible
query I rowsort label-7853
SELECT + 55 * - - COUNT ( - 14 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT - CASE 50 WHEN - 70 - - SUM( + - 54 ) THEN + 45 - 1 * + - AVG ( - 79 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7854
SELECT - CASE 50 WHEN - 70 - - SUM ( + - 54 ) THEN + 45 - 1 * + - AVG ( - 79 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7855
SELECT ALL 43 * CAST( NULL AS SIGNED ) * 51 + + 62 + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL 43 * CAST ( NULL AS INTEGER ) * 51 + + 62 + + 47
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7856
SELECT ALL - 46 DIV + COUNT( * ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL - 46 / + COUNT ( * ) AS col2
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7857
SELECT ALL COALESCE ( - COUNT( * ), - COUNT( DISTINCT - 14 ) DIV - COUNT( * ), 2 ) * + COALESCE ( 87, - 58 ) DIV - + COUNT( * ) + + + 97 AS col1
----
184

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL COALESCE ( - COUNT ( * ), - COUNT ( DISTINCT - 14 ) / - COUNT ( * ), 2 ) * + COALESCE ( 87, - 58 ) / - + COUNT ( * ) + + + 97 AS col1
----
184

query I rowsort
SELECT - ( + + 82 ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT ALL 7 + + - 89 * + - SUM( + 55 )
----
4902

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL 7 + + - 89 * + - SUM ( + 55 )
----
4902

onlyif mysql # DIV for integer division: 
query I rowsort label-7860
SELECT + 72 DIV + + 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7860
SELECT + 72 / + + 87 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7861
SELECT - 83 + 78 DIV + 48 * - + ( - COUNT( * ) ) + - 84 * 6 AS col2
----
-586

skipif mysql # not compatible
query I rowsort label-7861
SELECT - 83 + 78 / + 48 * - + ( - COUNT ( * ) ) + - 84 * 6 AS col2
----
-586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7862
SELECT + MIN( - CAST( + - 52 AS SIGNED ) ) * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7862
SELECT + MIN ( - CAST ( + - 52 AS INTEGER ) ) * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT ALL 54 + - - 76 - 69 * - NULLIF ( + - 70, + MAX( - 66 ) * + - AVG ( 25 ) + - 11 ) * - 40 AS col1
----
193330

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL 54 + - - 76 - 69 * - NULLIF ( + - 70, + MAX ( - 66 ) * + - AVG ( 25 ) + - 11 ) * - 40 AS col1
----
193330

query II rowsort
SELECT + 36 + + 5, 85 AS col2
----
41
85

query I rowsort
SELECT + 47 + 4
----
51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7866
SELECT ALL 16 + 1 DIV 6 * - ( + - CASE 73 WHEN 58 * + - 90 + - + CAST( NULL AS SIGNED ) THEN - 46 DIV - 91 - + 7 + 98 - 56 DIV - 29 * - 56 WHEN 20 THEN NULL ELSE - 47 END ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL 16 + 1 / 6 * - ( + - CASE 73 WHEN 58 * + - 90 + - + CAST ( NULL AS INTEGER ) THEN - 46 / - 91 - + 7 + 98 - 56 / - 29 * - 56 WHEN 20 THEN NULL ELSE - 47 END ) AS col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7867
SELECT ALL - 88 + SUM( DISTINCT + + 57 ) DIV + 80 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL - 88 + SUM ( DISTINCT + + 57 ) / + 80 AS col2
----
-88

query I rowsort
SELECT ALL - 24 * + 23 AS col1
----
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT ALL - - 87 * - 45 - - - COUNT( * ) AS col2
----
-3916

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL - - 87 * - 45 - - - COUNT ( * ) AS col2
----
-3916

query I rowsort
SELECT + 96 + 33
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-7871
SELECT 94 + - + COALESCE ( + + COALESCE ( + + 36, - + 42 * - 19 * + ( - 68 ) DIV ( + 4 ), 81 ), + 21 ) - - 60 + + 86
----
204

skipif mysql # not compatible
query I rowsort label-7871
SELECT 94 + - + COALESCE ( + + COALESCE ( + + 36, - + 42 * - 19 * + ( - 68 ) / ( + 4 ), 81 ), + 21 ) - - 60 + + 86
----
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7872
SELECT ALL + CAST( - - 18 AS SIGNED ) * - 40 AS col1
----
-720

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL + CAST ( - - 18 AS INTEGER ) * - 40 AS col1
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT - COUNT( * ) * ( - COUNT( * ) ) - + 90 + 99 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-7873
SELECT - COUNT ( * ) * ( - COUNT ( * ) ) - + 90 + 99 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT 84 - 67 + - COUNT( ALL - + 4 ) + + 41
----
57

skipif mysql # not compatible
query I rowsort label-7874
SELECT 84 - 67 + - COUNT ( ALL - + 4 ) + + 41
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7875
SELECT 71 * - + CAST( + + ( + - COUNT( * ) ) AS SIGNED ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-7875
SELECT 71 * - + CAST ( + + ( + - COUNT ( * ) ) AS INTEGER ) AS col2
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-7876
SELECT + + 2 DIV - + 5 * + 26 + + 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7876
SELECT + + 2 / - + 5 * + 26 + + 53 AS col2
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7877
SELECT - 15 * COUNT( * ) + - NULLIF ( 24, 83 * + 7 + SUM( + - 42 ) * 97 ) + + 56 + + - MAX( ALL 10 ) DIV 61 + + SUM( + + 44 ) + + 27 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-7877
SELECT - 15 * COUNT ( * ) + - NULLIF ( 24, 83 * + 7 + SUM ( + - 42 ) * 97 ) + + 56 + + - MAX ( ALL 10 ) / 61 + + SUM ( + + 44 ) + + 27 AS col2
----
88

query I rowsort
SELECT ALL + 72 - - - 22 AS col1
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7879
SELECT ALL ( + - 66 ) * - + 94 + + COUNT( * ) * + 4 + 86 + - 89 DIV + 71 AS col2
----
6293

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL ( + - 66 ) * - + 94 + + COUNT ( * ) * + 4 + 86 + - 89 / + 71 AS col2
----
6293

onlyif mysql # DIV for integer division: 
query I rowsort label-7880
SELECT 63 DIV + + 60
----
1

skipif mysql # not compatible
query I rowsort label-7880
SELECT 63 / + + 60
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT ALL + COUNT( * ) * + 2 * ( + 52 ) * + 71 AS col0
----
7384

skipif mysql # not compatible
query I rowsort label-7881
SELECT ALL + COUNT ( * ) * + 2 * ( + 52 ) * + 71 AS col0
----
7384

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7882
SELECT DISTINCT - - 44 DIV + + CAST( - + 67 AS SIGNED ) + - 20
----
-20

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT - - 44 / + + CAST ( - + 67 AS INTEGER ) + - 20
----
-20

query I rowsort
SELECT 42 * + 81 + - 22 * 61 * + 25 AS col0
----
-30148

onlyif mysql # DIV for integer division: 
query I rowsort label-7884
SELECT ALL + 31 DIV + 65 + + 28 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL + 31 / + 65 + + 28 AS col1
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-7885
SELECT 30 DIV + 32
----
0

skipif mysql # not compatible
query I rowsort label-7885
SELECT 30 / + 32
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7886
SELECT - 21 * + COUNT( ALL + 36 ) + CAST( + - 5 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-7886
SELECT - 21 * + COUNT ( ALL + 36 ) + CAST ( + - 5 AS INTEGER )
----
-26

query I rowsort
SELECT 40 * - - 23
----
920

onlyif mysql # DIV for integer division: 
query I rowsort label-7888
SELECT 50 DIV 58 + - 49
----
-49

skipif mysql # not compatible
query I rowsort label-7888
SELECT 50 / 58 + - 49
----
-49

query I rowsort
SELECT 59 + 30 AS col2
----
89

query I rowsort
SELECT ALL - 60 * 98
----
-5880

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT 30 * COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-7891
SELECT 30 * COUNT ( * )
----
30

query I rowsort
SELECT 65 * + 3
----
195

query I rowsort
SELECT DISTINCT - 42 * - 81
----
3402

query I rowsort
SELECT - 83 * + + 71 + 12
----
-5881

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7895
SELECT 55 + + NULLIF ( - 59, ( + + 34 ) + 72 ) DIV + - COUNT( * )
----
114

skipif mysql # not compatible
query I rowsort label-7895
SELECT 55 + + NULLIF ( - 59, ( + + 34 ) + 72 ) / + - COUNT ( * )
----
114

query I rowsort
SELECT ALL 7 + - - 68 AS col0
----
75

query II rowsort
SELECT ALL 82, + 1 AS col2
----
82
1

query I rowsort
SELECT ALL + 88 + - 81
----
7

query II rowsort
SELECT - 85, 2 * - 36 * - - 76 + 7 AS col1
----
-85
-5465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7900
SELECT COUNT( 21 ) + + 22 DIV MAX( - 6 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7900
SELECT COUNT ( 21 ) + + 22 / MAX ( - 6 ) AS col0
----
-2

query I rowsort
SELECT 45 * + - NULLIF ( + 76, - 73 * 7 )
----
-3420

onlyif mysql # DIV for integer division: 
query I rowsort label-7902
SELECT ALL - 15 + - - 93 * + CASE WHEN CASE + 14 WHEN + 26 * + 74 - - 16 THEN 42 + + 94 WHEN - 17 - + 8 DIV 91 THEN NULL WHEN + 53 + 9 + + 15 * + 21 * + + 95 THEN NULL ELSE + 17 END IS NOT NULL THEN + - 72 DIV + 9 - - 41 ELSE NULL END * 44 * 26
----
3510921

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL - 15 + - - 93 * + CASE WHEN CASE + 14 WHEN + 26 * + 74 - - 16 THEN 42 + + 94 WHEN - 17 - + 8 / 91 THEN NULL WHEN + 53 + 9 + + 15 * + 21 * + + 95 THEN NULL ELSE + 17 END IS NOT NULL THEN + - 72 / + 9 - - 41 ELSE NULL END * 44 * 26
----
3510921

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7903
SELECT ( + 52 ) + 24 - - + ( ( 64 ) ) DIV + 42 - + + 16 * + - 90, 41 * + 71 - + - 29 + - 40 * + - 86 * - COUNT( * ) * - - 39 AS col1
----
1517
-131220

skipif mysql # not compatible
query II rowsort label-7903
SELECT ( + 52 ) + 24 - - + ( ( 64 ) ) / + 42 - + + 16 * + - 90, 41 * + 71 - + - 29 + - 40 * + - 86 * - COUNT ( * ) * - - 39 AS col1
----
1517
-131220

query II rowsort
SELECT 33 AS col0, 74
----
33
74

query I rowsort
SELECT DISTINCT 79 * - + 41 col0
----
-3239

query I rowsort
SELECT + CASE + 98 WHEN + 89 THEN - 36 END * 88
----
NULL

query I rowsort
SELECT ALL - - 43 - + + 0 AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-7908
SELECT DISTINCT + - 80 DIV + - 88 * - + 3 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT + - 80 / + - 88 * - + 3 AS col2
----
0

query I rowsort
SELECT DISTINCT 2 * - 78
----
-156

query I rowsort
SELECT ALL 6 - - - 76 AS col1
----
-70

query I rowsort
SELECT DISTINCT + - 30 * + 22 AS col1
----
-660

query I rowsort
SELECT - 89 * + 7
----
-623

query I rowsort
SELECT DISTINCT - NULLIF ( - + 24, - + 64 ) * - + 55 * 56 AS col0
----
-73920

onlyif mysql # aggregate syntax: 
query II rowsort label-7914
SELECT - - COUNT( * ), + SUM( + 56 ) + + CASE + - 93 WHEN 82 THEN 99 END + + 59 - - - 37 * 38 - - 12 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7914
SELECT - - COUNT ( * ), + SUM ( + 56 ) + + CASE + - 93 WHEN 82 THEN 99 END + + 59 - - - 37 * 38 - - 12 AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT + 56 * + 55 + - SUM( - - 69 ) * + 20 AS col1
----
1700

skipif mysql # not compatible
query I rowsort label-7915
SELECT + 56 * + 55 + - SUM ( - - 69 ) * + 20 AS col1
----
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT DISTINCT + COUNT( ALL + 86 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT + COUNT ( ALL + 86 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT DISTINCT - + 26 * - COUNT( DISTINCT - - ( + 12 ) ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT - + 26 * - COUNT ( DISTINCT - - ( + 12 ) ) AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7918
SELECT + - 78 AS col1, 71 / - MAX( ALL CAST( NULL AS SIGNED ) ) * 43 AS col0
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-7918
SELECT + - 78 AS col1, 71 / - MAX ( ALL CAST ( NULL AS INTEGER ) ) * 43 AS col0
----
-78
NULL

query II rowsort
SELECT 9 * - - 75 + + 48 AS col0, 17 + - 87
----
723
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT CASE - - 13 WHEN COUNT( * ) + - + 2 THEN + ( + 86 ) ELSE 15 END AS col2
----
15

skipif mysql # not compatible
query I rowsort label-7920
SELECT CASE - - 13 WHEN COUNT ( * ) + - + 2 THEN + ( + 86 ) ELSE 15 END AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-7921
SELECT + + 55, - MIN( ALL + - 68 ) AS col0
----
55
68

skipif mysql # not compatible
query II rowsort label-7921
SELECT + + 55, - MIN ( ALL + - 68 ) AS col0
----
55
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT COUNT( * ) * - - 40 * - 40 AS col1
----
-1600

skipif mysql # not compatible
query I rowsort label-7922
SELECT COUNT ( * ) * - - 40 * - 40 AS col1
----
-1600

onlyif mysql # DIV for integer division: 
query I rowsort label-7923
SELECT 64 DIV 38 + + 92 * + 23 * - 70 AS col0
----
-148119

skipif mysql # not compatible
query I rowsort label-7923
SELECT 64 / 38 + + 92 * + 23 * - 70 AS col0
----
-148119

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT 59 * COUNT( * ) * - 79
----
-4661

skipif mysql # not compatible
query I rowsort label-7924
SELECT 59 * COUNT ( * ) * - 79
----
-4661

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7925
SELECT ALL + 19 + - COUNT( * ) DIV + 58 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL + 19 + - COUNT ( * ) / + 58 AS col2
----
19

query I rowsort
SELECT ALL - 55 + + 13 * - ( + 56 )
----
-783

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7927
SELECT ALL ( + COALESCE ( - + ( + 41 ), 97 + + 51, - NULLIF ( NULLIF ( + - 14, + - 24 - - 54 DIV - 13 ), 69 + + 11 ) + - 93 + + + 55 ) ) * COUNT( * ) * + - 83 + + - 11 DIV + 58 AS col0, COUNT( * )
----
3403
1

skipif mysql # not compatible
query II rowsort label-7927
SELECT ALL ( + COALESCE ( - + ( + 41 ), 97 + + 51, - NULLIF ( NULLIF ( + - 14, + - 24 - - 54 / - 13 ), 69 + + 11 ) + - 93 + + + 55 ) ) * COUNT ( * ) * + - 83 + + - 11 / + 58 AS col0, COUNT ( * )
----
3403
1

query I rowsort
SELECT DISTINCT 43 * + 20
----
860

query I rowsort
SELECT DISTINCT + 83 + + - 34 AS col2
----
49

query I rowsort
SELECT ALL 78 + + - 45 AS col1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7931
SELECT - 16 * + 57 + - - 52 / - CASE - + 61 WHEN + CAST( NULL AS SIGNED ) THEN + 23 END - + + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7931
SELECT - 16 * + 57 + - - 52 / - CASE - + 61 WHEN + CAST ( NULL AS INTEGER ) THEN + 23 END - + + 75 AS col0
----
NULL

query I rowsort
SELECT 74 * 46
----
3404

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT ALL + 84 + + - 84 * - COUNT( * )
----
168

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL + 84 + + - 84 * - COUNT ( * )
----
168

query I rowsort
SELECT DISTINCT - 11 * 14 * - 96 * - 14 AS col0
----
-206976

query I rowsort
SELECT DISTINCT 77 - - 85 - + 31
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT - SUM( DISTINCT - + 70 ) * + 46 col1
----
3220

skipif mysql # not compatible
query I rowsort label-7936
SELECT - SUM ( DISTINCT - + 70 ) * + 46 col1
----
3220

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT DISTINCT - COUNT( * ) - 69 - + 99
----
-169

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT - COUNT ( * ) - 69 - + 99
----
-169

query I rowsort
SELECT DISTINCT + - 78 * 70 AS col0
----
-5460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7939
SELECT - CASE COALESCE ( + 80, + - 8 ) WHEN - COALESCE ( - ( - - CASE - NULLIF ( - ( 9 ), - 81 ) WHEN 92 + + 50 THEN + - 79 * + 17 + - COUNT( * ) ELSE NULL END ), 67 ) THEN - + CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7939
SELECT - CASE COALESCE ( + 80, + - 8 ) WHEN - COALESCE ( - ( - - CASE - NULLIF ( - ( 9 ), - 81 ) WHEN 92 + + 50 THEN + - 79 * + 17 + - COUNT ( * ) ELSE NULL END ), 67 ) THEN - + CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT ALL + MAX( ALL + 33 ) * CASE + COUNT( * ) WHEN + 13 THEN - 64 + SUM( - 16 ) WHEN + 30 + 16 THEN NULL ELSE NULL END * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL + MAX ( ALL + 33 ) * CASE + COUNT ( * ) WHEN + 13 THEN - 64 + SUM ( - 16 ) WHEN + 30 + 16 THEN NULL ELSE NULL END * - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT - + 16 + + 19 + - COUNT( * ) + - 99 + + 38 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-7941
SELECT - + 16 + + 19 + - COUNT ( * ) + - 99 + + 38 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT - - 41 + - 82 * + + 49 + NULLIF ( + 19, + 81 * + 59 ) - COUNT( * )
----
-3959

skipif mysql # not compatible
query I rowsort label-7942
SELECT - - 41 + - 82 * + + 49 + NULLIF ( + 19, + 81 * + 59 ) - COUNT ( * )
----
-3959

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7943
SELECT - + 25 DIV ( - COALESCE ( + 1, CASE + 95 WHEN + + MIN( ALL 95 ) * 58 THEN - MAX( + CASE + 40 WHEN + 44 * 45 + NULLIF ( + ( - - 31 ), + 97 ) THEN - - 89 END ) ELSE NULL END + - 20 - + COALESCE ( - + 69, - 66 DIV - 72 + - COUNT( - + 54 ), - 1 ) ) ), COUNT( * ) AS col2
----
25
1

skipif mysql # not compatible
query II rowsort label-7943
SELECT - + 25 / ( - COALESCE ( + 1, CASE + 95 WHEN + + MIN ( ALL 95 ) * 58 THEN - MAX ( + CASE + 40 WHEN + 44 * 45 + NULLIF ( + ( - - 31 ), + 97 ) THEN - - 89 END ) ELSE NULL END + - 20 - + COALESCE ( - + 69, - 66 / - 72 + - COUNT ( - + 54 ), - 1 ) ) ), COUNT ( * ) AS col2
----
25
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT - + MIN( ALL - 32 ) + - COUNT( * ) * - 40 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7944
SELECT - + MIN ( ALL - 32 ) + - COUNT ( * ) * - 40 AS col1
----
72

query I rowsort
SELECT - 54 + - 72
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT ALL COUNT( * ) * - 25 - + + 0 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL COUNT ( * ) * - 25 - + + 0 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT ALL COUNT( * ) * - - 34 - COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL COUNT ( * ) * - - 34 - COUNT ( * ) AS col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-7948
SELECT + + 84 * 93 DIV + + 40
----
195

skipif mysql # not compatible
query I rowsort label-7948
SELECT + + 84 * 93 / + + 40
----
195

query I rowsort
SELECT + 94 + - 31 - + 81 AS col1
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7950
SELECT - - 98 DIV COUNT( 70 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-7950
SELECT - - 98 / COUNT ( 70 ) AS col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7951
SELECT COUNT( * ) * + + COUNT( * ) * - - 88 + - + 35 DIV - 5
----
95

skipif mysql # not compatible
query I rowsort label-7951
SELECT COUNT ( * ) * + + COUNT ( * ) * - - 88 + - + 35 / - 5
----
95

query I rowsort
SELECT + + 34 + + - 34 + - - 60 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT ALL + NULLIF ( + 23, - + COUNT( * ) * AVG ( DISTINCT 85 ) ) * + + 98
----
2254

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL + NULLIF ( + 23, - + COUNT ( * ) * AVG ( DISTINCT 85 ) ) * + + 98
----
2254

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7954
SELECT ALL COUNT( * ) * - SUM( DISTINCT 47 ) + + 11 * + 37 AS col2, 34 * + SUM( DISTINCT - 10 ) * - MIN( + CAST( NULL AS DECIMAL ) ) * 75 AS col1
----
360
NULL

skipif mysql # not compatible
query II rowsort label-7954
SELECT ALL COUNT ( * ) * - SUM ( DISTINCT 47 ) + + 11 * + 37 AS col2, 34 * + SUM ( DISTINCT - 10 ) * - MIN ( + CAST ( NULL AS REAL ) ) * 75 AS col1
----
360
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7955
SELECT - 0 / + - 8 * + CASE 96 WHEN 5 / + - 86 THEN - MAX( DISTINCT + 82 ) ELSE CAST( NULL AS SIGNED ) END + - 21 * - COUNT( * ) * - 74 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7955
SELECT - 0 / + - 8 * + CASE 96 WHEN 5 / + - 86 THEN - MAX ( DISTINCT + 82 ) ELSE CAST ( NULL AS INTEGER ) END + - 21 * - COUNT ( * ) * - 74 col2
----
NULL

query I rowsort
SELECT + 20 * - 3 * + - 64
----
3840

query I rowsort
SELECT ALL 67 * - + 28
----
-1876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7958
SELECT - CAST( - + COUNT( * ) AS SIGNED ) * 45 + 95 * + 8
----
805

skipif mysql # not compatible
query I rowsort label-7958
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) * 45 + 95 * + 8
----
805

query I rowsort
SELECT + 60 + + 61
----
121

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7960
SELECT + ( 97 ) + 17 AS col1, 5 + - + ( + NULLIF ( - 14, - NULLIF ( - COUNT( ALL + - 4 ), - - 68 - + - 83 ) + + 24 * + 80 / CAST( - NULLIF ( + 12, - 28 * - 4 / - + ( + 48 ) + + 88 - + - 63 ) AS DECIMAL ) ) ) + - - ( + 58 ) + - 82 * - + 26 * 77
----
114
164241

skipif mysql # not compatible
query II rowsort label-7960
SELECT + ( 97 ) + 17 AS col1, 5 + - + ( + NULLIF ( - 14, - NULLIF ( - COUNT ( ALL + - 4 ), - - 68 - + - 83 ) + + 24 * + 80 / CAST ( - NULLIF ( + 12, - 28 * - 4 / - + ( + 48 ) + + 88 - + - 63 ) AS REAL ) ) ) + - - ( + 58 ) + - 82 * - + 26 * 77
----
114
164241

query I rowsort
SELECT ALL 31 * + - 58
----
-1798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7962
SELECT + COALESCE ( + + COUNT( * ), NULLIF ( + + CAST( NULL AS SIGNED ), - 6 ), - NULLIF ( - + ( + 61 ), - - 66 + + - 86 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7962
SELECT + COALESCE ( + + COUNT ( * ), NULLIF ( + + CAST ( NULL AS INTEGER ), - 6 ), - NULLIF ( - + ( + 61 ), - - 66 + + - 86 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT DISTINCT 43 * SUM( - 52 ) - 3 * - 91 AS col1
----
-1963

skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT 43 * SUM ( - 52 ) - 3 * - 91 AS col1
----
-1963

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT DISTINCT + CASE + - 39 WHEN - + 13 THEN - COUNT( * ) * + + ( - - SUM( DISTINCT - 16 ) ) * + + 77 + + + 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7964
SELECT DISTINCT + CASE + - 39 WHEN - + 13 THEN - COUNT ( * ) * + + ( - - SUM ( DISTINCT - 16 ) ) * + + 77 + + + 32 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7965
SELECT DISTINCT + 22, COUNT( * ) AS col1
----
22
1

skipif mysql # not compatible
query II rowsort label-7965
SELECT DISTINCT + 22, COUNT ( * ) AS col1
----
22
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7966
SELECT + MAX( + 49 ) DIV - - 59 AS col1, MAX( + NULLIF ( ( - 5 ), - 88 ) )
----
0
-5

skipif mysql # not compatible
query II rowsort label-7966
SELECT + MAX ( + 49 ) / - - 59 AS col1, MAX ( + NULLIF ( ( - 5 ), - 88 ) )
----
0
-5

query I rowsort
SELECT - - ( - + 11 ) AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7968
SELECT DISTINCT - 9 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7968
SELECT DISTINCT - 9 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + ( + - 18 ) + - 32 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT DISTINCT + MIN( - 69 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT + MIN ( - 69 ) AS col2
----
-69

query I rowsort
SELECT + - 96 * - 6 col2
----
576

query I rowsort
SELECT DISTINCT - ( + + 51 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT ALL NULLIF ( + COUNT( * ), 40 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL NULLIF ( + COUNT ( * ), 40 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT - CASE - + 79 WHEN - 96 * - - COUNT( * ) THEN NULL ELSE - 13 END * - + 8 * + 78 * COUNT( * ) + + + SUM( + ( - 98 ) ) - - 18 AS col1
----
-8192

skipif mysql # not compatible
query I rowsort label-7974
SELECT - CASE - + 79 WHEN - 96 * - - COUNT ( * ) THEN NULL ELSE - 13 END * - + 8 * + 78 * COUNT ( * ) + + + SUM ( + ( - 98 ) ) - - 18 AS col1
----
-8192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7975
SELECT ALL + ( - + CAST( + 95 AS SIGNED ) ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL + ( - + CAST ( + 95 AS INTEGER ) ) AS col2
----
-95

query I rowsort
SELECT - - 69 * - 74
----
-5106

query I rowsort
SELECT - - 63 * - 38 * + 3
----
-7182

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7978
SELECT DISTINCT NULLIF ( - 40, + - COUNT( * ) / CAST( NULL AS DECIMAL ) ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT NULLIF ( - 40, + - COUNT ( * ) / CAST ( NULL AS REAL ) ) AS col2
----
-40

query I rowsort
SELECT ALL - 1 + - 18
----
-19

query I rowsort
SELECT - 3 * - 5 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT + MIN( ALL + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-7981
SELECT + MIN ( ALL + 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT + MIN( DISTINCT - 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-7982
SELECT + MIN ( DISTINCT - 89 ) AS col1
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-7983
SELECT ALL + 45 DIV + 89 + + 38 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL + 45 / + 89 + + 38 AS col1
----
38

query I rowsort
SELECT - 67 * + 47
----
-3149

query I rowsort
SELECT - 73 * 52
----
-3796

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7986
SELECT CAST( NULL AS SIGNED ) AS col2, 95
----
NULL
95

skipif mysql # not compatible
query II rowsort label-7986
SELECT CAST ( NULL AS INTEGER ) AS col2, 95
----
NULL
95

query I rowsort
SELECT - 71 * + 62 + + 21
----
-4381

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7988
SELECT ALL + 29 * - - CASE + + 39 WHEN 4 * + 74 - 9 * + CAST( NULL AS DECIMAL ) THEN - 18 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL + 29 * - - CASE + + 39 WHEN 4 * + 74 - 9 * + CAST ( NULL AS REAL ) THEN - 18 ELSE NULL END
----
NULL

query II rowsort
SELECT + 70, 94 AS col2
----
70
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7990
SELECT + 25 DIV - 22
----
-1

skipif mysql # not compatible
query I rowsort label-7990
SELECT + 25 / - 22
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7991
SELECT + COUNT( * ) AS col0, - 60 col1
----
1
-60

skipif mysql # not compatible
query II rowsort label-7991
SELECT + COUNT ( * ) AS col0, - 60 col1
----
1
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7992
SELECT + CAST( NULL AS SIGNED ) * 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7992
SELECT + CAST ( NULL AS INTEGER ) * 4 AS col0
----
NULL

query II rowsort
SELECT + 33 AS col0, 49
----
33
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7994
SELECT DISTINCT + 11 * - CASE - + ( + - 13 ) WHEN + 39 THEN COALESCE ( - - 46, - 14 * 74 * - 43 / - MIN( 57 ) / + - 54 / 52 + - 5 + + - 63 + 67 - - + 59, 6 * + 10 ) / + 21 * 30 * - COALESCE ( + - 66, + + 71 ) WHEN - CAST( - 88 AS SIGNED ) THEN NULL END * - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT + 11 * - CASE - + ( + - 13 ) WHEN + 39 THEN COALESCE ( - - 46, - 14 * 74 * - 43 / - MIN ( 57 ) / + - 54 / 52 + - 5 + + - 63 + 67 - - + 59, 6 * + 10 ) / + 21 * 30 * - COALESCE ( + - 66, + + 71 ) WHEN - CAST ( - 88 AS INTEGER ) THEN NULL END * - 88 AS col0
----
NULL

query I rowsort
SELECT + 32 * - 9 * 42 + - 93 AS col0
----
-12189

query II rowsort
SELECT ALL - 54 AS col1, - 89
----
-54
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-7997
SELECT + 91 AS col2, ( MAX( - 81 ) )
----
91
-81

skipif mysql # not compatible
query II rowsort label-7997
SELECT + 91 AS col2, ( MAX ( - 81 ) )
----
91
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-7998
SELECT ALL - 25 col2, 42 * + 25 DIV + 25 + 13 * - + 46 AS col1
----
-25
-556

skipif mysql # not compatible
query II rowsort label-7998
SELECT ALL - 25 col2, 42 * + 25 / + 25 + 13 * - + 46 AS col1
----
-25
-556

onlyif mysql # aggregate syntax: 
query II rowsort label-7999
SELECT + 48, NULLIF ( COUNT( * ), 48 ) col1
----
48
1

skipif mysql # not compatible
query II rowsort label-7999
SELECT + 48, NULLIF ( COUNT ( * ), 48 ) col1
----
48
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8000
SELECT ALL + 80 DIV + 35 + + + COUNT( + 48 )
----
3

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL + 80 / + 35 + + + COUNT ( + 48 )
----
3

query I rowsort
SELECT NULLIF ( + + 33, 56 ) AS col2
----
33

query II rowsort
SELECT + 48 AS col1, 11 AS col1
----
48
11

onlyif mysql # aggregate syntax: 
query III rowsort label-8003
SELECT - 59, + 60 * + COALESCE ( 56, 69 + - + 29, - CASE - 61 WHEN + ( 41 ) THEN - - MAX( DISTINCT - 36 ) * + - 89 + + - 34 * - + 98 - + + COUNT( * ) ELSE NULL END ) + - - COUNT( * ) - - 19 * - 43 * - 57 + + 85 + 82 AS col1, + + ( + + 43 ) AS col1
----
-59
50097
43

skipif mysql # not compatible
query III rowsort label-8003
SELECT - 59, + 60 * + COALESCE ( 56, 69 + - + 29, - CASE - 61 WHEN + ( 41 ) THEN - - MAX ( DISTINCT - 36 ) * + - 89 + + - 34 * - + 98 - + + COUNT ( * ) ELSE NULL END ) + - - COUNT ( * ) - - 19 * - 43 * - 57 + + 85 + 82 AS col1, + + ( + + 43 ) AS col1
----
-59
50097
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT ALL MIN( + 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL MIN ( + 38 ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT + - COUNT( * ) * - 69 - + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-8005
SELECT + - COUNT ( * ) * - 69 - + COUNT ( * )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8006
SELECT + 22 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8006
SELECT + 22 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL - 97 AS col0, + ( + + 66 ) col2
----
-97
66

query II rowsort
SELECT ALL - 87 col1, 29
----
-87
29

query I rowsort
SELECT + 89 + - 78
----
11

query I rowsort
SELECT ( - 95 ) * + 12
----
-1140

onlyif mysql # aggregate syntax: 
query II rowsort label-8011
SELECT 63 + + CASE + + 38 WHEN - + 11 THEN NULL ELSE COUNT( * ) + + 36 END AS col0, - 11 AS col0
----
100
-11

skipif mysql # not compatible
query II rowsort label-8011
SELECT 63 + + CASE + + 38 WHEN - + 11 THEN NULL ELSE COUNT ( * ) + + 36 END AS col0, - 11 AS col0
----
100
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT - 72 - - COUNT( * ) * - 90 AS col0
----
-162

skipif mysql # not compatible
query I rowsort label-8012
SELECT - 72 - - COUNT ( * ) * - 90 AS col0
----
-162

onlyif mysql # aggregate syntax: 
query II rowsort label-8013
SELECT ALL - COUNT( * ) + 58 AS col2, 15 - - 86 AS col0
----
57
101

skipif mysql # not compatible
query II rowsort label-8013
SELECT ALL - COUNT ( * ) + 58 AS col2, 15 - - 86 AS col0
----
57
101

onlyif mysql # DIV for integer division: 
query I rowsort label-8014
SELECT - 16 + - - 32 DIV - - ( 61 ) * + 59 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8014
SELECT - 16 + - - 32 / - - ( 61 ) * + 59 AS col1
----
-16

query I rowsort
SELECT 53 * + 57 AS col2
----
3021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8016
SELECT ALL + COUNT( * ) + + - CAST( NULLIF ( - 0, - COUNT( * ) + - - AVG ( + 52 ) ) AS SIGNED ) * + 25 col0
----
1

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL + COUNT ( * ) + + - CAST ( NULLIF ( - 0, - COUNT ( * ) + - - AVG ( + 52 ) ) AS INTEGER ) * + 25 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8017
SELECT - COALESCE ( + CAST( - 91 AS SIGNED ), - 15 * 29 - - + 28 ) AS col0, COUNT( * ) * CAST( 98 AS SIGNED ) + 86 col0
----
91
184

skipif mysql # not compatible
query II rowsort label-8017
SELECT - COALESCE ( + CAST ( - 91 AS INTEGER ), - 15 * 29 - - + 28 ) AS col0, COUNT ( * ) * CAST ( 98 AS INTEGER ) + 86 col0
----
91
184

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT ALL MAX( + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL MAX ( + 63 )
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-8019
SELECT COALESCE ( - + COUNT( * ), + 47, - 81 ) + - + COALESCE ( + 63, - 63 ), 38 AS col2
----
-64
38

skipif mysql # not compatible
query II rowsort label-8019
SELECT COALESCE ( - + COUNT ( * ), + 47, - 81 ) + - + COALESCE ( + 63, - 63 ), 38 AS col2
----
-64
38

query I rowsort
SELECT ALL NULLIF ( 13, - - 86 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT 58 + + - COALESCE ( + + 8, - NULLIF ( + ( 64 ), COUNT( * ) ), - 39 )
----
50

skipif mysql # not compatible
query I rowsort label-8021
SELECT 58 + + - COALESCE ( + + 8, - NULLIF ( + ( 64 ), COUNT ( * ) ), - 39 )
----
50

query II rowsort
SELECT DISTINCT - 15 * 59 AS col1, - 40 AS col2
----
-885
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT 39 * COUNT( * ) * + - 38
----
-1482

skipif mysql # not compatible
query I rowsort label-8023
SELECT 39 * COUNT ( * ) * + - 38
----
-1482

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT ALL - 97 * + COUNT( * ) * + 52
----
-5044

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL - 97 * + COUNT ( * ) * + 52
----
-5044

query I rowsort
SELECT DISTINCT - NULLIF ( + 27, - - 38 ) AS col2
----
-27

query I rowsort
SELECT ALL - 70 - COALESCE ( + 82, + - 71, 34 ) + + + 59
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-8027
SELECT DISTINCT - 52 DIV + 5 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-8027
SELECT DISTINCT - 52 / + 5 AS col1
----
-10

query I rowsort
SELECT DISTINCT 95 * - ( - 19 ) * 75
----
135375

onlyif mysql # aggregate syntax: 
query II rowsort label-8029
SELECT 64 * + - 85 AS col2, + COUNT( * ) + - 42 + + 34 * + NULLIF ( - 15, 37 ) * 86 AS col2
----
-5440
-43901

skipif mysql # not compatible
query II rowsort label-8029
SELECT 64 * + - 85 AS col2, + COUNT ( * ) + - 42 + + 34 * + NULLIF ( - 15, 37 ) * 86 AS col2
----
-5440
-43901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8030
SELECT + NULLIF ( 75, + CAST( NULL AS SIGNED ) + - - COALESCE ( + 50, - MIN( - + 5 ) * - + 49 + - 12 ) ) * - 51 + + 83 * + - 68 AS col1
----
-9469

skipif mysql # not compatible
query I rowsort label-8030
SELECT + NULLIF ( 75, + CAST ( NULL AS INTEGER ) + - - COALESCE ( + 50, - MIN ( - + 5 ) * - + 49 + - 12 ) ) * - 51 + + 83 * + - 68 AS col1
----
-9469

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT 80 + + - 9 * - + MIN( DISTINCT + - 77 ) AS col2
----
-613

skipif mysql # not compatible
query I rowsort label-8031
SELECT 80 + + - 9 * - + MIN ( DISTINCT + - 77 ) AS col2
----
-613

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT 30 * - SUM( + 74 )
----
-2220

skipif mysql # not compatible
query I rowsort label-8032
SELECT 30 * - SUM ( + 74 )
----
-2220

query I rowsort
SELECT ALL - 18 + - 74 + - 22 AS col1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT - 13 * + + 30 * - AVG ( - 2 ) + - ( + CASE - 10 WHEN - 14 THEN - + COUNT( * ) END ) + + ( - + MAX( + 12 ) ) + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8034
SELECT - 13 * + + 30 * - AVG ( - 2 ) + - ( + CASE - 10 WHEN - 14 THEN - + COUNT ( * ) END ) + + ( - + MAX ( + 12 ) ) + - - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 68 + - - NULLIF ( + 54, + 11 )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8036
SELECT CAST( - 23 AS SIGNED ) + - COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-8036
SELECT CAST ( - 23 AS INTEGER ) + - COUNT ( * ) AS col0
----
-24

query II rowsort
SELECT DISTINCT - 74 + 68 + ( + 24 ) * 44, ( - 14 ) col0
----
1050
-14

query I rowsort
SELECT + NULLIF ( - 73, 79 ) * - 7 * - 49
----
-25039

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT ALL + ( COUNT( ALL + - 97 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL + ( COUNT ( ALL + - 97 ) )
----
1

query II rowsort
SELECT 82 AS col2, - 3 AS col1
----
82
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-8041
SELECT 88, + 39 DIV - + 41 AS col0
----
88
0

skipif mysql # not compatible
query II rowsort label-8041
SELECT 88, + 39 / - + 41 AS col0
----
88
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8042
SELECT COUNT( * ) DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-8042
SELECT COUNT ( * ) / 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT CASE - 33 WHEN - + 2 THEN + MAX( DISTINCT + 78 ) END / - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8043
SELECT CASE - 33 WHEN - + 2 THEN + MAX ( DISTINCT + 78 ) END / - 69 AS col2
----
NULL

query II rowsort
SELECT 82 AS col0, + 52 + - - 5
----
82
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT + 90 - 59 + + 16 * + 21 * COUNT( * )
----
367

skipif mysql # not compatible
query I rowsort label-8045
SELECT + 90 - 59 + + 16 * + 21 * COUNT ( * )
----
367

query II rowsort
SELECT + 78 col0, 98
----
78
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT ALL 66 * - - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL 66 * - - COUNT ( * )
----
66

query I rowsort
SELECT + 71 * COALESCE ( ( - 56 ), + 29 ) AS col1
----
-3976

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT COALESCE ( - ( + 28 ), - + 61, - ( - 80 ) * 23 + - SUM( ALL 84 ) ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-8049
SELECT COALESCE ( - ( + 28 ), - + 61, - ( - 80 ) * 23 + - SUM ( ALL 84 ) ) AS col2
----
-28

query I rowsort
SELECT - 53 + 66 AS col1
----
13

query I rowsort
SELECT ALL + ( 92 ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL - + 89 * - + 22 + + ( + COUNT( * ) )
----
1959

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL - + 89 * - + 22 + + ( + COUNT ( * ) )
----
1959

onlyif mysql # aggregate syntax: 
query II rowsort label-8053
SELECT - COUNT( * ) * + 78 - - + 27 AS col2, - 9
----
-51
-9

skipif mysql # not compatible
query II rowsort label-8053
SELECT - COUNT ( * ) * + 78 - - + 27 AS col2, - 9
----
-51
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT DISTINCT + + COUNT( DISTINCT + + 40 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT + + COUNT ( DISTINCT + + 40 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8055
SELECT - - 31 - + 44 + - + 87 * + 50 - + 31 * 69 * - + 33 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8055
SELECT - - 31 - + 44 + - + 87 * + 50 - + 31 * 69 * - + 33 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 26 * - 34 + - 98 col0
----
-982

query II rowsort
SELECT ( ( + 66 ) ) AS col1, ( 98 ) AS col1
----
66
98

query I rowsort
SELECT ALL - + 22 * + + 54
----
-1188

query II rowsort
SELECT DISTINCT 80 AS col1, - ( ( + + 36 ) ) AS col2
----
80
-36

query I rowsort
SELECT - 87 + 15 AS col0
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8061
SELECT + - NULLIF ( - 24, - - 83 DIV + 7 * - 8 * - 47 + - - 30 ) * + + COUNT( + - 55 ) * + 28 + 26 * + 36 DIV + COUNT( * )
----
1608

skipif mysql # not compatible
query I rowsort label-8061
SELECT + - NULLIF ( - 24, - - 83 / + 7 * - 8 * - 47 + - - 30 ) * + + COUNT ( + - 55 ) * + 28 + 26 * + 36 / + COUNT ( * )
----
1608

onlyif mysql # aggregate syntax: 
query II rowsort label-8062
SELECT - 52, - COUNT( + 7 ) AS col1
----
-52
-1

skipif mysql # not compatible
query II rowsort label-8062
SELECT - 52, - COUNT ( + 7 ) AS col1
----
-52
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8063
SELECT + CAST( CASE 89 WHEN 79 * 42 * - - 17 THEN - 42 WHEN + 69 THEN CAST( NULL AS SIGNED ) - - COUNT( 29 ) * 43 ELSE NULL END AS SIGNED ) - - 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8063
SELECT + CAST ( CASE 89 WHEN 79 * 42 * - - 17 THEN - 42 WHEN + 69 THEN CAST ( NULL AS INTEGER ) - - COUNT ( 29 ) * 43 ELSE NULL END AS INTEGER ) - - 25 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8064
SELECT - 20 + MAX( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8064
SELECT - 20 + MAX ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT + NULLIF ( 16, + + 46 ) - + CASE COUNT( * ) WHEN SUM( ALL - + 4 ) THEN NULL ELSE MAX( + 36 ) + + 83 END * + 81 AS col0
----
-9623

skipif mysql # not compatible
query I rowsort label-8065
SELECT + NULLIF ( 16, + + 46 ) - + CASE COUNT ( * ) WHEN SUM ( ALL - + 4 ) THEN NULL ELSE MAX ( + 36 ) + + 83 END * + 81 AS col0
----
-9623

onlyif mysql # aggregate syntax: 
query II rowsort label-8066
SELECT - COUNT( * ) * - 92 AS col0, + 34
----
92
34

skipif mysql # not compatible
query II rowsort label-8066
SELECT - COUNT ( * ) * - 92 AS col0, + 34
----
92
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8067
SELECT + COALESCE ( 71, + 41, + 69 ) * + ( + - ( - + ( - 68 ) ) ) * - CAST( NULL AS SIGNED ) + - ( + COUNT( * ) ) - + 61 + + 90 * 55 + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8067
SELECT + COALESCE ( 71, + 41, + 69 ) * + ( + - ( - + ( - 68 ) ) ) * - CAST ( NULL AS INTEGER ) + - ( + COUNT ( * ) ) - + 61 + + 90 * 55 + + 37
----
NULL

query I rowsort
SELECT DISTINCT 67 * + + 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8069
SELECT ALL + 79 DIV - - COUNT( * ), 66 + - 44 - 73 * - COUNT( * ) - SUM( 94 ) AS col0
----
79
1

skipif mysql # not compatible
query II rowsort label-8069
SELECT ALL + 79 / - - COUNT ( * ), 66 + - 44 - 73 * - COUNT ( * ) - SUM ( 94 ) AS col0
----
79
1

query I rowsort
SELECT + 66 + 6 col0
----
72

query III rowsort
SELECT DISTINCT 31 * + - 31, 93 + - - 20 - + + 57 col1, + 49 + 98 col0
----
-961
56
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT + ( + - COUNT( - 13 ) ) + + - 58 col1
----
-59

skipif mysql # not compatible
query I rowsort label-8072
SELECT + ( + - COUNT ( - 13 ) ) + + - 58 col1
----
-59

query II rowsort
SELECT + 48 * - 49, - 69 AS col0
----
-2352
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT + ( - 11 ) * - + MAX( ALL - 0 ) * + 17
----
0

skipif mysql # not compatible
query I rowsort label-8074
SELECT + ( - 11 ) * - + MAX ( ALL - 0 ) * + 17
----
0

query I rowsort
SELECT + 12 + + - 3
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8076
SELECT ALL NULLIF ( + + 26, - 39 * - + MIN( DISTINCT - 55 ) * 79 + 61 ) DIV - COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL NULLIF ( + + 26, - 39 * - + MIN ( DISTINCT - 55 ) * 79 + 61 ) / - COUNT ( * ) AS col1
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8077
SELECT 99 * CASE 24 WHEN SUM( + 42 ) THEN NULL WHEN + + 54 THEN + COALESCE ( 74, NULLIF ( + 50, - - 28 ) * 92 + - - ( + COUNT( * ) ) - - 50 ) ELSE + 24 * + 49 END DIV - - CAST( + 54 AS SIGNED ) + + + 92 AS col2
----
2248

skipif mysql # not compatible
query I rowsort label-8077
SELECT 99 * CASE 24 WHEN SUM ( + 42 ) THEN NULL WHEN + + 54 THEN + COALESCE ( 74, NULLIF ( + 50, - - 28 ) * 92 + - - ( + COUNT ( * ) ) - - 50 ) ELSE + 24 * + 49 END / - - CAST ( + 54 AS INTEGER ) + + + 92 AS col2
----
2248

onlyif mysql # DIV for integer division: 
query I rowsort label-8078
SELECT DISTINCT 51 DIV - 98 + + 85
----
85

skipif mysql # not compatible
query I rowsort label-8078
SELECT DISTINCT 51 / - 98 + + 85
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-8079
SELECT + 93 * + + 20 * + + COUNT( DISTINCT 14 ) * + ( COALESCE ( ( - 16 ), + - 44 * 24 * + 74 ) ) * 29 + + 58 + + - COUNT( * ) + SUM( ALL - - 51 ) * + - 37, 32 col0
----
-864870
32

skipif mysql # not compatible
query II rowsort label-8079
SELECT + 93 * + + 20 * + + COUNT ( DISTINCT 14 ) * + ( COALESCE ( ( - 16 ), + - 44 * 24 * + 74 ) ) * 29 + + 58 + + - COUNT ( * ) + SUM ( ALL - - 51 ) * + - 37, 32 col0
----
-864870
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8080
SELECT CASE + 76 WHEN - 56 * - CAST( NULL AS DECIMAL ) THEN ( - - 70 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8080
SELECT CASE + 76 WHEN - 56 * - CAST ( NULL AS REAL ) THEN ( - - 70 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT + 41 * + ( + + CASE 36 WHEN + 56 THEN - - ( + 50 ) ELSE NULL END ) + - + ( - ( + + COUNT( * ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8081
SELECT + 41 * + ( + + CASE 36 WHEN + 56 THEN - - ( + 50 ) ELSE NULL END ) + - + ( - ( + + COUNT ( * ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT - 45 * + + ( - + 46 ) * + COUNT( DISTINCT 9 ) - + - ( - 28 )
----
2042

skipif mysql # not compatible
query I rowsort label-8082
SELECT - 45 * + + ( - + 46 ) * + COUNT ( DISTINCT 9 ) - + - ( - 28 )
----
2042

query I rowsort
SELECT + - 85 + 49
----
-36

onlyif mysql # aggregate syntax: 
query III rowsort label-8084
SELECT ALL - COUNT( - - 96 ) * + + 53 + - 80 AS col0, 55 AS col2, - 7 col1
----
-133
55
-7

skipif mysql # not compatible
query III rowsort label-8084
SELECT ALL - COUNT ( - - 96 ) * + + 53 + - 80 AS col0, 55 AS col2, - 7 col1
----
-133
55
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT ALL + NULLIF ( - COUNT( * ), - + 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL + NULLIF ( - COUNT ( * ), - + 95 )
----
-1

query I rowsort
SELECT + 96 * - 14 - + 35
----
-1379

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT ALL + - NULLIF ( - MAX( ALL 41 ), 94 ) col2
----
41

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL + - NULLIF ( - MAX ( ALL 41 ), 94 ) col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT ALL + 93 * + 91 + + MIN( + - 28 ) * - 9 - + 47 * + ( - 47 )
----
10924

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL + 93 * + 91 + + MIN ( + - 28 ) * - 9 - + 47 * + ( - 47 )
----
10924

query I rowsort
SELECT - - ( + - 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8090
SELECT - + 53 DIV - + COUNT( ALL - + 75 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-8090
SELECT - + 53 / - + COUNT ( ALL - + 75 ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT - ( + MAX( - 0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8091
SELECT - ( + MAX ( - 0 ) )
----
0

query I rowsort
SELECT - - 78 + + 92 AS col2
----
170

query I rowsort
SELECT ( + NULLIF ( + 20, - CASE + - 67 WHEN - + 35 THEN 96 * - AVG ( - ( 62 ) ) - 81 + - 0 * + 64 END - + 89 ) ) * + + 70
----
1400

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT MAX( DISTINCT 96 ) + + + 6 + - 2 * + 91
----
-80

skipif mysql # not compatible
query I rowsort label-8094
SELECT MAX ( DISTINCT 96 ) + + + 6 + - 2 * + 91
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8095
SELECT DISTINCT - ( - CASE CAST( NULL AS SIGNED ) WHEN 55 THEN 38 / - 29 END ) * - 49 * 27 * - 38 + + COUNT( * ) + ( 4 ) * + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT - ( - CASE CAST ( NULL AS INTEGER ) WHEN 55 THEN 38 / - 29 END ) * - 49 * 27 * - 38 + + COUNT ( * ) + ( 4 ) * + - 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8096
SELECT DISTINCT + 84 * NULLIF ( + 95, 15 + + COUNT( + - COALESCE ( CAST( 94 AS SIGNED ), - 17 ) ) - - ( 91 ) * + - ( + 80 ) / 32 + + 82 ) AS col2
----
7980

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT + 84 * NULLIF ( + 95, 15 + + COUNT ( + - COALESCE ( CAST ( 94 AS INTEGER ), - 17 ) ) - - ( 91 ) * + - ( + 80 ) / 32 + + 82 ) AS col2
----
7980

query II rowsort
SELECT - 62 AS col1, + 31 AS col0
----
-62
31

query II rowsort
SELECT ALL 64 AS col2, + 31 * - 8 + + + 30 - - 18 * 58 * - 83
----
64
-86870

query I rowsort
SELECT 90 * - + 85 AS col0
----
-7650

query I rowsort
SELECT DISTINCT + 66 + - - 12 + 53
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT 64 - 39 * - COUNT( * ) AS col2
----
103

skipif mysql # not compatible
query I rowsort label-8101
SELECT 64 - 39 * - COUNT ( * ) AS col2
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-8102
SELECT 50, + COUNT( * ) * + + 18 AS col2
----
50
18

skipif mysql # not compatible
query II rowsort label-8102
SELECT 50, + COUNT ( * ) * + + 18 AS col2
----
50
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT ALL + 48 + + ( + ( - 15 ) ) * - 68 - + 62 * COUNT( DISTINCT - 23 )
----
1006

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL + 48 + + ( + ( - 15 ) ) * - 68 - + 62 * COUNT ( DISTINCT - 23 )
----
1006

query I rowsort
SELECT 73 - + 27 AS col0
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-8105
SELECT 58 AS col2, + 44 DIV - 42
----
58
-1

skipif mysql # not compatible
query II rowsort label-8105
SELECT 58 AS col2, + 44 / - 42
----
58
-1

query II rowsort
SELECT ALL 30 AS col0, 53 * + + 8 col0
----
30
424

query I rowsort
SELECT ALL + 49 + - 42 AS col1
----
7

query I rowsort
SELECT DISTINCT - 94 + 48
----
-46

query I rowsort
SELECT 8 - COALESCE ( + 44, - + 66 ) AS col2
----
-36

query II rowsort
SELECT ALL 41, + 52 AS col2
----
41
52

query I rowsort
SELECT DISTINCT + 22 * + 98
----
2156

query I rowsort
SELECT ( + 12 ) * - 28 * + 33 AS col0
----
-11088

query I rowsort
SELECT ALL ( + 36 ) * 56
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT DISTINCT 11 + - CASE 9 WHEN 64 THEN + 30 * - COUNT( * ) END * 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT 11 + - CASE 9 WHEN 64 THEN + 30 * - COUNT ( * ) END * 37 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8115
SELECT 50 DIV - 31 + + 83 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-8115
SELECT 50 / - 31 + + 83 AS col0
----
82

query I rowsort
SELECT 43 * 57 AS col1
----
2451

query I rowsort
SELECT 50 + 22
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-8118
SELECT DISTINCT 64 DIV + 1 col2
----
64

skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT 64 / + 1 col2
----
64

query I rowsort
SELECT 33 * - 76 AS col0
----
-2508

query I rowsort
SELECT ALL 99 * 63
----
6237

query I rowsort
SELECT ALL 10 - - 86 * + 81
----
6976

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8122
SELECT ALL + 69 - - COUNT( * ) DIV + ( 64 * + 96 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL + 69 - - COUNT ( * ) / + ( 64 * + 96 ) AS col2
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8123
SELECT NULLIF ( ( 67 ), CAST( NULL AS DECIMAL ) / - 9 + - 15 ) * + 24 AS col2
----
1608

skipif mysql # not compatible
query I rowsort label-8123
SELECT NULLIF ( ( 67 ), CAST ( NULL AS REAL ) / - 9 + - 15 ) * + 24 AS col2
----
1608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8124
SELECT CAST( 38 AS SIGNED ) * + 40
----
1520

skipif mysql # not compatible
query I rowsort label-8124
SELECT CAST ( 38 AS INTEGER ) * + 40
----
1520

query I rowsort
SELECT ALL 56 * - 8
----
-448

query I rowsort
SELECT ALL - COALESCE ( + ( 25 ), 70 + 77 ) AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8127
SELECT CAST( + 80 AS SIGNED ) * + 39 AS col2
----
3120

skipif mysql # not compatible
query I rowsort label-8127
SELECT CAST ( + 80 AS INTEGER ) * + 39 AS col2
----
3120

query I rowsort
SELECT + 57 * 47 - 84 col0
----
2595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8129
SELECT DISTINCT 14 + CAST( MAX( DISTINCT - 69 ) AS SIGNED ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT 14 + CAST ( MAX ( DISTINCT - 69 ) AS INTEGER ) AS col1
----
-55

query I rowsort
SELECT DISTINCT 90 + - 38 AS col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8131
SELECT ALL 49 + 59 DIV 42 col2
----
50

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL 49 + 59 / 42 col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8132
SELECT 3 DIV NULLIF ( + ( 4 ), COALESCE ( 95, 13 + + 25 ) * + 1 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8132
SELECT 3 / NULLIF ( + ( 4 ), COALESCE ( 95, 13 + + 25 ) * + 1 ) AS col1
----
0

query I rowsort
SELECT 73 + 98
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8134
SELECT 9 - MAX( ALL 40 + + 19 DIV 49 )
----
-31

skipif mysql # not compatible
query I rowsort label-8134
SELECT 9 - MAX ( ALL 40 + + 19 / 49 )
----
-31

query I rowsort
SELECT ALL - 7 * 38
----
-266

query I rowsort
SELECT 83 + ( 45 + - 47 ) AS col2
----
81

query I rowsort
SELECT 18 - 82 AS col0
----
-64

query I rowsort
SELECT 92 + 4 * - 0
----
92

query I rowsort
SELECT DISTINCT 48 + 86 * + 97 col0
----
8390

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT ALL 7 * ( 84 * COUNT( * ) )
----
588

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL 7 * ( 84 * COUNT ( * ) )
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT ALL + COUNT( * ) * - 90 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL + COUNT ( * ) * - 90 AS col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8142
SELECT DISTINCT + 36 + - CASE WHEN ( MIN( 52 ) ) BETWEEN NULL AND CAST( COUNT( * ) AS SIGNED ) THEN - 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8142
SELECT DISTINCT + 36 + - CASE WHEN ( MIN ( 52 ) ) BETWEEN NULL AND CAST ( COUNT ( * ) AS INTEGER ) THEN - 55 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT COUNT( * ) + - ( COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-8143
SELECT COUNT ( * ) + - ( COUNT ( * ) )
----
0

query I rowsort
SELECT ALL + 18 - 92 * + 64
----
-5870

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT - 23 + SUM( DISTINCT 7 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8145
SELECT - 23 + SUM ( DISTINCT 7 ) AS col1
----
-16

query I rowsort
SELECT DISTINCT + ( COALESCE ( + 92, 63 * NULLIF ( 34, 82 - - 43 * 74 ) ) ) - - ( + 92 )
----
184

query I rowsort
SELECT 12 + 34 col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8148
SELECT ALL - CAST( - 60 AS SIGNED ) * 36
----
2160

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL - CAST ( - 60 AS INTEGER ) * 36
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT ALL - MAX( ALL ( 97 ) )
----
-97

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL - MAX ( ALL ( 97 ) )
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8150
SELECT - + ( - 40 ) DIV - 96 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8150
SELECT - + ( - 40 ) / - 96 + COUNT ( * )
----
1

query I rowsort
SELECT CASE + 63 WHEN - 27 THEN - 62 * + 91 + AVG ( ALL + 36 + ( 23 ) ) WHEN 54 THEN NULL WHEN 46 * 7 THEN NULL END / ( + 25 ) AS col2
----
NULL

query I rowsort
SELECT ALL - - 15 * 55 AS col2
----
825

query I rowsort
SELECT 22 + + 15 AS col0
----
37

query I rowsort
SELECT + + NULLIF ( - 70, - ( 86 ) * - 48 ) AS col1
----
-70

query I rowsort
SELECT - - 77 * 27 + ( - ( 14 ) ) AS col1
----
2065

onlyif mysql # DIV for integer division: 
query I rowsort label-8156
SELECT 70 DIV 41
----
1

skipif mysql # not compatible
query I rowsort label-8156
SELECT 70 / 41
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8157
SELECT - 14 DIV - 87 col2
----
0

skipif mysql # not compatible
query I rowsort label-8157
SELECT - 14 / - 87 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8158
SELECT 42 DIV 22 + COUNT( * ) * + ( 61 * 39 ) AS col2
----
2380

skipif mysql # not compatible
query I rowsort label-8158
SELECT 42 / 22 + COUNT ( * ) * + ( 61 * 39 ) AS col2
----
2380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8159
SELECT - 98 * CAST( ( + 35 ) + - ( - 68 ) AS SIGNED ) - + 47
----
-10141

skipif mysql # not compatible
query I rowsort label-8159
SELECT - 98 * CAST ( ( + 35 ) + - ( - 68 ) AS INTEGER ) - + 47
----
-10141

query I rowsort
SELECT + - 5 * + 43 + - ( 9 )
----
-224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8161
SELECT + COUNT( + 23 ) DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-8161
SELECT + COUNT ( + 23 ) / 80
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8162
SELECT ALL - 41 * + ( 9 DIV + 26 ) + 89 * 84 AS col2
----
7476

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL - 41 * + ( 9 / + 26 ) + 89 * 84 AS col2
----
7476

query I rowsort
SELECT + + 76 + - 39
----
37

query I rowsort
SELECT + - COALESCE ( 23, 72 )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8165
SELECT + - 76 * - COUNT( * ) + + CAST( COUNT( * ) + 91 AS SIGNED )
----
168

skipif mysql # not compatible
query I rowsort label-8165
SELECT + - 76 * - COUNT ( * ) + + CAST ( COUNT ( * ) + 91 AS INTEGER )
----
168

query I rowsort
SELECT DISTINCT 14 + - 94 + 25
----
-55

query I rowsort
SELECT ALL 73 + + - 49 AS col0
----
24

query I rowsort
SELECT + 44 * - COALESCE ( 84, 73 )
----
-3696

query I rowsort
SELECT ALL 49 + 92
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-8170
SELECT DISTINCT 8 + - 81 + 3 * + 22 DIV 95 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT 8 + - 81 + 3 * + 22 / 95 AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT - SUM( - + 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-8171
SELECT - SUM ( - + 97 ) AS col0
----
97

query I rowsort
SELECT ALL 2 * + ( - ( 27 ) ) col1
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8173
SELECT + 8 * - + COALESCE ( - 72, ( - 19 ) * - 60 + ( + 18 ) ) DIV + CASE - 19 * - 34 WHEN - COUNT( * ) * + 21 THEN NULL WHEN CASE NULLIF ( 93, + 27 - - 6 ) WHEN - 15 THEN NULL WHEN NULLIF ( 71, + 22 + 96 ) * - 26 THEN 65 END THEN NULL ELSE 31 * 52 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8173
SELECT + 8 * - + COALESCE ( - 72, ( - 19 ) * - 60 + ( + 18 ) ) / + CASE - 19 * - 34 WHEN - COUNT ( * ) * + 21 THEN NULL WHEN CASE NULLIF ( 93, + 27 - - 6 ) WHEN - 15 THEN NULL WHEN NULLIF ( 71, + 22 + 96 ) * - 26 THEN 65 END THEN NULL ELSE 31 * 52 END AS col2
----
0

query I rowsort
SELECT + 77 * 23 AS col1
----
1771

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8175
SELECT + 95 + - MIN( - CAST( 38 AS SIGNED ) ) + + COUNT( * )
----
134

skipif mysql # not compatible
query I rowsort label-8175
SELECT + 95 + - MIN ( - CAST ( 38 AS INTEGER ) ) + + COUNT ( * )
----
134

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8176
SELECT ALL CASE - + 80 WHEN CAST( NULL AS DECIMAL ) THEN 10 END - ( COALESCE ( - 21, 89 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL CASE - + 80 WHEN CAST ( NULL AS REAL ) THEN 10 END - ( COALESCE ( - 21, 89 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT ALL 36 - - SUM( 36 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL 36 - - SUM ( 36 ) AS col1
----
72

query I rowsort
SELECT - 47 * + 64 * + 2
----
-6016

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT - NULLIF ( NULLIF ( + 4, 41 * 61 ), - COUNT( DISTINCT 14 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-8179
SELECT - NULLIF ( NULLIF ( + 4, 41 * 61 ), - COUNT ( DISTINCT 14 ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT + 18 - + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-8180
SELECT + 18 - + COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT ALL SUM( + 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL SUM ( + 17 ) AS col1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8182
SELECT - CASE - - 7 WHEN 96 THEN NULL WHEN 43 + - 0 * 77 THEN - COALESCE ( 90, 47 - 59 ) WHEN - 7 THEN CAST( NULL AS SIGNED ) * 71 + + 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8182
SELECT - CASE - - 7 WHEN 96 THEN NULL WHEN 43 + - 0 * 77 THEN - COALESCE ( 90, 47 - 59 ) WHEN - 7 THEN CAST ( NULL AS INTEGER ) * 71 + + 80 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT - - ( - COUNT( * ) ) + 92
----
91

skipif mysql # not compatible
query I rowsort label-8183
SELECT - - ( - COUNT ( * ) ) + 92
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT + - 98 * - COUNT( * ) + + 78 AS col0
----
176

skipif mysql # not compatible
query I rowsort label-8184
SELECT + - 98 * - COUNT ( * ) + + 78 AS col0
----
176

query I rowsort
SELECT ALL - + 80 * + + 77
----
-6160

query I rowsort
SELECT - + 23 * - 76 * 48 + + 76
----
83980

query I rowsort
SELECT DISTINCT - 59 * + 96
----
-5664

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT - - COUNT( * ) - + + 7
----
-6

skipif mysql # not compatible
query I rowsort label-8188
SELECT - - COUNT ( * ) - + + 7
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT DISTINCT - - COUNT( * ) * + 15
----
15

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT - - COUNT ( * ) * + 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT + 15 * + - CASE - 85 WHEN COUNT( 58 ) * 16 THEN 79 + 62 END + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8190
SELECT + 15 * + - CASE - 85 WHEN COUNT ( 58 ) * 16 THEN 79 + 62 END + + 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT MIN( + - 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-8191
SELECT MIN ( + - 63 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT - 92 * + - ( - COUNT( * ) ) + - 24 + + 87 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-8192
SELECT - 92 * + - ( - COUNT ( * ) ) + - 24 + + 87 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT COUNT( ALL + 26 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8193
SELECT COUNT ( ALL + 26 ) AS col2
----
1

query I rowsort
SELECT - - 66 + + + 65 * + 34 AS col1
----
2276

query I rowsort
SELECT - - 96 * - 41 AS col2
----
-3936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8196
SELECT + - 16 DIV COALESCE ( ( 25 ), - COUNT( * ), + 88 ) * + 56 + - 18 - - 68
----
50

skipif mysql # not compatible
query I rowsort label-8196
SELECT + - 16 / COALESCE ( ( 25 ), - COUNT ( * ), + 88 ) * + 56 + - 18 - - 68
----
50

query I rowsort
SELECT ALL - 52 * 68 AS col2
----
-3536

onlyif mysql # DIV for integer division: 
query I rowsort label-8198
SELECT DISTINCT + 1 * 53 * + 49 + 83 DIV COALESCE ( 95, - 86, + 77 ) AS col1
----
2597

skipif mysql # not compatible
query I rowsort label-8198
SELECT DISTINCT + 1 * 53 * + 49 + 83 / COALESCE ( 95, - 86, + 77 ) AS col1
----
2597

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8199
SELECT ALL 0 * - CAST( + 71 AS SIGNED ) DIV 28 + COALESCE ( - COUNT( * ), 90 ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL 0 * - CAST ( + 71 AS INTEGER ) / 28 + COALESCE ( - COUNT ( * ), 90 ) * COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT NULLIF ( - - COUNT( * ), 76 * NULLIF ( 19 * + ( - NULLIF ( 74, 18 ) ), COUNT( * ) + - 42 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8200
SELECT NULLIF ( - - COUNT ( * ), 76 * NULLIF ( 19 * + ( - NULLIF ( 74, 18 ) ), COUNT ( * ) + - 42 ) ) AS col1
----
1

query I rowsort
SELECT + COALESCE ( 26, - 79 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT - COUNT( ALL + 55 ) + + + MIN( ALL 78 )
----
77

skipif mysql # not compatible
query I rowsort label-8202
SELECT - COUNT ( ALL + 55 ) + + + MIN ( ALL 78 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT + CASE COUNT( * ) WHEN 98 THEN - 71 + 41 WHEN + 0 THEN - 18 WHEN + ( - 12 ) * 69 THEN NULL ELSE NULL END * SUM( ALL 60 / 61 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8203
SELECT + CASE COUNT ( * ) WHEN 98 THEN - 71 + 41 WHEN + 0 THEN - 18 WHEN + ( - 12 ) * 69 THEN NULL ELSE NULL END * SUM ( ALL 60 / 61 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT - 32 + + - 25 + + 51 + - SUM( 14 + - 75 * 53 ) * 67
----
265381

skipif mysql # not compatible
query I rowsort label-8204
SELECT - 32 + + - 25 + + 51 + - SUM ( 14 + - 75 * 53 ) * 67
----
265381

query I rowsort
SELECT DISTINCT + 12 * - - 4 + + 54
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT DISTINCT NULLIF ( - + 42, + 27 ) * SUM( DISTINCT 92 ) + 85 * + 13
----
-2759

skipif mysql # not compatible
query I rowsort label-8206
SELECT DISTINCT NULLIF ( - + 42, + 27 ) * SUM ( DISTINCT 92 ) + 85 * + 13
----
-2759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8207
SELECT DISTINCT + NULLIF ( + - MAX( ALL - CAST( NULL AS SIGNED ) ), + COALESCE ( - 7, - 75 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT + NULLIF ( + - MAX ( ALL - CAST ( NULL AS INTEGER ) ), + COALESCE ( - 7, - 75 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT ALL + 79 * - 94 + 75 + ( COUNT( * ) ) AS col2
----
-7350

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL + 79 * - 94 + 75 + ( COUNT ( * ) ) AS col2
----
-7350

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT ALL ( - SUM( DISTINCT + - 58 ) ) * MAX( DISTINCT - 15 ) AS col0
----
-870

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL ( - SUM ( DISTINCT + - 58 ) ) * MAX ( DISTINCT - 15 ) AS col0
----
-870

query I rowsort
SELECT ALL 48 * - - 43 * + 96
----
198144

query I rowsort
SELECT + 54 + + 12
----
66

query I rowsort
SELECT ALL + 2 * 13 - - COALESCE ( + 47, + 3 ) AS col0
----
73

query I rowsort
SELECT - 66 * - 13 * - ( - 26 ) * 38 AS col0
----
847704

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT MAX( - 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-8214
SELECT MAX ( - 68 ) AS col0
----
-68

query I rowsort
SELECT - ( - 65 ) col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8216
SELECT - CAST( NULL AS SIGNED ) + + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8216
SELECT - CAST ( NULL AS INTEGER ) + + + 28
----
NULL

query I rowsort
SELECT ALL 12 * - 53
----
-636

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT + 18 + 75 + - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-8218
SELECT + 18 + 75 + - COUNT ( * )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8219
SELECT + 24 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8219
SELECT + 24 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 35 * 95
----
3325

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT + 94 + COUNT( * ) * 41 - COUNT( * )
----
134

skipif mysql # not compatible
query I rowsort label-8221
SELECT + 94 + COUNT ( * ) * 41 - COUNT ( * )
----
134

query I rowsort
SELECT DISTINCT 59 * + ( 2 ) * + 57 AS col1
----
6726

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT + COUNT( * ) + + - MIN( + 53 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-8223
SELECT + COUNT ( * ) + + - MIN ( + 53 ) AS col2
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8224
SELECT ALL 2 * + NULLIF ( ( - COALESCE ( 13, - 75 ) ), - 12 ) DIV + ( MIN( ALL - 32 ) * + 38 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL 2 * + NULLIF ( ( - COALESCE ( 13, - 75 ) ), - 12 ) / + ( MIN ( ALL - 32 ) * + 38 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT DISTINCT - ( + ( COUNT( * ) ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8225
SELECT DISTINCT - ( + ( COUNT ( * ) ) ) col0
----
-1

query I rowsort
SELECT DISTINCT + 30 * - + 95 col1
----
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT - - COUNT( ALL - 46 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8227
SELECT - - COUNT ( ALL - 46 ) AS col0
----
1

query I rowsort
SELECT + + 86 * + 52 + - COALESCE ( 51, - ( - 93 ), 80 ) AS col2
----
4421

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8229
SELECT DISTINCT 47 DIV + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT 47 / + COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT + COUNT( * ) * COALESCE ( - 57, - 75 * - COUNT( * ) ) * ( 57 * - 27 )
----
87723

skipif mysql # not compatible
query I rowsort label-8230
SELECT + COUNT ( * ) * COALESCE ( - 57, - 75 * - COUNT ( * ) ) * ( 57 * - 27 )
----
87723

query I rowsort
SELECT - - 54 * 10 + COALESCE ( 32, 56 + - 33 ) + ( 54 + 52 ) AS col2
----
678

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8232
SELECT 28 * SUM( ALL + CAST( NULL AS SIGNED ) ) * 55
----
NULL

skipif mysql # not compatible
query I rowsort label-8232
SELECT 28 * SUM ( ALL + CAST ( NULL AS INTEGER ) ) * 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT DISTINCT + NULLIF ( + 15, - COUNT( * ) * MIN( - 70 ) ) + 65 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-8233
SELECT DISTINCT + NULLIF ( + 15, - COUNT ( * ) * MIN ( - 70 ) ) + 65 AS col1
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8234
SELECT DISTINCT COUNT( * ) DIV 16
----
0

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT COUNT ( * ) / 16
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8235
SELECT ALL + - CAST( - ( + + 7 ) AS SIGNED ) + + 64 * 9
----
583

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL + - CAST ( - ( + + 7 ) AS INTEGER ) + + 64 * 9
----
583

query II rowsort
SELECT + + 77 AS col1, + 7 AS col0
----
77
7

query I rowsort
SELECT ALL 32 * + 35
----
1120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8238
SELECT DISTINCT - 12 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT - 12 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + 88
----
NULL

query I rowsort
SELECT ALL + 54 + 16
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT + CASE - 26 WHEN + COUNT( * ) THEN - 25 END + - 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8240
SELECT + CASE - 26 WHEN + COUNT ( * ) THEN - 25 END + - 73 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8241
SELECT ALL - CASE + - 86 WHEN + 55 THEN - 51 / 67 WHEN + 72 THEN MIN( + COALESCE ( - 21, + CAST( NULL AS DECIMAL ) + - 3 ) ) - - 70 * 56 WHEN 89 THEN NULL END + + CASE MIN( - 20 ) WHEN 29 * + 60 + 78 * - 60 THEN 69 / + NULLIF ( 71, 51 / 36 ) END * MAX( ALL + 19 / - 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL - CASE + - 86 WHEN + 55 THEN - 51 / 67 WHEN + 72 THEN MIN ( + COALESCE ( - 21, + CAST ( NULL AS REAL ) + - 3 ) ) - - 70 * 56 WHEN 89 THEN NULL END + + CASE MIN ( - 20 ) WHEN 29 * + 60 + 78 * - 60 THEN 69 / + NULLIF ( 71, 51 / 36 ) END * MAX ( ALL + 19 / - 94 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8242
SELECT 74 * ( - 13 ) * 13 + - COALESCE ( ( - 66 ) + 38, - 85 ) DIV - COUNT( * ) + + 3
----
-12531

skipif mysql # not compatible
query I rowsort label-8242
SELECT 74 * ( - 13 ) * 13 + - COALESCE ( ( - 66 ) + 38, - 85 ) / - COUNT ( * ) + + 3
----
-12531

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT DISTINCT - 63 * - MIN( DISTINCT 10 ) * 38 AS col0
----
23940

skipif mysql # not compatible
query I rowsort label-8243
SELECT DISTINCT - 63 * - MIN ( DISTINCT 10 ) * 38 AS col0
----
23940

query I rowsort
SELECT + - COALESCE ( + + NULLIF ( - 34, 86 ), - 13 + 29 ) * 92 + - 95 AS col0
----
3033

query I rowsort
SELECT 99 - + + 51 AS col0
----
48

query I rowsort
SELECT DISTINCT - ( + + 29 )
----
-29

query I rowsort
SELECT 48 * + 18 + + + 92
----
956

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT DISTINCT - SUM( ( - 95 ) ) col2
----
95

skipif mysql # not compatible
query I rowsort label-8248
SELECT DISTINCT - SUM ( ( - 95 ) ) col2
----
95

query I rowsort
SELECT + 38 * 19 * - 60 * + 88 + - 26
----
-3812186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8250
SELECT 85 * - COUNT( * ) + 9 + + 57 + 27 DIV MAX( - 60 ) * 62 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-8250
SELECT 85 * - COUNT ( * ) + 9 + + 57 + 27 / MAX ( - 60 ) * 62 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT ALL - COUNT( * ) - + 76 + - 68
----
-145

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL - COUNT ( * ) - + 76 + - 68
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT ALL COALESCE ( + 60, - 63 + - 28, + 53 ) * + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL COALESCE ( + 60, - 63 + - 28, + 53 ) * + COUNT ( * )
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-8253
SELECT 18 + - COUNT( * ), ( + 23 ) col2
----
17
23

skipif mysql # not compatible
query II rowsort label-8253
SELECT 18 + - COUNT ( * ), ( + 23 ) col2
----
17
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8254
SELECT ALL + SUM( DISTINCT - 92 ) * + 62 * - + CAST( - 36 AS SIGNED ) DIV - COUNT( * )
----
205344

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL + SUM ( DISTINCT - 92 ) * + 62 * - + CAST ( - 36 AS INTEGER ) / - COUNT ( * )
----
205344

query II rowsort
SELECT 89 * - + 91 AS col0, 81 AS col0
----
-8099
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT COUNT( * ) * - + 59
----
-59

skipif mysql # not compatible
query I rowsort label-8256
SELECT COUNT ( * ) * - + 59
----
-59

query I rowsort
SELECT DISTINCT + CASE - 20 WHEN - 10 THEN - + 97 - 6 / 19 END * 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT COUNT( * ) * 16 col0
----
16

skipif mysql # not compatible
query I rowsort label-8258
SELECT COUNT ( * ) * 16 col0
----
16

query I rowsort
SELECT 14 * - 18
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT COUNT( * ) * + - NULLIF ( - 42, - 9 + 47 )
----
42

skipif mysql # not compatible
query I rowsort label-8260
SELECT COUNT ( * ) * + - NULLIF ( - 42, - 9 + 47 )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8261
SELECT ALL 0 DIV + 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL 0 / + 44 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8262
SELECT ( - - 84 ) + + + 75 DIV 24 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-8262
SELECT ( - - 84 ) + + + 75 / 24 AS col0
----
87

query I rowsort
SELECT - 44 * - 26
----
1144

query I rowsort
SELECT + COALESCE ( - 71, - 36 * - - 91 ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT ( 8 ) - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-8265
SELECT ( 8 ) - COUNT ( * ) AS col0
----
7

query I rowsort
SELECT + 10 - - 91
----
101

query I rowsort
SELECT 97 + - 70 * + 57 * + - 39
----
155707

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT DISTINCT MIN( DISTINCT - 6 ) + 86
----
80

skipif mysql # not compatible
query I rowsort label-8268
SELECT DISTINCT MIN ( DISTINCT - 6 ) + 86
----
80

query I rowsort
SELECT ALL 63 + + - 34 + 29
----
58

query I rowsort
SELECT ALL + 74 * - NULLIF ( + 47, - + 80 )
----
-3478

query I rowsort
SELECT DISTINCT 7 + 27
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT ALL + COALESCE ( SUM( + 95 ), - 56 )
----
95

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL + COALESCE ( SUM ( + 95 ), - 56 )
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8273
SELECT DISTINCT - 83 + - + 14 + + - 74 * + CAST( NULL AS SIGNED ) / 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8273
SELECT DISTINCT - 83 + - + 14 + + - 74 * + CAST ( NULL AS INTEGER ) / 84 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8274
SELECT DISTINCT - + 58 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT - + 58 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT ALL + MIN( 25 ) + - 10 * + 41 + 28 * - 8 AS col1
----
-609

skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL + MIN ( 25 ) + - 10 * + 41 + 28 * - 8 AS col1
----
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT + - COUNT( * ) * - 59 + + - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-8276
SELECT + - COUNT ( * ) * - 59 + + - COUNT ( * )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8277
SELECT ALL MIN( + 52 ) DIV + + 47 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8277
SELECT ALL MIN ( + 52 ) / + + 47 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8278
SELECT DISTINCT CAST( 54 AS SIGNED ) - - 29 + 88 * COALESCE ( - 53 DIV + 48, - COUNT( * ) )
----
-5

skipif mysql # not compatible
query I rowsort label-8278
SELECT DISTINCT CAST ( 54 AS INTEGER ) - - 29 + 88 * COALESCE ( - 53 / + 48, - COUNT ( * ) )
----
-5

query I rowsort
SELECT ALL 20 - - 60
----
80

query I rowsort
SELECT ALL + CASE - 86 WHEN + + 32 THEN + 92 * + 72 WHEN + 54 - + 28 * - 60 THEN + 58 * 15 ELSE NULL END * - 81
----
NULL

query II rowsort
SELECT 93 * - - 11 * - 87 AS col0, - 3
----
-89001
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8282
SELECT ALL 91 DIV - 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL 91 / - 92 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8283
SELECT 99 DIV + 91
----
1

skipif mysql # not compatible
query I rowsort label-8283
SELECT 99 / + 91
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT MIN( - CASE + - ( - CASE 93 WHEN - 1 THEN 21 END ) WHEN - 95 THEN 80 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8284
SELECT MIN ( - CASE + - ( - CASE 93 WHEN - 1 THEN 21 END ) WHEN - 95 THEN 80 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT ALL - SUM( DISTINCT - COALESCE ( + - 34, - 21 ) ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL - SUM ( DISTINCT - COALESCE ( + - 34, - 21 ) ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL 84 - - + COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL 84 - - + COUNT ( * ) AS col2
----
85

query I rowsort
SELECT ALL 43 * + + 50
----
2150

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT ( - COUNT( * ) ) * COUNT( * ) - - + 51 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8288
SELECT ( - COUNT ( * ) ) * COUNT ( * ) - - + 51 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT ALL - MAX( DISTINCT + ( 7 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL - MAX ( DISTINCT + ( 7 ) )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT ( + + 19 ) + NULLIF ( - - 49, MAX( - 76 ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-8290
SELECT ( + + 19 ) + NULLIF ( - - 49, MAX ( - 76 ) ) AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8291
SELECT 34 * ( 15 ) DIV - 70
----
-7

skipif mysql # not compatible
query I rowsort label-8291
SELECT 34 * ( 15 ) / - 70
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8292
SELECT 90 * + 2 * + - 7 + + COALESCE ( COALESCE ( - 54, 3 * + 40 - + 26 * + 40, CAST( NULL AS SIGNED ) + COUNT( * ) ), 32 * + 81 ) * CASE WHEN NOT NULL BETWEEN 53 AND ( + 72 ) THEN - 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT 90 * + 2 * + - 7 + + COALESCE ( COALESCE ( - 54, 3 * + 40 - + 26 * + 40, CAST ( NULL AS INTEGER ) + COUNT ( * ) ), 32 * + 81 ) * CASE WHEN NOT NULL BETWEEN 53 AND ( + 72 ) THEN - 18 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT - 20 * - + 77 + + + 32 + 52 - - 20 * COUNT( * ) AS col1
----
1644

skipif mysql # not compatible
query I rowsort label-8293
SELECT - 20 * - + 77 + + + 32 + 52 - - 20 * COUNT ( * ) AS col1
----
1644

query I rowsort
SELECT ALL - ( - ( - - 84 ) )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT DISTINCT - MAX( ALL 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT - MAX ( ALL 83 ) AS col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8296
SELECT 43 + - + 32 * - - CAST( NULL AS SIGNED ) * - - COUNT( DISTINCT + 53 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8296
SELECT 43 + - + 32 * - - CAST ( NULL AS INTEGER ) * - - COUNT ( DISTINCT + 53 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT 49 * + COUNT( * ) col2
----
49

skipif mysql # not compatible
query I rowsort label-8297
SELECT 49 * + COUNT ( * ) col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT NULLIF ( - + 90, - MAX( 9 ) * - - 82 + 57 ) + + 90 * - 19
----
-1800

skipif mysql # not compatible
query I rowsort label-8298
SELECT NULLIF ( - + 90, - MAX ( 9 ) * - - 82 + 57 ) + + 90 * - 19
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT + MAX( + 74 ) * + 75 + + 78 AS col2
----
5628

skipif mysql # not compatible
query I rowsort label-8299
SELECT + MAX ( + 74 ) * + 75 + + 78 AS col2
----
5628

query I rowsort
SELECT + 42 * + - ( 86 ) * - 90
----
325080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8301
SELECT - 81 + - MIN( ALL - - CAST( 80 AS SIGNED ) ) * - - 90 col2
----
-7281

skipif mysql # not compatible
query I rowsort label-8301
SELECT - 81 + - MIN ( ALL - - CAST ( 80 AS INTEGER ) ) * - - 90 col2
----
-7281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8302
SELECT - CAST( 63 AS SIGNED ) + - - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-8302
SELECT - CAST ( 63 AS INTEGER ) + - - COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT + COUNT( DISTINCT + 36 ) - + - 97 + ( - - COUNT( * ) ) col1
----
99

skipif mysql # not compatible
query I rowsort label-8303
SELECT + COUNT ( DISTINCT + 36 ) - + - 97 + ( - - COUNT ( * ) ) col1
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8304
SELECT - COALESCE ( COUNT( * ), + MIN( + 14 ) DIV + + COUNT( * ) * + 30 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8304
SELECT - COALESCE ( COUNT ( * ), + MIN ( + 14 ) / + + COUNT ( * ) * + 30 ) AS col1
----
-1

query II rowsort
SELECT ALL - - 81 + - + 22 + + 10, - 97 AS col0
----
69
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT ALL + - COUNT( * ) + 46
----
45

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL + - COUNT ( * ) + 46
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8307
SELECT ALL - COUNT( * ) AS col0, ( COUNT( * ) )
----
-1
1

skipif mysql # not compatible
query II rowsort label-8307
SELECT ALL - COUNT ( * ) AS col0, ( COUNT ( * ) )
----
-1
1

query II rowsort
SELECT - 40 * - 1 + 61 AS col0, NULLIF ( - + 55, 45 )
----
101
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8309
SELECT ALL - - 89 DIV + ( + COUNT( * ) ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL - - 89 / + ( + COUNT ( * ) ) AS col0
----
89

query I rowsort
SELECT + - 85 + + 73
----
-12

query I rowsort
SELECT - NULLIF ( + - 68, + 55 ) col0
----
68

query I rowsort
SELECT ALL CASE 55 WHEN - ( 31 ) * - 85 + 60 THEN 26 END * 65
----
NULL

query I rowsort
SELECT - 33 + 71 + - + 66 - - + 97
----
69

query I rowsort
SELECT DISTINCT ( + ( + 60 ) ) * + - 80
----
-4800

query I rowsort
SELECT DISTINCT + 3 * 72 AS col2
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT DISTINCT 5 * - - 56 * ( + + 90 ) * COUNT( * ) * 56 * + 77 + + 6 - - 50 AS col0
----
108662456

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT 5 * - - 56 * ( + + 90 ) * COUNT ( * ) * 56 * + 77 + + 6 - - 50 AS col0
----
108662456

query I rowsort
SELECT ALL 84 * - + 45 AS col1
----
-3780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8318
SELECT + ( - 30 ) * + 86 + - 1 + - 74 + 53 * 51 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8318
SELECT + ( - 30 ) * + 86 + - 1 + - 74 + 53 * 51 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 25 * - 49 AS col0
----
-1225

query I rowsort
SELECT + 49 + + 39 - 52 * - ( 92 ) AS col0
----
4872

query I rowsort
SELECT - 54 * - - 27 + ( + - 56 ) AS col1
----
-1514

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8322
SELECT ALL + 79, + 10 DIV 51 - + - COALESCE ( + 16, + COUNT( 51 ) ) AS col1
----
79
16

skipif mysql # not compatible
query II rowsort label-8322
SELECT ALL + 79, + 10 / 51 - + - COALESCE ( + 16, + COUNT ( 51 ) ) AS col1
----
79
16

query I rowsort
SELECT ALL 89 * 86 * + 56 AS col2
----
428624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8324
SELECT + 95 * - CAST( - + NULLIF ( + 70, + - 30 ) AS SIGNED )
----
6650

skipif mysql # not compatible
query I rowsort label-8324
SELECT + 95 * - CAST ( - + NULLIF ( + 70, + - 30 ) AS INTEGER )
----
6650

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT + CASE - 68 WHEN + 52 THEN - + 17 * 3 WHEN + CASE 13 WHEN + 12 THEN 0 + MAX( + 97 ) END * CASE - 3 * - 15 WHEN 4 THEN + 25 / - 80 + - 24 WHEN 38 * 16 THEN NULL ELSE - ( - 12 ) END THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8325
SELECT + CASE - 68 WHEN + 52 THEN - + 17 * 3 WHEN + CASE 13 WHEN + 12 THEN 0 + MAX ( + 97 ) END * CASE - 3 * - 15 WHEN 4 THEN + 25 / - 80 + - 24 WHEN 38 * 16 THEN NULL ELSE - ( - 12 ) END THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8326
SELECT DISTINCT 36 DIV + 32, + 33 DIV + 36 col1
----
1
0

skipif mysql # not compatible
query II rowsort label-8326
SELECT DISTINCT 36 / + 32, + 33 / + 36 col1
----
1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8327
SELECT ALL ( - ( 21 ) ) * + + MAX( + 67 ) + 88 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL ( - ( 21 ) ) * + + MAX ( + 67 ) + 88 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 71 * 7 * - 32 AS col0
----
-15904

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT DISTINCT ( - 1 ) * - 13 * 92 + - + COUNT( * ) + 6 + + 70 * + 39
----
3931

skipif mysql # not compatible
query I rowsort label-8329
SELECT DISTINCT ( - 1 ) * - 13 * 92 + - + COUNT ( * ) + 6 + + 70 * + 39
----
3931

query I rowsort
SELECT DISTINCT + 10 * + 79 * - 99 + - 38 - 71
----
-78319

onlyif mysql # aggregate syntax: 
query II rowsort label-8331
SELECT COUNT( + 98 ), + 17 AS col1
----
1
17

skipif mysql # not compatible
query II rowsort label-8331
SELECT COUNT ( + 98 ), + 17 AS col1
----
1
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT DISTINCT - COUNT( - 61 ) * + 11 + + - 13 + 17 + + 72 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT - COUNT ( - 61 ) * + 11 + + - 13 + 17 + + 72 AS col0
----
65

query I rowsort
SELECT + 79 * - 90
----
-7110

query I rowsort
SELECT - + 24 + 46 col0
----
22

query I rowsort
SELECT - ( - - 82 )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8336
SELECT ALL - COUNT( * ) + + 30 + CAST( - + 86 AS SIGNED ) * - 15
----
1319

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL - COUNT ( * ) + + 30 + CAST ( - + 86 AS INTEGER ) * - 15
----
1319

query II rowsort
SELECT DISTINCT - 8, 41 col0
----
-8
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8338
SELECT DISTINCT 80 + + 34 - - 3 + - 96 - + + ( 82 ) + NULLIF ( - COALESCE ( + 1, 36 * - CAST( NULL AS SIGNED ) ), 86 ) * - ( + 67 ) * + 53 AS col2
----
3490

skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT 80 + + 34 - - 3 + - 96 - + + ( 82 ) + NULLIF ( - COALESCE ( + 1, 36 * - CAST ( NULL AS INTEGER ) ), 86 ) * - ( + 67 ) * + 53 AS col2
----
3490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8339
SELECT ALL + CASE - 82 WHEN + 18 THEN NULL WHEN - 13 THEN + + 45 WHEN + 53 THEN NULL ELSE AVG ( ALL 26 ) * COALESCE ( 73, + 0 * + 20 + COUNT( * ) ) END + + NULLIF ( - CAST( NULL AS SIGNED ), COUNT( * ) * + COALESCE ( 57, - 99 ) + 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL + CASE - 82 WHEN + 18 THEN NULL WHEN - 13 THEN + + 45 WHEN + 53 THEN NULL ELSE AVG ( ALL 26 ) * COALESCE ( 73, + 0 * + 20 + COUNT ( * ) ) END + + NULLIF ( - CAST ( NULL AS INTEGER ), COUNT ( * ) * + COALESCE ( 57, - 99 ) + 89 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8340
SELECT - + 29, + COUNT( * ) AS col1
----
-29
1

skipif mysql # not compatible
query II rowsort label-8340
SELECT - + 29, + COUNT ( * ) AS col1
----
-29
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT + ( + - 73 ) * COUNT( * ) - + + 7 * + 11 col1
----
-150

skipif mysql # not compatible
query I rowsort label-8341
SELECT + ( + - 73 ) * COUNT ( * ) - + + 7 * + 11 col1
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8342
SELECT - 51 * - 87 * - 80 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8342
SELECT - 51 * - 87 * - 80 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 92 * - 44 AS col1
----
4048

query I rowsort
SELECT - 95 - + 65 - - + 40
----
-120

query II rowsort
SELECT 45 AS col0, + 72 * - 70 * + 97
----
45
-488880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8346
SELECT - - CAST( NULL AS DECIMAL ) / - + 71 / + + 79 + - 44 * + 0 + CAST( - CASE - 39 WHEN + 60 + 91 THEN 59 END AS SIGNED ) + - COUNT( * ) * + 28 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8346
SELECT - - CAST ( NULL AS REAL ) / - + 71 / + + 79 + - 44 * + 0 + CAST ( - CASE - 39 WHEN + 60 + 91 THEN 59 END AS INTEGER ) + - COUNT ( * ) * + 28 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8347
SELECT - - 37 * + 76 * + 68 * + - CAST( + 93 AS SIGNED ) * - 15 + 70
----
266746390

skipif mysql # not compatible
query I rowsort label-8347
SELECT - - 37 * + 76 * + 68 * + - CAST ( + 93 AS INTEGER ) * - 15 + 70
----
266746390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8348
SELECT ALL - 31 * - 62 * + 83 * CASE + AVG ( DISTINCT + - CAST( - 38 AS SIGNED ) ) WHEN + 85 THEN - 45 ELSE NULL END / - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL - 31 * - 62 * + 83 * CASE + AVG ( DISTINCT + - CAST ( - 38 AS INTEGER ) ) WHEN + 85 THEN - 45 ELSE NULL END / - 55
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8349
SELECT + CASE 64 WHEN - + ( COUNT( * ) ) THEN CAST( NULL AS SIGNED ) * 63 WHEN - 4 * + COUNT( * ) - + CASE 54 WHEN + AVG ( 89 ) + NULLIF ( - COUNT( ALL + CAST( 20 AS SIGNED ) ), + 30 + - 56 ) THEN NULL WHEN ( + COUNT( - 6 ) ) * 59 THEN 23 WHEN 35 THEN + CASE + 12 WHEN + 50 THEN 87 * 26 WHEN 9 THEN NULL WHEN 94 THEN + CASE COUNT( * ) WHEN ( - COALESCE ( - 25, - 93 * - COUNT( * ) ) ) / CAST( + 40 / 66 + + 96 AS SIGNED ) THEN NULL WHEN 19 THEN + SUM( ALL 13 ) WHEN 39 / CAST( NULL AS SIGNED ) THEN NULL END ELSE NULL END / 74 END THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8349
SELECT + CASE 64 WHEN - + ( COUNT ( * ) ) THEN CAST ( NULL AS INTEGER ) * 63 WHEN - 4 * + COUNT ( * ) - + CASE 54 WHEN + AVG ( 89 ) + NULLIF ( - COUNT ( ALL + CAST ( 20 AS INTEGER ) ), + 30 + - 56 ) THEN NULL WHEN ( + COUNT ( - 6 ) ) * 59 THEN 23 WHEN 35 THEN + CASE + 12 WHEN + 50 THEN 87 * 26 WHEN 9 THEN NULL WHEN 94 THEN + CASE COUNT ( * ) WHEN ( - COALESCE ( - 25, - 93 * - COUNT ( * ) ) ) / CAST ( + 40 / 66 + + 96 AS INTEGER ) THEN NULL WHEN 19 THEN + SUM ( ALL 13 ) WHEN 39 / CAST ( NULL AS INTEGER ) THEN NULL END ELSE NULL END / 74 END THEN NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 90, 35 * 91 AS col2
----
90
3185

query II rowsort
SELECT ALL ( + 70 ) AS col0, 19 AS col1
----
70
19

query I rowsort
SELECT - 79 * - 71 * + ( 56 ) * + 74 + 50
----
23243746

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8353
SELECT - 38 - - + ( CAST( - + CASE 93 WHEN MAX( - + 4 ) * - 59 THEN + 70 END AS SIGNED ) ) + - 77 * 39 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8353
SELECT - 38 - - + ( CAST ( - + CASE 93 WHEN MAX ( - + 4 ) * - 59 THEN + 70 END AS INTEGER ) ) + - 77 * 39 col2
----
NULL

query II rowsort
SELECT ALL ( + + 37 ) AS col2, + 71 AS col1
----
37
71

onlyif mysql # DIV for integer division: 
query I rowsort label-8355
SELECT DISTINCT - 44 DIV - COALESCE ( + 88, - ( + 52 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8355
SELECT DISTINCT - 44 / - COALESCE ( + 88, - ( + 52 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT + 31 / - + SUM( - - CASE + 71 WHEN 64 THEN + 37 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8356
SELECT + 31 / - + SUM ( - - CASE + 71 WHEN 64 THEN + 37 END ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8357
SELECT ALL + 26 DIV + 6 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL + 26 / + 6 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT ALL 31 * + - ( COUNT( * ) )
----
-31

skipif mysql # not compatible
query I rowsort label-8358
SELECT ALL 31 * + - ( COUNT ( * ) )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8359
SELECT - 12 DIV + COUNT( + - 79 ) - 28 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-8359
SELECT - 12 / + COUNT ( + - 79 ) - 28 AS col2
----
-40

query II rowsort
SELECT - 72 * + 42 AS col0, 41 AS col1
----
-3024
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8361
SELECT ALL + 60 DIV + 1 + 26 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL + 60 / + 1 + 26 AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8362
SELECT ALL - ( + 73 ) * + + 45 * 28 + - NULLIF ( - 32, CAST( 91 AS SIGNED ) * + 73 )
----
-91948

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL - ( + 73 ) * + + 45 * 28 + - NULLIF ( - 32, CAST ( 91 AS INTEGER ) * + 73 )
----
-91948

query I rowsort
SELECT ALL + ( 88 )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8364
SELECT CAST( CASE 18 WHEN + 18 THEN - - 15 WHEN NULLIF ( - - 10, CAST( - 18 AS SIGNED ) ) THEN + 54 ELSE NULL END AS SIGNED ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-8364
SELECT CAST ( CASE 18 WHEN + 18 THEN - - 15 WHEN NULLIF ( - - 10, CAST ( - 18 AS INTEGER ) ) THEN + 54 ELSE NULL END AS INTEGER ) AS col0
----
15

query I rowsort
SELECT ALL 30 * - 41 * + 76
----
-93480

query I rowsort
SELECT 23 + + 33 * + + 87
----
2894

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT 65 * + ( CASE + - 80 WHEN - CASE + 78 WHEN 74 THEN 34 END + 17 THEN NULL WHEN + ( 29 ) / 56 THEN 67 END ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT 65 * + ( CASE + - 80 WHEN - CASE + 78 WHEN 74 THEN 34 END + 17 THEN NULL WHEN + ( 29 ) / 56 THEN 67 END ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT 72 * 39 + 21
----
2829

onlyif mysql # DIV for integer division: 
query I rowsort label-8369
SELECT ALL - 48 + + 79 DIV 18 * + 44
----
128

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL - 48 + + 79 / 18 * + 44
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8370
SELECT + + 2 * + CAST( COUNT( * ) AS SIGNED ) + + 42 * - 29
----
-1216

skipif mysql # not compatible
query I rowsort label-8370
SELECT + + 2 * + CAST ( COUNT ( * ) AS INTEGER ) + + 42 * - 29
----
-1216

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT DISTINCT + 20 + + - MIN( DISTINCT 10 ) + + COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-8371
SELECT DISTINCT + 20 + + - MIN ( DISTINCT 10 ) + + COUNT ( * ) AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8372
SELECT ALL 30 + + 31 AS col1, CAST( 39 AS SIGNED ) AS col1
----
61
39

skipif mysql # not compatible
query II rowsort label-8372
SELECT ALL 30 + + 31 AS col1, CAST ( 39 AS INTEGER ) AS col1
----
61
39

onlyif mysql # DIV for integer division: 
query I rowsort label-8373
SELECT 51 + - 29 DIV - ( + ( - 73 ) ) + - 6 - - - 87 + 48
----
6

skipif mysql # not compatible
query I rowsort label-8373
SELECT 51 + - 29 / - ( + ( - 73 ) ) + - 6 - - - 87 + 48
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8374
SELECT ALL COUNT( DISTINCT + + 99 ) DIV + 61 + + ( 47 )
----
47

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL COUNT ( DISTINCT + + 99 ) / + 61 + + ( 47 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8375
SELECT DISTINCT 87 * - NULLIF ( + 96, + 28 + - 60 + + 61 * - CASE 1 WHEN 78 THEN + NULLIF ( - 61, 75 ) + 12 WHEN - 83 * CAST( NULL AS SIGNED ) + ( 77 ) THEN NULL END - + 93 * COUNT( * ) ) * + 35
----
-292320

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT 87 * - NULLIF ( + 96, + 28 + - 60 + + 61 * - CASE 1 WHEN 78 THEN + NULLIF ( - 61, 75 ) + 12 WHEN - 83 * CAST ( NULL AS INTEGER ) + ( 77 ) THEN NULL END - + 93 * COUNT ( * ) ) * + 35
----
-292320

query II rowsort
SELECT DISTINCT - ( - 29 ) * + - 48, 74 * - 59 AS col0
----
-1392
-4366

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT ALL MAX( + 99 ) - + - ( - - 26 ) AS col0
----
125

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL MAX ( + 99 ) - + - ( - - 26 ) AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT MIN( ALL ( + 69 ) ) + - - 36 col2
----
105

skipif mysql # not compatible
query I rowsort label-8378
SELECT MIN ( ALL ( + 69 ) ) + - - 36 col2
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8379
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ), COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8379
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col0
----
NULL
1

query II rowsort
SELECT + 79 + - - 62 AS col1, - 87
----
141
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT - NULLIF ( + COUNT( * ), 47 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8381
SELECT - NULLIF ( + COUNT ( * ), 47 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + NULLIF ( - 8, + AVG ( DISTINCT - 96 ) ) AS col2
----
-8

query I rowsort
SELECT 0 * - 91
----
0

query I rowsort
SELECT 92 + + 58 + 67 AS col0
----
217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8385
SELECT ALL - COUNT( * ) * COALESCE ( + 37, - - 41 - - 96 * + - COUNT( * ) + + CAST( 83 AS SIGNED ), - 17 )
----
-37

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL - COUNT ( * ) * COALESCE ( + 37, - - 41 - - 96 * + - COUNT ( * ) + + CAST ( 83 AS INTEGER ), - 17 )
----
-37

query I rowsort
SELECT 18 * + 61 AS col0
----
1098

query II rowsort
SELECT ALL 96 AS col1, ( + + 99 ) AS col0
----
96
99

query I rowsort
SELECT 99 + - - 80
----
179

query I rowsort
SELECT ALL + 31 * + 82
----
2542

query I rowsort
SELECT 8 + + - 33 AS col2
----
-25

query I rowsort
SELECT 44 * + 31 AS col1
----
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT DISTINCT + COUNT( * ) + + 98 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT + COUNT ( * ) + + 98 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT - NULLIF ( 31, 27 * 63 - - 68 + - ( - 33 ) ) * 38 + SUM( ALL - 13 ) * 42 AS col2
----
-1724

skipif mysql # not compatible
query I rowsort label-8393
SELECT - NULLIF ( 31, 27 * 63 - - 68 + - ( - 33 ) ) * 38 + SUM ( ALL - 13 ) * 42 AS col2
----
-1724

query I rowsort
SELECT DISTINCT + ( - ( - 72 ) ) + - - 62 AS col1
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-8395
SELECT DISTINCT + 86 DIV + + 41
----
2

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT + 86 / + + 41
----
2

query I rowsort
SELECT DISTINCT 77 + + 93
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT ALL + SUM( + 10 ) + - 88 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL + SUM ( + 10 ) + - 88 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-8398
SELECT 24 * + SUM( + + 29 ) AS col0, 97
----
696
97

skipif mysql # not compatible
query II rowsort label-8398
SELECT 24 * + SUM ( + + 29 ) AS col0, 97
----
696
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT 33 * COUNT( DISTINCT - 19 )
----
33

skipif mysql # not compatible
query I rowsort label-8399
SELECT 33 * COUNT ( DISTINCT - 19 )
----
33

query I rowsort
SELECT 60 * 36 + - 97 - - 80 + - 65 AS col1
----
2078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8401
SELECT 26 AS col0, 31 * - + CAST( - 82 AS SIGNED ) + NULLIF ( MIN( DISTINCT - + 72 ), + 48 )
----
26
2470

skipif mysql # not compatible
query II rowsort label-8401
SELECT 26 AS col0, 31 * - + CAST ( - 82 AS INTEGER ) + NULLIF ( MIN ( DISTINCT - + 72 ), + 48 )
----
26
2470

query I rowsort
SELECT + 7 * - 58 * - - 79 + 75
----
-31999

query I rowsort
SELECT ALL - 6 * + 29
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT ALL - COUNT( + - 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL - COUNT ( + - 99 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT ALL 0 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL 0 + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT DISTINCT - 91 * - COALESCE ( - ( + + ( + ( - + COUNT( * ) ) ) ), - COUNT( * ) * - 89 + 33 * 49 ) * + 45
----
4095

skipif mysql # not compatible
query I rowsort label-8406
SELECT DISTINCT - 91 * - COALESCE ( - ( + + ( + ( - + COUNT ( * ) ) ) ), - COUNT ( * ) * - 89 + 33 * 49 ) * + 45
----
4095

query I rowsort
SELECT ALL - + ( + - 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT DISTINCT - - MAX( + + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT - - MAX ( + + 4 )
----
4

query I rowsort
SELECT ALL - ( + - 23 ) col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT + MIN( DISTINCT + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-8410
SELECT + MIN ( DISTINCT + 31 )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8411
SELECT - ( + + 1 ) DIV 35
----
0

skipif mysql # not compatible
query I rowsort label-8411
SELECT - ( + + 1 ) / 35
----
0

query I rowsort
SELECT 76 * + 37 + ( + 72 ) + + 15 + - + 36 * - 77 + 2
----
5673

query I rowsort
SELECT + ( - 52 )
----
-52

query II rowsort
SELECT - 42, + 7 AS col0
----
-42
7

query I rowsort
SELECT 38 * - 75
----
-2850

query I rowsort
SELECT ALL 30 * - 57 AS col0
----
-1710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8417
SELECT - ( + CAST( NULL AS SIGNED ) ) / - + 10 + + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8417
SELECT - ( + CAST ( NULL AS INTEGER ) ) / - + 10 + + 83 AS col1
----
NULL

query II rowsort
SELECT - - 14, + 75 + - 90 AS col0
----
14
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT ALL + COUNT( + 50 )
----
1

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL + COUNT ( + 50 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ALL + 34 * - - 20 - NULLIF ( - SUM( - COALESCE ( - + ( + 2 ), + + 93 ) ), 51 * 12 ) * - 77
----
526

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL + 34 * - - 20 - NULLIF ( - SUM ( - COALESCE ( - + ( + 2 ), + + 93 ) ), 51 * 12 ) * - 77
----
526

query I rowsort
SELECT ( - 57 ) + + - 54 + + - 75 AS col1
----
-186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8422
SELECT DISTINCT + CAST( 14 AS SIGNED ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT + CAST ( 14 AS INTEGER ) AS col1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-8423
SELECT + 36 DIV + COALESCE ( - 22, - 88 * + 73 * - ( + 29 ) ) + ( + COALESCE ( 68, - ( 92 ) ) ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-8423
SELECT + 36 / + COALESCE ( - 22, - 88 * + 73 * - ( + 29 ) ) + ( + COALESCE ( 68, - ( 92 ) ) ) AS col1
----
67

query I rowsort
SELECT ALL - 48 * - 75 AS col0
----
3600

query I rowsort
SELECT ALL + 90 * - 68
----
-6120

query I rowsort
SELECT ( + 74 ) + + ( 83 )
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT 44 + + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-8427
SELECT 44 + + COUNT ( * )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8428
SELECT DISTINCT 49 + + - 88 DIV 61 + - 98 DIV + 41 * ( COUNT( * ) ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8428
SELECT DISTINCT 49 + + - 88 / 61 + - 98 / + 41 * ( COUNT ( * ) ) AS col0
----
46

query I rowsort
SELECT ALL - ( 5 ) + + 14 * + 75
----
1045

query I rowsort
SELECT ALL + 9 + + 20 AS col0
----
29

query I rowsort
SELECT ( - CASE 99 WHEN - - 26 THEN - 58 * - 79 END ) - 96
----
NULL

query I rowsort
SELECT ALL + 0 * - - 94
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8433
SELECT COALESCE ( 0, - NULLIF ( 97, SUM( - + 57 ) * + - SUM( + 87 ) / + CAST( - 73 AS SIGNED ) + + 22 / - 84 + 95 ) * - 62 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8433
SELECT COALESCE ( 0, - NULLIF ( 97, SUM ( - + 57 ) * + - SUM ( + 87 ) / + CAST ( - 73 AS INTEGER ) + + 22 / - 84 + 95 ) * - 62 ) AS col2
----
0

query I rowsort
SELECT + 30 * - 47 AS col0
----
-1410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8435
SELECT - NULLIF ( NULLIF ( + - CAST( + MIN( DISTINCT + COALESCE ( - + 66, + CASE - 28 WHEN - 15 + + 3 THEN + 2 WHEN 49 * - 40 - CAST( + 5 AS SIGNED ) THEN 32 + 9 * - 83 ELSE - 96 END * + 76 ) ) AS SIGNED ), - SUM( - 90 ) + MIN( DISTINCT - 24 ) / - 17 ), - 15 ) * + NULLIF ( + NULLIF ( 37, 76 ) * 58 + 26, - 33 + 79 ) AS col0
----
-143352

skipif mysql # not compatible
query I rowsort label-8435
SELECT - NULLIF ( NULLIF ( + - CAST ( + MIN ( DISTINCT + COALESCE ( - + 66, + CASE - 28 WHEN - 15 + + 3 THEN + 2 WHEN 49 * - 40 - CAST ( + 5 AS INTEGER ) THEN 32 + 9 * - 83 ELSE - 96 END * + 76 ) ) AS INTEGER ), - SUM ( - 90 ) + MIN ( DISTINCT - 24 ) / - 17 ), - 15 ) * + NULLIF ( + NULLIF ( 37, 76 ) * 58 + 26, - 33 + 79 ) AS col0
----
-143352

query I rowsort
SELECT DISTINCT + 92 * + 57 * - - 59
----
309396

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT + NULLIF ( + 91, - COALESCE ( - + 46, 4 / - 59 * - + 44 + - MAX( - 46 ) ) * + 50 + - 24 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-8437
SELECT + NULLIF ( + 91, - COALESCE ( - + 46, 4 / - 59 * - + 44 + - MAX ( - 46 ) ) * + 50 + - 24 ) AS col0
----
91

query I rowsort
SELECT NULLIF ( 54, + - 14 )
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8439
SELECT + 3 DIV 89 - 52
----
-52

skipif mysql # not compatible
query I rowsort label-8439
SELECT + 3 / 89 - 52
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT COALESCE ( 6, + NULLIF ( 52, COUNT( * ) + - - COALESCE ( - 4, ( - 83 ) ) + - 3 ) + ( + 4 ) )
----
6

skipif mysql # not compatible
query I rowsort label-8440
SELECT COALESCE ( 6, + NULLIF ( 52, COUNT ( * ) + - - COALESCE ( - 4, ( - 83 ) ) + - 3 ) + ( + 4 ) )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8441
SELECT + 66 DIV - + 66 - - 29 - + 5 AS col2, - NULLIF ( - + 54, - 38 * - COUNT( * ) )
----
23
54

skipif mysql # not compatible
query II rowsort label-8441
SELECT + 66 / - + 66 - - 29 - + 5 AS col2, - NULLIF ( - + 54, - 38 * - COUNT ( * ) )
----
23
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8442
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8442
SELECT DISTINCT CAST ( NULL AS REAL ) * + 8
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8443
SELECT ALL + + 47 DIV + + 42 - 38 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL + + 47 / + + 42 - 38 AS col1
----
-37

query I rowsort
SELECT ALL + 51 * - + 91 * 33 - + 69 * + - ( 22 ) + 77 - + - 22 AS col0
----
-151536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8445
SELECT + 21 DIV - - COUNT( * ) + 92 - 56 + + 47 AS col0
----
104

skipif mysql # not compatible
query I rowsort label-8445
SELECT + 21 / - - COUNT ( * ) + 92 - 56 + + 47 AS col0
----
104

query I rowsort
SELECT ALL + COALESCE ( 49, 56 ) AS col1
----
49

query I rowsort
SELECT - 4 * - - 81 * + - 87
----
28188

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT - 48 + + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-8448
SELECT - 48 + + COUNT ( * )
----
-47

query I rowsort
SELECT ALL - 4 * 23 AS col1
----
-92

query I rowsort
SELECT + + 71 * - - 73 * + 33 + - 37
----
171002

query I rowsort
SELECT - + ( 56 ) * - ( + 79 ) * 67 + 82 + - ( - 64 ) - - 21 AS col2
----
296575

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT DISTINCT 19 * + - COUNT( - + 41 ) * + 55 + - ( - 75 ) AS col0
----
-970

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT 19 * + - COUNT ( - + 41 ) * + 55 + - ( - 75 ) AS col0
----
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT ALL COALESCE ( - 9, - CASE - COUNT( * ) WHEN + - 17 THEN NULL WHEN 81 THEN + 76 * 88 ELSE - 12 END * 65 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL COALESCE ( - 9, - CASE - COUNT ( * ) WHEN + - 17 THEN NULL WHEN 81 THEN + 76 * 88 ELSE - 12 END * 65 ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT - - 0 + - - 80 * - 68 + - + 70 + 45 * COUNT( * ) * - + MAX( DISTINCT - 98 )
----
-1100

skipif mysql # not compatible
query I rowsort label-8454
SELECT - - 0 + - - 80 * - 68 + - + 70 + 45 * COUNT ( * ) * - + MAX ( DISTINCT - 98 )
----
-1100

query II rowsort
SELECT - - 70 * 4 * 64 + 97 AS col2, + 71 * 70
----
18017
4970

query I rowsort
SELECT ALL + 19 + + 31 - + 65 AS col2
----
-15

query I rowsort
SELECT - 77 + ( 70 ) AS col1
----
-7

query I rowsort
SELECT - 79 * - ( + 65 ) * - 83
----
-426205

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT + CASE - + CAST( NULL AS SIGNED ) WHEN + 78 + + 22 / + 83 THEN NULL WHEN 98 * ( + + 38 ) + - + CAST( NULL AS SIGNED ) * 40 + + 80 * + AVG ( ALL 29 * + CAST( + 96 AS SIGNED ) ) THEN NULL WHEN 37 + 96 * 0 THEN + 35 * 77 ELSE NULL END + 6 * 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8459
SELECT + CASE - + CAST ( NULL AS INTEGER ) WHEN + 78 + + 22 / + 83 THEN NULL WHEN 98 * ( + + 38 ) + - + CAST ( NULL AS INTEGER ) * 40 + + 80 * + AVG ( ALL 29 * + CAST ( + 96 AS INTEGER ) ) THEN NULL WHEN 37 + 96 * 0 THEN + 35 * 77 ELSE NULL END + 6 * 39 AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( - 41 ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT ALL CASE CASE - - 99 WHEN + COUNT( * ) THEN COUNT( DISTINCT - 23 ) ELSE NULL END WHEN - 97 + + - 11 THEN NULL ELSE - + COUNT( ALL + - 31 ) * - 87 END + + 74 * 56
----
4231

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL CASE CASE - - 99 WHEN + COUNT ( * ) THEN COUNT ( DISTINCT - 23 ) ELSE NULL END WHEN - 97 + + - 11 THEN NULL ELSE - + COUNT ( ALL + - 31 ) * - 87 END + + 74 * 56
----
4231

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT - MAX( ALL + + 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-8462
SELECT - MAX ( ALL + + 46 )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8463
SELECT DISTINCT - 14 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT - 14 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 49 + + + NULLIF ( - 68, + - 78 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT ALL 60 * + - 66 * - COUNT( - + 13 ) AS col1
----
3960

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL 60 * + - 66 * - COUNT ( - + 13 ) AS col1
----
3960

query I rowsort
SELECT DISTINCT 72 + 69 AS col1
----
141

query I rowsort
SELECT + 19 * ( + ( - 27 ) )
----
-513

query I rowsort
SELECT + 30 + - 4 AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8469
SELECT + 36 - - - 4 + 51 * + CAST( + CAST( 11 AS SIGNED ) AS SIGNED ) - + CASE CAST( NULL AS SIGNED ) WHEN + 99 THEN - COUNT( * ) END * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8469
SELECT + 36 - - - 4 + 51 * + CAST ( + CAST ( 11 AS INTEGER ) AS INTEGER ) - + CASE CAST ( NULL AS INTEGER ) WHEN + 99 THEN - COUNT ( * ) END * 82
----
NULL

query II rowsort
SELECT - 74 AS col1, 5 * - 93 - - - 3 + - + 25
----
-74
-493

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8471
SELECT ALL 18 - - CASE 57 WHEN + 1 THEN NULL ELSE 3 DIV + COUNT( * ) END DIV + ( 11 ) AS col2, 89 * - - 6 col2
----
18
534

skipif mysql # not compatible
query II rowsort label-8471
SELECT ALL 18 - - CASE 57 WHEN + 1 THEN NULL ELSE 3 / + COUNT ( * ) END / + ( 11 ) AS col2, 89 * - - 6 col2
----
18
534

query I rowsort
SELECT DISTINCT ( - + 87 ) * 23
----
-2001

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8473
SELECT 97 * - 30 * + COUNT( * ) + - 69 + 57 DIV - + 48 col0
----
-2980

skipif mysql # not compatible
query I rowsort label-8473
SELECT 97 * - 30 * + COUNT ( * ) + - 69 + 57 / - + 48 col0
----
-2980

query I rowsort
SELECT ( - 71 ) col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8475
SELECT - CASE + - 0 WHEN COUNT( * ) THEN + + 66 + 44 - - 83 / + - 12 + + - 9 WHEN - ( ( + CAST( COUNT( * ) AS SIGNED ) ) ) THEN 4 * ( 84 ) + COUNT( * ) * - 36 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT - CASE + - 0 WHEN COUNT ( * ) THEN + + 66 + 44 - - 83 / + - 12 + + - 9 WHEN - ( ( + CAST ( COUNT ( * ) AS INTEGER ) ) ) THEN 4 * ( 84 ) + COUNT ( * ) * - 36 END + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT - 88 * + 92 * COUNT( * ) + + 73
----
-8023

skipif mysql # not compatible
query I rowsort label-8476
SELECT - 88 * + 92 * COUNT ( * ) + + 73
----
-8023

query I rowsort
SELECT DISTINCT - 8 * - + 27 AS col2
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT + COUNT( 71 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8478
SELECT + COUNT ( 71 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT - 99 * + - 22 + + 31 + - NULLIF ( + 34, CASE 11 WHEN 98 THEN - MIN( - 42 ) - - 60 END ) * + 78 AS col1
----
-443

skipif mysql # not compatible
query I rowsort label-8479
SELECT - 99 * + - 22 + + 31 + - NULLIF ( + 34, CASE 11 WHEN 98 THEN - MIN ( - 42 ) - - 60 END ) * + 78 AS col1
----
-443

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8480
SELECT - COUNT( * ) * - - CASE + CAST( - - COUNT( * ) AS SIGNED ) WHEN - 96 THEN - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8480
SELECT - COUNT ( * ) * - - CASE + CAST ( - - COUNT ( * ) AS INTEGER ) WHEN - 96 THEN - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT ALL - ( + 53 ) * CASE - 53 WHEN + - 42 + + + 27 / - 99 THEN 76 WHEN - 76 THEN - - 85 WHEN 44 THEN COUNT( * ) - COUNT( ALL 70 - + ( 96 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL - ( + 53 ) * CASE - 53 WHEN + - 42 + + + 27 / - 99 THEN 76 WHEN - 76 THEN - - 85 WHEN 44 THEN COUNT ( * ) - COUNT ( ALL 70 - + ( 96 ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT + 45 * - - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-8482
SELECT + 45 * - - COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8483
SELECT ALL - 59 * - COUNT( DISTINCT - - COALESCE ( + + 90, - 97 + 51 ) ), 7 * + - 92 AS col1
----
59
-644

skipif mysql # not compatible
query II rowsort label-8483
SELECT ALL - 59 * - COUNT ( DISTINCT - - COALESCE ( + + 90, - 97 + 51 ) ), 7 * + - 92 AS col1
----
59
-644

query I rowsort
SELECT DISTINCT + 48 * + - 63 AS col0
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT ALL + + ( SUM( ALL - 42 ) )
----
-42

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL + + ( SUM ( ALL - 42 ) )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8486
SELECT + COUNT( * ), - ( - 4 ) * 77 * 53 / 90 * + 83 + MAX( NULLIF ( - CAST( NULL AS DECIMAL ), + 6 ) ) + 42 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8486
SELECT + COUNT ( * ), - ( - 4 ) * 77 * 53 / 90 * + 83 + MAX ( NULLIF ( - CAST ( NULL AS REAL ), + 6 ) ) + 42 AS col0
----
1
NULL

query I rowsort
SELECT ALL - 14 * + 41 + - - 2 col2
----
-572

onlyif mysql # DIV for integer division: 
query I rowsort label-8488
SELECT ALL - - 2 DIV + 13 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL - - 2 / + 13 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT ALL - 81 * - 19 * - - 0 + - 85 + - 70 * - MAX( 77 ) + - 13 + COUNT( * ) + - + 39 * 74 col1
----
2407

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL - 81 * - 19 * - - 0 + - 85 + - 70 * - MAX ( 77 ) + - 13 + COUNT ( * ) + - + 39 * 74 col1
----
2407

onlyif mysql # DIV for integer division: 
query I rowsort label-8490
SELECT + - 59 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-8490
SELECT + - 59 / + 93
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8491
SELECT - 9 DIV - - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-8491
SELECT - 9 / - - COUNT ( * )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8492
SELECT ALL - 32 DIV 48 * + 54
----
0

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL - 32 / 48 * + 54
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8493
SELECT ALL + + 53 * + 26 + + 97, - COUNT( DISTINCT - 78 ) AS col1
----
1475
-1

skipif mysql # not compatible
query II rowsort label-8493
SELECT ALL + + 53 * + 26 + + 97, - COUNT ( DISTINCT - 78 ) AS col1
----
1475
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8494
SELECT - CAST( 16 AS SIGNED ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8494
SELECT - CAST ( 16 AS INTEGER ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT ALL + 50 * - - COUNT( * ) + - + 9 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-8495
SELECT ALL + 50 * - - COUNT ( * ) + - + 9 AS col0
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-8496
SELECT COUNT( * ) AS col2, + 45
----
1
45

skipif mysql # not compatible
query II rowsort label-8496
SELECT COUNT ( * ) AS col2, + 45
----
1
45

query I rowsort
SELECT DISTINCT + ( - 79 ) + 85 col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT ALL - 9 + + COUNT( * ) + + 17
----
9

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL - 9 + + COUNT ( * ) + + 17
----
9

query II rowsort
SELECT DISTINCT 55 AS col2, 76
----
55
76

query II rowsort
SELECT 27 + + 69, 96 AS col0
----
96
96

query II rowsort
SELECT 26 AS col0, 62
----
26
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT 36 + + + COUNT( NULLIF ( + + 82, 76 ) ) - - 99 * 39 AS col1
----
3898

skipif mysql # not compatible
query I rowsort label-8502
SELECT 36 + + + COUNT ( NULLIF ( + + 82, 76 ) ) - - 99 * 39 AS col1
----
3898

query I rowsort
SELECT 72 * - + 73 AS col1
----
-5256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8504
SELECT 78 + - SUM( ALL CAST( - 36 AS SIGNED ) ) AS col1
----
114

skipif mysql # not compatible
query I rowsort label-8504
SELECT 78 + - SUM ( ALL CAST ( - 36 AS INTEGER ) ) AS col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT DISTINCT 18 - 59 + - COUNT( * ) * 8 * 30 - - + 80
----
-201

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT 18 - 59 + - COUNT ( * ) * 8 * 30 - - + 80
----
-201

query II rowsort
SELECT DISTINCT 21 AS col0, + 17 AS col1
----
21
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8507
SELECT ALL 72 AS col2, + COUNT( * ) * 52 AS col1
----
72
52

skipif mysql # not compatible
query II rowsort label-8507
SELECT ALL 72 AS col2, + COUNT ( * ) * 52 AS col1
----
72
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8508
SELECT ALL 53 - - + 91 * + 14 * + MIN( ALL - 63 ) * + MAX( ALL + CAST( + + ( - 27 ) AS SIGNED ) )
----
2167127

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL 53 - - + 91 * + 14 * + MIN ( ALL - 63 ) * + MAX ( ALL + CAST ( + + ( - 27 ) AS INTEGER ) )
----
2167127

onlyif mysql # DIV for integer division: 
query I rowsort label-8509
SELECT DISTINCT - 65 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT - 65 / 86
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8510
SELECT 52 DIV + COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-8510
SELECT 52 / + COUNT ( * ) AS col1
----
52

query I rowsort
SELECT 87 * + ( + 41 ) AS col1
----
3567

query I rowsort
SELECT 58 - + - 72
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT COUNT( * ) * 93 - 16
----
77

skipif mysql # not compatible
query I rowsort label-8513
SELECT COUNT ( * ) * 93 - 16
----
77

query I rowsort
SELECT ALL - 79 * - - 90
----
-7110

query II rowsort
SELECT DISTINCT - 23 AS col2, - ( ( - 90 ) ) + - 71
----
-23
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8516
SELECT 10 / - - CAST( + + NULLIF ( + + COUNT( * ), + - COALESCE ( - + ( COUNT( * ) ), + 33, 1 ) ) AS SIGNED ) * - + CAST( - 80 AS SIGNED ) + 50 - + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8516
SELECT 10 / - - CAST ( + + NULLIF ( + + COUNT ( * ), + - COALESCE ( - + ( COUNT ( * ) ), + 33, 1 ) ) AS INTEGER ) * - + CAST ( - 80 AS INTEGER ) + 50 - + 10 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8517
SELECT + CAST( NULL AS DECIMAL ) * - 84 / - 13 * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8517
SELECT + CAST ( NULL AS REAL ) * - 84 / - 13 * + 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8518
SELECT ALL CAST( COUNT( ALL - 42 ) AS SIGNED ) + + ( - 77 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-8518
SELECT ALL CAST ( COUNT ( ALL - 42 ) AS INTEGER ) + + ( - 77 ) AS col1
----
-76

query I rowsort
SELECT ALL - 63 + - 39 AS col2
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT ALL 49 + + 78 * MAX( - ( + - 60 ) ) + + 27
----
4756

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL 49 + + 78 * MAX ( - ( + - 60 ) ) + + 27
----
4756

query I rowsort
SELECT DISTINCT - 36 + 3 + + 79 AS col1
----
46

query I rowsort
SELECT ALL + 3 + + 65 col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT + COUNT( * ) + - 96
----
-95

skipif mysql # not compatible
query I rowsort label-8523
SELECT + COUNT ( * ) + - 96
----
-95

query I rowsort
SELECT ALL + + 96 + - 71 + 15 * - 71 AS col0
----
-1040

query I rowsort
SELECT DISTINCT - + 33 * + ( - 48 )
----
1584

query I rowsort
SELECT ALL + 14 + - + 39
----
-25

query I rowsort
SELECT 37 + 63 + - + 1 * - - 34 col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8528
SELECT ALL - 50 DIV ( + + 67 ) * 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL - 50 / ( + + 67 ) * 86 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT ALL COUNT( * ) - - 55
----
56

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL COUNT ( * ) - - 55
----
56

query I rowsort
SELECT 53 * + 4 * - + ( - 43 ) AS col0
----
9116

query I rowsort
SELECT 50 * 45 + 9
----
2259

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8532
SELECT ALL + 51 DIV - - 60 AS col1, + COUNT( * ) * - + 7 + 6 + - 14 AS col1
----
0
-15

skipif mysql # not compatible
query II rowsort label-8532
SELECT ALL + 51 / - - 60 AS col1, + COUNT ( * ) * - + 7 + 6 + - 14 AS col1
----
0
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8533
SELECT COALESCE ( 91, - ( + COALESCE ( - ( 22 ), - 23 DIV - - 48 ) ), - 38 ) DIV 90 DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-8533
SELECT COALESCE ( 91, - ( + COALESCE ( - ( 22 ), - 23 / - - 48 ) ), - 38 ) / 90 / - 32
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8534
SELECT 72 + - + NULLIF ( 4, 87 - - 28 * + + AVG ( DISTINCT 20 ) ) DIV + - 12 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-8534
SELECT 72 + - + NULLIF ( 4, 87 - - 28 * + + AVG ( DISTINCT 20 ) ) / + - 12 AS col2
----
72

query I rowsort
SELECT DISTINCT + 33 * - 95 AS col0
----
-3135

query I rowsort
SELECT 68 + - + 58 * - 91 * + + 57 * - 4 AS col1
----
-1203316

query I rowsort
SELECT DISTINCT - 61 * - 1
----
61

query I rowsort
SELECT 58 + - 3 + 84 AS col0
----
139

query II rowsort
SELECT 68 + + 12, - 31 AS col2
----
80
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT 3 - 28 + - + 90 - - NULLIF ( - 78, - - ( + MAX( DISTINCT + 43 ) ) ) AS col0
----
-193

skipif mysql # not compatible
query I rowsort label-8540
SELECT 3 - 28 + - + 90 - - NULLIF ( - 78, - - ( + MAX ( DISTINCT + 43 ) ) ) AS col0
----
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT 66 + + COUNT( - - 49 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-8541
SELECT 66 + + COUNT ( - - 49 ) AS col2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8542
SELECT ALL - + NULLIF ( CAST( NULL AS SIGNED ), - 80 ) + + 75 * 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL - + NULLIF ( CAST ( NULL AS INTEGER ), - 80 ) + + 75 * 36 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 25 * 35
----
-875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8544
SELECT ALL + + COUNT( * ) * - 1 + - COALESCE ( - 62, + 19 * - CAST( NULL AS SIGNED ) * 65 ) - - - 91
----
-30

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL + + COUNT ( * ) * - 1 + - COALESCE ( - 62, + 19 * - CAST ( NULL AS INTEGER ) * 65 ) - - - 91
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8545
SELECT + COUNT( * ) / - 9 * CAST( NULL AS SIGNED ) + - ( 89 ) + - - 17 * - - 49 * 87 + - 29 + - COUNT( * ) * + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8545
SELECT + COUNT ( * ) / - 9 * CAST ( NULL AS INTEGER ) + - ( 89 ) + - - 17 * - - 49 * 87 + - 29 + - COUNT ( * ) * + 26 AS col1
----
NULL

query I rowsort
SELECT ALL 31 * + + 12 * + 14 + + 84
----
5292

onlyif mysql # DIV for integer division: 
query I rowsort label-8547
SELECT ALL + - 69 DIV 66
----
-1

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL + - 69 / 66
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT 35 + + 30 * + + 97 * - NULLIF ( - - 86, - 17 / - 52 + 42 + - MIN( DISTINCT + ( 46 ) ) * - 8 + 67 )
----
-250225

skipif mysql # not compatible
query I rowsort label-8548
SELECT 35 + + 30 * + + 97 * - NULLIF ( - - 86, - 17 / - 52 + 42 + - MIN ( DISTINCT + ( 46 ) ) * - 8 + 67 )
----
-250225

onlyif mysql # aggregate syntax: 
query II rowsort label-8549
SELECT + 3 * - COUNT( * ) AS col0, COUNT( * ) col2
----
-3
1

skipif mysql # not compatible
query II rowsort label-8549
SELECT + 3 * - COUNT ( * ) AS col0, COUNT ( * ) col2
----
-3
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8550
SELECT DISTINCT + - 19 * + - 58, + COUNT( DISTINCT - 36 ) * + ( 27 ) * - ( + + 43 ) AS col1
----
1102
-1161

skipif mysql # not compatible
query II rowsort label-8550
SELECT DISTINCT + - 19 * + - 58, + COUNT ( DISTINCT - 36 ) * + ( 27 ) * - ( + + 43 ) AS col1
----
1102
-1161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8551
SELECT ALL - 51 * - + COUNT( * ) + + CAST( NULL AS SIGNED ) + - - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL - 51 * - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - - 98
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8552
SELECT - - 29 * + 86 / + + 12 + + 49 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8552
SELECT - - 29 * + 86 / + + 12 + + 49 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8553
SELECT ALL + - MIN( + 71 ) * + 16 + + COUNT( * ) * + - 67 AS col2, 36 AS col0
----
-1203
36

skipif mysql # not compatible
query II rowsort label-8553
SELECT ALL + - MIN ( + 71 ) * + 16 + + COUNT ( * ) * + - 67 AS col2, 36 AS col0
----
-1203
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT DISTINCT - COUNT( 18 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT - COUNT ( 18 ) AS col0
----
-1

query I rowsort
SELECT 84 * + 72 - + - 89 + + 5 AS col2
----
6142

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT ALL - 80 - 80 + + 38 * + MAX( ALL - + 72 ) - + - NULLIF ( + COUNT( * ), - - 11 * + 67 - - - 86 ) AS col1
----
-2895

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL - 80 - 80 + + 38 * + MAX ( ALL - + 72 ) - + - NULLIF ( + COUNT ( * ), - - 11 * + 67 - - - 86 ) AS col1
----
-2895

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT COUNT( + 29 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8557
SELECT COUNT ( + 29 ) AS col2
----
1

query II rowsort
SELECT ALL + 91, + 46 AS col2
----
91
46

query II rowsort
SELECT ALL + 1 AS col2, - 42 AS col1
----
1
-42

query II rowsort
SELECT DISTINCT 5 AS col1, + 24 AS col2
----
5
24

query I rowsort
SELECT ALL 78 - - 17 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT DISTINCT MAX( ALL + - 60 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT MAX ( ALL + - 60 ) AS col2
----
-60

query II rowsort
SELECT DISTINCT ( - 80 ) * + + NULLIF ( 92, 37 ) * + 19 + - 5 + - 10 col2, 98 AS col1
----
-139855
98

onlyif mysql # aggregate syntax: 
query II rowsort label-8564
SELECT ALL COUNT( * ), COUNT( * ) * - 36 * - 92 AS col2
----
1
3312

skipif mysql # not compatible
query II rowsort label-8564
SELECT ALL COUNT ( * ), COUNT ( * ) * - 36 * - 92 AS col2
----
1
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT ALL MAX( - 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL MAX ( - 35 ) AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8566
SELECT + COALESCE ( 53, + ( + 30 ), + - 36 ) - + CAST( NULL AS SIGNED ) + - + 90 / + 66 AS col2, - COUNT( * ) * CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8566
SELECT + COALESCE ( 53, + ( + 30 ), + - 36 ) - + CAST ( NULL AS INTEGER ) + - + 90 / + 66 AS col2, - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

query I rowsort
SELECT ALL 42 * 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8568
SELECT - CASE WHEN ( + 22 ) BETWEEN 17 AND - - 72 + 31 THEN + 18 * + COUNT( * ) DIV - + 72 + + COALESCE ( + - 34, - + 13 ) WHEN NULL > NULLIF ( + 54, 96 * - 79 ) + - 32 THEN 59 ELSE + COALESCE ( CAST( - NULLIF ( - 47, 80 ) AS SIGNED ), + 79 ) END * 76 AS col2
----
2584

skipif mysql # not compatible
query I rowsort label-8568
SELECT - CASE WHEN ( + 22 ) BETWEEN 17 AND - - 72 + 31 THEN + 18 * + COUNT ( * ) / - + 72 + + COALESCE ( + - 34, - + 13 ) WHEN NULL > NULLIF ( + 54, 96 * - 79 ) + - 32 THEN 59 ELSE + COALESCE ( CAST ( - NULLIF ( - 47, 80 ) AS INTEGER ), + 79 ) END * 76 AS col2
----
2584

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT + COALESCE ( + 6, + - NULLIF ( + + 23, + - 53 + 27 ) + - - 72, ( + 95 ), - 10 * + COUNT( + + 68 ) * 88 ) * 59
----
354

skipif mysql # not compatible
query I rowsort label-8569
SELECT + COALESCE ( + 6, + - NULLIF ( + + 23, + - 53 + 27 ) + - - 72, ( + 95 ), - 10 * + COUNT ( + + 68 ) * 88 ) * 59
----
354

query I rowsort
SELECT + 76 + - + 37 + 14 AS col2
----
53

query II rowsort
SELECT - 34, + 82 AS col0
----
-34
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8572
SELECT ALL COUNT( * ), COUNT( DISTINCT - 68 ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-8572
SELECT ALL COUNT ( * ), COUNT ( DISTINCT - 68 ) AS col1
----
1
1

query II rowsort
SELECT + 94 * + 83 * - 80, + ( + + 99 ) - - + 88 AS col1
----
-624160
187

onlyif mysql # aggregate syntax: 
query II rowsort label-8574
SELECT ALL 0 + + ( 63 ) + - + MAX( ALL 29 ) * + 25 + 35 + - + 70 AS col0, + 70 * + - 84 AS col1
----
-697
-5880

skipif mysql # not compatible
query II rowsort label-8574
SELECT ALL 0 + + ( 63 ) + - + MAX ( ALL 29 ) * + 25 + 35 + - + 70 AS col0, + 70 * + - 84 AS col1
----
-697
-5880

query I rowsort
SELECT ALL + 88 * 56
----
4928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8576
SELECT DISTINCT - CAST( + + 84 AS SIGNED ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-8576
SELECT DISTINCT - CAST ( + + 84 AS INTEGER ) AS col0
----
-84

query I rowsort
SELECT - - 91 * - 35
----
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT - COUNT( * ) + COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8578
SELECT - COUNT ( * ) + COUNT ( * ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT ALL CASE - + 98 WHEN + - ( + 8 ) THEN + - 52 * - 41 + - 64 WHEN + 11 THEN NULL ELSE + - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL CASE - + 98 WHEN + - ( + 8 ) THEN + - 52 * - 41 + - 64 WHEN + 11 THEN NULL ELSE + - COUNT ( * ) END
----
-1

query II rowsort
SELECT - COALESCE ( + 10, 86 ), 36 AS col2
----
-10
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT ALL + COUNT( * ) + 99
----
100

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL + COUNT ( * ) + 99
----
100

query I rowsort
SELECT - 1 - 54 AS col2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8583
SELECT CAST( + CASE WHEN 60 NOT BETWEEN NULL AND + + COUNT( * ) THEN 90 END AS SIGNED ) AS col2, + 53 AS col1
----
90
53

skipif mysql # not compatible
query II rowsort label-8583
SELECT CAST ( + CASE WHEN 60 NOT BETWEEN NULL AND + + COUNT ( * ) THEN 90 END AS INTEGER ) AS col2, + 53 AS col1
----
90
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8584
SELECT DISTINCT + 54 DIV - 70 + - - 93
----
93

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT + 54 / - 70 + - - 93
----
93

query I rowsort
SELECT + 88 * + 79 * + 34 * - 19
----
-4490992

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT ALL + - COUNT( 5 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL + - COUNT ( 5 ) col2
----
-1

query I rowsort
SELECT - + 64 * - 68 + - 93
----
4259

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT ALL + MAX( ALL - 62 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL + MAX ( ALL - 62 ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT ALL + 20 * + COUNT( * ) - + + 61 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL + 20 * + COUNT ( * ) - + + 61 AS col2
----
-41

query I rowsort
SELECT ALL 3 * - 35
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT + COALESCE ( + CASE + NULLIF ( COUNT( - + 44 ), + - 73 + + 96 ) WHEN + - COUNT( * ) THEN + 87 END, 7 + + + 71 )
----
78

skipif mysql # not compatible
query I rowsort label-8591
SELECT + COALESCE ( + CASE + NULLIF ( COUNT ( - + 44 ), + - 73 + + 96 ) WHEN + - COUNT ( * ) THEN + 87 END, 7 + + + 71 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT + + MIN( + 12 ) * - 72 col2
----
-864

skipif mysql # not compatible
query I rowsort label-8592
SELECT + + MIN ( + 12 ) * - 72 col2
----
-864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8593
SELECT ALL + 50 * + 9 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8593
SELECT ALL + 50 * + 9 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT CASE COALESCE ( - - NULLIF ( - ( + - 96 ), + + 35 ), + 18, + + 79 ) WHEN 82 THEN 93 WHEN - MIN( DISTINCT 79 ) - + - COUNT( * ) + AVG ( DISTINCT + 10 ) THEN NULL ELSE + 83 - - 44 END AS col0
----
127

skipif mysql # not compatible
query I rowsort label-8594
SELECT CASE COALESCE ( - - NULLIF ( - ( + - 96 ), + + 35 ), + 18, + + 79 ) WHEN 82 THEN 93 WHEN - MIN ( DISTINCT 79 ) - + - COUNT ( * ) + AVG ( DISTINCT + 10 ) THEN NULL ELSE + 83 - - 44 END AS col0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT MAX( DISTINCT + 76 ) * + 92 * + + 69 + NULLIF ( 38, - - ( - ( - - 57 ) ) * + 93 ) + + 21 col1
----
482507

skipif mysql # not compatible
query I rowsort label-8595
SELECT MAX ( DISTINCT + 76 ) * + 92 * + + 69 + NULLIF ( 38, - - ( - ( - - 57 ) ) * + 93 ) + + 21 col1
----
482507

query I rowsort
SELECT ALL 2 * - ( - + 8 ) * + 38 col1
----
608

query I rowsort
SELECT NULLIF ( 68, - 27 )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-8598
SELECT + COUNT( * ) + + - ( NULLIF ( COUNT( * ), - 85 ) ), 4 AS col0
----
0
4

skipif mysql # not compatible
query II rowsort label-8598
SELECT + COUNT ( * ) + + - ( NULLIF ( COUNT ( * ), - 85 ) ), 4 AS col0
----
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT ALL + ( 24 ) * CASE + 96 WHEN + 5 THEN - 3 WHEN + - ( - ( - 59 ) ) / 48 * NULLIF ( - - 19, - ( + - 10 ) ) + COUNT( * ) THEN 85 END + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL + ( 24 ) * CASE + 96 WHEN + 5 THEN - 3 WHEN + - ( - ( - 59 ) ) / 48 * NULLIF ( - - 19, - ( + - 10 ) ) + COUNT ( * ) THEN 85 END + 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT - MIN( + - 30 )
----
30

skipif mysql # not compatible
query I rowsort label-8600
SELECT - MIN ( + - 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT ALL 33 * + 80 + + COUNT( * )
----
2641

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL 33 * + 80 + + COUNT ( * )
----
2641

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8602
SELECT ALL CAST( NULL AS SIGNED ) * + - 67 + + 75 * - ( + ( 60 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL CAST ( NULL AS INTEGER ) * + - 67 + + 75 * - ( + ( 60 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT MAX( ALL + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-8603
SELECT MAX ( ALL + 86 )
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8604
SELECT + 18 + + - 41 + 49 + 27 DIV - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8604
SELECT + 18 + + - 41 + 49 + 27 / - COUNT ( * )
----
-1

query I rowsort
SELECT + 82 + 18 AS col2
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8606
SELECT + ( + + COALESCE ( + + 23, + 51, + MIN( DISTINCT - + 1 ) * - 1 ) ) DIV - 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8606
SELECT + ( + + COALESCE ( + + 23, + 51, + MIN ( DISTINCT - + 1 ) * - 1 ) ) / - 51 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT ALL 0 + - MIN( - 0 ) + - 59
----
-59

skipif mysql # not compatible
query I rowsort label-8607
SELECT ALL 0 + - MIN ( - 0 ) + - 59
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT ALL 59 + - 73 * - COUNT( * )
----
132

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL 59 + - 73 * - COUNT ( * )
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT DISTINCT COALESCE ( + 23, - 40, + - 98 + - COUNT( * ) * - 58 * - 92 * - - 58, 58 ) * - 10 AS col0
----
-230

skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT COALESCE ( + 23, - 40, + - 98 + - COUNT ( * ) * - 58 * - 92 * - - 58, 58 ) * - 10 AS col0
----
-230

query I rowsort
SELECT ALL 82 + 76 * - 53 AS col1
----
-3946

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT ALL + COUNT( * ) * - 78 + 3
----
-75

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL + COUNT ( * ) * - 78 + 3
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-8612
SELECT + 19 + 26 col2, - 36 * - COUNT( * ) AS col2
----
45
36

skipif mysql # not compatible
query II rowsort label-8612
SELECT + 19 + 26 col2, - 36 * - COUNT ( * ) AS col2
----
45
36

query I rowsort
SELECT + 85 + + 90 - - 39 + + 37 * + 69 AS col2
----
2767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8614
SELECT DISTINCT COALESCE ( - COUNT( + 83 ), + + ( - COUNT( * ) ), + 41 DIV + + MAX( ALL + - 20 ) DIV - + CAST( 13 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8614
SELECT DISTINCT COALESCE ( - COUNT ( + 83 ), + + ( - COUNT ( * ) ), + 41 / + + MAX ( ALL + - 20 ) / - + CAST ( 13 AS INTEGER ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8615
SELECT - + ( + + 59 ) - + 41 * CAST( NULL AS SIGNED ) AS col1, ( - COUNT( * ) ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8615
SELECT - + ( + + 59 ) - + 41 * CAST ( NULL AS INTEGER ) AS col1, ( - COUNT ( * ) ) AS col2
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT DISTINCT + - 64 - - MAX( ALL - 23 ) + MIN( + + 52 ) + - 19
----
-54

skipif mysql # not compatible
query I rowsort label-8616
SELECT DISTINCT + - 64 - - MAX ( ALL - 23 ) + MIN ( + + 52 ) + - 19
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8617
SELECT ALL - + 1 / + CAST( NULL AS SIGNED ) + 56 - 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL - + 1 / + CAST ( NULL AS INTEGER ) + 56 - 96 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8618
SELECT DISTINCT 86 - + + 24 AS col1, + 90 DIV + 53 - 93 + - COUNT( * ) AS col1
----
62
-93

skipif mysql # not compatible
query II rowsort label-8618
SELECT DISTINCT 86 - + + 24 AS col1, + 90 / + 53 - 93 + - COUNT ( * ) AS col1
----
62
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8619
SELECT - - 92 * - 70 * + + CAST( - + 1 AS SIGNED ) * + 20 + - 72
----
128728

skipif mysql # not compatible
query I rowsort label-8619
SELECT - - 92 * - 70 * + + CAST ( - + 1 AS INTEGER ) * + 20 + - 72
----
128728

onlyif mysql # DIV for integer division: 
query I rowsort label-8620
SELECT 44 DIV + - 4 + 7
----
-4

skipif mysql # not compatible
query I rowsort label-8620
SELECT 44 / + - 4 + 7
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT + CASE + 5 WHEN - 53 THEN - 32 + + + 33 ELSE + + 38 - - 20 + ( - CASE + - COALESCE ( - 48, - 52, - 16 ) WHEN COUNT( * ) THEN 61 * + 89 END ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8621
SELECT + CASE + 5 WHEN - 53 THEN - 32 + + + 33 ELSE + + 38 - - 20 + ( - CASE + - COALESCE ( - 48, - 52, - 16 ) WHEN COUNT ( * ) THEN 61 * + 89 END ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT 67 + 12 - - COUNT( * ) * - - COALESCE ( - 32, + COUNT( * ) * COUNT( * ) )
----
47

skipif mysql # not compatible
query I rowsort label-8622
SELECT 67 + 12 - - COUNT ( * ) * - - COALESCE ( - 32, + COUNT ( * ) * COUNT ( * ) )
----
47

query I rowsort
SELECT 54 * + 93 + + 1 AS col0
----
5023

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8624
SELECT COUNT( * ) + + 99 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8624
SELECT COUNT ( * ) + + 99 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT DISTINCT - CASE 28 WHEN - 35 THEN - 36 ELSE 37 + + COUNT( + - NULLIF ( + 57, - 86 * + - 63 ) ) END
----
-38

skipif mysql # not compatible
query I rowsort label-8625
SELECT DISTINCT - CASE 28 WHEN - 35 THEN - 36 ELSE 37 + + COUNT ( + - NULLIF ( + 57, - 86 * + - 63 ) ) END
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT ALL - ( + NULLIF ( + COUNT( * ), - + 23 * - 48 * + 93 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL - ( + NULLIF ( + COUNT ( * ), - + 23 * - 48 * + 93 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT DISTINCT - COALESCE ( - SUM( 16 ), - 64 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-8627
SELECT DISTINCT - COALESCE ( - SUM ( 16 ), - 64 ) AS col0
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8628
SELECT ALL + 19 DIV - COUNT( * ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL + 19 / - COUNT ( * ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT DISTINCT - NULLIF ( + 42, COUNT( * ) )
----
-42

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT - NULLIF ( + 42, COUNT ( * ) )
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-8630
SELECT ALL - COUNT( * ), + 93 AS col1
----
-1
93

skipif mysql # not compatible
query II rowsort label-8630
SELECT ALL - COUNT ( * ), + 93 AS col1
----
-1
93

query I rowsort
SELECT 46 * COALESCE ( - - ( - - 11 ), 44 + + 63 * + 98 ) col2
----
506

query I rowsort
SELECT 81 * + 57
----
4617

onlyif mysql # DIV for integer division: 
query I rowsort label-8633
SELECT ALL - 20 + + 16 + 56 DIV + 25 + 90 col0
----
88

skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL - 20 + + 16 + 56 / + 25 + 90 col0
----
88

query I rowsort
SELECT ALL + 47 * - 53
----
-2491

query I rowsort
SELECT 68 * + 4 AS col2
----
272

query I rowsort
SELECT 71 * + 37 col1
----
2627

query I rowsort
SELECT 6 * - 27
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT DISTINCT COUNT( * ) + - 39 col1
----
-38

skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT COUNT ( * ) + - 39 col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT ALL + 57 + COALESCE ( - - 9, - COUNT( * ), 8 * 0 )
----
66

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL + 57 + COALESCE ( - - 9, - COUNT ( * ), 8 * 0 )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8640
SELECT ALL CASE 8 WHEN + CASE MAX( - 73 ) WHEN + 60 THEN - - COUNT( * ) * + + 62 + + 11 END + + 67 THEN NULL ELSE - COUNT( 3 ) + COALESCE ( + 68, + 62 ) + + MAX( DISTINCT 19 ) DIV 93 END + 63 AS col2
----
130

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL CASE 8 WHEN + CASE MAX ( - 73 ) WHEN + 60 THEN - - COUNT ( * ) * + + 62 + + 11 END + + 67 THEN NULL ELSE - COUNT ( 3 ) + COALESCE ( + 68, + 62 ) + + MAX ( DISTINCT 19 ) / 93 END + 63 AS col2
----
130

query I rowsort
SELECT 96 * + 7 AS col2
----
672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8642
SELECT 3 + CASE 97 WHEN + NULLIF ( + 60, - + SUM( 27 ) ) * + - 56 + - COUNT( * ) * - 93 + + 65 + COUNT( ALL - 54 ) + + + 59 - - - CASE - 43 WHEN + SUM( + 16 ) THEN NULL WHEN 35 + 24 THEN 49 * CAST( NULL AS SIGNED ) WHEN 91 * + 69 THEN + COUNT( * ) / 78 + + ( + 84 ) WHEN - 79 THEN NULL END / 82 THEN COUNT( * ) * + 90 WHEN 6 THEN 19 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8642
SELECT 3 + CASE 97 WHEN + NULLIF ( + 60, - + SUM ( 27 ) ) * + - 56 + - COUNT ( * ) * - 93 + + 65 + COUNT ( ALL - 54 ) + + + 59 - - - CASE - 43 WHEN + SUM ( + 16 ) THEN NULL WHEN 35 + 24 THEN 49 * CAST ( NULL AS INTEGER ) WHEN 91 * + 69 THEN + COUNT ( * ) / 78 + + ( + 84 ) WHEN - 79 THEN NULL END / 82 THEN COUNT ( * ) * + 90 WHEN 6 THEN 19 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT NULLIF ( + ( SUM( + 91 ) ), - AVG ( + 4 ) * COUNT( * ) ) - - - 33 + - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-8643
SELECT NULLIF ( + ( SUM ( + 91 ) ), - AVG ( + 4 ) * COUNT ( * ) ) - - - 33 + - COUNT ( * )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8644
SELECT ALL + CAST( + ( + 73 ) AS SIGNED ) + + + 7
----
80

skipif mysql # not compatible
query I rowsort label-8644
SELECT ALL + CAST ( + ( + 73 ) AS INTEGER ) + + + 7
----
80

query I rowsort
SELECT ALL 91 + + - 25
----
66

query II rowsort
SELECT - ( 89 ) + - 27 + 33 + - + 40, + 65 AS col0
----
-123
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT 64 + + NULLIF ( 81, - COUNT( * ) )
----
145

skipif mysql # not compatible
query I rowsort label-8647
SELECT 64 + + NULLIF ( 81, - COUNT ( * ) )
----
145

query I rowsort
SELECT + 57 - 52 * + 14 + 88 AS col0
----
-583

query I rowsort
SELECT 13 * + 78 + 11
----
1025

query I rowsort
SELECT ALL 49 * - ( + 91 ) * - 60 + + 99 col0
----
267639

query I rowsort
SELECT ALL - 95 - - 2 - + - 77 + 60 * + 86 + + 25 col1
----
5169

query II rowsort
SELECT ALL 69, 87 AS col2
----
69
87

query I rowsort
SELECT DISTINCT + 25 * + 81 col2
----
2025

query I rowsort
SELECT - 37 + + ( - 75 ) + 23 AS col2
----
-89

query I rowsort
SELECT - 46 * + - 56 * - 28
----
-72128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8656
SELECT ALL + COUNT( * ) DIV + 26 * 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL + COUNT ( * ) / + 26 * 27 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT - 74 * - NULLIF ( 0, - 70 ) * - 92 + ( + 57 ) + + NULLIF ( ( 20 ), 2 * - SUM( 18 ) - - 46 * + 71 )
----
77

skipif mysql # not compatible
query I rowsort label-8657
SELECT - 74 * - NULLIF ( 0, - 70 ) * - 92 + ( + 57 ) + + NULLIF ( ( 20 ), 2 * - SUM ( 18 ) - - 46 * + 71 )
----
77

query II rowsort
SELECT + CASE - 36 WHEN - ( - - 91 ) THEN NULL ELSE 5 END, 63 AS col1
----
5
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT + MIN( ALL - COALESCE ( + 57, - 93 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-8659
SELECT + MIN ( ALL - COALESCE ( + 57, - 93 ) )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8660
SELECT ALL - 87 + + - COUNT( - - 15 ) + - COUNT( * ) + - COUNT( * ) * + 2 / - 19 * 18 / - CAST( NULL AS SIGNED ) * - - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL - 87 + + - COUNT ( - - 15 ) + - COUNT ( * ) + - COUNT ( * ) * + 2 / - 19 * 18 / - CAST ( NULL AS INTEGER ) * - - 17 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8661
SELECT + 53 AS col1, - 43 - + + 29 + - ( + - 59 ) DIV + ( 77 ) * + - 93 + - + 52 AS col2
----
53
-124

skipif mysql # not compatible
query II rowsort label-8661
SELECT + 53 AS col1, - 43 - + + 29 + - ( + - 59 ) / + ( 77 ) * + - 93 + - + 52 AS col2
----
53
-124

query I rowsort
SELECT ALL + 61 + + - ( + 19 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT 96 + CASE - 22 WHEN - NULLIF ( + - ( - 73 ), COUNT( * ) - + ( MIN( + ( + + ( + 99 ) ) ) ) ) THEN 1 END - - COALESCE ( - - 36, 64 ) * - NULLIF ( 5, + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8663
SELECT 96 + CASE - 22 WHEN - NULLIF ( + - ( - 73 ), COUNT ( * ) - + ( MIN ( + ( + + ( + 99 ) ) ) ) ) THEN 1 END - - COALESCE ( - - 36, 64 ) * - NULLIF ( 5, + 66 )
----
NULL

query I rowsort
SELECT DISTINCT + 44 + 95 + 29 AS col2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT - ( 14 ) * + + 84 + + + 73 * - - 47 * + 17 + + + 45 * + MAX( ALL 29 )
----
58456

skipif mysql # not compatible
query I rowsort label-8665
SELECT - ( 14 ) * + + 84 + + + 73 * - - 47 * + 17 + + + 45 * + MAX ( ALL 29 )
----
58456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8666
SELECT DISTINCT - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) * - - 45 * 20 * - + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-8666
SELECT DISTINCT - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - - 45 * 20 * - + 9
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8667
SELECT 58 DIV + 25
----
2

skipif mysql # not compatible
query I rowsort label-8667
SELECT 58 / + 25
----
2

query I rowsort
SELECT - + ( - 30 ) AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8669
SELECT CAST( NULL AS SIGNED ) + CAST( COALESCE ( - COUNT( ALL - 63 ), + NULLIF ( - 62, 30 ) ) AS SIGNED ) + - - 85 AS col1, - 58
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-8669
SELECT CAST ( NULL AS INTEGER ) + CAST ( COALESCE ( - COUNT ( ALL - 63 ), + NULLIF ( - 62, 30 ) ) AS INTEGER ) + - - 85 AS col1, - 58
----
NULL
-58

query I rowsort
SELECT NULLIF ( - + 79, + 77 * - 50 * + 30 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT ALL + - COALESCE ( + COUNT( * ), 92, + + 89 ) * - - 19 + - + 14 + - + 71
----
-104

skipif mysql # not compatible
query I rowsort label-8671
SELECT ALL + - COALESCE ( + COUNT ( * ), 92, + + 89 ) * - - 19 + - + 14 + - + 71
----
-104

query I rowsort
SELECT - 8 * - 36 AS col1
----
288

query I rowsort
SELECT + - 2 + + 84 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL + COALESCE ( + MAX( 38 ), + 27 + - 86, + - SUM( DISTINCT - + 22 ) )
----
38

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL + COALESCE ( + MAX ( 38 ), + 27 + - 86, + - SUM ( DISTINCT - + 22 ) )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT - CASE + 77 WHEN + 67 THEN 59 * - ( - MAX( 90 ) ) + - CASE - 31 WHEN - 78 * - 76 THEN NULL ELSE + + 79 * + COUNT( * ) END + - 34 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8675
SELECT - CASE + 77 WHEN + 67 THEN 59 * - ( - MAX ( 90 ) ) + - CASE - 31 WHEN - 78 * - 76 THEN NULL ELSE + + 79 * + COUNT ( * ) END + - 34 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8676
SELECT + + 27 + - + CASE - - CAST( 91 AS SIGNED ) WHEN - + ( - COUNT( * ) ) THEN + 52 END + - 59 * + 46 + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-8676
SELECT + + 27 + - + CASE - - CAST ( 91 AS INTEGER ) WHEN - + ( - COUNT ( * ) ) THEN + 52 END + - 59 * + 46 + + 75
----
NULL

query I rowsort
SELECT - - ( - 53 ) + + - 30 AS col1
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8678
SELECT + - 52 * COUNT( CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8678
SELECT + - 52 * COUNT ( CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8679
SELECT + ( CAST( - 24 AS SIGNED ) ) - - + 59
----
35

skipif mysql # not compatible
query I rowsort label-8679
SELECT + ( CAST ( - 24 AS INTEGER ) ) - - + 59
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8680
SELECT - - CAST( 3 AS SIGNED ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8680
SELECT - - CAST ( 3 AS INTEGER ) AS col2
----
3

query I rowsort
SELECT - 97 + ( - 65 )
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT + 66 + - ( - COUNT( * ) ) col0
----
67

skipif mysql # not compatible
query I rowsort label-8682
SELECT + 66 + - ( - COUNT ( * ) ) col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT ALL 50 * - SUM( - - 86 )
----
-4300

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL 50 * - SUM ( - - 86 )
----
-4300

query I rowsort
SELECT DISTINCT - 70 * 30
----
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT ( - MAX( DISTINCT + + ( - - 80 ) ) )
----
-80

skipif mysql # not compatible
query I rowsort label-8685
SELECT ( - MAX ( DISTINCT + + ( - - 80 ) ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT ALL COUNT( * ) * - 34 + - 38
----
-72

skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL COUNT ( * ) * - 34 + - 38
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-8687
SELECT 56 DIV - 43 + 93 + - 5
----
87

skipif mysql # not compatible
query I rowsort label-8687
SELECT 56 / - 43 + 93 + - 5
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT ALL 72 * + COUNT( * ) + + 81 + - 88 * - COUNT( * ) col2
----
241

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL 72 * + COUNT ( * ) + + 81 + - 88 * - COUNT ( * ) col2
----
241

query II rowsort
SELECT ( - 3 ), + 0 AS col1
----
-3
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8690
SELECT + CAST( NULL AS DECIMAL ) + - COALESCE ( 1, + 69 + - COUNT( * ) ) * - NULLIF ( - COUNT( * ), - 25 * - 8 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT + CAST ( NULL AS REAL ) + - COALESCE ( 1, + 69 + - COUNT ( * ) ) * - NULLIF ( - COUNT ( * ), - 25 * - 8 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT + MIN( + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-8691
SELECT + MIN ( + 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT + COUNT( * ) * + - 73
----
-73

skipif mysql # not compatible
query I rowsort label-8692
SELECT + COUNT ( * ) * + - 73
----
-73

query I rowsort
SELECT + 9 * + 41 + - - 50
----
419

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8694
SELECT 57 * - CAST( NULL AS DECIMAL ) / + - 83 + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8694
SELECT 57 * - CAST ( NULL AS REAL ) / + - 83 + - 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8695
SELECT CASE CASE - - MAX( ALL + 84 ) WHEN - COUNT( * ) * - ( + + COUNT( * ) ) THEN + 11 * + - CAST( + - COUNT( * ) AS SIGNED ) END WHEN + - ( - - 80 ) THEN + - 20 * + 7 ELSE + NULLIF ( + 71, + - 60 * 20 ) END
----
71

skipif mysql # not compatible
query I rowsort label-8695
SELECT CASE CASE - - MAX ( ALL + 84 ) WHEN - COUNT ( * ) * - ( + + COUNT ( * ) ) THEN + 11 * + - CAST ( + - COUNT ( * ) AS INTEGER ) END WHEN + - ( - - 80 ) THEN + - 20 * + 7 ELSE + NULLIF ( + 71, + - 60 * 20 ) END
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8696
SELECT ALL + 51 * COUNT( + 14 ) * CAST( NULL AS SIGNED ) + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL + 51 * COUNT ( + 14 ) * CAST ( NULL AS INTEGER ) + - 4
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8697
SELECT ALL 77 DIV + COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL 77 / + COUNT ( * ) AS col0
----
77

query I rowsort
SELECT + 47 * + - 19
----
-893

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT ALL - SUM( 4 ) * - 25 * - + ( - COUNT( * ) ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL - SUM ( 4 ) * - 25 * - + ( - COUNT ( * ) ) AS col1
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8700
SELECT + ( - + 94 ), + MAX( CAST( + 3 AS SIGNED ) ) AS col1
----
-94
3

skipif mysql # not compatible
query II rowsort label-8700
SELECT + ( - + 94 ), + MAX ( CAST ( + 3 AS INTEGER ) ) AS col1
----
-94
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT ALL 23 * - 7 * COUNT( * ) * - SUM( + 38 ) AS col1
----
6118

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL 23 * - 7 * COUNT ( * ) * - SUM ( + 38 ) AS col1
----
6118

query I rowsort
SELECT + 56 - - COALESCE ( - ( - + ( - 15 ) ), - 22 * 88, - + 60 - 12 + - 77 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT DISTINCT + NULLIF ( 52, + + COALESCE ( - + 41, + COUNT( * ) ) + - NULLIF ( 93, - 66 * - 67 ) )
----
52

skipif mysql # not compatible
query I rowsort label-8703
SELECT DISTINCT + NULLIF ( 52, + + COALESCE ( - + 41, + COUNT ( * ) ) + - NULLIF ( 93, - 66 * - 67 ) )
----
52

query II rowsort
SELECT ALL + 58 * + 84 - + COALESCE ( 71, + - 53 ) AS col2, 36
----
4801
36

query II rowsort
SELECT ALL + + 82 * + - 62 AS col1, 63
----
-5084
63

query I rowsort
SELECT - - 31 * - - 10
----
310

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT 73 * - NULLIF ( - - 24, + + MIN( ALL - 98 ) ) - COUNT( * )
----
-1753

skipif mysql # not compatible
query I rowsort label-8707
SELECT 73 * - NULLIF ( - - 24, + + MIN ( ALL - 98 ) ) - COUNT ( * )
----
-1753

query I rowsort
SELECT DISTINCT + COALESCE ( + 73, + + 56 )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8709
SELECT ALL + ( - + COALESCE ( + 32, - - 60, 27 * COALESCE ( + 46, - CAST( 74 AS SIGNED ) * - 43 + + COUNT( * ), + 59 + 77 + - COUNT( * ) + - 29 + + 60 * - 75 * 61 ) * + 6 + 25 * - COUNT( * ) ) ) * 37
----
-1184

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL + ( - + COALESCE ( + 32, - - 60, 27 * COALESCE ( + 46, - CAST ( 74 AS INTEGER ) * - 43 + + COUNT ( * ), + 59 + 77 + - COUNT ( * ) + - 29 + + 60 * - 75 * 61 ) * + 6 + 25 * - COUNT ( * ) ) ) * 37
----
-1184

query I rowsort
SELECT - 67 * + - 45 + + 78 * - 41 AS col1
----
-183

query I rowsort
SELECT - - 52 col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8712
SELECT DISTINCT ( - COUNT( + + CAST( + - 2 AS SIGNED ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT ( - COUNT ( + + CAST ( + - 2 AS INTEGER ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT ALL + COUNT( * ) + + ( - 31 ) * 57 AS col2
----
-1766

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL + COUNT ( * ) + + ( - 31 ) * 57 AS col2
----
-1766

onlyif mysql # aggregate syntax: 
query II rowsort label-8714
SELECT - MIN( + + 18 ) AS col2, - 36 AS col1
----
-18
-36

skipif mysql # not compatible
query II rowsort label-8714
SELECT - MIN ( + + 18 ) AS col2, - 36 AS col1
----
-18
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT ALL - + COUNT( * ) + - 31 - - 30 + - 42 + + 23 * COUNT( ALL - + 15 ) + - + 84 - + - 65 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL - + COUNT ( * ) + - 31 - - 30 + - 42 + + 23 * COUNT ( ALL - + 15 ) + - + 84 - + - 65 AS col2
----
-40

query I rowsort
SELECT DISTINCT + 82 + - 23 * - 93 + - 21
----
2200

onlyif mysql # DIV for integer division: 
query I rowsort label-8717
SELECT - + 55 DIV 8 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-8717
SELECT - + 55 / 8 AS col2
----
-6

query I rowsort
SELECT ALL ( + 89 ) AS col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8719
SELECT - 25 - CAST( NULL AS SIGNED ) + - COUNT( * ) / - ( 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8719
SELECT - 25 - CAST ( NULL AS INTEGER ) + - COUNT ( * ) / - ( 33 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8720
SELECT 24 AS col1, COUNT( DISTINCT - - 36 ) AS col0
----
24
1

skipif mysql # not compatible
query II rowsort label-8720
SELECT 24 AS col1, COUNT ( DISTINCT - - 36 ) AS col0
----
24
1

query II rowsort
SELECT 59 col2, - 11 AS col1
----
59
-11

query I rowsort
SELECT ALL + 61 + - 16
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8723
SELECT + NULLIF ( COALESCE ( + + 44, - CAST( - - 23 AS SIGNED ) DIV - - 46 * + COUNT( * ), + 24 * + - 81 + + ( 47 ) + - + MAX( 73 ) * - 69 * + + MAX( - 9 ) ), 37 ) * 37 + 14 * + 76 + 14 * 26
----
3056

skipif mysql # not compatible
query I rowsort label-8723
SELECT + NULLIF ( COALESCE ( + + 44, - CAST ( - - 23 AS INTEGER ) / - - 46 * + COUNT ( * ), + 24 * + - 81 + + ( 47 ) + - + MAX ( 73 ) * - 69 * + + MAX ( - 9 ) ), 37 ) * 37 + 14 * + 76 + 14 * 26
----
3056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8724
SELECT ALL CAST( + 19 AS DECIMAL ) / COUNT( * ) + + 44 + + COUNT( * ) / - - CAST( NULL AS SIGNED ) * 51 * + ( - ( - CASE - + CASE - 67 WHEN + 69 + + - ( - 41 ) THEN NULL WHEN ( 88 ) THEN + 44 * 40 END WHEN + 4 THEN - NULLIF ( 3, CAST( NULL AS DECIMAL ) + - 32 ) * 93 + 74 / CASE ( 2 ) WHEN + NULLIF ( - 43, + 78 ) / + 87 + + 25 THEN SUM( ALL - COALESCE ( 91, ( + 13 ), 51 * - CASE + 68 WHEN 65 + + 12 THEN + 7 + + 83 * 57 WHEN + CAST( 57 AS DECIMAL ) THEN + 79 * - 2 WHEN - 76 THEN NULL ELSE NULL END, 34 ) ) WHEN 18 THEN NULL END END ) ) * 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL CAST ( + 19 AS REAL ) / COUNT ( * ) + + 44 + + COUNT ( * ) / - - CAST ( NULL AS INTEGER ) * 51 * + ( - ( - CASE - + CASE - 67 WHEN + 69 + + - ( - 41 ) THEN NULL WHEN ( 88 ) THEN + 44 * 40 END WHEN + 4 THEN - NULLIF ( 3, CAST ( NULL AS REAL ) + - 32 ) * 93 + 74 / CASE ( 2 ) WHEN + NULLIF ( - 43, + 78 ) / + 87 + + 25 THEN SUM ( ALL - COALESCE ( 91, ( + 13 ), 51 * - CASE + 68 WHEN 65 + + 12 THEN + 7 + + 83 * 57 WHEN + CAST ( 57 AS REAL ) THEN + 79 * - 2 WHEN - 76 THEN NULL ELSE NULL END, 34 ) ) WHEN 18 THEN NULL END END ) ) * 10 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8725
SELECT DISTINCT + NULLIF ( + + 72, 85 ) AS col2, + 32 DIV - - 3
----
72
10

skipif mysql # not compatible
query II rowsort label-8725
SELECT DISTINCT + NULLIF ( + + 72, 85 ) AS col2, + 32 / - - 3
----
72
10

query I rowsort
SELECT ALL + 98 * - + COALESCE ( 16, + 80 ) AS col2
----
-1568

query II rowsort
SELECT ALL + 67 AS col2, - 73 * - + 94
----
67
6862

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT 62 * - + 55 + + CASE 71 WHEN - + COUNT( * ) + + 73 + 39 + 61 THEN - SUM( 1 ) + - 89 ELSE NULL END * MAX( 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8728
SELECT 62 * - + 55 + + CASE 71 WHEN - + COUNT ( * ) + + 73 + 39 + 61 THEN - SUM ( 1 ) + - 89 ELSE NULL END * MAX ( 32 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8729
SELECT ALL 98 / ( 18 ) - + 95 * - + COUNT( * ) * 35 * - NULLIF ( + + ( + - 10 ), - 41 * + 65 - + MIN( ALL 91 ) ) - ( - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL 98 / ( 18 ) - + 95 * - + COUNT ( * ) * 35 * - NULLIF ( + + ( + - 10 ), - 41 * + 65 - + MIN ( ALL 91 ) ) - ( - CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT - 91 * + - 32 + - 47
----
2865

query I rowsort
SELECT - ( - 81 ) + 37
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-8732
SELECT ( - SUM( - 90 ) ), - 31 * - COALESCE ( COUNT( * ), 54 * - - 24, + + 24 + + - ( + 95 ) ) col1
----
90
31

skipif mysql # not compatible
query II rowsort label-8732
SELECT ( - SUM ( - 90 ) ), - 31 * - COALESCE ( COUNT ( * ), 54 * - - 24, + + 24 + + - ( + 95 ) ) col1
----
90
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT + 88 + COUNT( * ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-8733
SELECT + 88 + COUNT ( * ) AS col2
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-8734
SELECT ALL ( - - 14 ) DIV 27 AS col1, 44
----
0
44

skipif mysql # not compatible
query II rowsort label-8734
SELECT ALL ( - - 14 ) / 27 AS col1, 44
----
0
44

query I rowsort
SELECT + 82 * + 77
----
6314

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8736
SELECT ALL - SUM( ALL + 68 ) DIV - 30
----
2

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL - SUM ( ALL + 68 ) / - 30
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8737
SELECT + 76 + + CAST( NULL AS SIGNED ) * + + ( - + COUNT( * ) ) * + + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8737
SELECT + 76 + + CAST ( NULL AS INTEGER ) * + + ( - + COUNT ( * ) ) * + + 58
----
NULL

query I rowsort
SELECT ALL + 66 * 34 col0
----
2244

query I rowsort
SELECT - ( + 31 ) * + 90
----
-2790

query I rowsort
SELECT 27 * - - ( ( - 28 ) ) + - 28 * 9 AS col0
----
-1008

query I rowsort
SELECT ( - ( + - 70 ) )
----
70

query II rowsort
SELECT - 60 AS col1, - 5
----
-60
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT ALL MAX( ALL - 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL MAX ( ALL - 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT + NULLIF ( COUNT( * ), + 13 ) * - + 7 + + 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8744
SELECT + NULLIF ( COUNT ( * ), + 13 ) * - + 7 + + 7 AS col1
----
0

query I rowsort
SELECT + 65 + + 63 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT DISTINCT + - 38 + - 16 - COUNT( * ) * - - COUNT( ALL + 59 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-8746
SELECT DISTINCT + - 38 + - 16 - COUNT ( * ) * - - COUNT ( ALL + 59 ) AS col2
----
-55

query I rowsort
SELECT ALL + 44 + - 63 - - 11 * + 57 * + COALESCE ( + 29, - 5 * - 85 ) AS col2
----
18164

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT - NULLIF ( 99, + COUNT( DISTINCT + 12 ) )
----
-99

skipif mysql # not compatible
query I rowsort label-8748
SELECT - NULLIF ( 99, + COUNT ( DISTINCT + 12 ) )
----
-99

query I rowsort
SELECT ALL + - 63 + - 98 AS col0
----
-161

query I rowsort
SELECT DISTINCT ( + 15 ) + + + 82 AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8751
SELECT - 15 + COUNT( CAST( NULL AS DECIMAL ) ) * 97
----
-15

skipif mysql # not compatible
query I rowsort label-8751
SELECT - 15 + COUNT ( CAST ( NULL AS REAL ) ) * 97
----
-15

query I rowsort
SELECT 5 * 62
----
310

query I rowsort
SELECT 36 + - 28
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT ALL + COUNT( 54 ) - - CASE 51 WHEN - 65 * ( - 23 ) THEN 37 ELSE 34 - + + 79 END
----
-44

skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL + COUNT ( 54 ) - - CASE 51 WHEN - 65 * ( - 23 ) THEN 37 ELSE 34 - + + 79 END
----
-44

query I rowsort
SELECT 87 + - + 15 + - NULLIF ( - 99, + 53 ) * 26 AS col1
----
2646

query I rowsort
SELECT 90 * 87
----
7830

query I rowsort
SELECT DISTINCT + 12 * - + 55
----
-660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8758
SELECT 77 * + COUNT( * ) DIV - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-8758
SELECT 77 * + COUNT ( * ) / - COUNT ( * )
----
-77

query I rowsort
SELECT DISTINCT - NULLIF ( + + 92, + - NULLIF ( - 65, + 50 * - 18 + + 99 ) ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT ALL - ( + COALESCE ( - - 16, - + SUM( DISTINCT - 23 ) ) ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL - ( + COALESCE ( - - 16, - + SUM ( DISTINCT - 23 ) ) ) AS col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8761
SELECT DISTINCT ( - + CAST( + 42 AS SIGNED ) ) * NULLIF ( 12, + 24 ) col1
----
-504

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT ( - + CAST ( + 42 AS INTEGER ) ) * NULLIF ( 12, + 24 ) col1
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT DISTINCT SUM( DISTINCT + 53 ) * 41 AS col1
----
2173

skipif mysql # not compatible
query I rowsort label-8762
SELECT DISTINCT SUM ( DISTINCT + 53 ) * 41 AS col1
----
2173

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8763
SELECT ALL - + ( - - 46 ), ( - COALESCE ( + + 77, 61 * - 93 + - - ( - 34 ), CASE CASE - NULLIF ( + 64, - - COALESCE ( + 92, COUNT( * ) ) + - 61 + - 23 ) WHEN + - 91 - - 51 THEN COUNT( 26 ) WHEN 90 * 39 THEN NULL ELSE NULL END WHEN 82 THEN + 52 ELSE NULL END ) ) DIV - 28 AS col2
----
-46
2

skipif mysql # not compatible
query II rowsort label-8763
SELECT ALL - + ( - - 46 ), ( - COALESCE ( + + 77, 61 * - 93 + - - ( - 34 ), CASE CASE - NULLIF ( + 64, - - COALESCE ( + 92, COUNT ( * ) ) + - 61 + - 23 ) WHEN + - 91 - - 51 THEN COUNT ( 26 ) WHEN 90 * 39 THEN NULL ELSE NULL END WHEN 82 THEN + 52 ELSE NULL END ) ) / - 28 AS col2
----
-46
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8764
SELECT 36 + - CAST( 76 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-8764
SELECT 36 + - CAST ( 76 AS INTEGER )
----
-40

query I rowsort
SELECT DISTINCT - + 48 col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT DISTINCT + COUNT( * ) + + 69 * + 90
----
6211

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT + COUNT ( * ) + + 69 * + 90
----
6211

onlyif mysql # DIV for integer division: 
query I rowsort label-8767
SELECT - COALESCE ( - - 41, - 64 DIV - 36 + + NULLIF ( 8, - + 55 * + + 80 + 32 + 54 + + 63 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-8767
SELECT - COALESCE ( - - 41, - 64 / - 36 + + NULLIF ( 8, - + 55 * + + 80 + 32 + 54 + + 63 ) )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8768
SELECT ALL 71 + + 26 + + 35 * 45 + + 41 DIV + ( - + 29 ), CASE NULLIF ( + 19, 55 ) WHEN - COUNT( * ) - + + ( + COUNT( * ) ) * - + 95 THEN NULL WHEN + + 47 * - - 43 * - - COUNT( * ) * 29 THEN + 46 + 57 END * COUNT( * ) AS col2
----
1671
NULL

skipif mysql # not compatible
query II rowsort label-8768
SELECT ALL 71 + + 26 + + 35 * 45 + + 41 / + ( - + 29 ), CASE NULLIF ( + 19, 55 ) WHEN - COUNT ( * ) - + + ( + COUNT ( * ) ) * - + 95 THEN NULL WHEN + + 47 * - - 43 * - - COUNT ( * ) * 29 THEN + 46 + 57 END * COUNT ( * ) AS col2
----
1671
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT + COUNT( * ) * 49 * COALESCE ( + 63, + MIN( - 67 ) ) - + 76 AS col0
----
3011

skipif mysql # not compatible
query I rowsort label-8769
SELECT + COUNT ( * ) * 49 * COALESCE ( + 63, + MIN ( - 67 ) ) - + 76 AS col0
----
3011

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT 5 + 26 * + - 27 * - CASE COALESCE ( - 70, + + 54, + - ( - 25 ) ) WHEN 69 THEN NULL WHEN - COALESCE ( - ( - COUNT( * ) ), - 18 * 29 / + 98 ) THEN + 63 + + 74 + 70 + 58 ELSE NULL END - - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8770
SELECT 5 + 26 * + - 27 * - CASE COALESCE ( - 70, + + 54, + - ( - 25 ) ) WHEN 69 THEN NULL WHEN - COALESCE ( - ( - COUNT ( * ) ), - 18 * 29 / + 98 ) THEN + 63 + + 74 + 70 + 58 ELSE NULL END - - 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT - COUNT( ALL + 89 )
----
-1

skipif mysql # not compatible
query I rowsort label-8771
SELECT - COUNT ( ALL + 89 )
----
-1

query I rowsort
SELECT ALL 16 + - 25 + 49 AS col2
----
40

query I rowsort
SELECT 61 * + NULLIF ( 42, - 71 + + + 67 + + + 93 * + 44 - - 49 / + + 81 )
----
2562

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8774
SELECT ALL - COUNT( * ) + + - NULLIF ( + 12, - COUNT( * ) + + CAST( + SUM( ALL 91 ) AS SIGNED ) * + 19 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL - COUNT ( * ) + + - NULLIF ( + 12, - COUNT ( * ) + + CAST ( + SUM ( ALL 91 ) AS INTEGER ) * + 19 ) AS col2
----
-13

query I rowsort
SELECT 82 + + 94 + 19
----
195

query I rowsort
SELECT DISTINCT 14 * - 3
----
-42

query I rowsort
SELECT DISTINCT 19 - 6 + + 62
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8778
SELECT 0 * COALESCE ( NULLIF ( - COUNT( 14 ), - COALESCE ( 7, 49 * + 47 * - - 16 ) * - 34 DIV + + COUNT( * ) ), 79 DIV + 39 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8778
SELECT 0 * COALESCE ( NULLIF ( - COUNT ( 14 ), - COALESCE ( 7, 49 * + 47 * - - 16 ) * - 34 / + + COUNT ( * ) ), 79 / + 39 ) AS col0
----
0

query I rowsort
SELECT 71 + - 46 AS col1
----
25

query I rowsort
SELECT 77 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT CASE - + 75 WHEN + COUNT( * ) * - 3 + - COUNT( ALL + + 29 ) THEN NULL WHEN COUNT( DISTINCT 82 ) THEN NULL ELSE + COUNT( * ) END + + - MAX( - 61 ) col2
----
62

skipif mysql # not compatible
query I rowsort label-8781
SELECT CASE - + 75 WHEN + COUNT ( * ) * - 3 + - COUNT ( ALL + + 29 ) THEN NULL WHEN COUNT ( DISTINCT 82 ) THEN NULL ELSE + COUNT ( * ) END + + - MAX ( - 61 ) col2
----
62

query I rowsort
SELECT 25 * + + 93
----
2325

onlyif mysql # aggregate syntax: 
query II rowsort label-8783
SELECT ALL - 8 * - - MIN( ALL 5 ) AS col1, 95 AS col2
----
-40
95

skipif mysql # not compatible
query II rowsort label-8783
SELECT ALL - 8 * - - MIN ( ALL 5 ) AS col1, 95 AS col2
----
-40
95

query I rowsort
SELECT - 17 * - 40 AS col1
----
680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8785
SELECT ALL - 26 * + 41 DIV + - COUNT( * ) + - 99 AS col1
----
967

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL - 26 * + 41 / + - COUNT ( * ) + - 99 AS col1
----
967

query I rowsort
SELECT ALL + 63 * + 82
----
5166

onlyif mysql # aggregate syntax: 
query II rowsort label-8787
SELECT 76, - COUNT( 16 ) AS col1
----
76
-1

skipif mysql # not compatible
query II rowsort label-8787
SELECT 76, - COUNT ( 16 ) AS col1
----
76
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8788
SELECT DISTINCT - 95 * ( - 3 ) * CASE - COUNT( * ) WHEN + 42 THEN + 69 * + - CAST( - 85 AS SIGNED ) + - 30 END + + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT - 95 * ( - 3 ) * CASE - COUNT ( * ) WHEN + 42 THEN + 69 * + - CAST ( - 85 AS INTEGER ) + - 30 END + + 15 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8789
SELECT ALL + CAST( - + COUNT( * ) AS SIGNED ) * + 13 + + - 67
----
-80

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL + CAST ( - + COUNT ( * ) AS INTEGER ) * + 13 + + - 67
----
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8790
SELECT - + 74 + + - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8790
SELECT - + 74 + + - CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT + CASE + 77 WHEN + + 2 * - 87 * - - 80 + AVG ( - 17 ) / + 25 THEN - COUNT( * ) WHEN - + 67 + - 76 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8791
SELECT + CASE + 77 WHEN + + 2 * - 87 * - - 80 + AVG ( - 17 ) / + 25 THEN - COUNT ( * ) WHEN - + 67 + - 76 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - - 99 + + + 25 + ( + 68 ) * + 19 * - 3 AS col1
----
-3752

query I rowsort
SELECT + - ( + - 37 ) - - 12
----
49

query I rowsort
SELECT ALL + - 64 col0
----
-64

query I rowsort
SELECT DISTINCT + ( - + 63 ) * - 85 + + + 18 - - 3 * - - 84 AS col0
----
5625

query I rowsort
SELECT ALL - 59 * - 17 + 48
----
1051

query I rowsort
SELECT ALL - 53 * 64 AS col0
----
-3392

query I rowsort
SELECT + 88 + - - 80
----
168

query I rowsort
SELECT ALL - 3 - 32
----
-35

query I rowsort
SELECT + CASE 99 WHEN 12 THEN NULL WHEN - + 27 THEN 24 ELSE 62 * - - 92 + + 21 * - 13 END
----
5431

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT DISTINCT - + 62 * - COALESCE ( COUNT( * ), - + 30 ) col0
----
62

skipif mysql # not compatible
query I rowsort label-8801
SELECT DISTINCT - + 62 * - COALESCE ( COUNT ( * ), - + 30 ) col0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8802
SELECT ALL 67 DIV 53 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL 67 / 53 AS col1
----
1

query I rowsort
SELECT DISTINCT ( + 59 ) AS col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8804
SELECT ALL 13 DIV - 29
----
0

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL 13 / - 29
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8805
SELECT - COUNT( * ) AS col2, 54
----
-1
54

skipif mysql # not compatible
query II rowsort label-8805
SELECT - COUNT ( * ) AS col2, 54
----
-1
54

query II rowsort
SELECT 56 col2, 37
----
56
37

query I rowsort
SELECT + 95 + 27 AS col0
----
122

query II rowsort
SELECT DISTINCT 61 AS col0, + 25
----
61
25

query I rowsort
SELECT ALL 59 * 37
----
2183

query I rowsort
SELECT + 65 * - 22 * + - 70
----
100100

query I rowsort
SELECT ALL 71 * - 78
----
-5538

query I rowsort
SELECT - ( - 75 ) AS col1
----
75

query I rowsort
SELECT + 59 + + 77 AS col0
----
136

onlyif mysql # DIV for integer division: 
query II rowsort label-8814
SELECT DISTINCT 72 col1, 55 DIV - 31 AS col2
----
72
-1

skipif mysql # not compatible
query II rowsort label-8814
SELECT DISTINCT 72 col1, 55 / - 31 AS col2
----
72
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8815
SELECT + 35 + 27 * + 96 DIV - + COUNT( * )
----
-2557

skipif mysql # not compatible
query I rowsort label-8815
SELECT + 35 + 27 * + 96 / - + COUNT ( * )
----
-2557

query II rowsort
SELECT + 83, + 83 AS col2
----
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT - + COUNT( * ) * + + COUNT( ALL 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-8817
SELECT - + COUNT ( * ) * + + COUNT ( ALL 99 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8818
SELECT ALL + 6 DIV + + 67 + + - 62
----
-62

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL + 6 / + + 67 + + - 62
----
-62

query I rowsort
SELECT + - NULLIF ( - - 13, + 13 ) * + - COALESCE ( - 67, 44 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8820
SELECT - 28 col1, - ( + COALESCE ( - ( + 24 ), MIN( + ( - 64 ) ) - + 19 * + 35 * 67, - - 74 DIV - 58 + - - 64 ) )
----
-28
24

skipif mysql # not compatible
query II rowsort label-8820
SELECT - 28 col1, - ( + COALESCE ( - ( + 24 ), MIN ( + ( - 64 ) ) - + 19 * + 35 * 67, - - 74 / - 58 + - - 64 ) )
----
-28
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8821
SELECT + + COUNT( * ) AS col1, 1 col1
----
1
1

skipif mysql # not compatible
query II rowsort label-8821
SELECT + + COUNT ( * ) AS col1, 1 col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT + 52 * + SUM( DISTINCT - 57 ) + - - 99 AS col2
----
-2865

skipif mysql # not compatible
query I rowsort label-8822
SELECT + 52 * + SUM ( DISTINCT - 57 ) + - - 99 AS col2
----
-2865

onlyif mysql # DIV for integer division: 
query I rowsort label-8823
SELECT + 22 DIV + 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8823
SELECT + 22 / + 56 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8824
SELECT ALL + - CASE + + ( - + 70 ) WHEN - COUNT( * ) + - 70 * + COUNT( * ) THEN + 20 + - 18 WHEN + 40 THEN - 31 WHEN + CAST( NULL AS SIGNED ) / - + 6 * - 10 THEN NULL ELSE NULL END / COUNT( * ) * AVG ( ALL ( - ( ( - - 29 ) ) ) ) + - COALESCE ( 6, 23, + 86 ) + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL + - CASE + + ( - + 70 ) WHEN - COUNT ( * ) + - 70 * + COUNT ( * ) THEN + 20 + - 18 WHEN + 40 THEN - 31 WHEN + CAST ( NULL AS INTEGER ) / - + 6 * - 10 THEN NULL ELSE NULL END / COUNT ( * ) * AVG ( ALL ( - ( ( - - 29 ) ) ) ) + - COALESCE ( 6, 23, + 86 ) + 96
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8825
SELECT 46 AS col1, SUM( + 68 ) AS col1
----
46
68

skipif mysql # not compatible
query II rowsort label-8825
SELECT 46 AS col1, SUM ( + 68 ) AS col1
----
46
68

query I rowsort
SELECT DISTINCT + 48 * - 9 + + 22 AS col0
----
-410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8827
SELECT ALL + COALESCE ( - 58, 7, - 11 * - CAST( + 50 AS SIGNED ) * + 77 + - 49 + - 51 * - 62 + - 67 ) * COUNT( * ) + + 91 * + 59
----
5311

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL + COALESCE ( - 58, 7, - 11 * - CAST ( + 50 AS INTEGER ) * + 77 + - 49 + - 51 * - 62 + - 67 ) * COUNT ( * ) + + 91 * + 59
----
5311

onlyif mysql # aggregate syntax: 
query II rowsort label-8828
SELECT - COUNT( * ), + 61 + 63 * - 72 AS col0
----
-1
-4475

skipif mysql # not compatible
query II rowsort label-8828
SELECT - COUNT ( * ), + 61 + 63 * - 72 AS col0
----
-1
-4475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8829
SELECT - + SUM( 5 ) DIV - 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8829
SELECT - + SUM ( 5 ) / - 20 AS col1
----
0

query I rowsort
SELECT - - 13 * - - 35 + - 96 col1
----
359

query II rowsort
SELECT + 35, 2 col2
----
35
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT + 81 * 54 - 98 + 14 - + - COUNT( * ) col2
----
4291

skipif mysql # not compatible
query I rowsort label-8832
SELECT + 81 * 54 - 98 + 14 - + - COUNT ( * ) col2
----
4291

onlyif mysql # aggregate syntax: 
query II rowsort label-8833
SELECT ALL + - MIN( DISTINCT 66 ) AS col0, + 36 AS col1
----
-66
36

skipif mysql # not compatible
query II rowsort label-8833
SELECT ALL + - MIN ( DISTINCT 66 ) AS col0, + 36 AS col1
----
-66
36

query I rowsort
SELECT DISTINCT + ( 32 ) AS col1
----
32

query I rowsort
SELECT - 52 + - 17
----
-69

query I rowsort
SELECT ALL - ( + ( 49 ) ) * ( 74 ) - - - 6 * - 40 AS col2
----
-3386

onlyif mysql # aggregate syntax: 
query II rowsort label-8837
SELECT + COUNT( * ) AS col2, 6 + - 95
----
1
-89

skipif mysql # not compatible
query II rowsort label-8837
SELECT + COUNT ( * ) AS col2, 6 + - 95
----
1
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-8838
SELECT ALL - 92 * SUM( + 18 ) * + 10 * + + MIN( 5 ), ( + + 96 ) AS col2
----
-82800
96

skipif mysql # not compatible
query II rowsort label-8838
SELECT ALL - 92 * SUM ( + 18 ) * + 10 * + + MIN ( 5 ), ( + + 96 ) AS col2
----
-82800
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8839
SELECT - COUNT( * ) * + 37 AS col2, + COUNT( * ) col0
----
-37
1

skipif mysql # not compatible
query II rowsort label-8839
SELECT - COUNT ( * ) * + 37 AS col2, + COUNT ( * ) col0
----
-37
1

query II rowsort
SELECT ALL ( + - 17 ) AS col1, 25 - + + 75 * 87 + + 73
----
-17
-6427

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT - 8 - NULLIF ( - COUNT( * ), COUNT( * ) + 16 ) + - SUM( DISTINCT 26 )
----
-33

skipif mysql # not compatible
query I rowsort label-8841
SELECT - 8 - NULLIF ( - COUNT ( * ), COUNT ( * ) + 16 ) + - SUM ( DISTINCT 26 )
----
-33

query I rowsort
SELECT DISTINCT - 53 * 9 AS col1
----
-477

query I rowsort
SELECT DISTINCT + 26 * - 32 * + 15 AS col1
----
-12480

query I rowsort
SELECT - ( - + 36 ) col1
----
36

query I rowsort
SELECT - 65 * - ( 78 ) * 24 AS col0
----
121680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8846
SELECT ALL + COUNT( * ) + - 20 + - 56 DIV 28 * 61 AS col1
----
-141

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL + COUNT ( * ) + - 20 + - 56 / 28 * 61 AS col1
----
-141

query II rowsort
SELECT ALL 53 + - 79 AS col2, 95 AS col2
----
-26
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8848
SELECT DISTINCT ( 46 ) DIV COUNT( * ) * 1 * - 48 * - 25 + - 36 - 87 + - COUNT( - + 14 ) AS col0
----
55076

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT ( 46 ) / COUNT ( * ) * 1 * - 48 * - 25 + - 36 - 87 + - COUNT ( - + 14 ) AS col0
----
55076

query I rowsort
SELECT 41 * 16
----
656

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT ALL 17 + - MAX( - 54 )
----
71

skipif mysql # not compatible
query I rowsort label-8850
SELECT ALL 17 + - MAX ( - 54 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT 11 + - COUNT( ALL + 69 )
----
10

skipif mysql # not compatible
query I rowsort label-8851
SELECT 11 + - COUNT ( ALL + 69 )
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8852
SELECT ( 37 ) / - CAST( NULL AS DECIMAL ) + - 76 / + 76 / + 51 + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8852
SELECT ( 37 ) / - CAST ( NULL AS REAL ) + - 76 / + 76 / + 51 + - 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT ( - COUNT( * ) ) * 26 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-8853
SELECT ( - COUNT ( * ) ) * 26 AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8854
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) / + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8854
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) / + - 52
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8855
SELECT - 33 DIV - ( - 90 ) + - 87 + 81 AS col0, - 34
----
-6
-34

skipif mysql # not compatible
query II rowsort label-8855
SELECT - 33 / - ( - 90 ) + - 87 + 81 AS col0, - 34
----
-6
-34

query I rowsort
SELECT DISTINCT 81 * 51 * 37 + - ( - ( + + 4 ) ) AS col2
----
152851

onlyif mysql # aggregate syntax: 
query II rowsort label-8857
SELECT 57 + + CASE + + ( + 62 ) WHEN - - 61 / + 54 THEN COUNT( * ) ELSE NULL END AS col1, COUNT( * ) * + - 28 * - - 1 + - 57
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-8857
SELECT 57 + + CASE + + ( + 62 ) WHEN - - 61 / + 54 THEN COUNT ( * ) ELSE NULL END AS col1, COUNT ( * ) * + - 28 * - - 1 + - 57
----
NULL
-85

query I rowsort
SELECT ALL - 97 + + + 34 - + - 28 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT ALL - NULLIF ( + 4, + COALESCE ( 14, - + 10, + 84 ) * + + 57 * MAX( + 48 ) * - + COUNT( * ) / 29 )
----
-4

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL - NULLIF ( + 4, + COALESCE ( 14, - + 10, + 84 ) * + + 57 * MAX ( + 48 ) * - + COUNT ( * ) / 29 )
----
-4

query I rowsort
SELECT + + 86 * + - 61 + + - 81 AS col2
----
-5327

query I rowsort
SELECT 67 * - 64 * 23
----
-98624

query II rowsort
SELECT 10 * - - 45 AS col2, 39 AS col0
----
450
39

query I rowsort
SELECT - 92 - - + 54 * + 67 * + + 39
----
141010

query I rowsort
SELECT 90 * 70
----
6300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8865
SELECT DISTINCT COUNT( * ) DIV 29 + + CASE - 77 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE 5 * - 1 END * + COUNT( * ) * + + 32 - - 25 + 9
----
-126

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT COUNT ( * ) / 29 + + CASE - 77 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE 5 * - 1 END * + COUNT ( * ) * + + 32 - - 25 + 9
----
-126

query I rowsort
SELECT DISTINCT - + 33 col1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8867
SELECT COALESCE ( + + 5, + ( + 25 ) * + 5 DIV + 94 - - 45 + - + 76 * + NULLIF ( - CASE - 47 WHEN 73 THEN COUNT( * ) WHEN - - 21 THEN + 21 * - COUNT( * ) + - SUM( DISTINCT - 70 ) ELSE - ( - 63 ) END, + 28 * - + 83 * + ( 42 * 80 ) ) + + 1 * CAST( NULL AS SIGNED ) ) + ( - 83 )
----
-78

skipif mysql # not compatible
query I rowsort label-8867
SELECT COALESCE ( + + 5, + ( + 25 ) * + 5 / + 94 - - 45 + - + 76 * + NULLIF ( - CASE - 47 WHEN 73 THEN COUNT ( * ) WHEN - - 21 THEN + 21 * - COUNT ( * ) + - SUM ( DISTINCT - 70 ) ELSE - ( - 63 ) END, + 28 * - + 83 * + ( 42 * 80 ) ) + + 1 * CAST ( NULL AS INTEGER ) ) + ( - 83 )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8868
SELECT ALL - COALESCE ( + 94, - 67, COUNT( * ) DIV + COUNT( * ) + + COUNT( * ) ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL - COALESCE ( + 94, - 67, COUNT ( * ) / + COUNT ( * ) + + COUNT ( * ) ) AS col0
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8869
SELECT CAST( - 97 AS SIGNED ) DIV + 68 + - - 23 - - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-8869
SELECT CAST ( - 97 AS INTEGER ) / + 68 + - - 23 - - COUNT ( * )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8870
SELECT 16 / - CASE - 49 WHEN 40 THEN 24 * + MIN( 90 ) WHEN + 54 + - CAST( NULL AS SIGNED ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT 16 / - CASE - 49 WHEN 40 THEN 24 * + MIN ( 90 ) WHEN + 54 + - CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) END
----
NULL

query II rowsort
SELECT 95, - 87 AS col2
----
95
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8872
SELECT 25 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT 25 * + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 47, 8 AS col2
----
-47
8

query I rowsort
SELECT 6 + + + 90 + 0 col0
----
96

query I rowsort
SELECT ALL - ( - 69 ) + + - 58 + + 44 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT ALL + 40 + - ( SUM( ALL + 64 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL + 40 + - ( SUM ( ALL + 64 ) )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT DISTINCT + ( - - 66 ) * + MIN( - + 12 ) AS col2
----
-792

skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT + ( - - 66 ) * + MIN ( - + 12 ) AS col2
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT 41 + + COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-8878
SELECT 41 + + COUNT ( * ) AS col1
----
42

query I rowsort
SELECT 12 * - 20
----
-240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8880
SELECT 50 + CAST( NULL AS SIGNED ) / 39, 78 col2
----
NULL
78

skipif mysql # not compatible
query II rowsort label-8880
SELECT 50 + CAST ( NULL AS INTEGER ) / 39, 78 col2
----
NULL
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8881
SELECT 57 + - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8881
SELECT 57 + - - CAST ( NULL AS REAL ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 25 AS col2, 0 AS col2
----
25
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT ALL COUNT( DISTINCT + 59 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL COUNT ( DISTINCT + 59 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8884
SELECT 31 DIV - + 24
----
-1

skipif mysql # not compatible
query I rowsort label-8884
SELECT 31 / - + 24
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT CASE + - 69 WHEN ( 52 ) - - 91 THEN NULL WHEN + 46 * 73 THEN - + ( 86 ) * - + 33 ELSE NULL END + + + 17 * COUNT( ALL - ( 10 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8885
SELECT CASE + - 69 WHEN ( 52 ) - - 91 THEN NULL WHEN + 46 * 73 THEN - + ( 86 ) * - + 33 ELSE NULL END + + + 17 * COUNT ( ALL - ( 10 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 1 - 19 + - - 55 AS col1
----
37

query I rowsort
SELECT COALESCE ( - + 27, 38 )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8888
SELECT DISTINCT - 54 col2, CAST( NULL AS SIGNED ) / + 1
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-8888
SELECT DISTINCT - 54 col2, CAST ( NULL AS INTEGER ) / + 1
----
-54
NULL

query I rowsort
SELECT ALL ( - - 56 ) AS col1
----
56

query I rowsort
SELECT 56 * 56 * 26
----
81536

onlyif mysql # DIV for integer division: 
query I rowsort label-8891
SELECT 2 * - 17 + + + 42 + 20 DIV + 53
----
8

skipif mysql # not compatible
query I rowsort label-8891
SELECT 2 * - 17 + + + 42 + 20 / + 53
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8892
SELECT 36 DIV + MAX( ALL 62 ) * - + 86
----
0

skipif mysql # not compatible
query I rowsort label-8892
SELECT 36 / + MAX ( ALL 62 ) * - + 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT + MIN( DISTINCT + + 88 ) * 88
----
7744

skipif mysql # not compatible
query I rowsort label-8893
SELECT + MIN ( DISTINCT + + 88 ) * 88
----
7744

query II rowsort
SELECT - 86 AS col0, + 62
----
-86
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8895
SELECT ALL + COALESCE ( + - CAST( COUNT( * ) AS SIGNED ), 7 * - COUNT( * ) * + COUNT( * ), + CAST( ( + 22 ) AS SIGNED ) * 31 ) * - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL + COALESCE ( + - CAST ( COUNT ( * ) AS INTEGER ), 7 * - COUNT ( * ) * + COUNT ( * ), + CAST ( ( + 22 ) AS INTEGER ) * 31 ) * - COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8896
SELECT DISTINCT - + 22, NULLIF ( 17, + 38 * 21 + + COUNT( * ) ) col1
----
-22
17

skipif mysql # not compatible
query II rowsort label-8896
SELECT DISTINCT - + 22, NULLIF ( 17, + 38 * 21 + + COUNT ( * ) ) col1
----
-22
17

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8897
SELECT 84 * + ( - 6 ) AS col2, + CAST( NULL AS DECIMAL ) + + 8 AS col2
----
-504
NULL

skipif mysql # not compatible
query II rowsort label-8897
SELECT 84 * + ( - 6 ) AS col2, + CAST ( NULL AS REAL ) + + 8 AS col2
----
-504
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT COUNT( - ( + + 31 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8898
SELECT COUNT ( - ( + + 31 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8899
SELECT ( - COALESCE ( + + 7, + CASE - COUNT( * ) WHEN + + 11 * - COUNT( * ) + - 37 THEN - SUM( DISTINCT + 10 ) + - COALESCE ( - 59, + 67 * - - 72 * - 86 ) * + + 67 END, - CAST( - 52 AS SIGNED ) + 54 ) ) * + - ( - + 0 ) * SUM( - 8 )
----
0

skipif mysql # not compatible
query I rowsort label-8899
SELECT ( - COALESCE ( + + 7, + CASE - COUNT ( * ) WHEN + + 11 * - COUNT ( * ) + - 37 THEN - SUM ( DISTINCT + 10 ) + - COALESCE ( - 59, + 67 * - - 72 * - 86 ) * + + 67 END, - CAST ( - 52 AS INTEGER ) + 54 ) ) * + - ( - + 0 ) * SUM ( - 8 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT MIN( 8 ) + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-8900
SELECT MIN ( 8 ) + COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT ALL + COUNT( DISTINCT - + 87 ) * + - 56 + + 88
----
32

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL + COUNT ( DISTINCT - + 87 ) * + - 56 + + 88
----
32

query I rowsort
SELECT ALL 48 + - - ( + + 77 )
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT DISTINCT 7 + 91 + - ( - COUNT( * ) ) * 14
----
112

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT 7 + 91 + - ( - COUNT ( * ) ) * 14
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT DISTINCT COUNT( * ) + - - 79 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT COUNT ( * ) + - - 79 AS col2
----
80

query I rowsort
SELECT + 59 * + 95 * + 49 AS col2
----
274645

onlyif mysql # DIV for integer division: 
query I rowsort label-8906
SELECT ALL - ( 44 ) DIV 34
----
-1

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL - ( 44 ) / 34
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8907
SELECT - 82 DIV + 70 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8907
SELECT - 82 / + 70 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT ALL NULLIF ( 51, + COUNT( * ) / + 48 + + COUNT( * ) )
----
51

skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL NULLIF ( 51, + COUNT ( * ) / + 48 + + COUNT ( * ) )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8909
SELECT DISTINCT + COUNT( * ) - 12 + + 10 * + 65 DIV COUNT( DISTINCT + 20 ) AS col2
----
639

skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT + COUNT ( * ) - 12 + + 10 * + 65 / COUNT ( DISTINCT + 20 ) AS col2
----
639

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT - COUNT( * ) * + + 21 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-8910
SELECT - COUNT ( * ) * + + 21 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT ALL + 70 - COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL + 70 - COUNT ( * ) AS col2
----
69

query I rowsort
SELECT - + 89 + + - 31
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT + COALESCE ( ( + - 2 ), - COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-8913
SELECT + COALESCE ( ( + - 2 ), - COUNT ( * ) )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8914
SELECT - + 90 + - + 8 + + 41 + + 67 + - 79 * - CASE + - COALESCE ( - COUNT( DISTINCT + 3 ), 28 + + - ( + 82 ) ) WHEN - + COUNT( * ) * - COUNT( DISTINCT + - 8 ) / + + 71 + COUNT( * ) THEN - CAST( NULL AS DECIMAL ) * - + 93 + - 46 + - - COUNT( - + 98 ) + + 60 ELSE NULL END * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8914
SELECT - + 90 + - + 8 + + 41 + + 67 + - 79 * - CASE + - COALESCE ( - COUNT ( DISTINCT + 3 ), 28 + + - ( + 82 ) ) WHEN - + COUNT ( * ) * - COUNT ( DISTINCT + - 8 ) / + + 71 + COUNT ( * ) THEN - CAST ( NULL AS REAL ) * - + 93 + - 46 + - - COUNT ( - + 98 ) + + 60 ELSE NULL END * - 51
----
NULL

query I rowsort
SELECT ALL + - 88 col2
----
-88

query I rowsort
SELECT - 27 + + + 37 * - 2 - - 54
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8917
SELECT ALL - - 79 * + 63 * + - COUNT( * ) + - ( - + COUNT( * ) ) + + + 0 DIV - + 70 + + 73 col1
----
-4903

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL - - 79 * + 63 * + - COUNT ( * ) + - ( - + COUNT ( * ) ) + + + 0 / - + 70 + + 73 col1
----
-4903

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT + MIN( DISTINCT + 37 ) * + 57 + - - SUM( - 8 ) - - 67 * - 37
----
-378

skipif mysql # not compatible
query I rowsort label-8918
SELECT + MIN ( DISTINCT + 37 ) * + 57 + - - SUM ( - 8 ) - - 67 * - 37
----
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT + CASE + 85 WHEN + COUNT( * ) THEN + 74 - + - 22 * 56 - - + ( + 65 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8919
SELECT + CASE + 85 WHEN + COUNT ( * ) THEN + 74 - + - 22 * 56 - - + ( + 65 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8920
SELECT - MAX( - 33 ) DIV 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8920
SELECT - MAX ( - 33 ) / 54 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT ALL 95 * - - 57 * - + 86 * ( + COUNT( * ) ) + + COUNT( * ) AS col0
----
-465689

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL 95 * - - 57 * - + 86 * ( + COUNT ( * ) ) + + COUNT ( * ) AS col0
----
-465689

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT ALL COUNT( * ) * + - 12 * - + 22 + + + 5
----
269

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL COUNT ( * ) * + - 12 * - + 22 + + + 5
----
269

query I rowsort
SELECT ALL - 22 * ( - 81 ) + - - 38
----
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT ALL + MIN( ALL - + 2 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL + MIN ( ALL - + 2 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8925
SELECT ALL + MAX( DISTINCT ( + 18 ) ) AS col2, - 90 + - + 56 AS col1
----
18
-146

skipif mysql # not compatible
query II rowsort label-8925
SELECT ALL + MAX ( DISTINCT ( + 18 ) ) AS col2, - 90 + - + 56 AS col1
----
18
-146

query I rowsort
SELECT + 36 * + NULLIF ( + 59, - 51 ) AS col0
----
2124

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT COUNT( * ) * COUNT( * ) * - 98 + + 58
----
-40

skipif mysql # not compatible
query I rowsort label-8927
SELECT COUNT ( * ) * COUNT ( * ) * - 98 + + 58
----
-40

query I rowsort
SELECT 41 * - NULLIF ( - 83, - 64 + - ( 98 ) ) + - 70 * + + 43 AS col0
----
393

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8929
SELECT - CAST( - ( 54 ) AS SIGNED ) AS col2, + NULLIF ( - + 86, + 60 * + 16 )
----
54
-86

skipif mysql # not compatible
query II rowsort label-8929
SELECT - CAST ( - ( 54 ) AS INTEGER ) AS col2, + NULLIF ( - + 86, + 60 * + 16 )
----
54
-86

query I rowsort
SELECT + 76 + + + 27
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT + 35 * - 50 * 45 * + + COUNT( - 26 ) * + + MAX( DISTINCT + - 66 ) * + 73 + + + 14 + COUNT( * )
----
379417515

skipif mysql # not compatible
query I rowsort label-8931
SELECT + 35 * - 50 * 45 * + + COUNT ( - 26 ) * + + MAX ( DISTINCT + - 66 ) * + 73 + + + 14 + COUNT ( * )
----
379417515

query I rowsort
SELECT + 53 + ( - - 26 ) AS col2
----
79

query I rowsort
SELECT DISTINCT 93 * - - COALESCE ( - 86, - 33 + - 93 + + - 55 + - 0 * + 2 )
----
-7998

query I rowsort
SELECT + 5 * - 92 AS col0
----
-460

query I rowsort
SELECT ALL NULLIF ( 72, + 9 + - - 74 * + + 19 )
----
72

query I rowsort
SELECT + 22 + - + 0 * + 81 * - 50 AS col1
----
22

query I rowsort
SELECT - + 55 + + 58
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8938
SELECT ALL - CAST( + - 15 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL - CAST ( + - 15 AS INTEGER )
----
15

query I rowsort
SELECT - 32 + + 77
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8940
SELECT DISTINCT - - 80 DIV + 85 + - + 43 * + 89 AS col1
----
-3827

skipif mysql # not compatible
query I rowsort label-8940
SELECT DISTINCT - - 80 / + 85 + - + 43 * + 89 AS col1
----
-3827

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT DISTINCT + COALESCE ( 64, 24, 3 + + - 59 + - 90 * COUNT( * ) * + 18 - - - 67 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8941
SELECT DISTINCT + COALESCE ( 64, 24, 3 + + - 59 + - 90 * COUNT ( * ) * + 18 - - - 67 ) AS col2
----
64

query II rowsort
SELECT + 32, 56 + 54 AS col2
----
32
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8943
SELECT - 3 * 60 + - 31 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8943
SELECT - 3 * 60 + - 31 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 72 + + ( + 30 ) AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT ALL MAX( DISTINCT - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL MAX ( DISTINCT - 18 )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8946
SELECT ALL + COALESCE ( 49, 65 DIV 77 - 19 + + COALESCE ( - + COUNT( * ), + 8 + - 74 ) + 16 * - + 81 * - - 62 ) + - + 99 + + - 26 * 48 * - - 64 - - ( + - COUNT( * ) )
----
-79923

skipif mysql # not compatible
query I rowsort label-8946
SELECT ALL + COALESCE ( 49, 65 / 77 - 19 + + COALESCE ( - + COUNT ( * ), + 8 + - 74 ) + 16 * - + 81 * - - 62 ) + - + 99 + + - 26 * 48 * - - 64 - - ( + - COUNT ( * ) )
----
-79923

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT - MAX( ALL - - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-8947
SELECT - MAX ( ALL - - 8 )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8948
SELECT DISTINCT - 65 / 1 + + + CAST( NULL AS SIGNED ) + + + COUNT( * ) + - 59 * + 60 * 69 / 94
----
NULL

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT - 65 / 1 + + + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) + - 59 * + 60 * 69 / 94
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8949
SELECT ALL + COALESCE ( - + 8, - 19, - + 0 ) DIV 3 DIV 5 + ( 51 ) + 35 + 42 * - - 70 AS col1, 46 * + 47 AS col0
----
3026
2162

skipif mysql # not compatible
query II rowsort label-8949
SELECT ALL + COALESCE ( - + 8, - 19, - + 0 ) / 3 / 5 + ( 51 ) + 35 + 42 * - - 70 AS col1, 46 * + 47 AS col0
----
3026
2162

query II rowsort
SELECT + - 14 AS col2, 59 * + 63 * - 43
----
-14
-159831

query I rowsort
SELECT ( - 76 ) AS col1
----
-76

query I rowsort
SELECT - 5 * + + 2 + - + ( + 73 ) col2
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-8953
SELECT DISTINCT - COUNT( * ) * + 64, 25 AS col2
----
-64
25

skipif mysql # not compatible
query II rowsort label-8953
SELECT DISTINCT - COUNT ( * ) * + 64, 25 AS col2
----
-64
25

query II rowsort
SELECT 24 AS col2, + 95 * - 50
----
24
-4750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8955
SELECT DISTINCT - CAST( + + 44 AS SIGNED ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-8955
SELECT DISTINCT - CAST ( + + 44 AS INTEGER ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT 17 * - - 42 - - 1 - + MIN( DISTINCT + - 58 ) + - 68 * ( - - 23 ) + 84 + - 81 AS col2
----
-788

skipif mysql # not compatible
query I rowsort label-8956
SELECT 17 * - - 42 - - 1 - + MIN ( DISTINCT + - 58 ) + - 68 * ( - - 23 ) + 84 + - 81 AS col2
----
-788

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8957
SELECT + 95, CAST( NULL AS SIGNED ) * + CAST( + - 46 AS DECIMAL ) * + - 21 AS col0
----
95
NULL

skipif mysql # not compatible
query II rowsort label-8957
SELECT + 95, CAST ( NULL AS INTEGER ) * + CAST ( + - 46 AS REAL ) * + - 21 AS col0
----
95
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8958
SELECT 44 DIV + - 47 * + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8958
SELECT 44 / + - 47 * + 89 AS col1
----
0

query I rowsort
SELECT 50 * + + 21 AS col2
----
1050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8960
SELECT ALL + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - CASE + 62 WHEN + 85 THEN NULL WHEN 13 THEN NULL ELSE 33 * 32 END - - 21 + + - 70 * 25 AS col1
----
-2785

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT 54 * - 20 + 20 + COUNT( ALL 98 )
----
-1059

skipif mysql # not compatible
query I rowsort label-8962
SELECT 54 * - 20 + 20 + COUNT ( ALL 98 )
----
-1059

onlyif mysql # DIV for integer division: 
query II rowsort label-8963
SELECT 62, 1 DIV - + 88 AS col0
----
62
0

skipif mysql # not compatible
query II rowsort label-8963
SELECT 62, 1 / - + 88 AS col0
----
62
0

query I rowsort
SELECT 34 + 53 + ( + 51 ) * - 20 AS col0
----
-933

query I rowsort
SELECT ALL 47 * 3 AS col0
----
141

query I rowsort
SELECT 40 * + + ( + - 41 ) * 90 - + 32 * - + ( + - 81 ) AS col2
----
-150192

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT ALL - CASE - 72 WHEN + 24 * MAX( 50 ) THEN - 80 + - - 75 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL - CASE - 72 WHEN + 24 * MAX ( 50 ) THEN - 80 + - - 75 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT ALL - 21, - 62 AS col0
----
-21
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-8969
SELECT 61 AS col1, + 91 * + COUNT( * ) AS col0
----
61
91

skipif mysql # not compatible
query II rowsort label-8969
SELECT 61 AS col1, + 91 * + COUNT ( * ) AS col0
----
61
91

onlyif mysql # DIV for integer division: 
query II rowsort label-8970
SELECT ALL 27, 77 DIV + 30 + + 17 AS col0
----
27
19

skipif mysql # not compatible
query II rowsort label-8970
SELECT ALL 27, 77 / + 30 + + 17 AS col0
----
27
19

query I rowsort
SELECT 40 * - + 9
----
-360

onlyif mysql # aggregate syntax: 
query II rowsort label-8972
SELECT ALL + 44 col0, SUM( DISTINCT 51 ) AS col1
----
44
51

skipif mysql # not compatible
query II rowsort label-8972
SELECT ALL + 44 col0, SUM ( DISTINCT 51 ) AS col1
----
44
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8973
SELECT 87 - 28 * + CAST( NULL AS SIGNED ) * - 28 * - ( - COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8973
SELECT 87 - 28 * + CAST ( NULL AS INTEGER ) * - 28 * - ( - COUNT ( * ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT - COUNT( * ) * 33 * + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-8974
SELECT - COUNT ( * ) * 33 * + COUNT ( * )
----
-33

query I rowsort
SELECT - 60 * + 15 AS col1
----
-900

onlyif mysql # aggregate syntax: 
query II rowsort label-8976
SELECT ALL - 87 * - - 80, - COUNT( * ) + + - 81 + 86 * - 21 AS col2
----
-6960
-1888

skipif mysql # not compatible
query II rowsort label-8976
SELECT ALL - 87 * - - 80, - COUNT ( * ) + + - 81 + 86 * - 21 AS col2
----
-6960
-1888

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8977
SELECT ALL + - 98 + + + 13 + + 68 - + 22 / 9 * - CAST( NULL AS DECIMAL ) * COALESCE ( - 53, - + 96 * 80 + MAX( DISTINCT - + 23 ) ) * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL + - 98 + + + 13 + + 68 - + 22 / 9 * - CAST ( NULL AS REAL ) * COALESCE ( - 53, - + 96 * 80 + MAX ( DISTINCT - + 23 ) ) * + 7
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8978
SELECT + 87 DIV 86 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8978
SELECT + 87 / 86 AS col0
----
1

query I rowsort
SELECT ALL - 37 + 46
----
9

query I rowsort
SELECT ALL + COALESCE ( + 89, 25 + - CASE + 86 WHEN - NULLIF ( + 68, 56 + - 94 ) THEN NULL ELSE - + 46 END + + 93 * + 95 * 99 + + 18 ) AS col0
----
89

query I rowsort
SELECT ( + 46 ) + 18 + ( - 97 ) AS col2
----
-33

query II rowsort
SELECT - 11 AS col2, + CASE - + 74 WHEN - + 88 THEN NULL ELSE - 75 + - 89 END * - 26 + 55
----
-11
4319

onlyif mysql # DIV for integer division: 
query I rowsort label-8983
SELECT 49 DIV 23 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8983
SELECT 49 / 23 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8984
SELECT - CAST( NULL AS SIGNED ) * + 17 / COUNT( + 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8984
SELECT - CAST ( NULL AS INTEGER ) * + 17 / COUNT ( + 10 )
----
NULL

query I rowsort
SELECT - 76 + 30 - + - 32 AS col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-8986
SELECT ALL + - 10 DIV + - 50
----
0

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL + - 10 / + - 50
----
0

query II rowsort
SELECT - - ( + - 45 ), - 50 + 30 * - 30 AS col0
----
-45
-950

onlyif mysql # aggregate syntax: 
query II rowsort label-8988
SELECT DISTINCT - + 68 col1, - 55 * - COUNT( * ) + - - 49 AS col1
----
-68
104

skipif mysql # not compatible
query II rowsort label-8988
SELECT DISTINCT - + 68 col1, - 55 * - COUNT ( * ) + - - 49 AS col1
----
-68
104

query I rowsort
SELECT DISTINCT 77 + - 78 * - 38 * + 68 AS col0
----
201629

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT ALL - MAX( ( 56 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL - MAX ( ( 56 ) )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT COUNT( * ) * - ( 20 ) + - + 69
----
-89

skipif mysql # not compatible
query I rowsort label-8991
SELECT COUNT ( * ) * - ( 20 ) + - + 69
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8992
SELECT ALL - CASE + - CAST( + + 20 AS SIGNED ) WHEN - 18 THEN NULL ELSE COUNT( * ) END * 67 * 95 AS col1
----
-6365

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL - CASE + - CAST ( + + 20 AS INTEGER ) WHEN - 18 THEN NULL ELSE COUNT ( * ) END * 67 * 95 AS col1
----
-6365

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT DISTINCT SUM( ALL + 81 ) * + SUM( DISTINCT - 59 ) + ( + MAX( - 25 ) ) AS col2
----
-4804

skipif mysql # not compatible
query I rowsort label-8993
SELECT DISTINCT SUM ( ALL + 81 ) * + SUM ( DISTINCT - 59 ) + ( + MAX ( - 25 ) ) AS col2
----
-4804

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT ALL COALESCE ( - - NULLIF ( - + MAX( DISTINCT + 34 ), MIN( - 14 ) * + + 26 + + + 19 ), + 53 * - 3, 77 ) * + NULLIF ( + - CASE + 87 WHEN - 12 THEN - ( - - 9 ) / + COALESCE ( 88, - + 81, - 96 / + 16 ) / - - 44 + + ( - 33 ) ELSE NULL END, 17 ) * - + 56 + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL COALESCE ( - - NULLIF ( - + MAX ( DISTINCT + 34 ), MIN ( - 14 ) * + + 26 + + + 19 ), + 53 * - 3, 77 ) * + NULLIF ( + - CASE + 87 WHEN - 12 THEN - ( - - 9 ) / + COALESCE ( 88, - + 81, - 96 / + 16 ) / - - 44 + + ( - 33 ) ELSE NULL END, 17 ) * - + 56 + 31 AS col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 11, + 55 + + 24 ) AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8996
SELECT 40 DIV + + ( COUNT( * ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8996
SELECT 40 / + + ( COUNT ( * ) ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT COUNT( ALL 63 ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8997
SELECT COUNT ( ALL 63 ) * COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT DISTINCT - - 9 + + - 4 + - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-8998
SELECT DISTINCT - - 9 + + - 4 + - COUNT ( * )
----
4

query I rowsort
SELECT ALL + - 46 + + 92
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT + 58 * + - COUNT( * ) * - 83 * - COUNT( * ) + 10 AS col2
----
-4804

skipif mysql # not compatible
query I rowsort label-9000
SELECT + 58 * + - COUNT ( * ) * - 83 * - COUNT ( * ) + 10 AS col2
----
-4804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9001
SELECT ALL - 47 + + 98 + 90 + + MAX( - 79 ) * - CAST( 66 AS SIGNED ) AS col2, COUNT( DISTINCT - 53 ) + + MIN( ALL - 31 ) AS col1
----
5355
-30

skipif mysql # not compatible
query II rowsort label-9001
SELECT ALL - 47 + + 98 + 90 + + MAX ( - 79 ) * - CAST ( 66 AS INTEGER ) AS col2, COUNT ( DISTINCT - 53 ) + + MIN ( ALL - 31 ) AS col1
----
5355
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9002
SELECT DISTINCT + 88 + - 86 DIV COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9002
SELECT DISTINCT + 88 + - 86 / COUNT ( * ) AS col2
----
2

query II rowsort
SELECT ALL ( 74 ) + + + 84 * 79 + - - 75 - 68 - + 31 AS col2, ( 58 ) AS col0
----
6686
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT 25 + 66 * COUNT( * ) + + 39 AS col2
----
130

skipif mysql # not compatible
query I rowsort label-9004
SELECT 25 + 66 * COUNT ( * ) + + 39 AS col2
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9005
SELECT + NULLIF ( - ( - ( CAST( NULL AS SIGNED ) ) ), - - CAST( + MIN( + CAST( - - 38 AS SIGNED ) ) AS SIGNED ) * 33 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9005
SELECT + NULLIF ( - ( - ( CAST ( NULL AS INTEGER ) ) ), - - CAST ( + MIN ( + CAST ( - - 38 AS INTEGER ) ) AS INTEGER ) * 33 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT ALL - CASE - 85 WHEN + - 28 THEN COUNT( * ) * + 80 - + 22 ELSE NULL END * - AVG ( + - 52 ) - 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL - CASE - 85 WHEN + - 28 THEN COUNT ( * ) * + 80 - + 22 ELSE NULL END * - AVG ( + - 52 ) - 15 AS col1
----
NULL

query I rowsort
SELECT - 24 * + - CASE 46 WHEN + 92 THEN - - 88 END * + + ( - + AVG ( 74 ) ) AS col1
----
NULL

query II rowsort
SELECT - 7 + - 31, 27 * + 93 AS col0
----
-38
2511

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT + + COUNT( * ) + + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9009
SELECT + + COUNT ( * ) + + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9010
SELECT ALL - 45 + - - COUNT( * ) DIV - 21
----
-45

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL - 45 + - - COUNT ( * ) / - 21
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT COALESCE ( + + 71, - - 2 + SUM( - + 65 ) )
----
71

skipif mysql # not compatible
query I rowsort label-9011
SELECT COALESCE ( + + 71, - - 2 + SUM ( - + 65 ) )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9012
SELECT DISTINCT - - 29 + - NULLIF ( 83, CAST( NULL AS SIGNED ) * - 24 + + 98 )
----
-54

skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT - - 29 + - NULLIF ( 83, CAST ( NULL AS INTEGER ) * - 24 + + 98 )
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-9013
SELECT ALL + 54 DIV - + 89
----
0

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL + 54 / - + 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT DISTINCT + COUNT( * ) - + 33 col1
----
-32

skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT + COUNT ( * ) - + 33 col1
----
-32

query II rowsort
SELECT DISTINCT 32 AS col1, 96
----
32
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9016
SELECT - 7 * 31 * 62 DIV - 13 col1
----
1034

skipif mysql # not compatible
query I rowsort label-9016
SELECT - 7 * 31 * 62 / - 13 col1
----
1034

query I rowsort
SELECT DISTINCT ( 8 ) * - 20 * - 98
----
15680

onlyif mysql # aggregate syntax: 
query II rowsort label-9018
SELECT ALL COUNT( + 37 ) * - 71, ( + - 64 ) AS col2
----
-71
-64

skipif mysql # not compatible
query II rowsort label-9018
SELECT ALL COUNT ( + 37 ) * - 71, ( + - 64 ) AS col2
----
-71
-64

query II rowsort
SELECT 54 * + 16 - + - 85, + 88 AS col0
----
949
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT ALL + SUM( - + 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL + SUM ( - + 75 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT ALL COUNT( * ) * + + 71 * ( + 63 ) * COUNT( * ) * - 78 AS col0
----
-348894

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL COUNT ( * ) * + + 71 * ( + 63 ) * COUNT ( * ) * - 78 AS col0
----
-348894

query I rowsort
SELECT + 12 * + 21 AS col1
----
252

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9023
SELECT DISTINCT + 82 AS col1, - SUM( ALL - + 25 ) DIV - 63 + + - 72
----
82
-72

skipif mysql # not compatible
query II rowsort label-9023
SELECT DISTINCT + 82 AS col1, - SUM ( ALL - + 25 ) / - 63 + + - 72
----
82
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9024
SELECT + 12 * 47 - - CAST( NULL AS SIGNED ) col2, COUNT( * ) + - + COUNT( * ) col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9024
SELECT + 12 * 47 - - CAST ( NULL AS INTEGER ) col2, COUNT ( * ) + - + COUNT ( * ) col1
----
NULL
0

query I rowsort
SELECT + 18 * - 62
----
-1116

onlyif mysql # DIV for integer division: 
query I rowsort label-9026
SELECT + 50 * 25 DIV + 87 + - ( + 20 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-9026
SELECT + 50 * 25 / + 87 + - ( + 20 ) AS col0
----
-6

query II rowsort
SELECT + 14 AS col0, 39
----
14
39

query II rowsort
SELECT + 17 AS col1, 13 AS col1
----
17
13

query I rowsort
SELECT ALL 64 * - 2
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9030
SELECT + COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) * + + MIN( 5 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9030
SELECT + COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * + + MIN ( 5 ) AS col1
----
0

query I rowsort
SELECT 28 * + 63 + - ( + 75 ) AS col1
----
1689

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9032
SELECT DISTINCT - 10 * + ( 16 ) + - CAST( + ( + + 87 ) AS SIGNED ) AS col0
----
-247

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT - 10 * + ( 16 ) + - CAST ( + ( + + 87 ) AS INTEGER ) AS col0
----
-247

query I rowsort
SELECT ALL ( 95 ) * 17 + + 78 AS col1
----
1693

onlyif mysql # DIV for integer division: 
query I rowsort label-9034
SELECT - + 81 DIV - 54 col1
----
1

skipif mysql # not compatible
query I rowsort label-9034
SELECT - + 81 / - 54 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT - COUNT( DISTINCT 82 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9035
SELECT - COUNT ( DISTINCT 82 ) AS col0
----
-1

query II rowsort
SELECT - 89 AS col1, + 54
----
-89
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9037
SELECT - 78 DIV - 84 * + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9037
SELECT - 78 / - 84 * + - COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9038
SELECT - + 86 AS col0, + 1 * - 88 + - 60 * + CAST( 37 AS SIGNED ) * MIN( ( - ( - 62 ) ) )
----
-86
-137728

skipif mysql # not compatible
query II rowsort label-9038
SELECT - + 86 AS col0, + 1 * - 88 + - 60 * + CAST ( 37 AS INTEGER ) * MIN ( ( - ( - 62 ) ) )
----
-86
-137728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9039
SELECT ALL - - 31 + - 88 * - 97 - + 47 * - 42 * - + SUM( CAST( NULL AS SIGNED ) ) * + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL - - 31 + - 88 * - 97 - + 47 * - 42 * - + SUM ( CAST ( NULL AS INTEGER ) ) * + 2 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT - + 29 - COUNT( * ) col0
----
-30

skipif mysql # not compatible
query I rowsort label-9040
SELECT - + 29 - COUNT ( * ) col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9041
SELECT - CAST( NULL AS SIGNED ) * + 61 * - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9041
SELECT - CAST ( NULL AS INTEGER ) * + 61 * - 17 AS col0
----
NULL

query I rowsort
SELECT - - 55 - 19 AS col1
----
36

query I rowsort
SELECT - - 49 * - 50
----
-2450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9044
SELECT ALL CAST( + 48 AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL CAST ( + 48 AS INTEGER )
----
48

query I rowsort
SELECT - + ( + 5 ) AS col0
----
-5

query I rowsort
SELECT - 81 - + 39 col0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT DISTINCT - + COUNT( * ) * + - MAX( + 87 ) * - - 2 + - - 87 col1
----
261

skipif mysql # not compatible
query I rowsort label-9047
SELECT DISTINCT - + COUNT ( * ) * + - MAX ( + 87 ) * - - 2 + - - 87 col1
----
261

query I rowsort
SELECT ALL + - 64 * 92 AS col1
----
-5888

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT - 94 - + COUNT( * ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-9049
SELECT - 94 - + COUNT ( * ) AS col1
----
-95

query I rowsort
SELECT - 8 - 30
----
-38

query II rowsort
SELECT 41 AS col2, 44
----
41
44

onlyif mysql # aggregate syntax: 
query II rowsort label-9052
SELECT - CASE + - COUNT( * ) WHEN + 88 + - + 65 THEN - 50 END, 82 AS col0
----
NULL
82

skipif mysql # not compatible
query II rowsort label-9052
SELECT - CASE + - COUNT ( * ) WHEN + 88 + - + 65 THEN - 50 END, 82 AS col0
----
NULL
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9053
SELECT - 84 + - 24 + - MAX( + 42 ) * 6 DIV + + ( - COUNT( * ) ) DIV - + COUNT( * ) - - 20
----
-340

skipif mysql # not compatible
query I rowsort label-9053
SELECT - 84 + - 24 + - MAX ( + 42 ) * 6 / + + ( - COUNT ( * ) ) / - + COUNT ( * ) - - 20
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT - 60 + + + COUNT( * ) + + 42 * + + 87 AS col1
----
3595

skipif mysql # not compatible
query I rowsort label-9054
SELECT - 60 + + + COUNT ( * ) + + 42 * + + 87 AS col1
----
3595

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9055
SELECT - COUNT( * ) + - - 22 + - - COUNT( * ) DIV + 46 + 55 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-9055
SELECT - COUNT ( * ) + - - 22 + - - COUNT ( * ) / + 46 + 55 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT ALL ( COALESCE ( - ( ( 39 ) ), - 4 * - 95 - - - COUNT( * ) ) )
----
-39

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL ( COALESCE ( - ( ( 39 ) ), - 4 * - 95 - - - COUNT ( * ) ) )
----
-39

query II rowsort
SELECT DISTINCT ( - 13 ), + 40 AS col2
----
-13
40

query I rowsort
SELECT + 13 + - - 48
----
61

query I rowsort
SELECT + COALESCE ( 31, + 11 )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9060
SELECT - 18 DIV + + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9060
SELECT - 18 / + + 98 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT + MAX( ALL 33 )
----
33

skipif mysql # not compatible
query I rowsort label-9061
SELECT + MAX ( ALL 33 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9062
SELECT + CAST( NULL AS SIGNED ) * CAST( + 36 AS SIGNED ) * - - COALESCE ( + CAST( NULL AS SIGNED ), - + 26 * + ( - - COUNT( * ) ) / 37 + - 30, 35 * 82 - + - 75 * + 5 ) * - 56 + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9062
SELECT + CAST ( NULL AS INTEGER ) * CAST ( + 36 AS INTEGER ) * - - COALESCE ( + CAST ( NULL AS INTEGER ), - + 26 * + ( - - COUNT ( * ) ) / 37 + - 30, 35 * 82 - + - 75 * + 5 ) * - 56 + + 64
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9063
SELECT CAST( 13 AS SIGNED ) AS col2, 13 * 65
----
13
845

skipif mysql # not compatible
query II rowsort label-9063
SELECT CAST ( 13 AS INTEGER ) AS col2, 13 * 65
----
13
845

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9064
SELECT COALESCE ( + - 25, + ( + 80 ) + 39 ) DIV + + 89 + + - 30 + 4 + + 67 * - 68 + - 19 DIV MAX( + ( - 83 ) ) AS col2, 38 * + - SUM( 89 ) AS col1
----
-4582
-3382

skipif mysql # not compatible
query II rowsort label-9064
SELECT COALESCE ( + - 25, + ( + 80 ) + 39 ) / + + 89 + + - 30 + 4 + + 67 * - 68 + - 19 / MAX ( + ( - 83 ) ) AS col2, 38 * + - SUM ( 89 ) AS col1
----
-4582
-3382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9065
SELECT CAST( + SUM( - + 4 ) AS SIGNED ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9065
SELECT CAST ( + SUM ( - + 4 ) AS INTEGER ) AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9066
SELECT ALL CAST( NULL AS SIGNED ) / - CAST( - - 10 AS SIGNED ) + 9 + 36 * + - 64 * - ( CAST( ( + + COALESCE ( - 29, + + 18, MIN( ALL + 2 ) ) ) AS SIGNED ) ) * + CASE + NULLIF ( + 86, COUNT( * ) ) WHEN + 82 THEN NULL ELSE COUNT( ALL 10 ) END - MIN( - 60 ) + - + 57 * + 40 + - 79 * 96 * + + 14 + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL CAST ( NULL AS INTEGER ) / - CAST ( - - 10 AS INTEGER ) + 9 + 36 * + - 64 * - ( CAST ( ( + + COALESCE ( - 29, + + 18, MIN ( ALL + 2 ) ) ) AS INTEGER ) ) * + CASE + NULLIF ( + 86, COUNT ( * ) ) WHEN + 82 THEN NULL ELSE COUNT ( ALL 10 ) END - MIN ( - 60 ) + - + 57 * + 40 + - 79 * 96 * + + 14 + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9067
SELECT CAST( - 27 AS SIGNED ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9067
SELECT CAST ( - 27 AS INTEGER ) AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9068
SELECT + CASE - 16 WHEN 27 * - + 52 * + - 74 THEN NULL WHEN 4 + - 14 THEN + - 39 + ( - NULLIF ( - + COUNT( * ), 31 + + 59 * 45 ) ) + ( - + COUNT( * ) ) END * + - CAST( NULL AS SIGNED ) AS col1, 13 * - - 83 + - 53 + - ( + 9 ) AS col0
----
NULL
1017

skipif mysql # not compatible
query II rowsort label-9068
SELECT + CASE - 16 WHEN 27 * - + 52 * + - 74 THEN NULL WHEN 4 + - 14 THEN + - 39 + ( - NULLIF ( - + COUNT ( * ), 31 + + 59 * 45 ) ) + ( - + COUNT ( * ) ) END * + - CAST ( NULL AS INTEGER ) AS col1, 13 * - - 83 + - 53 + - ( + 9 ) AS col0
----
NULL
1017

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9069
SELECT DISTINCT 45 DIV - 88 * - 78 + - SUM( ALL + + 47 ) - + 63 DIV - + COUNT( * ) + + 56 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT 45 / - 88 * - 78 + - SUM ( ALL + + 47 ) - + 63 / - + COUNT ( * ) + + 56 AS col0
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-9070
SELECT DISTINCT 87 * - COUNT( * ) AS col1, 87 * + 75 + + 68
----
-87
6593

skipif mysql # not compatible
query II rowsort label-9070
SELECT DISTINCT 87 * - COUNT ( * ) AS col1, 87 * + 75 + + 68
----
-87
6593

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9071
SELECT ALL 51 DIV + 48 DIV + COUNT( * ) + 38
----
39

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL 51 / + 48 / + COUNT ( * ) + 38
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9072
SELECT ALL 20 * + CAST( NULL AS SIGNED ) + + CAST( - COALESCE ( - 48, + 92, - - 67 ) AS SIGNED ) + 46 - - 10 + + 11 * + 9 * - 25 + + 85 + - + 46 + + 73 * + - NULLIF ( + 4, - 9 * - 30 ) * - - 68 - - 83 * 45 * - ( + 9 ) * 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL 20 * + CAST ( NULL AS INTEGER ) + + CAST ( - COALESCE ( - 48, + 92, - - 67 ) AS INTEGER ) + 46 - - 10 + + 11 * + 9 * - 25 + + 85 + - + 46 + + 73 * + - NULLIF ( + 4, - 9 * - 30 ) * - - 68 - - 83 * 45 * - ( + 9 ) * 28 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT ALL - COUNT( * ) * - 63 + ( + - 46 ) + + + 47 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL - COUNT ( * ) * - 63 + ( + - 46 ) + + + 47 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT ALL + + ( - SUM( - 70 ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL + + ( - SUM ( - 70 ) ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT DISTINCT 54 * - COUNT( - 62 )
----
-54

skipif mysql # not compatible
query I rowsort label-9075
SELECT DISTINCT 54 * - COUNT ( - 62 )
----
-54

query I rowsort
SELECT + 95 * + - 33 + - 4
----
-3139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9077
SELECT - SUM( DISTINCT - + 38 ) - - MIN( DISTINCT 85 ) DIV + + 11 + + 49 * + 41
----
2054

skipif mysql # not compatible
query I rowsort label-9077
SELECT - SUM ( DISTINCT - + 38 ) - - MIN ( DISTINCT 85 ) / + + 11 + + 49 * + 41
----
2054

onlyif mysql # aggregate syntax: 
query II rowsort label-9078
SELECT 34 + 93 AS col2, SUM( DISTINCT + - 93 )
----
127
-93

skipif mysql # not compatible
query II rowsort label-9078
SELECT 34 + 93 AS col2, SUM ( DISTINCT + - 93 )
----
127
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT ALL COUNT( * ) * 22 - + 82 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL COUNT ( * ) * 22 - + 82 AS col0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9080
SELECT ALL - - CAST( - 67 AS SIGNED ) - + 29 + 43 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-9080
SELECT ALL - - CAST ( - 67 AS INTEGER ) - + 29 + 43 AS col1
----
-53

query I rowsort
SELECT DISTINCT + 87 * - 9 AS col0
----
-783

query I rowsort
SELECT + 65 + - - NULLIF ( 30, - 30 )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9083
SELECT ALL COUNT( * ) * - + 76 * - ( + ( + COUNT( * ) ) ) + - + 0 + 84 + 40 * + + 81 + 64 AS col2, + ( + ( - 58 ) ) * - + 72 * - + ( 58 ) AS col0
----
3464
-242208

skipif mysql # not compatible
query II rowsort label-9083
SELECT ALL COUNT ( * ) * - + 76 * - ( + ( + COUNT ( * ) ) ) + - + 0 + 84 + 40 * + + 81 + 64 AS col2, + ( + ( - 58 ) ) * - + 72 * - + ( 58 ) AS col0
----
3464
-242208

onlyif mysql # aggregate syntax: 
query II rowsort label-9084
SELECT + MIN( ( + 39 ) ) + - 78 AS col2, - 7 AS col2
----
-39
-7

skipif mysql # not compatible
query II rowsort label-9084
SELECT + MIN ( ( + 39 ) ) + - 78 AS col2, - 7 AS col2
----
-39
-7

query I rowsort
SELECT 3 + + 29 * - - 46 AS col1
----
1337

query II rowsort
SELECT DISTINCT + - 61 - 28, - 92 * + + 60 AS col1
----
-89
-5520

query I rowsort
SELECT 34 * - 15 AS col1
----
-510

onlyif mysql # DIV for integer division: 
query I rowsort label-9088
SELECT ALL 42 DIV 5
----
8

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL 42 / 5
----
8

query I rowsort
SELECT ALL - 91 * 10
----
-910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9090
SELECT 40 DIV + ( 60 ) * + MIN( 95 ) + + ( 85 ) + - - COUNT( * ) + - + 99
----
-13

skipif mysql # not compatible
query I rowsort label-9090
SELECT 40 / + ( 60 ) * + MIN ( 95 ) + + ( 85 ) + - - COUNT ( * ) + - + 99
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9091
SELECT DISTINCT - COALESCE ( + 98, + 14, 80 * - 89 * - COUNT( * ) ) DIV - 80 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT - COALESCE ( + 98, + 14, 80 * - 89 * - COUNT ( * ) ) / - 80 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9092
SELECT 53 DIV - + 82
----
0

skipif mysql # not compatible
query I rowsort label-9092
SELECT 53 / - + 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9093
SELECT ALL - CAST( NULL AS SIGNED ) + COUNT( * ) * 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL - CAST ( NULL AS INTEGER ) + COUNT ( * ) * 54 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9094
SELECT DISTINCT + NULLIF ( COUNT( * ), - 60 ) * 6 + - - 74 + + + 9 + - + 42 + - COUNT( * ) DIV + MAX( 56 ) * - 23 DIV 4 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT + NULLIF ( COUNT ( * ), - 60 ) * 6 + - - 74 + + + 9 + - + 42 + - COUNT ( * ) / + MAX ( 56 ) * - 23 / 4 AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9095
SELECT 34 * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9095
SELECT 34 * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 41, + 44 - - 48 * - 20 AS col0
----
41
-916

onlyif mysql # aggregate syntax: 
query II rowsort label-9097
SELECT ALL - 28 * + - 79 * - 59, - 48 + + COUNT( * ) AS col2
----
-130508
-47

skipif mysql # not compatible
query II rowsort label-9097
SELECT ALL - 28 * + - 79 * - 59, - 48 + + COUNT ( * ) AS col2
----
-130508
-47

query I rowsort
SELECT 75 * 53 AS col0
----
3975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT - 4 * 59 - - CAST( - 56 AS SIGNED ) AS col2
----
-292

skipif mysql # not compatible
query I rowsort label-9099
SELECT - 4 * 59 - - CAST ( - 56 AS INTEGER ) AS col2
----
-292

query I rowsort
SELECT ALL + 56 + 79 AS col1
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9101
SELECT ALL - 1 + + 11 + - + 7 - COUNT( * ) DIV + - 73 * 98, 65 AS col1
----
3
65

skipif mysql # not compatible
query II rowsort label-9101
SELECT ALL - 1 + + 11 + - + 7 - COUNT ( * ) / + - 73 * 98, 65 AS col1
----
3
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9102
SELECT 65 DIV + 44 - 10 + + CAST( - + 15 AS SIGNED ) * - ( - 33 ) * - COUNT( * ) * - 68 AS col0
----
-33669

skipif mysql # not compatible
query I rowsort label-9102
SELECT 65 / + 44 - 10 + + CAST ( - + 15 AS INTEGER ) * - ( - 33 ) * - COUNT ( * ) * - 68 AS col0
----
-33669

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT ALL - NULLIF ( - 81, 64 ) * - COUNT( * ) * - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL - NULLIF ( - 81, 64 ) * - COUNT ( * ) * - COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT DISTINCT 76 + + 46 * - CASE - + COUNT( * ) WHEN - MIN( DISTINCT 56 ) + - 3 - + 90 THEN - 80 * + 10 + - 72 + + - COALESCE ( COALESCE ( + + 83, + + 53 ), - + ( 5 ), - 40, 50 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT 76 + + 46 * - CASE - + COUNT ( * ) WHEN - MIN ( DISTINCT 56 ) + - 3 - + 90 THEN - 80 * + 10 + - 72 + + - COALESCE ( COALESCE ( + + 83, + + 53 ), - + ( 5 ), - 40, 50 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9105
SELECT ALL 11 + - COALESCE ( 65, + - CASE - 45 WHEN - 84 THEN + 55 * - 66 + - + 27 * - CASE - CAST( + 72 AS DECIMAL ) WHEN - 96 * - CASE + 74 WHEN 71 * - + 56 THEN - + AVG ( DISTINCT 83 ) + COUNT( * ) * 82 WHEN + 77 THEN NULL ELSE - + 20 END * + 70 + + + 78 + + 6 * - 69 - - 12 + + 58 * + 99 * - 60 + 50 THEN NULL ELSE - COUNT( + CAST( 72 AS SIGNED ) ) END ELSE NULL END + 37 DIV 91 )
----
-54

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL 11 + - COALESCE ( 65, + - CASE - 45 WHEN - 84 THEN + 55 * - 66 + - + 27 * - CASE - CAST ( + 72 AS REAL ) WHEN - 96 * - CASE + 74 WHEN 71 * - + 56 THEN - + AVG ( DISTINCT 83 ) + COUNT ( * ) * 82 WHEN + 77 THEN NULL ELSE - + 20 END * + 70 + + + 78 + + 6 * - 69 - - 12 + + 58 * + 99 * - 60 + 50 THEN NULL ELSE - COUNT ( + CAST ( 72 AS INTEGER ) ) END ELSE NULL END + 37 / 91 )
----
-54

query I rowsort
SELECT DISTINCT + 38 + + 99
----
137

query I rowsort
SELECT DISTINCT - 84 + - 91
----
-175

query I rowsort
SELECT ALL - 10 * - + 66
----
660

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9109
SELECT DISTINCT - MAX( DISTINCT + - 24 ) * + - 90 AS col0, 52 DIV + COUNT( * )
----
-2160
52

skipif mysql # not compatible
query II rowsort label-9109
SELECT DISTINCT - MAX ( DISTINCT + - 24 ) * + - 90 AS col0, 52 / + COUNT ( * )
----
-2160
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9110
SELECT + 93 * - ( + COALESCE ( CASE CAST( - 75 AS SIGNED ) WHEN - - 99 * 59 THEN + 4 + - 38 * + CAST( NULL AS SIGNED ) - 21 END, - CASE 70 WHEN 21 * COALESCE ( + MAX( 36 ), COUNT( * ) + + - 18 + 60 * + + ( + 33 ) ) * 26 + - 75 * 66 - + - 17 THEN - COALESCE ( + + 49, - 3 * 14, COUNT( - CAST( NULL AS SIGNED ) ) * - 45 - 46 ) + - 20 * + 43 ELSE NULL END, - 96 ) ) + COUNT( ALL ( COALESCE ( 78, 60 + 31 ) ) ) * - 75 AS col2
----
8853

skipif mysql # not compatible
query I rowsort label-9110
SELECT + 93 * - ( + COALESCE ( CASE CAST ( - 75 AS INTEGER ) WHEN - - 99 * 59 THEN + 4 + - 38 * + CAST ( NULL AS INTEGER ) - 21 END, - CASE 70 WHEN 21 * COALESCE ( + MAX ( 36 ), COUNT ( * ) + + - 18 + 60 * + + ( + 33 ) ) * 26 + - 75 * 66 - + - 17 THEN - COALESCE ( + + 49, - 3 * 14, COUNT ( - CAST ( NULL AS INTEGER ) ) * - 45 - 46 ) + - 20 * + 43 ELSE NULL END, - 96 ) ) + COUNT ( ALL ( COALESCE ( 78, 60 + 31 ) ) ) * - 75 AS col2
----
8853

query I rowsort
SELECT DISTINCT - - ( 52 ) col0
----
52

query I rowsort
SELECT ALL - + COALESCE ( 48, 56 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT ALL COUNT( 85 ) - - 18 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL COUNT ( 85 ) - - 18 AS col1
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-9114
SELECT DISTINCT 32 - + + 87 * 48 * + - 55 + - 9 - - COUNT( DISTINCT + 63 ) - - 41 AS col2, + COUNT( * )
----
229745
1

skipif mysql # not compatible
query II rowsort label-9114
SELECT DISTINCT 32 - + + 87 * 48 * + - 55 + - 9 - - COUNT ( DISTINCT + 63 ) - - 41 AS col2, + COUNT ( * )
----
229745
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9115
SELECT - - NULLIF ( + 67, COUNT( * ) ) AS col0, 60 * - 17 * + 84 + 71 * - CAST( NULL AS SIGNED ) - + NULLIF ( + 17, - - COUNT( * ) ) AS col0
----
67
NULL

skipif mysql # not compatible
query II rowsort label-9115
SELECT - - NULLIF ( + 67, COUNT ( * ) ) AS col0, 60 * - 17 * + 84 + 71 * - CAST ( NULL AS INTEGER ) - + NULLIF ( + 17, - - COUNT ( * ) ) AS col0
----
67
NULL

query I rowsort
SELECT - + 72 col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT - 29 - - - 7 + COUNT( 27 )
----
-35

skipif mysql # not compatible
query I rowsort label-9117
SELECT - 29 - - - 7 + COUNT ( 27 )
----
-35

query I rowsort
SELECT 20 * 44
----
880

query I rowsort
SELECT ALL 73 * + 25 * NULLIF ( - + 52, 75 ) col2
----
-94900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9120
SELECT - NULLIF ( 70, + + 29 + - - COALESCE ( 11, + COUNT( DISTINCT + ( + ( + 45 ) ) ) * - 40 * - 25 + - - ( MIN( 31 ) ), + + 46 + + ( 73 ) ) ) + - NULLIF ( - 12, + COUNT( * ) * + 92 * - + 87 / - - ( - 99 ) * - - COUNT( - 54 ) + + 21 + 95 * - CAST( NULL AS SIGNED ) + - 77 + + 7 ) + + 4 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-9120
SELECT - NULLIF ( 70, + + 29 + - - COALESCE ( 11, + COUNT ( DISTINCT + ( + ( + 45 ) ) ) * - 40 * - 25 + - - ( MIN ( 31 ) ), + + 46 + + ( 73 ) ) ) + - NULLIF ( - 12, + COUNT ( * ) * + 92 * - + 87 / - - ( - 99 ) * - - COUNT ( - 54 ) + + 21 + 95 * - CAST ( NULL AS INTEGER ) + - 77 + + 7 ) + + 4 AS col1
----
-54

query II rowsort
SELECT ALL 80, - 9 - 62 * - + 37 * - 1 + 61 - + 19 AS col2
----
80
-2261

query II rowsort
SELECT DISTINCT 82 col2, + 84
----
82
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT MAX( DISTINCT - - 74 ) - + + 78
----
-4

skipif mysql # not compatible
query I rowsort label-9123
SELECT MAX ( DISTINCT - - 74 ) - + + 78
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-9124
SELECT 97 AS col0, - SUM( DISTINCT 5 )
----
97
-5

skipif mysql # not compatible
query II rowsort label-9124
SELECT 97 AS col0, - SUM ( DISTINCT 5 )
----
97
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9125
SELECT ALL CAST( + 94 AS SIGNED ) + + 8 + + - 15 * - - 43 * 77 AS col2
----
-49563

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL CAST ( + 94 AS INTEGER ) + + 8 + + - 15 * - - 43 * 77 AS col2
----
-49563

query II rowsort
SELECT ALL 91 AS col0, ( - + 93 )
----
91
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT - MAX( + + 19 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-9127
SELECT - MAX ( + + 19 ) AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9128
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) * - + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9128
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) * - + 48
----
NULL

query I rowsort
SELECT 69 + 67
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT ALL 89 + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL 89 + COUNT ( * )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9131
SELECT 84 AS col0, NULLIF ( - - COUNT( * ), - COUNT( * ) ), 86 / COUNT( * ) * + - 50 + - CAST( NULL AS SIGNED ) + 11 / + 27 - + + COALESCE ( 15, NULLIF ( + + 39, - CASE + COUNT( * ) WHEN - 43 THEN NULL WHEN - - 86 THEN NULL ELSE + 10 END ) ) AS col2
----
84
1
NULL

skipif mysql # not compatible
query III rowsort label-9131
SELECT 84 AS col0, NULLIF ( - - COUNT ( * ), - COUNT ( * ) ), 86 / COUNT ( * ) * + - 50 + - CAST ( NULL AS INTEGER ) + 11 / + 27 - + + COALESCE ( 15, NULLIF ( + + 39, - CASE + COUNT ( * ) WHEN - 43 THEN NULL WHEN - - 86 THEN NULL ELSE + 10 END ) ) AS col2
----
84
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9132
SELECT 49 + - COUNT( * ) DIV - ( - 85 ) col2
----
49

skipif mysql # not compatible
query I rowsort label-9132
SELECT 49 + - COUNT ( * ) / - ( - 85 ) col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9133
SELECT CASE ( + 61 ) WHEN - - ( - + 78 ) * + 51 * - CAST( NULL AS DECIMAL ) * - COUNT( * ) THEN NULL WHEN - 64 THEN + + COUNT( ALL - 27 ) + + + 25 + + 46 + + - 39 * 25 * + - COUNT( * ) * - 84 + 98 END + + + 34 AS col1, COUNT( 64 ) * - 74 AS col0
----
NULL
-74

skipif mysql # not compatible
query II rowsort label-9133
SELECT CASE ( + 61 ) WHEN - - ( - + 78 ) * + 51 * - CAST ( NULL AS REAL ) * - COUNT ( * ) THEN NULL WHEN - 64 THEN + + COUNT ( ALL - 27 ) + + + 25 + + 46 + + - 39 * 25 * + - COUNT ( * ) * - 84 + 98 END + + + 34 AS col1, COUNT ( 64 ) * - 74 AS col0
----
NULL
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-9134
SELECT ALL COUNT( * ), COUNT( DISTINCT - ( + + 75 ) ) col0
----
1
1

skipif mysql # not compatible
query II rowsort label-9134
SELECT ALL COUNT ( * ), COUNT ( DISTINCT - ( + + 75 ) ) col0
----
1
1

query I rowsort
SELECT 78 + + 27 + 12
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT 84 * COUNT( * ) * - + 82 col0
----
-6888

skipif mysql # not compatible
query I rowsort label-9136
SELECT 84 * COUNT ( * ) * - + 82 col0
----
-6888

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT + COALESCE ( - 83, - 51 * - COUNT( * ) * - - MIN( DISTINCT 46 ) - - - 28, + 34 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-9137
SELECT + COALESCE ( - 83, - 51 * - COUNT ( * ) * - - MIN ( DISTINCT 46 ) - - - 28, + 34 ) AS col2
----
-83

query I rowsort
SELECT NULLIF ( 94, + - 8 / + - 89 * 7 * + + ( + 25 ) + 55 )
----
94

query I rowsort
SELECT DISTINCT - 81 * - 3 - + ( + 57 ) AS col2
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9140
SELECT 69 / - + 24 * + 94 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9140
SELECT 69 / - + 24 * + 94 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 58 * - - 37 AS col2
----
-2146

query I rowsort
SELECT ALL + + ( + 57 ) AS col2
----
57

query I rowsort
SELECT - + 42 + + 1 AS col0
----
-41

query I rowsort
SELECT DISTINCT - NULLIF ( + 89, + 64 ) * - + ( + 1 ) col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT DISTINCT + COUNT( * ) * - COALESCE ( 17, - COUNT( 40 ), + 76 * 1 * + + MAX( 62 ) * + + 72 ) - + COUNT( * ) * + - ( 17 ) + 88
----
88

skipif mysql # not compatible
query I rowsort label-9145
SELECT DISTINCT + COUNT ( * ) * - COALESCE ( 17, - COUNT ( 40 ), + 76 * 1 * + + MAX ( 62 ) * + + 72 ) - + COUNT ( * ) * + - ( 17 ) + 88
----
88

query I rowsort
SELECT DISTINCT - 20 * - + 65
----
1300

query I rowsort
SELECT - + 92 * - NULLIF ( - 11, + 72 ) * 15 + 13 AS col2
----
-15167

query I rowsort
SELECT DISTINCT 73 * + 29
----
2117

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT + 28 * + 51 + + + 55 + + 44 - - COUNT( * )
----
1528

skipif mysql # not compatible
query I rowsort label-9149
SELECT + 28 * + 51 + + + 55 + + 44 - - COUNT ( * )
----
1528

onlyif mysql # aggregate syntax: 
query II rowsort label-9150
SELECT DISTINCT + - COUNT( * ) AS col2, 2 + - ( - + 50 )
----
-1
52

skipif mysql # not compatible
query II rowsort label-9150
SELECT DISTINCT + - COUNT ( * ) AS col2, 2 + - ( - + 50 )
----
-1
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9151
SELECT ALL + 37 DIV + - 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL + 37 / + - 40 AS col1
----
0

query I rowsort
SELECT - 91 * 64
----
-5824

onlyif mysql # DIV for integer division: 
query I rowsort label-9153
SELECT + 60 + - 38 - - + 64 DIV 48 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-9153
SELECT + 60 + - 38 - - + 64 / 48 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT + - SUM( DISTINCT 96 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-9154
SELECT + - SUM ( DISTINCT 96 ) AS col0
----
-96

query I rowsort
SELECT ALL + - COALESCE ( + - 68, - + 18 )
----
68

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9156
SELECT CAST( NULL AS DECIMAL ) AS col1, 35 + - ( - 45 )
----
NULL
80

skipif mysql # not compatible
query II rowsort label-9156
SELECT CAST ( NULL AS REAL ) AS col1, 35 + - ( - 45 )
----
NULL
80

onlyif mysql # aggregate syntax: 
query II rowsort label-9157
SELECT ALL + - 44, + 47 * COUNT( * ) * + 29 AS col2
----
-44
1363

skipif mysql # not compatible
query II rowsort label-9157
SELECT ALL + - 44, + 47 * COUNT ( * ) * + 29 AS col2
----
-44
1363

query I rowsort
SELECT + 36 * - 41 * + 32 + - 48 * + + 96 - + 41
----
-51881

onlyif mysql # DIV for integer division: 
query I rowsort label-9159
SELECT + 87 DIV + 22 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9159
SELECT + 87 / + 22 AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9160
SELECT ALL - CASE 95 WHEN - 40 THEN 34 * 14 * - + 47 - + 74 DIV + 88 * 13 ELSE + 70 END * - 79 - - ( + + 58 ) + + ( + 41 ) AS col2
----
5629

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL - CASE 95 WHEN - 40 THEN 34 * 14 * - + 47 - + 74 / + 88 * 13 ELSE + 70 END * - 79 - - ( + + 58 ) + + ( + 41 ) AS col2
----
5629

query I rowsort
SELECT - - 66 + - - 28
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT DISTINCT + + 15 * - CASE - 62 WHEN NULLIF ( 79, - - ( + - 77 ) ) * - 99 THEN NULL ELSE - 73 + - 86 END - - 6 * ( - + COUNT( * ) )
----
2379

skipif mysql # not compatible
query I rowsort label-9162
SELECT DISTINCT + + 15 * - CASE - 62 WHEN NULLIF ( 79, - - ( + - 77 ) ) * - 99 THEN NULL ELSE - 73 + - 86 END - - 6 * ( - + COUNT ( * ) )
----
2379

query II rowsort
SELECT ALL 21 col1, + 18 * 15 * - 28 + + 29 - + + 3 + 88 * + + 8
----
21
-6830

onlyif mysql # DIV for integer division: 
query I rowsort label-9164
SELECT + - 16 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-9164
SELECT + - 16 / - 84
----
0

query I rowsort
SELECT ALL + + 65 + 94
----
159

query I rowsort
SELECT - COALESCE ( - 37, 13 + + 33 ) AS col1
----
37

query I rowsort
SELECT ALL 1 + - ( + 18 )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9168
SELECT + 7 + 97 - - + ( CASE - MAX( ALL 46 ) WHEN + COUNT( + 12 ) * - + 83 * - 36 THEN - CAST( NULL AS SIGNED ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT + 7 + 97 - - + ( CASE - MAX ( ALL 46 ) WHEN + COUNT ( + 12 ) * - + 83 * - 36 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT ALL COUNT( * ) + - 78 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL COUNT ( * ) + - 78 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT + MAX( 13 ) + - 91 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-9170
SELECT + MAX ( 13 ) + - 91 AS col2
----
-78

query I rowsort
SELECT ALL 65 + - 83
----
-18

query II rowsort
SELECT + 71 * + + 39 col1, - 57 + + + 69 AS col2
----
2769
12

query I rowsort
SELECT ALL 42 + + - 27 - + - 9
----
24

query I rowsort
SELECT DISTINCT 47 * - + 61 * - - 91 AS col0
----
-260897

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT DISTINCT MIN( DISTINCT + 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT MIN ( DISTINCT + 77 ) AS col2
----
77

query I rowsort
SELECT + ( ( - 45 ) ) * 84 AS col1
----
-3780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9177
SELECT + NULLIF ( + - COUNT( * ), 75 - - + 2 + - 54 * CAST( NULL AS SIGNED ) / + 77 ) * - + MIN( DISTINCT - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-9177
SELECT + NULLIF ( + - COUNT ( * ), 75 - - + 2 + - 54 * CAST ( NULL AS INTEGER ) / + 77 ) * - + MIN ( DISTINCT - 82 )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9178
SELECT + 57 DIV + 1 - MAX( DISTINCT 21 )
----
36

skipif mysql # not compatible
query I rowsort label-9178
SELECT + 57 / + 1 - MAX ( DISTINCT 21 )
----
36

query I rowsort
SELECT - 63 * + - 80 * + 98 AS col2
----
493920

query I rowsort
SELECT + + 13 - - + NULLIF ( + 83, - 54 ) + 70
----
166

onlyif mysql # aggregate syntax: 
query II rowsort label-9181
SELECT DISTINCT + SUM( 69 ) AS col0, - MIN( DISTINCT + + 92 ) * 94 * + 80 - + 4
----
69
-691844

skipif mysql # not compatible
query II rowsort label-9181
SELECT DISTINCT + SUM ( 69 ) AS col0, - MIN ( DISTINCT + + 92 ) * 94 * + 80 - + 4
----
69
-691844

onlyif mysql # aggregate syntax: 
query II rowsort label-9182
SELECT + - 38 + + MIN( DISTINCT - 69 ), COUNT( * ) * + + COUNT( * ) + + COUNT( * ) + - + 74 + + + 15 * + 24 col2
----
-107
288

skipif mysql # not compatible
query II rowsort label-9182
SELECT + - 38 + + MIN ( DISTINCT - 69 ), COUNT ( * ) * + + COUNT ( * ) + + COUNT ( * ) + - + 74 + + + 15 * + 24 col2
----
-107
288

onlyif mysql # DIV for integer division: 
query I rowsort label-9183
SELECT ALL 78 DIV - 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL 78 / - 87 AS col2
----
0

query I rowsort
SELECT DISTINCT + + 84 * - 95 AS col1
----
-7980

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT DISTINCT + CASE - + 19 WHEN - 58 THEN - + ( - 67 ) * - COUNT( * ) WHEN 39 THEN NULL END * ( 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9185
SELECT DISTINCT + CASE - + 19 WHEN - 58 THEN - + ( - 67 ) * - COUNT ( * ) WHEN 39 THEN NULL END * ( 82 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT - - 64 * - 61 - COUNT( * )
----
-3905

skipif mysql # not compatible
query I rowsort label-9186
SELECT - - 64 * - 61 - COUNT ( * )
----
-3905

query I rowsort
SELECT ALL + - 17 * + 75
----
-1275

query I rowsort
SELECT + - NULLIF ( - 31, 82 )
----
31

query I rowsort
SELECT - 49 - - - 76 + 0 * + 33 * - 35 AS col0
----
-125

query I rowsort
SELECT + - 86 * + NULLIF ( + 15, - 48 ) AS col2
----
-1290

onlyif mysql # DIV for integer division: 
query I rowsort label-9191
SELECT ALL + 28 * - - 59 + + 33 + 64 - + + 2 DIV - 91
----
1749

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL + 28 * - - 59 + + 33 + 64 - + + 2 / - 91
----
1749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9192
SELECT - 46 * 94 * 91 / COALESCE ( + 35, + + 11, + 76 * - - 38 * 98 + + 38 ) + - + AVG ( DISTINCT - - 53 ) + + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9192
SELECT - 46 * 94 * 91 / COALESCE ( + 35, + + 11, + 76 * - - 38 * 98 + + 38 ) + - + AVG ( DISTINCT - - 53 ) + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT ALL + COUNT( * ) * 93 * - MAX( + 12 )
----
-1116

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL + COUNT ( * ) * 93 * - MAX ( + 12 )
----
-1116

onlyif mysql # aggregate syntax: 
query II rowsort label-9194
SELECT ALL + MIN( + 45 ) AS col2, - 48
----
45
-48

skipif mysql # not compatible
query II rowsort label-9194
SELECT ALL + MIN ( + 45 ) AS col2, - 48
----
45
-48

query I rowsort
SELECT - 25 * 75 col1
----
-1875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9196
SELECT DISTINCT + CAST( + - 90 AS SIGNED ) * + 88 + - - 12
----
-7908

skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT + CAST ( + - 90 AS INTEGER ) * + 88 + - - 12
----
-7908

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9197
SELECT - NULLIF ( 63, - 6 ) * + ( + 13 ) - + 72 + - + COUNT( * ) - MIN( + + 67 ) DIV - - 99
----
-892

skipif mysql # not compatible
query I rowsort label-9197
SELECT - NULLIF ( 63, - 6 ) * + ( + 13 ) - + 72 + - + COUNT ( * ) - MIN ( + + 67 ) / - - 99
----
-892

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT - NULLIF ( + ( - 44 ), + 78 ) * + COUNT( * ) - + 72
----
-28

skipif mysql # not compatible
query I rowsort label-9198
SELECT - NULLIF ( + ( - 44 ), + 78 ) * + COUNT ( * ) - + 72
----
-28

query I rowsort
SELECT ALL - ( 72 ) * - 91 + 55 AS col1
----
6607

query I rowsort
SELECT - COALESCE ( + - 74, 18, 24 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-9201
SELECT COUNT( * ) AS col1, - MAX( DISTINCT - NULLIF ( + 11, 12 ) ) col1
----
1
11

skipif mysql # not compatible
query II rowsort label-9201
SELECT COUNT ( * ) AS col1, - MAX ( DISTINCT - NULLIF ( + 11, 12 ) ) col1
----
1
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9202
SELECT + CAST( - + 91 AS SIGNED ) * 54 col1
----
-4914

skipif mysql # not compatible
query I rowsort label-9202
SELECT + CAST ( - + 91 AS INTEGER ) * 54 col1
----
-4914

query I rowsort
SELECT - 48 + - 97 * - 29
----
2765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT - ( - CAST( 5 AS SIGNED ) ) + 37 col2
----
42

skipif mysql # not compatible
query I rowsort label-9204
SELECT - ( - CAST ( 5 AS INTEGER ) ) + 37 col2
----
42

query I rowsort
SELECT ALL + 69 + - 41 AS col2
----
28

query I rowsort
SELECT - 41 * - 72 col0
----
2952

onlyif mysql # DIV for integer division: 
query I rowsort label-9207
SELECT DISTINCT 53 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT 53 / 81
----
0

query I rowsort
SELECT ALL 12 - + 45 col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT + NULLIF ( COUNT( + + 80 ), 58 ) - - COUNT( * ) + 8 + 92
----
102

skipif mysql # not compatible
query I rowsort label-9209
SELECT + NULLIF ( COUNT ( + + 80 ), 58 ) - - COUNT ( * ) + 8 + 92
----
102

query I rowsort
SELECT - 88 + - 97 AS col1
----
-185

query I rowsort
SELECT + 94 - + + 78 * - 47 AS col2
----
3760

query I rowsort
SELECT - 5 * + 15
----
-75

query II rowsort
SELECT 38 AS col1, 26 AS col0
----
38
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9214
SELECT COUNT( - ( + - 26 ) ) * + - ( - 92 ) * 89 * - 58 * + CAST( + 6 AS SIGNED ) + - - COUNT( * )
----
-2849423

skipif mysql # not compatible
query I rowsort label-9214
SELECT COUNT ( - ( + - 26 ) ) * + - ( - 92 ) * 89 * - 58 * + CAST ( + 6 AS INTEGER ) + - - COUNT ( * )
----
-2849423

query II rowsort
SELECT DISTINCT 68, + 7 + 4 col2
----
68
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9216
SELECT 84 + - 83 * COUNT( * ) * COUNT( * ) - 69 * + CASE 47 WHEN + 50 THEN NULL ELSE 8 * CAST( + 7 AS SIGNED ) + + COUNT( * ) + - + COUNT( * ) * - MIN( DISTINCT + 31 ) + - 34 + + 60 * + ( 23 ) END * 97
----
-9597761

skipif mysql # not compatible
query I rowsort label-9216
SELECT 84 + - 83 * COUNT ( * ) * COUNT ( * ) - 69 * + CASE 47 WHEN + 50 THEN NULL ELSE 8 * CAST ( + 7 AS INTEGER ) + + COUNT ( * ) + - + COUNT ( * ) * - MIN ( DISTINCT + 31 ) + - 34 + + 60 * + ( 23 ) END * 97
----
-9597761

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT ALL NULLIF ( + - AVG ( ALL 89 ), 14 * + 2 - + ( 79 ) + + 2 - - + ( + 95 ) ) * + + NULLIF ( + AVG ( 51 ), - COUNT( * ) ) * + 37 + - CASE + 82 WHEN - 27 THEN NULL WHEN + - MIN( + 73 ) THEN + 45 / COUNT( * ) * + 86 * 72 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL NULLIF ( + - AVG ( ALL 89 ), 14 * + 2 - + ( 79 ) + + 2 - - + ( + 95 ) ) * + + NULLIF ( + AVG ( 51 ), - COUNT ( * ) ) * + 37 + - CASE + 82 WHEN - 27 THEN NULL WHEN + - MIN ( + 73 ) THEN + 45 / COUNT ( * ) * + 86 * 72 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 79 * + 17 col0
----
-1343

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT ( - 12 ) + - + MAX( + 61 ) * - + 39
----
2367

skipif mysql # not compatible
query I rowsort label-9219
SELECT ( - 12 ) + - + MAX ( + 61 ) * - + 39
----
2367

query I rowsort
SELECT DISTINCT - 98 * - 3
----
294

query I rowsort
SELECT ALL 67 * + + 61 AS col1
----
4087

query II rowsort
SELECT ALL - 57, ( 59 ) AS col0
----
-57
59

onlyif mysql # aggregate syntax: 
query II rowsort label-9223
SELECT + - COUNT( * ) AS col2, 0 AS col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-9223
SELECT + - COUNT ( * ) AS col2, 0 AS col1
----
-1
0

query I rowsort
SELECT 47 + - - 25 col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9225
SELECT ALL ( COALESCE ( - 57, + - 49 * - + AVG ( - - 41 ) - + 82 + + SUM( ALL - 22 ), + MAX( + + 32 ) ) ) + - CASE - + 37 WHEN + 70 + CAST( NULL AS SIGNED ) THEN + COUNT( * ) + + COUNT( * ) * 51 END * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL ( COALESCE ( - 57, + - 49 * - + AVG ( - - 41 ) - + 82 + + SUM ( ALL - 22 ), + MAX ( + + 32 ) ) ) + - CASE - + 37 WHEN + 70 + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) + + COUNT ( * ) * 51 END * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT ALL - 46 + - ( + COUNT( * ) )
----
-47

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL - 46 + - ( + COUNT ( * ) )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT ( - NULLIF ( 41, + NULLIF ( COUNT( * ), 62 - + 12 ) ) ) * + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-9227
SELECT ( - NULLIF ( 41, + NULLIF ( COUNT ( * ), 62 - + 12 ) ) ) * + COUNT ( * )
----
-41

query I rowsort
SELECT 3 + - - 98
----
101

query I rowsort
SELECT ALL 83 + 9
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT DISTINCT - - 40 * - 9 * - COUNT( * ) * + - 23 AS col1
----
-8280

skipif mysql # not compatible
query I rowsort label-9230
SELECT DISTINCT - - 40 * - 9 * - COUNT ( * ) * + - 23 AS col1
----
-8280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9231
SELECT ALL + - COUNT( ALL CAST( - - 58 AS SIGNED ) ) + + 98 + 30 DIV + 77
----
97

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL + - COUNT ( ALL CAST ( - - 58 AS INTEGER ) ) + + 98 + 30 / + 77
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT ALL - COUNT( * ) + 78 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL - COUNT ( * ) + 78 AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9233
SELECT ALL - 94 * - + SUM( DISTINCT - 38 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL - 94 * - + SUM ( DISTINCT - 38 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9234
SELECT 83 * - 83 - - + 34 + + - 91 - - 32 + + COUNT( * ) DIV MIN( DISTINCT + - 96 ) + - ( + - 34 ) col2
----
-6880

skipif mysql # not compatible
query I rowsort label-9234
SELECT 83 * - 83 - - + 34 + + - 91 - - 32 + + COUNT ( * ) / MIN ( DISTINCT + - 96 ) + - ( + - 34 ) col2
----
-6880

onlyif mysql # aggregate syntax: 
query II rowsort label-9235
SELECT ALL + 19 * MIN( + 34 ) AS col2, - 51
----
646
-51

skipif mysql # not compatible
query II rowsort label-9235
SELECT ALL + 19 * MIN ( + 34 ) AS col2, - 51
----
646
-51

query I rowsort
SELECT + + ( - + 45 )
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9237
SELECT CAST( 90 AS SIGNED ) + - 48
----
42

skipif mysql # not compatible
query I rowsort label-9237
SELECT CAST ( 90 AS INTEGER ) + - 48
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT 59 + NULLIF ( MIN( - 76 ), + 25 )
----
-17

skipif mysql # not compatible
query I rowsort label-9238
SELECT 59 + NULLIF ( MIN ( - 76 ), + 25 )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9239
SELECT DISTINCT - ( COALESCE ( - COUNT( ALL - CAST( - + 77 AS SIGNED ) ), 76 * - COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9239
SELECT DISTINCT - ( COALESCE ( - COUNT ( ALL - CAST ( - + 77 AS INTEGER ) ), 76 * - COUNT ( * ) ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 83 - - 97
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT ALL + 38 * - - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL + 38 * - - COUNT ( * )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9242
SELECT 94 + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9242
SELECT 94 + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9243
SELECT ALL - 47 DIV - + 52
----
0

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL - 47 / - + 52
----
0

query I rowsort
SELECT 4 + + - 67 * - + ( - 87 ) AS col1
----
-5825

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL - COUNT( * ) * + 67 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL - COUNT ( * ) * + 67 AS col0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-9246
SELECT 74 DIV - 7 col2
----
-10

skipif mysql # not compatible
query I rowsort label-9246
SELECT 74 / - 7 col2
----
-10

query I rowsort
SELECT 0 * + + 61 * 28 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9248
SELECT DISTINCT - COUNT( * ) * - 78 AS col0, - 65 * - 86 * 14 * - 40 * 53 col0
----
78
-165911200

skipif mysql # not compatible
query II rowsort label-9248
SELECT DISTINCT - COUNT ( * ) * - 78 AS col0, - 65 * - 86 * 14 * - 40 * 53 col0
----
78
-165911200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9249
SELECT ALL + 10 DIV CAST( - ( + 6 ) AS SIGNED ) * - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL + 10 / CAST ( - ( + 6 ) AS INTEGER ) * - COUNT ( * ) col0
----
1

query I rowsort
SELECT - + NULLIF ( + 28, - - 10 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT - NULLIF ( 3, + 22 / + 40 * + COUNT( * ) ) + 72
----
69

skipif mysql # not compatible
query I rowsort label-9251
SELECT - NULLIF ( 3, + 22 / + 40 * + COUNT ( * ) ) + 72
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9252
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9252
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 25 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9253
SELECT ALL - 50 DIV + CAST( + 79 AS SIGNED ) * 61 + 18
----
18

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL - 50 / + CAST ( + 79 AS INTEGER ) * 61 + 18
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9254
SELECT DISTINCT - 34 * - 19 + + 22 + + - 92, 41 * + COUNT( * ) + + 88 DIV - 71 AS col2
----
576
40

skipif mysql # not compatible
query II rowsort label-9254
SELECT DISTINCT - 34 * - 19 + + 22 + + - 92, 41 * + COUNT ( * ) + + 88 / - 71 AS col2
----
576
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9255
SELECT DISTINCT + 98 * + 85 + - CASE + - 59 WHEN - 80 * + 97 * - 93 * - + 80 + - + MIN( + + CAST( NULL AS SIGNED ) ) THEN SUM( 4 ) * 21 + + NULLIF ( - 94, 9 ) + 49 END, 95 * - 62 AS col0
----
NULL
-5890

skipif mysql # not compatible
query II rowsort label-9255
SELECT DISTINCT + 98 * + 85 + - CASE + - 59 WHEN - 80 * + 97 * - 93 * - + 80 + - + MIN ( + + CAST ( NULL AS INTEGER ) ) THEN SUM ( 4 ) * 21 + + NULLIF ( - 94, 9 ) + 49 END, 95 * - 62 AS col0
----
NULL
-5890

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT DISTINCT 88 * + - COUNT( * ) + + 37 * 71
----
2539

skipif mysql # not compatible
query I rowsort label-9256
SELECT DISTINCT 88 * + - COUNT ( * ) + + 37 * 71
----
2539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9257
SELECT + 79 * + COUNT( * ) * + COALESCE ( - - CAST( + 7 AS SIGNED ), - ( - NULLIF ( - - 90, - 30 ) ) ) + + CAST( - 56 AS SIGNED ) + 69
----
566

skipif mysql # not compatible
query I rowsort label-9257
SELECT + 79 * + COUNT ( * ) * + COALESCE ( - - CAST ( + 7 AS INTEGER ), - ( - NULLIF ( - - 90, - 30 ) ) ) + + CAST ( - 56 AS INTEGER ) + 69
----
566

query I rowsort
SELECT DISTINCT - - 72 AS col2
----
72

query I rowsort
SELECT ALL NULLIF ( + 37, 93 + 80 ) * - + 71 + - 11 * + + 70 + 49 AS col0
----
-3348

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT ALL 75 * - 60 * MIN( DISTINCT + 11 ) * + + MAX( + - ( - 69 ) ) + - COUNT( * ) * - 41 * 67 + - 15 * 59 * - 47 * - 32 + - 14 col0
----
-4743807

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL 75 * - 60 * MIN ( DISTINCT + 11 ) * + + MAX ( + - ( - 69 ) ) + - COUNT ( * ) * - 41 * 67 + - 15 * 59 * - 47 * - 32 + - 14 col0
----
-4743807

query II rowsort
SELECT ALL - ( 84 ), + 82 AS col2
----
-84
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9262
SELECT DISTINCT 94 + 39 * 8 * + - 63 DIV 9 + 87 + - SUM( - 51 ) AS col1
----
-1952

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT 94 + 39 * 8 * + - 63 / 9 + 87 + - SUM ( - 51 ) AS col1
----
-1952

onlyif mysql # DIV for integer division: 
query I rowsort label-9263
SELECT 54 DIV - + 81 - + - 33
----
33

skipif mysql # not compatible
query I rowsort label-9263
SELECT 54 / - + 81 - + - 33
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9264
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), + - 30 ) + + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), + - 30 ) + + 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT ALL + 73 + + 25 * - + COUNT( * ) + - CASE 29 WHEN - 21 - - - 12 * - COUNT( * ) + - 58 + AVG ( DISTINCT 92 ) THEN - - MIN( ALL - 39 ) WHEN + COUNT( * ) THEN NULL ELSE 37 * + 33 * + 85 + + 67 + + 52 * - + 81 + - + 52 END * - 93
----
9261732

skipif mysql # not compatible
query I rowsort label-9265
SELECT ALL + 73 + + 25 * - + COUNT ( * ) + - CASE 29 WHEN - 21 - - - 12 * - COUNT ( * ) + - 58 + AVG ( DISTINCT 92 ) THEN - - MIN ( ALL - 39 ) WHEN + COUNT ( * ) THEN NULL ELSE 37 * + 33 * + 85 + + 67 + + 52 * - + 81 + - + 52 END * - 93
----
9261732

query I rowsort
SELECT ALL - 99 - - 88 * 77 AS col0
----
6677

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT 88 * + COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-9267
SELECT 88 * + COUNT ( * ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT ALL SUM( DISTINCT + + 78 ) - + - 79 * COUNT( * )
----
157

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL SUM ( DISTINCT + + 78 ) - + - 79 * COUNT ( * )
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT + SUM( + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-9269
SELECT + SUM ( + 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT ALL + 69 - + - 64 * COUNT( * ) + SUM( ALL - - 33 ) col1
----
166

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL + 69 - + - 64 * COUNT ( * ) + SUM ( ALL - - 33 ) col1
----
166

query I rowsort
SELECT ALL - 6 * + + 50
----
-300

onlyif mysql # DIV for integer division: 
query I rowsort label-9272
SELECT DISTINCT 24 DIV NULLIF ( 59, ( + 20 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT 24 / NULLIF ( 59, ( + 20 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9273
SELECT + MIN( - CAST( NULL AS SIGNED ) ) * + NULLIF ( - - 31, 71 - + 91 + - CASE - + 55 WHEN + 98 * + - 45 + + 88 THEN CAST( + 6 AS SIGNED ) END ) / + CASE - 16 WHEN - COUNT( * ) THEN NULL WHEN 79 THEN NULL ELSE - - 4 + + 65 * - + 4 * + - 65 END + + 52 + 53 * + - MAX( 86 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) * + NULLIF ( - - 31, 71 - + 91 + - CASE - + 55 WHEN + 98 * + - 45 + + 88 THEN CAST ( + 6 AS INTEGER ) END ) / + CASE - 16 WHEN - COUNT ( * ) THEN NULL WHEN 79 THEN NULL ELSE - - 4 + + 65 * - + 4 * + - 65 END + + 52 + 53 * + - MAX ( 86 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT + SUM( DISTINCT + 90 ) + 52 - + - 1 AS col2
----
143

skipif mysql # not compatible
query I rowsort label-9274
SELECT + SUM ( DISTINCT + 90 ) + 52 - + - 1 AS col2
----
143

query I rowsort
SELECT - 71 * + 41
----
-2911

onlyif mysql # aggregate syntax: 
query II rowsort label-9276
SELECT ALL 76 * - 57 * - + COUNT( * ) col0, + ( + 5 ) + - - 71 - 94
----
4332
-18

skipif mysql # not compatible
query II rowsort label-9276
SELECT ALL 76 * - 57 * - + COUNT ( * ) col0, + ( + 5 ) + - - 71 - 94
----
4332
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9277
SELECT + ( - CASE - 17 WHEN - - 88 THEN - 83 - 58 + - 8 / 33 / 35 * - ( - 87 ) * + CASE ( - CASE + 61 WHEN - - 93 THEN NULL WHEN + 80 - - ( - + ( + - 60 ) ) + - + 8 THEN COUNT( ( + + 32 ) ) END ) WHEN - - 38 * - 82 THEN - - 48 WHEN - + NULLIF ( + 0, - 96 ) / - 37 + ( + + 35 ) THEN NULL ELSE NULL END WHEN CAST( NULL AS SIGNED ) THEN NULL END ) * - 55 + + SUM( DISTINCT 75 ) * 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9277
SELECT + ( - CASE - 17 WHEN - - 88 THEN - 83 - 58 + - 8 / 33 / 35 * - ( - 87 ) * + CASE ( - CASE + 61 WHEN - - 93 THEN NULL WHEN + 80 - - ( - + ( + - 60 ) ) + - + 8 THEN COUNT ( ( + + 32 ) ) END ) WHEN - - 38 * - 82 THEN - - 48 WHEN - + NULLIF ( + 0, - 96 ) / - 37 + ( + + 35 ) THEN NULL ELSE NULL END WHEN CAST ( NULL AS INTEGER ) THEN NULL END ) * - 55 + + SUM ( DISTINCT 75 ) * 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT + 58 + + ( COALESCE ( + 72, COUNT( DISTINCT 45 ), 83 ) ) AS col2
----
130

skipif mysql # not compatible
query I rowsort label-9278
SELECT + 58 + + ( COALESCE ( + 72, COUNT ( DISTINCT 45 ), 83 ) ) AS col2
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT ALL MIN( 69 )
----
69

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL MIN ( 69 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9280
SELECT + ( + CASE - - COUNT( * ) WHEN - 13 * - 25 * + ( + 36 ) + SUM( - CAST( + 34 AS SIGNED ) ) + - CAST( NULL AS SIGNED ) * - 82 + 21 THEN 32 - 53 END ) + + 36 + - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9280
SELECT + ( + CASE - - COUNT ( * ) WHEN - 13 * - 25 * + ( + 36 ) + SUM ( - CAST ( + 34 AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) * - 82 + 21 THEN 32 - 53 END ) + + 36 + - 35 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9281
SELECT ALL + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 5 - - 69
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT ALL MIN( COALESCE ( - 0, - + 2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL MIN ( COALESCE ( - 0, - + 2 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT ALL - + COUNT( * ) + - 2 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL - + COUNT ( * ) + - 2 AS col0
----
-3

query I rowsort
SELECT + - 65 + 11
----
-54

query I rowsort
SELECT - 88 + - 96 AS col2
----
-184

query I rowsort
SELECT ALL + + ( - 52 ) + 68
----
16

query I rowsort
SELECT DISTINCT - + 48 * 85 AS col0
----
-4080

query I rowsort
SELECT - 15 + - + 77 col0
----
-92

query I rowsort
SELECT - 55 + + 31 AS col0
----
-24

query I rowsort
SELECT - 68 + + - 97 AS col2
----
-165

query I rowsort
SELECT - - NULLIF ( 34, - + 94 ) + + 1
----
35

query I rowsort
SELECT ALL + 38 + + 18 col0
----
56

query I rowsort
SELECT ALL + - 6 * - NULLIF ( - 63, - 26 ) AS col1
----
-378

query II rowsort
SELECT ALL - 36 * + 50 + - CASE - COALESCE ( 47, + - 75 + - - 53 ) WHEN - + 77 - 86 THEN NULL ELSE 60 END - - 10 + + + ( - + 88 ) AS col2, + 90 AS col2
----
-1938
90

query I rowsort
SELECT + NULLIF ( + 95, + - 20 ) AS col0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9297
SELECT - + 88 DIV 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9297
SELECT - + 88 / 94 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9298
SELECT + - MIN( DISTINCT ( - + ( 58 ) ) ) * - 93 + 15 * - 1 + + MIN( DISTINCT + + 93 ) + - - CASE + ( + ( COUNT( * ) ) ) WHEN - - 14 THEN 17 ELSE - - COALESCE ( + - 92, + + COUNT( * ) * - 48 DIV + 5 + - + CAST( + 26 AS SIGNED ) ) END * 26, 82 AS col2
----
-7708
82

skipif mysql # not compatible
query II rowsort label-9298
SELECT + - MIN ( DISTINCT ( - + ( 58 ) ) ) * - 93 + 15 * - 1 + + MIN ( DISTINCT + + 93 ) + - - CASE + ( + ( COUNT ( * ) ) ) WHEN - - 14 THEN 17 ELSE - - COALESCE ( + - 92, + + COUNT ( * ) * - 48 / + 5 + - + CAST ( + 26 AS INTEGER ) ) END * 26, 82 AS col2
----
-7708
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT - ( - + 89 ) * - MAX( 71 ) * + 44
----
-278036

skipif mysql # not compatible
query I rowsort label-9299
SELECT - ( - + 89 ) * - MAX ( 71 ) * + 44
----
-278036

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT ALL + CASE 79 WHEN - COUNT( * ) + + + 45 * - + ( - 19 ) THEN - + 53 * + ( + + 46 ) WHEN - 20 * - COUNT( * ) + - + 67 + - - SUM( 53 ) * - 40 * + + 93 + + 77 * - COUNT( * ) * - - 80 THEN - + 67 ELSE NULL END / 65 + - COUNT( DISTINCT - + 43 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL + CASE 79 WHEN - COUNT ( * ) + + + 45 * - + ( - 19 ) THEN - + 53 * + ( + + 46 ) WHEN - 20 * - COUNT ( * ) + - + 67 + - - SUM ( 53 ) * - 40 * + + 93 + + 77 * - COUNT ( * ) * - - 80 THEN - + 67 ELSE NULL END / 65 + - COUNT ( DISTINCT - + 43 ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9301
SELECT DISTINCT + + 81 DIV + - 86
----
0

skipif mysql # not compatible
query I rowsort label-9301
SELECT DISTINCT + + 81 / + - 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT - MIN( ALL - 22 ) col0
----
22

skipif mysql # not compatible
query I rowsort label-9302
SELECT - MIN ( ALL - 22 ) col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9303
SELECT ALL + COUNT( * ) AS col0, + 90 * - ( COUNT( * ) ) + - 47 AS col0
----
1
-137

skipif mysql # not compatible
query II rowsort label-9303
SELECT ALL + COUNT ( * ) AS col0, + 90 * - ( COUNT ( * ) ) + - 47 AS col0
----
1
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT 10 * + - 0 + + + MIN( 88 ) - 82 + - 61 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-9304
SELECT 10 * + - 0 + + + MIN ( 88 ) - 82 + - 61 AS col2
----
-55

query I rowsort
SELECT ALL 36 * 82
----
2952

query I rowsort
SELECT DISTINCT - 65 * 75 AS col0
----
-4875

query II rowsort
SELECT NULLIF ( - 43, + ( + 78 ) ) AS col1, + 53 col2
----
-43
53

onlyif mysql # aggregate syntax: 
query II rowsort label-9308
SELECT ALL 1 * - 83 AS col1, 31 + + - 87 + + COUNT( * )
----
-83
-55

skipif mysql # not compatible
query II rowsort label-9308
SELECT ALL 1 * - 83 AS col1, 31 + + - 87 + + COUNT ( * )
----
-83
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT + SUM( ALL - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-9309
SELECT + SUM ( ALL - 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT 48 * + 3 + + MIN( ALL 97 )
----
241

skipif mysql # not compatible
query I rowsort label-9310
SELECT 48 * + 3 + + MIN ( ALL 97 )
----
241

query II rowsort
SELECT ALL + 58, ( - ( - 21 ) ) * + + 12 AS col2
----
58
252

query I rowsort
SELECT + 11 * + 65
----
715

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9313
SELECT SUM( - 85 ) AS col2, + COUNT( * ) DIV - 71
----
-85
0

skipif mysql # not compatible
query II rowsort label-9313
SELECT SUM ( - 85 ) AS col2, + COUNT ( * ) / - 71
----
-85
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9314
SELECT DISTINCT COUNT( * ) DIV 13
----
0

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT COUNT ( * ) / 13
----
0

query I rowsort
SELECT + 5 + - 72 AS col2
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9316
SELECT - 28 * + CAST( NULL AS SIGNED ) + 2 * + + 67 + - - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9316
SELECT - 28 * + CAST ( NULL AS INTEGER ) + 2 * + + 67 + - - 71
----
NULL

query I rowsort
SELECT + 51 * - + 49 AS col0
----
-2499

query I rowsort
SELECT - 86 * + 39 AS col0
----
-3354

query II rowsort
SELECT ALL - 19 AS col0, + 84 * - 69 * + 29 * + 59 AS col0
----
-19
-9916956

query I rowsort
SELECT ALL + 47 + - COALESCE ( + - 99, 99 + 50 ) + - 50 - - - 64 * 4
----
-160

query II rowsort
SELECT 9 AS col1, + 47 AS col1
----
9
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9322
SELECT DISTINCT - 25 + + - 26 + ( - 18 ) + + 98 / 37 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9322
SELECT DISTINCT - 25 + + - 26 + ( - 18 ) + + 98 / 37 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9323
SELECT ALL + 67 + - 1 + 35 DIV + 79 * 50 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-9323
SELECT ALL + 67 + - 1 + 35 / + 79 * 50 AS col0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9324
SELECT ALL 40 AS col2, - 68 DIV - COUNT( * ) AS col0
----
40
68

skipif mysql # not compatible
query II rowsort label-9324
SELECT ALL 40 AS col2, - 68 / - COUNT ( * ) AS col0
----
40
68

query I rowsort
SELECT ALL + NULLIF ( + 94, 53 )
----
94

query I rowsort
SELECT - 89 * + - 21 AS col2
----
1869

query I rowsort
SELECT - + 95 + - 87 + - + 17 * 56 * - + 64
----
60746

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT - COUNT( - 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-9328
SELECT - COUNT ( - 5 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT ALL + ( + + 77 ) * SUM( - - 68 ) * COUNT( * )
----
5236

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL + ( + + 77 ) * SUM ( - - 68 ) * COUNT ( * )
----
5236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9330
SELECT - COUNT( * ) / + CASE CASE + + SUM( ALL + 35 ) WHEN + - COUNT( + CAST( NULL AS SIGNED ) ) * - NULLIF ( + + MIN( DISTINCT - 21 ), - 48 ) - + 85 * - 55 * - 79 THEN NULL WHEN COUNT( * ) THEN - + 80 END WHEN + 92 * - - 52 * + - ( - COUNT( * ) ) * - 23 * - 8 + + - 91 + + + 86 + 0 + 55 THEN + 1 WHEN 12 * - 4 + - 65 + - 27 THEN NULL END - - + COUNT( * ) * - 71 + + 70 - - 34 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9330
SELECT - COUNT ( * ) / + CASE CASE + + SUM ( ALL + 35 ) WHEN + - COUNT ( + CAST ( NULL AS INTEGER ) ) * - NULLIF ( + + MIN ( DISTINCT - 21 ), - 48 ) - + 85 * - 55 * - 79 THEN NULL WHEN COUNT ( * ) THEN - + 80 END WHEN + 92 * - - 52 * + - ( - COUNT ( * ) ) * - 23 * - 8 + + - 91 + + + 86 + 0 + 55 THEN + 1 WHEN 12 * - 4 + - 65 + - 27 THEN NULL END - - + COUNT ( * ) * - 71 + + 70 - - 34 * - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + - 28 * + 85 AS col1
----
-2380

query I rowsort
SELECT - - ( - + 64 ) + 73 AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9333
SELECT - CAST( 7 AS SIGNED ) DIV - - 27
----
0

skipif mysql # not compatible
query I rowsort label-9333
SELECT - CAST ( 7 AS INTEGER ) / - - 27
----
0

query I rowsort
SELECT 59 * + - 9 * - 0
----
0

query I rowsort
SELECT DISTINCT - ( + + 5 )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9336
SELECT ALL + 88 DIV 66
----
1

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL + 88 / 66
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9337
SELECT 78 DIV 34 * - - 91 * - 55 AS col1
----
-10010

skipif mysql # not compatible
query I rowsort label-9337
SELECT 78 / 34 * - - 91 * - 55 AS col1
----
-10010

onlyif mysql # DIV for integer division: 
query II rowsort label-9338
SELECT ALL + 79 DIV + + 15 AS col0, + ( 30 )
----
5
30

skipif mysql # not compatible
query II rowsort label-9338
SELECT ALL + 79 / + + 15 AS col0, + ( 30 )
----
5
30

query I rowsort
SELECT 84 * - 77
----
-6468

query I rowsort
SELECT DISTINCT - ( + 99 ) AS col1
----
-99

query I rowsort
SELECT 94 * 87 AS col2
----
8178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9342
SELECT DISTINCT COUNT( * ) * CAST( + 29 AS SIGNED ), 70 * - 15 AS col2
----
29
-1050

skipif mysql # not compatible
query II rowsort label-9342
SELECT DISTINCT COUNT ( * ) * CAST ( + 29 AS INTEGER ), 70 * - 15 AS col2
----
29
-1050

query I rowsort
SELECT DISTINCT 41 + - ( - - 57 )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9344
SELECT DISTINCT - 62 + COUNT( * ) + + ( ( COALESCE ( + 30, + + 37 * - 37 * - - 65, - 45 ) ) ) - - 84 DIV + 53 + - ( 36 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-9344
SELECT DISTINCT - 62 + COUNT ( * ) + + ( ( COALESCE ( + 30, + + 37 * - 37 * - - 65, - 45 ) ) ) - - 84 / + 53 + - ( 36 ) AS col1
----
-66

query II rowsort
SELECT 3 + 90, 54 * 41 AS col0
----
93
2214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9346
SELECT COALESCE ( + 70, + + 52, - CAST( NULL AS SIGNED ) ) * CASE + CASE 21 WHEN + + 26 * 33 + + 56 THEN 11 / 82 + - COUNT( * ) END WHEN - 29 THEN NULL WHEN - - 9 THEN + - CASE - 89 WHEN 44 * CASE + - 43 WHEN 63 * + 49 * - 53 + + 23 * 43 THEN - COUNT( * ) * - 22 END THEN - 86 END + 20 + + 7 WHEN 56 THEN 37 END AS col0, - 55
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-9346
SELECT COALESCE ( + 70, + + 52, - CAST ( NULL AS INTEGER ) ) * CASE + CASE 21 WHEN + + 26 * 33 + + 56 THEN 11 / 82 + - COUNT ( * ) END WHEN - 29 THEN NULL WHEN - - 9 THEN + - CASE - 89 WHEN 44 * CASE + - 43 WHEN 63 * + 49 * - 53 + + 23 * 43 THEN - COUNT ( * ) * - 22 END THEN - 86 END + 20 + + 7 WHEN 56 THEN 37 END AS col0, - 55
----
NULL
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT COUNT( * ) + - - 81
----
82

skipif mysql # not compatible
query I rowsort label-9347
SELECT COUNT ( * ) + - - 81
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9348
SELECT ALL - MIN( + CAST( NULL AS SIGNED ) ) + 57 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL - MIN ( + CAST ( NULL AS INTEGER ) ) + 57 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9349
SELECT + 23 + - CAST( NULL AS SIGNED ), 89 col1
----
NULL
89

skipif mysql # not compatible
query II rowsort label-9349
SELECT + 23 + - CAST ( NULL AS INTEGER ), 89 col1
----
NULL
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT ALL - - NULLIF ( - 97, COUNT( * ) ) + + 0
----
-97

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL - - NULLIF ( - 97, COUNT ( * ) ) + + 0
----
-97

query I rowsort
SELECT 47 + + ( + 89 )
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-9352
SELECT ALL 76 DIV - + 22 col2
----
-3

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL 76 / - + 22 col2
----
-3

query I rowsort
SELECT - 64 + 26
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9354
SELECT ALL 34 DIV - COUNT( * ) + - 97 + + - 97 - + COUNT( * ) - 52
----
-281

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL 34 / - COUNT ( * ) + - 97 + + - 97 - + COUNT ( * ) - 52
----
-281

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9355
SELECT DISTINCT - AVG ( - 17 ) - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT - AVG ( - 17 ) - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9356
SELECT COALESCE ( + 77, - 78 DIV 59 + 31 - - + 4 ) + - COUNT( ALL + 77 )
----
76

skipif mysql # not compatible
query I rowsort label-9356
SELECT COALESCE ( + 77, - 78 / 59 + 31 - - + 4 ) + - COUNT ( ALL + 77 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT DISTINCT 61 * + - 49 * COUNT( * ) AS col1
----
-2989

skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT 61 * + - 49 * COUNT ( * ) AS col1
----
-2989

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT - 30 * + + COUNT( * ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9358
SELECT - 30 * + + COUNT ( * ) AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9359
SELECT + 0 + + NULLIF ( - CAST( - 55 AS SIGNED ), + + 69 ) * + 55 - - - 76 col2
----
2949

skipif mysql # not compatible
query I rowsort label-9359
SELECT + 0 + + NULLIF ( - CAST ( - 55 AS INTEGER ), + + 69 ) * + 55 - - - 76 col2
----
2949

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9360
SELECT ALL + CASE WHEN NULL BETWEEN - 45 AND + + COALESCE ( + AVG ( + 85 ), 18 ) THEN CAST( NULL AS SIGNED ) + - 65 ELSE NULL END * + - AVG ( 55 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL + CASE WHEN NULL BETWEEN - 45 AND + + COALESCE ( + AVG ( + 85 ), 18 ) THEN CAST ( NULL AS INTEGER ) + - 65 ELSE NULL END * + - AVG ( 55 ) AS col2
----
NULL

query I rowsort
SELECT 95 + + 88 + - 82 * - 11 + - - ( - + 10 ) * + 90
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT ALL 23 * + COUNT( * ) + - 15
----
8

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL 23 * + COUNT ( * ) + - 15
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9363
SELECT - 89 * - ( MAX( + + CAST( NULL AS SIGNED ) ) ) * - 31 * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-9363
SELECT - 89 * - ( MAX ( + + CAST ( NULL AS INTEGER ) ) ) * - 31 * - 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9364
SELECT DISTINCT - CAST( + CAST( + - 35 AS SIGNED ) AS SIGNED ), - CASE - CAST( NULL AS SIGNED ) WHEN 46 * - + 16 THEN NULL WHEN + 68 THEN CASE 47 WHEN - 48 / - 31 * ( - - 96 ) THEN + + 80 + - 21 + - - 9 * - - 72 + - + ( 55 ) WHEN - 38 * - + ( COALESCE ( + MIN( CAST( NULL AS SIGNED ) ), + 40 ) ) THEN NULL WHEN SUM( - 74 ) THEN - - 34 END + + + 63 * 57 ELSE 97 * + 3 - + COUNT( * ) / CASE + - 3 WHEN + 98 THEN 65 WHEN - COUNT( * ) THEN NULL ELSE NULL END END AS col0
----
35
NULL

skipif mysql # not compatible
query II rowsort label-9364
SELECT DISTINCT - CAST ( + CAST ( + - 35 AS INTEGER ) AS INTEGER ), - CASE - CAST ( NULL AS INTEGER ) WHEN 46 * - + 16 THEN NULL WHEN + 68 THEN CASE 47 WHEN - 48 / - 31 * ( - - 96 ) THEN + + 80 + - 21 + - - 9 * - - 72 + - + ( 55 ) WHEN - 38 * - + ( COALESCE ( + MIN ( CAST ( NULL AS INTEGER ) ), + 40 ) ) THEN NULL WHEN SUM ( - 74 ) THEN - - 34 END + + + 63 * 57 ELSE 97 * + 3 - + COUNT ( * ) / CASE + - 3 WHEN + 98 THEN 65 WHEN - COUNT ( * ) THEN NULL ELSE NULL END END AS col0
----
35
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT + MIN( - 97 ) * 27 + - 77 + + 80 AS col0
----
-2616

skipif mysql # not compatible
query I rowsort label-9365
SELECT + MIN ( - 97 ) * 27 + - 77 + + 80 AS col0
----
-2616

onlyif mysql # aggregate syntax: 
query II rowsort label-9366
SELECT ALL - COUNT( * ) AS col1, + COUNT( 77 ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-9366
SELECT ALL - COUNT ( * ) AS col1, + COUNT ( 77 ) AS col2
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT ( + COALESCE ( MIN( ALL 96 ), + 48 + + 96, COUNT( - 53 ) ) ) * 34 + 71
----
3335

skipif mysql # not compatible
query I rowsort label-9367
SELECT ( + COALESCE ( MIN ( ALL 96 ), + 48 + + 96, COUNT ( - 53 ) ) ) * 34 + 71
----
3335

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT 4 * - COUNT( * ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-9368
SELECT 4 * - COUNT ( * ) col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9369
SELECT DISTINCT + NULLIF ( + 3, - 39 + + - 6 + + AVG ( - CASE + - 44 WHEN - 40 THEN - 20 WHEN 40 THEN - 28 ELSE NULL END ) - CAST( NULL AS SIGNED ) ) * 84 + + 84 + - COUNT( * ) * + 60 + - 78
----
198

skipif mysql # not compatible
query I rowsort label-9369
SELECT DISTINCT + NULLIF ( + 3, - 39 + + - 6 + + AVG ( - CASE + - 44 WHEN - 40 THEN - 20 WHEN 40 THEN - 28 ELSE NULL END ) - CAST ( NULL AS INTEGER ) ) * 84 + + 84 + - COUNT ( * ) * + 60 + - 78
----
198

query I rowsort
SELECT ALL - 48 + 18
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-9371
SELECT NULLIF ( 47, - 55 ) DIV + 93 * - + 57 + + 68 * + 62 AS col0
----
4216

skipif mysql # not compatible
query I rowsort label-9371
SELECT NULLIF ( 47, - 55 ) / + 93 * - + 57 + + 68 * + 62 AS col0
----
4216

query II rowsort
SELECT 1 AS col1, 94 AS col1
----
1
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9373
SELECT ALL 24 DIV + 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL 24 / + 84 AS col0
----
0

query I rowsort
SELECT 94 + - 29 col0
----
65

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9375
SELECT ALL - AVG ( + - ( - - CAST( NULL AS DECIMAL ) ) ) col2, 16 AS col1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-9375
SELECT ALL - AVG ( + - ( - - CAST ( NULL AS REAL ) ) ) col2, 16 AS col1
----
NULL
16

query I rowsort
SELECT ALL 18 + - + 12 AS col1
----
6

query I rowsort
SELECT ALL - 48 + + NULLIF ( COALESCE ( ( + - 89 ), + + 47, 6 ), + + 22 / - - 57 + + 77 * - ( 3 ) / 1 + - 83 + - - 85 * + 23 ) AS col0
----
-137

query I rowsort
SELECT 12 * - 90 + - ( 98 )
----
-1178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9379
SELECT DISTINCT - 76 + + 4 + 53 + CAST( NULL AS SIGNED ) + - - 50 / - 97 * + MIN( ALL + 44 ) + - COUNT( * ) + - 95 - + - 82 * + - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT - 76 + + 4 + 53 + CAST ( NULL AS INTEGER ) + - - 50 / - 97 * + MIN ( ALL + 44 ) + - COUNT ( * ) + - 95 - + - 82 * + - 49 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9380
SELECT 93 * + + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9380
SELECT 93 * + + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT DISTINCT - CASE - 72 WHEN 6 * + 50 + 21 + - - 21 / 55 + - 28 THEN NULL ELSE + + 52 + MAX( ALL + 73 ) END AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT - CASE - 72 WHEN 6 * + 50 + 21 + - - 21 / 55 + - 28 THEN NULL ELSE + + 52 + MAX ( ALL + 73 ) END AS col0
----
-125

query I rowsort
SELECT 9 * - + 71
----
-639

onlyif mysql # DIV for integer division: 
query II rowsort label-9383
SELECT 17 AS col1, 65 DIV + 53 AS col1
----
17
1

skipif mysql # not compatible
query II rowsort label-9383
SELECT 17 AS col1, 65 / + 53 AS col1
----
17
1

query I rowsort
SELECT ALL - ( - 93 ) AS col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9385
SELECT 19 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9385
SELECT 19 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 13 + 13 + - 55 + 0 AS col2
----
-29

query I rowsort
SELECT ALL 65 * 84 AS col1
----
5460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9388
SELECT MIN( + CAST( NULL AS SIGNED ) ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9388
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9389
SELECT DISTINCT + ( - 70 ) * - - CAST( + + 16 AS SIGNED )
----
-1120

skipif mysql # not compatible
query I rowsort label-9389
SELECT DISTINCT + ( - 70 ) * - - CAST ( + + 16 AS INTEGER )
----
-1120

query I rowsort
SELECT - + ( 39 ) AS col2
----
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9391
SELECT + CAST( NULL AS DECIMAL ) AS col0, + 19 AS col1
----
NULL
19

skipif mysql # not compatible
query II rowsort label-9391
SELECT + CAST ( NULL AS REAL ) AS col0, + 19 AS col1
----
NULL
19

query I rowsort
SELECT 72 * CASE + 9 WHEN + 56 THEN 33 * - 10 * 15 ELSE NULL END
----
NULL

query I rowsort
SELECT - 24 - - 75
----
51

query II rowsort
SELECT DISTINCT + 5 col2, - 35 * + + 56
----
5
-1960

query I rowsort
SELECT DISTINCT + COALESCE ( - 21, + ( + 77 ), - 70 )
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-9396
SELECT DISTINCT - 82 col2, + 45 * + ( COUNT( * ) ) * + - 67
----
-82
-3015

skipif mysql # not compatible
query II rowsort label-9396
SELECT DISTINCT - 82 col2, + 45 * + ( COUNT ( * ) ) * + - 67
----
-82
-3015

query II rowsort
SELECT ALL 36 AS col0, 55 AS col2
----
36
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9398
SELECT DISTINCT 95 DIV + + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-9398
SELECT DISTINCT 95 / + + COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT - SUM( DISTINCT + + NULLIF ( - 47, - + 6 ) ) * + COUNT( * ) col0
----
47

skipif mysql # not compatible
query I rowsort label-9399
SELECT - SUM ( DISTINCT + + NULLIF ( - 47, - + 6 ) ) * + COUNT ( * ) col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT - - 74 + + - COUNT( * ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-9400
SELECT - - 74 + + - COUNT ( * ) AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9401
SELECT ALL + CASE COUNT( DISTINCT - 24 ) WHEN + COALESCE ( - CASE + ( - COUNT( * ) ) WHEN - COUNT( * ) * - 14 THEN - COUNT( * ) + + + NULLIF ( + - 33, - - 85 + - ( 19 ) ) ELSE NULL END, - ( - 23 ) ) * CAST( + 96 AS SIGNED ) + - 31 THEN + COUNT( * ) * 1 + - + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL + CASE COUNT ( DISTINCT - 24 ) WHEN + COALESCE ( - CASE + ( - COUNT ( * ) ) WHEN - COUNT ( * ) * - 14 THEN - COUNT ( * ) + + + NULLIF ( + - 33, - - 85 + - ( 19 ) ) ELSE NULL END, - ( - 23 ) ) * CAST ( + 96 AS INTEGER ) + - 31 THEN + COUNT ( * ) * 1 + - + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT - - ( + 21 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT - + 99 + + + 30 + + COUNT( * ) + 53
----
-15

skipif mysql # not compatible
query I rowsort label-9403
SELECT - + 99 + + + 30 + + COUNT ( * ) + 53
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-9404
SELECT + 72 DIV - 55 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9404
SELECT + 72 / - 55 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT DISTINCT 78 + 30 + SUM( COALESCE ( - 15, + 26 + + 15 ) ) * + ( - 3 ) + + + 35 + - 60
----
128

skipif mysql # not compatible
query I rowsort label-9405
SELECT DISTINCT 78 + 30 + SUM ( COALESCE ( - 15, + 26 + + 15 ) ) * + ( - 3 ) + + + 35 + - 60
----
128

query I rowsort
SELECT ALL 13 + 99 AS col2
----
112

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9407
SELECT 25 DIV + COALESCE ( + 97, 6 + + 69 + + CAST( - COALESCE ( + 5, - - 81 * 72 ) AS SIGNED ) ) + 30
----
30

skipif mysql # not compatible
query I rowsort label-9407
SELECT 25 / + COALESCE ( + 97, 6 + + 69 + + CAST ( - COALESCE ( + 5, - - 81 * 72 ) AS INTEGER ) ) + 30
----
30

query II rowsort
SELECT ALL 24 * - + 59 AS col0, - 28 + - 44
----
-1416
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9409
SELECT ALL + CASE - + 31 WHEN + - 30 THEN 86 + + CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL + CASE - + 31 WHEN + - 30 THEN 86 + + CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9410
SELECT CASE CAST( 24 AS SIGNED ) WHEN + 90 + + 57 + - 83 * 50 - - CASE - COUNT( * ) WHEN - 23 THEN + 77 ELSE NULL END + - 99 THEN CAST( NULL AS DECIMAL ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9410
SELECT CASE CAST ( 24 AS INTEGER ) WHEN + 90 + + 57 + - 83 * 50 - - CASE - COUNT ( * ) WHEN - 23 THEN + 77 ELSE NULL END + - 99 THEN CAST ( NULL AS REAL ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT ALL - 78 * - COUNT( * ) + - 61 * + MAX( + - 86 ) + + + 25 + - 73
----
5276

skipif mysql # not compatible
query I rowsort label-9411
SELECT ALL - 78 * - COUNT ( * ) + - 61 * + MAX ( + - 86 ) + + + 25 + - 73
----
5276

onlyif mysql # DIV for integer division: 
query I rowsort label-9412
SELECT DISTINCT - 0 * + - 42 + 99 DIV + + 35 + - 5 * - 64 * - 90 * - + 10 AS col0
----
288002

skipif mysql # not compatible
query I rowsort label-9412
SELECT DISTINCT - 0 * + - 42 + 99 / + + 35 + - 5 * - 64 * - 90 * - + 10 AS col0
----
288002

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT - 41 - COALESCE ( - + 84, + + 31 ) * - COUNT( * ) * + + 46 col2
----
-3905

skipif mysql # not compatible
query I rowsort label-9413
SELECT - 41 - COALESCE ( - + 84, + + 31 ) * - COUNT ( * ) * + + 46 col2
----
-3905

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9414
SELECT + 29 * 7 AS col1, + 31 + - - 87 + + - 15 + + + CAST( NULL AS SIGNED )
----
203
NULL

skipif mysql # not compatible
query II rowsort label-9414
SELECT + 29 * 7 AS col1, + 31 + - - 87 + + - 15 + + + CAST ( NULL AS INTEGER )
----
203
NULL

query I rowsort
SELECT NULLIF ( + 96, - - 27 ) col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9416
SELECT DISTINCT - COALESCE ( CAST( NULL AS SIGNED ), - ( - 25 ) ) * - 85 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT DISTINCT - COALESCE ( CAST ( NULL AS INTEGER ), - ( - 25 ) ) * - 85 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT ALL - 27 * + 5 * - ( + NULLIF ( 14, ( 33 ) / - - 27 * + + COUNT( DISTINCT + 39 ) + + COUNT( * ) ) ) * + 57 AS col1
----
107730

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL - 27 * + 5 * - ( + NULLIF ( 14, ( 33 ) / - - 27 * + + COUNT ( DISTINCT + 39 ) + + COUNT ( * ) ) ) * + 57 AS col1
----
107730

query II rowsort
SELECT - + 16 * 81 AS col1, 39
----
-1296
39

query II rowsort
SELECT ALL + ( - - 71 ) AS col2, - 12 AS col2
----
71
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-9420
SELECT - 89 * SUM( ALL + 1 ) * + - 77 - - COUNT( DISTINCT - - 42 ) + 78 + - COUNT( * ) * + 37 AS col2, - COUNT( * )
----
6895
-1

skipif mysql # not compatible
query II rowsort label-9420
SELECT - 89 * SUM ( ALL + 1 ) * + - 77 - - COUNT ( DISTINCT - - 42 ) + 78 + - COUNT ( * ) * + 37 AS col2, - COUNT ( * )
----
6895
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9421
SELECT + 94 DIV + - 34
----
-2

skipif mysql # not compatible
query I rowsort label-9421
SELECT + 94 / + - 34
----
-2

query I rowsort
SELECT - ( - 91 ) + - 9 col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT - CASE COALESCE ( 94, + 5 + ( - - 40 ) ) WHEN + 54 THEN - - NULLIF ( 18, - 29 ) END * 64 * + 34 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT - CASE COALESCE ( 94, + 5 + ( - - 40 ) ) WHEN + 54 THEN - - NULLIF ( 18, - 29 ) END * 64 * + 34 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9424
SELECT ALL - 28 DIV - + SUM( ALL - 73 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9424
SELECT ALL - 28 / - + SUM ( ALL - 73 ) AS col0
----
0

query I rowsort
SELECT - - 47 * - CASE 54 WHEN 44 * 61 THEN - - 94 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9426
SELECT - + CAST( + - COALESCE ( + 6, - 98 ) AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-9426
SELECT - + CAST ( + - COALESCE ( + 6, - 98 ) AS INTEGER )
----
6

query I rowsort
SELECT - 71 + + 95
----
24

query I rowsort
SELECT DISTINCT 72 + + 25 AS col2
----
97

query I rowsort
SELECT DISTINCT - 2 * - 45
----
90

query I rowsort
SELECT DISTINCT + 48 + 77 AS col1
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9431
SELECT - NULLIF ( + - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ), - ( + NULLIF ( - + 64, 93 * - ( - 48 ) + - - 33 * - + 90 + + ( - 39 ) ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9431
SELECT - NULLIF ( + - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ), - ( + NULLIF ( - + 64, 93 * - ( - 48 ) + - - 33 * - + 90 + + ( - 39 ) ) ) ) AS col0
----
0

query I rowsort
SELECT DISTINCT 24 + + 30
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT - CASE - + 71 WHEN + COUNT( * ) THEN - ( - + 96 ) * + 54 WHEN - ( - ( - 99 ) ) THEN - 10 WHEN + 13 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9433
SELECT - CASE - + 71 WHEN + COUNT ( * ) THEN - ( - + 96 ) * + 54 WHEN - ( - ( - 99 ) ) THEN - 10 WHEN + 13 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9434
SELECT - CAST( NULL AS SIGNED ) + MIN( ALL - - 56 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9434
SELECT - CAST ( NULL AS INTEGER ) + MIN ( ALL - - 56 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT - MAX( DISTINCT - 8 ) * + 36 + + 51 AS col2
----
339

skipif mysql # not compatible
query I rowsort label-9435
SELECT - MAX ( DISTINCT - 8 ) * + 36 + + 51 AS col2
----
339

query I rowsort
SELECT + 65 * - 87 AS col1
----
-5655

onlyif mysql # DIV for integer division: 
query I rowsort label-9437
SELECT ALL 71 DIV - 54 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL 71 / - 54 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9438
SELECT CAST( - NULLIF ( - COUNT( * ), 73 * - + 8 / 22 * + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * - - 36 + + + NULLIF ( - 1, + COUNT( * ) ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9438
SELECT CAST ( - NULLIF ( - COUNT ( * ), 73 * - + 8 / 22 * + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * - - 36 + + + NULLIF ( - 1, + COUNT ( * ) ) ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9439
SELECT + 29 * - COUNT( * ) * - 89 * + - 85 * + - MIN( + 85 ) AS col2, 56 AS col2
----
18647725
56

skipif mysql # not compatible
query II rowsort label-9439
SELECT + 29 * - COUNT ( * ) * - 89 * + - 85 * + - MIN ( + 85 ) AS col2, 56 AS col2
----
18647725
56

query I rowsort
SELECT + 35 * + 97
----
3395

query I rowsort
SELECT + 5 * + 33 col2
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9442
SELECT ALL 28 * + - 17 * + 46 AS col1, + MAX( + 26 ) DIV + + 93 AS col1, + + 4 + - - 97
----
-21896
0
101

skipif mysql # not compatible
query III rowsort label-9442
SELECT ALL 28 * + - 17 * + 46 AS col1, + MAX ( + 26 ) / + + 93 AS col1, + + 4 + - - 97
----
-21896
0
101

query I rowsort
SELECT DISTINCT 63 * + + 82 AS col2
----
5166

query I rowsort
SELECT + 75 * + + 42
----
3150

query II rowsort
SELECT + 39 + + COALESCE ( + 87, - ( + 24 ) + + + 94 + + - 87 ) + + - 69, + 14 AS col2
----
57
14

query II rowsort
SELECT 36, 73 + 41 AS col1
----
36
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT + CASE + + 26 WHEN + + COUNT( * ) THEN 53 * + + 98 + + + 66 * + + 36 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9447
SELECT + CASE + + 26 WHEN + + COUNT ( * ) THEN 53 * + + 98 + + + 66 * + + 36 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 99 * - 38
----
3762

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9449
SELECT + - 93 * + + 91 + - CASE + 64 WHEN - + ( - ( - + CASE ( - 45 ) WHEN - - 27 THEN - 85 WHEN ( 94 ) THEN NULL END ) ) THEN NULL ELSE - 95 - COUNT( * ) + COUNT( + + 96 ) END + + - 65 - - COUNT( * ) - - 0 - - + COUNT( * ) * - - 11 * 90 DIV - 76
----
-8445

skipif mysql # not compatible
query I rowsort label-9449
SELECT + - 93 * + + 91 + - CASE + 64 WHEN - + ( - ( - + CASE ( - 45 ) WHEN - - 27 THEN - 85 WHEN ( 94 ) THEN NULL END ) ) THEN NULL ELSE - 95 - COUNT ( * ) + COUNT ( + + 96 ) END + + - 65 - - COUNT ( * ) - - 0 - - + COUNT ( * ) * - - 11 * 90 / - 76
----
-8445

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9450
SELECT ALL - CAST( - COALESCE ( - + 22, + 44 + 66, + 7 + + 12 + 36 + 27 * + CASE - 22 WHEN + 95 THEN + - 96 END ) AS SIGNED ) DIV - 28 * + 55
----
0

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL - CAST ( - COALESCE ( - + 22, + 44 + 66, + 7 + + 12 + 36 + 27 * + CASE - 22 WHEN + 95 THEN + - 96 END ) AS INTEGER ) / - 28 * + 55
----
0

query I rowsort
SELECT - + ( + CASE 76 WHEN + 38 THEN - + 90 WHEN - 88 THEN - 72 * 8 ELSE NULL END ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT DISTINCT - 54 * COALESCE ( + + COUNT( * ), + + 84 ) + - - 11
----
-43

skipif mysql # not compatible
query I rowsort label-9452
SELECT DISTINCT - 54 * COALESCE ( + + COUNT ( * ), + + 84 ) + - - 11
----
-43

query II rowsort
SELECT + 82 AS col1, - 47 AS col1
----
82
-47

query I rowsort
SELECT DISTINCT + 5 + + 4
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9455
SELECT + NULLIF ( + CAST( AVG ( - - 31 ) AS SIGNED ), + MAX( 32 ) )
----
31

skipif mysql # not compatible
query I rowsort label-9455
SELECT + NULLIF ( + CAST ( AVG ( - - 31 ) AS INTEGER ), + MAX ( 32 ) )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9456
SELECT 19 DIV 17 - - 25 + + 27 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-9456
SELECT 19 / 17 - - 25 + + 27 AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9457
SELECT CASE - ( + 97 ) WHEN - 37 THEN 9 WHEN - 90 - - + COUNT( * ) - ( + 82 ) THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN + + 46 ELSE NULL END - + 49 - + 19 / + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9457
SELECT CASE - ( + 97 ) WHEN - 37 THEN 9 WHEN - 90 - - + COUNT ( * ) - ( + 82 ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN + + 46 ELSE NULL END - + 49 - + 19 / + 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT - COALESCE ( - 67, + - 7 + - - 18, COUNT( * ) * 88 )
----
67

skipif mysql # not compatible
query I rowsort label-9458
SELECT - COALESCE ( - 67, + - 7 + - - 18, COUNT ( * ) * 88 )
----
67

query I rowsort
SELECT ALL + COALESCE ( - 46, + 76 - - 70 + + 12 ) * + - 36 AS col1
----
1656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9460
SELECT 97 DIV + COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9460
SELECT 97 / + COUNT ( * ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9461
SELECT ALL + 61 + COUNT( * ) - + ( + 75 ) DIV + + 22 + + CAST( - 70 AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL + 61 + COUNT ( * ) - + ( + 75 ) / + + 22 + + CAST ( - 70 AS INTEGER )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT DISTINCT - CASE - 65 WHEN - 64 THEN NULL ELSE + - 29 END * COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT - CASE - 65 WHEN - 64 THEN NULL ELSE + - 29 END * COUNT ( * )
----
29

query II rowsort
SELECT ALL 33, + 85 col2
----
33
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT 87 + + 30 * - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-9464
SELECT 87 + + 30 * - COUNT ( * )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9465
SELECT DISTINCT - 71 * - CAST( NULL AS SIGNED ) * + NULLIF ( + - SUM( - 66 ), + 25 * + 37 + 92 + + COALESCE ( 46, + 36 + 66 + MAX( + 53 ), - - COUNT( * ) * - 78 ) * + ( 3 ) + 60 + 38 ) / 71 AS col2, + 87 AS col1
----
NULL
87

skipif mysql # not compatible
query II rowsort label-9465
SELECT DISTINCT - 71 * - CAST ( NULL AS INTEGER ) * + NULLIF ( + - SUM ( - 66 ), + 25 * + 37 + 92 + + COALESCE ( 46, + 36 + 66 + MAX ( + 53 ), - - COUNT ( * ) * - 78 ) * + ( 3 ) + 60 + 38 ) / 71 AS col2, + 87 AS col1
----
NULL
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT 97 + - 5 + - - CASE + - 54 WHEN ( - COUNT( * ) ) THEN + COUNT( * ) - 23 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9466
SELECT 97 + - 5 + - - CASE + - 54 WHEN ( - COUNT ( * ) ) THEN + COUNT ( * ) - 23 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 32 * + 73 AS col1
----
2336

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT 3 * - 1 * + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-9468
SELECT 3 * - 1 * + COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9469
SELECT - 44, - CASE + 80 WHEN + - 88 THEN + + 52 WHEN + 96 THEN - 14 END * + 30 + COUNT( DISTINCT + 66 ) AS col1
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-9469
SELECT - 44, - CASE + 80 WHEN + - 88 THEN + + 52 WHEN + 96 THEN - 14 END * + 30 + COUNT ( DISTINCT + 66 ) AS col1
----
-44
NULL

query I rowsort
SELECT ALL + 99 - - 40 - - 74
----
213

query II rowsort
SELECT 60 AS col0, 76 - 65 * + + 35 + + - 93 AS col1
----
60
-2292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9472
SELECT - 71 DIV + - ( - 78 ) + - + MIN( + 58 ) + - + 85 AS col2
----
-143

skipif mysql # not compatible
query I rowsort label-9472
SELECT - 71 / + - ( - 78 ) + - + MIN ( + 58 ) + - + 85 AS col2
----
-143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9473
SELECT ALL + 54 * CAST( + + 35 AS SIGNED ) * - + MIN( ALL - 80 )
----
151200

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL + 54 * CAST ( + + 35 AS INTEGER ) * - + MIN ( ALL - 80 )
----
151200

query I rowsort
SELECT ALL - ( - 41 ) - - ( - 37 ) col1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9475
SELECT 46, 50 + + COUNT( * ) DIV 9 AS col1
----
46
50

skipif mysql # not compatible
query II rowsort label-9475
SELECT 46, 50 + + COUNT ( * ) / 9 AS col1
----
46
50

query I rowsort
SELECT ALL 69 - - 2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT COUNT( * ) * + 23
----
23

skipif mysql # not compatible
query I rowsort label-9477
SELECT COUNT ( * ) * + 23
----
23

query I rowsort
SELECT ALL - ( + + 66 ) AS col2
----
-66

query II rowsort
SELECT 18 * + 1 AS col2, 24 AS col2
----
18
24

onlyif mysql # aggregate syntax: 
query II rowsort label-9480
SELECT 60 col1, 15 * - ( + SUM( + 50 ) ) AS col2
----
60
-750

skipif mysql # not compatible
query II rowsort label-9480
SELECT 60 col1, 15 * - ( + SUM ( + 50 ) ) AS col2
----
60
-750

query II rowsort
SELECT + 19 AS col0, 1
----
19
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9482
SELECT DISTINCT ( - 12 ) DIV + + 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9482
SELECT DISTINCT ( - 12 ) / + + 99 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9483
SELECT + CASE 43 WHEN 63 THEN + 55 * - - CAST( NULL AS SIGNED ) WHEN ( - COUNT( ALL 77 ) ) + 56 * NULLIF ( - ( - 83 ), - - 96 - 46 ) / - 18 THEN NULL ELSE NULL END / - 80 * - 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT + CASE 43 WHEN 63 THEN + 55 * - - CAST ( NULL AS INTEGER ) WHEN ( - COUNT ( ALL 77 ) ) + 56 * NULLIF ( - ( - 83 ), - - 96 - 46 ) / - 18 THEN NULL ELSE NULL END / - 80 * - 95 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9484
SELECT + 76 - + + 69 DIV - - 88 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-9484
SELECT + 76 - + + 69 / - - 88 AS col0
----
76

query I rowsort
SELECT DISTINCT 16 * + 53 AS col1
----
848

query I rowsort
SELECT ALL - + NULLIF ( + 81, 7 )
----
-81

query I rowsort
SELECT 16 * - 3 AS col0
----
-48

query I rowsort
SELECT DISTINCT - ( + 76 ) * ( - 13 ) AS col2
----
988

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT - 17 * COUNT( * ) * + 8
----
-136

skipif mysql # not compatible
query I rowsort label-9489
SELECT - 17 * COUNT ( * ) * + 8
----
-136

query I rowsort
SELECT ALL 56 + + 98
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT + ( + 29 ) - - 23 + - MAX( - 67 ) - COUNT( * ) + - - 79 + + + 57 AS col1
----
254

skipif mysql # not compatible
query I rowsort label-9491
SELECT + ( + 29 ) - - 23 + - MAX ( - 67 ) - COUNT ( * ) + - - 79 + + + 57 AS col1
----
254

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT DISTINCT + COUNT( * ) * + 54 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9492
SELECT DISTINCT + COUNT ( * ) * + 54 AS col0
----
54

query I rowsort
SELECT + + 82 * - + NULLIF ( - ( - 47 ), + 58 ) + - 5 + + 49
----
-3810

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT + 83 + + SUM( DISTINCT + 84 ) * - 60 * + 18 * 80
----
-7257517

skipif mysql # not compatible
query I rowsort label-9494
SELECT + 83 + + SUM ( DISTINCT + 84 ) * - 60 * + 18 * 80
----
-7257517

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT MIN( ALL + 64 ) * NULLIF ( + 90, - - 1 / + COUNT( * ) + - 83 * - - 75 ) AS col0
----
5760

skipif mysql # not compatible
query I rowsort label-9495
SELECT MIN ( ALL + 64 ) * NULLIF ( + 90, - - 1 / + COUNT ( * ) + - 83 * - - 75 ) AS col0
----
5760

query I rowsort
SELECT ALL + 76 + - 74
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9497
SELECT + + CAST( 31 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-9497
SELECT + + CAST ( 31 AS INTEGER )
----
31

query II rowsort
SELECT - 5 AS col1, + 56 * 7
----
-5
392

query I rowsort
SELECT - NULLIF ( + - 27, 67 )
----
27

query I rowsort
SELECT + 6 + - - 37
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9501
SELECT DISTINCT CAST( 39 AS SIGNED ) + + 83 AS col0
----
122

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT CAST ( 39 AS INTEGER ) + + 83 AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT - 33 + - + ( COUNT( * ) )
----
-34

skipif mysql # not compatible
query I rowsort label-9502
SELECT - 33 + - + ( COUNT ( * ) )
----
-34

query I rowsort
SELECT ALL 3 + - 51
----
-48

query I rowsort
SELECT DISTINCT + 82 * + + 79
----
6478

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9505
SELECT ALL + ( + - CAST( NULL AS SIGNED ) ) - 38 / - - 7 * + + 73 * - ( + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL + ( + - CAST ( NULL AS INTEGER ) ) - 38 / - - 7 * + + 73 * - ( + 69 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9506
SELECT 13 * + COUNT( ALL + CAST( NULL AS SIGNED ) ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9506
SELECT 13 * + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9507
SELECT ALL MIN( ALL - CAST( - 87 AS SIGNED ) ) * + + 46 * - 50 + + 64 - + 4 * - 82 + + 51 DIV - 38
----
-199709

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL MIN ( ALL - CAST ( - 87 AS INTEGER ) ) * + + 46 * - 50 + + 64 - + 4 * - 82 + + 51 / - 38
----
-199709

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9508
SELECT 22 + + + 40 col1, - COUNT( * ) DIV NULLIF ( + 87, + + 89 )
----
62
0

skipif mysql # not compatible
query II rowsort label-9508
SELECT 22 + + + 40 col1, - COUNT ( * ) / NULLIF ( + 87, + + 89 )
----
62
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT 32 + - COUNT( * ) - 44 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-9509
SELECT 32 + - COUNT ( * ) - 44 AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9510
SELECT CAST( NULL AS DECIMAL ) * - + CASE - 52 WHEN + + 96 THEN 73 END * COUNT( * ) * - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT CAST ( NULL AS REAL ) * - + CASE - 52 WHEN + + 96 THEN 73 END * COUNT ( * ) * - 69 AS col0
----
NULL

query I rowsort
SELECT 38 * + - 50
----
-1900

query II rowsort
SELECT 42 + + + 45, + 16 * - - 22 * + 87 AS col1
----
87
30624

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT DISTINCT - SUM( COALESCE ( 77, + 71 ) ) * + ( + + 82 )
----
-6314

skipif mysql # not compatible
query I rowsort label-9513
SELECT DISTINCT - SUM ( COALESCE ( 77, + 71 ) ) * + ( + + 82 )
----
-6314

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT ALL + 22 * + - COUNT( ALL - 45 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL + 22 * + - COUNT ( ALL - 45 ) AS col2
----
-22

query I rowsort
SELECT 54 + - 13
----
41

query I rowsort
SELECT COALESCE ( 58, - + 65 ) AS col2
----
58

query I rowsort
SELECT 28 * + + 39 AS col0
----
1092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9518
SELECT DISTINCT - - COALESCE ( + CAST( - 54 AS SIGNED ), + + 77 * + + 1, 42 )
----
-54

skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT - - COALESCE ( + CAST ( - 54 AS INTEGER ), + + 77 * + + 1, 42 )
----
-54

query I rowsort
SELECT ALL - 21 * 49 - 2 + + 31
----
-1000

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT - MAX( DISTINCT + 69 ) + - 59
----
-128

skipif mysql # not compatible
query I rowsort label-9520
SELECT - MAX ( DISTINCT + 69 ) + - 59
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT - MIN( DISTINCT - ( + + 12 ) ) + - 99
----
-87

skipif mysql # not compatible
query I rowsort label-9521
SELECT - MIN ( DISTINCT - ( + + 12 ) ) + - 99
----
-87

query I rowsort
SELECT ALL - 42 * + 75 + 93 AS col1
----
-3057

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT ALL 77 * MIN( DISTINCT + NULLIF ( + 24, 51 + + 16 ) ) - COUNT( * ) + ( 42 ) col1
----
1889

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL 77 * MIN ( DISTINCT + NULLIF ( + 24, 51 + + 16 ) ) - COUNT ( * ) + ( 42 ) col1
----
1889

query I rowsort
SELECT - 81 * + - 36 + - 79 + + 34
----
2871

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT - 77 * + + COUNT( * ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-9525
SELECT - 77 * + + COUNT ( * ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT + + 36 + + + COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-9526
SELECT + + 36 + + + COUNT ( * ) AS col2
----
37

query I rowsort
SELECT - - 66 * - 10 AS col1
----
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT ALL COUNT( * ) * - - 18 * 11 + 1
----
199

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL COUNT ( * ) * - - 18 * 11 + 1
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-9529
SELECT - 4 DIV - - 97
----
0

skipif mysql # not compatible
query I rowsort label-9529
SELECT - 4 / - - 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT DISTINCT - 22 + - COUNT( ALL - 31 ) + - + 78
----
-101

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT - 22 + - COUNT ( ALL - 31 ) + - + 78
----
-101

query I rowsort
SELECT ALL + 89 - - 5
----
94

query I rowsort
SELECT + 66 * + 22
----
1452

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT ALL 48 - + CASE - 56 WHEN - - COUNT( * ) THEN NULL ELSE - - 83 * 46 * 25 END AS col0
----
-95402

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL 48 - + CASE - 56 WHEN - - COUNT ( * ) THEN NULL ELSE - - 83 * 46 * 25 END AS col0
----
-95402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9534
SELECT ALL CAST( NULL AS SIGNED ) * + - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9534
SELECT ALL CAST ( NULL AS INTEGER ) * + - 12 AS col0
----
NULL

query II rowsort
SELECT ALL 38 AS col0, 39 col1
----
38
39

query I rowsort
SELECT ALL 12 - 25 * - 33 * + - 29
----
-23913

query I rowsort
SELECT - NULLIF ( - 37, 17 ) col1
----
37

query I rowsort
SELECT ALL + 99 * + + 55 AS col1
----
5445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9539
SELECT + COUNT( * ) * + + 22 * - + 34 DIV + - COALESCE ( COUNT( * ), - 63 - - 4 )
----
748

skipif mysql # not compatible
query I rowsort label-9539
SELECT + COUNT ( * ) * + + 22 * - + 34 / + - COALESCE ( COUNT ( * ), - 63 - - 4 )
----
748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9540
SELECT - ( NULLIF ( + CAST( 35 AS SIGNED ), CASE - 84 WHEN + 48 THEN 91 ELSE NULL END ) )
----
-35

skipif mysql # not compatible
query I rowsort label-9540
SELECT - ( NULLIF ( + CAST ( 35 AS INTEGER ), CASE - 84 WHEN + 48 THEN 91 ELSE NULL END ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT - CASE - 59 WHEN - + 90 + COUNT( * ) + - ( - + CASE 97 WHEN - + 30 * + AVG ( DISTINCT 76 ) + - - MAX( DISTINCT + COALESCE ( + 79, - ( + 41 ) ) ) * - - COALESCE ( + COALESCE ( - - 5, - - MIN( DISTINCT + 52 ) * ( - - 62 ) + + + 39 - - + 5 ), 72 ) - COUNT( * ) + - + 56 + - + COUNT( * ) THEN NULL ELSE + - 54 * + - 89 * NULLIF ( + + 62, - 94 ) + COUNT( * ) END ) * - 33 * + AVG ( ALL - - 94 ) THEN - + 69 + + NULLIF ( ( + 61 ), + 83 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT - CASE - 59 WHEN - + 90 + COUNT ( * ) + - ( - + CASE 97 WHEN - + 30 * + AVG ( DISTINCT 76 ) + - - MAX ( DISTINCT + COALESCE ( + 79, - ( + 41 ) ) ) * - - COALESCE ( + COALESCE ( - - 5, - - MIN ( DISTINCT + 52 ) * ( - - 62 ) + + + 39 - - + 5 ), 72 ) - COUNT ( * ) + - + 56 + - + COUNT ( * ) THEN NULL ELSE + - 54 * + - 89 * NULLIF ( + + 62, - 94 ) + COUNT ( * ) END ) * - 33 * + AVG ( ALL - - 94 ) THEN - + 69 + + NULLIF ( ( + 61 ), + 83 ) END AS col1
----
NULL

query I rowsort
SELECT - 52 - + + ( + + NULLIF ( + 13, - - 80 ) )
----
-65

query I rowsort
SELECT - 69 * 37 col1
----
-2553

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT ALL - 64 + + + NULLIF ( - COUNT( * ), + 60 * - COUNT( * ) + + 53 )
----
-65

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL - 64 + + + NULLIF ( - COUNT ( * ), + 60 * - COUNT ( * ) + + 53 )
----
-65

query I rowsort
SELECT + 34 * - 27
----
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT DISTINCT 39 + - ( + - COUNT( * ) ) * 78 + - + 18 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-9546
SELECT DISTINCT 39 + - ( + - COUNT ( * ) ) * 78 + - + 18 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT - + MIN( + COALESCE ( - + 4, 61, - - 26 ) ) * - - 60 + + 80
----
320

skipif mysql # not compatible
query I rowsort label-9547
SELECT - + MIN ( + COALESCE ( - + 4, 61, - - 26 ) ) * - - 60 + + 80
----
320

onlyif mysql # aggregate syntax: 
query II rowsort label-9548
SELECT ALL - 11 * + 45 * - COUNT( * ), 35 + - - 85 + - + MIN( 56 ) AS col1
----
495
64

skipif mysql # not compatible
query II rowsort label-9548
SELECT ALL - 11 * + 45 * - COUNT ( * ), 35 + - - 85 + - + MIN ( 56 ) AS col1
----
495
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9549
SELECT ALL 46 DIV 50 + 64 * - + 83 * - COUNT( * ) col0
----
5312

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL 46 / 50 + 64 * - + 83 * - COUNT ( * ) col0
----
5312

onlyif mysql # aggregate syntax: 
query II rowsort label-9550
SELECT + + NULLIF ( + 4, + 61 ) AS col2, + COUNT( * ) AS col2
----
4
1

skipif mysql # not compatible
query II rowsort label-9550
SELECT + + NULLIF ( + 4, + 61 ) AS col2, + COUNT ( * ) AS col2
----
4
1

query I rowsort
SELECT - 8 * 89 * + 16
----
-11392

onlyif mysql # DIV for integer division: 
query I rowsort label-9552
SELECT DISTINCT 33 DIV + 21 + - 61 + - 96 AS col0
----
-156

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT 33 / + 21 + - 61 + - 96 AS col0
----
-156

query I rowsort
SELECT ALL + AVG ( DISTINCT - CASE + 5 WHEN 91 THEN + 23 * + 37 - - 73 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9554
SELECT - + 88 * - + CAST( + + 14 AS SIGNED ) + + COUNT( * ) + + - 64
----
1169

skipif mysql # not compatible
query I rowsort label-9554
SELECT - + 88 * - + CAST ( + + 14 AS INTEGER ) + + COUNT ( * ) + + - 64
----
1169

onlyif mysql # aggregate syntax: 
query II rowsort label-9555
SELECT DISTINCT + - 80 AS col0, - SUM( DISTINCT + + 33 ) * - - 77 AS col0
----
-80
-2541

skipif mysql # not compatible
query II rowsort label-9555
SELECT DISTINCT + - 80 AS col0, - SUM ( DISTINCT + + 33 ) * - - 77 AS col0
----
-80
-2541

onlyif mysql # aggregate syntax: 
query II rowsort label-9556
SELECT ALL + 38 AS col0, 0 - + 23 + MAX( + - 10 ) + + 63 - 16 * + ( + - 84 ) AS col1
----
38
1374

skipif mysql # not compatible
query II rowsort label-9556
SELECT ALL + 38 AS col0, 0 - + 23 + MAX ( + - 10 ) + + 63 - 16 * + ( + - 84 ) AS col1
----
38
1374

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9557
SELECT - 24 - - CAST( NULL AS SIGNED ) + + - 39 + - - 5 + 47 + COUNT( * ) * 12 * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT - 24 - - CAST ( NULL AS INTEGER ) + + - 39 + - - 5 + 47 + COUNT ( * ) * 12 * + 68
----
NULL

query I rowsort
SELECT - + 54 * + - 7 - + - 40 AS col0
----
418

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT - MIN( ALL + - 20 ) * + COUNT( * ) + - - 75 + - - 58 AS col0
----
153

skipif mysql # not compatible
query I rowsort label-9559
SELECT - MIN ( ALL + - 20 ) * + COUNT ( * ) + - - 75 + - - 58 AS col0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT - 77 * + 48 * - COUNT( * ) + - COUNT( * )
----
3695

skipif mysql # not compatible
query I rowsort label-9560
SELECT - 77 * + 48 * - COUNT ( * ) + - COUNT ( * )
----
3695

query II rowsort
SELECT DISTINCT - 12 * + + 50, ( - 55 ) AS col1
----
-600
-55

query I rowsort
SELECT + 18 * - 51 * 30 AS col2
----
-27540

query I rowsort
SELECT - 30 + - 52 AS col1
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-9564
SELECT ALL - 31 DIV - COALESCE ( + 73, - 94, 28 ) * 2 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL - 31 / - COALESCE ( + 73, - 94, 28 ) * 2 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9565
SELECT ALL CAST( NULL AS SIGNED ) * 13, - 60 * - CASE CAST( + + 98 AS SIGNED ) WHEN + - 52 * - 25 THEN + COUNT( * ) END - - 67 + + CASE + CASE + - CASE - + ( 99 ) WHEN + - 82 THEN + - 85 END WHEN + SUM( DISTINCT + 56 ) THEN - COUNT( * ) END WHEN + 30 / - - 36 * 45 THEN NULL ELSE 0 END + CAST( + 60 AS SIGNED ) + - COALESCE ( - - 85, 75 * 21 * - 27 - + CASE 48 WHEN - CAST( NULL AS SIGNED ) THEN - 83 * 67 WHEN - - 90 + 39 THEN NULL ELSE NULL END ) * MIN( DISTINCT - - 11 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9565
SELECT ALL CAST ( NULL AS INTEGER ) * 13, - 60 * - CASE CAST ( + + 98 AS INTEGER ) WHEN + - 52 * - 25 THEN + COUNT ( * ) END - - 67 + + CASE + CASE + - CASE - + ( 99 ) WHEN + - 82 THEN + - 85 END WHEN + SUM ( DISTINCT + 56 ) THEN - COUNT ( * ) END WHEN + 30 / - - 36 * 45 THEN NULL ELSE 0 END + CAST ( + 60 AS INTEGER ) + - COALESCE ( - - 85, 75 * 21 * - 27 - + CASE 48 WHEN - CAST ( NULL AS INTEGER ) THEN - 83 * 67 WHEN - - 90 + 39 THEN NULL ELSE NULL END ) * MIN ( DISTINCT - - 11 )
----
NULL
NULL

query I rowsort
SELECT - 6 + + 4
----
-2

query II rowsort
SELECT ALL ( - 5 ) AS col1, - 90
----
-5
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT DISTINCT - NULLIF ( - MAX( DISTINCT + 67 ), 1 * + 17 * - - 70 ) * + NULLIF ( 52, ( 21 ) + - 27 )
----
3484

skipif mysql # not compatible
query I rowsort label-9568
SELECT DISTINCT - NULLIF ( - MAX ( DISTINCT + 67 ), 1 * + 17 * - - 70 ) * + NULLIF ( 52, ( 21 ) + - 27 )
----
3484

onlyif mysql # DIV for integer division: 
query I rowsort label-9569
SELECT + 0 DIV ( + 9 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9569
SELECT + 0 / ( + 9 ) AS col2
----
0

query I rowsort
SELECT ALL - 95 * - 48 AS col2
----
4560

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT COUNT( - 15 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9571
SELECT COUNT ( - 15 ) col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9572
SELECT - 88 + ( - SUM( + 48 ) ), - 23 + - COUNT( * ) AS col2
----
-136
-24

skipif mysql # not compatible
query II rowsort label-9572
SELECT - 88 + ( - SUM ( + 48 ) ), - 23 + - COUNT ( * ) AS col2
----
-136
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT - MAX( ALL - - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-9573
SELECT - MAX ( ALL - - 48 )
----
-48

query I rowsort
SELECT + 46 * + COALESCE ( - 92, - 49 * + + 12 + 28 ) * + 60
----
-253920

query I rowsort
SELECT ALL 52 + + - 91 * 41
----
-3679

query I rowsort
SELECT DISTINCT - COALESCE ( + 71, - 35 + - 36, + 74, - ( - 40 ) ) + + 27
----
-44

query I rowsort
SELECT + 93 * 5 * + 13
----
6045

onlyif mysql # aggregate syntax: 
query II rowsort label-9578
SELECT ALL - 71 + + 28 AS col1, COUNT( DISTINCT 13 )
----
-43
1

skipif mysql # not compatible
query II rowsort label-9578
SELECT ALL - 71 + + 28 AS col1, COUNT ( DISTINCT 13 )
----
-43
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT - MIN( + - 13 ) + - + 20
----
-7

skipif mysql # not compatible
query I rowsort label-9579
SELECT - MIN ( + - 13 ) + - + 20
----
-7

query I rowsort
SELECT 91 + + 60 AS col2
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT ALL - ( COALESCE ( 57, + - COUNT( * ) ) )
----
-57

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL - ( COALESCE ( 57, + - COUNT ( * ) ) )
----
-57

query I rowsort
SELECT DISTINCT - 77 - - 97 AS col1
----
20

query I rowsort
SELECT ALL - 19 * - 22
----
418

query I rowsort
SELECT DISTINCT + + 6 - 60 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT + ( SUM( DISTINCT + 36 ) )
----
36

skipif mysql # not compatible
query I rowsort label-9585
SELECT + ( SUM ( DISTINCT + 36 ) )
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-9586
SELECT DISTINCT + 95 DIV - 63 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT + 95 / - 63 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9587
SELECT - 35 / - MIN( 34 ) + - - 71 + - 4 * + CAST( NULL AS SIGNED ) * 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9587
SELECT - 35 / - MIN ( 34 ) + - - 71 + - 4 * + CAST ( NULL AS INTEGER ) * 20 AS col1
----
NULL

query II rowsort
SELECT ALL + + ( + 15 ) - + - 65 + - 75, 99 + + 47 AS col1
----
5
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9589
SELECT - CAST( NULL AS SIGNED ) + - + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9589
SELECT - CAST ( NULL AS INTEGER ) + - + 13 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 70 * 36
----
-2520

query I rowsort
SELECT ALL - CASE + + ( + 84 ) WHEN - 16 THEN - 50 WHEN + 45 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT DISTINCT - ( + ( + COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9592
SELECT DISTINCT - ( + ( + COUNT ( * ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT DISTINCT - SUM( DISTINCT 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT - SUM ( DISTINCT 30 )
----
-30

query I rowsort
SELECT DISTINCT - 26 * 96 AS col2
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT 41 * - + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-9595
SELECT 41 * - + COUNT ( * )
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-9596
SELECT DISTINCT - 82 DIV - 4
----
20

skipif mysql # not compatible
query I rowsort label-9596
SELECT DISTINCT - 82 / - 4
----
20

query I rowsort
SELECT 67 * + 64 * + 60 AS col2
----
257280

onlyif mysql # DIV for integer division: 
query I rowsort label-9598
SELECT DISTINCT + 64 + - - 94 + - 91 DIV 90 * - 41 * + 19 AS col0
----
937

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT + 64 + - - 94 + - 91 / 90 * - 41 * + 19 AS col0
----
937

query I rowsort
SELECT ALL - 9 + - ( - 31 ) AS col1
----
22

query I rowsort
SELECT 47 - - + 73 AS col1
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9601
SELECT DISTINCT + ( - 13 ) DIV + 97 + NULLIF ( - 58, + CASE + - 17 WHEN NULLIF ( 3, 70 ) + - 59 * - + SUM( DISTINCT 26 ) * - 80 THEN NULL WHEN + 86 THEN - 56 * 94 - + 86 * - - COUNT( * ) * 48 + COUNT( * ) WHEN - 36 THEN NULL WHEN COUNT( DISTINCT - 85 ) THEN NULL ELSE NULL END * + + 66 + COALESCE ( + + COUNT( 13 ), + + COUNT( * ) - NULLIF ( + COALESCE ( + 42, - 96, + 23 ), + ( 76 ) ) ) ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT + ( - 13 ) / + 97 + NULLIF ( - 58, + CASE + - 17 WHEN NULLIF ( 3, 70 ) + - 59 * - + SUM ( DISTINCT 26 ) * - 80 THEN NULL WHEN + 86 THEN - 56 * 94 - + 86 * - - COUNT ( * ) * 48 + COUNT ( * ) WHEN - 36 THEN NULL WHEN COUNT ( DISTINCT - 85 ) THEN NULL ELSE NULL END * + + 66 + COALESCE ( + + COUNT ( 13 ), + + COUNT ( * ) - NULLIF ( + COALESCE ( + 42, - 96, + 23 ), + ( 76 ) ) ) ) AS col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9602
SELECT 56 - + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9602
SELECT 56 - + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 5 * + 26 * - 67 AS col0
----
-8710

query I rowsort
SELECT DISTINCT + 64 + + 87 AS col2
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9605
SELECT 47, + COALESCE ( + COUNT( DISTINCT + - 19 ), 49 * + - 94 * 72 ) * CAST( NULL AS SIGNED ) + COUNT( * ) AS col1
----
47
NULL

skipif mysql # not compatible
query II rowsort label-9605
SELECT 47, + COALESCE ( + COUNT ( DISTINCT + - 19 ), 49 * + - 94 * 72 ) * CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1
----
47
NULL

query I rowsort
SELECT 46 + - 14 + + 64
----
96

query II rowsort
SELECT - - 70, 21 AS col2
----
70
21

query II rowsort
SELECT + 77 + - - 44 * + 54, - 46 col1
----
2453
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT ALL SUM( ALL - 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL SUM ( ALL - 18 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-9610
SELECT DISTINCT 84 AS col0, - COUNT( * )
----
84
-1

skipif mysql # not compatible
query II rowsort label-9610
SELECT DISTINCT 84 AS col0, - COUNT ( * )
----
84
-1

query I rowsort
SELECT - COALESCE ( - 87, - - 71, - - 60 ) AS col1
----
87

query I rowsort
SELECT ( + ( + 3 ) ) + - 36
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9613
SELECT 54 + 52 * NULLIF ( 32, - - CASE - 79 WHEN - - ( 7 ) + - 70 / + ( + CAST( - - 43 AS SIGNED ) ) THEN NULL ELSE MIN( ALL + - ( - 76 ) ) END ) AS col2, + 58
----
1718
58

skipif mysql # not compatible
query II rowsort label-9613
SELECT 54 + 52 * NULLIF ( 32, - - CASE - 79 WHEN - - ( 7 ) + - 70 / + ( + CAST ( - - 43 AS INTEGER ) ) THEN NULL ELSE MIN ( ALL + - ( - 76 ) ) END ) AS col2, + 58
----
1718
58

query I rowsort
SELECT + 91 * COALESCE ( + 50, + + 2, - 83 ) - - 82 + 66 AS col1
----
4698

query I rowsort
SELECT DISTINCT + 65 * - + 30
----
-1950

query II rowsort
SELECT 65 AS col2, 71 col0
----
65
71

query I rowsort
SELECT ALL 80 * 20 AS col1
----
1600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9618
SELECT + 50 * MAX( 18 ) DIV + 1 AS col1
----
900

skipif mysql # not compatible
query I rowsort label-9618
SELECT + 50 * MAX ( 18 ) / + 1 AS col1
----
900

query I rowsort
SELECT 88 - + 19 col2
----
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9620
SELECT ALL + 67 DIV - 84, CAST( AVG ( + - 48 ) AS SIGNED ) * 82 AS col1
----
0
-3936

skipif mysql # not compatible
query II rowsort label-9620
SELECT ALL + 67 / - 84, CAST ( AVG ( + - 48 ) AS INTEGER ) * 82 AS col1
----
0
-3936

onlyif mysql # aggregate syntax: 
query II rowsort label-9621
SELECT DISTINCT - 64, COUNT( * ) AS col0
----
-64
1

skipif mysql # not compatible
query II rowsort label-9621
SELECT DISTINCT - 64, COUNT ( * ) AS col0
----
-64
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT ALL 89 + + COUNT( - 46 )
----
90

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL 89 + + COUNT ( - 46 )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9623
SELECT CAST( NULL AS SIGNED ) / 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9623
SELECT CAST ( NULL AS INTEGER ) / 12 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT - COUNT( * ) * - 16 + - MIN( ALL + 61 )
----
-45

skipif mysql # not compatible
query I rowsort label-9624
SELECT - COUNT ( * ) * - 16 + - MIN ( ALL + 61 )
----
-45

query II rowsort
SELECT 48 - - - 17 AS col1, COALESCE ( + + 11, - + ( + 33 ) * 35 ) AS col2
----
31
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT 77 * - 40 + + 25 + NULLIF ( - MAX( + 8 ), + 14 )
----
-3063

skipif mysql # not compatible
query I rowsort label-9626
SELECT 77 * - 40 + + 25 + NULLIF ( - MAX ( + 8 ), + 14 )
----
-3063

query I rowsort
SELECT 57 - + 70 col2
----
-13

query II rowsort
SELECT 82 AS col0, 61 * - - 46 * + ( - 69 )
----
82
-193614

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT + 69 * 55 + + - COALESCE ( + CASE + + 91 WHEN + 10 * 74 * - ( - CASE + - 67 WHEN 32 THEN 63 * - ( - + 49 ) ELSE NULL END ) + + - ( 17 ) + + - 81 THEN - + 74 END, - - 1, MAX( - + 77 ) ) AS col2
----
3794

skipif mysql # not compatible
query I rowsort label-9629
SELECT + 69 * 55 + + - COALESCE ( + CASE + + 91 WHEN + 10 * 74 * - ( - CASE + - 67 WHEN 32 THEN 63 * - ( - + 49 ) ELSE NULL END ) + + - ( 17 ) + + - 81 THEN - + 74 END, - - 1, MAX ( - + 77 ) ) AS col2
----
3794

query II rowsort
SELECT 87 AS col0, - 99
----
87
-99

query I rowsort
SELECT 76 * - 40 * - 2
----
6080

query I rowsort
SELECT ALL - 77 + - + 18 * + 97
----
-1823

onlyif mysql # aggregate syntax: 
query II rowsort label-9633
SELECT ALL COUNT( * ) * - 28, + 4 + - - 98 + 68 - 46 * 7 * + - 38 col2
----
-28
12406

skipif mysql # not compatible
query II rowsort label-9633
SELECT ALL COUNT ( * ) * - 28, + 4 + - - 98 + 68 - 46 * 7 * + - 38 col2
----
-28
12406

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT DISTINCT COALESCE ( + MAX( 5 ), + 26 ) + - 59
----
-54

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT COALESCE ( + MAX ( 5 ), + 26 ) + - 59
----
-54

query II rowsort
SELECT - 5 AS col1, + 21 * - 80 AS col2
----
-5
-1680

query I rowsort
SELECT ALL 75 + - 81
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT - NULLIF ( - 87, - SUM( - 37 ) ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-9637
SELECT - NULLIF ( - 87, - SUM ( - 37 ) ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT + 75 + - 60 * + COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-9638
SELECT + 75 + - 60 * + COUNT ( * ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT - CASE COALESCE ( + 23, COUNT( * ) * + - COUNT( * ) * 56 + 34 / 3 ) WHEN 36 * COUNT( * ) - - COUNT( * ) - 32 / + 27 + + 80 + + 69 THEN - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9639
SELECT - CASE COALESCE ( + 23, COUNT ( * ) * + - COUNT ( * ) * 56 + 34 / 3 ) WHEN 36 * COUNT ( * ) - - COUNT ( * ) - 32 / + 27 + + 80 + + 69 THEN - + COUNT ( * ) END
----
NULL

query I rowsort
SELECT - ( - 71 ) + - 26 + 93 * 57 col2
----
5346

query I rowsort
SELECT - - 32 * - 14
----
-448

query I rowsort
SELECT + ( - 24 ) AS col0
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-9643
SELECT DISTINCT + + 27 DIV - - 36 * - 37
----
0

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT + + 27 / - - 36 * - 37
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT - MAX( - 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-9644
SELECT - MAX ( - 15 ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT DISTINCT + NULLIF ( - 59, COUNT( * ) / - 45 * 80 + - ( - 23 ) ) col2
----
-59

skipif mysql # not compatible
query I rowsort label-9645
SELECT DISTINCT + NULLIF ( - 59, COUNT ( * ) / - 45 * 80 + - ( - 23 ) ) col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-9646
SELECT DISTINCT + + 35 DIV - - 47 - + 35 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT + + 35 / - - 47 - + 35 AS col0
----
-35

query I rowsort
SELECT ALL - 97 * + - 57 AS col0
----
5529

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT - 54 + 21 * + ( - COUNT( * ) )
----
-75

skipif mysql # not compatible
query I rowsort label-9648
SELECT - 54 + 21 * + ( - COUNT ( * ) )
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9649
SELECT - 68 DIV 33
----
-2

skipif mysql # not compatible
query I rowsort label-9649
SELECT - 68 / 33
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT ALL - COALESCE ( - - 33, + - ( - 32 ) + + ( + NULLIF ( 86, + - 59 ) ) ) * - COUNT( - 58 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL - COALESCE ( - - 33, + - ( - 32 ) + + ( + NULLIF ( 86, + - 59 ) ) ) * - COUNT ( - 58 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT + + ( + - 74 ) + COALESCE ( - COUNT( * ), 56 )
----
-75

skipif mysql # not compatible
query I rowsort label-9651
SELECT + + ( + - 74 ) + COALESCE ( - COUNT ( * ), 56 )
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-9652
SELECT 61 col2, - 93 * - 41 / - CASE + + 16 WHEN - - 15 + - + 25 THEN + SUM( + 10 ) / - ( + 31 ) + MAX( 22 ) WHEN + 95 THEN NULL END
----
61
NULL

skipif mysql # not compatible
query II rowsort label-9652
SELECT 61 col2, - 93 * - 41 / - CASE + + 16 WHEN - - 15 + - + 25 THEN + SUM ( + 10 ) / - ( + 31 ) + MAX ( 22 ) WHEN + 95 THEN NULL END
----
61
NULL

query I rowsort
SELECT + - 51 + - 85 + NULLIF ( - - 93, 59 ) + + 22 - + 76
----
-97

query I rowsort
SELECT - - 81 * + + 43 AS col2
----
3483

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT + COUNT( * ) * + - 52
----
-52

skipif mysql # not compatible
query I rowsort label-9655
SELECT + COUNT ( * ) * + - 52
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9656
SELECT ALL - ( - + CAST( + COALESCE ( + 84, - - COUNT( * ), - 35 ) AS SIGNED ) ) * - 83 * - MAX( - 83 ) + COUNT( - - 94 ) + 72 DIV + 88
----
-578675

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL - ( - + CAST ( + COALESCE ( + 84, - - COUNT ( * ), - 35 ) AS INTEGER ) ) * - 83 * - MAX ( - 83 ) + COUNT ( - - 94 ) + 72 / + 88
----
-578675

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT ALL 14 * - ( - 49 ) * 29 + - SUM( + + 6 ) + - ( 33 )
----
19855

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL 14 * - ( - 49 ) * 29 + - SUM ( + + 6 ) + - ( 33 )
----
19855

query I rowsort
SELECT DISTINCT - 5 * 17 + + + 90
----
5

query I rowsort
SELECT + NULLIF ( - - 91, + + 23 )
----
91

query I rowsort
SELECT NULLIF ( - 90, - + 48 ) AS col2
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9661
SELECT COUNT( ALL + 87 ) * - - 90 + 94 DIV + COUNT( * )
----
184

skipif mysql # not compatible
query I rowsort label-9661
SELECT COUNT ( ALL + 87 ) * - - 90 + 94 / + COUNT ( * )
----
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9662
SELECT CASE + SUM( - 3 ) WHEN 92 THEN 61 WHEN - + 10 - + 60 THEN - COUNT( * ) WHEN + 88 * NULLIF ( ( - - 57 ), - - 50 ) / 11 + + - 36 + + SUM( - ( + CAST( NULL AS SIGNED ) ) ) * + 50 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT CASE + SUM ( - 3 ) WHEN 92 THEN 61 WHEN - + 10 - + 60 THEN - COUNT ( * ) WHEN + 88 * NULLIF ( ( - - 57 ), - - 50 ) / 11 + + - 36 + + SUM ( - ( + CAST ( NULL AS INTEGER ) ) ) * + 50 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT + CASE + 83 WHEN + 2 - 59 * - 98 / ( + COUNT( * ) ) * - 37 THEN NULL ELSE + 79 * NULLIF ( - 15, + 13 + 49 - 97 * ( - ( + AVG ( ALL - 36 ) ) ) ) * 59 END + + + 73
----
-69842

skipif mysql # not compatible
query I rowsort label-9663
SELECT + CASE + 83 WHEN + 2 - 59 * - 98 / ( + COUNT ( * ) ) * - 37 THEN NULL ELSE + 79 * NULLIF ( - 15, + 13 + 49 - 97 * ( - ( + AVG ( ALL - 36 ) ) ) ) * 59 END + + + 73
----
-69842

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT DISTINCT + 55 * + COUNT( * ) * 13 + + + 92
----
807

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT + 55 * + COUNT ( * ) * 13 + + + 92
----
807

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT ALL 9 * + + 61 + 98 + - COUNT( * )
----
646

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL 9 * + + 61 + 98 + - COUNT ( * )
----
646

query I rowsort
SELECT CASE 83 WHEN - - 91 THEN 21 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 82 * - 74 * + + 88 col1
----
-533984

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT MIN( ALL + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-9668
SELECT MIN ( ALL + 67 )
----
67

query II rowsort
SELECT + 87 * + + 51 AS col1, 26 + + + 87
----
4437
113

query I rowsort
SELECT + 58 - + 45 * 7 * - - 17 AS col1
----
-5297

query I rowsort
SELECT + 34 + + + 96 * + 85
----
8194

onlyif mysql # DIV for integer division: 
query I rowsort label-9672
SELECT - 40 DIV - 90 * - 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9672
SELECT - 40 / - 90 * - 60 AS col1
----
0

query I rowsort
SELECT ALL 22 - - 43
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT + COUNT( * ) - 78 - 26 - - + 11
----
-92

skipif mysql # not compatible
query I rowsort label-9674
SELECT + COUNT ( * ) - 78 - 26 - - + 11
----
-92

query II rowsort
SELECT DISTINCT 90 * - 61 AS col2, 70 AS col2
----
-5490
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT ALL 99 * + 7 * ( - COALESCE ( - COUNT( * ), + 36 ) ) AS col0
----
693

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL 99 * + 7 * ( - COALESCE ( - COUNT ( * ), + 36 ) ) AS col0
----
693

query I rowsort
SELECT - + 21 * 77 + - ( - 53 ) AS col1
----
-1564

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT DISTINCT 17 * + 18 * + + COUNT( * )
----
306

skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT 17 * + 18 * + + COUNT ( * )
----
306

query I rowsort
SELECT + + ( + - 9 ) + ( + 33 ) + - + 76 col1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9680
SELECT ALL - CAST( - 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL - CAST ( - 21 AS INTEGER )
----
21

query I rowsort
SELECT + 5 * - + 53
----
-265

query I rowsort
SELECT - 75 * - - 82 AS col1
----
-6150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9683
SELECT - - CASE COUNT( * ) WHEN 79 THEN + + 36 END - - NULLIF ( + 54, 37 * CASE + + 4 WHEN 51 * COUNT( * ) + - - 62 + 81 THEN NULL WHEN 57 / - + 2 THEN NULL ELSE 48 / - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + MAX( 55 ) * + - 14 + + 64 + - + 79 + 1 END + CASE - NULLIF ( - + 85, + 25 + - 39 ) WHEN - 36 + + - 2 + 34 THEN 19 WHEN 54 THEN + - 61 END + - 3 ) + - 79 * 93 + + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT - - CASE COUNT ( * ) WHEN 79 THEN + + 36 END - - NULLIF ( + 54, 37 * CASE + + 4 WHEN 51 * COUNT ( * ) + - - 62 + 81 THEN NULL WHEN 57 / - + 2 THEN NULL ELSE 48 / - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + MAX ( 55 ) * + - 14 + + 64 + - + 79 + 1 END + CASE - NULLIF ( - + 85, + 25 + - 39 ) WHEN - 36 + + - 2 + 34 THEN 19 WHEN 54 THEN + - 61 END + - 3 ) + - 79 * 93 + + 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9684
SELECT ALL + + 57 DIV + + COUNT( * ) - - - 4 * - 95 * + - ( + + 5 ) * - COUNT( * )
----
1957

skipif mysql # not compatible
query I rowsort label-9684
SELECT ALL + + 57 / + + COUNT ( * ) - - - 4 * - 95 * + - ( + + 5 ) * - COUNT ( * )
----
1957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9685
SELECT DISTINCT 6 + - CAST( + - 87 AS SIGNED ) * 83 AS col0
----
7227

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT 6 + - CAST ( + - 87 AS INTEGER ) * 83 AS col0
----
7227

query I rowsort
SELECT - 46 + 95 AS col1
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-9687
SELECT DISTINCT - + 90 + 94 AS col1, + 4 * + 54 + SUM( DISTINCT - 95 ) + COUNT( * ) AS col2
----
4
122

skipif mysql # not compatible
query II rowsort label-9687
SELECT DISTINCT - + 90 + 94 AS col1, + 4 * + 54 + SUM ( DISTINCT - 95 ) + COUNT ( * ) AS col2
----
4
122

onlyif mysql # aggregate syntax: 
query II rowsort label-9688
SELECT ALL + - 28 + - 23, - 23 * + 58 * - COUNT( * ) * 72 + + - 18 + - + 65 AS col2
----
-51
95965

skipif mysql # not compatible
query II rowsort label-9688
SELECT ALL + - 28 + - 23, - 23 * + 58 * - COUNT ( * ) * 72 + + - 18 + - + 65 AS col2
----
-51
95965

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9689
SELECT ALL - 55 DIV - 4, - COUNT( * ) AS col0
----
13
-1

skipif mysql # not compatible
query II rowsort label-9689
SELECT ALL - 55 / - 4, - COUNT ( * ) AS col0
----
13
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9690
SELECT - - 44 DIV 98 * - + 36 DIV SUM( 44 )
----
0

skipif mysql # not compatible
query I rowsort label-9690
SELECT - - 44 / 98 * - + 36 / SUM ( 44 )
----
0

query I rowsort
SELECT DISTINCT - + 15 * + 38
----
-570

onlyif mysql # aggregate syntax: 
query II rowsort label-9692
SELECT ALL + 86, + COUNT( * ) + + ( 42 ) AS col0
----
86
43

skipif mysql # not compatible
query II rowsort label-9692
SELECT ALL + 86, + COUNT ( * ) + + ( 42 ) AS col0
----
86
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT + NULLIF ( - + COUNT( * ), 82 + 92 ) * - - 88
----
-88

skipif mysql # not compatible
query I rowsort label-9693
SELECT + NULLIF ( - + COUNT ( * ), 82 + 92 ) * - - 88
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9694
SELECT ALL 36 DIV 25 * + - COUNT( * ) + 36 + - 89 + + 3 + - - 36 + 48 + + - COUNT( * ) * + 12 + + - 64 DIV + 84 DIV 82 * + - 80
----
21

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL 36 / 25 * + - COUNT ( * ) + 36 + - 89 + + 3 + - - 36 + 48 + + - COUNT ( * ) * + 12 + + - 64 / + 84 / 82 * + - 80
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT - COUNT( * ) - 86 + 68 + - 26 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-9695
SELECT - COUNT ( * ) - 86 + 68 + - 26 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT DISTINCT - MIN( - 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT - MIN ( - 45 ) AS col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9697
SELECT ALL 82 - - 49 + - + 80 DIV - 54 DIV - + COUNT( * )
----
130

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL 82 - - 49 + - + 80 / - 54 / - + COUNT ( * )
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9698
SELECT DISTINCT - COALESCE ( + CASE - COUNT( * ) WHEN 4 THEN NULL ELSE + 6 DIV - 61 DIV + + COUNT( * ) + + + ( + 26 ) END, - 55 ) col0
----
-26

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT - COALESCE ( + CASE - COUNT ( * ) WHEN 4 THEN NULL ELSE + 6 / - 61 / + + COUNT ( * ) + + + ( + 26 ) END, - 55 ) col0
----
-26

query I rowsort
SELECT 14 * + + 3 * + ( + 76 ) + - 63
----
3129

query I rowsort
SELECT 66 * - 47 AS col1
----
-3102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9701
SELECT 72 + NULLIF ( + + 78, 36 * + ( + - 98 ) + + CASE 5 WHEN + CAST( - COALESCE ( + 26, - + 87 ) AS SIGNED ) + ( - COALESCE ( - 93, + 20 * + 67 * + - ( COALESCE ( + - 18, + 56 * - 87 * + 66 + - COUNT( * ) * 43, - 16 * - 82 * + 58 * - - 32 * - 42 + + 67 ) ) + 88 - - COUNT( * ) + 78 * ( 37 ) * + 90 + - 48 - - COUNT( * ) ) ) * 28 THEN NULL WHEN - 91 THEN NULL ELSE + + 52 * + 59 * 80 + - AVG ( + 65 ) / 29 END ) + - 66 - - 70
----
154

skipif mysql # not compatible
query I rowsort label-9701
SELECT 72 + NULLIF ( + + 78, 36 * + ( + - 98 ) + + CASE 5 WHEN + CAST ( - COALESCE ( + 26, - + 87 ) AS INTEGER ) + ( - COALESCE ( - 93, + 20 * + 67 * + - ( COALESCE ( + - 18, + 56 * - 87 * + 66 + - COUNT ( * ) * 43, - 16 * - 82 * + 58 * - - 32 * - 42 + + 67 ) ) + 88 - - COUNT ( * ) + 78 * ( 37 ) * + 90 + - 48 - - COUNT ( * ) ) ) * 28 THEN NULL WHEN - 91 THEN NULL ELSE + + 52 * + 59 * 80 + - AVG ( + 65 ) / 29 END ) + - 66 - - 70
----
154

query I rowsort
SELECT 7 * - 4
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-9703
SELECT DISTINCT 92 AS col1, - COUNT( * ) AS col2
----
92
-1

skipif mysql # not compatible
query II rowsort label-9703
SELECT DISTINCT 92 AS col1, - COUNT ( * ) AS col2
----
92
-1

query I rowsort
SELECT + 27 + - - 26
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT CASE 98 WHEN + ( COUNT( * ) ) THEN 86 WHEN - + 87 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT CASE 98 WHEN + ( COUNT ( * ) ) THEN 86 WHEN - + 87 THEN NULL END
----
NULL

query II rowsort
SELECT ALL - 81, + 53 AS col1
----
-81
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9707
SELECT ALL - 11 DIV + 28
----
0

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL - 11 / + 28
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9708
SELECT - NULLIF ( NULLIF ( - + 36, - 1 / + 34 - - - CAST( + + 63 AS SIGNED ) + + + 10 * - 82 * - 71 ), + CAST( NULL AS SIGNED ) / - 76 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-9708
SELECT - NULLIF ( NULLIF ( - + 36, - 1 / + 34 - - - CAST ( + + 63 AS INTEGER ) + + + 10 * - 82 * - 71 ), + CAST ( NULL AS INTEGER ) / - 76 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT COUNT( * ) * + 73 * 88 * - + 6 AS col2
----
-38544

skipif mysql # not compatible
query I rowsort label-9709
SELECT COUNT ( * ) * + 73 * 88 * - + 6 AS col2
----
-38544

query II rowsort
SELECT - 77 + + 13 + - 71 col0, + 26 * 69
----
-135
1794

query I rowsort
SELECT ALL 47 + 73 + 89 + 95
----
304

query I rowsort
SELECT DISTINCT 91 + + + 22
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT DISTINCT + COUNT( * ) + - 58 col0
----
-57

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT + COUNT ( * ) + - 58 col0
----
-57

query I rowsort
SELECT ALL - ( - + 27 ) * 57 * 44
----
67716

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT COUNT( * ) + + 73 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-9715
SELECT COUNT ( * ) + + 73 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT ALL + 84 + - ( - SUM( + - 16 ) ) col0
----
68

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL + 84 + - ( - SUM ( + - 16 ) ) col0
----
68

query I rowsort
SELECT DISTINCT 18 * 8 col1
----
144

query II rowsort
SELECT ALL + 88 AS col0, 4
----
88
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT ALL COUNT( * ) * - SUM( - - 19 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL COUNT ( * ) * - SUM ( - - 19 ) AS col2
----
-19

query I rowsort
SELECT 19 * - 79 col1
----
-1501

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9721
SELECT DISTINCT - 60 + - 39 * + 29 DIV - + CASE + COUNT( * ) WHEN - + 91 THEN + + 81 ELSE + 54 * 42 + - 7 END
----
-60

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT - 60 + - 39 * + 29 / - + CASE + COUNT ( * ) WHEN - + 91 THEN + + 81 ELSE + 54 * 42 + - 7 END
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT 82 * + - 31 + + SUM( + 60 ) AS col0
----
-2482

skipif mysql # not compatible
query I rowsort label-9722
SELECT 82 * + - 31 + + SUM ( + 60 ) AS col0
----
-2482

onlyif mysql # DIV for integer division: 
query I rowsort label-9723
SELECT DISTINCT - 36 DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-9723
SELECT DISTINCT - 36 / + 46
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9724
SELECT - 82 DIV + ( - - 1 ) + - 45 + - - 36 + + - 10 * - - COUNT( * ) + - + 64
----
-165

skipif mysql # not compatible
query I rowsort label-9724
SELECT - 82 / + ( - - 1 ) + - 45 + - - 36 + + - 10 * - - COUNT ( * ) + - + 64
----
-165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9725
SELECT ALL - MIN( DISTINCT - 84 ), - NULLIF ( + 68, - 69 / + SUM( + + 85 ) * + - 85 * + 3 - 23 - - + 6 - - - 25 + NULLIF ( + + 27, + + 91 ) * 68 / - CAST( - - 59 AS SIGNED ) ) - + 21 AS col0
----
84
-89

skipif mysql # not compatible
query II rowsort label-9725
SELECT ALL - MIN ( DISTINCT - 84 ), - NULLIF ( + 68, - 69 / + SUM ( + + 85 ) * + - 85 * + 3 - 23 - - + 6 - - - 25 + NULLIF ( + + 27, + + 91 ) * 68 / - CAST ( - - 59 AS INTEGER ) ) - + 21 AS col0
----
84
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-9726
SELECT ALL + COUNT( * ) - - 95, - 10 AS col0
----
96
-10

skipif mysql # not compatible
query II rowsort label-9726
SELECT ALL + COUNT ( * ) - - 95, - 10 AS col0
----
96
-10

query I rowsort
SELECT ALL - 19 * ( + + 56 ) AS col1
----
-1064

query I rowsort
SELECT DISTINCT + 64 * - + 23 * + - 48 AS col0
----
70656

query II rowsort
SELECT ALL - 47 * + - 97 col1, 25
----
4559
25

query I rowsort
SELECT 63 * - 63 * - + 79 * - 53 AS col1
----
-16618203

query I rowsort
SELECT 66 * + 70 AS col0
----
4620

query I rowsort
SELECT 1 + - 88
----
-87

query I rowsort
SELECT 75 * + + 0 * - 9 * + - ( + 99 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9734
SELECT ALL - COALESCE ( + - CAST( 75 AS SIGNED ), MIN( - + 8 ) * 30 ) col0
----
75

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL - COALESCE ( + - CAST ( 75 AS INTEGER ), MIN ( - + 8 ) * 30 ) col0
----
75

query I rowsort
SELECT + 12 * 33
----
396

query II rowsort
SELECT ALL 51 * ( 29 ) + 53 AS col1, - 79
----
1532
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-9737
SELECT - 78 + 87 * + ( - - NULLIF ( + ( - + COUNT( * ) ), - - 27 ) ) AS col1, + 71
----
-165
71

skipif mysql # not compatible
query II rowsort label-9737
SELECT - 78 + 87 * + ( - - NULLIF ( + ( - + COUNT ( * ) ), - - 27 ) ) AS col1, + 71
----
-165
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT ALL - 49 * + + 61 + + + COUNT( * ) + 59 * + 32
----
-1100

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL - 49 * + + 61 + + + COUNT ( * ) + 59 * + 32
----
-1100

onlyif mysql # aggregate syntax: 
query II rowsort label-9739
SELECT - COUNT( ALL + 75 ) AS col1, + 21 AS col0
----
-1
21

skipif mysql # not compatible
query II rowsort label-9739
SELECT - COUNT ( ALL + 75 ) AS col1, + 21 AS col0
----
-1
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9740
SELECT DISTINCT 36 * - CAST( 85 AS SIGNED )
----
-3060

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT 36 * - CAST ( 85 AS INTEGER )
----
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT DISTINCT + - COUNT( * ) + + + 91 * + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT + - COUNT ( * ) + + + 91 * + COUNT ( * )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9742
SELECT ALL - - CAST( - - 90 AS SIGNED ) * - 85 col0
----
-7650

skipif mysql # not compatible
query I rowsort label-9742
SELECT ALL - - CAST ( - - 90 AS INTEGER ) * - 85 col0
----
-7650

query II rowsort
SELECT + 28 + + - 77, 67 * 67 - ( 25 ) + + - COALESCE ( 87, + 80 ) AS col1
----
-49
4377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9744
SELECT ALL + ( + 84 ) + + + ( + 18 ) * - MIN( + 67 ) + + 65 * - + CAST( NULL AS SIGNED ) - - AVG ( 89 ) AS col1, + 79 + + 87 DIV ( - 38 ) AS col1
----
NULL
77

skipif mysql # not compatible
query II rowsort label-9744
SELECT ALL + ( + 84 ) + + + ( + 18 ) * - MIN ( + 67 ) + + 65 * - + CAST ( NULL AS INTEGER ) - - AVG ( 89 ) AS col1, + 79 + + 87 / ( - 38 ) AS col1
----
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT DISTINCT COALESCE ( - - 72, + COUNT( * ) ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-9745
SELECT DISTINCT COALESCE ( - - 72, + COUNT ( * ) ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT ALL COALESCE ( - MIN( ALL - + 71 ), - - 23 ) + + 41
----
112

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL COALESCE ( - MIN ( ALL - + 71 ), - - 23 ) + + 41
----
112

query I rowsort
SELECT ALL CASE + 51 WHEN - 59 THEN + 27 WHEN - 83 * + 19 * + 38 THEN + 68 * 30 END + - 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT DISTINCT 24 + COUNT( * ) - - - 36 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-9748
SELECT DISTINCT 24 + COUNT ( * ) - - - 36 AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9749
SELECT DISTINCT - 6 + - + CAST( - 94 AS SIGNED ) * - 33
----
-3108

skipif mysql # not compatible
query I rowsort label-9749
SELECT DISTINCT - 6 + - + CAST ( - 94 AS INTEGER ) * - 33
----
-3108

query II rowsort
SELECT - - ( 89 ), + 26 col0
----
89
26

onlyif mysql # DIV for integer division: 
query I rowsort label-9751
SELECT ALL - 73 DIV - - 2
----
-36

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL - 73 / - - 2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT ALL 12 * + 87 * COUNT( DISTINCT 45 ) AS col0
----
1044

skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL 12 * + 87 * COUNT ( DISTINCT 45 ) AS col0
----
1044

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT DISTINCT 24 - COUNT( + 8 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9753
SELECT DISTINCT 24 - COUNT ( + 8 ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT - MIN( DISTINCT + - 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9754
SELECT - MIN ( DISTINCT + - 7 ) AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9755
SELECT DISTINCT + 78 - + CAST( NULL AS SIGNED ) + 61 - 88 / 81 * + 45 * - 18 * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT + 78 - + CAST ( NULL AS INTEGER ) + 61 - 88 / 81 * + 45 * - 18 * - 38
----
NULL

query I rowsort
SELECT ALL 76 * - - 62 AS col0
----
4712

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT + MIN( - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-9757
SELECT + MIN ( - 51 )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9758
SELECT + SUM( DISTINCT - ( + - 54 ) ) DIV - - 17 - + - ( - 45 )
----
-42

skipif mysql # not compatible
query I rowsort label-9758
SELECT + SUM ( DISTINCT - ( + - 54 ) ) / - - 17 - + - ( - 45 )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9759
SELECT + CAST( NULL AS SIGNED ) + + - 63 - - 14 + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-9759
SELECT + CAST ( NULL AS INTEGER ) + + - 63 - - 14 + - 8
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9760
SELECT + SUM( ALL - + 82 ) DIV 35 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9760
SELECT + SUM ( ALL - + 82 ) / 35 AS col1
----
-2

query II rowsort
SELECT ALL + CASE + - 98 WHEN - 5 * + 51 + - 31 THEN - + 24 / - 6 + - - 31 / 85 ELSE NULL END / - 67 AS col0, + 18 col2
----
NULL
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9762
SELECT + 8 * + - 39 + CAST( 70 AS SIGNED ) + - 50
----
-292

skipif mysql # not compatible
query I rowsort label-9762
SELECT + 8 * + - 39 + CAST ( 70 AS INTEGER ) + - 50
----
-292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9763
SELECT CAST( - COUNT( * ) AS SIGNED ) * + - 51 + - 92 DIV + 6 col2
----
36

skipif mysql # not compatible
query I rowsort label-9763
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + - 51 + - 92 / + 6 col2
----
36

onlyif mysql # DIV for integer division: 
query II rowsort label-9764
SELECT DISTINCT 45 DIV + - 66 * + 4 col0, 79 * + 88 AS col2
----
0
6952

skipif mysql # not compatible
query II rowsort label-9764
SELECT DISTINCT 45 / + - 66 * + 4 col0, 79 * + 88 AS col2
----
0
6952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9765
SELECT - 57 + - - CAST( - - MAX( - 83 ) AS SIGNED ) + - 31 + - ( - 76 )
----
-95

skipif mysql # not compatible
query I rowsort label-9765
SELECT - 57 + - - CAST ( - - MAX ( - 83 ) AS INTEGER ) + - 31 + - ( - 76 )
----
-95

query I rowsort
SELECT - 33 * - 9 AS col1
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT ALL 39 * 69 + 75 * - CASE + 54 WHEN 87 + 4 THEN + COALESCE ( - 27, - COUNT( * ) ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL 39 * 69 + 75 * - CASE + 54 WHEN 87 + 4 THEN + COALESCE ( - 27, - COUNT ( * ) ) ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT ALL - COUNT( * ) * + ( 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL - COUNT ( * ) * + ( 48 )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-9769
SELECT + ( + 44 ) DIV - 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9769
SELECT + ( + 44 ) / - 59 AS col0
----
0

query I rowsort
SELECT - 70 * + 34 + + 84 AS col2
----
-2296

query I rowsort
SELECT - 97 * + 76
----
-7372

query I rowsort
SELECT 25 * - 9 + 69 AS col0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9773
SELECT - 15 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9773
SELECT - 15 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 5 * 50 + 30
----
280

query I rowsort
SELECT - 91 + NULLIF ( + ( 27 ), - 10 ) col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT ALL MIN( DISTINCT 62 )
----
62

skipif mysql # not compatible
query I rowsort label-9776
SELECT ALL MIN ( DISTINCT 62 )
----
62

query I rowsort
SELECT 26 * ( + COALESCE ( 92, 55 * 30 ) ) + 26
----
2418

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT - MIN( DISTINCT NULLIF ( + NULLIF ( CASE ( - 34 ) WHEN 54 THEN + 16 / 38 + - 93 END, 85 * + 15 ), - 74 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9778
SELECT - MIN ( DISTINCT NULLIF ( + NULLIF ( CASE ( - 34 ) WHEN 54 THEN + 16 / 38 + - 93 END, 85 * + 15 ), - 74 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9779
SELECT - 72 + - 61 DIV 45 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-9779
SELECT - 72 + - 61 / 45 AS col1
----
-73

query I rowsort
SELECT + 37 + COALESCE ( + ( - 48 ), - 28, + 73 ) * - 58 AS col1
----
2821

query I rowsort
SELECT + 13 + + 66
----
79

query I rowsort
SELECT ALL ( - 58 ) col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9783
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 95
----
NULL

query I rowsort
SELECT + CASE 2 WHEN + 98 + 23 THEN NULL ELSE 0 + + 5 END + 27
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT DISTINCT - COUNT( * ) - ( 89 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT - COUNT ( * ) - ( 89 ) AS col2
----
-90

query I rowsort
SELECT DISTINCT + 45 - - 20 * + 71
----
1465

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT ALL ( + MIN( ALL ( + 1 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL ( + MIN ( ALL ( + 1 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT DISTINCT + COUNT( * ) * - 83
----
-83

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT + COUNT ( * ) * - 83
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9789
SELECT ALL CAST( - 77 AS SIGNED ) col2
----
-77

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL CAST ( - 77 AS INTEGER ) col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT - 41 * COUNT( * ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-9790
SELECT - 41 * COUNT ( * ) col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT - COALESCE ( + 35, 9, SUM( DISTINCT 89 ) ) col2
----
-35

skipif mysql # not compatible
query I rowsort label-9791
SELECT - COALESCE ( + 35, 9, SUM ( DISTINCT 89 ) ) col2
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9792
SELECT + 65 + + 2 DIV + COUNT( * ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-9792
SELECT + 65 + + 2 / + COUNT ( * ) AS col2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9793
SELECT + CAST( NULL AS SIGNED ) / - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9793
SELECT + CAST ( NULL AS INTEGER ) / - 87
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9794
SELECT ALL 29 DIV + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL 29 / + COUNT ( * )
----
29

query I rowsort
SELECT - COALESCE ( - 53, 41 ) * - 22
----
-1166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9796
SELECT + CAST( NULL AS SIGNED ) + - 83 * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT + CAST ( NULL AS INTEGER ) + - 83 * 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT DISTINCT SUM( 4 ) * NULLIF ( + 17, 80 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-9797
SELECT DISTINCT SUM ( 4 ) * NULLIF ( + 17, 80 ) AS col2
----
68

query I rowsort
SELECT + COALESCE ( 26, COALESCE ( ( 1 ), - 39, - 3 ) * 72, 73 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9799
SELECT CAST( 28 AS SIGNED ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9799
SELECT CAST ( 28 AS INTEGER ) AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-9800
SELECT DISTINCT 85 DIV + 36 + 12 * 65
----
782

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT 85 / + 36 + 12 * 65
----
782

query I rowsort
SELECT DISTINCT 4 * 40
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9802
SELECT ALL MAX( DISTINCT 73 ) DIV 85 + + 60 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL MAX ( DISTINCT 73 ) / 85 + + 60 AS col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9803
SELECT + CAST( + 97 AS SIGNED ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-9803
SELECT + CAST ( + 97 AS INTEGER ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT - 91 * + 82 + COUNT( * ) AS col2
----
-7461

skipif mysql # not compatible
query I rowsort label-9804
SELECT - 91 * + 82 + COUNT ( * ) AS col2
----
-7461

query I rowsort
SELECT - + 13 + - 84
----
-97

query I rowsort
SELECT DISTINCT + + NULLIF ( - 57, 31 * + ( 39 ) ) * 82 + + 60
----
-4614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9807
SELECT COALESCE ( COALESCE ( - 44, - 52 + 55, - 44 * CAST( COUNT( * ) AS SIGNED ) ), 62 + 42, - SUM( DISTINCT - 98 ) * - 10 + 45 * - CASE + 25 + 80 WHEN - 89 THEN 38 END, - 45 * - COUNT( * ) )
----
-44

skipif mysql # not compatible
query I rowsort label-9807
SELECT COALESCE ( COALESCE ( - 44, - 52 + 55, - 44 * CAST ( COUNT ( * ) AS INTEGER ) ), 62 + 42, - SUM ( DISTINCT - 98 ) * - 10 + 45 * - CASE + 25 + 80 WHEN - 89 THEN 38 END, - 45 * - COUNT ( * ) )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT ALL + - COUNT( * ) * 16 + + 93 col0
----
77

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL + - COUNT ( * ) * 16 + + 93 col0
----
77

query I rowsort
SELECT ALL + 66 * + 21 AS col1
----
1386

query I rowsort
SELECT - + 61 * - 51 AS col1
----
3111

query I rowsort
SELECT ALL - + 27 * 65 + + 20 AS col0
----
-1735

query I rowsort
SELECT + - 17 + 84
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9813
SELECT - + 11 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-9813
SELECT - + 11 / 86
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9814
SELECT + + ( - CAST( 53 AS SIGNED ) ) + CAST( - 93 AS SIGNED ) * 88 AS col1
----
-8237

skipif mysql # not compatible
query I rowsort label-9814
SELECT + + ( - CAST ( 53 AS INTEGER ) ) + CAST ( - 93 AS INTEGER ) * 88 AS col1
----
-8237

query I rowsort
SELECT - - 36 * 90
----
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT DISTINCT + ( - 20 ) - + ( - MIN( ALL 83 ) ) * 70
----
5790

skipif mysql # not compatible
query I rowsort label-9816
SELECT DISTINCT + ( - 20 ) - + ( - MIN ( ALL 83 ) ) * 70
----
5790

query I rowsort
SELECT - 12 - + 44
----
-56

query I rowsort
SELECT ALL 82 * - 0 AS col0
----
0

query I rowsort
SELECT 76 * 72 AS col1
----
5472

query I rowsort
SELECT DISTINCT + 5 * - 66 * + 45
----
-14850

query I rowsort
SELECT 66 * 43
----
2838

query I rowsort
SELECT DISTINCT + 15 * - COALESCE ( 99, - 97, - 69 ) col0
----
-1485

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT SUM( - + 43 ) + + 77
----
34

skipif mysql # not compatible
query I rowsort label-9823
SELECT SUM ( - + 43 ) + + 77
----
34

query I rowsort
SELECT ALL + 97 * + 30 AS col0
----
2910

query I rowsort
SELECT DISTINCT - 43 + - 43 + + ( 73 )
----
-13

query I rowsort
SELECT ALL + 88 + - - 71 AS col0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT DISTINCT 10 + + MIN( 84 ) + COUNT( * ) * - 47
----
47

skipif mysql # not compatible
query I rowsort label-9827
SELECT DISTINCT 10 + + MIN ( 84 ) + COUNT ( * ) * - 47
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT + ( 71 ) * COUNT( * ) + + 43 AS col2
----
114

skipif mysql # not compatible
query I rowsort label-9828
SELECT + ( 71 ) * COUNT ( * ) + + 43 AS col2
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9829
SELECT COUNT( * ) - - CAST( - 71 AS SIGNED ) - + 0 * - 54 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-9829
SELECT COUNT ( * ) - - CAST ( - 71 AS INTEGER ) - + 0 * - 54 AS col0
----
-70

query I rowsort
SELECT DISTINCT - COALESCE ( - 8, + 67 + + 25, 46 + + 66 ) AS col1
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9831
SELECT COUNT( * ) DIV - COUNT( * ) + 33 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-9831
SELECT COUNT ( * ) / - COUNT ( * ) + 33 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT 17 * + + 70 * - COUNT( * )
----
-1190

skipif mysql # not compatible
query I rowsort label-9832
SELECT 17 * + + 70 * - COUNT ( * )
----
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT ALL 57 + - + ( + COUNT( ALL - 94 ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL 57 + - + ( + COUNT ( ALL - 94 ) ) AS col0
----
56

query I rowsort
SELECT 91 + - 87 + 23
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT NULLIF ( 99, 78 ) * - COALESCE ( 21 * 28, 55 * - COUNT( * ) ) col0
----
-58212

skipif mysql # not compatible
query I rowsort label-9835
SELECT NULLIF ( 99, 78 ) * - COALESCE ( 21 * 28, 55 * - COUNT ( * ) ) col0
----
-58212

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT ALL ( + 27 ) + + COUNT( * ) * COUNT( * ) col2
----
28

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL ( + 27 ) + + COUNT ( * ) * COUNT ( * ) col2
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-9837
SELECT ALL - + 42 DIV - 39
----
1

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL - + 42 / - 39
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT - + COALESCE ( + 58, + NULLIF ( + 72, COUNT( * ) * + 77 + + ( 31 ) ), + COUNT( * ) ) * + 76 + 88
----
-4320

skipif mysql # not compatible
query I rowsort label-9838
SELECT - + COALESCE ( + 58, + NULLIF ( + 72, COUNT ( * ) * + 77 + + ( 31 ) ), + COUNT ( * ) ) * + 76 + 88
----
-4320

query I rowsort
SELECT ALL + 70 * 93
----
6510

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT - 75 * 80 + 6 + - 44 * + NULLIF ( CASE 1 WHEN + NULLIF ( 1, - 49 + 65 * + 41 ) * NULLIF ( + ( 90 ), 1 ) THEN NULL WHEN COALESCE ( + 13, 47 + 67 ) THEN NULL WHEN - 0 THEN 65 * - 3 END + SUM( ALL 60 ), - 73 * 80 + 8 / 9 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9840
SELECT - 75 * 80 + 6 + - 44 * + NULLIF ( CASE 1 WHEN + NULLIF ( 1, - 49 + 65 * + 41 ) * NULLIF ( + ( 90 ), 1 ) THEN NULL WHEN COALESCE ( + 13, 47 + 67 ) THEN NULL WHEN - 0 THEN 65 * - 3 END + SUM ( ALL 60 ), - 73 * 80 + 8 / 9 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT ALL + COUNT( * ) - + 92 * 61
----
-5611

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL + COUNT ( * ) - + 92 * 61
----
-5611

query I rowsort
SELECT ALL - 26 * + 41 AS col1
----
-1066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9843
SELECT CASE - 83 WHEN CASE + MIN( ALL 12 ) WHEN - COUNT( * ) * - ( 34 ) THEN 76 * + COUNT( * ) WHEN 39 + - 62 * 8 THEN 41 * - CAST( NULL AS SIGNED ) END / - 86 THEN + ( ( COUNT( * ) ) ) / - COUNT( * ) WHEN 21 THEN 32 / - 0 - 15 WHEN - 37 + SUM( - 13 ) * - 5 THEN NULL ELSE NULL END * NULLIF ( 78, + 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9843
SELECT CASE - 83 WHEN CASE + MIN ( ALL 12 ) WHEN - COUNT ( * ) * - ( 34 ) THEN 76 * + COUNT ( * ) WHEN 39 + - 62 * 8 THEN 41 * - CAST ( NULL AS INTEGER ) END / - 86 THEN + ( ( COUNT ( * ) ) ) / - COUNT ( * ) WHEN 21 THEN 32 / - 0 - 15 WHEN - 37 + SUM ( - 13 ) * - 5 THEN NULL ELSE NULL END * NULLIF ( 78, + 82 )
----
NULL

query I rowsort
SELECT - 3 * 61 col1
----
-183

query I rowsort
SELECT 52 + - 80
----
-28

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9846
SELECT - CAST( - + 33 AS SIGNED ) * NULLIF ( + 72 * + 70, - CAST( NULL AS DECIMAL ) ) AS col2
----
166320

skipif mysql # not compatible
query I rowsort label-9846
SELECT - CAST ( - + 33 AS INTEGER ) * NULLIF ( + 72 * + 70, - CAST ( NULL AS REAL ) ) AS col2
----
166320

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT + COUNT( * ) * - COUNT( * ) * 56 + - 28 * 63 AS col2
----
-1820

skipif mysql # not compatible
query I rowsort label-9847
SELECT + COUNT ( * ) * - COUNT ( * ) * 56 + - 28 * 63 AS col2
----
-1820

query I rowsort
SELECT ALL - - 13 col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT ALL - + SUM( DISTINCT 86 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL - + SUM ( DISTINCT 86 ) AS col1
----
-86

query I rowsort
SELECT + 6 * + 97 AS col0
----
582

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT ALL + COUNT( NULLIF ( - 17, + 45 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL + COUNT ( NULLIF ( - 17, + 45 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT DISTINCT - - COUNT( * ) * - 51 * 3 AS col1
----
-153

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT - - COUNT ( * ) * - 51 * 3 AS col1
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-9853
SELECT ALL + 50 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL + 50 / + 70
----
0

query I rowsort
SELECT ALL 54 * - + ( + - 64 )
----
3456

query I rowsort
SELECT 47 + + - 91 * + + 46 + + ( 21 ) col0
----
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT 85 + - 77 + 26 + 36 * - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9856
SELECT 85 + - 77 + 26 + 36 * - COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT ( + 99 ) * + 96
----
9504

onlyif mysql # aggregate syntax: 
query II rowsort label-9858
SELECT - COUNT( * ) AS col1, - COUNT( * ) * + 78 * 17
----
-1
-1326

skipif mysql # not compatible
query II rowsort label-9858
SELECT - COUNT ( * ) AS col1, - COUNT ( * ) * + 78 * 17
----
-1
-1326

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9859
SELECT 1 DIV + MAX( + - 36 )
----
0

skipif mysql # not compatible
query I rowsort label-9859
SELECT 1 / + MAX ( + - 36 )
----
0

query I rowsort
SELECT ALL 94 * 35 * - 76 * + 49
----
-12251960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9861
SELECT DISTINCT 53 + 0 - COUNT( * ) DIV COALESCE ( + 24 * - 20, 3 * - CASE COUNT( * ) DIV - ( + 82 * - 34 ) WHEN + 71 THEN NULL ELSE - MAX( ALL - 54 ) END )
----
53

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT 53 + 0 - COUNT ( * ) / COALESCE ( + 24 * - 20, 3 * - CASE COUNT ( * ) / - ( + 82 * - 34 ) WHEN + 71 THEN NULL ELSE - MAX ( ALL - 54 ) END )
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-9862
SELECT ALL 38 AS col2, + SUM( - 29 )
----
38
-29

skipif mysql # not compatible
query II rowsort label-9862
SELECT ALL 38 AS col2, + SUM ( - 29 )
----
38
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9863
SELECT 91 + ( COUNT( * ) ) DIV 58
----
91

skipif mysql # not compatible
query I rowsort label-9863
SELECT 91 + ( COUNT ( * ) ) / 58
----
91

query I rowsort
SELECT ALL 87 + - 67 AS col0
----
20

query I rowsort
SELECT ALL + 2 + - 58
----
-56

query I rowsort
SELECT DISTINCT - 11 + 26 - + - 38
----
53

query I rowsort
SELECT 17 + 84
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT ALL - 66 * COUNT( * ) * - - MAX( + COALESCE ( + 8, + 42 ) ) * - 9
----
4752

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL - 66 * COUNT ( * ) * - - MAX ( + COALESCE ( + 8, + 42 ) ) * - 9
----
4752

query I rowsort
SELECT ALL - 57 + - - 38 + + 87 * 13 * 26
----
29387

onlyif mysql # DIV for integer division: 
query I rowsort label-9870
SELECT - 58 * 11 + 6 DIV 38 AS col2
----
-638

skipif mysql # not compatible
query I rowsort label-9870
SELECT - 58 * 11 + 6 / 38 AS col2
----
-638

query I rowsort
SELECT DISTINCT + 40 * + - 28 + - 67 AS col1
----
-1187

query I rowsort
SELECT 10 * - 14
----
-140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9873
SELECT DISTINCT - 80, CAST( NULL AS SIGNED ) * 4 * - 26 - - 63 AS col0
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-9873
SELECT DISTINCT - 80, CAST ( NULL AS INTEGER ) * 4 * - 26 - - 63 AS col0
----
-80
NULL

query II rowsort
SELECT ALL - 39 AS col1, 57 col2
----
-39
57

query I rowsort
SELECT DISTINCT - 88 * + 59
----
-5192

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT DISTINCT - + 64 * - - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT - + 64 * - - COUNT ( * )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT + CASE + COUNT( * ) WHEN - 75 * 60 THEN 73 * - 35 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9877
SELECT + CASE + COUNT ( * ) WHEN - 75 * 60 THEN 73 * - 35 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 45 * 23 * - - 21 * 25
----
-543375

query II rowsort
SELECT - 19 AS col1, + 3 AS col0
----
-19
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9880
SELECT ALL - 89 DIV 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL - 89 / 90 AS col0
----
0

query I rowsort
SELECT + + 78 * 12 * - + 55 AS col0
----
-51480

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT ALL + CASE + - COUNT( * ) WHEN - 9 THEN + 91 - - 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL + CASE + - COUNT ( * ) WHEN - 9 THEN + 91 - - 79 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9883
SELECT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9883
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT ALL - 45 DIV + 13
----
-3

skipif mysql # not compatible
query I rowsort label-9884
SELECT ALL - 45 / + 13
----
-3

query I rowsort
SELECT ALL + 65 * - 22 col2
----
-1430

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT - MAX( + + 74 ) * 44 - - 36 + ( - 39 + + 1 )
----
-3258

skipif mysql # not compatible
query I rowsort label-9886
SELECT - MAX ( + + 74 ) * 44 - - 36 + ( - 39 + + 1 )
----
-3258

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT + SUM( + 17 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-9887
SELECT + SUM ( + 17 ) AS col2
----
17

query I rowsort
SELECT + - ( - ( 58 ) ) AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9889
SELECT - 61 + + 89 / - + CAST( NULL AS SIGNED ) * + 45 + + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9889
SELECT - 61 + + 89 / - + CAST ( NULL AS INTEGER ) * + 45 + + 82 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT + 36 * + - 63 * COUNT( * )
----
-2268

skipif mysql # not compatible
query I rowsort label-9890
SELECT + 36 * + - 63 * COUNT ( * )
----
-2268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9891
SELECT COUNT( * ) * + + 10 + + 3 + + 80 + 0 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9891
SELECT COUNT ( * ) * + + 10 + + 3 + + 80 + 0 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9892
SELECT DISTINCT 48 + + 58 DIV CAST( + - ( COUNT( * ) ) AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-9892
SELECT DISTINCT 48 + + 58 / CAST ( + - ( COUNT ( * ) ) AS INTEGER )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT + 88 - 12 - + MAX( DISTINCT - 74 )
----
150

skipif mysql # not compatible
query I rowsort label-9893
SELECT + 88 - 12 - + MAX ( DISTINCT - 74 )
----
150

query I rowsort
SELECT ALL 0 + + + 34 AS col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-9895
SELECT DISTINCT 12 + + 17 AS col1, - COUNT( * )
----
29
-1

skipif mysql # not compatible
query II rowsort label-9895
SELECT DISTINCT 12 + + 17 AS col1, - COUNT ( * )
----
29
-1

query I rowsort
SELECT ALL 88 + - 70
----
18

query I rowsort
SELECT ALL 47 + - - 60 - + 79
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9898
SELECT + MAX( ALL - 45 ) DIV + 28 + + - 27
----
-28

skipif mysql # not compatible
query I rowsort label-9898
SELECT + MAX ( ALL - 45 ) / + 28 + + - 27
----
-28

query I rowsort
SELECT - 11 - - + 92
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT DISTINCT ( COUNT( * ) ) * - 46
----
-46

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT ( COUNT ( * ) ) * - 46
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT ALL COUNT( * ) + 36 + - 63 + - 31 + - 49
----
-106

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL COUNT ( * ) + 36 + - 63 + - 31 + - 49
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT ALL 93 * + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL 93 * + COUNT ( * )
----
93

query I rowsort
SELECT + 16 - + 82 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT + 75 * + COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-9904
SELECT + 75 * + COUNT ( * ) AS col0
----
75

query II rowsort
SELECT ALL 80 * - 73 AS col1, 40
----
-5840
40

query II rowsort
SELECT - ( 47 ), ( + + 3 ) AS col1
----
-47
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9907
SELECT ALL MAX( + 92 ) - + - COUNT( * ) DIV - + 82 + 13 * 4
----
144

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL MAX ( + 92 ) - + - COUNT ( * ) / - + 82 + 13 * 4
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT - 91 * + - COALESCE ( - 73, + - 24 + - 56, - 20 + + ( COUNT( * ) ) ) + + ( - 23 ) * + 55 + 61 AS col0
----
-7847

skipif mysql # not compatible
query I rowsort label-9908
SELECT - 91 * + - COALESCE ( - 73, + - 24 + - 56, - 20 + + ( COUNT ( * ) ) ) + + ( - 23 ) * + 55 + 61 AS col0
----
-7847

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT - + COUNT( - ( 62 ) ) - + 48 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-9909
SELECT - + COUNT ( - ( 62 ) ) - + 48 AS col1
----
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9910
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT + + CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9911
SELECT 4 DIV 52 DIV - COUNT( - 76 ) - 34 * - COUNT( * ) + + 59 * - COUNT( ALL 0 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-9911
SELECT 4 / 52 / - COUNT ( - 76 ) - 34 * - COUNT ( * ) + + 59 * - COUNT ( ALL 0 ) AS col0
----
-25

query I rowsort
SELECT - COALESCE ( 32, + 54 )
----
-32

query I rowsort
SELECT ALL + + ( - + COALESCE ( + 54, - 64 ) )
----
-54

query I rowsort
SELECT DISTINCT - ( - 19 ) * + 6 * - + 71
----
-8094

query I rowsort
SELECT - - 54 * + 11 * - 7 - + 97 * + 29
----
-6971

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT DISTINCT - + 86 * - 67 - + 48 * + MAX( ALL - 79 ) - 47
----
9507

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT - + 86 * - 67 - + 48 * + MAX ( ALL - 79 ) - 47
----
9507

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL - - COUNT( * ) * 72 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL - - COUNT ( * ) * 72 AS col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9918
SELECT + - CASE WHEN NULL BETWEEN ( 33 ) AND NULL THEN NULL ELSE 71 * - CASE ( CAST( NULL AS SIGNED ) ) WHEN MAX( ALL - 82 ) + NULLIF ( - 88, 25 ) THEN 3 END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9918
SELECT + - CASE WHEN NULL BETWEEN ( 33 ) AND NULL THEN NULL ELSE 71 * - CASE ( CAST ( NULL AS INTEGER ) ) WHEN MAX ( ALL - 82 ) + NULLIF ( - 88, 25 ) THEN 3 END END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9919
SELECT ALL + 17 * 0 * + 57 + - CAST( NULL AS SIGNED ) + - 32 * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL + 17 * 0 * + 57 + - CAST ( NULL AS INTEGER ) + - 32 * 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT - + 28 * SUM( + + ( - 32 ) )
----
896

skipif mysql # not compatible
query I rowsort label-9920
SELECT - + 28 * SUM ( + + ( - 32 ) )
----
896

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT + + 22 + - 17 + + ( + COUNT( * ) )
----
6

skipif mysql # not compatible
query I rowsort label-9921
SELECT + + 22 + - 17 + + ( + COUNT ( * ) )
----
6

query I rowsort
SELECT 47 * + 62 * - 37 + + 89
----
-107729

onlyif mysql # DIV for integer division: 
query I rowsort label-9923
SELECT DISTINCT + 46 DIV + + 89 * 32 * - 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT + 46 / + + 89 * 32 * - 20 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT ALL ( + - SUM( ALL - + 73 ) ) * + 31 + - 75 AS col2
----
2188

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL ( + - SUM ( ALL - + 73 ) ) * + 31 + - 75 AS col2
----
2188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9925
SELECT - ( - - COUNT( + 36 ) ) DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-9925
SELECT - ( - - COUNT ( + 36 ) ) / 36
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9926
SELECT DISTINCT 57 * - + 19 + - 94 + - - 97 + + 18 DIV - 57
----
-1080

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT 57 * - + 19 + - 94 + - - 97 + + 18 / - 57
----
-1080

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9927
SELECT - COALESCE ( NULLIF ( + - 77, - + CAST( 39 AS DECIMAL ) * - 75 - 62 ), 53 - - COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-9927
SELECT - COALESCE ( NULLIF ( + - 77, - + CAST ( 39 AS REAL ) * - 75 - 62 ), 53 - - COUNT ( * ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT - CASE - 73 WHEN + 55 * COUNT( * ) + + 70 + 23 THEN + COUNT( * ) / 36 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9928
SELECT - CASE - 73 WHEN + 55 * COUNT ( * ) + + 70 + 23 THEN + COUNT ( * ) / 36 END col0
----
NULL

query I rowsort
SELECT - CASE - 27 WHEN - 50 THEN NULL WHEN - 62 THEN 77 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9930
SELECT ALL CAST( - 68 AS SIGNED ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-9930
SELECT ALL CAST ( - 68 AS INTEGER ) AS col0
----
-68

query I rowsort
SELECT - 29 * ( + 34 ) * + + 85 AS col1
----
-83810

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT MAX( 82 )
----
82

skipif mysql # not compatible
query I rowsort label-9932
SELECT MAX ( 82 )
----
82

query I rowsort
SELECT ALL 40 * + 6 AS col1
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT - COUNT( * ) + + ( COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-9934
SELECT - COUNT ( * ) + + ( COUNT ( * ) )
----
0

query I rowsort
SELECT 93 * 41 + - 85 AS col0
----
3728

query I rowsort
SELECT DISTINCT 58 - - 79
----
137

query I rowsort
SELECT ALL ( 0 ) - 80 * - + 59 * - COALESCE ( - 48, + 62 )
----
226560

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT ALL MAX( ALL - - 81 ) - + 63 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-9938
SELECT ALL MAX ( ALL - - 81 ) - + 63 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT + 99 * + SUM( DISTINCT - - 97 )
----
9603

skipif mysql # not compatible
query I rowsort label-9939
SELECT + 99 * + SUM ( DISTINCT - - 97 )
----
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT ALL - 66 * CASE - 12 WHEN - + NULLIF ( + CASE + ( NULLIF ( - AVG ( - 29 ), 15 ) ) WHEN - SUM( - 95 ) * + 57 THEN NULL ELSE 95 END, 31 ) * - 57 THEN NULL WHEN + 12 THEN NULL ELSE + 36 + - 70 END * - 72
----
-161568

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL - 66 * CASE - 12 WHEN - + NULLIF ( + CASE + ( NULLIF ( - AVG ( - 29 ), 15 ) ) WHEN - SUM ( - 95 ) * + 57 THEN NULL ELSE 95 END, 31 ) * - 57 THEN NULL WHEN + 12 THEN NULL ELSE + 36 + - 70 END * - 72
----
-161568

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT + 16 + + SUM( - 35 ) * 70 - - + 61
----
-2373

skipif mysql # not compatible
query I rowsort label-9941
SELECT + 16 + + SUM ( - 35 ) * 70 - - + 61
----
-2373

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9942
SELECT DISTINCT NULLIF ( + 90, 57 ) DIV - NULLIF ( - - COUNT( * ), + 68 )
----
-90

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT NULLIF ( + 90, 57 ) / - NULLIF ( - - COUNT ( * ), + 68 )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9943
SELECT + 51 DIV - - COALESCE ( + 68, ( NULLIF ( 70, AVG ( ALL - 57 ) * 80 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9943
SELECT + 51 / - - COALESCE ( + 68, ( NULLIF ( 70, AVG ( ALL - 57 ) * 80 ) ) )
----
0

query I rowsort
SELECT + 69 + + 6 + - 32 * + - 74
----
2443

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT ALL NULLIF ( - - MIN( + 23 ), + - COUNT( - 29 ) / - SUM( ALL 80 ) )
----
23

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL NULLIF ( - - MIN ( + 23 ), + - COUNT ( - 29 ) / - SUM ( ALL 80 ) )
----
23

query I rowsort
SELECT + - 2 + - + 53 * - 65 * + + 45 AS col2
----
155023

query I rowsort
SELECT ALL + 39 * + - 75 AS col2
----
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT + + COUNT( * ) + + ( - 82 ) * + + 3
----
-245

skipif mysql # not compatible
query I rowsort label-9948
SELECT + + COUNT ( * ) + + ( - 82 ) * + + 3
----
-245

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT ALL 53 * + COUNT( * ) * 87 col2
----
4611

skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL 53 * + COUNT ( * ) * 87 col2
----
4611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9950
SELECT - COUNT( + CAST( + + 29 AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9950
SELECT - COUNT ( + CAST ( + + 29 AS INTEGER ) ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9951
SELECT ( + 22 ) DIV - 51 AS col2, - 65 * + 76
----
0
-4940

skipif mysql # not compatible
query II rowsort label-9951
SELECT ( + 22 ) / - 51 AS col2, - 65 * + 76
----
0
-4940

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT ALL SUM( DISTINCT - 21 ) * - 68
----
1428

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL SUM ( DISTINCT - 21 ) * - 68
----
1428

query I rowsort
SELECT DISTINCT - + ( 15 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT NULLIF ( NULLIF ( + - 4, + - 84 + + + 1 + - 15 ), + COUNT( * ) * + 32 )
----
-4

skipif mysql # not compatible
query I rowsort label-9954
SELECT NULLIF ( NULLIF ( + - 4, + - 84 + + + 1 + - 15 ), + COUNT ( * ) * + 32 )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9955
SELECT + COUNT( + - COALESCE ( - 60, + - CAST( NULL AS DECIMAL ), 20 + 1 / 72 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9955
SELECT + COUNT ( + - COALESCE ( - 60, + - CAST ( NULL AS REAL ), 20 + 1 / 72 ) )
----
1

query I rowsort
SELECT ALL + 87 * + 82
----
7134

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT DISTINCT - 65 + + 46 + ( - 3 ) * + 73 * - COUNT( * ) AS col1
----
200

skipif mysql # not compatible
query I rowsort label-9957
SELECT DISTINCT - 65 + + 46 + ( - 3 ) * + 73 * - COUNT ( * ) AS col1
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT SUM( - 17 ) * 21
----
-357

skipif mysql # not compatible
query I rowsort label-9958
SELECT SUM ( - 17 ) * 21
----
-357

onlyif mysql # DIV for integer division: 
query I rowsort label-9959
SELECT ALL + 37 + - 86 + + 38 - 18 + - - 7 DIV - 63 * + 83
----
-29

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL + 37 + - 86 + + 38 - 18 + - - 7 / - 63 * + 83
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9960
SELECT CAST( - 28 AS SIGNED ) * 39 * 87 AS col2
----
-95004

skipif mysql # not compatible
query I rowsort label-9960
SELECT CAST ( - 28 AS INTEGER ) * 39 * 87 AS col2
----
-95004

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT DISTINCT + ( + - ( 61 ) ) * SUM( + - 16 ) + + 67 AS col1
----
1043

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT + ( + - ( 61 ) ) * SUM ( + - 16 ) + + 67 AS col1
----
1043

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT DISTINCT + 43 + 86 * - COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-9962
SELECT DISTINCT + 43 + 86 * - COUNT ( * ) AS col2
----
-43

query II rowsort
SELECT ALL - 46, 22 col1
----
-46
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9964
SELECT ALL + COUNT( * ) + 73 AS col1, 84 + - 91 + - + 19 + - COUNT( * ) DIV COUNT( * )
----
74
-27

skipif mysql # not compatible
query II rowsort label-9964
SELECT ALL + COUNT ( * ) + 73 AS col1, 84 + - 91 + - + 19 + - COUNT ( * ) / COUNT ( * )
----
74
-27

query I rowsort
SELECT ALL + 70 + ( + 31 ) AS col2
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9966
SELECT 23, 26 * + CASE - 75 WHEN + CASE MAX( ALL + CAST( NULL AS SIGNED ) ) WHEN - ( - CASE 22 WHEN - CASE 0 WHEN 7 * - ( 41 ) THEN ( 39 ) WHEN + MIN( + 16 ) + CAST( 7 AS SIGNED ) THEN NULL END * - COUNT( * ) THEN 88 END ) THEN + 77 ELSE NULL END / - 93 THEN - 60 + + 28 END AS col0
----
23
NULL

skipif mysql # not compatible
query II rowsort label-9966
SELECT 23, 26 * + CASE - 75 WHEN + CASE MAX ( ALL + CAST ( NULL AS INTEGER ) ) WHEN - ( - CASE 22 WHEN - CASE 0 WHEN 7 * - ( 41 ) THEN ( 39 ) WHEN + MIN ( + 16 ) + CAST ( 7 AS INTEGER ) THEN NULL END * - COUNT ( * ) THEN 88 END ) THEN + 77 ELSE NULL END / - 93 THEN - 60 + + 28 END AS col0
----
23
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9967
SELECT ALL - SUM( ALL 43 ) + + + CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL - SUM ( ALL 43 ) + + + CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

query II rowsort
SELECT ALL - 36 col0, + 57 - 98 AS col2
----
-36
-41

query I rowsort
SELECT ALL + 43 + + 4 + - + 12 AS col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9970
SELECT 75 + - - CASE WHEN NOT ( NULL ) >= 4 THEN NULL WHEN NOT 24 IN ( 77 * + AVG ( + 27 ) + 72 * 4 ) THEN + 91 + - ( 2 + + ( 55 ) ) DIV + 18 END AS col2
----
163

skipif mysql # not compatible
query I rowsort label-9970
SELECT 75 + - - CASE WHEN NOT ( NULL ) >= 4 THEN NULL WHEN NOT 24 IN ( 77 * + AVG ( + 27 ) + 72 * 4 ) THEN + 91 + - ( 2 + + ( 55 ) ) / + 18 END AS col2
----
163

onlyif mysql # aggregate syntax: 
query II rowsort label-9971
SELECT + 81 AS col0, - ( + 10 ) * CASE COUNT( * ) WHEN 86 * COUNT( DISTINCT 99 ) THEN NULL WHEN 49 THEN 77 ELSE NULL END * 39 + 35 AS col1
----
81
NULL

skipif mysql # not compatible
query II rowsort label-9971
SELECT + 81 AS col0, - ( + 10 ) * CASE COUNT ( * ) WHEN 86 * COUNT ( DISTINCT 99 ) THEN NULL WHEN 49 THEN 77 ELSE NULL END * 39 + 35 AS col1
----
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT 85 + + - COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9972
SELECT 85 + + - COUNT ( * ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT ALL + ( - + 20 ) - + - 53 * - COUNT( * ) + + 82 * + 68 AS col2
----
5503

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL + ( - + 20 ) - + - 53 * - COUNT ( * ) + + 82 * + 68 AS col2
----
5503

onlyif mysql # DIV for integer division: 
query I rowsort label-9974
SELECT ALL + 98 DIV + + 87
----
1

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL + 98 / + + 87
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9975
SELECT DISTINCT + 25 - + + 65 + 43 + NULLIF ( 76, + 72 - + 39 * + NULLIF ( ( 67 ) + 71 * 37, 58 * ( 53 ) ) ) + COALESCE ( + CAST( + 14 AS SIGNED ), MIN( + 44 ), + COUNT( * ) * 51 ) * - 33
----
-383

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT + 25 - + + 65 + 43 + NULLIF ( 76, + 72 - + 39 * + NULLIF ( ( 67 ) + 71 * 37, 58 * ( 53 ) ) ) + COALESCE ( + CAST ( + 14 AS INTEGER ), MIN ( + 44 ), + COUNT ( * ) * 51 ) * - 33
----
-383

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9976
SELECT ALL - COUNT( * ) DIV + 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL - COUNT ( * ) / + 53 AS col0
----
0

query I rowsort
SELECT 0 * + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT COUNT( * ) * 3 col1
----
3

skipif mysql # not compatible
query I rowsort label-9978
SELECT COUNT ( * ) * 3 col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9979
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 50 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9979
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 50 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9980
SELECT - 98 * - + SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9980
SELECT - 98 * - + SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT SUM( ALL - 24 ) * - ( COUNT( - 52 ) )
----
24

skipif mysql # not compatible
query I rowsort label-9981
SELECT SUM ( ALL - 24 ) * - ( COUNT ( - 52 ) )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9982
SELECT DISTINCT CAST( NULL AS SIGNED ) col2, 1 AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9982
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, 1 AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT COUNT( * ) - 83 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-9983
SELECT COUNT ( * ) - 83 AS col0
----
-82

query II rowsort
SELECT DISTINCT CASE - 51 WHEN + 82 THEN - 71 ELSE NULL END, 51 AS col2
----
NULL
51

query I rowsort
SELECT ALL + 27 + 82 + - 59
----
50

query I rowsort
SELECT 52 * COALESCE ( + 9, 24 ) AS col0
----
468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9987
SELECT ALL + 16 + + + CAST( + + COUNT( * ) AS SIGNED ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL + 16 + + + CAST ( + + COUNT ( * ) AS INTEGER ) AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9988
SELECT ALL - COUNT( * ) DIV 68 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL - COUNT ( * ) / 68 + + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT 12 + + - 62
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9990
SELECT 45 DIV + 47 * + COUNT( * ) * 95 + + 67 + 11 * 15 * + COUNT( * ) AS col0
----
232

skipif mysql # not compatible
query I rowsort label-9990
SELECT 45 / + 47 * + COUNT ( * ) * 95 + + 67 + 11 * 15 * + COUNT ( * ) AS col0
----
232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9991
SELECT - 44 * + - NULLIF ( 22, 2 + + 73 * + CAST( NULL AS SIGNED ) ) * - 64 + - 84
----
-62036

skipif mysql # not compatible
query I rowsort label-9991
SELECT - 44 * + - NULLIF ( 22, 2 + + 73 * + CAST ( NULL AS INTEGER ) ) * - 64 + - 84
----
-62036

query I rowsort
SELECT 75 - - + 89 * 12 AS col2
----
1143

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT + COUNT( DISTINCT 14 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9993
SELECT + COUNT ( DISTINCT 14 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9994
SELECT + 57 / + 16 + CAST( NULL AS SIGNED ) * + 77 * - - AVG ( + - 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9994
SELECT + 57 / + 16 + CAST ( NULL AS INTEGER ) * + 77 * - - AVG ( + - 85 )
----
NULL

query I rowsort
SELECT - ( 89 ) * - 10 - - + ( + + COALESCE ( - 29, + 63, 14 ) ) col2
----
861

query I rowsort
SELECT ALL 53 + + 86 col0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT 24 + - 73 + - 91 + 28 * - ( + + COUNT( ALL COALESCE ( 36, - 10 ) ) ) - + 47 col0
----
-215

skipif mysql # not compatible
query I rowsort label-9997
SELECT 24 + - 73 + - 91 + 28 * - ( + + COUNT ( ALL COALESCE ( 36, - 10 ) ) ) - + 47 col0
----
-215

query II rowsort
SELECT + - 70, ( + 5 ) + + + 2 + - 66 AS col2
----
-70
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT ALL - COALESCE ( + 55, 80 ) + SUM( ALL - 8 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-9999
SELECT ALL - COALESCE ( + 55, 80 ) + SUM ( ALL - 8 ) AS col0
----
-63

